/*!* ═══════════════════════════════════════════════════════════════*/
/*   AHPC-SL Financial Management System — brand theme*/
/*   Palette drawn from the council crest:*/
/*   forest green (panel), caduceus leaf green, crest amber.*/
/*   ═══════════════════════════════════════════════════════════════ *!*/

/*:root {*/
/*  !* Brand *!*/
/*  --ahpc-forest:      #173a2c;*/
/*  --ahpc-forest-deep: #0f291f;*/
/*  --ahpc-forest-soft: #1e4a38;*/
/*  --ahpc-leaf:        #59a82e;*/
/*  --ahpc-leaf-soft:   #eaf4e2;*/
/*  --ahpc-amber:       #dd9a1e;*/
/*  --ahpc-amber-deep:  #b87e12;*/
/*  --ahpc-amber-soft:  #fbf3e1;*/
/*  --ahpc-paper:       #f7f6f1;*/
/*  --ahpc-ink:         #152019;*/

/*  !* Layout *!*/
/*  --ahpc-sidebar-w: 264px;*/
/*  --ahpc-radius: .75rem;*/
/*  --ahpc-shadow-card: 0 1px 2px rgba(21,32,25,.06), 0 8px 24px rgba(21,32,25,.07);*/

/*  !* Re-tune Bootstrap globals to the brand *!*/
/*  --bs-body-bg: var(--ahpc-paper);*/
/*  --bs-body-color: var(--ahpc-ink);*/
/*  --bs-body-font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;*/
/*  --bs-link-color: var(--ahpc-forest-soft);*/
/*  --bs-link-hover-color: var(--ahpc-forest-deep);*/
/*  --bs-border-color: rgba(21, 32, 25, .12);*/
/*}*/

/*!* ── Typography ─────────────────────────────────────────────── *!*/
/*.font-display {*/
/*  font-family: "Fraunces", Georgia, serif;*/
/*  font-weight: 600;*/
/*  letter-spacing: -.01em;*/
/*}*/

/*!* Every money figure and cheque number aligns like a ledger *!*/
/*.money {*/
/*  font-family: "IBM Plex Mono", ui-monospace, monospace;*/
/*  font-variant-numeric: tabular-nums;*/
/*  letter-spacing: -.02em;*/
/*  white-space: nowrap;*/
/*}*/

/*.text-eyebrow {*/
/*  font-size: .6875rem;*/
/*  font-weight: 600;*/
/*  text-transform: uppercase;*/
/*  letter-spacing: .14em;*/
/*}*/

/*!* ── Buttons: brand primary = crest amber ───────────────────── *!*/
/*.btn-ahpc {*/
/*  --bs-btn-bg: var(--ahpc-amber);*/
/*  --bs-btn-border-color: var(--ahpc-amber);*/
/*  --bs-btn-color: var(--ahpc-forest-deep);*/
/*  --bs-btn-hover-bg: var(--ahpc-amber-deep);*/
/*  --bs-btn-hover-border-color: var(--ahpc-amber-deep);*/
/*  --bs-btn-hover-color: #fff;*/
/*  --bs-btn-active-bg: var(--ahpc-amber-deep);*/
/*  --bs-btn-active-border-color: var(--ahpc-amber-deep);*/
/*  --bs-btn-active-color: #fff;*/
/*  --bs-btn-focus-shadow-rgb: 221, 154, 30;*/
/*  font-weight: 600;*/
/*}*/

/*.btn-outline-forest {*/
/*  --bs-btn-color: var(--ahpc-forest);*/
/*  --bs-btn-border-color: var(--ahpc-forest);*/
/*  --bs-btn-hover-bg: var(--ahpc-forest);*/
/*  --bs-btn-hover-border-color: var(--ahpc-forest);*/
/*  --bs-btn-hover-color: #fff;*/
/*  --bs-btn-active-bg: var(--ahpc-forest-deep);*/
/*  --bs-btn-active-border-color: var(--ahpc-forest-deep);*/
/*  --bs-btn-active-color: #fff;*/
/*  --bs-btn-focus-shadow-rgb: 23, 58, 44;*/
/*}*/

/*!* ── Forms: leaf-green focus ring ───────────────────────────── *!*/
/*.form-control:focus,*/
/*.form-select:focus {*/
/*  border-color: var(--ahpc-leaf);*/
/*  box-shadow: 0 0 0 .2rem rgba(89, 168, 46, .22);*/
/*}*/
/*.form-label { font-weight: 600; color: rgba(21, 32, 25, .8); }*/

/*!* ── Cards ──────────────────────────────────────────────────── *!*/
/*.card {*/
/*  --bs-card-border-color: transparent;*/
/*  --bs-card-border-radius: var(--ahpc-radius);*/
/*  box-shadow: var(--ahpc-shadow-card);*/
/*}*/

/*!* ── Tables ─────────────────────────────────────────────────── *!*/
/*.table-ahpc {*/
/*  --bs-table-hover-bg: var(--ahpc-leaf-soft);*/
/*  border-color: var(--bs-border-color);*/
/*}*/
/*.table-ahpc thead th {*/
/*  background: var(--ahpc-forest);*/
/*  color: #fff;*/
/*  font-size: .8rem;*/
/*  font-weight: 600;*/
/*  text-transform: uppercase;*/
/*  letter-spacing: .04em;*/
/*  border-color: var(--ahpc-forest);*/
/*  white-space: nowrap;*/
/*}*/

/*!* ═══════════════════════════════════════════════════════════════*/
/*   APP SHELL — sidebar + main column*/
/*   ═══════════════════════════════════════════════════════════════ *!*/

/*.app-shell { min-height: 100vh; min-height: 100dvh; }*/

/*.app-sidebar {*/
/*  background: var(--ahpc-forest);*/
/*  color: #fff;*/
/*  width: var(--ahpc-sidebar-w);*/
/*}*/

/*.sidebar-brand { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.25rem; }*/
/*.sidebar-brand img {*/
/*  width: 44px; height: 44px;*/
/*  border-radius: 50%;*/
/*  background: #fff;*/
/*  padding: 2px;*/
/*  flex-shrink: 0;*/
/*}*/
/*.sidebar-brand .brand-name { font-size: 1.125rem; line-height: 1.15; color: #fff; }*/
/*.sidebar-brand .brand-sub  { color: var(--ahpc-leaf); }*/

/*.sidebar-nav { padding: .25rem .75rem 1rem; }*/
/*.sidebar-heading { padding: 1.1rem .75rem .35rem; color: rgba(255,255,255,.4); }*/

/*.sidebar-link {*/
/*  display: flex; align-items: center; gap: .75rem;*/
/*  padding: .55rem .75rem;*/
/*  margin-bottom: .125rem;*/
/*  border-radius: .5rem;*/
/*  color: rgba(255,255,255,.72);*/
/*  font-size: .9rem;*/
/*  font-weight: 500;*/
/*  text-decoration: none;*/
/*  transition: background-color .15s ease, color .15s ease;*/
/*}*/
/*.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; }*/
/*.sidebar-link.active {*/
/*  background: rgba(89, 168, 46, .22);*/
/*  color: #fff;*/
/*  box-shadow: inset 3px 0 0 var(--ahpc-leaf);*/
/*}*/
/*.sidebar-link .bi { font-size: 1.05rem; opacity: .85; flex-shrink: 0; }*/

/*.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: .9rem .75rem; }*/
/*.sidebar-footer .btn {*/
/*  width: 100%; text-align: left;*/
/*  color: rgba(255,255,255,.72);*/
/*  border: 0; background: transparent;*/
/*  padding: .5rem .75rem; border-radius: .5rem;*/
/*  font-size: .9rem; font-weight: 500;*/
/*}*/
/*.sidebar-footer .btn:hover { background: rgba(255,255,255,.1); color: #fff; }*/

/*!* Offcanvas → fixed column at lg (green re-asserted to beat Bootstrap) *!*/
/*@media (min-width: 992px) {*/
/*  .app-sidebar {*/
/*    background: var(--ahpc-forest) !important;*/
/*    position: fixed;*/
/*    inset: 0 auto 0 0;*/
/*    display: flex !important;*/
/*    flex-direction: column;*/
/*    overflow-y: auto;*/
/*    z-index: 1030;*/
/*  }*/
/*  .app-main { margin-left: var(--ahpc-sidebar-w); }*/
/*}*/

/*.offcanvas.app-sidebar,*/
/*.offcanvas-lg.app-sidebar { --bs-offcanvas-bg: var(--ahpc-forest); --bs-offcanvas-width: var(--ahpc-sidebar-w); }*/
/*.offcanvas-lg.app-sidebar .btn-close { filter: invert(1) grayscale(1) brightness(2); }*/

/*!* ── Top bar ────────────────────────────────────────────────── *!*/
/*.app-topbar {*/
/*  background: #fff;*/
/*  border-bottom: 1px solid var(--bs-border-color);*/
/*  padding: .8rem 1.25rem;*/
/*  display: flex; align-items: center; gap: .9rem;*/
/*  position: sticky; top: 0; z-index: 1020;*/
/*}*/
/*.app-topbar h1 { font-size: 1.25rem; margin: 0; color: var(--ahpc-forest); }*/

/*.user-chip {*/
/*  width: 38px; height: 38px;*/
/*  border-radius: 50%;*/
/*  background: var(--ahpc-leaf-soft);*/
/*  color: var(--ahpc-forest);*/
/*  font-weight: 700;*/
/*  display: inline-flex; align-items: center; justify-content: center;*/
/*  flex-shrink: 0;*/
/*}*/

/*!* ── Content area ───────────────────────────────────────────── *!*/
/*.app-content { padding: 1.25rem; }*/
/*@media (min-width: 768px) { .app-content { padding: 1.75rem; } }*/

/*.stat-card { padding: 1.15rem 1.3rem; height: 100%; }*/
/*.stat-card .stat-label { color: rgba(21,32,25,.55); }*/
/*.stat-card .stat-value { font-size: 1.55rem; color: var(--ahpc-forest); margin: .15rem 0 0; }*/
/*.stat-card .stat-accent { width: 34px; height: 4px; border-radius: 2px; background: var(--ahpc-amber); margin-top: .7rem; }*/

/*!* ═══════════════════════════════════════════════════════════════*/
/*   LOGIN PAGE*/
/*   ═══════════════════════════════════════════════════════════════ *!*/

/*.login-viewport {*/
/*  min-height: 100vh; min-height: 100dvh;*/
/*  display: flex; align-items: center; justify-content: center;*/
/*  padding: 1rem;*/
/*  background:*/
/*    radial-gradient(1100px 500px at 85% -10%, rgba(89,168,46,.14), transparent 60%),*/
/*    var(--ahpc-forest-deep);*/
/*}*/

/*.login-card {*/
/*  width: 100%; max-width: 900px;*/
/*  border-radius: 1.15rem;*/
/*  overflow: hidden;*/
/*  background: #fff;*/
/*  box-shadow: 0 24px 70px rgba(0,0,0,.42);*/
/*}*/

/*.login-crest {*/
/*  background:*/
/*    repeating-linear-gradient(to bottom,*/
/*      transparent 0 31px,*/
/*      rgba(255,255,255,.07) 31px 32px),*/
/*    var(--ahpc-forest);*/
/*  color: #fff;*/
/*  padding: 2.25rem;*/
/*  display: flex; flex-direction: column; justify-content: space-between;*/
/*}*/
/*.login-crest img {*/
/*  width: 84px; height: 84px;*/
/*  border-radius: 50%;*/
/*  background: #fff; padding: 4px;*/
/*  box-shadow: 0 10px 26px rgba(0,0,0,.35);*/
/*}*/
/*.login-crest h1 { font-size: 1.55rem; line-height: 1.3; margin: 1.4rem 0 .2rem; color: #fff; }*/
/*.login-crest .crest-country { color: var(--ahpc-leaf); }*/
/*.login-crest .crest-note { color: rgba(255,255,255,.5); font-size: .78rem; line-height: 1.55; margin: 2.2rem 0 0; }*/

/*.login-form-pane { padding: 2.25rem; }*/
/*@media (min-width: 768px) { .login-form-pane { padding: 2.75rem; } }*/
/*.login-form-pane h2 { color: var(--ahpc-forest); }*/

/*@media (max-width: 767.98px) {*/
/*  .login-crest { padding: 1.6rem 1.75rem; }*/
/*  .login-crest img { width: 58px; height: 58px; }*/
/*  .login-crest h1 { font-size: 1.2rem; margin-top: .9rem; }*/
/*  .login-crest .crest-note { display: none; }*/
/*}*/

/*!* ── Utilities ──────────────────────────────────────────────── *!*/
/*.text-forest { color: var(--ahpc-forest) !important; }*/
/*.text-leaf   { color: var(--ahpc-leaf) !important; }*/
/*.bg-leaf-soft  { background: var(--ahpc-leaf-soft) !important; }*/
/*.bg-amber-soft { background: var(--ahpc-amber-soft) !important; }*/

/*:focus-visible { outline: 2px solid var(--ahpc-amber); outline-offset: 2px; }*/

/*@media (prefers-reduced-motion: reduce) {*/
/*  *, *::before, *::after {*/
/*    animation-duration: .01ms !important;*/
/*    animation-iteration-count: 1 !important;*/
/*    transition-duration: .01ms !important;*/
/*  }*/
/*}*/

/*@media print {*/
/*  .app-sidebar, .app-topbar, .no-print { display: none !important; }*/
/*  .app-main { margin-left: 0 !important; }*/
/*  body { background: #fff; }*/
/*}*/

/*!* ═══════════════════════════════════════════════════════════════*/
/*   PETTY CASH — responsive polish + KPI/progress styling*/
/*   ═══════════════════════════════════════════════════════════════ *!*/

/*.progress { background-color: #e6e9e4; border-radius: 999px; }*/
/*.progress-bar.bg-leaf { background-color: var(--ahpc-leaf) !important; }*/

/*@media (max-width: 575.98px) {*/
/*  .stat-card { padding: .85rem .95rem; }*/
/*  .stat-card .stat-value { font-size: 1.15rem; }*/
/*  .stat-card .stat-label { font-size: .72rem; }*/
/*}*/

/*.table-ahpc td, .table-ahpc th { vertical-align: middle; }*/
/*.table-ahpc .money { white-space: nowrap; }*/

/*.table-responsive { position: relative; }*/
/*@media (max-width: 767.98px) {*/
/*  .table-responsive::after {*/
/*    content: "";*/
/*    position: absolute; top: 0; right: 0; bottom: 0; width: 24px;*/
/*    background: linear-gradient(to right, transparent, rgba(21,32,25,.06));*/
/*    pointer-events: none;*/
/*  }*/
/*}*/

/*.table-ahpc tbody tr.pagination-row:hover { background: transparent !important; }*/
/*.pagination .page-link {*/
/*  color: var(--ahpc-forest);*/
/*  border-color: var(--bs-border-color);*/
/*}*/
/*.pagination .page-item.active .page-link {*/
/*  background-color: var(--ahpc-forest);*/
/*  border-color: var(--ahpc-forest);*/
/*  color: #fff;*/
/*}*/
/*.pagination .page-link:focus {*/
/*  box-shadow: 0 0 0 .2rem rgba(89,168,46,.22);*/
/*}*/

/*@media (max-width: 991.98px) {*/
/*  .card-body .row.g-2 .dropdown,*/
/*  .card-body .row.g-2 .btn { flex: 0 0 auto; }*/
/*}*/

/*input[data-calc="amount"][readonly] {*/
/*  background-color: var(--ahpc-leaf-soft);*/
/*  font-weight: 600;*/
/*  color: var(--ahpc-forest);*/
/*}*/

/*.table-ahpc a .bi-file-earmark-pdf { color: #c0392b; }*/
/*.table-ahpc a .bi-paperclip { color: var(--ahpc-forest); }*/

/*!* ═══════════════════════════════════════════════════════════════*/
/*   MODAL: keep header + footer pinned, only the body scrolls.*/
/*   Fixes the New entry / Edit modal Save button being pushed off*/
/*   the bottom of the screen on short viewports.*/
/*   ═══════════════════════════════════════════════════════════════ *!*/
/*.modal-dialog-scrollable {*/
/*  max-height: calc(100dvh - 2rem);*/
/*  height: calc(100dvh - 2rem);*/
/*}*/
/*.modal-dialog-scrollable .modal-content {*/
/*  max-height: 100%;*/
/*  overflow: hidden;*/
/*}*/
/*.modal-dialog-scrollable .modal-body {*/
/*  overflow-y: auto;*/
/*}*/
/*.modal-dialog-scrollable .modal-footer {*/
/*  position: sticky;*/
/*  bottom: 0;*/
/*  background: #fff;*/
/*  border-top: 1px solid var(--bs-border-color);*/
/*  z-index: 2;*/
/*}*/
/*@media (max-width: 575.98px) {*/
/*  .modal-dialog-scrollable {*/
/*    margin: 0.5rem;*/
/*    max-height: calc(100dvh - 1rem);*/
/*    height: calc(100dvh - 1rem);*/
/*  }*/
/*}*/
/* ═══════════════════════════════════════════════════════════════
   AHPC-SL Financial Management System — brand theme
   Palette drawn from the council crest:
   forest green (panel), caduceus leaf green, crest amber.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --ahpc-forest:      #173a2c;
  --ahpc-forest-deep: #0f291f;
  --ahpc-forest-soft: #1e4a38;
  --ahpc-leaf:        #59a82e;
  --ahpc-leaf-soft:   #eaf4e2;
  --ahpc-amber:       #dd9a1e;
  --ahpc-amber-deep:  #b87e12;
  --ahpc-amber-soft:  #fbf3e1;
  --ahpc-paper:       #f7f6f1;
  --ahpc-ink:         #152019;

  /* Layout */
  --ahpc-sidebar-w: 264px;
  --ahpc-radius: .75rem;
  --ahpc-shadow-card: 0 1px 2px rgba(21,32,25,.06), 0 8px 24px rgba(21,32,25,.07);

  /* Re-tune Bootstrap globals to the brand */
  --bs-body-bg: var(--ahpc-paper);
  --bs-body-color: var(--ahpc-ink);
  --bs-body-font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-link-color: var(--ahpc-forest-soft);
  --bs-link-hover-color: var(--ahpc-forest-deep);
  --bs-border-color: rgba(21, 32, 25, .12);
}

/* ── Typography ─────────────────────────────────────────────── */
.font-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Every money figure and cheque number aligns like a ledger */
.money {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.text-eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* ── Buttons: brand primary = crest amber ───────────────────── */
.btn-ahpc {
  --bs-btn-bg: var(--ahpc-amber);
  --bs-btn-border-color: var(--ahpc-amber);
  --bs-btn-color: var(--ahpc-forest-deep);
  --bs-btn-hover-bg: var(--ahpc-amber-deep);
  --bs-btn-hover-border-color: var(--ahpc-amber-deep);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ahpc-amber-deep);
  --bs-btn-active-border-color: var(--ahpc-amber-deep);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 221, 154, 30;
  font-weight: 600;
}

.btn-outline-forest {
  --bs-btn-color: var(--ahpc-forest);
  --bs-btn-border-color: var(--ahpc-forest);
  --bs-btn-hover-bg: var(--ahpc-forest);
  --bs-btn-hover-border-color: var(--ahpc-forest);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ahpc-forest-deep);
  --bs-btn-active-border-color: var(--ahpc-forest-deep);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 23, 58, 44;
}

/* ── Forms: leaf-green focus ring ───────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--ahpc-leaf);
  box-shadow: 0 0 0 .2rem rgba(89, 168, 46, .22);
}
.form-label { font-weight: 600; color: rgba(21, 32, 25, .8); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  --bs-card-border-color: transparent;
  --bs-card-border-radius: var(--ahpc-radius);
  box-shadow: var(--ahpc-shadow-card);
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-ahpc {
  --bs-table-hover-bg: var(--ahpc-leaf-soft);
  border-color: var(--bs-border-color);
}
.table-ahpc thead th {
  background: var(--ahpc-forest);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-color: var(--ahpc-forest);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   APP SHELL — sidebar + main column
   ═══════════════════════════════════════════════════════════════ */

.app-shell { min-height: 100vh; min-height: 100dvh; }

.app-sidebar {
  background: var(--ahpc-forest);
  color: #fff;
  width: var(--ahpc-sidebar-w);
}

.sidebar-brand { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.25rem; }
.sidebar-brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.sidebar-brand .brand-name { font-size: 1.125rem; line-height: 1.15; color: #fff; }
.sidebar-brand .brand-sub  { color: var(--ahpc-leaf); }

.sidebar-nav { padding: .25rem .75rem 1rem; }
.sidebar-heading { padding: 1.1rem .75rem .35rem; color: rgba(255,255,255,.4); }

.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem;
  margin-bottom: .125rem;
  border-radius: .5rem;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link.active {
  background: rgba(89, 168, 46, .22);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--ahpc-leaf);
}
.sidebar-link .bi { font-size: 1.05rem; opacity: .85; flex-shrink: 0; }

.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: .9rem .75rem; }
.sidebar-footer .btn {
  width: 100%; text-align: left;
  color: rgba(255,255,255,.72);
  border: 0; background: transparent;
  padding: .5rem .75rem; border-radius: .5rem;
  font-size: .9rem; font-weight: 500;
}
.sidebar-footer .btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Offcanvas → fixed column at lg (green re-asserted to beat Bootstrap) */
@media (min-width: 992px) {
  .app-sidebar {
    background: var(--ahpc-forest) !important;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1030;
  }
  .app-main { margin-left: var(--ahpc-sidebar-w); }
}

.offcanvas.app-sidebar,
.offcanvas-lg.app-sidebar { --bs-offcanvas-bg: var(--ahpc-forest); --bs-offcanvas-width: var(--ahpc-sidebar-w); }
.offcanvas-lg.app-sidebar .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ── Top bar ────────────────────────────────────────────────── */
.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--bs-border-color);
  padding: .8rem 1.25rem;
  display: flex; align-items: center; gap: .9rem;
  position: sticky; top: 0; z-index: 1020;
}
.app-topbar h1 { font-size: 1.25rem; margin: 0; color: var(--ahpc-forest); }

.user-chip {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ahpc-leaf-soft);
  color: var(--ahpc-forest);
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Content area ───────────────────────────────────────────── */
.app-content { padding: 1.25rem; }
@media (min-width: 768px) { .app-content { padding: 1.75rem; } }

.stat-card { padding: 1.15rem 1.3rem; height: 100%; }
.stat-card .stat-label { color: rgba(21,32,25,.55); }
.stat-card .stat-value { font-size: 1.55rem; color: var(--ahpc-forest); margin: .15rem 0 0; }
.stat-card .stat-accent { width: 34px; height: 4px; border-radius: 2px; background: var(--ahpc-amber); margin-top: .7rem; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */

.login-viewport {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(89,168,46,.14), transparent 60%),
    var(--ahpc-forest-deep);
}

.login-card {
  width: 100%; max-width: 900px;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.login-crest {
  background:
    repeating-linear-gradient(to bottom,
      transparent 0 31px,
      rgba(255,255,255,.07) 31px 32px),
    var(--ahpc-forest);
  color: #fff;
  padding: 2.25rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-crest img {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #fff; padding: 4px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.login-crest h1 { font-size: 1.55rem; line-height: 1.3; margin: 1.4rem 0 .2rem; color: #fff; }
.login-crest .crest-country { color: var(--ahpc-leaf); }
.login-crest .crest-note { color: rgba(255,255,255,.5); font-size: .78rem; line-height: 1.55; margin: 2.2rem 0 0; }

.login-form-pane { padding: 2.25rem; }
@media (min-width: 768px) { .login-form-pane { padding: 2.75rem; } }
.login-form-pane h2 { color: var(--ahpc-forest); }

@media (max-width: 767.98px) {
  .login-crest { padding: 1.6rem 1.75rem; }
  .login-crest img { width: 58px; height: 58px; }
  .login-crest h1 { font-size: 1.2rem; margin-top: .9rem; }
  .login-crest .crest-note { display: none; }
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-forest { color: var(--ahpc-forest) !important; }
.text-leaf   { color: var(--ahpc-leaf) !important; }
.bg-leaf-soft  { background: var(--ahpc-leaf-soft) !important; }
.bg-amber-soft { background: var(--ahpc-amber-soft) !important; }

:focus-visible { outline: 2px solid var(--ahpc-amber); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .app-sidebar, .app-topbar, .no-print { display: none !important; }
  .app-main { margin-left: 0 !important; }
  body { background: #fff; }
}

/* ═══════════════════════════════════════════════════════════════
   PETTY CASH — responsive polish + KPI/progress styling
   ═══════════════════════════════════════════════════════════════ */

.progress { background-color: #e6e9e4; border-radius: 999px; }
.progress-bar.bg-leaf { background-color: var(--ahpc-leaf) !important; }

@media (max-width: 575.98px) {
  .stat-card { padding: .85rem .95rem; }
  .stat-card .stat-value { font-size: 1.15rem; }
  .stat-card .stat-label { font-size: .72rem; }
}

.table-ahpc td, .table-ahpc th { vertical-align: middle; }
.table-ahpc .money { white-space: nowrap; }

.table-responsive { position: relative; }
@media (max-width: 767.98px) {
  .table-responsive::after {
    content: "";
    position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
    background: linear-gradient(to right, transparent, rgba(21,32,25,.06));
    pointer-events: none;
  }
}

.table-ahpc tbody tr.pagination-row:hover { background: transparent !important; }
.pagination .page-link {
  color: var(--ahpc-forest);
  border-color: var(--bs-border-color);
}
.pagination .page-item.active .page-link {
  background-color: var(--ahpc-forest);
  border-color: var(--ahpc-forest);
  color: #fff;
}
.pagination .page-link:focus {
  box-shadow: 0 0 0 .2rem rgba(89,168,46,.22);
}

@media (max-width: 991.98px) {
  .card-body .row.g-2 .dropdown,
  .card-body .row.g-2 .btn { flex: 0 0 auto; }
}

input[data-calc="amount"][readonly] {
  background-color: var(--ahpc-leaf-soft);
  font-weight: 600;
  color: var(--ahpc-forest);
}

.table-ahpc a .bi-file-earmark-pdf { color: #c0392b; }
.table-ahpc a .bi-paperclip { color: var(--ahpc-forest); }

/* ═══════════════════════════════════════════════════════════════
   SORTABLE TABLE HEADERS
   Each header label is a transparent button that inherits the
   forest-green header styling; active column shows an amber caret.
   ═══════════════════════════════════════════════════════════════ */
.th-sort {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.th-sort:hover { color: var(--ahpc-leaf); }
.th-sort .sort-idle { opacity: .4; font-size: .8em; }
.th-sort .sort-active { color: var(--ahpc-amber); font-size: .85em; }
.th-sort:focus-visible { outline: 2px solid var(--ahpc-amber); outline-offset: 2px; }

/* Right-aligned numeric headers keep the caret next to the label */
.table-ahpc th.text-end .th-sort { justify-content: flex-end; width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   MODAL: keep header + footer pinned, only the body scrolls.
   ═══════════════════════════════════════════════════════════════ */
.modal-dialog-scrollable {
  max-height: calc(100dvh - 2rem);
  height: calc(100dvh - 2rem);
}
.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}
.modal-dialog-scrollable .modal-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--bs-border-color);
  z-index: 2;
}
@media (max-width: 575.98px) {
  .modal-dialog-scrollable {
    margin: 0.5rem;
    max-height: calc(100dvh - 1rem);
    height: calc(100dvh - 1rem);
  }
}