:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #eef4fa;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dbe5f0;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --primary-soft: #ccfbf1;
    --accent: #06b6d4;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #059669;
    --info: #0284c7;
    --sidebar: #081b2e;
    --sidebar-2: #0d2741;
    --sidebar-text: #b9cbe0;
    --sidebar-active: #ffffff;
    --topbar: rgba(243, 247, 251, 0.86);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
}

[data-bs-theme="dark"] {
    --bg: #07111f;
    --surface: #0d1b2e;
    --surface-2: #10233a;
    --surface-3: #142b46;
    --text: #e8eefc;
    --muted: #93a7c0;
    --border: #1f3856;
    --primary: #2dd4bf;
    --primary-strong: #5eead4;
    --primary-soft: rgba(45, 212, 191, 0.12);
    --accent: #38bdf8;
    --danger: #f87171;
    --warning: #fbbf24;
    --success: #34d399;
    --info: #38bdf8;
    --sidebar: #06101d;
    --sidebar-2: #0a1d32;
    --sidebar-text: #9fb4cc;
    --topbar: rgba(7, 17, 31, 0.86);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-strong);
}

::selection {
    background: var(--primary);
    color: #ffffff;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 276px;
    background: linear-gradient(180deg, var(--sidebar-2), var(--sidebar) 45%, #050e18);
    color: var(--sidebar-text);
    padding: 22px 18px;
    overflow-y: auto;
    z-index: 1050;
    transition: transform 0.25s ease;
    border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 22px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22d3ee, #14b8a6 55%, #0f766e);
    color: #04121f;
    font-weight: 900;
    font-size: 19px;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.22);
    flex: 0 0 auto;
}

.brand-text b {
    display: block;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: -0.2px;
}

.brand-text span {
    display: block;
    color: #7f97b3;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #617a96;
    padding: 18px 12px 8px;
    font-weight: 800;
}

.side-nav {
    display: grid;
    gap: 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--sidebar-text);
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: 0.16s ease;
}

.side-link i {
    font-size: 17px;
    width: 20px;
    text-align: center;
    color: #7891ab;
    transition: 0.16s ease;
}

.side-link:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.08);
}

.side-link.active {
    color: var(--sidebar-active);
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.17), rgba(56, 189, 248, 0.05));
    border-color: rgba(45, 212, 191, 0.22);
    box-shadow: inset 3px 0 0 #2dd4bf;
}

.side-link.active i {
    color: #5eead4;
}

.side-link .badge {
    margin-left: auto;
    font-size: 10px;
}

.sidebar-user {
    margin-top: 22px;
    padding: 13px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user .avatar {
    width: 38px;
    height: 38px;
}

.sidebar-user b {
    color: #ffffff;
    display: block;
    font-size: 12.5px;
}

.sidebar-user span {
    color: #7891ab;
    display: block;
    font-size: 11px;
}

.main-panel {
    margin-left: 276px;
    width: calc(100% - 276px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 26px;
    background: var(--topbar);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.topbar-title {
    min-width: 0;
    flex: 1;
}

.topbar-title h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.topbar-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-grid;
    place-items: center;
    transition: 0.16s ease;
    position: relative;
    flex: 0 0 auto;
}

.icon-btn:hover {
    background: var(--surface-2);
    color: var(--primary);
    border-color: var(--primary);
}

.icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--surface);
}

.content {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 26px;
    flex: 1;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.page-head h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.page-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.card-soft {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-soft .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-soft .card-header h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 800;
}

.card-soft .card-body {
    padding: 22px;
}

.card-soft .table {
    margin-bottom: 0;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 18px;
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin: 4px 0;
}

.stat-card .stat-hint {
    color: var(--muted);
    font-size: 12px;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    right: -45px;
    bottom: -45px;
    background: radial-gradient(circle, var(--primary-soft), transparent 70%);
    pointer-events: none;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #eafffb;
    background: linear-gradient(125deg, #073d3b, #0f766e 48%, #0e7490);
    box-shadow: 0 24px 60px rgba(15, 118, 110, 0.22);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -120px;
    top: -160px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 65%);
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: 60px;
    bottom: -150px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card h2 {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin: 0 0 6px;
}

.hero-card p {
    color: rgba(234, 255, 251, 0.74);
    margin: 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: #eafffb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.hero-actions .btn {
    border-radius: 12px;
    font-weight: 800;
    padding: 10px 16px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--surface-3);
    flex: 0 0 auto;
    border: 1px solid var(--border);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 28px;
}

.avatar-xl {
    width: 128px;
    height: 128px;
    border-radius: 36px;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-soft), var(--surface-3));
    color: var(--primary);
    font-weight: 900;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip b {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
}

.user-chip span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.soft-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.btn-brand {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--primary-strong);
    --bs-btn-hover-border-color: var(--primary-strong);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--primary-strong);
    --bs-btn-active-border-color: var(--primary-strong);
    border-radius: 12px;
    font-weight: 800;
    padding: 10px 16px;
}

.btn-soft {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    font-weight: 700;
    padding: 9px 14px;
}

.btn-soft:hover {
    background: var(--surface-3);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
}

.form-control,
.form-select {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 13.5px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.form-text {
    color: var(--muted);
    font-size: 11px;
}

.input-group-text {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--muted);
    border-radius: 12px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    vertical-align: middle;
}

.table > thead th {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom-width: 1px;
    white-space: nowrap;
    padding: 12px 14px;
}

.table > tbody td {
    padding: 13px 14px;
    border-color: var(--border);
    font-size: 13px;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: var(--surface-2);
}

.badge {
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.42em 0.65em;
    border-radius: 8px;
    font-size: 10.5px;
}

.text-bg-success {
    background: rgba(5, 150, 105, 0.12) !important;
    color: #047857 !important;
}

.text-bg-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #b45309 !important;
}

.text-bg-danger {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b91c1c !important;
}

.text-bg-info {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
}

.text-bg-secondary {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
}

[data-bs-theme="dark"] .text-bg-success {
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .text-bg-warning {
    color: #fcd34d !important;
}

[data-bs-theme="dark"] .text-bg-danger {
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .text-bg-info {
    color: #7dd3fc !important;
}

[data-bs-theme="dark"] .text-bg-secondary {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #cbd5e1 !important;
}

.alert {
    border-radius: 14px;
    border-width: 1px;
    font-size: 13px;
    font-weight: 600;
}

.alert-success {
    background: rgba(5, 150, 105, 0.09);
    border-color: rgba(5, 150, 105, 0.25);
    color: #047857;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.alert-info {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.22);
    color: #0369a1;
}

[data-bs-theme="dark"] .alert-success {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .alert-danger {
    color: #fca5a5;
}

[data-bs-theme="dark"] .alert-warning {
    color: #fcd34d;
}

[data-bs-theme="dark"] .alert-info {
    color: #7dd3fc;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-3);
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.nav-tabs {
    border-bottom-color: var(--border);
    gap: 4px;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 12.5px;
}

.nav-tabs .nav-link.active {
    background: var(--surface);
    border-color: var(--border) var(--border) var(--surface);
    color: var(--primary);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    font-size: 13px;
}

.dropdown-item {
    border-radius: 9px;
    padding: 8px 10px;
    font-weight: 600;
}

.dropdown-item:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.dropdown-header {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.empty-state {
    padding: 46px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state i {
    font-size: 42px;
    color: var(--border);
    display: block;
    margin-bottom: 12px;
}

.empty-state h4 {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 5px;
}

.empty-state p {
    margin: 0;
    font-size: 13px;
}

.timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding-left: 0;
}

.timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    flex: 0 0 auto;
    z-index: 1;
}

.timeline-body {
    min-width: 0;
    padding-top: 2px;
}

.timeline-body b {
    display: block;
    font-size: 13px;
}

.timeline-body span {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.attendance-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.attendance-time {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin: 12px 0 5px;
}

.attendance-date {
    color: var(--muted);
    font-size: 13px;
}

.attendance-steps {
    display: grid;
    gap: 10px;
}

.attendance-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.attendance-step .step-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}

.attendance-step b {
    font-size: 12.5px;
    display: block;
}

.attendance-step span {
    color: var(--muted);
    font-size: 11px;
}

.camera-shell {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 3 / 4;
    max-height: 520px;
    display: grid;
    place-items: center;
}

.camera-shell video,
.camera-shell canvas,
.camera-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-shell .camera-overlay {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(94, 234, 212, 0.5);
    border-radius: 22px;
    pointer-events: none;
    margin: 18px;
}

.camera-help {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.65);
    color: #e2e8f0;
    font-size: 11.5px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.qr-shell {
    border-radius: 20px;
    overflow: hidden;
    background: #020617;
    min-height: 300px;
}

.id-orientation-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.id-orientation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.id-orientation-btn:hover {
    color: var(--text);
}

.id-orientation-btn.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .id-orientation-btn.is-active {
    background: var(--surface-3);
    color: var(--primary-strong);
}

.id-card-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 24px;
    border: 1px dashed var(--border);
    background:
        radial-gradient(circle at 18% 18%, rgba(15, 118, 110, 0.09), transparent 55%),
        radial-gradient(circle at 84% 82%, rgba(6, 182, 212, 0.1), transparent 55%),
        var(--surface-2);
}

.id-card {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-radius: 3.4mm;
    background: linear-gradient(145deg, #0f766e, #0e7490 55%, #0c4a6e);
    box-shadow: 0 22px 50px rgba(15, 118, 110, 0.28);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.id-card--landscape {
    width: 85.6mm;
    height: 53.98mm;
    padding: 4.4mm 5.2mm;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16mm;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "brand brand"
        "body qr"
        "meta meta";
    gap: 1.8mm 4mm;
}

.id-card--portrait {
    width: 53.98mm;
    height: 85.6mm;
    padding: 3.8mm 4.2mm;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.4mm;
}

.id-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: -60px;
    top: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.id-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    left: -55px;
    bottom: -60px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.id-card .id-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.id-card .id-brand i {
    font-size: 11px;
    line-height: 1;
}

.id-card .id-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card .id-body {
    grid-area: body;
    display: flex;
    align-items: center;
    gap: 3.2mm;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.id-card .id-identity {
    min-width: 0;
}

.id-card .id-photo {
    width: 14.5mm;
    height: 17mm;
    flex: 0 0 auto;
    border-radius: 2.4mm;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.25);
}

.id-card .id-name {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.12;
    margin: 0;
    overflow-wrap: anywhere;
}

.id-card .id-position {
    font-size: 9.5px;
    opacity: 0.82;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.id-card .id-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2mm 3mm;
    min-width: 0;
    position: relative;
    z-index: 1;
    padding-top: 1.6mm;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.id-card .id-meta > div {
    min-width: 0;
}

.id-card .id-meta span {
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
    white-space: nowrap;
}

.id-card .id-meta b {
    display: block;
    font-size: 9px;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card .id-qr {
    grid-area: qr;
    align-self: center;
    justify-self: end;
    width: 16mm;
    height: 16mm;
    background: #ffffff;
    border-radius: 2.2mm;
    padding: 1.2mm;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.22);
    position: relative;
    z-index: 1;
}

.id-card .id-qr img,
.id-card .id-qr canvas {
    width: 100% !important;
    height: 100% !important;
}

.id-card--portrait .id-brand {
    justify-content: center;
    text-align: center;
}

.id-card--portrait .id-body {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 2mm;
    margin-top: 0.4mm;
    flex-shrink: 0;
}

.id-card--portrait .id-photo {
    width: 17mm;
    height: 20mm;
    border-radius: 2.6mm;
}

.id-card--portrait .id-name {
    font-size: 18px;
    line-height: 1.08;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.id-card--portrait .id-name--long {
    font-size: 16px;
}

.id-card--portrait .id-name--xlong {
    font-size: 14px;
}

.id-card--portrait .id-identity {
    width: 100%;
}

.id-card--portrait .id-position {
    font-size: 9.5px;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.id-card--portrait .id-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8mm;
    padding: 1.5mm 2.4mm;
    border-top: 0;
    border-radius: 2.2mm;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.id-card--portrait .id-meta > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.id-card--portrait .id-meta span {
    font-size: 7px;
}

.id-card--portrait .id-meta b {
    margin-top: 0;
    font-size: 9px;
    text-align: right;
}

.id-card--portrait .id-qr {
    align-self: center;
    justify-self: auto;
    margin-top: auto;
    width: 15.5mm;
    height: 15.5mm;
    flex-shrink: 0;
}

.id-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.id-card-toolbar .id-orientation-toggle {
    margin-bottom: 0;
}

.id-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
    gap: 20px;
}

.id-card-tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.id-card-tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.id-card-tile-head > div {
    min-width: 0;
}

.id-card-tile-head b {
    display: block;
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card-tile-head span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-card-tile .id-card-stage {
    flex: 1;
    padding: 16px;
}

.id-card-tile-foot {
    display: flex;
    gap: 8px;
}

.id-card-tile-foot .btn:first-child {
    flex: 1;
}

@media (max-width: 575.98px) {
    .id-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .id-card-tile {
        padding: 12px;
    }
    .id-card-tile .id-card-stage {
        padding: 10px 6px;
    }
}

.id-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.id-template-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.id-template-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.id-template-preview {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 14px;
    border: 2px solid transparent;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.id-template-preview b {
    font-size: 12.5px;
    line-height: 1.2;
}

.id-template-preview small {
    font-size: 9.5px;
    opacity: 0.78;
}

.id-template-option input:focus-visible + .id-template-preview,
.id-template-option input:checked + .id-template-preview {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.attendance-qr {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

.attendance-qr img,
.attendance-qr canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

@media (max-width: 420px) {
    .id-card-stage {
        padding: 18px 10px;
    }
}

@media (max-width: 380px) {
    .id-card--landscape {
        zoom: 0.9;
    }
}

@media (max-width: 340px) {
    .id-card--landscape {
        zoom: 0.8;
    }
}

.bottom-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1040;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 7px;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
}

.bottom-nav a i {
    font-size: 18px;
}

.bottom-nav a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(2px);
}

.sidebar-backdrop.show {
    display: block;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(20, 184, 166, 0.16), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(14, 116, 144, 0.18), transparent 35%),
        linear-gradient(145deg, #07111f, #0b1f33 55%, #06101d);
}

.auth-card {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.auth-visual {
    position: relative;
    padding: 46px;
    color: #eafffb;
    background: linear-gradient(145deg, #0f766e, #0e7490 50%, #0c4a6e);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -170px;
    top: -180px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.35), transparent 65%);
}

.auth-visual::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    left: -140px;
    bottom: -140px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-visual h1 {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -1.4px;
    margin: 48px 0 14px;
    position: relative;
    z-index: 1;
}

.auth-visual p {
    color: rgba(234, 255, 251, 0.72);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.auth-features {
    display: grid;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.auth-feature {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: rgba(234, 255, 251, 0.86);
}

.auth-feature i {
    color: #5eead4;
}

.auth-form {
    background: #ffffff;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-bs-theme="dark"] .auth-form {
    background: #0d1b2e;
}

.auth-form .brand {
    padding: 0 0 24px;
}

.auth-form .brand-text b {
    color: var(--text);
}

.auth-form h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.7px;
    margin: 0 0 6px;
}

.auth-form .subtitle {
    color: var(--muted);
    margin-bottom: 26px;
}

.auth-form .form-control {
    padding: 12px 14px;
}

.auth-form .btn-brand {
    padding: 12px 16px;
}

.auth-footer {
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-theme {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.face-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 620px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.chat-sidebar {
    border-right: 1px solid var(--border);
    background: var(--surface-2);
    overflow-y: auto;
}

.chat-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
}

.chat-bubble {
    max-width: 76%;
    padding: 10px 13px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.5;
    align-self: flex-start;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.chat-bubble small {
    display: block;
    margin-top: 4px;
    font-size: 9.5px;
    opacity: 0.6;
}

.chat-compose {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.chat-compose input {
    flex: 1;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: 0.15s ease;
}

.list-item:hover {
    background: var(--surface-2);
    border-color: var(--border);
}

.list-item.active {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.list-item b {
    display: block;
    font-size: 12.5px;
}

.list-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.map-preview {
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    color: var(--muted);
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.separator {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.min-w-0 {
    min-width: 0;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-muted {
    color: var(--muted) !important;
}

.fw-black {
    font-weight: 900;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-lift {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skeleton {
    background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite;
    border-radius: 10px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    background: rgba(7, 17, 31, 0.35);
    backdrop-filter: blur(3px);
}

.page-loader.show {
    display: grid;
}

.spinner-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1199.98px) {
    .attendance-hero {
        grid-template-columns: 1fr;
    }
    .id-card-stage {
        padding: 18px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-105%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-panel {
        margin-left: 0;
        width: 100%;
    }
    .content {
        padding: 18px 16px 96px;
    }
    .topbar {
        padding: 11px 16px;
    }
    .bottom-nav {
        display: grid;
    }
    .auth-card {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
    .auth-form {
        padding: 34px 28px;
    }
    .chat-layout {
        grid-template-columns: 1fr;
        min-height: 560px;
    }
    .chat-sidebar {
        display: none;
    }
    .page-head h2 {
        font-size: 21px;
    }
}

@media (max-width: 575.98px) {
    .content {
        padding: 14px 12px 94px;
    }
    .hero-card {
        padding: 22px;
        border-radius: 22px;
    }
    .hero-card h2 {
        font-size: 21px;
    }
    .stat-card {
        padding: 18px;
    }
    .stat-card .stat-value {
        font-size: 25px;
    }
    .card-soft .card-body {
        padding: 18px;
    }
    .attendance-time {
        font-size: 43px;
    }
    .auth-page {
        padding: 12px;
    }
    .auth-form {
        padding: 28px 20px;
    }
    .auth-form h2 {
        font-size: 23px;
    }
}

.report-profile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, #0b1f33 0%, #0d3b4a 55%, #115e59 100%);
    box-shadow: 0 20px 48px rgba(8, 27, 46, 0.22);
}

.report-profile::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.25), transparent 68%);
}

.report-profile::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: 36%;
    bottom: -140px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.report-profile > * {
    position: relative;
    z-index: 1;
}

.report-profile-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.report-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.report-profile h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.report-profile-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 12.5px;
}

.report-profile-line i {
    color: #5eead4;
}

.report-profile-line--soft {
    color: #94a3b8;
    font-size: 11.5px;
}

.report-profile-line .dot {
    color: #64748b;
}

.report-profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(125px, 1fr));
    gap: 12px 24px;
    min-width: 330px;
}

.report-profile-meta span {
    display: block;
    color: #8fa6bd;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.report-profile-meta b {
    display: block;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.report-kpi {
    --kpi-color: #0f766e;
    --kpi-soft: rgba(15, 118, 110, 0.1);
    position: relative;
    overflow: hidden;
    padding: 16px 16px 14px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.report-kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--kpi-color);
}

.report-kpi-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 10px;
    background: var(--kpi-soft);
    color: var(--kpi-color);
    font-size: 16px;
}

.report-kpi-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.report-kpi-value {
    color: var(--kpi-color);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 2px 0;
}

.report-kpi-value--sm {
    font-size: 18px;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.report-kpi-hint {
    color: var(--muted);
    font-size: 10.5px;
}

.report-kpi--slate {
    --kpi-color: #475569;
    --kpi-soft: rgba(71, 85, 105, 0.1);
}

.report-kpi--teal {
    --kpi-color: #0f766e;
    --kpi-soft: rgba(15, 118, 110, 0.1);
}

.report-kpi--green {
    --kpi-color: #047857;
    --kpi-soft: rgba(5, 150, 105, 0.11);
}

.report-kpi--amber {
    --kpi-color: #b45309;
    --kpi-soft: rgba(245, 158, 11, 0.13);
}

.report-kpi--blue {
    --kpi-color: #0369a1;
    --kpi-soft: rgba(2, 132, 199, 0.11);
}

.report-kpi--red {
    --kpi-color: #b91c1c;
    --kpi-soft: rgba(220, 38, 38, 0.1);
}

.report-kpi--violet {
    --kpi-color: #6d28d9;
    --kpi-soft: rgba(109, 40, 217, 0.1);
}

[data-bs-theme="dark"] .report-kpi--slate {
    --kpi-color: #cbd5e1;
    --kpi-soft: rgba(203, 213, 225, 0.1);
}

[data-bs-theme="dark"] .report-kpi--teal {
    --kpi-color: #2dd4bf;
    --kpi-soft: rgba(45, 212, 191, 0.12);
}

[data-bs-theme="dark"] .report-kpi--green {
    --kpi-color: #34d399;
    --kpi-soft: rgba(52, 211, 153, 0.12);
}

[data-bs-theme="dark"] .report-kpi--amber {
    --kpi-color: #fbbf24;
    --kpi-soft: rgba(251, 191, 36, 0.12);
}

[data-bs-theme="dark"] .report-kpi--blue {
    --kpi-color: #7dd3fc;
    --kpi-soft: rgba(125, 211, 252, 0.12);
}

[data-bs-theme="dark"] .report-kpi--red {
    --kpi-color: #fca5a5;
    --kpi-soft: rgba(252, 165, 165, 0.12);
}

[data-bs-theme="dark"] .report-kpi--violet {
    --kpi-color: #c4b5fd;
    --kpi-soft: rgba(196, 181, 253, 0.12);
}

.report-table {
    min-width: 860px;
}

.report-table--recap {
    min-width: 1040px;
}

.report-table--compact {
    min-width: 620px;
}

.report-table thead th {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.report-table tbody td {
    border-color: var(--border);
}

.report-table--recap tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.report-employee-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
}

.report-employee-link:hover {
    color: inherit;
}

.report-employee-link:hover b {
    color: var(--primary);
}

.report-employee-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.report-employee-link b {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
}

.report-employee-meta {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.report-actions {
    display: inline-flex;
    gap: 6px;
}

.report-action {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    transition: 0.15s ease;
}

.report-action:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.report-action--pdf:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
}

.report-info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.report-info-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--border);
}

.report-info-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.report-info-list dt {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-info-list dd {
    margin: 0;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
}

.report-note {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
}

.report-note i {
    color: var(--warning);
    font-size: 16px;
    line-height: 1.2;
}

.report-note b {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 12px;
}

.report-note p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1399.98px) {
    .report-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .report-profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-profile-meta {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .report-profile {
        padding: 18px;
    }

    .report-profile-main {
        align-items: flex-start;
    }

    .report-profile-avatar {
        width: 58px;
        height: 58px;
        border-radius: 17px;
    }

    .report-profile h3 {
        font-size: 18px;
    }

    .report-profile-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media print {
    @page {
        margin: 8mm;
    }
    .sidebar,
    .topbar,
    .bottom-nav,
    .no-print,
    .btn,
    .report-actions {
        display: none !important;
    }
    .main-panel {
        margin: 0 !important;
        width: 100% !important;
    }
    .content {
        padding: 0 !important;
        max-width: none;
    }
    body {
        background: #ffffff;
        color: #000000;
    }
    .card-soft,
    .stat-card {
        border: 1px solid #cccccc;
        box-shadow: none;
    }
    .id-card-stage {
        padding: 0 !important;
        border: 0 !important;
        background: none !important;
    }
    .id-card {
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .id-card--landscape {
        zoom: 1 !important;
    }
}
