/* === ODISEA TOURS — STYLES === */
:root {
  --navy: #111111;
  --navy-light: #1a1a1a;
  --navy-mid: #222222;
  --amber: #ffb400;
  --amber-light: #ffcc4d;
  --amber-dark: #e6a200;
  --white: #FFFFFF;
  --gray-50: #F8F9FB;
  --gray-100: #EEF0F4;
  --gray-200: #D8DCE4;
  --gray-300: #B0B7C3;
  --gray-400: #7D8694;
  --gray-500: #5A6270;
  --gray-700: #2E3440;
  --green: #2ECC71;
  --green-bg: #E8F8EF;
  --red: #E74C3C;
  --red-bg: #FDECEB;
  --blue: #3498DB;
  --blue-bg: #EBF5FB;
  --yellow: #F39C12;
  --yellow-bg: #FEF5E7;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(17,17,17,0.08), 0 4px 12px rgba(17,17,17,0.04);
  --shadow-lg: 0 4px 16px rgba(17,17,17,0.12);
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: 0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-700);
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR === */
#sidebar {
  width: 230px;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 1.2rem 0;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--amber);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.nav-links {
  list-style: none;
  padding: 0.8rem 0;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.nav-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.nav-item.active {
  color: var(--amber-light);
  background: rgba(232,145,58,0.08);
  border-left-color: var(--amber);
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sidebar-footer {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* === MAIN CONTENT === */
#main-content {
  margin-left: 230px;
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1200px;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.page-header { margin-bottom: 1.6rem; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.page-header .subtitle {
  color: var(--gray-400);
  font-size: 0.92rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-500);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #27ae60; }
#sidebar .btn-outline {
  border-color: rgba(255,255,255,0.15);
  color: var(--gray-300);
  font-size: 0.78rem;
  width: 100%;
  justify-content: center;
}
#sidebar .btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.stat-card.amber::before { background: var(--amber); }
.stat-card.green::before { background: var(--green); }
.stat-card.blue::before { background: var(--blue); }
.stat-card.red::before { background: var(--red); }
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.3rem;
}
.stat-card .stat-sub {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
  line-height: 1.3;
}

/* === GRIDS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* === TABLES === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table thead th {
  background: var(--gray-50);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-100);
}
.data-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
}
.badge-draft { background: var(--gray-100); color: var(--gray-500); }
.badge-sent { background: var(--blue-bg); color: var(--blue); }
.badge-followup { background: var(--yellow-bg); color: var(--yellow); }
.badge-confirmed { background: var(--green-bg); color: var(--green); }
.badge-lost { background: var(--red-bg); color: var(--red); }
.badge-unpaid { background: var(--red-bg); color: var(--red); }
.badge-partial { background: var(--yellow-bg); color: var(--yellow); }
.badge-paid { background: var(--green-bg); color: var(--green); }
.badge-preparing { background: var(--blue-bg); color: var(--blue); }
.badge-inprogress { background: var(--yellow-bg); color: var(--yellow); }
.badge-completed { background: var(--green-bg); color: var(--green); }

/* === FORMS === */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,145,58,0.12);
}
.form-row {
  display: grid;
  gap: 1rem;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* === TOOLBAR === */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.toolbar select,
.toolbar input[type="text"] {
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--white);
}
.toolbar input[type="text"] { width: 220px; }
.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11,29,58,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* === QUOTE WIZARD === */
.quote-steps { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 2rem; box-shadow: var(--shadow); }
.step-indicators {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 1rem;
}
.step-ind {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-50);
  cursor: pointer;
  transition: var(--transition);
}
.step-ind.active {
  background: var(--amber);
  color: var(--white);
}
.step-ind.done {
  background: var(--green-bg);
  color: var(--green);
}
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

/* === ACTIVITY PRESETS === */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.preset-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--blue-bg);
  color: var(--blue);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.preset-chip:hover { background: var(--blue); color: white; }

/* === LIST ITEMS === */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}
.list-item:last-child { border-bottom: none; }
.list-item .li-title { font-weight: 600; color: var(--navy); }
.list-item .li-sub { font-size: 0.8rem; color: var(--gray-400); }
.list-item .li-amount { font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray-300);
  font-size: 0.9rem;
}

/* === ACTIVITY ROW === */
.activity-row {
  display: grid;
  grid-template-columns: 2fr 100px 60px auto auto 36px;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.activity-row input,
.activity-row select { padding: 0.45rem 0.6rem; font-size: 0.84rem; }
.activity-row .btn-sm { padding: 0.3rem 0.5rem; }

/* === COST SUMMARY BOX === */
.cost-summary {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  margin-top: 1rem;
}
.cost-summary h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--amber-light);
}
.cost-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cost-line:last-child { border-bottom: none; }
.cost-line.total {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 0.7rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: none;
}
.cost-line.total .cost-val { color: var(--amber-light); }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card .pc-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}
.price-card .pc-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.4rem 0;
}
.price-card .pc-currency {
  font-size: 0.8rem;
  color: var(--gray-400);
}
.price-card input {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.5rem;
  font-family: var(--font-body);
  margin-top: 0.3rem;
}
.price-card input:focus {
  outline: none;
  border-color: var(--amber);
}

/* === CHECKBOX === */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

/* === PRINT === */
@media print {
  #sidebar { display: none; }
  #main-content { margin-left: 0; padding: 1rem; }
  .tab-content { display: none !important; }
  .tab-content.printing { display: block !important; }
  .toolbar, .step-nav, .btn { display: none !important; }
  .modal-overlay { position: static; background: none; backdrop-filter: none; }
  .modal { box-shadow: none; max-height: none; width: 100%; max-width: 100%; padding: 0; }
}

/* === RESPONSIVE — TABLET === */
@media (max-width: 900px) {
  #sidebar { width: 60px; }
  .logo-text, .nav-item span, .sidebar-footer { display: none; }
  .logo { padding: 0.8rem; justify-content: center; }
  #main-content { margin-left: 60px; padding: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .form-row-3, .form-row-4 { grid-template-columns: 1fr 1fr; }
}

/* === RESPONSIVE — MOBILE === */
@media (max-width: 600px) {
  body { flex-direction: column; }

  /* Sidebar becomes a bottom nav bar */
  #sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    min-height: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    z-index: 200;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .logo { display: none; }
  .sidebar-footer { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 0;
    width: 100%;
  }
  .nav-item {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.4rem;
    border-left: none;
    border-top: 3px solid transparent;
    font-size: 0.6rem;
    min-width: 52px;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }
  .nav-item.active {
    border-left-color: transparent;
    border-top-color: var(--amber);
  }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item span { display: block; font-size: 0.6rem; line-height: 1.1; white-space: nowrap; }

  /* Main content full width, add bottom padding for nav */
  #main-content {
    margin-left: 0;
    padding: 1rem 0.75rem 5rem;
    max-width: 100%;
  }
  .page-header h1 { font-size: 1.3rem; }
  .page-header .subtitle { font-size: 0.8rem; }

  /* Stats grid */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem; }
  .stat-card { padding: 0.7rem 0.8rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-value { font-size: 1.1rem; }

  /* Cards & grids */
  .grid-2 { grid-template-columns: 1fr; gap: 0.5rem; }
  .pricing-cards { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; gap: 0.5rem; }
  .card { padding: 0.8rem; }

  /* Data tables: horizontal scroll */
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Toolbar */
  .toolbar { flex-wrap: wrap; gap: 0.4rem; }
  .toolbar select, .toolbar input { font-size: 0.8rem; padding: 0.4rem; }
  .toolbar .btn { font-size: 0.75rem; padding: 0.4rem 0.6rem; }

  /* Modals */
  .modal {
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
    margin: auto;
    padding: 1rem;
  }
  .modal h2 { font-size: 1.15rem; }
  .modal-actions { flex-wrap: wrap; gap: 0.4rem; }
  .modal-actions .btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

  /* Quote wizard */
  .step-indicators { display: flex; overflow-x: auto; gap: 0.3rem; padding-bottom: 0.5rem; }
  .step-ind { font-size: 0.72rem; padding: 0.3rem 0.5rem; white-space: nowrap; }

  /* Cost summary */
  .cost-summary { padding: 0.8rem; }
  .cost-line { font-size: 0.85rem; }

  /* Lists */
  .list-item { padding: 0.5rem 0; }
  .li-title { font-size: 0.85rem; }
  .li-sub { font-size: 0.75rem; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* === OVERDUE HIGHLIGHT === */
.overdue { color: var(--red) !important; font-weight: 600; }
.row-clickable { cursor: pointer; }
.row-clickable:hover { background: var(--gray-50); }

/* === MORNING BRIEFING === */
.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2332 100%);
  border-radius: var(--radius-lg);
  color: white;
}
.briefing-greeting {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.3rem;
}
.briefing-date {
  font-size: 0.92rem;
  opacity: 0.7;
}
.briefing-quick-stats {
  display: flex;
  gap: 1.5rem;
}
.bqs-item {
  text-align: center;
}
.bqs-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.bqs-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-top: 0.2rem;
}

/* KPI Row */
.briefing-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.briefing-kpi {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gray-200);
}
.briefing-kpi.green { border-left-color: var(--green); }
.briefing-kpi.red { border-left-color: var(--red); }
.briefing-kpi.amber { border-left-color: var(--amber); }
.briefing-kpi.blue { border-left-color: var(--blue); }
.bkpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  font-weight: 600;
}
.bkpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.2rem 0;
  color: var(--gray-700);
}
.bkpi-sub {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Sections */
.briefing-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.briefing-section.urgent {
  border-left: 4px solid var(--red);
}
.briefing-section.all-clear {
  border-left: 4px solid var(--green);
}
.bs-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.bs-header h2 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.bs-count {
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.briefing-section.today .bs-count { background: var(--amber); }
.bs-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bs-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-100);
}
.bs-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.bs-item.critical {
  border-color: var(--red);
  background: var(--red-bg);
}
.bs-item.high {
  border-color: var(--amber);
  background: var(--yellow-bg);
}
.bs-icon { font-size: 1.3rem; flex-shrink: 0; }
.bs-text { flex: 1; min-width: 0; }
.bs-title { font-weight: 600; font-size: 0.9rem; }
.bs-detail { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.1rem; }
.bs-arrow {
  width: 18px;
  height: 18px;
  color: var(--gray-300);
  flex-shrink: 0;
}
.all-clear-msg {
  font-size: 0.92rem;
  color: var(--green);
  font-weight: 600;
  padding: 0.5rem 0;
}

/* Week Grid */
.briefing-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.bw-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.bw-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow);
}
.bw-icon { font-size: 1.5rem; }
.bw-value { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.bw-label { font-size: 0.78rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.bw-detail { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.3rem; }

/* Pipeline */
.briefing-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bp-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.3rem 0;
}
.bp-stage:hover .bp-bar::after { opacity: 0.15; }
.bp-bar {
  flex: 1;
  height: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.bp-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--pct, 0%);
  min-width: 4px;
  background: var(--color, var(--gray-300));
  border-radius: var(--radius);
  transition: width 0.5s ease;
}
.bp-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 100px;
}
.bp-count { font-size: 1.1rem; font-weight: 700; color: var(--gray-700); }
.bp-label { font-size: 0.82rem; color: var(--gray-400); }
.bp-conversion {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: right;
  margin-top: 0.5rem;
}

/* Priorities */
.briefing-priorities {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bp-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-100);
}
.bp-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.bp-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bp-text { flex: 1; min-width: 0; }
.bp-text-title { font-weight: 600; font-size: 0.88rem; }
.bp-text-detail { font-size: 0.78rem; color: var(--gray-400); }
.bp-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--tag-color) 15%, transparent);
  color: var(--tag-color);
  flex-shrink: 0;
}

/* === ADMIN MESSAGE TABS === */
.admin-msg-tab {
  padding: 0.5rem 0.8rem;
  background: var(--gray-50);
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.admin-msg-tab:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.admin-msg-tab.active {
  background: white;
  color: var(--amber);
  border-bottom-color: var(--amber);
}

@media (max-width: 768px) {
  .briefing-header { padding: 1.2rem; }
  .briefing-greeting { font-size: 1.4rem; }
  .briefing-quick-stats { gap: 1rem; }
  .bqs-value { font-size: 1.3rem; }
  .briefing-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .briefing-week-grid { grid-template-columns: repeat(2, 1fr); }
}
