@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;750;800&display=swap');

:root{
  --bg:#f7f8fc;
  --surface:#ffffff;
  --surface-soft:#fafbfe;
  --text:#182230;
  --muted:#667085;
  --muted-2:#98a2b3;
  --border:#e7eaf0;
  --border-strong:#d7dce5;
  --primary:#1f4e79;
  --primary-hover:#183e61;
  --primary-soft:#eaf1f7;
  --dark:#253247;
  --danger:#b42318;
  --shadow:0 12px 30px rgba(16,24,40,.055);
  --shadow-soft:0 4px 14px rgba(16,24,40,.035);
}

*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  font-family:"Inter",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
}
button,input,select{font:inherit}
button{cursor:pointer}

.app-shell{min-height:100vh}

/* Sidebar */

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:272px;
  padding:25px 16px 18px;
  background:rgba(255,255,255,.96);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  z-index:10;
}

/* Sidebar Brand - Logo on top, title underneath */
.sidebar-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2px 8px 26px;
  gap:7px;
  transform:translateX(-35px);
}

.sidebar-brand > div:not(.brand-mark){
  transform: translateX(-24px);
}

/* Large ETN Solutions logo */
.brand-mark{
  width:150px;
  height:72px;
  flex:0 0 72px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:inherit;
  box-shadow:none;
}

.brand-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* SlipSync title underneath */
.brand-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.1;
}

.brand-name{
  font-size:19px;
  font-weight:800;
  letter-spacing:-.035em;
  color:#182230;
}

.brand-subtitle{
  margin-top:3px;
  font-size:11px;
  font-weight:500;
  color:var(--muted);
}
.user-card{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 4px 25px;
  padding:11px;
  background:#fbfcfe;
  border:1px solid var(--border);
  border-radius:13px;
}
.avatar,.table-avatar{
  display:grid;place-items:center;
  border-radius:50%;
  background:#eaf1f7;
  color:var(--primary);
  font-weight:800;
  flex:0 0 auto;
}
.avatar{width:35px;height:35px;font-size:13px}
.user-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.user-copy span{font-size:10px;color:var(--muted)}
.user-copy strong{
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-nav{display:flex;flex-direction:column}
.menu-title{
  margin:9px 11px 7px;
  color:var(--muted-2);
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
}
.nav-gap{margin-top:24px}
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  margin:2px 4px;
  padding:11px 12px;
  color:#475467;
  text-decoration:none;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
  transition:.18s ease;
}
.nav-icon{width:18px;text-align:center;color:#7a8796;font-size:15px}
.nav:hover{background:#f3f6f9;color:var(--primary)}
.nav.active{
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:750;
}
.nav.active .nav-icon{color:var(--primary)}
.logout{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:24px 4px 0;
  padding:10px 12px;
  margin-top:auto;
  text-decoration:none;
  color:#667085;
  background:#fff;
  border:1px solid var(--border);
  border-radius:9px;
  font-size:12px;
  font-weight:700;
  transition:.18s ease;
}
.logout:hover{background:#fff5f4;color:var(--danger);border-color:#f3d5d2}

/* Main */
.content{margin-left:272px;min-height:100vh}
.content-inner{max-width:1500px;margin:0 auto;padding:38px 46px 50px}
.page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}
.eyebrow{
  color:#98a2b3;
  font-size:10px;
  font-weight:800;
  letter-spacing:.11em;
  margin-bottom:8px;
}
h1{
  margin:0;
  color:#182230;
  font-size:31px;
  line-height:1.12;
  letter-spacing:-.035em;
  font-weight:800;
}
.sub{margin:8px 0 0;color:var(--muted);font-size:13px}
.header-badge{
  padding:9px 13px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
  box-shadow:var(--shadow-soft);
}
.header-badge span{color:var(--text);font-weight:800}
.back-link{
  text-decoration:none;
  color:var(--primary);
  font-weight:700;
  font-size:12px;
  padding:9px 12px;
  border:1px solid #d9e4ed;
  background:#fff;
  border-radius:9px;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,2.05fr) minmax(280px,.95fr);
  gap:18px;
  align-items:start;
}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:15px;
  padding:21px;
  box-shadow:var(--shadow-soft);
}
.table-card{margin-top:18px;padding-bottom:6px}
.card-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  margin-bottom:19px;
}
.card-heading h2{
  margin:0;
  font-size:16px;
  font-weight:750;
  letter-spacing:-.015em;
}
.card-heading p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.card-icon{
  width:33px;height:33px;
  display:grid;place-items:center;
  border-radius:9px;
  background:#f4f7fa;
  color:var(--primary);
  font-size:16px;
  font-weight:800;
}
.table-heading{margin-bottom:13px}
.table-count{
  color:var(--muted);
  font-size:11px;
  padding:6px 9px;
  border-radius:7px;
  background:#f7f8fa;
  border:1px solid #eef0f4;
}

/* Forms */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px 15px;
}
.form-grid label,.controls label,.bulk-controls label,.login-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
}
label span{
  color:#475467;
  font-size:11px;
  font-weight:700;
}
label em{font-style:normal;color:#d92d20}
input,select{
  width:100%;
  min-height:40px;
  padding:9px 11px;
  color:var(--text);
  background:#fff;
  border:1px solid #dfe4eb;
  border-radius:8px;
  outline:none;
  transition:border .15s,box-shadow .15s;
}
input:focus,select:focus{
  border-color:#7b9ab6;
  box-shadow:0 0 0 3px rgba(31,78,121,.08);
}
input[type="file"]{
  min-height:auto;
  padding:10px;
  background:#fbfcfd;
  font-size:11px;
}
.form-footer{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:7px;
  margin-top:4px;
}
.form-note{color:var(--muted);font-size:11px;line-height:1.5}
button{
  min-height:40px;
  padding:9px 14px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:12px;
  font-weight:750;
  transition:.18s ease;
}
button.primary,.primary{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
button.primary:hover,.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.secondary{
  background:#fff;
  color:#475467;
  border-color:#d9dee6;
}
.secondary:hover{background:#f8fafc}
.dark{
  background:var(--dark);
  color:#fff;
  border-color:var(--dark);
}
.dark:hover{background:#182230}
.full-width{width:100%}
.outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:39px;
  padding:9px 13px;
  border:1px solid #cfd9e3;
  border-radius:8px;
  color:var(--primary);
  background:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:750;
}
.outline:hover{background:#f7fafc}
.full-link{width:100%}

/* Import */
.import-card{position:sticky;top:18px}
.upload-visual{
  min-height:170px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px dashed #cbd5df;
  border-radius:12px;
  background:#fbfcfd;
  color:#344054;
}
.upload-icon{
  width:39px;height:39px;
  display:grid;place-items:center;
  margin-bottom:9px;
  border-radius:10px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:19px;
}
.upload-visual strong{font-size:12px}
.upload-visual span{margin-top:4px;font-size:10px;color:var(--muted)}
.upload-form{margin-top:12px}
.upload-form button{margin-top:9px}
.divider{height:1px;background:var(--border);margin:16px 0}

/* Tables */
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:620px}
th{
  padding:11px 12px;
  text-align:left;
  color:#98a2b3;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-bottom:1px solid var(--border);
  background:#fbfcfd;
}
td{
  padding:12px;
  border-bottom:1px solid #eef1f4;
  color:#667085;
  font-size:12px;
  vertical-align:middle;
}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fcfdff}
.employee-cell{display:flex;align-items:center;gap:9px;color:var(--text)}
.table-avatar{width:28px;height:28px;font-size:10px}
.code-chip{
  display:inline-block;
  padding:4px 7px;
  background:#f5f7f9;
  border:1px solid #e7eaee;
  border-radius:6px;
  color:#475467;
  font-size:10px;
  font-weight:700;
}
.action-col{text-align:right}
.edit-link{color:var(--primary);text-decoration:none;font-size:11px;font-weight:750}
.empty-state{text-align:center;padding:25px;color:var(--muted)}

/* Single generator */
.generator-card,.bulk-card{padding:23px}
.controls-grid{
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr auto;
  gap:13px;
  align-items:end;
}
.load-button{white-space:nowrap}
.check-card{
  min-height:40px;
  padding:7px 10px;
  border:1px solid #dfe4eb;
  border-radius:8px;
  background:#fff;
}
.check-card>span{display:block;margin-bottom:3px}
.switch-row{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}
.switch-row input{width:auto;min-height:auto;accent-color:var(--primary)}
.salary-editor{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.salary-editor label{display:flex;flex-direction:column;gap:6px}
.salary-editor label{font-size:0}
.salary-editor label::first-line{font-size:12px}
.salary-editor input{font-size:12px}
.action-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:20px;
  padding:14px;
  background:#f8fafc;
  border:1px solid #e5eaf0;
  border-radius:11px;
}
.action-panel>div:first-child{display:flex;flex-direction:column;gap:4px}
.action-panel strong{font-size:12px}
.action-panel span{font-size:10px;color:var(--muted)}
.action-buttons{display:flex;gap:8px;flex-wrap:wrap}

/* Bulk */
.bulk-controls{
  display:flex;
  align-items:end;
  gap:11px;
  flex-wrap:wrap;
}
.bulk-controls label{width:230px}
.tracker-card{
  margin-top:20px;
  padding:16px;
  border:1px solid #dce6ef;
  background:#fbfdff;
  border-radius:12px;
}
.tracker-top{display:flex;align-items:flex-start;justify-content:space-between}
.tracker-top>div{display:flex;flex-direction:column;gap:4px}
.tracker-top strong{font-size:12px}
.tracker-top span:not(.status-dot){font-size:10px;color:var(--muted)}
.status-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:#3b82f6;
  box-shadow:0 0 0 5px rgba(59,130,246,.09);
}
.progress{
  height:8px;
  margin:14px 0 8px;
  background:#e8edf2;
  border-radius:999px;
  overflow:hidden;
}
.progress>div{
  height:100%;
  width:0;
  background:var(--primary);
  border-radius:inherit;
  transition:width .35s ease;
}
#progressText{margin:0;color:var(--primary);font-size:12px;font-weight:750}

/* Alerts */
.alert{
  margin-bottom:16px;
  padding:11px 13px;
  border-radius:9px;
  font-size:12px;
}
.alert.success{background:#ecfdf3;color:#067647;border:1px solid #d1fadf}
.alert.error{background:#fff4f2;color:#b42318;border:1px solid #fecdca}

/* Login */
.login-body{
  display:grid;
  place-items:center;
  min-height:100vh;
  overflow:hidden;
  background:#f6f8fb;
}
.login-background{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.login-orb{
  position:absolute;
  width:520px;height:520px;
  border-radius:50%;
  filter:blur(1px);
  opacity:.42;
}
.orb-one{top:-250px;left:-120px;background:radial-gradient(circle,#d9e7f2 0%,rgba(217,231,242,0) 70%)}
.orb-two{right:-180px;bottom:-250px;background:radial-gradient(circle,#e7edf5 0%,rgba(231,237,245,0) 70%)}
.login-card{
  position:relative;
  z-index:1;
  width:min(440px,92vw);
  padding:32px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(16,24,40,.10);
}
.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:30px}
.login-copy h1{font-size:27px}
.login-copy p{margin:9px 0 25px;color:var(--muted);font-size:12px;line-height:1.55}
.login-form{display:flex;flex-direction:column;gap:14px}
.login-button{width:100%;margin-top:5px}
.login-footer{
  margin-top:21px;
  padding-top:16px;
  border-top:1px solid var(--border);
  text-align:center;
  color:var(--muted-2);
  font-size:10px;
}

/* Responsive */
@media(max-width:1100px){
  .controls-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .salary-editor{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .sidebar{width:230px}
  .content{margin-left:230px}
  .content-inner{padding:30px 25px}
  .dashboard-grid{grid-template-columns:1fr}
  .import-card{position:static}
}
@media(max-width:680px){
  .sidebar{
    position:static;
    width:100%;
    min-height:auto;
    padding:15px;
  }
  .sidebar-brand{padding-bottom:15px}
  .user-card{margin-bottom:15px}
  .sidebar-nav{flex-direction:row;flex-wrap:wrap;gap:3px}
  .menu-title{width:100%;margin:12px 6px 5px}
  .nav{flex:1 1 180px}
  .logout{margin-top:14px}
  .content{margin-left:0}
  .content-inner{padding:24px 16px}
  .page-header{flex-direction:column}
  .form-grid,.controls-grid,.salary-editor{grid-template-columns:1fr}
  .form-footer,.action-panel{align-items:stretch;flex-direction:column}
  .action-buttons{flex-direction:column}
  .action-buttons button{width:100%}
  .bulk-controls{flex-direction:column;align-items:stretch}
  .bulk-controls label{width:100%}
}

/* Searchable employee controls */
.search-select-wrap{position:relative}
.search-select{position:relative}
.search-select>input[type="search"]{padding-right:34px}
.search-options{
  display:none;
  position:absolute;
  z-index:30;
  left:0;right:0;top:calc(100% + 5px);
  max-height:260px;
  overflow:auto;
  padding:5px;
  background:#fff;
  border:1px solid var(--border-strong);
  border-radius:10px;
  box-shadow:0 14px 35px rgba(16,24,40,.12);
}
.search-options.open{display:block}
.search-option{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:0;
  border-radius:7px;
  background:#fff;
  color:var(--text);
  text-align:left;
}
.search-option:hover,.search-option.keyboard-active{background:#f4f7fa}
.search-option strong{font-size:12px}
.search-option small{font-size:10px;color:var(--muted)}
.selected-employee-badge{
  display:inline-flex;
  margin-top:13px;
  padding:7px 10px;
  border-radius:8px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:11px;
  font-weight:750;
}

/* Employee manager */
.employee-manager{
  display:grid;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.55fr);
  min-height:520px;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.employee-list-panel{
  min-width:0;
  display:flex;
  flex-direction:column;
  background:#fbfcfd;
  border-right:1px solid var(--border);
}
.search-box{
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px;
  padding:0 10px;
  min-height:40px;
  background:#fff;
  border:1px solid #dfe4eb;
  border-radius:8px;
}
.search-box>span{color:var(--muted-2);font-size:18px}
.search-box input{min-height:36px;padding:7px 0;border:0;box-shadow:none}
.search-box input:focus{box-shadow:none;border:0}
.employee-list{
  flex:1;
  min-height:0;
  max-height:465px;
  overflow-y:auto;
  padding:0 7px 8px;
}
.employee-list-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 8px;
  margin:2px 0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text);
  text-align:left;
}
.employee-list-item:hover{background:#f1f5f8}
.employee-list-item.selected{background:var(--primary-soft);box-shadow:inset 3px 0 0 var(--primary)}
.list-avatar{
  width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;
  border-radius:50%;background:#eaf1f7;color:var(--primary);
  font-size:10px;font-weight:800;
}
.list-copy{min-width:0;display:flex;flex-direction:column;gap:3px;flex:1}
.list-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-copy small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-arrow{font-size:17px;color:var(--muted-2)}
.employee-detail-panel{min-width:0;padding:22px;background:#fff}
.detail-empty,.bulk-detail-empty{
  height:100%;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  gap:7px;
  color:var(--muted);
  padding:30px;
}
.detail-empty strong,.bulk-detail-empty strong{color:var(--text);font-size:14px}
.detail-empty span,.bulk-detail-empty span{max-width:380px;font-size:11px;line-height:1.55}
.detail-empty-icon{width:45px;height:45px;display:grid;place-items:center;margin-bottom:5px;border-radius:13px;background:#f4f7fa;color:var(--primary);font-size:20px}
#employeeDetailForm{position:relative}
.detail-heading{
  grid-column:1/-1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding-bottom:14px;
  margin-bottom:1px;
  border-bottom:1px solid var(--border);
}
.detail-heading .eyebrow{margin-bottom:4px}
.detail-heading h3{margin:0;font-size:17px;letter-spacing:-.02em}
.detail-heading p{margin:4px 0 0;color:var(--muted);font-size:10px}
.detail-status{
  padding:6px 9px;border:1px solid #d8e7dd;border-radius:7px;
  color:#067647;background:#f2fbf5;font-size:9px;font-weight:800;
}
.template-note{
  margin-top:12px;padding:9px 10px;border-radius:8px;
  background:#fffdf4;border:1px solid #f0e4bd;color:#7a5d16;
  font-size:9px;line-height:1.5;
}
.required-swatch{display:inline-block;width:9px;height:9px;margin-right:4px;background:#fff2cc;border:1px solid #eadba7;border-radius:2px}

/* Salary editor */
.editor-heading{margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}
.editor-heading .eyebrow{margin-bottom:4px}
.editor-heading h2{margin:0;font-size:17px}
.editor-heading p{margin:5px 0 0;color:var(--muted);font-size:10px}
.salary-editor{margin-top:14px;padding-top:0;border-top:0}
.salary-editor label{font-size:inherit}
.salary-editor label span{font-size:11px}
.salary-editor input{font-size:12px}
.inline-result{
  margin-top:12px;padding:10px 12px;border-radius:8px;
  font-size:11px;font-weight:700;white-space:pre-line;
}
.inline-result.success{background:#ecfdf3;color:#067647;border:1px solid #d1fadf}
.inline-result.error{background:#fff4f2;color:#b42318;border:1px solid #fecdca}

/* Bulk employee panel and result list */
.bulk-employee-manager{
  display:grid;
  grid-template-columns:minmax(280px,.7fr) minmax(0,1.5fr);
  min-height:440px;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.bulk-employee-manager .employee-list{max-height:390px}
.bulk-detail-empty{min-height:420px}
.detail-loading{display:grid;place-items:center;height:100%;min-height:420px;color:var(--muted);font-size:11px}
.bulk-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:16px;
}
.bulk-detail-grid>div{padding:9px 10px;background:#f8fafc;border:1px solid #edf0f4;border-radius:8px;min-width:0}
.bulk-detail-grid span{display:block;color:var(--muted-2);font-size:9px;font-weight:700;margin-bottom:4px}
.bulk-detail-grid strong{display:block;color:var(--text);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bulk-individual-actions{
  display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)
}
.bulk-individual-actions label{width:180px;display:flex;flex-direction:column;gap:6px}
.bulk-individual-actions button{white-space:nowrap}
.bulk-summary{
  margin-top:12px;padding:8px 10px;border-radius:7px;background:#f7f8fa;border:1px solid var(--border);
  color:#475467;font-size:10px;font-weight:750;
}
.bulk-results{margin-top:8px;max-height:220px;overflow:auto}
.bulk-result-row{
  display:grid;grid-template-columns:20px minmax(120px,1fr) minmax(120px,1.5fr);
  gap:7px;align-items:center;padding:8px 9px;border-bottom:1px solid #eef1f4;font-size:10px
}
.bulk-result-row:last-child{border-bottom:0}
.bulk-result-row>span{font-weight:800}
.bulk-result-row.ok>span{color:#067647}
.bulk-result-row.fail>span{color:#b42318}
.bulk-result-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bulk-result-row small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.alert{white-space:pre-line}
button:disabled{opacity:.62;cursor:not-allowed}

.status-dot.complete{background:#12b76a;box-shadow:0 0 0 5px rgba(18,183,106,.09)}
.status-dot.failed{background:#f04438;box-shadow:0 0 0 5px rgba(240,68,56,.09)}

@media(max-width:900px){
  .employee-manager,.bulk-employee-manager{grid-template-columns:1fr}
  .employee-list-panel{border-right:0;border-bottom:1px solid var(--border)}
  .employee-list{max-height:300px}
  .employee-detail-panel{min-height:520px}
}


/* Refined salary editor groups + totals */
.salary-editor{display:flex;flex-direction:column;gap:14px}
.salary-group{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}
.salary-group-heading{padding:12px 14px;border-bottom:1px solid var(--border);background:#fbfcfd}
.salary-group-heading h3{margin:0;font-size:12px;font-weight:800;letter-spacing:.01em}
.salary-group-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:14px}
.salary-group-grid label{display:flex;flex-direction:column;gap:6px}
.salary-group-grid label span{font-size:10px!important;font-weight:700;color:var(--muted)}
.salary-group-grid input{font-size:12px!important}
.salary-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:2px}
.salary-totals>div{padding:13px 14px;border:1px solid var(--border);border-radius:11px;background:#f8fafc}
.salary-totals span{display:block;font-size:9px;color:var(--muted);font-weight:750;margin-bottom:5px;text-transform:uppercase;letter-spacing:.05em}
.salary-totals strong{font-size:15px;letter-spacing:-.02em}
.salary-totals .net{background:#f4f8fb;border-color:#dbe6ee}
.salary-totals .net strong{color:var(--primary)}
.bulk-salary-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border);flex-wrap:wrap}
.tracker-card{margin-top:18px}
.bulk-controls button[hidden]{display:none!important}
@media(max-width:1100px){.salary-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.salary-group-grid,.salary-totals{grid-template-columns:1fr}.bulk-salary-actions{justify-content:stretch}.bulk-salary-actions button{width:100%}}

/* v4 interaction reliability: never depend on the browser's hidden UA rule */
.employee-list-item[hidden]{display:none!important}
#employeeDetailForm[hidden]{display:none!important}
.search-option[hidden]{display:none!important}
.search-options{display:none;z-index:50}
.search-options.open{display:block}


/* Employee Onboarding: page-level Add Employee / Bulk Import switcher */
.onboarding-switcher{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;padding:7px;background:#f5f7fa;border:1px solid var(--border);border-radius:16px}
.onboarding-tab{border:0;background:transparent;border-radius:11px;padding:15px 18px;text-align:left;display:flex;align-items:center;gap:12px;cursor:pointer;color:var(--muted);transition:.2s ease}
.onboarding-tab:hover{background:#fff}.onboarding-tab.active{background:#fff;color:var(--text);box-shadow:0 2px 10px rgba(30,50,70,.08)}
.onboarding-tab .tab-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef3f7;font-size:20px}.onboarding-tab.active .tab-icon{background:var(--primary);color:#fff}
.onboarding-tab strong,.onboarding-tab small{display:block}.onboarding-tab small{font-size:12px;margin-top:2px;color:var(--muted)}
.onboarding-stage{position:relative;overflow:hidden}.onboarding-panel{animation:onboardingSlide .24s ease}.onboarding-panel[hidden]{display:none!important}.onboarding-import-card{max-width:760px;margin:0 auto}
@keyframes onboardingSlide{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:680px){.onboarding-switcher{grid-template-columns:1fr}.onboarding-tab{padding:12px 14px}}
