/* ==========================================================================
   FERTILE SEED TECH PRIVATE LIMITED
   Crop Calendar Engine Stylesheet (v2.1 Synchronized)
   Dual-View Support: 3-Stage Timeline Grid (Sowing, Hybridization, Harvest)
   Synchronized with Pollen Seeds (Ranebennur Belt Specifications)
   ========================================================================== */

/* 1. Control & Filter Bar */
.calendar-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 4px 20px rgba(7, 34, 21, 0.06);
  border: 1px solid var(--border-light, #dde8df);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.calendar-search-wrap {
  position: relative;
  width: 250px;
  min-width: 200px;
  flex-shrink: 0;
}

.calendar-search-wrap input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-medium, #c8d9cb);
  background: var(--bg-light, #f4f8f4);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-main, #111a14);
  outline: none;
  transition: all var(--transition-fast, 0.2s);
}

.calendar-search-wrap input:focus {
  border-color: var(--primary, #0a3d22);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 61, 34, 0.14);
}

.calendar-search-wrap i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light, #637068);
  pointer-events: none;
  font-size: 0.88rem;
}

.calendar-filters-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cal-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-medium, #c8d9cb);
  background: #ffffff;
  color: var(--text-muted, #415449);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast, 0.2s);
}

.cal-filter-btn:hover {
  background: var(--bg-subtle, #edf3ee);
  border-color: var(--primary-mid, #155c35);
  color: var(--primary-deep, #072215);
}

.cal-filter-btn.active {
  background: var(--primary, #0a3d22);
  color: #ffffff;
  border-color: var(--primary, #0a3d22);
  box-shadow: 0 3px 10px rgba(10, 61, 34, 0.25);
}

.cal-filter-btn .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
}

.cal-filter-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.calendar-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-medium, #c8d9cb);
  background: #ffffff;
  color: var(--primary, #0a3d22);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast, 0.2s);
}

.cal-action-btn:hover {
  background: var(--bg-subtle, #edf3ee);
  border-color: var(--primary, #0a3d22);
}

/* 2. View Toggle Bar */
.calendar-view-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.calendar-view-toggle-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #edf3ef;
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border-medium, #c8d9cb);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cal-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted, #415449);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.2;
}

.cal-view-btn i {
  font-size: 0.95rem;
}

.cal-view-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-deep, #072215);
}

.cal-view-btn.active {
  background: var(--primary-deep, #072215);
  color: #ffffff;
  border-color: var(--primary-deep, #072215);
  box-shadow: 0 3px 10px rgba(7, 34, 21, 0.25);
}

.cal-view-btn.active i {
  color: var(--accent-gold-light, #e2ab30);
}

/* 3. Horizontal Scroll Hint */
.calendar-scroll-hint {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-light, #637068);
  margin-bottom: 0.65rem;
  justify-content: flex-end;
}

/* 4. Sticky Calendar Viewport Container */
.calendar-viewport-card {
  background: #ffffff;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border-light, #dde8df);
  box-shadow: 0 8px 30px rgba(7, 34, 21, 0.08);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.calendar-scrollable-container {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 78vh;
  position: relative;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md, 14px);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-mid, #155c35) #edf4ef;
}

.calendar-scrollable-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.calendar-scrollable-container::-webkit-scrollbar-track {
  background: #f1f5f2;
}
.calendar-scrollable-container::-webkit-scrollbar-thumb {
  background: #b5c7bd;
  border-radius: 4px;
}
.calendar-scrollable-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-mid, #155c35);
}

/* Main Table Structure (Zero horizontal scroll on desktop) */
.crop-calendar-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: inherit;
}

/* Sticky Header */
.crop-calendar-table thead th {
  background: var(--primary-deep, #072215);
  color: #ffffff;
  padding: 0.85rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid #03140b;
  position: sticky;
  top: 0;
  z-index: 30;
  user-select: none;
  box-sizing: border-box;
}

.crop-calendar-table thead th:last-child {
  border-right: none;
}

.crop-calendar-table thead th.col-crop {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
  background: #04160d;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  border-right: 2px solid #020c06;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.18);
  text-align: left;
  padding: 0.75rem 0.65rem;
  box-sizing: border-box;
}

.crop-calendar-table thead th.col-month {
  width: calc((100% - 130px) / 12);
  min-width: 0;
  padding: 0.65rem 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.month-fortnights {
  display: flex;
  justify-content: space-around;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.2rem;
  padding: 0 0.15rem;
  font-weight: 600;
}

/* Category Subheaders inside Table */
.tr-category-header td {
  background: #edf5f0;
  color: var(--primary-deep, #072215);
  padding: 0.75rem 1.25rem;
  border-top: 2px solid #b7d7c5;
  border-bottom: 2px solid #b7d7c5;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 15;
}

.category-header-single-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-deep, #072215);
}

.category-header-single-line i {
  color: var(--primary-mid, #155c35);
  font-size: 1.05rem;
}

/* Crop Rows */
.tr-crop-row {
  border-bottom: 1px solid #e2ebe5;
  transition: background var(--transition-fast, 0.2s);
}

.tr-crop-row:hover {
  background: #f7faf8;
}

.tr-crop-row:hover .col-crop {
  background: #f1f7f3;
}

.crop-calendar-table tbody td.col-crop {
  position: sticky;
  left: 0;
  z-index: 20;
  background: #ffffff;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  padding: 0.75rem 0.65rem;
  vertical-align: middle;
  border-right: 2px solid #dbe6df;
  border-bottom: 1px solid #e2ebe5;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  box-sizing: border-box;
}

.crop-name-only {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-deep, #072215);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.25;
  word-break: break-word;
}

.crop-season-pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg-subtle, #edf3ee);
  color: var(--primary, #0a3d22);
  border: 1px solid var(--border-medium, #c8d9cb);
}

/* Timeline Month Cell & 3-Track Grid (Height: 76px) */
.col-timeline-grid {
  padding: 0.65rem 0.25rem;
  vertical-align: middle;
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid #e2ebe5;
}

.timeline-grid-wrapper {
  position: relative;
  width: 100%;
  height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.timeline-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  pointer-events: none;
  z-index: 1;
}

.grid-cell-fn {
  border-right: 1px dashed rgba(220, 230, 224, 0.7);
}

.grid-cell-fn:nth-child(2n) {
  border-right: 1px solid #d4ded8;
}

.grid-cell-fn:last-child {
  border-right: none;
}

.grid-cell-fn.is-current-fn {
  background-color: rgba(201, 145, 26, 0.12);
}

/* Timeline Tracks & 3 Activity Bars */
.timeline-track-row {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.cal-bar {
  position: absolute;
  height: 14px;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  z-index: 3;
}

.cal-bar:hover {
  transform: scaleY(1.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  z-index: 10;
}

/* 1. Sowing Period: Golden Yellow / Amber */
.bar-sowing,
.legend-color-box.sowing,
.crop-stage-row .stage-dot.sowing {
  background: linear-gradient(180deg, #fdc830 0%, #f39c12 100%) !important;
  border: 1px solid #d88900;
}

/* 2. Hybridization Period: Plant / Leaf Green */
.bar-hybridization,
.legend-color-box.hybridization,
.crop-stage-row .stage-dot.hybridization {
  background: linear-gradient(180deg, #48bb78 0%, #2f855a 100%) !important;
  border: 1px solid #276749;
}

/* 3. Harvesting Period: Dark Forest Green / Deep Earth */
.bar-harvest,
.legend-color-box.harvest,
.crop-stage-row .stage-dot.harvest {
  background: linear-gradient(180deg, #1b4332 0%, #072215 100%) !important;
  border: 1px solid #03140b;
}

/* 5. Master Legend (3 Items Only) */
.calendar-legend-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #dde8df);
  border-radius: var(--radius-md, 14px);
  padding: 1.25rem 2rem;
  box-shadow: 0 4px 16px rgba(7, 34, 21, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.25rem;
}

.calendar-legend-card .legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main, #111a14);
}

.legend-color-box {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* 6. Tooltip Engine */
.cal-tooltip {
  position: absolute;
  background: var(--primary-deep, #072215);
  color: #ffffff;
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 100;
  display: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cal-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--primary-deep, #072215) transparent transparent transparent;
}

/* 7. Mobile & Responsive Card View Container */
.calendar-cards-container {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

body.user-view-cards .calendar-cards-container {
  display: grid !important;
}

body.user-view-cards #printableCalendarCard {
  display: none !important;
}

.crop-mobile-card {
  background: #ffffff;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border-light, #dde8df);
  padding: 1.35rem;
  box-shadow: 0 4px 15px rgba(7, 34, 21, 0.05);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.crop-mobile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(7, 34, 21, 0.12);
  border-color: var(--accent-leaf, #7cb518);
}

.crop-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light, #dde8df);
  padding-bottom: 0.75rem;
}

.crop-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep, #072215);
  letter-spacing: -0.01em;
}

.crop-card-botanical {
  font-size: 0.76rem;
  color: var(--text-light, #637068);
  font-style: italic;
  margin-top: 2px;
}

.crop-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-mid, #155c35);
  background: var(--bg-subtle, #edf3ee);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  border: 1px solid var(--border-medium, #c8d9cb);
}

.crop-card-stages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crop-stage-row {
  display: flex;
  align-items: center;
  font-size: 0.86rem;
  gap: 0.6rem;
}

.crop-stage-row .stage-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.crop-stage-row .stage-label {
  font-weight: 700;
  color: var(--primary-deep, #072215);
  min-width: 105px;
}

.crop-stage-row .stage-val {
  color: var(--text-muted, #415449);
  font-weight: 600;
}

.crop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-light, #dde8df);
  font-size: 0.8rem;
  color: var(--primary-mid, #155c35);
  font-weight: 600;
}

/* 8. Crop Detail Modal Dialog */
.crop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 34, 21, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal, 0.3s), visibility var(--transition-normal, 0.3s);
  padding: 1.5rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.crop-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.crop-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg, 20px);
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal, 0.3s);
  padding: 2.25rem;
  margin: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-mid, #155c35) #edf4ef;
}

.crop-modal-dialog::-webkit-scrollbar {
  width: 8px;
}
.crop-modal-dialog::-webkit-scrollbar-track {
  background: #edf4ef;
  border-radius: 8px;
  margin: 10px 0;
}
.crop-modal-dialog::-webkit-scrollbar-thumb {
  background: var(--primary-mid, #155c35);
  border-radius: 8px;
}
.crop-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: var(--primary-deep, #072215);
}

.crop-modal-overlay.active .crop-modal-dialog {
  transform: translateY(0);
}

.crop-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -0.85rem;
  margin-right: -0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light, #f4f8f4);
  border: 1px solid var(--border-light, #dde8df);
  font-size: 1.1rem;
  color: var(--text-muted, #415449);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast, 0.2s);
  z-index: 25;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.crop-modal-close:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
}

.crop-detail-header-clean {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light, #dde8df);
}

.crop-detail-header-clean h3 {
  font-size: 1.6rem;
  color: var(--primary-deep, #072215);
  margin-bottom: 0.25rem;
}

.crop-detail-header-clean p {
  font-size: 0.95rem;
  color: var(--text-light, #637068);
  font-style: italic;
}

.crop-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.crop-spec-box {
  background: var(--bg-light, #f4f8f4);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-light, #dde8df);
}

.crop-spec-lbl {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-light, #637068);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.crop-spec-val {
  font-size: 0.95rem;
  color: var(--primary-deep, #072215);
  font-weight: 700;
}

.modal-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-deep, #072215);
  margin-bottom: 0.65rem;
}

.modal-cycle-summary {
  background: var(--bg-subtle, #edf3ee);
  border-radius: var(--radius-sm, 8px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-cycle-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* 9. Responsive Overrides (Card view default on mobile) */
@media (max-width: 900px) {
  .calendar-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .calendar-search-wrap {
    width: 100%;
  }
  .calendar-filters-group {
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }
}

@media (max-width: 768px) {
  /* Default Mobile View: Card View Enabled */
  body:not(.user-view-timeline) #printableCalendarCard {
    display: none !important;
  }
  body:not(.user-view-timeline) #calendarCardsContainer {
    display: grid !important;
  }
  body:not(.user-view-timeline) #calendarScrollHint {
    display: none !important;
  }
  body:not(.user-view-timeline) #btnViewTimeline {
    background: transparent !important;
    color: var(--text-muted, #415449) !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }
  body:not(.user-view-timeline) #btnViewTimeline i {
    color: inherit !important;
  }
  body:not(.user-view-timeline) #btnViewCards {
    background: var(--primary-deep, #072215) !important;
    color: #ffffff !important;
    border-color: var(--primary-deep, #072215) !important;
    box-shadow: 0 3px 10px rgba(7, 34, 21, 0.25) !important;
  }
  body:not(.user-view-timeline) #btnViewCards i {
    color: var(--accent-gold-light, #e2ab30) !important;
  }

  /* When mobile user explicitly chooses timeline mode */
  body.user-view-timeline .calendar-scrollable-container {
    overflow-x: auto !important;
  }
  body.user-view-timeline .crop-calendar-table {
    min-width: 760px !important;
  }
  body.user-view-timeline .crop-calendar-table thead th.col-crop,
  body.user-view-timeline .crop-calendar-table tbody td.col-crop {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    padding: 0.6rem 0.4rem !important;
  }
  body.user-view-timeline .calendar-scroll-hint {
    display: flex !important;
  }

  /* Mobile Crop Detail Modal Dialog */
  .crop-modal-overlay {
    padding: 1rem 0.5rem;
    align-items: flex-start;
  }
  .crop-modal-dialog {
    max-height: 88vh;
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
    margin: 1.25rem auto;
  }
  .crop-detail-header-clean h3 {
    font-size: 1.35rem;
  }
  .crop-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* 10. Print Mode Assurance */
@media print {
  .site-header,
  .site-footer,
  .topbar,
  .calendar-controls-bar,
  .calendar-view-toggle-wrap,
  .calendar-scroll-hint,
  .crop-modal-overlay,
  .btn {
    display: none !important;
  }
  .calendar-viewport-card {
    border: none !important;
    box-shadow: none !important;
  }
  .calendar-scrollable-container {
    max-height: none !important;
    overflow: visible !important;
  }
  .crop-calendar-table {
    min-width: 100% !important;
  }
}
