/* ============================================================
   GTBNPS FINANCE — COMPONENTS
   Cards, buttons, inputs, modals, sheets, toasts, chips, tables.
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.card__head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border-light);
}
.card__title { font-size: var(--t-md); font-weight: var(--w-bold); letter-spacing: -.01em; }
.card__sub { font-size: var(--t-xs); color: var(--text-3); }
.card__body { padding: var(--s5); }
.card__body.tight { padding: var(--s3) var(--s4); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 38px; padding: 0 var(--s4);
  border-radius: var(--r-sm);
  font-size: var(--t-base); font-weight: var(--w-semi);
  white-space: nowrap;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
  border: 1px solid transparent;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 16px; height: 16px; stroke-width: 2; flex: none; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--bg-sunken); }
.btn--quiet { color: var(--text-2); }
.btn--quiet:hover { background: var(--bg-sunken); color: var(--text); }
.btn--danger { background: var(--red-mid); color: #fff; }
.btn--danger:hover { background: var(--red); }
.btn--sm { height: 31px; padding: 0 var(--s3); font-size: var(--t-sm); }
.btn--lg { height: 46px; padding: 0 var(--s6); font-size: var(--t-md); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--loading { color: transparent !important; position: relative; pointer-events: none; }
.btn--loading::after {
  content: ''; position: absolute; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
.btn--ghost.btn--loading::after { border-color: var(--border-strong); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════ */
.field { margin-bottom: var(--s4); }
.field label {
  display: block; font-size: var(--t-sm); font-weight: var(--w-semi);
  margin-bottom: 6px; color: var(--text);
}
.field .hint { font-size: var(--t-xs); color: var(--text-3); margin-top: 5px; }
.field .err { font-size: var(--t-xs); color: var(--red); margin-top: 5px; font-weight: var(--w-medium); }

.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 var(--s3);
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: var(--t-base);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.textarea { height: auto; min-height: 86px; padding: 10px var(--s3); resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(52,71,138,.13);
}
.input.is-error { border-color: var(--red-mid); }
.input[readonly] { background: var(--bg-sunken); color: var(--text-2); }
.input.num, .input.money { font-variant-numeric: tabular-nums; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356607F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
}

.field-row { display: flex; gap: var(--s3); }
.field-row > * { flex: 1; min-width: 0; }

/* Segmented control — used for Mr./Mrs., and for report tabs. */
.seg { display: inline-flex; background: var(--bg-sunken); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg__btn {
  padding: 6px var(--s4); border-radius: 7px;
  font-size: var(--t-sm); font-weight: var(--w-semi); color: var(--text-2);
  transition: background var(--fast), color var(--fast), box-shadow var(--fast);
}
.seg__btn.on { background: var(--surface); color: var(--navy); box-shadow: var(--sh-xs); }
.seg--block { display: flex; width: 100%; }
.seg--block .seg__btn { flex: 1; text-align: center; }

.switch {
  position: relative; width: 44px; height: 25px; flex: none;
  background: var(--border-strong); border-radius: var(--r-full);
  transition: background var(--base);
}
.switch::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-xs); transition: transform var(--base);
}
.switch.on { background: var(--green-mid); }
.switch.on::after { transform: translateX(19px); }
.switch.on.gold { background: var(--gold); }

/* ══════════════════════════════════════════════════════════
   CHIPS + BADGES
   ══════════════════════════════════════════════════════════ */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: var(--r-full);
  background: var(--bg-sunken); color: var(--text-2);
  font-size: var(--t-xs); font-weight: var(--w-semi);
  white-space: nowrap; transition: background var(--fast), color var(--fast);
}
.chip svg { width: 13px; height: 13px; stroke-width: 2.1; }
.chip.on { background: var(--navy); color: #fff; }
.chip--green  { background: var(--green-bg);  color: var(--green); }
.chip--red    { background: var(--red-bg);    color: var(--red); }
.chip--amber  { background: var(--amber-bg);  color: var(--amber); }
.chip--blue   { background: var(--blue-bg);   color: var(--blue); }
.chip--gold   { background: var(--gold-pale); color: #8A6A0C; }
.chip--purple { background: var(--purple-bg); color: var(--purple); }

/* ══════════════════════════════════════════════════════════
   STAT TILES — the dashboard's main currency
   ══════════════════════════════════════════════════════════ */
.tiles {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  margin-bottom: var(--s4);
}
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s4);
  text-align: left; position: relative; overflow: hidden;
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
  display: block; width: 100%;
}
.tile:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.tile:active { transform: translateY(0) scale(.993); }
/* Every tile is a link into the screen that explains it — the arrow
   is the affordance that says so without adding a word. */
.tile::after {
  content: ''; position: absolute; top: 14px; right: 14px;
  width: 14px; height: 14px; opacity: 0; transition: opacity var(--fast), transform var(--fast);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B93AD' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
}
.tile:hover::after { opacity: 1; transform: translate(1px,-1px); }

.tile__label {
  font-size: var(--t-xs); font-weight: var(--w-bold);
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.tile__label svg { width: 14px; height: 14px; stroke-width: 2; opacity: .75; }
.tile__value {
  font-size: var(--t-2xl); font-weight: var(--w-black); letter-spacing: -.03em;
  margin-top: 7px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.tile__value .unit { font-size: var(--t-sm); font-weight: var(--w-semi); color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.tile__foot { margin-top: 7px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tile__delta { font-size: var(--t-sm); font-weight: var(--w-bold); display: inline-flex; align-items: center; gap: 3px; }
.tile__delta svg { width: 13px; height: 13px; stroke-width: 2.6; }
.tile__note { font-size: var(--t-xs); color: var(--text-3); }
.tile--accent { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: transparent; }
.tile--accent .tile__label { color: rgba(255,255,255,.6); }
.tile--accent .tile__value { color: #fff; }
.tile--accent .tile__note { color: rgba(255,255,255,.55); }
.tile--accent::after { filter: brightness(3); }
.tile--gold { background: linear-gradient(150deg, #FFF9E8, #FFF3D4); border-color: var(--amber-border); }

/* Thin progress meter used under collection-rate tiles. */
.meter { height: 5px; border-radius: var(--r-full); background: var(--bg-sunken); overflow: hidden; margin-top: 9px; }
.meter__fill { height: 100%; border-radius: var(--r-full); background: var(--green-mid); transition: width var(--slow); }
.meter__fill.low  { background: var(--red-mid); }
.meter__fill.mid  { background: var(--gold); }

/* ══════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.tbl th {
  text-align: left; padding: 10px var(--s3);
  font-size: var(--t-xs); font-weight: var(--w-bold);
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap; background: var(--surface);
}
.tbl td { padding: 11px var(--s3); border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.tbl tbody tr { transition: background var(--fast); }
.tbl tbody tr:hover { background: var(--surface-alt); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .c { text-align: center; }
.tbl tfoot td, .tbl tr.total td {
  font-weight: var(--w-bold); background: var(--bg-sunken);
  border-top: 2px solid var(--border-strong); border-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   MODALS + SHEETS
   ══════════════════════════════════════════════════════════ */
.modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
.modal-root.on { display: block; }
.modal__scrim {
  position: absolute; inset: 0; background: rgba(15,30,66,.5);
  backdrop-filter: blur(3px); animation: fadeIn var(--base);
}
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn var(--spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%,-46%) scale(.96); }
}
.modal--wide { width: min(880px, calc(100vw - 32px)); }
.modal__head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--border-light);
}
.modal__title { font-size: var(--t-md); font-weight: var(--w-bold); }
.modal__sub { font-size: var(--t-xs); color: var(--text-3); margin-top: 1px; }
.modal__body { padding: var(--s5); overflow-y: auto; flex: 1; }
.modal__foot {
  display: flex; gap: var(--s3); justify-content: flex-end;
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--border-light); background: var(--surface-alt);
}

@media (max-width: 640px) {
  /* On a phone a centred dialog fights the keyboard; a bottom sheet
     sits above it and is reachable with a thumb. */
  .modal {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100%; max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: sheetIn var(--spring);
    padding-bottom: env(safe-area-inset-bottom);
  }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal::before {
    content: ''; display: block; width: 38px; height: 4px; border-radius: var(--r-full);
    background: var(--border-strong); margin: 9px auto 0;
  }
  .modal__head { padding: var(--s3) var(--s4) var(--s3); }
  .modal__body { padding: var(--s4); }
  .modal__foot { padding: var(--s3) var(--s4) var(--s4); }
  .modal__foot .btn { flex: 1; }
}

/* ══════════════════════════════════════════════════════════
   TOASTS
   ══════════════════════════════════════════════════════════ */
.toasts {
  position: fixed; z-index: 120; bottom: var(--s5); right: var(--s5);
  display: flex; flex-direction: column; gap: var(--s2); align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s3);
  min-width: 250px; max-width: 400px;
  padding: 12px var(--s4);
  background: var(--navy-deep); color: #fff;
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  font-size: var(--t-base); font-weight: var(--w-medium);
  animation: toastIn var(--spring); pointer-events: auto;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.out { animation: toastOut var(--base) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }
.toast svg { width: 17px; height: 17px; flex: none; stroke-width: 2.3; }
.toast--ok   { background: #12492C; }
.toast--err  { background: #7A1414; }
.toast--warn { background: #7A4A08; }

@media (max-width: 640px) {
  .toasts {
    left: var(--s3); right: var(--s3);
    bottom: calc(var(--bottomnav-h) + var(--s3) + env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .toast { min-width: 0; max-width: none; }
}

/* ══════════════════════════════════════════════════════════
   EMPTY / LOADING
   ══════════════════════════════════════════════════════════ */
.empty { text-align: center; padding: var(--s12) var(--s5); color: var(--text-3); }
.empty__icon {
  width: 56px; height: 56px; margin: 0 auto var(--s4);
  border-radius: var(--r-lg); background: var(--bg-sunken);
  display: grid; place-items: center; color: var(--text-4);
}
.empty__icon svg { width: 26px; height: 26px; stroke-width: 1.6; }
.empty h3 { font-size: var(--t-md); color: var(--text); margin-bottom: var(--s2); }
.empty p { font-size: var(--t-base); max-width: 380px; margin: 0 auto var(--s4); }

.skeleton {
  background: linear-gradient(90deg, var(--bg-sunken) 25%, #E6EAF3 50%, var(--bg-sunken) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: var(--r-xs);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 12px; margin-bottom: 9px; }
.sk-tile { height: 108px; border-radius: var(--r-lg); }

/* ══════════════════════════════════════════════════════════
   BANNERS
   ══════════════════════════════════════════════════════════ */
.banner {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r-md);
  font-size: var(--t-sm); margin-bottom: var(--s4);
  border: 1px solid transparent;
}
.banner svg { width: 17px; height: 17px; flex: none; margin-top: 1px; stroke-width: 2; }
.banner--info  { background: var(--blue-bg);  color: var(--blue);  border-color: var(--blue-border); }
.banner--warn  { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.banner--err   { background: var(--red-bg);   color: var(--red);   border-color: var(--red-border); }
.banner--ok    { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.banner--gold  { background: var(--gold-pale); color: #7A5C0A; border-color: var(--amber-border); }
.banner strong { font-weight: var(--w-bold); }

/* Offline / sync status chip in the topbar. */
.syncchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: var(--r-full);
  font-size: var(--t-xs); font-weight: var(--w-semi);
  background: var(--green-bg); color: var(--green);
  transition: background var(--fast), color var(--fast);
}
.syncchip svg { width: 13px; height: 13px; stroke-width: 2.2; }
.syncchip.offline { background: var(--amber-bg); color: var(--amber); }
.syncchip.syncing { background: var(--blue-bg); color: var(--blue); }
.syncchip.syncing svg { animation: spin 1.1s linear infinite; }
.syncchip.error { background: var(--red-bg); color: var(--red); }
@media (max-width: 640px) { .syncchip .syncchip__txt { display: none; } .syncchip { padding: 0 8px; } }

/* ══════════════════════════════════════════════════════════
   INTEGRITY BADGE
   Three resting states, one loud one. The quiet states are a single
   line high on purpose: the board should be able to take in "no
   issue found" without having to read it.
   ══════════════════════════════════════════════════════════ */
.integrity {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  font-size: var(--t-sm); margin-bottom: var(--s4);
}
.integrity > svg { width: 17px; height: 17px; flex: none; margin-top: 1px; stroke-width: 2.1; }
.integrity__text { flex: 1; min-width: 0; line-height: 1.5; }
.integrity strong { font-weight: var(--w-bold); }
.integrity .btn { flex: none; }

.integrity--open    { background: var(--bg-sunken); color: var(--text-3); border-color: var(--border); }
.integrity--ok      { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.integrity--pending { background: var(--surface);   color: var(--text-2); border-color: var(--border-strong); }
.integrity--changed { background: var(--red-bg);    color: var(--red);
                      border-color: var(--red-border); align-items: center; }

/* Every figure that moved, with both numbers side by side. Tabular
   digits so the was/now pairs line up down the list. */
.integrity__movedwrap { margin-top: var(--s3); display: grid; gap: 5px; }
.integrity__moved {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  font-variant-numeric: tabular-nums; font-size: var(--t-xs);
}
.integrity__moved svg { width: 12px; height: 12px; opacity: .6; }
.integrity__field { font-weight: var(--w-semi); min-width: 150px; }
.integrity__was   { text-decoration: line-through; opacity: .65; }
.integrity__now   { font-weight: var(--w-bold); }
.integrity__diff  {
  padding: 1px 6px; border-radius: var(--r-full);
  background: rgba(255,255,255,.55); font-weight: var(--w-bold);
}

.integrity__details { margin-top: var(--s3); }
.integrity__details summary {
  cursor: pointer; font-size: var(--t-xs); font-weight: var(--w-semi);
  text-decoration: underline; text-underline-offset: 2px;
}
.integrity__details ul { margin: var(--s2) 0 0; padding-left: var(--s4); display: grid; gap: 4px; }
.integrity__details li { font-size: var(--t-xs); line-height: 1.55; }
.integrity__when { opacity: .65; margin-left: 4px; }

@media (max-width: 640px) {
  .integrity { flex-wrap: wrap; }
  .integrity .btn { width: 100%; margin-top: var(--s2); }
  .integrity__field { min-width: 0; width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   INSTALL CARD
   Modelled on what an app listing looks like — icon, name,
   publisher, then what you actually get — because that is the
   comparison people make when they decide whether to install
   something on their own phone.
   ══════════════════════════════════════════════════════════ */
.install { position: relative; padding: 0; overflow: hidden; }
.install__x { position: absolute; top: var(--s3); right: var(--s3); z-index: 2; }
.install__top {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s6) var(--s6) var(--s5);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.install__x { color: rgba(255,255,255,.75); }
.install__icon {
  width: 58px; height: 58px; border-radius: 15px; flex: none; overflow: hidden;
  background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  display: grid; place-items: center;
}
.install__icon img { width: 100%; height: 100%; object-fit: cover; }
.install__name { font-size: var(--t-lg); font-weight: var(--w-bold); letter-spacing: -.02em; }
.install__pub  { font-size: var(--t-sm); color: rgba(255,255,255,.65); margin-top: 1px; }

.install__body { padding: var(--s5) var(--s6) var(--s2); }
.install__list { display: grid; gap: var(--s4); }
.install__list li { display: flex; gap: var(--s3); font-size: var(--t-sm); line-height: 1.55; }
.install__list li > svg {
  width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--green);
}
.install__list strong { font-weight: var(--w-bold); }

.install__steps {
  margin-top: var(--s5); padding: var(--s4);
  background: var(--bg-sunken); border-radius: var(--r-md);
}
.install__stepshead { font-size: var(--t-xs); font-weight: var(--w-bold); margin-bottom: var(--s3); }
.install__steps ol { display: grid; gap: var(--s3); }
.install__steps li {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  font-size: var(--t-sm); line-height: 1.4;
}
.install__steps li > span {
  width: 19px; height: 19px; border-radius: var(--r-full); flex: none;
  background: var(--navy); color: #fff; font-size: 10.5px; font-weight: var(--w-bold);
  display: grid; place-items: center;
}
.install__share { width: 15px; height: 15px; vertical-align: -2px; }
.install__foot {
  display: flex; gap: var(--s3); padding: var(--s4) var(--s6) var(--s6);
}
.install__foot .btn { flex: 1; }

/* ══════════════════════════════════════════════════════════
   NETWORK FLASH
   Says its piece and goes. Three seconds is long enough to read
   eight words and short enough not to become furniture.
   ══════════════════════════════════════════════════════════ */
.netflash {
  position: fixed; left: 50%; top: calc(var(--s4) + env(safe-area-inset-top));
  transform: translate(-50%, -140%);
  z-index: 210; max-width: min(92vw, 420px);
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: var(--t-xs); font-weight: var(--w-bold); letter-spacing: .01em;
  text-align: center; color: #fff; background: var(--navy);
  box-shadow: var(--sh-lg, 0 10px 30px rgba(0,0,0,.22));
  transition: transform .3s cubic-bezier(.2,.9,.25,1), opacity .3s;
  opacity: 0; pointer-events: none;
}
.netflash.on { transform: translate(-50%, 0); opacity: 1; }
.netflash--warn { background: var(--amber); }
.netflash--ok   { background: var(--green); }

/* ══════════════════════════════════════════════════════════
   NOTIFICATION SETTINGS
   ══════════════════════════════════════════════════════════ */
.notif__state {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-sunken);
  margin-bottom: var(--s4);
}
.notif__state svg { width: 22px; height: 22px; flex: none; }
.notif__state-main { flex: 1; min-width: 0; }
.notif__state-title { font-size: var(--t-base); font-weight: var(--w-bold); }
.notif__state-desc  { font-size: var(--t-xs); color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.notif__state.is-on      { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.notif__state.is-blocked { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red); }
.notif__quiet { display: flex; gap: var(--s3); align-items: flex-end; }
.notif__quiet .field { flex: 1; margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   SPLIT PREVIEW
   Reads as a receipt, deliberately: the bursar is checking
   arithmetic she would otherwise have done in her head.
   ══════════════════════════════════════════════════════════ */
.split { display: grid; gap: 1px; }
.split__row {
  display: flex; align-items: center; gap: var(--s3);
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: var(--t-sm);
}
.split__label { flex: 1; min-width: 0; font-weight: var(--w-medium); }
.split__add {
  font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
  min-width: 84px; text-align: right;
}
.split__was { font-size: var(--t-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.split__row--total {
  border-top: 2px solid var(--navy); border-bottom: 0;
  margin-top: 3px; padding-top: 11px; font-size: var(--t-base);
}
.split__row--total .split__label { font-weight: var(--w-bold); }
