/* =====================================================================
   OSCA — Modern UI stylesheet
   ===================================================================== */
:root {
    --primary: #0f5132;
    --primary-600: #14663f;
    --primary-soft: #e8f5ee;
    --accent: #d9a441;
    --sidebar-bg: #0d2b1c;
    --sidebar-link: #a8c5b2;
    --bg: #f1f5f4;
    --card: #ffffff;
    --text: #1b2a24;
    --muted: #7d8c85;
    --border: #e3eae7;
    --danger: #c0392b;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(13,43,28,.06), 0 8px 24px -12px rgba(13,43,28,.18);
    --shadow-lg: 0 24px 60px -20px rgba(13,43,28,.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", Inter, Roboto, -apple-system, sans-serif;
    background: var(--bg); color: var(--text);
    font-size: 14.5px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c8d4cf; border-radius: 8px; }

/* ============ App shell: sidebar + main ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; background: var(--sidebar-bg); color: #fff;
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0;
    z-index: 100; transition: transform .28s ease; overflow-y: auto;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-logo {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #b7791f);
    border-radius: 12px; font-size: 1.35rem; flex-shrink: 0;
    box-shadow: 0 6px 16px -6px rgba(217,164,65,.7);
}
.brand-text strong { font-size: 1.2rem; letter-spacing: 2px; display: block; line-height: 1.1; }
.brand-text small { color: var(--sidebar-link); font-size: .68rem; letter-spacing: .4px; }
.sidebar-nav { flex: 1; padding: 14px 12px; }
.nav-section {
    color: #5f7f6d; font-size: .66rem; font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase; margin: 14px 10px 8px;
}
.nav-link {
    display: flex; align-items: center; gap: 11px; color: var(--sidebar-link);
    text-decoration: none; padding: 10px 12px; border-radius: 10px;
    font-size: .9rem; font-weight: 500; margin-bottom: 2px;
    transition: background .16s, color .16s, transform .16s;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.nav-link.active {
    background: linear-gradient(90deg, rgba(217,164,65,.22), rgba(217,164,65,.06));
    color: #ffe9bd; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent);
}
.nav-ico { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-user {
    display: flex; align-items: center; gap: 11px;
    margin: 12px; padding: 12px; border-radius: 12px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary));
    display: grid; place-items: center; font-weight: 800; color: #fff;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-info strong { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info .badge { margin-top: 3px; display: inline-block; }
.sidebar-logout {
    margin: 0 12px 16px; padding: 10px 12px; border-radius: 10px;
    color: #ffb3ab; text-decoration: none; font-size: .86rem; font-weight: 600;
    transition: background .16s;
}
.sidebar-logout:hover { background: rgba(192,57,43,.18); color: #ffd7d2; }
.sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(10,25,18,.55);
    z-index: 99; opacity: 0; transition: opacity .25s;
}
.app-main { flex: 1; margin-left: 248px; min-width: 0; display: flex; flex-direction: column; }

/* ============ Topbar ============ */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px; padding: 13px 26px;
}
.topbar-title { font-size: 1.12rem; font-weight: 700; color: var(--primary); }
.topbar-brand-mini { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.topbar-brand-mini b { color: var(--primary); letter-spacing: 1.5px; font-size: 1rem; }
.topbar-brand-mini small { font-size: .82rem; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-date { color: var(--muted); font-size: .8rem; }
.topbar-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--primary-soft); color: var(--primary);
    border: 1px solid #cfe8db; font-size: .76rem; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
}
.topbar-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.2); }
.hamburger { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--primary); }
/* ============ Container / cards ============ */
.container { flex: 1; padding: 26px; width: 100%; max-width: 1400px; margin: 0 auto; }
.footer { text-align: center; color: var(--muted); font-size: .76rem; padding: 16px; border-top: 1px solid var(--border); }
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h2 { color: var(--primary); font-size: 1.35rem; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.two-col.form-left { grid-template-columns: 380px 1fr; }
@media (max-width: 1080px) { .two-col, .two-col.form-left { grid-template-columns: 1fr; } }

.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); animation: rise .35s ease both;
}
.card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ Stat cards ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; text-decoration: none; color: var(--text);
    display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s; animation: rise .4s ease both;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(13,43,28,.35); }
.stat-card::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
    background: linear-gradient(180deg, var(--accent), var(--primary-600));
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat-ico {
    width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.1rem;
    background: var(--primary-soft); border-radius: 11px; margin-bottom: 10px;
}

/* ============ Tables ============ */
.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.table th {
    text-align: left; padding: 10px 12px; color: var(--muted);
    font-size: .68rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
    border-bottom: 1px solid var(--border); background: #f7faf8;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: #f4f9f6; }
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline { display: inline; }
code {
    background: var(--primary-soft); color: var(--primary); border-radius: 6px;
    padding: 2px 7px; font-size: .78rem; font-weight: 600;
}
.pill {
    display: inline-block; min-width: 30px; text-align: center;
    background: var(--primary-soft); color: var(--primary); font-weight: 800;
    border-radius: 999px; padding: 3px 10px; font-size: .78rem;
}
.pill-hot { background: #fdece9; color: var(--danger); }
.logo-thumb, .photo-thumb {
    width: 44px; height: 44px; object-fit: contain; border-radius: 9px;
    border: 1px solid var(--border); background: #fff; padding: 3px;
    box-shadow: 0 2px 6px rgba(13,43,28,.08);
}
/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; cursor: pointer; text-decoration: none; font-family: inherit;
    border-radius: 10px; padding: 9px 16px; font-size: .87rem; font-weight: 600;
    transition: transform .15s, box-shadow .15s, background .15s; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary));
    color: #fff; box-shadow: 0 6px 16px -6px rgba(15,81,50,.55);
}
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(15,81,50,.65); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid #cfe0d7; }
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary-600); }
.btn-danger { background: linear-gradient(135deg, #d9534f, var(--danger)); color: #fff; box-shadow: 0 6px 16px -6px rgba(192,57,43,.5); }
.btn-sm { padding: 5px 11px; font-size: .76rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============ Forms ============ */
label {
    display: block; font-size: .74rem; font-weight: 700; color: var(--primary);
    margin: 13px 0 5px; text-transform: uppercase; letter-spacing: .5px;
}
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=file], select, textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: .9rem; background: #fbfdfc; color: var(--text);
    font-family: inherit; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(20,102,63,.12); background: #fff;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.form-actions { margin-top: 18px; display: flex; gap: 9px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.checkbox-row input { width: auto; }
.thumb { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-size: .74rem; color: var(--muted); }
.thumb img { height: 48px; width: auto; max-width: 150px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 3px; }
.thumb img.photo { height: 62px; }

/* ============ Map point-picker ============ */
.map-picker {
    height: 280px; border-radius: 12px; border: 1px solid var(--border);
    z-index: 1; overflow: hidden; cursor: crosshair;
}
.coord-readout {
    margin-top: 9px; background: #f6faf7; border: 1px dashed #cfe0d7;
    border-radius: 9px; padding: 8px 12px; font-size: .82rem; color: var(--primary);
}

/* ============ Toasts / misc ============ */
.toast {
    position: relative; display: flex; align-items: center; gap: 4px;
    padding: 12px 16px; border-radius: 12px; margin-bottom: 16px;
    font-weight: 600; font-size: .88rem; box-shadow: var(--shadow);
    animation: toastIn .3s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast-error   { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; }
.toast-success { background: #e8f7ef; color: #17693c; border: 1px solid #bfe8d1; }
.muted { color: var(--muted); font-size: .84rem; }

/* ============ Search bar / badges ============ */
.searchbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.searchbar input[type=text] { width: 240px; }
.searchbar select { width: auto; }
.badge {
    font-size: .64rem; font-weight: 800; padding: 3px 10px;
    border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.badge-admin { background: #fdf3dc; color: #8a5a00; border: 1px solid #f2ddb0; }
.badge-mun   { background: #e3f3e9; color: #17693c; border: 1px solid #c2e4d1; }
.badge-senior { background: #ece9fd; color: #4b3fb8; border: 1px solid #d4cdf5; }

/* ---------- Senior citizen portal (my_id.php) ---------- */
.senior-portal-bar { justify-content: space-between; }
.senior-portal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.senior-portal-hint {
    max-width: 760px; margin: 0 auto 18px; text-align: center;
    font-size: 14px; color: #4b5c53; background: #eef7f1;
    border: 1px solid #cfe8d9; border-radius: 10px; padding: 10px 16px;
}
.btn-lg { padding: 12px 22px; font-size: 16px; }

/* section title inside forms (e.g. "Portal Account" in the senior form) */
.form-section {
    margin: 18px 0 8px; padding-top: 12px; border-top: 1px dashed var(--line, #d9e2dc);
    font-weight: 700; font-size: 15px; color: #17693c;
}
.form-section small { font-weight: 500; color: #6b7f74; }

@media print {
    .senior-portal-hint { display: none; }
}
/* ============ Login page ============ */
.login-page { display: flex; min-height: 100vh; background: var(--bg); }
.login-wrap { display: flex; width: 100%; }
.login-hero {
    flex: 1.2; position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(217,164,65,.25), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(39,174,96,.18), transparent 40%),
        linear-gradient(160deg, #0d2b1c 0%, #11402a 55%, #0f5132 100%);
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 56px;
}
.login-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px;
}
.login-hero .hero-logo {
    width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), #b7791f); border-radius: 18px;
    box-shadow: 0 14px 34px -10px rgba(217,164,65,.7); margin-bottom: 26px;
}
.login-hero h1 { font-size: 2.1rem; letter-spacing: 4px; }
.login-hero .hero-sub { color: #cfe4d7; margin-top: 8px; font-size: .95rem; max-width: 420px; }
.hero-points { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.hero-points span {
    display: flex; gap: 10px; align-items: center; color: #e8f2ec; font-size: .88rem;
}
.hero-points b { color: var(--accent); }
.login-form-panel {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 24px; background: #fff;
}
.login-box { width: 100%; max-width: 380px; animation: rise .4s ease both; }
.login-box h2 { color: var(--primary); font-size: 1.45rem; }
.login-box .login-lead { color: var(--muted); margin: 6px 0 22px; font-size: .9rem; }
.login-accounts {
    margin-top: 22px; background: #f6faf7; border: 1px dashed #cfe0d7;
    border-radius: 12px; padding: 13px 16px; font-size: .78rem; line-height: 1.8;
}
.login-accounts small { color: var(--muted); }
@media (max-width: 900px) { .login-hero { display: none; } }

/* ============ Responsive sidebar ============ */
@media (max-width: 1000px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
    .app-main { margin-left: 0; }
    .hamburger { display: block; }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; }
    .container { padding: 18px; }
    .topbar { padding: 12px 16px; }
    .topbar-date { display: none; }
}
/* ============ Heat map ============ */
.map-layout { display: grid; grid-template-columns: 2.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .map-layout { grid-template-columns: 1fr; } }
#heatmap { height: 580px; border-radius: 12px; z-index: 1; border: 1px solid var(--border); }
.map-legend { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.legend-grad {
    flex: 1; height: 10px; border-radius: 6px;
    background: linear-gradient(90deg, #2c7bb6, #abd9e9, #ffffbf, #fdae61, #d7191c);
}
.density-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.density-row {
    display: flex; align-items: center; gap: 11px; cursor: pointer;
    background: #f7fafd; border: 1px solid var(--border); border-radius: 8px;
    padding: 9px 12px; transition: background .15s;
}
.density-row:hover { background: var(--primary-soft); }
.density-row .rank {
    width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
    color: #fff; font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.density-row .d-name { flex: 1; display: flex; flex-direction: column; }
.density-row .d-name small { color: var(--muted); }

/* ============ Senior Citizen ID — CR80 card (3.375in x 2.125in) ============
   96dpi: card = 324px x 204px, preview zoom 2.2x. Landscape, back-to-back. */
.id-page { background: #e9eef2; padding-bottom: 50px; }
.id-toolbar {
    max-width: 1150px; margin: 20px auto 6px; display: flex; gap: 12px;
    justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.id-toolbar .id-crumb { color: var(--muted); font-size: .84rem; }

.id-stage { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; padding: 22px 10px 10px; }
.id-face-wrap { width: 713px; /* 324px x 2.2 */ }
.face-label {
    text-align: center; color: var(--muted); font-size: .74rem; font-weight: 800;
    letter-spacing: 2px; margin-top: 12px;
}
.id-face {
    width: 324px; height: 204px; transform: scale(2.2); transform-origin: top left;
    background: #fff; border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg); border: 1px solid #d5e0db;
    font-size: 6.5px; line-height: 1.45; color: #1b2a24;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
}
.id-face img { display: block; }

/* ---------- FRONT ---------- */
.fc-head {
    background:
        radial-gradient(circle at 92% 0%, rgba(217,164,65,.4), transparent 42%),
        linear-gradient(150deg, #0d2b1c, #0f5132 75%, #14663f);
    color: #fff; display: flex; align-items: center; gap: 6px; padding: 4px 6px;
}
.fc-logo {
    width: 27px; height: 27px; border-radius: 50%; background: #fff;
    object-fit: contain; padding: 1.5px; flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
div.fc-logo { display: grid; place-items: center; font-size: 13px; }
.fc-head-text { flex: 1; text-align: center; line-height: 1.3; }
.fc-rep  { font-size: 5px; opacity: .85; letter-spacing: .4px; }
.fc-prov { font-size: 6px; }
.fc-mun  { font-size: 7px; font-weight: 800; letter-spacing: .5px; }
.fc-office { font-size: 4.6px; opacity: .9; letter-spacing: .5px; }
.fc-band {
    text-align: center; background: linear-gradient(90deg, #b7791f, var(--accent));
    color: #fff; font-weight: 800; letter-spacing: 2px; padding: 1.5px 0; font-size: 5.5px;
}
.fc-body { display: flex; gap: 6px; padding: 4px 6px 2px; flex: 1; }
.fc-photo {
    width: 60px; height: 76px; flex-shrink: 0; border: 1px solid #cfe0d7;
    border-radius: 4px; overflow: hidden; background: #f2f6fb;
    display: grid; place-items: center; color: var(--muted); font-size: 6px;
    text-align: center; font-weight: 700;
}
.fc-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-info { flex: 1; min-width: 0; }
.fc-name { font-size: 8px; font-weight: 800; color: var(--primary); letter-spacing: .2px; }
.fc-idno { font-size: 6.5px; margin-top: 1px; }
.fc-idno strong { background: var(--primary-soft); color: var(--primary); padding: 0 3px; border-radius: 3px; }
.fc-row { display: flex; gap: 8px; justify-content: space-between; margin-top: 1.5px; }
.fc-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-addr { margin-top: 1.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-foot { display: flex; align-items: flex-end; padding: 0 6px 3px 6px; }
.fc-note { flex: 1; font-size: 4.6px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.fc-sign { text-align: center; width: 106px; }
.fc-sig-img { height: 16px; max-width: 90px; object-fit: contain; }
div.fc-sig-img { display: block; }
.fc-sign-line { border-top: 1px solid #2b3c34; }
.fc-sign-name { font-size: 6.5px; font-weight: 800; letter-spacing: .3px; }
.fc-sign-role { font-size: 5.5px; color: var(--muted); }

/* ---------- BACK ---------- */
.id-back-face { background: #fdfefe; }
.bc-head {
    background: linear-gradient(150deg, #0d2b1c, #0f5132);
    color: #fff; display: flex; justify-content: space-between; align-items: center;
    padding: 4px 7px; font-size: 6px; font-weight: 700; letter-spacing: .5px;
}
.bc-idno { font-family: Consolas, monospace; background: rgba(255,255,255,.14); padding: 0 4px; border-radius: 3px; }
.bc-body { flex: 1; padding: 4px 7px; display: flex; flex-direction: column; gap: 3px; }
.bc-terms { border: 1px solid #dbe6e0; border-radius: 4px; padding: 3px 5px; background: #f7faf8; }
.bc-terms b { display: block; font-size: 5.5px; color: var(--primary); letter-spacing: .8px; margin-bottom: 1px; }
.bc-terms p { font-size: 5.2px; color: #3d4f46; margin: 0; text-align: justify; }
.bc-row-2 { display: flex; gap: 8px; flex: 1; }
.bc-sign { width: 106px; text-align: center; align-self: flex-end; }
.bc-sign img { height: 15px; max-width: 90px; object-fit: contain; margin: 0 auto; }
.bc-blank { height: 15px; }
.bc-line { border-top: 1px solid #2b3c34; }
.bc-lbl { font-size: 5px; color: var(--muted); letter-spacing: .3px; }
.bc-emerg { flex: 1; font-size: 5.2px; color: #3d4f46; }
.bc-emerg b { display: block; font-size: 5.5px; color: var(--primary); letter-spacing: .4px; margin-bottom: 2px; }
.bc-fill { display: flex; align-items: flex-end; gap: 3px; margin-bottom: 4px; }
.bc-fill span { width: 52px; color: #8a978f; }
.bc-fill::after { content: ""; flex: 1; border-bottom: 1px dotted #9fb0a7; height: 1px; }
.bc-strip {
    background: #eef4f1; color: var(--muted); display: flex;
    justify-content: space-between; padding: 2.5px 7px;
    font-size: 4.6px; letter-spacing: 1.2px; font-weight: 700;
}

/* ============ PRINT: two pages, exact CR80 landscape ============ */
@media print {
    @page { size: 3.375in 2.125in; margin: 0; }
    html, body { background: #fff !important; }
    .no-print, .topbar, .footer, .sidebar, .sidebar-backdrop { display: none !important; }
    .app-main { margin-left: 0 !important; }
    .id-stage { display: block; padding: 0; }
    .id-face-wrap { width: auto; }
    .face-label { display: none; }
    .id-face {
        transform: none; width: 3.375in; height: 2.125in;
        border-radius: 0; border: none; box-shadow: none;
        page-break-after: always; break-after: page;
    }
    .id-face:last-child { page-break-after: auto; break-after: auto; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}




