*{box-sizing:border-box}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f5f7fb;color:#17212b}
aside{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;color:#44515c;padding:24px 14px;border-right:1px solid #e7ebf0;box-shadow:2px 0 10px rgba(20,35,50,.025);z-index:5}
aside .brand{font-size:25px;font-weight:800;letter-spacing:.5px;margin:2px 12px 28px;color:#121b24;line-height:1.05}.brand span{font-size:11px;letter-spacing:2.5px;color:#1685e8;display:block;margin-top:5px}
aside a{display:block;color:#5b6873;text-decoration:none;padding:11px 13px;border-radius:9px;margin:4px 0;font-size:13px;font-weight:600;transition:.15s}
aside a:hover{background:#f0f7ff;color:#147ddd}
aside a[href="?page=dashboard"]{background:#167de2;color:#fff;box-shadow:0 4px 10px rgba(22,125,226,.18)}
main{margin-left:240px;min-height:100vh;background:#f5f7fb}
header{height:72px;background:#fff;border-bottom:1px solid #e7ebf0;display:flex;align-items:center;justify-content:space-between;padding:0 30px}header strong{display:block;color:#17212b;font-size:14px}header small{color:#87929c;font-size:11px}header>div:last-child{font-size:12px;color:#65727d;font-weight:600}
.content{padding:26px 30px}.content h1{margin:0 0 5px;font-size:28px}.muted{color:#788590}
.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:24px 0}.cards>div,.panel{background:#fff;border:1px solid #e3e8ed;border-radius:12px;padding:18px;box-shadow:0 2px 8px rgba(23,33,43,.035)}.cards strong{display:block;font-size:28px;margin-top:10px}.panel{margin-top:18px}.panel h2{margin-top:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.grid input,.grid select,.inline input,.clock input,.loginbox input{padding:11px;border:1px solid #cfd8e1;border-radius:7px;background:#fff;width:100%}button{border:0;border-radius:7px;padding:11px 17px;background:#167de2;color:white;font-weight:700;cursor:pointer}button:hover{opacity:.92}.inline{display:flex;gap:8px;align-items:center}.inline input{max-width:220px}table{width:100%;border-collapse:collapse;margin-top:15px}th,td{text-align:left;padding:11px;border-bottom:1px solid #e8edf2;font-size:14px}th{background:#f7f9fb}small{display:block;color:#82909b}.status{font-weight:700}.on{color:#168451}.off{color:#c63c3c}.alert{background:#fff5df;border:1px solid #f0d69c;padding:11px;border-radius:7px;margin:10px 0}.clock{max-width:520px}.clock form{display:grid;gap:15px}.clock form div{display:flex;gap:10px}.clock button{flex:1;padding:18px}.devicebox{margin-top:15px;padding:25px;border-radius:10px;background:#eef7ff;border:1px solid #d1e7fb}.login{display:grid;place-items:center;min-height:100vh;background:#f5f7fb}.loginbox{background:#fff;padding:35px;border-radius:15px;width:360px;display:grid;gap:12px;text-align:center;border:1px solid #e3e8ed;box-shadow:0 8px 30px rgba(23,33,43,.06)}.loginbox h1{margin:0;color:#167de2}.loginbox p{font-size:12px;color:#7b868f}
@media(max-width:900px){aside{width:200px}main{margin-left:200px}.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr 1fr}}
@media print{aside,header,button,.inline,.panel form{display:none!important}main{margin:0}.content{padding:0}.panel{box-shadow:none;border:0}body{background:#fff}@page{size:A4 portrait;margin:12mm}}
/* Professional dashboard */
.crumb{font-size:12px;color:#7f8b87;margin-bottom:10px}.crumb span{margin-left:8px}.crumb b{margin:0 8px;color:#b6c0bc}.dash-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.dash-head h1{font-size:28px;margin:0 0 4px;font-weight:750}.dash-actions{display:flex;gap:10px;align-items:center}.dash-search{height:40px;width:255px;background:#fff;border:1px solid #dfe4e9;border-radius:9px;display:flex;align-items:center;padding:0 12px;color:#82908b}.dash-search input{border:0;outline:0;width:100%;padding:0 8px;font:inherit}.btn-outline{height:40px;padding:0 15px;display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #dfe4e9;border-radius:9px;color:#43515d;text-decoration:none;font-weight:650;cursor:pointer}.btn-outline:hover{background:#f7faf9}.dash-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.dash-card{background:#fff;border:1px solid #e1e8e5;border-radius:12px;padding:17px 18px;box-shadow:0 2px 8px rgba(16,37,31,.035)}.dash-card-top{display:flex;justify-content:space-between;align-items:center}.dash-icon{width:34px;height:34px;border:1px solid #d7e7f7;border-radius:9px;display:grid;place-items:center;color:#1685e8;font-size:20px;background:#f5faff}.more{font-size:20px;color:#87938f}.dash-label{font-size:13px;color:#77847f;margin-top:10px}.dash-card strong{font-size:29px;line-height:1.1;margin:5px 0 4px;display:block}.dash-card small{font-size:11px;color:#8a9692}.dash-grid-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,.8fr);gap:18px;margin-bottom:18px}.dash-panel{background:#fff;border:1px solid #e1e8e5;border-radius:12px;box-shadow:0 2px 8px rgba(16,37,31,.035)}.chart-panel{min-height:330px;padding:20px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.panel-title h2{font-size:18px;margin:0 0 5px}.panel-title span{font-size:12px;color:#89948f}.panel-title>a{color:#1985cf;text-decoration:none;font-size:13px;font-weight:650}.legend{display:flex;gap:12px;align-items:center;font-size:11px;color:#77847f}.legend i{width:7px;height:7px;border-radius:50%;background:#167de2;display:inline-block}.legend i:nth-of-type(2){background:#2ea9e9}.legend i:nth-of-type(3){background:#8bd5e7}.chart{height:225px;margin-top:20px;border-bottom:1px solid #e7ecea;display:grid;grid-template-columns:repeat(7,1fr);gap:13px;padding:0 8px}.chart-col{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;color:#84908c;font-size:11px}.bars{height:178px;display:flex;align-items:flex-end;gap:3px}.bar{width:13px;min-height:4px;border-radius:5px 5px 0 0;background:#167de2}.bar.late{background:#49a8ef}.bar.absent{background:#a9d8f7}.recent-panel{padding:20px;overflow:hidden}.person-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #edf1ef}.person-row:last-child{border-bottom:0}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7f3ef;color:#147657;font-size:11px;font-weight:800;flex:0 0 auto}.person-info{min-width:0;flex:1}.person-info strong{display:block;font-size:13px}.person-info span{display:block;font-size:11px;color:#8b9692;margin:2px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.person-info small{font-size:10px;color:#87938f}.pill{font-style:normal;font-size:10px;white-space:nowrap;font-weight:700}.pill i{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px;background:#167de2}.pill-late{color:#d18b13}.pill-late i{background:#f0ae21}.department-panel{padding:20px}.date-chip{border:1px solid #dfe6e3;border-radius:9px;padding:9px 12px;font-size:12px;color:#64716d}.department-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:16px;border-top:1px solid #e7ecea;border-left:1px solid #e7ecea}.dept-card{padding:15px;border-right:1px solid #e7ecea;border-bottom:1px solid #e7ecea;min-height:120px}.dept-card>a{color:#1d82c5;font-size:12px;text-decoration:none}.dept-number{font-size:25px;font-weight:750;margin:9px 0}.dept-stats{display:flex;justify-content:space-between;font-size:10px;color:#7e8985}.dept-stats b{display:block;text-align:right;color:#263530;font-size:11px;margin-top:2px}.empty-state{padding:30px;text-align:center;color:#8a9692;font-size:13px}
@media(max-width:1100px){.dash-cards{grid-template-columns:repeat(2,1fr)}.dash-grid-main{grid-template-columns:1fr}.department-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){aside{position:static;width:auto;min-height:auto}main{margin-left:0}.dash-head{display:block}.dash-actions{margin-top:15px;flex-wrap:wrap}.dash-search{width:100%}.dash-cards{grid-template-columns:1fr}.department-grid{grid-template-columns:1fr}.content{padding:18px}.chart{gap:5px}.bars{gap:2px}.bar{width:9px}}
/* Screenshot-matched dashboard controls */
.dash-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.period-tabs{display:flex;background:#fff;border:1px solid #dfe5ea;border-radius:9px;overflow:hidden}.period{background:#fff!important;color:#4e5b66!important;border:0!important;border-right:1px solid #e5e9ed!important;border-radius:0!important;padding:9px 16px!important;font-size:12px;font-weight:650;box-shadow:none!important}.period:last-child{border-right:0!important}.period.active{background:#f1f7fd!important;color:#167de2!important}.toolbar-right{display:flex;gap:10px;align-items:center}.card-unit{font-size:14px;font-weight:500;color:#596773}.dash-card small{line-height:1.35}.dash-card strong{color:#17212b}.dash-card-top .more{color:#7c8791}.dash-panel{background:#fff}.chart-panel{background:#fff}.chart{background:linear-gradient(to bottom,transparent 24%,#f0f3f6 25%,transparent 25%,transparent 49%,#f0f3f6 50%,transparent 50%,transparent 74%,#f0f3f6 75%,transparent 75%);}.chart-col b{font-weight:500}.dept-card{background:#fff}.date-chip{background:#fff}
@media(max-width:700px){.dash-toolbar{display:block}.toolbar-right{margin-top:10px;flex-wrap:wrap}.period{padding:9px 12px!important}}
.nav-label{font-size:10px;letter-spacing:1.5px;color:#a2adb6;font-weight:700;margin:0 13px 8px}.settings-label{margin-top:24px}.nav-active{background:#167de2!important;color:#fff!important;box-shadow:0 4px 10px rgba(22,125,226,.18)}
aside a.nav-active:hover{background:#167de2!important;color:#fff!important}

/* Registration modals + employee portal */
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.page-head h1{margin:0 0 4px}.btn-primary{background:#167de2!important;color:#fff!important;border:0!important;border-radius:9px;padding:11px 16px;font-weight:700;cursor:pointer}.table-tools{display:flex;justify-content:space-between;align-items:center;gap:12px}.table-tools input{width:280px;padding:11px 13px;border:1px solid #d5dde4;border-radius:8px}.status-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}.status-badge.active{background:#e8f7ef;color:#168451}.status-badge.inactive{background:#fdeceb;color:#c63c3c}.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(20,30,38,.38);z-index:50;align-items:flex-start;justify-content:center;padding:70px 20px;overflow:auto}.modal-backdrop.show{display:flex}.modal-card{width:min(720px,100%);background:#fff;border:1px solid #e0e6eb;border-radius:14px;box-shadow:0 18px 60px rgba(20,35,50,.18);overflow:hidden}.modal-small{width:min(580px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #edf1f4}.modal-head h2{margin:0 0 3px;font-size:19px}.modal-head small{color:#87939d}.modal-close{background:transparent!important;color:#68757e!important;font-size:26px;padding:0 5px;line-height:1}.modal-form{padding:20px 22px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{font-size:12px;font-weight:700;color:#52606b}.form-grid input,.form-grid select{display:block;margin-top:6px;width:100%;padding:11px 12px;border:1px solid #cfd8e1;border-radius:8px;background:#fff;color:#26333d}.login-section{margin-top:18px;padding:16px;background:#f7faff;border:1px solid #dceaf7;border-radius:10px}.login-section strong{display:block;font-size:13px}.login-section small{display:block;color:#7b8892;margin:4px 0 12px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #edf1f4}.modal-actions .btn-outline{height:auto}.profile-strip{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e1e8e5;border-radius:12px;padding:16px 18px}.avatar-lg{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e8f3ff;color:#167de2;font-weight:800;font-size:18px}.profile-strip strong{display:block;font-size:16px}.profile-strip small{color:#87938f;margin-top:3px}.activity-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:18px 0}.activity-card{background:#fff;border:1px solid #e1e8e5;border-radius:12px;padding:18px}.activity-card span{font-size:12px;color:#77847f}.activity-card strong{display:block;font-size:27px;margin:8px 0 3px}.activity-card small{color:#8a9692}.panel-title-row{display:flex;justify-content:space-between;align-items:center}.panel-title-row h2{margin:0}.btn-outline{display:inline-flex;align-items:center;justify-content:center;background:#fff!important;color:#4e5b66!important;border:1px solid #dfe5ea!important;border-radius:9px;padding:10px 15px;text-decoration:none;font-weight:650;cursor:pointer}.inline{display:flex;gap:8px;align-items:center}.inline input{max-width:170px}.inline button{border:0}.muted{color:#788590}@media(max-width:800px){.page-head{display:block}.page-head .btn-primary{margin-top:12px}.form-grid,.activity-cards{grid-template-columns:1fr}.table-tools{display:block}.table-tools input{width:100%;margin-bottom:8px}.modal-backdrop{padding:30px 12px}}
/* Employee mobile-app inspired portal */
.employee-app-head{background:linear-gradient(135deg,#176fe0,#2f8df0);color:#fff;border-radius:16px 16px 0 0;padding:22px 24px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 24px rgba(22,125,226,.14)}.employee-app-head h1{margin:7px 0 3px;font-size:24px}.employee-app-head p{margin:0;color:#e6f1ff;font-size:12px}.app-location{font-size:10px;opacity:.9;letter-spacing:.4px}.app-avatar{width:48px;height:48px;border-radius:50%;background:#fff;color:#167de2;display:grid;place-items:center;font-weight:800;font-size:18px;border:3px solid rgba(255,255,255,.35)}.employee-tabs{display:flex;background:#fff;border:1px solid #dfe8f0;border-top:0;padding:5px;border-radius:0 0 13px 13px;gap:5px}.employee-tabs a{flex:1;text-align:center;text-decoration:none;color:#66737e;padding:10px;border-radius:9px;font-size:12px;font-weight:700}.employee-tabs a.active{background:#167de2;color:#fff}.shift-card{background:#fff;border:1px solid #e1e8ef;border-radius:14px;margin-top:16px;padding:18px;box-shadow:0 3px 12px rgba(23,33,43,.035)}.shift-top{display:flex;justify-content:space-between;align-items:flex-start}.soft-label{display:block;color:#88949e;font-size:9px;letter-spacing:1px;font-weight:800}.shift-top strong{display:block;font-size:16px;margin-top:4px}.shift-badge{font-size:9px;color:#178452;background:#e8f7ef;border-radius:999px;padding:5px 9px;font-weight:800}.time-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;text-align:center}.time-grid div{border-right:1px solid #edf1f4}.time-grid div:last-child{border-right:0}.time-grid span{display:block;color:#167de2;font-size:16px}.time-grid b{display:block;font-size:13px;margin:4px 0}.time-grid small{font-size:10px;color:#8a969f}.month-bar{display:flex;justify-content:space-between;align-items:center;margin:18px 0 9px}.month-bar strong{display:block;font-size:14px}.month-bar small{color:#8a969f;margin-top:2px}.month-bar form{display:flex;gap:5px}.month-bar input{width:125px;border:1px solid #cfd8e1;border-radius:8px;padding:8px;font-size:11px}.month-bar button{padding:8px 10px;font-size:11px}.employee-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.employee-stats>div{padding:11px 12px;border-radius:10px;border:1px solid #e4eaef;background:#fff}.employee-stats span{display:block;font-size:10px;color:#73808a}.employee-stats strong{display:block;font-size:21px;margin-top:3px}.stat-present{border-top:3px solid #28a66b!important}.stat-absent{border-top:3px solid #e85e5e!important}.stat-late{border-top:3px solid #f0a61c!important}.stat-present strong{color:#168451}.stat-absent strong{color:#d84e4e}.stat-late strong{color:#d18b13}.employee-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.employee-summary>div{background:#fff;border:1px solid #e1e8ef;border-radius:11px;padding:13px}.employee-summary span{font-size:10px;color:#7d8992}.employee-summary strong{display:block;font-size:17px;margin-top:5px}.activity-panel{background:#fff;border:1px solid #e1e8ef;border-radius:14px;padding:18px;box-shadow:0 3px 12px rgba(23,33,43,.035)}.activity-title{display:flex;justify-content:space-between;align-items:flex-start}.activity-title h2{margin:0;font-size:17px}.activity-title p{margin:4px 0 0;font-size:11px;color:#8a969f}.activity-title>span{font-size:10px;color:#6f7d87;border:1px solid #dfe6eb;border-radius:8px;padding:7px 9px}.activity-list{margin-top:10px}.activity-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf1f4}.activity-item:last-child{border-bottom:0}.date-dot{width:40px;height:42px;border-radius:10px;background:#eef6ff;display:grid;place-items:center;align-content:center;color:#167de2;flex:0 0 auto}.date-dot b{font-size:15px;line-height:1}.date-dot small{font-size:9px;color:#6c8baa;margin-top:2px}.activity-main{flex:1;min-width:0}.activity-main>strong{font-size:12px}.activity-main>div{display:flex;gap:14px;margin-top:5px;flex-wrap:wrap}.activity-main span{font-size:10px;color:#8a969f}.activity-main b{color:#3e4d58;margin-left:3px}.activity-status{text-align:right;font-size:10px;font-weight:800}.activity-status.present{color:#168451}.activity-status.absent{color:#d84e4e}.activity-status small{display:block;color:#89959e;font-weight:500;margin-top:4px}.employee-bottom-nav{display:none}.employee-bottom-nav a{color:#75818a;text-decoration:none;text-align:center;font-size:17px}.employee-bottom-nav a.active{color:#167de2}.employee-bottom-nav small{display:block;font-size:9px;margin-top:3px}@media(max-width:700px){.employee-app-head{padding:18px}.employee-app-head h1{font-size:20px}.employee-summary{grid-template-columns:1fr 1fr}.employee-summary>div:last-child{grid-column:span 2}.activity-item{align-items:flex-start}.activity-status{font-size:9px}.employee-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:sticky;bottom:10px;background:#fff;border:1px solid #e0e7ec;border-radius:14px;padding:10px;margin-top:14px;box-shadow:0 8px 25px rgba(20,35,50,.08)}.month-bar form input{width:110px}.content{padding-bottom:20px}}

/* Final polish: users modal + mobile attendance portal */
.page-head-left{display:flex;align-items:flex-start;gap:16px}.page-head-left .btn-primary{margin-top:2px;white-space:nowrap}
.employee-portal{min-height:calc(100vh - 52px);display:flex;justify-content:center;padding:8px 0 28px;background:linear-gradient(145deg,#f3f8fb 0%,#eef4f8 100%);border-radius:18px}
.employee-phone-shell{width:min(100%,560px);background:#f7fafc;border:1px solid #dfe8ef;border-radius:20px;overflow:hidden;box-shadow:0 14px 42px rgba(34,69,96,.08)}
.employee-phone-shell .employee-app-head{border-radius:0;padding:22px 22px 20px;background:linear-gradient(145deg,#176be0,#2f8ef2);min-height:142px}
.employee-phone-shell .app-location{display:flex;align-items:center;gap:6px;font-size:9px;font-weight:700;letter-spacing:.65px}.location-pin{font-size:13px}
.employee-phone-shell .app-head-copy h1{font-size:20px;margin:12px 0 4px;letter-spacing:-.2px}.employee-phone-shell .app-head-copy p{font-size:10px;color:#e9f4ff}.employee-phone-shell .app-avatar{width:44px;height:44px;font-size:16px;align-self:flex-start}
.employee-phone-shell .employee-tabs{margin:0 14px;transform:translateY(-14px);border:1px solid #dce6ee;border-radius:11px;padding:4px;box-shadow:0 4px 12px rgba(27,65,95,.08);position:relative;z-index:2}.employee-phone-shell .employee-tabs a{padding:8px;font-size:11px}.employee-phone-shell .employee-tabs span{margin-left:4px}
.employee-phone-shell .shift-card{margin:0 14px;padding:16px;border-radius:14px}.employee-phone-shell .shift-top strong{font-size:14px}.employee-phone-shell .time-grid{margin-top:16px}.employee-phone-shell .time-grid b{font-size:12px}.employee-phone-shell .time-grid small{font-size:9px}.time-icon{font-size:15px!important}
.employee-phone-shell .month-bar{margin:16px 14px 9px}.employee-phone-shell .month-bar strong{font-size:12px}.employee-phone-shell .month-bar small{font-size:9px}.employee-phone-shell .month-bar input{height:30px;padding:6px 7px;width:92px;font-size:9px}.employee-phone-shell .month-bar button{height:30px;padding:5px 8px;font-size:9px}
.employee-phone-shell .employee-stats{margin:0 14px;gap:7px}.employee-phone-shell .employee-stats>div{padding:10px;border-radius:9px}.employee-phone-shell .employee-stats span{font-size:9px}.employee-phone-shell .employee-stats strong{font-size:19px}
.employee-phone-shell .employee-summary{margin:9px 14px;gap:7px}.employee-phone-shell .employee-summary>div{padding:10px;border-radius:9px}.employee-phone-shell .employee-summary span{font-size:9px}.employee-phone-shell .employee-summary strong{font-size:14px}
.employee-phone-shell .activity-panel{margin:10px 14px 0;padding:14px;border-radius:14px}.employee-phone-shell .activity-title h2{font-size:15px}.employee-phone-shell .activity-title p{font-size:9px}.calendar-chip{font-size:9px!important;padding:6px 7px!important}.employee-phone-shell .activity-item{gap:9px;padding:11px 0}.employee-phone-shell .date-dot{width:35px;height:38px}.employee-phone-shell .date-dot b{font-size:13px}.employee-phone-shell .activity-main>strong{font-size:10px}.employee-phone-shell .activity-main>div{gap:7px;margin-top:4px}.employee-phone-shell .activity-main span{font-size:8px}.employee-phone-shell .activity-status{font-size:8px}.employee-phone-shell .activity-status small{font-size:8px}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#1a9a65;margin-right:3px}.activity-status.absent .status-dot{background:#e05a5a}
.employee-phone-shell .employee-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:sticky;bottom:8px;background:#fff;border:1px solid #dfe7ed;border-radius:13px;padding:8px;margin:12px 14px 10px;box-shadow:0 8px 25px rgba(20,35,50,.09)}
.employee-phone-shell .employee-bottom-nav a span{font-size:15px}.employee-phone-shell .employee-bottom-nav small{font-size:8px}
@media(min-width:701px){.employee-portal{padding:16px}.employee-phone-shell{width:520px}.employee-phone-shell .employee-bottom-nav{position:static}}
@media(max-width:700px){.employee-portal{padding:0;margin:0 -18px;border-radius:0;min-height:calc(100vh - 90px)}.employee-phone-shell{width:100%;border-radius:0;border-left:0;border-right:0;box-shadow:none}.employee-phone-shell .employee-app-head{padding-top:18px}}

/* Table action buttons */
.action-buttons{white-space:nowrap}.btn-small{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:7px 10px;border-radius:7px;font-size:11px;font-weight:700;margin-right:5px}.btn-edit{background:#eef6ff;color:#167de2;border:1px solid #d6e9fb}.btn-delete{background:#fff0ef;color:#c63c3c;border:1px solid #f3d4d1}.btn-small:hover{opacity:.86}

/* Standalone Employee My Activity page */
.employee-page-body{margin:0;background:#eef4f8;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#24313b;}
.employee-page-body .employee-portal{min-height:100vh;box-sizing:border-box;padding:28px 18px 40px;display:flex;justify-content:center;align-items:flex-start;background:linear-gradient(145deg,#f4f8fb 0%,#eaf1f6 100%);border-radius:0;}
.employee-page-body .employee-phone-shell{width:min(520px,100%);background:#f7fafc;border:1px solid #dce6ee;border-radius:24px;overflow:hidden;box-shadow:0 18px 55px rgba(31,63,88,.13);}
.employee-page-body .employee-app-head{min-height:152px;box-sizing:border-box;padding:24px 24px 30px;background:linear-gradient(145deg,#176be0 0%,#2f8ef2 100%);border-radius:0;color:#fff;}
.employee-page-body .employee-app-head h1{font-size:21px;line-height:1.25;margin:13px 0 5px;font-weight:750;}
.employee-page-body .employee-app-head p{font-size:11px;margin:0;color:#eaf4ff;}
.employee-page-body .employee-tabs{margin:-17px 15px 0;position:relative;z-index:3;border:1px solid #dbe6ef;border-radius:12px;padding:4px;background:#fff;box-shadow:0 5px 16px rgba(24,70,105,.12);}
.employee-page-body .employee-tabs a{padding:9px 8px;font-size:11px;}
.employee-page-body .shift-card{margin:14px 15px 0;padding:16px;border-radius:14px;}
.employee-page-body .month-bar{margin:16px 15px 9px;}
.employee-page-body .employee-stats{margin:0 15px;}
.employee-page-body .employee-summary{margin:10px 15px;}
.employee-page-body .activity-panel{margin:10px 15px 0;}
.employee-page-body .employee-bottom-nav{margin:12px 15px 10px;}
@media(max-width:700px){
 .employee-page-body .employee-portal{padding:0;background:#f5f9fc;}
 .employee-page-body .employee-phone-shell{width:100%;min-height:100vh;border-radius:0;border-left:0;border-right:0;box-shadow:none;}
 .employee-page-body .employee-app-head{padding-top:22px;}
}

/* Employee profile menu + navigation refinements */
.brand-link{display:block;text-decoration:none;color:inherit;cursor:pointer}
.profile-wrap{position:relative;align-self:flex-start}
.profile-trigger{cursor:pointer}
.profile-menu{display:none;position:absolute;right:0;top:54px;width:190px;background:#fff;color:#26343d;border:1px solid #dbe5ed;border-radius:12px;padding:11px;box-shadow:0 12px 30px rgba(20,50,80,.18);z-index:20}
.profile-menu.show{display:block}
.profile-menu-name{font-size:12px;font-weight:800}
.profile-menu-meta{font-size:9px;color:#84909a;margin-top:3px;padding-bottom:9px;border-bottom:1px solid #edf1f4}
.profile-logout{display:block;margin-top:8px;padding:8px 9px;border-radius:8px;background:#f7f9fb;color:#d84e4e;text-decoration:none;font-size:11px;font-weight:800}
.profile-logout:hover{background:#fff0f0}
aside .brand{font-size:21px!important;line-height:1.05!important}
aside .brand span{font-size:13px!important}
aside>a{font-size:14px!important}
aside .nav-label{font-size:11px!important}
.employee-page-body .profile-wrap{position:relative}
.notice{margin:14px 0;padding:12px 15px;border-radius:9px;font-weight:700}.notice.success{background:#eaf8f0;border:1px solid #b9e7cb;color:#167447}.notice.error{background:#fff0f0;border:1px solid #f0bcbc;color:#a62f2f}.device-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.device-form{grid-template-columns:repeat(3,1fr);margin-top:16px}.device-actions{grid-column:1/-1;display:flex;gap:9px;align-items:center}.device-actions a,.device-actions button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.stats-panel{display:grid;gap:10px}.stats-panel>div{padding:14px;border:1px solid #e5ebf0;border-radius:9px}.stats-panel span{display:block;color:#7b8791;font-size:12px}.stats-panel strong{display:block;margin-top:5px;font-size:22px}.sync-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.sync-steps>div{border:1px solid #e5ebf0;border-radius:10px;padding:15px;display:flex;gap:10px}.sync-steps b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#167de2;color:#fff;flex:0 0 28px}.sync-steps span{font-size:13px;color:#52606d;line-height:1.45}@media(max-width:900px){.device-grid,.sync-steps,.device-form{grid-template-columns:1fr}.device-actions{flex-wrap:wrap}}

/* Department management */
.department-page-head{display:flex;align-items:center;justify-content:flex-start;margin-bottom:18px}.department-head-left{display:flex;align-items:center;gap:18px}.department-head-left h1{margin:0 0 4px}.department-head-left p{margin:0}.department-add-btn{height:40px;padding:0 15px}.department-manage-panel{margin-top:0}.department-modal-card{max-width:430px}.department-modal-card label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#43515d}.department-modal-card input{padding:12px;border:1px solid #cfd8e1;border-radius:8px;width:100%;font:inherit;background:#fff}.department-modal-card .modal-actions{margin-top:18px}
/* Professional dashboard statistic cards */
.professional-stat-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0}.dash-stat-card{position:relative;display:flex;align-items:center;gap:12px;min-height:112px;padding:17px 15px;background:#fff;border:1px solid #e1e8ee;border-radius:15px;box-shadow:0 7px 22px rgba(25,52,73,.06);overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}.dash-stat-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#167de2}.dash-stat-card:hover{transform:translateY(-2px);box-shadow:0 11px 28px rgba(25,52,73,.09)}.dash-stat-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;font-size:20px;font-weight:800;flex:0 0 auto;background:#eef6ff;color:#167de2;border:1px solid #d9eafb}.dash-stat-copy{min-width:0;flex:1}.dash-stat-copy span{display:block;font-size:11px;color:#778590;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.dash-stat-copy strong{display:block;font-size:28px;line-height:1.05;margin:5px 0 4px;color:#17212b}.dash-stat-copy small{font-size:9px;color:#8b969f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-stat-arrow{font-size:23px;color:#a1acb4;font-weight:400}.stat-checkout:before{background:#168451}.stat-checkout .dash-stat-icon{background:#eef9f3;color:#168451;border-color:#d4eddf}.stat-latein:before{background:#d99a16}.stat-latein .dash-stat-icon{background:#fff8e8;color:#c7890d;border-color:#f2e1b4}.stat-lateout:before{background:#9a68d5}.stat-lateout .dash-stat-icon{background:#f7f0fc;color:#8956c3;border-color:#e8d9f5}.stat-absent:before{background:#d64f5b}.stat-absent .dash-stat-icon{background:#fff1f2;color:#c9434e;border-color:#f3d7da}
@media(max-width:1100px){.professional-stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.professional-stat-cards{grid-template-columns:1fr}.department-head-left{align-items:flex-start;flex-direction:column;gap:10px}}

/* Dashboard premium identity */
.dash-title-wrap{display:flex;align-items:center;gap:14px}.dashboard-logo{width:58px;height:58px;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(20,55,40,.08)}.dashboard-subtitle{margin:4px 0 0;font-size:11px;color:#8a9692;letter-spacing:.2px}.dash-head{padding:3px 0}.dash-head h1{letter-spacing:-.4px}.professional-stat-cards{gap:16px}.dash-stat-card{min-height:118px;border-color:#dfe7ec;box-shadow:0 8px 26px rgba(25,52,73,.075)}.dash-stat-card:after{content:"";position:absolute;right:-24px;top:-28px;width:82px;height:82px;border-radius:50%;background:rgba(22,125,226,.035)}
/* Monthly A4 report */
.monthly-actions{display:flex;gap:10px;align-items:center}.monthly-print-header{display:none}.monthly-report-title{display:none}.monthly-report-table th,.monthly-report-table td{font-size:13px}.monthly-report-table th{white-space:nowrap}.monthly-report-panel{margin-top:18px}
@media print{
  body{background:#fff!important}.content{padding:0!important}.monthly-screen-head{display:none!important}.monthly-report-page .monthly-report-panel{display:block!important;margin-top:8mm!important;border:0!important;padding:0!important}.monthly-report-page .monthly-report-table{margin-top:4mm!important}.monthly-print-header{display:grid!important;grid-template-columns:1fr 120px 1fr;align-items:center;gap:15px;border-bottom:1px solid #222;padding:0 0 5mm}.report-brand-left,.report-brand-right{font-size:8.5pt;line-height:1.25}.report-brand-left strong,.report-brand-right strong{display:block;font-size:11pt;margin-bottom:2mm}.report-brand-left span,.report-brand-right span{display:block}.report-brand-right{text-align:right;direction:rtl}.report-logo-wrap{text-align:center}.report-logo-wrap img{width:78px;height:65px;object-fit:contain}.monthly-report-title{display:block!important;text-align:center;border-bottom:2px solid #173d66;padding:3mm 0 3mm}.monthly-report-title h2{font-size:17pt;font-weight:500;margin:0 0 2mm;color:#182f4b}.monthly-report-title p{font-size:10.5pt;margin:0}.monthly-report-table{width:100%;border-collapse:collapse}.monthly-report-table th{background:#f4f6f8!important;border-bottom:1px solid #222!important;padding:2.5mm 2mm;font-size:9.5pt}.monthly-report-table td{padding:2.5mm 2mm;border-bottom:1px solid #ddd;font-size:9.5pt}.monthly-report-table small{font-size:7.5pt}.monthly-report-table tr{page-break-inside:avoid}
}
@media(max-width:700px){.dash-title-wrap{align-items:flex-start}.dashboard-logo{width:48px;height:48px}.monthly-actions{flex-wrap:wrap}.monthly-filter{width:100%}}
.local-connector-box{margin-top:16px;border:1px solid #dfe7ef;border-radius:10px;padding:14px;background:#fbfdff}.local-connector-box>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px}.connector-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;color:#667482;font-size:13px}.connector-error{margin-top:10px;padding:9px 11px;border-radius:8px;background:#fff2f2;color:#a62f2f;font-size:13px}.connector-token{margin-top:14px;border-top:1px solid #e5ebf0;padding-top:12px}.connector-token summary{cursor:pointer;font-weight:700}.token-row{display:flex;gap:8px;margin-top:9px}.token-row input{flex:1;font-family:monospace;font-size:12px}.device-form label small{display:block;margin-top:5px;font-weight:400}.device-actions{flex-wrap:wrap}
