
:root {
  --bg-1: #eef3f9;
  --bg-2: #e8eef6;
  --text: #1d2938;
  --muted: #6e7f92;
  --line: rgba(193, 205, 220, 0.72);
  --line-soft: rgba(221, 229, 238, 0.7);
  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(255, 255, 255, 0.54);
  --panel-soft: rgba(255, 255, 255, 0.32);
  --blue: #2d6dff;
  --blue-soft: rgba(45, 109, 255, 0.1);
  --red: #e46771;
  --red-soft: rgba(228, 103, 113, 0.12);
  --shadow: 0 20px 54px rgba(27, 46, 78, 0.08);
  --shadow-soft: 0 10px 26px rgba(27, 46, 78, 0.05);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 6% 8%, rgba(86, 144, 255, 0.12), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(228, 103, 113, 0.08), transparent 22%),
    linear-gradient(180deg, #f6f8fc 0%, #eef3f9 52%, #e9eff6 100%);
}
.hidden { display: none !important; }
body.modal-open { overflow: hidden; }

.container { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.blob-blue { width: 360px; height: 360px; top: -100px; left: -40px; background: rgba(45, 109, 255, 0.16); }
.blob-gray { width: 420px; height: 420px; right: 10%; bottom: -120px; background: rgba(177, 190, 207, 0.2); }
.blob-red { width: 260px; height: 260px; right: -60px; top: 26%; background: rgba(228, 103, 113, 0.1); }
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(215, 223, 233, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 223, 233, 0.16) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.16), transparent 84%);
}

.surface,
.soft-surface,
.table-wrap,
.modal-card,
.signout-popover,
.custom-select-menu,
.login-card,
.highlight-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.64);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.surface::before,
.soft-surface::before,
.table-wrap::before,
.modal-card::before,
.signout-popover::before,
.custom-select-menu::before,
.login-card::before,
.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.42) 22%, rgba(255,255,255,0.18) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.soft-surface {
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.36));
}

.hero { min-height: 100vh; display: grid; align-items: center; padding: 36px 0; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 28px; align-items: center; }
.hero-pills, .notice-row, .employee-actions-bar, .modal-footer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pill, .notice-chip, .metric-tag, .tiny-badge, .status, .btn, .toggle-password, .signout-popover-actions .btn {
  border-radius: var(--pill);
}
.pill, .notice-chip, .metric-tag, .tiny-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(207, 217, 228, 0.8);
  color: #5f7186;
  background: rgba(255,255,255,0.38);
}
.metric-tag, .tiny-badge { gap: 7px; }
.metric-tag::before, .tiny-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .42;
}
.pill-blue, .notice-blue, .tag-blue, .badge-blue { color: var(--blue); background: rgba(45,109,255,.1); border-color: rgba(45,109,255,.14); }
.pill-soft, .badge-soft { color: #5c6f84; background: rgba(255,255,255,.34); }
.notice-red, .tag-red, .badge-red { color: var(--red); background: rgba(228,103,113,.11); border-color: rgba(228,103,113,.14); }

.hero-copy h1 { margin: 18px 0 16px; font-size: clamp(36px, 5vw, 58px); line-height: .96; letter-spacing: -.06em; }
.hero-copy > p { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.72; }
.hero-highlights { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.highlight-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
}
.highlight-card h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.015em; }
.highlight-card p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.highlight-icon, .brand-mark, .service-icon, .search-icon, .security-icon, .tab-icon { display: inline-flex; align-items: center; justify-content: center; }
.highlight-icon { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; }
.icon-blue, .service-blue { color: var(--blue); background: rgba(45,109,255,.12); }
.icon-red, .service-red { color: var(--red); background: rgba(228,103,113,.12); }
.highlight-icon svg, .service-icon svg, .search-icon svg, .security-icon svg, .tab-icon svg { width: 18px; height: 18px; }

.login-card {
  border-radius: 32px;
  padding: 28px;
}
.login-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.login-top h2 { font-size: 23px; margin: 0; letter-spacing: -.03em; }
.sub { font-size: 14px; line-height: 1.75; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
label { font-size: 14px; font-weight: 700; color: #334559; }
input, .custom-select-trigger {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  border: 1px solid rgba(211, 219, 229, .88);
  background: rgba(255,255,255,.66);
  color: var(--text);
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
}
input:focus, .custom-select-trigger:focus {
  border-color: rgba(45,109,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(45,109,255,.08);
}
.password-wrap { position: relative; }
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 72px;
  height: 36px;
  border: 1px solid rgba(210, 218, 228, .88);
  background: rgba(255,255,255,.52);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}
.notice-row { margin: 6px 0 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(180deg, #3a81ff, #2d6dff);
  box-shadow: 0 12px 30px rgba(45,109,255,.22);
}
.btn-secondary {
  color: var(--blue);
  background: rgba(255,255,255,.34);
  border-color: rgba(205, 214, 225, .84);
}
.btn-alert {
  color: var(--red);
  background: rgba(228,103,113,.11);
  border-color: rgba(228,103,113,.16);
}
.btn-small { min-height: 42px; padding: 0 16px; }
.btn-compact { min-height: 42px; padding: 0 20px; }

.dashboard { padding: 20px 0 38px; }
.dashboard-content { display: grid; gap: 16px; }
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 14px;
  border-radius: 0;
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
  position: relative;
  z-index: 50;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar::before { display: none; }
.topbar-left,
.topbar-right {
  display: flex;
  align-items: flex-end;
}
.topbar-left {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.topbar-right {
  justify-content: flex-end;
  gap: 18px;
  position: relative;
  z-index: 60;
  flex-wrap: wrap;
}
.topbar-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7d8da1;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-stack h2 { margin: 0; font-size: 24px; letter-spacing: -.045em; line-height: 1; }
.brand-stack p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--bg-1);
  background: var(--blue);
  border: 1px solid rgba(255,255,255,.76);
  font-weight: 800;
}
.session-plain {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  min-height: 42px;
}
.session-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8091a5;
  font-weight: 700;
}
.session-value {
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.topbar-right .btn { min-height: 42px; }

.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-card { padding: 20px; border-radius: 30px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.metric-mini { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.78); position: relative; }
.metric-mini::after { content:''; position:absolute; inset:4px; border-radius:50%; background: currentColor; opacity: .9; }
.metric-mini.blue-dot { color: var(--blue); }
.metric-mini.red-dot { color: var(--red); }
.metric-value { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.metric-label { margin-top: 8px; color: var(--muted); font-size: 14px; }

.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tab-dock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  min-height: 68px;
  border-radius: 34px;
  overflow: visible;
}
.tab-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 102px;
  min-height: 50px;
  border: none;
  border-radius: 30px;
  background: transparent;
  color: #72849a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active {
  color: var(--blue);
  background: rgba(45, 109, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46);
}
.tab-btn.hidden { display: none !important; }
.tab-icon { width: 22px; height: 22px; }
.tab-label { line-height: 1; }

.dock-search { width: min(280px, 100%); padding: 0 14px; border-radius: 28px; }
.search-wrap { display: flex; align-items: center; gap: 10px; }
.search-wrap input {
  border: none;
  background: transparent;
  height: 46px;
  padding: 0;
  box-shadow: none;
}
.search-wrap input:focus { box-shadow: none; }
.search-icon { width: 18px; height: 18px; color: #7a8da3; flex: 0 0 auto; }

.view { display: none; }
.view.active { display: block; }
.grid-two, .payroll-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  padding: 24px;
  border-radius: 34px;
}
.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-title { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.panel-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.feature-grid, .service-list, .payroll-list, .salary-list, .security-grid {
  display: grid;
  gap: 0;
}
.feature-box, .service-row, .pay-item, .salary-row, .security-box {
  padding: 16px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.feature-box + .feature-box,
.service-row + .service-row,
.pay-item + .pay-item,
.salary-row + .salary-row,
.security-box + .security-box {
  border-top: 1px solid var(--line-soft);
}
.feature-topline {
  display: block;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.blue-line { background: rgba(45,109,255,.42); }
.red-line { background: rgba(228,103,113,.42); }
.label, .small-label { font-size: 13px; color: var(--muted); }
.value { margin-top: 8px; font-size: 14px; line-height: 1.72; font-weight: 700; }
.service-row, .salary-row, .security-box { display: flex; gap: 14px; align-items: flex-start; }
.service-icon, .security-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.security-icon.blue { color: var(--blue); background: rgba(45,109,255,.1); }
.security-icon.red { color: var(--red); background: rgba(228,103,113,.12); }
.service-row h3, .security-box h3 { margin: 0 0 6px; font-size: 15px; }
.service-row p, .security-box p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-month { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.pay-amount { margin-top: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.pay-note { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.salary-row { justify-content: space-between; align-items: center; gap: 16px; }
.salary-meta p { margin: 0; }
.salary-meta p:last-child { margin-top: 6px; color: var(--muted); font-size: 14px; }
.salary-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.salary-box {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(205, 214, 225, .82);
  font-weight: 700;
}
.security-panel { padding-top: 22px; }

.employee-header { align-items: flex-start; }
.employee-actions-bar { justify-content: flex-end; }
.table-wrap {
  border-radius: 28px;
  padding: 0 8px;
  overflow: hidden;
}
.employee-table-wrap { overflow-x: auto; }
.employee-directory-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.employee-directory-table col.col-id { width: 10%; }
.employee-directory-table col.col-name { width: 13%; }
.employee-directory-table col.col-department { width: 12%; }
.employee-directory-table col.col-role { width: 14%; }
.employee-directory-table col.col-email { width: 22%; }
.employee-directory-table col.col-salary { width: 10%; }
.employee-directory-table col.col-status { width: 9%; }
.employee-directory-table col.col-actions { width: 10%; }
.employee-directory-table th,
.employee-directory-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  vertical-align: middle;
  white-space: nowrap;
}
.employee-directory-table th { color: #66798e; font-weight: 700; }
.employee-directory-table td { color: #314154; overflow: hidden; text-overflow: ellipsis; }
.employee-directory-table td:last-child,
.employee-directory-table th:last-child { text-align: right; }
.employee-directory-table tbody tr:last-child td { border-bottom: none; }
.strong { font-weight: 700; color: var(--text); }
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.status.active { color: var(--blue); background: rgba(45,109,255,.1); border-color: rgba(45,109,255,.12); }
.status.restricted { color: var(--red); background: rgba(228,103,113,.11); border-color: rgba(228,103,113,.12); }
.status.pending, .status.pending-review { color: #6f7f93; background: rgba(211, 219, 230, .34); border-color: rgba(211,219,230,.44); }
.status.archived { color: #6f7f93; background: rgba(211,219,230,.36); border-color: rgba(211,219,230,.44); }
.action-col { overflow: visible !important; }
.action-stack { display: flex; justify-content: flex-end; }
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.mini-btn.blue { color: white; background: linear-gradient(180deg, #3a81ff, #2d6dff); box-shadow: 0 12px 26px rgba(45,109,255,.18); }
.mini-btn.red { color: var(--red); background: rgba(228,103,113,.1); border: 1px solid rgba(228,103,113,.14); }
.row-note { color: var(--muted); font-size: 13px; }
.empty-state { text-align: center; color: var(--muted); padding: 28px 18px; }

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(228, 234, 243, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  width: min(860px, calc(100% - 24px));
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.16));
  box-shadow: 0 30px 70px rgba(24, 43, 74, 0.10);
  overflow: visible;
  z-index: 2;
}
.modal-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal-kicker { color: #71859b; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.28);
  color: #55687e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.custom-select { position: relative; }
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: calc(100% - 16px);
  padding: 10px 10px 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.20));
  z-index: 40;
}
.custom-option {
  width: 100%;
  min-height: 40px;
  border: none;
  background: transparent;
  border-radius: 18px;
  text-align: left;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.custom-option:hover,
.custom-option.is-active {
  background: rgba(45,109,255,.11);
  color: var(--blue);
}
.modal-footer-actions { justify-content: space-between; }
.modal-submit-wrap { margin-left: auto; }

.signout-wrap {
  position: relative;
  z-index: 90;
  flex: 0 0 auto;
}
.signout-confirm {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 14px;
  border-radius: 22px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,255,0.84));
  box-shadow: 0 18px 42px rgba(27, 46, 78, 0.12);
}
.signout-wrap.is-confirming .signout-confirm {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.signout-confirm-text {
  display: block;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.signout-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


.metric-card {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
}
.metric-card:focus-visible,
.service-row:focus-visible {
  outline: 3px solid rgba(45,109,255,.18);
  outline-offset: 3px;
}
.service-row {
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.service-row:hover {
  transform: translateX(2px);
}

.payslip-modal-card {
  width: min(860px, calc(100% - 24px));
  padding: 28px;
}
.payslip-sheet {
  display: grid;
  gap: 18px;
}
.payslip-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.payslip-company {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6f8298;
  margin-bottom: 8px;
}
.payslip-employee-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.payslip-employee-meta,
.payslip-period-label,
.payslip-footer-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.payslip-period-wrap {
  text-align: right;
}
.payslip-period-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
}
.payslip-summary-grid,
.payslip-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.payslip-detail-grid {
  grid-template-columns: 1fr 1fr;
}
.payslip-summary-box,
.payslip-detail-section {
  border: 1px solid rgba(205,214,225,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.42);
  padding: 16px;
}
.payslip-summary-net {
  background: rgba(45,109,255,.08);
  border-color: rgba(45,109,255,.14);
}
.payslip-summary-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.payslip-section-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
}
.payslip-line-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.payslip-line-item:first-of-type {
  border-top: none;
  padding-top: 0;
}
.payslip-modal-actions {
  margin-top: 18px;
  justify-content: flex-end;
}


@media (max-width: 1100px) {
  .hero-grid, .grid-two, .payroll-layout { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .payslip-sheet-head, .payslip-detail-grid { grid-template-columns: 1fr; display: grid; }
  .payslip-summary-grid { grid-template-columns: 1fr 1fr; }
  .hero-highlights { grid-template-columns: 1fr; }
  .dock-row, .salary-row, .service-row, .security-box { align-items: stretch; }
  .dock-row { flex-direction: column; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
  }
  .dock-search { width: 100%; }
  .metrics-row { grid-template-columns: 1fr; }
  .payslip-summary-grid, .payslip-detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .employee-header { flex-direction: column; }
  .employee-actions-bar { width: 100%; justify-content: space-between; }
  .modal-card { padding: 22px; }
  .modal-footer-actions { flex-direction: column; align-items: stretch; }
  .modal-submit-wrap { margin-left: 0; width: 100%; }
  .modal-submit-wrap .btn { width: 100%; }
}


@media (max-width: 1180px) {
  .employee-directory-table { min-width: 920px; }
}

.login-card #enterDashboard { width: 100%; justify-content: center; }


/* === EMPLOYEE MODAL REDESIGN === */
.employee-modal-card {
  width: min(940px, calc(100% - 32px));
  padding: 28px 28px 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(247,250,255,0.26));
  box-shadow: 0 28px 74px rgba(28, 46, 78, 0.14);
}
.employee-modal-head {
  margin-bottom: 0;
}
.employee-modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 0 2px 18px;
  margin-bottom: 20px;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(193, 205, 220, 0.48);
}
.employee-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.employee-avatar-preview {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,109,255,.10);
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  border: 1px solid rgba(45,109,255,.10);
}
.employee-hero-copy { min-width: 0; }
.employee-mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(45,109,255,.10);
  color: var(--blue);
  border: 1px solid rgba(45,109,255,.12);
  font-size: 12px;
  font-weight: 700;
}
.employee-summary-name {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--text);
}
.employee-summary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.employee-summary-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.employee-hero-side {
  min-width: 220px;
  padding-left: 18px;
  border-left: 1px solid rgba(193, 205, 220, 0.44);
}
.employee-hero-side-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #71859b;
}
.employee-hero-side-value {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 700;
}
.employee-modal-form {
  gap: 0;
}
.employee-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.employee-form-section {
  padding: 18px 2px 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.employee-form-section + .employee-form-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(193, 205, 220, 0.48);
}
.employee-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.employee-section-header h4 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.02em;
}
.employee-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.employee-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.employee-form-grid .field {
  margin-bottom: 0;
}
.employee-form-grid input,
.employee-form-grid select {
  height: 48px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
}
.field-readonly input {
  color: #607287;
  font-weight: 700;
  background: rgba(248,250,255,.84);
}
.native-status-select {
  width: 100%;
  height: 48px;
  border-radius: 22px;
  border: 1px solid rgba(211, 219, 229, .88);
  background: rgba(255,255,255,.72);
  color: var(--text);
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.native-status-select:focus {
  border-color: rgba(45,109,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 4px rgba(45,109,255,.08);
}
.employee-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid rgba(193, 205, 220, 0.48);
}
.employee-submit-wrap {
  margin-left: auto;
}
.employee-modal-actions .btn {
  min-width: 160px;
}
@media (max-width: 900px) {
  .employee-modal-card {
    width: min(100% - 24px, 940px);
    padding: 22px;
  }
  .employee-modal-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .employee-form-grid {
    grid-template-columns: 1fr;
  }
  .employee-hero-side {
    min-width: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(193, 205, 220, 0.44);
    padding-top: 14px;
  }
}
@media (max-width: 760px) {
  .employee-modal-card {
    padding: 20px;
    border-radius: 28px;
  }
  .employee-summary-name {
    font-size: 21px;
  }
  .employee-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .employee-submit-wrap,
  .employee-modal-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

