:root {
    color-scheme: light;
    --ink: #17233c;
    --muted: #68758e;
    --blue: #365ee8;
    --blue-dark: #2448c6;
    --line: rgba(255, 255, 255, 0.72);
    --glass: rgba(255, 255, 255, 0.68);
    --glass-strong: rgba(255, 255, 255, 0.84);
    --shadow: 0 18px 50px rgba(37, 57, 110, 0.11);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(108, 157, 255, 0.28), transparent 35%),
        radial-gradient(ellipse at 88% 18%, rgba(132, 228, 213, 0.25), transparent 32%),
        linear-gradient(135deg, #f3f6ff 0%, #edf4ff 46%, #effaf8 100%);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at 10% 12%, rgba(123, 165, 255, 0.5), transparent 34%),
        radial-gradient(ellipse at 92% 78%, rgba(109, 225, 203, 0.34), transparent 36%),
        linear-gradient(135deg, #eaf0ff, #f1fbfb);
}

.auth-shell::before,
.auth-shell::after {
    position: absolute;
    z-index: 0;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    pointer-events: none;
}

.auth-shell::before {
    top: 8%;
    left: 8%;
    background: linear-gradient(145deg, rgba(89, 128, 255, 0.22), rgba(89, 128, 255, 0.02));
}

.auth-shell::after {
    right: 7%;
    bottom: 4%;
    background: linear-gradient(145deg, rgba(62, 194, 179, 0.2), rgba(62, 194, 179, 0.02));
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(440px, 94vw);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 80px rgba(39, 62, 126, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.auth-card .card-body {
    padding: clamp(1.7rem, 5vw, 2.6rem);
}

.auth-card h2 {
    color: #233764;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 26px rgba(45, 64, 112, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.topbar .container {
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #263d75;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand .bi {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #5479f5, #3858d9);
    box-shadow: 0 7px 16px rgba(54, 94, 232, 0.24);
}

.topbar .nav-link {
    margin: 0 0.12rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #596782;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus {
    color: var(--blue-dark);
    background: rgba(68, 102, 230, 0.08);
}

.topbar .nav-link.active {
    color: #2f50c2;
    background: rgba(68, 102, 230, 0.11);
}

.navbar-toggler {
    border-color: rgba(70, 95, 160, 0.2);
    border-radius: 10px;
}

.nav-user .nav-link {
    color: #71809c;
    font-weight: 500;
}

.nav-logout {
    color: #b34d62 !important;
}

.app-shell {
    min-height: 100vh;
    background: transparent;
}

.app-shell main.container {
    max-width: 1440px;
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

.card,
.stat-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card .card-body {
    padding: clamp(1.15rem, 2vw, 1.7rem);
}

.card h4,
.card h5 {
    color: #26385f;
    font-weight: 720;
    letter-spacing: -0.025em;
}

.stat-card {
    position: relative;
    min-height: 138px;
    padding: 1.35rem;
}

.stat-card::after {
    position: absolute;
    top: -2.5rem;
    right: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(90, 130, 244, 0.09);
    content: "";
}

.stat-card .label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.stat-card .value {
    margin-top: 0.55rem;
    color: #3156cf;
    font-size: 2.15rem;
    font-weight: 780;
    letter-spacing: -0.045em;
}

.role-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.page-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-heading h1,
.section-heading h2 {
    margin: 0;
    color: #26385f;
    font-weight: 760;
    letter-spacing: -0.04em;
}

.page-heading h1 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-heading h2 {
    font-size: 1.25rem;
}

.eyebrow {
    margin-bottom: 0.3rem;
    color: #6179c8;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.document-context {
    padding: 1rem;
    border: 1px solid rgba(111, 133, 188, 0.14);
    border-radius: 14px;
    background: rgba(246, 248, 255, 0.6);
}

.action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: max-content;
}

.action-form {
    display: inline-flex;
    margin: 0;
}

.visibility-form {
    min-width: 12rem;
    max-width: 15rem;
    padding: 0.65rem;
    border: 1px solid rgba(111, 133, 188, 0.18);
    border-radius: 0.75rem;
}

.visibility-form .form-label {
    margin-bottom: 0.25rem;
}

.action-buttons .btn {
    white-space: nowrap;
}

.dataTables_wrapper .dt-search,
.dataTables_wrapper .dt-length {
    margin-bottom: 0.9rem;
}

.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select {
    min-height: 38px;
    margin-left: 0.4rem;
    border: 1px solid rgba(105, 126, 176, 0.22);
    border-radius: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
}

.dataTables_wrapper .dt-info {
    padding-top: 0.8rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.dataTables_wrapper .pagination {
    margin-top: 0.55rem;
}

.dataTables_wrapper .page-link {
    border-color: rgba(105, 126, 176, 0.16);
    color: #415aab;
    background: rgba(255, 255, 255, 0.65);
}

.dataTables_wrapper .page-item.active .page-link {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.form-label {
    color: #3a4969;
    font-size: 0.88rem;
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid rgba(105, 126, 176, 0.2);
    border-radius: 12px;
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 2px rgba(22, 38, 77, 0.025);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(61, 96, 224, 0.52);
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 0.22rem rgba(61, 96, 224, 0.12);
}

.btn {
    border-radius: 11px;
    font-weight: 650;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--blue);
    background: linear-gradient(135deg, #4d70ed, #3658d7);
    box-shadow: 0 7px 16px rgba(54, 94, 232, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--blue-dark);
    background: linear-gradient(135deg, #3e61dd, #2e4ec4);
    box-shadow: 0 10px 20px rgba(54, 94, 232, 0.25);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-secondary,
.btn-warning,
.btn-success {
    box-shadow: 0 4px 11px rgba(34, 49, 88, 0.07);
}

.table-responsive {
    border: 1px solid rgba(113, 132, 177, 0.12);
    border-radius: 14px;
}

.table {
    margin-bottom: 0;
    color: #33415f;
    vertical-align: middle;
}

.table th {
    border-bottom: 1px solid rgba(99, 120, 166, 0.16);
    color: #53617e;
    background: rgba(239, 244, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    border-color: rgba(99, 120, 166, 0.1);
    background: rgba(255, 255, 255, 0.28);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(246, 248, 255, 0.45);
}

.badge {
    padding: 0.48em 0.72em;
    border-radius: 999px;
    font-weight: 650;
}

.alert {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(38, 55, 96, 0.06);
}

.password-reveal {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border: 1px dashed rgba(41, 90, 68, 0.35);
    border-radius: 9px;
    color: #174b35;
    background: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    user-select: all;
}

.text-muted {
    color: var(--muted) !important;
}

@media (max-width: 767.98px) {
    .topbar .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0.35rem 0 0.65rem;
    }

    .topbar .nav-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.82rem;
    }

    .app-shell main.container {
        padding-top: 1.2rem !important;
    }

    .table {
        min-width: 720px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    --ink: #263445;
    --muted: #697586;
    --blue: #1f4e79;
    --blue-dark: #142d4e;
    --gold: #c6a15b;
    --line: #e3e8ef;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-strong: #fff;
    --shadow: 0 8px 26px rgba(20, 45, 78, 0.07);
    --sidebar-width: 272px;
    --surface: #fff;
    --page: #f4f6f9;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background:
        radial-gradient(ellipse at 92% 3%, rgba(198, 161, 91, 0.055), transparent 25%),
        var(--page);
    font-family: Inter, "Segoe UI", Tahoma, sans-serif;
    font-size: 0.94rem;
    line-height: 1.55;
}

a {
    color: #1f4e79;
}

a:hover {
    color: #142d4e;
}

:focus-visible {
    outline: 3px solid rgba(198, 161, 91, 0.72);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    padding: 1.3rem 1rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    color: #f5f7fb;
    background: linear-gradient(165deg, rgba(20, 45, 78, 0.98), rgba(17, 39, 67, 0.97));
    box-shadow: 12px 0 34px rgba(20, 45, 78, 0.08);
    transition: width 180ms ease, transform 180ms ease;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
    scrollbar-width: thin;
}

.app-sidebar::-webkit-scrollbar {
    width: 6px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.app-sidebar .brand {
    display: flex;
    min-height: 3.2rem;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0.45rem 1.15rem;
    color: #fff;
}

.app-sidebar .brand:hover {
    color: #fff;
}

.brand-mark {
    display: inline-grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.85rem;
    color: #f5e5bd;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
}

.brand-copy,
.profile-summary,
.profile-menu-copy {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.brand-copy strong {
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: 0.01em;
}

.brand-copy small {
    color: rgba(235, 241, 249, 0.66);
    font-size: 0.68rem;
    letter-spacing: 0.025em;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.75rem;
    margin-bottom: 1.1rem;
    padding: 0.7rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.065);
}

.profile-avatar {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    border: 1px solid #e6d5aa;
    border-radius: 50%;
    color: #f4e8cc;
    background: rgba(198, 161, 91, 0.14);
    font-size: 1.05rem;
}

.sidebar-profile .profile-summary strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.81rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile .profile-summary small {
    color: rgba(235, 241, 249, 0.65);
    font-size: 0.7rem;
}

.sidebar-nav {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.1rem 0.1rem 1rem;
}

.sidebar-section + .sidebar-section {
    margin-top: 1.15rem;
}

.sidebar-section-label {
    margin: 0 0.65rem 0.45rem;
    color: rgba(225, 233, 244, 0.5);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav .nav-link {
    position: relative;
    display: flex;
    min-height: 2.65rem;
    align-items: center;
    gap: 0.75rem;
    margin: 0.15rem 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 0.68rem;
    color: rgba(241, 245, 251, 0.78);
    font-size: 0.83rem;
    font-weight: 530;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.sidebar-nav .nav-link .bi {
    width: 1.15rem;
    flex: 0 0 1.15rem;
    color: rgba(226, 234, 245, 0.67);
    font-size: 1rem;
    text-align: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-link.active {
    border-color: rgba(255, 255, 255, 0.09);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-nav .nav-link.active .bi {
    color: #f1dcae;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0.6rem 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(230, 237, 247, 0.63);
    font-size: 0.72rem;
}

.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #81c6a4;
    box-shadow: 0 0 0 3px rgba(129, 198, 164, 0.12);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    width: calc(100% - var(--sidebar-width));
    min-height: 4.55rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-left: var(--sidebar-width);
    padding: 0.65rem clamp(1.15rem, 3vw, 2.6rem);
    border-bottom: 1px solid rgba(227, 232, 239, 0.86);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 16px rgba(20, 45, 78, 0.035);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: width 180ms ease, margin-left 180ms ease;
}

.topbar-leading,
.topbar-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    color: var(--blue-dark);
    background: #fff;
    font-size: 1.25rem;
}

.sidebar-toggle:hover {
    border-color: #ccd5e1;
    background: #f7f9fc;
}

.breadcrumb-line {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.breadcrumb-line strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-line .bi {
    color: #a4afbd;
    font-size: 0.67rem;
}

.topbar-actions {
    gap: 1.2rem;
}

.notification-link {
    position: relative;
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #526175;
    background: #fff;
    font-size: 1.05rem;
}

.notification-link:hover {
    color: var(--blue);
    background: #f8fafc;
}

.notification-count {
    position: absolute;
    top: -0.22rem;
    right: -0.18rem;
    display: inline-grid;
    min-width: 1.05rem;
    height: 1.05rem;
    place-items: center;
    padding: 0 0.22rem;
    border: 2px solid #fff;
    border-radius: 1rem;
    color: #fff;
    background: #a84a4a;
    font-size: 0.58rem;
    font-weight: 700;
}

.profile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.1rem 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.profile-menu-toggle .profile-avatar {
    width: 2.2rem;
    height: 2.2rem;
    flex-basis: 2.2rem;
    border-color: #e5e9ef;
    color: var(--blue);
    background: #f4f6f9;
}

.profile-menu-copy strong {
    max-width: 11rem;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-copy small {
    color: var(--muted);
    font-size: 0.69rem;
}

.profile-chevron {
    color: #8793a3;
    font-size: 0.68rem;
}

.profile-dropdown {
    min-width: 15rem;
    margin-top: 0.85rem !important;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: 0 12px 34px rgba(20, 45, 78, 0.13);
}

.profile-dropdown-heading {
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem 0.6rem 0.65rem;
}

.profile-dropdown-heading strong {
    font-size: 0.83rem;
}

.profile-dropdown-heading span,
.profile-dropdown-heading small {
    color: var(--muted);
    font-size: 0.74rem;
}

.profile-dropdown .dropdown-item {
    padding: 0.55rem 0.6rem;
    border-radius: 0.55rem;
    font-size: 0.82rem;
}

.app-shell main.container {
    width: calc(100% - var(--sidebar-width));
    max-width: none;
    margin-right: 0;
    margin-left: var(--sidebar-width);
    padding: 1.8rem clamp(1.15rem, 3vw, 2.6rem) 3rem !important;
    transition: width 180ms ease, margin-left 180ms ease;
}

.card,
.stat-card {
    border: 1px solid #e6eaf0;
    border-radius: 0.95rem;
    background: var(--surface);
    box-shadow: 0 5px 18px rgba(20, 45, 78, 0.045);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-shell > .auth-card {
    width: min(440px, 100%);
    border: 1px solid #e3e8ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(20, 45, 78, 0.1);
}

.auth-shell > .auth-card .card-body {
    padding: clamp(1.5rem, 5vw, 2.4rem);
}

.card .card-body {
    padding: clamp(1.1rem, 1.8vw, 1.55rem);
}

.card h2,
.card h3,
.card h4,
.card h5 {
    color: var(--ink);
    letter-spacing: -0.018em;
}

.page-heading {
    align-items: flex-end;
    margin-bottom: 1.45rem;
}

.page-heading h1 {
    color: var(--blue-dark);
    font-size: clamp(1.65rem, 2.4vw, 2.05rem);
    font-weight: 720;
    letter-spacing: -0.035em;
}

.page-heading p:not(.eyebrow) {
    max-width: 48rem;
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.section-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.section-heading h2 {
    color: var(--blue-dark);
    font-size: 1.06rem;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.eyebrow {
    color: #8c7446;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
}

.text-muted,
.text-secondary {
    color: var(--muted) !important;
}

.welcome-banner {
    position: relative;
    display: flex;
    min-height: 10.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.35rem;
    padding: clamp(1.35rem, 3vw, 2.1rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(115deg, #142d4e 0%, #1f4e79 82%);
    box-shadow: 0 12px 26px rgba(20, 45, 78, 0.12);
}

.welcome-banner::after {
    position: absolute;
    top: -4.4rem;
    right: 7%;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 1.7rem rgba(255, 255, 255, 0.025), 0 0 0 3.4rem rgba(255, 255, 255, 0.018);
    content: "";
    pointer-events: none;
}

.welcome-banner .eyebrow {
    color: #e4d3ab;
}

.welcome-banner h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.welcome-banner p:not(.eyebrow) {
    margin: 0.42rem 0 0;
    color: rgba(243, 247, 251, 0.78);
    font-size: 0.86rem;
}

.welcome-banner .welcome-mark {
    z-index: 1;
    display: inline-grid;
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    color: #f4e6c6;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.6rem;
}

.stat-card {
    min-height: 8.3rem;
    padding: 1.15rem 1.25rem;
}

.stat-card::after {
    top: -2.4rem;
    right: -2.25rem;
    width: 6.5rem;
    height: 6.5rem;
    background: rgba(31, 78, 121, 0.055);
}

.stat-card .label {
    color: var(--muted);
    font-size: 0.69rem;
    letter-spacing: 0.08em;
}

.stat-card .value {
    margin-top: 0.45rem;
    color: var(--blue-dark);
    font-size: 1.9rem;
    font-weight: 720;
}

.document-context {
    border-color: #e7ebf1;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.form-label {
    margin-bottom: 0.42rem;
    color: #344356;
    font-size: 0.81rem;
    font-weight: 620;
}

.form-control,
.form-select {
    min-height: 2.75rem;
    border-color: #d7dee8;
    border-radius: 0.62rem;
    color: var(--ink);
    background-color: #fff;
    font-size: 0.86rem;
    box-shadow: none;
}

textarea.form-control {
    min-height: unset;
}

.form-control::placeholder {
    color: #99a4b2;
}

.form-control:focus,
.form-select:focus {
    border-color: #6f91b2;
    box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.12);
}

.form-check-input {
    border-color: #b6c0cd;
}

.form-check-input:checked {
    border-color: var(--blue);
    background-color: var(--blue);
}

.form-check-input:focus {
    border-color: #6f91b2;
    box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.12);
}

.form-text {
    color: var(--muted);
    font-size: 0.75rem;
}

.btn {
    min-height: 2.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.62rem;
    font-size: 0.82rem;
    font-weight: 620;
    transition: background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.btn:hover {
    transform: none;
}

.btn-primary {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
    box-shadow: 0 3px 9px rgba(31, 78, 121, 0.14);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--blue-dark);
    color: #fff;
    background: var(--blue-dark);
    box-shadow: 0 5px 12px rgba(20, 45, 78, 0.18);
}

.btn-outline-primary {
    border-color: #9aafc3;
    color: var(--blue);
}

.btn-outline-primary:hover {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.btn-outline-secondary,
.btn-secondary {
    border-color: #d6dde6;
    color: #536175;
    background: #fff;
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
    border-color: #bac5d2;
    color: var(--blue-dark);
    background: #f5f7fa;
}

.btn-outline-danger,
.btn-danger {
    border-color: #c67979;
    color: #9b4545;
}

.btn-outline-danger:hover,
.btn-danger:hover {
    border-color: #9b4545;
    color: #fff;
    background: #9b4545;
}

.btn-sm {
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.74rem;
}

.action-buttons {
    gap: 0.35rem;
    min-width: 0;
}

.table-responsive {
    border: 1px solid #e4e9ef;
    border-radius: 0.75rem;
    background: #fff;
}

.table {
    color: #344356;
    font-size: 0.82rem;
}

.table th {
    border-bottom: 1px solid #e2e7ee;
    color: #637084;
    background: #f5f7fa;
    font-size: 0.68rem;
    letter-spacing: 0.065em;
}

.table td {
    border-color: #edf0f4;
    background: #fff;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fbfcfd;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #f4f7fa;
}

.badge {
    padding: 0.42em 0.66em;
    font-size: 0.69rem;
    font-weight: 650;
}

.bg-info {
    color: #1d5270 !important;
    background: #e4f0f7 !important;
}

.bg-warning {
    color: #76591f !important;
    background: #f7efd9 !important;
}

.bg-success {
    color: #286249 !important;
    background: #e4f1ea !important;
}

.bg-danger {
    color: #894242 !important;
    background: #f5e7e7 !important;
}

.required-marker {
    color: #9b4545;
    font-weight: 700;
}

.status-published {
    color: #286249;
    background: #e4f1ea;
}

.status-draft {
    color: #76591f;
    background: #f7efd9;
}

.status-archived {
    color: #657185;
    background: #edf0f4;
}

.alert {
    border: 1px solid #e2e7ee;
    border-left: 4px solid #8291a3;
    border-radius: 0.7rem;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 4px 12px rgba(20, 45, 78, 0.045);
    font-size: 0.84rem;
}

.alert-success {
    border-left-color: #4a8969;
    background: #f7fbf8;
}

.alert-danger {
    border-left-color: #ad5555;
    background: #fdf8f8;
}

.alert-warning {
    border-left-color: #b48b3a;
    background: #fdfaf3;
}

.alert-info {
    border-left-color: #47799e;
    background: #f6fafe;
}

.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select {
    min-height: 2.35rem;
    border-color: #d7dee8;
    border-radius: 0.55rem;
    font-size: 0.81rem;
}

.dataTables_wrapper .dt-search input:focus,
.dataTables_wrapper .dt-length select:focus {
    border-color: #6f91b2;
    outline: 0;
    box-shadow: 0 0 0 0.17rem rgba(31, 78, 121, 0.11);
}

.dataTables_wrapper .page-link {
    border-color: #e1e6ec;
    color: var(--blue);
    background: #fff;
    font-size: 0.78rem;
}

.dataTables_wrapper .page-item.active .page-link {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.modal-content {
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 0.95rem;
    box-shadow: 0 20px 55px rgba(20, 45, 78, 0.2);
}

.modal-header,
.modal-footer {
    border-color: #e9edf2;
    background: #fbfcfd;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.7rem;
    font-size: 0.82rem;
}

.event-detail .bi {
    width: 1rem;
    color: #8c7446;
}

.auth-shell {
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse at 12% 18%, rgba(198, 161, 91, 0.11), transparent 26%),
        radial-gradient(ellipse at 88% 85%, rgba(31, 78, 121, 0.1), transparent 31%),
        #f4f6f9;
}

.auth-layout {
    display: grid;
    width: min(1050px, 100%);
    min-height: 590px;
    grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 26px 70px rgba(20, 45, 78, 0.13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-intro {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    background: linear-gradient(155deg, #142d4e, #1f4e79);
}

.auth-intro::after {
    position: absolute;
    right: -8rem;
    bottom: -9rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0.025), 0 0 0 4rem rgba(255, 255, 255, 0.02);
    content: "";
    pointer-events: none;
}

.auth-brand {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 680;
}

.auth-brand .brand-mark {
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-intro-content {
    z-index: 1;
    max-width: 25rem;
    padding: 3rem 0;
}

.auth-intro-content .eyebrow {
    color: #e4d3ab;
}

.auth-intro-content h1 {
    margin: 0.65rem 0 0.9rem;
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.12;
}

.auth-intro-content p:not(.eyebrow) {
    max-width: 23rem;
    color: rgba(240, 245, 251, 0.76);
    font-size: 0.9rem;
}

.auth-intro-footer {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(240, 245, 251, 0.68);
    font-size: 0.74rem;
}

.auth-intro-footer .bi {
    color: #e4d3ab;
}

.auth-card {
    align-self: stretch;
    width: auto;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-card .card-body {
    display: flex;
    max-width: 31rem;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.auth-form-heading {
    margin-bottom: 1.8rem;
}

.auth-form-heading h2 {
    margin: 0.3rem 0 0.5rem;
    color: var(--blue-dark);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.auth-form-heading p:not(.eyebrow) {
    margin: 0;
    font-size: 0.83rem;
}

.auth-card .form-label {
    font-size: 0.8rem;
}

.auth-card .form-control {
    min-height: 3rem;
}

.auth-card .form-check-label,
.auth-card a {
    font-size: 0.78rem;
}

.auth-form-footer {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.6rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.auth-form-footer .bi {
    color: #62836f;
}

.calendar-panel {
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 45, 78, 0.045);
}

.calendar-toolbar {
    display: flex;
    min-height: 5.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e7ebf0;
}

.calendar-toolbar h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.12rem;
    font-weight: 680;
}

.calendar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.calendar-month-nav {
    display: flex;
    gap: 0.3rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
    padding: 0.65rem 0.45rem;
    border-bottom: 1px solid #e8ecf1;
    color: #68778a;
    background: #f7f9fb;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    min-width: 0;
    min-height: 6.6rem;
    padding: 0.48rem;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-week .calendar-day {
    min-height: 12rem;
}

.calendar-day-muted {
    background: #fafbfd;
}

.calendar-day-muted .calendar-day-number {
    color: #aab3bf;
}

.calendar-day-today {
    background: #fbfaf6;
}

.calendar-day-number {
    display: inline-grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    color: #526175;
    font-size: 0.74rem;
    font-weight: 620;
}

.calendar-day-today .calendar-day-number {
    color: #fff;
    background: var(--blue);
}

.calendar-events {
    display: grid;
    gap: 0.22rem;
    margin-top: 0.2rem;
}

.calendar-event {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0.26rem 0.34rem;
    border: 0;
    border-left: 2px solid #c6a15b;
    border-radius: 0.25rem;
    color: #39495d;
    background: #f6f1e7;
    font-size: 0.65rem;
    line-height: 1.35;
    text-align: left;
}

.calendar-event:hover {
    color: var(--blue-dark);
    background: #eee5d3;
}

.calendar-event.event-category-training {
    border-left-color: #589173;
    background: #edf5f0;
}

.calendar-event.event-category-meeting {
    border-left-color: #5b7f9e;
    background: #edf3f8;
}

.calendar-event.event-category-deadline {
    border-left-color: #b26464;
    background: #f8eeee;
}

.calendar-event span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.calendar-more {
    color: var(--blue);
    font-size: 0.64rem;
}

.agenda-list {
    padding: 1.1rem;
}

.upcoming-panel .document-context {
    margin-bottom: 0.65rem !important;
    padding: 0.8rem;
}

.upload-progress {
    display: none;
    margin-top: 1rem;
}

.upload-progress.is-visible {
    display: block;
}

.upload-progress .progress {
    height: 0.45rem;
    border-radius: 1rem;
    background: #e8edf2;
}

.upload-progress .progress-bar {
    border-radius: 1rem;
    background: var(--blue);
    transition: width 160ms ease;
}

.upload-file-feedback {
    display: block;
    min-height: 1.25rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.74rem;
}

.upload-file-feedback.is-invalid {
    color: #9b4545;
}

.sidebar-backdrop {
    display: none;
}

body.sidebar-collapsed {
    --sidebar-width: 82px;
}

body.sidebar-collapsed .app-sidebar {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
}

body.sidebar-collapsed .app-sidebar .brand {
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
}

body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-profile .profile-summary,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-nav .nav-link span,
body.sidebar-collapsed .sidebar-footer span:last-child {
    display: none;
}

body.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    padding-right: 0.2rem;
    padding-left: 0.2rem;
}

body.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding-right: 0.4rem;
    padding-left: 0.4rem;
}

body.sidebar-collapsed .sidebar-nav .nav-link .bi {
    width: auto;
    flex-basis: auto;
    font-size: 1.1rem;
}

body.sidebar-collapsed .sidebar-nav .nav-link.active {
    box-shadow: inset 0 -2px 0 var(--gold);
}

body.sidebar-collapsed .sidebar-footer {
    justify-content: center;
}

@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 250px;
    }

    .profile-menu-copy,
    .profile-chevron {
        display: none;
    }

    .calendar-day {
        min-height: 5.6rem;
    }
}

@media (max-width: 767.98px) {
    .app-sidebar {
        width: min(84vw, 292px);
        transform: translateX(-105%);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1030;
        display: block;
        border: 0;
        background: rgba(17, 31, 49, 0.4);
        backdrop-filter: blur(2px);
    }

    .app-topbar,
    body.sidebar-collapsed .app-topbar {
        width: 100%;
        min-height: 4.05rem;
        margin-left: 0;
        padding: 0.55rem 0.85rem;
    }

    .app-shell main.container,
    body.sidebar-collapsed .app-shell main.container {
        width: 100%;
        margin-left: 0;
        padding: 1.2rem 0.85rem 2rem !important;
    }

    .breadcrumb-line > span,
    .breadcrumb-line > .bi {
        display: none;
    }

    .topbar-leading,
    .topbar-actions {
        gap: 0.6rem;
    }

    .topbar-actions {
        gap: 0.65rem;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .page-heading > .btn,
    .page-heading > div + .btn {
        align-self: flex-start;
    }

    .welcome-banner {
        min-height: unset;
        padding: 1.25rem;
    }

    .welcome-banner .welcome-mark {
        width: 2.9rem;
        height: 2.9rem;
        flex-basis: 2.9rem;
    }

    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-day {
        min-height: 4.4rem;
        padding: 0.25rem;
    }

    .calendar-week .calendar-day {
        min-height: 6rem;
    }

    .calendar-weekday {
        padding: 0.5rem 0.2rem;
        font-size: 0.57rem;
    }

    .calendar-event {
        padding: 0.2rem;
        font-size: 0.57rem;
    }

    .calendar-events {
        gap: 0.12rem;
    }

    .calendar-day-number {
        width: 1.4rem;
        height: 1.4rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 575.98px) {
    .auth-shell {
        min-height: 100svh;
        padding: 0.75rem;
    }

    .auth-layout {
        min-height: unset;
        grid-template-columns: 1fr;
        border-radius: 1rem;
    }

    .auth-intro {
        min-height: 10rem;
        padding: 1.25rem 1.35rem;
    }

    .auth-intro-content {
        padding: 1.4rem 0 0.4rem;
    }

    .auth-intro-content h1 {
        font-size: 1.55rem;
    }

    .auth-intro-content p:not(.eyebrow) {
        margin-bottom: 0;
        font-size: 0.78rem;
    }

    .auth-intro-footer {
        display: none;
    }

    .auth-card .card-body {
        padding: 1.4rem 1.35rem 1.6rem;
    }

    .auth-form-heading {
        margin-bottom: 1.2rem;
    }

    .profile-menu-toggle .profile-avatar {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
    }

    .notification-link {
        width: 2.15rem;
        height: 2.15rem;
    }

    .calendar-month-nav .btn {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .app-sidebar,
    .app-topbar,
    .app-shell main.container,
    .sidebar-nav .nav-link {
        transition: none;
    }
}

/* Unified enterprise component refinements */
:root {
    --qms-radius-sm: 8px;
    --qms-radius-md: 12px;
    --qms-radius-lg: 16px;
    --qms-border: #dfe5ec;
    --qms-surface: #ffffff;
    --qms-page: #f4f6f8;
}

.app-shell main.container {
    max-width: 1320px;
}

.card {
    border: 1px solid var(--qms-border);
    border-radius: var(--qms-radius-lg);
    background: var(--qms-surface);
    box-shadow: 0 8px 24px rgba(20, 45, 78, 0.055);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card .card-body {
    padding: 1.35rem;
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--qms-radius-sm);
    font-size: 0.86rem;
}

.btn-sm {
    min-height: 34px;
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: #ccd5df;
    border-radius: var(--qms-radius-sm);
}

.table {
    --bs-table-bg: #fff;
}

.table th {
    height: 48px;
    color: #46566a;
    background: #f7f9fb;
}

.table td {
    height: 58px;
    background: #fff;
}

.badge {
    border: 1px solid transparent;
}

.official-logo,
.official-logo-placeholder {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.official-logo {
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(12, 32, 58, 0.16);
}

.official-logo-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    color: #f2dfac;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.45rem;
}

.auth-brand > div,
.brand-copy {
    display: grid;
}

.auth-brand small {
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.69rem;
}

.brand-mark-logo {
    overflow: hidden;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
}

.brand-mark-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3.1rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: grid;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #607087;
    background: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--blue);
    background: #eef3f8;
}

.dashboard-heading {
    display: none;
}

.welcome-actions {
    display: flex;
    z-index: 1;
    align-items: center;
    gap: 0.7rem;
}

.welcome-actions > span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
}

.welcome-actions .btn-light {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #203753;
    background: #fff;
}

.stat-card-link {
    display: grid;
    min-height: 112px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--qms-border);
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 45, 78, 0.055);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 45, 78, 0.09);
}

.stat-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    color: #1f4e79;
    background: #edf3f8;
}

.stat-card-link > span:nth-child(2) {
    display: grid;
}

.stat-card-link .label {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.stat-card-link .value {
    margin: 0.15rem 0 0;
    color: var(--blue-dark);
    font-size: 1.55rem;
}

.stat-card-arrow {
    color: #9da9b6;
}

.recent-record-list {
    display: grid;
}

.recent-record,
.activity-record,
.update-record {
    border-bottom: 1px solid #edf0f3;
}

.recent-record,
.activity-record {
    display: grid;
    align-items: center;
}

.recent-record {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    padding: 0.68rem 0.25rem;
}

.recent-record:last-child,
.activity-record:last-child,
.update-record:last-child {
    border-bottom: 0;
}

.recent-record-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    color: #1f4e79;
    background: #edf3f8;
}

.recent-record > span:nth-child(2),
.update-record > div,
.activity-record > span:last-child {
    display: grid;
}

.recent-record strong,
.update-record strong,
.activity-record strong {
    color: #263445;
    font-size: 0.84rem;
}

.recent-record small,
.recent-record time,
.update-record small,
.activity-record small {
    color: var(--muted);
    font-size: 0.72rem;
}

.activity-record {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.65rem 0.2rem;
}

.activity-record time {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #dde5ed;
    border-radius: 10px;
    color: #1f4e79;
    background: #f8fafc;
}

.activity-record time strong {
    font-size: 1rem;
    line-height: 1;
}

.activity-record time span {
    margin-top: -0.12rem;
    color: #7c8998;
    font-size: 0.64rem;
    font-weight: 700;
}

.update-record {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.68rem 0.2rem;
}

.empty-state {
    display: grid;
    min-height: 104px;
    place-items: center;
    align-content: center;
    gap: 0.35rem;
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    font-size: 1.35rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.82rem;
}

@media (max-width: 767.98px) {
    .welcome-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-actions {
        width: 100%;
        justify-content: space-between;
    }

    .stat-card-link {
        min-height: 96px;
    }

    .recent-record {
        grid-template-columns: auto 1fr;
    }

    .recent-record time {
        display: none;
    }

    .role-box {
        align-items: stretch;
    }

    .role-box .btn {
        width: 100%;
    }
}
