/* =====================================================================
   Employees Sportsfest Attendance Management System
   Custom styles on top of Bootstrap 5.
   Colour theme follows the USANT DMS (maroon / gold, warm neutrals, Montserrat).
   ===================================================================== */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../vendor/montserrat/montserrat-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../vendor/montserrat/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* USANT brand (same values as the DMS theme) */
    --sf-primary: #8f0000;
    --sf-primary-dark: #7a0000;
    --sf-primary-darker: #4d0000;
    --sf-primary-soft: #fbf2f0;
    --sf-gold: #d99a1f;
    --sf-gold-dark: #b87e0f;
    --sf-gold-soft: #fdf1d6;

    /* Status semantics (DMS status palette) */
    --sf-green: #1f7a4d;
    --sf-green-soft: #e2f1e9;
    --sf-progress: #1f6f9c;
    --sf-progress-soft: #e3eff6;
    --sf-half: #6a4fb5;
    --sf-half-soft: #efebf9;
    --sf-orange: #b87e0f;
    --sf-orange-soft: #fdf1d6;
    --sf-danger: #a4232e;

    /* Team fallbacks (real team colours come from the database) */
    --sf-yellow: #F5B800;
    --sf-blue: #1E63E9;
    --sf-red: #E5383B;

    /* Warm neutrals */
    --sf-ink: #241b1b;
    --sf-body: #4a3f3d;
    --sf-muted: #766a67;
    --sf-faint: #a89c98;
    --sf-line: #e4dad0;
    --sf-paper-200: #f1ebe4;
    --sf-bg: #faf7f4;
    --sf-card: #FFFFFF;

    --sf-radius: 14px;
    --sf-radius-sm: 10px;
    --sf-shadow: 0 1px 2px rgba(61, 12, 16, .06), 0 8px 24px -12px rgba(61, 12, 16, .18);
    --sf-sidebar-w: 264px;

    --bs-body-font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--sf-body);
    --bs-body-bg: var(--sf-bg);
    --bs-primary: var(--sf-primary);
    --bs-primary-rgb: 143, 0, 0;
    --bs-link-color: var(--sf-primary);
    --bs-link-color-rgb: 143, 0, 0;
    --bs-link-hover-color: var(--sf-primary-darker);
    --bs-link-hover-color-rgb: 77, 0, 0;
    --bs-border-color: var(--sf-line);
}

body {
    background: var(--sf-bg);
    color: var(--sf-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--sf-ink); }

/* Bootstrap components that otherwise default to Bootstrap blue */
.btn-primary {
    --bs-btn-bg: var(--sf-primary-dark);
    --bs-btn-border-color: var(--sf-primary-dark);
    --bs-btn-hover-bg: var(--sf-primary-darker);
    --bs-btn-hover-border-color: var(--sf-primary-darker);
    --bs-btn-active-bg: var(--sf-primary-darker);
    --bs-btn-active-border-color: var(--sf-primary-darker);
    --bs-btn-disabled-bg: var(--sf-primary-dark);
    --bs-btn-disabled-border-color: var(--sf-primary-dark);
    --bs-btn-focus-shadow-rgb: 143, 0, 0;
}
.btn-outline-primary {
    --bs-btn-color: var(--sf-primary);
    --bs-btn-border-color: var(--sf-primary);
    --bs-btn-hover-bg: var(--sf-primary-dark);
    --bs-btn-hover-border-color: var(--sf-primary-dark);
    --bs-btn-active-bg: var(--sf-primary-darker);
    --bs-btn-active-border-color: var(--sf-primary-darker);
    --bs-btn-focus-shadow-rgb: 143, 0, 0;
}
.btn-link { --bs-btn-color: var(--sf-primary); --bs-btn-hover-color: var(--sf-primary-darker); }
.btn-check:checked + .btn-outline-secondary { background: var(--sf-primary-dark); border-color: var(--sf-primary-dark); color: #fff; }
.form-check-input:checked { background-color: var(--sf-primary-dark); border-color: var(--sf-primary-dark); }
.form-check-input:focus { border-color: var(--sf-primary); box-shadow: 0 0 0 .2rem rgba(143, 0, 0, .15); }
.pagination {
    --bs-pagination-color: var(--sf-body);
    --bs-pagination-hover-color: var(--sf-primary);
    --bs-pagination-focus-color: var(--sf-primary);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(143, 0, 0, .15);
    --bs-pagination-active-bg: var(--sf-primary-dark);
    --bs-pagination-active-border-color: var(--sf-primary-dark);
}
.dropdown-menu { --bs-dropdown-link-active-bg: var(--sf-primary-dark); }
.list-group-item-action:focus, .list-group-item-action:hover { background: var(--sf-primary-soft); }
::selection { background: rgba(217, 154, 31, .35); }

/* ---------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1; padding: 1.5rem; }
.app-footer {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.5rem; font-size: .8rem; color: var(--sf-muted);
    border-top: 1px solid var(--sf-line);
}

@media (min-width: 992px) {
    .app-main { margin-left: var(--sf-sidebar-w); }
}
@media (max-width: 575.98px) {
    .app-content { padding: 1rem; }
    .app-footer { padding: .75rem 1rem; }
}

/* Sidebar: maroon gradient like the DMS header, gold for the active item */
.sidebar {
    background: linear-gradient(180deg, var(--sf-primary-dark), var(--sf-primary-darker)) !important;
    color: rgba(255, 255, 255, .82);
    width: var(--sf-sidebar-w);
    display: flex; flex-direction: column;
}
@media (min-width: 992px) {
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; }
}
@media (max-width: 991.98px) {
    .sidebar.offcanvas-lg { --bs-offcanvas-width: var(--sf-sidebar-w); --bs-offcanvas-bg: var(--sf-primary-darker); }
}
.sidebar-brand {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.15rem 1.1rem 1rem; gap: .5rem;
}
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.2rem; color: var(--sf-primary-darker);
    background: linear-gradient(135deg, #f0c674, var(--sf-gold));
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; padding: 2px; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .55); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { color: #fff; font-size: .95rem; }
.brand-text small { color: rgba(255, 255, 255, .65); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }

.team-stripe { display: flex; height: 4px; margin: 0 1.1rem 1rem; border-radius: 4px; overflow: hidden; }
.team-stripe span { flex: 1; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 .75rem 1rem; }
.nav-section {
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255, 255, 255, .5); padding: 1rem .75rem .4rem;
}
.nav-item-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .62rem .75rem; margin-bottom: 2px; border-radius: 10px;
    color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .9rem; font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}
.nav-item-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.nav-item-link:hover { background: rgba(255, 255, 255, .08); color: var(--sf-gold); }
.nav-item-link.active { background: rgba(255, 255, 255, .12); color: var(--sf-gold); border-left-color: var(--sf-gold); font-weight: 600; }
.sidebar-footer { padding: .9rem 1.1rem; font-size: .75rem; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .12); }

/* Top bar */
.topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 1.5rem; min-height: 64px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sf-line);
    box-shadow: inset 0 -2px 0 var(--sf-gold);
}
.topbar-title { font-size: 1.15rem; font-weight: 700; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-clock {
    align-items: center; gap: .5rem; font-size: .85rem; color: var(--sf-muted);
    background: var(--sf-bg); padding: .4rem .8rem; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.btn-icon { font-size: 1.5rem; line-height: 1; padding: .25rem .5rem; border: 0; }
.btn-user { display: flex; align-items: center; gap: .6rem; border: 0; padding: .25rem .5rem; }
.btn-user::after { margin-left: .25rem; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sf-primary-dark); color: #fff; font-weight: 700; flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .topbar { padding: .6rem 1rem; gap: .5rem; }
}

/* ---------------------------------------------------------------------
   Cards & generic components
   ------------------------------------------------------------------- */
.card {
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    background: var(--sf-card);
}
.card-header {
    background: transparent; border-bottom: 1px solid var(--sf-line);
    padding: 1rem 1.25rem; font-weight: 600; color: var(--sf-ink);
    border-radius: var(--sf-radius) var(--sf-radius) 0 0 !important;
}
.card-body { padding: 1.25rem; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.text-muted-sm { color: var(--sf-muted); font-size: .82rem; }

.form-control, .form-select { border-radius: var(--sf-radius-sm); border-color: #d9cdc2; }
.form-control:focus, .form-select:focus { border-color: var(--sf-primary); box-shadow: 0 0 0 .2rem rgba(143, 0, 0, .15); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--sf-ink); }
.btn { border-radius: var(--sf-radius-sm); font-weight: 600; }

/* Stat cards */
.stat-card { display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; height: 100%; }
.stat-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.35rem;
}
.stat-value { font-size: 1.65rem; font-weight: 800; color: var(--sf-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; color: var(--sf-muted); font-weight: 500; }
.bg-soft-blue { background: var(--sf-primary-soft); color: var(--sf-primary); }
.bg-soft-yellow { background: var(--sf-gold-soft); color: var(--sf-gold-dark); }
.bg-soft-red { background: #fbe7e8; color: var(--sf-danger); }
.bg-soft-green { background: var(--sf-green-soft); color: var(--sf-green); }
.bg-soft-orange { background: var(--sf-orange-soft); color: var(--sf-orange); }
.bg-soft-slate { background: var(--sf-paper-200); color: var(--sf-ink); }

/* Team identification */
.team-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .22rem .65rem .22rem .5rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
    color: var(--sf-ink);
    background: color-mix(in srgb, var(--team) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--team) 40%, #fff);
}
.team-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--team); flex-shrink: 0; }

.team-card { position: relative; overflow: hidden; height: 100%; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--team); }
.team-card .team-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.team-card .team-name { font-size: 1.1rem; font-weight: 800; color: var(--sf-ink); display: flex; align-items: center; gap: .5rem; }
.team-card .team-pct { font-size: 2rem; font-weight: 800; color: var(--team); line-height: 1; font-variant-numeric: tabular-nums; }
.team-card .team-pct small { font-size: .9rem; }
.team-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1rem; }
.team-metric { background: var(--sf-bg); border-radius: 10px; padding: .55rem .7rem; }
.team-metric .v { font-weight: 800; color: var(--sf-ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.team-metric .l { font-size: .72rem; color: var(--sf-muted); }
.team-progress { height: 8px; border-radius: 999px; background: var(--sf-paper-200); }
.team-progress .progress-bar { background: var(--team); border-radius: 999px; transition: width .6s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--sf-muted); margin: .6rem 0 .25rem; }

.team-yellow { --team: var(--sf-yellow); }
.team-blue { --team: var(--sf-blue); }
.team-red { --team: var(--sf-red); }

/* Status badges */
.status-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.status-none { background: var(--sf-paper-200); color: var(--sf-muted); }
.status-absent { background: var(--sf-paper-200); color: var(--sf-faint); }
.status-progress { background: var(--sf-progress-soft); color: var(--sf-progress); }
.status-half { background: var(--sf-half-soft); color: var(--sf-half); }
.status-complete { background: var(--sf-green-soft); color: var(--sf-green); }
.status-incomplete { background: var(--sf-orange-soft); color: var(--sf-orange); }

/* Tables */
.table-sf { margin: 0; font-size: .875rem; }
.table-sf thead th {
    background: var(--sf-bg); color: var(--sf-muted); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .05em; font-weight: 700; border-bottom: 1px solid var(--sf-line); white-space: nowrap;
    padding: .75rem;
}
.table-sf td { padding: .7rem .75rem; vertical-align: middle; border-color: #efe7df; }
.table-sf tbody tr:hover { background: #fdfaf7; }
.table-sf .time-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-sf .time-empty { color: #d6cbc4; }
.emp-name { font-weight: 600; color: var(--sf-ink); }
.emp-sub { font-size: .75rem; color: var(--sf-muted); }
.row-team { border-left: 4px solid var(--team); }

/* Recent transactions */
.feed-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px dashed var(--sf-line); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--team, var(--sf-faint)); flex-shrink: 0; }
.feed-time { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--sf-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sf-green); box-shadow: 0 0 0 0 rgba(31, 122, 77, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 122, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); } }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--sf-muted); }
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: .5rem; color: #d6cbc4; }

/* ---------------------------------------------------------------------
   Attendance recording
   ------------------------------------------------------------------- */
.record-search {
    position: sticky; top: 64px; z-index: 10;
    background: var(--sf-bg); padding-bottom: .75rem;
}
.search-xl { position: relative; }
.search-xl i.bi-search { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--sf-muted); }
.search-xl input { height: 58px; padding-left: 3rem; font-size: 1.1rem; border-radius: 14px; box-shadow: var(--sf-shadow); }

.team-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.team-filter .btn { border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; background: #fff; border: 1px solid var(--sf-line); color: var(--sf-ink); }
.team-filter .btn .team-dot { display: inline-block; margin-right: .35rem; }
.team-filter .btn.active { background: var(--sf-primary-dark); color: #fff; border-color: var(--sf-primary-dark); }

.emp-card { position: relative; overflow: hidden; padding: 1rem 1.1rem 1rem 1.35rem; transition: box-shadow .2s, transform .2s; }
.emp-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--team, var(--sf-faint)); }
.emp-card.flash-success { animation: flashOk 1.2s ease; }
@keyframes flashOk { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .55); } 100% { box-shadow: 0 0 0 14px rgba(31, 122, 77, 0); } }
.emp-card .emp-title { font-size: 1.1rem; font-weight: 700; color: var(--sf-ink); }
.emp-card .emp-meta { font-size: .82rem; color: var(--sf-muted); display: flex; flex-wrap: wrap; gap: .35rem .9rem; }

.step-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .9rem 0; }
.step {
    border-radius: 10px; padding: .45rem .5rem; text-align: center;
    background: #f4eee8; border: 1px solid transparent;
}
.step .s-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sf-muted); }
.step .s-time { font-size: .85rem; font-weight: 700; color: var(--sf-faint); font-variant-numeric: tabular-nums; }
.step.done { background: var(--sf-green-soft); }
.step.done .s-time { color: var(--sf-green); }
.step.next { border: 1px dashed var(--sf-primary); background: var(--sf-primary-soft); }
.step.next .s-time { color: var(--sf-primary); }

.btn-action {
    width: 100%; min-height: 56px; font-size: 1.05rem; font-weight: 700; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-action.in { background: var(--sf-green); border-color: var(--sf-green); color: #fff; }
.btn-action.in:hover { background: #17603c; color: #fff; }
.btn-action.out { background: var(--sf-primary-dark); border-color: var(--sf-primary-dark); color: #fff; }
.btn-action.out:hover { background: var(--sf-primary-darker); color: #fff; }
.btn-action:disabled { opacity: .65; }
.done-banner {
    min-height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--sf-green-soft); color: var(--sf-green); font-weight: 700;
}
.last-result { font-size: .82rem; margin-top: .5rem; }

.record-closed { border-left: 5px solid var(--sf-orange); }

/* Confirmation overlay after a transaction */
.confirm-pop {
    position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
    z-index: 1090; min-width: min(92vw, 420px); max-width: 92vw;
    background: var(--sf-ink); color: #fff; border-radius: 16px; padding: 1rem 1.2rem;
    display: flex; align-items: center; gap: .9rem; box-shadow: 0 12px 40px rgba(61, 12, 16, .35);
    transition: transform .3s ease, visibility .3s;
    visibility: hidden;
}
.confirm-pop.show { transform: translate(-50%, 0); visibility: visible; }
.confirm-pop .cp-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--sf-green); flex-shrink: 0; }
.confirm-pop.error .cp-icon { background: var(--sf-danger); }
.confirm-pop .cp-title { font-weight: 700; }
.confirm-pop .cp-sub { font-size: .85rem; color: #d9c9c4; }
.confirm-pop .cp-time { font-size: 1.25rem; font-weight: 800; margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   Login
   ------------------------------------------------------------------- */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
    background:
        radial-gradient(circle at 10% 15%, rgba(217, 154, 31, .22), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(143, 0, 0, .16), transparent 38%),
        radial-gradient(circle at 50% 100%, rgba(122, 0, 0, .14), transparent 42%),
        var(--sf-bg);
}
.login-card { width: 100%; max-width: 420px; padding: 2.25rem 2rem; }
.login-card .brand-mark { width: 60px; height: 60px; font-size: 1.8rem; border-radius: 18px; margin: 0 auto 1rem; }
.login-card .brand-logo { width: 72px; height: 72px; display: block; margin: 0 auto 1rem; }
.login-card .form-control { height: 48px; }
.login-teams { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }

/* ---------------------------------------------------------------------
   Reports
   ------------------------------------------------------------------- */
.report-paper { background: #fff; }
.report-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid var(--sf-primary-dark); margin-bottom: 1rem; }
.report-head img { width: 64px; height: 64px; object-fit: contain; }
.report-head .org { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sf-muted); font-weight: 700; }
.report-head .title { font-size: 1.35rem; font-weight: 800; color: var(--sf-ink); }
.report-head .event { font-weight: 600; }
.report-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .82rem; color: var(--sf-muted); margin-bottom: 1rem; }
.report-meta strong { color: var(--sf-ink); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.summary-box { border: 1px solid var(--sf-line); border-radius: 10px; padding: .6rem .8rem; }
.summary-box .v { font-size: 1.15rem; font-weight: 800; color: var(--sf-ink); }
.summary-box .l { font-size: .72rem; color: var(--sf-muted); }
.report-section-title { font-size: .95rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; font-size: .85rem; }
.signatures .line { border-top: 1px solid var(--sf-ink); padding-top: .25rem; margin-top: 2rem; font-weight: 600; color: var(--sf-ink); }
@media (max-width: 575.98px) { .signatures { grid-template-columns: 1fr; gap: .5rem; } }

.report-types .btn { text-align: left; }

/* ---------------------------------------------------------------------
   Print
   ------------------------------------------------------------------- */
@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { background: #fff !important; font-size: 11px; }
    .sidebar, .topbar, .app-footer, .no-print, .toast-container, .alert { display: none !important; }
    .app-main { margin: 0 !important; }
    .app-content { padding: 0 !important; }
    .card { border: 0 !important; box-shadow: none !important; }
    .card-body { padding: 0 !important; }
    .table-responsive { overflow: visible !important; }
    .table-sf { font-size: 10px; }
    .table-sf td, .table-sf th { padding: 4px 6px !important; }
    .team-badge, .status-badge, .team-dot, .summary-box, .table-sf thead th {
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    thead { display: table-header-group; }
    tr { page-break-inside: avoid; }
}
.min-w-0 { min-width: 0; }
.btn-override { font-size: .78rem; color: var(--sf-muted); text-decoration: none; }
.btn-override:hover { color: var(--sf-primary); }

/* Who recorded a time log */
.rec-by { font-size: .7rem; color: var(--sf-muted); font-weight: 500; line-height: 1.25; max-width: 150px; white-space: normal; }
.step .rec-by { max-width: none; font-size: .64rem; margin-top: 1px; }
.feed-by { font-size: .72rem; color: var(--sf-faint); }
