:root {
    --brand-navy: #0b2748;
    --brand-navy-deep: #071d36;
    --brand-blue: #12558c;
    --brand-blue-hover: #0d446f;
    --brand-blue-soft: #eaf3fb;
    --brand-gold: #d4a72c;
    --brand-gold-hover: #b88918;
    --brand-gold-soft: #fff7df;
    --page-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #f1f5f9;
    --surface-alt: #f8fafc;
    --text-main: #172033;
    --text-secondary: #475467;
    --text-muted: #687386;
    --text-light: #7f8a9d;
    --border: #dfe5ec;
    --border-soft: #edf1f5;
    --border-light: #edf0f4;
    --success: #17845b;
    --success-soft: #e8f7f0;
    --warning: #b76b00;
    --warning-soft: #fff3dc;
    --danger: #c63f46;
    --danger-soft: #fdeced;
    --info: #2563a6;
    --info-soft: #e9f2fc;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 84px;
    --topbar-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 4px 12px rgba(16, 24, 40, .06);
    --shadow-md: 0 12px 28px rgba(16, 24, 40, .09);
    --transition-fast: 160ms ease;
    --transition-normal: 220ms ease;
    --ict-primary: var(--brand-blue);
    --ict-primary-dark: var(--brand-navy);
    --ict-secondary: var(--info);
    --ict-accent: var(--brand-gold);
    --ict-success: var(--success);
    --ict-warning: var(--warning);
    --ict-danger: var(--danger);
    --ict-bg: var(--page-bg);
    --ict-card: var(--surface);
    --ict-text: var(--text-main);
    --ict-muted: var(--text-muted);
    --ict-border: var(--border);
}

*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; min-height: 100vh; margin: 0; color: var(--text-main); background: var(--page-bg); font: 14px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-hover); }
:focus-visible { outline: 3px solid rgba(18, 85, 140, .55) !important; outline-offset: 2px; }
.text-primary { color: var(--brand-blue) !important; }
.bg-primary { background: var(--brand-blue) !important; }
.text-muted { color: var(--text-muted) !important; }
.min-w-0 { min-width: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 2000; padding: 9px 13px; color: #fff; background: var(--brand-navy-deep); border-radius: 7px; font-weight: 700; transform: translateY(-160%); transition: transform var(--transition-fast); }
.skip-link:focus { color: #fff; transform: translateY(0); }

/* Application shell */
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; display: flex; flex-direction: column; width: var(--sidebar-width); height: 100vh; height: 100dvh; padding: 14px 13px 13px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; color: #fff; background: var(--brand-navy-deep); border-right: 1px solid rgba(255,255,255,.07); box-shadow: 8px 0 28px rgba(5,23,43,.08); transition: width var(--transition-normal), transform var(--transition-normal); }
.app-sidebar::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--brand-gold); content: ""; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 10px 9px 14px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand:hover { color: #fff; }
.brand-mark { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; min-width: 0; gap: 0; }
.brand-copy strong { display: block; font-size: .98rem; font-weight: 750; letter-spacing: -.015em; white-space: nowrap; }
.brand-copy small { display: block; overflow: hidden; color: #e9c55d; font-size: .59rem; font-weight: 750; letter-spacing: .075em; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy > span { color: rgba(255,255,255,.48); font-size: .65rem; white-space: nowrap; }
.sidebar-close { position: absolute; top: 18px; right: 12px; display: none; width: 38px; height: 38px; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.sidebar-close:hover { background: rgba(255,255,255,.14); }
.sidebar-nav-label, .sidebar-account-label { padding: 18px 12px 7px; color: rgba(255,255,255,.36); font-size: .59rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sidebar-nav { display: grid; gap: 6px; padding: 0; }
.sidebar-nav--direct { margin-top: 14px; }
.sidebar-group { display: grid; margin-top: 7px; }
.sidebar-group-toggle { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; color: rgba(255,255,255,.7); background: transparent; border: 1px solid transparent; border-radius: 10px; text-align: left; transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
.sidebar-group-toggle:hover, .sidebar-group.is-open .sidebar-group-toggle { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.07); }
.sidebar-group.has-active-page .sidebar-group-toggle { color: #f3d171; }
.sidebar-group-main { display: flex; min-width: 0; align-items: center; gap: 11px; }
.sidebar-group-main > i { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; color: #a9c4dd; background: rgba(255,255,255,.055); border-radius: 8px; }
.sidebar-group-main strong { overflow: hidden; font-size: .73rem; font-weight: 720; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-group-chevron { flex: 0 0 auto; color: rgba(255,255,255,.35); font-size: .68rem; transition: transform var(--transition-normal); }
.sidebar-group.is-open .sidebar-group-chevron { transform: rotate(180deg); }
.sidebar-submenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-normal); }
.sidebar-group.is-open .sidebar-submenu { grid-template-rows: 1fr; }
.sidebar-submenu-inner { min-height: 0; overflow: hidden; }
.sidebar-submenu .sidebar-nav { gap: 3px; padding: 5px 0 2px 8px; }
.sidebar-submenu .sidebar-link { min-height: 46px; padding: 6px 8px; }
.sidebar-submenu .sidebar-link > i:first-child { width: 31px; height: 31px; flex-basis: 31px; font-size: .85rem; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 8px 10px; overflow: hidden; color: rgba(255,255,255,.66); border: 1px solid transparent; border-radius: 11px; transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.sidebar-link > i:first-child { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #a9c4dd; background: rgba(255,255,255,.055); border-radius: 9px; font-size: 1rem; }
.sidebar-link-copy { display: grid; min-width: 0; flex: 1; line-height: 1.18; }
.sidebar-link-copy strong { overflow: hidden; color: inherit; font-size: .8rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-link-copy small { overflow: hidden; margin-top: 2px; color: rgba(255,255,255,.36); font-size: .61rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-link-arrow { width: auto !important; flex: 0 0 auto !important; color: rgba(255,255,255,.25); font-size: .67rem !important; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar-link.active { color: #fff; background: rgba(30,100,157,.32); border-color: rgba(117,174,216,.2); box-shadow: inset 3px 0 0 var(--brand-gold); }
.sidebar-link.active > i:first-child { color: var(--brand-navy-deep); background: #f0c95c; }
.sidebar-link.active .sidebar-link-copy small { color: rgba(255,255,255,.55); }
.sidebar-account-label { margin-top: auto; padding-top: 14px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: 0; padding: 11px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.055); }
.avatar { position: relative; display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; color: var(--brand-navy); background: #fff; }
.sidebar-user .avatar i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; background: #36c88a; border: 2px solid var(--brand-navy-deep); border-radius: 50%; }
.avatar-initials { font-size: .73rem; font-weight: 800; letter-spacing: .025em; }
.sidebar-logout-form { width: 36px; height: 36px; flex: 0 0 36px; margin-left: auto; }
.sidebar-logout { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: rgba(255,255,255,.72); background: transparent; border: 0; border-radius: 7px; transition: color var(--transition-fast), background-color var(--transition-fast); }
.sidebar-logout:hover { color: #fff; background: rgba(198,63,70,.35); }
.sidebar-logout-row { width: 100%; height: auto; margin: 7px 0 0; }
.sidebar-logout-row .sidebar-logout { display: flex; width: 100%; height: 39px; justify-content: flex-start; gap: 11px; padding: 0 12px; color: rgba(255,255,255,.68); font-size: .72rem; font-weight: 700; }
.sidebar-logout-row .sidebar-logout i { width: 26px; font-size: .95rem; }
.app-shell { width: auto; min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left var(--transition-normal); }
.topbar { position: fixed; top: 0; right: 0; left: var(--sidebar-width); z-index: 1020; display: flex; align-items: center; gap: 14px; height: var(--topbar-height); padding: 0 28px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); box-shadow: 0 3px 14px rgba(16,24,40,.035); backdrop-filter: blur(10px); transition: left var(--transition-normal); }
.topbar > *, .topbar-heading, .topbar-actions { min-width: 0; }
.topbar-heading { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.topbar-context-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 9px; }
.topbar-heading-copy { min-width: 0; }
.topbar-eyebrow { color: var(--text-muted); font-size: .69rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.topbar-title { margin: 1px 0 0; color: var(--brand-navy); font-size: 1.05rem; font-weight: 700; }
.icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: var(--brand-blue); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; transition: background-color var(--transition-fast), border-color var(--transition-fast); }
.icon-button:hover { background: var(--brand-blue-soft); border-color: #bcd2e5; }
.topbar-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; color: var(--text-muted); background: var(--surface-alt); border: 1px solid var(--border-light); border-radius: 8px; font-size: .78rem; font-weight: 600; }
.topbar-profile { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 9px 4px 4px; color: var(--text-main); background: transparent; border: 1px solid transparent; border-radius: 8px; transition: background-color var(--transition-fast), border-color var(--transition-fast); }
.topbar-profile:hover, .topbar-profile[aria-expanded="true"] { background: var(--surface-alt); border-color: var(--border); }
.topbar-profile::after { margin-left: 3px; color: var(--text-muted); }
.topbar-profile strong, .topbar-profile small { display: block; max-width: 145px; overflow: hidden; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.topbar-profile strong { font-size: .8rem; }
.topbar-profile small { color: var(--text-muted); font-size: .68rem; }
.topbar-avatar { display: grid; width: 34px; height: 34px; place-items: center; color: var(--brand-blue); border-radius: 50%; background: var(--brand-blue-soft); }
.dropdown-user-summary { display: grid; min-width: 190px; gap: 1px; padding: 7px 10px; }
.dropdown-user-summary strong { overflow: hidden; color: var(--text-main); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-user-summary small { overflow: hidden; color: var(--text-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.content-wrap { width: 100%; max-width: 1600px; min-width: 0; min-height: calc(100vh - 65px); margin-inline: auto; padding: calc(var(--topbar-height) + clamp(16px, 2vh, 26px)) clamp(14px, 2vw, 30px) clamp(18px, 2vw, 30px); }
.app-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 30px 24px; color: var(--text-muted); font-size: .78rem; }
.sidebar-backdrop { display: none; }
body.sidebar-collapsed .app-sidebar { width: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .app-shell { margin-left: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .topbar { left: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .brand, body.sidebar-collapsed .sidebar-link, body.sidebar-collapsed .sidebar-user { justify-content: center; }
body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .sidebar-link-copy, body.sidebar-collapsed .sidebar-link-arrow, body.sidebar-collapsed .sidebar-nav-label, body.sidebar-collapsed .sidebar-account-label, body.sidebar-collapsed .sidebar-user-copy, body.sidebar-collapsed .sidebar-group-main strong, body.sidebar-collapsed .sidebar-group-chevron, body.sidebar-collapsed .sidebar-submenu, body.sidebar-collapsed .sidebar-logout-row span { display: none; }
body.sidebar-collapsed .sidebar-logout-row .sidebar-logout { justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-group-toggle { justify-content: center; padding-inline: 0; }
@media (prefers-reduced-motion: reduce) { .sidebar-submenu, .sidebar-group-chevron { transition: none; } }

/* Page hierarchy and surfaces */
.page-header { position: relative; display: grid; gap: 11px; margin-bottom: 20px; padding: 14px 18px 16px; overflow: hidden; background: linear-gradient(105deg,#fff 0%,#fff 64%,#f2f7fc 100%); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs); }
.page-header::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand-gold); content: ""; }
.page-header__trail { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-header .breadcrumb { margin: 0; font-size: .7rem; }
.page-header .breadcrumb a { color: var(--text-muted); }
.page-header__context { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .65rem; font-weight: 600; }
.page-header__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-header__identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.page-header__icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border: 1px solid #d3e3f1; border-radius: 12px; font-size: 1.1rem; }
.page-header__identity > div { min-width: 0; }
.page-header__kicker { display: block; margin-bottom: 1px; color: var(--brand-gold-hover); font-size: .62rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.page-header h1 { margin: 0; color: var(--brand-navy); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.page-header p { max-width: 720px; margin: 3px 0 0; color: var(--text-muted); font-size: .79rem; }
.page-primary-action { flex: 0 0 auto; }
.page-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.page-list-toolbar { display: grid; grid-template-columns: minmax(280px,1fr) auto; width: 100%; align-items: center; gap: 10px; }
.page-toolbar-search { display: flex; min-width: 0; align-items: center; gap: 8px; }
.page-toolbar-search .input-group { min-width: 0; }
.page-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.page-toolbar-actions > .btn,
.page-toolbar-actions > .dropdown > .btn,
.page-toolbar-search > .btn { min-height: 38px; white-space: nowrap; }
.page-toolbar-actions .filter-count { margin-left: 5px; }
.card, .official-card, .filter-card, .report-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card { overflow: hidden; }
.card-header, .card-footer { padding: 15px 18px; background: var(--surface) !important; border-color: var(--border-light); }
.card-header { min-height: 56px; }
.card-body { padding: 20px; }
.section-title { margin: 0; color: var(--brand-navy); font-size: 1.05rem; font-weight: 650; }
.section-title i { color: var(--brand-gold-hover); }

/* Metrics and dashboard */
.stat-card { position: relative; display: flex; align-items: center; gap: 15px; min-height: 124px; padding: 20px; overflow: hidden; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast); }
.stat-card:hover { color: inherit; border-color: #c7d6e4; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--metric-color, var(--brand-blue)); }
.stat-total { --metric-color: var(--brand-blue); }
.stat-pending { --metric-color: var(--brand-gold-hover); }
.stat-completed { --metric-color: var(--success); }
.stat-month { --metric-color: #5965a8; }
.stat-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; color: var(--metric-color); border-radius: 12px; background: color-mix(in srgb, var(--metric-color) 11%, white); font-size: 1.45rem; }
.stat-value { display: block; margin: 3px 0 4px; color: var(--brand-navy); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .78rem; font-weight: 650; }
.stat-card small { display: block; color: var(--text-light); font-size: .68rem; white-space: nowrap; }

.dashboard-page { display: grid; width: 100%; min-width: 0; gap: clamp(11px, 1.3vh, 16px); }
.dashboard-page > *, .dashboard-kpi-grid > *, .dashboard-analytics-grid > *, .dashboard-activity-grid > * { min-width: 0; }
.dashboard-welcome { position: relative; display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 22px; overflow: hidden; color: #fff; background: var(--brand-navy); border: 1px solid #153b62; border-radius: 16px; box-shadow: 0 10px 26px rgba(7,29,54,.14); }
.dashboard-welcome::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--brand-gold); content: ""; }
.dashboard-welcome__orb { position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.dashboard-welcome__orb--one { right: 26%; bottom: -70px; width: 180px; height: 180px; }
.dashboard-welcome__orb--two { top: -66px; right: 8%; width: 150px; height: 150px; background: rgba(255,255,255,.025); }
.dashboard-welcome__copy, .dashboard-welcome__actions { position: relative; z-index: 1; }
.dashboard-welcome__copy { min-width: 0; }
.dashboard-welcome__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 3px; color: rgba(255,255,255,.65); font-size: .62rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.dashboard-welcome__eyebrow i { width: 7px; height: 7px; background: #41d293; border: 2px solid rgba(65,210,147,.2); border-radius: 50%; box-shadow: 0 0 0 3px rgba(65,210,147,.12); }
.dashboard-welcome h1 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 730; letter-spacing: -.025em; line-height: 1.14; }
.dashboard-welcome h1 span { color: #f0cb67; }
.dashboard-welcome p { margin: 5px 0 0; color: rgba(255,255,255,.64); font-size: .78rem; }
.dashboard-welcome__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.dashboard-date { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; }
.dashboard-date__icon { display: grid; width: 34px; height: 34px; place-items: center; color: #f0cb67; background: rgba(255,255,255,.08); border-radius: 8px; }
.dashboard-date > span:last-child { display: grid; }
.dashboard-date small { color: rgba(255,255,255,.5); font-size: .57rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-date strong { font-size: .73rem; white-space: nowrap; }
.dashboard-new-report { display: inline-flex; min-height: 54px; align-items: center; gap: 8px; padding-inline: 17px; color: var(--brand-navy-deep); background: var(--brand-gold); border-color: var(--brand-gold); box-shadow: 0 7px 18px rgba(0,0,0,.14); }
.dashboard-new-report:hover { color: var(--brand-navy-deep); background: #e3bb4e; border-color: #e3bb4e; }

.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1vw,14px); }
.kpi-card { --kpi-color: var(--brand-blue); position: relative; display: grid; min-height: 104px; gap: 6px; padding: 13px 15px 14px; overflow: hidden; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs); transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.kpi-card:hover { color: inherit; border-color: #bdd0e1; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kpi-card--pending { --kpi-color: #b77900; }
.kpi-card--completed { --kpi-color: var(--success); }
.kpi-card--month { --kpi-color: #4c5ba6; }
.kpi-card__top { display: flex; align-items: center; justify-content: space-between; }
.kpi-card__icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--kpi-color); background: color-mix(in srgb,var(--kpi-color) 10%,white); border-radius: 9px; }
.kpi-card__arrow { color: #a4adba; font-size: .78rem; }
.kpi-card__main { display: flex; min-width: 0; align-items: flex-end; gap: 10px; }
.kpi-card__main > strong { color: var(--brand-navy); font-size: clamp(1.55rem,2.1vw,2rem); font-weight: 760; letter-spacing: -.04em; line-height: .95; }
.kpi-card__main > span { display: grid; min-width: 0; padding-bottom: 1px; }
.kpi-card__main b { overflow: hidden; color: var(--text-secondary); font-size: .74rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card__main small { overflow: hidden; margin-top: 2px; color: var(--text-light); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card__accent { position: absolute; top: 14px; right: -20px; width: 52px; height: 52px; opacity: .06; background: var(--kpi-color); border-radius: 50%; }

.dashboard-analytics-grid, .dashboard-activity-grid { display: grid; align-items: stretch; gap: clamp(11px,1.15vw,15px); }
.dashboard-logbook-recent { display: flex; align-items: center; gap: 8px; padding: 8px 13px 11px; border-top: 1px solid var(--border-soft); }
.dashboard-logbook-recent > span { color: var(--text-light); font-size: .58rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-logbook-recent a { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 7px; padding: 5px 8px; color: var(--text-secondary); background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 8px; }
.dashboard-logbook-recent strong { overflow: hidden; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-logbook-recent small { color: var(--text-light); font-size: .55rem; white-space: nowrap; }
.dashboard-analytics-grid { grid-template-columns: minmax(0,2fr) minmax(300px,.9fr); }
.dashboard-activity-grid { grid-template-columns: minmax(0,2fr) minmax(285px,.9fr); }
.dashboard-panel { display: flex; min-width: 0; overflow: hidden; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-xs); }
.dashboard-panel--status, .dashboard-panel--offices { background: linear-gradient(180deg,#f9fbfe 0%,#fff 44%); }
.dashboard-panel__header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.dashboard-panel__title { display: flex; min-width: 0; align-items: center; gap: 9px; }
.dashboard-panel__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 9px; }
.dashboard-panel__title > div { min-width: 0; }
.dashboard-panel__title h2 { margin: 0; color: var(--brand-navy); font-size: .88rem; font-weight: 740; line-height: 1.2; }
.dashboard-panel__title p { margin: 2px 0 0; overflow: hidden; color: var(--text-muted); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-panel__meta { display: flex; flex: 0 0 auto; align-items: stretch; gap: 6px; }
.dashboard-panel__meta > span { display: grid; min-width: 76px; padding: 5px 8px; background: var(--surface-soft); border: 1px solid var(--border-soft); border-radius: 8px; }
.dashboard-panel__meta small { color: var(--text-light); font-size: .52rem; font-weight: 650; text-transform: uppercase; }
.dashboard-panel__meta strong { color: var(--brand-navy); font-size: .68rem; }
.dashboard-chart { position: relative; width: 100%; height: clamp(180px,22vh,230px); min-height: 180px; padding: 8px 13px 10px; }
.dashboard-chart canvas, .status-chart-wrapper canvas { width: 100% !important; height: 100% !important; }
.completion-pill, .panel-rank-label { flex: 0 0 auto; padding: 5px 8px; color: var(--success); background: var(--success-soft); border-radius: 999px; font-size: .62rem; font-weight: 740; white-space: nowrap; }
.panel-rank-label { color: var(--brand-blue); background: var(--brand-blue-soft); }
.status-overview { display: grid; min-height: 180px; flex: 1; grid-template-columns: minmax(120px,.95fr) minmax(130px,1fr); align-items: center; gap: 8px; padding: 8px 13px 11px; }
.status-chart-wrapper { position: relative; width: 100%; height: clamp(145px,18vh,180px); min-height: 145px; }
.status-chart-total { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; pointer-events: none; transform: translate(-50%,-50%); }
.status-chart-total strong { color: var(--brand-navy); font-size: clamp(1.2rem,2vw,1.65rem); line-height: 1; }
.status-chart-total span { margin-top: 3px; color: var(--text-muted); font-size: .57rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status-breakdown { display: grid; gap: 8px; margin: 0; }
.status-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--border-soft); border-radius: 9px; }
.status-breakdown dt { display: flex; min-width: 0; align-items: center; gap: 7px; }
.status-breakdown dt > span:last-child { display: grid; min-width: 0; color: var(--text-secondary); font-size: .68rem; font-weight: 700; }
.status-breakdown dt small { overflow: hidden; margin-top: 1px; color: var(--text-light); font-size: .54rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.status-breakdown__icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; color: #a86700; background: var(--brand-gold-soft); border-radius: 7px; }
.status-breakdown__completed .status-breakdown__icon { color: var(--success); background: var(--success-soft); }
.status-breakdown dd { margin: 0; color: var(--brand-navy); font-size: .9rem; font-weight: 760; }
.dashboard-empty-state { display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 18px; color: var(--text-muted); text-align: center; }
.dashboard-empty-state i { margin-bottom: 3px; color: var(--text-light); font-size: 1.4rem; }
.dashboard-empty-state strong { color: #465368; font-size: .8rem; }
.dashboard-empty-state span { max-width: 330px; font-size: .68rem; }
.dashboard-empty-state.compact { min-height: 150px; }
.dashboard-empty-state a { margin-top: 4px; font-size: .7rem; font-weight: 700; }
.dashboard-chart-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 20px; color: var(--text-muted); text-align: center; }
.dashboard-chart-fallback i { color: var(--text-light); font-size: 1.5rem; }
.dashboard-chart-fallback span { max-width: 300px; font-size: .72rem; }
.status-chart-wrapper.chart-unavailable .status-chart-total { display: none; }
.panel-link { display: inline-flex; min-height: 32px; flex: 0 0 auto; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; font-size: .67rem; font-weight: 700; }
.panel-link:hover { background: var(--brand-blue-soft); }
.dashboard-table-wrap { width: 100%; min-width: 0; }
.dashboard-recent-table { width: 100%; table-layout: fixed; }
.dashboard-recent-table th:nth-child(1) { width: 28%; }
.dashboard-recent-table th:nth-child(2) { width: 20%; }
.dashboard-recent-table th:nth-child(3) { width: 16%; }
.dashboard-recent-table th:nth-child(4) { width: 20%; }
.dashboard-recent-table th:nth-child(5) { width: 82px; }
.dashboard-recent-table > :not(caption) > * > * { padding: .43rem .68rem; }
.dashboard-recent-table thead th { color: #657287; background: #f7f9fc; border-bottom-color: var(--border-soft); font-size: .57rem; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-recent-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.dashboard-recent-table tbody tr:last-child { border-bottom: 0; }
.dashboard-recent-table tbody td { overflow: hidden; border: 0; font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }
.office-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.office-cell__mark { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 7px; font-size: .55rem; font-weight: 800; }
.office-cell > span:last-child { display: grid; min-width: 0; }
.office-cell strong { overflow: hidden; color: var(--text-secondary); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.office-cell small { color: var(--text-light); font-size: .54rem; }
.report-type-chip { display: inline-flex; max-width: 100%; padding: 3px 6px; overflow: hidden; color: #465368; background: #f2f4f7; border-radius: 6px; font-size: .61rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.report-date { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .65rem; }
.dashboard-row-action { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; color: var(--brand-blue); background: var(--brand-blue-soft); border: 1px solid #d2e2ef; border-radius: 7px; font-size: .62rem; font-weight: 700; }
.dashboard-row-action:hover { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.top-offices-list { display: grid; gap: 8px; margin: 0; padding: 11px 13px 13px; list-style: none; }
.top-offices-list li { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 2px 0; }
.top-office-rank { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border: 1px solid #dae7f2; border-radius: 8px; font-size: .62rem; font-weight: 760; }
.top-offices-list li.is-leading .top-office-rank { color: #6b4c00; background: var(--brand-gold-soft); border-color: #edda9c; }
.top-office-detail { display: grid; min-width: 0; flex: 1; gap: 5px; }
.top-office-detail > span:first-child { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.top-office-detail strong { min-width: 0; overflow: hidden; color: #344054; font-size: .68rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.top-office-detail small { flex: 0 0 auto; color: var(--text-light); font-size: .55rem; white-space: nowrap; }
.top-office-track { height: 4px; overflow: hidden; background: #edf2f7; border-radius: 999px; }
.top-office-track > span { display: block; height: 100%; background: var(--brand-blue); border-radius: inherit; }
.top-offices-list li.is-leading .top-office-track > span { background: var(--brand-gold-hover); }

/* Buttons */
.btn { min-height: 42px; padding: .55rem .9rem; border-radius: 8px; font-size: .84rem; font-weight: 650; transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .42rem .62rem; border-radius: 7px; }
.btn-primary { --bs-btn-bg: var(--brand-blue); --bs-btn-border-color: var(--brand-blue); --bs-btn-hover-bg: var(--brand-blue-hover); --bs-btn-hover-border-color: var(--brand-blue-hover); --bs-btn-active-bg: var(--brand-navy); --bs-btn-active-border-color: var(--brand-navy); }
.btn-primary:hover { box-shadow: 0 4px 10px rgba(18,79,131,.16); }
.btn-outline-primary { --bs-btn-color: var(--brand-blue); --bs-btn-border-color: #9fbcd3; --bs-btn-hover-bg: var(--brand-blue-soft); --bs-btn-hover-border-color: #7fa5c3; --bs-btn-hover-color: var(--brand-blue-hover); }
.btn-outline-secondary { --bs-btn-color: #465368; --bs-btn-border-color: #c9d1db; --bs-btn-hover-bg: #f1f4f7; --bs-btn-hover-border-color: #b9c3cf; --bs-btn-hover-color: var(--text-main); }
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: #e4a9ad; --bs-btn-hover-bg: var(--danger-soft); --bs-btn-hover-border-color: #d97e84; --bs-btn-hover-color: #a52f36; }
.btn-gold { color: var(--brand-navy); background: var(--brand-gold); border-color: var(--brand-gold); }
.btn-gold:hover { color: #071b31; background: var(--brand-gold-hover); border-color: var(--brand-gold-hover); }
.btn-gold-outline { color: #755600; background: var(--brand-gold-soft); border-color: #e3c36c; }
.btn-gold-outline:hover { color: var(--brand-navy); background: #f4d77f; border-color: var(--brand-gold-hover); }
.btn:disabled, .btn.disabled { pointer-events: none; opacity: .58; transform: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; opacity: .82; }
.action-buttons { display: inline-flex; gap: 5px; white-space: nowrap; }
.action-buttons .btn { display: inline-grid; min-width: 36px; place-items: center; }

/* Forms and Select2 */
.form-label { margin-bottom: 6px; color: #344054; font-size: .82rem; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid > * { min-width: 0; }
.required::after { content: " *"; color: var(--danger); }
.form-control, .form-select, .input-group-text { border-color: var(--border); border-radius: 8px; }
.form-control, .form-select { min-height: 44px; color: var(--text-main); background-color: var(--surface); font-size: .88rem; box-shadow: var(--shadow-xs); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
textarea.form-control { min-height: 126px; resize: vertical; }
.form-control::placeholder { color: var(--text-light); }
.form-control:focus, .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(18,79,131,.14); }
.form-control:disabled, .form-select:disabled { color: #697586; background: #f0f3f6; border-style: dashed; opacity: 1; }
.input-group-text { min-width: 44px; justify-content: center; color: var(--text-muted); background: var(--surface-alt); }
.input-group > :first-child { border-radius: 8px 0 0 8px; }
.input-group > :last-child { border-radius: 0 8px 8px 0; }
.form-text { color: var(--text-muted); font-size: .76rem; }
.status-help.is-required { color: var(--danger); font-weight: 650; }
.form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 13px 0 8px; border-bottom: 1px solid var(--border); }
.form-section-heading span { color: var(--brand-navy); font-weight: 650; }
.form-section-heading span i { margin-right: 7px; color: var(--brand-gold-hover); }
.form-section-heading small { color: var(--text-muted); font-size: .75rem; }
.report-editor { overflow: hidden; background: transparent; border: 0; border-radius: var(--radius-lg); box-shadow: none; }
.report-editor__body { min-width: 0; }
.report-editor__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.report-form-section { position: relative; min-width: 0; padding: 15px 16px 16px; overflow: visible; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs); }
.report-form-section::before { position: absolute; top: -1px; right: 18px; left: 18px; height: 2px; background: linear-gradient(90deg,var(--brand-gold),rgba(212,167,44,0)); content: ""; }
.report-form-section--assignment::before, .report-form-section--resolution::before { background: linear-gradient(90deg,var(--brand-blue),rgba(18,85,140,0)); }
.report-form-section__header { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 9px; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.report-form-section__header > div:last-child { min-width: 0; }
.report-form-section__header h2 { margin: 0; color: var(--brand-navy); font-size: .91rem; font-weight: 730; letter-spacing: -.01em; line-height: 1.15; }
.report-form-section__header small { display: block; margin-bottom: 1px; color: var(--text-muted); font-size: .59rem; font-weight: 700; letter-spacing: .055em; line-height: 1.2; text-transform: uppercase; }
.report-form-section__step { color: #9aa5b3; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.report-form-section__icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 9px; font-size: .9rem; }
.report-form-section--request .report-form-section__icon, .report-form-section--narrative:not(.report-form-section--resolution) .report-form-section__icon { color: #987000; background: var(--brand-gold-soft); }
.report-form-fields { display: grid; align-items: start; gap: 10px; }
.report-form-fields--request { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(145px,.7fr); }
.report-form-fields--assignment { grid-template-columns: minmax(115px,.75fr) minmax(145px,.85fr) minmax(0,1.2fr); }
.report-form-field { min-width: 0; }
.report-editor .form-label { margin-bottom: 4px; color: #41506a; font-size: .72rem; font-weight: 700; }
.report-editor .form-control, .report-editor .form-select { min-height: 40px; font-size: .8rem; }
.report-editor .select2-container--bootstrap-5 .select2-selection { min-height: 40px; padding-top: .35rem; padding-bottom: .35rem; font-size: .8rem; }
.report-editor .status-help { margin-top: 3px; line-height: 1.28; }
.report-form-section--narrative textarea.form-control { height: clamp(92px,13vh,122px); min-height: 88px; resize: vertical; }
.report-editor__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); }
.report-editor__footer-note { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--text-muted); font-size: .68rem; }
.report-editor__footer-note i { color: var(--success); }
.report-editor__footer .btn { min-height: 40px; }
.invalid-feedback-server { display: block; margin-top: 4px; color: var(--danger); font-size: .78rem; }
.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated .form-select:invalid, .form-select.is-invalid { border-color: var(--danger); }
.select2-container { max-width: 100%; }
.select2-container--bootstrap-5 .select2-selection { min-height: 44px; padding-top: .47rem; padding-bottom: .47rem; border-color: var(--border); border-radius: 8px; box-shadow: var(--shadow-xs); }
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(18,79,131,.14); }
.select2-container--bootstrap-5 .select2-dropdown { z-index: 1060; overflow: hidden; border-color: var(--border); border-radius: 8px; box-shadow: var(--shadow-md); }
.select2-container--bootstrap-5 .select2-search__field { border-color: var(--border); border-radius: 6px; }
.select2-results__option { padding: 8px 10px; font-size: .84rem; }

/* Tables, filters, pagination */
.filter-card .card-body { padding: 18px; }
.filter-heading { margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--border-light); }
.filter-heading h3 { margin: 0; color: var(--brand-navy); font-size: .95rem; font-weight: 650; }
.filter-heading h3 i { margin-right: 7px; color: var(--brand-gold-hover); }
.filter-heading p { margin: 3px 0 0; color: var(--text-muted); font-size: .76rem; }
.table-responsive { background: var(--surface); }
.table { margin: 0; color: var(--text-main); vertical-align: middle; }
.table > :not(caption) > * > * { padding: .82rem .9rem; border-bottom-color: var(--border-light); }
.table thead th { position: sticky; top: 0; z-index: 2; color: #405069; background: #f3f6f9; border-bottom: 1px solid var(--border); font-size: .72rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.table tbody td { color: #344054; font-size: .82rem; }
.table-hover > tbody > tr:hover > * { background: #f6f9fc; }
.table-bordered { border-color: var(--border); }
.table-preview { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reports-toolbar { display: grid; grid-template-columns: minmax(260px, 560px) auto 1fr; align-items: center; gap: 10px; }
.reports-search { display: flex; min-width: 0; gap: 8px; }
.reports-search .input-group { min-width: 0; }
.reports-filter-button { position: relative; white-space: nowrap; }
.filter-count { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; place-items: center; color: var(--brand-navy); background: var(--brand-gold-soft); border: 1px solid #e6c968; border-radius: 999px; font-size: .68rem; font-weight: 800; line-height: 1; }
.reports-result-count { justify-self: end; white-space: nowrap; }
.report-browser { margin-bottom: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-xs); }
.report-browser__overview { position: relative; display: flex; min-height: 102px; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 20px; overflow: hidden; color: #fff; background: linear-gradient(112deg,var(--brand-navy-deep),#123e69); }
.report-browser__overview::after { position: absolute; right: -28px; bottom: -76px; width: 210px; height: 210px; border: 34px solid rgba(255,255,255,.045); border-radius: 50%; content: ""; }
.report-browser__identity, .report-browser__totals { position: relative; z-index: 1; }
.report-browser__identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.report-browser__identity > div { min-width: 0; }
.report-browser__icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: #f1cc65; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-size: 1.1rem; }
.report-browser__eyebrow, .report-browser-results__eyebrow { display: block; color: #ebc65d; font-size: .6rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.report-browser__identity h2 { margin: 1px 0 2px; color: #fff; font-size: 1.15rem; font-weight: 720; }
.report-browser__identity p { margin: 0; color: rgba(255,255,255,.6); font-size: .74rem; }
.report-browser__totals { display: grid; min-width: 116px; padding: 9px 13px; text-align: right; border-left: 1px solid rgba(255,255,255,.13); }
.report-browser__totals strong { color: #fff; font-size: 1.6rem; font-weight: 760; line-height: 1; }
.report-browser__totals span { margin-top: 3px; color: rgba(255,255,255,.55); font-size: .66rem; }
.report-browser__command { display: grid; grid-template-columns: minmax(320px,1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; }
.report-browser__search { width: min(100%,680px); }
.report-browser__tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.report-browser .reports-result-count { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .72rem; }
.report-browser .reports-result-count i { color: var(--brand-blue); }
.report-browser__criteria { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; background: #f8fafc; border-top: 1px solid var(--border-light); }
.report-browser__criteria-label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.report-browser__criteria-label i { color: var(--brand-gold-hover); }
.report-browser__chips { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.report-filter-chip { display: inline-flex; max-width: min(100%,280px); min-height: 28px; align-items: center; gap: 6px; padding: 4px 7px 4px 9px; color: var(--brand-blue); background: var(--brand-blue-soft); border: 1px solid #d0e1ef; border-radius: 999px; font-size: .67rem; font-weight: 650; }
.report-filter-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-filter-chip:hover { color: var(--brand-blue-hover); background: #deedf8; }
.report-browser__clear { color: var(--danger); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.report-browser-results { overflow: hidden; }
.report-browser-results__header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; border-bottom: 1px solid var(--border-light); }
.report-browser-results__header h2 { margin: 1px 0 0; color: var(--brand-navy); font-size: .96rem; font-weight: 720; }
.report-browser-results__eyebrow { color: var(--brand-gold-hover); }
.report-browser-results__range { padding: 5px 9px; color: var(--text-muted); background: var(--surface-muted); border-radius: 999px; font-size: .68rem; font-weight: 650; white-space: nowrap; }
.print-reports-toolbar { grid-template-columns: minmax(260px, 560px) auto auto; justify-content: start; }
.print-reports-button { white-space: nowrap; }
.reports-list-card .table-responsive { position: relative; }
.table-sort-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-blue); }
.table-sort-link:hover { color: var(--brand-blue-hover); }
.reports-table { width: 100%; min-width: 0; table-layout: fixed; }
.reports-table th:nth-child(1) { width: 62px; }
.reports-table th:nth-child(2) { width: 20%; }
.reports-table th:nth-child(3) { width: 17%; }
.reports-table th:nth-child(4) { width: 105px; }
.reports-table th:nth-child(5) { width: 125px; }
.reports-table th:nth-child(6) { width: 16%; }
.reports-table td { overflow-wrap: anywhere; }
.reports-table th.actions-column,
.reports-table td.actions-column { position: sticky; right: 0; z-index: 3; width: 230px; min-width: 230px; background: var(--surface); box-shadow: -8px 0 12px -12px rgba(15,23,42,.35); }
.reports-table thead th.actions-column { z-index: 5; background: #f3f6f9; }
.reports-table tbody tr:hover td.actions-column { background: #f6f9fc; }
.report-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.report-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.mobile-reports { padding: 12px; background: var(--page-bg); }
.mobile-report-card { margin-bottom: 12px; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.mobile-report-card:last-child { margin-bottom: 0; }
.mobile-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--border-light); }
.mobile-report-head > strong { color: var(--brand-navy); font-size: .95rem; }
.mobile-report-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; margin: 14px 0; }
.mobile-report-details div { min-width: 0; }
.mobile-report-details .full { grid-column: 1 / -1; }
.mobile-report-details dt { margin-bottom: 2px; color: var(--text-muted); font-size: .68rem; font-weight: 650; text-transform: uppercase; }
.mobile-report-details dd { margin: 0; overflow-wrap: anywhere; color: var(--text-main); font-size: .82rem; }
.mobile-report-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(70px,1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.mobile-report-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding-right: 4px; padding-left: 4px; }
.monthly-mobile-list { display: none; gap: 10px; }
.monthly-workspace { display: grid; gap: 12px; margin-bottom: 15px; }
.monthly-workspace__hero { position: relative; display: flex; min-height: 108px; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; overflow: hidden; color: #fff; background: linear-gradient(112deg,var(--brand-navy-deep),#154873); border: 1px solid #153d64; border-radius: 15px; box-shadow: 0 9px 23px rgba(7,29,54,.11); }
.monthly-workspace__hero::after { position: absolute; right: 28%; bottom: -95px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.monthly-workspace__period, .monthly-workspace__completion { position: relative; z-index: 1; }
.monthly-workspace__period { display: flex; min-width: 0; align-items: center; gap: 13px; }
.monthly-workspace__period > div { min-width: 0; }
.monthly-workspace__calendar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; color: #f0ca62; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-size: 1.1rem; }
.monthly-workspace__eyebrow { display: block; color: rgba(255,255,255,.56); font-size: .59rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.monthly-workspace__period h2 { margin: 1px 0 2px; color: #fff; font-size: 1.22rem; font-weight: 730; }
.monthly-workspace__period p { margin: 0; color: rgba(255,255,255,.6); font-size: .73rem; }
.monthly-workspace__completion { width: min(100%,250px); padding: 11px 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; }
.monthly-workspace__completion-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.monthly-workspace__completion-copy span { color: rgba(255,255,255,.6); font-size: .65rem; font-weight: 650; }
.monthly-workspace__completion-copy strong { color: #f1cd67; font-size: 1rem; }
.monthly-workspace__progress { height: 5px; margin: 6px 0; overflow: hidden; background: rgba(255,255,255,.13); border-radius: 99px; }
.monthly-workspace__progress span { display: block; height: 100%; background: var(--brand-gold); border-radius: inherit; }
.monthly-workspace__completion small { color: rgba(255,255,255,.48); font-size: .61rem; }
.monthly-workspace__command { display: grid; grid-template-columns: minmax(300px,1fr) auto; align-items: center; gap: 14px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow-xs); }
.monthly-workspace__search { width: min(100%,680px); }
.monthly-workspace__actions { display: flex; align-items: center; gap: 8px; }
.monthly-print-form { display: inline-flex; margin: 0; }
.monthly-paper-control { display: flex; align-items: center; gap: 7px; }
.monthly-paper-control label { color: var(--text-muted); font-size: .67rem; font-weight: 700; white-space: nowrap; }
.monthly-paper-control .form-select { width: 168px; min-height: 40px; font-size: .75rem; }
.monthly-workspace__scope { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px 13px; background: var(--brand-blue-soft); border: 1px solid #d2e3f0; border-radius: 10px; }
.monthly-workspace__scope-label { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-blue); font-size: .65rem; font-weight: 750; white-space: nowrap; }
.monthly-workspace__scope-items { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.monthly-workspace__scope-items > span { padding: 3px 7px; color: var(--text-secondary); background: rgba(255,255,255,.72); border-radius: 999px; font-size: .63rem; }
.monthly-workspace__scope > a { color: var(--danger); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.monthly-workspace__summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.monthly-summary-card.stat-card { min-height: 94px; padding: 14px 16px; }
.monthly-summary-card .stat-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.1rem; }
.monthly-summary-card .stat-value { margin: 2px 0; font-size: 1.65rem; }
.monthly-preview-intro { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; }
.monthly-preview-intro > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.monthly-preview-intro > div > span:last-child { display: grid; min-width: 0; }
.monthly-preview-intro__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 9px; }
.monthly-preview-intro strong { color: var(--brand-navy); font-size: .8rem; }
.monthly-preview-intro small { color: var(--text-muted); font-size: .65rem; }
.monthly-preview-intro__count { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .68rem; white-space: nowrap; }
.monthly-preview-card { border-radius: 0 0 14px 14px; }
.monthly-mobile-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.monthly-mobile-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--brand-navy); background: var(--surface-soft); border-bottom: 1px solid var(--border-soft); }
.monthly-mobile-card > header strong { min-width: 0; overflow-wrap: anywhere; font-size: .82rem; }
.monthly-mobile-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; margin: 0; padding: 13px 14px; }
.monthly-mobile-card dt { color: var(--text-muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.monthly-mobile-card dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--text-main); font-size: .8rem; }
.monthly-report-table { width: 100%; max-width: 100%; border-collapse: collapse; table-layout: fixed; }
.monthly-report-table .monthly-col-id { width: 4%; }
.monthly-report-table .monthly-col-office { width: 12%; }
.monthly-report-table .monthly-col-type { width: 10%; }
.monthly-report-table .monthly-col-reason { width: 20%; }
.monthly-report-table .monthly-col-output { width: 21%; }
.monthly-report-table .monthly-col-status { width: 7%; }
.monthly-report-table .monthly-col-reported { width: 8%; }
.monthly-report-table .monthly-col-fixed { width: 8%; }
.monthly-report-table .monthly-col-technician { width: 10%; }
.monthly-report-table th,
.monthly-report-table td { overflow: visible; overflow-wrap: break-word; word-break: normal; white-space: normal; writing-mode: horizontal-tb; text-orientation: mixed; vertical-align: top; }
.monthly-report-table th { line-height: 1.18; white-space: normal; }
.monthly-text-content { max-width: 100%; overflow: visible; overflow-wrap: break-word; word-break: normal; white-space: normal; writing-mode: horizontal-tb; }
.monthly-print-only { display: none; }
.monthly-print-title { margin: 3mm 0; color: #000; font-family: Arial, Helvetica, sans-serif; text-align: center; }
.monthly-print-heading { margin: 0; font-size: 15pt; font-weight: 700; line-height: 1.15; }
.monthly-print-title p { margin: 1mm 0 0; font-size: 10pt; font-weight: 700; }
.monthly-print-summary { align-items: center; justify-content: center; gap: 8mm; margin: 0 0 2mm; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 7.2pt; line-height: 1.2; }
.monthly-signature-section { margin-top: 10mm; }
.settings-page { min-width: 0; }
.settings-page > *, .settings-section-stack, .settings-section-pane, .settings-section-card, .settings-section-card .card-body { min-width: 0; }
.settings-workspace { display: grid; grid-template-columns: 268px minmax(0,1fr); align-items: start; gap: 16px; }
.settings-rail { position: sticky; top: calc(var(--topbar-height) + 16px); min-width: 0; padding: 15px; overflow: hidden; color: #fff; background: linear-gradient(165deg,var(--brand-navy-deep),#0d365d); border: 1px solid #163e63; border-radius: 15px; box-shadow: 0 8px 22px rgba(7,29,54,.1); }
.settings-rail-heading { display: flex; gap: 10px; padding: 3px 3px 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.settings-rail-heading > div { min-width: 0; }
.settings-rail-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #f0ca61; background: rgba(255,255,255,.08); border-radius: 10px; }
.settings-rail-kicker, .settings-management-kicker, .settings-section-kicker { display: block; color: #e7bd4d; font-size: .57rem; font-weight: 780; letter-spacing: .075em; text-transform: uppercase; }
.settings-rail-heading h2 { margin: 1px 0 3px; color: #fff; font-size: .92rem; font-weight: 720; }
.settings-rail-heading p { margin: 0; color: rgba(255,255,255,.48); font-size: .63rem; line-height: 1.45; }
.settings-tabs, .settings-rail-nav { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 13px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.settings-tab, .settings-rail-link { display: flex; min-width: 0; min-height: 54px; align-items: center; gap: 9px; padding: 8px 9px; color: rgba(255,255,255,.64); border: 1px solid transparent; border-radius: 10px; transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.settings-tab > i:first-child { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: #aac7df; background: rgba(255,255,255,.06); border-radius: 8px; }
.settings-tab > span { display: grid; min-width: 0; flex: 1; }
.settings-tab strong { overflow: hidden; color: inherit; font-size: .77rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.settings-tab small { color: rgba(255,255,255,.35); font-size: .61rem; }
.settings-rail-chevron { width: auto !important; height: auto !important; flex: 0 0 auto !important; color: rgba(255,255,255,.25) !important; background: transparent !important; font-size: .65rem !important; }
.settings-tab:hover { color: #fff; background: rgba(255,255,255,.065); transform: translateX(2px); }
.settings-tab.active { color: #fff; background: rgba(27,97,153,.34); border-color: rgba(132,181,220,.17); box-shadow: inset 3px 0 0 var(--brand-gold); }
.settings-tab.active > i:first-child { color: var(--brand-navy-deep); background: #efc75b; }
.settings-rail-note { display: flex; gap: 8px; margin-top: 14px; padding: 10px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
.settings-rail-note > i { color: #61d5a5; }
.settings-rail-note p { display: grid; margin: 0; line-height: 1.35; }
.settings-rail-note strong { color: rgba(255,255,255,.76); font-size: .66rem; }
.settings-rail-note span { font-size: .59rem; }
.settings-management { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-xs); }
.settings-management-header { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: linear-gradient(105deg,#fff 62%,#f2f7fb); border-bottom: 1px solid var(--border-light); }
.settings-management-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.settings-management-title > div { min-width: 0; }
.settings-management-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 11px; }
.settings-management-kicker, .settings-section-kicker { color: var(--brand-gold-hover); }
.settings-management-title h2 { margin: 1px 0 2px; color: var(--brand-navy); font-size: 1.08rem; font-weight: 730; }
.settings-management-title p { margin: 0; color: var(--text-muted); font-size: .7rem; }
.settings-count { flex: 0 0 auto; padding: 5px 9px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 999px; font-size: .68rem; font-weight: 720; }
.settings-list-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: center; gap: 16px; }
.settings-management-toolbar { padding: 12px 16px; background: var(--surface-soft); border-bottom: 1px solid var(--border-light); }
.settings-search { width: min(100%,420px); }
.settings-list-toolbar p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-size: .69rem; }
.settings-directory-stack { padding: 14px; }
.settings-section-card { max-width: none; margin: 0; border-radius: 11px; box-shadow: none; }
.settings-section-header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; background: var(--surface) !important; }
.settings-section-header p { margin: 2px 0 0; color: var(--text-muted); font-size: .68rem; }
.settings-section-kicker { margin-bottom: 1px; }
.settings-add-panel { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(320px,1.5fr); align-items: center; gap: 18px; margin-bottom: 13px; padding: 12px 13px; background: var(--brand-blue-soft); border: 1px solid #d4e4f0; border-radius: 9px; }
.settings-add-copy { display: grid; line-height: 1.35; }
.settings-add-copy > span { color: var(--brand-blue); font-size: .57rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.settings-add-copy strong { color: var(--brand-navy); font-size: .78rem; }
.settings-add-copy small { color: var(--text-muted); font-size: .62rem; }
.settings-add-form { width: 100%; max-width: none; margin: 0; }
.settings-table { max-height: min(46vh,470px); overflow: auto; border: 1px solid var(--border); border-radius: 8px; }

/* User management */
.user-directory { display: grid; gap: 14px; }
.user-directory__toolbar { padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); }
.user-directory__overview { position: relative; display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 28px; padding: 19px 21px; overflow: hidden; color: #fff; background: linear-gradient(112deg,var(--brand-navy-deep),#154873); border: 1px solid #153d64; border-radius: 15px; box-shadow: 0 9px 23px rgba(7,29,54,.11); }
.user-directory__overview::after { position: absolute; right: 33%; bottom: -104px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.user-directory__identity, .user-directory__summary { position: relative; z-index: 1; }
.user-directory__identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.user-directory__identity > div { min-width: 0; }
.user-directory__icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; color: #f0ca62; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-size: 1.1rem; }
.user-directory__eyebrow { display: block; color: #ebc65d; font-size: .59rem; font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.user-directory__identity h2 { margin: 1px 0 2px; color: #fff; font-size: 1.2rem; font-weight: 730; }
.user-directory__identity p { margin: 0; color: rgba(255,255,255,.58); font-size: .72rem; }
.user-directory__summary { display: grid; min-width: min(100%,400px); grid-template-columns: repeat(4,minmax(76px,1fr)); overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; }
.user-directory__summary > span { display: grid; gap: 2px; padding: 10px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.user-directory__summary > span:last-child { border-right: 0; }
.user-directory__summary strong { color: #fff; font-size: 1.18rem; line-height: 1; }
.user-directory__summary small { color: rgba(255,255,255,.5); font-size: .59rem; font-weight: 650; }
.user-list-card { min-width: 0; }
.user-list-card__header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; border-bottom: 1px solid var(--border-light); }
.user-list-card__kicker, .user-form-card__kicker { display: block; color: var(--brand-gold-hover); font-size: .59rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.user-list-card__header h2 { margin: 1px 0 0; color: var(--brand-navy); font-size: .98rem; font-weight: 720; }
.user-list-card__count { flex: 0 0 auto; padding: 5px 9px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 999px; font-size: .68rem; font-weight: 720; }
.user-table { min-width: 900px; }
.user-table > :not(caption) > * > * { padding-top: .72rem; padding-bottom: .72rem; }
.user-table th:last-child { min-width: 280px; }
.user-identity-cell { display: flex; min-width: 0; align-items: center; gap: 10px; }
.user-identity-cell > span:last-child { display: grid; min-width: 0; }
.user-identity-cell strong { overflow: hidden; color: var(--text-main); font-size: .82rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.user-identity-cell small { color: var(--text-muted); font-size: .64rem; }
.user-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border: 1px solid #d2e3f0; border-radius: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .025em; }
.user-username { color: var(--text-secondary); font-size: .79rem; font-weight: 600; }
.role-badge, .account-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; font-size: .67rem; }
.role-badge--admin { color: var(--brand-blue); background: var(--brand-blue-soft); border-color: #c9dfee; }
.role-badge--staff { color: #765700; background: var(--brand-gold-soft); border-color: #ead793; }
.account-badge--active { color: var(--success); background: var(--success-soft); border-color: #bce5d3; }
.account-badge--disabled { color: #7a3440; background: var(--danger-soft); border-color: #f0c1c5; }
.user-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.user-actions .btn { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; }
.user-protected-label { display: inline-flex; min-height: 38px; align-items: center; gap: 5px; padding: 0 8px; color: var(--text-muted); background: var(--surface-muted); border-radius: 7px; font-size: .65rem; font-weight: 650; }
.mobile-user-list { display: grid; gap: 10px; padding: 12px; background: var(--page-bg); }
.mobile-user-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.mobile-user-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: var(--surface-soft); border-bottom: 1px solid var(--border-light); }
.mobile-user-card > header .user-identity-cell { min-width: 0; }
.mobile-user-card > header .account-badge { flex: 0 0 auto; }
.mobile-user-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; margin: 0; padding: 13px 14px; }
.mobile-user-card dt { color: var(--text-muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.mobile-user-card dd { margin: 3px 0 0; color: var(--text-main); font-size: .79rem; }
.mobile-user-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 12px 14px; background: var(--surface-soft); border-top: 1px solid var(--border-light); }
.mobile-user-actions .btn { display: inline-flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; padding-right: 6px; padding-left: 6px; }
.user-protected-note { display: inline-flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px; min-height: 38px; color: var(--text-muted); background: var(--surface-muted); border-radius: 7px; font-size: .68rem; font-weight: 650; }
.user-empty-state { min-height: 300px; }
.user-form-card { width: min(100%,1040px); margin: 0 auto; }
.user-form-card__header { display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: linear-gradient(105deg,#fff 62%,#f2f7fb); border-bottom: 1px solid var(--border-light); }
.user-form-card__icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border: 1px solid #d3e3f1; border-radius: 11px; font-size: 1rem; }
.user-form-card__header > div { min-width: 0; }
.user-form-card__header h2 { margin: 1px 0 2px; color: var(--brand-navy); font-size: 1.08rem; font-weight: 730; }
.user-form-card__header p { margin: 0; color: var(--text-muted); font-size: .72rem; }
.user-form-card__body { display: grid; gap: 14px; padding: 18px; background: var(--surface-soft); }
.user-form-section { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-xs); }
.user-form-section__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--border-light); }
.user-form-section__heading > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-gold-hover); background: var(--brand-gold-soft); border-radius: 9px; }
.user-form-section__heading h3 { margin: 0; color: var(--brand-navy); font-size: .88rem; font-weight: 700; }
.user-form-section__heading p { margin: 2px 0 0; color: var(--text-muted); font-size: .67rem; }
.user-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.user-form-grid > div { min-width: 0; }
.user-account-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.user-account-meta > span { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: 9px; padding: 11px 13px; background: var(--brand-blue-soft); border: 1px solid #d4e4f0; border-radius: 9px; }
.user-account-meta i { grid-row: span 2; align-self: center; color: var(--brand-blue); }
.user-account-meta small { color: var(--text-muted); font-size: .62rem; }
.user-account-meta strong { overflow-wrap: anywhere; color: var(--text-main); font-size: .73rem; }
.user-form-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 18px; background: var(--surface); border-top: 1px solid var(--border-light); }
.user-form-card__footer > span { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--text-muted); font-size: .68rem; }
.user-form-card__footer > span i { color: var(--success); }
.user-modal-summary { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--brand-blue-soft); border: 1px solid #d4e4f0; border-radius: 9px; }
.user-modal-summary__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-blue); background: #fff; border-radius: 8px; }
.user-modal-summary > div { display: grid; min-width: 0; }
.user-modal-summary small { color: var(--text-muted); font-size: .63rem; }
.user-modal-summary strong { overflow: hidden; color: var(--brand-navy); font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 991.98px) {
    .user-directory__overview { align-items: flex-start; flex-direction: column; gap: 14px; }
    .user-directory__summary { width: 100%; min-width: 0; }
}

@media (max-width: 767.98px) {
    .page-list-toolbar { grid-template-columns: 1fr; align-items: stretch; }
    .page-toolbar-search { width: 100%; }
    .page-toolbar-actions { justify-content: flex-start; }
    .user-form-grid, .user-account-meta { grid-template-columns: 1fr; }
    .user-form-card__footer { display: grid; grid-template-columns: 1fr; }
    .user-form-card__footer > span { justify-content: center; margin: 0 0 2px; text-align: center; }
    .user-form-card__footer .btn { width: 100%; }
}

@media (max-width: 575.98px) {
    .page-toolbar-search { display: grid; grid-template-columns: 1fr; }
    .page-toolbar-search > .btn { width: 100%; }
    .page-toolbar-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
    .page-toolbar-actions > .btn,
    .page-toolbar-actions > .dropdown,
    .page-toolbar-actions > .dropdown > .btn { width: 100%; }
    .page-toolbar-actions > .page-toolbar-primary { grid-column: 1 / -1; grid-row: 2; }
    .user-directory__overview { padding: 16px; }
    .user-directory__identity { align-items: flex-start; }
    .user-directory__summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .user-directory__summary > span:nth-child(2) { border-right: 0; }
    .user-directory__summary > span:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
    .mobile-user-card > header { align-items: flex-start; }
    .mobile-user-card dl { grid-template-columns: 1fr; }
    .mobile-user-actions { grid-template-columns: 1fr; }
    .user-form-card__body { padding: 12px; }
    .user-form-section { padding: 13px; }
}

.pagination { flex-wrap: wrap; gap: 4px; }
.page-link { display: grid; min-width: 38px; min-height: 38px; place-items: center; color: var(--brand-blue); background: var(--surface); border: 1px solid var(--border); border-radius: 7px !important; font-size: .8rem; font-weight: 600; }
.page-link:hover { color: var(--brand-blue-hover); background: var(--brand-blue-soft); border-color: #b8cfe2; }
.page-item.active .page-link { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.page-item.disabled .page-link { color: var(--text-light); background: #f5f6f8; }

/* Status, alerts, dropdowns, modals */
.badge { min-height: 24px; padding: 4px 8px; font-weight: 650; line-height: 1.2; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; }
.badge.bg-warning, .badge.text-dark { color: var(--warning) !important; background: var(--warning-soft) !important; }
.badge.bg-success { color: var(--success) !important; background: var(--success-soft) !important; }
.alert { border-radius: var(--radius-md); box-shadow: none; }
.app-alert { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 14px; border: 1px solid; }
.app-alert__message { min-width: 0; flex: 1; }
.app-alert .btn-close { margin-left: auto; }
.alert-success { color: #116a49; background: var(--success-soft); border-color: #b9e5d2; }
.alert-danger { color: #a52f36; background: var(--danger-soft); border-color: #f1bec1; }
.alert-warning { color: #855000; background: var(--warning-soft); border-color: #f0d396; }
.alert-info { color: #1b528a; background: var(--info-soft); border-color: #bcd5ee; }
.dropdown-menu { padding: 6px; border-color: var(--border); border-radius: 9px; box-shadow: var(--shadow-sm); }
.dropdown-item { padding: 8px 10px; border-radius: 6px; font-size: .82rem; }

/* Reusable compact action menus */
.action-menu {
    min-width: 230px;
    max-width: min(280px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}
.action-menu-label {
    padding: 7px 10px 4px;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.action-menu .dropdown-item {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    color: var(--text-main);
    background: transparent;
    font-size: .84rem;
    text-align: left;
    transition: color .14s ease, background-color .14s ease;
}
.action-menu .dropdown-item i { width: 1rem; color: var(--brand-blue); text-align: center; }
.action-menu .dropdown-item:hover,
.action-menu .dropdown-item:focus { color: var(--brand-blue); background: var(--brand-blue-soft); }
.action-menu .dropdown-item.text-danger i { color: var(--danger); }
.action-menu .dropdown-item.text-danger:hover,
.action-menu .dropdown-item.text-danger:focus { color: var(--danger); background: var(--danger-soft); }
.action-menu form { margin: 0; }
.record-action-group { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.record-action-group .btn-view { min-width: 66px; }
.record-action-group > .dropdown > .btn { min-height: 36px; }
.btn-more { display: inline-grid; min-width: 36px; min-height: 34px; place-items: center; padding: .3rem .48rem; color: var(--brand-blue); background: #fff; border: 1px solid var(--border); }
.btn-more:hover,
.btn-more:focus,
.btn-more.show { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
.mobile-report-actions .dropdown > .btn-more,
.mobile-user-actions .dropdown > .btn-more,
.gs-mobile-actions .dropdown > .btn-more { width: 100%; min-height: 38px; }
.table-responsive:has(.action-menu.show),
.mobile-report-card:has(.action-menu.show),
.mobile-user-card:has(.action-menu.show),
.gs-mobile-card:has(.action-menu.show) { position: relative; z-index: 6; overflow: visible; }
.print-help { display: flex; align-items: center; gap: 7px; width: min(calc(100% - 32px), 215.9mm); margin: 8px auto 0; color: var(--text-muted); font-size: .74rem; line-height: 1.35; }
.print-help i { color: var(--brand-blue); }
.print-help-inline { width: auto; margin: 0; }

@media (max-width: 575.98px) {
    .action-menu { min-width: min(230px, calc(100vw - 24px)); }
    .action-menu .dropdown-item { min-height: 44px; }
    .record-action-group .btn { min-height: 40px; }
}
.modal-dialog { max-width: min(680px, calc(100vw - 24px)); }
.modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.modal-header, .modal-footer { padding: 15px 18px; border-color: var(--border-light); }
.modal-header { background: var(--surface-alt); }
.modal-title { color: var(--brand-navy); font-weight: 650; }
.modal-body { padding: 20px 18px; overflow-y: auto; }
.reports-filter-modal .modal-dialog { max-width: 680px; }
.reports-filter-modal .modal-header { align-items: flex-start; padding: 18px 20px; }
.reports-filter-modal .modal-body { padding: 22px 20px; }
.reports-filter-modal .modal-footer { padding: 15px 20px; background: var(--surface-alt); }
.modal-subtitle { margin: 4px 0 0; color: var(--text-muted); font-size: .78rem; }

/* Official documents */
.document-header { position: relative; margin-bottom: 24px; padding: 8px 16px 22px; text-align: center; border-bottom: 1px solid var(--border); }
.document-header::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 92px; height: 3px; transform: translateX(-50%); background: var(--brand-gold); }
.doc-logo { width: 82px; height: 82px; margin-bottom: 8px; object-fit: contain; }
.document-header h2, .document-header h3, .document-header p { margin: 0; }
.document-header h2 { color: var(--brand-navy); font-size: 1.08rem; font-weight: 700; }
.document-header h3 { color: var(--text-muted); font-size: .9rem; font-weight: 650; }
.document-title { display: inline-block; margin-top: 12px; color: var(--brand-blue); font-size: .95rem; font-weight: 700; letter-spacing: .035em; }
.signature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 58px; margin-top: 70px; }
.signature-line { padding-top: 10px; border-top: 1px solid #283445; text-align: center; }

/* Report detail */
.report-detail-card { overflow: hidden; }
.report-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--border-light); }
.report-id-label { color: var(--brand-blue); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.report-detail-header h2 { margin: 3px 0 2px; color: var(--brand-navy); font-size: 1.5rem; font-weight: 700; }
.report-detail-header p { margin: 0; color: var(--text-muted); font-size: .8rem; }
.report-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--border-light); }
.report-fact { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--border-light); }
.report-fact:last-child { border-right: 0; }
.report-fact span { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: .74rem; }
.report-fact span i { margin-right: 5px; color: var(--brand-blue); }
.report-fact strong { display: block; overflow-wrap: anywhere; color: var(--text-main); font-size: .88rem; font-weight: 650; }
.report-fact-wide { grid-column: span 4; border-top: 1px solid var(--border-light); }
.report-narrative { display: grid; gap: 16px; padding: 22px 24px; background: var(--surface-alt); }
.report-text-block { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.report-text-block h3 { margin: 0 0 10px; color: var(--brand-navy); font-size: .9rem; font-weight: 650; }
.report-text-block h3 i { margin-right: 7px; color: var(--brand-gold-hover); }
.report-text-block > div { color: #344054; line-height: 1.7; }
.report-text-block.is-pending { border-style: dashed; background: var(--brand-gold-soft); }
.report-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--surface); border-top: 1px solid var(--border-light); }
.report-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Empty state */
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 40px 18px !important; color: var(--text-muted) !important; text-align: center; }
.empty-state i { display: block; margin-bottom: 8px; color: var(--text-light); font-size: 2rem; }
.empty-state strong { color: var(--text-secondary); font-size: .9rem; }
.empty-state span { max-width: 440px; margin-top: 3px; font-size: .76rem; }
.empty-state.compact { min-height: 150px; padding: 24px 18px !important; }
.empty-state.compact i { font-size: 1.5rem; }

/* Login */
.login-body { min-height: 100vh; min-height: 100svh; padding: 0; overflow-x: hidden; background: var(--surface); }
.login-shell { display: grid; grid-template-columns: minmax(440px,1.08fr) minmax(430px,.92fr); width: 100%; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--surface); }
.login-visual { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: clamp(28px,4vw,62px); overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 20%,rgba(31,102,159,.38),transparent 32%),linear-gradient(145deg,var(--brand-navy-deep),#0b335b 72%,#0e3f6b); }
.login-visual::before { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom,black,transparent 80%); }
.login-visual__brand, .login-visual__content, .login-visual-footer { position: relative; z-index: 2; }
.login-visual__brand { display: flex; align-items: center; gap: 12px; }
.login-visual__seal { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; padding: 4px; background: #fff; border-radius: 14px; box-shadow: 0 9px 22px rgba(0,0,0,.2); }
.login-visual-logo { width: 100%; height: 100%; margin: 0; object-fit: contain; }
.login-visual__brand-copy { display: grid; line-height: 1.25; }
.login-visual__brand-copy span { color: rgba(255,255,255,.55); font-size: .66rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.login-visual__brand-copy strong { color: #fff; font-size: .93rem; }
.login-visual__content { width: min(100%,590px); margin-block: clamp(30px,8vh,80px); }
.login-kicker { margin-bottom: 11px !important; color: #efca65; font-size: .66rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.login-visual h2 { max-width: 580px; margin: 0 0 15px; color: #fff; font-size: clamp(2rem,4vw,3.35rem); font-weight: 740; line-height: 1.04; letter-spacing: -.045em; }
.login-visual__lead { max-width: 500px; margin: 0; color: rgba(255,255,255,.62); font-size: clamp(.79rem,1vw,.92rem); }
.login-features { display: grid; gap: 9px; max-width: 500px; margin: clamp(24px,4vh,38px) 0 0; padding: 0; list-style: none; }
.login-feature { display: flex; align-items: center; gap: 11px; padding: 9px 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 11px; backdrop-filter: blur(4px); }
.login-feature__icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #f1cb63; background: rgba(255,255,255,.07); border-radius: 9px; }
.login-feature > span:last-child { display: grid; }
.login-feature strong { color: rgba(255,255,255,.9); font-size: .76rem; }
.login-feature small { color: rgba(255,255,255,.43); font-size: .64rem; }
.login-visual__orb { position: absolute; z-index: 1; pointer-events: none; border: 1px solid rgba(255,255,255,.075); border-radius: 50%; }
.login-visual__orb--one { right: -105px; bottom: -90px; width: 340px; height: 340px; border-width: 48px; border-color: rgba(212,167,44,.08); }
.login-visual__orb--two { top: 18%; right: -65px; width: 190px; height: 190px; }
.login-visual-footer { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.45); font-size: .68rem; }
.login-visual-footer i { color: #5dd7a6; }
.login-panel { display: flex; min-width: 0; width: 100%; padding: clamp(24px,4.5vw,70px); flex-direction: column; justify-content: space-between; background: linear-gradient(180deg,#fff,#fbfcfe); }
.login-panel__inner { width: min(100%,440px); margin: auto; }
.login-brand { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.login-seal { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; }
.login-seal img { width: 100%; height: 100%; object-fit: contain; }
.login-college { color: var(--text-muted); font-size: .63rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.login-brand h2 { margin: 1px 0 0; color: var(--brand-navy); font-size: .88rem; font-weight: 720; }
.login-heading { margin: 27px 0 21px; }
.login-access-label { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; color: var(--brand-gold-hover); font-size: .59rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.login-heading h1 { margin: 0; color: var(--brand-navy); font-size: clamp(1.5rem,2.4vw,1.85rem); font-weight: 740; letter-spacing: -.03em; }
.login-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: .78rem; }
.login-field .form-label { color: var(--text-secondary); font-size: .72rem; font-weight: 700; }
.login-form .form-control, .login-form .input-group-text, .login-form .password-toggle { min-height: 48px; }
.login-submit { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding-inline: 17px; }
.login-public-entry { display: grid; gap: 7px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border-light); text-align: center; }
.login-public-entry > span { color: var(--text-muted); font-size: .66rem; }
.login-public-entry .btn { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; font-size: .75rem; font-weight: 700; }
.password-toggle { min-width: 46px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-left: 0; border-radius: 0 8px 8px 0 !important; box-shadow: none; }
.password-toggle:hover { color: var(--brand-blue); background: var(--brand-blue-soft); transform: none; }
.login-support { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 18px 0 0; color: var(--text-muted); font-size: .68rem; text-align: center; }
.login-alert { margin-bottom: 18px; }
.login-panel__footer { display: flex; justify-content: space-between; gap: 12px; width: min(100%,440px); margin: 30px auto 0; padding-top: 12px; color: var(--text-light); border-top: 1px solid var(--border-light); font-size: .61rem; }

/* Public Visitor Log Book */
.public-logbook-body { display: flex; min-height: 100vh; min-height: 100svh; flex-direction: column; background: linear-gradient(180deg,#eef4f9 0,#f8fafc 42%,#eef3f7 100%); }
.public-logbook-header { color: #fff; background: linear-gradient(120deg,var(--brand-navy-deep),#0e3b67 72%,#12558c); border-bottom: 4px solid var(--brand-gold); box-shadow: 0 8px 24px rgba(7,29,54,.16); }
.public-logbook-header__inner { display: flex; width: min(100% - 40px,1080px); min-height: 132px; align-items: center; justify-content: space-between; gap: 30px; margin: 0 auto; padding: 20px 0; }
.public-logbook-brand { display: flex; min-width: 0; align-items: center; gap: 18px; }
.public-logbook-seal { display: grid; width: 78px; height: 78px; flex: 0 0 78px; place-items: center; padding: 5px; background: #fff; border-radius: 50%; box-shadow: 0 7px 18px rgba(0,0,0,.2); }
.public-logbook-seal img { width: 100%; height: 100%; object-fit: contain; }
.public-logbook-brand div { min-width: 0; }
.public-logbook-brand p { margin: 0 0 2px; color: rgba(255,255,255,.72); font-size: .74rem; font-weight: 650; letter-spacing: .025em; }
.public-logbook-brand strong { display: block; color: #f2d474; font-size: .7rem; font-weight: 800; letter-spacing: .085em; line-height: 1.35; text-transform: uppercase; }
.public-logbook-brand h1 { margin: 4px 0 0; font-size: clamp(1.45rem,3vw,2rem); font-weight: 780; letter-spacing: -.025em; }
.public-logbook-clock { display: grid; min-width: 205px; padding: 13px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; text-align: right; }
.public-logbook-clock span { color: rgba(255,255,255,.68); font-size: .68rem; font-weight: 650; }
.public-logbook-clock time { color: #f6d873; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.public-logbook-clock small { color: rgba(255,255,255,.48); font-size: .57rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.public-logbook-main { width: min(100% - 40px,960px); margin: 28px auto; flex: 1; }
.public-logbook-card, .public-logbook-success { overflow: hidden; background: #fff; border: 1px solid #dce5ed; border-radius: 18px; box-shadow: 0 16px 38px rgba(16,39,65,.1); }
.public-logbook-card__intro { padding: 25px 28px 21px; background: linear-gradient(180deg,#fff,#fbfcfe); border-bottom: 1px solid var(--border-light); }
.public-logbook-eyebrow { display: block; margin: 0 0 3px; color: var(--brand-gold-hover); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.public-logbook-card__intro h2 { margin: 0; color: var(--brand-navy); font-size: 1.32rem; font-weight: 770; }
.public-logbook-card__intro p { max-width: 720px; margin: 6px 0 0; color: var(--text-muted); font-size: .77rem; }
.public-logbook-alert { display: flex; align-items: flex-start; gap: 9px; margin: 18px 28px 0; font-size: .75rem; }
.public-logbook-alert i { margin-top: 1px; }
.public-logbook-form { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 24px 28px 28px; }
.public-logbook-field { display: grid; min-width: 0; gap: 6px; margin: 0; }
.public-logbook-field--wide { grid-column: 1 / -1; }
.public-logbook-field > span:first-child { color: var(--brand-navy); font-size: .78rem; font-weight: 730; }
.public-logbook-field > span b { color: var(--danger); }
.public-logbook-field > small { color: var(--text-muted); font-size: .63rem; }
.public-logbook-field .form-control { min-height: 54px; padding: .75rem .9rem; font-size: .84rem; border-color: #cfd9e3; border-radius: 10px; }
.public-logbook-field textarea.form-control { min-height: 92px; resize: vertical; }
.public-logbook-form .select2-container--bootstrap-5 .select2-selection { min-height: 54px; padding-top: .65rem; padding-bottom: .65rem; border-color: #cfd9e3; border-radius: 10px; font-size: .84rem; }
.public-logbook-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { padding-left: .15rem; line-height: 1.65; }
.public-logbook-form .select2-container--bootstrap-5.select2-container--focus .select2-selection { border-color: #6fa2c8; box-shadow: 0 0 0 .25rem rgba(18,85,140,.14); }
.public-logbook-form.was-validated .form-select:invalid + .select2 .select2-selection { border-color: var(--danger); }
.public-logbook-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.public-active-visit { grid-column: 1 / -1; padding: 15px 17px; color: #155c42; background: var(--success-soft); border: 1px solid #b9e3d2; border-radius: 12px; }
.public-active-visit > div { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: .77rem; }
.public-active-visit dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 18px; margin: 0; }
.public-active-visit dl > div { min-width: 0; }
.public-active-visit dt { color: #4c7667; font-size: .57rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.public-active-visit dd { margin: 1px 0 0; overflow-wrap: anywhere; color: #164f3c; font-size: .71rem; font-weight: 650; }
.public-logbook-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 2px; }
.public-logbook-actions .btn { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: 9px; border-width: 2px; border-radius: 11px; font-size: .89rem; font-weight: 750; }
.public-logbook-actions .btn i { font-size: 1.12rem; }
.public-logbook-time-note { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 0; color: var(--text-muted); font-size: .63rem; text-align: center; }
.public-logbook-time-note i { color: var(--success); }
.public-logbook-footer { display: flex; width: min(100% - 40px,1080px); align-items: center; justify-content: space-between; gap: 14px; margin: 0 auto; padding: 0 0 22px; color: var(--text-muted); font-size: .65rem; }
.public-logbook-footer a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.public-logbook-success { max-width: 690px; margin: 54px auto; padding: 40px; text-align: center; }
.public-logbook-success__icon { display: grid; width: 74px; height: 74px; margin: 0 auto 17px; place-items: center; color: #fff; background: var(--success); border: 8px solid var(--success-soft); border-radius: 50%; font-size: 2rem; box-shadow: 0 6px 18px rgba(23,132,91,.18); }
.public-logbook-success .public-logbook-eyebrow { margin-bottom: 3px; }
.public-logbook-success h2 { margin: 0; color: var(--brand-navy); font-size: 1.55rem; }
.public-logbook-success__name { margin: 7px 0 18px; color: var(--text-main) !important; font-size: 1rem !important; font-weight: 720; }
.public-logbook-success > p { margin: 14px 0 0; color: var(--text-muted); font-size: .74rem; }
.public-logbook-success__details { display: flex; justify-content: center; gap: 0; margin: 0 auto; }
.public-logbook-success__details > div { min-width: 150px; padding: 11px 22px; border: 1px solid var(--border); }
.public-logbook-success__details > div:first-child { border-radius: 10px 0 0 10px; }
.public-logbook-success__details > div:last-child { border-radius: 0 10px 10px 0; }
.public-logbook-success__details > div:only-child { border-radius: 10px; }
.public-logbook-success__details dt { color: var(--text-muted); font-size: .57rem; letter-spacing: .05em; text-transform: uppercase; }
.public-logbook-success__details dd { margin: 2px 0 0; color: var(--brand-navy); font-size: .86rem; font-weight: 760; }
.public-logbook-success__actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.public-logbook-success__actions .btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 7px; padding-inline: 18px; }

@media (max-width: 699.98px) {
    .public-logbook-header__inner { width: min(100% - 28px,1080px); min-height: 0; align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px 0; }
    .public-logbook-seal { width: 62px; height: 62px; flex-basis: 62px; }
    .public-logbook-brand { gap: 12px; }
    .public-logbook-brand p { font-size: .63rem; }
    .public-logbook-brand strong { font-size: .58rem; }
    .public-logbook-brand h1 { font-size: 1.35rem; }
    .public-logbook-clock { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; text-align: left; }
    .public-logbook-clock time { margin-left: auto; font-size: 1rem; }
    .public-logbook-clock small { display: none; }
    .public-logbook-main { width: min(100% - 24px,960px); margin: 16px auto; }
    .public-logbook-card { border-radius: 14px; }
    .public-logbook-card__intro { padding: 19px 18px 16px; }
    .public-logbook-alert { margin: 14px 16px 0; }
    .public-logbook-form { grid-template-columns: 1fr; gap: 15px; padding: 18px 16px 20px; }
    .public-logbook-field--wide, .public-active-visit, .public-logbook-actions, .public-logbook-time-note { grid-column: 1; }
    .public-active-visit dl { grid-template-columns: 1fr; }
    .public-logbook-footer { width: min(100% - 28px,1080px); padding-bottom: 16px; }
    .public-logbook-success { margin: 24px auto; padding: 30px 20px; }
}

@media (max-width: 419.98px) {
    .public-logbook-brand p { display: none; }
    .public-logbook-brand strong { letter-spacing: .045em; }
    .public-logbook-clock span { max-width: 145px; font-size: .59rem; }
    .public-logbook-actions { grid-template-columns: 1fr; }
    .public-logbook-success__details { display: grid; }
    .public-logbook-success__details > div, .public-logbook-success__details > div:first-child, .public-logbook-success__details > div:last-child { border-radius: 10px; }
    .public-logbook-success__actions { display: grid; }
    .public-logbook-footer { align-items: flex-start; flex-direction: column; }
}

/* Public Log Book activity workspace */
.public-logbook-main.public-logbook-workspace { width: min(100% - 40px,1180px); }
.public-logbook-workspace { display: grid; gap: 20px; }
.public-logbook-alert--workspace { margin: 0; }
.public-result-banner { display: flex; align-items: center; gap: 13px; padding: 14px 17px; color: #155c42; background: var(--success-soft); border: 1px solid #b7dfcf; border-radius: 13px; box-shadow: var(--shadow-xs); }
.public-result-banner > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 1.2rem; }
.public-result-banner > div { display: grid; min-width: 0; }
.public-result-banner strong { color: #174f3d; font-size: .8rem; }
.public-result-banner small { color: #477565; font-size: .65rem; }
.public-logbook-actions--single { grid-template-columns: minmax(0,1fr); }
.public-logbook-actions--single .btn { width: 100%; }
.public-logbook-actions .btn:disabled { cursor: not-allowed; opacity: .55; }
.public-activity-panel { overflow: hidden; background: #fff; border: 1px solid #dce5ed; border-radius: 16px; box-shadow: 0 10px 28px rgba(16,39,65,.075); }
.public-activity-panel__header { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; background: linear-gradient(180deg,#fff,#fbfcfe); border-bottom: 1px solid var(--border-light); }
.public-activity-panel__header h2 { margin: 0; color: var(--brand-navy); font-size: 1.03rem; font-weight: 760; }
.public-activity-panel__header > small { color: var(--text-muted); font-size: .64rem; }
.public-inside-count { display: inline-flex; min-height: 32px; align-items: center; padding: 6px 11px; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 999px; font-size: .68rem; white-space: nowrap; }
.public-inside-head, .public-inside-item { display: grid; grid-template-columns: minmax(145px,1.35fr) minmax(120px,1.1fr) minmax(120px,1.1fr) minmax(105px,.85fr) minmax(70px,.65fr) minmax(110px,.8fr); align-items: center; gap: 12px; }
.public-inside-head { padding: 9px 18px; color: var(--text-muted); background: var(--surface-soft); border-bottom: 1px solid var(--border-light); font-size: .57rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.public-inside-list { display: grid; }
.public-inside-item { min-width: 0; padding: 12px 18px; border-bottom: 1px solid var(--border-light); }
.public-inside-item:last-child { border-bottom: 0; }
.public-inside-item > div { min-width: 0; }
.public-inside-item > div > span, .public-inside-item time { display: block; overflow: hidden; color: var(--text-secondary); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.public-inside-person { display: flex; align-items: center; gap: 9px; }
.public-inside-person strong { min-width: 0; overflow: hidden; color: var(--brand-navy); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.public-mini-avatar { display: grid !important; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-blue) !important; background: var(--brand-blue-soft); border-radius: 9px; font-size: .62rem !important; font-weight: 800; }
.public-elapsed { color: var(--success); font-size: .72rem; }
.public-inside-action { display: flex; justify-content: flex-end; }
.btn-time-out { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 6px; font-size: .67rem; font-weight: 750; white-space: nowrap; }
.public-inside-action .btn-time-out { width: 100%; }
.public-activity-empty { display: flex; min-height: 120px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--text-muted); text-align: center; }
.public-activity-empty i { color: #9fb0c0; font-size: 1.55rem; }
.public-activity-empty strong { font-size: .72rem; }
.public-recent-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 15px; background: var(--surface-soft); }
.activity-item { display: grid; min-width: 0; align-content: start; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: 12px; box-shadow: var(--shadow-xs); }
.activity-item.is-completed { opacity: .62; background: var(--surface-soft); border-left-color: #98a4b2; }
.activity-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.activity-item > header > div { display: grid; min-width: 0; }
.activity-item > header strong, .activity-item > header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item > header strong { color: var(--brand-navy); font-size: .73rem; }
.activity-item > header div span { color: var(--text-muted); font-size: .59rem; }
.public-status-badge { display: inline-flex; min-height: 23px; flex: 0 0 auto; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: .56rem; font-weight: 760; }
.public-status-badge.is-inside { color: #126442; background: var(--success-soft); }
.public-status-badge.is-completed { color: #596575; background: #e8edf2; }
.activity-item dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
.activity-item dt { color: var(--text-muted); font-size: .53rem; letter-spacing: .04em; text-transform: uppercase; }
.activity-item dd { margin: 1px 0 0; color: var(--text-main); font-size: .67rem; font-weight: 690; }
.activity-item .btn-time-out { min-height: 36px; margin-top: auto; }
.activity-item.is-completed .btn-time-out { pointer-events: none; cursor: not-allowed; opacity: .65; }
.public-timeout-modal .modal-content { overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(7,29,54,.22); }
.public-timeout-modal .modal-header { padding: 18px 20px; background: var(--surface-soft); border-bottom-color: var(--border-light); }
.public-timeout-modal .modal-title { color: var(--brand-navy); font-size: 1.05rem; font-weight: 760; }
.public-timeout-modal .modal-body { padding: 20px; }
.public-timeout-modal .modal-body > p { margin: 15px 0 0; color: var(--text-secondary); font-size: .73rem; }
.public-timeout-summary { display: grid; padding: 14px; background: var(--brand-blue-soft); border: 1px solid #cbddeb; border-radius: 11px; }
.public-timeout-summary strong { color: var(--brand-navy); font-size: .86rem; }
.public-timeout-summary span { color: var(--text-secondary); font-size: .68rem; }
.public-timeout-summary small { margin-top: 7px; color: var(--text-muted); font-size: .61rem; }
.public-timeout-modal .modal-footer { padding: 14px 20px; }
.public-timeout-modal .modal-footer .btn { min-height: 46px; min-width: 120px; }

@media (max-width: 991.98px) {
    .public-recent-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .public-inside-head { display: none; }
    .public-inside-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 14px; background: var(--surface-soft); }
    .public-inside-item { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; align-items: start; padding: 14px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--brand-gold); border-radius: 12px; box-shadow: var(--shadow-xs); }
    .public-inside-person, .public-inside-action { grid-column: 1 / -1; }
    .public-inside-item > div[data-label]::before { display: block; margin-bottom: 2px; color: var(--text-muted); content: attr(data-label); font-size: .53rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
    .public-inside-action .btn-time-out { min-height: 48px; }
}

@media (max-width: 699.98px) {
    .public-logbook-main.public-logbook-workspace { width: min(100% - 24px,1180px); }
    .public-logbook-workspace { gap: 14px; }
    .public-activity-panel__header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 16px; }
    .public-inside-count { min-height: 28px; }
    .public-inside-list, .public-recent-list { grid-template-columns: 1fr; padding: 10px; }
    .public-result-banner { align-items: flex-start; }
}

@media (max-width: 419.98px) {
    .public-inside-item { grid-template-columns: 1fr; }
    .public-inside-person, .public-inside-action { grid-column: 1; }
    .public-timeout-modal .modal-footer { display: grid; grid-template-columns: 1fr; }
    .public-timeout-modal .modal-footer .btn { width: 100%; }
}

/* Single-screen public kiosk */
body.public-logbook-page { display: block; width: 100%; height: 100vh; height: 100dvh; min-height: 100vh; margin: 0; overflow: hidden; background: var(--page-bg); }
.public-logbook-page .kiosk-layout { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; height: 100vh; height: 100dvh; min-width: 0; min-height: 0; overflow: hidden; }
.public-logbook-page .kiosk-entry-panel, .public-logbook-page .kiosk-activity-column, .public-logbook-page .kiosk-panel { min-width: 0; min-height: 0; }
.public-logbook-page .kiosk-entry-panel { display: flex; align-items: stretch; padding: clamp(14px,2vh,22px) clamp(18px,3vw,44px); overflow: hidden; background: var(--surface); border-top: 4px solid var(--brand-gold); }
.public-logbook-page .kiosk-entry-content { display: flex; width: 100%; max-height: 100%; min-height: 0; flex-direction: column; justify-content: flex-start; }
.public-logbook-page .kiosk-branding { display: flex; min-width: 0; align-items: center; gap: 14px; }
.public-logbook-page .kiosk-branding-logo { display: grid; width: 68px; height: 68px; flex: 0 0 68px; place-items: center; }
.public-logbook-page .kiosk-branding-logo img { width: 100%; height: 100%; object-fit: contain; }
.public-logbook-page .kiosk-branding > div { display: grid; min-width: 0; }
.public-logbook-page .kiosk-branding span { color: var(--text-muted); font-size: .74rem; font-weight: 700; letter-spacing: .035em; }
.public-logbook-page .kiosk-branding strong { overflow: hidden; color: var(--brand-gold-hover); font-size: .7rem; font-weight: 800; letter-spacing: .07em; line-height: 1.35; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.public-logbook-page .kiosk-branding h1 { margin: 3px 0 0; color: var(--brand-navy); font-size: clamp(1.7rem,2.5vw,2.25rem); font-weight: 790; letter-spacing: -.03em; }
.public-logbook-page .kiosk-clock-row { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(10px,1.6vh,16px); padding: 8px 11px; color: #fff; background: linear-gradient(110deg,var(--brand-navy-deep),#124b7d); border-left: 3px solid var(--brand-gold); border-radius: 9px; }
.public-logbook-page .kiosk-clock-row > div { display: flex; min-width: 0; align-items: center; gap: 7px; }
.public-logbook-page .kiosk-clock-row span { overflow: hidden; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .kiosk-clock-row time { flex: 0 0 auto; color: #f5d36b; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.public-logbook-page .kiosk-instruction { margin-top: clamp(10px,1.5vh,15px); }
.public-logbook-page .kiosk-instruction p { margin: 2px 0 0; color: var(--text-muted); font-size: .78rem; }
.public-logbook-page .kiosk-result-banner { display: flex; min-height: 42px; align-items: center; gap: 9px; margin-top: 9px; padding: 8px 10px; color: #155c42; background: var(--success-soft); border: 1px solid #b7dfcf; border-radius: 9px; }
.public-logbook-page .kiosk-result-banner > i { color: var(--success); font-size: 1.1rem; }
.public-logbook-page .kiosk-result-banner > div { display: grid; min-width: 0; }
.public-logbook-page .kiosk-result-banner strong { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .kiosk-result-banner small { color: #477565; font-size: .58rem; }
.public-logbook-page .kiosk-alert { display: flex; min-height: 42px; align-items: flex-start; gap: 7px; margin: 9px 0 0; padding: 8px 10px; font-size: .65rem; }
.public-logbook-page .kiosk-alert i { margin-top: 1px; }
.public-logbook-page .kiosk-form { position: relative; display: grid; gap: clamp(9px,1.35vh,13px); margin-top: clamp(10px,1.5vh,15px); }
.public-logbook-page .kiosk-field { display: grid; min-width: 0; gap: 3px; margin: 0; }
.public-logbook-page .kiosk-field > span:first-child { color: var(--brand-navy); font-size: .8rem; font-weight: 730; }
.public-logbook-page .kiosk-field > span b { color: var(--danger); }
.public-logbook-page .kiosk-field > small { overflow: hidden; color: var(--text-muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .kiosk-field .form-control { min-height: 50px; padding: .65rem .8rem; font-size: .88rem; border-color: #cfd9e3; border-radius: 9px; }
.public-logbook-page .kiosk-field textarea.form-control { min-height: 62px; resize: none; }
.public-logbook-page .kiosk-form .select2-container--bootstrap-5 .select2-selection { min-height: 50px; padding-top: .62rem; padding-bottom: .62rem; border-color: #cfd9e3; border-radius: 9px; font-size: .88rem; }
.public-logbook-page #publicReason + .select2 .select2-selection { min-height: 56px; padding-top: .8rem; padding-bottom: .8rem; }
.public-logbook-page .kiosk-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { padding-left: .1rem; line-height: 1.6; }
.public-logbook-page .kiosk-form.was-validated .form-select:invalid + .select2 .select2-selection { border-color: var(--danger); }
.public-logbook-page .btn-time-in { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 8px; margin-top: 1px; border-radius: 9px; font-size: .78rem; font-weight: 760; text-transform: uppercase; }
.public-logbook-page .kiosk-entry-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(9px,1.3vh,13px); color: var(--text-muted); font-size: .56rem; }
.public-logbook-page .kiosk-entry-footer > span, .public-logbook-page .kiosk-entry-footer a { display: inline-flex; align-items: center; gap: 5px; }
.public-logbook-page .kiosk-entry-footer > span i { color: var(--success); }
.public-logbook-page .kiosk-entry-footer a { flex: 0 0 auto; font-weight: 720; }
.public-logbook-page .kiosk-insights { display: flex; min-height: 170px; flex: 1 1 210px; flex-direction: column; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.public-logbook-page .kiosk-insights-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.public-logbook-page .kiosk-insights-header > div { display: grid; min-width: 0; }
.public-logbook-page .kiosk-insights-header span { color: var(--brand-gold-hover); font-size: .55rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.public-logbook-page .kiosk-insights-header h2 { margin: 1px 0 0; color: var(--brand-navy); font-size: .88rem; font-weight: 780; }
.public-logbook-page .kiosk-insights-header small { color: var(--text-muted); font-size: .55rem; }
.public-logbook-page .kiosk-insight-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 8px; }
.public-logbook-page .kiosk-insight-stats > div { display: flex; min-width: 0; align-items: baseline; gap: 6px; padding: 6px 8px; background: var(--brand-blue-soft); border: 1px solid #d5e3ef; border-radius: 8px; }
.public-logbook-page .kiosk-insight-stats strong { color: var(--brand-blue); font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.public-logbook-page .kiosk-insight-stats span { overflow: hidden; color: var(--text-secondary); font-size: .55rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .kiosk-insight-graphs { display: grid; min-height: 0; flex: 1 1 auto; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 8px; margin-top: 8px; }
.public-logbook-page .kiosk-insight-graphs figure { min-width: 0; min-height: 112px; height: 100%; margin: 0; padding: 8px 9px; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--border-light); border-radius: 9px; }
.public-logbook-page .kiosk-insight-graphs figcaption { color: var(--brand-navy); font-size: .59rem; font-weight: 750; }
.public-logbook-page .kiosk-trend-bars { display: grid; height: calc(100% - 16px); min-height: 80px; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: end; gap: 4px; padding-top: 4px; }
.public-logbook-page .kiosk-trend-day { display: grid; height: 100%; min-width: 0; grid-template-rows: 13px minmax(0,1fr) 13px; justify-items: center; align-items: end; }
.public-logbook-page .kiosk-trend-day strong { color: var(--text-secondary); font-size: .48rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.public-logbook-page .kiosk-trend-day i { width: min(17px,75%); height: var(--bar-height); min-height: 2px; background: linear-gradient(180deg,var(--brand-blue),#79aaca); border-radius: 4px 4px 2px 2px; }
.public-logbook-page .kiosk-trend-day span { color: var(--text-muted); font-size: .45rem; font-weight: 680; }
.public-logbook-page .kiosk-reason-bars { display: grid; height: calc(100% - 18px); min-height: 80px; align-content: space-evenly; gap: 5px; margin-top: 3px; }
.public-logbook-page .kiosk-reason-row { min-width: 0; }
.public-logbook-page .kiosk-reason-row > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; }
.public-logbook-page .kiosk-reason-row span { overflow: hidden; color: var(--text-secondary); font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .kiosk-reason-row strong { flex: 0 0 auto; color: var(--brand-navy); font-size: .48rem; font-variant-numeric: tabular-nums; }
.public-logbook-page .kiosk-reason-row > i { display: block; height: 4px; margin-top: 1px; overflow: hidden; background: #e1e8ee; border-radius: 999px; }
.public-logbook-page .kiosk-reason-row > i > b { display: block; width: var(--bar-width); height: 100%; background: linear-gradient(90deg,var(--brand-gold),#e2b83f); border-radius: inherit; }
.public-logbook-page .kiosk-insights-empty { display: grid; height: 75px; place-items: center; padding: 8px; color: var(--text-muted); font-size: .52rem; text-align: center; }
.public-logbook-page .kiosk-activity-column { display: grid; grid-template-rows: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 12px; overflow: hidden; background: var(--page-bg); }
.public-logbook-page .kiosk-panel { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs); }
.public-logbook-page .kiosk-panel-header { display: flex; min-height: 58px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; background: linear-gradient(180deg,#fff,#fbfcfe); border-bottom: 1px solid var(--border-soft); }
.public-logbook-page .kiosk-panel-header > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.public-logbook-page .kiosk-panel-header > div > div { display: grid; min-width: 0; }
.public-logbook-page .kiosk-panel-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 9px; }
.public-logbook-page .kiosk-panel-header span:not(.kiosk-panel-icon) { color: var(--brand-gold-hover); font-size: .54rem; font-weight: 770; letter-spacing: .06em; text-transform: uppercase; }
.public-logbook-page .kiosk-panel-header h2 { margin: 0; overflow: hidden; color: var(--brand-navy); font-size: .85rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .kiosk-panel-header > strong { display: grid; min-width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--brand-blue); border-radius: 999px; font-size: .61rem; }
.public-logbook-page .kiosk-panel-body { flex: 1 1 auto; min-height: 0; padding: 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.public-logbook-page .kiosk-panel-body::-webkit-scrollbar { width: 8px; }
.public-logbook-page .kiosk-panel-body::-webkit-scrollbar-track { background: transparent; }
.public-logbook-page .kiosk-panel-body::-webkit-scrollbar-thumb { background: #bdc8d3; border: 2px solid #fff; border-radius: 999px; }
.public-logbook-page .visitor-list, .public-logbook-page .recent-kiosk-list { display: grid; gap: 7px; }
.public-logbook-page .visitor-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; background: #fff; border: 1px solid var(--border-light); border-left: 3px solid var(--brand-gold); border-radius: 10px; }
.public-logbook-page .visitor-item-main, .public-logbook-page .recent-kiosk-main { display: grid; min-width: 0; }
.public-logbook-page .visitor-name { overflow: hidden; color: var(--brand-navy); font-size: .71rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .visitor-meta { overflow: hidden; color: var(--text-secondary); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .visitor-reason { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: .57rem; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.public-logbook-page .visitor-time { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; color: var(--text-muted); font-size: .57rem; }
.public-logbook-page .visitor-time time { color: var(--brand-blue); font-weight: 720; }
.public-logbook-page .visitor-time .public-elapsed { color: var(--success); font-size: inherit; }
.public-logbook-page .visitor-item .btn-time-out { min-width: 94px; min-height: 44px; padding: .4rem .65rem; font-size: .61rem; }
.public-logbook-page .recent-kiosk-item { padding: 8px 10px; background: #fff; border: 1px solid var(--border-light); border-left: 3px solid var(--success); border-radius: 10px; }
.public-logbook-page .recent-kiosk-item.is-completed { opacity: .62; background: var(--surface-soft); border-left-color: #98a4b2; }
.public-logbook-page .recent-kiosk-main > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.public-logbook-page .recent-kiosk-main > header strong { overflow: hidden; color: var(--brand-navy); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.public-logbook-page .recent-kiosk-time { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--text-muted); font-size: .57rem; }
.public-logbook-page .recent-kiosk-time time { color: var(--text-secondary); font-weight: 690; }
.public-logbook-page .kiosk-empty { display: flex; min-height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 18px; color: var(--text-muted); text-align: center; }
.public-logbook-page .kiosk-empty i { color: #9fb0c0; font-size: 1.4rem; }
.public-logbook-page .kiosk-empty strong { font-size: .67rem; }
.public-logbook-page .kiosk-mobile-tabs { display: none; }
body.public-logbook-page .select2-container { z-index: 1065; }
body.public-logbook-page > .select2-container--open { z-index: 1090; }
body.public-logbook-page > .select2-container--open .select2-dropdown { max-width: calc(100vw - 12px); }
body.public-logbook-page > .select2-container--open .select2-results__options { max-height: min(260px,42vh) !important; overscroll-behavior: contain; }
body.public-logbook-page .modal-backdrop { z-index: 1100; }
body.public-logbook-page .public-timeout-modal { z-index: 1110; }

@media (min-width: 768px) and (max-width: 1199.98px) {
    .public-logbook-page .kiosk-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .public-logbook-page .kiosk-entry-panel { padding-right: clamp(16px,2.3vw,28px); padding-left: clamp(16px,2.3vw,28px); }
}

@media (min-width: 768px) and (max-height: 800px) {
    .public-logbook-page .kiosk-entry-panel { padding-top: 14px; padding-bottom: 14px; }
    .public-logbook-page .kiosk-branding-logo { width: 54px; height: 54px; flex-basis: 54px; }
    .public-logbook-page .kiosk-branding h1 { font-size: 1.35rem; }
    .public-logbook-page .kiosk-branding span { font-size: .59rem; }
    .public-logbook-page .kiosk-branding strong { font-size: .56rem; }
    .public-logbook-page .kiosk-clock-row { min-height: 36px; margin-top: 7px; padding-top: 5px; padding-bottom: 5px; }
    .public-logbook-page .kiosk-instruction { margin-top: 7px; }
    .public-logbook-page .kiosk-form { gap: 7px; margin-top: 7px; }
    .public-logbook-page .kiosk-field > small { display: none; }
    .public-logbook-page .kiosk-field .form-control, .public-logbook-page .kiosk-form .select2-container--bootstrap-5 .select2-selection { min-height: 44px; }
    .public-logbook-page .kiosk-entry-footer { margin-top: 7px; }
    .public-logbook-page .kiosk-activity-column { gap: 8px; padding: 8px; }
    .public-logbook-page .kiosk-panel-header { min-height: 48px; padding: 7px 10px; }
    .public-logbook-page .kiosk-panel-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .public-logbook-page .visitor-item { padding: 7px 9px; }
    .public-logbook-page .recent-kiosk-item { padding: 6px 9px; }
}

@media (max-width: 767.98px) {
    body.public-logbook-page { min-height: 100vh; overflow: hidden; }
    .public-logbook-page .kiosk-layout { display: block; height: 100vh; height: 100dvh; }
    .public-logbook-page .kiosk-activity-column { display: contents; }
    .public-logbook-page .kiosk-mobile-section { position: absolute; inset: 0 0 68px; display: none; width: 100%; height: auto; min-height: 0; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; }
    .public-logbook-page .kiosk-mobile-section.is-active { display: flex; }
    .public-logbook-page .kiosk-entry-panel { align-items: flex-start; padding: 0; overflow-x: hidden; overflow-y: auto; border-top-width: 3px; }
    .public-logbook-page .kiosk-entry-content { display: block; max-height: none; padding: 15px 16px 18px; }
    .public-logbook-page .kiosk-branding { gap: 10px; }
    .public-logbook-page .kiosk-branding-logo { width: 52px; height: 52px; flex-basis: 52px; }
    .public-logbook-page .kiosk-branding span { font-size: .56rem; }
    .public-logbook-page .kiosk-branding strong { font-size: .52rem; letter-spacing: .045em; white-space: normal; }
    .public-logbook-page .kiosk-branding h1 { font-size: 1.32rem; }
    .public-logbook-page .kiosk-clock-row { min-height: 38px; margin-top: 9px; }
    .public-logbook-page .kiosk-instruction { margin-top: 9px; }
    .public-logbook-page .kiosk-form { gap: 10px; margin-top: 10px; }
    .public-logbook-page .kiosk-field .form-control, .public-logbook-page .kiosk-form .select2-container--bootstrap-5 .select2-selection { min-height: 46px; }
    .public-logbook-page .btn-time-in { min-height: 48px; }
    .public-logbook-page .kiosk-entry-footer { padding-bottom: 5px; }
    .public-logbook-page .kiosk-insights { display: block; min-height: 0; margin-top: 16px; padding-top: 14px; }
    .public-logbook-page .kiosk-insight-graphs { grid-template-columns: 1fr; }
    .public-logbook-page .kiosk-insight-graphs figure { height: 125px; }
    .public-logbook-page .kiosk-trend-bars { height: 92px; }
    .public-logbook-page .kiosk-panel-header { min-height: 58px; border-radius: 0; }
    .public-logbook-page .kiosk-panel-body { padding: 9px; }
    .public-logbook-page .visitor-item { padding: 10px; }
    .public-logbook-page .visitor-item .btn-time-out { min-height: 46px; }
    .public-logbook-page .kiosk-mobile-tabs { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1030; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); height: 68px; padding: 6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); background: var(--brand-navy-deep); border-top: 3px solid var(--brand-gold); box-shadow: 0 -5px 18px rgba(7,29,54,.16); }
    .public-logbook-page .kiosk-mobile-tabs button { position: relative; display: grid; min-width: 0; place-items: center; align-content: center; gap: 1px; color: rgba(255,255,255,.64); background: transparent; border: 0; border-radius: 8px; font-size: .58rem; font-weight: 700; }
    .public-logbook-page .kiosk-mobile-tabs button i { font-size: 1rem; }
    .public-logbook-page .kiosk-mobile-tabs button.is-active { color: var(--brand-navy-deep); background: var(--brand-gold); }
    .public-logbook-page .kiosk-mobile-tabs button b { position: absolute; top: 3px; left: calc(50% + 7px); display: grid; min-width: 16px; height: 16px; place-items: center; color: #fff; background: var(--brand-blue); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: .48rem; }
}

@media (max-width: 389.98px) {
    .public-logbook-page .kiosk-entry-content { padding-right: 12px; padding-left: 12px; }
    .public-logbook-page .kiosk-field > small { display: none; }
    .public-logbook-page .visitor-item { grid-template-columns: minmax(0,1fr); }
    .public-logbook-page .visitor-item .btn-time-out { width: 100%; }
}

/* Print preview */
.print-preview-page { background: var(--page-bg); }
.print-sheet { width: min(100% - 32px,900px); margin: 24px auto; padding: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.print-document.paper-a4 { --print-page-width: 210mm; --paper-height: 297mm; --page-margin-top: 20mm; --page-margin-bottom: 20mm; --printable-height: calc(var(--paper-height) - var(--page-margin-top) - var(--page-margin-bottom)); }
.print-document.paper-long { --print-page-width: 215.9mm; --paper-height: 330.2mm; --page-margin-top: 20mm; --page-margin-bottom: 20mm; --printable-height: calc(var(--paper-height) - var(--page-margin-top) - var(--page-margin-bottom)); }
@media screen {
    .print-document { width: min(calc(100% - 32px), var(--print-page-width)); }
}
.print-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(calc(100% - 32px), 215.9mm); margin: 24px auto 0; }
.print-page { display: flex; min-height: calc(var(--printable-height) - 2mm); box-sizing: border-box; flex-direction: column; }
.print-page-content { min-height: 0; flex: 1 0 auto; }
.paper-size-control { display: flex; align-items: center; gap: 8px; }
.paper-size-control label { color: var(--text-muted); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.paper-size-control .form-select { width: 190px; }
.official-print-header { margin-bottom: 2mm; color: #000; font-family: Arial, Helvetica, sans-serif; }
.institution-header { display: grid; grid-template-columns: 86px 1fr; align-items: center; border-bottom: 2px solid #111; }
.institution-logo { display: grid; min-height: 88px; place-items: center; }
.official-header-logo { width: 76px; height: 76px; object-fit: contain; }
.institution-details { padding: 3px 0 1px 8px; font-size: 12px; line-height: 1.18; }
.college-name { font-weight: 700; }
.institution-email { color: #0563c1; text-decoration: underline; }
.office-name { margin-top: 2px; font-size: 16px; font-weight: 700; line-height: 1.08; text-align: left; white-space: nowrap; }
.report-title-row { display: grid; grid-template-columns: 38mm minmax(0, 1fr) 38mm; align-items: start; gap: 8px; margin: 2.5mm 0 2mm; }
.technical-report-title { grid-column: 2; margin: 0; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 15pt; font-weight: 700; line-height: 1.1; text-align: center; }
.print-report-details { table-layout: fixed; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; }
.print-report-details th { width: 18%; }
.print-report-details td { width: 32%; }
.print-report-details:not(.blank-report-details) td { font-size: 10.5pt; font-weight: 700; }
.print-report-details > tbody > tr > th,
.print-report-details > tbody > tr > td { padding: 4px 6px; line-height: 1.2; }
.report-text-section { width: 100%; margin-top: 0; color: #000; font-family: Arial, Helvetica, sans-serif; }
.print-text-block { width: 100%; margin-top: 2mm; border: 1px solid #000; break-inside: auto; page-break-inside: auto; }
.print-text-label { padding: 4px 7px; font-size: 10pt; font-weight: 700; line-height: 1.2; background: #f4f4f4; border-bottom: 1px solid #000; }
.print-text-content { min-height: 34mm; height: auto; max-height: none; padding: 8px 10px; overflow: visible; color: #000; font-size: 11pt; font-weight: 500; line-height: 1.4; overflow-wrap: break-word; white-space: normal; word-break: normal; }
.signature-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24mm; width: 100%; margin-top: 6mm; break-inside: avoid; page-break-inside: avoid; }
.signature-column { display: block; min-width: 0; text-align: center; writing-mode: horizontal-tb; transform: none; }
.signature-role,
.signature-writing-space,
.signature-person-name,
.signature-caption { writing-mode: horizontal-tb; text-orientation: mixed; transform: none; word-break: normal; overflow-wrap: normal; }
.signature-role { display: block; width: 100%; margin-bottom: 3mm; font-size: 10pt; font-weight: 700; white-space: nowrap; }
.signature-writing-space { display: flex; min-height: 8mm; align-items: flex-end; justify-content: center; }
.signature-person-name { width: 100%; min-height: 1.3em; font-size: 10pt; font-weight: 700; line-height: 1.15; white-space: normal; }
.signature-rule { width: 100%; border-top: 1px solid #000; }
.signature-caption { margin-top: 2px; font-size: 8pt; white-space: nowrap; }
.document-control-footer { flex: 0 0 auto; margin-top: auto; padding-top: 4mm; color: #000; font-family: Arial, Helvetica, sans-serif; break-inside: avoid; page-break-inside: avoid; }
.document-control-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 5px; }
.document-control-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 7pt; line-height: 1; }
.document-control-table th,
.document-control-table td { padding: 1.5px 3px; border: 1px solid #111; vertical-align: middle; white-space: nowrap; }
.document-control-table th { font-weight: 400; text-align: left; }
.document-control-table .document-title-value,
.document-control-table .document-code-value,
.document-control-table .control-value,
.document-control-table .effective-date-value { font-weight: 700; }
.document-control-table .document-title-value { font-size: 8pt; }
.document-control-table .page-number { text-align: center; }
.certification-logos { display: grid; place-items: center; }
.certification-logos img { display: block; width: auto; max-width: 34mm; max-height: 13mm; object-fit: contain; }
.quality-statement { margin: 2mm 2mm 0; font-size: 7pt; line-height: 1.1; text-align: justify; }
.footer-date-created { margin: .5mm 2mm 0; font-size: 5pt; font-weight: 400; line-height: 1; text-align: right; white-space: nowrap; }
.footer-date-blank { display: inline-block; width: 16mm; vertical-align: bottom; border-bottom: .5px solid #000; }
.blank-writing-line { display: block; width: 100%; min-height: 13px; border-bottom: 1px solid #777; }
.blank-checkbox { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; border: 1px solid #000; }
.blank-report-box { height: auto; max-height: none; overflow: visible; }
.paper-a4 .blank-report-box.reason-box,
.paper-a4 .blank-report-box.output-box { min-height: 34mm; }
.paper-long .blank-report-box.reason-box,
.paper-long .blank-report-box.output-box { min-height: 42mm; }
.blank-signature-section { margin-top: 6mm; }

@media (max-width: 1499.98px) {
    .report-actions .action-label { display: none; }
    .reports-table th.actions-column,
    .reports-table td.actions-column { width: 176px; min-width: 176px; }
    .report-actions .btn { width: 40px; height: 40px; padding: 0; }
}

@media (max-width: 1199.98px) {
    body.sidebar-collapsed .app-sidebar { width: var(--sidebar-width); }
    body.sidebar-collapsed .app-shell { margin-left: 0; }
    body.sidebar-collapsed .topbar { left: 0; }
    body.sidebar-collapsed .brand,
    body.sidebar-collapsed .sidebar-link,
    body.sidebar-collapsed .sidebar-user { justify-content: flex-start; }
    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .sidebar-link-copy,
    body.sidebar-collapsed .sidebar-link-arrow,
    body.sidebar-collapsed .sidebar-nav-label,
    body.sidebar-collapsed .sidebar-account-label,
    body.sidebar-collapsed .sidebar-user-copy,
    body.sidebar-collapsed .sidebar-logout-form { display: block; }
    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .sidebar-link-copy { display: grid; }
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.show { transform: translateX(0); }
    .sidebar-close { display: grid; }
    .app-sidebar .brand { padding-right: 44px; }
    body.nav-open { overflow: hidden; }
    .app-shell { margin-left: 0; }
    .topbar { left: 0; padding-right: 22px; padding-left: 22px; }
    .content-wrap { padding-right: 22px; padding-left: 22px; }
    .app-footer { padding-right: 22px; padding-left: 22px; }
    .sidebar-backdrop.show { position: fixed; inset: 0; z-index: 1030; display: block; background: rgba(11,25,44,.48); }
    .dashboard-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .report-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .report-fact:nth-child(2n) { border-right: 0; }
    .report-fact-wide { grid-column: span 2; }
    .report-actions .action-label { display: none; }
    .reports-table th.actions-column,
    .reports-table td.actions-column { width: 176px; min-width: 176px; }
    .report-actions .btn { width: 40px; height: 40px; padding: 0; }
}

@media (max-width: 991.98px) {
    .topbar { left: 0; padding: 0 20px; }
    .content-wrap { padding: calc(var(--topbar-height) + 24px) 20px 24px; }
    .app-footer { padding-right: 20px; padding-left: 20px; }
    .reports-toolbar { grid-template-columns: minmax(220px, 1fr) auto; }
    .reports-result-count { grid-column: 1 / -1; justify-self: start; }
    .print-reports-toolbar { grid-template-columns: minmax(220px, 1fr) auto auto; }
    .dashboard-analytics-grid, .dashboard-activity-grid { grid-template-columns: 1fr; }
    .report-form-fields--request, .report-form-fields--assignment { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .report-form-field--date, .report-form-field--technician { grid-column: 1 / -1; }
    .settings-workspace { grid-template-columns: 1fr; }
    .settings-rail { position: static; }
    .settings-rail-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .settings-rail-note { display: none; }
    .settings-add-panel { grid-template-columns: minmax(170px,.7fr) minmax(300px,1.3fr); }
    .monthly-workspace__command { grid-template-columns: 1fr; }
    .monthly-workspace__search { width: 100%; }
    .monthly-workspace__actions { flex-wrap: wrap; justify-content: flex-start; }
    .monthly-table-wrap { display: none; }
    .monthly-mobile-list { display: grid; }
}

@media (max-width: 899.98px) {
    .login-body { min-height: 100svh; padding: 0; background: #edf3f8; }
    .login-shell { display: block; width: 100%; min-width: 0; min-height: 100svh; background: #edf3f8; }
    .login-visual { display: none; }
    .login-panel { min-width: 0; min-height: 100svh; padding: 14px; justify-content: center; background: #edf3f8; }
    .login-panel__inner { width: min(100%,440px); margin: auto; padding: clamp(23px,7vw,34px); background: var(--surface); border: 1px solid #d8e2eb; border-radius: 16px; box-shadow: 0 12px 30px rgba(16,24,40,.09); }
    .login-panel__footer { display: none; }
    .login-brand { align-items: flex-start; }
    .login-brand > div { min-width: 0; }
    .login-college { line-height: 1.3; white-space: normal; }
    .login-brand h2 { line-height: 1.35; }
    .login-panel .input-group { min-width: 0; flex-wrap: nowrap; }
    .login-panel .input-group .form-control { min-width: 0; }
}

@media (max-width: 767.98px) {
    .page-header__trail { align-items: flex-start; }
    .page-header__context { display: none; }
    .page-header__main { align-items: stretch; flex-direction: column; gap: 13px; }
    .page-header__identity { align-items: flex-start; }
    .page-primary-action { width: 100%; }
    .page-toolbar { display: grid; grid-template-columns: 1fr; width: 100%; }
    .page-toolbar .btn { width: 100%; }
    .topbar-chip { display: none !important; }
    .topbar-profile strong, .topbar-profile small { display: none; }
    .topbar-actions { gap: 6px !important; }
    .topbar-profile { min-width: 40px; padding: 2px; }
    .topbar-profile::after { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .card-body { padding: 16px; }
    .card-footer { display: grid !important; grid-template-columns: 1fr; }
    .card-footer .btn { width: 100%; }
    .form-section-heading { display: block; }
    .form-section-heading small { display: block; margin-top: 3px; }
    .report-editor__grid { grid-template-columns: 1fr; }
    .report-form-fields--request, .report-form-fields--assignment { grid-template-columns: 1fr; }
    .report-editor__footer { display: grid; grid-template-columns: 1fr; }
    .report-editor__footer-note { justify-content: center; margin: 0 0 2px; text-align: center; }
    .report-editor__footer .btn { width: 100%; }
    .filter-card .col-12.d-flex { display: grid !important; grid-template-columns: 1fr; }
    .filter-card .btn { width: 100%; }
    .report-detail-actions { display: grid; grid-template-columns: 1fr; }
    .report-primary-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .report-primary-actions .btn, .report-back-action { width: 100%; }
    .signature-grid { grid-template-columns: 1fr; gap: 54px; }
    .signature-section { grid-template-columns: 1fr; gap: 42px; }
    .document-control-row { align-items: center; flex-direction: column; }
    .document-control-table { min-width: 650px; }
    .document-control-footer { overflow-x: auto; }
    .certification-logos { flex-basis: auto; }
    .print-toolbar { align-items: stretch; flex-direction: column; }
    .paper-size-control { display: grid; grid-template-columns: 1fr; }
    .paper-size-control .form-select { width: 100%; }
    .dashboard-recent-table, .dashboard-recent-table tbody { display: block; }
    .dashboard-recent-table thead { display: none; }
    .dashboard-recent-table tbody { padding: 7px 12px 12px; }
    .dashboard-recent-table tbody tr:not(.dashboard-empty-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
    .dashboard-recent-table tbody tr:last-child { border-bottom: 0; }
    .dashboard-recent-table tbody td { display: block; width: auto; padding: 0; border: 0; text-align: left !important; }
    .dashboard-recent-table tbody td::before { display: block; margin-bottom: 1px; color: var(--text-muted); content: attr(data-label); font-size: .61rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
    .dashboard-recent-table tbody td:nth-child(1), .dashboard-recent-table tbody td:nth-child(2) { grid-column: 1; }
    .dashboard-recent-table tbody td:nth-child(3), .dashboard-recent-table tbody td:nth-child(4), .dashboard-recent-table tbody td:nth-child(5) { grid-column: 2; }
    .dashboard-recent-table tbody td:nth-child(3) { grid-row: 1; }
    .dashboard-recent-table tbody td:nth-child(4) { grid-row: 2; }
    .dashboard-recent-table tbody td:nth-child(5) { grid-row: 3; align-self: end; }
    .dashboard-recent-table .dashboard-empty-row, .dashboard-recent-table .dashboard-empty-row td { display: block; }
    .dashboard-recent-table .dashboard-empty-row td::before { display: none; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: 14px; }
    .dashboard-welcome__actions { width: 100%; }
    .dashboard-date, .dashboard-new-report { flex: 1; justify-content: center; }
    .report-browser__overview, .monthly-workspace__hero { align-items: flex-start; flex-direction: column; gap: 13px; }
    .report-browser__totals { width: 100%; padding: 8px 0 0; text-align: left; border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
    .report-browser__command, .monthly-workspace__command { grid-template-columns: 1fr; }
    .report-browser__search, .monthly-workspace__search { width: 100%; }
    .report-browser__tools, .monthly-workspace__actions { justify-content: space-between; }
    .report-browser__criteria, .monthly-workspace__scope { grid-template-columns: 1fr; }
    .report-browser__clear, .monthly-workspace__scope > a { justify-self: start; }
    .monthly-workspace__completion { width: 100%; }
    .monthly-workspace__summary { grid-template-columns: 1fr; }
    .monthly-preview-intro { align-items: flex-start; flex-direction: column; }
    .monthly-workspace__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
    .monthly-paper-control { grid-column: 1 / -1; }
    .monthly-paper-control .form-select { width: 100%; flex: 1; }
    .monthly-workspace__actions .btn { width: 100%; }
    .settings-list-toolbar { grid-template-columns: 1fr; align-items: stretch; gap: 8px; }
    .settings-search { width: 100%; }
    .settings-section-header { align-items: flex-start; }
    .settings-add-panel { grid-template-columns: 1fr; gap: 10px; }
}

@media screen and (max-width: 767.98px) {
    .print-preview-page .print-sheet { width: calc(100% - 20px); margin: 16px auto; padding: 14px 10px; }
    .print-preview-page .institution-header { grid-template-columns: 56px minmax(0, 1fr); }
    .print-preview-page .institution-logo { min-height: 64px; }
    .print-preview-page .official-header-logo { width: 52px; height: 52px; }
    .print-preview-page .institution-details { min-width: 0; padding-left: 6px; font-size: 9px; }
    .print-preview-page .office-name { font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
    .print-preview-page .report-title-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .print-preview-page .technical-report-title { grid-column: 1; font-size: 12pt; }
    .print-preview-page .print-report-details { font-size: 8pt; }
    .print-preview-page .print-report-details th { width: 24%; }
    .print-preview-page .print-report-details td { width: 26%; }
    .print-preview-page .print-report-details > tbody > tr > th,
    .print-preview-page .print-report-details > tbody > tr > td { padding: 3px 4px; }
    .print-preview-page .print-text-content { padding: 6px 7px; font-size: 9pt; }
    .print-preview-page .document-control-row { grid-template-columns: minmax(0, 1fr); }
    .print-preview-page .certification-logos { margin-top: 4px; }
}

@media (max-width: 575.98px) {
    .topbar { padding: 0 14px; }
    .topbar-eyebrow { display: none; }
    .topbar-title { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .content-wrap { padding-right: 14px; padding-left: 14px; }
    .page-header { padding: 13px 14px 15px; }
    .page-header__icon { width: 42px; height: 42px; flex-basis: 42px; }
    .page-header h1 { font-size: 1.35rem; }
    .app-footer { display: block; padding-right: 14px; padding-left: 14px; }
    .app-footer span { display: block; }
    .stat-card { min-height: 112px; }
    .dashboard-kpi-grid { grid-template-columns: 1fr; }
    .kpi-card { min-height: 94px; }
    .status-overview { grid-template-columns: 1fr; }
    .status-chart-wrapper { height: 180px; }
    .status-breakdown { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-panel__header { align-items: flex-start; }
    .dashboard-panel__title p { white-space: normal; }
    .dashboard-panel__meta > span:last-child { display: none; }
    .dashboard-welcome__actions { display: grid; grid-template-columns: 1fr; }
    .dashboard-date, .dashboard-new-report { width: 100%; }
    .report-facts { grid-template-columns: 1fr; }
    .report-fact, .report-fact:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--border-light); }
    .report-fact-wide { grid-column: span 1; }
    .report-detail-header { padding: 19px; }
    .report-narrative { padding: 16px; }
    .modal-dialog { margin: .75rem; }
    .reports-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .reports-search .btn { display: none; }
    .reports-filter-button { padding-right: .75rem; padding-left: .75rem; }
    .reports-filter-modal .modal-footer { display: grid; grid-template-columns: 1fr; }
    .reports-filter-modal .modal-footer .btn { width: 100%; }
    .reports-filter-modal .modal-footer .me-auto { margin-right: 0 !important; }
    .print-reports-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .print-reports-toolbar .print-reports-button { grid-column: 1 / -1; width: 100%; }
    .mobile-report-details { grid-template-columns: 1fr; }
    .mobile-report-details .full { grid-column: auto; }
    .mobile-report-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .monthly-mobile-card dl { grid-template-columns: 1fr; }
    .settings-tabs, .settings-rail-nav { grid-template-columns: 1fr; }
    .settings-tab { min-height: 50px; }
    .settings-management-header { align-items: flex-start; flex-direction: column; }
    .settings-directory-stack { padding: 10px; }
    .settings-section-card .card-body { padding: 12px; }
    .settings-add-form > .col, .settings-add-form > .col-auto { width: 100%; flex: 0 0 100%; }
    .settings-add-form .btn { width: 100%; }
    .reports-table thead { display: none; }
    .reports-table, .reports-table tbody { display: block; }
    .reports-table tbody { padding: 10px; background: var(--page-bg); }
    .reports-table tbody tr { display: grid; margin-bottom: 12px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
    .reports-table tbody tr:last-child { margin-bottom: 0; }
    .reports-table tbody td { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 7px 0; border: 0; text-align: right; }
    .reports-table tbody td::before { content: attr(data-label); flex: 0 0 82px; color: var(--text-muted); font-size: .7rem; font-weight: 650; text-align: left; text-transform: uppercase; }
    .reports-table .table-preview { max-width: 190px; white-space: normal; text-align: right; }
    .reports-table td[data-label="Reason"], .reports-table td[data-label="Output"], .reports-table td[data-label="Fixed"] { display: none; }
    .reports-table td[data-label="Actions"] { align-items: center; margin-top: 5px; padding-top: 11px; border-top: 1px solid var(--border-light); }
}

@media (min-width: 992px) and (max-height: 800px) {
    .dashboard-screen { --topbar-height: 64px; }
    .dashboard-screen .content-wrap { padding-top: calc(var(--topbar-height) + 10px); padding-bottom: 14px; }
    .dashboard-page { gap: 9px; }
    .dashboard-welcome { min-height: 82px; padding: 12px 18px; }
    .dashboard-welcome p { margin-top: 3px; }
    .dashboard-date, .dashboard-new-report { min-height: 46px; }
    .kpi-card { min-height: 82px; padding: 10px 13px; }
    .kpi-card__icon { width: 30px; height: 30px; }
    .dashboard-panel__header { min-height: 48px; padding: 7px 12px; }
    .dashboard-panel__icon { width: 30px; height: 30px; flex-basis: 30px; }
    .dashboard-chart { height: 158px; min-height: 158px; padding-top: 5px; padding-bottom: 7px; }
    .status-overview { min-height: 158px; padding-top: 5px; padding-bottom: 7px; }
    .status-chart-wrapper { height: 144px; min-height: 144px; }
    .dashboard-recent-table > :not(caption) > * > * { padding-top: .3rem; padding-bottom: .3rem; }
    .office-cell__mark { width: 25px; height: 25px; flex-basis: 25px; }
    .top-offices-list { gap: 5px; padding-top: 7px; padding-bottom: 8px; }
}

/* Keep the New Report form compact on screen without changing its printed layout. */
@media screen {
    .report-form-screen .form-document-header { display: none; }
}

@media screen and (min-width: 768px) {
    .new-report-screen { --topbar-height: 64px; }
    .new-report-screen .content-wrap { min-height: 0; padding-top: calc(var(--topbar-height) + clamp(7px,1vh,11px)); padding-bottom: clamp(7px,1vh,11px); }
    .new-report-screen .page-header { gap: 4px; margin-bottom: clamp(7px,1vh,10px); padding: 8px 13px 9px; }
    .new-report-screen .page-header__trail, .new-report-screen .page-header p, .new-report-screen .app-footer { display: none; }
    .new-report-screen .page-header__icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
    .new-report-screen .page-header h1 { font-size: clamp(1.05rem,2vh,1.3rem); }
    .new-report-screen .report-editor__grid { gap: clamp(8px,1.1vh,12px); }
    .new-report-screen .report-form-section { padding: clamp(9px,1.15vh,13px) 13px; }
    .new-report-screen .report-form-section__header { margin-bottom: clamp(6px,.8vh,9px); padding-bottom: clamp(6px,.8vh,9px); }
    .new-report-screen .report-form-section--narrative textarea.form-control { height: clamp(76px,11vh,102px); min-height: 76px; }
    .new-report-screen .report-editor__footer { margin-top: clamp(7px,1vh,10px); padding: clamp(7px,1vh,9px) 12px; }
    .new-report-screen .report-editor__footer .btn { min-height: 38px; padding: .36rem .7rem; font-size: .77rem; }
}

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

@media print {
    @page { size: A4 portrait; margin: 0; }
    html,
    body { width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: visible; color: #000; background: #fff !important; font-family: Arial, Helvetica, sans-serif; }
    .app-sidebar, .app-topbar, .topbar, .app-footer, .sidebar-backdrop, .no-print, .print-toolbar, .print-help, nav, aside, .btn, .filter-card, .alert, .page-header { display: none !important; }
    .app-shell { margin-left: 0 !important; }
    .content-wrap, .print-sheet, .print-document, .print-page { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
    a[href]::after { content: none !important; }
    .card, .official-card { border: 0 !important; box-shadow: none !important; }
    .document-header { border-bottom-color: #000; }
    .document-header::after { background: #000; }
    .table { page-break-inside: auto; }
    .table thead th { position: static; color: #000; background: #fff !important; }
    tr, .avoid-break, .signature-grid, .official-print-header, .signature-section, .document-control-footer { break-inside: avoid; page-break-inside: avoid; }
    .official-print-header { margin-top: 0; }
    .institution-email { color: #000; }
    .technical-report-title { margin-top: 12px; }
    .document-control-row { flex-direction: row; }
    .document-control-footer { overflow: visible; }
    .document-control-table { min-width: 0; }
    .office-name { font-size: 16px; white-space: nowrap; }
    .signature-section { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 35mm !important; width: 100% !important; }
    .signature-column { display: block !important; width: auto !important; min-width: 0 !important; text-align: center !important; writing-mode: horizontal-tb !important; transform: none !important; }
    .signature-role,
    .signature-writing-space,
    .signature-person-name,
    .signature-caption { writing-mode: horizontal-tb !important; text-orientation: mixed !important; transform: none !important; word-break: normal !important; overflow-wrap: normal !important; }
    .signature-role { white-space: nowrap !important; }
    .signature-person-name { white-space: normal !important; }
    .print-page { display: flex !important; width: 100% !important; min-height: var(--paper-height) !important; padding: 20mm 10mm !important; box-sizing: border-box !important; flex-direction: column !important; }
    .print-page-content { min-height: 0 !important; flex: 1 0 auto !important; }
    .document-control-footer { flex: 0 0 auto !important; margin-top: auto !important; }
    .print-text-content { min-height: 34mm !important; height: auto !important; max-height: none !important; overflow: visible !important; white-space: normal !important; }
    .monthly-report-screen .monthly-print-only { display: block !important; }
    .monthly-report-screen .monthly-print-summary { display: flex !important; }
    .monthly-report-screen .monthly-preview-card,
    .monthly-report-screen .monthly-table-wrap { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; border: 0 !important; box-shadow: none !important; }
    .monthly-report-screen .monthly-table-wrap { display: block !important; }
    .monthly-report-screen .monthly-print-page { display: flex !important; width: 100% !important; min-height: 210mm !important; margin: 0 !important; padding: 7mm !important; box-sizing: border-box !important; -webkit-box-decoration-break: clone !important; box-decoration-break: clone !important; flex-direction: column !important; }
    .monthly-report-screen.monthly-paper-long .monthly-print-page { min-height: 215.9mm !important; }
    .monthly-report-screen .monthly-print-content { min-width: 0; min-height: 0; flex: 1 0 auto; }
    .monthly-report-screen .monthly-print-page > .document-control-footer { flex: 0 0 auto !important; margin-top: auto !important; padding-top: 2.5mm; }
    .monthly-report-screen .official-print-header { margin: 0 0 1.5mm; }
    .monthly-report-screen .monthly-print-title { margin: 1.5mm 0 2mm !important; }
    .monthly-report-screen .monthly-print-heading { font-size: 14pt; }
    .monthly-report-screen .monthly-print-title p { margin-top: .7mm; }
    .monthly-report-screen .monthly-signature-section { margin-top: 4mm; }
    .monthly-report-screen .monthly-report-table { width: 100% !important; max-width: 100% !important; margin: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 6.8pt; line-height: 1.16; }
    .monthly-report-screen .monthly-report-table thead { display: table-header-group !important; }
    .monthly-report-screen .monthly-report-table tfoot { display: table-footer-group !important; }
    .monthly-report-screen .monthly-report-table tbody { display: table-row-group !important; }
    .monthly-report-screen .monthly-report-table th,
    .monthly-report-screen .monthly-report-table td { height: auto !important; max-height: none !important; padding: 2px 3px !important; overflow: visible !important; color: #000 !important; background: #fff !important; border: .7px solid #000 !important; font-size: 6.8pt; line-height: 1.16; overflow-wrap: break-word !important; word-break: normal !important; white-space: normal !important; writing-mode: horizontal-tb !important; text-orientation: mixed !important; vertical-align: top !important; }
    .monthly-report-screen .monthly-report-table th { position: static !important; font-size: 7pt; font-weight: 700; text-align: left; }
    .monthly-report-screen .monthly-report-table tbody tr { height: auto !important; max-height: none !important; overflow: visible !important; break-inside: avoid; page-break-inside: avoid; }
    .monthly-report-screen .monthly-text-content { height: auto !important; max-height: none !important; overflow: visible !important; overflow-wrap: break-word !important; word-break: normal !important; white-space: normal !important; writing-mode: horizontal-tb !important; }
    .monthly-report-screen .monthly-report-table .empty-state { min-height: 0; padding: 6mm 4mm !important; }
}
