:root{
  --bg:#f6f7fb;--panel:#fff;--text:#101828;--muted:#667085;--muted-2:#98a2b3;--border:#e6e8ef;
  --sidebar:#ffffff;--nav-active:#f2efff;--nav-active-text:#5b4bc4;--primary:#5b4bc4;--primary-dark:#4638a8;
  --shadow:0 1px 2px rgba(16,24,40,.03),0 8px 24px rgba(16,24,40,.04);--radius:16px
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px}
a{color:inherit;text-decoration:none}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
button,input,select,textarea{font:inherit}

.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}
.sidebar{background:var(--sidebar);border-right:1px solid var(--border);padding:20px 14px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:10}
.app-brand{display:flex;gap:11px;align-items:center;padding:2px 8px 22px}
.brand-mark{width:39px;height:39px;border-radius:12px;background:linear-gradient(145deg,#5b4bc4,#7768db);color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:-.03em;box-shadow:0 7px 16px rgba(91,75,196,.22)}
.brand-copy{display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-size:14px}.brand-copy span{font-size:11px;color:var(--muted);margin-top:2px}
.nav-label{font-size:10px;color:#a5adbc;font-weight:800;letter-spacing:.13em;padding:7px 13px}
.side-nav{display:flex;flex-direction:column;gap:4px}.side-nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;color:#5e687a;font-weight:650;transition:.15s ease}.side-nav a svg{width:18px;height:18px}.side-nav a:hover{background:#f8f8fb;color:#323a4a}.side-nav a.active{background:var(--nav-active);color:var(--nav-active-text)}
.sidebar-spacer{flex:1}.sidebar-user{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;padding:13px 9px;border-top:1px solid var(--border)}.user-avatar,.topbar-avatar{border-radius:999px;background:#efeafe;color:#5b4bc4;display:grid;place-items:center;font-weight:800}.user-avatar{width:34px;height:34px}.sidebar-user div:last-child{min-width:0}.sidebar-user strong{display:block;font-size:12px}.sidebar-user span{display:block;color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.logout-form{margin:0}.logout-button{border:0;background:transparent;color:#667085;display:flex;align-items:center;gap:9px;padding:9px 12px;width:100%;border-radius:9px;cursor:pointer;font-weight:650}.logout-button:hover{background:#f9fafb}.logout-button svg{width:17px;height:17px}
.main-area{min-width:0}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:8}.topbar-title{font-weight:700;color:#344054}.topbar-actions{display:flex;align-items:center;gap:11px}.topbar-new{background:#111827;color:#fff;padding:9px 13px;border-radius:9px;font-weight:700;font-size:12px}.topbar-new:hover{background:#000}.topbar-avatar{width:34px;height:34px}
.content{padding:28px 30px 42px;min-width:0;max-width:1600px;width:100%;margin:0 auto}

.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:23px}.list-intro{align-items:center}.breadcrumb{font-size:12px;color:#7f8a9d;margin:0 0 5px}.page-intro h1{font-size:28px;letter-spacing:-.025em;margin:0;line-height:1.2}.page-subtitle{color:var(--muted);margin:7px 0 0;font-size:13px}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.actions{display:flex;gap:9px;flex-wrap:wrap}.button,.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:10px 14px;font-weight:700;border:0;cursor:pointer;line-height:1.1}.primary{background:var(--primary);color:#fff}.primary:hover{background:var(--primary-dark)}.secondary{background:#fff;color:#344054;border:1px solid #d8dce5}.secondary:hover{background:#f9fafb}.danger{background:#b42318;color:#fff}

.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.kpi-card{min-height:151px;border-radius:15px;padding:17px;display:flex;flex-direction:column;border:1px solid transparent;transition:.16s ease}.kpi-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(16,24,40,.07)}.kpi-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.kpi-icon{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.68);display:grid;place-items:center;font-weight:800}.kpi-arrow{opacity:.55;font-size:15px}.kpi-card strong{font-size:30px;line-height:1;letter-spacing:-.03em;margin-bottom:8px}.kpi-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.025em;line-height:1.25}.kpi-card small{font-size:11px;margin-top:5px;opacity:.7}
.kpi-lilac{background:#f0edff;color:#493c9c;border-color:#e2dcff}.kpi-blue{background:#eaf4ff;color:#275c91;border-color:#d7ebff}.kpi-green{background:#eaf8f1;color:#277357;border-color:#d6f0e4}.kpi-amber{background:#fff4df;color:#8d5a09;border-color:#f7e7c5}.kpi-cyan{background:#e8f8f8;color:#277276;border-color:#d4eeee}.kpi-rose{background:#fff0f2;color:#a13c52;border-color:#f7dce2}.kpi-magenta{background:#fceefe;color:#8b3c8d;border-color:#f1d9f3}
.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.dashboard-panel{min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:18px 19px;border-bottom:1px solid var(--border);gap:14px}.panel-head h2{font-size:16px;margin:2px 0 0}.section-kicker{font-size:9px;letter-spacing:.12em;color:#9aa3b2;font-weight:800;margin:0}.soft-link{color:var(--primary);font-size:12px;font-weight:700}.profile-list,.recent-list{padding:8px 19px 15px}.profile-row{padding:11px 0}.profile-row-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:7px}.profile-row-head span{font-size:12px;color:#475467}.profile-row-head strong{font-size:12px}.profile-track{height:6px;background:#f0f1f5;border-radius:99px;overflow:hidden}.profile-track span{height:100%;display:block;background:#7b6bd6;border-radius:99px;min-width:4px}.recent-item{display:grid;grid-template-columns:39px minmax(0,1fr) 20px;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #edf0f4}.recent-item:last-child{border-bottom:0}.recent-copy{min-width:0}.recent-copy strong{display:block;font-size:12px}.recent-copy small{display:block;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chevron{font-size:21px;color:#98a2b3}.avatar{width:38px;height:38px;border-radius:12px;background:#eee9ff;color:#5a49c4;display:grid;place-items:center;font-weight:800;font-size:12px}.empty-state{color:var(--muted);font-size:12px;padding:18px 0}

.filters{padding:13px;display:grid;grid-template-columns:minmax(220px,1.8fr) repeat(4,minmax(135px,1fr)) auto auto;gap:9px;margin-bottom:15px}.filters input,.filters select,.form-panel input,.form-panel select,.form-panel textarea,.inline-add input,.inline-add select,.stack-form input{width:100%;border:1px solid #dfe3ea;border-radius:9px;padding:10px 11px;background:#fff;color:#344054;outline:none}.filters input:focus,.filters select:focus,.form-panel input:focus,.form-panel select:focus,.form-panel textarea:focus,.inline-add input:focus,.inline-add select:focus,.stack-form input:focus{border-color:#a89fe3;box-shadow:0 0 0 3px #f0edff}.search-wrap{position:relative}.search-wrap svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#98a2b3}.search-wrap input{padding-left:34px}.results-bar{display:flex;align-items:center;gap:7px;color:#667085;font-size:12px;margin:0 3px 12px}.filter-chip{margin-left:4px;background:#f1edff;color:#5b4bc4;border-radius:99px;padding:4px 8px;font-weight:700}

.employee-card-grid{display:grid;grid-template-columns:repeat(3,minmax(280px,1fr));gap:15px}.employee-card{background:#fff;border:1px solid #dde2eb;border-radius:14px;padding:18px 18px 15px;min-width:0;box-shadow:0 2px 7px rgba(16,24,40,.025);display:flex;flex-direction:column}.employee-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:10px;min-height:74px}.avatar-lg{width:38px;height:54px;border-radius:14px;background:#eee9ff}.employee-title{min-width:0}.employee-title h3{font-size:15px;margin:0 0 3px;line-height:1.25}.employee-title p{margin:0;color:#5e7191;line-height:1.45;font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.status-pill{font-size:11px;border-radius:18px;padding:6px 9px;display:inline-flex;align-items:center;gap:6px;line-height:1.15;white-space:nowrap}.status-pill i{width:5px;height:5px;border-radius:50%;background:currentColor}.status-in{background:#ecfbf4;color:#08784f;border:1px solid #ccefe0}.status-out{background:#fff4e7;color:#9a5b08;border:1px solid #f2ddbd}.status-maternity{background:#fdeefd;color:#99459d;border:1px solid #f1d7f3}.tag-row{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 12px}.tag{border-radius:99px;font-size:11px;padding:4px 8px;line-height:1;border:1px solid}.tag-purple{color:#5a49c4;background:#f5f3ff;border-color:#dcd5ff}.tag-amber{color:#b25d07;background:#fff9ef;border-color:#f5dab3}.tag-neutral{color:#5b6f8f;background:#f7f9fc;border-color:#e5e9f0}.employee-divider{height:1px;background:#e3e7ef;margin:4px 0 13px}.contact-list{display:flex;flex-direction:column;gap:8px;color:#5e7191;font-size:12px;min-height:75px}.contact-list div{display:flex;align-items:center;gap:8px;min-width:0}.contact-list svg,.employee-note svg{width:15px;height:15px;flex:0 0 auto;color:#7385a2}.contact-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;margin-bottom:15px}.employee-meta>div{min-width:0}.employee-meta span{display:block;font-size:10px;letter-spacing:.04em;color:#97a3b8;font-weight:800;margin-bottom:5px}.employee-meta strong{font-size:12px;line-height:1.35;display:block;overflow-wrap:anywhere}.employee-note{display:flex;align-items:center;gap:7px;background:#f7f9fc;color:#667895;border-radius:10px;padding:9px 10px;font-size:11px;min-height:36px}.employee-note span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:12px;font-size:11px}.employee-actions a{color:#5b4bc4;font-weight:800}.empty-card{grid-column:1/-1;padding:34px;text-align:center}.empty-card h3{margin:0 0 4px}.empty-card p{margin:0;color:var(--muted)}

.form-panel{padding:23px}.form-section-title{display:grid;grid-template-columns:35px minmax(0,1fr);gap:11px;align-items:start;padding:3px 0 16px;margin-top:22px;border-bottom:1px solid #edf0f4}.form-section-title:first-child{margin-top:0}.form-section-title>span{width:29px;height:29px;border-radius:9px;background:#f0edff;color:#5b4bc4;display:grid;place-items:center;font-size:10px;font-weight:800}.form-section-title h2{font-size:15px;margin:0}.form-section-title p{font-size:11px;color:var(--muted);margin:3px 0 0}.form-grid{display:grid;gap:14px;margin-top:17px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-panel label,.inline-add label,.stack-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#475467}.form-panel textarea{resize:vertical;min-height:92px}.temporary-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:17px}.subsection{border-radius:13px;border:1px solid #e3e5ed;padding:16px}.subsection h3{font-size:13px;margin:0 0 3px}.soft-purple{background:#fbfaff}.soft-pink{background:#fffafd}.full-field{margin-top:14px}.helper{font-size:10px;color:#8b95a6;margin:10px 0 0;line-height:1.4}.form-actions{display:flex;justify-content:flex-end;margin-top:20px;padding-top:17px;border-top:1px solid #edf0f4}

.detail-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);gap:16px;align-items:start}.profile-detail-card{padding:20px}.profile-hero{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:13px;align-items:start}.avatar-xl{width:58px;height:58px;font-size:16px}.profile-hero h2{font-size:18px;margin:2px 0 4px}.profile-hero p{margin:0;color:#667085}.detail-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin-top:18px}.detail-contact-grid>div{padding:12px 0;border-bottom:1px solid #edf0f4;min-width:0}.detail-contact-grid span,.detail-meta span{display:block;font-size:9px;letter-spacing:.07em;color:#98a2b3;font-weight:800;margin-bottom:5px}.detail-contact-grid strong,.detail-meta strong{display:block;font-size:12px;overflow-wrap:anywhere}.detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.detail-note{margin-top:4px}.history-column{display:flex;flex-direction:column;gap:16px}.history-panel{padding-bottom:17px}.inline-add{display:grid;grid-template-columns:1fr 1fr .72fr auto;gap:9px;align-items:end;padding:15px 18px;border-bottom:1px solid #edf0f4}.maternity-add{grid-template-columns:1fr 1fr auto}.history-list{display:flex;flex-direction:column;gap:8px;padding:14px 18px 0}.history-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e6e8ef;border-radius:10px;background:#fcfcfd;font-size:11px}.history-item>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.history-item form{margin:0}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:800}.badge.yes{background:#e8f7ef;color:#277357}.badge.no{background:#f2f4f7;color:#667085}.badge.info{background:#f0edff;color:#5b4bc4}.badge.maternity{background:#fdeefd;color:#99459d}.danger-link{border:0;background:transparent;color:#b42318;font-size:10px;font-weight:800;cursor:pointer}.delete-zone{margin-top:16px;display:flex;justify-content:flex-end}

.alert{padding:11px 13px;border-radius:9px;margin-bottom:13px}.alert.error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.login-body{min-height:100vh;background:#f7f7fb;display:grid;place-items:center;padding:24px}.login-shell{width:min(850px,100%);display:grid;grid-template-columns:.9fr 1.1fr;background:#fff;border:1px solid #e4e7ec;border-radius:20px;overflow:hidden;box-shadow:0 18px 48px rgba(16,24,40,.08)}.login-brand-side{background:linear-gradient(155deg,#5b4bc4,#7b6bd6);color:#fff;padding:42px;position:relative;overflow:hidden}.login-mark{background:#fff;color:#5b4bc4;box-shadow:none;margin-bottom:50px}.login-brand-side h1{font-size:28px;margin:0 0 10px}.login-brand-side p{color:#ece9ff;line-height:1.6;margin:0;max-width:300px}.login-decoration{display:flex;gap:8px;position:absolute;bottom:34px;left:42px}.login-decoration span{display:block;height:8px;border-radius:99px;background:rgba(255,255,255,.32)}.login-decoration span:nth-child(1){width:54px}.login-decoration span:nth-child(2){width:30px}.login-decoration span:nth-child(3){width:14px}.login-card{padding:48px 45px}.login-card h2{font-size:25px;margin:5px 0 7px}.login-card>p:not(.section-kicker){color:var(--muted);margin:0 0 23px}.stack-form{display:flex;flex-direction:column;gap:15px}.stack-form .primary{margin-top:5px;padding:12px}

@media(max-width:1250px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-card-grid{grid-template-columns:repeat(2,minmax(280px,1fr))}.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.search-wrap{grid-column:span 2}.detail-layout{grid-template-columns:1fr}}
@media(max-width:920px){.app-shell{grid-template-columns:78px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.brand-copy,.nav-label,.side-nav a span,.sidebar-user>div:last-child,.logout-button:not(svg){font-size:0}.app-brand{justify-content:center;padding-left:0;padding-right:0}.side-nav a{justify-content:center}.sidebar-user{display:flex;justify-content:center;padding-left:0;padding-right:0}.logout-button{justify-content:center}.topbar{padding:0 20px}.content{padding:23px 20px}.dashboard-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.temporary-grid{grid-template-columns:1fr}}
@media(max-width:680px){.app-shell{display:block}.sidebar{position:static;height:auto;display:flex;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--border);padding:10px}.app-brand{padding:0}.brand-copy,.sidebar-user,.logout-form{display:none}.side-nav{margin-left:auto;flex-direction:row}.side-nav a{padding:9px}.main-area{min-width:0}.topbar{height:58px;padding:0 14px}.topbar-title{font-size:12px}.topbar-new{font-size:0;width:34px;height:34px;padding:0}.topbar-new::after{content:'+';font-size:18px}.content{padding:18px 14px 30px}.page-intro{align-items:flex-start;flex-direction:column}.page-intro h1{font-size:23px}.actions{width:100%}.actions .button{flex:1}.kpi-grid{grid-template-columns:1fr}.employee-card-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.search-wrap{grid-column:auto}.employee-meta{grid-template-columns:1fr 1fr}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.detail-contact-grid,.detail-meta{grid-template-columns:1fr}.profile-hero{grid-template-columns:52px minmax(0,1fr)}.profile-hero>.badge{grid-column:1/-1;width:max-content}.inline-add,.maternity-add{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-brand-side{display:none}.login-card{padding:34px 24px}}

/* --- Base44-style roster override --- */
:root{
  --page-bg:#f4f6fa;
  --surface:#ffffff;
  --ink:#10204a;
  --muted-2:#617598;
  --line:#d9e0ea;
  --primary:#5c52ea;
}
body.shell-body{margin:0;background:var(--page-bg);font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;color:var(--ink)}
a{text-decoration:none}
.shell-header{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #d6dde8}
.shell-header-inner{max-width:1380px;margin:0 auto;display:grid;grid-template-columns:auto minmax(320px,1fr) auto;align-items:center;gap:18px;padding:18px 24px}
.header-brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:700;font-size:18px}.header-logo{width:36px;height:36px;border-radius:12px;background:#5a4fe8;color:#fff;display:grid;place-items:center;font-weight:800}.header-brand-copy{font-size:17px}
.header-search{position:relative;max-width:480px;justify-self:end;width:100%}.header-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#7a8ba7;fill:none;stroke:currentColor;stroke-width:2}.header-search input,.toolbar-search-input,.chip-group-form select{width:100%;height:48px;border-radius:15px;border:1px solid #d5dce8;background:#f5f7fb;color:#526886;padding:0 16px 0 44px;font-size:15px;outline:none}.chip-group-form select{padding-left:14px;background:#fff;height:42px;border-radius:12px}.header-primary-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border-radius:15px;background:#574de8;color:#fff;font-weight:700;box-shadow:0 10px 20px rgba(87,77,232,.16)}
.site-main{max-width:1380px;margin:0 auto;padding:34px 24px 42px}
.hero-block h1{margin:0;font-size:25px;line-height:1.12;color:#0e224d}.hero-block p{margin:8px 0 0;color:#657998;font-size:14px}.hero-block.compact{margin-bottom:12px}
.roster-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;margin-top:24px;margin-bottom:22px}.roster-kpi{min-height:182px;border-radius:16px;padding:22px 20px 18px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 10px 24px rgba(16,24,40,.06)}.roster-kpi-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.roster-kpi-head span{font-size:13px;font-weight:800;line-height:1.35;letter-spacing:.02em}.roster-kpi-head i{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-style:normal;font-weight:800}.roster-kpi-number{font-size:48px;font-weight:800;line-height:1}.roster-kpi-foot{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.2}.roster-kpi-foot b{display:inline-flex;align-items:center;padding:4px 7px;border-radius:99px;background:rgba(255,255,255,.18)}.roster-kpi-foot span{opacity:.92}.kpi-purple{background:linear-gradient(135deg,#8b5cf6,#7c5ae4)}.kpi-green{background:#1dbc83}.kpi-blue{background:#24a1dd}.kpi-teal{background:#26b8b0}.kpi-orange{background:#f6a405}.kpi-red{background:#f63c60}.kpi-magenta{background:#c541e4}
.list-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:22px 0 18px}.list-section-head h2{margin:0;font-size:18px;color:#10214a}.total-counter{color:#64789a;font-size:14px}
.filter-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:18px}.mini-search-icon{width:28px;text-align:center;color:#6f81a2}.chip-group{display:flex;gap:10px;flex-wrap:wrap;align-items:center;flex:1}.filter-chip-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:999px;border:1px solid #d7deea;background:#fff;color:#6f80a0;font-size:14px;font-weight:600}.filter-chip-btn.active{background:#6458ee;color:#fff;border-color:#6458ee}.view-toggle{display:flex;gap:10px}.view-btn{width:36px;height:36px;border-radius:12px;border:1px solid #d7deea;background:#fff;color:#6f80a0;display:grid;place-items:center}.view-btn.active{background:#f0eeff;color:#6458ee;border-color:#ddd7ff}.search-filters{align-items:flex-start}.chip-group-form{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(140px,.8fr)) auto auto;gap:10px}.toolbar-search-input{padding-left:16px;height:42px;background:#fff}.toolbar-apply,.toolbar-reset{height:42px;padding:0 16px;border-radius:12px;border:0;font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center}.toolbar-apply{background:#6458ee;color:#fff}.toolbar-reset{background:#fff;border:1px solid #d7deea;color:#6f80a0}
.roster-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.employee-card.roster-card{background:#fff;border:1px solid #d5dce8;border-radius:16px;padding:18px 18px 16px;box-shadow:none}.employee-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:start;min-height:74px}.avatar.avatar-lg{width:44px;height:44px;border-radius:999px;background:#e4ddff;color:#5848e8;font-size:22px;font-weight:800;display:grid;place-items:center}.employee-title h3{margin:0 0 2px;font-size:16px;color:#10214a;line-height:1.2}.employee-title p{margin:0;color:#677b99;font-size:13px;line-height:1.45}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 11px;font-size:12px;font-weight:700}.status-pill i{width:7px;height:7px;border-radius:50%;background:currentColor}.status-in{background:#ebfaf1;color:#0e9158;border:1px solid #bfe9cf}.status-out{background:#fff5e9;color:#c47a12;border:1px solid #f1d7ad}.status-maternity{background:#fcecff;color:#b03cd4;border:1px solid #efccfb}.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 12px}.tag{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 10px;font-size:12px;font-weight:600;border:1px solid}.tag-purple{background:#f2efff;color:#5b54e8;border-color:#d9d0ff}.tag-amber{background:#fff7ea;color:#d0861d;border-color:#f0d4a3}.tag-neutral{background:#f7f9fc;color:#8a98ae;border-color:#e3e8ef}.employee-divider{height:1px;background:#dce2ec;margin:12px 0}.contact-list{display:flex;flex-direction:column;gap:10px;min-height:84px}.contact-list div{display:flex;align-items:center;gap:10px;color:#64789a;font-size:13px}.contact-list svg{width:16px;height:16px;color:#7e8fab;flex:0 0 auto}.employee-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px}.employee-meta span{display:block;margin-bottom:6px;color:#95a0b6;font-size:11px;font-weight:800;letter-spacing:.03em}.employee-meta strong{display:block;color:#10214a;font-size:12px;line-height:1.35}.employee-note{display:flex;align-items:center;gap:8px;min-height:40px;border-radius:12px;background:#f5f7fb;color:#6d7f9b;padding:0 12px;font-size:12px}.employee-note svg{width:16px;height:16px;color:#8a98ae}
.panel.empty-card{background:#fff;border:1px solid #d5dce8;border-radius:16px;padding:24px;text-align:center}

/* keep forms/detail reasonably aligned */
.page-intro,.dashboard-grid,.sidebar,.topbar,.app-shell,.main-area{all:unset}
.page-intro,.dashboard-grid{display:block}
.panel{background:#fff;border:1px solid #d5dce8;border-radius:16px}
.form-panel,.profile-detail-card,.history-panel{background:#fff;border:1px solid #d5dce8;border-radius:16px;padding:20px}.detail-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);gap:16px}.profile-hero{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:start}.avatar-xl{width:58px;height:58px;border-radius:999px;background:#e4ddff;color:#5848e8;font-size:18px;font-weight:800;display:grid;place-items:center}.detail-contact-grid,.detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.detail-contact-grid>div{padding:12px 0;border-bottom:1px solid #edf0f4}.detail-contact-grid span,.detail-meta span{display:block;font-size:10px;color:#95a0b6;font-weight:800;letter-spacing:.04em;margin-bottom:6px}.detail-contact-grid strong,.detail-meta strong{font-size:13px;color:#10214a}.history-column{display:flex;flex-direction:column;gap:16px}.inline-add{display:grid;grid-template-columns:1fr 1fr .8fr auto;gap:10px;align-items:end;padding:18px;border-bottom:1px solid #edf0f4}.maternity-add{grid-template-columns:1fr 1fr auto}.history-list{display:flex;flex-direction:column;gap:10px;padding:16px}.history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border:1px solid #e6ebf2;border-radius:12px}.danger-link{background:none;border:0;color:#cc3f56;font-weight:700;cursor:pointer}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.badge.yes{background:#eafaf1;color:#0e9158}.badge.no{background:#eef2f6;color:#667085}.badge.info{background:#f2efff;color:#5b54e8}.badge.maternity{background:#fcecff;color:#b03cd4}.form-grid{display:grid;gap:14px;margin-top:16px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-panel label,.inline-add label,.stack-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475467}.form-panel input,.form-panel select,.form-panel textarea,.inline-add input,.inline-add select,.stack-form input{height:42px;border:1px solid #d6dde8;border-radius:12px;background:#fff;padding:0 12px;font:inherit;color:#344054}.form-panel textarea{height:auto;min-height:100px;padding:12px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-section-title{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start;padding:6px 0 16px;border-bottom:1px solid #edf0f4;margin-top:18px}.form-section-title:first-child{margin-top:0}.form-section-title>span{width:30px;height:30px;border-radius:10px;background:#f2efff;color:#5b54e8;display:grid;place-items:center;font-size:12px;font-weight:800}.form-section-title h2{margin:0;font-size:16px}.form-section-title p{margin:4px 0 0;color:#667085;font-size:12px}.temporary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.subsection{background:#fff;border:1px solid #d6dde8;border-radius:14px;padding:16px}.subsection h3{margin:0 0 4px}.soft-purple{background:#faf9ff}.soft-pink{background:#fffafd}.login-body{min-height:100vh;background:#f4f6fa;display:grid;place-items:center;padding:24px}.login-shell{width:min(900px,100%);display:grid;grid-template-columns:.95fr 1.05fr;background:#fff;border:1px solid #d5dce8;border-radius:20px;overflow:hidden}.login-brand-side{background:linear-gradient(135deg,#5b54e8,#736df0);color:#fff;padding:42px}.login-mark{background:#fff;color:#5b54e8;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-weight:800;margin-bottom:44px}.login-card{padding:44px}.stack-form{display:flex;flex-direction:column;gap:14px}.stack-form .primary{height:44px;border-radius:12px;background:#6458ee;color:#fff;border:0;font-weight:700}.alert.error{background:#fef3f2;border:1px solid #fecdca;color:#b42318;border-radius:12px;padding:12px;margin-bottom:12px}

@media (max-width:1280px){.roster-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chip-group-form{grid-template-columns:repeat(3,minmax(180px,1fr))}.detail-layout{grid-template-columns:1fr}}
@media (max-width:980px){.shell-header-inner{grid-template-columns:1fr;justify-items:stretch}.header-search{max-width:none;justify-self:stretch}.roster-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chip-group-form{grid-template-columns:repeat(2,minmax(160px,1fr))}.detail-contact-grid,.detail-meta,.temporary-grid{grid-template-columns:1fr}.inline-add,.maternity-add{grid-template-columns:1fr}}
@media (max-width:640px){.site-main{padding:20px 14px 30px}.shell-header-inner{padding:14px}.header-primary-btn{width:100%}.roster-kpis,.roster-grid,.chip-group-form{grid-template-columns:1fr}.list-section-head,.filter-toolbar{flex-direction:column;align-items:stretch}.view-toggle{justify-content:flex-end}.employee-meta{grid-template-columns:1fr 1fr}.login-shell{grid-template-columns:1fr}.login-brand-side{display:none}.login-card{padding:30px 22px}}

/* --- Pixel-tuning pass v2 --- */
.site-main{max-width:1400px;padding-top:28px}
.shell-header{box-shadow:0 1px 0 rgba(16,24,40,.03)}
.shell-header-inner{gap:16px;padding:18px 18px 14px 18px}
.header-brand-copy{font-size:16px;font-weight:700}
.header-search{max-width:448px}
.header-search input{height:42px;border-radius:14px;background:#f0f3f8;border-color:#d2dae7;color:#627693;font-size:14px}
.header-primary-btn{height:44px;padding:0 20px;border-radius:14px;background:#564ce8;font-size:14px}
.hero-block{margin-top:6px}.hero-block h1{font-size:24px;font-weight:800;letter-spacing:-.02em}.hero-block p{font-size:13px;color:#5f7696}
.roster-kpis{gap:14px;margin-top:24px;margin-bottom:22px}
.roster-kpi{min-height:182px;border-radius:15px;padding:20px 20px 18px}
.roster-kpi-head span{font-size:13px;line-height:1.42;letter-spacing:.01em}
.roster-kpi-head i{width:38px;height:38px;border-radius:13px;background:rgba(255,255,255,.18);font-size:18px}
.roster-kpi-number{font-size:50px;letter-spacing:-.03em}
.roster-kpi-foot{gap:8px;font-size:12px}.roster-kpi-foot b{padding:4px 8px;border-radius:12px;font-size:12px}
.kpi-purple{background:linear-gradient(135deg,#8b5cf6 0%,#7a52e7 100%)}
.kpi-green{background:linear-gradient(135deg,#1fc384 0%,#1db77d 100%)}
.kpi-blue{background:linear-gradient(135deg,#27a5df 0%,#2399d3 100%)}
.kpi-teal{background:linear-gradient(135deg,#2abeb7 0%,#24b1ab 100%)}
.kpi-orange{background:linear-gradient(135deg,#f5a000 0%,#f3a304 100%)}
.kpi-red{background:linear-gradient(135deg,#f53f63 0%,#f3395d 100%)}
.kpi-magenta{background:linear-gradient(135deg,#c74ae7 0%,#c03fe1 100%)}
.list-section-head{margin:18px 0 14px}.list-section-head h2{font-size:18px;font-weight:800}.total-counter{font-size:13px}
.filter-toolbar{margin-bottom:16px}.mini-search-icon{font-size:18px;color:#7788a4}
.filter-chip-btn{min-height:30px;padding:0 14px;border-radius:999px;font-size:13px;background:#f8fafc;color:#677b99;border-color:#d8e0ea}
.filter-chip-btn.active{background:#6559ef;color:#fff;border-color:#6559ef}
.view-btn{width:34px;height:34px;border-radius:11px;font-size:14px}
.roster-grid{gap:16px}.employee-card.roster-card{border-radius:15px;padding:18px 20px 16px;background:#fcfdff}
.employee-head{grid-template-columns:40px minmax(0,1fr) auto;gap:12px;min-height:80px}.avatar.avatar-lg{width:40px;height:40px;font-size:20px;background:#e8e1ff;color:#5a4fe8}
.employee-title h3{font-size:15px;font-weight:800;margin-bottom:1px}.employee-title p{font-size:13px;color:#657998;line-height:1.5}
.status-pill{padding:5px 11px;font-size:12px;border-radius:999px}.status-pill i{width:7px;height:7px}
.tag-row{margin:12px 0 12px;gap:7px}.tag{min-height:24px;padding:0 9px;font-size:12px}
.contact-list{gap:9px;min-height:78px}.contact-list div{font-size:13px;color:#657998}.contact-list svg{width:15px;height:15px;color:#7e90ac}
.employee-divider{background:#dbe2ec;margin:13px 0}
.employee-meta{gap:16px;margin-bottom:14px}.employee-meta span{font-size:10px;letter-spacing:.05em;color:#9ca7bc}.employee-meta strong{font-size:12px;font-weight:400;line-height:1.4}
.employee-note{min-height:38px;border-radius:11px;background:#f2f5f9;color:#6b7d99;font-size:12px}
@media (max-width:1400px){.roster-grid{grid-template-columns:repeat(4,minmax(240px,1fr))}.roster-kpis{grid-template-columns:repeat(7,minmax(150px,1fr))}}

/* --- KPI alignment + administration --- */
.roster-kpi{
  display:grid;
  grid-template-rows:58px 66px 30px;
  align-items:start;
}
.roster-kpi-head{height:58px;align-items:flex-start}
.roster-kpi-number{height:66px;display:flex;align-items:center;margin:0;align-self:center}
.roster-kpi-foot{height:30px;align-self:end}
.roster-kpi:not(.kpi-purple):not(.kpi-green) .roster-kpi-foot:empty{visibility:hidden}
.header-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.header-admin-btn,.header-logout-btn{height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:0 16px;font-weight:700;font-size:13px}
.header-admin-btn{background:#f1efff;color:#574de8;border:1px solid #ddd8ff}
.header-admin-btn:hover{background:#e8e4ff}
.header-logout-form{margin:0}.header-logout-btn{background:#fff;color:#687b98;border:1px solid #d5dce8;cursor:pointer}.header-logout-btn:hover{background:#f7f9fc}
.admin-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.admin-back{color:#5c52ea;font-weight:700;font-size:13px}
.admin-alert{padding:12px 14px;border-radius:12px;margin-bottom:16px;font-size:13px;font-weight:600}.admin-alert.error{background:#fff0f1;color:#b4233b;border:1px solid #f5cbd2}.admin-alert.success{background:#ebfaf2;color:#08784f;border:1px solid #c9ecd9}
.admin-layout{display:grid;grid-template-columns:minmax(290px,.72fr) minmax(0,1.5fr);gap:18px;align-items:start}.admin-card{background:#fff;border:1px solid #d5dce8;border-radius:16px;overflow:hidden}.admin-card-head{padding:20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7ebf1}.admin-card-head h2{margin:0;font-size:17px}.admin-card-head p{margin:3px 0 0;color:#667a98;font-size:12px}.admin-icon{width:36px;height:36px;border-radius:12px;background:#f0edff;color:#5a4fe8;display:grid;place-items:center;font-size:22px;font-weight:700}.admin-create-form{padding:20px;display:flex;flex-direction:column;gap:14px}.admin-create-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475467}.admin-create-form input,.admin-create-form select,.admin-password-form input{height:42px;border:1px solid #d5dce8;border-radius:11px;padding:0 12px;background:#fff;color:#344054;outline:none}.admin-create-form input:focus,.admin-create-form select:focus,.admin-password-form input:focus{border-color:#8b82f4;box-shadow:0 0 0 3px #efedff}.admin-submit{height:44px;border:0;border-radius:12px;background:#5c52ea;color:#fff;font-weight:800;cursor:pointer}.admin-users-list{display:flex;flex-direction:column}.admin-user-row{display:grid;grid-template-columns:42px minmax(190px,1fr) minmax(250px,.9fr) auto;gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid #edf0f4}.admin-user-row:last-child{border-bottom:0}.admin-user-avatar{width:40px;height:40px;border-radius:999px;background:#ece9ff;color:#5a4fe8;display:grid;place-items:center;font-weight:800}.admin-user-main{min-width:0}.admin-user-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#10214a}.admin-user-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:5px;color:#7b8ba5;font-size:11px}.admin-role{padding:3px 7px;border-radius:999px;background:#eef2f6;color:#667085;font-weight:700}.admin-role.admin{background:#f0edff;color:#5a4fe8}.admin-you{color:#0b8a5b;font-weight:700}.admin-password-form{display:flex;gap:8px}.admin-password-form input{min-width:0;width:100%}.admin-password-form button,.admin-delete{height:38px;border-radius:10px;padding:0 12px;font-size:11px;font-weight:800;cursor:pointer}.admin-password-form button{border:1px solid #d7deea;background:#f8f9fc;color:#5d6f8c}.admin-delete{border:1px solid #f3ccd3;background:#fff1f3;color:#c23750}.admin-delete-placeholder{width:61px}
@media(max-width:1100px){.admin-layout{grid-template-columns:1fr}.admin-user-row{grid-template-columns:42px minmax(0,1fr);}.admin-password-form,.admin-user-row>form:last-child,.admin-delete-placeholder{grid-column:2}.header-actions{justify-content:flex-start}.shell-header-inner{grid-template-columns:1fr}.header-search{justify-self:stretch;max-width:none}}
@media(max-width:640px){.admin-hero{align-items:flex-start;flex-direction:column}.admin-user-row{grid-template-columns:40px minmax(0,1fr)}.admin-password-form{flex-direction:column}.header-admin-btn,.header-primary-btn,.header-logout-btn{width:100%}}
