:root{--navy:#0b2f57;--blue:#0b5cad;--green:#08785a;--bg:#eef4fa;--text:#102a43;--muted:#667085}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:var(--text)}
.shell{max-width:760px;margin:auto;padding:18px}
.card{background:#fff;border-radius:20px;padding:22px;margin:14px 0;box-shadow:0 12px 35px #1231}
h1{margin:0 0 6px}.muted{color:var(--muted)}
.version{display:inline-block;margin-top:8px;padding:5px 9px;border-radius:8px;background:#eaf4ff;color:#0b5cad;font-weight:bold}
input,select,button{width:100%;padding:13px;border:1px solid #ccd6e0;border-radius:11px;margin:6px 0;font-size:15px}
button{background:var(--blue);color:#fff;border:0;font-weight:bold;cursor:pointer;min-height:52px;touch-action:manipulation;transition:transform .08s ease,opacity .15s ease}
button:active:not(:disabled){transform:scale(.98)}button:disabled{cursor:not-allowed;opacity:.55}
.green{background:var(--green)}.orange{background:#f79009}.danger{background:#b42318}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.status{padding:12px;border-radius:10px;background:#eaf4ff;margin:10px 0}.error{background:#fee4e2;color:#b42318}.ok{background:#d1fadf;color:#05603a}
video,canvas{width:100%;border-radius:16px;background:#102a43;aspect-ratio:4/3;object-fit:cover}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}th{background:var(--navy);color:#fff}
.nav{display:flex;gap:8px;flex-wrap:wrap}.nav a{background:#fff;padding:10px 14px;border-radius:9px;text-decoration:none;color:var(--navy)}
.employee-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.employee-nav a,.employee-nav summary{display:block;background:#fff;padding:11px 15px;border-radius:10px;text-decoration:none;color:var(--navy);font-weight:bold;cursor:pointer}.employee-nav a.active{background:var(--blue);color:#fff}.employee-nav details{position:relative}.employee-nav details div{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.balance-card{text-align:center;padding:28px}.balance-card strong{display:block;font-size:52px;color:var(--green);margin:8px}.history-list{display:grid;gap:10px}.history-item{padding:14px;border:1px solid #dbe4ee;border-radius:12px}.history-item .grid{align-items:center}.amount{font-size:22px;font-weight:bold;color:var(--navy)}.download-button{display:inline-block;background:var(--blue);color:#fff!important;text-decoration:none;padding:12px 18px;border-radius:10px;font-weight:bold;white-space:nowrap}.download-button:hover{background:#084a8c}
.admin-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}.admin-sidebar{position:sticky;top:12px;background:var(--navy);color:#fff;border-radius:18px;padding:16px;box-shadow:0 12px 35px #1232}.admin-sidebar h2{margin:2px 4px 14px}.admin-sidebar a,.admin-sidebar summary{display:block;color:#fff;text-decoration:none;padding:11px 12px;border-radius:9px;cursor:pointer;font-weight:bold}.admin-sidebar a:hover,.admin-sidebar a.active,.admin-sidebar summary:hover{background:#2678c8}.admin-sidebar details{margin:3px 0}.admin-sidebar details a{margin-left:12px;font-weight:normal}.admin-user{padding:12px;margin-bottom:12px;border-radius:10px;background:#ffffff18}.admin-user small{display:block;color:#c9ddf0;margin-top:4px}.admin-content{min-width:0}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.pagination{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}.pagination a{padding:9px 14px;background:var(--blue);color:#fff;border-radius:9px;text-decoration:none}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}.permission-item{display:flex;gap:9px;align-items:center;padding:12px;border:1px solid #dbe4ee;border-radius:10px}.permission-item input{width:auto;margin:0}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.inline-actions form{margin:0}.inline-actions button{min-height:40px;padding:8px 12px;margin:0}.staff-card{border:1px solid #dbe4ee;border-radius:12px;padding:14px;margin:10px 0}
.admin-shell{max-width:1180px}.photo-link{font-weight:bold;white-space:nowrap}.badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:bold}.badge.pending{background:#fff3cd;color:#7a4d00}.badge.verified{background:#d1fadf;color:#05603a}.badge.rejected{background:#fee4e2;color:#b42318}.audit{display:block;margin-top:5px;color:var(--muted);white-space:nowrap}.verify-form{min-width:250px}.verify-form input{margin:0 0 6px;padding:9px}.verify-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.verify-buttons button{min-height:42px;margin:0;padding:8px;font-size:13px}
.pin-card summary{cursor:pointer;color:var(--blue);font-size:18px;font-weight:bold;padding:3px 0;touch-action:manipulation}.pin-card summary::marker{color:var(--blue)}.pin-card form{margin-top:12px}.pin-card label{display:block;margin-top:8px;font-weight:bold}
.summary-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.summary-heading h2{margin:0 0 4px}.refresh-link{display:inline-block;padding:10px 16px;border-radius:10px;background:var(--blue);color:#fff;text-decoration:none;font-weight:bold}.attendance-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.summary-box{padding:18px;border-radius:15px;border:1px solid #dbe7f3;background:#f5f9fd}.summary-box span{display:block;color:var(--muted);font-weight:bold}.summary-box strong{display:block;margin-top:7px;font-size:32px;color:var(--navy)}.summary-box.present{background:#e7f8f1;border-color:#9edbc6}.summary-box.present strong{color:#08785a}.summary-box.absent{background:#fff0ee;border-color:#f6bbb5}.summary-box.absent strong{color:#b42318}.summary-box.checkout{background:#fff7e6;border-color:#f8d88c}.summary-box.checkout strong{color:#b54708}.missing-list{margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}.missing-list summary{cursor:pointer;color:#b42318;font-weight:bold}.missing-names{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.missing-names div{padding:10px;border-radius:10px;background:#fff5f4}.missing-names small{display:block;margin-top:3px;color:var(--muted)}
.pending-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.pending-box{display:block;padding:18px;border-radius:15px;border:1px solid #f1d58b;background:#fff9e8;text-decoration:none;color:var(--navy);transition:transform .15s ease,box-shadow .15s ease}.pending-box[href]:hover{transform:translateY(-2px);box-shadow:0 8px 22px #0b2f5715}.pending-box span{display:block;color:var(--muted);font-weight:bold}.pending-box strong{display:block;margin:7px 0;font-size:32px;color:#b54708}.pending-box small{color:var(--blue);font-weight:bold}.pending-box.overtime{background:#f0f4ff;border-color:#b7c8f5}.pending-box.overtime strong{color:#3448a6}.pending-box.reimburse{background:#edf9f3;border-color:#a9dfc7}.pending-box.reimburse strong{color:#08785a}
@media(max-width:800px){.attendance-summary{grid-template-columns:1fr 1fr}.pending-summary{grid-template-columns:1fr}.missing-names{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:static}.admin-sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.admin-sidebar details{grid-column:span 1}}
@media(max-width:600px){.grid{grid-template-columns:1fr}.shell{padding:10px}.card{padding:16px}button{min-height:58px;font-size:17px}.summary-heading{align-items:flex-start}.attendance-summary{grid-template-columns:1fr 1fr;gap:8px}.summary-box{padding:13px}.summary-box span{font-size:13px}.summary-box strong{font-size:27px}.missing-names{grid-template-columns:1fr}}


textarea{width:100%;padding:13px;border:1px solid #ccd6e0;border-radius:11px;margin:6px 0;font-size:15px;font-family:inherit;resize:vertical;line-height:1.55}.secondary-button{background:#e8eef5;color:var(--navy)}
.company-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.company-rule-card{display:flex;flex-direction:column;justify-content:space-between;min-height:260px;padding:20px;border:1px solid #d8e3ef;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff)}.company-rule-card h3{margin:10px 0 8px;font-size:20px;color:var(--navy)}.company-rule-card p{margin:0;color:var(--muted);line-height:1.55}.company-rule-card button{margin-top:20px}.rule-number{display:inline-block;font-size:11px;letter-spacing:.08em;font-weight:bold;color:var(--blue);background:#eaf4ff;border-radius:999px;padding:6px 9px}.rule-modal{position:fixed;inset:0;background:#071a2dcc;display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}.rule-modal.open{display:flex}.rule-modal-panel{width:min(900px,96vw);max-height:90vh;background:#fff;border-radius:20px;box-shadow:0 24px 70px #0005;display:flex;flex-direction:column;overflow:hidden}.rule-modal-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;border-bottom:1px solid #e5e7eb}.rule-modal-head h2{margin:0}.rule-modal-close{width:44px;min-height:44px;margin:0;padding:0;border-radius:50%;font-size:28px;background:#eef4fa;color:var(--navy)}.rule-modal-body{padding:24px;overflow:auto;white-space:pre-wrap;line-height:1.75;font-size:15px;color:#213547}.rule-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rule-admin-card{border:1px solid #dbe4ee;border-radius:14px;padding:16px;background:#fbfdff}.rule-card-head{display:flex;justify-content:space-between;gap:12px}.rule-card-head h3{margin:8px 0}.rule-content-preview{white-space:pre-wrap;color:var(--muted);line-height:1.55;padding:12px 0}.rule-admin-card .inline-actions{margin-top:12px}.rule-admin-card .inline-actions>button,.rule-admin-card .inline-actions form{flex:1}.rule-admin-card .inline-actions button{width:100%}
@media(max-width:900px){.company-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-admin-grid{grid-template-columns:1fr}}
@media(max-width:600px){.company-rule-grid{grid-template-columns:1fr}.rule-modal{padding:8px}.rule-modal-panel{max-height:95vh}.rule-modal-head,.rule-modal-body{padding:16px}}

/* =========================================================
   SIBAYAR v5.1.0 — Professional UI Refresh
   ========================================================= */
:root{
  --navy:#12365c;--navy-deep:#0d2b4b;--blue:#2563eb;--blue-hover:#1d4ed8;
  --green:#0f9f6e;--orange:#d97706;--red:#d14343;--bg:#f5f7fb;
  --text:#15243a;--muted:#6b778c;--line:#e7ebf2;--card:#fff;
  --shadow:0 10px 30px rgba(15,39,71,.06);--radius:16px
}
body{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);letter-spacing:-.01em}
body:before{content:"";position:fixed;inset:0 0 auto 0;height:220px;background:linear-gradient(180deg,#edf4fb 0%,rgba(245,247,251,0) 100%);pointer-events:none;z-index:-1}
.shell{max-width:820px;padding:24px}
.admin-shell{max-width:1540px;padding:28px 34px}
.card{border:1px solid rgba(226,232,240,.88);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;margin:0 0 18px;background:rgba(255,255,255,.98)}
h1{font-size:30px;line-height:1.15;letter-spacing:-.035em}h2{letter-spacing:-.025em}.muted{color:var(--muted);line-height:1.6}
input,select,textarea{background:#fff;border:1px solid #dce3ec;border-radius:10px;min-height:44px;box-shadow:0 1px 1px rgba(15,23,42,.02);outline:none;transition:border-color .15s ease,box-shadow .15s ease}
input:focus,select:focus,textarea:focus{border-color:#8bb5ff;box-shadow:0 0 0 4px rgba(37,99,235,.08)}
button{background:var(--blue);border-radius:10px;min-height:44px;box-shadow:none;transition:background .15s ease,transform .08s ease,box-shadow .15s ease}
button:hover:not(:disabled){background:var(--blue-hover);box-shadow:0 5px 14px rgba(37,99,235,.15)}
.green{background:var(--green)}.green:hover:not(:disabled){background:#0b845b}.danger{background:var(--red)}.orange{background:var(--orange)}
.version{background:#eff6ff;color:#2563eb;border:1px solid #dbeafe;border-radius:999px;padding:5px 10px;font-size:12px;letter-spacing:0}

/* Admin shell + sidebar */
.admin-layout{grid-template-columns:248px minmax(0,1fr);gap:24px}
.admin-sidebar{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;background:linear-gradient(180deg,#12365c 0%,#0c2b4b 100%);border-radius:18px;padding:18px 14px;box-shadow:0 20px 50px rgba(13,43,75,.18)}
.brand{display:flex;align-items:center;gap:11px;padding:3px 8px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-mark{width:38px;height:38px;border-radius:11px;background:#fff;color:var(--navy);display:grid;place-items:center;font-size:20px;font-weight:900;box-shadow:0 6px 18px rgba(0,0,0,.16)}
.brand h2{font-size:19px;margin:0;letter-spacing:.01em}.brand small{display:block;color:#a9c4dd;font-size:11px;margin-top:2px}
.admin-user{display:flex;align-items:center;gap:10px;padding:12px;margin:14px 0 12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.07);border-radius:12px}
.user-avatar{width:34px;height:34px;min-width:34px;border-radius:50%;display:grid;place-items:center;background:#eaf2fb;color:var(--navy);font-weight:800}
.admin-user b{font-size:13px}.admin-user small{font-size:11px;margin-top:2px;color:#b9cce0}
.nav-section-label{font-size:9px;letter-spacing:.12em;font-weight:800;color:#7fa1c0;padding:16px 10px 6px}
.admin-sidebar a,.admin-sidebar summary{display:flex;align-items:center;gap:9px;padding:9px 10px;margin:2px 0;border-radius:9px;font-size:13px;color:#dce8f3;font-weight:600;transition:background .14s ease,color .14s ease}
.admin-sidebar a:hover,.admin-sidebar a.active,.admin-sidebar summary:hover{background:rgba(255,255,255,.10);color:#fff}
.admin-sidebar a.active{background:#fff;color:#12365c;box-shadow:0 4px 14px rgba(0,0,0,.10)}
.admin-sidebar details a{margin-left:24px;padding-left:10px;font-size:12px;color:#b9cce0}
.admin-sidebar details[open]>summary{color:#fff}.admin-sidebar summary::marker{color:#94adc5}.nav-icon{display:inline-grid;place-items:center;width:20px;height:20px;font-size:12px;font-weight:800;opacity:.95}
.nav-footer{border-top:1px solid rgba(255,255,255,.08);margin-top:16px;padding-top:10px}

/* Header */
.admin-top{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;min-height:112px}
.admin-top h1{margin:3px 0 4px}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:800;color:#7a8ca5}.top-subtitle{font-size:13px;color:var(--muted)}
.top-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.top-meta b{font-size:12px;color:#536176;font-weight:600}

/* Dashboard cards */
.summary-heading{align-items:center}.summary-heading h2{font-size:20px}.refresh-link,.primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:9px;background:var(--blue);color:#fff;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}.refresh-link:hover,.primary-link:hover{background:var(--blue-hover)}
.attendance-summary{gap:12px}.summary-box{border:1px solid var(--line);background:#fff;border-radius:13px;padding:18px}.summary-box span{font-size:12px}.summary-box strong{font-size:28px}.summary-box.total{background:#f8fafc}.summary-box.present{background:#f2fbf7}.summary-box.absent{background:#fff7f6}.summary-box.checkout{background:#fffaf2}
.pending-box{border-radius:13px}.pending-box strong{font-size:28px}

/* Table system */
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;margin-top:16px;background:#fff}
table{font-size:13px}th{background:#f8fafc;color:#5c6a7e;font-size:10px;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid var(--line);padding:12px 14px}td{padding:14px;border-bottom:1px solid #edf0f5;color:#26374f}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}

/* Employee master */
.employee-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.mini-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow)}.mini-stat span{display:block;color:#66758a;font-size:12px;font-weight:700}.mini-stat strong{display:block;font-size:28px;margin:7px 0 2px;color:#16395e}.mini-stat small{color:#8a96a8;font-size:11px}.mini-stat.success strong{color:#0f8a63}.mini-stat.neutral strong{color:#7a8493}
.employee-card{padding:22px}.employee-filter{display:grid;grid-template-columns:minmax(250px,1fr) 170px auto auto;gap:9px;align-items:center;margin-top:18px}.employee-filter input,.employee-filter select,.employee-filter button{margin:0}.search-field{position:relative}.search-field span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8b98aa;font-size:18px}.search-field input{padding-left:38px}.filter-button{width:auto;padding:0 18px;min-height:44px}.reset-filter{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;color:#64748b;text-decoration:none;font-weight:700;font-size:12px}.reset-filter:hover{color:#2563eb}
.employee-table th:first-child{min-width:250px}.employee-table th:nth-child(2){min-width:160px}.employee-table .action-col{width:80px;text-align:right}.employee-identity{display:flex;align-items:center;gap:11px}.employee-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eef4fb;color:#23496f;font-weight:800;font-size:13px}.employee-identity b{display:block;color:#1f3048;font-size:13px}.employee-identity small{display:block;color:#8a96a8;font-size:11px;margin-top:2px}.nik-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#536176}.status-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}.status-pill i{width:6px;height:6px;border-radius:50%}.status-pill.active{background:#ecfdf5;color:#08775a}.status-pill.active i{background:#10b981}.status-pill.inactive{background:#f3f4f6;color:#687386}.status-pill.inactive i{background:#94a3b8}
.action-dropdown{position:relative;display:inline-block;text-align:left}.action-dropdown>summary{list-style:none;width:36px;height:34px;border:1px solid #dce3ec;border-radius:8px;display:grid;place-items:center;cursor:pointer;color:#64748b;font-weight:900;letter-spacing:2px;background:#fff}.action-dropdown>summary::-webkit-details-marker{display:none}.action-dropdown[open]>summary{border-color:#a9c6f8;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.action-menu{position:absolute;right:0;top:40px;z-index:20;width:170px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 32px rgba(15,39,71,.14)}.action-menu form{margin:0}.menu-item{width:100%;min-height:36px;margin:0;padding:8px 10px;border-radius:7px;background:#fff;color:#344258;text-align:left;font-size:12px;box-shadow:none}.menu-item:hover:not(:disabled){background:#f6f8fb;color:#1e3a5f;box-shadow:none}.menu-danger{color:#c23e3e}.menu-danger:hover:not(:disabled){background:#fff1f1;color:#aa2e2e}.menu-success{color:#08775a}.menu-success:hover:not(:disabled){background:#effaf5;color:#08775a}
.table-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:#7b8798;font-size:11px}.table-footer .pagination{margin:0;gap:6px}.table-footer .pagination a{display:grid;place-items:center;width:32px;height:32px;padding:0;background:#fff;border:1px solid #dce3ec;color:#43526a;border-radius:8px}.table-footer .pagination strong{font-size:11px;color:#586579}
.empty-state{display:flex;flex-direction:column;align-items:center;padding:26px;color:#7b8798}.empty-state b{color:#405069;margin-bottom:4px}

/* PIN modal */
.pin-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(10,28,48,.45);backdrop-filter:blur(3px);z-index:9999;padding:20px}.pin-modal.open{display:flex}.pin-modal-panel{width:min(440px,95vw);background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(13,43,75,.25);overflow:hidden}.pin-modal-head{display:flex;justify-content:space-between;gap:18px;padding:20px 22px 14px;border-bottom:1px solid var(--line)}.pin-modal-head span{font-size:9px;letter-spacing:.12em;color:#7d8b9d;font-weight:800}.pin-modal-head h3{margin:4px 0 2px;font-size:20px}.pin-modal-head p{margin:0;color:#718096;font-size:12px}.pin-modal-close{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;margin:0;border-radius:50%;background:#f3f6f9;color:#56657a;font-size:22px;box-shadow:none}.pin-modal-panel form{padding:18px 22px 22px}.pin-modal-panel label{display:block;font-size:12px;font-weight:700;color:#46556b;margin-bottom:11px}.pin-modal-panel label input{display:block;margin-top:6px}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.modal-actions button{margin:0}.secondary-button{background:#f1f5f9;color:#3e4d63}.secondary-button:hover:not(:disabled){background:#e7edf4;box-shadow:none}

/* Employee portal also cleaner */
.employee-nav{padding:5px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.employee-nav a,.employee-nav summary{font-size:12px;padding:9px 12px;border-radius:8px}.employee-nav a.active{background:#eaf2ff;color:#1d5dbe}.history-item{border-color:var(--line);border-radius:12px;background:#fff}.balance-card strong{color:#0f8a63}.download-button{background:var(--blue);border-radius:9px}

@media(max-width:1100px){.admin-shell{padding:18px}.admin-layout{grid-template-columns:220px minmax(0,1fr)}.employee-filter{grid-template-columns:1fr 150px auto}.employee-filter .reset-filter{grid-column:1/-1;justify-content:flex-start;min-height:auto}.attendance-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:relative;top:0;max-height:none}.admin-sidebar nav{display:block}.admin-top{min-height:auto}.employee-overview{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.admin-shell,.shell{padding:12px}.card{padding:18px}.admin-top{align-items:flex-start}.top-meta{align-items:flex-start}.employee-overview{grid-template-columns:1fr}.employee-filter{grid-template-columns:1fr}.employee-filter .reset-filter{grid-column:auto}.summary-heading{gap:10px}.primary-link{font-size:11px;padding:0 10px}.table-footer{align-items:flex-start;gap:10px}.employee-table th:first-child{min-width:210px}}

/* =========================================================
   SIBAYAR v5.1.2 — Employee Portal Professional UI
   ========================================================= */
body{background:#f4f7fb}
.employee-app{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr);background:#f4f7fb}
.employee-sidebar{position:sticky;top:0;height:100vh;padding:24px 18px 18px;background:linear-gradient(180deg,#0b2f57 0%,#0f3d6c 58%,#0a294c 100%);color:#fff;display:flex;flex-direction:column;box-shadow:12px 0 32px rgba(13,43,75,.08);z-index:40}
.employee-brand{display:flex;align-items:center;gap:12px;padding:2px 6px 22px;border-bottom:1px solid rgba(255,255,255,.1)}
.employee-brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#fff,#dcecff);color:#0b2f57;display:grid;place-items:center;font-size:22px;font-weight:900;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.employee-brand strong{display:block;font-size:19px;letter-spacing:.035em}.employee-brand small{display:block;color:#aac5df;font-size:11px;margin-top:2px}
.employee-profile-mini{display:flex;align-items:center;gap:11px;margin:18px 0 10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}
.employee-avatar-lg,.employee-top-avatar{width:38px;height:38px;min-width:38px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:linear-gradient(135deg,#dcecff,#fff);color:#0b2f57}
.employee-profile-mini b{display:block;font-size:13px}.employee-profile-mini small{display:block;color:#b9cde1;font-size:11px;margin-top:3px}
.employee-nav-label{font-size:9px;letter-spacing:.14em;font-weight:900;color:#7fa4c5;padding:14px 10px 7px}
.employee-side-nav{display:grid;gap:5px}.employee-side-nav>a,.employee-side-nav summary{display:flex;align-items:center;gap:11px;min-height:48px;padding:8px 10px;border-radius:12px;color:#e7f0f8;text-decoration:none;font-size:13px;font-weight:700;cursor:pointer;transition:.16s ease;list-style:none}.employee-side-nav summary::-webkit-details-marker{display:none}.employee-side-nav summary i{margin-left:auto;font-style:normal;color:#8fb0ce;font-size:12px}
.employee-side-nav>a:hover,.employee-side-nav summary:hover{background:rgba(255,255,255,.09);transform:translateX(2px)}
.employee-menu-icon{width:32px;height:32px;min-width:32px;border-radius:10px;display:grid;place-items:center;font-weight:900;font-size:13px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.nav-attendance .employee-menu-icon{background:#dbeafe;color:#2563eb}.nav-leave .employee-menu-icon{background:#dcfce7;color:#16935d}.nav-reimburse .employee-menu-icon{background:#fef3c7;color:#b7791f;font-size:10px}.nav-overtime .employee-menu-icon{background:#ede9fe;color:#7c3aed}.nav-payslip .employee-menu-icon{background:#ffe4e6;color:#e11d48}.nav-rules .employee-menu-icon{background:#cffafe;color:#0e7490}
.employee-side-nav>a.active{background:#fff;color:#173b61;box-shadow:0 8px 22px rgba(0,0,0,.16);transform:none}.employee-side-nav>a.active .employee-menu-icon{box-shadow:0 4px 12px rgba(18,54,92,.12)}
.employee-side-nav details[open]>summary{background:rgba(255,255,255,.08);color:#fff}.employee-side-nav details>div{display:grid;gap:4px;margin:4px 0 4px 43px}.employee-side-nav details>div a{position:relative;padding:8px 10px;border-radius:9px;color:#bcd0e3;text-decoration:none;font-size:11px;font-weight:700}.employee-side-nav details>div a:before{content:'';position:absolute;left:-10px;top:50%;width:4px;height:4px;border-radius:50%;background:#668daf}.employee-side-nav details>div a:hover{color:#fff;background:rgba(255,255,255,.07)}.employee-side-nav details>div a.active{color:#fff;background:rgba(255,255,255,.12)}.employee-side-nav details>div a.active:before{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.12)}
.employee-sidebar-footer{margin-top:auto;padding:14px 6px 0;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:space-between;gap:8px}.employee-sidebar-footer a{display:flex;align-items:center;gap:7px;color:#d5e5f4;text-decoration:none;font-size:12px;font-weight:700}.employee-sidebar-footer a:hover{color:#fff}.employee-sidebar-footer small{color:#769abb;font-size:10px}
.employee-main{min-width:0}.employee-topbar{min-height:142px;padding:28px 34px 24px;background:#fff;border-bottom:1px solid #e7edf4;display:flex;align-items:center;justify-content:space-between;gap:20px}.employee-breadcrumb{font-size:9px;letter-spacing:.13em;color:#7d8da1;font-weight:900;text-transform:uppercase}.employee-topbar h1{font-size:30px;line-height:1.15;margin:7px 0 6px;color:#142b46}.employee-topbar p{margin:0;color:#738096;font-size:13px}.employee-top-user{display:flex;align-items:center;gap:13px}.employee-date{text-align:right;font-weight:800;color:#243b57;font-size:12px}.employee-date small{display:block;margin-top:3px;color:#8491a4;font-size:10px;font-weight:600}.employee-top-avatar{width:42px;height:42px;min-width:42px;background:linear-gradient(135deg,#eaf3ff,#dcecff);border:1px solid #d3e3f5}
.employee-content{max-width:1180px;padding:28px 34px 54px}.employee-content>.card,.employee-content>section.card,.employee-content>details.card{border:1px solid #e3e9f1;box-shadow:0 8px 24px rgba(15,47,84,.055);border-radius:17px;padding:22px 24px;margin:0 0 18px;background:#fff}.employee-content h2{font-size:19px;color:#183553;margin-top:0}.employee-content label{display:block;font-size:12px;font-weight:800;color:#43566f;margin-top:10px}.employee-content input,.employee-content select,.employee-content textarea{border:1px solid #d8e1eb;background:#fbfcfe;border-radius:10px;box-shadow:none;outline:none}.employee-content input:focus,.employee-content select:focus,.employee-content textarea:focus{border-color:#86b8f7;box-shadow:0 0 0 3px rgba(47,128,237,.10);background:#fff}.employee-content button{border-radius:10px;background:#2563eb;box-shadow:0 6px 14px rgba(37,99,235,.16)}.employee-content .green{background:#0b8a66}.employee-content .orange{background:#e58a16}
.employee-content .status{border:1px solid #dbe8f5;background:#eff6ff;color:#27496d}.employee-content .status.ok{background:#ecfdf5;border-color:#c5ebdc;color:#08775a}.employee-content .status.error{background:#fff1f2;border-color:#fecdd3;color:#b42318}.employee-content .card>.status:first-of-type{margin-top:12px}
.employee-content video{border-radius:14px;border:1px solid #dce5ef;background:#102a43;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
.employee-content .pin-card summary{font-size:15px;color:#27496d;display:flex;align-items:center;gap:8px}.employee-content .pin-card summary:before{content:'⚿';width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#fef3c7;color:#a86b00;font-size:14px}
.employee-content .history-item{padding:15px 16px;background:#fbfcfe;border:1px solid #e2e8f0;transition:.14s ease}.employee-content .history-item:hover{background:#fff;box-shadow:0 5px 16px rgba(20,54,90,.06);transform:translateY(-1px)}
.employee-content .balance-card{background:linear-gradient(135deg,#f2fbf7,#fff);border-color:#c9eadf}.employee-content .balance-card strong{color:#0b8a66}
.employee-content .company-rule-card{border-color:#e1e7ef;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 5px 14px rgba(16,45,79,.04)}
.employee-content .company-rule-card:nth-child(3n+1){border-top:4px solid #3b82f6}.employee-content .company-rule-card:nth-child(3n+2){border-top:4px solid #10b981}.employee-content .company-rule-card:nth-child(3n+3){border-top:4px solid #8b5cf6}
.employee-content .download-button{background:linear-gradient(135deg,#2563eb,#1d4ed8);box-shadow:0 6px 14px rgba(37,99,235,.15)}

/* Login employee */
.employee-login-shell{max-width:980px;min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:24px;padding:34px 18px}.employee-login-hero{padding:48px 42px;border-radius:26px;background:linear-gradient(140deg,#0b2f57,#15568f 62%,#2077bb);color:#fff;box-shadow:0 24px 55px rgba(12,47,87,.2);overflow:hidden;position:relative}.employee-login-hero:after{content:'';position:absolute;width:260px;height:260px;border-radius:50%;right:-90px;bottom:-110px;background:rgba(255,255,255,.08)}.employee-login-brand{display:flex;align-items:center;gap:10px;margin-bottom:70px}.employee-login-logo{width:40px;height:40px;border-radius:12px;background:#fff;color:#0b2f57;display:grid;place-items:center;font-weight:900;font-size:20px}.employee-login-brand b{display:block;letter-spacing:.04em}.employee-login-brand small{display:block;color:#c9def0;font-size:10px;margin-top:2px}.employee-login-hero h1{font-size:38px;margin:0 0 12px}.employee-login-hero p{max-width:480px;color:#d8e8f6;line-height:1.7;font-size:14px}.employee-login-hero .version{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.1)}.employee-login-card{padding:30px!important;border:1px solid #e5ebf2;box-shadow:0 16px 40px rgba(12,44,80,.08)!important}.employee-login-card h2{font-size:24px;margin:7px 0 6px}.login-eyebrow{font-size:9px;letter-spacing:.15em;font-weight:900;color:#2f80ed}.employee-login-card label{display:block;font-size:12px;font-weight:800;color:#42546b;margin-top:10px}.employee-login-card button{margin-top:12px;background:linear-gradient(135deg,#2563eb,#1e63c7);box-shadow:0 8px 18px rgba(37,99,235,.2)}.login-admin-link{text-align:center;margin:14px 0 0}.login-admin-link a{font-size:12px;font-weight:700;color:#667085;text-decoration:none}.login-admin-link a:hover{color:#2563eb}

@media(max-width:900px){
 .employee-app{grid-template-columns:1fr}.employee-sidebar{position:relative;height:auto;padding:16px 14px 12px}.employee-brand{padding-bottom:14px}.employee-profile-mini{margin:12px 0 8px}.employee-nav-label{display:none}.employee-side-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.employee-side-nav>a,.employee-side-nav summary{min-height:66px;flex-direction:column;justify-content:center;text-align:center;gap:5px;padding:7px 5px;font-size:10px;background:rgba(255,255,255,.06)}.employee-menu-icon{width:30px;height:30px;min-width:30px}.employee-side-nav details{position:relative}.employee-side-nav details>summary i{display:none}.employee-side-nav details>div{position:absolute;left:0;right:0;top:70px;margin:0;background:#fff;border:1px solid #dfe7ef;border-radius:10px;padding:6px;z-index:80;box-shadow:0 12px 28px rgba(10,37,66,.18)}.employee-side-nav details>div a{color:#536176;font-size:10px;text-align:left}.employee-side-nav details>div a:hover,.employee-side-nav details>div a.active{background:#eef5ff;color:#1f5fb8}.employee-side-nav details>div a:before{display:none}.employee-sidebar-footer{margin-top:12px}.employee-topbar{min-height:auto;padding:22px 18px}.employee-topbar h1{font-size:24px}.employee-content{padding:18px}.employee-top-user{display:none}.employee-login-shell{grid-template-columns:1fr;max-width:560px}.employee-login-hero{padding:32px 28px}.employee-login-brand{margin-bottom:36px}.employee-login-hero h1{font-size:31px}
}
@media(max-width:560px){
 .employee-side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-sidebar{padding:14px 10px 10px}.employee-profile-mini{display:none}.employee-sidebar-footer small{display:none}.employee-content{padding:14px 10px 38px}.employee-content>.card,.employee-content>section.card,.employee-content>details.card{padding:17px;margin-bottom:12px;border-radius:14px}.employee-topbar{padding:18px 14px}.employee-topbar p{font-size:11px}.employee-topbar h1{font-size:22px}.employee-content .grid{grid-template-columns:1fr}.employee-login-shell{padding:14px 10px}.employee-login-hero{padding:26px 22px;border-radius:20px}.employee-login-hero h1{font-size:28px}.employee-login-card{padding:22px!important}
}


/* =========================================================
   SIBAYAR v5.1.3 — Company Rules Rich Text Editor
   ========================================================= */
.rich-editor-wrap{margin-top:7px;border:1px solid #d8e1eb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 0 0 0 rgba(47,128,237,0);transition:.15s ease}
.rich-editor-wrap:focus-within{border-color:#7eb3f7;box-shadow:0 0 0 4px rgba(47,128,237,.09)}
.rich-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 10px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.rich-toolbar select{width:auto!important;min-width:118px;max-width:170px;height:36px!important;min-height:36px!important;margin:0!important;padding:0 30px 0 10px!important;border-radius:8px!important;background-color:#fff!important;font-size:12px!important;color:#334155!important}
.rich-toolbar #rule_size{min-width:76px;max-width:86px}
.rich-toolbar #rule_paragraph{min-width:120px;max-width:140px}
.field-block{display:block;margin-top:14px}.field-label{font-weight:600;color:#24364b;margin-bottom:7px}
.color-control{display:flex!important;align-items:center!important;gap:6px!important;width:auto!important;margin:0!important;padding:0 8px!important;height:36px!important;border:1px solid #dbe3ec!important;border-radius:8px!important;background:#fff!important;cursor:pointer}.color-control span{font-weight:800}.color-control input[type=color]{width:22px!important;height:22px!important;min-height:22px!important;padding:0!important;border:0!important;background:transparent!important;cursor:pointer}
.toolbar-divider{width:1px;height:25px;background:#dce3ec;margin:0 2px}
.rich-toolbar .fmt-btn{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid #dbe3ec!important;border-radius:8px!important;background:#fff!important;color:#334155!important;box-shadow:none!important;font-size:14px!important;display:grid!important;place-items:center!important}
.rich-toolbar .fmt-btn:hover{background:#eef5ff!important;border-color:#b9d3f5!important;color:#1d5fb8!important;transform:none!important}
.rich-toolbar .fmt-btn:active{background:#dcecff!important}
.rich-toolbar .align-btn{font-size:15px!important;line-height:1;letter-spacing:-2px;overflow:hidden}
.rich-toolbar .center-icon{text-align:center;padding-left:4px!important;padding-right:4px!important}
.rich-toolbar .right-icon{text-align:right;padding-left:8px!important}
.rich-toolbar .justify-icon{letter-spacing:-1px}
.rich-editor{min-height:330px;cursor:text;user-select:text;-webkit-user-select:text;padding:18px 20px;outline:none;color:#1f2937;background:#fff;font-family:Arial,sans-serif;font-size:14px;line-height:1.65;overflow:auto}
.rich-editor:empty:before{content:attr(data-placeholder);color:#94a3b8;pointer-events:none}
.rich-editor p{margin:0 0 10px}.rich-editor h1,.rich-editor h2,.rich-editor h3,.rich-editor h4{margin:14px 0 8px}.rich-editor ul,.rich-editor ol{padding-left:26px}
.rule-modal-body{white-space:normal!important;line-height:1.7}
.rule-modal-body p,.rule-modal-body div{margin:0 0 10px}.rule-modal-body h1,.rule-modal-body h2,.rule-modal-body h3,.rule-modal-body h4{margin:16px 0 8px}.rule-modal-body ul,.rule-modal-body ol{padding-left:25px}.rule-modal-body font,.rule-modal-body span{line-height:inherit}
@media(max-width:700px){.rich-toolbar{gap:5px}.rich-toolbar select{min-width:98px}.rich-editor{min-height:260px;padding:15px}.toolbar-divider{display:none}}

.nav-resign .employee-menu-icon{background:#ffedd5;color:#c2410c}
.button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;margin:0;border-radius:10px;background:#eef3f8;color:#17324f;text-decoration:none;font-weight:800;border:1px solid #d7e0ea;white-space:nowrap}.button-secondary:hover{background:#e3ebf3;color:#0b4f8a}


/* ===== V5.1.8 Professional Calendar UI ===== */
.calendar-list-card{padding:0;overflow:hidden}.calendar-list-head{padding:26px 28px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.section-kicker{font-size:10px;letter-spacing:.14em;color:#3b82f6;font-weight:800;margin-bottom:5px}.calendar-list-head h2{margin:0;font-size:28px;color:#20324a}.calendar-list-head .muted{margin:7px 0 0;max-width:720px}.calendar-head-actions{display:flex;gap:10px;flex-wrap:wrap}.calendar-upload-link,.calendar-add-link{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-radius:10px;text-decoration:none;font-weight:800;font-size:13px}.calendar-upload-link{border:1px solid #bcd1f0;color:#2454a6;background:#fff}.calendar-add-link{background:linear-gradient(135deg,#2f6ce5,#315fc8);color:#fff;box-shadow:0 8px 20px rgba(49,95,200,.18)}.calendar-summary{padding:0 28px 16px;display:flex;gap:10px;flex-wrap:wrap}.summary-chip{border:1px solid #dbe5f0;background:#fff;border-radius:12px;padding:10px 14px;color:#55657a;font-weight:700;cursor:pointer}.summary-chip b{margin-left:6px}.summary-chip.active{background:#eef4ff;border-color:#bfd3ff;color:#2454a6}.summary-chip.national{background:#fff7f5;color:#a34b3c;border-color:#f3d9d3}.summary-chip.joint{background:#fffaf0;color:#9a6a16;border-color:#f1e2bd}.summary-chip.approved{background:#f2fbf7;color:#14795a;border-color:#cdeedf}.calendar-toolbar{padding:16px 28px;border-top:1px solid #eef2f6;border-bottom:1px solid #eef2f6;display:grid;grid-template-columns:minmax(220px,1fr) 180px 170px;gap:12px;background:#fbfcfe}.calendar-search{position:relative}.calendar-search span{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:18px;color:#8090a6}.calendar-search input{width:100%;padding-left:40px}.calendar-toolbar select{margin:0}.calendar-table-wrap{overflow:auto}.calendar-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.calendar-table th{background:#f8fafc;color:#6b778c;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:15px 16px;border-bottom:1px solid #e6edf5}.calendar-table td{padding:14px 16px;border-bottom:1px solid #edf1f5;vertical-align:middle}.calendar-table tbody tr{transition:.18s}.calendar-table tbody tr:hover{background:#fbfdff}.check-col{width:36px}.date-cell{display:flex;flex-direction:column;gap:3px;min-width:92px}.date-cell b{font-size:13px;color:#23344d}.date-cell span{font-size:11px;color:#8a96a8}.holiday-name{display:flex;flex-direction:column;gap:4px;min-width:220px}.holiday-name b{font-size:13px;color:#24364f}.holiday-name small{color:#7d8999}.type-pill{display:inline-flex;padding:8px 11px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.type-pill.national{background:#fff1ef;color:#b64a3d}.type-pill.joint{background:#fff7e6;color:#99670b}.document-cell{display:flex;align-items:center;gap:8px;min-width:190px;color:#526277}.doc-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#eef3f9;color:#2d5ea8;font-weight:900}.status-pill2{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;font-size:11px;font-weight:800}.status-pill2 i{width:7px;height:7px;border-radius:50%}.status-pill2.draft{background:#fff7e6;color:#95650d}.status-pill2.draft i{background:#d4a72c}.status-pill2.approved{background:#eafaf4;color:#167d5f}.status-pill2.approved i{background:#1fb980}.approval-cell{display:flex;flex-direction:column;gap:3px}.approval-cell b{font-size:12px;color:#31445e}.approval-cell small{font-size:10px;color:#8995a7}.action-col{min-width:220px}.calendar-actions{display:flex;align-items:center;gap:8px}.calendar-actions form{margin:0}.icon-btn{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;padding:0 12px;font-weight:800;font-size:12px;border:1px solid #d8e1ec;background:#fff;text-decoration:none;cursor:pointer}.icon-btn.edit{color:#2858ad;border-color:#c9d9f5;background:#f7faff}.icon-btn.approve{color:#fff;border-color:#178867;background:#178867}.icon-btn.delete{width:38px;padding:0;color:#cf3f3f;border-color:#f0caca;background:#fff6f6;font-size:16px}.calendar-footer{padding:14px 28px;display:flex;justify-content:space-between;color:#8491a3;font-size:11px;background:#fbfcfe;border-top:1px solid #eef2f6}.calendar-empty{padding:48px 28px;text-align:center;color:#8a96a8}.calendar-list-card .button-secondary{border-radius:10px}.calendar-list-card input[type=checkbox]{width:18px;height:18px;accent-color:#315fc8}@media(max-width:900px){.calendar-list-head{flex-direction:column}.calendar-toolbar{grid-template-columns:1fr}.calendar-head-actions{width:100%}.calendar-upload-link,.calendar-add-link{flex:1;justify-content:center}.calendar-footer{flex-direction:column;gap:5px}.action-col{min-width:190px}}@media(max-width:620px){.calendar-list-head,.calendar-summary,.calendar-toolbar,.calendar-footer{padding-left:16px;padding-right:16px}.calendar-list-head h2{font-size:23px}.calendar-actions{gap:6px}.icon-btn span{display:none}.icon-btn{width:38px;padding:0}.calendar-table th,.calendar-table td{padding:12px 10px}}

/* ===== V5.1.9 Employee Sidebar Scroll + Approved Holiday Calendar ===== */
.employee-sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent;overscroll-behavior:contain}
.employee-sidebar::-webkit-scrollbar{width:7px}.employee-sidebar::-webkit-scrollbar-track{background:transparent}.employee-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:999px}.employee-sidebar::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.38)}
.employee-side-nav{flex:0 0 auto}.employee-sidebar-footer{flex:0 0 auto}
.nav-holiday .employee-menu-icon{background:#e0f2fe;color:#0369a1}
.employee-holiday-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff 0%,#f7fbff 100%);border:1px solid #e3edf7}
.employee-holiday-title{display:flex;align-items:flex-start;gap:16px}.holiday-hero-icon{width:52px;height:52px;min-width:52px;border-radius:16px;display:grid;place-items:center;background:#e8f1ff;color:#2563eb;font-size:25px;font-weight:900;box-shadow:inset 0 0 0 1px #d5e4fb}.employee-holiday-title h2{margin:2px 0 6px}.employee-holiday-title p{margin:0}
.next-holiday-card{min-width:250px;max-width:330px;padding:16px 18px;border-radius:16px;background:#123e69;color:#fff;display:flex;flex-direction:column;gap:4px;box-shadow:0 10px 24px rgba(13,54,91,.16)}.next-holiday-card>span{font-size:9px;letter-spacing:.14em;font-weight:900;color:#9fc4e8}.next-holiday-card>b{font-size:13px;color:#d7e9f8}.next-holiday-card>strong{font-size:16px;line-height:1.3}.next-holiday-card>small{font-size:11px;color:#b8d4ec}.next-holiday-card.empty{background:#f3f6fa;color:#41536a;box-shadow:none}.next-holiday-card.empty>span,.next-holiday-card.empty>small{color:#7e8da1}
.employee-holiday-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 16px}.holiday-stat{padding:17px 18px;border-radius:15px;border:1px solid #e4ebf3;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}.holiday-stat span{font-size:12px;font-weight:800}.holiday-stat b{font-size:24px}.holiday-stat.national{background:#fff7f5;border-color:#f5ddd7;color:#a84337}.holiday-stat.joint{background:#fffaf0;border-color:#f2e1b9;color:#956510}.holiday-stat.company{background:#f1fbf6;border-color:#d2efdf;color:#167353}
.employee-holiday-list-card{padding-bottom:8px}.employee-holiday-list{display:flex;flex-direction:column;border-top:1px solid #edf2f6}.employee-holiday-row{display:grid;grid-template-columns:92px 1fr;gap:18px;padding:16px 4px;border-bottom:1px solid #edf2f6;transition:.18s}.employee-holiday-row:hover{background:#fbfdff}.employee-holiday-row.today{background:#f0f7ff;border-radius:12px;padding-left:12px;padding-right:12px}.holiday-date-box{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:13px;background:#f5f8fc;border:1px solid #e4ebf3;min-height:78px}.holiday-date-box b{font-size:23px;line-height:1;color:#20344d}.holiday-date-box span{font-size:11px;font-weight:800;color:#52657b;margin-top:4px}.holiday-date-box small{font-size:10px;color:#8a98aa;margin-top:2px}.holiday-row-main{display:flex;align-items:center;justify-content:space-between;gap:18px}.holiday-row-main h3{margin:0 0 8px;font-size:15px;color:#20344d}.holiday-row-main p{margin:8px 0 0;color:#748398;font-size:11px}.employee-holiday-type{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900}.employee-holiday-type.national{background:#fff0ed;color:#b44c3f}.employee-holiday-type.joint{background:#fff5dd;color:#94640d}.employee-holiday-type.company{background:#e9f9f1;color:#177558}.holiday-approved{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.holiday-approved span{font-size:11px;font-weight:900;color:#14805f;background:#eaf9f3;padding:7px 9px;border-radius:999px}.holiday-approved small{font-size:9px;color:#8997a8}.holiday-empty-state{text-align:center;padding:42px 18px;color:#75859a}.holiday-empty-state>div{width:50px;height:50px;margin:0 auto 10px;border-radius:14px;display:grid;place-items:center;background:#eef4fb;color:#4373ad;font-size:22px}.holiday-empty-state b{display:block;color:#314760}.holiday-empty-state p{margin:5px 0 0;font-size:12px}
@media(max-width:900px){.employee-sidebar{overflow:visible}.employee-holiday-hero{flex-direction:column;align-items:stretch}.next-holiday-card{max-width:none}.employee-holiday-stats{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:620px){.employee-holiday-stats{grid-template-columns:1fr}.employee-holiday-title{gap:10px}.holiday-hero-icon{width:44px;height:44px;min-width:44px;border-radius:13px}.employee-holiday-row{grid-template-columns:74px 1fr;gap:12px}.holiday-row-main{align-items:flex-start;flex-direction:column}.holiday-approved{align-items:flex-start;text-align:left}.holiday-date-box{min-height:72px}.employee-holiday-hero{padding:17px!important}}

/* v5.1.10 - Professional Company Rules List */
.rule-list-shell{padding:26px!important}.rule-list-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.rule-title-row{display:flex;align-items:center;gap:14px}.rule-title-row h2{margin:0 0 4px}.rule-title-icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#eaf2ff;color:#2563eb;font-size:25px;box-shadow:inset 0 0 0 1px #d8e6ff}.rule-add-jump{border:0!important;cursor:pointer;white-space:nowrap}.rule-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:10px 0 18px}.rule-stat{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;border:1px solid #dce7f4;background:#f7faff}.rule-stat.active{background:#effbf6;border-color:#d4f2e4}.rule-stat.inactive{background:#fff8eb;border-color:#f8e4b8}.rule-stat-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 5px 16px #143b6820;font-size:20px;color:#2563eb}.rule-stat.active .rule-stat-icon{color:#059669}.rule-stat.inactive .rule-stat-icon{color:#d97706}.rule-stat b{display:block;font-size:24px;color:#152a46}.rule-stat small{color:#6b7b92}.rule-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 190px 190px;gap:12px;margin-bottom:16px}.rule-toolbar select,.rule-search{height:48px;border:1px solid #d8e3ef;border-radius:12px;background:#fff}.rule-search{display:flex;align-items:center;gap:10px;padding:0 14px}.rule-search span{font-size:22px;color:#64748b}.rule-search input{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:transparent!important;width:100%;height:44px}.rule-toolbar select{margin:0!important;padding:0 14px!important}.rule-pro-list{display:flex;flex-direction:column;gap:10px}.rule-pro-item{display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 16px;border:1px solid #dbe5f0;border-radius:15px;background:#fff;transition:.18s ease}.rule-pro-item:hover{border-color:#bfd3ef;box-shadow:0 8px 24px #143b6814;transform:translateY(-1px)}.rule-pro-icon{width:70px;height:70px;border-radius:14px;display:grid;place-items:center;font-size:29px;background:#edf4ff;color:#3b82f6}.rule-pro-icon.tone-1{background:#ecfbf5;color:#10b981}.rule-pro-icon.tone-2{background:#f5efff;color:#8b5cf6}.rule-pro-icon.tone-3{background:#fff0f1;color:#ef476f}.rule-pro-main{min-width:0}.rule-pro-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rule-pro-title h3{margin:0;font-size:17px;color:#142a47;line-height:1.35}.rule-pro-main p{margin:5px 0 8px;color:#63738a;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:900px}.rule-status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.rule-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.rule-status.is-active{background:#dcf8e9;color:#078a55}.rule-status.is-inactive{background:#fff1cf;color:#a86600}.rule-meta{display:flex;gap:18px;flex-wrap:wrap;color:#64748b;font-size:12px}.rule-pro-actions{display:flex;align-items:center;gap:10px}.rule-pro-actions>button{margin:0!important;min-width:96px;background:#f8fbff!important;color:#1962d5!important;border:1px solid #cbdcf5!important;padding:11px 14px!important}.rule-more{position:relative}.rule-more summary{list-style:none;cursor:pointer;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:#47607f;font-weight:800}.rule-more summary::-webkit-details-marker{display:none}.rule-more-menu{position:absolute;right:0;top:44px;width:150px;background:#fff;border:1px solid #d8e3ef;border-radius:12px;box-shadow:0 16px 36px #10243f2b;padding:6px;z-index:20}.rule-more-menu form{margin:0}.rule-more-menu button{width:100%;border:0;background:transparent!important;text-align:left;color:#31445f;padding:10px 11px!important;margin:0!important}.rule-more-menu .menu-danger{color:#c93434}.rule-more-menu .menu-warning{color:#b86b00}.rule-more-menu .menu-success{color:#078a55}.rule-filter-empty,.rule-empty{margin-top:10px;min-height:130px}.rule-admin-view-modal{position:fixed;inset:0;background:#071a2dcc;display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}.rule-admin-view-modal.open{display:flex}.rule-admin-view-panel{width:min(900px,96vw);max-height:90vh;background:#fff;border-radius:20px;box-shadow:0 24px 70px #0005;overflow:hidden;display:flex;flex-direction:column}.rule-admin-view-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #e5edf5}.rule-admin-view-head span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#718198}.rule-admin-view-head h2{margin:4px 0 0}.rule-admin-view-close{width:42px!important;min-height:42px!important;border-radius:50%!important;padding:0!important;margin:0!important;background:#edf3f8!important;color:#233954!important;font-size:26px!important}.rule-admin-view-body{padding:24px;overflow:auto;line-height:1.75;color:#263a54}.rule-admin-view-body p:first-child{margin-top:0}
@media(max-width:1050px){.rule-toolbar{grid-template-columns:1fr 160px}.rule-toolbar select:last-child{grid-column:2}.rule-pro-item{grid-template-columns:70px minmax(0,1fr)}.rule-pro-actions{grid-column:2}.rule-pro-icon{width:60px;height:60px}.rule-pro-main p{white-space:normal}}@media(max-width:720px){.rule-list-header{align-items:flex-start;flex-direction:column}.rule-stats{grid-template-columns:1fr}.rule-toolbar{grid-template-columns:1fr}.rule-toolbar select:last-child{grid-column:auto}.rule-pro-item{grid-template-columns:1fr}.rule-pro-icon{display:none}.rule-pro-actions{grid-column:auto;justify-content:flex-start}.rule-pro-actions>button{flex:1}.rule-meta{gap:8px 14px}}

/* v5.1.11 professional company rules */
.rules-admin-shell{padding:26px!important}.rules-admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.rules-head-copy{display:flex;align-items:center;gap:14px}.rules-head-copy h2{margin:0 0 4px;color:#132743}.rules-head-copy p{margin:0;color:#73839a}.rules-head-icon,.rule-detail-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#eaf2ff;color:#2563eb;font-size:24px;border:1px solid #d7e6ff}.rules-add-btn{width:auto!important;margin:0!important;padding:12px 18px!important;background:#2563eb!important}.rules-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.rules-summary-card{display:flex;align-items:center;gap:14px;border:1px solid #dbe7f6;border-radius:16px;padding:15px 18px;background:#f7faff}.rules-summary-card>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 5px 14px #16395f18}.rules-summary-card b{display:block;font-size:24px;color:#132743}.rules-summary-card small{color:#708097}.rules-summary-card.green{background:#effbf6;border-color:#d7f1e5}.rules-summary-card.green>span{color:#06945b}.rules-summary-card.amber{background:#fff8eb;border-color:#f7e5bc}.rules-summary-card.amber>span{color:#d78a00}.rules-filterbar{display:grid;grid-template-columns:minmax(300px,1fr) 180px 180px;gap:12px;margin-bottom:16px}.rules-filterbar select,.rules-search{height:46px;border:1px solid #d7e2ef;border-radius:11px;background:#fff}.rules-filterbar select{margin:0!important;padding:0 13px!important}.rules-search{display:flex;align-items:center;gap:9px;padding:0 13px}.rules-search input{border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:0!important;width:100%}.rules-table-wrap{overflow:auto;border:1px solid #dbe5f0;border-radius:14px;background:#fff}.rules-table{width:100%;border-collapse:separate;border-spacing:0;min-width:960px}.rules-table th{background:#f6f9fd;color:#5d6e86;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:13px 14px;text-align:left;border-bottom:1px solid #dbe5f0}.rules-table td{padding:14px;border-bottom:1px solid #e7edf4;color:#354a66;vertical-align:middle}.rules-table tr:last-child td{border-bottom:0}.rules-table tbody tr:hover{background:#fbfdff}.rules-no{width:42px;color:#7a889b!important}.rules-title-cell{min-width:310px}.rules-title-cell b{display:block;color:#142a47;font-size:14px;margin-bottom:4px}.rules-title-cell small{display:block;color:#748398;line-height:1.4;max-width:520px}.rules-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.rules-action{width:auto!important;min-width:80px!important;margin:0!important;padding:9px 12px!important;border-radius:9px!important;background:#f8fbff!important;color:#1d63d8!important;border:1px solid #c9daf5!important}.rule-more{position:relative}.rule-more summary{list-style:none;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;color:#45617e}.rule-more summary::-webkit-details-marker{display:none}.rule-more-menu{position:absolute;right:0;top:38px;z-index:30;width:150px;background:#fff;border:1px solid #d8e3ef;border-radius:11px;padding:6px;box-shadow:0 16px 36px #10243f2b}.rule-more-menu form{margin:0}.rule-more-menu button{width:100%;margin:0!important;border:0!important;background:transparent!important;text-align:left;padding:9px 10px!important}.menu-danger{color:#c93434!important}.menu-warning{color:#b86b00!important}.menu-success{color:#078a55!important}
.rule-detail-modal{position:fixed;inset:0;background:#071a2dcc;display:none;align-items:center;justify-content:center;padding:20px;z-index:10000}.rule-detail-modal.open{display:flex}.rule-detail-panel{width:min(1040px,96vw);height:min(830px,92vh);background:#fff;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 26px 80px #0005}.rule-detail-head,.employee-rule-modal-head{display:flex;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid #e5edf5}.rule-detail-title{flex:1;min-width:0}.rule-detail-title h2,.employee-rule-modal-head h2{margin:0 0 7px;font-size:20px;color:#162c48}.rule-detail-meta,.employee-rule-modal-meta{display:flex;gap:12px;align-items:center;color:#708097;font-size:12px}.rule-admin-view-close,.rule-modal-close{margin-left:auto!important;width:42px!important;min-height:42px!important;border-radius:11px!important;padding:0!important;background:#edf4ff!important;color:#1d4f99!important;font-size:25px!important}.rule-detail-tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid #e6edf4}.rule-detail-tabs button{width:auto!important;margin:0!important;padding:14px 4px!important;border-radius:0!important;background:transparent!important;color:#6d7e94!important;border-bottom:2px solid transparent!important}.rule-detail-tabs button.active{color:#1260df!important;border-color:#1260df!important}.rule-detail-scroll,.employee-rule-reader-wrap{padding:22px 26px;overflow:auto;flex:1;background:#f7faff}.rule-reader{max-width:850px;margin:0 auto;background:#fff;border:1px solid #e3ebf4;border-radius:14px;padding:34px 42px;color:#20354e;font-family:Inter,Arial,sans-serif!important;font-size:15px!important;line-height:1.8!important;box-shadow:0 5px 18px #17395f0d}.rule-reader *{font-family:inherit!important;letter-spacing:normal!important;word-spacing:normal!important;line-height:1.8!important}.rule-reader p,.rule-reader div{margin:0 0 12px!important}.rule-reader h1{font-size:27px!important;line-height:1.25!important;margin:0 0 22px!important;text-align:center}.rule-reader h2{font-size:22px!important;line-height:1.35!important;margin:24px 0 12px!important}.rule-reader h3{font-size:18px!important;line-height:1.4!important;margin:20px 0 10px!important}.rule-reader ol,.rule-reader ul{padding-left:28px!important;margin:8px 0 16px!important}.rule-reader li{margin:6px 0!important}.rule-reader font,.rule-reader span{font-size:inherit!important}.rule-detail-foot{display:flex;justify-content:flex-end;padding:14px 24px;border-top:1px solid #e5edf5;background:#fff}.rule-detail-foot button{width:auto!important;margin:0!important}
.employee-rules-shell{background:#fff;border:1px solid #e1e9f2;border-radius:18px;padding:24px;box-shadow:0 8px 24px #15375e0d}.employee-rules-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.employee-rules-head h2{margin:4px 0 6px;color:#132743}.employee-rules-head p{margin:0;color:#748398}.employee-rule-list{display:flex;flex-direction:column;gap:10px}.employee-rule-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:16px;padding:15px 16px;border:1px solid #dce6f1;border-radius:14px;background:#fff;transition:.18s ease}.employee-rule-row:hover{border-color:#bcd2ef;box-shadow:0 8px 22px #17395f12;transform:translateY(-1px)}.employee-rule-index{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#edf4ff;color:#2563eb;font-weight:800}.employee-rule-copy h3{margin:0 0 5px;font-size:16px;color:#142a47}.employee-rule-copy p{margin:0 0 7px;color:#718197;line-height:1.45}.employee-rule-meta{display:flex;gap:14px;flex-wrap:wrap;color:#8390a3;font-size:11px}.employee-rule-open{width:auto!important;margin:0!important;padding:10px 14px!important;background:#f8fbff!important;color:#1b61d5!important;border:1px solid #c9dbf4!important;white-space:nowrap}.employee-rule-modal .rule-modal-panel{width:min(1040px,96vw);height:min(830px,92vh);max-height:none;border-radius:20px}.employee-rule-modal-head>div:nth-child(2){flex:1;min-width:0}.employee-rule-modal-head>div:nth-child(2)>span{font-size:11px;font-weight:800;letter-spacing:.09em;color:#8090a5}.employee-reader{min-height:420px}
@media(max-width:900px){.rules-filterbar{grid-template-columns:1fr}.rules-summary{grid-template-columns:1fr}.employee-rule-row{grid-template-columns:44px 1fr}.employee-rule-open{grid-column:2}.rule-reader{padding:24px}}@media(max-width:640px){.rules-admin-head,.employee-rules-head{flex-direction:column}.rule-detail-modal,.rule-modal{padding:8px}.rule-detail-panel,.employee-rule-modal .rule-modal-panel{width:100%;height:96vh}.rule-reader{padding:20px 17px}.employee-rule-row{grid-template-columns:1fr}.employee-rule-index{display:none}.employee-rule-open{grid-column:auto;width:100%!important}}


/* =========================================================
   SIBAYAR v5.1.12 - Admin Company Rules Table Layout Fix
   Isolate the professional table from legacy .rule-pro-item card styles.
   ========================================================= */
.rules-admin-shell .rules-table tbody tr.rules-table-row{
  display:table-row !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  transform:none !important;
}
.rules-admin-shell .rules-table tbody tr.rules-table-row:hover{
  background:#f8fbff !important;
  box-shadow:none !important;
  transform:none !important;
}
.rules-admin-shell .rules-table tbody tr.rules-table-row > td{
  display:table-cell !important;
  position:static;
  min-width:0;
  padding:15px 14px !important;
  vertical-align:middle !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.rules-admin-shell .rules-table th:nth-child(1),
.rules-admin-shell .rules-table td:nth-child(1){width:54px;text-align:center}
.rules-admin-shell .rules-table th:nth-child(2),
.rules-admin-shell .rules-table td:nth-child(2){width:auto}
.rules-admin-shell .rules-table th:nth-child(3),
.rules-admin-shell .rules-table td:nth-child(3){width:120px}
.rules-admin-shell .rules-table th:nth-child(4),
.rules-admin-shell .rules-table td:nth-child(4){width:80px;text-align:center}
.rules-admin-shell .rules-table th:nth-child(5),
.rules-admin-shell .rules-table td:nth-child(5){width:125px;white-space:nowrap}
.rules-admin-shell .rules-table th:nth-child(6),
.rules-admin-shell .rules-table td:nth-child(6){width:115px;white-space:nowrap}
.rules-admin-shell .rules-table th:nth-child(7),
.rules-admin-shell .rules-table td:nth-child(7){width:238px}
.rules-admin-shell .rules-title-cell{min-width:340px;max-width:680px}
.rules-admin-shell .rules-title-cell b{font-size:14px;line-height:1.35;margin:0 0 5px}
.rules-admin-shell .rules-title-cell small{font-size:12px;line-height:1.45;white-space:normal}
.rules-admin-shell .rules-actions{justify-content:flex-start;gap:8px}
.rules-admin-shell .rules-action{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700}
.rules-admin-shell .rule-more summary{border-radius:9px}
.rules-admin-shell .rule-more summary:hover{background:#edf4ff;color:#1d63d8}
@media(max-width:1200px){
  .rules-admin-shell .rules-table{min-width:1020px}
  .rules-admin-shell .rules-title-cell{min-width:300px}
}

/* =========================================================
   SIBAYAR v5.1.24 — Professional Admin Login
   ========================================================= */
body:has(.admin-login-wrap){background:linear-gradient(145deg,#f5f8fc 0%,#edf4fb 100%)}
body:has(.admin-login-wrap) .admin-shell{max-width:none;min-height:100vh;padding:32px;display:grid;place-items:center}
.admin-login-wrap{width:min(100%,520px)}
.admin-login-card{overflow:hidden;background:#fff;border:1px solid #e3eaf2;border-radius:22px;box-shadow:0 24px 65px rgba(15,47,87,.11)}
.admin-login-brand{display:flex;align-items:center;gap:12px;padding:26px 30px 20px;border-bottom:1px solid #edf1f5}
.admin-login-mark{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#0b2f57;color:#fff;font-size:21px;font-weight:900;box-shadow:0 8px 20px rgba(11,47,87,.18)}
.admin-login-brand strong{display:block;color:#122b49;font-size:18px;letter-spacing:.035em}
.admin-login-brand span{display:block;margin-top:2px;color:#7b8798;font-size:11px}
.admin-login-heading{padding:28px 30px 8px}
.admin-login-heading h1{margin:0;color:#142b47;font-size:27px;line-height:1.2;letter-spacing:-.025em}
.admin-login-heading p{margin:9px 0 0;color:#77859a;font-size:14px;line-height:1.55}
.admin-login-form{padding:18px 30px 28px}
.admin-login-form form{margin:0}
.admin-login-form input{height:52px;margin:0 0 12px;padding:0 15px;border:1px solid #d8e1eb;border-radius:11px;background:#fff;color:#1c2f47;font-size:14px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.admin-login-form input:focus{border-color:#79a8e8;box-shadow:0 0 0 4px rgba(37,99,235,.08)}
.admin-login-form .cf-turnstile{display:flex;justify-content:center;margin:18px 0!important}
.admin-login-form button{min-height:50px;margin:5px 0 0;border-radius:11px;background:#1768d5;font-size:14px;box-shadow:0 8px 18px rgba(23,104,213,.16)}
.admin-login-form button:hover:not(:disabled){background:#125bbd}
.admin-login-form .status{margin:14px 0;font-size:13px;line-height:1.5}
.admin-login-form h2{margin:0 0 8px;color:#142b47;font-size:22px}
.admin-login-form label{display:block;margin:10px 0 4px;color:#40516a;font-size:12px;font-weight:700}
.admin-login-form details{margin:12px 0;color:#66758a;font-size:12px}
.admin-login-form a{color:#1768d5;font-size:13px;font-weight:700;text-decoration:none}
.admin-login-footer{display:flex;align-items:center;justify-content:center;gap:8px;padding:15px 24px;border-top:1px solid #edf1f5;background:#fafcfe;color:#8290a2;font-size:11px}
.security-dot{width:7px;height:7px;border-radius:50%;background:#1e9d73;box-shadow:0 0 0 3px rgba(30,157,115,.10)}
@media(max-width:600px){body:has(.admin-login-wrap) .admin-shell{padding:16px}.admin-login-card{border-radius:18px}.admin-login-brand{padding:22px 22px 17px}.admin-login-heading{padding:24px 22px 6px}.admin-login-heading h1{font-size:24px}.admin-login-form{padding:16px 22px 24px}}

/* v5.2.09 employee UI polish */
.employee-card{border:1px solid #e5ebf3;box-shadow:0 12px 34px rgba(15,39,71,.06)}
.employee-table thead th{background:#f8fafc;color:#64748b;font-size:11px;letter-spacing:.07em;text-transform:uppercase;padding:14px 18px}
.employee-table tbody td{padding:16px 18px;vertical-align:middle}.employee-table tbody tr{transition:background .15s ease}.employee-table tbody tr:hover{background:#fbfdff}
.employee-avatar{width:42px;height:42px}.action-dropdown>summary{width:40px;height:38px;border-radius:10px}.action-menu{width:190px;padding:8px;border-radius:12px}.menu-item{min-height:40px;padding:10px 12px;font-size:13px;font-weight:700;text-decoration:none;display:flex;align-items:center}
.employee-detail-hero{display:flex;align-items:center;gap:16px;margin-top:16px}.employee-detail-avatar{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#eaf2ff;color:#1d4ed8;font-size:22px;font-weight:900}.employee-detail-hero h2{margin:0 0 5px;font-size:28px}.employee-detail-hero p{margin:0}.employee-detail-section{border:1px solid #e5ebf3;box-shadow:0 10px 28px rgba(15,39,71,.05)}.employee-detail-section>h2{margin-bottom:16px}.employee-detail-section .status{background:#f8fafc;border:1px solid #e7edf5;border-radius:12px;padding:14px 16px;line-height:1.65}.employee-detail-section .status b{color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
@media(max-width:760px){.employee-filter{grid-template-columns:1fr}.employee-table thead th,.employee-table tbody td{padding:12px}.employee-detail-hero{align-items:flex-start}.employee-detail-hero h2{font-size:22px}}
/* v5.2.11 editable employee detail */
.employee-edit-form{display:grid;gap:18px}.edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.edit-grid label{font-weight:700;color:#23334d;display:grid;gap:8px}.edit-grid input,.edit-grid select{width:100%;box-sizing:border-box}.edit-grid .span-2{grid-column:1/-1}.toggle-label span{min-height:52px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #d9e2ef;border-radius:12px;background:#fff}.toggle-label input{width:auto}.source-note{margin-top:16px;padding:14px 16px;border-radius:12px;background:#f4f8fd;color:#607089}.master-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.master-choice{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid #dbe5f1;border-radius:14px;background:#fbfdff;cursor:pointer}.master-choice:hover{border-color:#9dbcf1;background:#f5f9ff}.master-choice input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}.master-choice span{display:grid;gap:4px}.master-choice small{color:#71809a;font-weight:500}.sticky-save{position:sticky;bottom:12px;z-index:20;display:flex;justify-content:flex-end;gap:12px;padding:14px 16px;background:rgba(255,255,255,.96);border:1px solid #dce5f0;border-radius:16px;box-shadow:0 10px 30px rgba(24,50,83,.12)}.sticky-save button,.sticky-save a{width:auto;min-width:170px;margin:0}@media(max-width:800px){.edit-grid,.master-choice-grid{grid-template-columns:1fr}.edit-grid .span-2{grid-column:auto}.sticky-save{flex-direction:column}.sticky-save button,.sticky-save a{width:100%}}

/* v5.2.12 employee detail professional web UI */
.employee-edit-form{max-width:1180px;margin:0 auto;gap:20px}.employee-profile-header{max-width:1180px;margin-left:auto;margin-right:auto;padding:26px 30px;border:1px solid #e4eaf2;box-shadow:0 12px 34px rgba(20,45,80,.055)}
.employee-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;color:#526985;text-decoration:none;font-size:13px;font-weight:800}.employee-back:hover{color:#1768d5}.employee-profile-header .summary-heading{align-items:center}.employee-profile-header .badge{border-radius:999px;padding:9px 13px;font-size:11px;letter-spacing:.04em}.employee-detail-hero{margin-top:0}.employee-detail-avatar{width:64px;height:64px;border-radius:18px;background:linear-gradient(145deg,#eaf3ff,#f5f9ff);border:1px solid #dce9fb;color:#1768d5}.employee-detail-hero h2{font-size:24px;letter-spacing:-.02em}.employee-detail-hero .muted{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.employee-detail-section{padding:28px 30px!important;border-radius:20px!important;background:#fff}.section-heading{display:flex;align-items:flex-start;gap:14px;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #edf1f6}.section-heading .section-icon{width:36px;height:36px;flex:0 0 36px;border-radius:10px;display:grid;place-items:center;background:#edf5ff;color:#1768d5;font-size:11px;font-weight:900}.section-heading h2{margin:0 0 5px!important;font-size:20px!important;letter-spacing:-.01em}.section-heading p{margin:0;color:#718096;font-size:13px;line-height:1.5}
.edit-grid{gap:18px 20px}.edit-grid label{font-size:12px;font-weight:800;color:#3c4e66}.edit-grid input,.edit-grid select{height:48px;margin:0;padding:0 14px;border:1px solid #d8e2ee;border-radius:11px;background:#fff;color:#172b46;font-size:14px;box-shadow:none;transition:.15s ease}.edit-grid input:focus,.edit-grid select:focus{border-color:#7da9e8;box-shadow:0 0 0 4px rgba(37,99,235,.07);outline:0}.toggle-label span{height:48px;min-height:48px;border-radius:11px;background:#f8fbff}.toggle-label input{width:18px!important;height:18px!important;accent-color:#1768d5}.money-input{height:48px;display:flex;align-items:center;border:1px solid #d8e2ee;border-radius:11px;overflow:hidden;background:#fff}.money-input:focus-within{border-color:#7da9e8;box-shadow:0 0 0 4px rgba(37,99,235,.07)}.money-input span{height:100%;display:flex;align-items:center;padding:0 14px;background:#f6f8fb;border-right:1px solid #e2e8f0;color:#66758a;font-weight:800}.money-input input{border:0!important;box-shadow:none!important;border-radius:0!important;height:46px!important}.source-note{display:flex;align-items:center;gap:6px;margin-top:20px;padding:12px 14px;border:1px solid #e3ebf5;background:#f8fbff;border-radius:10px;font-size:12px}
.master-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.master-choice{position:relative;min-height:72px;align-items:center;padding:14px 16px;border-radius:12px;background:#fff;border:1px solid #dfe7f1;transition:.15s ease}.master-choice:hover{transform:translateY(-1px);border-color:#9cbceb;box-shadow:0 6px 18px rgba(23,104,213,.07);background:#fbfdff}.master-choice:has(input:checked){border-color:#7bb0ef;background:#f3f8ff;box-shadow:inset 3px 0 0 #1768d5}.master-choice input{width:18px!important;height:18px!important;margin:0;accent-color:#1768d5}.master-choice span{gap:3px}.master-choice b{font-size:13px;color:#1d304a}.master-choice small{font-size:11px;color:#738198}.master-choice:has(input:checked) b{color:#145ebd}
.sticky-save{bottom:16px;padding:13px 15px 13px 18px;align-items:center;justify-content:space-between;border-radius:14px;backdrop-filter:blur(12px);background:rgba(255,255,255,.94)}.save-hint{display:grid;gap:2px}.save-hint b{font-size:12px;color:#23334d}.save-hint small{font-size:11px;color:#7b899c}.save-actions{display:flex;gap:10px}.sticky-save button,.sticky-save a{min-width:145px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-size:12px;font-weight:800}.sticky-save .green{background:#1768d5}.sticky-save .green:hover{background:#125bbd}
@media(max-width:800px){.employee-profile-header,.employee-detail-section{padding:20px!important}.employee-profile-header .summary-heading{align-items:flex-start}.employee-detail-avatar{width:52px;height:52px}.employee-detail-hero h2{font-size:20px}.master-choice-grid,.edit-grid{grid-template-columns:1fr}.sticky-save{position:static;align-items:stretch;flex-direction:column}.save-actions{display:grid;grid-template-columns:1fr 1fr}.sticky-save button,.sticky-save a{width:100%;min-width:0}}


/* v5.2.13 employee detail - forced professional layout + cache refresh */
body .employee-profile-header{padding:24px 28px!important;border-radius:18px!important}
body .employee-detail-hero{display:flex!important;align-items:center!important;gap:16px!important}
body .employee-detail-avatar{display:grid!important;place-items:center!important;width:58px!important;height:58px!important;border-radius:50%!important;background:#eef5ff!important;border:1px solid #d8e7fb!important;color:#1768d5!important;font-weight:900!important}
body .employee-edit-form{display:grid!important;gap:18px!important;max-width:1180px!important;margin:0 auto!important}
body .employee-detail-section{padding:0!important;overflow:hidden!important;border:1px solid #e2e8f0!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(15,39,71,.05)!important}
body .employee-detail-section .section-heading{display:flex!important;align-items:center!important;gap:14px!important;margin:0!important;padding:20px 24px!important;border-bottom:1px solid #e8eef5!important;background:#f8fafc!important}
body .employee-detail-section .section-icon{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important;background:#e8f1ff!important;color:#1768d5!important;font-size:11px!important;font-weight:900!important;letter-spacing:.04em!important}
body .employee-detail-section .section-heading h2{margin:0 0 3px!important;font-size:19px!important;line-height:1.25!important}
body .employee-detail-section .section-heading p{margin:0!important;font-size:12px!important;color:#748299!important}
body .employee-detail-section>.edit-grid,body .employee-detail-section>.master-choice-grid{padding:22px 24px!important}
body .edit-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 18px!important}
body .edit-grid label{display:grid!important;gap:7px!important;margin:0!important;font-size:12px!important;font-weight:800!important;color:#42526a!important}
body .edit-grid input,body .edit-grid select{height:46px!important;margin:0!important;padding:0 13px!important;border:1px solid #d8e2ee!important;border-radius:10px!important;background:#fff!important;font-size:14px!important}
body .toggle-label span{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;height:46px!important;min-height:46px!important;padding:0 13px!important;border:1px solid #d8e2ee!important;border-radius:10px!important;background:#f8fafc!important}
body .toggle-label input{appearance:auto!important;width:18px!important;height:18px!important;margin:0!important;accent-color:#1768d5!important}
body .money-input{display:flex!important;align-items:center!important;height:46px!important;border:1px solid #d8e2ee!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
body .money-input>span{display:flex!important;align-items:center!important;height:100%!important;padding:0 13px!important;background:#f4f7fb!important;border-right:1px solid #dfe7f0!important;color:#64748b!important;font-weight:800!important}
body .money-input input{height:44px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body .source-note{margin:0 24px 22px!important;padding:11px 13px!important;border:1px solid #e3ebf5!important;border-radius:9px!important;background:#f8fbff!important;font-size:12px!important;color:#617087!important}
body .master-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body .master-choice{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-height:66px!important;margin:0!important;padding:13px 15px!important;border:1px solid #dfe7f1!important;border-radius:11px!important;background:#fff!important;cursor:pointer!important;box-sizing:border-box!important}
body .master-choice:hover{border-color:#9cbceb!important;background:#fbfdff!important;box-shadow:0 5px 16px rgba(23,104,213,.07)!important}
body .master-choice:has(input:checked){border-color:#74a9eb!important;background:#f2f7ff!important;box-shadow:inset 3px 0 0 #1768d5!important}
body .master-choice input{appearance:auto!important;display:block!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;accent-color:#1768d5!important}
body .master-choice>span{display:grid!important;gap:3px!important;min-width:0!important}
body .master-choice b{font-size:13px!important;color:#20324b!important;line-height:1.25!important}
body .master-choice small{font-size:11px!important;color:#748299!important;line-height:1.25!important}
body .sticky-save{position:sticky!important;bottom:12px!important;z-index:30!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:12px 14px 12px 17px!important;border:1px solid #dbe4ef!important;border-radius:14px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 10px 28px rgba(15,39,71,.12)!important;backdrop-filter:blur(10px)!important}
body .save-actions{display:flex!important;gap:9px!important}
body .sticky-save button,body .sticky-save a{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:140px!important;height:42px!important;margin:0!important;border-radius:9px!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important}
@media(max-width:800px){body .edit-grid,body .master-choice-grid{grid-template-columns:1fr!important}body .employee-detail-section>.edit-grid,body .employee-detail-section>.master-choice-grid{padding:18px!important}body .employee-detail-section .section-heading{padding:18px!important}body .source-note{margin:0 18px 18px!important}body .sticky-save{position:static!important;align-items:stretch!important;flex-direction:column!important}body .save-actions{display:grid!important;grid-template-columns:1fr 1fr!important}body .sticky-save button,body .sticky-save a{width:100%!important;min-width:0!important}}
/* v5.2.14 Payroll master professional UI */
.payroll-tabs{display:flex;gap:8px;position:sticky;top:8px;z-index:5;padding:10px;margin:0 0 18px;background:rgba(244,248,253,.94);backdrop-filter:blur(10px);border:1px solid #dbe5f0;border-radius:16px}.payroll-tabs a{padding:10px 14px;border-radius:10px;text-decoration:none;color:#43556f;font-weight:700}.payroll-tabs a:hover{background:#eaf2ff;color:#1764e8}.payroll-master-card{padding:28px!important}.master-title{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.master-title h2{margin:4px 0 6px}.section-kicker{font-size:12px;font-weight:800;letter-spacing:.12em;color:#2c6bed}.master-table{border:1px solid #e0e7f0;border-radius:14px;overflow:hidden}.master-row{display:grid;grid-template-columns:1fr .7fr .8fr 1.1fr .8fr .65fr;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #e8edf4}.master-row:last-child{border-bottom:0}.master-head{background:#f7f9fc;font-size:12px;font-weight:800;color:#66758c;text-transform:uppercase}.master-row input,.master-row select{margin:0!important;min-width:0}.allowance-grid{grid-template-columns:2fr 1fr 1fr .8fr .65fr}.money-input{display:flex;align-items:center;border:1px solid #d5dfeb;border-radius:10px;background:#fff;padding-left:12px}.money-input input{border:0!important;box-shadow:none!important}.switch-label{display:flex;align-items:center;gap:8px;font-weight:700}.switch-label input{width:18px!important;height:18px!important}.small-save{margin:0!important;padding:10px 12px!important}.form-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.form-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid-4 label,.form-grid-2 label{font-weight:700}.schedule-box,.cycle-box,.setting-panel{margin-top:20px;padding:20px;border:1px solid #e0e7f0;border-radius:14px;background:#fbfcfe}.schedule-box h3,.cycle-box h3,.setting-panel h3{margin:0 0 16px}.schedule-row{display:grid;grid-template-columns:1.1fr .8fr .8fr 1fr;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f6}.day-check{display:flex;gap:10px;align-items:center}.day-check input{width:20px!important;height:20px!important;margin:0!important}.day-status{color:#66758c}.cycle-box{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cycle-box h3{grid-column:1/-1}.active-pattern{margin:18px 0}.pattern-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:20px}.pattern-list a{display:grid;grid-template-columns:.6fr 1.3fr 1.5fr auto;gap:10px;align-items:center;padding:14px;border:1px solid #e0e7f0;border-radius:12px;text-decoration:none;color:#20314a}.pattern-list a:hover{border-color:#8bb4ff;background:#f7faff}.pattern-list em{font-style:normal;color:#1764e8;font-weight:700}.payroll-setting-form{display:grid;gap:16px}.weekday-pills{display:flex;gap:10px;flex-wrap:wrap}.weekday-pills label input{display:none}.weekday-pills label span{display:block;padding:10px 16px;border:1px solid #d7e1ec;border-radius:10px;background:#fff;font-weight:700;cursor:pointer}.weekday-pills label input:checked+span{background:#eaf2ff;border-color:#76a7ff;color:#155ed1}.hint{color:#6d7d94;margin:10px 0 0}.payroll-save{max-width:320px;justify-self:end}
@media(max-width:900px){.payroll-tabs{overflow:auto}.master-row,.allowance-grid{grid-template-columns:1fr 1fr}.master-head{display:none}.form-grid-4,.cycle-box{grid-template-columns:1fr 1fr}.pattern-list{grid-template-columns:1fr}.schedule-row{grid-template-columns:1fr 1fr}.payroll-save{max-width:none;width:100%}}
/* v5.2.15 Salary Calculation */
.salary-hero{background:linear-gradient(135deg,#123b63,#1f5d95);color:#fff;border-radius:22px;padding:26px 30px;margin-bottom:18px;display:flex;justify-content:space-between;gap:24px;align-items:end;box-shadow:0 18px 45px rgba(20,57,91,.16)}.salary-hero h2{font-size:30px;margin:5px 0 7px}.salary-hero p{margin:0;color:#dceafa;max-width:760px}.salary-period{display:flex;gap:10px;align-items:end;background:rgba(255,255,255,.1);padding:12px;border-radius:14px}.salary-period label{font-size:12px;font-weight:800;color:#dceafa}.salary-period select,.salary-period input{display:block;margin-top:5px;min-width:110px;background:#fff}.salary-period button{height:44px;background:#fff;color:#174f82;font-weight:800}.salary-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.salary-summary>div{background:#fff;border:1px solid #e2eaf3;border-radius:17px;padding:18px 20px;box-shadow:0 10px 28px rgba(27,61,94,.06)}.salary-summary span,.salary-summary small{display:block;color:#718198}.salary-summary strong{display:block;font-size:21px;margin:7px 0;color:#172b45}.salary-summary .thp{background:#ecfdf5;border-color:#b7ead3}.salary-summary .thp strong{color:#08785a}.salary-card{padding:24px!important}.salary-table{min-width:1420px}.salary-table th{white-space:nowrap}.salary-table td{vertical-align:middle;white-space:nowrap}.salary-table td small{display:block;color:#7a899e;margin-top:4px}.thp-cell b{color:#08785a;font-size:15px}.pph-inline{display:flex;align-items:center;border:1px solid #d7e1ed;border-radius:10px;overflow:hidden;background:#fff;width:150px}.pph-inline span{padding-left:8px;color:#697b91}.pph-inline input{border:0!important;box-shadow:none!important;padding:8px 5px!important;min-width:0;width:90px}.pph-inline button{border-radius:0!important;padding:8px 10px!important;background:#1f6feb}.salary-detail{position:relative}.salary-detail summary{cursor:pointer;color:#1f6feb;font-weight:800;list-style:none}.salary-detail-pop{position:absolute;right:0;z-index:20;width:340px;background:#fff;border:1px solid #dce5ef;border-radius:16px;padding:18px;box-shadow:0 20px 50px rgba(21,50,80,.2)}.salary-detail-pop h4{margin:0 0 12px;font-size:17px}.salary-detail-pop div{display:flex;justify-content:space-between;gap:20px;padding:6px 0}.salary-detail-pop hr{border:0;border-top:1px solid #e7edf4}.salary-detail-pop .detail-total{margin-top:8px;padding-top:12px;border-top:2px solid #d9e4ef;color:#08785a;font-size:16px}.salary-formula{margin-top:18px;background:#f6f9fc;border:1px solid #e0e8f1;border-radius:14px;padding:15px 18px}.salary-formula b,.salary-formula span,.salary-formula small{display:block}.salary-formula span{margin:4px 0;color:#334b66}.salary-formula small{color:#73849a}@media(max-width:1000px){.salary-hero{display:block}.salary-period{margin-top:18px;flex-wrap:wrap}.salary-summary{grid-template-columns:1fr 1fr}}@media(max-width:640px){.salary-summary{grid-template-columns:1fr}.salary-period{display:grid;grid-template-columns:1fr 1fr}.salary-period button{grid-column:1/-1}}

/* v5.2.16 attendance period -> payroll */
.attendance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.attendance-kpis>div{background:#fff;border:1px solid #dbe5f1;border-radius:16px;padding:18px 20px;box-shadow:0 8px 24px rgba(31,54,88,.05)}.attendance-kpis span{display:block;color:#6b7a90;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.attendance-kpis b{display:block;margin-top:7px;font-size:18px;color:#14233b}.attendance-kpis .ok{border-left:4px solid #16a36a}.attendance-kpis .warn{border-left:4px solid #e6a11a}.attendance-report-table th{white-space:nowrap}.attendance-report-table td{text-align:center;vertical-align:middle}.attendance-report-table td:first-child{text-align:left;min-width:210px}.attendance-report-table td:first-child small,.attendance-report-table td:nth-child(8) small{display:block;color:#75849a;margin-top:4px}.payroll-ready{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.payroll-ready.ready{background:#e8f8f1;color:#087b50}.payroll-ready.not-ready{background:#fff3dd;color:#9a6200}.button-link{display:inline-flex;align-items:center;text-decoration:none;background:#1769e0;color:#fff!important;border-radius:10px;padding:11px 15px;font-weight:700}.attendance-detail{position:relative}.attendance-detail summary{cursor:pointer;color:#1769e0;font-weight:700;white-space:nowrap}.attendance-detail-pop{position:absolute;right:0;z-index:30;width:440px;max-height:520px;overflow:auto;background:#fff;border:1px solid #dce5ef;border-radius:16px;padding:18px;box-shadow:0 20px 50px rgba(20,35,59,.18);text-align:left}.attendance-detail-pop h4{margin:0 0 12px}.day-grid{display:grid;gap:6px}.day-row{display:grid;grid-template-columns:52px 120px 110px 60px;gap:8px;align-items:center;padding:7px 8px;border-radius:8px;background:#f7f9fc;font-size:12px}.day-status{font-size:11px}.day-status.hadir{color:#087b50}.day-status.pending,.day-status.belum_ada_data{color:#9a6200}.day-status.absen{color:#bd2d2d}.ded-row{display:flex;justify-content:space-between;gap:15px;padding:7px 0}.salary-table .payroll-ready{margin-top:5px}.attendance-report-hero p{max-width:760px}@media(max-width:1000px){.attendance-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.attendance-kpis{grid-template-columns:1fr}.attendance-detail-pop{position:fixed;left:12px;right:12px;top:15%;width:auto}.day-row{grid-template-columns:46px 1fr 90px}}

/* v5.2.17 manual attendance correction */
.manual-att-card{max-width:1310px;margin:22px auto;padding:28px}.manual-att-form{display:grid;grid-template-columns:1.45fr 1fr 1fr .8fr .8fr;gap:16px;align-items:end}.manual-att-form label{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#253653}.manual-att-form input,.manual-att-form select{height:46px;border:1px solid #d8e2ef;border-radius:12px;padding:0 13px;background:#fff;font:inherit}.manual-att-form input:focus,.manual-att-form select:focus{outline:0;border-color:#2870e8;box-shadow:0 0 0 3px rgba(40,112,232,.1)}.manual-att-form .manual-reason{grid-column:1/5}.manual-att-form button{height:46px;border-radius:12px}.manual-note{margin-top:18px;padding:14px 16px;border-radius:12px;background:#f3f7fc;color:#53647d;border:1px solid #e2eaf4}.manual-inline-delete{margin:0}.manual-inline-delete button{width:24px;height:24px;padding:0;border:0;border-radius:7px;background:#fff0f0;color:#c83232;font-size:18px;line-height:1;cursor:pointer}.day-row{grid-template-columns:55px minmax(125px,1fr) 100px minmax(90px,auto) 28px!important}.day-status.hadir{color:#087f5b}.day-status.absen{color:#c92a2a}.day-status.izin,.day-status.sakit,.day-status.cuti{color:#9c6500}@media(max-width:1050px){.manual-att-form{grid-template-columns:1fr 1fr}.manual-att-form .manual-reason{grid-column:1/-1}}@media(max-width:650px){.manual-att-card{padding:18px}.manual-att-form{grid-template-columns:1fr}.manual-att-form .manual-reason{grid-column:auto}}

/* v5.2.18 attendance policy */
.attendance-policy-box{display:flex!important;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;border:1px solid #dbe5f2;border-radius:14px;background:#f8fbff}.attendance-policy-box>span:first-child{display:flex;flex-direction:column;gap:5px}.attendance-policy-box small{color:#64748b;font-weight:400;line-height:1.45}.attendance-policy-toggle{white-space:nowrap;padding:10px 14px;border-radius:12px;background:#fff;border:1px solid #dbe5f2;font-weight:700}.attendance-policy-toggle input{width:18px!important;height:18px!important;margin-right:7px;vertical-align:middle}@media(max-width:800px){.attendance-policy-box{align-items:flex-start;flex-direction:column}.attendance-policy-toggle{width:100%}}

.attendance-exempt-badge{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:800;letter-spacing:.03em}

/* v5.2.22 loan payroll integration */
.loan-card .loan-form{margin-top:18px;padding:22px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.loan-card label{font-weight:700;color:#334155}.loan-card label small{display:block;margin-top:6px;font-weight:400;color:#64748b}.loan-card input,.loan-card select{margin-top:7px}.salary-detail-pop .detail-sub small{color:#64748b}


/* v5.2.24 - global searchable employee selector */
.employee-search-select{position:relative;width:100%;min-width:0}
.employee-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.employee-search-input{width:100%!important;min-height:48px!important;padding:0 44px 0 14px!important;border:1px solid #d5dfeb!important;border-radius:12px!important;background:#fff!important;font:inherit!important;color:#17263d!important;box-sizing:border-box!important;outline:none!important;transition:border-color .15s,box-shadow .15s!important}
.employee-search-input:focus{border-color:#2874e8!important;box-shadow:0 0 0 3px rgba(40,116,232,.12)!important}
.employee-search-select:after{content:'⌕';position:absolute;right:15px;top:12px;font-size:20px;color:#718096;pointer-events:none}
.employee-search-menu{position:absolute;z-index:9999;left:0;right:0;top:calc(100% + 6px);max-height:310px;overflow:auto;background:#fff;border:1px solid #d8e2ee;border-radius:12px;box-shadow:0 18px 45px rgba(15,35,65,.16);padding:6px}
.employee-search-option{display:block;width:100%;border:0!important;background:#fff!important;color:#17263d!important;text-align:left!important;padding:10px 12px!important;border-radius:8px!important;font:inherit!important;line-height:1.35!important;cursor:pointer!important}
.employee-search-option:hover,.employee-search-option.keyboard{background:#eef5ff!important;color:#1263d6!important}
.employee-search-option.selected{background:#e7f1ff!important;color:#145fc1!important;font-weight:700!important}
.employee-search-empty{padding:14px;color:#7a8799;text-align:center;font-size:14px}
@media(max-width:800px){.employee-search-menu{max-height:240px}}
/* v5.2.25 payroll workflow */
.payroll-workflow-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.payroll-workflow-actions form{margin:0}.payroll-status{display:inline-flex;align-items:center;padding:9px 13px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.04em}.status-unsaved{background:#eef2f7;color:#59677d}.status-draft{background:#fff3cd;color:#8a5b00}.status-posted{background:#dbeafe;color:#1554ad}.status-published{background:#dcfce7;color:#087443}.button-link.compact{padding:8px 12px;font-size:13px;white-space:nowrap}
