@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--bg:#f5f7fb;--surface:#fff;--ink:#17243a;--muted:#8591a4;--line:#e9edf3;--navy:#1d3558;--blue:#315c96;--blue-soft:#edf3fb;--green:#16835d;--green-soft:#e8f6f0;--orange:#bd741d;--orange-soft:#fff4e5;--red:#b94747;--red-soft:#fff0f0;--shadow:0 8px 28px rgba(24,42,69,.045)}
*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#fff;border-right:1px solid var(--line);padding:27px 18px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 8px;color:#1b2d49;font-family:'Manrope',sans-serif;font-size:20px;font-weight:800;letter-spacing:-.8px;line-height:1}.brand-mark{width:35px;height:35px;border-radius:11px;background:var(--navy);color:#fff;display:grid;place-items:center;font:800 23px 'Manrope',sans-serif;letter-spacing:-2px}.brand-dot{color:#4d83c1}.brand small{display:block;margin-top:5px;color:#9ba5b4;font:600 8px 'DM Sans',sans-serif;letter-spacing:1.15px}.nav-caption{margin:46px 10px 12px;color:#a0aaba;font-size:9px;font-weight:700;letter-spacing:1.25px}.main-nav{display:grid;gap:5px}.nav-link{height:42px;border-radius:8px;padding:0 11px;display:flex;align-items:center;gap:12px;color:#778397;font-size:12px;font-weight:600;transition:.16s ease}.nav-link:hover{background:#f7f9fc;color:var(--navy)}.nav-link.active{background:#edf3fb;color:#254c7c}.nav-icon{width:18px;text-align:center;color:#8292a8;font-size:16px}.nav-link.active .nav-icon{color:#315c96}.sidebar-bottom{margin-top:auto}.profile-mini{display:flex;align-items:center;gap:10px;padding:13px 8px 17px;border-bottom:1px solid var(--line);margin-bottom:10px}.avatar{width:34px;height:34px;border-radius:50%;background:#eaf0f8;color:#42648f;display:grid;place-items:center;font-weight:700;font-size:12px;flex-shrink:0}.profile-copy{min-width:0;display:grid;gap:3px}.profile-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy span{font-size:10px;color:var(--muted)}.logout-link{color:#a06c6c}.main-content{margin-left:236px;padding:0 36px 44px;max-width:1600px;min-height:100vh}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8ecf2;margin-bottom:25px}.topbar h1{margin:5px 0 0;font:700 21px 'Manrope',sans-serif;letter-spacing:-.55px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.35px;color:#9aa6b6}.topbar-date,.today-pill{display:flex;align-items:center;gap:8px;color:#748197;font-size:11px;font-weight:600;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px}.live-dot{width:7px;height:7px;border-radius:50%;background:#35a879;box-shadow:0 0 0 3px #e8f6f0}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:19px}.welcome-row h2{font:700 18px 'Manrope',sans-serif;letter-spacing:-.45px;margin:5px 0 4px}.welcome-row p,.page-intro p{color:var(--muted);font-size:11px;margin:0}.btn{border:0;border-radius:7px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:13px;cursor:pointer;font-size:11px;font-weight:700;transition:transform .15s,background .15s,box-shadow .15s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--navy);color:#fff;box-shadow:0 3px 8px rgba(29,53,88,.12)}.btn-primary:hover{background:#294b78}.btn-dark{background:#28364b;color:#fff}.btn-light{background:#f4f6f9;color:#58667a;border:1px solid #edf0f4}.btn-ghost{background:transparent;color:#6680a2}.btn-xs{padding:7px 9px;font-size:10px}.btn-block{width:100%;height:43px;margin-top:4px}.btn-large{height:44px;padding:0 19px}.btn-disabled{background:#e9edf2;color:#a3adba;cursor:not-allowed}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 17px 14px;min-height:117px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#79869a;font-size:10px;font-weight:600}.stat-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-size:14px;font-weight:700}.icon-blue{background:#edf3fb;color:#4772a8}.icon-green{background:var(--green-soft);color:var(--green)}.icon-orange{background:var(--orange-soft);color:var(--orange)}.icon-gray{background:#f0f2f5;color:#7c8797}.stat-number{font:800 25px 'Manrope',sans-serif;letter-spacing:-.8px;margin-top:10px;line-height:1.05}.stat-note{font-size:9px;color:#a0aaba;margin-top:5px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);margin-bottom:17px;overflow:hidden}.panel-head{padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h3{margin:0 0 4px;font:700 12px 'Manrope',sans-serif;letter-spacing:-.1px}.panel-head p{margin:0;color:#9aa5b4;font-size:10px}.text-link{font-size:10px;color:#38669b;font-weight:700;white-space:nowrap}.text-link span{margin-left:5px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#fafbfd}th{padding:11px 19px;color:#9aa5b4;font-size:8px;letter-spacing:1px;font-weight:700;border-top:1px solid #f0f2f5;border-bottom:1px solid #f0f2f5}td{padding:12px 19px;border-bottom:1px solid #f1f3f6;color:#69778b;font-size:10px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}.person-cell{display:flex;align-items:center;gap:9px}.person-cell strong{display:block;color:#34445b;font-size:10px;font-weight:700}.person-cell small{display:block;margin-top:3px;color:#a0aaba;font-size:9px}.avatar-small{width:28px;height:28px;font-size:10px}.time-cell{font-variant-numeric:tabular-nums;font-weight:600;color:#46566d}.subtle{color:#bcc4ce}.status{display:inline-flex;align-items:center;border-radius:20px;padding:5px 8px;font-size:8px;font-weight:700;letter-spacing:.1px}.status-success{background:var(--green-soft);color:var(--green)}.status-warning{background:var(--orange-soft);color:var(--orange)}.status-info{background:#edf4fb;color:#47749d}.status-danger{background:var(--red-soft);color:var(--red)}.status-muted{background:#f0f2f5;color:#8591a1}.empty-cell{text-align:center;padding:30px;color:#a0aaba}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-5px 0 17px}.count-label{color:#7d899b;background:#fff;border:1px solid var(--line);padding:7px 10px;border-radius:7px;font-size:9px;font-weight:600;white-space:nowrap}.add-panel{padding-bottom:17px}.employee-form{padding:0 19px;display:grid;grid-template-columns:1.3fr .8fr .9fr 1fr auto;align-items:end;gap:10px}.employee-form label,.form-stack label,.filter-form label{display:grid;gap:6px;color:#647187;font-size:10px;font-weight:600}.employee-form input,.form-stack input,.search-form input,.filter-form input,.reset-inline input{width:100%;height:36px;border:1px solid #e7ebf1;border-radius:6px;padding:0 10px;background:#fff;color:#26364d;outline:none;font-size:10px;min-width:0}.employee-form input:focus,.form-stack input:focus,.search-form input:focus,.filter-form input:focus,.reset-inline input:focus{border-color:#8ca8cb;box-shadow:0 0 0 3px #edf3fb}.employee-form input::placeholder,.form-stack input::placeholder,.search-form input::placeholder{color:#b4bdc9}.optional{color:#a3adba;font-weight:400}.form-submit{padding-bottom:0}.form-submit .btn{height:36px;padding:0 12px}.panel-head-wrap{flex-wrap:wrap}.search-form,.filter-form{display:flex;align-items:end;gap:7px}.search-form input{width:205px}.filter-form input{width:140px}.stats-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}.compact-stat{min-height:94px;padding:13px 16px}.compact-stat .stat-number{font-size:22px;margin-top:7px}.align-right{text-align:right}.action-inline{display:flex;gap:3px;justify-content:flex-end}.action-inline form{display:inline}.reset-inline{display:flex;gap:5px;justify-content:flex-end;margin-top:7px}.reset-inline input{width:130px;height:30px}.hidden{display:none!important}.employee-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(210px,1fr);gap:15px;margin-bottom:17px}.attendance-panel{margin-bottom:0;padding-bottom:17px}.clock-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 19px;margin:6px 0 16px}.clock-box{border:1px solid #edf0f4;border-radius:8px;padding:13px 14px;background:#fcfdff}.clock-box span{display:block;color:#9aa5b4;font-size:8px;font-weight:700;letter-spacing:1px}.clock-box strong{display:block;margin-top:7px;font:800 25px 'Manrope',sans-serif;letter-spacing:-.8px;color:#263851}.action-row{padding:0 19px}.hint-line{padding:12px 19px 0;color:#9aa5b4;font-size:9px}.hint-line strong{color:#6a788e}.mini-summary{padding:19px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin-bottom:0}.summary-value{margin-top:16px;font:800 32px 'Manrope',sans-serif;letter-spacing:-1px}.summary-value small{font:600 11px 'DM Sans',sans-serif;color:#8491a3;letter-spacing:0}.mini-summary p{color:#9aa5b4;font-size:10px;margin:5px 0 17px}.profile-details{display:grid;grid-template-columns:repeat(3,1fr);padding:0 19px 17px;gap:15px}.profile-details div{display:grid;gap:5px}.profile-details span{color:#9aa5b4;font-size:9px}.profile-details strong{color:#43536a;font-size:10px}.alert{border-radius:7px;padding:11px 13px;font-size:10px;margin-bottom:15px}.alert-success{background:var(--green-soft);color:var(--green)}.alert-danger{background:var(--red-soft);color:var(--red)}.alert-warning{background:var(--orange-soft);color:var(--orange)}.alert-info{background:#edf4fb;color:#47749d}.auth-wrap{width:min(100% - 32px,390px);margin:0 auto;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:45px 0}.main-auth{margin:0;padding:0 20px;max-width:none}.auth-brand{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:22px;color:#1b2d49;font:800 21px 'Manrope',sans-serif;letter-spacing:-.8px}.auth-card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:29px;box-shadow:0 12px 40px rgba(24,42,69,.055)}.auth-heading{text-align:center;margin-bottom:23px}.auth-heading h1{font:800 22px 'Manrope',sans-serif;letter-spacing:-.7px;margin:8px 0 7px}.auth-heading p{font-size:11px;line-height:1.6;color:#909cad;margin:0}.form-stack{display:grid;gap:15px}.form-stack input{height:42px;font-size:11px}.auth-foot{text-align:center;color:#a2acb9;font-size:9px;margin-top:20px}.auth-foot span{padding:0 5px}.auth-foot code{font-size:9px;color:#687b96}.success-icon{width:40px;height:40px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;margin:0 auto 15px;font-size:20px;font-weight:700}.install-wrap{width:min(100% - 32px,430px)}
@media(max-width:1100px){.main-content{padding-left:25px;padding-right:25px}.sidebar{width:210px}.main-content{margin-left:210px}.employee-form{grid-template-columns:repeat(2,minmax(0,1fr))}.form-submit{grid-column:1/-1}.employee-form .btn{width:max-content}}
@media(max-width:760px){.sidebar{position:static;width:auto;height:auto;padding:13px 15px 10px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:18px}.brand-mark{width:31px;height:31px}.brand small{font-size:7px}.nav-caption,.sidebar-bottom{display:none}.main-nav{display:flex;gap:4px;margin-top:13px;overflow-x:auto;padding-bottom:2px}.nav-link{height:34px;padding:0 9px;font-size:10px;white-space:nowrap}.nav-icon{font-size:13px;width:13px}.main-content{margin-left:0;padding:0 15px 28px;min-height:calc(100vh - 95px)}.topbar{height:75px;margin-bottom:19px}.topbar h1{font-size:18px}.topbar-date{font-size:9px;padding:7px 8px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{min-height:104px;padding:13px}.stat-number{font-size:22px}.welcome-row h2{font-size:16px}.welcome-row .btn{font-size:9px;padding:9px}.panel-head{padding:14px}.panel-head h3{font-size:11px}th{padding:10px 13px}td{padding:10px 13px}.employee-grid{grid-template-columns:1fr}.mini-summary{min-height:150px}.profile-details{gap:9px;padding:0 14px 15px}.employee-form{padding:0 14px;grid-template-columns:1fr 1fr}.page-intro{align-items:flex-start;flex-direction:column}.page-intro .filter-form{width:100%;flex-wrap:wrap}.filter-form input{width:100%;min-width:0}.filter-form label{flex:1;min-width:100px}.search-form{width:100%}.search-form input{flex:1;width:100%}.panel-head-wrap{align-items:flex-start}.stats-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.compact-stat{padding:11px 9px;min-height:85px}.compact-stat .stat-top{font-size:8px}.compact-stat .stat-icon{width:22px;height:22px}.compact-stat .stat-number{font-size:20px}.action-inline{flex-wrap:wrap}.auth-card{padding:23px}.auth-wrap{padding:32px 0}}
@media(max-width:420px){.topbar-date{font-size:0;gap:0}.topbar-date .live-dot{margin:0}.welcome-row{align-items:flex-start}.welcome-row>.btn{margin-top:8px}.clock-box{padding:11px}.clock-box strong{font-size:22px}.employee-form{grid-template-columns:1fr}.form-submit{grid-column:auto}.stats-grid-three{grid-template-columns:1fr 1fr}.stats-grid-three .stat-card:last-child{grid-column:1/-1}.profile-details{grid-template-columns:1fr 1fr}.panel-head{align-items:flex-start}.filter-form{gap:5px}.filter-form .btn{height:36px}}


/* Shift selector */
.employee-form select, .shift-inline select { width:100%; min-width:0; height:36px; border:1px solid #e7ebf1; border-radius:6px; padding:0 10px; background:#fff; color:#26364d; outline:none; font:inherit; font-size:10px; }
.employee-form select:focus, .shift-inline select:focus { border-color:#8ca8cb; box-shadow:0 0 0 3px #edf3fb; }
.shift-inline { display:flex; align-items:center; gap:5px; min-width:170px; }
.shift-inline select { flex:1; }
@media (max-width: 680px) { .shift-inline { min-width:155px; } }

/* Komponen form dan keterangan absensi */
.schedule-rules { display:flex; flex-wrap:wrap; gap:7px 16px; margin-top:8px; color:#8a96a7; font-size:10px; }
.schedule-rules strong { color:#46566d; font-weight:700; }
.schedule-select { width:100%; min-width:175px; height:36px; border:1px solid #e7ebf1; border-radius:6px; padding:0 10px; background:#fff; color:#26364d; outline:none; font:inherit; font-size:10px; }
.schedule-select:focus { border-color:#8ca8cb; box-shadow:0 0 0 3px #edf3fb; }
.schedule-select:disabled { background:#f7f8fa; color:#8491a3; cursor:not-allowed; }
.schedule-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 19px; border-top:1px solid #f0f2f5; }
.schedule-actions p { margin:0; color:#9aa5b4; font-size:9px; line-height:1.6; }
@media(max-width:760px) {
  .schedule-intro { gap:12px; }
  .schedule-intro .filter-form { width:100%; }
  .schedule-intro .filter-form label { flex:1; }
  .schedule-intro .filter-form input { width:100%; }
  .schedule-actions { align-items:stretch; flex-direction:column; padding:13px 14px; }
  .schedule-actions .btn { width:100%; }
  .schedule-select { min-width:160px; }
}
