/* ======================================
   Sportix System — Sport Blue Theme
   ====================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #1e88e5;
    --primary-dark: #0d47a1;
    --primary-light: #64b5f6;
    --primary-gradient: linear-gradient(135deg, #1e88e5, #64b5f6);
    --sidebar-bg: #E3F2FD;
    --sidebar-hover: #BBDEFB;
    --sidebar-active: #1e88e5;
    --body-bg: #f0f4f8;
    --card-bg: #ffffff;
    --text-dark: #1a2540;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --border-color: #e3e7ee;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 2px 10px rgba(20,40,80,0.08);
    --shadow-lg: 0 10px 40px rgba(20,40,80,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Tajawal', sans-serif;
    background: var(--body-bg);
    color: var(--text-dark);
    direction: rtl;
    min-height: 100vh;
    font-size: 14px;
    overflow-x: hidden;
}
a { text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ======= LOGIN ======= */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #E3F2FD 0%, #90CAF9 50%, #1e88e5 100%);
    position: relative; overflow: hidden;
    padding: 24px;
}
.login-page::before {
    content: ''; position: absolute;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(13,71,161,0.18) 0%, transparent 70%);
    top: -110px; right: -110px; border-radius: 50%;
}
.login-page::after {
    content: ''; position: absolute;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(13,71,161,0.12) 0%, transparent 70%);
    bottom: -60px; left: -60px; border-radius: 50%;
}
.login-shell {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 430px);
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.login-hero {
    position: relative;
    padding: 42px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(8, 42, 98, 0.92), rgba(10, 79, 160, 0.76));
    box-shadow: 0 32px 70px rgba(7, 41, 97, 0.24);
    color: #fff;
    isolation: isolate;
}
.login-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 88%);
    z-index: -1;
}
.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    animation: riseIn .8s ease both;
}
.login-hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 16px;
    max-width: 560px;
    animation: riseIn .95s ease both;
}
.login-hero-copy {
    font-size: 1.02rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.84);
    max-width: 580px;
    margin-bottom: 28px;
    animation: riseIn 1.05s ease both;
}
.login-feature-list {
    display: grid;
    gap: 14px;
    max-width: 640px;
}
.login-feature {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 15px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    animation: riseIn 1.1s ease both;
}
.login-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    font-size: 1.2rem;
}
.login-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}
.login-feature span:last-child {
    color: rgba(255,255,255,0.76);
    line-height: 1.7;
    font-size: 0.9rem;
}
.login-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.login-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}
.login-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    animation: spinSlow 22s linear infinite;
}
.login-orbit::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 16px rgba(255,255,255,0.8);
}
.login-orbit-one {
    width: 190px;
    height: 190px;
    bottom: -32px;
    left: 28px;
}
.login-orbit-two {
    width: 310px;
    height: 310px;
    top: -120px;
    left: -60px;
    animation-direction: reverse;
    animation-duration: 28s;
}
.login-card {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 45px 40px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(13,71,161,0.18);
    position: relative; z-index: 1;
    border: 1px solid rgba(30,136,229,0.2);
    overflow: hidden;
    align-self: center;
    animation: riseIn 0.8s ease both;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #1e88e5, #64b5f6, #1e88e5, transparent);
    background-size: 200% 100%;
    animation: borderScan 2.5s ease-in-out infinite;
}
@keyframes borderScan { 0% {background-position: 200% 0;} 100% {background-position: -200% 0;} }
.login-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.login-eyebrow {
    color: var(--primary);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.login-title { color: var(--primary-dark); font-weight: 800; font-size: 1.7rem; margin-bottom: 5px; }
.login-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.login-card .form-label { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; margin-bottom: 6px; }
.login-card .input-group {
    border: 2px solid var(--border-color); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
}
.login-card .input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,136,229,0.18); }
.login-card .input-group-text { background: transparent; border: none; color: var(--primary); padding: 12px 15px; }
.login-card .form-control { border: none; padding: 12px 10px; background: transparent; }
.login-card .form-control:focus { box-shadow: none; }
.btn-login {
    background: var(--primary-gradient);
    border: none; border-radius: var(--radius);
    padding: 13px; font-size: 1.1rem; font-weight: 700;
    color: #fff; width: 100%;
    transition: var(--transition);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,136,229,0.4); color: #fff; }
.login-helper-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30,136,229,0.08), rgba(100,181,246,0.16));
    color: var(--primary-dark);
    flex-wrap: wrap;
}
.login-footer {
    position: fixed;
    bottom: 18px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.92);
    z-index: 2;
    font-size: 0.86rem;
}
.login-footer a {
    color: inherit;
}
@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ======= SIDEBAR ======= */
.sidebar {
    position: fixed; top: 0; right: 0;
    width: 260px; height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1000; transition: var(--transition);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(20,40,80,0.08);
    border-left: 1px solid #BBDEFB;
}
.sidebar-brand { padding: 22px 20px; text-align: center; border-bottom: 1px solid #BBDEFB; }
.sidebar-brand img { max-width: 60px; max-height: 60px; border-radius: 12px; margin-bottom: 8px; object-fit: contain; }
.sidebar-brand h5 { color: var(--primary); font-weight: 800; font-size: 1.05rem; margin-bottom: 2px; }
.sidebar-brand small { color: #1565C0; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.brand-icon {
    width: 52px; height: 52px;
    background: var(--primary-gradient); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; color: #fff; font-size: 1.4rem;
}
.sidebar-section {
    padding: 14px 15px 5px; color: #1565C0;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.sidebar-menu { list-style: none; padding: 0 10px; margin: 0; }
.sidebar-menu li { margin-bottom: 3px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    color: #0D47A1; border-radius: var(--radius-sm);
    transition: var(--transition); font-size: 0.9rem; font-weight: 500;
}
.sidebar-menu a:hover { background: var(--sidebar-hover); color: var(--primary-dark); }
.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(30,136,229,0.25), rgba(30,136,229,0.1));
    color: var(--primary-dark); font-weight: 700;
    border-right: 3px solid var(--primary);
}
.sidebar-menu a i { font-size: 1.05rem; width: 22px; text-align: center; }
.sidebar-menu .badge { margin-right: auto; font-size: 0.7rem; padding: 3px 8px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.sidebar-overlay.show { display: block; }

/* ======= TOP NAVBAR ======= */
.top-navbar {
    position: fixed; top: 0; left: 0; right: 260px;
    height: 56px; background: var(--card-bg);
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 998;
}
.sidebar-toggle {
    background: none; border: none; font-size: 1.2rem;
    color: var(--primary); cursor: pointer; display: none;
}
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.nav-icon {
    background: none; border: none; position: relative;
    color: var(--text-dark); font-size: 1.05rem;
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
}
.nav-icon:hover { background: var(--sidebar-bg); color: var(--primary); }
.nav-icon .badge { position: absolute; top: -3px; left: -3px; font-size: 0.65rem; padding: 2px 5px; }
.user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary-gradient); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem;
}

/* ======= MAIN CONTENT ======= */
.main-content {
    margin-right: 260px; margin-top: 56px;
    padding: 24px; min-height: calc(100vh - 56px);
}
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from {opacity:0; transform: translateY(8px);} to {opacity:1; transform: none;} }

/* ======= CARDS ======= */
.page-title { font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); margin-bottom: 22px; }
.card { background: var(--card-bg); border: none; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header {
    background: transparent; border-bottom: 1px solid var(--border-color);
    padding: 14px 18px; font-weight: 700; color: var(--primary-dark);
}
.kpi-card {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 14px;
    border-right: 4px solid var(--primary);
    transition: var(--transition);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--primary-gradient);
    color: #fff; font-size: 1.3rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.kpi-icon.bg-warning { background: linear-gradient(135deg,#ffb300,#ffd54f); }
.kpi-icon.bg-success { background: linear-gradient(135deg,#2e7d32,#66bb6a); }
.kpi-icon.bg-danger  { background: linear-gradient(135deg,#c62828,#ef5350); }
.kpi-icon.bg-info    { background: linear-gradient(135deg,#0277bd,#4fc3f7); }
.kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); }
.kpi-label { color: var(--text-muted); font-size: 0.85rem; }

/* ======= BUTTONS ======= */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 8px 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ======= TABLES ======= */
.table { vertical-align: middle; }
.table thead th {
    background: var(--sidebar-bg); color: var(--primary-dark);
    font-weight: 700; border-bottom: 2px solid var(--primary);
    font-size: 0.85rem;
}
.table tbody tr:hover { background: #f5faff; }

/* ======= BADGES ======= */
.badge { font-weight: 600; padding: 5px 9px; border-radius: 8px; }

/* ======= FORMS ======= */
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 1.5px solid var(--border-color);
    padding: 9px 12px;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,136,229,0.15); }
.form-label { font-weight: 600; color: var(--text-dark); margin-bottom: 5px; font-size: 0.88rem; }

/* ======= DROPDOWNS ======= */
.dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 6px; }
.dropdown-item { border-radius: var(--radius-sm); padding: 8px 12px; }
.dropdown-item:hover { background: var(--sidebar-bg); color: var(--primary-dark); }

/* ======= NOTIFICATION DROPDOWN ======= */
.notification-dropdown {
    position: absolute; top: 110%; left: 0; width: 340px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: none; z-index: 1000; max-height: 480px; overflow: hidden;
}
.notification-dropdown.show { display: block; }
.n-header { padding: 12px 14px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.n-item { padding: 10px 14px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.n-item:hover { background: var(--sidebar-bg); }
.n-item.unread { background: #f5faff; border-right: 3px solid var(--primary); }
.n-footer { padding: 10px 14px; text-align: center; font-size: 0.85rem; }
.n-footer a { color: var(--primary); font-weight: 600; }

/* ======= STATE CHIPS ======= */
.state-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.state-chip i { font-size: 0.7rem; }

/* ======= QUESTION BUILDER ======= */
.section-card { border-right: 4px solid var(--primary); margin-bottom: 18px; }
.question-row { background: #f8fbff; padding: 12px; border-radius: var(--radius-sm); margin-bottom: 10px; }

/* ======= REVIEW VIEW ======= */
.review-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
@media (max-width: 992px) { .review-grid { grid-template-columns: 1fr; } }

/* ======= REPORTS ======= */
.report-shell {
    position: relative;
}
.report-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.report-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.report-toolbar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}
.report-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(30,136,229,0.16);
    background: #fff;
    color: var(--primary-dark);
    font-size: 0.83rem;
    font-weight: 700;
    transition: var(--transition);
}
.report-chip:hover,
.report-chip.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(30,136,229,0.18);
}
.report-sheet {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.98));
    box-shadow: var(--shadow-lg);
}
.report-sheet-preview {
    border: 1px solid rgba(30,136,229,0.12);
}
.report-header-block {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.report-identity-block {
    display: flex;
    align-items: center;
    gap: 16px;
}
.report-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(13,71,161,0.12);
    padding: 10px;
}
.report-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary-gradient);
    font-size: 1.8rem;
}
.report-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}
.report-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
}
.report-meta-grid div,
.report-stat-card,
.signature-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(30,136,229,0.06);
    border: 1px solid rgba(30,136,229,0.1);
}
.report-meta-grid span,
.report-stat-card span,
.signature-card span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.report-meta-grid strong,
.report-stat-card strong,
.signature-card strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
}
.report-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.report-stat-card strong {
    font-size: 1.35rem;
    font-weight: 800;
}
.report-table thead th {
    white-space: nowrap;
}
.report-subrow td {
    background: rgba(30,136,229,0.03);
    font-size: 0.83rem;
}
.report-section-card {
    border: 1px solid rgba(30,136,229,0.08);
}
.report-section-title {
    padding: 14px 18px;
    font-weight: 800;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(30,136,229,0.08);
    background: rgba(30,136,229,0.05);
}
.report-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.8rem, 10vw, 6.4rem);
    font-weight: 900;
    color: rgba(13,71,161,0.07);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transform: rotate(-24deg);
    pointer-events: none;
    user-select: none;
}
.report-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.report-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.report-note-box {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(30,136,229,0.12);
    margin-bottom: 18px;
}
.report-note-box strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
}
.report-note-box p {
    margin: 0;
    line-height: 1.9;
}
.report-metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.report-metric-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(30,136,229,0.05);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    margin-top: 18px;
}
.digital-stamp {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 20px;
    border-radius: 22px;
    border: 2px dashed rgba(13,71,161,0.35);
    background: radial-gradient(circle at top, rgba(30,136,229,0.12), rgba(30,136,229,0.03));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.digital-stamp strong {
    color: var(--primary-dark);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}
.digital-stamp span {
    font-size: 0.82rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}
.digital-stamp-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid rgba(13,71,161,0.12);
}
.report-stamp-hash {
    letter-spacing: 0.18em;
    font-weight: 800;
    color: var(--primary-dark) !important;
}
.report-supporting-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(13,71,161,0.2);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}
.report-admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
}
.report-admin-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.timeline-list {
    display: grid;
    gap: 10px;
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(30,136,229,0.05);
}
.timeline-item span {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.timeline-item strong {
    color: var(--text-dark);
    font-size: 0.92rem;
}
.report-shell.report-lang-en {
    direction: ltr;
    text-align: left;
}
.report-shell.report-lang-en .report-status-pills,
.report-shell.report-lang-en .report-toolbar-group,
.report-shell.report-lang-en .report-identity-block,
.report-shell.report-lang-en .login-status-pill {
    justify-content: flex-start;
}
.report-shell.report-lang-en .report-meta-grid,
.report-shell.report-lang-en .report-overview-grid,
.report-shell.report-lang-en .report-metric-list,
.report-shell.report-lang-en .report-admin-grid,
.report-shell.report-lang-en .report-admin-mini-grid,
.report-shell.report-lang-en .signature-grid,
.report-shell.report-lang-en .report-notes-grid {
    direction: ltr;
}

@media (max-width: 1200px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
        padding-bottom: 70px;
    }
    .login-footer {
        position: static;
        margin-top: 16px;
        color: var(--primary-dark);
    }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 991px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.show { transform: translateX(0); }
    .top-navbar { right: 0; }
    .main-content { margin-right: 0; }
    .sidebar-toggle { display: inline-flex; }
    .main-content { padding: 18px; }
    .report-header-block,
    .report-identity-block {
        flex-direction: column;
        align-items: stretch;
    }
    .report-meta-grid,
    .report-overview-grid,
    .report-notes-grid,
    .signature-grid,
    .report-metric-list,
    .report-admin-grid,
    .report-admin-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .login-page {
        padding: 14px;
        align-items: stretch;
    }
    .login-shell {
        gap: 16px;
    }
    .login-hero,
    .login-card,
    .report-sheet {
        padding: 24px 18px;
        border-radius: 22px;
    }
    .login-brand-row {
        align-items: flex-start;
    }
    .login-hero-title {
        font-size: 2rem;
    }
    .login-feature {
        grid-template-columns: 1fr;
    }
    .login-feature-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    .kpi-card {
        padding: 14px;
    }
    .kpi-value {
        font-size: 1.25rem;
    }
    .table thead th,
    .table tbody td {
        font-size: 0.8rem;
    }
}

/* ======= PRINT ======= */
.no-print { }
.print-header, .print-footer { display: none; }
@page {
    size: A4;
    margin: 12mm;
}
@media print {
    .sidebar, .top-navbar, .no-print { display: none !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
    body { background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .print-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--primary); margin-bottom: 16px; }
    .print-footer { display: block; text-align: center; padding: 10px; border-top: 1px solid #ccc; font-size: 0.78rem; color: #666; margin-top: 30px; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .page-break { page-break-after: always; }
    .report-shell,
    .report-shell-print {
        background: #fff;
        padding: 0;
    }
    .report-sheet,
    .report-sheet-print {
        box-shadow: none;
        border: none;
        padding: 0;
        background: #fff;
    }
    .report-section-card,
    .report-note-box,
    .report-stat-card,
    .report-meta-grid div,
    .signature-card,
    .digital-stamp {
        break-inside: avoid;
    }
    .report-watermark {
        color: rgba(13,71,161,0.06);
    }
}
