/* ── Google Fonts ─────────────────────────────────────────────────────────── */
/* Inter + Playfair Display loaded via <link> in HTML */

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Brand — Pita Thyme pita-brown + lime-green leaf */
  --red:           #BF7B2D;   /* warm pita brown  (primary) */
  --red-dark:      #9E6422;   /* darker pita brown */
  --red-mid:       #CF8B36;   /* lighter pita brown */
  --red-light:     #FEF5E8;   /* warm cream tint */
  --gold:          #6AA830;   /* leaf green (secondary accent) */
  --gold-bright:   #8DC63F;   /* bright lime — matched from logo */
  --gold-light:    #EEF9E0;   /* light mint cream */
  --olive:         #3A6A15;   /* deep leaf green */
  --olive-light:   #E4F2D0;   /* pale green */

  /* Shifts */
  --morning:       #F59E0B;
  --morning-light: #FFFBEB;
  --morning-dark:  #92400E;
  --closing:       #3B82F6;
  --closing-light: #EFF6FF;
  --closing-dark:  #1E3A8A;
  --both:          #10B981;
  --both-light:    #ECFDF5;
  --both-dark:     #064E3B;

  /* Neutrals */
  --bg:            #FAF9F6;
  --surface:       #FFFFFF;
  --surface-2:     #F5F4F1;
  --border:        #E8E4DE;
  --border-soft:   #F0EDE8;
  --text:          #1C1917;
  --text-soft:     #78716C;
  --text-lighter:  #A8A29E;

  /* Shape */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 3px 10px rgba(0,0,0,0.05);
  --shadow:    0 2px 8px rgba(0,0,0,0.08), 0 8px 28px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10), 0 20px 56px rgba(0,0,0,0.08);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Made by ──────────────────────────────────────────────────────────────── */
/* ── Page label ───────────────────────────────────────────────────────────── */
.page-label {
  font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0.55; margin-top: 6px;
  position: relative; z-index: 1;
}

.page-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 18px 20px;
  font-family: 'Nunito', sans-serif;
}
.made-by {
  font-size: 10px; font-weight: 600;
  color: rgba(0,0,0,0.30);
  pointer-events: none;
}
.portoinc-badge {
  font-size: 10px; font-weight: 700;
  color: rgba(0,0,0,0.22);
  pointer-events: none;
  letter-spacing: 0.04em;
}
.portoinc-badge span {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Page loader ──────────────────────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: #2E1A06;
  transition: opacity 0.4s ease;
}
#page-loader.fade-out { opacity: 0; pointer-events: none; }

/* Login transition loader — same branding, triggered by JS */
#login-loader {
  position: fixed; inset: 0; z-index: 88888;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: #2E1A06;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#login-loader.visible  { opacity: 1; pointer-events: auto; }
#login-loader.fade-out { opacity: 0; pointer-events: none; }
.loader-logo {
  width: 180px; height: 110px;
  object-fit: cover; object-position: center;
}
.loader-dots {
  display: flex; gap: 8px;
}
.loader-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0);    opacity: 0.4; }
  40%            { transform: translateY(-8px); opacity: 1;   }
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: white; padding: 11px 22px;
  border-radius: 100px; font-size: 13px; font-weight: 500;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap; letter-spacing: 0.1px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
#toast.show { opacity: 1; }
#toast.error   { background: #DC2626; }
#toast.success { background: #16A34A; }

/* ══════════════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════════════════════════════════ */

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; border-radius: var(--radius);
  padding: 13px 22px; transition: all 0.18s; text-decoration: none;
  letter-spacing: 0.1px; line-height: 1;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--red); color: white; width: 100%;
  box-shadow: 0 1px 3px rgba(139,26,26,0.3), 0 4px 12px rgba(139,26,26,0.2);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-dark);
  box-shadow: 0 2px 6px rgba(139,26,26,0.35), 0 6px 20px rgba(139,26,26,0.25);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: white; width: 100%;
  box-shadow: 0 1px 3px rgba(95,168,26,0.3), 0 4px 12px rgba(95,168,26,0.2);
}
.btn-gold:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }

.btn-orange {
  background: var(--red); color: white; width: 100%;
  box-shadow: 0 1px 3px rgba(139,26,26,0.3), 0 4px 12px rgba(139,26,26,0.2);
}
.btn-orange:hover:not(:disabled) {
  background: var(--red-dark);
  box-shadow: 0 2px 6px rgba(139,26,26,0.35), 0 6px 20px rgba(139,26,26,0.25);
  transform: translateY(-1px);
}

.btn-green {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: white;
  box-shadow: 0 1px 3px rgba(95,168,26,0.3), 0 4px 12px rgba(95,168,26,0.2);
}
.btn-green:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }

/* ── Team schedule overlay ────────────────────────────────────────────────── */
.team-sched-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column;
}
.team-sched-overlay.hidden { display: none; }
.team-sched-inner { display: flex; flex-direction: column; height: 100%; max-width: 900px; margin: 0 auto; width: 100%; }
.team-sched-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.team-sched-title { font-size: 19px; font-weight: 700; }
.team-sched-close {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-soft); padding: 4px 8px; line-height: 1;
}
.team-sched-scroll { flex: 1; overflow-y: auto; overflow-x: auto; padding: 0 0 32px; }
.team-sched-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 11px; }
.team-sched-table th {
  background: #8B1A1A; color: #fff; padding: 6px 4px; text-align: center; font-weight: 600; font-size: 11px;
}
.team-sched-table th .ts-date {
  display: inline-block; background: #fff; color: #8B1A1A;
  font-size: 10px; font-weight: 700; padding: 1px 4px;
  border-radius: 3px; margin-top: 2px;
}
.team-sched-table td { padding: 5px 4px; border: 1px solid var(--border-soft); text-align: center; font-size: 11px; }
.team-sched-table td.ts-name { text-align: left; font-weight: 600; background: var(--surface-2); }
.team-sched-table td.ts-mine { background: #FFF3E0; font-weight: 600; }
.team-sched-table td.ts-assigned { background: var(--surface); }
.team-sched-table tr:nth-child(even) td { background: var(--surface-2); }
.team-sched-table tr:nth-child(even) td.ts-mine { background: #FFE0B2; }

.btn-secondary {
  background: var(--surface-2); color: var(--text); width: 100%;
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--border-soft); }

.btn-outline {
  background: transparent; color: var(--red); width: auto;
  border: 1.5px solid var(--red);
}
.btn-outline:hover:not(:disabled) { background: var(--red-light); }
.btn-outline.active { background: var(--red); color: #fff; }

.btn-sm {
  font-size: 12px; padding: 8px 14px; border-radius: var(--radius-sm);
  width: auto;
}

/* ── Form elements ────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  letter-spacing: 0.3px; text-transform: uppercase;
}
.form-group input,
.form-group select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  background: var(--surface); color: var(--text);
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.10);
}
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.form-row .form-group { flex: 1; min-width: 130px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); }

/* ── Card surface ─────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
}

/* ── Status badges ────────────────────────────────────────────────────────── */
.week-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.week-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.status-collecting { background: var(--gold-light);    color: var(--gold); }
.status-building   { background: var(--closing-light); color: var(--closing); }
.status-published  { background: var(--both-light);    color: var(--both); }
.status-pending    { background: #F3F4F6; color: #9CA3AF; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px); z-index: 6000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 28px 32px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-soft);
}
.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.modal p  { font-size: 13px; color: var(--text-soft); margin-bottom: 22px; line-height: 1.5; }
.modal .form-group { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

/* Wide availability detail modal */
.avail-detail-modal {
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Clickable availability rows */
tr.avail-row-clickable { cursor: pointer; }
tr.avail-row-clickable:hover td { background: var(--red-light); }

/* Availability status badges */
.avail-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
}
.badge-submitted { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.badge-boss      { background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }
.badge-pending   { background: #F5F5F5; color: #9E9E9E; border: 1px solid #E0E0E0; }

/* ── Log table ────────────────────────────────────────────────────────────── */
.log-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.log-table th {
  text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: #888;
  border-bottom: 2px solid var(--border); background: #fafafa;
}
.log-row td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.log-row:hover td { background: #fafafa; }
.log-ts    { color: #888; font-size: 12px; white-space: nowrap; }
.log-route { font-family: monospace; font-size: 11px; color: #666; word-break: break-all; }
.log-msg   { color: var(--text); }
.log-ctx   { font-size: 11px; color: #aaa; margin-top: 3px; font-family: monospace; }

.log-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.log-info  { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }
.log-warn  { background: #FFF8E1; color: #E65100; border: 1px solid #FFE082; }
.log-error { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }

/* ══════════════════════════════════════════════════════════════════════════════
   EMPLOYEE PAGE
══════════════════════════════════════════════════════════════════════════════ */

.emp-page {
  max-width: 460px; margin: 0 auto; padding-bottom: 48px; min-height: 100vh;
}

/* ── Hero header ──────────────────────────────────────────────────────────── */
.emp-header {
  background:
    linear-gradient(rgba(22,12,2,0.60), rgba(22,12,2,0.60)),
    url('/images/ShawarmaRollups.jpg') center 40% / cover no-repeat;
  color: white; text-align: center;
  padding: 40px 24px 32px;
  border-radius: 0 0 28px 28px;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.emp-header::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.emp-header::after {
  content: ''; position: absolute; bottom: -16px; left: -16px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
/* Logo image replaces text wordmark */
.emp-header .header-logo-img {
  width: 240px; height: 130px;
  object-fit: cover; object-position: center;
  display: block; margin: 0 auto 4px;
  mix-blend-mode: screen;
  position: relative; z-index: 1;
}
/* Fallback text if image missing */
.emp-header .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px; font-weight: 800; letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative; z-index: 1;
}
.emp-header .tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: 0.8; margin-top: 4px;
  position: relative; z-index: 1;
}
#logout-wrap {
  margin-top: 16px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
#logged-in-name {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0.2px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#logout-wrap .btn-outline {
  color: rgba(255,255,255,0.90); border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12); font-size: 12px; padding: 6px 14px;
  backdrop-filter: blur(4px);
}
#logout-wrap .btn-outline:hover { background: rgba(255,255,255,0.22); }

/* ── Content padding ──────────────────────────────────────────────────────── */
.emp-page > div:not(.emp-header) { padding: 0 18px; }

/* ── Login card ───────────────────────────────────────────────────────────── */
.login-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border-soft);
  padding: 32px 28px;
}
.login-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.login-card p  { font-size: 14px; color: var(--text-soft); margin-bottom: 24px; line-height: 1.5; }

.pin-input {
  width: 100%; font-size: 36px; font-weight: 700;
  letter-spacing: 16px; text-align: center; text-indent: 16px; caret-color: transparent;
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-text-security: disc; background: var(--surface-2);
  font-family: 'Inter', sans-serif;
  margin-bottom: 18px;
}
.login-error {
  color: #DC2626; font-size: 14px; font-weight: 600;
  text-align: center; margin: -10px 0 14px;
  padding: 10px 14px; border-radius: var(--radius);
  background: #FEF2F2; border: 1px solid #FECACA;
}

.pin-input:focus {
  border-color: var(--red); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(139,26,26,0.10);
}

/* ── Numpad ───────────────────────────────────────────────────────────────── */
.numpad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 18px;
}
.numpad-key {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 22px; font-weight: 600;
  padding: 16px 0; cursor: pointer; transition: background 0.12s, transform 0.08s;
  font-family: 'Inter', sans-serif; color: var(--text);
  box-shadow: var(--shadow-xs);
}
.numpad-key:active { background: var(--border); transform: scale(0.95); }
.numpad-back { font-size: 20px; color: var(--text-soft); }
.numpad-empty { /* spacer */ }

/* ── Week heading ─────────────────────────────────────────────────────────── */
.week-heading { margin-bottom: 18px; }
.week-heading h2 { font-size: 19px; font-weight: 700; }
.sched-heading-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sched-refresh-btn {
  flex-shrink: 0;
  font-size: 15px; padding: 12px 20px; border-radius: var(--radius);
  min-width: 100px; font-weight: 600;
}
.week-range { font-size: 13px; color: var(--text-soft); margin-top: 3px; }

/* ── Mode toggle ──────────────────────────────────────────────────────────── */
.mode-toggle {
  display: flex; background: var(--surface-2); border-radius: var(--radius);
  padding: 4px; margin-bottom: 18px; gap: 4px;
  border: 1px solid var(--border-soft);
}
.mode-toggle button {
  flex: 1; border: none; background: transparent;
  padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--text-soft); transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.mode-toggle button.active {
  background: var(--surface); color: var(--red);
  box-shadow: var(--shadow-xs); border: 1px solid var(--border-soft);
}

/* ── Week availability grid (shift mode) ─────────────────────────────────── */
.week-avail-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
  overflow-x: auto;
}
.avail-day-header {
  text-align: center;
  padding: 6px 4px 8px;
  border-bottom: 2px solid var(--border-soft);
  grid-column: auto;
}
.avail-day-name { font-size: 13px; font-weight: 700; }
.avail-day-date { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

/* ── Day cards (kept for safety) ─────────────────────────────────────────── */
.day-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); border: 1.5px solid var(--border-soft);
  padding: 16px; margin-bottom: 10px; transition: border-color 0.2s;
}
.day-card.has-selection { border-color: var(--border); }
.day-name { font-size: 14px; font-weight: 700; margin-bottom: 11px; }
.day-date { font-size: 12px; color: var(--text-soft); font-weight: 400; margin-left: 5px; }

/* ── Shift buttons ────────────────────────────────────────────────────────── */
.shift-btns { display: flex; gap: 8px; }
.shift-btn {
  width: 100%; border: 1.5px solid var(--border); background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 11px 4px; font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: center; transition: all 0.18s; color: var(--text-lighter);
  font-family: 'Inter', sans-serif; line-height: 1.4;
}
.shift-btn:hover { border-color: var(--border); color: var(--text-soft); background: var(--surface); }
.shift-btn.sel-morning { background: var(--morning-light); border-color: var(--morning); color: var(--morning-dark); }
.shift-btn.sel-closing { background: var(--closing-light); border-color: var(--closing); color: var(--closing-dark); }
.shift-btn.sel-both    { background: var(--both-light);    border-color: var(--both);    color: var(--both-dark); }

/* ── Hour grid (Calendly-style) ───────────────────────────────────────────── */
.hg-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  user-select: none;
  -webkit-user-select: none;
}

.hg-grid {
  display: grid;
  grid-template-columns: 52px repeat(6, minmax(44px, 1fr));
  min-width: 340px;
}

/* ── Corner + caps ──────────────────────────────────────────────────────────── */
.hg-corner {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.hg-bottom-cap {
  height: 6px;
  background: var(--surface-2);
  border-top: 1px solid var(--border-soft);
}
.hg-bottom-cap:first-child { border-radius: 0 0 0 var(--radius-lg); }
.hg-bottom-cap:last-child  { border-radius: 0 0 var(--radius-lg) 0; }

/* ── Day headers ────────────────────────────────────────────────────────────── */
.hg-day-header {
  text-align: center;
  padding: 12px 4px 10px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  border-left: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 2;
}
.hg-day-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hg-day-date {
  font-size: 11px;
  color: var(--text-lighter);
  margin-top: 2px;
  font-weight: 400;
}

/* ── Hour labels ────────────────────────────────────────────────────────────── */
.hg-hour-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-lighter);
  letter-spacing: 0.2px;
  height: 38px;
  border-right: 2px solid var(--border);
  box-sizing: border-box;
}
.hg-hour-label.zone-morning { color: var(--morning-dark); opacity: 0.7; }
.hg-hour-label.zone-closing { color: var(--closing-dark); opacity: 0.7; }

/* ── Shift divider (3pm row top border) ────────────────────────────────────── */
.shift-divide {
  border-top: 2px solid var(--border) !important;
}

/* ── Cells ──────────────────────────────────────────────────────────────────── */
.hg-cell {
  height: 38px;
  background: var(--surface);
  border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.1s;
  box-sizing: border-box;
  position: relative;
}
.hg-cell:hover {
  background: var(--surface-2);
}

/* Morning zone hover tint */
.hg-cell.zone-morning:hover,
.hg-hour-label.zone-morning ~ .hg-cell:not(.sel-morning):not(.sel-closing):hover {
  background: #FFFBF0;
}

/* Selected states — full-cell fill */
.hg-cell.sel-morning {
  background: #FDE68A;
  border-color: rgba(245,158,11,0.4);
}
.hg-cell.sel-morning:hover { background: #FCD34D; }

.hg-cell.sel-closing {
  background: #BFDBFE;
  border-color: rgba(59,130,246,0.35);
}
.hg-cell.sel-closing:hover { background: #93C5FD; }

/* Read-only grid (schedule view — no interaction) */
.hg-grid.hg-readonly .hg-cell                    { cursor: default; }
.hg-grid.hg-readonly .hg-cell:hover              { background: var(--surface); }
.hg-grid.hg-readonly .hg-cell.sel-morning:hover  { background: #FDE68A; }
.hg-grid.hg-readonly .hg-cell.sel-closing:hover  { background: #BFDBFE; }

/* ── Legend ─────────────────────────────────────────────────────────────────── */
.hg-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.hg-legend span { display: flex; align-items: center; gap: 6px; }
.hg-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.hg-legend-swatch.morning {
  background: var(--morning-light);
  border: 1.5px solid var(--morning);
}
.hg-legend-swatch.closing {
  background: var(--closing-light);
  border: 1.5px solid var(--closing);
}
.hg-legend-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-lighter);
  font-style: italic;
}

/* ── Submit section ───────────────────────────────────────────────────────── */
.submit-section { margin-top: 24px; }
.submit-note { font-size: 13px; color: var(--text-soft); text-align: center; margin-bottom: 14px; line-height: 1.5; }

/* ── Status cards ─────────────────────────────────────────────────────────── */
.status-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border-soft);
  padding: 36px 28px; text-align: center; margin-top: 8px;
}
.status-card .status-icon { font-size: 48px; margin-bottom: 16px; line-height: 1; }
.status-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.status-card p  { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.status-card .actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* Submitted status card — green tint */
.submitted-status-card {
  border-color: #A5D6A7;
  background: #F1F8E9;
}

/* ── Schedule view (employee) ─────────────────────────────────────────────── */
.schedule-day {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); border: 1px solid var(--border-soft);
  padding: 14px 18px; margin-bottom: 9px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.schedule-day .day-label { font-size: 14px; font-weight: 700; }
.coworker-list {
  font-size: 11px; color: var(--text-soft); margin-top: 5px;
}

/* Coworker section below the hours grid */
.sched-coworkers-section {
  margin-top: 18px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-xs);
  padding: 14px 18px;
}
.sched-coworkers-heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 10px;
}
.sched-coworker-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 0; border-top: 1px solid var(--border-soft);
}
.sched-coworker-row:first-of-type { border-top: none; }
.sched-coworker-day {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-lighter); min-width: 28px;
}
.sched-coworker-names { font-size: 13px; color: var(--text); }
.shift-label {
  font-size: 12px; font-weight: 600; padding: 5px 13px;
  border-radius: 100px; letter-spacing: 0.1px; white-space: nowrap; flex-shrink: 0;
}
.shift-label.morning { background: var(--morning-light); color: var(--morning-dark); }
.shift-label.closing { background: var(--closing-light); color: var(--closing-dark); }
.shift-label.both    { background: var(--both-light);    color: var(--both-dark); }
.shift-label.off     { background: var(--surface-2);     color: var(--text-lighter); }

/* ── Food photo strip ─────────────────────────────────────────────────────── */
.photo-strip {
  display: flex; gap: 8px; padding: 0 18px; margin-top: 36px;
  overflow: hidden; border-radius: var(--radius-lg);
}
.photo-strip img {
  flex: 1; height: 90px; object-fit: cover;
  border-radius: var(--radius); opacity: 0.82;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 0;
}
.photo-strip img:first-child { border-radius: var(--radius) 0 0 var(--radius); flex: 1.3; }
.photo-strip img:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.photo-strip img:hover { opacity: 1; transform: scale(1.02); }

/* ── Submitted banner ─────────────────────────────────────────────────────── */
.submitted-card {
  background: var(--both-light); border: 1.5px solid var(--both);
  border-radius: var(--radius); padding: 18px 20px; text-align: center; margin-top: 18px;
}
.submitted-card h3 { color: var(--both-dark); font-size: 16px; margin-bottom: 5px; }
.submitted-card p  { font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════════════════════
   BOSS PAGE
══════════════════════════════════════════════════════════════════════════════ */
.boss-page { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.boss-topbar {
  background: #2E1A06;
  color: white; padding: 0 28px; height: 90px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.40);
  flex-shrink: 0;
}
.boss-topbar .brand {
  display: flex; align-items: center; gap: 10px;
}
.boss-topbar .topbar-logo {
  width: 155px; height: 80px;
  object-fit: cover; object-position: center;
  mix-blend-mode: screen;
  flex-shrink: 0;
}
.boss-topbar .brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 800; letter-spacing: 2px;
}
.boss-topbar .topbar-right { display: flex; align-items: center; gap: 14px; }
.boss-topbar #topbar-week-label { font-size: 12px; opacity: 0.75; font-weight: 500; }
.boss-topbar button {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
  color: white; padding: 7px 16px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: background 0.18s;
}
.boss-topbar button:hover { background: rgba(255,255,255,0.24); }

/* ── Boss login ───────────────────────────────────────────────────────────── */
#boss-login-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, #1C0E03 0%, #2E1A06 55%, #1A1E04 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
}
#boss-login-screen > div:first-child {
  margin-bottom: 0 !important; padding: 0 0 28px !important;
}
#boss-login-screen .login-card { width: 100%; max-width: 400px; }
.boss-login-brand {
  text-align: center; margin-bottom: 0;
}
.boss-login-brand .login-logo-img {
  width: 260px; height: 160px;
  object-fit: cover; object-position: center;
  display: block; margin: 0 auto 6px;
  mix-blend-mode: screen;
}
.boss-login-brand .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px; font-weight: 800; letter-spacing: 3px; color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.boss-login-brand .tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 1.5px;
  text-transform: uppercase; margin-top: 5px;
}
.boss-login-brand .page-label {
  color: rgba(255,255,255,0.55);
}

/* ── Main layout ──────────────────────────────────────────────────────────── */
.boss-main { display: flex; flex: 1; overflow: hidden; height: calc(100vh - 90px); }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.boss-sidebar {
  width: 210px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); padding: 16px 0;
  display: flex; flex-direction: column; overflow: hidden;
  transition: width 0.2s ease, padding 0.2s ease;
}
.boss-sidebar.collapsed {
  width: 0; padding: 0; border-right: none;
}
.sidebar-footer {
  margin-top: auto; padding: 20px 14px 16px;
  font-size: 8px; color: var(--text-lighter);
  letter-spacing: 0.03em; white-space: nowrap;
  overflow: hidden;
}
.sidebar-section {
  padding: 14px 18px 5px; font-size: 10px; font-weight: 700;
  color: var(--text-lighter); letter-spacing: 1.2px; text-transform: uppercase;
}
.sidebar-section:first-child { padding-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-soft);
  transition: all 0.15s; border: none; background: none; width: 100%;
  text-align: left; font-family: 'Inter', sans-serif; border-radius: 0;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--red-light); color: var(--red); font-weight: 700;
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--red); border-radius: 0 2px 2px 0;
}
.nav-icon {
  width: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-icon svg { width: 16px; height: 16px; stroke-width: 2; }

/* ── Content area ─────────────────────────────────────────────────────────── */
.boss-content { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg); }

/* ── Section heading ──────────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.section-head h2 { font-size: 18px; font-weight: 700; }
/* ── Schedule view toggle ─────────────────────────────────────────────────── */
.sched-view-toggle { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.sched-view-btn { padding: 6px 16px; font-size: 13px; font-weight: 500; border: none; background: var(--surface); color: var(--text-soft); cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s, color 0.15s; }
.sched-view-btn.active { background: var(--gold); color: #fff; font-weight: 600; }
.sched-view-btn:not(.active):hover { background: var(--surface-2); }

/* ── Day View ─────────────────────────────────────────────────────────────── */
.day-tab-strip { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.day-tab { padding: 7px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; color: var(--text-soft); transition: all 0.15s; }
.day-tab.active { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
.day-tab:not(.active):hover { background: var(--surface-2); }

.day-hour-table { border-collapse: collapse; font-size: 12px; width: 100%; }
.day-hour-table th { background: var(--gold); color: #fff; padding: 6px 4px; text-align: center; font-weight: 600; white-space: nowrap; }
.dv-emp-col { width: 1%; white-space: nowrap; text-align: left !important; padding-left: 10px !important; }
.dv-hour-col { min-width: 44px; }
.dv-emp-name { padding: 7px 10px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border-soft); white-space: nowrap; }
.dv-cell { padding: 7px 4px; text-align: center; border: 1px solid var(--border-soft); cursor: pointer; transition: background 0.1s; user-select: none; }
.dv-cell:hover { background: var(--gold-light); }
.dv-available { background: #E8F5E9; }
.dv-available:hover { background: #C8E6C9; }
.dv-scheduled { background: var(--gold); color: #fff; font-weight: 700; }
.dv-scheduled:hover { background: var(--olive); }
.dv-total { padding: 7px 10px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border-soft); white-space: nowrap; text-align: center; font-size: 12px; color: var(--olive); min-width: 36px; }
.btn-half-active { background: var(--gold) !important; color: #fff !important; border-color: var(--gold) !important; }

.export-dropdown-wrap { position: relative; }
.export-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200; min-width: 190px; overflow: hidden;
}
.export-dropdown.open { display: block; }
.export-dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  background: none; border: none; font-size: 13px; cursor: pointer; color: var(--text);
}
.export-dropdown button:hover { background: var(--surface-2); }

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.cal-panel {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
  padding: 20px 22px; margin-bottom: 22px;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.cal-title { display: flex; align-items: baseline; gap: 9px; }
.cal-month-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 800; transition: color 0.3s;
}
.cal-year-label { font-size: 15px; color: var(--text-soft); font-weight: 500; }
.cal-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.16s; color: var(--text-soft); line-height: 1;
  font-family: 'Inter', sans-serif;
}
.cal-arrow:hover { background: var(--surface-2); color: var(--text); transform: scale(1.08); }
.cal-day-labels {
  display: grid; grid-template-columns: repeat(6, 1fr); text-align: center;
  font-size: 10px; font-weight: 700; color: var(--text-lighter);
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 9px;
}
.cal-weeks { display: flex; flex-direction: column; gap: 5px; }
.cal-week-row {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: 9px; cursor: pointer; transition: all 0.18s; background: var(--surface);
  overflow: hidden;
}
.cal-week-row:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.10); transform: translateY(-1px); }
.cal-days-row { display: grid; grid-template-columns: repeat(6, 1fr); flex: 1; }
.cal-day { text-align: center; padding: 10px 4px; font-size: 13px; font-weight: 500; }
.cal-day.other-month { color: var(--text-lighter); font-weight: 400; }
.cal-day.today { font-weight: 800; }
.cal-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  margin: 0 10px; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.3px;
}
.cal-badge-collecting { background: var(--gold-light);    color: var(--gold); }
.cal-badge-building   { background: var(--closing-light); color: var(--closing); }
.cal-badge-published  { background: var(--both-light);    color: var(--both); }
.cal-selected-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft);
  flex-wrap: wrap; gap: 9px;
}

/* ── Schedule grid ────────────────────────────────────────────────────────── */
.schedule-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.schedule-grid {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden; min-width: 700px;
}
.schedule-grid th {
  background: var(--red); color: white; padding: 11px 8px;
  font-size: 12px; font-weight: 600; text-align: center;
  white-space: nowrap; letter-spacing: 0.2px;
}
.schedule-grid th:first-child { text-align: left; padding-left: 18px; width: 160px; }
.schedule-grid td {
  padding: 6px 6px; border: 1px solid var(--border-soft);
  vertical-align: middle; text-align: center;
}
.schedule-grid td:first-child {
  text-align: left; padding-left: 14px; font-weight: 600; font-size: 13px;
  background: var(--surface-2); border-right: 1px solid var(--border);
}
.schedule-grid tr:hover td { background: #F8F5F2; }
.schedule-grid tr:hover td:first-child { background: #EEE9E4; }

.cell-inner { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.shift-toggle { display: flex; gap: 3px; }
.tog-btn {
  font-size: 11px; font-weight: 700; padding: 4px 6px; border-radius: 5px;
  border: none; cursor: pointer; transition: all 0.15s; opacity: 0.28;
  flex: 1; text-align: center; font-family: 'Inter', sans-serif; letter-spacing: 0.3px;
  white-space: nowrap;
}
.tog-btn.morning { background: var(--morning-light); color: var(--morning-dark); }
.tog-btn.closing { background: var(--closing-light); color: var(--closing-dark); }
.tog-btn.morning.on { opacity: 1; box-shadow: 0 1px 4px rgba(245,158,11,0.3); }
.tog-btn.closing.on { opacity: 1; box-shadow: 0 1px 4px rgba(59,130,246,0.3); }
.tog-btn.suggested { border: 1.5px dashed currentColor; opacity: 0.55; }
.avail-dot { font-size: 10px; color: var(--text-lighter); }
.avail-none { color: var(--border); }
.count-row td {
  background: var(--surface-2); color: var(--text-soft);
  padding: 7px; border-top: 2px solid var(--border);
  vertical-align: top;
}
.count-m { color: var(--morning-dark); display: inline-block; margin-right: 8px; }
.count-c { color: var(--closing-dark); display: inline-block; }
.count-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.75; }
.count-num   { font-size: 18px; font-weight: 700; line-height: 1.1; }

/* ── Availability table ───────────────────────────────────────────────────── */
.avail-grid {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden; min-width: 600px;
  box-shadow: var(--shadow-sm);
}
.avail-grid th {
  background: var(--red); color: white; padding: 11px 8px;
  font-size: 12px; font-weight: 600; text-align: center;
}
.avail-grid th:first-child { text-align: left; padding-left: 18px; width: 160px; }
.avail-grid td { padding: 9px 6px; border: 1px solid var(--border-soft); text-align: center; font-size: 12px; }
.avail-grid td:first-child {
  text-align: left; padding-left: 14px; font-weight: 600; font-size: 13px;
  background: var(--surface-2);
}
.av-morning { background: var(--morning-light); color: var(--morning-dark); font-weight: 700; border-radius: 100px; padding: 2px 9px; font-size: 10px; letter-spacing: 0.3px; }
.av-closing { background: var(--closing-light); color: var(--closing-dark); font-weight: 700; border-radius: 100px; padding: 2px 9px; font-size: 10px; letter-spacing: 0.3px; }
.av-both    { background: var(--both-light);    color: var(--both-dark);    font-weight: 700; border-radius: 100px; padding: 2px 9px; font-size: 10px; letter-spacing: 0.3px; }
.av-hours   { background: #F5F3FF; color: #5B21B6; font-weight: 700; border-radius: 100px; padding: 2px 9px; font-size: 10px; }
.av-none    { color: var(--border); font-size: 18px; }
.not-submitted td { color: var(--text-lighter); }
.not-submitted td:first-child { color: var(--text-soft); }

/* ── Employee cards ───────────────────────────────────────────────────────── */
.emp-list { display: flex; flex-direction: column; gap: 10px; }
.emp-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); border: 1px solid var(--border-soft);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  transition: box-shadow 0.18s;
}
.emp-card:hover { box-shadow: var(--shadow-sm); }
.emp-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--red);
  color: white; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}
.emp-info { flex: 1; min-width: 0; }
.emp-info .emp-name { font-size: 14px; font-weight: 700; }
.emp-info .emp-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.emp-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
}
.badge-opener   { background: var(--morning-light); color: var(--morning-dark); }
.badge-closer   { background: var(--closing-light); color: var(--closing-dark); }
.badge-flexible { background: var(--both-light);    color: var(--both-dark); }
.badge-inactive { background: var(--surface-2);     color: var(--text-lighter); }
.emp-actions { display: flex; gap: 7px; }
.emp-actions button {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; cursor: pointer; font-size: 11px; font-weight: 600;
  color: var(--text-soft); font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.emp-actions button:hover { background: var(--surface-2); border-color: var(--text-lighter); }
.emp-actions .delete-btn { color: #DC2626; border-color: #FCA5A5; }
.emp-actions .delete-btn:hover { background: #FEF2F2; border-color: #DC2626; }

/* Danger button (used in modals) */
.btn-danger {
  background: #DC2626; color: white; border: none;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Add employee form ────────────────────────────────────────────────────── */
.add-emp-form {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
  padding: 22px 24px; margin-bottom: 20px;
}
.add-emp-form h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

/* ── Catering ─────────────────────────────────────────────────────────────── */
.catering-list { display: flex; flex-direction: column; gap: 10px; }
.catering-item {
  background: var(--gold-light); border: 1px solid #E8C870;
  border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-xs);
}
.catering-item .cat-info .cat-day { font-size: 14px; font-weight: 700; color: var(--gold); }
.catering-item .cat-info .cat-note { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.catering-item .del-btn {
  background: none; border: 1px solid #E8C870; border-radius: var(--radius-sm);
  padding: 6px 12px; cursor: pointer; font-size: 11px; font-weight: 600;
  color: var(--gold); font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.catering-item .del-btn:hover { background: var(--gold); color: white; border-color: var(--gold); }

/* ── Settings ─────────────────────────────────────────────────────────────── */
.settings-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
  padding: 24px; max-width: 460px; margin-bottom: 18px;
}
.settings-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

/* ── Week select (catering tab fallback) ──────────────────────────────────── */
.week-select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: 13px; font-weight: 500; cursor: pointer; background: var(--surface);
  color: var(--text); font-family: 'Inter', sans-serif; outline: none;
  transition: border-color 0.18s;
}
.week-select:focus { border-color: var(--red); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .boss-sidebar { display: none; }
  .boss-main    { height: calc(100vh - 90px); }
  .boss-content { padding: 14px; }
  .cal-month-name { font-size: 19px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SCHEDULE BUILDER MODAL
══════════════════════════════════════════════════════════════════════════════ */

/* ── Full-screen overlay ────────────────────────────────────────────────────── */
#sbd-overlay {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; flex-direction: column;
}

/* ── Dialog fills the whole screen ──────────────────────────────────────────── */
.sbd-dialog {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.sbd-header {
  background: #2E1A06;
  color: white;
  height: 60px; flex-shrink: 0;
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.sbd-header-left { flex: 1; min-width: 0; }

.sbd-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 800; letter-spacing: 0.5px;
  white-space: nowrap;
}

.sbd-week-label {
  font-size: 11px; opacity: 0.6; font-weight: 500; margin-top: 1px;
}

.sbd-tabs { display: flex; gap: 4px; }

.sbd-tab {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 7px 18px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: background 0.18s;
}

.sbd-tab.active,
.sbd-tab:hover { background: rgba(255,255,255,0.24); }

.sbd-close {
  background: rgba(255,255,255,0.10); border: 1.5px solid rgba(255,255,255,0.22);
  color: white; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s; flex-shrink: 0; font-family: 'Inter', sans-serif;
}
.sbd-close:hover { background: rgba(255,255,255,0.26); }

/* ── Body: grid panel + employee panel ──────────────────────────────────────── */
.sbd-body {
  flex: 1; display: flex; overflow: hidden;
}

/* ── Left: grid panel ───────────────────────────────────────────────────────── */
.sbd-grid-panel {
  flex: 1; overflow: auto; padding: 20px;
  background: var(--bg);
}

/* Builder grid — wider columns than employee-facing hg-grid */
.sb-grid {
  display: grid;
  grid-template-columns: 52px repeat(6, minmax(110px, 1fr));
  min-width: 720px;
}

/* Heat-map cells */
.sb-cell {
  height: 34px;
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
  cursor: pointer;
  transition: filter 0.1s;
  box-sizing: border-box;
  position: relative;
}
.sb-cell:hover { filter: brightness(0.84); }
.sb-cell.sb-selected {
  outline: 2.5px solid var(--red);
  outline-offset: -2px;
  z-index: 1;
}
.sb-cell.sb-drop-hover {
  outline: 2.5px dashed var(--red);
  outline-offset: -3px;
  filter: brightness(0.82);
}

/* Assignment strip label (left column of strip row) */
.sb-strip-label {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 8px; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--text-lighter);
  border-right: 2px solid var(--border);
  border-top: 2.5px solid var(--border);
  background: var(--surface-2);
  box-sizing: border-box;
  min-height: 52px;
}

/* Assignment strip cell (one per day per zone) */
.sb-strip {
  min-height: 52px;
  border-left: 1px solid var(--border-soft);
  border-top: 2.5px solid var(--border);
  background: var(--surface);
  padding: 6px 8px;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px;
  cursor: pointer; box-sizing: border-box;
  transition: background 0.15s;
}
.sb-strip:hover   { background: var(--surface-2); }
.sb-strip.sb-selected {
  background: rgba(191,123,45,0.05);
  border-top-color: var(--red);
}
.sb-strip.sb-drop-hover {
  background: var(--red-light);
  border-top-color: var(--red);
  outline: 2.5px dashed var(--red);
  outline-offset: -3px;
}

/* Name chips inside assignment strips */
.sb-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 5px 2px 8px; border-radius: 100px;
  font-size: 10px; font-weight: 600; font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.sb-chip-assigned {
  background: #F3E8FF; color: #6D28D9; border: 1px solid #DDD6FE;
}
.sb-chip-remove {
  background: none; border: none; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 2px;
  color: #6D28D9; font-family: 'Inter', sans-serif;
  opacity: 0.55; transition: opacity 0.15s; flex-shrink: 0;
}
.sb-chip-remove:hover { opacity: 1; }

/* Legend row beneath the grid */
.sb-legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 14px; font-size: 11px; color: var(--text-soft);
}
.sb-legend-item { display: flex; align-items: center; gap: 6px; }
.sb-legend-swatch {
  width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0;
}

/* ── Right: employee panel ──────────────────────────────────────────────────── */
.sbd-emp-panel {
  width: 300px; flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex; flex-direction: column;
}

.sbd-panel-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
  color: var(--text-soft);
}
.sbd-panel-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.45; }
.sbd-panel-msg  { font-size: 13px; line-height: 1.65; }

.sbd-panel-content {
  padding: 18px; display: flex; flex-direction: column; gap: 16px;
}

.sbd-panel-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  padding-bottom: 12px; border-bottom: 1px solid var(--border-soft);
}

/* Section headings */
.sbd-section-heading {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 8px;
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.sbd-section-assigned { background: #F3E8FF; color: #6D28D9; }
.sbd-section-avail    { background: var(--both-light); color: var(--olive); }
.sbd-section-unavail  { background: var(--surface-2); color: var(--text-lighter); }

/* Employee chips in the panel */
.sbd-chips { display: flex; flex-direction: column; gap: 5px; }

.sbd-emp-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
  border: 1.5px solid transparent; user-select: none;
}

/* Assigned chip (purple) */
.sbd-chip-on {
  background: #F3E8FF; color: #6D28D9; border-color: #DDD6FE;
}
.sbd-chip-on:hover { background: #EDE9FE; }

/* Fully available chip (green) */
.sbd-chip-avail {
  background: var(--both-light); color: var(--olive);
  border-color: var(--olive-light); border-left: 3.5px solid var(--gold);
}
.sbd-chip-avail:hover { background: var(--gold-light); }

/* Partial availability chip (amber) */
.sbd-chip-partial {
  background: var(--morning-light); color: var(--morning-dark);
  border-color: rgba(245,158,11,0.3); border-left: 3.5px solid var(--morning);
}
.sbd-chip-partial:hover { background: #FEF3C7; }

/* Not available chip (gray) */
.sbd-chip-unavail {
  background: var(--surface-2); color: var(--text-lighter);
  border-color: var(--border-soft);
}
.sbd-chip-unavail:hover { background: var(--border); color: var(--text-soft); }

/* Drag-state */
.sbd-emp-chip.sbd-dragging { opacity: 0.4; transform: scale(0.96); }

/* Remove button inside assigned chip */
.sbd-chip-x {
  background: none; border: none; cursor: pointer;
  font-size: 17px; line-height: 1; padding: 0 2px;
  color: #6D28D9; font-family: 'Inter', sans-serif;
  opacity: 0.5; transition: opacity 0.15s; flex-shrink: 0;
}
.sbd-chip-x:hover { opacity: 1; }

/* Partial tag label */
.sbd-partial-tag {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; opacity: 0.65; margin-left: 4px; flex-shrink: 0;
}

/* Empty-state hint text */
.sbd-empty-hint {
  font-size: 12px; color: var(--text-lighter); font-style: italic;
  padding: 6px 2px;
}

/* Employee dot + color picker swatch */
.sbd-emp-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.sbd-color-wrap {
  display: inline-flex; align-items: center; cursor: pointer;
  flex-shrink: 0; margin-left: 4px;
}
.sbd-color-swatch {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  border: 1.5px solid rgba(0,0,0,0.15); flex-shrink: 0;
  transition: transform 0.15s; cursor: pointer;
}
.sbd-color-swatch:hover { transform: scale(1.35); }
.sbd-color-picker {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.sbd-color-wrap { position: relative; }

/* Partial hours detail */
.sbd-partial-hours {
  font-size: 10px; opacity: 0.65; font-weight: 400; margin-top: 2px;
}

/* Color-coded left border on all panel chips (override category bg) */
.sbd-emp-chip { border-left-width: 3.5px !important; }
.sbd-chip-on    { border-left-style: solid; }
.sbd-chip-avail { border-left-style: solid; }
.sbd-chip-partial { border-left-style: solid; }
.sbd-chip-unavail { border-left-style: solid; }

/* Strip chips now use employee colors (set inline), keep base shape */
.sb-chip-assigned {
  background: var(--surface-2); /* overridden inline */
  color: var(--text);           /* overridden inline */
  border: 1px solid var(--border-soft); /* overridden inline */
}
.sb-chip-remove { color: rgba(255,255,255,0.75); }
.sb-chip-remove:hover { color: white; opacity: 1; }

/* ── Builder: Timeline view ─────────────────────────────────────────────────── */
.sbt-wrap { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); }

.sbt-hdr-row {
  position: sticky; top: 0; z-index: 3;
  background: var(--surface-2); border-bottom: 2px solid var(--border);
  min-height: 36px;
}

.sbt-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface); min-height: 80px;
}
.sbt-row:last-child { border-bottom: none; }

.sbt-day-label {
  width: 60px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 8px 4px;
  border-right: 2px solid var(--border); gap: 3px;
}
.sbt-day-name {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-soft);
}
.sbt-day-date { font-size: 10px; color: var(--text-lighter); }

.sbt-zones { flex: 1; display: flex; }

.sbt-zone-lbl {
  flex: 1; padding: 8px 14px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  display: flex; align-items: center;
}
.sbt-zone-morning { background: rgba(245,158,11,0.07); border-right: 2px solid var(--border); }
.sbt-zone-closing { background: rgba(59,130,246,0.07); }
.sbt-zone-lbl.sbt-zone-morning { color: var(--morning-dark); }
.sbt-zone-lbl.sbt-zone-closing { color: var(--closing-dark); }

.sbt-zone {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; cursor: pointer; transition: filter 0.15s;
}
.sbt-zone.sbt-zone-morning { border-right: 2px solid var(--border); }
.sbt-zone:hover { filter: brightness(0.95); }
.sbt-zone.sbt-selected {
  outline: 2.5px solid var(--red); outline-offset: -2px; z-index: 1;
}
.sbt-zone.sb-drop-hover {
  outline: 2.5px dashed var(--red); outline-offset: -3px; background: var(--red-light) !important;
}

/* Availability heat bar inside timeline zone */
.sbt-avail-bar {
  display: flex; gap: 2px; height: 5px; border-radius: 3px; overflow: hidden;
}
.sbt-avail-seg {
  flex: 1; height: 100%; background: rgba(0,0,0,0.08); border-radius: 2px;
}
.sbt-avail-seg.has-avail { background: currentColor; }

.sbt-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.sbt-emp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 5px; border-radius: 100px;
  font-size: 11px; font-weight: 600; font-family: 'Inter', sans-serif;
  color: white; white-space: nowrap; user-select: none;
  transition: opacity 0.15s;
}
.sbt-emp-chip:hover { opacity: 0.82; }
.sbt-emp-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; flex-shrink: 0;
}
.sbt-remove-btn {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.65);
  font-size: 14px; line-height: 1; padding: 0 1px;
  font-family: 'Inter', sans-serif; transition: color 0.15s;
}
.sbt-remove-btn:hover { color: white; }

/* ── Builder: Board view ─────────────────────────────────────────────────────── */
.sbb-days {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 2px;
  align-items: start;
}

.sbb-day-col { display: flex; flex-direction: column; gap: 8px; }

.sbb-day-header {
  text-align: center; padding: 6px 4px 10px;
}
.sbb-hdr-name {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.9px; color: var(--text-soft);
}
.sbb-hdr-date {
  font-size: 10px; color: var(--text-lighter); margin-top: 2px;
}

.sbb-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1.5px solid var(--border-soft); box-shadow: var(--shadow-xs);
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; transition: all 0.15s; min-height: 110px;
}
.sbb-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.sbb-card.sbb-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(191,123,45,0.18), var(--shadow-sm);
}
.sbb-card.sb-drop-hover {
  border-color: var(--red); background: var(--red-light);
  outline: 2px dashed var(--red); outline-offset: -3px;
}

.sbb-card-header { display: flex; align-items: center; gap: 5px; }
.sbb-card-icon   { font-size: 13px; }
.sbb-card-shift  {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 2px 7px; border-radius: 100px;
}
.sbb-shift-morning { background: var(--morning-light); color: var(--morning-dark); }
.sbb-shift-closing { background: var(--closing-light); color: var(--closing-dark); }

.sbb-card-hours {
  font-size: 10px; color: var(--text-lighter);
}

.sbb-chips { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.sbb-emp-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; font-family: 'Inter', sans-serif;
  color: white; cursor: pointer; transition: opacity 0.15s; user-select: none;
}
.sbb-emp-chip:hover { opacity: 0.84; }
.sbb-emp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); flex-shrink: 0;
}
.sbb-remove {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.6);
  font-size: 15px; line-height: 1; padding: 0; margin-left: auto;
  font-family: 'Inter', sans-serif; transition: color 0.15s;
}
.sbb-remove:hover { color: white; }
.sbb-empty {
  font-size: 11px; color: var(--text-lighter); font-style: italic;
  padding: 4px 0;
}

/* ── Schedule table: week totals column ──────────────────────────────────── */
.totals-th {
  white-space: nowrap;
  border-left: 2px solid var(--border);
  text-align: center;
}
.totals-cell {
  text-align: center;
  border-left: 2px solid var(--border);
  white-space: nowrap;
  padding: 8px 10px;
}
.totals-shifts { font-weight: 600; font-size: 12px; color: var(--text); }
.totals-hours  { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

/* ── Builder: staffing targets ───────────────────────────────────────────── */
.sb-strip-meta {
  display: flex; align-items: center; gap: 5px;
  padding: 2px 6px 4px;
  font-size: 11px;
}
.sb-fill-count {
  font-weight: 600; color: var(--text-lighter);
  min-width: 26px; font-size: 11px;
}
.sb-fill-met { color: #388E3C; }
.sb-target-input {
  width: 38px; padding: 1px 4px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 11px; font-family: 'Inter', sans-serif;
  text-align: center; background: var(--bg); color: var(--text);
}
.sb-target-input:focus { outline: none; border-color: var(--red); }

/* ── Builder: auto-fill button in header ─────────────────────────────────── */
.sbd-autofill-btn { flex-shrink: 0; }

/* ── Custom shift button & label ─────────────────────────────────────────── */
.tog-btn.custom { background: var(--surface); color: var(--text-soft); border: 1px solid var(--border); font-size: 11px; padding: 3px 7px; border-radius: 3px; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s; }
.tog-btn.custom:hover { background: var(--surface-2); }
.tog-btn.custom.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.custom-label { font-size: 10px; color: var(--olive); font-weight: 600; margin-top: 2px; white-space: nowrap; }

/* ── Custom hours popup ───────────────────────────────────────────────────── */
.custom-hours-popup { position: fixed; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.18); z-index: 2000; min-width: 200px; }
.chp-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.chp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.chp-row label { min-width: 36px; color: var(--text-soft); font-weight: 500; }
.chp-row select { flex: 1; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: 'Inter', sans-serif; }
.chp-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 12px; }

/* ── Day view alternating columns ─────────────────────────────────────────── */
.dv-col-alt:not(.dv-scheduled):not(.dv-available) { background: rgba(0,0,0,0.04); }
.dv-col-alt.dv-available { background: #d5ecd5; }
th.dv-col-alt { background: var(--olive) !important; }

/* ── Special employee separator ──────────────────────────────────────────── */
.special-sep-row td { background: var(--border-soft); height: 8px; border: none; padding: 0; }
