:root {
    --gbs-green: #0b5d3b;
    --gbs-green-dark: #073d27;
    --gbs-green-soft: #e8f1ea;
    --gbs-gold: #c9a227;
    --gbs-gold-soft: #f8f0d2;
    --gbs-red: #b4232c;
    --ink: #1f2933;
    --muted: #66756e;
    --line: #e1e8e2;
    --bg: #f3f6f3;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 40, 28, .04), 0 8px 24px rgba(16, 40, 28, .05);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: .92rem;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gbs-green); text-decoration: none; }
a:hover { color: var(--gbs-green-dark); }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.01em; }
.small, small { font-size: .8rem; }
.tiny { font-size: .72rem; }
.text-muted { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: linear-gradient(180deg, #08422c 0%, #07311f 100%);
    color: #dcebe1;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 10px; }
.sidebar-brand {
    display: flex; align-items: center; gap: .7rem;
    padding: 1.15rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 42px; height: 42px; border-radius: 11px;
    background: #fff; display: grid; place-items: center; padding: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.brand-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-title { display: block; font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: .02em; line-height: 1.1; }
.brand-title span { color: var(--gbs-gold); }
.brand-sub { display: block; font-size: .63rem; text-transform: uppercase; letter-spacing: .12em; color: #9fbfa9; margin-top: 2px; }
.sidebar-user {
    display: flex; align-items: center; gap: .65rem;
    margin: .9rem .8rem .4rem; padding: .7rem .75rem;
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
}
.avatar {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
    background: var(--gbs-gold-soft); color: #6b4e00; display: grid; place-items: center;
    font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}
.avatar.sm { width: 32px; height: 32px; flex-basis: 32px; font-size: .72rem; }
.sidebar-user .meta { min-width: 0; }
.sidebar-user .name { color: #fff; font-weight: 600; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .role { color: #9fbfa9; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-nav { padding: .4rem .65rem 1rem; flex: 1; }
.nav-section {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .14em;
    color: #7fa48c; padding: 1rem .6rem .35rem; font-weight: 600;
}
.nav-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .52rem .65rem; border-radius: 9px;
    color: #cfe2d5; font-size: .845rem; font-weight: 500;
    margin-bottom: 1px; transition: background .15s, color .15s;
}
.nav-item i { font-size: 1rem; width: 18px; text-align: center; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.075); color: #fff; }
.nav-item.active {
    background: linear-gradient(90deg, rgba(201,162,39,.22), rgba(201,162,39,.06));
    color: #fff; box-shadow: inset 3px 0 0 var(--gbs-gold);
}
.sidebar-footer {
    padding: .9rem 1.2rem 1.1rem; font-size: .7rem; color: #7fa48c;
    border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-backdrop { display: none; }

.main { flex: 1; margin-left: 260px; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: .8rem 1.6rem;
    display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 1020;
}
.topbar-title h1 { font-size: 1.18rem; margin: 0; font-weight: 700; }
.topbar-title p { margin: 0; color: var(--muted); font-size: .78rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.user-menu {
    display: flex; align-items: center; gap: .55rem; background: transparent; border: 1px solid var(--line);
    padding: .3rem .55rem; border-radius: 10px; color: var(--ink);
}
.user-menu:hover { background: #f6f9f6; }
.btn-icon {
    border: 1px solid var(--line); background: #fff; border-radius: 9px;
    width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink);
}
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--gbs-green-soft); color: var(--gbs-green-dark);
    border: 1px solid #d3e5d7; border-radius: 999px;
    padding: .25rem .65rem; font-size: .73rem; font-weight: 600;
}
.chip-ghana::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(180deg, var(--gbs-red) 33%, #f0c419 33% 66%, var(--gbs-green) 66%);
    display: inline-block;
}
.content { padding: 1.5rem 1.6rem 2rem; flex: 1; }
.app-footer {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .9rem 1.6rem; color: var(--muted); font-size: .72rem;
    border-top: 1px solid var(--line); background: rgba(255,255,255,.6);
}

/* ---------- Cards ---------- */
.card, .gbs-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    background: transparent; border-bottom: 1px solid var(--line);
    padding: 1rem 1.15rem; display: flex; align-items: center; gap: .6rem;
}
.card-header h2, .card-header h3, .card-header h4, .card-header h5 { margin: 0; font-size: .98rem; }
.card-header .sub { color: var(--muted); font-size: .76rem; }
.card-body { padding: 1.15rem; }
.card-footer { background: transparent; border-top: 1px solid var(--line); padding: .8rem 1.15rem; }

.page-head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.15rem; }
.page-head h2 { margin: 0; font-size: 1.3rem; }
.page-head .sub { color: var(--muted); font-size: .82rem; margin: .15rem 0 0; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.05rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card .label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat-card .value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin-top: .15rem; color: #10281c; }
.stat-card .meta { color: var(--muted); font-size: .73rem; margin-top: .15rem; }
.stat-card .stat-icon {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--gbs-green-soft); color: var(--gbs-green); font-size: 1rem;
    position: absolute; right: .9rem; top: .9rem;
}
.stat-card.gold .stat-icon { background: var(--gbs-gold-soft); color: #8a6a00; }
.stat-card.red .stat-icon { background: #fbe9eb; color: var(--gbs-red); }
.stat-card.blue .stat-icon { background: #e8effa; color: #2d5d9e; }
.stat-card .value small { font-size: .8rem; font-weight: 600; color: var(--muted); }

.stat-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn { border-radius: 9px; font-weight: 600; font-size: .84rem; padding: .5rem .9rem; }
.btn-sm { font-size: .78rem; padding: .35rem .65rem; border-radius: 8px; }
.btn-gbs { background: var(--gbs-green); border-color: var(--gbs-green); color: #fff; }
.btn-gbs:hover, .btn-gbs:focus { background: var(--gbs-green-dark); border-color: var(--gbs-green-dark); color: #fff; }
.btn-gold { background: var(--gbs-gold); border-color: var(--gbs-gold); color: #2b2200; }
.btn-gold:hover { background: #b08e1f; border-color: #b08e1f; color: #fff; }
.btn-outline-gbs { border: 1px solid #b9d2c0; color: var(--gbs-green); background: #fff; }
.btn-outline-gbs:hover { background: var(--gbs-green-soft); color: var(--gbs-green-dark); border-color: var(--gbs-green); }
.btn-danger-soft { background: #fbe9eb; border-color: #f6d5d8; color: var(--gbs-red); }
.btn-danger-soft:hover { background: #f6d5d8; color: #8d1b22; }
.btn-light-soft { background: #f4f7f4; border-color: var(--line); color: var(--ink); }
.btn-light-soft:hover { background: #e9efea; }
.btn-icon-sm { padding: .28rem .5rem; font-size: .8rem; border-radius: 7px; }

/* ---------- Forms ---------- */
.form-label { font-size: .78rem; font-weight: 600; color: #35443c; margin-bottom: .3rem; }
.form-control, .form-select {
    border-radius: 9px; border-color: #d6e0d8; font-size: .86rem; padding: .5rem .7rem; color: var(--ink);
}
.form-control:focus, .form-select:focus {
    border-color: #7fb293; box-shadow: 0 0 0 .2rem rgba(11, 93, 59, .12);
}
.form-text { font-size: .72rem; color: var(--muted); }
.input-group-text { background: #f4f7f4; border-color: #d6e0d8; font-size: .8rem; color: var(--muted); }
.required::after { content: " *"; color: var(--gbs-red); }
.field-error { color: var(--gbs-red); font-size: .74rem; margin-top: .2rem; }
.validation-summary-errors { background: #fbe9eb; border: 1px solid #f3c7cb; color: #8d1b22; padding: .7rem .9rem; border-radius: 9px; font-size: .8rem; margin-bottom: .8rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1rem; }
.form-section { border-bottom: 1px dashed var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.form-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gbs-green); margin-bottom: .7rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 10px; }
.table { font-size: .82rem; margin: 0; --bs-table-border-color: #e8eeea; }
.table thead th {
    background: #f5f8f5; color: #43544b; font-weight: 600; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line);
    padding: .6rem .75rem; white-space: nowrap;
}
.table tbody td { padding: .62rem .75rem; vertical-align: middle; border-color: #edf2ee; }
.table tbody tr:hover { background: #fafcf9; }
.table tfoot td { font-weight: 600; background: #f5f8f5; }
.audit-details { max-width: 360px; white-space: normal; }
.teacher-col { min-width: 240px; }
.progress-col { min-width: 150px; }
/* Keep the position and student name visible while a rank sheet is swiped sideways */
.rank-sheet th:nth-child(1), .rank-sheet td:nth-child(1) { position: -webkit-sticky; position: sticky; left: 0; background: #fff; }
.rank-sheet th:nth-child(2), .rank-sheet td:nth-child(2) { position: -webkit-sticky; position: sticky; left: 55px; background: #fff; }
.rank-sheet thead th:nth-child(1), .rank-sheet thead th:nth-child(2) { background: #f5f8f5; z-index: 2; }
.rank-sheet tbody td:nth-child(1), .rank-sheet tbody td:nth-child(2), .rank-sheet tfoot td:nth-child(1), .rank-sheet tfoot td:nth-child(2) { z-index: 1; }
@media (max-width: 767.98px) { .hide-below-md { display: none !important; } }
@media (max-width: 1199.98px) { .hide-below-xl { display: none !important; } }
.table-actions { display: flex; gap: .3rem; justify-content: flex-end; white-space: nowrap; }
.year-actions { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.row-avatar { display: flex; align-items: center; gap: .6rem; }
.row-avatar .avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: .7rem; background: var(--gbs-green-soft); color: var(--gbs-green-dark); }
.row-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.badge-soft { background: var(--gbs-green-soft); color: var(--gbs-green-dark); font-weight: 600; padding: .28em .55em; border-radius: 6px; font-size: .7rem; }
.badge-soft.gold { background: var(--gbs-gold-soft); color: #7a5d00; }
.badge-soft.red { background: #fbe9eb; color: #8d1b22; }
.badge-soft.gray { background: #eef1ef; color: #5b6760; }
.badge-soft.blue { background: #e8effa; color: #2d5d9e; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: .35rem; }

.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2rem; color: #b9c8be; display: block; margin-bottom: .6rem; }
.empty-state h4 { font-size: .98rem; color: var(--ink); }
.empty-state p { font-size: .8rem; margin-bottom: .9rem; }

.alert { border-radius: 10px; font-size: .84rem; border-width: 1px; }
.gbs-alert { box-shadow: var(--shadow); }
.alert-success { background: #edf7f0; border-color: #cfe8d7; color: #14532d; }
.alert-danger { background: #fbecee; border-color: #f3c7cb; color: #8d1b22; }
.alert-info { background: #eef4fb; border-color: #d6e4f5; color: #1e4e8c; }
.alert-warning { background: #fdf6e3; border-color: #f3e3b5; color: #7a5d00; }

.pagination .page-link { color: var(--gbs-green); border-color: var(--line); font-size: .8rem; padding: .35rem .6rem; }
.pagination .page-item.active .page-link { background: var(--gbs-green); border-color: var(--gbs-green); color: #fff; }

.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { color: var(--muted); font-size: .83rem; font-weight: 600; border-radius: 8px 8px 0 0; }
.nav-tabs .nav-link.active { color: var(--gbs-green); border-color: var(--line) var(--line) #fff; }

.progress { height: 7px; background: #e9efea; border-radius: 10px; }
.progress-bar { background: var(--gbs-green); border-radius: 10px; }
.progress-bar.gold { background: var(--gbs-gold); }
.progress-bar.red { background: var(--gbs-red); }

/* ---------- Login ---------- */
.auth-body { min-height: 100vh; background: #f4f7f4; }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-visual {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 120% at 15% 10%, #0f6b45 0%, #073d27 55%, #052619 100%);
    color: #e7f3ea; padding: 3rem; display: flex; flex-direction: column;
}
.auth-visual::after {
    content: ""; position: absolute; inset: auto -10% -30% -10%; height: 55%;
    background: radial-gradient(closest-side, rgba(201,162,39,.25), transparent 70%);
}
.auth-visual .kente {
    position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: repeating-linear-gradient(90deg, var(--gbs-red) 0 40px, #f0c419 40px 80px, var(--gbs-green) 80px 120px, #111 120px 124px);
    opacity: .95;
}
.auth-brand { display: flex; align-items: center; gap: .8rem; position: relative; z-index: 1; }
.auth-brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; }
.auth-brand .title { font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.1; }
.auth-brand .title span { color: var(--gbs-gold); }
.auth-brand .sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: #a9c9b4; }
.auth-hero { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; max-width: 520px; }
.auth-hero .eyebrow { color: var(--gbs-gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.auth-hero h1 { color: #fff; font-size: 2.35rem; line-height: 1.13; margin: .8rem 0 1rem; letter-spacing: -.02em; }
.auth-hero p { color: #c4dccb; font-size: .95rem; line-height: 1.65; max-width: 460px; }
.auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.6rem; }
.auth-feature { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: #d7e9dc; }
.auth-feature i { color: var(--gbs-gold); font-size: 1rem; }
.auth-foot { position: relative; z-index: 1; color: #8fb29b; font-size: .72rem; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 1.55rem; margin-bottom: .3rem; }
.auth-card .lead { color: var(--muted); font-size: .85rem; margin-bottom: 1.6rem; }
.auth-logo-mobile { display: none; }
.auth-switch { margin-top: 1.4rem; font-size: .8rem; color: var(--muted); }
.auth-vendor { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center; }
.auth-vendor img { display: block; width: 180px; max-width: 100%; height: auto; margin: 0 auto; }
.portal-auth .auth-visual { background: radial-gradient(120% 120% at 15% 10%, #1d5f8a 0%, #0d3550 60%, #06202f 100%); }
.super-auth .auth-visual { background: radial-gradient(120% 120% at 15% 10%, #123f2b 0%, #071f15 55%, #04120c 100%); }
.super-auth .auth-visual::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.08'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Portal ---------- */
.portal-shell { min-height: 100vh; background: var(--bg); }
.portal-top { background: linear-gradient(100deg, #0b5d3b, #0a4a30); color: #fff; padding: 1rem 1.2rem; }
.portal-top .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.portal-top img { width: 34px; height: 34px; background: #fff; border-radius: 8px; padding: 3px; }
.portal-nav { background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.portal-nav .inner { display: flex; gap: .25rem; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.portal-nav a { padding: .8rem .9rem; color: var(--muted); font-weight: 600; font-size: .83rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.portal-nav a.active { color: var(--gbs-green); border-bottom-color: var(--gbs-green); }
.portal-body { max-width: 1120px; margin: 0 auto; padding: 1.4rem 1rem 2.5rem; }

/* ---------- Mark entry ---------- */
.entry-shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.entry-student { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.entry-meta { color: var(--muted); font-size: .8rem; }
.entry-score {
    font-size: 2.6rem; font-weight: 800; text-align: center; letter-spacing: -.03em;
    border: 2px solid #cfe0d3; border-radius: 12px; padding: .4rem .5rem; width: 100%;
    color: var(--gbs-green-dark); background: #f7fbf8;
}
.entry-score:focus { outline: none; border-color: var(--gbs-green); box-shadow: 0 0 0 .25rem rgba(11,93,59,.12); }
.entry-list { max-height: 430px; overflow-y: auto; }
.entry-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; border-bottom: 1px solid #eef2ee; font-size: .8rem; }
.entry-row .score { font-weight: 700; }
.entry-progress { display: flex; gap: 1.2rem; font-size: .76rem; color: var(--muted); }
.entry-progress strong { color: var(--ink); }
.key-hint { display: inline-block; border: 1px solid #cfd8d2; border-bottom-width: 2px; border-radius: 5px; padding: 0 .3rem; font-size: .68rem; background: #fff; color: #4a574f; }

/* ---------- Report card (HTML) ---------- */
.rc-preview { background: #e9eeea; padding: 1.2rem; border-radius: 12px; overflow-x: auto; }
.rc-sheet {
    width: 210mm; min-height: 290mm; background: #fff; margin: 0 auto; padding: 11mm 13mm;
    box-shadow: 0 10px 30px rgba(0,0,0,.12); font-size: 9.5pt; color: #1f2933;
    border-top: 4mm solid var(--rc-primary, #0b5d3b);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rc-head { display: flex; align-items: center; gap: 4mm; padding-bottom: 2.5mm; border-bottom: 2px solid var(--rc-primary, #0b5d3b); }
.rc-logo-wrap, .rc-emblem-wrap { width: 24mm; display: flex; flex-direction: column; align-items: center; gap: .8mm; }
.rc-head .logo, .rc-head .emblem {
    width: 20mm; height: 20mm; object-fit: contain;
    padding: 0; border: 0; border-radius: 0; background: transparent;
}
.rc-head .rc-logo-fallback {
    display: grid; place-items: center; font-weight: 800; font-size: 12pt;
    color: var(--rc-primary, #0b5d3b); background: #f3f7f3;
}
.rc-caption { font-size: 5.6pt; letter-spacing: .06em; text-transform: uppercase; color: #8a968e; }
.rc-head .name { text-align: center; flex: 1; }
.rc-head .republic { font-size: 7pt; letter-spacing: .22em; color: #52606d; text-transform: uppercase; }
.rc-head h1 { font-size: 17pt; line-height: 1.15; margin: 1mm 0; color: var(--rc-primary, #0b5d3b); text-transform: uppercase; letter-spacing: .01em; }
.rc-head .addr { font-size: 7.3pt; color: #52606d; }
.rc-head .motto { margin-top: .6mm; font-size: 7.3pt; font-style: italic; color: #7b8794; }
.rc-head .name::after {
    content: ""; display: block; width: 32mm; height: 1.2mm; margin: 1.6mm auto 0;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
}
.rc-title {
    display: flex; justify-content: space-between; align-items: center;
    margin: 3mm 0 2.5mm; padding: 2.2mm 3mm; border-radius: 4px;
    background: var(--rc-primary, #0b5d3b); color: #fff;
}
.rc-title .kind { font-weight: 800; font-size: 10.5pt; letter-spacing: .12em; text-transform: uppercase; }
.rc-title .period { font-size: 9pt; color: #f4e7b8; }
.rc-title .period b { margin: 0 1mm; }
.rc-student { display: grid; grid-template-columns: 22mm 1fr 50mm; gap: 4mm; background: #f6f9f6; border: 1px solid #dfe8e0; border-left: 1.2mm solid #c9a227; border-radius: 5px; padding: 3mm; }
.rc-photo { width: 22mm; height: 26mm; border: 1px solid #cfd8cf; background: #fff; display: grid; place-items: center; font-size: 6.5pt; color: #9aa5b1; object-fit: cover; }
.rc-student .fields { font-size: 8.4pt; line-height: 1.6; }
.rc-student .fields b { display: inline-block; min-width: 22mm; color: #52606d; font-weight: 600; }
.rc-student .student-name { font-size: 11.5pt; font-weight: 800; color: #1f2933; margin-bottom: .6mm; }
.rc-pos { text-align: right; font-size: 8.2pt; line-height: 1.55; border-left: 1px solid #dfe8e0; padding-left: 3mm; }
.rc-pos .pos-label { font-size: 6.4pt; letter-spacing: .08em; text-transform: uppercase; color: #7b8794; }
.rc-pos .pos-value { font-size: 15pt; font-weight: 800; color: var(--rc-primary, #0b5d3b); line-height: 1.1; margin-bottom: 1mm; }
.rc-pos .pos-value small { font-size: 7pt; font-weight: 500; color: #7b8794; }
.rc-status { display: inline-block; margin-top: 1.2mm; padding: .4mm 1.6mm; border-radius: 3px; font-size: 6pt; font-weight: 700; letter-spacing: .06em; }
.rc-status.locked { background: #e6f2e9; color: #0b5d3b; }
.rc-status.draft { background: #fdf3dc; color: #8a6100; }
.rc-table { width: 100%; border-collapse: collapse; margin-top: 3mm; font-size: 8.2pt; }
.rc-table th { background: var(--rc-primary, #0b5d3b); color: #fff; padding: 1.4mm 1.6mm; font-size: 7.2pt; text-align: left; border-right: 1px solid rgba(255,255,255,.18); }
.rc-table th span { font-weight: 500; color: #d8e6da; font-size: 6.4pt; }
.rc-table th.num, .rc-table td.num { text-align: center; }
.rc-table td { border-bottom: 1px solid #e3e9e3; padding: 1.3mm 1.6mm; }
.rc-table tr:nth-child(even) td { background: #f8faf8; }
.rc-table tfoot td { background: #eef4ee; font-weight: 700; color: var(--rc-primary, #0b5d3b); border-top: 1px solid var(--rc-primary, #0b5d3b); text-transform: uppercase; font-size: 7.2pt; letter-spacing: .04em; }
.rc-grade { display: inline-block; min-width: 7mm; padding: .3mm 1.2mm; border-radius: 3px; background: #eef4ee; color: #0b5d3b; font-weight: 700; }
.rc-remarks { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin-top: 3mm; }
.rc-remark { border: 1px solid #dfe8e0; border-radius: 5px; padding: 2mm 2.5mm; min-height: 17mm; font-size: 7.6pt; background: #fbfcfb; }
.rc-remark .label { font-size: 6.4pt; text-transform: uppercase; letter-spacing: .08em; color: var(--rc-primary, #0b5d3b); font-weight: 700; margin-bottom: 1mm; border-bottom: 1px solid #e3e9e3; padding-bottom: .6mm; }
.rc-remark .body { line-height: 1.5; }
.rc-promotion { margin-top: 3mm; font-size: 8pt; padding: 1.6mm 2.5mm; border: 1px dashed #cfd8cf; border-radius: 4px; }
.rc-sign { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 5mm; gap: 6mm; page-break-inside: avoid; break-inside: avoid; }
.rc-sign .sig { flex: 1 1 0; min-width: 0; font-size: 7.4pt; text-align: center; }
.rc-sign .sig .sig-media { height: 15mm; display: flex; align-items: flex-end; justify-content: center; }
.rc-sign .sig .sig-media img { display: block; max-height: 100%; max-width: 100%; object-fit: contain; }
.rc-sign .sig .line { border-top: 1px solid #9aa5b1; margin: 0 0 .9mm; width: 100%; }
.rc-sign .sig .tiny { color: #7b8794; font-size: 6.2pt; }
.rc-foot-row { display: flex; justify-content: space-between; margin-top: 3mm; padding-top: 1.4mm; border-top: 1px solid #e3e9e3; font-size: 6.8pt; color: #7b8794; }
.rc-foot { margin-top: 2mm; text-align: center; color: #9aa5b1; font-size: 6.5pt; }

/* ---------- ID cards (HTML) ---------- */
.id-sheet { display: grid; grid-template-columns: repeat(2, 85.6mm); gap: 4mm; justify-content: center; }
.id-card {
    width: 85.6mm; height: 50mm; border: 1px solid var(--gbs-green); border-radius: 4mm;
    background: #fff; overflow: hidden; position: relative; font-size: 7pt; color: #1f2933;
    display: flex; flex-direction: column;
}
.id-card .band { background: var(--gbs-green); color: #fff; display: flex; align-items: center; gap: 2mm; padding: 1.4mm 3mm; height: 11mm; }
.id-card .band img { width: 8mm; height: 8mm; object-fit: contain; }
.id-card .band .school { font-weight: 700; font-size: 7.2pt; line-height: 1.1; text-transform: uppercase; }
.id-card .band .kind { font-size: 4.8pt; color: #f4e7b8; letter-spacing: .06em; }
.id-card .body { display: flex; gap: 2.5mm; padding: 2mm 3mm; flex: 1; }
.id-card .photo { width: 20mm; height: 24mm; border: 1px solid #cfd8cf; border-radius: 1.5mm; object-fit: cover; display: grid; place-items: center; font-size: 5pt; color: #9aa5b1; }
.id-card .details { font-size: 6.4pt; line-height: 1.45; flex: 1; }
.id-card .details .name { font-weight: 700; font-size: 8pt; margin-bottom: .6mm; }
.id-card .qr { width: 16mm; height: 16mm; align-self: center; }
.id-card .footer { font-size: 4.2pt; color: #7b8794; border-top: 1px solid #e3e9e3; padding: 1mm 3mm; background: #f7faf7; }

/* ---------- Misc ---------- */
.list-group-item { border-color: #edf2ee; font-size: .84rem; }
.dropdown-menu { border-color: var(--line); border-radius: 10px; font-size: .84rem; }
.dropdown-item { padding: .45rem .9rem; }
.chart-box { position: relative; height: 280px; }
.kpi-inline { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.kpi-inline .item { min-width: 100px; }
.kpi-inline .label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi-inline .value { font-weight: 800; font-size: 1.15rem; }
.divider { height: 1px; background: var(--line); margin: 1rem 0; }
.callout { border-left: 3px solid var(--gbs-gold); background: var(--gbs-gold-soft); padding: .8rem 1rem; border-radius: 0 9px 9px 0; font-size: .8rem; }
.table-card .card-body { padding: 0; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid #eef2ee; font-size: .82rem; }
.mini-list li:last-child { border-bottom: 0; }
.copy-field { display: flex; gap: .4rem; align-items: center; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; }
.legal { font-size: .72rem; color: var(--muted); line-height: 1.55; }
.scroll-y { max-height: 380px; overflow-y: auto; }

@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(5,20,12,.45); z-index: 1030; }
    .main { margin-left: 0; }
    .content { padding: 1.1rem 1rem 2rem; }
    .topbar { padding: .7rem 1rem; }
    .stat-grid, .stat-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-shell { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-side { padding: 2rem 1.2rem; }
    .auth-logo-mobile { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
    .auth-logo-mobile img { width: 44px; height: 44px; }
    .auth-logo-mobile .t { font-weight: 800; font-size: 1.15rem; color: var(--gbs-green); }
    .auth-vendor { margin-top: 1.6rem; padding-top: 1.3rem; }
    .auth-vendor img { width: 150px; }
}
/* Compact action buttons on phones and tablets so wide lists stay readable */
@media (max-width: 1199.98px) {
    .audit-details { max-width: 220px; }
    .table-actions--icons { display: grid; grid-template-columns: repeat(2, 36px); gap: .3rem; justify-content: end; }
    .table-actions--icons > a, .table-actions--icons > form { display: flex; }
    .table-actions--icons .btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
    .table-actions--icons form .btn { width: 100%; }
}
@media (max-width: 575.98px) {
    .stat-grid, .stat-grid.cols-2, .stat-grid.cols-3, .stat-grid.cols-5 { grid-template-columns: 1fr; }
    .topbar-title p { display: none; }
    .content { padding: .9rem .75rem 2rem; }
    .id-sheet { grid-template-columns: 1fr; }
    .table-actions { flex-wrap: wrap; gap: .35rem; white-space: normal; }
    .teacher-col, .progress-col { min-width: 0; }
    .year-actions { flex-direction: column; align-items: stretch; gap: .3rem; }
    .year-actions > *, .year-actions form { width: 100%; }
    .year-actions .btn { width: 100%; font-size: .7rem; padding: .42rem .35rem; white-space: nowrap; }
    .pagination .page-link { padding: .45rem .6rem; min-width: 34px; min-height: 34px; text-align: center; }
    .table td.mono { white-space: nowrap; }
    .table { font-size: .74rem; }
    .table th, .table td { padding: .45rem .4rem; }
    .table thead th { padding: .5rem .4rem; font-size: .64rem; }
    .row-avatar { gap: .45rem; }
    .row-avatar .avatar, .row-avatar img { width: 26px; height: 26px; flex-basis: 26px; font-size: .64rem; }
    .card-header { flex-wrap: wrap; }
    .card-header form { flex: 1 1 100%; margin-left: 0 !important; }
    .card-header form .form-control { min-width: 0 !important; flex: 1 1 auto; }
    .portal-body { padding: 1rem .75rem 2rem; }
    .portal-nav .inner { flex-wrap: wrap; gap: 0; padding: 0 .5rem; }
    .portal-nav a { padding: .55rem .5rem; font-size: .76rem; }

    /* Report card: reflow the A4 sheet so it fits a phone without sideways scrolling */
    .rc-preview { padding: .35rem; overflow-x: hidden; }
    .rc-sheet { width: 100%; min-height: 0; padding: 14px 11px; font-size: 8.4pt; }
    .rc-head { gap: 6px; }
    .rc-logo-wrap, .rc-emblem-wrap { width: 15mm; flex: 0 0 15mm; }
    .rc-head .logo, .rc-head .emblem { width: 14mm; height: 14mm; }
    .rc-head h1 { font-size: 11.5pt; }
    .rc-head .addr { font-size: 6.2pt; }
    .rc-head .motto, .rc-caption, .rc-head .name::after { display: none; }
    .rc-title { padding: 6px 8px; gap: 6px; }
    .rc-title .kind { font-size: 8.6pt; letter-spacing: .06em; }
    .rc-title .period { font-size: 7.6pt; text-align: right; }
    .rc-student { grid-template-columns: 18mm 1fr; gap: 8px; padding: 8px; }
    .rc-photo { width: 18mm; height: 21mm; }
    .rc-student .fields { font-size: 7.6pt; line-height: 1.5; }
    .rc-student .fields b { min-width: 18mm; }
    .rc-student .student-name { font-size: 10pt; }
    .rc-pos { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; border-left: 0; border-top: 1px solid #dfe8e0; padding: 6px 0 0; text-align: left; font-size: 7.4pt; }
    .rc-pos .pos-value { font-size: 11pt; margin: 0; }
    .rc-pos .rc-status { margin-left: auto; }
    .rc-table { font-size: 7.2pt; }
    .rc-table th { padding: 4px; font-size: 6.2pt; }
    .rc-table td { padding: 3.5px 4px; }
    .rc-table .col-remarks { display: none; }
    .rc-remarks { grid-template-columns: 1fr; }
    .rc-sign { gap: 8px; margin-top: 14px; }
    .rc-sign .sig { font-size: 6.6pt; }
    .rc-sign .sig .sig-media { height: 11mm; }
    .rc-foot-row { flex-direction: column; gap: 2px; }
}

/* ---------- Elections and voting ---------- */
.vote-class-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.vote-check {
    display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #d6e0d8;
    border-radius: 999px; padding: .32rem .7rem; font-size: .78rem; background: #fff; cursor: pointer;
    transition: background .12s, border-color .12s;
}
.vote-check input { accent-color: var(--gbs-green); margin: 0; }
.vote-check:hover { border-color: #b9d2c0; }
.vote-check:has(input:checked) { background: var(--gbs-green-soft); border-color: #a9c9b4; color: var(--gbs-green-dark); font-weight: 600; }
.vote-steps-list { margin: 0; padding-left: 1.1rem; font-size: .8rem; color: #43544b; display: grid; gap: .4rem; }
.vote-steps-list strong { color: var(--ink); }

.election-card { overflow: hidden; }
.election-card.is-live { border-left: 3px solid var(--gbs-green); }
.election-mark {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.4rem;
    background: var(--gbs-green-soft); color: var(--gbs-green); border: 1px solid #d9e8dd;
}
.election-mark.live {
    background: linear-gradient(140deg, #0f6b45, #0a4a30); color: #fff; border-color: transparent;
    box-shadow: 0 8px 18px rgba(11, 93, 59, .28);
}
.election-metrics { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .55rem; font-size: .76rem; color: var(--muted); }
.election-metrics i { color: var(--gbs-green); }

.live-dot {
    width: 9px; height: 9px; border-radius: 50%; display: inline-block;
    background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .55);
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); }
    70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
}

.vote-lifecycle { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.vote-lifecycle .step {
    font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px;
    background: #f1f4f1; color: var(--muted); border: 1px solid var(--line);
}
.vote-lifecycle .step.on { background: var(--gbs-green); color: #fff; border-color: var(--gbs-green); }
.vote-lifecycle .step.done { background: var(--gbs-green-soft); color: var(--gbs-green-dark); border-color: #cfe3d5; }
.vote-lifecycle .line { height: 2px; width: 22px; background: var(--line); }

.setup-card { transition: border-color .15s, box-shadow .15s, transform .15s; color: inherit; }
.setup-card:hover { border-color: #b9d2c0; box-shadow: 0 10px 24px rgba(16, 40, 28, .08); transform: translateY(-1px); color: inherit; }
.setup-icon {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--gbs-green-soft); color: var(--gbs-green); font-size: 1.05rem; margin-bottom: .6rem;
}

.vote-security-list { list-style: none; margin: 0; padding: 0; }
.vote-security-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .79rem; color: #43544b; padding: .32rem 0; }
.vote-security-list i { color: var(--gbs-green); margin-top: 2px; }

.vote-position-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.vote-position-tab {
    display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem;
    border-radius: 999px; background: #fff; border: 1px solid var(--line);
    color: #43544b; font-size: .79rem; font-weight: 600; white-space: nowrap;
}
.vote-position-tab:hover { border-color: #b9d2c0; color: var(--gbs-green-dark); }
.vote-position-tab .n {
    width: 20px; height: 20px; border-radius: 50%; background: var(--gbs-green-soft);
    color: var(--gbs-green-dark); display: grid; place-items: center; font-size: .64rem; font-weight: 700;
}
.vote-position-tab.active { background: var(--gbs-green); border-color: var(--gbs-green); color: #fff; }
.vote-position-tab.active .n { background: rgba(255, 255, 255, .22); color: #fff; }

.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.candidate-card {
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: #fff; display: flex; flex-direction: column;
}
.candidate-photo { position: relative; height: 160px; background: linear-gradient(180deg, #eef4ef, #e3ece6); }
.candidate-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.candidate-order {
    position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; padding: 0 6px;
    border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--gbs-green-dark);
    display: grid; place-items: center; font-size: .68rem; font-weight: 700;
}
.candidate-body { padding: .75rem .85rem .85rem; display: flex; flex-direction: column; }
.candidate-body .name { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.candidate-body .meta { font-size: .73rem; color: var(--muted); margin-top: .1rem; }
.candidate-body .slogan {
    font-size: .73rem; color: #6b7a72; font-style: italic; margin-top: .25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.candidate-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.candidate-picker-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.candidate-picker-search > input { grid-column: 1 / -1; }
.picker-hint { margin-top: .65rem; font-size: .75rem; color: var(--muted); line-height: 1.45; }
.picker-results { margin-top: .55rem; display: flex; flex-direction: column; gap: .35rem; max-height: 320px; overflow: auto; }
.picker-row { display: flex; align-items: center; gap: .55rem; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; }
.picker-row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gbs-green-soft); }
.picker-who { min-width: 0; flex: 1; }
.picker-name { font-size: .8rem; font-weight: 600; line-height: 1.2; }
.picker-meta { font-size: .68rem; color: var(--muted); }
.picker-row form { flex: none; }
.picker-linked { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; background: var(--gbs-green-soft); }
.picker-linked img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

.vote-code {
    display: inline-block; font-size: .8rem; letter-spacing: .06em; font-weight: 600;
    background: #f4f7f4; border: 1px dashed #cfdcd3; border-radius: 7px; padding: .18rem .5rem;
    color: var(--gbs-green-dark); white-space: nowrap;
}

/* 12-hour clock field */
.clock-field { display: flex; align-items: center; gap: .3rem; }
.clock-field .form-select { font-variant-numeric: tabular-nums; }
.clock-field .clock-hour { width: 4.6rem; }
.clock-field .clock-minute { width: 4.6rem; }
.clock-field .clock-period { width: 4.8rem; font-weight: 600; }
.clock-colon { font-weight: 700; color: var(--muted); }
.clock-field + .field-error { display: block; }

/* Voter roll */
.voter-search-box { position: relative; display: flex; align-items: center; }
.voter-search-box > i { position: absolute; left: .6rem; color: var(--muted); font-size: .8rem; pointer-events: none; }
.voter-search-box .form-control { padding-left: 1.8rem; min-width: 240px; }
.voter-search-box .tiny { position: absolute; right: .55rem; pointer-events: none; opacity: .7; }
.voter-name { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.voter-avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; background: var(--gbs-green-soft); color: var(--gbs-green); font-size: .9rem;
}
.voter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.voter-row--waiting td { background: #fffdf5; }
.vote-danger-zone { border: 1px solid #f0c9cd; background: #fff8f8; border-radius: 12px; padding: .85rem .9rem; }
.vote-danger-zone .form-section-title { color: #b4232c; }

/* Live dashboard */
.live-position .card-header h3 { font-size: .95rem; }
.live-row { display: flex; gap: .7rem; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid #eef2ee; }
.live-row:last-child { border-bottom: 0; }
.live-photo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; background: var(--gbs-green-soft); }
.live-info { flex: 1; min-width: 0; }
.live-line { display: flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; }
.live-line .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar { height: 5px; margin-top: .35rem; max-width: 340px; }
.live-score { text-align: right; min-width: 54px; }
.live-score .votes { font-weight: 800; font-size: 1rem; line-height: 1.1; color: var(--gbs-green-dark); }

/* Results sheet */
.result-sheet {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 2rem; max-width: 980px; margin: 0 auto;
}
.result-head {
    display: grid; grid-template-columns: 64px 1fr 64px; gap: 1rem; align-items: center;
    text-align: center; border-bottom: 2px solid var(--gbs-green); padding-bottom: 1rem;
}
.result-logo, .result-arms { width: 64px; height: 64px; object-fit: contain; }
.result-school h1 { font-size: 1.22rem; margin: 0; color: var(--gbs-green-dark); text-transform: uppercase; letter-spacing: .02em; }
.result-school .addr { font-size: .72rem; color: var(--muted); }
.result-school .title { margin-top: .45rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: var(--gbs-green); }
.result-school .election { font-size: 1.05rem; font-weight: 700; margin-top: .15rem; }
.result-meta {
    display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: center;
    font-size: .76rem; padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.result-meta span { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .6rem; display: block; }
.result-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0;
    text-align: center; background: #f6f9f6; border: 1px solid var(--line); border-radius: 10px; padding: .7rem;
}
.result-stats .label { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.result-stats .value { font-size: 1.15rem; font-weight: 800; color: var(--gbs-green-dark); }
.result-position { margin-top: 1.4rem; break-inside: avoid; page-break-inside: avoid; }
.position-band {
    display: flex; align-items: center; gap: .6rem; background: var(--gbs-green);
    color: #fff; padding: .45rem .8rem; border-radius: 8px 8px 0 0;
}
.position-band .title { font-weight: 700; font-size: .85rem; }
.position-band .meta { font-size: .7rem; color: #cfe3d5; margin-left: auto; }
.position-band .tie { background: var(--gbs-gold); color: #2b2200; border-radius: 999px; padding: .1rem .5rem; font-size: .62rem; font-weight: 700; }
.result-table { width: 100%; border-collapse: collapse; font-size: .78rem; border: 1px solid var(--line); border-top: 0; }
.result-table th {
    background: #f2f6f3; color: #43544b; text-transform: uppercase; font-size: .6rem;
    letter-spacing: .06em; padding: .45rem .6rem; text-align: left; font-weight: 600;
}
.result-table td { padding: .45rem .6rem; border-top: 1px solid #eef2ee; vertical-align: middle; }
.result-table tr.winner td { background: #fdf8e4; }
.result-table .rank { font-weight: 800; color: var(--gbs-green); }
.result-table .num { text-align: right; }
.result-table th.num { text-align: right; }
.result-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--gbs-green-soft); }
.share-cell { display: flex; align-items: center; gap: .5rem; }
.share-cell .progress { flex: 1; height: 5px; }
.result-foot {
    display: flex; justify-content: space-between; gap: 2rem; margin-top: 1.6rem;
    padding-top: .8rem; border-top: 1px solid var(--line); font-size: .68rem; color: var(--muted);
}
.result-foot .sign { text-align: center; min-width: 170px; }
.result-foot .sign .line { border-bottom: 1px solid #9aa8a0; height: 26px; margin-bottom: .3rem; }

/* Final results — the modern results sheet */
.final-sheet { max-width: 1040px; }
.final-stats { gap: .6rem; background: transparent; border: 0; padding: 0; margin-top: 1rem; }
.final-stats .item {
    position: relative; text-align: left; padding: .75rem .85rem; border-radius: 12px;
    background: #f6f9f6; border: 1px solid var(--line); overflow: hidden;
}
.final-stats .item .ico {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: #fff; color: var(--gbs-green); border: 1px solid #dbe7de; margin-bottom: .45rem; font-size: .9rem;
}
.final-stats .item .label { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.final-stats .item .value { font-size: 1.5rem; font-weight: 800; color: var(--gbs-green-dark); line-height: 1.05; }
.final-stats .item .value small { font-size: .8rem; font-weight: 700; }
.final-stats .item.accent {
    background: linear-gradient(135deg, #0f6b45, #0a4a30); border-color: transparent;
    box-shadow: 0 10px 22px rgba(11, 93, 59, .22);
}
.final-stats .item.accent .ico { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .22); }
.final-stats .item.accent .label { color: #c8dfd1; }
.final-stats .item.accent .value { color: #fff; }

.final-summary {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
    margin: 1.5rem 0 .75rem; padding-bottom: .55rem; border-bottom: 2px solid var(--gbs-green);
}
.final-summary-title {
    display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800;
    letter-spacing: .02em; color: var(--gbs-green-dark); text-transform: uppercase;
}
.final-summary-title i { color: var(--gbs-gold, #c9a227); }
.final-summary-meta { font-size: .74rem; color: var(--muted); margin-left: auto; }
.final-summary-meta .dot, .position-meta .dot { margin: 0 .4rem; opacity: .5; }

.final-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.final-results-table { width: 100%; border-collapse: collapse; font-size: .8rem; background: #fff; }
.final-results-table thead th {
    background: #f2f6f3; color: #43544b; text-transform: uppercase; letter-spacing: .07em;
    font-size: .6rem; font-weight: 700; text-align: left; padding: .55rem .75rem;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.final-results-table .num { text-align: right; }
.final-results-table .col-rank { width: 62px; text-align: center; }
.final-results-table .col-class { width: 110px; }
.final-results-table .col-votes { width: 96px; }
.final-results-table .col-share { width: 190px; }
.final-results-table .col-outcome { width: 120px; }

.result-group { break-inside: avoid; page-break-inside: avoid; }
.final-results-table .position-row th {
    background: linear-gradient(120deg, #0f6b45, #0b5d3b);
    color: #fff; text-align: left; padding: .55rem .75rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.final-results-table .position-row:first-child th { border-top: 0; }
.position-name { font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.position-meta { float: right; font-size: .68rem; font-weight: 500; color: #cfe3d5; text-transform: none; letter-spacing: 0; }
.tie-badge {
    display: inline-block; margin-left: .5rem; padding: .05rem .45rem; border-radius: 999px;
    background: var(--gbs-gold, #c9a227); color: #2b2200; font-size: .6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
}

.final-results-table tbody tr td {
    padding: .55rem .75rem; border-top: 1px solid #eef2ee; vertical-align: middle;
}
.final-results-table tbody tr.winner td { background: #fdf8e4; }
.final-results-table tbody tr.tied td { background: #fffdf5; }
.final-results-table tbody tr:hover td { background: #f7faf7; }
.final-results-table tbody tr.winner:hover td { background: #fbf3d6; }

.rank-medal {
    display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .35rem;
    border-radius: 999px; font-weight: 800; font-size: .8rem;
    background: #f1f4f1; color: #6b7a72; border: 1px solid #e2e8e3; font-variant-numeric: tabular-nums;
}
.rank-medal.rank-1 { background: linear-gradient(135deg, #f6d365, #d9a72a); color: #3a2a00; border-color: #e0b94a; box-shadow: 0 3px 8px rgba(201, 162, 39, .3); }
.rank-medal.rank-2 { background: linear-gradient(135deg, #eef1f3, #c7d0d6); color: #39454d; border-color: #c2ccd2; }
.rank-medal.rank-3 { background: linear-gradient(135deg, #f0d3b4, #c98f5e); color: #4a2b12; border-color: #d9a878; }

.candidate-cell { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.candidate-cell .result-photo { width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid #fff; box-shadow: 0 2px 7px rgba(16, 40, 28, .12); }
.candidate-text { min-width: 0; }
.candidate-name { font-weight: 700; font-size: .85rem; line-height: 1.25; }
.candidate-slogan { font-size: .7rem; color: #7b8794; font-style: italic; margin-top: .05rem; }
.final-results-table tr.winner .candidate-name { color: var(--gbs-green-dark); }

.vote-count { font-weight: 800; font-size: .95rem; color: var(--gbs-green-dark); font-variant-numeric: tabular-nums; }
.vote-word { font-size: .65rem; color: var(--muted); margin-left: .2rem; }
.final-results-table .col-votes { white-space: nowrap; }
.vote-share-inline { display: none; }

.share-cell { display: flex; align-items: center; gap: .55rem; }
.share-bar { flex: 1; height: 7px; border-radius: 999px; background: #e9efea; overflow: hidden; }
.share-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2e8b57, #0b5d3b); transition: width .3s ease; }
.share-fill.gold { background: linear-gradient(90deg, #f0cf6a, #c9a227); }
.share-value { font-size: .74rem; font-weight: 700; color: #43544b; min-width: 3.1rem; text-align: right; font-variant-numeric: tabular-nums; }

.outcome-badge {
    display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem;
    border-radius: 999px; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.outcome-badge.winner { background: #f6e7b8; color: #6a4d00; border: 1px solid #e6d28f; }
.outcome-badge.tie { background: #eef1f3; color: #465258; border: 1px solid #dbe1e5; }
.outcome-label { font-size: .7rem; color: #52606d; }
.outcome-label.muted { color: #9aa5b1; }

.result-declaration { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.declaration-text { font-size: .76rem; color: #43544b; line-height: 1.55; max-width: 620px; }
.signatures { display: flex; gap: 2.5rem; margin-top: 1.6rem; flex-wrap: wrap; }
.signatures .sign { flex: 1 1 180px; max-width: 260px; }
.signatures .sign .line { border-bottom: 1px solid #9aa8a0; height: 30px; margin-bottom: .3rem; }
.signatures .sign .sign-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.foot-brand { text-align: right; font-size: .66rem; color: var(--muted); display: grid; gap: .1rem; }

@media (max-width: 767.98px) {
    .final-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .final-summary-meta { margin-left: 0; flex-basis: 100%; }
    .position-meta { float: none; display: block; margin-top: .15rem; }
    .final-results-table .col-class, .final-results-table .col-share { display: none; }
    .final-results-table .col-outcome { width: 78px; }
    .final-results-table .vote-share-inline { display: block; font-size: .64rem; color: var(--muted); }
    .final-results-table .col-votes { width: 58px; }
    .final-results-table thead th, .final-results-table tbody td { padding: .5rem .5rem; }
    .candidate-cell .result-photo { width: 32px; height: 32px; flex-basis: 32px; }
    .candidate-name { font-size: .8rem; }
    .signatures { gap: 1.2rem; }
}

/* ---------- Student ballot ---------- */
.ballot-shell { max-width: 900px; margin: 0 auto; }
.ballot-top {
    background: linear-gradient(120deg, #0f6b45, #083c27); color: #fff;
    border-radius: 16px 16px 0 0; padding: 1.1rem 1.2rem;
}
.ballot-progress { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.ballot-step {
    display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .6rem;
    border-radius: 999px; background: rgba(255, 255, 255, .1); color: #cfe2d5;
    font-size: .72rem; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .14);
}
.ballot-step .dot {
    width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .18);
    display: grid; place-items: center; font-size: .6rem; font-weight: 700; color: #fff;
}
.ballot-step.done .dot { background: #2e8b57; }
.ballot-step.current { background: #fff; color: var(--gbs-green-dark); border-color: #fff; font-weight: 700; }
.ballot-step.current .dot { background: var(--gbs-green); color: #fff; }
.ballot-card {
    background: #fff; border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 16px 16px; padding: 1.4rem; box-shadow: var(--shadow);
}
.ballot-heading { margin-bottom: 1.2rem; }
.ballot-heading h1 { font-size: 1.5rem; margin: .2rem 0 .35rem; letter-spacing: -.02em; }
.ballot-hint { font-size: .78rem; color: var(--gbs-green); margin: .7rem 0 0; display: flex; align-items: flex-start; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.vote-card-form { margin: 0; }
.vote-card {
    width: 100%; background: #fff; border: 2px solid var(--line); border-radius: 16px;
    padding: .8rem; text-align: center; cursor: pointer; font: inherit; color: inherit;
    display: flex; flex-direction: column; align-items: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vote-card:hover { border-color: #9ec6ad; box-shadow: 0 10px 24px rgba(16, 40, 28, .09); transform: translateY(-2px); }
.vote-card:focus-visible { outline: none; box-shadow: 0 0 0 .25rem rgba(11, 93, 59, .18); border-color: var(--gbs-green); }
.vote-card.selected { border-color: var(--gbs-green); background: #f4fbf6; box-shadow: 0 0 0 4px rgba(11, 93, 59, .1); }
.vote-photo { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #eef4ef, #e3ece6); }
.vote-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vote-check {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--gbs-green); color: #fff; display: grid; place-items: center;
    box-shadow: 0 4px 10px rgba(11, 93, 59, .35);
}
.vote-name { font-weight: 700; font-size: .9rem; margin-top: .55rem; line-height: 1.25; }
.vote-class { font-size: .72rem; color: var(--muted); }
.vote-slogan {
    font-size: .72rem; color: #6b7a72; font-style: italic; margin-top: .2rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vote-action {
    margin-top: .6rem; display: inline-flex; align-items: center; gap: .45rem;
    padding: .32rem .9rem; border-radius: 999px; background: var(--gbs-green-soft);
    color: var(--gbs-green-dark); font-size: .76rem; font-weight: 700;
    transition: background .15s, color .15s;
}
.fingerprint { font-size: 1.15rem; line-height: 1; }
.vote-card:hover .vote-action, .vote-card.selected .vote-action { background: var(--gbs-green); color: #fff; }
.ballot-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ballot-foot { text-align: center; margin-top: .9rem; }
.ballot-busy .vote-card { pointer-events: none; opacity: .65; }
.vote-card-form.is-sending .vote-card { border-color: var(--gbs-green); }

/* Portal vote landing */
.vote-entry { width: 280px; max-width: 100%; }
.vote-code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .12em; text-align: center; font-weight: 700; font-size: 1rem; text-transform: uppercase;
}
.vote-status-line { display: flex; gap: .45rem; align-items: flex-start; font-size: .8rem; color: #43544b; }
.vote-status-line i { color: var(--gbs-green); margin-top: 2px; }
.vote-receipt-chip {
    display: inline-flex; align-items: center; gap: .6rem; background: #f4f7f4;
    border: 1px dashed #cfdcd3; border-radius: 8px; padding: .3rem .6rem;
}
.vote-receipt-chip .mono { font-weight: 700; color: var(--gbs-green-dark); }

/* Ballot review */
.review-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-row { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; border-bottom: 1px solid #eef2ee; flex-wrap: wrap; }
.review-row:last-child { border-bottom: 0; }
.review-row.missing { background: #fffdf4; }
.review-position { min-width: 150px; flex: 1 1 150px; }
.review-choice { display: flex; align-items: center; gap: .6rem; flex: 2 1 220px; min-width: 0; }
.review-choice img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.review-empty {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #f2f4f2;
    color: #a8b4ac; display: grid; place-items: center; font-size: 1.1rem;
}
.review-submit { margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f7faf7; }

/* Voting receipt */
.receipt-shell { max-width: 620px; margin: 0 auto; }
.receipt-card { border-radius: 18px; }
.receipt-tick {
    width: 72px; height: 72px; border-radius: 50%; background: var(--gbs-green); color: #fff;
    display: grid; place-items: center; font-size: 2rem; margin: 0 auto;
    box-shadow: 0 10px 26px rgba(11, 93, 59, .3);
}
.receipt-details {
    display: grid; gap: .55rem; text-align: left; border: 1px dashed #cfdcd3;
    border-radius: 12px; padding: .9rem 1rem; background: #f7faf7;
}
.receipt-details .item { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.receipt-details .item span { color: var(--muted); }
.receipt-details .item strong { text-align: right; }

@media (max-width: 575.98px) {
    .hide-below-sm { display: none !important; }
    .election-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 1.1rem; }
    .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .vote-card { padding: .5rem; border-radius: 13px; }
    .vote-name { font-size: .8rem; }
    .vote-slogan { display: none; }
    .vote-action { margin-top: .45rem; padding: .28rem .7rem; font-size: .72rem; }
    .ballot-card { padding: 1rem .85rem; }
    .ballot-heading h1 { font-size: 1.2rem; }
    .ballot-step .label { display: none; }
    .ballot-step.current .label { display: inline; }
    .ballot-actions .ms-auto { margin-left: 0 !important; width: 100%; }
    .ballot-actions .ms-auto > * { flex: 1 1 0; }
    .candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .candidate-photo { height: 120px; }
    .result-sheet { padding: 1rem .8rem; }
    .result-head { grid-template-columns: 44px 1fr 44px; gap: .5rem; }
    .result-logo, .result-arms { width: 44px; height: 44px; }
    .result-school h1 { font-size: .95rem; }
    .result-stats { grid-template-columns: repeat(2, 1fr); }
    .result-table { font-size: .7rem; }
    .result-table th, .result-table td { padding: .4rem .35rem; }
    .result-table th:nth-child(1) { width: 30px !important; }
    .result-table th:nth-child(2) { width: 34px !important; }
    .result-table th:nth-child(5) { width: 46px !important; }
    .result-table th:nth-child(6) { width: 52px !important; }
    .result-photo { width: 28px; height: 28px; }
    .result-table td:nth-child(3) .tiny { display: none; }
    .share-cell { justify-content: flex-end; }
    .share-cell .progress { display: none; }
    .voter-table { table-layout: fixed; width: 100%; }
    .voter-search { width: 100%; }
    .voter-search-box { flex: 1 1 100%; width: 100%; }
    .voter-search-box .form-control { min-width: 0; width: 100%; }
    .voter-search-box .tiny { display: none; }
    .voter-search select { flex: 1 1 45%; }
    .voter-table th, .voter-table td { padding: .35rem .25rem; font-size: .72rem; }
    .voter-table th:nth-child(4), .voter-table td:nth-child(4) { width: 70px !important; }
    .voter-table th:nth-child(6), .voter-table td:nth-child(6) { width: 76px !important; }
    .voter-table td:nth-child(1), .voter-table td:nth-child(3) { overflow-wrap: anywhere; }
    .voter-table .table-actions--icons { grid-template-columns: repeat(2, 32px); gap: .2rem; }
    .voter-table .table-actions--icons .btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: .74rem; }
    .voter-table .badge-soft { padding: .2rem .32rem; }
    .vote-code { font-size: .56rem; letter-spacing: 0; padding: .1rem .15rem; }
    .positions-table th, .positions-table td { padding: .4rem .3rem; font-size: .74rem; }
    .positions-table th:nth-child(1) { width: 38px !important; }
    .positions-table th:nth-child(4) { width: 72px !important; }
    .positions-table th:nth-child(5) { width: 76px !important; }
    .positions-table .position-desc { display: none; }
    .result-foot { flex-direction: column; }
    .review-position { min-width: 100%; }
    .review-choice { flex: 1 1 auto; }
    .review-row .btn { margin-left: auto; }
    .vote-entry { width: 100%; }
    .position-band { flex-wrap: wrap; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .candidate-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ---------- Print ---------- */
@media print {
    body { background: #fff !important; }
    .sidebar, .topbar, .app-footer, .no-print, .sidebar-backdrop, .alert,
    .portal-top, .portal-nav, .portal-shell > footer { display: none !important; }
    .main { margin: 0 !important; }
    .content, .portal-body { padding: 0 !important; max-width: none !important; }
    .rc-preview { padding: 0; background: #fff; overflow: visible; }
    .rc-sheet { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; zoom: 1; }
    .rc-table .col-remarks { display: table-cell; }
    .rc-head .logo, .rc-head .emblem { border: 0 !important; background: transparent !important; padding: 0 !important; }
    .rc-sign { break-inside: avoid; page-break-inside: avoid; }
    .id-sheet { grid-template-columns: repeat(2, 85.6mm); gap: 3mm; }
    .id-card { break-inside: avoid; page-break-inside: avoid; }
    .result-sheet { border: 0; box-shadow: none; padding: 0; max-width: none; margin: 0; border-radius: 0; }
    .result-sheet .position-band {
        background: #0b5d3b !important; color: #fff !important;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .result-sheet .result-stats { background: #f6f9f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .result-sheet tr.winner td { background: #fdf8e4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .final-results-table .position-row th,
    .final-results-table tr.winner td,
    .rank-medal,
    .share-fill,
    .outcome-badge,
    .final-stats .item.accent {
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .final-results-table, .final-table-wrap { border-color: #d5ded7 !important; }
    .result-group { break-inside: avoid; page-break-inside: avoid; }
    .result-declaration, .signatures { break-inside: avoid; page-break-inside: avoid; }
    .final-table-wrap { overflow: visible; }
    .result-position { break-inside: avoid; page-break-inside: avoid; }
    .result-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .result-foot { break-inside: avoid; page-break-inside: avoid; }
    .print-page { page-break-after: always; }
    .print-page:last-child { page-break-after: auto; }
    a { color: inherit !important; text-decoration: none !important; }
    @page { size: A4; margin: 10mm; }
}
