* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(860px 520px at 14% -8%, var(--glow-blue-a), transparent 62%),
    radial-gradient(640px 420px at 18% 78%, var(--accent-2-glow), transparent 66%),
    radial-gradient(980px 600px at 110% 20%, var(--glow-blue-b), transparent 60%),
    radial-gradient(520px 300px at 74% 8%, rgba(255, 159, 63, 0.11), transparent 72%),
    radial-gradient(420px 260px at 86% 34%, var(--accent-2-glow), transparent 72%),
    radial-gradient(620px 360px at 88% 86%, var(--accent-glow), transparent 72%),
    linear-gradient(145deg, var(--bg0), var(--bg1) 38%, var(--bg2));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.24s ease, color 0.2s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.05) 100%);
  background-size: 30px 30px;
}

.light body::before {
  opacity: 0.06;
}

.light .sidebar {
  box-shadow: 0 18px 34px rgba(49, 62, 89, 0.12);
}

.light .sidebar-footer {
  background: rgba(219, 226, 235, 0.72);
}

.light .tab-btn {
  color: #53657f;
}

.light .tab-btn:hover {
  color: #304259;
  background: linear-gradient(135deg, rgba(220, 226, 234, 0.94), rgba(204, 212, 223, 0.76));
  border-color: rgba(123, 135, 154, 0.2);
  box-shadow: 0 12px 24px rgba(77, 94, 129, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(175deg, var(--sidebar), var(--sidebar-2));
  border-right: 1px solid var(--border);
  padding: 1.15rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.55rem;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--primary), var(--primary-d));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(31, 80, 171, 0.22), 0 0 24px rgba(157, 167, 184, 0.12);
}

.light .brand-icon {
  border-color: rgba(88, 110, 146, 0.22);
  box-shadow: 0 10px 18px rgba(82, 101, 138, 0.14);
}

.brand-name {
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.side-title {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.35rem 0 0;
  padding: 0 0.6rem;
  font-weight: 600;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.tab-btn {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0.75rem 0.78rem;
  font-weight: 600;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: rgba(255, 159, 63, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(157, 167, 184, 0.07));
  box-shadow: 0 10px 22px rgba(6, 12, 28, 0.14);
  transform: translateX(3px);
}

.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-d) 60%, rgba(255, 159, 63, 0.66));
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(24, 72, 156, 0.34), 0 0 18px rgba(255, 159, 63, 0.14);
  transform: translateX(2px);
}

.light .tab-btn.is-active {
  color: #18314f;
  background: linear-gradient(180deg, rgba(197, 212, 232, 0.98), rgba(184, 201, 224, 0.98));
  border-color: rgba(92, 116, 156, 0.22);
  box-shadow: 0 10px 24px rgba(77, 94, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.nav-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
  flex: 0 0 auto;
}

.sidebar-footer {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel-soft);
  padding: 0.85rem;
}

.sidebar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  margin-bottom: 0.45rem;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-chip:hover {
  border-color: rgba(255, 159, 63, 0.22);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.09), rgba(157, 167, 184, 0.1));
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(5, 12, 26, 0.12);
}

.light .sidebar-chip {
  background: rgba(216, 223, 233, 0.76);
  color: #32455f;
}

.workspace {
  padding: 1.4rem clamp(1rem, 2.8vw, 2.35rem) 2rem;
  overflow: hidden;
}

.mobile-nav {
  display: none;
}

.app-error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
  color: #ffd7df;
  border-radius: 0.8rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
}

.light .app-error-banner {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.11);
}

.app-error-banner .btn-ghost {
  white-space: nowrap;
}

.recovery-panel {
  border: 1px solid rgba(157, 167, 184, 0.3);
  background: rgba(15, 23, 42, 0.55);
  margin-top: 1.25rem;
  padding: 0.85rem 0.95rem;
}

.light .recovery-panel {
  background: rgba(225, 231, 241, 0.82);
}

.recovery-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  cursor: pointer;
}

.recovery-summary::-webkit-details-marker {
  display: none;
}

.recovery-summary::after {
  content: "Afficher";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.recovery-panel[open] .recovery-summary::after {
  content: "Masquer";
}

.recovery-content {
  margin-top: 0.9rem;
}

.recovery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.recovery-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.recovery-meta {
  margin-top: 0.5rem;
}

.recovery-select-row {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.68);
}

.app-modal__panel {
  position: relative;
  z-index: 1;
  min-width: min(420px, 92vw);
  max-width: 560px;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 1rem;
}

.app-modal__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.app-modal__body {
  margin-top: 0.5rem;
  color: var(--muted);
}

.app-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.1rem;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease;
}

.light .app-header {
  background: linear-gradient(160deg, rgba(233, 238, 245, 0.92), rgba(223, 229, 238, 0.92));
}

.cockpit-bar {
  position: sticky;
  top: 0.65rem;
  z-index: 40;
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.97), rgba(26, 33, 44, 0.95));
  box-shadow: 0 18px 34px rgba(2, 8, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cockpit-bar::before {
  left: -3.2rem;
  top: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 159, 63, 0.1), rgba(157, 167, 184, 0.08) 44%, transparent 72%);
  opacity: 1;
  transform: none;
}

.light .cockpit-bar {
  background: linear-gradient(180deg, rgba(230, 235, 241, 0.96), rgba(220, 226, 234, 0.94));
  box-shadow: 0 18px 32px rgba(77, 94, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.light .cockpit-bar::before {
  background: radial-gradient(circle at center, rgba(216, 115, 22, 0.09), rgba(157, 167, 184, 0.1) 44%, transparent 72%);
}

.cockpit-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.cockpit-kpi {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(157, 167, 184, 0.04));
  padding: 0.55rem 0.62rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.light .cockpit-kpi {
  background: linear-gradient(165deg, rgba(223, 229, 237, 0.84), rgba(214, 221, 230, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cockpit-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 159, 63, 0.18);
  box-shadow: 0 14px 24px rgba(4, 10, 24, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kpi-title {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.kpi-main {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.26rem;
}

.kpi-delta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.kpi-hint {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.kpi-badge {
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.14rem 0.45rem;
  background: rgba(157, 167, 184, 0.08);
}

.kpi-badge.ok { color: var(--pos); border-color: rgba(16, 185, 129, 0.45); }
.kpi-badge.warn { color: #f59e0b; border-color: rgba(245, 158, 11, 0.45); }
.kpi-badge.alert { color: var(--neg); border-color: rgba(239, 68, 68, 0.45); }

.cockpit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
  padding-top: 0.1rem;
}

.location-row-ok { background: rgba(16, 185, 129, 0.07); }
.location-row-warn { background: rgba(245, 158, 11, 0.07); }
.location-row-alert { background: rgba(239, 68, 68, 0.09); }

.loc-actions {
  position: relative;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid var(--border);
  border-radius: 1.08rem;
  background: linear-gradient(180deg, rgba(21, 28, 38, 0.95), rgba(18, 24, 33, 0.94));
  box-shadow: 0 18px 32px rgba(2, 8, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.loc-actions::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: -3rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 159, 63, 0.1), rgba(157, 167, 184, 0.08) 44%, transparent 72%);
  pointer-events: none;
}

.light .loc-actions {
  background: linear-gradient(180deg, rgba(229, 235, 241, 0.96), rgba(220, 226, 234, 0.94));
  box-shadow: 0 18px 30px rgba(77, 94, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.light .loc-actions::before {
  background: radial-gradient(circle at center, rgba(216, 115, 22, 0.08), rgba(157, 167, 184, 0.1) 44%, transparent 72%);
}

.loc-actions > * {
  position: relative;
  z-index: 1;
}

.loc-toolbar-save {
  min-width: 150px;
}

.loc-toolbar-btn,
.loc-toolbar-control,
.loc-toolbar-toggle {
  min-height: 3.05rem;
  border-radius: 1rem;
}

.loc-toolbar-btn {
  padding-inline: 1rem;
}

.loc-toolbar-control {
  min-width: 180px;
  border: 1px solid rgba(157, 167, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(157, 167, 184, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.loc-toolbar-control:hover {
  border-color: rgba(255, 159, 63, 0.18);
}

.light .loc-toolbar-control {
  background: linear-gradient(180deg, rgba(233, 238, 244, 0.92), rgba(223, 229, 237, 0.9));
  border-color: rgba(123, 135, 154, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.loc-toolbar-toggle {
  padding: 0.42rem 0.72rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(157, 167, 184, 0.05));
}

.loc-toolbar-toggle .hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.light .loc-toolbar-toggle {
  background: linear-gradient(180deg, rgba(233, 238, 244, 0.92), rgba(223, 229, 237, 0.9));
}

.loc-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(24, 31, 41, 0.98), rgba(18, 25, 34, 0.98));
}

.light .loc-table thead th {
  background: linear-gradient(180deg, rgba(228, 234, 241, 0.99), rgba(219, 226, 234, 0.99));
}

.loc-table th:first-child,
.loc-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  background: linear-gradient(180deg, rgba(24, 31, 41, 0.99), rgba(18, 25, 34, 0.99));
  box-shadow: inset -1px 0 0 rgba(157, 167, 184, 0.16);
}

.light .loc-table th:first-child,
.light .loc-table td:first-child {
  background: linear-gradient(180deg, rgba(228, 234, 241, 0.99), rgba(219, 226, 234, 0.99));
  box-shadow: inset -1px 0 0 rgba(123, 135, 154, 0.14);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 0;
  letter-spacing: -0.01em;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.toolbar-more {
  position: relative;
}

.toolbar-more > summary {
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.toolbar-more > summary::-webkit-details-marker {
  display: none;
}

.toolbar-more[open] > summary {
  border-color: var(--ring);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(5, 12, 28, 0.18);
}

.toolbar-more > summary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 159, 63, 0.2);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.08), rgba(157, 167, 184, 0.08));
}

.toolbar-more-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 90;
  min-width: min(320px, 88vw);
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(14, 24, 48, 0.98), rgba(12, 20, 39, 0.98));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.26);
}

.light .toolbar-more[open] > summary {
  background: linear-gradient(135deg, rgba(221, 227, 236, 0.92), rgba(208, 216, 226, 0.82));
  box-shadow: 0 12px 26px rgba(77, 93, 127, 0.14);
}

.light .toolbar-more > summary:hover {
  background: linear-gradient(135deg, rgba(226, 231, 238, 0.92), rgba(212, 219, 228, 0.84));
  border-color: rgba(123, 135, 154, 0.18);
}

.light .toolbar-more-panel {
  background: linear-gradient(180deg, rgba(235, 239, 244, 0.98), rgba(223, 229, 237, 0.98));
  box-shadow: 0 18px 34px rgba(77, 93, 127, 0.18);
}

.toolbar-more-panel .btn,
.toolbar-more-panel .btn-ghost,
.toolbar-more-panel label.btn-ghost {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--border);
  border-radius: 1.18rem;
  padding: 1.08rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.78;
}

.card::before {
  content: "";
  position: absolute;
  left: -2.8rem;
  bottom: -3.2rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 159, 63, 0.14), rgba(157, 167, 184, 0.08) 46%, transparent 72%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.light .card {
  background: linear-gradient(160deg, rgba(237, 241, 246, 0.88), rgba(226, 232, 239, 0.92));
}

.light .card::after {
  opacity: 0.56;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 159, 63, 0.2);
  box-shadow: 0 22px 42px rgba(2, 8, 24, 0.28), 0 0 0 1px rgba(255, 159, 63, 0.05), 0 0 22px rgba(255, 159, 63, 0.08);
}

.card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.panel {
  padding: 1.22rem;
}

.btn {
  border: 0;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-d));
  color: #fff;
  padding: 0.56rem 0.94rem;
  font-weight: 700;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 22px rgba(31, 80, 171, 0.34), 0 0 0 1px rgba(255, 159, 63, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(31, 80, 171, 0.36), 0 0 18px rgba(255, 159, 63, 0.16);
}

.btn-ghost {
  border-radius: 0.76rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.49rem 0.8rem;
  font-weight: 600;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 159, 63, 0.24);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.1), rgba(157, 167, 184, 0.08));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 22, 48, 0.18);
}

.light .btn-ghost {
  background: rgba(221, 228, 238, 0.68);
  border-color: rgba(74, 92, 126, 0.18);
}

.light .btn-ghost:hover {
  color: #18314f;
  background: linear-gradient(135deg, rgba(239, 211, 184, 0.56), rgba(206, 213, 223, 0.78));
  border-color: rgba(194, 116, 30, 0.16);
  box-shadow: 0 10px 22px rgba(77, 94, 129, 0.12);
}

.light input,
.light select {
  background: rgba(226, 232, 241, 0.84);
  border-color: rgba(74, 92, 126, 0.2);
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(157, 167, 184, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 39, 52, 0.98), rgba(84, 95, 110, 0.94) 58%, rgba(216, 115, 22, 0.88));
  color: #fff;
  padding: 0.52rem 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(34, 42, 56, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  border-color: rgba(255, 159, 63, 0.32);
  box-shadow: 0 16px 30px rgba(34, 42, 56, 0.32), 0 0 20px rgba(255, 159, 63, 0.24);
}

.quick-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(157, 167, 184, 0.32), 0 14px 28px rgba(34, 42, 56, 0.32);
}

.light .quick-action-btn {
  border-color: rgba(98, 118, 154, 0.2);
  background: linear-gradient(135deg, rgba(114, 129, 154, 0.94), rgba(93, 108, 130, 0.96) 52%, rgba(216, 115, 22, 0.86));
  box-shadow: 0 14px 28px rgba(69, 89, 123, 0.16);
}

.light .quick-action-btn:hover {
  box-shadow: 0 16px 32px rgba(69, 89, 123, 0.18), 0 0 18px rgba(216, 115, 22, 0.18);
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.56rem 0.65rem;
  font-size: 0.95rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

textarea {
  width: 100%;
  min-height: 6.5rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(157, 167, 184, 0.05));
  color: var(--text);
  padding: 0.78rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: inherit;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.light textarea {
  background: linear-gradient(180deg, rgba(233, 238, 244, 0.92), rgba(223, 229, 237, 0.9));
  border-color: rgba(123, 135, 154, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

textarea::placeholder {
  color: var(--muted);
  opacity: 0.82;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(79, 158, 255, 0.25);
}

label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.58rem 0.6rem;
  vertical-align: middle;
}

th {
  color: var(--muted);
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

tbody tr {
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.loc-table tbody tr {
  position: relative;
}

.loc-table tbody tr:nth-child(even):not(:hover) {
  background-image: linear-gradient(90deg, rgba(157, 167, 184, 0.025), rgba(255, 255, 255, 0));
}

.light .loc-table tbody tr:nth-child(even):not(:hover) {
  background-image: linear-gradient(90deg, rgba(157, 167, 184, 0.08), rgba(255, 255, 255, 0));
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(255, 159, 63, 0.08), rgba(157, 167, 184, 0.05) 48%, rgba(255, 255, 255, 0.03));
  box-shadow: inset 3px 0 0 rgba(255, 159, 63, 0.5);
}

.light tbody tr:hover {
  background: linear-gradient(90deg, rgba(216, 115, 22, 0.1), rgba(198, 206, 218, 0.28) 54%, rgba(231, 236, 242, 0.24));
  box-shadow: inset 3px 0 0 rgba(216, 115, 22, 0.54);
}

[data-tip] {
  position: relative;
  cursor: help;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  min-width: 170px;
  max-width: 290px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.58rem;
  background: rgba(10, 20, 44, 0.97);
  color: #eaf2ff;
  font-size: 0.74rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  z-index: 70;
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: normal;
}

.light [data-tip]::after {
  background: rgba(229, 235, 243, 0.98);
  color: #0f172a;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after,
[data-tip].tip-open::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.71rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  margin-right: 0.24rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.table-muted-chip,
.table-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(157, 167, 184, 0.18);
  background: rgba(157, 167, 184, 0.08);
  color: var(--muted);
}

.table-mini-chip {
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.08), rgba(157, 167, 184, 0.06));
  color: var(--text);
}

.light .table-muted-chip,
.light .table-mini-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.light .table-muted-chip {
  background: rgba(220, 226, 235, 0.88);
}

.light .table-mini-chip {
  background: linear-gradient(135deg, rgba(238, 225, 213, 0.76), rgba(220, 226, 235, 0.82));
}

.alert-chip::before,
.status-pill::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  opacity: 0.78;
}

.alert-chip.alert {
  color: #fecdd3;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(82, 27, 36, 0.28));
  border-color: rgba(239, 68, 68, 0.35);
}

.alert-chip.warn {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(84, 53, 13, 0.28));
  border-color: rgba(245, 158, 11, 0.35);
}

.alert-chip.info {
  color: #d7dee7;
  background: linear-gradient(135deg, rgba(157, 167, 184, 0.15), rgba(54, 62, 75, 0.26));
  border-color: rgba(157, 167, 184, 0.3);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.33rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-pill.status-upcoming {
  color: #d7dee7;
  background: linear-gradient(135deg, rgba(157, 167, 184, 0.15), rgba(54, 62, 75, 0.26));
  border-color: rgba(157, 167, 184, 0.3);
}

.status-pill.status-ongoing {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(84, 53, 13, 0.28));
  border-color: rgba(245, 158, 11, 0.4);
}

.status-pill.status-done {
  color: #bbf7d0;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(14, 61, 35, 0.28));
  border-color: rgba(34, 197, 94, 0.35);
}

.light .alert-chip,
.light .status-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.light .alert-chip.alert {
  background: linear-gradient(135deg, rgba(252, 221, 227, 0.9), rgba(244, 205, 212, 0.78));
}

.light .alert-chip.warn {
  background: linear-gradient(135deg, rgba(252, 233, 176, 0.9), rgba(244, 219, 147, 0.78));
}

.light .alert-chip.info {
  background: linear-gradient(135deg, rgba(225, 231, 238, 0.96), rgba(213, 220, 229, 0.84));
}

.light .status-pill.status-upcoming {
  background: linear-gradient(135deg, rgba(225, 231, 238, 0.96), rgba(213, 220, 229, 0.84));
}

.light .status-pill.status-ongoing {
  background: linear-gradient(135deg, rgba(247, 231, 185, 0.96), rgba(239, 217, 151, 0.82));
}

.light .status-pill.status-done {
  background: linear-gradient(135deg, rgba(209, 244, 221, 0.96), rgba(186, 234, 205, 0.82));
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.table-date,
.table-days,
.table-vehicle-name {
  font-weight: 600;
}

.table-date {
  letter-spacing: 0.01em;
}

.table-days {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
}

.table-vehicle-name {
  color: var(--text);
}

.table-value-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 167, 184, 0.18);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.table-value-chip--price {
  background: linear-gradient(135deg, rgba(157, 167, 184, 0.12), rgba(54, 62, 75, 0.22));
  color: #dfe6ee;
}

.table-value-chip--impact {
  background: linear-gradient(135deg, rgba(157, 167, 184, 0.12), rgba(255, 159, 63, 0.08));
  color: #eef3f9;
}

.table-value-chip--impact.strong,
.table-value-chip--impact.pos {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(10, 69, 50, 0.28));
  color: #c3f6dd;
}

.table-value-chip--impact.warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.17), rgba(84, 53, 13, 0.28));
  color: #fde68a;
}

.table-value-chip--impact.neg {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(82, 27, 36, 0.28));
  color: #fecdd3;
}

.table-value-chip--net.pos {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.17), rgba(14, 61, 35, 0.28));
  color: #bbf7d0;
}

.table-value-chip--net.neg {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.17), rgba(82, 27, 36, 0.28));
  color: #fecdd3;
}

.light .table-value-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.light .table-value-chip--price {
  background: linear-gradient(135deg, rgba(224, 231, 238, 0.96), rgba(213, 220, 229, 0.82));
  color: #334155;
}

.light .table-value-chip--impact {
  background: linear-gradient(135deg, rgba(229, 234, 240, 0.96), rgba(238, 225, 213, 0.72));
  color: #213041;
}

.light .table-value-chip--impact.strong,
.light .table-value-chip--impact.pos {
  background: linear-gradient(135deg, rgba(209, 244, 221, 0.98), rgba(186, 234, 205, 0.84));
  color: #116149;
}

.light .table-value-chip--impact.warn {
  background: linear-gradient(135deg, rgba(247, 231, 185, 0.96), rgba(239, 217, 151, 0.82));
  color: #8a5d0a;
}

.light .table-value-chip--impact.neg {
  background: linear-gradient(135deg, rgba(252, 221, 227, 0.96), rgba(244, 205, 212, 0.82));
  color: #9b2338;
}

.light .table-value-chip--net.pos {
  background: linear-gradient(135deg, rgba(209, 244, 221, 0.98), rgba(186, 234, 205, 0.84));
  color: #116149;
}

.light .table-value-chip--net.neg {
  background: linear-gradient(135deg, rgba(252, 221, 227, 0.96), rgba(244, 205, 212, 0.82));
  color: #9b2338;
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 0.95rem;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(157, 167, 184, 0.06));
}

.table-action-btn--edit:hover {
  border-color: rgba(255, 159, 63, 0.26);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.14), rgba(157, 167, 184, 0.1));
}

.table-action-btn--remove:hover {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(157, 167, 184, 0.08));
  color: #ffd8de;
}

.light .table-action-btn {
  background: linear-gradient(180deg, rgba(233, 238, 244, 0.94), rgba(223, 229, 237, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.light .table-action-btn--edit:hover {
  color: #6f4416;
}

.light .table-action-btn--remove:hover {
  color: #9b2338;
}

.maint-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.maint-badge.done {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.maint-badge.planned {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}

.maint-forecast.overdue {
  background: rgba(239, 68, 68, 0.12);
}

.maint-forecast.soon {
  background: rgba(245, 158, 11, 0.12);
}

.maint-plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  background: var(--panel-soft);
}

.maint-plan-cost {
  font-weight: 700;
  color: var(--accent);
}

.cashflow-table {
  display: grid;
  gap: 0.65rem;
}

.cashflow-head {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.5fr;
  gap: 0.8rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cashflow-body {
  display: grid;
  gap: 0.6rem;
}

.cashflow-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.5fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.cashflow-label {
  font-weight: 600;
}

.cashflow-value {
  font-weight: 700;
}

.cashflow-value.pos {
  color: var(--pos);
}

.cashflow-value.neg {
  color: var(--neg);
}

.cashflow-bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cashflow-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.cashflow-fill.pos {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.85), rgba(16, 185, 129, 0.45));
}

.cashflow-fill.neg {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.85), rgba(239, 68, 68, 0.45));
}

.month-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.month-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  min-width: 86px;
  cursor: pointer;
}

.month-chip strong {
  font-size: 0.9rem;
}

.month-chip.is-active {
  border-color: rgba(157, 167, 184, 0.5);
  background: linear-gradient(135deg, rgba(157, 167, 184, 0.12), rgba(255, 159, 63, 0.06));
  box-shadow: 0 0 0 1px rgba(157, 167, 184, 0.18);
}

.light .month-chip {
  background: rgba(220, 226, 235, 0.78);
}

.light .month-chip.is-active {
  background: linear-gradient(135deg, rgba(215, 222, 231, 0.96), rgba(235, 225, 214, 0.78));
  box-shadow: 0 8px 18px rgba(86, 107, 143, 0.12), 0 0 0 1px rgba(157, 167, 184, 0.18);
}

.month-chip .hint {
  margin: 0;
}

.business-alerts {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.business-alert {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.5rem 0.6rem;
  background: var(--panel-soft);
}

.business-alert.alert {
  border-color: rgba(239, 68, 68, 0.35);
}

.business-alert.warn {
  border-color: rgba(245, 158, 11, 0.35);
}

.business-alert.info {
  border-color: rgba(157, 167, 184, 0.3);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.kpi-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.72rem 0.84rem;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.kpi-value {
  font-size: clamp(1.15rem, 2.8vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-family: "JetBrains Mono", monospace;
}

.kpi-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.profit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.95rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
  gap: 1rem;
  padding: 1.15rem;
  background: linear-gradient(145deg, rgba(20, 28, 39, 0.98), rgba(16, 24, 34, 0.96));
}

.dashboard-hero::before {
  left: -3rem;
  top: -3.8rem;
  width: 14rem;
  height: 14rem;
  opacity: 1;
  transform: none;
  background: radial-gradient(circle at center, rgba(255, 159, 63, 0.11), rgba(157, 167, 184, 0.08) 42%, transparent 72%);
}

.light .dashboard-hero {
  background: linear-gradient(145deg, rgba(232, 237, 243, 0.98), rgba(223, 229, 237, 0.96));
}

.light .dashboard-hero::before {
  background: radial-gradient(circle at center, rgba(216, 115, 22, 0.1), rgba(157, 167, 184, 0.08) 42%, transparent 72%);
}

.dashboard-hero-main,
.dashboard-hero-aside {
  position: relative;
  z-index: 1;
}

.dashboard-hero-main {
  display: grid;
  gap: 0.95rem;
}

.dashboard-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-hero-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.dashboard-hero-copy {
  margin: 0.4rem 0 0;
  max-width: 56rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.dashboard-hero-status {
  min-height: 2.3rem;
  padding-inline: 0.9rem;
  font-weight: 800;
}

.dashboard-hero-status.warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(84, 53, 13, 0.24));
  color: #fde68a;
}

.dashboard-hero-status.steady {
  border-color: rgba(157, 167, 184, 0.24);
  background: linear-gradient(135deg, rgba(157, 167, 184, 0.16), rgba(54, 62, 75, 0.24));
  color: #d7dee7;
}

.dashboard-hero-status.healthy {
  border-color: rgba(34, 197, 94, 0.26);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(14, 61, 35, 0.24));
  color: #bbf7d0;
}

.light .dashboard-hero-status.warn,
.light .dashboard-hero-status.steady,
.light .dashboard-hero-status.healthy {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.light .dashboard-hero-status.warn {
  background: linear-gradient(135deg, rgba(247, 231, 185, 0.96), rgba(239, 217, 151, 0.82));
  color: #8a5d0a;
}

.light .dashboard-hero-status.steady {
  background: linear-gradient(135deg, rgba(225, 231, 238, 0.96), rgba(213, 220, 229, 0.84));
  color: #38485d;
}

.light .dashboard-hero-status.healthy {
  background: linear-gradient(135deg, rgba(209, 244, 221, 0.96), rgba(186, 234, 205, 0.82));
  color: #116149;
}

.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-hero-metric {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.78rem 0.82rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(157, 167, 184, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.light .dashboard-hero-metric {
  background: linear-gradient(165deg, rgba(233, 238, 244, 0.94), rgba(223, 229, 237, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dashboard-hero-metric-label {
  font-size: 0.69rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dashboard-hero-metric-value {
  margin-top: 0.38rem;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.08;
}

.dashboard-hero-metric-value.pos {
  color: var(--pos);
}

.dashboard-hero-metric-value.neg {
  color: var(--neg);
}

.dashboard-hero-metric-meta {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-hero-narrative {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.dashboard-hero-story {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.8rem 0.85rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(157, 167, 184, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-hero-story strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1rem;
}

.dashboard-hero-story p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-hero-story-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 167, 184, 0.2);
  background: rgba(157, 167, 184, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-hero-story.warn {
  border-color: rgba(245, 158, 11, 0.2);
}

.dashboard-hero-story.warn .dashboard-hero-story-tag {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.dashboard-hero-story.healthy {
  border-color: rgba(34, 197, 94, 0.18);
}

.dashboard-hero-story.healthy .dashboard-hero-story-tag {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.light .dashboard-hero-story {
  background: linear-gradient(165deg, rgba(233, 238, 244, 0.92), rgba(223, 229, 237, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.light .dashboard-hero-story-tag {
  background: rgba(220, 226, 235, 0.88);
}

.light .dashboard-hero-story.warn .dashboard-hero-story-tag {
  background: rgba(247, 231, 185, 0.88);
  color: #8a5d0a;
}

.light .dashboard-hero-story.healthy .dashboard-hero-story-tag {
  background: rgba(209, 244, 221, 0.88);
  color: #116149;
}

.dashboard-hero-aside {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.95rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(157, 167, 184, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.light .dashboard-hero-aside {
  background: linear-gradient(165deg, rgba(233, 238, 244, 0.94), rgba(223, 229, 237, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dashboard-hero-aside-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.dashboard-hero-aside-note {
  margin-top: 0.32rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

.dashboard-hero-aside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.dashboard-hero-aside-kpi {
  border: 1px solid var(--border);
  border-radius: 0.92rem;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.light .dashboard-hero-aside-kpi {
  background: rgba(224, 230, 238, 0.82);
}

.dashboard-hero-aside-kpi-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-hero-aside-kpi-value {
  margin-top: 0.3rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-hero-aside-foot {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.dashboard-hero-aside-foot strong {
  display: block;
  margin-bottom: 0.28rem;
}

.dashboard-hero-aside-foot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.dashboard-right-info {
  min-height: 100%;
}

.dashboard-right-info .info-kpi {
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  padding: 0.5rem 0.55rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(157, 167, 184, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-right-info .info-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 159, 63, 0.18);
  box-shadow: 0 14px 24px rgba(4, 10, 24, 0.12);
}

.dashboard-right-info .info-label {
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-right-info .info-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.12rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-right-info .info-value.info-text {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.profit-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 159, 63, 0.16);
  background: linear-gradient(160deg, rgba(255, 159, 63, 0.08), rgba(157, 167, 184, 0.07) 56%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 18px 32px rgba(2, 8, 24, 0.17), 0 0 18px rgba(255, 159, 63, 0.08);
}

.profit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.profit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.profit-badge {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.profit-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.profit-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.score-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  background: rgba(255, 180, 84, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.light .score-chip {
  background: rgba(201, 117, 27, 0.1);
  color: #7f4e17;
  border-color: rgba(160, 102, 34, 0.2);
}

.vehicles-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.vehicles-overview-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(157, 167, 184, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vehicles-overview-card.warn {
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.vehicles-overview-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vehicles-overview-value {
  margin-top: 0.45rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
}

.vehicles-overview-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.vehicles-toolbar {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(157, 167, 184, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vehicles-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.vehicles-toolbar-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.vehicles-toolbar-copy {
  margin-top: 0.22rem;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.5;
}

.vehicles-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vehicle-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.vehicle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.vehicle-card-head-main {
  display: grid;
  gap: 0.55rem;
  min-width: min(30rem, 100%);
}

.vehicle-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.vehicle-name-input {
  max-width: min(20rem, 100%);
  min-width: 12rem;
}

.vehicle-card-head-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vehicle-card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vehicle-state-pill,
.vehicle-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

.vehicle-state-pill.pos {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
}

.vehicle-state-pill.idle {
  color: var(--muted);
  border-color: rgba(157, 167, 184, 0.22);
  background: rgba(157, 167, 184, 0.08);
}

.vehicle-mode-pill {
  color: #fbd38d;
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.12);
}

.vehicle-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.vehicle-kpi-card,
.vehicle-panel,
.vehicle-health-mini {
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(157, 167, 184, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vehicle-kpi-card {
  padding: 0.78rem 0.82rem;
}

.vehicle-kpi-label,
.vehicle-panel-eyebrow,
.vehicle-health-mini-label {
  font-size: 0.69rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.vehicle-health-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.9fr);
  gap: 0.85rem;
}

.vehicle-health-main,
.vehicle-health-side {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(157, 167, 184, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.vehicle-health-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.vehicle-health-copy {
  margin: 0.6rem 0 0;
  color: var(--text);
  line-height: 1.55;
}

.vehicle-health-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.vehicle-health-mini {
  padding: 0.72rem 0.78rem;
}

.vehicle-health-mini strong {
  display: block;
  margin-top: 0.28rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
}

.vehicle-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.vehicle-panel {
  padding: 0.95rem 1rem;
}

.vehicle-card-footer {
  display: flex;
  justify-content: flex-end;
}

.vehicle-danger-btn {
  border-color: rgba(239, 68, 68, 0.22);
}

.vehicle-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.score-chip:hover,
.vehicle-chip:hover {
  border-color: rgba(255, 159, 63, 0.22);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.1), rgba(157, 167, 184, 0.08));
  transform: translateY(-1px);
}

.vehicle-chip-risk.neg {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
}

.vehicle-chip-risk.warn {
  color: #fbd38d;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.vehicle-chip-risk.pos {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.veh-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.23rem 0.5rem;
  font-size: 0.75rem;
}

.veh-alert.error {
  color: var(--neg);
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

.veh-alert.warn {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.veh-stack {
  display: flex;
  height: 0.62rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.veh-stack > span {
  height: 100%;
}

.veh-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.25rem;
}

.veh-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.veh-summary-item {
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
}

.veh-summary-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.2rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.veh-hypo-bar {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.veh-pro-block {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.veh-pro-block > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.veh-pro-block > summary::-webkit-details-marker {
  display: none;
}

.veh-pro-block > summary::after {
  content: "Afficher";
  float: right;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.veh-pro-block[open] > summary::after {
  content: "Masquer";
}

.veh-unsaved {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
}

.veh-calc-log {
  border: 1px dashed var(--border);
  border-radius: 0.8rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.veh-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.2rem 0;
  color: var(--muted);
}

.veh-calc-row span:last-child {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 760px) {
  .vehicles-overview,
  .vehicle-kpi-grid,
  .vehicle-health-side,
  .vehicle-main-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-health-shell {
    grid-template-columns: 1fr;
  }

  .vehicles-toolbar-main,
  .vehicle-card-head,
  .vehicle-card-head-side {
    align-items: stretch;
  }

  .vehicle-card-footer {
    justify-content: stretch;
  }

  .vehicle-danger-btn {
    width: 100%;
  }

  .veh-summary-grid {
    grid-template-columns: 1fr;
  }
}

.profit-kpi {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.45rem 0.52rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 72px;
}

.profit-kpi .lbl {
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.profit-kpi .val {
  font-size: clamp(0.9rem, 1.4vw, 1.03rem);
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profit-kpi .val-text {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.progress-track {
  width: 100%;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.insight-item {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.insight-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
}

.insight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.28rem;
}

.heatmap-cell {
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.35rem 0.22rem;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.scenario-box {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.decision-card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.decision-card:hover,
.projection-guide-item:hover,
.projection-year-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 159, 63, 0.18);
  box-shadow: 0 14px 28px rgba(4, 10, 24, 0.14);
}

.action-card {
  display: grid;
  gap: 0.55rem;
}

.action-card.high {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.14);
}

.action-card.medium {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.14);
}

.action-card.low,
.action-card.healthy {
  box-shadow: inset 0 0 0 1px rgba(157, 167, 184, 0.14);
}

.action-card-top,
.action-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-priority,
.action-check-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.action-priority.high {
  color: var(--neg);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.action-priority.medium,
.action-check-status.warn {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.action-priority.low,
.action-check-status.ok {
  color: var(--accent);
  border-color: rgba(157, 167, 184, 0.24);
  background: rgba(157, 167, 184, 0.08);
}

.action-check-item {
  display: grid;
  gap: 0.4rem;
}

.light .decision-card,
.light .projection-guide-item,
.light .projection-year-card {
  background: rgba(220, 226, 235, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.decision-impact {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
}

.projection-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.projection-inline-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(157, 167, 184, 0.26);
  background: rgba(157, 167, 184, 0.08);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.projection-inline-tag:hover {
  border-color: rgba(255, 159, 63, 0.22);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.1), rgba(157, 167, 184, 0.08));
  color: var(--accent-soft);
}

.projection-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.projection-guide-list {
  display: grid;
  gap: 0.7rem;
}

.projection-guide-item {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.projection-year-card {
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.projection-year-card h4 {
  margin: 0;
  font-size: 1rem;
}

.projection-year-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
}

.projection-year-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.projection-mini-kpi {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  padding: 0.55rem 0.6rem;
  background: rgba(8, 18, 36, 0.28);
}

.projection-mini-kpi .label {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
}

.projection-mini-kpi .value {
  display: block;
  margin-top: 0.2rem;
  font-weight: 700;
}

.projection-rails {
  display: grid;
  gap: 0.8rem;
}

.projection-rail {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}

.projection-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.projection-rail-head strong {
  font-size: 0.92rem;
}

.projection-rail-track {
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.projection-rail-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(157, 167, 184, 0.95), rgba(216, 115, 22, 0.82));
}

.projection-rail-fill.warn {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.85));
}

.projection-rail-fill.neg {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(248, 113, 113, 0.85));
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.timeline-item {
  border-left: 2px solid var(--border);
  padding: 0.2rem 0 0.2rem 0.65rem;
}

.loc-advanced {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.72rem 0.85rem;
}

.loc-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.loc-advanced summary::-webkit-details-marker {
  display: none;
}

.loc-advanced summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.loc-advanced[open] summary::after {
  transform: rotate(180deg);
}

.insight-item--high {
  border-color: rgba(255, 79, 115, 0.45);
}

.insight-item--medium {
  border-color: rgba(23, 208, 178, 0.4);
}

.insight-tag {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.38rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 0.76rem;
  padding: 0.33rem 0.52rem;
  background: rgba(255, 255, 255, 0.03);
}

.toggle input {
  width: 2.5rem;
  height: 1.3rem;
  appearance: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
}

.toggle input:checked {
  background: linear-gradient(180deg, var(--primary), var(--primary-d));
}

.toggle input:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-radius: 999px;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.email-parser-actions {
  display: flex;
  gap: 0.55rem;
}

.email-parser-actions .btn,
.email-parser-actions .btn-ghost {
  flex: 1;
}

.ops-list {
  display: grid;
  gap: 0.8rem;
}

.ops-item,
.ops-summary {
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ops-item:hover,
.ops-summary:hover,
.veh-health-item:hover,
.ops-compare:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 159, 63, 0.18);
  box-shadow: 0 14px 28px rgba(4, 10, 24, 0.14);
}

.ops-item.compact {
  padding: 0.75rem 0.8rem;
}

.ops-item-head,
.ops-actions,
.veh-health-note,
.veh-health-strip {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ops-actions {
  align-items: center;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.veh-health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.veh-health-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.7rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.veh-health-item strong {
  display: block;
  margin-top: 0.18rem;
}

.veh-health-status.pos {
  color: var(--pos);
}

.veh-health-status.warn {
  color: var(--accent);
}

.veh-health-status.neg {
  color: var(--neg);
}

.veh-health-note {
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(255, 159, 63, 0.04), rgba(157, 167, 184, 0.04));
}

.ops-compare {
  margin-top: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(157, 167, 184, 0.05));
  padding: 0.75rem;
}

.ops-compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ops-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.card-pulse {
  box-shadow: 0 0 0 1px rgba(255, 159, 63, 0.3), 0 0 0 10px rgba(255, 159, 63, 0.09);
  transition: box-shadow 0.18s ease;
}

.light .ops-item,
.light .ops-summary,
.light .veh-health-item,
.light .veh-health-note,
.light .ops-compare {
  background: rgba(220, 226, 235, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.light .veh-health-note {
  background: linear-gradient(135deg, rgba(238, 225, 213, 0.52), rgba(215, 222, 231, 0.68));
  border-color: rgba(123, 135, 154, 0.18);
}

.light .ops-compare {
  background: linear-gradient(135deg, rgba(239, 223, 206, 0.62), rgba(214, 221, 230, 0.72));
  border-color: rgba(216, 115, 22, 0.2);
}

@media (max-width: 980px) {
  .ops-summary-grid,
  .veh-health-strip,
  .ops-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .email-parser-actions,
  .ops-item-head,
  .ops-actions,
  .veh-health-note {
    flex-direction: column;
  }

  .ops-summary-grid,
  .veh-health-strip,
  .ops-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.toggle input:checked:before {
  transform: translateX(1.16rem);
}

.hint {
  color: var(--muted);
  font-size: 0.84rem;
}

#savedTag {
  color: var(--pos);
  font-weight: 700;
}

section.card:not(.hidden) {
  animation: fadeUp 0.25s ease;
}

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .side-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }
  .tab-btn { min-width: 190px; }
  .sidebar-footer { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profit-grid { grid-template-columns: 1fr; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-hero-narrative { grid-template-columns: 1fr; }
  .dashboard-top { grid-template-columns: 1fr; }
  .cockpit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-header { flex-direction: column; }
  .toolbar { width: 100%; justify-content: flex-start; }
  .tab-btn { min-width: 165px; }
  .workspace { padding: 0.9rem 0.7rem calc(8rem + env(safe-area-inset-bottom)); }
  .panel { padding: 0.85rem; }
  .kpi-grid,
  .insight-list,
  .profit-kpis {
    grid-template-columns: 1fr;
  }
  .decision-grid,
  .projection-decision-grid,
  .projection-year-grid,
  .timeline-list,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .cockpit-bar {
    top: 0.45rem;
    padding: 0.62rem;
  }
  .dashboard-hero {
    padding: 0.85rem;
  }
  .dashboard-hero-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-hero-metrics,
  .dashboard-hero-aside-grid {
    grid-template-columns: 1fr;
  }
  .cockpit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .kpi-main {
    font-size: 1.02rem;
  }
  .kpi-delta,
  .kpi-hint {
    font-size: 0.69rem;
  }
  .loc-actions {
    position: sticky;
    bottom: calc(4.7rem + env(safe-area-inset-bottom));
    z-index: 35;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: rgba(11, 24, 50, 0.93);
    box-shadow: 0 14px 28px rgba(2, 8, 24, 0.18);
  }
  .light .loc-actions {
    background: rgba(223, 230, 240, 0.95);
  }
  .loc-actions #saveBtn {
    flex: 1 1 auto;
  }
  .loc-actions .btn-ghost,
  .loc-actions select,
  .loc-actions input[type="month"] {
    flex: 1 1 42%;
    min-width: 130px;
  }
  th,
  td {
    padding: 0.5rem 0.46rem;
    font-size: 0.82rem;
  }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(9, 20, 42, 0.95), rgba(11, 24, 50, 0.98));
    box-shadow: 0 -10px 24px rgba(2, 8, 24, 0.18);
  }
  .light .mobile-nav {
    background: linear-gradient(180deg, rgba(224, 231, 241, 0.95), rgba(214, 222, 234, 0.98));
  }
  .mobile-nav .tab-btn {
    min-width: 0;
    padding: 0.55rem 0.3rem;
    border-radius: 0.8rem;
    text-align: center;
    justify-content: center;
    font-size: 0.76rem;
    line-height: 1.1;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.03);
  }
  .mobile-nav .tab-btn .nav-dot {
    width: 0.35rem;
    height: 0.35rem;
  }
  .mobile-nav .tab-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 159, 63, 0.18);
    background: linear-gradient(135deg, rgba(255, 159, 63, 0.12), rgba(157, 167, 184, 0.08));
  }
  .mobile-nav .tab-btn.is-active {
    box-shadow: 0 12px 24px rgba(24, 72, 156, 0.28), 0 0 18px rgba(255, 159, 63, 0.14);
  }
  .light .mobile-nav .tab-btn {
    background: rgba(232, 237, 243, 0.58);
    border-color: rgba(123, 135, 154, 0.08);
  }
  .light .mobile-nav .tab-btn:hover {
    background: linear-gradient(135deg, rgba(238, 226, 213, 0.72), rgba(214, 221, 231, 0.86));
    border-color: rgba(216, 115, 22, 0.16);
  }
  .light .mobile-nav .tab-btn.is-active {
    background: linear-gradient(180deg, rgba(198, 212, 232, 0.98), rgba(182, 199, 222, 0.98));
    box-shadow: 0 12px 24px rgba(77, 94, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  }
  .quick-action-btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
}

.mode-simple .expert-only { display: none !important; }

.signal-card {
  padding: 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(12, 24, 48, 0.65);
}

.light .signal-card {
  background: rgba(224, 230, 238, 0.82);
}
.signal-card.pos { box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15); }
.signal-card.warn { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2); }
.signal-card.neg { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2); }
.signal-card.neutral { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15); }

.rent-graph {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
  min-height: 180px;
  padding: 0.6rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 20, 40, 0.55);
  position: relative;
  color: var(--text);
}
.rent-graph::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 2.2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.rent-bar {
  position: relative;
  height: 150px;
  display: flex;
  align-items: end;
  justify-content: center;
}
.rent-bar-fill {
  width: 100%;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(59,130,246,.6));
  box-shadow: 0 10px 18px rgba(59,130,246,.18);
}
.rent-bar.neg .rent-bar-fill {
  background: linear-gradient(180deg, rgba(239,68,68,.95), rgba(239,68,68,.55));
  box-shadow: 0 10px 18px rgba(239,68,68,.18);
}
.rent-bar-label {
  position: absolute;
  bottom: -1.4rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.rent-graph-fallback {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.chart-card {
  position: relative;
  min-height: 240px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.chart-body {
  position: relative;
  min-height: 180px;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.35), rgba(10, 20, 40, 0.25));
  border-radius: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.light .chart-empty {
  background: linear-gradient(180deg, rgba(225, 231, 240, 0.72), rgba(219, 226, 235, 0.64));
  border-color: rgba(74, 92, 126, 0.14);
}

.chart-empty.is-visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CALENDRIER
   ═══════════════════════════════════════════════════════════════ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 1rem;
}
.cal-head {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  padding: .35rem 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cal-cell {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: .45rem;
  padding: .3rem .35rem .25rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel-soft);
  transition: background .15s;
  cursor: default;
}
.cal-cell.cal-empty {
  background: transparent;
  border-color: transparent;
}
.cal-cell.cal-today {
  border-color: var(--primary);
  background: rgba(157, 167, 184, 0.12);
}
.cal-cell.cal-past {
  opacity: .6;
}
.cal-cell.cal-booked {
  background: rgba(157, 167, 184, 0.07);
}
.cal-day-num {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
}
.cal-today .cal-day-num {
  color: var(--primary);
  font-weight: 800;
}
.cal-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.cal-bar {
  height: 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.cal-bar:hover {
  opacity: .8;
  transform: scaleX(.97);
}
.cal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .6rem .8rem;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: .6rem;
  font-size: .85rem;
  color: var(--muted);
}
.cal-summary span {
  font-weight: 600;
}
.notif-active {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: .6rem .75rem;
    gap: .5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    padding: .2rem .3rem;
  }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { display: none; }
  .side-title { display: none; }
  .side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    flex: 1;
  }
  .side-nav .tab-btn {
    font-size: .75rem;
    padding: .35rem .6rem;
    border-radius: .5rem;
  }
  .sidebar-footer { display: none; }
  .workspace {
    padding: 0;
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: .35rem;
  }
  .toolbar .btn-ghost, .toolbar .btn {
    font-size: .72rem;
    padding: .3rem .55rem;
  }
  .card {
    border-radius: .6rem;
    padding: .9rem;
    margin: .5rem;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
  }
  .loc-table {
    font-size: .75rem;
  }
  .loc-table th, .loc-table td {
    padding: .35rem .4rem;
  }
  .cal-cell {
    min-height: 48px;
    padding: .2rem .2rem;
  }
  .cal-day-num { font-size: .7rem; }
  .cal-bar { height: 6px; }
  .mobile-nav {
    display: flex !important;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .cal-grid {
    gap: 2px;
  }
  .cal-cell {
    min-height: 38px;
  }
  .cal-head { font-size: .65rem; }
}

/* ═══════════════════════════════════════════════════════════════
   IMPRESSION / RAPPORT PDF
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .sidebar, .app-header, .toolbar, .mobile-nav,
  #emailParserOverlay, .loc-actions, #recoveryPanel,
  button, input[type="file"], select, .btn, .btn-ghost,
  details summary, .toggle, #appErrorBanner { display: none !important; }

  body { background: #fff !important; color: #111 !important; }
  .workspace { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; background: #fff !important; page-break-inside: avoid; }
  .panel.hidden { display: block !important; }
  #print-only { display: block !important; }
  * { color: #111 !important; }
  a { text-decoration: none; color: #111 !important; }
  .kpi-value { font-size: 1.2rem !important; }
}
#print-only { display: none; }
