:root {
    --emerald: #0f8b5f;
    --emerald-dark: #086144;
    --navy: #0b1f3a;
    --navy-soft: #12385f;
    --gold: #d6a83f;
    --soft-bg: #f4f7f6;
    --muted: #6c757d;
    --white: #ffffff;
    --border: #e4e9e7;
    --danger-soft: #fff3f3;
    --shadow: 0 16px 40px rgba(11, 31, 58, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--soft-bg);
    color: #1f2937;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--emerald-dark);
}

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

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--navy), var(--navy-soft));
    color: var(--white);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.5px;
    flex: 0 0 auto;
}

.sidebar-brand strong,
.sidebar-brand small,
.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-brand small,
.sidebar-user small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-nav a.disabled {
    opacity: 0.48;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-nav small {
    font-size: 11px;
    color: var(--gold);
}

.menu-label {
    font-weight: 600;
}

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

.btn-sidebar-logout {
    width: 100%;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
}

.btn-sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.topbar-user,
.topbar-badge {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--emerald-dark);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
}

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

.topbar-user strong,
.topbar-user small {
    display: block;
    line-height: 1.2;
}

.topbar-user small {
    font-size: 12px;
    color: var(--muted);
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15, 139, 95, 0.12);
    color: var(--emerald-dark);
    font-weight: 800;
}

.hero-card,
.content-card,
.stat-card,
.login-card,
.role-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(214, 168, 63, 0.20), transparent 34%),
        linear-gradient(135deg, #ffffff, #f6fffb);
}

.eyebrow {
    display: inline-block;
    color: var(--emerald-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin-bottom: 10px;
}

.hero-card h2,
.login-card h1 {
    color: var(--navy);
    font-size: 34px;
    line-height: 1.18;
    max-width: 820px;
    margin: 0 0 12px;
}

.hero-card p,
.login-card p {
    max-width: 760px;
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 22px;
    min-height: 140px;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    color: var(--emerald-dark);
    font-size: 32px;
    line-height: 1.1;
    margin: 8px 0;
}

.content-card {
    padding: 26px;
}

.content-card h2,
.content-card h3,
.section-title {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 12px;
}

.setup-list {
    margin-bottom: 0;
    color: #374151;
}

.setup-list li {
    margin-bottom: 8px;
}

.info-table th {
    width: 170px;
    color: var(--muted);
    font-weight: 700;
}

.permission-list {
    padding-left: 18px;
    margin-bottom: 16px;
}

.permission-list li {
    margin-bottom: 8px;
    color: #374151;
}

.role-card {
    padding: 18px;
    height: 100%;
    box-shadow: none;
}

.role-card strong,
.role-card code,
.role-card p {
    display: block;
}

.role-card strong {
    color: var(--navy);
    font-size: 16px;
}

.role-card code {
    margin: 7px 0;
    color: var(--emerald-dark);
}

.role-card p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.auth-body {
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 168, 63, 0.24), transparent 26%),
        radial-gradient(circle at 80% 10%, rgba(15, 139, 95, 0.20), transparent 30%),
        linear-gradient(135deg, var(--navy), #0f3d4d 55%, var(--emerald-dark));
}

.auth-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.login-wrapper {
    width: min(100%, 520px);
}

.login-card {
    padding: 32px;
}

.login-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.login-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.form-control:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 0.2rem rgba(15, 139, 95, 0.15);
}

.btn-primary {
    --bs-btn-bg: var(--emerald);
    --bs-btn-border-color: var(--emerald);
    --bs-btn-hover-bg: var(--emerald-dark);
    --bs-btn-hover-border-color: var(--emerald-dark);
}

.table thead th {
    color: var(--navy);
    background: #f8fbfa;
    border-bottom: 1px solid var(--border);
}

.app-footer {
    margin-top: 28px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

@media (max-width: 992px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-radius: 0 0 24px 24px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-footer {
        margin-top: 18px;
    }

    .main-content {
        padding: 20px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-user {
        border-radius: 18px;
    }

    .hero-card h2,
    .login-card h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .content-card,
    .login-card {
        padding: 22px;
        border-radius: 20px;
    }

    .login-brand {
        flex-direction: column;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* PATCH 02 - Dashboard Admin */
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: stretch;
    background:
        radial-gradient(circle at top right, rgba(214, 168, 63, 0.22), transparent 34%),
        linear-gradient(135deg, #ffffff, #f4fffa);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.dashboard-hero h2 {
    color: var(--navy);
    font-size: 32px;
    line-height: 1.18;
    max-width: 900px;
    margin: 0 0 12px;
    font-weight: 850;
}

.dashboard-hero p {
    color: #4b5563;
    max-width: 840px;
    margin-bottom: 18px;
}

.dashboard-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-meta span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 139, 95, 0.10);
    color: var(--emerald-dark);
    font-weight: 700;
    font-size: 13px;
}

.dashboard-hero-panel {
    border-radius: 24px;
    background: linear-gradient(160deg, var(--navy), var(--emerald-dark));
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
}

.dashboard-hero-panel small,
.dashboard-hero-panel span {
    color: rgba(255,255,255,0.75);
}

.dashboard-hero-panel strong {
    font-size: 36px;
    line-height: 1;
    margin: 8px 0;
}

.stat-card-accent {
    background:
        radial-gradient(circle at top right, rgba(214, 168, 63, 0.22), transparent 36%),
        #ffffff;
}

.mini-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.06);
}

.mini-stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.mini-stat-card strong {
    color: var(--emerald-dark);
    font-size: 28px;
    line-height: 1;
}

.warning-card strong {
    color: #b45309;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.section-heading h3 {
    margin-bottom: 4px;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

.bar-chart-simple {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.bar-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
}

.bar-label {
    color: #374151;
    font-weight: 700;
    font-size: 14px;
}

.bar-track {
    height: 14px;
    border-radius: 999px;
    background: #eef3f1;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.bar-value {
    text-align: right;
    color: var(--navy);
    font-weight: 800;
}

.status-list,
.activity-list,
.deadline-list {
    display: grid;
    gap: 12px;
}

.status-item span {
    color: #374151;
    font-weight: 700;
}

.status-item strong {
    color: var(--navy);
    font-size: 13px;
}

.slim-progress {
    height: 8px;
    margin-top: 8px;
    background: #eef3f1;
}

.slim-progress .progress-bar {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.empty-state {
    border: 1px dashed #cfd9d5;
    background: #fbfdfc;
    border-radius: 18px;
    padding: 22px;
    display: grid;
    gap: 4px;
    color: var(--muted);
}

.empty-state strong {
    color: var(--navy);
}

.empty-state.positive {
    border-color: rgba(15, 139, 95, 0.28);
    background: rgba(15, 139, 95, 0.06);
}

.activity-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
}

.activity-item strong,
.activity-item span,
.activity-item small {
    display: block;
}

.activity-item strong {
    color: var(--navy);
}

.activity-item span,
.activity-item small {
    color: var(--muted);
}

.deadline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fffdf7;
}

.deadline-item strong,
.deadline-item span,
.deadline-date small {
    display: block;
}

.deadline-item > div:first-child strong {
    color: var(--navy);
    margin-bottom: 4px;
}

.deadline-item > div:first-child span {
    color: #4b5563;
}

.deadline-date {
    text-align: right;
}

.deadline-date strong {
    color: #b45309;
}

.deadline-date span,
.deadline-date small {
    color: var(--muted);
}

.badge-soft {
    border: 1px solid var(--border);
    color: var(--emerald-dark) !important;
}

@media (max-width: 992px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .dashboard-hero h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .bar-row {
        grid-template-columns: 1fr 42px;
    }

    .bar-label {
        grid-column: 1 / -1;
    }

    .deadline-item {
        grid-template-columns: 1fr;
    }

    .deadline-date {
        text-align: left;
    }
}

/* PATCH 03 - Master Data Madrasah */
.brand-logo-img,
.topbar-logo,
.profile-logo-preview img,
.logo-live-preview img {
    object-fit: contain;
    background: #ffffff;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    flex: 0 0 auto;
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    padding: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 22px rgba(11, 31, 58, 0.08);
}

.patch-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 139, 95, 0.10);
    color: var(--emerald-dark);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.profile-logo-preview {
    width: 130px;
    min-width: 130px;
    height: 130px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(15, 139, 95, 0.09), rgba(214, 168, 63, 0.12));
    display: grid;
    place-items: center;
    padding: 14px;
}

.profile-logo-preview img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.logo-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.master-form h3,
.side-panel-sticky h3 {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.master-form .form-label {
    color: #374151;
    font-weight: 700;
    font-size: 14px;
}

.master-form .form-control,
.master-form .form-select {
    border-radius: 14px;
    border-color: var(--border);
    padding: 11px 13px;
}

.master-form textarea.form-control {
    min-height: 110px;
}

.side-panel-sticky {
    position: sticky;
    top: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    background: #fbfdfc;
}

.upload-help {
    color: var(--muted);
    font-size: 12px;
}

.logo-live-preview {
    min-height: 160px;
    border: 1px dashed rgba(15, 139, 95, 0.38);
    border-radius: 22px;
    background: #ffffff;
    display: grid;
    place-items: center;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.logo-live-preview img {
    max-width: 100%;
    max-height: 130px;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .topbar-title-wrap {
        align-items: flex-start;
    }

    .topbar-logo {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .profile-logo-preview {
        width: 100px;
        min-width: 100px;
        height: 100px;
        border-radius: 22px;
    }

    .section-heading.align-items-start {
        gap: 18px;
    }
}

.btn-primary-custom {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: #ffffff;
    font-weight: 800;
    padding: 11px 16px;
    box-shadow: 0 10px 24px rgba(15, 139, 95, 0.22);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald-dark), var(--navy-soft));
}

/* PATCH 04 - Buku Tamu Umum */
.btn-primary-custom {
    background: linear-gradient(135deg, #047857, #0f766e);
    border: 0;
    color: #ffffff;
    font-weight: 700;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    box-shadow: 0 12px 24px rgba(4, 120, 87, 0.18);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #065f46, #115e59);
}

.mini-stat {
    min-height: 118px;
}

.mini-stat span {
    color: #64748b;
    font-weight: 700;
}

.mini-stat strong {
    display: block;
    font-size: 2.35rem;
    color: #0f172a;
    margin-top: 0.45rem;
}

.data-table thead th {
    white-space: nowrap;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
    background: #f8fafc;
}

.data-table tbody td {
    font-size: 0.92rem;
}

.upload-preview-box {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 18px;
    padding: 1rem;
    min-height: 140px;
}

.image-preview {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.35rem;
}

.signature-preview {
    width: 100%;
    max-width: 280px;
    min-height: 90px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.5rem;
}

.small-link {
    color: #047857;
    font-weight: 700;
    text-decoration: none;
}

.small-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .section-heading {
        gap: 1rem;
    }

    .section-heading .d-flex {
        width: 100%;
    }

    .section-heading .btn {
        flex: 1 1 auto;
    }
}

/* PATCH 05 - Buku Tamu Khusus + skala UI proporsional */
html {
    font-size: 14px;
}

body {
    font-size: 0.94rem;
    line-height: 1.5;
}

.sidebar {
    width: 260px;
    padding: 18px 14px;
}

.sidebar-brand {
    gap: 10px;
    padding-bottom: 18px;
}

.brand-logo,
.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.sidebar-brand strong {
    font-size: 0.95rem;
    line-height: 1.25;
}

.sidebar-brand small,
.sidebar-user small,
.topbar-user small {
    font-size: 0.76rem;
}

.sidebar-nav {
    gap: 6px;
    margin-top: 18px;
}

.sidebar-nav a {
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.sidebar-nav small {
    font-size: 0.68rem;
}

.main-content {
    padding: 22px;
}

.topbar {
    margin-bottom: 18px;
}

.topbar h1 {
    font-size: 1.45rem;
}

.topbar p {
    font-size: 0.9rem;
}

.topbar-user,
.topbar-badge {
    padding: 8px 12px;
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.topbar-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.dashboard-hero,
.hero-card {
    padding: 24px;
    border-radius: 22px;
}

.dashboard-hero h2,
.hero-card h2,
.login-card h1 {
    font-size: 1.75rem;
}

.dashboard-hero p,
.hero-card p,
.login-card p {
    font-size: 0.96rem;
}

.dashboard-hero-panel {
    padding: 18px;
    min-height: 150px;
    border-radius: 18px;
}

.dashboard-hero-panel strong {
    font-size: 2rem;
}

.content-card,
.stat-card,
.role-card,
.side-panel-sticky {
    border-radius: 18px;
}

.content-card {
    padding: 20px;
}

.stat-card {
    padding: 16px;
    min-height: 112px;
}

.stat-card strong,
.mini-stat strong {
    font-size: 1.9rem;
}

.mini-stat {
    min-height: 96px;
}

.mini-stat-card {
    padding: 14px 16px;
    border-radius: 16px;
}

.mini-stat-card strong {
    font-size: 1.55rem;
}

.content-card h2 {
    font-size: 1.45rem;
}

.content-card h3,
.section-title,
.master-form h3,
.side-panel-sticky h3 {
    font-size: 1.12rem;
}

.section-heading {
    margin-bottom: 12px;
}

.form-label,
.master-form .form-label {
    font-size: 0.86rem;
    font-weight: 700;
}

.form-control,
.form-select,
.master-form .form-control,
.master-form .form-select {
    font-size: 0.9rem;
    padding: 0.55rem 0.72rem;
    border-radius: 11px;
}

textarea.form-control {
    min-height: 84px;
}

.btn,
.btn-primary-custom {
    font-size: 0.88rem;
    padding: 0.52rem 0.78rem;
    border-radius: 11px;
}

.btn-group-sm > .btn,
.btn-sm {
    font-size: 0.78rem;
    padding: 0.32rem 0.52rem;
}

.patch-badge {
    font-size: 0.72rem;
    padding: 5px 9px;
}

.data-table thead th {
    font-size: 0.76rem;
}

.data-table tbody td,
.table tbody td {
    font-size: 0.84rem;
}

.table > :not(caption) > * > * {
    padding: 0.58rem 0.62rem;
}

.upload-preview-box {
    border-radius: 14px;
    min-height: 116px;
    padding: 0.85rem;
}

.image-preview {
    max-width: 190px;
    border-radius: 12px;
}

.signature-preview {
    max-width: 240px;
    min-height: 76px;
    border-radius: 12px;
}

.app-footer {
    font-size: 0.82rem;
}

@media (max-width: 992px) {
    html {
        font-size: 13.5px;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 16px;
    }

    .dashboard-hero h2,
    .hero-card h2,
    .login-card h1 {
        font-size: 1.55rem;
    }
}

@media (max-width: 576px) {
    .content-card,
    .hero-card,
    .dashboard-hero,
    .login-card {
        padding: 16px;
        border-radius: 16px;
    }

    .section-heading {
        flex-direction: column;
    }
}

/* PATCH 06 - Canvas tanda tangan digital */
.signature-pad-box {
    border: 1px dashed rgba(15, 139, 95, 0.45);
    border-radius: 18px;
    background: #f8fbfa;
    padding: 14px;
}

.signature-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 190px;
    border: 1px solid #d8e4df;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    touch-action: none;
}

.signature-canvas {
    width: 100%;
    height: 190px;
    display: block;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

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

.signature-required-warning {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.14);
    border-radius: 18px;
}

.signature-preview,
.signature-table-preview {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    object-fit: contain;
}

.signature-preview {
    max-width: 100%;
    max-height: 130px;
    padding: 8px;
}

.signature-table-preview {
    width: 92px;
    height: 38px;
    padding: 3px;
}

@media (max-width: 576px) {
    .signature-canvas-wrap {
        min-height: 170px;
    }

    .signature-canvas {
        height: 170px;
    }
}


/* PATCH 08 - Disposisi Surat */
.disposition-timeline {
    border-left: 3px solid rgba(16, 185, 129, .25);
    margin-left: .4rem;
    padding-left: 1rem;
}
.disposition-timeline-item {
    position: relative;
    padding: .55rem 0 .65rem;
}
.disposition-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.43rem;
    top: .9rem;
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    background: var(--emerald, #10b981);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}
.recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .24rem .55rem;
    margin: .1rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .78rem;
    border: 1px solid #e2e8f0;
}
.deadline-danger {
    color: #b91c1c;
    font-weight: 700;
}
.deadline-warning {
    color: #b45309;
    font-weight: 700;
}
.followup-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
}

/* PATCH 09A - preview nomor surat keluar MTs */
.number-preview-box {
    min-height: 38px;
    padding: 0.55rem 0.75rem;
    border: 1px dashed rgba(15, 118, 110, 0.45);
    border-radius: 0.65rem;
    background: rgba(236, 253, 245, 0.75);
    color: #064e3b;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.35;
}

/* PATCH 11 - Laporan dan Export */
.stat-card.stat-card-active {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.14);
}
.report-table th,
.report-table td {
    font-size: 0.82rem;
}
.report-table td {
    max-width: 260px;
}

/* PATCH 11A - Perapihan proporsi tampilan Laporan dan Export */
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
}

.report-mini-card {
    display: block;
    min-height: 76px;
    padding: 0.72rem 0.82rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
    transition: all .18s ease;
}

.report-mini-card:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.075);
}

.report-mini-card.active {
    border-color: rgba(16, 185, 129, 0.62);
    background: linear-gradient(135deg, rgba(236, 253, 245, .98), #ffffff);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.report-mini-label {
    display: block;
    min-height: 30px;
    font-size: 0.74rem;
    line-height: 1.25;
    color: var(--muted, #64748b);
    font-weight: 650;
}

.report-mini-card strong {
    display: block;
    margin-top: 0.12rem;
    font-size: 1.18rem;
    line-height: 1.05;
    color: var(--navy, #0f172a);
    letter-spacing: -0.02em;
}

.report-mini-card small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.68rem;
    color: var(--muted, #64748b);
}

.report-filter-card {
    padding: 1rem 1.05rem;
}

.report-filter-card .form-label {
    margin-bottom: 0.26rem;
    font-size: 0.74rem;
    font-weight: 650;
}

.report-filter-card .form-control,
.report-filter-card .form-select {
    min-height: 34px;
    padding: 0.36rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 0.62rem;
}

.report-filter-card .btn {
    min-height: 34px;
    font-size: 0.78rem;
    border-radius: 0.62rem;
}

.report-preview-card {
    padding: 1rem 1.05rem;
}

.report-preview-card .section-title {
    font-size: 1rem;
}

.report-preview-card small,
.report-count-badge {
    font-size: 0.72rem;
}

.compact-report-table {
    margin-bottom: 0;
}

.compact-report-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    font-size: 0.72rem;
    line-height: 1.22;
    padding: 0.42rem 0.5rem;
    white-space: nowrap;
}

.compact-report-table tbody td {
    font-size: 0.76rem;
    line-height: 1.25;
    padding: 0.42rem 0.5rem;
    vertical-align: top;
}

.compact-report-table td {
    max-width: 220px;
    overflow-wrap: anywhere;
}

.compact-report-table td:first-child,
.compact-report-table th:first-child {
    width: 42px !important;
    text-align: center;
}

@media (max-width: 768px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .report-mini-card {
        min-height: 68px;
        padding: 0.62rem 0.68rem;
    }

    .report-mini-label {
        min-height: auto;
        font-size: 0.7rem;
    }

    .report-mini-card strong {
        font-size: 1.05rem;
    }
}


/* PATCH 11B - Warna kartu jumlah data global */
.card-tone-emerald,
.card-tone-blue,
.card-tone-orange,
.card-tone-purple,
.card-tone-gold,
.card-tone-pink,
.card-tone-cyan,
.card-tone-red {
    position: relative;
    overflow: hidden;
}

.card-tone-emerald::before,
.card-tone-blue::before,
.card-tone-orange::before,
.card-tone-purple::before,
.card-tone-gold::before,
.card-tone-pink::before,
.card-tone-cyan::before,
.card-tone-red::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    opacity: .92;
}

.stat-card.card-tone-emerald, .mini-stat-card.card-tone-emerald, .report-mini-card.card-tone-emerald { background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 78%); border-color: rgba(16,185,129,.30); }
.stat-card.card-tone-blue, .mini-stat-card.card-tone-blue, .report-mini-card.card-tone-blue { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 78%); border-color: rgba(59,130,246,.28); }
.stat-card.card-tone-orange, .mini-stat-card.card-tone-orange, .report-mini-card.card-tone-orange { background: linear-gradient(135deg, #fff7ed 0%, #ffffff 78%); border-color: rgba(249,115,22,.30); }
.stat-card.card-tone-purple, .mini-stat-card.card-tone-purple, .report-mini-card.card-tone-purple { background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 78%); border-color: rgba(139,92,246,.30); }
.stat-card.card-tone-gold, .mini-stat-card.card-tone-gold, .report-mini-card.card-tone-gold { background: linear-gradient(135deg, #fffbea 0%, #ffffff 78%); border-color: rgba(214,168,63,.36); }
.stat-card.card-tone-pink, .mini-stat-card.card-tone-pink, .report-mini-card.card-tone-pink { background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 78%); border-color: rgba(236,72,153,.28); }
.stat-card.card-tone-cyan, .mini-stat-card.card-tone-cyan, .report-mini-card.card-tone-cyan { background: linear-gradient(135deg, #ecfeff 0%, #ffffff 78%); border-color: rgba(6,182,212,.28); }
.stat-card.card-tone-red, .mini-stat-card.card-tone-red, .report-mini-card.card-tone-red { background: linear-gradient(135deg, #fef2f2 0%, #ffffff 78%); border-color: rgba(239,68,68,.28); }

.card-tone-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.card-tone-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.card-tone-orange::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.card-tone-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.card-tone-gold::before { background: linear-gradient(90deg, #d6a83f, #f4c95d); }
.card-tone-pink::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.card-tone-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.card-tone-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.stat-card.card-tone-emerald strong, .mini-stat-card.card-tone-emerald strong, .report-mini-card.card-tone-emerald strong { color: #047857; }
.stat-card.card-tone-blue strong, .mini-stat-card.card-tone-blue strong, .report-mini-card.card-tone-blue strong { color: #1d4ed8; }
.stat-card.card-tone-orange strong, .mini-stat-card.card-tone-orange strong, .report-mini-card.card-tone-orange strong { color: #c2410c; }
.stat-card.card-tone-purple strong, .mini-stat-card.card-tone-purple strong, .report-mini-card.card-tone-purple strong { color: #6d28d9; }
.stat-card.card-tone-gold strong, .mini-stat-card.card-tone-gold strong, .report-mini-card.card-tone-gold strong { color: #b7791f; }
.stat-card.card-tone-pink strong, .mini-stat-card.card-tone-pink strong, .report-mini-card.card-tone-pink strong { color: #be185d; }
.stat-card.card-tone-cyan strong, .mini-stat-card.card-tone-cyan strong, .report-mini-card.card-tone-cyan strong { color: #0f766e; }
.stat-card.card-tone-red strong, .mini-stat-card.card-tone-red strong, .report-mini-card.card-tone-red strong { color: #b91c1c; }

.stat-card.card-tone-emerald span, .stat-card.card-tone-emerald small,
.mini-stat-card.card-tone-emerald span, .report-mini-card.card-tone-emerald small, .report-mini-card.card-tone-emerald .report-mini-label { color: #065f46; }
.stat-card.card-tone-blue span, .stat-card.card-tone-blue small,
.mini-stat-card.card-tone-blue span, .report-mini-card.card-tone-blue small, .report-mini-card.card-tone-blue .report-mini-label { color: #1e40af; }
.stat-card.card-tone-orange span, .stat-card.card-tone-orange small,
.mini-stat-card.card-tone-orange span, .report-mini-card.card-tone-orange small, .report-mini-card.card-tone-orange .report-mini-label { color: #9a3412; }
.stat-card.card-tone-purple span, .stat-card.card-tone-purple small,
.mini-stat-card.card-tone-purple span, .report-mini-card.card-tone-purple small, .report-mini-card.card-tone-purple .report-mini-label { color: #5b21b6; }
.stat-card.card-tone-gold span, .stat-card.card-tone-gold small,
.mini-stat-card.card-tone-gold span, .report-mini-card.card-tone-gold small, .report-mini-card.card-tone-gold .report-mini-label { color: #92400e; }
.stat-card.card-tone-pink span, .stat-card.card-tone-pink small,
.mini-stat-card.card-tone-pink span, .report-mini-card.card-tone-pink small, .report-mini-card.card-tone-pink .report-mini-label { color: #9d174d; }
.stat-card.card-tone-cyan span, .stat-card.card-tone-cyan small,
.mini-stat-card.card-tone-cyan span, .report-mini-card.card-tone-cyan small, .report-mini-card.card-tone-cyan .report-mini-label { color: #155e75; }
.stat-card.card-tone-red span, .stat-card.card-tone-red small,
.mini-stat-card.card-tone-red span, .report-mini-card.card-tone-red small, .report-mini-card.card-tone-red .report-mini-label { color: #991b1b; }

.report-mini-card.active.card-tone-emerald { box-shadow: 0 10px 24px rgba(16,185,129,.16); }
.report-mini-card.active.card-tone-blue { box-shadow: 0 10px 24px rgba(59,130,246,.16); }
.report-mini-card.active.card-tone-orange { box-shadow: 0 10px 24px rgba(249,115,22,.16); }
.report-mini-card.active.card-tone-purple { box-shadow: 0 10px 24px rgba(139,92,246,.16); }
.report-mini-card.active.card-tone-gold { box-shadow: 0 10px 24px rgba(214,168,63,.16); }
.report-mini-card.active.card-tone-pink { box-shadow: 0 10px 24px rgba(236,72,153,.16); }
.report-mini-card.active.card-tone-cyan { box-shadow: 0 10px 24px rgba(6,182,212,.16); }
.report-mini-card.active.card-tone-red { box-shadow: 0 10px 24px rgba(239,68,68,.16); }


/* PATCH 12 - Backup Database */
.backup-table th,
.backup-table td {
    font-size: 0.82rem;
    vertical-align: middle;
}

.backup-note-card ul {
    color: #475569;
    font-size: 0.88rem;
}

.backup-note-card code {
    color: #0f766e;
    font-weight: 700;
}


/* PATCH 13 - Hardening Security */
.security-check-card {
    min-height: 140px;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    background: #fff;
}
.security-check-card h3 {
    margin: .55rem 0 .2rem;
    font-size: 1.15rem;
    font-weight: 800;
}
.security-check-card small {
    color: var(--muted, #64748b);
}
.security-check-card.security-ok {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 80%);
    border-color: rgba(16, 185, 129, .30);
}
.security-check-card.security-warning {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 80%);
    border-color: rgba(249, 115, 22, .30);
}


/* PATCH 13A - Manajemen User Lengkap */
.user-form-card .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.user-table th,
.user-table td {
    font-size: 0.84rem;
}

.user-table code {
    font-size: 0.78rem;
    color: #0f766e;
}

.user-table .btn-group .btn,
.user-table form .btn {
    border-radius: 0.5rem !important;
    margin: 0.1rem;
}

@media (max-width: 768px) {
    .user-table .btn-group {
        display: grid;
        gap: 0.25rem;
    }
    .user-table .btn-group .btn,
    .user-table form .btn {
        width: 100%;
        margin: 0;
    }
}

/* PATCH 14 - Panduan Deploy Hostinger */
.deploy-step-list {
    padding-left: 1.15rem;
    color: #334155;
    font-size: 0.88rem;
}

.deploy-step-list li {
    margin-bottom: 0.52rem;
    line-height: 1.45;
}

.deploy-note-box {
    border: 1px solid rgba(214, 168, 63, .35);
    background: linear-gradient(135deg, #fffbea, #ffffff);
    border-radius: 16px;
    padding: 1rem;
}


/* Finalisasi UI Production */
.login-card-production {
    max-width: 460px;
    margin: 0 auto;
    padding: 34px 32px;
}

.login-brand-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.login-logo-image,
.login-logo-fallback {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    margin-bottom: 16px;
    box-shadow: 0 14px 34px rgba(11, 31, 58, 0.14);
}

.login-logo-image {
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(15, 139, 95, 0.16);
    padding: 10px;
}

.login-logo-fallback {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.45rem;
}

.login-brand-centered h1 {
    margin: 0;
    max-width: 100%;
    font-size: 1.46rem;
    line-height: 1.22;
}

.login-brand-centered p {
    margin: 0.45rem 0 0.25rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--emerald-dark);
}

.login-brand-centered span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.login-help-text {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.app-footer {
    justify-content: center;
}


/* PATCH 14B - Halaman Publik Buku Tamu / Mode Kios */
.guest-public-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(214, 168, 63, 0.22), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.18), transparent 30%),
        linear-gradient(135deg, #f5fbf8 0%, #eef6ff 100%);
}

.guest-public-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.guest-public-card {
    width: min(920px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
    padding: 28px;
}

.guest-public-header {
    text-align: center;
    margin-bottom: 22px;
}

.guest-public-logo,
.guest-public-logo-fallback {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .10);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-public-logo-fallback {
    color: #047857;
    font-weight: 900;
    font-size: 1.45rem;
}

.guest-public-header h1,
.guest-success-card h1 {
    color: #0b1f3a;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    font-weight: 850;
    margin: 0 0 4px;
}

.guest-public-header p {
    color: #64748b;
    margin: 0;
}

.guest-type-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.guest-public-form .form-label {
    font-weight: 700;
    color: #334155;
}

.guest-public-form .form-control,
.guest-public-form .form-select {
    border-radius: 12px;
    min-height: 42px;
}

.guest-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.guest-public-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.guest-success-card {
    max-width: 520px;
}

.success-checkmark {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 16px auto;
}

.qr-kiosk-card .qr-box {
    width: min(360px, 100%);
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.link-copy-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.link-copy-card label {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
}

@media print {
    .sidebar,
    .topbar,
    .main-content > .content-card:not(.qr-kiosk-card),
    .link-copy-card,
    .alert,
    .setup-list,
    .btn,
    script {
        display: none !important;
    }

    .app-shell,
    .main-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .qr-kiosk-card {
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .guest-public-card {
        padding: 20px;
        border-radius: 20px;
    }

    .guest-public-page {
        padding: 12px;
        align-items: flex-start;
    }
}


/* PATCH 14B Hotfix - QR lokal */
.qr-box canvas {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 16px;
    background: #ffffff;
    display: block;
    margin: 0 auto;
}

@media print {
    .qr-box canvas {
        max-width: 320px;
    }
}


/* PATCH 14B Hotfix - QR statis manual */
.static-qr-img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    background: #ffffff;
}

.qr-kiosk-card .qr-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media print {
    .static-qr-img {
        max-width: 260px;
    }

    .qr-kiosk-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 18px;
    }
}

/* PATCH 14C - Sidebar Dropdown Admin */
.sidebar-nav-dropdown {
    gap: 7px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .26) transparent;
}

.sidebar-nav-dropdown::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

.sidebar-link,
.sidebar-group > summary {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s ease;
    list-style: none;
    cursor: pointer;
    user-select: none;
    min-height: 40px;
}

.sidebar-group > summary::-webkit-details-marker {
    display: none;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-group > summary:hover,
.sidebar-group.is-active > summary,
.sidebar-group[open] > summary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-group {
    border-radius: 14px;
}

.sidebar-group[open] {
    background: rgba(255, 255, 255, 0.055);
}

.sidebar-group .menu-arrow {
    font-size: .85rem;
    opacity: .75;
    transition: transform .2s ease;
}

.sidebar-group[open] .menu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: grid;
    gap: 4px;
    padding: 5px 6px 8px 12px;
}

.sidebar-submenu a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    padding: 8px 10px 8px 14px;
    border-radius: 11px;
    font-size: .86rem;
    justify-content: flex-start;
    position: relative;
}

.sidebar-submenu a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-submenu a:hover,
.sidebar-submenu a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-submenu a.active::before {
    background: var(--gold);
}

@media (max-width: 992px) {
    .sidebar-nav-dropdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-y: visible;
    }

    .sidebar-group {
        min-width: 0;
    }

    .sidebar-submenu {
        padding-right: 6px;
    }
}

@media (max-width: 576px) {
    .sidebar-nav-dropdown {
        grid-template-columns: 1fr;
    }
}
