/* SV VLTD panel theme — Sri Vinayaga Auto Parts
   Palette taken from the SV logo: signal navy, route blue, SV red. */
:root {
  --navy: #0A2A5E;
  --navy-2: #12397A;
  --navy-line: rgba(255, 255, 255, .10);
  --blue: #1459C7;
  --blue-ink: #0E46A3;
  --blue-soft: #E8F0FD;
  --red: #D92B33;
  --paper: #F3F6FA;
  --card: #FFFFFF;
  --ink: #0E1A2B;
  --muted: #5B6B82;
  --line: #DDE4EE;
  --line-2: #EDF1F6;

  --waiting: #B45309;  --waiting-bg: #FEF3E2;
  --installed: #15803D; --installed-bg: #E3F6EA;
  --requested: #4338CA; --requested-bg: #E9EBFD;
  --uploaded: #0F766E; --uploaded-bg: #DDF5F1;
  --submitted: #1E3A8A; --submitted-bg: #E6ECF8;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 4px 14px rgba(14, 26, 43, .05);

  --bs-body-font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-primary: var(--blue);
  --bs-primary-rgb: 20, 89, 199;
  --bs-border-color: var(--line);
  --bs-link-color: var(--blue);
  --bs-link-hover-color: var(--blue-ink);
  --cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body.app, body.auth { font-family: var(--bs-body-font-family); font-size: 15px; color: var(--ink); background: var(--paper); }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(20, 89, 199, .45); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex: 0 0 260px; background: var(--navy) !important; color: #C9D6EC;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
@media (max-width: 991.98px) {
  .sidebar { position: fixed; height: 100%; --bs-offcanvas-width: 280px; background: var(--navy); }
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; border-bottom: 1px solid var(--navy-line); }
.brand img { border-radius: 10px; background: #fff; object-fit: cover; }
.brand strong { display: block; color: #fff; font-family: var(--cond); font-weight: 700; font-size: 17px; line-height: 1.15; }
.brand span { display: block; font-size: 12.5px; color: #93A7C8; }

.side-nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: #C9D6EC; text-decoration: none; font-weight: 500; position: relative;
}
.side-nav a i { font-size: 18px; width: 20px; text-align: center; color: #8FA6CC; }
.side-nav a:hover { background: var(--navy-2); color: #fff; }
.side-nav a.active { background: var(--navy-2); color: #fff; font-weight: 600; }
.side-nav a.active i { color: #fff; }
.side-nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }

.side-foot { padding: 14px 14px 18px; border-top: 1px solid var(--navy-line); }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.who strong { display: block; color: #fff; font-weight: 600; line-height: 1.1; }
.who span { font-size: 12.5px; color: #93A7C8; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.signout { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 8px; border: 1px solid var(--navy-line); color: #E3EAF6; text-decoration: none; font-weight: 500; }
.signout:hover { background: var(--red); border-color: var(--red); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 24px; letter-spacing: .005em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.live-dot { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--installed); box-shadow: 0 0 0 3px var(--installed-bg); }
.btn-icon { border: 1px solid var(--line); width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 8px; padding: 0; }
.content { padding: 24px 28px 32px; flex: 1; }
.foot { padding: 16px 28px 22px; color: var(--muted); font-size: 13px; }
@media (max-width: 767.98px) {
  .topbar { padding: 10px 16px; }
  .topbar h1 { font-size: 20px; }
  .content { padding: 16px; }
  .foot { padding: 12px 16px 18px; }
}

/* ---------- flash ---------- */
.flash { display: flex; align-items: center; gap: 10px; border-radius: var(--radius); border: 0; box-shadow: var(--shadow); }
.flash > i { font-size: 18px; }

/* ---------- pipeline rail (the workflow is a real sequence) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.pipeline .step {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; padding: 16px 20px 16px 22px;
  display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line-2);
  border-top: 4px solid transparent; transition: background .15s ease;
}
.pipeline .step:last-child { border-right: 0; }
.pipeline .step:hover { background: #F8FAFD; }
.pipeline .step:focus-visible { outline: 3px solid rgba(20, 89, 199, .45); outline-offset: -3px; }
.pipeline .step::after { /* chevron joining the stages */
  content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; margin-top: -6px;
  background: var(--card); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); z-index: 1;
}
.pipeline .step:last-child::after { display: none; }
.step .n { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.step .l { font-weight: 600; font-size: 14.5px; }
.step .h { font-size: 12.5px; color: var(--muted); }
.step.is-waiting .n { color: var(--waiting); }
.step.is-installed .n { color: var(--installed); }
.step.is-requested .n { color: var(--requested); }
.step.is-uploaded .n { color: var(--uploaded); }
.step.is-submitted .n { color: var(--submitted); }
.step.active.is-waiting { border-top-color: var(--waiting); background: var(--waiting-bg); }
.step.active.is-installed { border-top-color: var(--installed); background: var(--installed-bg); }
.step.active.is-requested { border-top-color: var(--requested); background: var(--requested-bg); }
.step.active.is-uploaded { border-top-color: var(--uploaded); background: var(--uploaded-bg); }
.step.active.is-submitted { border-top-color: var(--submitted); background: var(--submitted-bg); }
.step.active::after { background: inherit; }
@media (max-width: 1199.98px) {
  .pipeline .step { padding: 14px 14px 14px 18px; }
  .step .h { font-size: 12px; }
}
@media (max-width: 767.98px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline .step { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .pipeline .step:nth-child(even) { border-right: 0; }
  .pipeline .step:last-child { border-bottom: 0; }
  .pipeline .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pipeline .step::after { display: none; }
  .step .n { font-size: 28px; }
}

/* ---------- panels & toolbar ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-family: var(--cond); font-size: 19px; font-weight: 700; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.panel-body { padding: 20px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; min-width: 260px; flex: 1; max-width: 420px; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 36px; height: 40px; border-radius: 8px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 575.98px) { .search { min-width: 100%; max-width: none; } }

/* ---------- data table ---------- */
.data-table { margin: 0; --bs-table-bg: #fff; --bs-table-hover-bg: #F6F9FD; }
.data-table thead th {
  background: #F7F9FC; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap;
  border-bottom: 1px solid var(--line); padding: 10px 14px;
}
.data-table td { padding: 12px 14px; vertical-align: middle; border-color: var(--line-2); font-size: 14.5px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .si { color: var(--muted); font-variant-numeric: tabular-nums; width: 44px; }
.chassis {
  font-family: var(--cond); font-weight: 700; font-size: 15.5px; letter-spacing: .03em; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sub { display: block; color: var(--muted); font-size: 13px; }
.imei { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue-ink); letter-spacing: .02em; }
.none { color: #98A4B5; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.actions form { margin: 0; }
.btn-act { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13.5px; font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty i { font-size: 32px; display: block; margin-bottom: 8px; color: #A9B6C8; }
.expired { font-size: 12.5px; color: var(--muted); }

/* stacked cards on phones */
@media (max-width: 767.98px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody { display: block; width: 100%; }
  .data-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px;
    padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  }
  .data-table td {
    grid-column: 1 / -1; border: 0; padding: 0; box-shadow: none !important; background: transparent;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; font-size: 14px;
  }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: 0 0 auto; }
  .data-table td.si, .data-table td.is-empty { display: none; }
  .data-table td.first { grid-column: 1; text-align: left; }
  .data-table td.first::before, .data-table td.c-stage::before, .data-table td.c-actions::before { display: none; }
  .data-table td.c-stage { grid-column: 2; grid-row: 1; align-items: flex-start; flex-direction: column; text-align: right; }
  .data-table td.c-actions { padding-top: 6px; justify-content: flex-end; }
  .actions { flex-wrap: wrap; }
}

/* ---------- stage badges ---------- */
.badge-stage { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge-stage i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-stage.is-waiting { color: var(--waiting); background: var(--waiting-bg); }
.badge-stage.is-installed { color: var(--installed); background: var(--installed-bg); }
.badge-stage.is-requested { color: var(--requested); background: var(--requested-bg); }
.badge-stage.is-uploaded { color: var(--uploaded); background: var(--uploaded-bg); }

/* ---------- forms ---------- */
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control, .form-select { background-color: #fff; border-color: var(--line); border-radius: 8px; min-height: 44px; font-size: 15px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 89, 199, .15); }
.form-text { color: var(--muted); }
.btn { font-weight: 600; border-radius: 8px; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-ink); --bs-btn-hover-border-color: var(--blue-ink); --bs-btn-active-bg: var(--blue-ink); }
.btn-lg { min-height: 48px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
@media (max-width: 991.98px) { .form-grid { grid-template-columns: 1fr; } }
.form-narrow { max-width: 560px; }
.hint-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.hint-list li + li { margin-top: 4px; }

/* view switching on admin page */
.view { display: none; }
.view.active { display: block; }

/* vehicle summary (upload page) */
.vehicle-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.vehicle-card > div { padding: 12px 14px; border-right: 1px solid var(--line-2); background: #FAFBFD; }
.vehicle-card > div:last-child { border-right: 0; }
.vehicle-card span { display: block; font-size: 12.5px; color: var(--muted); }
.vehicle-card strong { font-weight: 600; }
@media (max-width: 575.98px) {
  .vehicle-card { grid-template-columns: 1fr; }
  .vehicle-card > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
}
.dropzone { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: #FAFBFD; cursor: pointer; display: block; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-soft); }
.dropzone i { font-size: 28px; color: var(--blue); }
.dropzone .fn { display: block; margin-top: 6px; font-weight: 600; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.current-bill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.current-bill > i { font-size: 26px; color: var(--red); }
.panel-head h2 .chassis { font-size: 21px; }
.btn-link { text-decoration: none; font-weight: 600; }

/* modal */
.modal-content { border: 0; border-radius: 12px; }
.modal-header { border-bottom-color: var(--line-2); }
.modal-title { font-family: var(--cond); font-weight: 700; }
.modal-footer { border-top-color: var(--line-2); }

/* ---------- login ---------- */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand {
  background: var(--navy); color: #DCE6F6; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(1200px 500px at -10% 110%, rgba(20, 89, 199, .55), transparent 60%);
}
.auth-brand .logo { display: flex; align-items: center; gap: 14px; }
.auth-brand .logo img { width: 64px; height: 64px; border-radius: 14px; background: #fff; }
.auth-brand .logo strong { display: block; font-family: var(--cond); font-weight: 700; font-size: 24px; color: #fff; line-height: 1.1; }
.auth-brand .logo span { color: #9FB3D4; }
.auth-brand h2 { font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: 1.05; color: #fff; margin: 0 0 14px; max-width: 16ch; }
.auth-brand p { max-width: 42ch; color: #B8C7E0; font-size: 16px; margin: 0; }
.flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; max-width: 420px; }
.flow li { display: flex; align-items: center; gap: 12px; color: #DCE6F6; }
.flow li b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-family: var(--cond); font-weight: 700; font-size: 14px; flex: 0 0 28px; }
.services { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #9FB3D4; font-size: 14px; }
.services span { display: inline-flex; align-items: center; gap: 6px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--card); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-family: var(--cond); font-weight: 700; font-size: 30px; margin: 0 0 4px; }
.auth-card .lead { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 38px; height: 38px; color: var(--muted); border-radius: 6px; }
.auth-foot { margin-top: 28px; font-size: 13px; color: var(--muted); }
@media (max-width: 991.98px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; gap: 18px; }
  .auth-brand h2 { font-size: 26px; max-width: none; margin-bottom: 8px; }
  .auth-brand p { font-size: 15px; }
  .auth-brand .flow, .auth-brand .services { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .topbar, .foot, .toolbar, .actions, .pipeline, .notice-stack { display: none !important; }
  .content { padding: 0; }
  .panel { box-shadow: none; border: 0; }
}

/* ---------- chassis + model (same colours as the installer app) ---------- */
.chassis b { color: var(--blue-ink); font-weight: 700; }
.model-line { display: block; margin-top: 4px; line-height: 1; }
.model-chip {
  display: inline-block; background: var(--m, #475569); color: #fff; font-family: var(--cond); font-weight: 700;
  font-size: 12px; letter-spacing: .05em; padding: 3px 8px; border-radius: 5px; line-height: 1.3; white-space: nowrap; vertical-align: middle;
}
.c-when strong { font-weight: 600; white-space: nowrap; }
.c-when .sub { white-space: nowrap; }
@media (max-width: 991.98px) { .vehicle-card { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vehicle-card > div:nth-child(2) { border-right: 0; } }

/* ---------- installation alerts: bell, menu, pop-up cards ---------- */
.alert-bell { position: relative; font-size: 19px; color: var(--ink); background: var(--card); }
.alert-bell:hover, .alert-bell[aria-expanded="true"] { background: var(--blue-soft); color: var(--blue-ink); border-color: #C9D9F5; }
.alert-bell.ring i { display: inline-block; animation: bell-ring 1s ease 2; transform-origin: 50% 3px; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-15deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.bell-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card);
}
.alert-menu { width: 370px; max-width: calc(100vw - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(14, 26, 43, .16); overflow: hidden; }
.alert-menu-head { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #F7F9FC; }
.alert-menu-head strong { display: block; font-family: var(--cond); font-size: 17px; }
.alert-menu-head span { font-size: 12.5px; color: var(--muted); }
.alert-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.alert-list li { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.alert-list li:last-child { border-bottom: 0; }
.alert-list li.is-new { background: #F0FAF3; }
.alert-list li > div { min-width: 0; }
.alert-list .ic { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--installed-bg); color: var(--installed); display: grid; place-items: center; font-size: 16px; }
.alert-list .chassis { font-size: 15px; }
.alert-list .t { font-size: 12.5px; color: var(--muted); }
.alert-list .empty-li { justify-content: center; color: var(--muted); font-size: 14px; padding: 24px 16px; }
.alert-menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: #F7F9FC; font-size: 14px; }
.alert-menu-foot .form-check { margin: 0; min-height: 0; }
.alert-menu-foot #alertTest { margin-left: auto; }
.sound-lock {
  border: 1px dashed var(--waiting); background: var(--waiting-bg); color: var(--waiting); font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 4px 11px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.live-dot.has-new { color: var(--installed); font-weight: 600; }
.live-dot.has-new::before { animation: dot-pulse 1.6s ease-in-out infinite; }
.live-dot.has-new a { color: var(--blue); }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 6px var(--installed-bg); } }

.notice-stack { position: fixed; right: 20px; bottom: 20px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; width: 390px; max-width: calc(100vw - 32px); pointer-events: none; }
.notice {
  pointer-events: auto; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--installed);
  border-radius: var(--radius); box-shadow: 0 16px 38px rgba(14, 26, 43, .2); padding: 12px 14px 12px 16px; animation: notice-in .35s ease-out;
}
.notice-top { display: flex; align-items: center; gap: 8px; }
.notice-top .ic { color: var(--installed); font-size: 20px; }
.notice-top strong { font-family: var(--cond); font-size: 17px; flex: 1; }
.notice-top .when { font-size: 12.5px; color: var(--muted); }
.notice-top .btn-close { font-size: 10px; margin-left: 4px; }
.notice-body { margin: 6px 0 10px 28px; font-size: 14px; }
.notice-body .chassis { font-size: 18px; margin-right: 6px; }
.notice-body .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 28px; }
.notice-actions form { margin: 0; }
@keyframes notice-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 575.98px) {
  .notice-stack { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .topbar-actions { gap: 8px; }
  .live-dot { display: none; }
  .live-dot.has-new { display: inline-flex; }
}

/* ---------- Bill submitted stage + bulk submit ---------- */
.badge-stage.is-submitted { color: var(--submitted); background: var(--submitted-bg); }
.submitted-on { color: var(--submitted); font-weight: 600; }
.submitted-on i { margin-right: 2px; }
.data-table .sel { display: none; width: 44px; padding-right: 0; }
.panel[data-stage-view="uploaded"] .data-table .sel { display: table-cell; }
.data-table .sel .form-check-input { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.bulk-bar {
  display: none; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 20px;
  background: var(--uploaded-bg); border-bottom: 1px solid #BFE6DF;
}
.panel[data-stage-view="uploaded"] .bulk-bar { display: flex; }
.bulk-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin: 0; }
.bulk-all .form-check-input { width: 20px; height: 20px; margin: 0; }
.bulk-note { color: var(--uploaded); font-size: 13.5px; flex: 1; min-width: 160px; }
.bulk-bar .btn { font-weight: 600; }
.btn-success { --bs-btn-bg: var(--installed); --bs-btn-border-color: var(--installed); --bs-btn-hover-bg: #116632; --bs-btn-hover-border-color: #116632; --bs-btn-active-bg: #116632; --bs-btn-disabled-bg: #8DBF9E; --bs-btn-disabled-border-color: #8DBF9E; }
@media (max-width: 767.98px) {
  .panel[data-stage-view="uploaded"] .data-table td.sel { display: flex; }
  .data-table td.sel:empty { display: none !important; }
  .bulk-bar { padding: 10px 16px; }
  .bulk-bar .btn { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1599.98px) {
  .data-table td, .data-table thead th { padding-left: 10px; padding-right: 10px; }
  .data-table .sel { padding-right: 0; }
  .c-actions .actions { flex-wrap: wrap; max-width: 172px; margin-left: auto; }
  .lbl-wide { display: none; }
}
