/* PAYROLLKU — blue mobile payroll UI */
:root{--navy:#06458e;--blue:#0865d8;--blue2:#0d78ee;--pale:#eaf3ff;--ink:#101828;--muted:#667085;--line:#dce6f3;--bg:#f6f9fd}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;letter-spacing:-.01em}
.app-header{height:52px;background:linear-gradient(100deg,#063d80,#0754a9);display:flex;align-items:center;justify-content:space-between;padding:0 17px;position:sticky;top:0;z-index:50;box-shadow:0 2px 9px #002d6625}
.app-header a{color:#fff;text-decoration:none}
.header-menu{font-size:21px;width:30px;text-align:center;line-height:1}
.brand{font-size:16px;font-weight:850;letter-spacing:.35px;color:#fff}
.app-main{max-width:760px;padding:16px 13px 100px;margin:auto;min-height:calc(100vh - 52px)}
.page-title{font-size:19px;font-weight:800;margin:5px 0 15px;color:#101828}
.card,.stat-card,.mini-stat,.menu-tile,.due-card{background:#fff;border:1px solid #e1eaf5!important;border-radius:14px!important;box-shadow:0 3px 12px #17477a0c!important}
.card{padding:14px}
.btn{border-radius:9px;min-height:42px;font-weight:700}
.btn-primary{background:linear-gradient(100deg,#0870e7,#0755c1);border:0;box-shadow:0 3px 7px #0755c124}
.btn-success{background:#07883f;border-color:#07883f}
.form-control,.form-select{min-height:43px;border:1px solid #cbd8e9;border-radius:9px;background-color:#fff;font-size:13px}
.form-control:focus,.form-select:focus{border-color:#3985df;box-shadow:0 0 0 .2rem #0d6efd18}
.form-label{font-size:12px;font-weight:750;color:#263548;margin-bottom:5px}
.table{font-size:12px;vertical-align:middle}
.table thead th{white-space:nowrap;color:#27384d;background:#edf3fb;font-size:11px;font-weight:800;border-color:#dce6f3}
.table td{border-color:#e6edf6}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:58px;background:#fff;border-top:1px solid #dce5f0;display:flex;justify-content:space-around;padding:5px 2px calc(5px + env(safe-area-inset-bottom));z-index:60;box-shadow:0 -3px 12px #0b37600a}
.bottom-nav a{flex:1;text-align:center;text-decoration:none;color:#273344;font-size:10px;font-weight:550;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.bottom-nav span{display:block;font-size:20px;line-height:23px;color:#26394f;font-weight:700}
.bottom-nav a.active,.bottom-nav a.active span{color:#075ed0;font-weight:850}
.status-pill{display:inline-block;padding:5px 10px;border-radius:30px;background:#eef2f6;font-size:11px;font-weight:750}
.status-HADIR{background:#d9f6e2;color:#08763a}.status-LIBUR{background:#e1edff;color:#0754b4}.status-IZIN{background:#fff0d8;color:#a34e00}.status-SETENGAH_HARI{background:#eee4ff;color:#6923b9}.status-ALPHA{background:#ffe1e5;color:#b42336}
.status-paid{background:#dcfce7;color:#166534}
.eyebrow,.dash-overline{font-size:9px;letter-spacing:1.35px;font-weight:850;color:#73849b;margin-bottom:5px}
.dash-hero{position:relative;overflow:hidden;padding:19px 17px;border-radius:16px;background:linear-gradient(120deg,#073e80,#086bd5);color:#fff;margin-bottom:19px;box-shadow:0 6px 18px #0755a91c}
.dash-hero-top{display:flex;justify-content:space-between;align-items:center}
.dash-kicker{font-size:9px;font-weight:850;letter-spacing:1.4px;color:#c8ddf8}
.dash-date{font-size:10px;color:#e4efff;background:#ffffff1c;padding:6px 9px;border-radius:20px}
.dash-hero h1{font-size:23px;font-weight:850;letter-spacing:-.7px;margin:18px 0 5px;position:relative;z-index:1}
.dash-hero .wave{font-size:16px;color:#ffdf75}
.dash-hero p{font-size:11px;color:#e0edff;margin:0 0 14px;position:relative;z-index:1}
.hero-action{display:inline-flex;gap:17px;align-items:center;text-decoration:none;color:#0752a8;background:#fff;padding:9px 13px;border-radius:9px;font-size:11px;font-weight:800;position:relative;z-index:1}
.hero-decoration{position:absolute;border:1px solid #ffffff18;border-radius:50%;z-index:0}.hero-decoration-one{width:190px;height:190px;right:-75px;top:-100px}.hero-decoration-two{width:140px;height:140px;right:0;top:-70px}
.dash-section{margin:0 0 19px}
.dash-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px}
.dash-section-head h2{font-size:15px;font-weight:850;letter-spacing:-.3px;margin:0}
.dash-period{font-size:10px;color:#61748d;background:#e9f1fb;border-radius:20px;padding:5px 9px}
.dash-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.metric-card{background:#fff;border:1px solid #e0e9f4;border-radius:13px;padding:12px;min-height:105px;box-shadow:0 3px 12px #17477a09}
.metric-top{display:flex;align-items:center;gap:7px;margin-bottom:9px}
.metric-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;font-size:14px;font-weight:850}
.icon-people{background:#e4f1ff;color:#0870d9}.icon-pending{background:#fff1df;color:#df7900}.icon-money{background:#e7f7ec;color:#07833d}
.metric-caption{font-size:8px;letter-spacing:.55px;font-weight:850;color:#718198}
.metric-card>strong{display:block;font-size:23px;line-height:1.15;font-weight:850;letter-spacing:-.6px}
.metric-card>small{display:block;color:#7d8a9b;font-size:9px;margin-top:4px}
.metric-card-wide{grid-column:1/-1;min-height:90px}.metric-card-wide .metric-top{margin-bottom:6px}.metric-card-wide .metric-money{font-size:22px}
.attendance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #e0e9f4;border-radius:13px;padding:13px 5px;box-shadow:0 3px 12px #17477a09}
.attendance-item{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}
.attendance-item+.attendance-item{border-left:1px solid #e8eef6}
.attendance-dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px}.dot-libur{background:#8b5cf6}.dot-izin{background:#f59e0b}.dot-half{background:#0d6efd}
.attendance-item strong{display:block;font-size:18px;line-height:1.1;font-weight:850}.attendance-item small{display:block;color:#718198;font-size:9px;margin-top:3px}
.text-link{font-size:10px;color:#075dc6;text-decoration:none;font-weight:800;white-space:nowrap}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quick-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:108px;padding:12px;background:#fff;border:1px solid #e0e9f4;border-radius:13px;text-decoration:none;color:#101828;box-shadow:0 3px 12px #17477a09}
.quick-icon{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;font-weight:850;font-size:15px;margin-bottom:8px}
.quick-green{background:#e4f7eb;color:#07833d}.quick-orange{background:#fff0df;color:#dc7200}.quick-blue{background:#e6f0ff;color:#075ed0}.quick-purple{background:#f0e8ff;color:#7637cb}
.quick-title{font-size:12px;font-weight:850}.quick-card small{font-size:9px;color:#718198;margin-top:3px}.quick-arrow{position:absolute;right:11px;top:10px;color:#8797aa;font-size:13px}
.due-card{padding:2px 12px}.due-item{display:flex;align-items:center;gap:9px;padding:10px 0;text-decoration:none;color:#101828;border-bottom:1px solid #edf2f8}.due-item:last-child{border-bottom:0}
.due-avatar{width:32px;height:32px;border-radius:50%;background:#e5f1ff;color:#075dc6;display:grid;place-items:center;font-size:12px;font-weight:850;flex:0 0 32px}
.due-person{min-width:0;flex:1}.due-person strong,.due-amount strong{display:block;font-size:10px;font-weight:850}.due-person small,.due-amount small{display:block;font-size:9px;color:#718198;margin-top:3px}.due-amount{text-align:right}.due-amount strong{font-size:10px;color:#075dc6}.due-chevron{font-size:19px;color:#91a0b2}
.empty-due{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 8px}.empty-due>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e3f7e9;color:#07833d;font-size:17px;margin-bottom:8px}.empty-due strong{font-size:11px}.empty-due small{font-size:9px;color:#718198;margin-top:4px}
.status-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.status-options label{border:1px solid #dbe5f1;border-radius:11px;padding:12px 5px;text-align:center;cursor:pointer;background:#fff}.status-options input{position:absolute;opacity:0}.status-options span{display:block;font-size:11px;font-weight:850}.status-options small{display:block;font-size:9px;color:#74849a;margin-top:4px}.status-options label:has(input:checked){border-color:#0865d8;background:#eaf3ff;color:#0755b5}
.login-card{background:#fff;border:1px solid #dce7f5;border-radius:17px;box-shadow:0 5px 18px #17477a12;padding:18px}
@media(min-width:650px){.app-main{padding-top:22px}.dash-hero{padding:24px}.dash-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-card-wide{grid-column:auto;min-height:105px}.metric-card-wide .metric-money{font-size:19px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-card{min-height:120px}}
@media(max-width:380px){.app-main{padding-left:10px;padding-right:10px}.dash-hero{padding:17px 15px}.dash-hero h1{font-size:21px}.attendance-summary{padding:11px 2px}.attendance-item{gap:5px}.attendance-item small{font-size:8px}.metric-card{padding:10px}.metric-caption{font-size:7px}}

/* Hotfix: force mobile viewport typography and consistent app shell */
html{font-size:14px!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}body{font-size:14px!important;line-height:1.45!important;margin:0!important}.app-header{display:flex!important;height:52px!important;min-height:52px!important;background:linear-gradient(100deg,#063d80,#0754a9)!important;color:#fff!important;padding:0 16px!important}.app-header .brand{color:#fff!important;font-size:16px!important;font-weight:850!important}.app-header .header-menu,.app-header .header-bell{color:#fff!important;font-size:21px!important}.app-main{display:block!important;width:100%!important;max-width:760px!important;margin:0 auto!important;padding:16px 13px 100px!important}.dash-hero{display:block!important;background:linear-gradient(120deg,#073e80,#086bd5)!important;color:#fff!important;border-radius:16px!important;padding:19px 17px!important;margin:0 0 19px!important}.dash-hero h1{font-size:23px!important;line-height:1.2!important;color:#fff!important}.dash-hero p{font-size:11px!important;color:#e0edff!important}.dash-section-head h2{font-size:15px!important;line-height:1.3!important}.dash-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.metric-card{display:block!important;background:#fff!important;border:1px solid #e0e9f4!important;border-radius:13px!important;padding:12px!important;min-height:105px!important}.metric-card-wide{grid-column:1/-1!important}.attendance-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;background:#fff!important;border:1px solid #e0e9f4!important;border-radius:13px!important;padding:13px 5px!important}.quick-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.quick-card{display:flex!important;min-height:108px!important;background:#fff!important;border:1px solid #e0e9f4!important;border-radius:13px!important;padding:12px!important}.bottom-nav{display:flex!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:62px!important;background:#fff!important;border-top:1px solid #dce5f0!important;z-index:999!important;padding-bottom:env(safe-area-inset-bottom)!important}.bottom-nav a{display:flex!important;flex:1!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;font-size:10px!important;line-height:1.15!important}.bottom-nav span{font-size:20px!important;line-height:23px!important}@media(min-width:650px){.dash-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metric-card-wide{grid-column:auto!important}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Dua pilihan catatan saja: Libur dan Setengah Hari */
.status-options-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.status-options-two label{min-height:94px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:13px;padding:16px 8px}
.status-options-two label span{font-size:14px;letter-spacing:.2px}
.status-options-two label small{font-size:10px}

.settings-head{margin:6px 0 16px}.settings-head p{font-size:12px;color:#718198;margin:0}
.settings-links{background:#fff;border:1px solid #e0e9f4;border-radius:14px;overflow:hidden;margin-bottom:18px}
.settings-link{display:flex;align-items:center;gap:11px;padding:13px 14px;text-decoration:none;color:#101828;border-bottom:1px solid #edf2f8}
.settings-link:last-child{border-bottom:0}.settings-link-icon{width:34px;height:34px;border-radius:10px;background:#eaf3ff;color:#075dc6;display:grid;place-items:center;font-size:17px}
.settings-link span:nth-child(2){flex:1}.settings-link strong{display:block;font-size:12px;font-weight:850}.settings-link small{display:block;font-size:10px;color:#718198;margin-top:3px}.settings-link b{font-size:20px;color:#9aa8b8;font-weight:400}
.reset-panel{background:#fff;border:1px solid #f1dada;border-radius:15px;padding:15px;box-shadow:0 3px 12px #17477a09}
.reset-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:13px}.reset-warning-icon{width:31px;height:31px;border-radius:10px;background:#fff0f0;color:#c62828;display:grid;place-items:center;font-size:18px;font-weight:900;flex:0 0 31px}
.reset-heading h2{font-size:14px;font-weight:850;margin:1px 0 4px}.reset-heading p{font-size:10px;color:#718198;margin:0}
.reset-info{background:#fff8f6;border:1px solid #f7e4df;border-radius:11px;padding:12px;margin-bottom:13px;font-size:11px;color:#475467}
.reset-info strong{font-size:11px;color:#263548}.reset-info ul{padding-left:18px;margin:6px 0 10px}.reset-info ul:last-child{margin-bottom:0}.reset-info li{margin:3px 0}

/* Hide fixed bottom footer navigation as requested */
.bottom-nav{display:none!important}
.app-main{padding-bottom:24px!important}

/* Attendance summary: balanced two-column layout */
.attendance-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:center;
  min-height:86px;
  padding:14px 12px;
  gap:0;
}
.attendance-item{
  justify-content:center;
  gap:10px;
  min-height:48px;
}
.attendance-item+.attendance-item{
  border-left:1px solid #e5edf7;
}
.attendance-item strong{font-size:23px;line-height:1}
.attendance-item small{font-size:11px;margin-top:5px}
.attendance-dot{width:9px;height:9px;flex-basis:9px}
@media(max-width:380px){
 .attendance-summary{min-height:78px;padding:10px 6px}
 .attendance-item{gap:7px}
 .attendance-item strong{font-size:20px}
 .attendance-item small{font-size:10px}
}

/* Automatic night theme: 18:00–05:59 local device time */
body.theme-dark{
 --ink:#edf3fb;
 --muted:#aab8ca;
 --line:#293b52;
 --bg:#0d1726;
 background:#0d1726!important;
 color:#edf3fb!important;
}
body.theme-dark .app-main{background:#0d1726;color:#edf3fb}
body.theme-dark .page-title,
body.theme-dark .dash-section-head h2,
body.theme-dark .quick-title,
body.theme-dark .metric-card>strong,
body.theme-dark .attendance-item strong,
body.theme-dark .due-person strong,
body.theme-dark .settings-link strong{color:#edf3fb}
body.theme-dark .metric-card,
body.theme-dark .attendance-summary,
body.theme-dark .quick-card,
body.theme-dark .due-card,
body.theme-dark .card,
body.theme-dark .settings-links,
body.theme-dark .reset-panel,
body.theme-dark .login-card{
 background:#172438!important;
 border-color:#2a3d55!important;
 color:#edf3fb!important;
 box-shadow:0 4px 14px #00000020!important;
}
body.theme-dark .metric-caption,
body.theme-dark .metric-card>small,
body.theme-dark .attendance-item small,
body.theme-dark .quick-card small,
body.theme-dark .due-person small,
body.theme-dark .due-amount small,
body.theme-dark .dash-overline,
body.theme-dark .settings-head p,
body.theme-dark .settings-link small{color:#9eafc5}
body.theme-dark .attendance-item+.attendance-item,
body.theme-dark .due-item,
body.theme-dark .settings-link{border-color:#2a3d55}
body.theme-dark .dash-period{background:#22344b;color:#c2d1e4}
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea{
 background:#101d2e!important;color:#edf3fb!important;border-color:#344b66!important;
}
body.theme-dark .form-control::placeholder,
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder{color:#91a3ba}
body.theme-dark .table{color:#e8eef7}
body.theme-dark .table thead th{background:#22344b;color:#e8eef7;border-color:#344b66}
body.theme-dark .table td{background:#172438;color:#dce6f2;border-color:#2a3d55}
body.theme-dark .alert{background:#172438;color:#edf3fb;border-color:#344b66}
body.theme-dark .modal-content{background:#172438;color:#edf3fb}
body.theme-dark .modal-header,body.theme-dark .modal-footer{border-color:#2a3d55}
body.theme-dark .btn-light{background:#26384e;border-color:#344b66;color:#edf3fb}
body.theme-dark .reset-info{background:#2a2024;border-color:#53333b;color:#e9dfe2}
body.theme-dark .reset-info strong{color:#fff}

/* Employee details and monthly attendance calendar */
.employee-profile-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e0e9f4;border-radius:15px;padding:15px;box-shadow:0 3px 12px #17477a09}
.employee-profile-avatar{width:48px;height:48px;border-radius:15px;background:#e5f1ff;color:#075dc6;display:grid;place-items:center;font-size:20px;font-weight:850;flex:0 0 48px}
.employee-profile-main h2{font-size:16px;font-weight:850;margin:0 0 3px}.employee-profile-main p{font-size:10px;color:#718198;margin:0 0 5px}
.employee-active-label{display:inline-block;background:#e3f7e9;color:#08763a;border-radius:20px;padding:3px 8px;font-size:9px;font-weight:800}
.employee-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.employee-info-cell{background:#fff;border:1px solid #e0e9f4;border-radius:12px;padding:11px}
.employee-info-cell small{display:block;color:#718198;font-size:9px;margin-bottom:5px}
.employee-info-cell strong{font-size:11px;font-weight:850;color:#172338;overflow-wrap:anywhere}
.employee-calendar-section{background:#fff;border:1px solid #e0e9f4;border-radius:15px;padding:14px;box-shadow:0 3px 12px #17477a09}
.employee-calendar-title{font-size:16px;font-weight:850;margin:0}
.calendar-toolbar{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;text-align:center;background:#edf4fd;border-radius:11px;padding:5px;margin-bottom:12px}
.calendar-toolbar a{height:32px;display:grid;place-items:center;text-decoration:none;color:#075dc6;font-size:25px;border-radius:8px}
.calendar-toolbar strong{font-size:12px;font-weight:850;color:#25364c}
.employee-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar-weekdays{margin-bottom:5px}
.calendar-weekdays span{text-align:center;color:#718198;font-size:9px;font-weight:850;padding:5px 0}
.calendar-day{height:43px;border:1px solid #edf1f6;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:750;color:#27384d;background:#fff;position:relative}
.calendar-empty{height:43px}
.calendar-day.day-today{outline:2px solid #0d6efd;outline-offset:-2px}
.calendar-day.day-libur{background:#edf4ff;border-color:#c9dcff;color:#0755b5}
.calendar-day.day-izin{background:#fff3e4;border-color:#ffe0b5;color:#a95b00}
.calendar-day.day-half{background:#f1eaff;border-color:#dfceff;color:#7136bd}
.calendar-mark{width:6px;height:6px;display:inline-block;border-radius:50%}
.mark-libur{background:#0865d8}.mark-izin{background:#e58a13}.mark-half{background:#8550d8}
.calendar-legend{display:flex;flex-wrap:wrap;gap:12px;margin:13px 0 12px;padding-top:11px;border-top:1px solid #edf1f6}
.calendar-legend span{display:flex;align-items:center;gap:5px;font-size:9px;color:#718198}
.calendar-month-summary{display:grid;grid-template-columns:repeat(3,1fr);background:#f5f8fc;border-radius:11px;padding:11px 5px}
.calendar-month-summary>div{text-align:center;display:flex;flex-direction:column;gap:3px}
.calendar-month-summary>div+div{border-left:1px solid #dfe7f1}
.calendar-month-summary strong{font-size:17px;font-weight:850;color:#1b2b40}
.calendar-month-summary small{font-size:9px;color:#718198}
body.theme-dark .employee-profile-card,
body.theme-dark .employee-info-cell,
body.theme-dark .employee-calendar-section{background:#172438;border-color:#2a3d55;color:#edf3fb}
body.theme-dark .employee-profile-main h2,
body.theme-dark .employee-info-cell strong,
body.theme-dark .calendar-day,
body.theme-dark .calendar-month-summary strong{color:#edf3fb}
body.theme-dark .calendar-toolbar{background:#22344b}
body.theme-dark .calendar-toolbar strong{color:#edf3fb}
body.theme-dark .calendar-day{background:#132136;border-color:#2a3d55}
body.theme-dark .calendar-day.day-libur{background:#1c3558;border-color:#315d91;color:#d3e6ff}
body.theme-dark .calendar-day.day-izin{background:#49351e;border-color:#72532c;color:#ffe3b8}
body.theme-dark .calendar-day.day-half{background:#382854;border-color:#60428d;color:#eadcff}
body.theme-dark .calendar-month-summary{background:#22344b}
body.theme-dark .calendar-month-summary>div+div,
body.theme-dark .calendar-legend{border-color:#344b66}

/* Employee calendar uses only the two attendance statuses */
.calendar-month-summary{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Improve text contrast in automatic dark theme */
body.theme-dark,
body.theme-dark .app-main{color:#edf3fb!important}
body.theme-dark .page-title,
body.theme-dark .form-label,
body.theme-dark label,
body.theme-dark .employee-form-card label,
body.theme-dark .employee-form-card .form-label,
body.theme-dark .settings-head h1,
body.theme-dark .dash-section-head h2{color:#f3f7fd!important}
body.theme-dark .employee-form-card .form-control,
body.theme-dark .employee-form-card .form-select,
body.theme-dark .employee-form-card textarea{
  color:#f3f7fd!important;
  background:#101d2e!important;
  border-color:#3a5574!important;
}
body.theme-dark .employee-form-card .form-control::placeholder{color:#a8b7ca!important}

/* Attendance calendar status colors: LIBUR red, SETENGAH HARI yellow */
.calendar-day.day-libur{
  background:#ffe5e7!important;
  border-color:#f5a4aa!important;
  color:#a71925!important;
}
.calendar-day.day-libur .calendar-mark,
.calendar-legend .mark-libur{
  background:#dc2626!important;
}
.calendar-day.day-half{
  background:#fff4cc!important;
  border-color:#f2d36e!important;
  color:#875b00!important;
}
.calendar-day.day-half .calendar-mark,
.calendar-legend .mark-half{
  background:#eab308!important;
}
body.theme-dark .calendar-day.day-libur{
  background:#51252b!important;
  border-color:#8f3a43!important;
  color:#ffdadd!important;
}
body.theme-dark .calendar-day.day-half{
  background:#4a3c18!important;
  border-color:#8c7024!important;
  color:#fff0b3!important;
}

/* Reset controls in settings page */
.reset-panel{background:#fff;border:1px solid #f1dada;border-radius:15px;padding:15px;box-shadow:0 3px 12px #17477a09}
.reset-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:13px}
.reset-warning-icon{width:31px;height:31px;border-radius:10px;background:#fff0f0;color:#c62828;display:grid;place-items:center;font-size:18px;font-weight:900;flex:0 0 31px}
.reset-heading h2{font-size:14px;font-weight:850;margin:1px 0 4px}
.reset-heading p{font-size:10px;color:#718198;margin:0}
.reset-info{background:#fff8f6;border:1px solid #f7e4df;border-radius:11px;padding:12px;margin-bottom:13px;font-size:11px;color:#475467}
.reset-info strong{font-size:11px;color:#263548}
.reset-info ul{padding-left:18px;margin:6px 0 10px}
.reset-info ul:last-child{margin-bottom:0}
.reset-info li{margin:3px 0}
body.theme-dark .reset-panel{background:#172438!important;border-color:#53333b!important}
body.theme-dark .reset-info{background:#2a2024!important;border-color:#53333b!important;color:#e9dfe2!important}
body.theme-dark .reset-info strong{color:#fff!important}

/* Kasbon pada kalender karyawan: warna ungu */
.calendar-day.day-kasbon{background:#f0e5ff!important;border-color:#c9a7ff!important;color:#6526a8!important}
.calendar-day.day-kasbon .calendar-mark,.calendar-legend .mark-kasbon{background:#8b3fd1!important}
.mark-kasbon{background:#8b3fd1}
body.theme-dark .calendar-day.day-kasbon{background:#40245c!important;border-color:#8050a8!important;color:#f0dcff!important}


/* Tombol hapus untuk setiap kolom masukan */
.clearable-field{position:relative;width:100%;}
.clearable-field>.form-control,.clearable-field>.form-select{padding-right:2.65rem;}
.clearable-field>.input-group .form-control{padding-right:2.65rem;}
.clear-input-btn{position:absolute;z-index:5;right:.45rem;top:50%;transform:translateY(-50%);width:1.85rem;height:1.85rem;border:0;border-radius:50%;background:rgba(108,117,125,.16);color:var(--bs-secondary-color,#6c757d);font-size:1.35rem;line-height:1;display:flex;align-items:center;justify-content:center;padding:0;}
.clear-input-btn:active{background:rgba(108,117,125,.3);}
.clearable-field>.input-group .clear-input-btn{right:.45rem;}


/* Dashboard polish: compact two-item attendance summary and kasbon shortcut */
.attendance-summary{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:stretch!important;
 gap:0!important;
 width:100%!important;
 min-height:92px!important;
 padding:13px 8px!important;
}
.attendance-summary .attendance-item{
 display:flex!important;
 justify-content:center!important;
 align-items:center!important;
 gap:11px!important;
 min-width:0!important;
 min-height:62px!important;
 padding:4px 8px!important;
}
.attendance-summary .attendance-item+.attendance-item{border-left:1px solid #e5edf7!important}
.attendance-summary .attendance-item strong{font-size:24px!important;line-height:1.05!important}
.attendance-summary .attendance-item small{font-size:11px!important;white-space:nowrap!important}
.attendance-summary .attendance-dot{width:9px!important;height:9px!important;flex:0 0 9px!important}
.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.quick-card{min-width:0!important;min-height:116px!important;padding:13px!important;gap:0!important}
.quick-title{font-size:12px!important;line-height:1.3!important}
.quick-card small{font-size:10px!important;line-height:1.35!important}
.quick-violet{background:#f0e5ff!important;color:#7634bd!important}
.quick-kasbon-card{border-color:#d9c2f6!important}
.kasbon-total-card{display:flex;align-items:center;gap:12px;padding:16px;background:linear-gradient(120deg,#54228a,#8547c5);border-radius:14px;color:#fff}
.kasbon-total-icon{width:42px;height:42px;border-radius:12px;background:#ffffff24;display:grid;place-items:center;font-size:17px;font-weight:900}
.kasbon-total-card small{display:block;color:#eadcf8;font-size:10px;margin-bottom:3px}
.kasbon-total-card strong{display:block;font-size:19px;font-weight:850}
.kasbon-employee-row{display:flex;align-items:center;gap:10px;padding:12px;margin-bottom:9px;background:#fff;border:1px solid #e0e9f4;border-radius:13px;text-decoration:none;color:#172338;box-shadow:0 3px 12px #17477a08;min-width:0}
.kasbon-employee-avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:#f0e5ff;color:#7634bd;font-weight:850}
.kasbon-employee-info{min-width:0;flex:1}
.kasbon-employee-info strong,.kasbon-employee-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kasbon-employee-info strong{font-size:12px;font-weight:850}
.kasbon-employee-info small,.kasbon-employee-balance small{font-size:9px;color:#718198;margin-top:3px}
.kasbon-employee-balance{text-align:right;flex:0 0 auto}
.kasbon-employee-balance small{display:block}
.kasbon-employee-balance strong{display:block;font-size:11px;color:#7634bd;white-space:nowrap;margin-top:2px}
.kasbon-row-arrow{font-size:20px;color:#91a0b2}
body.theme-dark .kasbon-employee-row{background:#172438;border-color:#2a3d55;color:#edf3fb}
body.theme-dark .kasbon-employee-info small,body.theme-dark .kasbon-employee-balance small{color:#9eafc5}
body.theme-dark .attendance-summary .attendance-item+.attendance-item{border-color:#344b66!important}
@media(max-width:380px){
 .attendance-summary{min-height:84px!important;padding:9px 4px!important}
 .attendance-summary .attendance-item{gap:7px!important;padding:3px 4px!important}
 .attendance-summary .attendance-item strong{font-size:21px!important}
 .attendance-summary .attendance-item small{font-size:10px!important}
 .quick-card{min-height:108px!important;padding:11px!important}
}

/* Dashboard hero tanpa tombol pintas penggajian */
.dash-hero p{margin-bottom:0!important}

/* Konfirmasi aksi PAYROLLKU */
.confirm-modal .modal-content{background:var(--bs-body-bg,#17263b);color:var(--bs-body-color,#eef4ff);border:1px solid rgba(135,170,210,.28);border-radius:24px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.38)}
.confirm-modal .modal-body{padding:28px 24px 18px;text-align:center}
.confirm-modal .confirm-icon{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;margin:0 auto 16px;font-size:30px;background:rgba(13,110,253,.14);color:#4d9aff}
.confirm-modal.is-danger .confirm-icon{background:rgba(220,53,69,.14);color:#ff6677}
.confirm-modal.is-success .confirm-icon{background:rgba(25,135,84,.15);color:#48c78e}
.confirm-modal .confirm-title{font-size:1.25rem;font-weight:800;margin-bottom:8px}
.confirm-modal .confirm-message{color:var(--bs-secondary-color,#9eacc1);line-height:1.55;margin:0 auto;max-width:320px}
.confirm-modal .modal-footer{border:0;padding:8px 22px 22px;display:flex;gap:10px}
.confirm-modal .modal-footer .btn{flex:1;border-radius:13px;padding:12px 14px;font-weight:700}
.confirm-modal .btn-confirm{background:linear-gradient(135deg,#0878f9,#0754bd);border:0;color:#fff}
.confirm-modal.is-danger .btn-confirm{background:linear-gradient(135deg,#ef5365,#c82333)}
.confirm-modal .btn-cancel{background:rgba(130,150,180,.13);border:1px solid rgba(130,150,180,.22);color:inherit}

/* Kalender berdasarkan periode gajian, bukan bulan kalender */
.calendar-period-caption{font-size:11px;color:#718198;margin:-4px 0 9px}
.calendar-period-caption strong{color:inherit;font-weight:850}
.calendar-day{min-height:52px;height:auto;padding:5px 2px;gap:1px}
.calendar-day-month{font-size:8px;line-height:1;color:#8292a8;font-weight:700;text-transform:uppercase}
.calendar-day.day-payday{background:#dcfce7!important;border:2px solid #16a34a!important;color:#166534!important;box-shadow:inset 0 0 0 1px #16a34a}
.calendar-mark.mark-payday,.calendar-legend .mark-payday{background:#16a34a!important}
body.theme-dark .calendar-day.day-payday{background:#17452f!important;border-color:#22c55e!important;color:#dcfce7!important;box-shadow:inset 0 0 0 1px #22c55e}
.calendar-month-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* Tanggal gajian harus selalu hijau, termasuk jika bertepatan dengan kasbon/absensi. */
.employee-calendar-grid .calendar-day.day-payday,
.employee-calendar-grid .calendar-day.day-payday.day-kasbon,
.employee-calendar-grid .calendar-day.day-payday.day-libur,
.employee-calendar-grid .calendar-day.day-payday.day-half {
  background:#dcfce7 !important;
  border:2px solid #16a34a !important;
  color:#166534 !important;
  box-shadow:inset 0 0 0 1px #16a34a !important;
}
.employee-calendar-grid .calendar-day.day-payday .calendar-mark { background:#16a34a !important; }
body.theme-dark .employee-calendar-grid .calendar-day.day-payday,
body.theme-dark .employee-calendar-grid .calendar-day.day-payday.day-kasbon,
body.theme-dark .employee-calendar-grid .calendar-day.day-payday.day-libur,
body.theme-dark .employee-calendar-grid .calendar-day.day-payday.day-half {
  background:#17452f !important; border-color:#22c55e !important; color:#dcfce7 !important;
  box-shadow:inset 0 0 0 1px #22c55e !important;
}
body.theme-dark .employee-calendar-grid .calendar-day.day-payday .calendar-mark { background:#22c55e !important; }


/* FIX FINAL: tanggal gajian selalu hijau pada kalender periode kerja. */
.employee-calendar-grid.calendar-days > .calendar-day.day-payday,
.employee-calendar-grid.calendar-days > .calendar-day.day-payday.day-kasbon,
.employee-calendar-grid.calendar-days > .calendar-day.day-payday.day-libur,
.employee-calendar-grid.calendar-days > .calendar-day.day-payday.day-half {
  background-color: #bbf7d0 !important;
  background-image: none !important;
  border: 2px solid #15803d !important;
  color: #14532d !important;
  box-shadow: 0 0 0 2px rgba(34,197,94,.18) !important;
  opacity: 1 !important;
}
.employee-calendar-grid.calendar-days > .calendar-day.day-payday .calendar-mark {
  background-color: #15803d !important;
}
body.theme-dark .employee-calendar-grid.calendar-days > .calendar-day.day-payday,
body.theme-dark .employee-calendar-grid.calendar-days > .calendar-day.day-payday.day-kasbon,
body.theme-dark .employee-calendar-grid.calendar-days > .calendar-day.day-payday.day-libur,
body.theme-dark .employee-calendar-grid.calendar-days > .calendar-day.day-payday.day-half {
  background-color: #166534 !important;
  border-color: #4ade80 !important;
  color: #f0fdf4 !important;
  box-shadow: 0 0 0 2px rgba(74,222,128,.2) !important;
}
body.theme-dark .employee-calendar-grid.calendar-days > .calendar-day.day-payday .calendar-mark {
  background-color: #4ade80 !important;
}

/* Employees page refinements */
.employee-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}
.employee-heading>a{font-size:1.05rem}
.employee-position{display:inline-flex;align-items:center;padding-left:0;border-left:0!important;color:var(--bs-secondary-color, #94a3b8);font-size:.88rem;line-height:1.2}
.employee-actions{flex:0 0 auto;flex-shrink:0}
.employee-icon-btn{box-sizing:border-box!important;width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex:0 0 42px!important;flex-shrink:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;border-radius:12px;font-size:1.35rem;line-height:1;color:var(--bs-primary)}
.employee-icon-btn svg{display:block!important;width:22px!important;height:22px!important;min-width:22px;min-height:22px;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round;stroke-linejoin:round;visibility:visible!important;opacity:1!important}
.employee-card{border-radius:18px}
.employee-calendar-legend{border-radius:16px}
.legend-item{display:inline-flex;align-items:center;gap:7px;color:var(--bs-secondary-color, #94a3b8);font-size:.88rem}
.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.legend-libur{background:#ef4444}.legend-halfday{background:#eab308}.legend-kasbon{background:#9333ea}

/* Keterangan kalender di dalam setiap panel karyawan */
.employee-card-counts{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(14px,4vw,28px);padding-top:0;border:0!important}
.employee-count{display:inline-flex;align-items:center;gap:7px;min-width:0;color:var(--bs-secondary-color, #94a3b8);font-size:.82rem}
.employee-count b{font-size:1rem;color:var(--bs-body-color, #f1f5f9);font-weight:700}
.employee-count .legend-dot{width:9px;height:9px;flex:0 0 9px}

/* Ringkasan per karyawan: kontras jelas pada tema gelap/terang */
.employee-card-counts{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;align-items:center!important;
  gap:9px!important;margin-top:16px!important;padding:0!important;
}
.employee-card-counts .employee-count{
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  color:#dbe5f2!important;font-size:.88rem!important;font-weight:500!important;
  white-space:normal;
}
.employee-card-counts .employee-count b{
  color:#ffffff!important;font-size:.98rem!important;font-weight:800!important;
}
.employee-card-counts .employee-count span{color:#dbe5f2!important}
.employee-card-counts .legend-dot{width:10px!important;height:10px!important;flex:0 0 10px!important}
body:not(.theme-dark) .employee-card-counts .employee-count,
body:not(.theme-dark) .employee-card-counts .employee-count span{color:#334155!important}
body:not(.theme-dark) .employee-card-counts .employee-count b{color:#0f172a!important}

/* Avatar karyawan diperkecil agar proporsional di layar ponsel */
.employee-heading{display:flex;align-items:center;gap:9px;min-width:0}
.employee-avatar{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:10px!important;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#dbeafe,#bfdbfe);color:#0759c7;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}
.employee-avatar svg{width:18px!important;height:18px!important;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.employee-name-wrap{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}

/* Tombol ikon di panel karyawan diperkecil agar lebih proporsional */
.employee-icon-btn{
  width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;
  flex:0 0 32px!important;padding:0!important;border-radius:10px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:1rem!important;line-height:1!important;
}
.employee-icon-btn svg{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;stroke-width:2!important}
.employee-actions{gap:6px!important;align-items:center!important}

/* Final fix: employee action buttons must remain perfectly square */
.employee-actions > .employee-icon-btn,
.employee-heading-row .employee-icon-btn,
a.employee-icon-btn,
button.employee-icon-btn {
  box-sizing: border-box !important;
  inline-size: 32px !important;
  block-size: 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  border-radius: 9px !important;
  line-height: 1 !important;
  overflow: hidden !important;
}
.employee-actions > .employee-icon-btn svg,
a.employee-icon-btn svg,
button.employee-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
}


/* Fix tema gelap: status pembayaran dan pilihan catatan kehadiran */
.status-pill{background:#fff1d6!important;color:#8a4b00!important;border:1px solid #f3d18b!important;padding:6px 11px!important;white-space:nowrap}
.status-pill.status-paid{background:#dcfce7!important;color:#166534!important;border-color:#86efac!important}
body.theme-dark .status-pill{background:#49351e!important;color:#ffe3b8!important;border-color:#805b2d!important}
body.theme-dark .status-pill.status-paid{background:#17452f!important;color:#bbf7d0!important;border-color:#258454!important}
body.theme-dark .status-options label{background:#22344b!important;border:1px solid #49617e!important;color:#f1f5fb!important}
body.theme-dark .status-options label span{color:#f1f5fb!important;font-weight:850!important}
body.theme-dark .status-options label small{color:#c2d1e4!important}
body.theme-dark .status-options label:has(input:checked){background:#123e70!important;border:2px solid #3990ff!important;color:#fff!important;box-shadow:0 0 0 2px #0865d833}
body.theme-dark .status-options label:has(input:checked) span,
body.theme-dark .status-options label:has(input:checked) small{color:#fff!important}


/* Animasi halus dan konsisten untuk seluruh halaman PAYROLLKU */
@keyframes sfPageEnter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sfCardEnter {
  from { opacity: 0; transform: translateY(7px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-main { animation: sfPageEnter .38s ease-out both; }
.app-main .card,
.app-main .stat-card,
.app-main .mini-stat,
.app-main .menu-tile,
.app-main .due-card,
.app-main .quick-card,
.app-main .metric-card,
.app-main .employee-card,
.app-main .payroll-card {
  animation: sfCardEnter .42s ease-out both;
}
.app-main .btn,
.app-main button,
.app-main a.btn,
.app-main .quick-card,
.app-main .menu-tile {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}
@media (hover:hover) and (pointer:fine) {
  .app-main .btn:hover,
  .app-main button:hover,
  .app-main .quick-card:hover,
  .app-main .menu-tile:hover {
    transform: translateY(-2px);
    filter: brightness(1.045);
    box-shadow: 0 7px 18px rgba(0,0,0,.13);
  }
}
.app-main .btn:active,
.app-main button:active,
.app-main .quick-card:active,
.app-main .menu-tile:active { transform: scale(.975); }
.app-header { animation: sfPageEnter .3s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Tombol hapus ringkas berbentuk ikon */
.employee-actions{align-items:center;flex-wrap:nowrap}
.employee-icon-btn{width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;border-radius:10px!important}
.employee-icon-btn svg,.kasbon-delete-icon svg{display:block;flex:none}
.kasbon-delete-icon{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:9px}

/* Status gaji yang belum mencapai jatuh tempo */
.status-pill.status-upcoming{background:#dbeafe!important;color:#1e40af!important;border:1px solid #93c5fd!important}
body.theme-dark .status-pill.status-upcoming{background:#1e3a5f!important;color:#bfdbfe!important;border-color:#3b82f6!important}

/* Posisikan nama PAYROLLKU tepat di tengah header. */
.app-header {
    position: sticky;
    justify-content: center !important;
}
.app-header .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    white-space: nowrap;
    text-align: center;
}
.app-header .header-menu {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
