@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--primary:#087f72;--primary-2:#0b6e64;--primary-soft:#e8f8f5;--navy:#12243d;--ink:#182230;--muted:#718096;--line:#e6ebf0;--bg:#f5f8fb;--white:#fff;--danger:#dc3545;--warning:#f5ad00;--success:#168b62;--sidebar:270px;--shadow:0 12px 35px rgba(15,35,60,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px}.app-bg{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 92% 5%,rgba(8,127,114,.08),transparent 28%),radial-gradient(circle at 12% 90%,rgba(31,115,210,.05),transparent 24%);z-index:-1}
.app-layout{min-height:100vh;display:flex}.sidebar{width:var(--sidebar);flex:0 0 var(--sidebar);position:fixed;inset:0 auto 0 0;background:linear-gradient(180deg,#0b776c 0%,#075f57 100%);color:#fff;display:flex;flex-direction:column;z-index:1040;box-shadow:none;transition:width .28s ease,transform .28s ease}.sidebar-head{height:88px;padding:17px 18px 15px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.1)}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;min-width:0;flex:1}.brand-logo{width:48px;height:48px;flex:0 0 48px;background:transparent;border-radius:14px;display:grid;place-items:center;overflow:hidden;box-shadow:none}.brand-logo img{width:100%;height:100%;object-fit:contain}.brand-copy{display:flex;flex-direction:column;line-height:1.1;white-space:nowrap}.brand-copy strong{font-size:18px;letter-spacing:.3px}.brand-copy small{font-size:10px;letter-spacing:1px;opacity:.78;margin-top:5px;font-weight:700}.sidebar-collapse{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;cursor:pointer;transition:.2s}.sidebar-collapse:hover{background:rgba(255,255,255,.17);transform:translateX(-2px)}.sidebar-scroll{overflow:auto;flex:1;padding:18px 12px 14px}.sidebar-scroll::-webkit-scrollbar{width:5px}.sidebar-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:10px}.menu-label{font-size:10px;letter-spacing:1.2px;font-weight:800;color:rgba(255,255,255,.57);padding:13px 12px 8px}.side-nav{display:grid;gap:5px}.side-link{min-height:44px;border:0;background:transparent;color:rgba(255,255,255,.82);text-decoration:none;border-radius:11px;display:flex;align-items:center;gap:11px;padding:0 12px;font-weight:600;transition:background .2s ease,color .2s ease,transform .2s ease;cursor:pointer;width:100%;text-align:left}.side-link:hover{background:rgba(255,255,255,.1);color:#fff;transform:translateX(2px)}.side-link.is-active{background:#fff;color:var(--primary);box-shadow:0 7px 20px rgba(0,0,0,.1)}.side-icon{width:22px;text-align:center;font-size:16px;flex:0 0 22px}.sidebar-tip{margin:20px 4px 4px;padding:12px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.09);border-radius:14px;display:flex;gap:10px;align-items:flex-start}.tip-icon{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.13);display:grid;place-items:center;flex:0 0 30px;color:#ffe59b}.sidebar-tip strong{font-size:12px}.sidebar-tip p{font-size:10px;line-height:1.5;color:rgba(255,255,255,.7);margin:4px 0 0}.sidebar-foot{padding:12px;border-top:1px solid rgba(255,255,255,.1)}.profile-mini{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;padding:9px 8px;border-radius:11px}.profile-mini:hover{background:rgba(255,255,255,.08);color:#fff}.avatar{width:38px;height:38px;border-radius:12px;background:#dff7f2;color:var(--primary);display:grid;place-items:center;flex:0 0 38px}.avatar-sm{width:34px;height:34px;border-radius:10px;flex-basis:34px}.profile-copy,.user-chip-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2}.profile-copy strong,.user-chip-copy strong{font-size:12px}.profile-copy small,.user-chip-copy small{font-size:10px;opacity:.7;margin-top:3px}.profile-arrow{margin-left:auto;opacity:.6}.logout-form{margin-top:4px}.side-logout{color:rgba(255,255,255,.72);min-height:38px}.side-logout:hover{color:#fff}
.app-main{margin-left:var(--sidebar);min-width:0;flex:1;display:flex;flex-direction:column;min-height:100vh}.topbar{height:88px;background:rgba(255,255,255,.84);backdrop-filter:blur(16px);border-bottom:1px solid rgba(220,228,236,.85);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:900}.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px}.page-heading{display:flex;flex-direction:column;gap:4px}.page-heading span{font-size:9px;letter-spacing:1.5px;color:var(--primary);font-weight:800}.page-heading strong{font-size:20px;color:var(--navy);line-height:1}.mobile-menu{display:none;border:1px solid var(--line);background:#fff;color:var(--navy);width:40px;height:40px;border-radius:11px;font-size:19px}.today-chip,.user-chip{height:42px;border:1px solid var(--line);background:#fff;border-radius:12px;display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--navy);text-decoration:none}.today-chip i{color:var(--primary)}.user-chip{padding:3px 9px 3px 4px;gap:8px}.user-chip-copy{padding-right:4px}.user-chip>i{font-size:11px;color:var(--muted)}.content-area{flex:1;padding:28px 38px 8px}.page-content{max-width:1320px;margin:0 auto}.app-footer{text-align:center;padding:20px 30px 24px;color:#94a0ae;font-size:11px}.app-footer a{color:var(--primary);font-weight:700;text-decoration:none}.app-footer a:hover{text-decoration:underline}
.app-alert{max-width:1320px;margin:0 auto 16px;border:1px solid;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:10px;animation:slideDown .35s ease}.app-alert span{flex:1}.alert-success{background:#edf9f4;color:#116b50;border-color:#cdeee0}.alert-danger{background:#fff2f3;color:#a62330;border-color:#ffd6da}.alert-close{border:0;background:transparent;font-size:21px;color:inherit;line-height:1;opacity:.65}.alert-close:hover{opacity:1}
.page-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#087f72,#075d57);color:#fff;border-radius:20px;padding:26px 28px;box-shadow:0 16px 36px rgba(8,127,114,.16);margin-bottom:22px}.page-hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-85px;top:-115px;background:rgba(255,255,255,.07)}.page-hero:before{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:150px;bottom:-90px;background:rgba(255,255,255,.05)}.hero-inner{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:800;opacity:.72;text-transform:uppercase}.page-hero h1{font-size:31px;line-height:1.1;margin:7px 0 8px;font-weight:800;letter-spacing:-.8px}.page-hero p{margin:0;color:rgba(255,255,255,.78);max-width:650px}.hero-actions{display:flex;gap:9px;flex-wrap:wrap}.btn-app{border:0;border-radius:11px;padding:10px 15px;font-weight:700;display:inline-flex;align-items:center;gap:8px;text-decoration:none;transition:.2s;box-shadow:none}.btn-primary-app{background:var(--primary);color:#fff}.btn-primary-app:hover{background:#076e64;color:#fff;transform:translateY(-1px)}.btn-hero{background:#fff;color:var(--navy)}.btn-hero:hover{background:#f2fffd;color:var(--primary);transform:translateY(-1px)}.btn-outline-app{border:1px solid var(--line);background:#fff;color:var(--navy)}.btn-excel-app{background:var(--primary);color:#fff;border:0}
.btn-excel-app:hover{background:#076e64;color:#fff;transform:translateY(-1px)}
.btn-outline-app:hover{border-color:#b8dcd7;color:var(--primary);background:var(--primary-soft)}
.section-title{font-size:17px;font-weight:800;color:var(--navy);margin:0}.section-subtitle{color:var(--muted);font-size:12px;margin:4px 0 0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:var(--shadow);height:100%;position:relative;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease}.stat-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(15,35,60,.1)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-icon{width:39px;height:39px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:17px}.stat-label{font-size:11px;color:var(--muted);font-weight:600}.stat-value{font-size:26px;color:var(--navy);font-weight:800;line-height:1.1;margin-top:10px}.stat-note{font-size:10px;color:#98a3b0;margin-top:5px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-body{padding:20px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-link{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:13px;text-decoration:none;color:var(--navy);transition:.2s}.quick-link:hover{border-color:#bfe1dc;background:#f8fffd;transform:translateY(-2px);color:var(--primary)}.quick-link i{width:35px;height:35px;border-radius:10px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}.quick-link strong{display:block;font-size:12px}.quick-link small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.form-card{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:22px}.form-section{border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:14px;background:#fbfcfd}.form-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.form-section-title{font-weight:800;color:var(--navy);font-size:13px}.form-control,.form-select{border-color:#dce4ea;border-radius:10px;min-height:42px;box-shadow:none!important}.form-control:focus,.form-select:focus{border-color:#65b9ae;box-shadow:0 0 0 3px rgba(8,127,114,.09)!important}.form-label, label{font-size:11px;font-weight:700;color:#405066;margin-bottom:6px}.table-card{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.table{margin:0}.table thead th{background:#f8fafb;border-bottom:1px solid var(--line);color:#607084;font-size:10px;letter-spacing:.35px;text-transform:uppercase;font-weight:800;padding:13px 15px;white-space:nowrap}.table tbody td{padding:14px 15px;border-color:#eef1f4;color:#334155;font-size:12px;vertical-align:middle}.table tbody tr{transition:background .15s}.table tbody tr:hover{background:#fbfefd}.badge-soft{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.badge-draft{background:#eef2f6;color:#617084}.badge-submitted{background:#e8f8f0;color:#13704f}.badge-locked{background:#eef0f3;color:#27313f}.empty-state{text-align:center;padding:38px 20px;color:var(--muted)}.empty-state i{font-size:30px;color:#9cb4b1}.empty-state strong{display:block;color:var(--navy);margin-top:8px}.action-row{display:flex;gap:7px;flex-wrap:wrap}.btn-sm-app{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:700;color:#526276;text-decoration:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}.btn-sm-app:hover{border-color:#acd9d3;color:var(--primary);background:var(--primary-soft);transform:translateY(-1px)}.btn-sm-danger:hover{border-color:#f2c2c7;color:var(--danger);background:#fff5f6}
.login-page{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#edf9f7 0%,#f7fbff 52%,#edf4ff 100%)}.login-page:before,.login-page:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.login-page:before{width:420px;height:420px;background:rgba(8,127,114,.1);left:-210px;top:-190px}.login-page:after{width:460px;height:460px;background:rgba(39,111,210,.08);right:-230px;bottom:-250px}.login-wrap{width:min(900px,94vw);position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 70px rgba(28,52,82,.13);animation:floatIn .55s ease}.login-brand-panel{padding:42px;background:linear-gradient(160deg,#087f72,#075b55);color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-brand-panel:after{content:"";position:absolute;width:300px;height:300px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:-150px;bottom:-160px}.login-brand-top{position:relative;z-index:1}.login-logo-row{display:flex;align-items:center;gap:12px}
.login-school-copy{min-width:0}
.login-school-copy strong{display:block;font-size:17px;line-height:1.2}
.login-school-address{font-size:10px;line-height:1.45;color:rgba(255,255,255,.68);margin-top:5px;max-width:260px}
.login-app-title{margin-top:28px}
.login-system-label{font-size:9px;letter-spacing:1.3px;font-weight:800;color:rgba(255,255,255,.62);margin-bottom:5px}
.login-app-title h1{margin:0}
.login-app-subtitle{font-size:12px;line-height:1.45;font-weight:500;color:rgba(255,255,255,.72);margin-top:4px;max-width:360px}.login-logo{width:58px;height:58px;border-radius:16px;background:transparent;padding:0;box-shadow:none}.login-logo img{width:100%;height:100%;object-fit:contain;border-radius:0}.login-brand-panel h1{font-size:32px;letter-spacing:-1px;margin:28px 0 8px}.login-brand-panel p{color:rgba(255,255,255,.76);line-height:1.7;max-width:340px}.login-features{position:relative;z-index:1;display:grid;gap:10px;margin-top:24px}.login-feature{display:flex;gap:10px;align-items:center;color:rgba(255,255,255,.86);font-size:11px}.login-feature i{width:27px;height:27px;border-radius:9px;background:rgba(255,255,255,.11);display:grid;place-items:center}.login-form-panel{padding:42px}.login-form-panel h2{font-size:25px;font-weight:800;color:var(--navy);margin-bottom:5px}.login-form-panel .subtitle{color:var(--muted);font-size:12px;margin-bottom:26px}.login-form-panel .input-wrap{position:relative}.login-form-panel .input-wrap>i{position:absolute;left:13px;top:12px;color:#8ca0b5}.login-form-panel .form-control{padding-left:40px}.login-submit{width:100%;min-height:46px;border:0;border-radius:11px;background:linear-gradient(135deg,#0a9182,#087568);color:#fff;font-weight:800;box-shadow:0 10px 22px rgba(8,127,114,.2);transition:.2s}.login-submit:hover{transform:translateY(-2px);box-shadow:0 14px 27px rgba(8,127,114,.25)}.login-security{font-size:10px;color:#a0adbb;text-align:center;margin-top:14px}.login-footer{position:absolute;bottom:18px;z-index:1;color:#8797a9;font-size:10px}
@keyframes floatIn{from{opacity:0;transform:translateY(16px) scale(.99)}to{opacity:1;transform:none}}@keyframes slideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}.animate-page{animation:pageIn .38s ease both}@keyframes pageIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.stagger>*{animation:pageIn .42s ease both}.stagger>*:nth-child(2){animation-delay:.05s}.stagger>*:nth-child(3){animation-delay:.1s}.stagger>*:nth-child(4){animation-delay:.15s}.stagger>*:nth-child(5){animation-delay:.2s}.sidebar-collapsed .sidebar{width:82px}.sidebar-collapsed .app-main{margin-left:82px}.sidebar-collapsed .brand-copy,.sidebar-collapsed .side-link>span:not(.side-icon),.sidebar-collapsed .menu-label,.sidebar-collapsed .sidebar-tip,.sidebar-collapsed .profile-copy,.sidebar-collapsed .profile-arrow{display:none}.sidebar-collapsed .sidebar-head{justify-content:center;padding-left:12px;padding-right:12px}.sidebar-collapsed .brand{justify-content:center}.sidebar-collapsed .sidebar-collapse{transform:rotate(180deg)}.sidebar-collapsed .side-link{justify-content:center;padding:0}.sidebar-collapsed .profile-mini{justify-content:center}.sidebar-collapsed .sidebar-foot{padding:10px 8px}
@media (max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.topbar{padding:0 24px}.content-area{padding:24px}.login-wrap{max-width:760px}.login-brand-panel{padding:32px}.login-form-panel{padding:32px}}
@media (max-width:820px){:root{--sidebar:270px}.sidebar{transform:translateX(-100%);width:var(--sidebar)}.sidebar.is-open{transform:translateX(0)}.app-main,.sidebar-collapsed .app-main{margin-left:0}.sidebar-collapsed .sidebar{width:var(--sidebar)}.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(13,28,45,.42);z-index:1030;backdrop-filter:blur(2px)}.sidebar-overlay.is-open{display:block}.sidebar-collapse{display:none}.mobile-menu{display:grid;place-items:center}.topbar{height:74px;padding:0 16px}.today-chip{display:none}.user-chip-copy{display:none}.content-area{padding:20px 15px}.page-heading strong{font-size:17px}.page-hero{padding:22px 20px}.page-hero h1{font-size:25px}.hero-inner{align-items:flex-start;flex-direction:column}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-value{font-size:22px}.quick-grid{grid-template-columns:1fr}.login-wrap{grid-template-columns:1fr;max-width:480px}.login-brand-panel{display:none}.login-form-panel{padding:34px 27px}.login-footer{position:static;margin-top:14px;align-self:end}.login-page{padding:18px}.login-form-panel .subtitle{margin-bottom:22px}}
@media (max-width:520px){.stats-grid{grid-template-columns:1fr}.panel-head{padding:15px}.panel-body{padding:15px}.page-hero{border-radius:16px}.page-hero h1{font-size:22px}.hero-actions{width:100%}.hero-actions .btn-app{flex:1;justify-content:center}.table-card{border-radius:14px}.table-responsive{border-radius:14px}.topbar-right{gap:5px}.user-chip{border:0;background:transparent;padding-right:0}.user-chip .avatar{box-shadow:0 0 0 3px #e7f5f3}.form-card{padding:15px}.form-section{padding:13px}.app-footer{padding:18px 15px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-weekdays{margin-bottom:8px}.calendar-weekdays>div{text-align:center;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#8a98a8;font-weight:800;padding:6px}.calendar-cell{min-height:78px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff;transition:.18s}.calendar-cell.is-workday{background:#f5fcfa;border-color:#d9eee9}.calendar-cell.is-holiday{background:#fafbfc;color:#8996a5}.calendar-cell.is-today{box-shadow:0 0 0 2px rgba(8,127,114,.2);border-color:#68b9af}.calendar-cell:hover{transform:translateY(-2px);box-shadow:0 7px 16px rgba(15,35,60,.07)}.calendar-cell.is-empty{border:0;background:transparent;box-shadow:none}.calendar-date{font-weight:800;color:var(--navy);font-size:13px}.calendar-status{font-size:9px;margin-top:15px;color:#6d7c8e}.is-workday .calendar-status{color:var(--success);font-weight:700}@media(max-width:620px){.calendar-grid{gap:4px}.calendar-cell{min-height:61px;padding:7px}.calendar-status{font-size:8px;margin-top:10px}.calendar-weekdays>div{font-size:8px;padding:3px}}

/* =========================================================
   LOGIN PAGE - FINAL UI REFINEMENT
   ========================================================= */

/* Identitas madrasah */
.login-logo-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-school-copy {
    min-width: 0;
    padding-top: 1px;
}

.login-school-copy strong {
    display: block;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 800;
}

.login-school-address {
    font-size: 9px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
    color: rgba(255,255,255,.66);
    max-width: 270px;
}

/* Judul aplikasi */
.login-app-title {
    margin-top: 21px !important;
}

.login-system-label {
    font-size: 12px !important;
    line-height: 1.15 !important;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: rgba(255,255,255,.76);
    margin: 0 0 3px !important;
}

.login-app-title h1 {
    margin: 0 !important;
    line-height: 1.02 !important;
    font-size: 32px;
    letter-spacing: -1px;
}

/* Kepanjangan LKH/LKP */
.login-app-subtitle {
    display: block;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    margin: 5px 0 0 !important;
    max-width: 100%;
}

/* Deskripsi */
.login-brand-panel > p {
    margin: 7px 0 0 !important;
    font-size: 13px;
    line-height: 1.45 !important;
    color: rgba(255,255,255,.88);
    max-width: 390px;
}

/* Daftar fitur */
.login-features {
    margin-top: 19px !important;
}

.login-feature {
    line-height: 1.25;
}

/* Footer kecil di panel kiri */
.login-brand-panel > div:last-child {
    line-height: 1.2;
}

/* Desktop */
@media (min-width: 821px) {
    .login-brand-panel {
        padding: 42px;
    }

    .login-school-address {
        max-width: 300px;
    }

    .login-app-title h1 {
        font-size: 32px;
    }

    .login-app-subtitle {
        font-size: 12px !important;
    }

    .login-brand-panel > p {
        max-width: 390px;
    }
}

/* Mobile */
@media (max-width: 820px) {
    .login-school-address {
        font-size: 9px !important;
    }

    .login-app-title {
        margin-top: 20px !important;
    }

    .login-system-label {
        font-size: 11px !important;
    }

    .login-app-title h1 {
        font-size: 30px;
    }

    .login-app-subtitle {
        font-size: 11px !important;
    }

    .login-brand-panel > p {
        font-size: 13px;
    }
}



/* =========================================================
   LOGIN PAGE - MOBILE STACKED LAYOUT
   Desktop tidak diubah.
   ========================================================= */
@media (max-width: 820px) {
    .login-page {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 18px 12px 12px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-wrap {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 20px;
        overflow: hidden;
    }

    /* Identitas madrasah tampil di atas form */
    .login-brand-panel {
        display: flex;
        padding: 25px 22px 22px;
        border-radius: 20px 20px 0 0;
    }

    .login-brand-top {
        width: 100%;
    }

    .login-logo-row {
        gap: 11px;
    }

    .login-logo {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
    }

    .login-school-copy strong {
        font-size: 15px;
        line-height: 1.18;
    }

    .login-school-address {
        font-size: 9px !important;
        line-height: 1.3 !important;
        max-width: none;
    }

    .login-app-title {
        margin-top: 18px !important;
    }

    .login-system-label {
        font-size: 10px !important;
        letter-spacing: 1.3px;
    }

    .login-app-title h1 {
        font-size: 27px;
    }

    .login-app-subtitle {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    .login-brand-panel > p:empty {
        display: none;
    }

    .login-brand-panel > div:last-child {
        margin-top: 20px;
        font-size: 9px !important;
    }

    .login-brand-panel > .login-brand-top > p {
        font-size: 11px;
        line-height: 1.5 !important;
        margin-top: 9px !important;
    }

    .login-features {
        margin-top: 14px !important;
        gap: 7px;
    }

    .login-feature {
        font-size: 10px;
        gap: 8px;
    }

    .login-feature i {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    /* Form di bawah identitas */
    .login-form-panel {
        padding: 27px 22px 24px;
        border-radius: 0 0 20px 20px;
    }

    .login-form-panel h2 {
        font-size: 23px;
    }

    .login-form-panel .subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .login-submit {
        min-height: 46px;
    }

    .login-footer {
        position: static;
        width: 100%;
        max-width: 480px;
        margin: 12px auto 0;
        padding: 0 8px;
        text-align: center;
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .login-page {
        padding: 12px 9px;
    }

    .login-brand-panel {
        padding: 22px 18px 19px;
    }

    .login-form-panel {
        padding: 24px 18px 21px;
    }

    .login-school-copy strong {
        font-size: 14px;
    }

    .login-app-title h1 {
        font-size: 25px;
    }

    .login-brand-panel > .login-brand-top > p {
        font-size: 10px;
    }

    .login-feature {
        font-size: 9px;
    }
}

/* =========================================================
   SIDEBAR COLLAPSED - LOGO & TOGGLE POSITION FIX
   ========================================================= */

.sidebar-collapsed .sidebar-head {
    position: relative;
    height: 96px;
    padding: 10px 0 4px;
    display: block;
}

.sidebar-collapsed .brand {
    width: 100%;
    height: 52px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.sidebar-collapsed .brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin: 0 auto;
}

.sidebar-collapsed .sidebar-collapse {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 28px;
    height: 28px;
    margin: 0;
    transform: translateX(-50%) rotate(180deg);
    border-radius: 8px;
    z-index: 2;
}

.sidebar-collapsed .sidebar-collapse:hover {
    transform: translateX(-50%) rotate(180deg);
}


/* ============================================================
   PROFILE / KELOLA TANDA TANGAN
   Layout dua kolom agar isi kiri-kanan sejajar
   ============================================================ */

.signature-manage-grid {
    align-items: stretch;
}

.signature-manage-grid > [class*="col-"] {
    display: flex;
}

.signature-manage-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.signature-card-title {
    flex: 0 0 auto;
}

.signature-card-description {
    min-height: 38px;
    flex: 0 0 auto;
}

.signature-stored-area {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.signature-stored-area > div:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.signature-upload-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.signature-upload-form .form-control[type="file"] {
    min-height: 42px;
}

.signature-upload-form .section-subtitle {
    min-height: 17px;
}

.signature-save-button {
    align-self: flex-start;
    margin-top: auto !important;
}

.signature-delete-form {
    flex: 0 0 auto;
}

.signature-delete-button {
    margin-top: 0;
}

/* Preview TTD dan barcode dibuat berada pada area visual
   yang konsisten tanpa mengubah ukuran gambar aslinya. */
.signature-manage-card img {
    object-fit: contain;
}

/* Mobile: kembali menjadi satu kolom dan jangan memaksa
   tinggi area preview terlalu besar. */
@media (max-width: 991.98px) {
    .signature-stored-area {
        min-height: auto;
    }

    .signature-card-description {
        min-height: auto;
    }

    .signature-save-button {
        margin-top: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .signature-manage-card {
        padding: 14px !important;
    }

    .signature-stored-area {
        min-height: auto;
    }

    .signature-save-button,
    .signature-delete-button {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   SIGNATURE MANAGEMENT - FINAL INTERNAL ALIGNMENT
   ========================================================= */

.signature-manage-grid {
    align-items: stretch;
}

.signature-manage-grid > .col-lg-6 {
    display: flex;
    align-items: stretch;
}

.signature-manage-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Judul dan keterangan harus mempunyai tinggi yang sama */
.signature-card-title {
    min-height: 24px;
}

.signature-card-description {
    min-height: 48px;
    margin-bottom: 16px !important;
}

/* Slot area file tersimpan */
.signature-stored-area {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    flex: 0 0 190px;
    margin-bottom: 16px !important;
}

/* Kalau tidak ada file tersimpan, ruang tetap dipertahankan */
.signature-manage-card > .signature-upload-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Label file */
.signature-upload-form > label {
    min-height: 24px;
    display: flex;
    align-items: center;
}

/* Input file */
.signature-file-input {
    min-height: 44px;
}

/* Keterangan format */
.signature-upload-form > .section-subtitle.mt-1 {
    min-height: 22px;
}

/* Preview file baru tidak mengubah posisi tombol */
.signature-upload-form > [id$="PreviewWrap"] {
    flex: 0 0 auto;
}

/* Tombol simpan selalu didorong ke posisi yang sama */
.signature-save-button {
    margin-top: auto !important;
    min-height: 42px;
}

/* Tombol hapus */
.signature-delete-form {
    flex: 0 0 auto;
    min-height: 42px;
    margin-top: 8px !important;
}

.signature-delete-button {
    min-height: 42px;
}

/* Jangan mengubah ukuran asli preview tanda tangan transparan */
.signature-manage-card img {
    object-fit: contain;
}

/* Mobile */
@media (max-width: 991.98px) {

    .signature-manage-grid > .col-lg-6 {
        display: flex;
    }

    .signature-manage-card {
        width: 100%;
    }

}

@media (max-width: 575.98px) {

    .signature-stored-area {
        min-height: 170px;
        flex-basis: 170px;
    }

    .signature-card-description {
        min-height: auto;
    }

}

/* =========================================================
   SIGNATURE CARD - EXACT ALIGNMENT
   ========================================================= */

.signature-manage-grid {
    align-items: stretch;
}

.signature-manage-grid > .col-lg-6 {
    display: flex;
}

.signature-manage-card {
    width: 100%;
    display: grid;
    grid-template-rows:
        auto     /* judul */
        64px     /* deskripsi */
        210px    /* preview tersimpan */
        auto     /* form */
        50px;    /* tombol hapus */
}

/* Judul */
.signature-manage-card .signature-card-title {
    align-self: start;
    margin-bottom: 8px !important;
}

/* Keterangan dibuat slot TETAP */
.signature-manage-card .signature-card-description {
    height: 64px;
    min-height: 64px;
    margin-bottom: 0 !important;
}

/*
 * Area tersimpan:
 * jika ada file, gunakan slot normal.
 * Jika tidak ada file, kita tidak bisa membuat elemen
 * dari CSS, sehingga form tetap dimulai pada posisi yang
 * berbeda. Untuk itu form diberi posisi relatif yang
 * konsisten melalui grid.
 */
.signature-manage-card .signature-stored-area {
    height: 210px;
    min-height: 210px;
    margin-bottom: 0 !important;
}

/* Form upload */
.signature-manage-card .signature-upload-form {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

/* Label */
.signature-manage-card .signature-upload-form > label {
    min-height: 24px;
    margin-bottom: 8px;
}

/* Input */
.signature-manage-card .signature-file-input {
    height: 44px;
    min-height: 44px;
}

/* Keterangan format */
.signature-manage-card .signature-upload-form > .section-subtitle.mt-1 {
    min-height: 24px;
    margin-bottom: 0 !important;
}

/* Tombol simpan */
.signature-manage-card .signature-save-button {
    margin-top: 16px !important;
    min-height: 42px;
    align-self: flex-start;
}

/* Form hapus */
.signature-manage-card .signature-delete-form {
    align-self: start;
    margin-top: 8px !important;
    min-height: 42px;
}

/* Tombol hapus */
.signature-manage-card .signature-delete-button {
    min-height: 42px;
}

/* Preview tersimpan tetap mempertahankan ukuran asli */
.signature-manage-card img {
    object-fit: contain;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .signature-manage-grid > .col-lg-6 {
        display: flex;
    }

    .signature-manage-card {
        display: flex;
        flex-direction: column;
    }

    .signature-manage-card .signature-card-description {
        height: auto;
        min-height: 48px;
    }

    .signature-manage-card .signature-stored-area {
        height: auto;
        min-height: 190px;
    }

    .signature-manage-card .signature-upload-form {
        flex: 1 1 auto;
    }

}

@media (max-width: 575.98px) {

    .signature-manage-card .signature-stored-area {
        min-height: 170px;
    }

}

/* =========================================================
   SIGNATURE MANAGEMENT - FORCE FINAL GRID ALIGNMENT
   ========================================================= */

.signature-manage-grid > .col-lg-6 {
    display: flex !important;
    align-items: stretch !important;
}

.signature-manage-card {
    width: 100% !important;
    display: grid !important;
    grid-template-rows: 32px 64px 210px 1fr 50px !important;
    align-items: start !important;
}

/* Judul */
.signature-manage-card .signature-card-title {
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 0 0 0 !important;
}

/* Keterangan */
.signature-manage-card .signature-card-description {
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
}

/* Area tanda tangan/barcode tersimpan */
.signature-manage-card .signature-stored-area {
    height: 210px !important;
    min-height: 210px !important;
    margin: 0 !important;
    flex: none !important;
}

/* Form upload */
.signature-manage-card .signature-upload-form {
    min-width: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
}

/* Label */
.signature-manage-card .signature-upload-form > label {
    min-height: 24px !important;
    height: 24px !important;
    margin: 0 0 8px 0 !important;
}

/* Input file */
.signature-manage-card .signature-file-input {
    height: 44px !important;
    min-height: 44px !important;
}

/* Keterangan format */
.signature-manage-card .signature-upload-form > .section-subtitle.mt-1 {
    min-height: 24px !important;
    height: 24px !important;
    margin: 4px 0 0 0 !important;
}

/* Tombol simpan */
.signature-manage-card .signature-save-button {
    align-self: flex-start !important;
    margin: 16px 0 0 0 !important;
    min-height: 42px !important;
    height: 42px !important;
}

/* Area tombol hapus */
.signature-manage-card .signature-delete-form {
    align-self: start !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 8px 0 0 0 !important;
}

/* Tombol hapus */
.signature-manage-card .signature-delete-button {
    height: 42px !important;
    min-height: 42px !important;
}

/* Mobile: tetap satu kolom */
@media (max-width: 991.98px) {
    .signature-manage-card {
        display: grid !important;
        grid-template-rows: 32px 64px 190px 1fr 50px !important;
    }

    .signature-manage-card .signature-stored-area {
        height: 190px !important;
        min-height: 190px !important;
    }
}

@media (max-width: 575.98px) {
    .signature-manage-card {
        grid-template-rows: 32px auto 170px 1fr 50px !important;
    }

    .signature-manage-card .signature-card-description {
        height: auto !important;
        min-height: 48px !important;
    }

    .signature-manage-card .signature-stored-area {
        height: 170px !important;
        min-height: 170px !important;
    }
}


/* =========================================================
   SIGNATURE SETTINGS - ALIGN INPUTS AND ACTION BUTTONS
   ========================================================= */

/* Tanda Tangan Aktif */
.signature-active-row {
    align-items: flex-start !important;
}

.signature-active-row > .col-md-8,
.signature-active-row > .col-md-4 {
    display: flex;
    flex-direction: column;
}

.signature-active-row > .col-md-4 {
    align-items: stretch;
}

.signature-active-row > .col-md-4 > button {
    width: 100%;
    margin-top: 0 !important;
    min-height: 38px;
}

/* Konfigurasi TTE */
.signature-tte-row {
    align-items: flex-start !important;
}

.signature-tte-row > .col-md-8,
.signature-tte-row > .col-md-4 {
    display: flex;
    flex-direction: column;
}

.signature-tte-row > .col-md-8 > label {
    display: block;
    min-height: 24px;
    margin-bottom: 8px;
}

.signature-tte-row > .col-md-4 {
    align-items: stretch;
}

.signature-tte-row > .col-md-4 > button {
    width: 100%;
    margin-top: 32px !important;
    min-height: 38px;
}

/* Saat kolom sudah menumpuk, jangan beri offset 32px */
@media (max-width: 767.98px) {

    .signature-tte-row > .col-md-4 > button {
        margin-top: 8px !important;
    }

    .signature-active-row > .col-md-4 > button {
        margin-top: 8px !important;
    }
}


/* =========================================================
   SIGNATURE DELETE BUTTON + CONFIRMATION MODAL
   ========================================================= */

.signature-delete-button {
    min-height: 42px !important;
    padding: 8px 16px !important;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px !important;
    transition: all .15s ease-in-out;
}

.signature-delete-button:hover {
    transform: translateY(-1px);
}

/* Modal */
.signature-delete-modal {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.signature-delete-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.signature-delete-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.signature-delete-modal .modal-body {
    padding: 24px 20px;
    text-align: center;
}

.signature-delete-warning-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(220, 53, 69, .10);
    color: #dc3545;
}

.signature-delete-warning-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.signature-delete-warning-text {
    color: var(--text-muted, #6c757d);
    line-height: 1.5;
}

.signature-delete-modal .modal-footer {
    padding: 12px 20px 18px;
    border-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.signature-delete-modal .btn-app {
    min-height: 40px;
}

/* Tombol konfirmasi hapus */
.btn-danger-app {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
}

.btn-danger-app:hover {
    background: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

@media (max-width: 575.98px) {

    .signature-delete-modal .modal-footer {
        flex-direction: column-reverse;
    }

    .signature-delete-modal .modal-footer .btn-app {
        width: 100%;
    }

}


/* =========================================================
   SIGNATURE DELETE BUTTON + CUSTOM CONFIRMATION
   ========================================================= */

/* Tombol Hapus */
.signature-delete-button {
    min-height: 42px !important;
    padding: 8px 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px !important;
    font-weight: 500;
    transition: transform .15s ease, box-shadow .15s ease;
}

.signature-delete-button:hover {
    transform: translateY(-1px);
}

/* Jangan izinkan scroll halaman saat dialog terbuka */
body.signature-delete-open {
    overflow: hidden;
}

/* Overlay */
.signature-delete-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
    opacity: 0;
    transition: opacity .18s ease;
}

/* Tampilkan overlay */
.signature-delete-overlay.is-visible {
    display: flex;
    opacity: 1;
}

/* Kotak dialog */
.signature-delete-dialog {
    width: min(460px, 100%);
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
    overflow: hidden;
    transform: translateY(8px) scale(.98);
    transition: transform .18s ease;
}

.signature-delete-overlay.is-visible .signature-delete-dialog {
    transform: translateY(0) scale(1);
}

/* Header */
.signature-delete-dialog-header {
    min-height: 58px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

.signature-delete-dialog-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 600;
}

.signature-delete-dialog-title > i {
    font-size: 18px;
}

.signature-delete-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted, #6c757d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.signature-delete-close:hover {
    background: rgba(0, 0, 0, .06);
}

/* Body */
.signature-delete-dialog-body {
    padding: 26px 22px 22px;
    text-align: center;
}

.signature-delete-warning-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, .10);
    color: #dc3545;
    font-size: 24px;
}

.signature-delete-warning-heading {
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 600;
}

.signature-delete-warning-text {
    color: var(--text-muted, #6c757d);
    line-height: 1.5;
}

/* Footer */
.signature-delete-dialog-footer {
    padding: 14px 18px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.signature-delete-dialog-footer .btn-app {
    min-height: 40px;
}

/* Tombol merah */
.btn-danger-app {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
}

.btn-danger-app:hover {
    background: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

/* Mobile */
@media (max-width: 575.98px) {

    .signature-delete-overlay {
        padding: 14px;
    }

    .signature-delete-dialog-footer {
        flex-direction: column-reverse;
    }

    .signature-delete-dialog-footer .btn-app {
        width: 100%;
    }

}



/* ===== Signature Delete Buttons - Premium Style ===== */
.signature-delete-button {
    min-height: 42px !important;
    padding: 9px 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border-radius: 9px !important;
    border: 1px solid #dc3545 !important;
    background: #fff !important;
    color: #dc3545 !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.signature-delete-button i {
    font-size: 15px;
}

.signature-delete-button:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(220, 53, 69, .20);
    transform: translateY(-1px);
}

.signature-delete-button:active {
    background: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #fff !important;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, .15);
}

.signature-delete-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(220, 53, 69, .14),
        0 3px 10px rgba(220, 53, 69, .12);
}

/* ===== Confirmation Dialog Buttons ===== */
.signature-delete-dialog-footer .btn-secondary-app {
    min-height: 40px;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-weight: 600;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.signature-delete-dialog-footer .btn-secondary-app:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    transform: translateY(-1px);
}

.signature-delete-dialog-footer .btn-danger-app {
    min-height: 40px;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 600;
    background: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 3px 9px rgba(220, 53, 69, .18);
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.signature-delete-dialog-footer .btn-danger-app:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(220, 53, 69, .24);
    transform: translateY(-1px);
}

.signature-delete-dialog-footer .btn-danger-app:active {
    background: #b21f2d !important;
    border-color: #a71d2a !important;
    transform: translateY(0);
}

.signature-delete-dialog-footer .btn-danger-app i {
    font-size: 14px;
}

/* =========================================================
   PROGRESS LAPORAN HARI KERJA - DASHBOARD
   ========================================================= */

.dashboard-workday-progress {
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.dashboard-workday-progress-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
}

.dashboard-workday-progress-head > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.dashboard-workday-progress-head .dashboard-workday-progress-percent {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
}

.dashboard-workday-progress-title {
    display: block;
    color: #172554;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-workday-progress-period {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.dashboard-workday-progress-period i {
    margin-right: 4px;
}

.dashboard-workday-progress-percent {
    color: #0f766e;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-workday-progress-main {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-top: 16px;
    width: 100%;
}

.dashboard-workday-progress-main > strong {
    flex: 0 0 auto !important;
}

.dashboard-workday-progress-main > span {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.dashboard-workday-progress-main strong {
    color: #0f172a;
    font-size: 14px;
}

.dashboard-workday-progress-main span {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.dashboard-workday-progress-bar {
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.dashboard-workday-progress-bar .progress-bar {
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);
    animation: dashboardWorkdayProgressIn 1.8s cubic-bezier(.16,1,.3,1) both;
    will-change: transform;
}

@keyframes dashboardWorkdayProgressIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-workday-progress-bar .progress-bar {
        animation: none;
        clip-path: none;
    }
}

.dashboard-workday-progress-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
}

@media (max-width: 575px) {
    .dashboard-workday-progress {
        padding: 16px;
    }

    .dashboard-workday-progress-head {
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .dashboard-workday-progress-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .dashboard-workday-progress-main > span {
        margin-left: 0 !important;
    }

    .dashboard-workday-progress-main span {
        text-align: left;
    }

    .dashboard-workday-progress-percent {
        font-size: 18px;
    }
}


/* Animasi saat baris kegiatan baru ditambahkan */
.report-item-enter {
    opacity: 0;
    transform: translateY(8px);
}

.report-item-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .report-item-enter,
    .report-item-enter-active {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Animasi saat baris kegiatan dihapus */
.report-item-remove {
    opacity: 1;
    transform: scale(1);
    transform-origin: top center;
    overflow: hidden;
    transition: opacity .18s ease, transform .18s ease;
}

.report-item-remove-active {
    opacity: 0;
    transform: scale(.98);
}

@media (prefers-reduced-motion: reduce) {
    .report-item-remove,
    .report-item-remove-active {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Efek tekan tombol utama */
.btn-primary-app:active {
    transform: translateY(0) scale(.98);
}


/* Efek tekan tombol kecil */
.btn-sm-app:active {
    transform: translateY(0) scale(.98);
}


/* Feedback visual saat link sedang ditekan */
.btn-view.is-pressing,
.btn-edit.is-pressing,
.btn-delete.is-pressing,
.btn-back-history.is-pressing {
    transform: translateY(1px) scale(.94) !important;
    filter: brightness(.92) !important;
    transition: transform .12s ease, filter .12s ease !important;
}


/* Efek tekan menu sidebar */
.side-link:active {
    transform: translateX(2px) scale(.98);
}


/* Progress loading premium saat navigasi halaman */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary),
        #35b7aa,
        #8be3d8,
        var(--primary)
    );
    background-size: 220% 100%;
    opacity: 0;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 0 7px rgba(8, 127, 114, .28);
    transition: opacity .16s ease;
}

body.page-is-loading::before {
    width: 85%;
    opacity: 1;
    animation:
        navigationProgress 1s cubic-bezier(.22,.61,.36,1) forwards,
        navigationShimmer 1.1s linear infinite;
}

@keyframes navigationProgress {
    from {
        width: 0;
    }
    to {
        width: 85%;
    }
}

@keyframes navigationShimmer {
    from {
        background-position: 0% 0;
    }
    to {
        background-position: 220% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none !important;
    }
}

/* Micro-interaction ikon sidebar */
.side-link .side-icon {
    transition: transform .2s ease, color .2s ease;
}

.side-link:hover .side-icon {
    transform: translateX(1px) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .side-link .side-icon {
        transition: none;
    }
}

/* Micro-interaction menu sidebar aktif */
.side-link.is-active {
    position: relative;
    overflow: hidden;
    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.side-link.is-active::before {
    display: none !important;
    content: none !important;
}

.side-link.is-active .side-icon {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .side-link.is-active,
    .side-link.is-active .side-icon {
        transition: none;
    }
}

/* Active sidebar: solid di kiri, fade ke kanan */
.side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.92) 38%,
        rgba(255,255,255,.55) 68%,
        rgba(255,255,255,0) 100%
    );
    box-shadow: none;
}

/* Koreksi: area fade menu aktif dipendekkan */
.side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.90) 32%,
        rgba(255,255,255,.45) 50%,
        rgba(255,255,255,0) 68%
    );
}

/* Koreksi: panjang tetap, transisi fade lebih halus */
.side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.97) 30%,
        rgba(255,255,255,.90) 45%,
        rgba(255,255,255,.78) 60%,
        rgba(255,255,255,.60) 72%,
        rgba(255,255,255,.38) 84%,
        rgba(255,255,255,.16) 93%,
        rgba(255,255,255,0) 100%
    );
}

/* Hilangkan bentuk lengkung di ujung kanan menu aktif */
.side-link.is-active {
    border-radius: 11px 0 0 11px;
    overflow: visible;
}

/* FIX: menu aktif tidak ikut bergeser saat hover.
   Animasi icon dan nama menu tetap berjalan. */
.sidebar .side-link.is-active:hover {
    transform: translateX(0) !important;
}

/* Hover sidebar disamakan dengan tampilan menu aktif */
.side-link:hover {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.97) 30%,
        rgba(255,255,255,.90) 45%,
        rgba(255,255,255,.78) 60%,
        rgba(255,255,255,.60) 72%,
        rgba(255,255,255,.38) 84%,
        rgba(255,255,255,.16) 93%,
        rgba(255,255,255,0) 100%
    );
    color: var(--primary);
    border-radius: 11px 0 0 11px;
    overflow: visible;
}

/* Redupkan warna menu aktif dan hover */
.side-link.is-active,
.side-link:hover {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.88) 0%,
        rgba(255,255,255,.86) 30%,
        rgba(255,255,255,.80) 45%,
        rgba(255,255,255,.68) 60%,
        rgba(255,255,255,.52) 72%,
        rgba(255,255,255,.34) 84%,
        rgba(255,255,255,.14) 93%,
        rgba(255,255,255,0) 100%
    );
}

/* Kembalikan menu aktif ke putih terang */
.side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.97) 30%,
        rgba(255,255,255,.90) 45%,
        rgba(255,255,255,.78) 60%,
        rgba(255,255,255,.60) 72%,
        rgba(255,255,255,.38) 84%,
        rgba(255,255,255,.16) 93%,
        rgba(255,255,255,0) 100%
    );
}

/* Hover menu lain dibuat lebih redup */
.side-link:not(.is-active):hover {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.58) 0%,
        rgba(255,255,255,.55) 30%,
        rgba(255,255,255,.48) 45%,
        rgba(255,255,255,.39) 60%,
        rgba(255,255,255,.29) 72%,
        rgba(255,255,255,.19) 84%,
        rgba(255,255,255,.08) 93%,
        rgba(255,255,255,0) 100%
    );
}

/* Pertegas warna font menu sidebar */
.side-link {
    color: rgba(255,255,255,.96);
}

.side-link:not(.is-active):hover {
    color: #fff;
}

/* Menu aktif: teks dan ikon putih dengan background teal transparan */
.side-link.is-active {
    color: #fff;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.22) 0%,
        rgba(255,255,255,.20) 30%,
        rgba(255,255,255,.17) 45%,
        rgba(255,255,255,.14) 60%,
        rgba(255,255,255,.10) 72%,
        rgba(255,255,255,.06) 84%,
        rgba(255,255,255,.025) 93%,
        rgba(255,255,255,0) 100%
    );
}

.side-link.is-active .side-icon {
    color: #fff;
}

/* Kembalikan tampilan menu aktif sebelumnya */
.side-link.is-active {
    color: var(--primary);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.97) 30%,
        rgba(255,255,255,.90) 45%,
        rgba(255,255,255,.78) 60%,
        rgba(255,255,255,.60) 72%,
        rgba(255,255,255,.38) 84%,
        rgba(255,255,255,.16) 93%,
        rgba(255,255,255,0) 100%
    );
}

.side-link.is-active .side-icon {
    color: var(--primary);
}

/* Restore sidebar collapsed tanpa animasi saat pindah halaman */
.sidebar-restore-no-transition .sidebar {
    transition: none !important;
}

/* Restore sidebar: transisi lebih halus saat pindah halaman */
.sidebar-restore-no-transition .sidebar {
    transition: width .42s cubic-bezier(.22,.61,.36,1),
                transform .42s cubic-bezier(.22,.61,.36,1) !important;
}

/* Restore sidebar: glide lebih lambat dan halus */
.sidebar-restore-no-transition .sidebar {
    transition:
        width .65s cubic-bezier(.16, 1, .3, 1) !important;
}

.sidebar-restore-no-transition .app-main {
    transition:
        margin-left .65s cubic-bezier(.16, 1, .3, 1) !important;
}

/* Animasi halus logo sidebar */
.brand-logo img {
    animation: sidebarLogoFloat 4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes sidebarLogoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.025);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo img {
        animation: none;
    }
}

/* Logo sidebar: animasi flip 3D bolak-balik */
.brand-logo {
    perspective: 700px;
}

.brand-logo img {
    animation: sidebarLogoFlip 5s ease-in-out infinite;
    transform-origin: center center;
    backface-visibility: visible;
}

@keyframes sidebarLogoFlip {
    0%, 18% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    82%, 100% {
        transform: rotateY(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo img {
        animation: none;
        transform: none;
    }
}

/* Animasi ikon menu sidebar saat hover */
.side-link .side-icon {
    transition:
        transform .28s cubic-bezier(.22,.61,.36,1),
        color .2s ease;
    transform-origin: center;
}

.side-link:hover .side-icon {
    transform: translateX(2px) scale(1.12) rotate(-3deg);
}

.side-link.is-active .side-icon {
    transform: scale(1.04);
}

.side-link.is-active:hover .side-icon {
    transform: scale(1.08) rotate(-2deg);
}

@media (prefers-reduced-motion: reduce) {
    .side-link .side-icon {
        transition: none;
        transform: none !important;
    }
}

/* Idle animation untuk ikon menu yang sedang aktif */
.side-link.is-active .side-icon {
    animation: activeMenuIconIdle 3.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes activeMenuIconIdle {
    0%, 100% {
        transform: translateY(0) scale(1.04);
    }
    50% {
        transform: translateY(-2px) scale(1.10);
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-link.is-active .side-icon {
        animation: none;
        transform: scale(1.04);
    }
}

/* Teks menu aktif mengikuti animasi ikon */
.side-link.is-active > span:not(.side-icon) {
    animation: activeMenuTextIdle 3.2s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes activeMenuTextIdle {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-link.is-active > span:not(.side-icon) {
        animation: none;
        transform: none;
    }
}

/* Nama menu sidebar menjadi uppercase */
.side-link > span:not(.side-icon) {
    text-transform: uppercase;
    letter-spacing: .35px;
}

/* Efek 3D floating untuk menu aktif */
.side-link.is-active {
    box-shadow:
        0 7px 16px rgba(0, 0, 0, .12),
        0 2px 4px rgba(0, 0, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .55);
    text-shadow:
        0 1px 1px rgba(0, 0, 0, .08);
}

.side-link.is-active > span:not(.side-icon) {
    text-shadow:
        0 1px 1px rgba(0, 0, 0, .10);
}

/* Ikon aktif sedikit terangkat */
.side-link.is-active .side-icon {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12));
}

@media (prefers-reduced-motion: reduce) {
    .side-link.is-active {
        box-shadow:
            0 4px 10px rgba(0, 0, 0, .10),
            inset 0 1px 0 rgba(255, 255, 255, .45);
    }
}

/* =========================================================
   SIDEBAR — ACTIVE MENU WHITE 3D TEXT + SIDEBAR COLOR STROKE
   ========================================================= */

.side-link.is-active > span:not(.side-icon) {
    color: #fff;
    font-weight: 800;

    /* Stroke mengikuti warna utama sidebar */
    -webkit-text-stroke: .7px var(--primary);

    /* Efek timbul / 3D halus */
    text-shadow:
        0 1px 0 rgba(255,255,255,.65),
        0 2px 0 rgba(0,0,0,.10),
        0 3px 4px rgba(0,0,0,.16);
}

/* Ikon aktif tetap teal */
.side-link.is-active .side-icon {
    color: var(--primary);
}


/* Sidebar menu: beri ruang antar huruf agar tidak terlalu rapat */
.side-link > span:not(.side-icon) {
    letter-spacing: .75px;
}

/* Active menu tetap bold, tetapi lebih ringan */
.side-link.is-active > span:not(.side-icon) {
    font-weight: 750;
    -webkit-text-stroke: .55px var(--primary);
}


/* FINAL: longgarkan tulisan menu sidebar */
.sidebar .side-link > span:not(.side-icon) {
    display: inline-block !important;
    letter-spacing: 1.15px !important;
    word-spacing: 2px !important;
}

/* Active menu */
.sidebar .side-link.is-active > span:not(.side-icon) {
    font-weight: 750 !important;
    color: #fff !important;
    -webkit-text-stroke: .5px var(--primary) !important;
}


/* Sidebar menu — spacing visual */
.sidebar .side-link > span:not(.side-icon) {
    font-size: 12.5px !important;
    letter-spacing: 1.4px !important;
    word-spacing: 2px !important;
    -webkit-text-stroke: .15px currentColor !important;
}

.sidebar .side-link.is-active > span:not(.side-icon) {
    color: #fff !important;
    font-weight: 700 !important;
    -webkit-text-stroke: .55px var(--primary) !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.55),
        0 2px 3px rgba(0,0,0,.16) !important;
}


/* =========================================================
   SIDEBAR MENU — FINAL STYLE SESUAI SKETSA
   ========================================================= */

/* Menu tidak aktif:
   putih bersih, normal, tanpa outline berat */
.sidebar .side-link:not(.is-active) > span:not(.side-icon) {
    color: rgba(255,255,255,.96) !important;
    font-weight: 700 !important;
    letter-spacing: .65px !important;
    word-spacing: normal !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.16) !important;
}

/* Menu aktif:
   putih + sedikit bold + stroke putih tipis */
.sidebar .side-link.is-active > span:not(.side-icon) {
    color: #fff !important;
    font-weight: 750 !important;
    letter-spacing: .65px !important;
    word-spacing: normal !important;

    /* stroke putih tipis */
    -webkit-text-stroke: .35px #fff !important;

    /* efek 3D / floating */
    text-shadow:
        0 1px 0 rgba(255,255,255,.85),
        0 2px 0 rgba(8,127,114,.18),
        0 3px 5px rgba(0,0,0,.18) !important;
}

/* Ikon aktif tetap teal seperti desain sebelumnya */
.sidebar .side-link.is-active .side-icon {
    color: var(--primary) !important;
}

/* Sedikit depth pada seluruh blok menu aktif */
.sidebar .side-link.is-active {
    box-shadow:
        0 7px 16px rgba(0,0,0,.12),
        0 2px 4px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.55) !important;
}

/* Hover menu tidak aktif tetap bersih */
.sidebar .side-link:not(.is-active):hover > span:not(.side-icon) {
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
    text-shadow:
        0 2px 3px rgba(0,0,0,.20) !important;
}


/* Sidebar menu — letter spacing lebih lega */
.sidebar .side-link > span:not(.side-icon) {
    letter-spacing: 1.05px !important;
    word-spacing: normal !important;
}

/* Active tetap sedikit lebih tegas */
.sidebar .side-link.is-active > span:not(.side-icon) {
    letter-spacing: 1.05px !important;
}


/* =========================================================
   SIDEBAR MENU — HORIZONTAL TEXT PROPORTION
   Membuat bentuk huruf sedikit lebih lebar,
   bukan sekadar menambah jarak antar huruf.
   ========================================================= */

.sidebar .side-link > span:not(.side-icon) {
    transform: scaleX(1.06);
    transform-origin: left center;
}

/* Menu aktif tetap mengikuti animasi idle sebelumnya */
.sidebar .side-link.is-active > span:not(.side-icon) {
    animation-name: activeMenuTextIdleWide;
}

@keyframes activeMenuTextIdleWide {
    0%, 100% {
        transform: translateY(0) scaleX(1.06) scale(1);
    }
    50% {
        transform: translateY(-2px) scaleX(1.06) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .side-link > span:not(.side-icon) {
        transform: scaleX(1.06);
    }

    .sidebar .side-link.is-active > span:not(.side-icon) {
        animation: none;
        transform: scaleX(1.06);
    }
}


/* Sidebar menu — bentuk huruf sedikit lebih lebar */
.sidebar .side-link > span:not(.side-icon) {
    transform: scaleX(1.10);
    transform-origin: left center;
}

.sidebar .side-link.is-active > span:not(.side-icon) {
    animation-name: activeMenuTextIdleWide110;
}

@keyframes activeMenuTextIdleWide110 {
    0%, 100% {
        transform: translateY(0) scaleX(1.10) scale(1);
    }
    50% {
        transform: translateY(-2px) scaleX(1.10) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .side-link > span:not(.side-icon) {
        transform: scaleX(1.10);
    }

    .sidebar .side-link.is-active > span:not(.side-icon) {
        animation: none;
        transform: scaleX(1.10);
    }
}


/* Sidebar menu — proporsi huruf lebih lebar */
.sidebar .side-link > span:not(.side-icon) {
    letter-spacing: .85px !important;
    transform: scaleX(1.16);
    transform-origin: left center;
}

/* Active menu — tetap mengikuti idle animation */
.sidebar .side-link.is-active > span:not(.side-icon) {
    animation-name: activeMenuTextIdleWide116;
}

@keyframes activeMenuTextIdleWide116 {
    0%, 100% {
        transform: translateY(0) scaleX(1.16) scale(1);
    }
    50% {
        transform: translateY(-2px) scaleX(1.16) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .side-link > span:not(.side-icon) {
        transform: scaleX(1.16);
    }

    .sidebar .side-link.is-active > span:not(.side-icon) {
        animation: none;
        transform: scaleX(1.16);
    }
}


/* =========================================================
   SIDEBAR — ACTIVE MENU
   Teal fill + white stroke
   ========================================================= */

.sidebar .side-link.is-active > span:not(.side-icon) {
    color: var(--primary) !important;
    font-weight: 750 !important;

    /* Stroke putih tipis */
    -webkit-text-stroke: .45px #fff !important;

    /* Efek timbul halus */
    text-shadow:
        0 1px 0 rgba(255,255,255,.75),
        0 2px 2px rgba(0,0,0,.12),
        0 3px 4px rgba(0,0,0,.10) !important;
}


/* =========================================================
   SIDEBAR ACTIVE MENU — OUTLINE PUTIH DI LUAR HURUF
   Tanpa mengurangi area warna teal di tengah huruf.
   ========================================================= */

.sidebar .side-link.is-active > span:not(.side-icon) {
    color: var(--primary) !important;

    /* Hilangkan stroke yang masuk ke badan huruf */
    -webkit-text-stroke: 0 !important;

    /* Outline putih tipis mengelilingi huruf */
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,

        /* depth / floating */
        0 2px 3px rgba(0,0,0,.14) !important;
}


/* Sidebar active menu — shadow 3D lebih tegas */
.sidebar .side-link.is-active > span:not(.side-icon) {
    filter:
        drop-shadow(0 1px 0 rgba(255,255,255,.35))
        drop-shadow(0 2px 2px rgba(0,0,0,.20))
        drop-shadow(0 4px 5px rgba(0,0,0,.16));
}


/* =========================================================
   SIDEBAR ACTIVE BLOCK — FADE SAMPAI UJUNG SIDEBAR
   ========================================================= */

.sidebar .side-link.is-active {
    width: calc(100% + 12px) !important;
    margin-right: -12px !important;

    border-radius: 11px 0 0 11px !important;
    overflow: visible !important;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 28%,
        rgba(255,255,255,.92) 43%,
        rgba(255,255,255,.78) 58%,
        rgba(255,255,255,.58) 70%,
        rgba(255,255,255,.35) 82%,
        rgba(255,255,255,.15) 91%,
        rgba(255,255,255,0) 100%
    ) !important;

    box-shadow:
        0 7px 16px rgba(0,0,0,.10),
        0 2px 4px rgba(0,0,0,.06),
        inset 0 1px 0 rgba(255,255,255,.55) !important;
}


/* =========================================================
   SIDEBAR ACTIVE BLOCK — FINAL EDGE / NO WHITE LINE
   ========================================================= */

.sidebar .side-link.is-active {
    width: calc(100% + 12px) !important;
    margin-right: -12px !important;

    border: 0 !important;
    border-right: 0 !important;
    border-radius: 11px 0 0 11px !important;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 28%,
        rgba(255,255,255,.90) 45%,
        rgba(255,255,255,.72) 60%,
        rgba(255,255,255,.48) 72%,
        rgba(255,255,255,.25) 83%,
        rgba(255,255,255,.09) 92%,
        rgba(255,255,255,0) 100%
    ) !important;

    /* hanya shadow bawah, tanpa garis highlight */
    box-shadow:
        0 7px 16px rgba(0,0,0,.10),
        0 2px 4px rgba(0,0,0,.06) !important;
}

/* Pastikan tidak ada garis terang di dalam blok */
.sidebar .side-link.is-active::before,
.sidebar .side-link.is-active::after {
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   SIDEBAR ACTIVE BLOCK — FADE BERAKHIR SEBELUM UJUNG
   ========================================================= */

.sidebar .side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 26%,
        rgba(255,255,255,.90) 42%,
        rgba(255,255,255,.68) 57%,
        rgba(255,255,255,.40) 69%,
        rgba(255,255,255,.18) 78%,
        rgba(255,255,255,.06) 84%,
        rgba(255,255,255,0) 88%
    ) !important;
}


/* =========================================================
   ACTIVE SIDEBAR — FADE BERHENTI SEBELUM BATAS KANAN
   ========================================================= */

.sidebar .side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 22%,
        rgba(255,255,255,.88) 38%,
        rgba(255,255,255,.64) 52%,
        rgba(255,255,255,.34) 64%,
        rgba(255,255,255,.12) 72%,
        rgba(255,255,255,.03) 76%,
        rgba(255,255,255,0) 80%
    ) !important;

    /* Jangan biarkan shadow blok mencapai tepi sidebar */
    box-shadow: none !important;
}


/* Active sidebar — fade sedikit lebih panjang */
.sidebar .side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 22%,
        rgba(255,255,255,.88) 38%,
        rgba(255,255,255,.64) 53%,
        rgba(255,255,255,.34) 66%,
        rgba(255,255,255,.12) 77%,
        rgba(255,255,255,.03) 82%,
        rgba(255,255,255,0) 86%
    ) !important;
}


/* Active sidebar — fade sedikit diperpanjang */
.sidebar .side-link.is-active {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 22%,
        rgba(255,255,255,.88) 38%,
        rgba(255,255,255,.64) 53%,
        rgba(255,255,255,.34) 67%,
        rgba(255,255,255,.12) 79%,
        rgba(255,255,255,.03) 85%,
        rgba(255,255,255,0) 89%
    ) !important;
}


/* =========================================================
   BRAND TEXT — LETTER WAVE
   ========================================================= */

.brand-copy .brand-letter {
    display: inline-block;
    transform-origin: center bottom;
    animation: brandLetterWave 2.8s ease-in-out infinite;
    animation-delay: var(--letter-delay);
    will-change: transform;
}

/* LKH / LKP — efek lebih terlihat */
.brand-copy strong .brand-letter {
    animation-duration: 2.8s;
}

/* MIN 6 JEMBRANA — sedikit lebih lembut */
.brand-copy small .brand-letter {
    animation-duration: 2.8s;
    animation-delay: calc(var(--letter-delay) + .12s);
}

@keyframes brandLetterWave {
    0%, 68%, 100% {
        transform: translateY(0) scale(1);
    }

    10% {
        transform: translateY(-1px) scale(1.14);
    }

    20% {
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-copy .brand-letter {
        animation: none;
        transform: none;
    }
}


/* =========================================================
   SIDEBAR COLLAPSED — HANYA TAMPILKAN IKON
   ========================================================= */

body.sidebar-collapsed .side-link > span:not(.side-icon) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    animation: none !important;
}

body.sidebar-collapsed .side-link {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
}


/* Sidebar collapsed — logo sedikit digeser ke kiri */
body.sidebar-collapsed .brand-logo {
    transform: translateX(-4px);
}


/* =========================================================
   SIDEBAR LOGO — PUTIH + STROKE SIDEBAR + PULSE
   ========================================================= */

.brand-logo img {
    filter:
        brightness(0)
        invert(1)
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 3px 5px rgba(0,0,0,.18));

    animation: sidebarLogoPremium 5s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
}

@keyframes sidebarLogoPremium {
    0%, 18% {
        transform: rotateY(0deg) scale(1);
    }

    32% {
        transform: rotateY(70deg) scale(1.06);
    }

    50% {
        transform: rotateY(180deg) scale(1.12);
    }

    68% {
        transform: rotateY(290deg) scale(1.06);
    }

    82%, 100% {
        transform: rotateY(360deg) scale(1);
    }
}

/* Saat sidebar collapsed, pulse tetap proporsional */
body.sidebar-collapsed .brand-logo img {
    transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo img {
        animation: none !important;
        transform: none !important;
    }
}


/* =========================================================
   RESTORE LOGO — KEMBALI KE EFEK FLIP SEBELUMNYA
   ========================================================= */

.brand-logo img {
    filter: none !important;
    animation: sidebarLogoFlip 5s ease-in-out infinite !important;
    transform-origin: center center;
    backface-visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo img {
        animation: none !important;
        transform: none !important;
    }
}


/* =========================================================
   SIDEBAR ACTIVE ICON — WHITE + TEAL STROKE + 3D SHADOW
   Animasi existing tetap dipertahankan.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;

    /* outline/stroke mengikuti warna sidebar */
    -webkit-text-stroke: .55px var(--primary) !important;

    /* efek timbul 3D */
    text-shadow:
        0 1px 0 rgba(255,255,255,.85),
        0 2px 0 var(--primary),
        0 3px 3px rgba(0,0,0,.20),
        0 5px 6px rgba(0,0,0,.12) !important;

    /* bayangan tambahan mengikuti bentuk ikon */
    filter:
        drop-shadow(0 2px 2px rgba(0,0,0,.16))
        drop-shadow(0 4px 4px rgba(0,0,0,.10));
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .side-link.is-active .side-icon {
        color: #fff !important;
        -webkit-text-stroke: .55px var(--primary) !important;
        transform: scale(1.04) !important;
    }
}


/* Active menu icon — stroke lebih tebal */
.sidebar .side-link.is-active .side-icon {
    -webkit-text-stroke: 1px var(--primary) !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 2px 0 var(--primary),
        0 3px 3px rgba(0,0,0,.22),
        0 5px 6px rgba(0,0,0,.13) !important;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .side-link.is-active .side-icon {
        -webkit-text-stroke: 1px var(--primary) !important;
    }
}


/* =========================================================
   ACTIVE ICON — OUTLINE TEAL DI LUAR IKON
   Tanpa -webkit-text-stroke agar badan ikon tidak termakan.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;
    -webkit-text-stroke: 0 !important;

    filter:
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary));
}

@media (prefers-reduced-motion: reduce) {
    .sidebar .side-link.is-active .side-icon {
        -webkit-text-stroke: 0 !important;
    }
}

/* Pause active menu text animation while sidebar is collapsed */
body.sidebar-collapsed .side-link.is-active > span:not(.side-icon) {
    animation-play-state: paused !important;
}

/* Sidebar restore — cegah teks menu dan profil turun saat lebar berubah */
.sidebar .side-link > span:not(.side-icon),
.sidebar .sidebar-tip,
.sidebar .profile-copy {
    white-space: nowrap;
}

/* Sinkronisasi animasi menu aktif setelah sidebar dibuka kembali */
body.sidebar-animation-reset .side-link.is-active > span:not(.side-icon),
body.sidebar-animation-reset .side-link.is-active .side-icon {
    animation: none !important;
}

/* =========================================================
   DASHBOARD PEGAWAI — STATUS & SUMMARY SPACING
   ========================================================= */

.dashboard-employee-status {
    margin-bottom: 22px !important;
}

.dashboard-employee-status .panel-head {
    border-bottom: 0 !important;
}

.dashboard-employee-status .panel-body {
    padding-top: 20px;
    padding-bottom: 20px;
}

.dashboard-employee-summary {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}


/* =========================================================
   DASHBOARD PEGAWAI — STATUS CARD COLOR ACCENTS
   ========================================================= */

.dashboard-employee-status .dashboard-status-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-top-width: 3px;
    border-radius: 16px;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

/* Hover kartu */
.dashboard-employee-status .dashboard-status-card:hover {
    transform: translateY(-3px);
}

/* Ikon dibuat compact */
.dashboard-employee-status .dashboard-status-card .stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.dashboard-employee-status .dashboard-status-card .stat-value,
.dashboard-employee-status .dashboard-status-card .stat-label,
.dashboard-employee-status .dashboard-status-card .stat-note {
    position: relative;
    z-index: 1;
}

/* Merah — Belum Ada Laporan */
.dashboard-employee-status .dashboard-status-none {
    background: linear-gradient(135deg, #fffafa 0%, #fff1f2 100%);
    border-color: #fecdd3;
    border-top-color: #ef4444;
}

.dashboard-employee-status .dashboard-status-none .dashboard-status-decoration::after {
    background: #fecdd3;
}

.dashboard-employee-status .dashboard-status-none .stat-icon {
    color: #dc2626;
    background: #fee2e2;
}

.dashboard-employee-status .dashboard-status-none .stat-value {
    color: #dc2626;
}

.dashboard-employee-status .dashboard-status-none:hover {
    box-shadow: 0 10px 24px rgba(220, 38, 38, .12);
}

/* Oranye — Draft */
.dashboard-employee-status .dashboard-status-draft {
    background: linear-gradient(135deg, #fffdf8 0%, #fff7e8 100%);
    border-color: #fed7aa;
    border-top-color: #f59e0b;
}

.dashboard-employee-status .dashboard-status-draft .dashboard-status-decoration::after {
    background: #fde68a;
}

.dashboard-employee-status .dashboard-status-draft .stat-icon {
    color: #d97706;
    background: #fef3c7;
}

.dashboard-employee-status .dashboard-status-draft .stat-value {
    color: #d97706;
}

.dashboard-employee-status .dashboard-status-draft:hover {
    box-shadow: 0 10px 24px rgba(245, 158, 11, .12);
}

/* Biru — Menunggu TTE */
.dashboard-employee-status .dashboard-status-tte {
    background: linear-gradient(135deg, #f9fbff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
    border-top-color: #3b82f6;
}

.dashboard-employee-status .dashboard-status-tte .dashboard-status-decoration::after {
    background: #bfdbfe;
}

.dashboard-employee-status .dashboard-status-tte .stat-icon {
    color: #2563eb;
    background: #dbeafe;
}

.dashboard-employee-status .dashboard-status-tte .stat-value {
    color: #2563eb;
}

.dashboard-employee-status .dashboard-status-tte:hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

/* Hijau — TTE Selesai */
.dashboard-employee-status .dashboard-status-done {
    background: linear-gradient(135deg, #f8fffc 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
    border-top-color: #10b981;
}

.dashboard-employee-status .dashboard-status-done .dashboard-status-decoration::after {
    background: #a7f3d0;
}

.dashboard-employee-status .dashboard-status-done .stat-icon {
    color: #059669;
    background: #d1fae5;
}

.dashboard-employee-status .dashboard-status-done .stat-value {
    color: #059669;
}

.dashboard-employee-status .dashboard-status-done:hover {
    box-shadow: 0 10px 24px rgba(16, 185, 129, .12);
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-status .dashboard-status-card {
        transition: none;
    }

    .dashboard-employee-status .dashboard-status-card:hover {
        transform: none;
    }
}



/* Lingkaran pastel dipotong di dalam kartu; animasi tepi tetap terpisah */
.dashboard-employee-status .dashboard-status-card > .dashboard-status-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   DASHBOARD PEGAWAI — STATUS CARD PROPORTION
   ========================================================= */

.dashboard-employee-status .stats-grid {
    gap: 16px;
}

.dashboard-employee-status .dashboard-status-card {
    min-height: 118px;
    padding: 16px 16px 15px;
    box-sizing: border-box;
}

.dashboard-employee-status .dashboard-status-card .stat-top {
    min-height: 38px;
    align-items: center;
}

.dashboard-employee-status .dashboard-status-card .stat-label {
    line-height: 1.3;
}

.dashboard-employee-status .dashboard-status-card .stat-value {
    margin-top: 8px;
    line-height: 1;
    font-size: 26px;
}

.dashboard-employee-status .dashboard-status-card .stat-note {
    margin-top: 7px;
    line-height: 1.35;
    font-size: 11px;
    max-width: calc(100% - 4px);
}

.dashboard-employee-status .dashboard-status-decoration::after {
    content: "";
    position: absolute;
    width: 105px;
    height: 105px;
    right: -40px;
    bottom: -52px;
    border-radius: 50%;
    opacity: .32;
    pointer-events: none;
}

@media (max-width: 767px) {
    .dashboard-employee-status .stats-grid {
        gap: 12px;
    }

    .dashboard-employee-status .dashboard-status-card {
        min-height: 112px;
    }
}


/* =========================================================
   DASHBOARD PEGAWAI — SUMMARY CARD COLOR ACCENTS
   ========================================================= */

.dashboard-employee-summary {
    gap: 16px;
}

.dashboard-employee-summary .stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-top-width: 3px;
    border-radius: 16px;
    min-height: 128px;
    padding: 16px;
    box-sizing: border-box;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.dashboard-employee-summary .stat-card::after {
    content: "";
    position: absolute;
    width: 105px;
    height: 105px;
    right: -40px;
    bottom: -52px;
    border-radius: 50%;
    opacity: .24;
    pointer-events: none;
}

.dashboard-employee-summary .stat-card .stat-top,
.dashboard-employee-summary .stat-card .stat-value,
.dashboard-employee-summary .stat-card .stat-note {
    position: relative;
    z-index: 1;
}

.dashboard-employee-summary .stat-card .stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dashboard-employee-summary .stat-card .stat-value {
    margin-top: 8px;
    line-height: 1;
    font-size: 27px;
}

.dashboard-employee-summary .stat-card .stat-note {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
}

.dashboard-employee-summary .stat-card:hover {
    transform: translateY(-3px);
}

/* Total Laporan — Teal */
.dashboard-employee-summary .stat-card:nth-child(1) {
    background: linear-gradient(135deg, #f8fffe 0%, #eefbf9 100%);
    border-color: #b8e4de;
    border-top-color: #0d9488;
}

.dashboard-employee-summary .stat-card:nth-child(1)::after {
    background: #99d9d0;
}

.dashboard-employee-summary .stat-card:nth-child(1) .stat-icon {
    color: #0d9488;
    background: #d9f3ef;
}

.dashboard-employee-summary .stat-card:nth-child(1) .stat-value {
    color: #0f766e;
}

.dashboard-employee-summary .stat-card:nth-child(1):hover {
    box-shadow: 0 10px 24px rgba(13, 148, 136, .12);
}

/* Draft — Amber */
.dashboard-employee-summary .stat-card:nth-child(2) {
    background: linear-gradient(135deg, #fffdf8 0%, #fff8eb 100%);
    border-color: #fed7aa;
    border-top-color: #f59e0b;
}

.dashboard-employee-summary .stat-card:nth-child(2)::after {
    background: #fbd38d;
}

.dashboard-employee-summary .stat-card:nth-child(2) .stat-icon {
    color: #d97706;
    background: #fef3c7;
}

.dashboard-employee-summary .stat-card:nth-child(2) .stat-value {
    color: #b45309;
}

.dashboard-employee-summary .stat-card:nth-child(2):hover {
    box-shadow: 0 10px 24px rgba(245, 158, 11, .11);
}

/* Terkirim — Blue */
.dashboard-employee-summary .stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f9fbff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
    border-top-color: #3b82f6;
}

.dashboard-employee-summary .stat-card:nth-child(3)::after {
    background: #bfdbfe;
}

.dashboard-employee-summary .stat-card:nth-child(3) .stat-icon {
    color: #2563eb;
    background: #dbeafe;
}

.dashboard-employee-summary .stat-card:nth-child(3) .stat-value {
    color: #1d4ed8;
}

.dashboard-employee-summary .stat-card:nth-child(3):hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, .11);
}

/* Terkunci — Slate / Orange */
.dashboard-employee-summary .stat-card:nth-child(4) {
    background: linear-gradient(135deg, #fcfcfb 0%, #f8f7f3 100%);
    border-color: #e7dfcf;
    border-top-color: #d97706;
}

.dashboard-employee-summary .stat-card:nth-child(4)::after {
    background: #e8d9bd;
}

.dashboard-employee-summary .stat-card:nth-child(4) .stat-icon {
    color: #b45309;
    background: #fef3c7;
}

.dashboard-employee-summary .stat-card:nth-child(4) .stat-value {
    color: #92400e;
}

.dashboard-employee-summary .stat-card:nth-child(4):hover {
    box-shadow: 0 10px 24px rgba(146, 64, 14, .09);
}

@media (max-width: 767px) {
    .dashboard-employee-summary {
        gap: 12px;
    }

    .dashboard-employee-summary .stat-card {
        min-height: 116px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-summary .stat-card {
        transition: none;
    }

    .dashboard-employee-summary .stat-card:hover {
        transform: none;
    }
}


/* =========================================================
   DASHBOARD — AKSES CEPAT COLOR ACCENTS
   ========================================================= */

.dashboard-grid > aside .quick-grid {
    gap: 10px;
}

.dashboard-grid > aside .quick-link {
    position: relative;
    overflow: hidden;
    min-height: 76px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}

.dashboard-grid > aside .quick-link::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    right: -24px;
    bottom: -27px;
    border-radius: 50%;
    opacity: .28;
    pointer-events: none;
}

.dashboard-grid > aside .quick-link > * {
    position: relative;
    z-index: 1;
}

.dashboard-grid > aside .quick-link i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    font-size: 15px;
    transition: transform .2s ease;
}

.dashboard-grid > aside .quick-link strong {
    font-size: 12px;
}

.dashboard-grid > aside .quick-link small {
    font-size: 10px;
    line-height: 1.3;
}

.dashboard-grid > aside .quick-link:hover {
    transform: translateY(-3px);
}

.dashboard-grid > aside .quick-link:hover i {
    transform: scale(1.08) rotate(-3deg);
}

/* Buat Laporan — Teal */
.dashboard-grid > aside .quick-link:nth-child(1) {
    background: linear-gradient(135deg, #f8fffe, #eefbf9);
    border-color: #b8e4de;
}

.dashboard-grid > aside .quick-link:nth-child(1)::after {
    background: #99d9d0;
}

.dashboard-grid > aside .quick-link:nth-child(1) i {
    color: #0d9488;
    background: #d9f3ef;
}

.dashboard-grid > aside .quick-link:nth-child(1):hover {
    box-shadow: 0 8px 20px rgba(13, 148, 136, .11);
    border-color: #8fd2c9;
}

/* Riwayat — Biru */
.dashboard-grid > aside .quick-link:nth-child(2) {
    background: linear-gradient(135deg, #fafcff, #eff6ff);
    border-color: #bfdbfe;
}

.dashboard-grid > aside .quick-link:nth-child(2)::after {
    background: #bfdbfe;
}

.dashboard-grid > aside .quick-link:nth-child(2) i {
    color: #2563eb;
    background: #dbeafe;
}

.dashboard-grid > aside .quick-link:nth-child(2):hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, .10);
    border-color: #93c5fd;
}

/* Kalender — Violet */
.dashboard-grid > aside .quick-link:nth-child(3) {
    background: linear-gradient(135deg, #fcfaff, #f5f3ff);
    border-color: #ddd6fe;
}

.dashboard-grid > aside .quick-link:nth-child(3)::after {
    background: #c4b5fd;
}

.dashboard-grid > aside .quick-link:nth-child(3) i {
    color: #7c3aed;
    background: #ede9fe;
}

.dashboard-grid > aside .quick-link:nth-child(3):hover {
    box-shadow: 0 8px 20px rgba(124, 58, 237, .09);
    border-color: #c4b5fd;
}

/* Profil — Amber */
.dashboard-grid > aside .quick-link:nth-child(4) {
    background: linear-gradient(135deg, #fffdf9, #fff8eb);
    border-color: #fed7aa;
}

.dashboard-grid > aside .quick-link:nth-child(4)::after {
    background: #fbd38d;
}

.dashboard-grid > aside .quick-link:nth-child(4) i {
    color: #d97706;
    background: #fef3c7;
}

.dashboard-grid > aside .quick-link:nth-child(4):hover {
    box-shadow: 0 8px 20px rgba(217, 119, 6, .09);
    border-color: #fdba74;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-grid > aside .quick-link,
    .dashboard-grid > aside .quick-link i {
        transition: none;
    }

    .dashboard-grid > aside .quick-link:hover {
        transform: none;
    }

    .dashboard-grid > aside .quick-link:hover i {
        transform: none;
    }
}


/* =========================================================
   DASHBOARD — LAPORAN TERBARU
   ========================================================= */

.dashboard-grid > section .table {
    margin-bottom: 0;
}

.dashboard-grid > section .table tbody tr {
    transition:
        background-color .18s ease,
        transform .18s ease;
}

.dashboard-grid > section .table tbody tr:hover {
    background: #f8fcfb;
}

.dashboard-grid > section .table tbody td {
    vertical-align: middle;
}

.dashboard-grid > section .table tbody td:first-child strong,
.dashboard-grid > section .table tbody td strong {
    color: #334155;
}

.dashboard-grid > section .table tbody tr:hover td:first-child strong {
    color: var(--primary);
}

/* Badge status */
.dashboard-grid > section .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    border: 1px solid transparent;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.dashboard-grid > section .badge-soft::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
}

.dashboard-grid > section .badge-soft:hover {
    transform: translateY(-1px);
}

/* Draft */
.dashboard-grid > section .badge-draft {
    color: #b45309;
    background: #fff7df;
    border-color: #f8df9e;
}

.dashboard-grid > section .badge-draft:hover {
    box-shadow: 0 4px 10px rgba(180, 83, 9, .10);
}

/* Submitted */
.dashboard-grid > section .badge-submitted {
    color: #047857;
    background: #e9f8f1;
    border-color: #c5ead9;
}

.dashboard-grid > section .badge-submitted:hover {
    box-shadow: 0 4px 10px rgba(4, 120, 87, .10);
}

/* Locked */
.dashboard-grid > section .badge-locked {
    color: #475569;
    background: #f1f5f9;
    border-color: #dbe3ec;
}

.dashboard-grid > section .badge-locked:hover {
    box-shadow: 0 4px 10px rgba(71, 85, 105, .09);
}

/* Tombol Buka */
.dashboard-grid > section .table tbody td:last-child .btn-sm-app {
    min-width: 50px;
    justify-content: center;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.dashboard-grid > section .table tbody td:last-child .btn-sm-app:hover {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: #acd9d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(8, 127, 114, .09);
}

.dashboard-grid > section .table tbody td:last-child .btn-sm-app:active {
    transform: translateY(0) scale(.97);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-grid > section .table tbody tr,
    .dashboard-grid > section .badge-soft,
    .dashboard-grid > section .table tbody td:last-child .btn-sm-app {
        transition: none;
    }

    .dashboard-grid > section .badge-soft:hover,
    .dashboard-grid > section .table tbody td:last-child .btn-sm-app:hover {
        transform: none;
    }
}


/* =========================================================
   DASHBOARD PEGAWAI — HERO COMPACT
   ========================================================= */

.dashboard-employee-hero {
    padding: 20px 28px;
    margin-bottom: 22px;
}

.dashboard-employee-hero h1 {
    font-size: 25px;
    line-height: 1.12;
    margin: 5px 0 6px;
    letter-spacing: -.55px;
}

.dashboard-employee-hero p {
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-employee-hero .hero-actions {
    gap: 8px;
}

.dashboard-employee-hero .hero-actions .btn-app {
    padding: 9px 14px;
    font-size: 12px;
}

@media (max-width: 767px) {
    .dashboard-employee-hero {
        padding: 18px 20px;
    }

    .dashboard-employee-hero h1 {
        font-size: 23px;
    }
}


/* =========================================================
   DASHBOARD PEGAWAI — HERO PREMIUM
   ========================================================= */

.dashboard-employee-hero {
    position: relative;
    background:
        radial-gradient(circle at 92% 18%, rgba(255,255,255,.11), transparent 23%),
        radial-gradient(circle at 78% 115%, rgba(255,255,255,.07), transparent 22%),
        linear-gradient(135deg, #087f72 0%, #08786e 48%, #075d57 100%);
    border: 1px solid rgba(255,255,255,.10);
    padding: 19px 28px;
    box-shadow:
        0 16px 34px rgba(8,127,114,.15),
        inset 0 1px 0 rgba(255,255,255,.13);
}

/* garis cahaya tipis di bagian atas */
.dashboard-employee-hero::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.38),
        transparent
    );
    pointer-events: none;
}

/* dekorasi kanan dibuat lebih halus */
.dashboard-employee-hero::before {
    width: 190px;
    height: 190px;
    right: -72px;
    top: -108px;
    background: rgba(255,255,255,.055);
    box-shadow:
        -72px 128px 0 -42px rgba(255,255,255,.045);
}

/* judul utama */
.dashboard-employee-hero h1 {
    font-size: 23px;
    line-height: 1.15;
    margin: 5px 0 6px;
    font-weight: 800;
    letter-spacing: .25px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,.10);
}

/* teks pendukung */
.dashboard-employee-hero p {
    font-size: 11.5px;
    line-height: 1.45;
    color: rgba(255,255,255,.82);
}

/* eyebrow */
.dashboard-employee-hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
    opacity: .78;
}

/* tombol */
.dashboard-employee-hero .hero-actions .btn-app {
    padding: 9px 14px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 4px 12px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.35);
}

.dashboard-employee-hero .hero-actions .btn-app:hover {
    box-shadow:
        0 7px 16px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.45);
}

@media (max-width: 767px) {
    .dashboard-employee-hero {
        padding: 18px 20px;
    }

    .dashboard-employee-hero h1 {
        font-size: 20px;
        letter-spacing: .15px;
    }
}


/* Dashboard Hero — remove visible perimeter border */
.dashboard-employee-hero {
    border: 0 !important;
}


/* =========================================================
   DASHBOARD PEGAWAI — HERO 3D + MOVING EDGE LIGHT
   ========================================================= */

.dashboard-employee-hero {
    position: relative;
    border: 0 !important;
    box-shadow:
        0 12px 22px rgba(6, 78, 72, .16),
        0 24px 42px rgba(6, 78, 72, .13),
        0 3px 0 rgba(255,255,255,.08) inset,
        0 -2px 0 rgba(0,0,0,.06) inset;
    transform: translateZ(0);
    overflow: hidden;
}

/* =========================================================
   HERO — PERIMETER LIGHT SWEEP
   ========================================================= */

/*
 * Sudut gradient dianimasikan langsung.
 * Elemen/bingkai tidak ikut berputar.
 */
@property --dashboard-hero-light-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.dashboard-employee-hero {
    position: relative;
    overflow: visible !important;
}

.dashboard-hero-light-beam {
    position: absolute;
    inset: -1px;
    width: auto;
    height: auto;
    padding: 4px;
    border-radius: 21px;
    pointer-events: none;
    z-index: 30;

    background:
        conic-gradient(
            from var(--dashboard-hero-light-angle),
            transparent 0deg,
            transparent 292deg,
            rgba(103,255,239,.10) 300deg,
            rgba(103,255,239,.38) 310deg,
            rgba(255,255,255,.98) 320deg,
            rgba(255,255,255,.62) 330deg,
            rgba(103,255,239,.78) 340deg,
            rgba(103,255,239,.20) 352deg,
            transparent 360deg
        );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    filter:
        drop-shadow(0 0 5px rgba(255,255,255,.88))
        drop-shadow(0 0 15px rgba(103,255,239,.82))
        drop-shadow(0 0 32px rgba(103,255,239,.60))
        drop-shadow(0 0 50px rgba(103,255,239,.34));

    animation:
        dashboardHeroPerimeterSweep 4s linear infinite;
    will-change: filter, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes dashboardHeroPerimeterSweep {
    from {
        --dashboard-hero-light-angle: 0deg;
    }

    to {
        --dashboard-hero-light-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-hero-light-beam {
        animation: none;
    }
}

/* Efek 3D lembut */
.dashboard-employee-hero {
    animation: dashboardHeroFloat 5s ease-in-out infinite;
}

@keyframes dashboardHeroFloat {
    0%, 100% {
        box-shadow:
            0 12px 22px rgba(6, 78, 72, .16),
            0 24px 42px rgba(6, 78, 72, .13),
            0 3px 0 rgba(255,255,255,.08) inset,
            0 -2px 0 rgba(0,0,0,.06) inset;
    }

    50% {
        box-shadow:
            0 15px 26px rgba(6, 78, 72, .18),
            0 28px 48px rgba(6, 78, 72, .15),
            0 3px 0 rgba(255,255,255,.10) inset,
            0 -2px 0 rgba(0,0,0,.06) inset;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-hero {
        animation: none;
    }

    .dashboard-employee-hero::after {
        animation: none;
    }
}



/* Cahaya kedua — bergerak berlawanan posisi 180° */
.dashboard-hero-light-beam-2 {
    animation-delay: -2s !important;
}

/* =========================================================
   HERO EDGE DEFORMATION — PARAMETER DASAR
   ========================================================= */

.dashboard-employee-hero {
    --hero-edge-wave-x: 0px;
    --hero-edge-wave-y: 0px;
    --hero-edge-wave-rotation: 0deg;
}


/* =========================================================
   HERO EDGE WAVE — LAYER DASAR
   ========================================================= */
.dashboard-employee-hero {
    --hero-wave-radius: 21px;
}

.dashboard-hero-edge-wave {
    position: absolute;
    inset: 0;
    border-radius: var(--hero-wave-radius);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;

    /*
     * Layer ini menjadi anchor untuk deformasi perimeter.
     * Tidak menggunakan transform global agar seluruh Hero
     * tidak ikut bergeser.
     */
}

/* =========================================================
   HERO EDGE WAVE — SVG PERIMETER
   ========================================================= */
.dashboard-hero-edge-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--hero-wave-radius);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.dashboard-hero-edge-wave-path {
    fill: none;
    stroke: transparent;
    stroke-width: 0;
    vector-effect: non-scaling-stroke;
}




/* =========================================================
   STATUS CARDS — REAL MOVING PERIMETER LIGHT
   ========================================================= */
@property --dashboard-status-light-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}



.dashboard-employee-status .dashboard-status-card {
    position: relative;
    overflow: visible !important;
    isolation: isolate;
}

.dashboard-employee-status .dashboard-status-light {
    position: absolute;
    inset: -1px;
    width: auto;
    height: auto;
    padding: 3px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 30;

    background:
        conic-gradient(
            from var(--dashboard-status-light-angle),
            transparent 0deg,
            transparent 292deg,
            rgba(103,255,239,.10) 300deg,
            rgba(103,255,239,.42) 310deg,
            rgba(255,255,255,.98) 320deg,
            rgba(255,255,255,.62) 330deg,
            rgba(103,255,239,.78) 340deg,
            rgba(103,255,239,.20) 352deg,
            transparent 360deg
        );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    filter:
        drop-shadow(0 0 4px rgba(255,255,255,.82))
        drop-shadow(0 0 10px rgba(103,255,239,.62))
        drop-shadow(0 0 20px rgba(103,255,239,.38));

    animation:
        dashboardStatusPerimeterSweep 5.5s linear infinite;

    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.dashboard-employee-status .dashboard-status-card > *:not(.dashboard-status-light):not(.dashboard-status-decoration) {
    position: relative;
    z-index: 31;
}

.dashboard-employee-status .dashboard-status-draft .dashboard-status-light {
    animation-delay: -1.375s;
}

.dashboard-employee-status .dashboard-status-tte .dashboard-status-light {
    animation-delay: -2.75s;
}

.dashboard-employee-status .dashboard-status-done .dashboard-status-light {
    animation-delay: -4.125s;
}

@keyframes dashboardStatusPerimeterSweep {
    from {
        --dashboard-status-light-angle: 0deg;
    }

    to {
        --dashboard-status-light-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-status .dashboard-status-light {
        animation: none;
    }
}

/* Sinkronkan gerakan cahaya pada seluruh kartu status */
.dashboard-employee-status .dashboard-status-light {
    animation-delay: 0s !important;
}

/* Cahaya kedua — 180° berlawanan dengan cahaya pertama */
.dashboard-employee-status .dashboard-status-light-2 {
    animation-delay: -2.75s !important;
}


/* =========================================================
   SUMMARY CARDS — REAL MOVING PERIMETER LIGHT
   ========================================================= */
@property --dashboard-summary-light-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.dashboard-employee-summary .stat-card {
    position: relative;
    overflow: visible !important;
    isolation: isolate;
}

.dashboard-employee-summary .dashboard-summary-light {
    position: absolute;
    inset: -1px;
    width: auto;
    height: auto;
    padding: 3px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 30;

    background:
        conic-gradient(
            from var(--dashboard-summary-light-angle),
            transparent 0deg,
            transparent 292deg,
            rgba(103,255,239,.10) 300deg,
            rgba(103,255,239,.42) 310deg,
            rgba(255,255,255,.98) 320deg,
            rgba(255,255,255,.62) 330deg,
            rgba(103,255,239,.78) 340deg,
            rgba(103,255,239,.20) 352deg,
            transparent 360deg
        );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    filter:
        drop-shadow(0 0 4px rgba(255,255,255,.82))
        drop-shadow(0 0 10px rgba(103,255,239,.62))
        drop-shadow(0 0 20px rgba(103,255,239,.38));

    animation:
        dashboardSummaryPerimeterSweep 5.5s linear infinite;

    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.dashboard-employee-summary .stat-card > *:not(.dashboard-summary-light) {
    position: relative;
    z-index: 31;
}

.dashboard-employee-summary .dashboard-summary-light-2 {
    animation-delay: -2.75s !important;
}

@keyframes dashboardSummaryPerimeterSweep {
    from {
        --dashboard-summary-light-angle: 0deg;
    }

    to {
        --dashboard-summary-light-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-summary .dashboard-summary-light {
        animation: none;
    }
}

/* =========================================================
   PROGRESS BAR — MOVING LIGHT
   ========================================================= */
.dashboard-workday-progress-bar .progress-bar {
    position: relative;
    overflow: hidden;
}

.dashboard-workday-progress-bar .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 35%;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.10) 25%,
        rgba(255,255,255,.78) 50%,
        rgba(255,255,255,.18) 75%,
        transparent 100%
    );

    filter:
        drop-shadow(0 0 4px rgba(255,255,255,.65))
        drop-shadow(0 0 8px rgba(103,255,239,.45));

    transform: skewX(-18deg);
    animation: dashboardProgressLightSweep 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dashboardProgressLightSweep {
    0% {
        left: -35%;
        opacity: 0;
    }

    12% {
        opacity: .95;
    }

    65% {
        opacity: .95;
    }

    100% {
        left: 105%;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-workday-progress-bar .progress-bar::after {
        animation: none;
        display: none;
    }
}

/* Progress bar — reduce light intensity */
.dashboard-workday-progress-bar .progress-bar::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.035) 25%,
        rgba(255,255,255,.28) 50%,
        rgba(255,255,255,.06) 75%,
        transparent 100%
    );

    filter:
        drop-shadow(0 0 2px rgba(255,255,255,.28))
        drop-shadow(0 0 5px rgba(103,255,239,.18));

    opacity: .65;
}

/* Summary cards — tahan dekorasi bulat di dalam kartu */
.dashboard-employee-summary .stat-card {
    overflow: hidden !important;
}


/* Summary cards — hover lift */
.dashboard-employee-summary .stat-card {
    transition:
        transform .22s cubic-bezier(.22,.61,.36,1),
        box-shadow .22s cubic-bezier(.22,.61,.36,1);
}

.dashboard-employee-summary .stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 22px rgba(15,23,42,.10),
        0 3px 8px rgba(15,23,42,.06);
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-summary .stat-card {
        transition: none;
    }

    .dashboard-employee-summary .stat-card:hover {
        transform: none;
    }
}

/* Summary cards — hover override terhadap animasi stagger */
.dashboard-employee-summary .stat-card:hover {
    animation: none !important;
    transform: translateY(-3px) !important;
}


/* =========================================================
   SUMMARY CARDS — HOVER PREMIUM
   Samakan karakter hover dengan Status Laporan Bulan Berjalan
   ========================================================= */

.dashboard-employee-summary .stat-card {
    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease;
}

.dashboard-employee-summary .stat-card:hover {
    animation: none !important;
    transform: translateY(-3px) !important;
}

/* Total Laporan — teal */
.dashboard-employee-summary .stat-card:nth-child(1):hover {
    box-shadow:
        0 10px 24px rgba(13, 148, 136, .16),
        0 3px 8px rgba(13, 148, 136, .08);
}

/* Draft — amber */
.dashboard-employee-summary .stat-card:nth-child(2):hover {
    box-shadow:
        0 10px 24px rgba(245, 158, 11, .15),
        0 3px 8px rgba(245, 158, 11, .07);
}

/* Terkirim — blue */
.dashboard-employee-summary .stat-card:nth-child(3):hover {
    box-shadow:
        0 10px 24px rgba(37, 99, 235, .15),
        0 3px 8px rgba(37, 99, 235, .07);
}

/* Terkunci — orange */
.dashboard-employee-summary .stat-card:nth-child(4):hover {
    box-shadow:
        0 10px 24px rgba(146, 64, 14, .13),
        0 3px 8px rgba(146, 64, 14, .06);
}


/* Summary cards — cegah flicker saat mouse keluar */
.dashboard-employee-summary > .stat-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none;
}

.dashboard-employee-summary > .stat-card:hover {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(-3px) !important;
}


/* Sidebar Tips — izinkan isi teks turun ke baris berikutnya */
.sidebar .sidebar-tip {
    white-space: normal !important;
}

.sidebar .sidebar-tip .tip-copy {
    min-width: 0;
}

.sidebar .sidebar-tip .tip-copy p,
.sidebar .sidebar-tip small {
    white-space: normal !important;
    overflow-wrap: break-word;
}


/* Sidebar collapsed — logo benar-benar di tengah */
body.sidebar-collapsed .brand-logo {
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* TEST PERFORMANCE — SIDEBAR COLLAPSE/RESTORE */
.sidebar-restore-no-transition .sidebar {
    transition:
        width .28s ease,
        transform .28s ease !important;
}

.sidebar-restore-no-transition .app-main {
    transition:
        margin-left .28s ease !important;
}


/* RESTORE HERO LIGHT — PERFORMANCE TEST */
.dashboard-hero-light-beam {
    display: block !important;
    animation: dashboardHeroPerimeterSweep 4s linear infinite !important;
}

/* RESTORE HERO LIGHT 2 — FINAL TEMPORARY */
.dashboard-hero-light-beam-2 {
    display: block !important;
    animation: dashboardHeroPerimeterSweep 4s linear infinite !important;
    animation-delay: -2s !important;
}

/* TEST SAJA: matikan seluruh shadow menu aktif */
.sidebar .side-link.is-active {
    box-shadow: none !important;
}


/* =========================================================
   TEST: HILANGKAN SHADOW AKTIF, PERTAHANKAN STROKE / OUTLINE
   ========================================================= */

/* Nama menu aktif:
   pertahankan outline putih 8 arah,
   hilangkan bayangan 3D gelap dan drop-shadow. */
.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff !important;

    filter: none !important;
}

/* Ikon aktif:
   pertahankan stroke teal,
   hilangkan shadow 3D dan drop-shadow. */
.sidebar .side-link.is-active .side-icon {
    text-shadow: none !important;
    filter: none !important;
}


/* =========================================================
   FIX FINAL TEST:
   Kembalikan outline hijau ikon,
   tetapi tetap tanpa shadow 3D.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;

    /* outline hijau asli — bukan stroke yang menutup badan ikon */
    -webkit-text-stroke: 0 !important;

    /* outline hijau 4 arah */
    filter:
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary)) !important;

    /* shadow 3D tetap dimatikan */
    text-shadow: none !important;
}


/* =========================================================
   ACTIVE MENU — SOFT SHADOW
   Outline dan animasi tetap dipertahankan.
   Shadow dibuat lembut agar tidak menghasilkan garis hitam.
   ========================================================= */

.sidebar .side-link.is-active {
    box-shadow:
        0 4px 10px rgba(0,0,0,.06) !important;
}


/* =========================================================
   ACTIVE MENU — SHADOW SEDANG
   Lebih terlihat, tetapi tetap diffuse tanpa garis hitam.
   ========================================================= */

.sidebar .side-link.is-active {
    box-shadow:
        0 5px 14px rgba(0,0,0,.10) !important;
}


/* =========================================================
   ACTIVE MENU — FINAL SHADOW TEST
   Hanya shadow blok aktif.
   Tidak menyentuh icon, text, outline, atau animation.
   ========================================================= */

.sidebar .side-link.is-active {
    box-shadow:
        0 6px 14px rgba(0,0,0,.18) !important;
}


/* =========================================================
   TEST: biarkan shadow menu aktif keluar dari area sidebar-scroll
   Tidak mengubah icon, text, gradient, atau animation.
   ========================================================= */

.sidebar-scroll {
    overflow-y: auto !important;
    overflow-x: visible !important;
}

.sidebar .side-link.is-active {
    position: relative !important;
    z-index: 2 !important;
    box-shadow:
        0 8px 18px rgba(0,0,0,.16) !important;
}


/* =========================================================
   ACTIVE MENU — INTERNAL SOFT SHADOW
   Shadow berada di dalam menu, bukan keluar ke sidebar.
   Tidak menyentuh icon, text, outline, atau animation.
   ========================================================= */

.sidebar-scroll {
    overflow: auto !important;
}

.sidebar .side-link.is-active {
    box-shadow:
        inset 0 -4px 8px rgba(0,0,0,.10) !important;
}


/* =========================================================
   DIAGNOSTIC SHADOW — SEMENTARA
   Hanya untuk memastikan box-shadow benar-benar diterapkan.
   ========================================================= */

.sidebar .side-link.is-active {
    box-shadow:
        0 8px 18px 6px rgba(255,0,0,.55) !important;
}


/* =========================================================
   FINAL — SHADOW HANYA PADA NAMA + IKON MENU AKTIF
   Tidak ada shadow pada kotak/background menu.
   Animasi tetap dipertahankan.
   ========================================================= */

/* Kotak menu aktif — TANPA shadow */
.sidebar .side-link.is-active {
    box-shadow: none !important;
}

/* ---------------------------------------------------------
   NAMA MENU AKTIF
   Outline putih tetap dipertahankan,
   ditambah shadow hitam lembut di belakang huruf.
   --------------------------------------------------------- */

.sidebar .side-link.is-active > span:not(.side-icon) {
    color: var(--primary) !important;
    -webkit-text-stroke: 0 !important;

    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0    2px 2px rgba(0,0,0,.22),
         0    3px 4px rgba(0,0,0,.14) !important;

    filter: none !important;
}

/* ---------------------------------------------------------
   IKON MENU AKTIF
   Outline hijau tetap dari parent .side-icon.
   Shadow hanya diberikan pada glyph <i>.
   --------------------------------------------------------- */

.sidebar .side-link.is-active .side-icon {
    text-shadow: none !important;
}

/* Shadow khusus glyph ikon */
.sidebar .side-link.is-active .side-icon i {
    filter:
        drop-shadow(0 2px 2px rgba(0,0,0,.22))
        drop-shadow(0 3px 4px rgba(0,0,0,.12)) !important;
}

/* Pastikan area scroll kembali normal */
.sidebar-scroll {
    overflow: auto !important;
}


/* =========================================================
   ACTIVE ICON — SOFT SHADOW
   Hanya mengurangi intensitas shadow ikon aktif.
   ========================================================= */

.sidebar .side-link.is-active .side-icon i {
    filter:
        drop-shadow(0 1px 1px rgba(0,0,0,.10))
        drop-shadow(0 2px 3px rgba(0,0,0,.06)) !important;
}


/* =========================================================
   FIX — HILANGKAN GARIS HITAM
   Shadow hitam pada glyph ikon dimatikan sementara.
   Outline hijau parent .side-icon tetap dipertahankan.
   Shadow kotak menu tetap tidak ada.
   ========================================================= */

.sidebar .side-link.is-active {
    box-shadow: none !important;
}

.sidebar .side-link.is-active .side-icon i {
    filter: none !important;
}

.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff !important;

    filter: none !important;
}


/* =========================================================
   ACTIVE MENU — SAFE TEXT SHADOW
   Shadow hanya mengikuti bentuk glyph ikon dan nama menu.
   Tidak menggunakan filter/drop-shadow.
   Tidak menggunakan box-shadow.
   ========================================================= */

/* Kotak menu aktif tetap TANPA shadow */
.sidebar .side-link.is-active {
    box-shadow: none !important;
}

/* Nama menu aktif — shadow sangat halus */
.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0    1px 1px rgba(0,0,0,.14) !important;

    filter: none !important;
}

/* Ikon aktif — shadow mengikuti bentuk ikon */
.sidebar .side-link.is-active .side-icon {
    text-shadow: none !important;
    filter: none !important;
}

.sidebar .side-link.is-active .side-icon i {
    text-shadow:
        0 1px 1px rgba(0,0,0,.14) !important;
    filter: none !important;
}


/* =========================================================
   ACTIVE ICON — RESTORE GREEN OUTLINE
   Outline hijau dikembalikan.
   Shadow hitam tetap hanya pada glyph dan sangat tipis.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;
    -webkit-text-stroke: 0 !important;

    /* outline hijau asli */
    filter:
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary)) !important;
}

/* Shadow glyph tetap sangat halus */
.sidebar .side-link.is-active .side-icon i {
    text-shadow:
        0 1px 1px rgba(0,0,0,.10) !important;

    /* jangan memakai filter hitam */
    filter: none !important;
}


/* =========================================================
   ACTIVE MENU — FINAL SHADOW
   Shadow kotak hanya ke bawah.
   Shadow nama dan ikon juga hanya ke bawah.
   Outline hijau ikon tetap dipertahankan.
   ========================================================= */

/* ---------------------------------------------------------
   1. KOTAK MENU AKTIF
   Shadow diarahkan ke bawah, tanpa offset kiri/kanan.
   --------------------------------------------------------- */

.sidebar .side-link.is-active {
    box-shadow:
        0 5px 9px rgba(0,0,0,.12) !important;
}

/* ---------------------------------------------------------
   2. NAMA MENU AKTIF
   Pertahankan outline putih + shadow lembut ke bawah.
   --------------------------------------------------------- */

.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0    2px 2px rgba(0,0,0,.16),
         0    3px 3px rgba(0,0,0,.08) !important;

    filter: none !important;
}

/* ---------------------------------------------------------
   3. IKON MENU AKTIF
   Parent tetap memakai outline hijau.
   Shadow hanya pada glyph ikon.
   --------------------------------------------------------- */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;
    -webkit-text-stroke: 0 !important;

    /* outline hijau asli */
    filter:
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary)) !important;
}

/* Shadow hanya pada glyph ikon */
.sidebar .side-link.is-active .side-icon i {
    text-shadow:
        0 2px 2px rgba(0,0,0,.14),
        0 3px 3px rgba(0,0,0,.07) !important;

    filter: none !important;
}


/* TEST: matikan shadow kotak menu aktif saja */
.sidebar .side-link.is-active {
    box-shadow: none !important;
}


/* =========================================================
   RESTORE — SHADOW KOTAK MENU AKTIF
   Shadow lembut diarahkan ke bawah.
   ========================================================= */

.sidebar .side-link.is-active {
    box-shadow:
        0 5px 9px rgba(0,0,0,.12) !important;
}


/* =========================================================
   TEST ISOLASI — NAMA MENU
   Pertahankan outline putih.
   Matikan hanya shadow hitam nama menu.
   ========================================================= */

.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff !important;
}


/* =========================================================
   TEST ISOLASI — IKON MENU AKTIF
   Shadow nama dikembalikan.
   Shadow ikon dimatikan.
   Outline hijau ikon TETAP dipertahankan.
   ========================================================= */

/* Kembalikan shadow nama menu aktif */
.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0    2px 2px rgba(0,0,0,.16),
         0    3px 3px rgba(0,0,0,.08) !important;

    filter: none !important;
}

/* Pertahankan OUTLINE HIJAU pada parent ikon */
.sidebar .side-link.is-active .side-icon {
    color: #fff !important;
    -webkit-text-stroke: 0 !important;

    filter:
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary)) !important;
}

/* MATIKAN SHADOW HITAM GLYPH IKON */
.sidebar .side-link.is-active .side-icon i {
    text-shadow: none !important;
    filter: none !important;
}


/* =========================================================
   ACTIVE ICON — TEAL DEPTH
   Shadow hitam tetap OFF.
   Depth dibuat menggunakan warna teal yang sangat halus.
   Outline hijau tetap dipertahankan.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;
    -webkit-text-stroke: 0 !important;

    /* outline hijau asli */
    filter:
        drop-shadow(-1px 0 0 var(--primary))
        drop-shadow(1px 0 0 var(--primary))
        drop-shadow(0 -1px 0 var(--primary))
        drop-shadow(0 1px 0 var(--primary)) !important;
}

/* Depth ikon: teal, bukan hitam */
.sidebar .side-link.is-active .side-icon i {
    text-shadow:
        0 1px 0 rgba(8,127,114,.28) !important;

    filter: none !important;
}


/* =========================================================
   TEST — DELAY ANIMASI IKON AKTIF
   Beri waktu browser menyelesaikan rendering halaman
   sebelum animasi ikon aktif dimulai.
   Animasi tetap berjalan setelah jeda.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    animation-delay: 1s !important;
}


/* =========================================================
   DIAGNOSTIC — ICON FILTER
   Untuk memastikan apakah drop-shadow filter pada .side-icon
   yang menghasilkan garis hitam.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    color: #fff !important;

    /* MATIKAN filter drop-shadow sementara */
    filter: none !important;

    /* Ganti sementara dengan stroke hijau */
    -webkit-text-stroke: 1px var(--primary) !important;
}

.sidebar .side-link.is-active .side-icon i {
    filter: none !important;
    text-shadow: none !important;
}


/* =========================================================
   FINAL TEST — SINKRONKAN ANIMASI IKON + NAMA
   Delay 1 detik dihapus.
   Keduanya mulai bersamaan.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    animation-delay: 0s !important;
    animation-duration: 3.2s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

.sidebar .side-link.is-active > span:not(.side-icon) {
    animation-delay: 0s !important;
    animation-duration: 3.2s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW LEMBUT
   Outline hijau tetap dari -webkit-text-stroke.
   Shadow hanya pada glyph ikon.
   Tidak menggunakan filter/drop-shadow.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    filter: none !important;
    -webkit-text-stroke: 1px var(--primary) !important;
}

.sidebar .side-link.is-active .side-icon i {
    filter: none !important;
    text-shadow:
        0 2px 2px rgba(0,0,0,.10) !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW LEBIH TERLIHAT
   Hanya glyph ikon aktif.
   Tidak menggunakan filter/drop-shadow.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    filter: none !important;
    -webkit-text-stroke: 1px var(--primary) !important;
}

.sidebar .side-link.is-active .side-icon i {
    filter: none !important;
    text-shadow:
        0 2px 3px rgba(0,0,0,.22),
        0 3px 5px rgba(0,0,0,.10) !important;
}


/* =========================================================
   ACTIVE ICON — OUTER GREEN OUTLINE
   Stroke tidak lagi memakai -webkit-text-stroke karena
   stroke tersebut berada di tengah garis glyph.
   Outline dibuat dari text-shadow sehingga berada di luar.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    filter: none !important;
    -webkit-text-stroke: 0 !important;
}

.sidebar .side-link.is-active .side-icon i {
    filter: none !important;
    -webkit-text-stroke: 0 !important;

    text-shadow:
        -1px  0   0 var(--primary),
         1px  0   0 var(--primary),
         0   -1px 0 var(--primary),
         0    1px 0 var(--primary),
        -1px -1px 0 var(--primary),
         1px -1px 0 var(--primary),
        -1px  1px 0 var(--primary),
         1px  1px 0 var(--primary),
         0    2px 3px rgba(0,0,0,.22),
         0    3px 5px rgba(0,0,0,.10) !important;
}


/* =========================================================
   ACTIVE MENU NAME — SHADOW SEDIKIT LEBIH TEBAL
   ========================================================= */

.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0    2px 2px rgba(0,0,0,.20),
         0    3px 3px rgba(0,0,0,.11) !important;

    filter: none !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW SEDIKIT LEBIH TEBAL
   Outline hijau tetap di luar glyph.
   ========================================================= */

.sidebar .side-link.is-active .side-icon i {
    text-shadow:
        -1px  0   0 var(--primary),
         1px  0   0 var(--primary),
         0   -1px 0 var(--primary),
         0    1px 0 var(--primary),
        -1px -1px 0 var(--primary),
         1px -1px 0 var(--primary),
        -1px  1px 0 var(--primary),
         1px  1px 0 var(--primary),
         0    2px 3px rgba(0,0,0,.28),
         0    4px 6px rgba(0,0,0,.14) !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW LEBIH KUAT / DEPTH
   ========================================================= */

.sidebar .side-link.is-active .side-icon i {
    text-shadow:
        -1px  0   0 var(--primary),
         1px  0   0 var(--primary),
         0   -1px 0 var(--primary),
         0    1px 0 var(--primary),
        -1px -1px 0 var(--primary),
         1px -1px 0 var(--primary),
        -1px  1px 0 var(--primary),
         1px  1px 0 var(--primary),
         0    2px 3px rgba(0,0,0,.34),
         0    4px 7px rgba(0,0,0,.20),
         0    6px 10px rgba(0,0,0,.10) !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW PADA GLYPH BOOTSTRAP ICON
   Bootstrap Icons menggunakan ::before sebagai glyph.
   ========================================================= */

.sidebar .side-link.is-active .side-icon {
    filter: none !important;
    -webkit-text-stroke: 0 !important;
}

.sidebar .side-link.is-active .side-icon i {
    filter: none !important;
    -webkit-text-stroke: 0 !important;
}

.sidebar .side-link.is-active .side-icon i::before {
    text-shadow:
        -1px  0   0 var(--primary),
         1px  0   0 var(--primary),
         0   -1px 0 var(--primary),
         0    1px 0 var(--primary),
        -1px -1px 0 var(--primary),
         1px -1px 0 var(--primary),
        -1px  1px 0 var(--primary),
         1px  1px 0 var(--primary),
         0    2px 3px rgba(0,0,0,.38),
         0    4px 7px rgba(0,0,0,.24),
         0    6px 10px rgba(0,0,0,.13) !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW TEGAS & RAPAT
   Shadow dibuat dekat dengan glyph, tidak menyebar.
   ========================================================= */

.sidebar .side-link.is-active .side-icon i::before {
    text-shadow:
        -1px  0   0 var(--primary),
         1px  0   0 var(--primary),
         0   -1px 0 var(--primary),
         0    1px 0 var(--primary),
        -1px -1px 0 var(--primary),
         1px -1px 0 var(--primary),
        -1px  1px 0 var(--primary),
         1px  1px 0 var(--primary),

         0    1px 1px rgba(0,0,0,.42),
         0    2px 2px rgba(0,0,0,.28),
         0    3px 3px rgba(0,0,0,.16) !important;
}


/* =========================================================
   ACTIVE ICON — SHADOW LEBIH TEBAL & LEBIH TURUN
   Tetap rapat, tidak melebar berlebihan.
   ========================================================= */

.sidebar .side-link.is-active .side-icon i::before {
    text-shadow:
        -1px  0   0 var(--primary),
         1px  0   0 var(--primary),
         0   -1px 0 var(--primary),
         0    1px 0 var(--primary),
        -1px -1px 0 var(--primary),
         1px -1px 0 var(--primary),
        -1px  1px 0 var(--primary),
         1px  1px 0 var(--primary),

         0    2px 2px rgba(0,0,0,.48),
         0    4px 4px rgba(0,0,0,.30),
         0    6px 5px rgba(0,0,0,.18) !important;
}


/* =========================================================
   ACTIVE MENU NAME — SHADOW LEBIH TURUN
   ========================================================= */

.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,

         0    2px 2px rgba(0,0,0,.24),
         0    4px 4px rgba(0,0,0,.16),
         0    5px 5px rgba(0,0,0,.08) !important;

    filter: none !important;
}


/* =========================================================
   ACTIVE MENU NAME — SHADOW LEBIH JAUH KE BAWAH
   ========================================================= */

.sidebar .side-link.is-active > span:not(.side-icon) {
    text-shadow:
        -1px  0   0 #fff,
         1px  0   0 #fff,
         0   -1px 0 #fff,
         0    1px 0 #fff,
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,

         0    2px 2px rgba(0,0,0,.26),
         0    4px 3px rgba(0,0,0,.20),
         0    6px 4px rgba(0,0,0,.14),
         0    8px 5px rgba(0,0,0,.08) !important;

    filter: none !important;
}

/* ADMIN STATUS CARDS — MATCH EMPLOYEE STATUS DESIGN */
.dashboard-employee-status .stats-grid {
    gap: 16px;
}

.dashboard-employee-status .stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-top-width: 3px;
    border-radius: 16px;
    min-height: 124px;
    padding: 16px;
    box-sizing: border-box;
    transition: transform .2s ease, box-shadow .2s ease,
                border-color .2s ease;
}

.dashboard-employee-status .stat-card::after {
    content: "";
    position: absolute;
    width: 105px;
    height: 105px;
    right: -40px;
    bottom: -52px;
    border-radius: 50%;
    opacity: .30;
    pointer-events: none;
}

.dashboard-employee-status .stat-card .stat-top,
.dashboard-employee-status .stat-card .stat-value,
.dashboard-employee-status .stat-card .stat-note {
    position: relative;
    z-index: 1;
}

.dashboard-employee-status .stat-card .stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.dashboard-employee-status .stat-card .stat-value {
    margin-top: 8px;
    line-height: 1;
    font-size: 27px;
}

.dashboard-employee-status .stat-card .stat-note {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
}

.dashboard-employee-status .stat-card:hover {
    transform: translateY(-3px);
}

/* Merah — Belum Ada Laporan */
.dashboard-employee-status .stat-card:nth-child(1) {
    background: linear-gradient(135deg, #fffafa 0%, #fff1f2 100%);
    border-color: #fecdd3;
    border-top-color: #ef4444;
}
.dashboard-employee-status .stat-card:nth-child(1)::after {
    background: #fecdd3;
}
.dashboard-employee-status .stat-card:nth-child(1) .stat-icon {
    color: #dc2626;
    background: #fee2e2;
}
.dashboard-employee-status .stat-card:nth-child(1) .stat-value {
    color: #dc2626;
}
.dashboard-employee-status .stat-card:nth-child(1):hover {
    box-shadow: 0 10px 24px rgba(220, 38, 38, .12);
}

/* Oranye — Draft */
.dashboard-employee-status .stat-card:nth-child(2) {
    background: linear-gradient(135deg, #fffdf8 0%, #fff7e8 100%);
    border-color: #fed7aa;
    border-top-color: #f59e0b;
}
.dashboard-employee-status .stat-card:nth-child(2)::after {
    background: #fde68a;
}
.dashboard-employee-status .stat-card:nth-child(2) .stat-icon {
    color: #d97706;
    background: #fef3c7;
}
.dashboard-employee-status .stat-card:nth-child(2) .stat-value {
    color: #d97706;
}
.dashboard-employee-status .stat-card:nth-child(2):hover {
    box-shadow: 0 10px 24px rgba(245, 158, 11, .12);
}

/* Biru — Menunggu TTE */
.dashboard-employee-status .stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f9fbff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
    border-top-color: #3b82f6;
}
.dashboard-employee-status .stat-card:nth-child(3)::after {
    background: #bfdbfe;
}
.dashboard-employee-status .stat-card:nth-child(3) .stat-icon {
    color: #2563eb;
    background: #dbeafe;
}
.dashboard-employee-status .stat-card:nth-child(3) .stat-value {
    color: #2563eb;
}
.dashboard-employee-status .stat-card:nth-child(3):hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

/* Hijau — TTE Selesai */
.dashboard-employee-status .stat-card:nth-child(4) {
    background: linear-gradient(135deg, #f8fffc 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
    border-top-color: #10b981;
}
.dashboard-employee-status .stat-card:nth-child(4)::after {
    background: #a7f3d0;
}
.dashboard-employee-status .stat-card:nth-child(4) .stat-icon {
    color: #059669;
    background: #d1fae5;
}
.dashboard-employee-status .stat-card:nth-child(4) .stat-value {
    color: #059669;
}
.dashboard-employee-status .stat-card:nth-child(4):hover {
    box-shadow: 0 10px 24px rgba(16, 185, 129, .12);
}

@media (max-width: 767px) {
    .dashboard-employee-status .stats-grid {
        gap: 12px;
    }
    .dashboard-employee-status .stat-card {
        min-height: 116px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-status .stat-card {
        transition: none;
    }
    .dashboard-employee-status .stat-card:hover {
        transform: none;
    }
}

/* ADMIN STATUS CARDS — MOVING PERIMETER LIGHT */
.dashboard-employee-status .stat-card {
    overflow: visible;
    isolation: isolate;
}

.dashboard-employee-status .stat-card .dashboard-summary-light {
    position: absolute;
    inset: -1px;
    width: auto;
    height: auto;
    padding: 3px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 30;

    background: conic-gradient(
        from var(--dashboard-summary-light-angle),
        transparent 0deg,
        transparent 292deg,
        rgba(103,255,239,.10) 300deg,
        rgba(103,255,239,.42) 310deg,
        rgba(255,255,255,.98) 320deg,
        rgba(255,255,255,.62) 330deg,
        rgba(103,255,239,.78) 340deg,
        rgba(103,255,239,.20) 352deg,
        transparent 360deg
    );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    filter:
        drop-shadow(0 0 4px rgba(255,255,255,.82))
        drop-shadow(0 0 10px rgba(103,255,239,.62))
        drop-shadow(0 0 20px rgba(103,255,239,.38));

    animation: dashboardSummaryPerimeterSweep 5.5s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.dashboard-employee-status .stat-card > *:not(.dashboard-summary-light) {
    position: relative;
    z-index: 31;
}

.dashboard-employee-status .stat-card .dashboard-summary-light-2 {
    animation-delay: -2.75s !important;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-employee-status .stat-card .dashboard-summary-light {
        animation: none;
    }
}

/* ADMIN STATUS CARDS — KEEP DECORATIVE CIRCLES INSIDE */
.dashboard-employee-status .stats-grid > .stat-card {
    overflow: hidden !important;
    isolation: isolate;
}

.dashboard-employee-status .stats-grid > .stat-card::after {
    width: 76px;
    height: 76px;
    right: 8px;
    bottom: 8px;
    opacity: .24;
    z-index: 0;
}

.dashboard-employee-status .stats-grid > .stat-card .dashboard-summary-light {
    inset: 0;
    z-index: 2;
    padding: 2px;
    border-radius: inherit;
    filter:
        drop-shadow(0 0 3px rgba(255,255,255,.75))
        drop-shadow(0 0 6px rgba(103,255,239,.40));
}

.dashboard-employee-status .stats-grid > .stat-card > *:not(.dashboard-summary-light) {
    z-index: 3;
}


/* ADMIN STATUS CARDS — ALIGN DECORATION WITH TOP SUMMARY CARDS */
.dashboard-employee-status .stats-grid > .stat-card {
    overflow: hidden !important;
    isolation: isolate;
}

.dashboard-employee-status .stats-grid > .stat-card::after {
    width: 105px;
    height: 105px;
    right: -40px;
    bottom: -52px;
    opacity: .30;
    z-index: 0;
}

/* Moving perimeter light remains visible along the card edge */
.dashboard-employee-status .stats-grid > .stat-card .dashboard-summary-light {
    inset: 0;
    padding: 2px;
    z-index: 2;
}

.dashboard-employee-status .stats-grid > .stat-card > *:not(.dashboard-summary-light) {
    position: relative;
    z-index: 3;
}

/* Notification bell */
.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    font-size: 18px;
}
.notification-bell:hover {
    background: #f0fdfa;
    color: var(--primary);
}
.notification-bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

/* Notification bell premium motion */
.notification-bell {
    transition: background .22s ease, color .22s ease,
                border-color .22s ease, box-shadow .22s ease,
                transform .22s ease;
}
.notification-bell:hover {
    background: linear-gradient(145deg, #e6fffa, #f0fdfa);
    color: #0f9488;
    border-color: #99f6e4;
    box-shadow: 0 5px 18px rgba(13, 148, 136, .18);
    transform: translateY(-2px);
}
.notification-bell.has-unread {
    color: #0f9488;
    border-color: #99f6e4;
    background: linear-gradient(145deg, #ffffff, #f0fdfa);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .07);
}
.notification-bell.has-unread > .bi-bell {
    transform-origin: 50% 12%;
    animation: notification-bell-swing 2.8s ease-in-out infinite;
}
.notification-bell.has-unread .notification-bell-badge {
    animation: notification-bell-pulse 2s ease-in-out infinite;
}
@keyframes notification-bell-swing {
    0%, 72%, 100% { transform: rotate(0deg); }
    76% { transform: rotate(13deg); }
    80% { transform: rotate(-12deg); }
    84% { transform: rotate(9deg); }
    88% { transform: rotate(-6deg); }
    92% { transform: rotate(3deg); }
}
@keyframes notification-bell-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .2); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .09); }
}
@media (prefers-reduced-motion: reduce) {
    .notification-bell,
    .notification-bell.has-unread > .bi-bell,
    .notification-bell.has-unread .notification-bell-badge {
        animation: none !important;
        transition: none !important;
    }
}

/* LOGIN MOBILE: CONTAIN DECORATIVE BACKGROUND */
@media (max-width: 820px) {
    .login-page {
        overflow: clip !important;
        isolation: isolate;
    }

    .login-page::before,
    .login-page::after {
        position: fixed !important;
        pointer-events: none;
        z-index: 0;
    }

    .login-page::before {
        top: -190px !important;
        left: -210px !important;
        bottom: auto !important;
        right: auto !important;
    }

    .login-page::after {
        top: auto !important;
        left: auto !important;
        right: -230px !important;
        bottom: -150px !important;
    }
}

/* IOS DASHBOARD PERFORMANCE TEST — WEBKIT TOUCH ONLY 20261014 */
@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .dashboard-employee-hero {
            animation: none !important;
        }

        .dashboard-hero-light-beam,
        .dashboard-hero-light-beam-2,
        .dashboard-employee-status .dashboard-status-light,
        .dashboard-employee-summary .dashboard-summary-light,
        .dashboard-employee-status .stat-card .dashboard-summary-light {
            animation-duration: 8s !important;
            animation-timing-function: linear !important;
            animation-iteration-count: infinite !important;
            filter: none !important;
            will-change: auto !important;
            transform: none !important;
        }

        .dashboard-hero-edge-wave {
            animation: none !important;
            filter: none !important;
        }
    }
}
/* END IOS DASHBOARD PERFORMANCE TEST */

/* IOS: SINKRONISASI DUA CAHAYA HERO — 180 DERAJAT */
@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .dashboard-hero-light-beam-2 {
            animation-delay: -4s !important;
        }
    }
}
/* END IOS HERO LIGHT SYNC */

/* IOS: SINKRONISASI CAHAYA 8 KARTU — DURASI 8 DETIK */
@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .dashboard-employee-status .dashboard-status-light,
        .dashboard-employee-summary .dashboard-summary-light,
        .dashboard-employee-status .stat-card .dashboard-summary-light {
            animation-delay: 0s !important;
        }

        .dashboard-employee-status .dashboard-status-light-2,
        .dashboard-employee-summary .dashboard-summary-light-2,
        .dashboard-employee-status .stat-card .dashboard-summary-light-2 {
            animation-delay: -4s !important;
        }
    }
}
/* END IOS 8 CARDS SYNC */
