/* ============================================================
   REPORT PAGE — Anglo Eastern Hotel Director Daily Report
   Tone: Luxury / Refined — Cormorant Garamond + Manrope
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1A2E45;
  --navy-light: #243B55;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale:  #F5E9C8;
  --ivory:      #FAF7F2;
  --ivory-dark: #F0EBE0;
  --white:      #FFFFFF;
  --cape:       #8B4513;
  --cape-light: #D4896A;
  --cape-bg:    #FDF5F0;
  --hut:        #2E5090;
  --hut-light:  #6B8EC4;
  --hut-bg:     #F0F4FB;
  --crew:       #2D6A4F;
  --crew-light: #74C69D;
  --crew-bg:    #F0FAF5;
  --text:       #1A1A2E;
  --text-mid:   #3D3D5C;
  --text-light: #6B7280;
  --border:     #E5E7EB;
  --border-dark:#D1D5DB;
  --bg:         #F8F7F4;
  --section-bg: #FFFFFF;
  --shadow-lg:  0 20px 60px rgba(13,27,42,0.12);
  --shadow-md:  0 8px 30px rgba(13,27,42,0.08);
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.06);
  --radius:     12px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Report Wrapper ── */
.report-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 120px;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.report-header {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
}

.header-logo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
  pointer-events: none;
}

.header-bg-logo {
  height: 220px;
  opacity: 0.08;
  filter: invert(1) brightness(2) saturate(0);
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 36px 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo-img {
  height: 52px;
  filter: none;
  opacity: 1;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
}

.brand-logo-fallback {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
}

.brand-divider-v {
  width: 1px;
  height: 48px;
  background: rgba(201,168,76,0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Header Meta Grid */
.header-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.meta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-field label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.8);
}

.meta-field input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.meta-field input::placeholder { color: rgba(250,247,242,0.35); }
.meta-field input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

/* Venue Badges */
.venue-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.venue-badge:hover { transform: translateY(-2px); }

.badge-icon { width: 14px; height: 14px; }

.cape-badge  { background: rgba(212,137,106,0.2); color: var(--cape-light); border-color: rgba(212,137,106,0.3); }
.hut-badge   { background: rgba(107,142,196,0.2); color: var(--hut-light);  border-color: rgba(107,142,196,0.3); }
.crew-badge  { background: rgba(116,198,157,0.2); color: var(--crew-light); border-color: rgba(116,198,157,0.3); }
.home-badge  { background: rgba(201,168,76,0.15); color: var(--gold-light); border-color: rgba(201,168,76,0.25); }

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */
.report-section {
  background: var(--section-bg);
  margin: 24px 32px 0;
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}

.section-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.venue-icon-title {
  color: var(--gold);
  display: flex;
  align-items: center;
}

.section-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

.subsection-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-pale);
}

/* ══════════════════════════════════════════════════════════
   VENUE TABS
══════════════════════════════════════════════════════════ */
.venue-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.vtab {
  padding: 10px 22px;
  border: none;
  background: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.vtab:hover { color: var(--navy); }
.vtab.active { color: var(--navy); border-bottom-color: var(--gold); background: var(--gold-pale); }

.style-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 4px;
}

.vtab-content { display: none; margin-top: 20px; }
.vtab-content.active { display: block; }

/* ══════════════════════════════════════════════════════════
   VENUE HEADER STRIPS
══════════════════════════════════════════════════════════ */
.venue-header-strip {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.venue-strip-icon { font-size: 1rem; }

.cape-strip { background: var(--cape-bg); color: var(--cape); border-left: 4px solid var(--cape-light); }
.hut-strip  { background: var(--hut-bg);  color: var(--hut);  border-left: 4px solid var(--hut-light); }
.crew-strip { background: var(--crew-bg); color: var(--crew); border-left: 4px solid var(--crew-light); }

/* ══════════════════════════════════════════════════════════
   MEAL SERVICE INFO BAR
══════════════════════════════════════════════════════════ */
.meal-service-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.hours-inline, .status-inline, .count-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-inline label, .status-inline label, .count-inline label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  white-space: nowrap;
}

.hours-input { width: 140px !important; }

/* ══════════════════════════════════════════════════════════
   SERVICE BADGES
══════════════════════════════════════════════════════════ */
.service-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-badge.buffet   { background: rgba(201,168,76,0.12); color: #8B6914; border: 1px solid rgba(201,168,76,0.35); }
.service-badge.alacarte { background: rgba(46,80,144,0.1);   color: var(--hut); border: 1px solid rgba(46,80,144,0.25); }

/* ══════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════ */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.report-table thead tr {
  background: var(--navy);
  color: var(--ivory);
}

.report-table thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.report-table tbody tr:hover { background: rgba(201,168,76,0.04); }
.report-table tbody tr:last-child { border-bottom: none; }

.report-table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  color: var(--text-mid);
  font-weight: 500;
}

.period-cell {
  font-weight: 700 !important;
  color: var(--navy) !important;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   FORM INPUTS
══════════════════════════════════════════════════════════ */
.table-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.table-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.table-input.narrow { width: 80px; }

.table-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 120px;
}

.table-select:focus { border-color: var(--gold); }

.styled-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.styled-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
}

textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* ══════════════════════════════════════════════════════════
   SUMMARY GRID (Section 01)
══════════════════════════════════════════════════════════ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ══════════════════════════════════════════════════════════
   MENU HIGHLIGHTS GRID
══════════════════════════════════════════════════════════ */
.menu-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.menu-category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-cat-header {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   TWO-COL FIELDS
══════════════════════════════════════════════════════════ */
.two-col-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.textarea-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.textarea-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ══════════════════════════════════════════════════════════
   MEDIA UPLOAD GRID
══════════════════════════════════════════════════════════ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.media-zone { display: flex; flex-direction: column; gap: 8px; }

.media-upload-area {
  position: relative;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
  min-height: 120px;
  justify-content: center;
}

.media-upload-area:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon { color: var(--text-light); }
.upload-icon svg { width: 28px; height: 28px; }

.upload-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
}

.upload-hint {
  font-size: 0.65rem;
  color: var(--text-light);
  text-align: center;
}

.media-preview {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 0;
}

.media-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.media-preview video {
  width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  display: block;
}

/* Media preview item (after upload) */
.media-preview-item {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 6px;
}

.media-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: #f1f5f9;
  border-top: 1px solid #e5e7eb;
}

.media-preview-name {
  font-size: 0.7rem;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  font-family: 'Manrope', sans-serif;
}

.media-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}
.media-remove-btn:hover {
  background: #fee2e2;
}

/* Upload area state when media is loaded */
.media-upload-area.has-media {
  border-color: #16a34a;
  background: #f0fdf4;
}
.media-upload-area.has-media .upload-icon svg {
  stroke: #16a34a;
}
.media-upload-area.has-media .upload-label {
  color: #16a34a;
}
.media-upload-area.has-media .upload-hint {
  color: #4ade80;
}

/* ══════════════════════════════════════════════════════════
   SURVEY METHOD GRID
══════════════════════════════════════════════════════════ */
.survey-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.survey-toggle-card {
  cursor: pointer;
  display: block;
}

.survey-toggle-card input[type="checkbox"] {
  display: none;
}

.survey-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: all 0.2s;
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.survey-toggle-card input:checked + .survey-card-inner {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.survey-card-inner svg { color: var(--text-light); transition: color 0.2s; }
.survey-toggle-card input:checked + .survey-card-inner svg { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   DUAL FEEDBACK STATIONS
══════════════════════════════════════════════════════════ */
.dual-station-header {
  margin: 28px 0 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-sm);
  color: var(--ivory);
}

.dual-station-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dual-station-desc {
  font-size: 0.75rem;
  color: rgba(250,247,242,0.6);
}

.dual-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feedback-station {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.station-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ivory);
}

.captain-station .station-header { background: var(--navy); }
.cruise-station .station-header  { background: var(--hut); }

.station-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
}

.station-body {
  padding: 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.station-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.station-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.station-field input, .station-field textarea, .station-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.station-field input:focus,
.station-field textarea:focus,
.station-field select:focus { border-color: var(--gold); }

.sig-line-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.sig-line-inline span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  white-space: nowrap;
}

.sig-line-short {
  flex: 1;
  height: 1px;
  background: var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

/* ══════════════════════════════════════════════════════════
   SIGNATURE SECTION
══════════════════════════════════════════════════════════ */
.signature-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: none;
}

.signature-section .section-label { color: var(--gold); }
.signature-section .section-title { color: var(--ivory); }

.signature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.sig-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sig-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
}

.sig-name-field input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  outline: none;
  text-align: center;
}

.sig-name-field input::placeholder { color: rgba(250,247,242,0.3); }
.sig-name-field input:focus { border-color: var(--gold); }

.sig-line {
  height: 1px;
  background: rgba(201,168,76,0.4);
  margin: 8px 0;
}

.sig-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.4);
  text-align: center;
}

.sig-date input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  outline: none;
  text-align: center;
}

.sig-date input:focus { border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   ADD ROW BUTTON
══════════════════════════════════════════════════════════ */
.add-row-btn {
  margin-top: 10px;
  padding: 8px 20px;
  background: none;
  border: 1px dashed var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.add-row-btn:hover {
  background: var(--gold-pale);
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   FOOTER & ACTION BUTTONS
══════════════════════════════════════════════════════════ */
.report-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(13,27,42,0.3);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: rgba(250,247,242,0.5);
}

.footer-dot { opacity: 0.4; }

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.action-btn svg { width: 15px; height: 15px; }
.action-btn:hover { transform: translateY(-1px); }

.pdf-btn   { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); }
.word-btn  { background: rgba(255,255,255,0.1); color: var(--ivory); border: 1px solid rgba(255,255,255,0.2); }
.email-btn { background: rgba(107,142,196,0.25); color: var(--hut-light); border: 1px solid rgba(107,142,196,0.3); }
.print-btn { background: rgba(255,255,255,0.06); color: rgba(250,247,242,0.6); border: 1px solid rgba(255,255,255,0.1); }

/* ══════════════════════════════════════════════════════════
   FLOATING NAV
══════════════════════════════════════════════════════════ */
.floating-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 90;
}

.fnav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: rgba(250,247,242,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fnav-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.1);
}

.fnav-btn.active {
  background: var(--gold);
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   EMAIL MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  width: min(560px, 90vw);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
}

.modal-close {
  background: none;
  border: none;
  color: rgba(250,247,242,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--ivory); }

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.modal-field input,
.modal-field textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field textarea:focus { border-color: var(--gold); }

.attach-options {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
}

.attach-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text-mid) !important;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--bg);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}

.cancel-btn { background: var(--bg); color: var(--text-mid); border: 1px solid var(--border); }
.send-btn   { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); }
.modal-btn:hover { transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   KPI TABLE
══════════════════════════════════════════════════════════ */
.kpi-table tbody td:first-child {
  font-weight: 700;
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   SAVE INDICATOR
══════════════════════════════════════════════════════════ */
.save-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--crew-light);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.save-indicator.visible { opacity: 1; }

/* ── Copy button in modal ── */
.copy-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
}
.copy-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--ivory);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
  pointer-events: none;
  border: 1px solid rgba(201,168,76,0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════════════ */
@media print {
  /* ── Force colour rendering ── */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* ── Hide interactive chrome ── */
  .report-footer,
  .floating-nav,
  .modal-overlay,
  .media-grid,
  .venue-tabs { display: none !important; }

  /* ── Page setup ── */
  @page { size: A4 portrait; margin: 15mm 12mm 15mm 12mm; }
  @page :first { margin-top: 10mm; }

  body {
    font-size: 10.5px;
    background: #fff !important;
    color: #111 !important;
  }

  /* ── Layout ── */
  .report-wrapper { padding: 0 !important; background: #fff !important; }
  .report-section {
    margin: 0 0 12px !important;
    padding: 16px 20px !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
  }

  /* ── Header ── */
  .report-header { page-break-after: avoid; }
  .header-content { padding: 16px 20px !important; }

  /* ── Show all venue tab panels ── */
  .vtab-content { display: block !important; }
  .venue-header-strip { margin-bottom: 8px !important; }

  /* ── Tables ── */
  .report-table { font-size: 9.5px; }
  .report-table thead tr { background: var(--navy) !important; }
  .report-table tbody tr:nth-child(even) { background: #f5f5f5 !important; }

  /* ── Summary cards ── */
  .summary-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .summary-card { padding: 10px 12px !important; page-break-inside: avoid; }

  /* ── Signature section ── */
  .signature-section { page-break-inside: avoid; }
  .signature-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* ── Page breaks ── */
  .report-section:nth-child(3) { page-break-before: always; }

  /* ── Links ── */
  a { color: inherit !important; text-decoration: none !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .signature-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-feedback-grid { grid-template-columns: 1fr; }
  .floating-nav { display: none; }
}

@media (max-width: 768px) {
  .header-content { padding: 24px 20px; }
  .report-section { margin: 16px 12px 0; padding: 24px 20px; }
  .header-meta-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .menu-highlights-grid { grid-template-columns: 1fr; }
  .two-col-fields { grid-template-columns: 1fr; }
  .survey-method-grid { grid-template-columns: 1fr; }
  .signature-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .report-footer { padding: 10px 16px; flex-direction: column; gap: 8px; }
  .footer-left { display: none; }
  .footer-right { flex-wrap: wrap; justify-content: center; }
  .venue-tabs { overflow-x: auto; }
  .report-table { font-size: 0.75rem; }
}

/* ============================================================
   DIGITAL SIGNATURE PADS
   ============================================================ */
.sig-canvas {
  display: block;
  width: 100%;
  height: 100px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: #FAFAFA;
  cursor: crosshair;
  touch-action: none;
  margin: 10px 0 6px;
  transition: border-color 0.2s;
}
.sig-canvas:hover { border-color: var(--gold); }

.sig-canvas-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sig-clear-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9CA3AF;
  background: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.sig-clear-btn:hover { color: #ef4444; border-color: #ef4444; background: #fef2f2; }

.sig-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9CA3AF;
  letter-spacing: 0.04em;
}

/* ============================================================
   SUBMIT REPORT BUTTON
   ============================================================ */
.submit-report-area {
  margin-top: 32px;
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, #F8F7F4, #F0EBE0);
  border-radius: var(--radius);
  border: 1.5px dashed var(--gold);
}
.submit-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
  border: none;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(13,27,42,0.25);
}
.submit-report-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,27,42,0.3);
  background: linear-gradient(135deg, var(--navy-light), #2E4A6A);
}
.submit-report-btn:disabled {
  cursor: default;
  opacity: 0.9;
}
.submit-report-sub {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================================
   SUSTAINABILITY SECTION
   ============================================================ */
.sustainability-section { border-top: 4px solid #2D6A4F; }

.sustain-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.sustain-tab {
  padding: 10px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}
.sustain-tab:hover { color: #2D6A4F; }
.sustain-tab.active { color: #2D6A4F; border-bottom-color: #2D6A4F; }

.sustain-content { display: none; margin-top: 0; }
.sustain-content.active { display: block; }

.sustain-table th:first-child { width: 140px; }
.sustain-table th:nth-child(2),
.sustain-table th:nth-child(3),
.sustain-table th:nth-child(4) { width: 110px; }

.sustain-cat-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.sustain-cat-badge.starters { background: #DCFCE7; color: #166534; }
.sustain-cat-badge.fish     { background: #E0F2FE; color: #075985; }
.sustain-cat-badge.meat     { background: #FEE2E2; color: #991B1B; }
.sustain-cat-badge.pasta    { background: #FEF9C3; color: #854D0E; }
.sustain-cat-badge.veg      { background: #ECFCCB; color: #3F6212; }
.sustain-cat-badge.desserts { background: #F3E8FF; color: #6B21A8; }

/* Trend chart */
.trend-chart-wrap {
  padding: 20px;
  background: white;
  border-radius: var(--radius-sm);
}
.trend-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.trend-control-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
#trend-chart { max-height: 320px; }
#today-chart { max-height: 260px; }
.trend-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: #9CA3AF;
  text-align: center;
  font-style: italic;
}
.trend-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2D6A4F;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.trend-refresh-btn {
  margin-left: auto;
  padding: 5px 14px;
  background: linear-gradient(135deg, #2D6A4F, #1B4332);
  color: #D1FAE5;
  border: none;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.trend-refresh-btn:hover { opacity: 0.85; }

/* ============================================================
   ARCHIVE DRAWER
   ============================================================ */
.archive-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.archive-overlay.open { opacity: 1; pointer-events: all; }

.archive-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  max-width: 95vw;
  height: 100vh;
  background: white;
  z-index: 200;
  box-shadow: -8px 0 40px rgba(13,27,42,0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.archive-drawer.open { right: 0; }

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--navy);
  color: var(--ivory);
  flex-shrink: 0;
}
.archive-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
}
.archive-close {
  background: none;
  border: none;
  color: rgba(250,247,242,0.6);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.archive-close:hover { color: var(--gold-light); }

.archive-new-btn-wrap {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.archive-new-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 1.5px solid #BAE6FD;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0369A1;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.archive-new-btn:hover { background: #E0F2FE; border-color: #7DD3FC; }

.archive-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.archive-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9CA3AF;
  font-size: 0.82rem;
  line-height: 1.7;
}

.archive-item {
  position: relative;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.archive-item:hover { border-color: var(--gold); background: #FFFBF0; }

.archive-item-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.archive-item-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}
.archive-item-by {
  font-size: 0.72rem;
  color: #9CA3AF;
  margin-top: 2px;
}
.archive-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 2px;
}
.archive-delete-btn:hover { opacity: 1; }

/* Archive button in floating nav */
.fnav-archive {
  background: rgba(201,168,76,0.15) !important;
  border-color: rgba(201,168,76,0.4) !important;
  color: var(--gold-light) !important;
  font-size: 0.9rem !important;
}
.fnav-archive:hover {
  background: rgba(201,168,76,0.3) !important;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--ivory);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 32px rgba(13,27,42,0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-success { background: #15803d; }
.toast.toast-warn    { background: #B45309; }
.toast.toast-info    { background: var(--navy); }

/* ============================================================
   RESPONSIVE — NEW ELEMENTS
   ============================================================ */
@media (max-width: 600px) {
  .signature-grid { grid-template-columns: 1fr; }
  .sustain-tabs { overflow-x: auto; white-space: nowrap; }
  .archive-drawer { width: 100vw; }
  .submit-report-btn { padding: 14px 24px; font-size: 0.85rem; }
  .trend-controls { gap: 6px; }
}