/* Ops panel — reuses the original attendance app's sidebar look, extended with
   dense table styles for an internal tool. */
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%;background:#f8fafc}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:#0f172a;-webkit-font-smoothing:antialiased;font-size:14px}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
svg{width:18px;height:18px;stroke-linecap:round;stroke-linejoin:round}

.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#0F172A;color:#cbd5e1;z-index:20;display:flex;flex-direction:column}
.brand-wrap{display:flex;align-items:center;gap:10px;padding:18px 16px}
.brand-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#0d9488,#10b981);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:17px;flex-shrink:0}
.brand-name{color:#fff;font-weight:800;font-size:15px;line-height:1}.brand-sub{color:#64748b;font-size:10.5px;font-weight:600;margin-top:3px}
.menu{padding:8px 12px;display:flex;flex-direction:column;gap:4px}
.menu a{height:40px;border-radius:9px;color:#cbd5e1;display:flex;align-items:center;gap:10px;padding:0 12px;font-size:13.5px;font-weight:650}
.menu a.active{background:rgba(13,148,136,.22);color:#fff}
.menu a:hover{background:rgba(148,163,184,.12);color:#fff}
.menu a .b{margin-left:auto;background:#dc2626;color:#fff;border-radius:999px;font-size:10px;font-weight:800;padding:1px 7px}
.sidebar-foot{margin-top:auto;padding:16px;color:#64748b;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}

.main{margin-left:236px;min-height:100vh}
.header{min-height:60px;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:10px 24px;gap:16px;flex-wrap:wrap}
.header h1{font-size:18px;font-weight:800}.header p{font-size:12px;color:#64748b;font-weight:600;margin-top:2px}
.filterbar{display:flex;align-items:center;gap:8px}
.filterbar select,.header .inp{height:34px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;padding:0 10px;font-size:13px;color:#0f172a;outline:none}
.filterbar select:focus,.inp:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.content{padding:20px 24px 40px;max-width:1400px}

/* Stat tiles */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:20px}
.stat{border-radius:14px;color:#fff;padding:16px;box-shadow:0 10px 24px -14px rgba(15,23,42,.45)}
.stat h2{font-size:26px;font-weight:800;line-height:1}.stat p{font-size:12.5px;font-weight:600;opacity:.92;margin-top:6px}
.stat.teal{background:linear-gradient(135deg,#0d9488,#10b981)}
.stat.red{background:linear-gradient(135deg,#dc2626,#f43f5e)}
.stat.amber{background:linear-gradient(135deg,#d97706,#f59e0b)}
.stat.blue{background:linear-gradient(135deg,#3b82f6,#6366f1)}
.stat.slate{background:linear-gradient(135deg,#475569,#64748b)}
.stat a,.stat{color:#fff}

/* Panels + tables */
.panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 10px 24px -22px rgba(15,23,42,.4);overflow:hidden;margin-bottom:18px}
.panel-title{font-size:14px;font-weight:800;padding:13px 16px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-title .sub{font-size:12px;color:#64748b;font-weight:600}
table.grid{width:100%;border-collapse:collapse;font-size:13px}
table.grid th{background:#f1f5f9;text-align:left;padding:9px 12px;font-weight:700;color:#475569;font-size:11.5px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;position:sticky;top:0}
table.grid td{padding:9px 12px;border-top:1px solid #eef2f7;white-space:nowrap}
table.grid tr:hover td{background:#f8fafc}
.tbl-scroll{overflow-x:auto}
.muted{color:#64748b}.mono{font-variant-numeric:tabular-nums}
.right{text-align:right}.center{text-align:center}

/* Badges / pills */
.badge{padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;display:inline-block}
.badge.ok{background:#dcfce7;color:#16a34a}
.badge.bad{background:#fee2e2;color:#dc2626}
.badge.warn{background:#fef3c7;color:#d97706}
.badge.info{background:#dbeafe;color:#2563eb}
.badge.mut{background:#f1f5f9;color:#64748b}

/* Muster matrix codes */
.mx{width:100%;border-collapse:collapse;font-size:11.5px}
.mx th,.mx td{border:1px solid #e8edf3;padding:4px 5px;text-align:center;white-space:nowrap}
.mx th.sticky,.mx td.sticky{position:sticky;left:0;background:#fff;text-align:left;z-index:1;min-width:150px}
.mx thead th{background:#f1f5f9;font-weight:700;position:sticky;top:0}
.c-P{background:#dcfce7}.c-A{background:#fee2e2}.c-HD{background:#fef3c7}.c-L{background:#dbeafe}
.c-UL{background:#fce7f3}.c-H{background:#e2e8f0}.c-WO{background:#f1f5f9;color:#94a3b8}

/* Buttons + forms */
.btn{height:36px;padding:0 14px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;font-weight:700;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.btn:hover{background:#f8fafc}
.btn.pri{background:#0d9488;color:#fff;border:0;box-shadow:0 8px 16px -10px rgba(13,148,136,.9)}
.btn.pri:hover{background:#0f766e}
.btn.danger{background:#fee2e2;color:#dc2626;border:0}
.btn.sm{height:30px;padding:0 10px;font-size:12px}
.btn.fix{background:#fef3c7;color:#b45309;border:0;height:28px;padding:0 10px;font-size:12px}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.form-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 10px 24px -22px rgba(15,23,42,.4);padding:18px;margin-bottom:18px;max-width:640px}
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.fld.full{grid-column:1/-1}
.fld label{font-size:12px;font-weight:700;color:#475569}
.fld input,.fld select,.fld textarea{height:38px;border:1px solid #dbe3ef;border-radius:9px;padding:0 11px;font-size:14px;outline:none;background:#fff}
.fld textarea{height:auto;padding:9px 11px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.chk{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13px}
.chk input{width:17px;height:17px;accent-color:#0d9488}
.hint{font-size:12px;color:#64748b;font-weight:600;margin-bottom:10px}
.hint code{background:#f1f5f9;border-radius:4px;padding:1px 5px}

/* Flash */
.flashes{margin-bottom:14px;display:flex;flex-direction:column;gap:8px}
.flash{border-radius:10px;padding:10px 13px;font-size:13px;font-weight:700}
.flash.ok{background:#dcfce7;color:#16a34a}
.flash.err{background:#fee2e2;color:#dc2626}

.empty{padding:22px;color:#94a3b8;font-size:13px;font-weight:650;text-align:center}
.section-h{font-size:14px;font-weight:800;margin:22px 0 12px}

/* Login (reuse original look) */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0F172A,#134e4a);padding:24px}
.login-card{width:380px;max-width:92vw;background:#fff;border-radius:18px;padding:32px;box-shadow:0 30px 60px -20px rgba(0,0,0,.5)}
.login-card h1{font-size:21px;font-weight:800;margin-bottom:4px}
.login-card p{color:#64748b;font-size:13px;font-weight:600;margin-bottom:16px}
.login-card input{width:100%;height:46px;border:1px solid #dbe3ef;border-radius:11px;padding:0 14px;font-size:15px;margin-bottom:14px;outline:none}
.login-card input:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.login-card button{width:100%;height:46px;border:0;border-radius:11px;background:#0d9488;color:#fff;font-weight:800;font-size:15px;cursor:pointer}
.err-line{background:#fee2e2;color:#dc2626;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:700;margin-bottom:12px}

@media(max-width:900px){
  .sidebar{position:static;width:auto}.sidebar .menu{display:grid;grid-template-columns:repeat(3,1fr)}.sidebar-foot{display:none}
  .main{margin-left:0}.f-grid{grid-template-columns:1fr}
}

/* Workflow navigation and responsive shell */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mobile-bar,.nav-scrim,.menu-close{display:none}
.sidebar{overflow:hidden}
.sidebar-head{display:flex;align-items:center;justify-content:space-between}
.menu{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#334155 transparent;padding-top:2px;padding-bottom:10px}
.menu-group{margin-top:13px}
.menu-label{padding:0 12px 6px;color:#64748b;font-size:9.5px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.menu a.menu-link{height:36px;gap:10px;padding:0 10px;font-size:13px}
.menu-mark{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:rgba(148,163,184,.11);color:#94a3b8;font-size:10px;font-weight:800;flex-shrink:0}
.menu-link.active .menu-mark{background:#0d9488;color:#fff}
.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(148,163,184,.12);padding:8px 12px 0}
.sidebar-bottom .menu-link{height:36px;border-radius:9px;color:#94a3b8;display:flex;align-items:center;gap:10px;padding:0 10px;font-size:13px;font-weight:650}
.sidebar-bottom .menu-link:hover{background:rgba(148,163,184,.12);color:#fff}
.sidebar-bottom .sidebar-foot{margin:0;padding:12px 10px 14px;font-size:9px}

.filter-wrap{display:flex;align-items:center;gap:8px}
.filter-label{font-size:11px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.06em}
.filter-clear{color:#0f766e;font-size:12px;font-weight:800;padding:7px 3px}
.filter-clear:hover{text-decoration:underline}

/* Action-led overview */
.scope-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;padding:11px 14px;margin-bottom:16px;color:#065f46;font-size:12px}
.scope-banner>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.scope-banner a{font-weight:800;color:#0f766e;white-space:nowrap}
.scope-sep{color:#6ee7b7}.eyebrow{display:block;font-size:9.5px;line-height:1.2;color:#94a3b8;font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin-bottom:3px}
.stat{position:relative;min-height:156px;display:flex;flex-direction:column;transition:transform .16s ease,box-shadow .16s ease}
.stat:hover{transform:translateY(-2px);box-shadow:0 16px 30px -16px rgba(15,23,42,.55)}
.stat h2{font-size:30px;margin-top:7px}.stat h2 small{font-size:16px;opacity:.72}.stat p{margin-top:4px}
.stat-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;opacity:.76}
.stat-link{margin-top:auto;font-size:11px;font-weight:800;opacity:.84}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:18px;align-items:start}
.attention-panel,.shortcuts-panel{margin-bottom:0}
.panel-title .eyebrow{margin-bottom:4px}.task-list{display:flex;flex-direction:column}
.task-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto 18px;align-items:center;gap:11px;padding:13px 16px;border-top:1px solid #eef2f7}
.task-row:first-child{border-top:0}.task-row:hover{background:#f8fafc}
.task-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px}
.task-icon.red{background:#fee2e2;color:#dc2626}.task-icon.amber{background:#fef3c7;color:#d97706}.task-icon.blue{background:#dbeafe;color:#2563eb}
.task-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.task-copy strong{font-size:13px}.task-copy small{font-size:11.5px;color:#64748b;white-space:normal}
.task-count{min-width:27px;text-align:center;border-radius:999px;background:#f1f5f9;color:#475569;padding:3px 8px;font-size:11px;font-weight:800}.task-arrow{color:#94a3b8;font-weight:800}
.shortcut-list{display:flex;flex-direction:column;padding:6px}
.shortcut-list>a{display:flex;align-items:center;gap:11px;padding:10px;border-radius:10px}
.shortcut-list>a:hover{background:#f8fafc}.shortcut-list>a>span{width:32px;height:32px;border-radius:9px;background:#ecfdf5;color:#0f766e;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.shortcut-list>a>div{display:flex;flex-direction:column;gap:2px}.shortcut-list strong{font-size:12.5px}.shortcut-list small{font-size:11px;color:#64748b}
.info-note{margin-top:18px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;color:#64748b;font-size:12px}.info-note strong{color:#334155}

@media(max-width:1100px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:1fr}
}

@media(max-width:900px){
  body.nav-open{overflow:hidden}
  .mobile-bar{height:56px;background:#0f172a;color:#fff;display:flex;align-items:center;padding:0 14px;position:sticky;top:0;z-index:31;box-shadow:0 2px 8px rgba(15,23,42,.22)}
  .mobile-brand{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:800}
  .brand-logo.small{width:29px;height:29px;border-radius:8px;font-size:13px}
  .menu-toggle{border:0;background:transparent;width:36px;height:36px;margin-right:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}
  .menu-toggle span{width:18px;height:2px;background:#cbd5e1;border-radius:2px}
  .sidebar{position:fixed;inset:0 auto 0 0;width:min(290px,86vw);transform:translateX(-102%);transition:transform .22s ease;z-index:40;display:flex}
  body.nav-open .sidebar{transform:translateX(0)}
  .sidebar-head{padding-right:10px}.menu-close{display:block;border:0;background:transparent;color:#94a3b8;font-size:28px;line-height:1;width:38px;height:38px;cursor:pointer}
  .sidebar .menu{display:flex;grid-template-columns:none}
  .nav-scrim{display:block;position:fixed;inset:0;border:0;background:rgba(15,23,42,.58);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;z-index:39}
  body.nav-open .nav-scrim{opacity:1;visibility:visible}
  .sidebar-foot{display:block}
  .main{margin-left:0}.header{top:56px;padding:10px 16px}.content{padding:16px 16px 32px}.f-grid{grid-template-columns:1fr}
  .filter-wrap{width:100%;overflow-x:auto;padding-bottom:1px}.filter-label{display:none}.filterbar{flex:1}.filterbar select{min-width:0;flex:1}
}

@media(max-width:600px){
  .header{align-items:flex-start}.header h1{font-size:17px}.header p{line-height:1.4}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{min-height:142px;padding:14px}.stat h2{font-size:27px}.stat p{font-size:11.5px}
  .scope-banner{align-items:flex-start;flex-direction:column;gap:8px}
  .task-row{grid-template-columns:34px minmax(0,1fr) auto;padding:12px}.task-arrow{display:none}.task-copy small{font-size:10.5px}
  .content{padding-left:12px;padding-right:12px}.panel{border-radius:12px}
  .filterbar select{font-size:12px;padding:0 7px}.filter-clear{font-size:11px}
}

@media(max-width:380px){.stats{grid-template-columns:1fr}.stat{min-height:132px}}

/* Settings information architecture */
.settings-nav{position:sticky;top:80px;z-index:6;display:flex;gap:6px;overflow-x:auto;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:6px;margin-bottom:18px;box-shadow:0 10px 24px -22px rgba(15,23,42,.4)}
.settings-nav a{padding:8px 11px;border-radius:8px;color:#475569;font-size:12px;font-weight:750;white-space:nowrap}
.settings-nav a:hover{background:#ecfdf5;color:#0f766e}
.settings-section{scroll-margin-top:90px;margin-bottom:30px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 12px;padding:0 2px}
.section-heading h2{font-size:16px}.section-heading p{max-width:480px;color:#64748b;font-size:11.5px;font-weight:600;text-align:right}
.settings-section .form-card{max-width:none}
@media(max-width:900px){.settings-nav{top:66px}.settings-section{scroll-margin-top:126px}}
@media(max-width:600px){.section-heading{align-items:flex-start;flex-direction:column;gap:5px}.section-heading p{text-align:left}.settings-nav{margin-left:-2px;margin-right:-2px}}

/* Employee roster */
.roster-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.roster-stat{appearance:none;border:1px solid #e2e8f0;background:#fff;border-radius:13px;padding:13px;text-align:left;display:flex;align-items:center;gap:11px;cursor:pointer;box-shadow:0 10px 24px -22px rgba(15,23,42,.4);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.roster-stat:hover{border-color:#94a3b8;transform:translateY(-1px)}.roster-stat.selected{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.1)}
.roster-stat.has-alert{border-color:#fecaca}.roster-stat>span:last-child{display:flex;flex-direction:column;gap:2px}.roster-stat strong{font-size:20px;line-height:1}.roster-stat small{font-size:10.5px;color:#64748b;font-weight:700}
.roster-stat-icon{width:36px;height:36px;display:flex!important;align-items:center;justify-content:center;border-radius:10px;font-size:11px!important;font-weight:800;flex-shrink:0}
.roster-stat-icon.slate{background:#e2e8f0;color:#475569}.roster-stat-icon.green{background:#dcfce7;color:#16a34a}.roster-stat-icon.gray{background:#f1f5f9;color:#64748b}.roster-stat-icon.red{background:#fee2e2;color:#dc2626}
.roster-alert{display:flex;align-items:center;gap:12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:11px 13px;margin-bottom:16px;color:#9a3412}
.roster-alert-icon{width:30px;height:30px;border-radius:9px;background:#ffedd5;display:flex;align-items:center;justify-content:center;font-weight:900;flex-shrink:0}.roster-alert>div{flex:1}.roster-alert strong{font-size:12.5px}.roster-alert p{font-size:10.5px;color:#c2410c;margin-top:2px}.roster-alert .btn{border-color:#fdba74;color:#9a3412;background:#fff}
.roster-panel{overflow:visible}.roster-toolbar{display:flex;align-items:center;gap:10px;padding:13px;border-bottom:1px solid #e2e8f0}
.roster-search{height:38px;flex:1;min-width:220px;position:relative}.roster-search input{width:100%;height:100%;border:1px solid #dbe3ef;border-radius:9px;padding:0 12px 0 36px;outline:none;color:#0f172a;background:#fff}.roster-search input:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.search-mark{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:17px;height:17px;border:1.5px solid #94a3b8;border-radius:50%;font-size:0}.search-mark:after{content:"";position:absolute;width:6px;height:1.5px;background:#94a3b8;right:-4px;bottom:-2px;transform:rotate(45deg);border-radius:2px}
.roster-filters{display:flex;align-items:center;gap:7px}.roster-filters select{height:38px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;padding:0 28px 0 9px;font-size:12px;color:#334155;outline:none}.roster-filters select:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.roster-resultbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:10.5px;color:#64748b}.roster-resultbar strong{color:#0f172a}
.employee-table td{padding-top:11px;padding-bottom:11px;vertical-align:middle}.employee-identity{display:flex;align-items:center;gap:9px;min-width:180px}.employee-identity>span:last-child,.cell-stack{display:flex;flex-direction:column;gap:2px}.employee-identity small,.cell-stack small{font-size:10.5px;color:#64748b}.cell-stack strong{font-size:12.5px}
.employee-avatar{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#ccfbf1,#dbeafe);color:#0f766e;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex-shrink:0}
.device-badges{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.employee-action .btn{white-space:nowrap}.roster-no-results{padding:32px;text-align:center;color:#94a3b8;font-size:12px;font-weight:700}

/* Employee detail */
.back-link{display:inline-flex;color:#0f766e;font-size:12px;font-weight:800;margin-bottom:12px}.back-link:hover{text-decoration:underline}
.employee-edit-layout{display:grid;grid-template-columns:250px minmax(0,760px);gap:18px;align-items:start}
.employee-profile-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;box-shadow:0 10px 24px -22px rgba(15,23,42,.4);position:sticky;top:82px;text-align:center}
.employee-avatar.large{width:64px;height:64px;border-radius:18px;font-size:23px;margin:0 auto 11px}.employee-profile-card h2{font-size:17px}.employee-code{color:#64748b;font-size:11px;margin-top:3px}.profile-status{margin:12px 0 16px}
.profile-detail{text-align:left;border-top:1px solid #eef2f7;padding:12px 0 0;margin-top:12px;display:flex;flex-direction:column;gap:5px}.profile-detail>span{font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;font-weight:800}.profile-detail>strong{font-size:12.5px}.profile-hint{text-align:left;color:#94a3b8;font-size:10.5px;line-height:1.45;margin-top:15px}
.employee-edit-form{display:flex;flex-direction:column;gap:14px}.edit-section{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px;box-shadow:0 10px 24px -22px rgba(15,23,42,.4)}
.edit-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid #eef2f7;padding-bottom:12px;margin-bottom:15px}.edit-section-head h2{font-size:15px}.edit-section-head p{font-size:10.5px;color:#64748b;font-weight:600;text-align:right}
.active-field{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:11px;margin-bottom:0}.active-field .chk{align-items:flex-start}.active-field .chk>span{display:flex;flex-direction:column;gap:3px}.active-field small{color:#64748b;font-size:10.5px;font-weight:600}
.edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;position:sticky;bottom:10px;box-shadow:0 12px 28px -16px rgba(15,23,42,.45);z-index:5}

@media(max-width:1100px){.roster-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-toolbar{align-items:stretch;flex-direction:column}.roster-filters select{flex:1}.employee-edit-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){
  .employee-edit-layout{grid-template-columns:1fr}.employee-profile-card{position:static;text-align:left;display:grid;grid-template-columns:auto 1fr;column-gap:12px}.employee-avatar.large{grid-row:1/4;margin:0}.employee-profile-card h2,.employee-code,.profile-status{grid-column:2}.profile-status{margin:7px 0 0}.profile-detail,.profile-hint{grid-column:1/-1}
  .employee-table{display:block}.employee-table thead{display:none}.employee-table tbody{display:grid;gap:10px;padding:10px;background:#f8fafc}.employee-table tr[data-employee-row]{display:grid;grid-template-columns:1fr 1fr;gap:11px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:13px}.employee-table tr[data-employee-row][hidden]{display:none}.employee-table td{display:block;border:0!important;padding:0!important;white-space:normal}.employee-table td:before{content:attr(data-label);display:block;color:#94a3b8;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}.employee-table td:first-child{grid-column:1/-1}.employee-table td:first-child:before,.employee-table .employee-action:before{display:none}.employee-table .employee-action{grid-column:1/-1}.employee-table .employee-action .btn{width:100%;justify-content:center}.roster-table-wrap{overflow:visible}.employee-identity{min-width:0}
}
@media(max-width:600px){
  .roster-summary{gap:8px}.roster-stat{padding:10px;gap:8px}.roster-stat-icon{width:32px;height:32px}.roster-stat strong{font-size:17px}.roster-stat small{font-size:9.5px}
  .roster-alert{align-items:flex-start;flex-wrap:wrap}.roster-alert .btn{margin-left:42px}.roster-toolbar{padding:10px}.roster-search{min-width:0}.roster-filters{display:grid;grid-template-columns:1fr 1fr}.roster-reset{grid-column:1/-1;justify-content:center}.roster-resultbar .muted{display:none}
  .employee-table tr[data-employee-row]{grid-template-columns:1fr}.employee-table td:first-child,.employee-table .employee-action{grid-column:1}.edit-section-head{align-items:flex-start;flex-direction:column;gap:4px}.edit-section-head p{text-align:left}.edit-section{padding:14px}.edit-actions{bottom:6px}
}
