:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-text: #1f2933;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-primary: #0f766e;
    --color-primary-dark: #0b5c56;
    --color-success-bg: #ecfdf5;
    --color-success-text: #047857;
    --color-error-bg: #fef2f2;
    --color-error-text: #b91c1c;
    --color-warning-bg: #fef9c3;
    --color-warning-text: #854d0e;
    --color-primary-soft: #f0fdfa;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }

/* Pastikan atribut HTML [hidden] selalu menang, walau elemen punya class seperti .btn
   yang juga mendeklarasikan `display` (spesifisitas keduanya sama -> tanpa ini,
   urutan CSS bisa membuat elemen ber-hidden tetap tampil). */
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Kontainer utama dashboard (admin & klien) — terpisah dari .container (situs publik/marketing)
   supaya lebar konsisten di SEMUA halaman dashboard dan benar-benar melebar mengisi ruang yang
   dibebaskan saat sidebar diciutkan, alih-alih terkunci di 960px seperti halaman publik. */
.app-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

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

h1 { font-size: 1.5rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }

.muted { color: var(--color-muted); font-size: 0.92rem; }

/* Header */
@keyframes headerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 200;
    animation: headerSlideDown 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08); }

/* Varian transparan di atas hero (hanya dipakai di landing page) */
.site-header-transparent {
    background: transparent;
    border-bottom-color: transparent;
    position: absolute;
    left: 0;
    right: 0;
}
.site-header-transparent .brand,
.site-header-transparent .site-nav a:not(.btn) { color: #fff; }
.site-header-transparent .site-nav a:not(.btn):hover { color: #fff; opacity: 0.8; }
.site-header-transparent.is-scrolled {
    position: sticky;
    background: var(--color-surface);
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
}
.site-header-transparent.is-scrolled .brand,
.site-header-transparent.is-scrolled .site-nav a:not(.btn) { color: var(--color-text); }
body.has-hero { padding-top: 0; }

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.05rem;
}
.site-brand { display: inline-flex; align-items: center; gap: 8px; }

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-admin { background: #7c3aed; }

.site-nav a {
    margin-left: 16px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.92rem;
}

/* Main */
main.container { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }
main.app-container { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }

@media (max-width: 640px) {
    .app-container { padding: 0 16px; }
}

.site-footer {
    padding: 20px 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 20px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-narrow { max-width: 420px; margin-left: auto; margin-right: auto; }

/* Form berdiri di dalam .card lebar-penuh (960px) yang seragam dengan halaman admin lain,
   tapi input teks-nya sendiri dibatasi supaya tidak melar edge-to-edge. */
.form-narrow { max-width: 480px; }

/* Logo (upload atau monogram placeholder) */
.site-logo { display: inline-block; vertical-align: middle; }
.site-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    letter-spacing: 0.02em;
}
img.site-logo { object-fit: contain; border-radius: 8px; }
.logo-sm { width: 32px; height: 32px; font-size: 0.78rem; }
.logo-md { width: 44px; height: 44px; font-size: 0.95rem; }
.logo-lg { width: 72px; height: 72px; font-size: 1.4rem; }

/* Tab generik (dipakai di halaman Pengaturan Situs dan sejenisnya) */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border); margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-muted);
    cursor: pointer;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Login: panel split (branding + form) */
@keyframes loginShellIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.login-shell {
    max-width: 940px;
    margin: 24px auto 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px -24px rgba(15, 23, 42, 0.28), var(--shadow);
    animation: loginShellIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-visual {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    align-items: center;
}
.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.18), transparent 55%);
}
.login-visual-inner { position: relative; z-index: 1; }
.login-visual-logo {
    display: inline-flex;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 22px;
}
.login-visual h1 { color: #fff; font-size: 1.5rem; margin: 0 0 12px; }
.login-visual-inner > p { color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; line-height: 1.6; margin: 0 0 26px; }
.login-visual-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.login-visual-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.89rem;
    color: rgba(255, 255, 255, 0.95);
}
.login-visual-points svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    padding: 3px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.login-form-panel { padding: 44px 40px; }
.login-logo-mobile { display: none; text-align: center; margin-bottom: 18px; }
.login-welcome { font-size: 1.35rem; margin: 0 0 4px; }
.login-welcome-sub { margin: 0 0 22px; }

.login-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.login-tab-btn {
    flex: 1;
    padding: 9px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--color-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.login-tab-btn:hover { color: var(--color-text); }
.login-tab-btn.active { background: #fff; color: var(--color-primary); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }

.login-subtitle { margin-top: -6px; }
.login-links { text-align: center; margin: 14px 0 4px; }
.login-links-sep { margin: 0 6px; color: var(--color-border); }

/* Input dengan ikon di dalam field (email/password) */
.input-icon-group { position: relative; }
.input-icon-group .input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-muted);
    pointer-events: none;
}
input.has-icon { padding-left: 36px; }
input.has-icon-trailing { padding-right: 40px; }
.input-toggle-visibility {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    padding: 6px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--color-muted);
    cursor: pointer;
}
.input-toggle-visibility:hover { color: var(--color-text); background: #f1f5f9; }
.input-toggle-visibility.is-visible { color: var(--color-primary); }
.input-toggle-visibility svg { width: 18px; height: 18px; }

.captcha-box {
    background: #f8fafc;
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 14px;
}
.captcha-box label { margin: 0 0 6px; font-size: 0.85rem; }
.captcha-box input { margin-top: 0; }

.btn:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 760px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 12px auto 32px;
        border-radius: 14px;
    }
    .login-visual { display: none; }
    .login-logo-mobile { display: block; }
    .login-form-panel { padding: 32px 24px; }
}

.settings-logo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.settings-logo-preview .signature-stamp-img { max-height: 90px; }
.settings-logo-preview .favicon-preview-img { max-height: 40px; max-width: 40px; object-fit: contain; }
.settings-logo-preview .watermark-preview-img { max-height: 90px; max-width: 90px; object-fit: contain; }

.settings-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 24px 0 4px;
}
.settings-hint {
    font-size: 0.85rem;
    margin-top: -4px;
    margin-bottom: 16px;
}

/* Hero */
@keyframes heroFadeUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 132px 0 96px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(45, 212, 191, 0.35), transparent),
        radial-gradient(ellipse 60% 50% at 100% 10%, rgba(124, 58, 237, 0.25), transparent),
        linear-gradient(160deg, #0b3b38 0%, #0f766e 45%, #0b2545 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='6' cy='6' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { position: relative; max-width: 720px; }

.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
    font-size: 2.35rem;
    line-height: 1.2;
    margin: 0 0 16px;
    animation: heroFadeUp 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero > .hero-inner > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto;
    animation: heroFadeUp 0.7s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.7s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-hero-primary {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: #0b3b38;
}
.btn-hero-primary:hover { background: #e2fbf6; }

.btn-hero-outline {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.1); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 52px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.7s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat strong { font-size: 1.5rem; }
.hero-stat span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;
    fill: var(--color-bg);
}

/* Section shell dipakai semua bagian landing page */
.section { padding: 72px 0; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-eyebrow {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-heading h2 { font-size: 1.6rem; margin: 0; }

/* Layanan */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1); }
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-success-bg);
    font-size: 1.35rem;
    margin-bottom: 14px;
}
.service-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.service-card p { font-size: 0.88rem; color: var(--color-muted); margin: 0; line-height: 1.55; }

/* Register CTA */
.register-cta { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.register-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.register-cta-inner h2 { font-size: 1.4rem; margin: 0 0 6px; }
.register-cta-inner > div:first-child { max-width: 560px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: 9px; white-space: nowrap; }

/* Kontak */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.contact-card {
    text-align: center;
    padding: 24px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
}
.contact-card .service-icon { margin: 0 auto 14px; }
.contact-card h3 { font-size: 0.95rem; margin: 0 0 6px; }
.contact-card p { font-size: 0.86rem; color: var(--color-muted); margin: 0; word-break: break-word; }

/* Tombol "Daftar" di nav header — selalu putih di atas latar primary, apa pun state header */
.btn-nav { color: #fff !important; padding: 8px 16px; font-size: 0.85rem; }

/* Footer kaya (landing page) */

.site-footer-rich { background: #0b2230; color: rgba(255, 255, 255, 0.75); padding-top: 56px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.footer-col a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-brand .site-brand { color: #fff; margin-bottom: 10px; }
.footer-brand .muted { color: rgba(255, 255, 255, 0.6); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 108px 0 72px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-stats { gap: 22px; }
    .section { padding: 52px 0; }
    .register-cta-inner { text-align: center; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .hero-eyebrow,
    .hero h1,
    .hero > .hero-inner > p,
    .hero-actions,
    .hero-stats,
    .login-shell {
        animation: none !important;
    }
    .service-card { transition: none; }
}

/* Forms */
label { display: block; font-size: 0.88rem; font-weight: 600; margin: 14px 0 4px; }
input, select, textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #cbd5e1; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}
input[type="checkbox"], input[type="radio"] { width: auto; }

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 8L10 12.5L14.5 8' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 16px;
}

.form-row-inline { align-items: end; }
.form-actions { display: flex; align-items: end; }
.form-actions .btn { margin-top: 14px; }

.inline-form { display: inline; }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 14px 0; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 4px 12px -4px rgba(15, 118, 110, 0.5); }

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

.btn-danger { background: var(--color-error-text); color: #fff; }
.btn-danger:hover { background: #991b1b; }

.btn-block { width: 100%; margin-top: 18px; }

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s ease;
}
.btn-link:hover { color: var(--color-primary-dark); }

.btn-link-danger { color: var(--color-error-text); }
.btn-link-danger:hover { color: #991b1b; }

/* Flash messages */
.flash-stack { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }
.flash-success { background: var(--color-success-bg); color: var(--color-success-text); }
.flash-error { background: var(--color-error-bg); color: var(--color-error-text); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--color-border); }
.table th { color: var(--color-muted); font-weight: 600; background: #f8fafc; }
.table tbody tr { transition: background-color 0.1s ease; }
.table tbody tr:hover { background: #f8fafc; }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    opacity: 0.85;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-label { font-size: 0.8rem; color: var(--color-muted); }
.stat-value { font-size: 1.6rem; font-weight: 700; }

/* Simulator */
.sim-result {
    margin-top: 16px;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
}
.sim-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.sim-total { border-top: 1px solid var(--color-border); margin-top: 4px; padding-top: 10px; font-size: 1.05rem; }

/* Grafik batang (server-rendered, tanpa JS/library) */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    margin-top: 16px;
    padding: 0 4px;
}
.chart-bar {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.chart-bar-value {
    font-size: 0.7rem;
    color: var(--color-muted);
    margin-bottom: 4px;
    min-height: 1em;
    white-space: nowrap;
}
.chart-bar-track {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}
.chart-bar-fill {
    width: 100%;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
    min-height: 3px;
    transition: height 0.3s ease;
}
.chart-bar-label {
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-top: 6px;
}

@media (max-width: 640px) {
    .chart-bars { height: 150px; gap: 4px; }
    .chart-bar-value { font-size: 0.62rem; }
    .chart-bar-label { font-size: 0.62rem; }
}

/* Submission / invoice module */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.card-header-row h1 { margin-bottom: 6px; }

/* Timeline status pengajuan IPP */
.timeline {
    list-style: none;
    display: flex;
    margin: 22px 0 6px;
    padding: 0;
}
.timeline-step {
    position: relative;
    flex: 1 1 0;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
}
.timeline-connector {
    position: absolute;
    z-index: 0;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--color-border);
}
.timeline-step:first-child .timeline-connector { display: none; }
.timeline-step.is-done .timeline-connector { background: var(--color-primary); }
.timeline-marker {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    color: var(--color-muted);
    margin-bottom: 8px;
}
.timeline-step.is-done .timeline-marker { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.timeline-step.is-current .timeline-marker { border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15); }
.timeline-step.is-error .timeline-marker { background: var(--color-error-text); border-color: var(--color-error-text); color: #fff; }
.timeline-marker svg { width: 15px; height: 15px; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.timeline-label { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.timeline-step.is-upcoming .timeline-label { color: var(--color-muted); font-weight: 500; }
.timeline-time { display: block; font-size: 0.7rem; color: var(--color-muted); margin-top: 2px; }
.timeline-note { display: block; font-size: 0.7rem; color: var(--color-error-text); margin-top: 4px; }

@media (max-width: 720px) {
    .timeline { flex-direction: column; }
    .timeline-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        min-width: 0;
        padding: 0 0 24px;
        gap: 14px;
    }
    .timeline-step:last-child { padding-bottom: 0; }
    .timeline-marker { margin-bottom: 0; }
    .timeline-connector {
        top: 30px;
        left: 14px;
        width: 2px;
        height: calc(100% + 2px);
    }
    .timeline-content { flex: 1 1 auto; padding-top: 4px; }
}

.info-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); row-gap: 14px; margin: 16px 0; }
.info-grid > div { font-size: 0.92rem; }

.section-title { margin-top: 22px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}
.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}
.status-draft, .status-belum { background: #e2e8f0; color: #334155; }
.status-diajukan, .status-pending, .status-menunggu_verifikasi { background: var(--color-warning-bg); color: var(--color-warning-text); }
.status-revisi_pembayaran, .status-rejected { background: var(--color-error-bg); color: var(--color-error-text); }
.status-terverifikasi, .status-verified, .status-approved { background: #dcfce7; color: #166534; }
.status-terbit, .status-selesai { background: #dbeafe; color: #1e40af; }

.upload-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.upload-form input[type="file"] { width: auto; padding: 4px; font-size: 0.82rem; }
.payment-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}
.payment-account-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 40px 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.payment-account-card:hover { border-color: #cbd5e1; }
.payment-account-card:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.payment-account-bank { font-weight: 700; font-size: 0.95rem; }
.payment-account-number { font-size: 1rem; letter-spacing: 0.02em; }
.payment-account-holder { font-size: 0.82rem; color: var(--color-muted); }

.upload-count-group { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-count-label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--color-muted); }
.upload-count-input { width: 52px; padding: 4px 6px; font-size: 0.82rem; }
.upload-hint { font-size: 0.76rem; margin: 4px 0 0; }

.review-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-note { width: auto; min-width: 200px; padding: 6px 8px; font-size: 0.85rem; }

.btn-sm { padding: 6px 12px; font-size: 0.82rem; }

/* Invoice / print sheet */
:root {
    --invoice-border: #94a3b8;
    --font-mono: 'Courier New', Courier, Consolas, monospace;
}

/* Nilai data transaksi (bukan label/teks baku) — font berbeda supaya terlihat seperti formulir resmi terisi. */
.field-value { font-family: var(--font-mono); }

.invoice-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 3px double var(--color-text);
}
.company-block-with-logo { display: flex; align-items: flex-start; gap: 12px; }
.company-block h1 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.company-tagline { margin: 0 0 8px; font-size: 0.85rem; color: var(--color-muted); }
.company-contact { margin: 0; font-size: 0.8rem; color: var(--color-muted); line-height: 1.6; max-width: 320px; }

.invoice-meta { text-align: right; }
.invoice-doc-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.invoice-meta-table { border-collapse: collapse; margin-left: auto; }
.invoice-meta-table th, .invoice-meta-table td {
    border: 1px solid var(--invoice-border);
    padding: 5px 10px;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
}
.invoice-meta-table th { background: #f1f5f9; color: var(--color-muted); font-weight: 600; }

.invoice-info-box {
    border: 1px solid var(--invoice-border);
    border-radius: 6px;
    padding: 14px 18px 2px;
    margin-bottom: 20px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 0.92rem;
}
.invoice-table th, .invoice-table td {
    border: 1px solid var(--invoice-border);
    padding: 9px 12px;
}
.invoice-table th {
    background: #e9eef3;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--invoice-border);
}
.invoice-table tbody tr:nth-child(even) { background: #f8fafc; }
.text-right { text-align: right; }

.invoice-summary {
    max-width: 340px;
    margin: 0 0 20px auto;
    border: 1px solid var(--invoice-border);
    border-radius: 6px;
    overflow: hidden;
}
.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--invoice-border);
}
.invoice-summary-row:last-child { border-bottom: none; }
.invoice-summary-total {
    background: #f1f5f9;
    font-size: 1.02rem;
    font-weight: 700;
}

.invoice-note { font-size: 0.82rem; color: var(--color-muted); border-top: 1px solid var(--color-border); padding-top: 12px; }
.invoice-footer { font-size: 0.75rem; color: var(--color-muted); text-align: center; margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 10px; }

.invoice-summary-total .status-badge { margin-left: 8px; vertical-align: middle; }

.invoice-verify-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
.invoice-qr { width: 88px; height: 88px; flex-shrink: 0; }
.invoice-qr svg { width: 100%; height: 100%; }
.invoice-verify-text { font-size: 0.82rem; }
.invoice-verify-text p { margin: 0 0 4px; }
.invoice-verify-url { color: var(--color-primary); word-break: break-all; font-size: 0.78rem; }

/* SPAL */
.spal-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 3px double var(--color-text); }
.spal-header h1 { margin: 0 0 6px; font-size: 1.1rem; text-transform: uppercase; }
.spal-parties td { vertical-align: top; font-size: 0.9rem; }
.spal-party-label { width: 110px; font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.spal-clauses { font-size: 0.85rem; line-height: 1.7; text-align: justify; }
.spal-signature-intro { margin-top: 24px; }

.spal-closing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; margin-top: 16px; }
.spal-closing-party { display: flex; flex-direction: column; align-items: center; }
.spal-closing-stamp-slot { height: 64px; display: flex; align-items: center; justify-content: center; margin: 4px 0; }
.spal-closing-stamp { max-height: 100%; max-width: 100%; object-fit: contain; }
.spal-closing-name { font-weight: 700; margin-top: 2px; }

/* Modal generik (popup Tambah/Edit Klien, dsb) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}
.modal {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    width: 100%;
    max-width: 560px;
    margin: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border);
}
.modal-header h2 { margin: 0; font-size: 1.05rem; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    padding: 4px 8px;
}
.modal-close:hover { color: var(--color-text); }
.modal-body { padding: 22px; }
.modal-body form { max-width: none; }

@media (max-width: 640px) {
    .modal-backdrop { padding: 0; }
    .modal { max-width: none; min-height: 100vh; border-radius: 0; }
}

/* Halaman verifikasi publik */
.verify-card { text-align: center; }
.verify-status {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.verify-valid { background: #dcfce7; color: #166534; }
.verify-invalid { background: var(--color-error-bg); color: var(--color-error-text); }
.verify-revised { background: #fef9c3; color: #854d0e; }
.verify-card .info-grid { text-align: left; }

.signature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    text-align: center;
}
.signature-box { height: 108px; border-bottom: 1px solid var(--color-text); margin: 8px 0; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.signature-stamp-img { max-width: 92%; max-height: 100%; object-fit: contain; }

@media (max-width: 640px) {
    .invoice-letterhead { flex-direction: column; }
    .invoice-meta { text-align: left; }
    .invoice-meta-table { margin-left: 0; }
    .invoice-summary { margin-left: 0; max-width: none; }
}

@media print {
    html { font-size: 13.5px; }
    body { line-height: 1.3; }

    .invoice-info-box, .invoice-table th, .invoice-table td,
    .invoice-summary, .invoice-summary-row, .invoice-meta-table th, .invoice-meta-table td {
        border-color: #000 !important;
    }
    .invoice-letterhead { border-bottom-color: #000; }

    /* Padatkan jarak antar blok + kecilkan font dasar khusus versi cetak — tampilan layar
       (sebelum klik Cetak) tidak berubah — supaya dokumen 1-baris-item (Faktur/SJ/SI/SPAL
       tanpa klausul panjang) muat rapi 1 halaman A4 dan blok tanda tangan tidak lagi
       terlempar sendirian ke halaman kosong berikutnya, walau kotak tanda tangan diperbesar. */
    .invoice-letterhead { padding-bottom: 8px; margin-bottom: 10px; gap: 12px; }
    .company-contact { line-height: 1.4; }
    .invoice-info-box { padding: 6px 12px 0; margin-bottom: 10px; }
    .info-grid { row-gap: 5px; margin: 6px 0; }
    .invoice-table { margin-bottom: 10px; }
    .invoice-table th, .invoice-table td { padding: 5px 8px; }
    .invoice-summary { margin-bottom: 10px; }
    .invoice-summary-row { padding: 5px 10px; }
    .invoice-note { padding-top: 6px; }
    .invoice-verify-row { margin-top: 8px; padding-top: 6px; gap: 10px; }
    .invoice-qr { width: 56px; height: 56px; }
    .signature-row { margin-top: 14px; gap: 16px; }
    .signature-box { height: 112px; margin: 4px 0; }
    .invoice-footer { margin-top: 8px; padding-top: 5px; }
    .section-title { margin-top: 8px; }
    .spal-header { margin-bottom: 6px; padding-bottom: 5px; }
    .spal-header h1 { margin-bottom: 3px; }
    .spal-header .invoice-title { margin: 0 0 4px; }
    .spal-clauses { line-height: 1.18; font-size: 0.78rem; }
    .spal-signature-intro { margin-top: 5px; }
    .spal-closing { margin-top: 6px; gap: 16px; }
    .spal-closing-stamp-slot { height: 36px; margin: 2px 0; }
    .spal-parties td { padding-top: 3px; padding-bottom: 3px; font-size: 0.82rem; }
    .info-grid > div { font-size: 0.82rem; }
    .print-content p { margin: 0.25em 0; }

    .signature-row, .invoice-verify-row, .invoice-summary, .spal-parties, .spal-closing {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

@media (max-width: 640px) {
    .site-header-inner { flex-direction: column; align-items: flex-start; }
    .site-nav a { margin-left: 0; margin-right: 16px; }
}

/* ---------- App shell (sidebar layout: client & admin dashboards) ---------- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #111c33 0%, #0a1220 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: width 0.18s ease;
}
.sidebar-admin { background: linear-gradient(180deg, #1c1640 0%, #100c24 100%); }

.sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sidebar-brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.sidebar-collapse-toggle svg { width: 16px; height: 16px; }
.sidebar-collapse-toggle:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.sidebar-nav {
    flex: 1 1 auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}
.sidebar-section {
    margin: 16px 10px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    font-weight: 600;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}
.sidebar-icon svg { width: 18px; height: 18px; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon { opacity: 1; }
.sidebar-link.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px -3px rgba(15, 118, 110, 0.6);
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 10px;
    overflow: hidden;
}
.sidebar-user-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}
.sidebar-user .sidebar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 8px 6px;
    border-radius: 7px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-logout svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-logout:hover { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 39;
}

.app-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar { display: none; }

/* Sidebar minimize (desktop) — hanya ikon, label disembunyikan */
.sidebar.is-collapsed { width: 68px; }
.sidebar.is-collapsed .sidebar-label,
.sidebar.is-collapsed .sidebar-brand-text,
.sidebar.is-collapsed .sidebar-section { display: none; }
.sidebar.is-collapsed .sidebar-link { justify-content: center; padding: 10px; }
.sidebar.is-collapsed .sidebar-icon svg { width: 20px; height: 20px; }
.sidebar.is-collapsed .sidebar-brand { justify-content: center; padding: 16px 8px; }
.sidebar.is-collapsed .sidebar-collapse-toggle { transform: rotate(180deg); }
.sidebar.is-collapsed .sidebar-footer { padding: 14px 8px; }
.sidebar.is-collapsed .sidebar-user { justify-content: center; margin-bottom: 12px; }
.sidebar.is-collapsed .sidebar-logout { justify-content: center; padding: 8px; }

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    .sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3); }
    .sidebar-backdrop.is-open { display: block; }

    .app-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        color: var(--color-text);
        padding: 0;
        flex-shrink: 0;
    }
    .sidebar-toggle svg { width: 20px; height: 20px; }
    .sidebar-toggle:hover { background: #f1f5f9; }
    .app-topbar-title { font-weight: 600; font-size: 0.95rem; }

    /* Minimize sidebar hanya relevan di desktop — di mobile sidebar sudah punya mekanisme buka/tutup sendiri */
    .sidebar-collapse-toggle { display: none; }
    .sidebar.is-collapsed { width: 240px; }
    .sidebar.is-collapsed .sidebar-label,
    .sidebar.is-collapsed .sidebar-brand-text,
    .sidebar.is-collapsed .sidebar-section { display: initial; }
    .sidebar.is-collapsed .sidebar-link { justify-content: flex-start; padding: 10px 14px; }
    .sidebar.is-collapsed .sidebar-brand { justify-content: space-between; padding: 20px 18px; }
    .sidebar.is-collapsed .sidebar-user,
    .sidebar.is-collapsed .sidebar-logout { justify-content: flex-start; }
    .sidebar.is-collapsed .sidebar-footer { padding: 14px 16px; }
}
