/* Proshar Finance - original theme on top of Bootstrap 5 */
:root {
  --brand: #0f5c4d;
  --brand-dark: #0a4237;
  --brand-soft: #e7f3ef;
  --accent: #e0a526;
  --ink: #14211e;
  --muted: #5d6b67;
  --surface: #f5f7f6;
  --bs-primary: #0f5c4d;
  --bs-primary-rgb: 15, 92, 77;
  --bs-link-color: #0f5c4d;
  --bs-link-hover-color: #0a4237;
  --bs-body-color: #14211e;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
  --bs-border-radius: .6rem;
}

body { background: var(--surface); font-feature-settings: "tnum" 1, "cv11" 1; }
h1, h2, h3, h4, h5, .display-5 { font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
a { text-underline-offset: 2px; }
.text-muted { color: var(--muted) !important; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #2a1e00; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: #c99016; border-color: #c99016; color: #2a1e00; }
.btn { font-weight: 500; }
.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(15, 92, 77, .22); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 500; font-size: .9rem; }
.page-link { color: var(--brand); }
.active > .page-link { background: var(--brand); border-color: var(--brand); }

/* skip link for keyboard users */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* cards & tables */
.card { border: 1px solid #e3e8e6; box-shadow: 0 1px 2px rgba(20, 33, 30, .04); }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid #e3e8e6; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfa; white-space: nowrap; }
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--brand-soft); }
.table a.sort { color: inherit; text-decoration: none; }
.badge { font-weight: 600; letter-spacing: .01em; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2rem; display: block; margin-bottom: .5rem; color: #a9b6b2; }
dl.kv { display: grid; grid-template-columns: minmax(9rem, 38%) 1fr; gap: .4rem 1rem; margin: 0; }
dl.kv dt { font-weight: 500; color: var(--muted); font-size: .88rem; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

/* stat tiles */
.stat { background: #fff; border: 1px solid #e3e8e6; border-radius: var(--bs-border-radius); padding: 1rem 1.1rem; height: 100%; }
.stat .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 1.45rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: .78rem; color: var(--muted); }
.stat.stat-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat.stat-brand .label, .stat.stat-brand .hint { color: rgba(255, 255, 255, .78); }
.stat.stat-alert { border-left: 4px solid #c0392b; }

/* public site */
.site-nav { background: #fff; border-bottom: 1px solid #e3e8e6; }
.brand { font-weight: 800; letter-spacing: -.02em; color: var(--brand) !important; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: inline-grid; place-items: center; color: var(--accent); font-size: 1rem; }
.hero { background: linear-gradient(135deg, #0a4237 0%, #0f5c4d 55%, #17806b 100%); color: #fff; padding: 4.5rem 0 5rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }
.hero p.lead { color: rgba(255, 255, 255, .85); }
.hero .calc-card { color: var(--ink); border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.section { padding: 4rem 0; }
.section-alt { background: #fff; border-block: 1px solid #e3e8e6; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--brand); }
.step-num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; flex: none; }
.product-card { height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 33, 30, .09); }
.rate-pill { background: var(--brand-soft); color: var(--brand); border-radius: 2rem; padding: .25rem .75rem; font-weight: 600; font-size: .85rem; display: inline-block; }
.quote-box { background: var(--brand-soft); border-radius: var(--bs-border-radius); padding: 1rem; }
.quote-box .big { font-size: 1.6rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.disclosure { border-left: 4px solid var(--accent); background: #fff8e6; padding: .85rem 1rem; border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0; font-size: .9rem; }
.site-footer { background: #0d1f1b; color: #b9c7c3; padding: 3rem 0 1.5rem; font-size: .9rem; }
.site-footer a { color: #dfe8e5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h6 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.auth-card { max-width: 460px; margin: 3rem auto; }

/* app shell (customer + staff) */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex: none; background: #0d1f1b; color: #c6d2ce; padding: 1rem .75rem; }
.sidebar .brand { color: #fff !important; padding: .25rem .5rem 1rem; }
.sidebar .nav-link { color: #c6d2ce; border-radius: .5rem; padding: .5rem .7rem; font-size: .92rem; display: flex; align-items: center; gap: .65rem; }
.sidebar .nav-link:hover, .sidebar .nav-link:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; }
.sidebar .nav-heading { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #7f918c; padding: 1rem .7rem .3rem; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid #e3e8e6; padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.content { padding: 1.5rem 1.25rem 3rem; max-width: 1280px; width: 100%; }
.page-title { font-size: 1.4rem; margin: 0; }
.env-banner { background: #fff3cd; color: #664d03; font-size: .8rem; text-align: center; padding: .25rem .5rem; border-bottom: 1px solid #ffe69c; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1045; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; }
  .sidebar.show { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
}

button[disabled] .spinner-border { display: inline-block; }
.btn .spinner-border { display: none; width: 1rem; height: 1rem; border-width: .15em; margin-right: .4rem; vertical-align: -2px; }
.loading { opacity: .55; pointer-events: none; }

/* install-the-app pop-up */
.install-card { position: fixed; z-index: 1080; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(460px, calc(100vw - 1.5rem));
  background: #fff; border: 1px solid #d6dedb; border-radius: 1rem; box-shadow: 0 18px 48px rgba(13, 31, 27, .28); padding: .9rem 1rem;
  display: grid; grid-template-columns: auto 1fr; gap: .6rem .85rem; align-items: center; animation: install-in .25s ease-out; }
.install-card img { border-radius: 12px; }
.install-card .install-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .5rem; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .install-card { animation: none; } }

/* Bangla typography */
:lang(bn) body { font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Vrinda", var(--bs-body-font-family); line-height: 1.65; }
:lang(bn) .table > thead th, :lang(bn) .stat .label, :lang(bn) .eyebrow, :lang(bn) .sidebar .nav-heading { letter-spacing: 0; font-size: .82rem; text-transform: none; }

/* receipts & statements */
.doc { background: #fff; max-width: 820px; margin: 2rem auto; padding: 2.5rem; border: 1px solid #e3e8e6; border-radius: var(--bs-border-radius); }
@media print {
  body { background: #fff; }
  .no-print, .sidebar, .topbar, .site-nav, .site-footer, .env-banner { display: none !important; }
  .doc { border: 0; margin: 0; padding: 0; max-width: none; }
  .content { padding: 0; }
  a[href]::after { content: none !important; }
}

/* ===== App-like mobile experience ======================================================= */
.btn-icon { border: 0; background: transparent; padding: .35rem .5rem; color: var(--ink); line-height: 1; }
.btn-icon:hover, .btn-icon:focus-visible { background: var(--brand-soft); border-radius: .6rem; }
.bell-badge { position: absolute; top: -2px; right: -4px; font-size: .62rem; }
.alert-menu { min-width: 300px; max-width: calc(100vw - 2rem); }
.alert-menu .dropdown-item { white-space: normal; }

/* bottom navigation bar (phones and small tablets) */
.bottom-nav { position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: flex-end;
  background: #fff; border-top: 1px solid #e3e8e6; box-shadow: 0 -6px 20px rgba(13, 31, 27, .08);
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; border: 0; background: none;
  color: #6b7a76; font-size: .7rem; font-weight: 500; text-decoration: none; padding: .2rem 0; min-height: 48px; justify-content: center; }
.bottom-nav .bi { font-size: 1.3rem; line-height: 1; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--brand); }
.bottom-nav a.active .bi { font-weight: 700; }
.bottom-nav .bottom-nav-main { margin-top: -1.4rem; }
.bottom-nav .main-btn { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(15, 92, 77, .4); border: 4px solid #fff; }
.bottom-nav .main-btn .bi { font-size: 1.5rem; }
.bottom-nav .dot-badge { position: absolute; top: -6px; right: -12px; font-size: .58rem; }
@media (max-width: 991.98px) {
  body.has-bottom-nav { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-bottom-nav .site-footer { padding-bottom: 5rem; }
  .topbar { position: sticky; top: 0; z-index: 1020; padding: .55rem .9rem; gap: .5rem; }
  .topbar .page-title { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .brand-mark { flex: none; }
  .topbar .btn-group-sm > .btn { padding: .2rem .45rem; font-size: .75rem; }
  .content { padding: 1rem .85rem 2rem; }
  .card { border-radius: 1rem; }
  .stat { border-radius: 1rem; }
  .btn-lg { border-radius: .9rem; }
  .env-banner { font-size: .7rem; }
}
html.is-app .env-banner { display: none; }
* { -webkit-tap-highlight-color: rgba(15, 92, 77, .12); }

/* install banner (looks like a native app-install prompt) */
.install-banner { position: fixed; z-index: 1085; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto; background: #fff; border-radius: 1.1rem; padding: .7rem .7rem .7rem .8rem;
  box-shadow: 0 14px 40px rgba(13, 31, 27, .25); border: 1px solid #e6ebe9;
  display: flex; align-items: center; gap: .75rem; animation: install-up .3s ease-out; }
body.has-bottom-nav .install-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-bottom-nav .install-banner { bottom: 1rem; } }
.install-banner .install-icon { width: 52px; height: 52px; border-radius: .9rem; background: #f1f4f3; display: grid; place-items: center; flex: none; overflow: hidden; }
.install-banner .install-icon img { width: 52px; height: 52px; }
.install-banner .install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.install-banner .install-text strong { font-size: 1rem; color: var(--ink); }
.install-banner .install-text span { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-banner .install-btn { background: #1f2a28; color: #fff; border-radius: .8rem; padding: .55rem 1.1rem; font-weight: 600; flex: none; }
.install-banner .install-btn:hover { background: #000; color: #fff; }
.install-banner .install-close { flex: none; margin-left: .1rem; }
@keyframes install-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .install-banner { animation: none; } }

/* payment accounts (bKash / Nagad numbers) */
.pay-accounts .pay-account { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-radius: .9rem;
  padding: .75rem .9rem; margin-bottom: .5rem; color: #fff; }
.pay-accounts .pay-label { font-size: .75rem; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.pay-accounts .pay-number { font-size: 1.35rem; font-weight: 700; letter-spacing: .03em; }
.pay-bkash { background: linear-gradient(135deg, #d12053, #e2136e); }
.pay-nagad { background: linear-gradient(135deg, #ec1c24, #f7941d); }
.pay-bank { background: #24423c; }

/* signature pad and document previews */
.signature-pad canvas { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 2px dashed #b9c7c3; border-radius: .8rem; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.doc-preview { max-width: 100%; max-height: 420px; border-radius: .6rem; border: 1px solid #e3e8e6; display: block; }
.doc-signature { max-height: 140px; background: #fff; }
@media (max-width: 575.98px) {
  .site-nav .container { flex-wrap: nowrap; }
  .site-nav .navbar-brand { font-size: 1rem; margin-right: .25rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .site-nav .brand-mark { width: 26px; height: 26px; }
  .site-nav .navbar-toggler { padding: .25rem .45rem; }
  .site-nav .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: .5rem 1rem 1rem; border-bottom: 1px solid #e3e8e6; z-index: 1025; }
  .site-nav { position: relative; }
  .install-banner .install-text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .install-banner .install-btn { padding: .5rem .9rem; }
}

/* ---- app-style home screens (customer + staff) ----------------------------------------- */
.min-w-0 { min-width: 0; }
.home { max-width: 760px; }
.home.home-wide { max-width: none; }
.home-hero { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid #e3e8e6; border-radius: 1.1rem; padding: .9rem 1rem; margin-bottom: 1rem; }
.home-hero .hello { font-size: .85rem; color: var(--muted); line-height: 1.1; }
.home-hero .name { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 1.35rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-soft); }
.home-bell { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .7rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.bell-circle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e3e8e6; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d63939; color: #fff; font-size: .7rem; line-height: 20px; text-align: center; }
.balance-card { background: linear-gradient(135deg, #0a4237 0%, #0f5c4d 55%, #17806a 100%); color: #fff; border-radius: 1.2rem; padding: 1.2rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 12px 26px rgba(10, 66, 55, .25); }
.balance-label { font-size: .85rem; opacity: .85; }
.balance-chip { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .16); padding: .2rem .6rem; border-radius: 1rem; }
.balance-amount { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
.balance-sub { font-size: .8rem; opacity: .8; }
.btn-eye { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; }
.btn-balance { background: var(--accent); color: #2a1e00; border-radius: 2rem; font-weight: 700; padding: .5rem 1.1rem; }
.btn-balance:hover, .btn-balance:focus { background: #f0b73a; color: #2a1e00; }
.btn-balance-light { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 2rem; }
.btn-balance-light:hover, .btn-balance-light:focus { background: rgba(255, 255, 255, .25); color: #fff; }
.home-card { background: #fff; border: 1px solid #e3e8e6; border-radius: 1.1rem; padding: 1.1rem .75rem; }
.home-alert { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid #e3e8e6; border-radius: .9rem; padding: .75rem 1rem; margin-bottom: .75rem; color: var(--ink); text-decoration: none; }
.home-alert > .bi:first-child { font-size: 1.4rem; color: var(--brand); }
.home-alert-danger { border-color: #f1b0b0; background: #fdf1f1; }
.home-alert-danger > .bi:first-child { color: #c0392b; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem .4rem; }
.icon-tile { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; font-size: .78rem; font-weight: 500; line-height: 1.2; color: var(--ink); text-decoration: none; }
.icon-tile:hover .ic, .icon-tile:focus .ic { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .08); }
.ic { position: relative; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; transition: transform .15s, box-shadow .15s; flex: none; }
.ic-sm { width: 40px; height: 40px; font-size: 1.05rem; }
.ic-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d63939; color: #fff; font-size: .7rem; font-weight: 700; line-height: 20px; }
.ic-rose { background: #fde8ef; color: #c2185b; }
.ic-green { background: #e2f4ec; color: #0f7a5f; }
.ic-violet { background: #eee8fb; color: #6a3fc8; }
.ic-blue { background: #e4edfc; color: #2f5fc4; }
.ic-amber { background: #fff2d9; color: #a86d00; }
.ic-teal { background: #e1f4f8; color: #0b7d99; }
.btn-more { border: 1px solid #f3c6d3; color: #c2185b; background: #fff; border-radius: 2rem; font-size: .85rem; font-weight: 600; padding: .3rem 1rem; }
.btn-more[aria-expanded="true"] .bi { transform: rotate(180deg); }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-list li { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid #eef1f0; }
.tx-list li:last-child { border-bottom: 0; }
@media (min-width: 768px) { .icon-grid-wide { grid-template-columns: repeat(6, 1fr); } }

/* ---- one-page loan application ---------------------------------------------------------- */
.step-no { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; align-items: center; justify-content: center; margin-right: .35rem; }
.payout-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.payout-option { position: relative; margin: 0; }
.payout-option input { position: absolute; opacity: 0; inset: 0; }
.payout-option span { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem .3rem; border: 2px solid #e3e8e6; border-radius: .8rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.payout-option span .bi { font-size: 1.3rem; color: var(--brand); }
.payout-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.payout-option input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(15, 92, 77, .25); }
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.upload-grid > div:last-child { grid-column: 1 / -1; }
.upload-tile { position: relative; display: block; height: 120px; margin: 0; border: 2px dashed #c9d3d0; border-radius: .9rem; background: #fafcfb; overflow: hidden; cursor: pointer; }
.upload-tile:focus-within { border-color: var(--brand); }
.upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .5rem; text-align: center; font-size: .8rem; font-weight: 500; color: var(--muted); }
.upload-ph .bi { font-size: 1.7rem; color: var(--brand); }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-done { display: none; position: absolute; top: .35rem; right: .45rem; color: #0f7a5f; font-size: 1.3rem; background: #fff; border-radius: 50%; line-height: 1; }
.upload-tile.has-file { border-style: solid; border-color: var(--brand); }
.upload-tile.has-file .upload-ph { background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 60%); color: #fff; justify-content: flex-end; }
.upload-tile.has-file .upload-ph .bi { display: none; }
.upload-tile.has-file .upload-done { display: block; }
.doc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.doc-thumb { display: block; border: 1px solid #e3e8e6; border-radius: .7rem; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; }
.doc-thumb img { display: block; width: 100%; height: 110px; object-fit: cover; background: #f0f3f2; }
.doc-thumb span { display: block; padding: .35rem .5rem; font-size: .78rem; font-weight: 500; }
.pin-input { letter-spacing: .4em; font-weight: 700; }

/* ---- notices, staff search ---------------------------------------------------------------- */
.notice-card { display: flex; gap: .75rem; align-items: flex-start; background: #fff8e6; border: 1px solid #f3d48a; border-radius: .9rem; padding: .8rem 1rem; margin-bottom: .75rem; }
.notice-body { white-space: normal; overflow-wrap: anywhere; }
.flex-none { flex: none; }
.home-search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #e3e8e6; border-radius: 1rem; padding: .4rem .4rem .4rem .9rem; }
.home-search .bi-search { color: var(--muted); }
.home-search .form-control { border: 0; box-shadow: none; padding-left: .25rem; }
.hero-auth { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 460px; }
.hero-auth .btn { font-weight: 700; padding: .85rem 1rem; border-radius: .9rem; }
.overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.overview-card { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid #e9eeec; border-radius: 1.1rem; padding: 1rem; text-decoration: none; color: var(--ink); box-shadow: 0 4px 14px rgba(15, 40, 35, .04); }
.overview-card.is-alert { border: 2px dashed #ef8e8e; }
.overview-card .ic { width: 48px; height: 48px; border-radius: .9rem; font-size: 1.25rem; }
.overview-card .lbl { font-size: .8rem; color: var(--muted); line-height: 1.2; }
.overview-card .val { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.overview-card .val.tone-red { color: #c62828; } .overview-card .val.tone-violet { color: #5b3cc4; } .overview-card .val.tone-amber { color: #b26a00; } .overview-card .val.tone-purple { color: #8e24aa; }
.overview-card.span-2 { grid-column: 1 / -1; }
@media (min-width: 992px) { .overview-grid { grid-template-columns: repeat(4, 1fr); } .overview-card.span-2 { grid-column: span 2; } }

/* Profile: collapsed sections and tap-to-reveal account numbers */
.profile-section > summary { list-style: none; display: flex; align-items: center; cursor: pointer; }
.profile-section > summary::-webkit-details-marker, .account-reveal > summary::-webkit-details-marker { display: none; }
.profile-section[open] > summary .bi-chevron-down { transform: rotate(180deg); }
.profile-section > summary .bi-chevron-down { transition: transform .15s; }
.account-reveal > summary { list-style: none; cursor: pointer; }
