/* assets/css/style.css
   White + navy blue design system for the SLCB Payroll System */

:root {
    --navy-900: #061a35;
    --navy-800: #0b2545;
    --navy-700: #13315c;
    --navy-600: #1b4079;
    --navy-500: #2557a7;
    --navy-100: #dbe6f6;
    --navy-50: #f2f6fc;
    --white: #ffffff;
    --ink: #10203a;
    --muted: #64748b;
    --line: #e3eaf4;
    --success: #15803d;
    --success-bg: #e8f7ee;
    --warning: #b45309;
    --warning-bg: #fdf3e3;
    --danger: #b91c1c;
    --danger-bg: #fdecec;
    --info: #0e7490;
    --info-bg: #e6f6fb;
    --radius: 14px;
    --sidebar-width: 264px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06);
    --shadow: 0 10px 30px rgba(11, 37, 69, .08);
    --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--navy-50);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { color: var(--navy-800); font-weight: 700; letter-spacing: -.2px; }

/* ------------------------------------------------------------------ */
/* Sidebar                                                             */
/* ------------------------------------------------------------------ */
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: #d8e3f3;
    display: flex;
    flex-direction: column;
    padding: 22px 0 16px;
    z-index: 1040;
    overflow-y: auto;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 14px;
}

.sidebar-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: var(--white);
    border-radius: 10px;
    padding: 4px;
}

.sidebar-brand .brand-text { line-height: 1.15; }
.sidebar-brand strong { display: block; color: var(--white); font-size: 15px; letter-spacing: .3px; }
.sidebar-brand small { color: #93a7c4; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.sidebar-section {
    padding: 14px 22px 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7f97b8;
}

.sidebar-nav { list-style: none; margin: 0; padding: 0 12px; flex: 1; }
.sidebar-nav li { margin-bottom: 3px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #c9d6e8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sidebar-nav a i { width: 18px; text-align: center; font-size: 15px; color: #8fadd4; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.sidebar-nav a:hover i { color: var(--white); }

.sidebar-nav a.active {
    background: var(--white);
    color: var(--navy-800);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.sidebar-nav a.active i { color: var(--navy-700); }

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px 12px;
}

.sidebar-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.sidebar-user .meta { line-height: 1.2; min-width: 0; }
.sidebar-user strong { display: block; color: var(--white); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { color: #93a7c4; font-size: 11px; text-transform: capitalize; }

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
}
.btn-logout:hover { background: var(--white); color: var(--navy-800); text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Main layout                                                         */
/* ------------------------------------------------------------------ */
.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar .sidebar-toggle {
    display: none;
    background: var(--navy-50);
    border: 1px solid var(--line);
    color: var(--navy-800);
    border-radius: 8px;
    width: 38px;
    height: 38px;
}

.topbar-search { flex: 1; max-width: 460px; position: relative; }
.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa0bd;
    font-size: 13px;
}
.topbar-search input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--navy-50);
    border-radius: 10px;
    padding: 9px 14px 9px 38px;
    font-size: 13.5px;
    color: var(--ink);
}
.topbar-search input:focus { outline: none; border-color: var(--navy-500); background: var(--white); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-date { font-size: 12.5px; color: var(--muted); }
.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.app-content { padding: 26px 28px 48px; flex: 1; }

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

.page-head h1 { font-size: 24px; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumb { margin: 0 0 10px; font-size: 12.5px; }
.breadcrumb-item a { color: var(--navy-600); }

/* ------------------------------------------------------------------ */
/* Cards, KPIs and tables                                              */
/* ------------------------------------------------------------------ */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 15px 20px;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-header h2, .card-header h3, .card-header h4, .card-header h5 { margin: 0; font-size: 15.5px; }
.card-body { padding: 20px; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kpi-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--navy-50);
    color: var(--navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.kpi-card .kpi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }
.kpi-card .kpi-value { font-size: 24px; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.kpi-card .kpi-note { font-size: 11.5px; color: var(--muted); }

.kpi-card.kpi-navy { background: var(--navy-800); border-color: var(--navy-800); }
.kpi-card.kpi-navy .kpi-icon { background: rgba(255, 255, 255, .14); color: var(--white); }
.kpi-card.kpi-navy .kpi-label { color: #a9bfdc; }
.kpi-card.kpi-navy .kpi-value { color: var(--white); }
.kpi-card.kpi-navy .kpi-note { color: #b8cadf; }

.table { margin-bottom: 0; color: var(--ink); }
.table > :not(caption) > * > * { padding: 12px 14px; border-bottom-color: var(--line); }
.table thead th {
    background: var(--navy-50);
    color: var(--navy-700);
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table tbody tr:hover { background: #f8fbff; }
.table tbody td { font-size: 13.5px; vertical-align: middle; }
.table .name { font-weight: 700; color: var(--navy-800); }

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-100);
    color: var(--navy-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 9px;
    vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn { border-radius: 9px; font-size: 13.5px; font-weight: 600; padding: 8px 15px; }
.btn-sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.btn-primary { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-600); border-color: var(--navy-600); color: var(--white); }
.btn-secondary { background: #5b6b82; border-color: #5b6b82; color: var(--white); }
.btn-success { background: var(--success); border-color: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--white); }
.btn-warning { background: #d97706; border-color: #d97706; color: var(--white); }
.btn-info { background: var(--navy-500); border-color: var(--navy-500); color: var(--white); }
.btn-outline-primary { color: var(--navy-700); border-color: var(--navy-300, #9db6d6); }
.btn-outline-primary:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.btn-outline-secondary { color: var(--navy-700); border-color: var(--line); background: var(--white); }
.btn-outline-secondary:hover { background: var(--navy-50); color: var(--navy-800); border-color: var(--navy-100); }
.btn-link { color: var(--navy-600); text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */
.form-label { font-weight: 700; color: var(--navy-700); font-size: 12.5px; letter-spacing: .2px; }
.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--ink);
    background-color: var(--white);
}
.form-control:focus, .form-select:focus {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(37, 87, 167, .15);
}
.form-text { font-size: 11.5px; }
.input-group-text { background: var(--navy-50); border-color: var(--line); color: var(--navy-700); font-size: 13px; }
.section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-700);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin: 6px 0 16px;
}

/* ------------------------------------------------------------------ */
/* Badges and alerts                                                   */
/* ------------------------------------------------------------------ */
.badge { font-weight: 700; font-size: 11px; padding: 5px 9px; border-radius: 20px; letter-spacing: .2px; }
.badge-soft-success { background: var(--success-bg); color: var(--success); }
.badge-soft-danger { background: var(--danger-bg); color: var(--danger); }
.badge-soft-warning { background: var(--warning-bg); color: var(--warning); }
.badge-soft-info { background: var(--info-bg); color: var(--info); }
.badge-soft-navy { background: var(--navy-100); color: var(--navy-800); }
.badge-soft-secondary { background: #eef2f7; color: #526277; }

.alert { border-radius: var(--radius); border: 1px solid transparent; font-size: 13.5px; }
.alert-success { background: var(--success-bg); border-color: #c4e9d0; color: #14532d; }
.alert-danger { background: var(--danger-bg); border-color: #f4cccc; color: #7f1d1d; }
.alert-warning { background: var(--warning-bg); border-color: #f4debd; color: #78350f; }
.alert-info { background: var(--info-bg); border-color: #bfe6f0; color: #0e4d5c; }

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--white);
}

.login-aside {
    background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 65%, #04152c 100%);
    color: var(--white);
    padding: 54px 58px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-aside::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    right: -140px;
    bottom: -160px;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .025);
}

.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand img { width: 58px; height: 58px; background: var(--white); border-radius: 12px; padding: 5px; object-fit: contain; }
.login-brand strong { display: block; font-size: 17px; letter-spacing: .4px; }
.login-brand small { color: #a9bfdc; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; }

.login-aside h1 { color: var(--white); font-size: 38px; line-height: 1.16; margin: 0 0 16px; letter-spacing: -1px; }
.login-aside p { color: #b9cbe2; font-size: 14.5px; line-height: 1.75; max-width: 430px; }
.login-points { margin-top: 30px; display: grid; gap: 12px; max-width: 420px; }
.login-point { display: flex; gap: 12px; align-items: flex-start; color: #cddcee; font-size: 13.5px; }
.login-point i { color: var(--white); background: rgba(255, 255, 255, .12); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.login-aside footer { font-size: 11.5px; color: #8299b8; }

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 32px;
    background: var(--white);
}

.login-card { width: 100%; max-width: 400px; }
.login-card .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy-600); }
.login-card h2 { font-size: 27px; margin: 6px 0 6px; }
.login-card .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

.login-field { position: relative; margin-bottom: 16px; }
.login-field i { position: absolute; left: 14px; top: 42px; color: #8aa0bd; font-size: 13px; }
.login-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy-700); margin-bottom: 6px; }
.login-field input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--navy-50);
    border-radius: 10px;
    padding: 11px 14px 11px 38px;
    font-size: 14px;
}
.login-field input:focus { outline: none; border-color: var(--navy-500); background: var(--white); box-shadow: 0 0 0 3px rgba(37, 87, 167, .13); }
/* Hide the browser's built-in reveal control so only the custom eye shows. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }

.login-field.password-field input { padding-right: 46px; }
.login-field .password-toggle {
    position: absolute;
    right: 6px;
    top: 28px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7f99;
    cursor: pointer;
}
.login-field .password-toggle:hover { color: var(--navy-700); background: rgba(11, 37, 69, .07); }
.login-field .password-toggle:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 1px; }
.login-field .password-toggle i { position: static; left: auto; top: auto; font-size: 13px; color: inherit; }

.btn-login {
    width: 100%;
    border: 0;
    background: var(--navy-800);
    color: var(--white);
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .3px;
    margin-top: 6px;
    transition: background .15s ease;
}
.btn-login:hover { background: var(--navy-600); }

.demo-accounts {
    margin-top: 24px;
    border: 1px dashed var(--navy-100);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--navy-50);
    font-size: 12px;
    color: #3c5a80;
}
.demo-accounts strong { color: var(--navy-800); display: block; margin-bottom: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; }
.demo-accounts code { background: var(--white); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: var(--navy-700); }
.demo-accounts div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-aside { display: none; }
    .login-main { min-height: 100vh; }
}

/* ------------------------------------------------------------------ */
/* Tables, lists, small utilities                                      */
/* ------------------------------------------------------------------ */
.table-responsive { border-radius: 12px; overflow-x: auto; }
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row .title { font-weight: 700; color: var(--navy-800); font-size: 13.5px; }
.list-row .meta { color: var(--muted); font-size: 12px; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.online { background: var(--success); }
.status-dot.offline { background: #94a3b8; }

.empty-state { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty-state i { font-size: 32px; color: #b9c9dd; display: block; margin-bottom: 12px; }

.pagination .page-link { color: var(--navy-700); border-color: var(--line); }
.pagination .active .page-link { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.nav-tabs .nav-link { color: var(--navy-600); font-size: 13px; font-weight: 600; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--navy-800); border-bottom-color: var(--navy-800); background: transparent; }

/* Payslip */
.payslip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    max-width: 860px;
    margin: 0 auto;
}
.payslip-header { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--navy-800); padding-bottom: 18px; margin-bottom: 22px; }
.payslip-header img { width: 54px; height: 54px; object-fit: contain; }
.payslip-header h2 { margin: 0; font-size: 19px; }
.payslip-header p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.payslip-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.payslip-meta div span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.payslip-meta div strong { color: var(--navy-800); font-size: 13.5px; }
.payslip-table th { background: var(--navy-50); }
.payslip-grid { border-color: var(--line); }
.payslip .payslip-grid th, .payslip .payslip-grid td { vertical-align: middle; }
.payslip .payslip-grid thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--navy-700); }
.payslip .payslip-total-row td { border-top: 2px solid var(--navy-100); }
.payslip .payslip-net-row th, .payslip .payslip-net-row td {
    background: var(--navy-800);
    color: var(--white);
    border-color: var(--navy-800);
    padding-top: 16px;
    padding-bottom: 16px;
}
.payslip .payslip-net-row th { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: #b9cbe2; }
.payslip .payslip-net-row td { font-size: 20px; font-weight: 700; }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); text-align: center; padding: 4px 0; }
.calendar-cell {
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 82px;
    padding: 8px;
    background: var(--white);
    font-size: 12px;
}
.calendar-cell .day-number { font-weight: 800; color: var(--navy-700); }
.calendar-cell.empty { background: #f8fafd; border-style: dashed; }
.calendar-cell.present { background: #eef9f1; border-color: #c4e9d0; }
.calendar-cell.late { background: var(--warning-bg); border-color: #f4debd; }
.calendar-cell.absent { background: var(--danger-bg); border-color: #f4cccc; }
.calendar-cell.leave { background: var(--info-bg); border-color: #bfe6f0; }
.calendar-cell .tag { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ */
/* Error page                                                          */
/* ------------------------------------------------------------------ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--navy-50);
}
.error-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    padding: 44px;
    text-align: center;
    box-shadow: var(--shadow);
}
.error-code { font-size: 64px; font-weight: 800; color: var(--navy-800); line-height: 1; letter-spacing: -2px; }
.error-card h1 { font-size: 22px; margin: 12px 0 8px; }
.error-card p { color: var(--muted); font-size: 14px; }
.error-card pre {
    text-align: left;
    background: var(--navy-50);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    font-size: 11.5px;
    max-height: 220px;
    overflow: auto;
    color: #475569;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 992px) {
    .app-sidebar { transform: translateX(-100%); }
    body.sidebar-open .app-sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    .app-main { margin-left: 0; }
    .topbar .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .app-content { padding: 20px 18px 40px; }
    .topbar { padding: 10px 18px; }
    .topbar-date { display: none; }
}

@media (max-width: 576px) {
    .page-head h1 { font-size: 20px; }
    .card-body { padding: 16px; }
    .kpi-card .kpi-value { font-size: 21px; }
    .payslip { padding: 20px; }
}

/* Print (payslips) */
@media print {
    .app-sidebar, .topbar, .page-head .actions, .no-print { display: none !important; }
    .app-main { margin-left: 0; }
    .app-content { padding: 0; }
    body { background: var(--white); }
    .payslip { border: 0; box-shadow: none; }
    .payslip .payslip-net-row th, .payslip .payslip-net-row td {
        background: var(--navy-800) !important;
        color: var(--white) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
.dtr-board{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.7fr);gap:1.25rem}.dtr-intro{background:#173b56;color:white;border-radius:16px;padding:2rem;border-top:5px solid #d1aa54}.dtr-intro h2{color:white;font-size:2rem}.dtr-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.dtr-fields label{font-weight:600}.dtr-line{padding:.8rem 0;border-top:1px solid #dae2e7;display:grid;gap:.2rem}.dtr-line time,.dtr-line span{color:#4e6471;font-size:.88rem}@media(max-width:800px){.dtr-board{grid-template-columns:1fr}}@media(max-width:480px){.dtr-fields{grid-template-columns:1fr}}
