/* =========================================================
   Bhavani Shipping — Depot Dashboards (visual polish)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --navy: #16345a;
  --navy-deep: #0c2240;
  --navy-mid: #2b5585;
  --navy-glow: #3d74b0;
  --sky: #d7e8f7;
  --sky-soft: #eef5fb;
  --ice: #f5f9fd;
  --white: #ffffff;
  --text: #152536;
  --muted: #617589;
  --border: #c9d8e8;
  --green: #0f7a4a;
  --green-bg: #d8f3e5;
  --red: #c01d2e;
  --red-bg: #fde2e5;
  --red-soft: #fff0f1;
  --amber: #b45309;
  --peach: #ffefe4;
  --shadow: 0 10px 30px rgba(12, 34, 64, 0.10);
  --shadow-lg: 0 18px 40px rgba(12, 34, 64, 0.16);
  --radius: 16px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Outfit", "DM Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
  background-color: #e8f0f8;
  background-image:
    radial-gradient(ellipse 900px 480px at 8% -8%, rgba(61,116,176,0.35), transparent 60%),
    radial-gradient(ellipse 700px 420px at 100% 0%, rgba(22,52,90,0.28), transparent 55%),
    radial-gradient(ellipse 500px 300px at 70% 100%, rgba(15,122,74,0.08), transparent 50%),
    linear-gradient(165deg, #dbe8f5 0%, #eef4fa 42%, #e6eef6 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

/* ---------- Brand bar ---------- */
.brand-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  background:
    linear-gradient(125deg, #091a31 0%, var(--navy-deep) 35%, var(--navy) 72%, #2a5a8f 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.12);
  margin-bottom: 14px;
}

.brand-bar::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 68%);
  pointer-events: none;
}

.brand-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #5eb0ff, #7ee0b0 45%, transparent 80%);
}

.brand-left { position: relative; z-index: 1; }

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}

.brand-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6de3a3;
  box-shadow: 0 0 0 4px rgba(109,227,163,0.22);
  animation: pulseDot 1.8s ease infinite;
}

.brand-bar h1 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.brand-bar p {
  opacity: 0.82;
  font-size: 0.84rem;
  margin-top: 6px;
  font-weight: 500;
}

.brand-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

/* ---------- Tabs ---------- */
.tab-nav {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201,216,232,0.9);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(12,34,64,0.06);
}

.tab-nav a {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  padding: 13px 12px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  transition: all 0.25s ease;
  border: 1px solid transparent;
  overflow: hidden;
}

.tab-nav a:hover {
  background: rgba(215,232,247,0.7);
  transform: translateY(-1px);
}

.tab-nav a.active {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(22,52,90,0.28);
}

.tab-nav a span {
  display: block;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.72;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  margin-right: 6px;
  background: rgba(22,52,90,0.08);
  vertical-align: middle;
}

.tab-nav a.active .tab-num {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ---------- Panels ---------- */
.panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(201,216,232,0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.panel:hover {
  box-shadow: var(--shadow-lg);
}

.panel-head {
  position: relative;
  background: linear-gradient(100deg, var(--navy-deep), var(--navy) 55%, var(--navy-mid));
  color: var(--white);
  padding: 13px 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.panel-head::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08));
}

.panel-body { padding: 16px 18px; }

.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }

/* ---------- KPI cards ---------- */
.kpi {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f3f8fd);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 14px rgba(12,34,64,0.05);
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--navy-glow), var(--navy));
}

.kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(12,34,64,0.12);
}

.kpi .kpi-label {
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 14px 0;
  text-align: left;
}

.kpi .kpi-value {
  padding: 8px 14px 16px;
  text-align: left;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-deep);
  background: transparent;
  letter-spacing: -0.02em;
}

.kpi.kpi-danger::before { background: linear-gradient(180deg, #f07178, var(--red)); }
.kpi.kpi-danger .kpi-value { color: var(--red); }
.kpi.kpi-success::before { background: linear-gradient(180deg, #4ecf8e, var(--green)); }
.kpi.kpi-success .kpi-value { color: var(--green); }
.kpi.kpi-dark {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy-mid));
  border-color: transparent;
}
.kpi.kpi-dark::before { display: none; }
.kpi.kpi-dark .kpi-label { color: rgba(255,255,255,0.7); }
.kpi.kpi-dark .kpi-value { color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; }

table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  overflow: hidden;
  border-radius: 12px;
}

table.data th {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 11px 12px;
  text-align: left;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

table.data th:first-child { border-top-left-radius: 12px; }
table.data th:last-child { border-top-right-radius: 12px; }

table.data th.center,
table.data td.center { text-align: center; }

table.data th.right,
table.data td.right { text-align: right; }

table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4edf6;
  vertical-align: middle;
  background: #fff;
}

table.data tbody tr:nth-child(even) td { background: #f5f9fd; }
table.data tbody tr:hover td { background: #e7f1fb; }

table.data tfoot td {
  background: linear-gradient(90deg, var(--navy-deep), #1a3f6b);
  color: var(--white);
  font-weight: 700;
  padding: 11px 12px;
}

table.data tfoot td:first-child { border-bottom-left-radius: 12px; }
table.data tfoot td:last-child { border-bottom-right-radius: 12px; }

.bar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-track {
  flex: 1;
  height: 9px;
  background: #d9e6f2;
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f8dc6, #16345a);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(61,116,176,0.35);
}

/* ---------- Status helpers ---------- */
.text-red { color: var(--red); font-weight: 700; }
.text-green { color: var(--green); font-weight: 700; }

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: #fef3c7; color: var(--amber); }

.callout {
  border-radius: 12px;
  padding: 13px 15px;
  font-weight: 650;
  border: 1px solid transparent;
}
.callout-peach {
  background: linear-gradient(135deg, #fff4ec, #ffe3d4);
  color: var(--red);
  border-color: #f5c9b0;
}
.callout-red {
  background: linear-gradient(135deg, #fff5f6, #ffe3e6);
  color: var(--red);
  border-color: #f5c2c8;
}
.callout-green {
  background: linear-gradient(135deg, #eefaf4, #d8f3e5);
  color: var(--green);
  border-color: #b6e5cb;
}
.callout-sky {
  background: linear-gradient(135deg, #f0f7fd, #dcecf8);
  color: var(--navy);
  border-color: #bdd6eb;
}

/* ---------- Metric boxes (WhatsApp) ---------- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.metric-box {
  position: relative;
  border-radius: 14px;
  padding: 18px 14px 16px;
  text-align: center;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(12,34,64,0.06);
}

.metric-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(12,34,64,0.12);
}

.metric-box .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
}

.metric-sub {
  margin-top: 5px;
  color: #60758e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.metric-box .val {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mb-in {
  background: linear-gradient(160deg, #f4f8fc, #dce7f2);
  color: var(--navy);
  border-color: #c5d5e6;
}
.mb-out {
  background: linear-gradient(160deg, #d7e2ee, #b8c9db);
  color: var(--navy-deep);
  border-color: #a8bbd0;
}
.mb-net {
  background: linear-gradient(160deg, #ffe9eb, #f7c0c6);
  color: var(--red);
  border-color: #efb0b7;
}
.mb-stock {
  background: linear-gradient(145deg, #0f2748, #1e4a7a);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15,39,72,0.28);
}
.mb-stock .lbl { opacity: 0.75; color: #fff; }

.highlight-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.highlight-list li {
  position: relative;
  background: linear-gradient(90deg, #f5f9fd, #fff);
  border: 1px solid #e0ebf5;
  border-left: 4px solid var(--navy-glow);
  padding: 12px 14px 12px 16px;
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.highlight-list li:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(12,34,64,0.08);
}
.highlight-list li:nth-child(2) { border-left-color: var(--amber); }
.highlight-list li:nth-child(3) { border-left-color: var(--red); }
.highlight-list li:nth-child(4) { border-left-color: var(--green); }

.chart-box {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(201,216,232,0.9);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.chart-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.chart-box h3 {
  font-family: var(--display);
  font-size: 0.86rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-box h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--navy-glow), var(--navy));
}
.chart-canvas { position: relative; height: 260px; }

.actions-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  width: 130px;
}

.note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 4px;
}

.summary-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(12,34,64,0.06);
  overflow: hidden;
}
.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-glow), #7ee0b0);
}
.summary-card .sc-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.summary-card .sc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #d5e3f0;
  font-size: 0.9rem;
}
.summary-card .sc-row:last-child { border-bottom: 0; }
.summary-card .sc-row strong {
  font-family: var(--display);
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.cash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 12px;
}
.cash-item {
  background: linear-gradient(180deg, #f7fbfe, #e7f1fa);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}
.cash-item:hover { transform: translateY(-2px); }
.cash-item.total {
  background: linear-gradient(145deg, #e5f8ee, #c8efd9);
  border-color: #9fd9b8;
  box-shadow: 0 8px 20px rgba(15,122,74,0.12);
}
.cash-item .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cash-item .val {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.cash-item.total .val { color: var(--green); }

.repair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.repair-item {
  background: linear-gradient(180deg, #f7fbfe, #e8f1f9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: transform 0.2s ease;
}
.repair-item:hover { transform: translateY(-2px); }
.repair-item .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.repair-item .val {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-top: 8px;
}

.age-alert {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.section-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-soft);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 650;
}
.soft-chip.dark {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

.page-fade {
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(109,227,163,0.18); }
  50% { box-shadow: 0 0 0 7px rgba(109,227,163,0.08); }
}

.stagger > * {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.07s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.17s; }
.stagger > *:nth-child(5) { animation-delay: 0.22s; }
.stagger > *:nth-child(6) { animation-delay: 0.27s; }

@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-kpi, .metric-row, .summary-strip,
  .cash-grid, .repair-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand-bar { flex-direction: column; align-items: flex-start; }
  .grid-2, .grid-3, .grid-4, .grid-kpi, .summary-strip,
  .cash-grid, .repair-grid {
    grid-template-columns: 1fr;
  }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .tab-nav a { font-size: 0.78rem; padding: 10px 6px; }
  .tab-nav a span { display: none; }
  .kpi .kpi-value { font-size: 1.4rem; }
  .metric-box .val { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .metric-row { grid-template-columns: 1fr; }
}

/* ---------- HO report filters ---------- */
.report-filter { margin: 18px 0; padding: 18px 20px; }
.filter-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.filter-heading strong { display:block; color:var(--navy-deep); font:800 15px var(--display); letter-spacing:.25px; }
.filter-heading span { color:var(--muted); font-size:12px; }
.filter-heading .filter-default { background:var(--green-bg); color:var(--green); border-radius:20px; padding:6px 11px; font-weight:700; white-space:nowrap; }
.filter-grid { display:grid; grid-template-columns:1.2fr 1.2fr .8fr .8fr; gap:14px; }
.filter-field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.filter-field > span { color:var(--navy); font-size:12px; font-weight:800; }
.filter-field select, .filter-field input { width:100%; min-height:42px; border:1px solid var(--border); border-radius:9px; padding:9px 11px; background:#fff; color:var(--text); font:500 13px var(--font); outline:none; }
.filter-field select[multiple] { min-height:112px; padding:5px; }
.filter-field select:focus, .filter-field input:focus { border-color:var(--navy-glow); box-shadow:0 0 0 3px rgba(61,116,176,.12); }
.filter-field small { color:var(--muted); font-size:10px; line-height:1.4; }
.filter-actions { display:flex; align-items:center; gap:12px; margin-top:15px; }
.filter-apply { border:0; border-radius:8px; padding:10px 20px; background:var(--navy); color:#fff; font:700 12px var(--font); cursor:pointer; }
.filter-apply:hover { background:var(--navy-mid); }
.filter-reset { color:var(--navy); font-size:12px; font-weight:700; text-decoration:underline; }
.filter-error { margin-top:12px; color:var(--red); font-size:12px; }
@media (max-width:900px) { .filter-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:560px) { .filter-grid { grid-template-columns:1fr; } .filter-heading { align-items:flex-start; flex-direction:column; } .filter-actions { flex-wrap:wrap; } }
.filter-data-note { margin:-7px 0 16px; padding:10px 13px; border-left:3px solid var(--amber); border-radius:7px; background:#fff8ed; color:#7c4a12; font-size:11px; line-height:1.5; }
.filter-data-note code { font-weight:700; }

/* =========================================================
   HO REPORT FILTERS — refreshed control panel
   ========================================================= */
.report-filter.panel {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 1px solid rgba(155,181,211,.7);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(244,249,255,.97));
  box-shadow: 0 14px 34px rgba(12,34,64,.11), 0 2px 6px rgba(12,34,64,.04);
}
.filter-topline {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:20px 22px 17px; border-bottom:1px solid #e5edf6;
  background:linear-gradient(110deg,#fff 0%,#f4f8fd 100%);
  border-radius:20px 20px 0 0;
}
.filter-title-wrap {display:flex; align-items:center; gap:13px; min-width:0}
.filter-icon {
  display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px;
  color:#fff; font-size:22px; border-radius:13px;
  background:linear-gradient(145deg,#1d4777,#0b2343);
  box-shadow:0 7px 16px rgba(14,43,78,.2);
}
.filter-kicker {font-size:.64rem; font-weight:800; letter-spacing:.16em; color:#3973a9; text-transform:uppercase; margin-bottom:2px}
.filter-title-wrap h2 {font:800 1.12rem var(--display); color:#102d50; text-transform:uppercase; letter-spacing:.015em}
.filter-title-wrap p {font-size:.78rem; color:#718399; margin-top:2px}
.filter-default {display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; white-space:nowrap; color:#315b82; background:#eaf3fc; border:1px solid #d5e5f5; font-size:.72rem; font-weight:700}
.live-dot,.selection-pulse {width:7px;height:7px;border-radius:50%;background:#19a66a;box-shadow:0 0 0 4px rgba(25,166,106,.12)}
.filter-grid {display:grid;grid-template-columns:1.18fr 1.18fr .82fr .82fr;gap:14px;padding:19px 22px 17px}
.filter-field {display:flex;flex-direction:column;gap:7px;min-width:0}
.filter-label {display:flex;align-items:center;justify-content:space-between;gap:6px;color:#203c5d;font-size:.76rem;font-weight:800}
.field-hint {font-size:.63rem;font-weight:600;color:#8193a8}
.filter-field small {font-size:.66rem;color:#8393a5;line-height:1.35}
.multi-select {position:relative;min-width:0}
.multi-select summary {
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;
  list-style:none;cursor:pointer;padding:0 13px;border:1px solid #cbd9e8;border-radius:11px;
  color:#294866;background:#fff;font-size:.77rem;font-weight:700;
  box-shadow:inset 0 1px 2px rgba(16,45,80,.025);transition:border-color .2s,box-shadow .2s;
}
.multi-select summary::-webkit-details-marker {display:none}
.multi-select summary:hover,.multi-select[open] summary {border-color:#4e83b8;box-shadow:0 0 0 3px rgba(61,116,176,.11)}
.summary-chevron {font-size:1.1rem;color:#52799f;transition:transform .2s}
.multi-select[open] .summary-chevron {transform:rotate(180deg)}
.multi-menu {
  position:absolute;z-index:30;top:calc(100% + 8px);left:0;right:0;min-width:260px;
  padding:11px;background:#fff;border:1px solid #cbd9e8;border-radius:14px;
  box-shadow:0 18px 38px rgba(11,35,67,.2);
}
.multi-search {width:100%;height:37px;padding:0 11px;border:1px solid #d7e2ee;border-radius:9px;outline:none;font:500 .75rem var(--font);color:#203c5d}
.multi-search:focus {border-color:#4e83b8;box-shadow:0 0 0 3px rgba(61,116,176,.11)}
.multi-menu-actions {display:flex;justify-content:space-between;padding:8px 2px 6px}
.multi-menu-actions button {border:0;background:transparent;color:#3973a9;font:700 .68rem var(--font);cursor:pointer;padding:3px 5px}
.multi-options {max-height:220px;overflow:auto;border-top:1px solid #edf1f6;padding-top:5px}
.multi-option {display:flex;align-items:center;gap:9px;padding:8px 7px;border-radius:7px;color:#334e69;font-size:.72rem;cursor:pointer;line-height:1.3}
.multi-option:hover {background:#f0f6fc}
.multi-option input {width:15px;height:15px;accent-color:#1b4b7d;flex:0 0 auto}
.multi-option span {overflow-wrap:anywhere}
.multi-empty {padding:14px 7px;text-align:center;color:#8292a5;font-size:.72rem}
.date-input-wrap {display:flex;align-items:center;gap:8px;min-height:44px;padding:0 11px;border:1px solid #cbd9e8;border-radius:11px;background:#fff;color:#6c86a1}
.date-input-wrap:focus-within {border-color:#4e83b8;box-shadow:0 0 0 3px rgba(61,116,176,.11)}
.date-input-wrap input {width:100%;min-width:0;border:0;outline:0;background:transparent;color:#294866;font:700 .76rem var(--font)}
.filter-footer {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 22px 16px;border-top:1px solid #e8eef5;background:rgba(242,247,252,.7);border-radius:0 0 20px 20px}
.filter-selection-note {display:flex;align-items:center;gap:9px;color:#71849a;font-size:.7rem;font-weight:600}
.filter-actions {display:flex;align-items:center;gap:10px}
.filter-reset {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:10px;color:#54718e;font-size:.73rem;font-weight:800;border:1px solid #d7e2ed;background:#fff;transition:.2s}
.filter-reset:hover {background:#edf4fb;border-color:#b8cce0;color:#163d68}
.filter-apply {display:inline-flex;align-items:center;gap:18px;min-height:41px;padding:0 16px;border:0;border-radius:10px;color:#fff;background:linear-gradient(110deg,#15385f,#2e659a);font:800 .76rem var(--font);cursor:pointer;box-shadow:0 7px 15px rgba(22,52,90,.2);transition:transform .2s,box-shadow .2s}
.filter-apply:hover {transform:translateY(-1px);box-shadow:0 10px 20px rgba(22,52,90,.27)}
.filter-apply span:last-child {font-size:1rem}
.filter-data-note {margin:0 2px 14px;padding:9px 12px;border-left:3px solid #7da6cc;border-radius:0 8px 8px 0;background:rgba(255,255,255,.58);color:#6c8096;font-size:.68rem;line-height:1.5}
.filter-data-note code {font-size:.68rem;color:#315d88;background:#e9f1f9;padding:1px 4px;border-radius:4px}
.filter-error {margin:0 22px 16px;padding:10px 12px;border-radius:9px;background:#fff0f1;color:#b42332;font-size:.75rem}

@media (max-width: 980px) {
  .filter-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .multi-menu {min-width:0}
}
@media (max-width: 640px) {
  .app-shell {padding:12px 10px 30px}
  .filter-topline {align-items:flex-start;padding:16px}
  .filter-default {font-size:.63rem;padding:7px 9px}
  .filter-title-wrap p {max-width:230px}
  .filter-grid {grid-template-columns:1fr;padding:15px 16px}
  .filter-footer {align-items:stretch;flex-direction:column;padding:13px 16px 16px}
  .filter-actions {width:100%}
  .filter-reset,.filter-apply {flex:1}
  .multi-menu {min-width:100%}
}


/* ---------- Filter-first navigation flow ---------- */
.tab-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.tab-nav a:first-child.active { background:linear-gradient(135deg,#0d6b58,#159477); box-shadow:0 10px 22px rgba(13,107,88,.22); }
.tab-nav a:first-child.active .tab-num { background:rgba(255,255,255,.2); }
.filter-landing { margin-top:20px; margin-bottom:22px; }
.filter-landing .filter-topline { background:linear-gradient(110deg,#f7fbff 0%,#eaf3fc 55%,#e8f5f1 100%); }
.filter-landing .filter-apply { background:linear-gradient(110deg,#08775d,#13a17d); box-shadow:0 7px 16px rgba(8,119,93,.2); }
.filter-landing .filter-apply:hover { box-shadow:0 10px 20px rgba(8,119,93,.28); }
.applied-filter-strip { display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:12px 16px;border:1px solid #d4e4f2;border-radius:13px;background:linear-gradient(105deg,#fff,#f1f7fd);box-shadow:0 5px 16px rgba(12,34,64,.05); }
.applied-filter-strip > div { display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#5f748b;font-size:.72rem; }
.applied-filter-strip strong { color:#17385e;font-size:.78rem; }
.applied-filter-kicker { color:#18866c;font-size:.61rem;font-weight:900;letter-spacing:.1em; }
.applied-filter-strip a { display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #cbdced;border-radius:9px;background:#fff;color:#234e78;font-size:.7rem;font-weight:800;white-space:nowrap; }
.applied-filter-strip a:hover { background:#eaf3fc;border-color:#9ebbd8; }
@media(max-width:760px) { .tab-nav {grid-template-columns:repeat(2,minmax(0,1fr));} .applied-filter-strip {align-items:flex-start;flex-direction:column;} }
@media(max-width:420px) { .tab-nav {grid-template-columns:1fr 1fr;gap:5px;padding:6px;} .tab-nav a {padding:9px 5px;} .tab-nav a span {display:none;} }
