/* Shared presentation layer for every company using the HRMS shell. */
:root {
  --body-bg: #f3f6fa;
  --card-border: #e3eaf1;
  --card-radius: 16px;
  --card-shadow: 0 3px 14px rgba(22, 39, 62, .045);
  --text-900: #142337;
  --text-700: #3a4f66;
  --text-500: #65788d;
  --teal: #087f77;
  --teal-hover: #066b65;
  --teal-glow: rgba(8, 127, 119, .14);
}

body {
  background: radial-gradient(circle at 92% 0, rgba(8, 127, 119, .065), transparent 32rem), #f3f6fa;
}
body::before { opacity: .38; }

#sidebar {
  background: linear-gradient(165deg, #132a3d 0%, #102235 45%, #0b1c2d 100%);
  box-shadow: 10px 0 36px rgba(9, 30, 48, .11);
}
.sb-logo { padding-top: 22px; padding-bottom: 19px; }
.sb-logo img { max-width: 192px; max-height: 56px; }
.sb-company { padding-top: 14px; padding-bottom: 14px; }
.sb-company span { color: #9db5c5; }
.sb-company strong { color: #f0f8fb; font-size: 14px; }
.nav-group-label, .nav-group-chevron { color: #8aa7ba; }
.nav-group-header:hover .nav-group-label { color: #d4e9f0; }
.sb-nav a { min-height: 39px; color: #a9c0ce; }
.sb-nav a:hover { color: #fff; background: rgba(255, 255, 255, .075); }
.sb-nav a.active { color: #e7fffa; background: rgba(17, 159, 145, .22); }
.sb-nav a.active i { color: #6fe6d1; }

#topbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #e4ebf2;
  box-shadow: 0 4px 24px rgba(24, 44, 66, .035);
}
.topbar-title { font-weight: 700; letter-spacing: -.015em; }
.role-pill { border-radius: 7px; padding: 5px 9px; }
#main-content { max-width: 1800px; }
.page-header { margin-bottom: 25px; }
.page-header h2 { font-size: clamp(21px, 2vw, 27px); letter-spacing: -.035em; line-height: 1.2; }
.page-header-actions { gap: 9px; }

.card {
  background: #fff;
  border-color: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.card:hover { border-color: #d5e4e6; box-shadow: 0 12px 30px rgba(24, 54, 68, .085); }
.stat-card { border-radius: 16px; min-height: 126px; box-shadow: 0 8px 26px rgba(15, 50, 64, .1); }
.stat-card .stat-value { letter-spacing: -.045em; }
.stat-card .stat-label { font-size: 12.5px; opacity: .9; }

.btn { border-radius: 9px; font-weight: 600; min-height: 36px; justify-content: center; }
.btn-primary { background: #087f77; border-color: #087f77; box-shadow: 0 5px 12px rgba(8, 127, 119, .12); }
.btn-primary:hover, .btn-primary:focus-visible { background: #066b65; border-color: #066b65; }
.btn-secondary { background: #fff; color: #344d63; border-color: #d8e2eb; }
.btn-secondary:hover { background: #f3f8f9; color: #0b625d; border-color: #a9d0cc; }
.btn:active { transform: translateY(0) scale(.985); }

.form-label { font-weight: 600; color: #40556c; margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 9px;
  border-color: #d9e3ec;
  min-height: 38px;
  color: #24384e;
}
.form-control::placeholder { color: #94a4b5; }
.form-control:focus, .form-select:focus { border-color: #58b5aa; }
:is(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(8, 127, 119, .26); outline-offset: 2px; }

.table thead tr { background: #f5f8fb; }
.table th { color: #587088 !important; }
.table td { color: #364b61; }
.table-hover tbody tr:hover td { background: #f1faf8; }
.table-responsive { border-radius: 12px; }
.badge { font-weight: 600; letter-spacing: .01em; }
.alert { border-radius: 11px; }

.spectra-loading { background: rgba(241, 246, 249, .72); }
.spectra-loader-card {
  width: min(300px, calc(100vw - 48px));
  padding: 29px 30px 27px;
  border-radius: 18px;
  border: 1px solid #dcebe8;
  box-shadow: 0 24px 70px rgba(17, 47, 62, .17);
}
.spectra-loader-mark { width: 48px; height: 48px; border-width: 4px; margin-bottom: 17px; }
.spectra-loader-title { font-size: 15px; letter-spacing: -.02em; }
.spectra-loader-sub { margin-top: 5px; color: #627a8c; }
.spectra-loader-track { height: 4px; margin-top: 22px; border-radius: 10px; background: #e7f2f0; overflow: hidden; }
.spectra-loader-track span { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a897d, #38b9ae); animation: hrmsLoaderTravel 1.15s ease-in-out infinite; }
@keyframes hrmsLoaderTravel { from { transform: translateX(-110%); } to { transform: translateX(270%); } }

@media (max-width: 768px) {
  #main-content { padding: 18px 16px; }
  .page-header { gap: 15px; }
  .page-header h2 { font-size: 21px; }
  .stat-card { min-height: 108px; }
  .table th, .table td { padding: 10px 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .spectra-loader-track span { animation: none; width: 100%; }
}
@media print {
  .spectra-loading { display: none !important; }
  .card, .stat-card { box-shadow: none !important; }
}

/* Presentation redesign: a light navigation rail, blue workspace, and clear hierarchy. */
:root {
  --teal: #3158d5;
  --teal-hover: #2345b7;
  --teal-50: #eef2ff;
  --teal-100: #dbe4ff;
  --teal-glow: rgba(49, 88, 213, .13);
  --sidebar-bg: #fff;
  --sidebar-bg2: #f7f9ff;
  --sidebar-text: #526782;
  --sidebar-text-hover: #173d8d;
  --sidebar-active: #3158d5;
  --body-bg: #f1f4fa;
  --text-900: #152a45;
  --text-700: #3f5571;
  --ui-cyan: #5479ed;
  --ui-glow: 0 8px 30px rgba(30, 64, 130, .10);
  --ui-glow-strong: 0 12px 32px rgba(49, 88, 213, .20);
}
body.company-3 {
  --teal: #8254c9;
  --teal-hover: #6d3fb5;
  --teal-50: #f6f0ff;
  --teal-100: #e9dcfc;
  --teal-glow: rgba(130, 84, 201, .14);
  --ui-cyan: #a671dc;
}
body {
  background: #f1f4fa;
}
body::before { display: none; }
#sidebar {
  background: #fff;
  border-right: 1px solid #e4eaf3;
  box-shadow: 7px 0 35px rgba(26, 49, 86, .055);
}
.sb-logo {
  min-height: 92px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #142b4e, #0d1e37);
  border-bottom: 0;
}
.sb-logo img { filter: none; }
.sb-company {
  margin: 14px 13px 12px;
  padding: 14px 15px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #eff3ff, #f7f9fe);
}
body.company-3 .sb-company { background: linear-gradient(135deg, #f3ecff, #fbf7ff); }
.sb-company span { color: #6a7a93; }
.sb-company strong { color: #203858; }
.sb-nav { padding: 4px 7px 16px; }
.nav-group-header { padding-top: 16px; }
.nav-group-label, .nav-group-chevron { color: #8190a5; }
.nav-group-header:hover .nav-group-label { color: var(--teal); }
.sb-nav a {
  margin: 2px 6px;
  min-height: 42px;
  color: #4b607c;
  font-weight: 550;
  border-radius: 10px;
}
.sb-nav a::before { background: transparent; }
.sb-nav a i { color: #7186a1; }
.sb-nav a:hover {
  color: var(--teal);
  background: var(--teal-50);
  box-shadow: none;
  transform: translateX(2px);
}
.sb-nav a:hover i, .sb-nav a.active i { color: var(--teal); }
.sb-nav a.active {
  color: var(--teal);
  background: var(--teal-50);
  box-shadow: inset 3px 0 0 var(--teal);
}
.sb-nav .nav-static { color: #526782; }
.sb-nav .nav-static.active { color: var(--teal); background: var(--teal-50); }
.sb-footer {
  background: #f8faff;
  border-top: 1px solid #e6ecf4;
}
.sb-user-info strong { color: #203858; }
.sb-user-info span { color: #71839a; }
.sb-avatar { background: var(--teal-50); border-color: var(--teal-100); }
.btn-logout { background: #fff4f4; color: #b83d4c; border-color: #f6d8dd; }
.btn-logout:hover { background: #ffe7eb; color: #a52c40; }

#topbar {
  background: #fff;
  border-bottom: 1px solid #e3eaf3;
  box-shadow: 0 5px 18px rgba(26, 52, 84, .045);
}
.topbar-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar-company-mobile { display: none; }
.topbar-title { font-size: 16px; color: #1c3658; }
.topbar-title::before { background: var(--teal); box-shadow: none; }
.sb-toggle { width: 38px; height: 38px; color: #36516e; background: #f1f4fa; margin-right: 14px; }
.sb-toggle:hover { background: var(--teal-50); color: var(--teal); }
.role-pill { color: var(--teal); background: var(--teal-50); border-color: var(--teal-100); }
.notif-btn { background: #f3f6fb; color: #49617e; }
.notif-btn:hover { background: var(--teal-50); color: var(--teal); }

#main-content { padding: 32px 34px; }
.page-header {
  position: relative;
  padding: 23px 27px;
  margin-bottom: 24px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid #e1e8f2;
  box-shadow: 0 10px 28px rgba(27, 52, 86, .055);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--ui-cyan));
}
.page-header h2 { font-size: clamp(23px, 2vw, 29px); letter-spacing: -.045em; color: #172f50; }
.page-header-actions .btn { white-space: nowrap; }
.card {
  background: #fff;
  border: 1px solid #e1e8f2;
  box-shadow: 0 7px 22px rgba(27, 52, 86, .055);
}
.card:hover { border-color: #b8c9e7; box-shadow: 0 15px 36px rgba(26, 63, 126, .12); }
.stat-card {
  min-height: 142px;
  padding: 22px 23px;
  background: #fff !important;
  color: #192f4d !important;
  border: 1px solid #e1e8f2;
  box-shadow: 0 8px 25px rgba(26, 55, 96, .07);
}
.stat-card::before { inset: 0 0 auto; height: 5px; background: var(--teal); opacity: 1; z-index: 1; pointer-events: none; }
.row > [class*="col"]:nth-child(4n+2) .stat-card::before { background: #8362d9; }
.row > [class*="col"]:nth-child(4n+3) .stat-card::before { background: #e59e3a; }
.row > [class*="col"]:nth-child(4n+4) .stat-card::before { background: #22a58f; }
.stat-card::after { background: rgba(49, 88, 213, .055); }
.stat-card .stat-value { color: #172f50; font-size: clamp(26px, 2vw, 34px); }
.stat-card .stat-label { color: #60748d; opacity: 1; font-size: 12px; font-weight: 650; }
.stat-card .stat-icon { color: #8ba3cb; opacity: .4; }
.stat-card .stat-delta { background: var(--teal-50); color: var(--teal); opacity: 1; }
.stat-card:hover { transform: translateY(-4px); filter: none; box-shadow: 0 18px 38px rgba(26, 55, 96, .13); }
.btn-primary { background: var(--teal); border-color: var(--teal); box-shadow: 0 7px 17px var(--teal-glow); }
.btn-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.btn-secondary { background: #f4f7fc; border-color: #dce5f1; color: #304a6c; }
.btn-secondary:hover { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal); }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.table thead tr { background: #edf2f9; }
.table th { color: #506987 !important; }
.table-hover tbody tr:hover td { background: var(--teal-50); }
.spectra-loading { background: rgba(237, 243, 252, .76); }
.spectra-loader-mark { border-top-color: var(--teal); border-right-color: var(--ui-cyan); }
.spectra-loader-track span { background: linear-gradient(90deg, var(--teal), var(--ui-cyan)); }

@media (max-width: 768px) {
  :root { --topbar-h: 76px; }
  #topbar {
    left: 0;
    padding: 0 15px;
    background: linear-gradient(110deg, #142d50, #213f77);
    border-bottom: 0;
    box-shadow: 0 8px 23px rgba(13, 34, 72, .22);
  }
  body.company-3 #topbar { background: linear-gradient(110deg, #39245e, #63418d); }
  .topbar-left { gap: 8px; min-width: 0; }
  .topbar-heading { overflow: hidden; }
  .topbar-company-mobile { display: block; color: #aec6ee; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-title { padding-left: 0; font-size: 17px; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-title::before { display: none; }
  .sb-toggle { flex: none; width: 43px; height: 43px; margin-right: 0; color: #fff; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; }
  .sb-toggle:hover { color: #fff; background: rgba(255, 255, 255, .22); }
  .notif-btn { color: #fff; background: rgba(255, 255, 255, .13); width: 39px; height: 39px; border-radius: 11px; }
  .notif-btn:hover { color: #fff; background: rgba(255, 255, 255, .22); }
  #sidebar { width: min(84vw, 320px); box-shadow: 20px 0 60px rgba(9, 26, 52, .27); }
  .sb-logo { min-height: 80px; }
  .sb-nav a { min-height: 47px; font-size: 14px; }
  .sb-footer { padding-bottom: max(17px, env(safe-area-inset-bottom)); background: #f8faff; }
  #sb-overlay { background: rgba(8, 24, 50, .55); backdrop-filter: blur(4px); }
  #main-content { margin-left: 0; padding: 18px 15px 32px; }
  .page-header { padding: 19px 20px; margin-bottom: 18px; border-radius: 16px; gap: 14px; }
  .page-header h2 { font-size: 23px; }
  .page-header-actions { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .page-header-actions::-webkit-scrollbar { display: none; }
  .page-header-actions .btn { flex: none; min-height: 39px; }
  .card { border-radius: 16px; }
  .stat-card { min-height: 124px; padding: 18px; border-radius: 15px; }
  .stat-card .stat-value { font-size: 27px; }
  .table-responsive { border: 1px solid #e1e8f2; border-radius: 13px; background: #fff; }
  .form-control, .form-select { min-height: 43px; font-size: 14px; }
  .btn { min-height: 40px; }
  .spectra-loader-card { width: min(300px, calc(100vw - 36px)); }
}
@media (max-width: 480px) {
  #main-content { padding: 15px 12px 28px; }
  .page-header { padding: 17px 17px 17px 20px; }
  .page-header h2 { font-size: 21px; }
  .stat-card .stat-value { font-size: 24px; }
}

/* Shared action and menu interaction system. */
.btn,
.btn-login,
.btn-logout {
  -webkit-tap-highlight-color: transparent;
}
.btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  box-shadow: 0 2px 5px rgba(22, 48, 85, .035);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease,
              background .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
}
.btn-sm { min-height: 34px; padding: 6px 12px; border-radius: 9px; font-size: 12px; }
.btn-lg { min-height: 48px; padding: 11px 22px; border-radius: 13px; }
.btn-icon { min-width: 36px; min-height: 36px; padding: 0; }
.btn i { display: inline-block; transition: transform .2s ease; }
.btn-primary {
  color: #fff;
  background: linear-gradient(115deg, var(--teal), var(--ui-cyan));
  border: 1px solid var(--teal);
  box-shadow: 0 7px 18px var(--teal-glow);
}
.btn-primary:hover, .btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(115deg, var(--teal-hover), var(--teal));
  border-color: var(--teal-hover);
  box-shadow: 0 13px 25px var(--teal-glow);
}
.btn-secondary, .btn-light {
  color: #365274;
  background: #fff;
  border: 1px solid #d4dfed;
}
.btn-secondary:hover, .btn-light:hover {
  color: var(--teal);
  background: var(--teal-50);
  border-color: var(--teal-100);
  box-shadow: 0 7px 17px var(--teal-glow);
}
.btn-outline-primary { color: var(--teal); border-color: var(--teal-100); background: #fff; }
.btn-outline-primary:hover { color: #fff; border-color: var(--teal); background: var(--teal); }
.btn-success, .btn-outline-success { color: #137b61; background: #edfaf5; border-color: #bcebd9; }
.btn-success:hover, .btn-outline-success:hover { color: #fff; background: #14846a; border-color: #14846a; box-shadow: 0 8px 19px rgba(20,132,106,.18); }
.btn-danger, .btn-outline-danger { color: #bd3f50; background: #fff3f4; border-color: #f2c8ce; }
.btn-danger:hover, .btn-outline-danger:hover { color: #fff; background: #c74558; border-color: #c74558; box-shadow: 0 8px 19px rgba(199,69,88,.18); }
.btn-warning, .btn-outline-warning { color: #98631d; background: #fff8e9; border-color: #f4dfb0; }
.btn-warning:hover, .btn-outline-warning:hover { color: #583907; background: #f9df9b; border-color: #ebc66b; }
.btn-info, .btn-outline-info { color: #126e9a; background: #eff9ff; border-color: #c5e8f7; }
.btn-info:hover, .btn-outline-info:hover { color: #fff; background: #1884ad; border-color: #1884ad; }
.btn:focus-visible, .btn-logout:focus-visible, .sb-nav a:focus-visible,
.nav-group-header:focus-visible, .sb-toggle:focus-visible, .notif-btn:focus-visible {
  outline: 3px solid var(--teal-glow);
  outline-offset: 3px;
}
.btn:disabled, .btn.disabled, fieldset:disabled .btn {
  opacity: .48;
  box-shadow: none;
  filter: grayscale(.25);
  transform: none !important;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):not(.disabled):hover { transform: translateY(-2px); }
  .btn:not(:disabled):not(.disabled):hover i { transform: translateX(2px); }
  .btn-icon:hover i { transform: scale(1.12) !important; }
  .sb-nav a:not(.active):hover {
    transform: translateX(3px);
    background: linear-gradient(90deg, var(--teal-50), #f8faff);
    box-shadow: inset 3px 0 0 var(--teal-100);
  }
  .sb-nav a:hover i { background: var(--teal); color: #fff; transform: scale(1.06); }
  .nav-group-header:hover { background: var(--teal-50); }
  .btn-logout:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(199,69,88,.12); }
}
.btn:not(:disabled):not(.disabled):active { transform: translateY(1px) scale(.97); box-shadow: 0 1px 5px rgba(22,48,85,.09); filter: saturate(1.08); }
.sb-nav a:active, .nav-group-header:active { transform: scale(.985); background: var(--teal-100); }
.sb-nav a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 7px;
  color: #637fa9;
  background: #eef2fa;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.sb-nav a.active i { color: #fff; background: var(--teal); }
.nav-group-header {
  margin: 5px 7px 1px;
  padding: 9px 13px 7px;
  border-radius: 9px;
  transition: background .2s ease, transform .18s ease;
}
.nav-group-header:focus-visible { background: var(--teal-50); }
.nav-group-chevron { transition: transform .2s ease, color .2s ease; }
.nav-group-header:hover .nav-group-chevron { color: var(--teal); }
.sb-toggle, .notif-btn { transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
.sb-toggle:active, .notif-btn:active { transform: scale(.92); }
.dropdown-menu { border-radius: 12px; border-color: #e0e8f2; box-shadow: 0 16px 40px rgba(21,48,84,.13); }
.dropdown-item { border-radius: 8px; transition: background .16s ease, color .16s ease; }
.dropdown-item:hover, .dropdown-item:focus { color: var(--teal); background: var(--teal-50); }
.pagination .page-link { border-radius: 8px; margin: 0 2px; color: var(--teal); border-color: #d9e3f0; transition: background .18s ease, transform .18s ease; }
.pagination .page-link:hover { background: var(--teal-50); transform: translateY(-1px); }
.pagination .active .page-link { color: #fff; background: var(--teal); border-color: var(--teal); }
.nav-tabs .nav-link { border-radius: 9px 9px 0 0; transition: background .18s ease, color .18s ease; }
.nav-tabs .nav-link:hover { color: var(--teal); background: var(--teal-50); }

@media (hover: none), (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 39px; }
  .btn-icon { min-width: 42px; min-height: 42px; }
  .btn:hover { transform: none; }
  .sb-nav a:not(.active):hover { transform: none; }
  .sb-nav a:not(.active):hover i { color: #637fa9; background: #eef2fa; }
  .nav-group-header { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn i, .sb-nav a, .sb-nav a i, .nav-group-header, .sb-toggle, .notif-btn { transition: none !important; }
}

.btn-outline-secondary, .btn-ghost {
  color: #47617f;
  background: #fff;
  border-color: #d9e3ef;
}
.btn-outline-secondary:hover, .btn-ghost:hover {
  color: var(--teal);
  background: var(--teal-50);
  border-color: var(--teal-100);
}
.btn-close {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  background-color: #f0f3f9;
  opacity: .68;
  transition: opacity .18s ease, background-color .18s ease, transform .18s ease;
}
.btn-close:hover { opacity: 1; background-color: #e7ecf7; transform: scale(1.06); }
.btn-close:active { transform: scale(.92); }
.btn-close:focus-visible { outline: 3px solid var(--teal-glow); outline-offset: 3px; box-shadow: none; }
button.stat-card-button { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
button.stat-card-button:focus-visible { outline: 3px solid var(--teal-glow); outline-offset: 3px; }
@media (hover: none), (pointer: coarse) {
  .btn-close { width: 36px; height: 36px; padding: 10px; }
  .btn-close:hover { transform: none; }
}

/* Keep actions visible on narrow screens, especially destructive actions. */
.employee-scroll-hint { display: none; }
@media (max-width: 768px) {
  #main-content .page-header-actions,
  #main-content .page-header > .d-flex {
    flex-wrap: wrap;
    overflow: visible;
    width: 100%;
  }
  #main-content .page-header-actions .btn { flex: 0 1 auto; }
  #main-content .card form > .d-flex.gap-2.mt-4 { flex-wrap: wrap; }
  .employee-form-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }
  .employee-form-actions .btn { width: 100%; margin-left: 0 !important; text-align: center; white-space: normal; }
  .employee-form-actions .btn-danger { grid-column: 1 / -1; }
  .employee-scroll-hint {
    display: block;
    padding: 10px 14px;
    color: #516b8c;
    background: #f5f8fe;
    border-bottom: 1px solid #e0e8f3;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
  }
  .employee-scroll-hint span { color: var(--teal); font-size: 17px; vertical-align: -1px; }
  .employee-table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #aebfda #eef3fa; }
  .employee-table-scroll .table { min-width: 790px; }
  .employee-table-scroll::-webkit-scrollbar { height: 8px; }
  .employee-table-scroll::-webkit-scrollbar-thumb { background: #aebfda; border-radius: 8px; }
  .table-responsive { scrollbar-width: thin; scrollbar-color: #aebfda #eef3fa; }
}

/* Destructive actions must be unmistakable in tables, forms, and dialogs. */
:is(#main-content, .modal) .btn-danger {
  color: #fff;
  background: #c53d52;
  border-color: #c53d52;
  box-shadow: 0 6px 16px rgba(197, 61, 82, .19);
}
:is(#main-content, .modal) .btn-danger:hover,
:is(#main-content, .modal) .btn-danger:focus-visible {
  color: #fff;
  background: #a92c41;
  border-color: #a92c41;
  box-shadow: 0 11px 22px rgba(169, 44, 65, .25);
}
:is(#main-content, .modal) .btn-danger:active { background: #922239; border-color: #922239; }
:is(#main-content, .modal) .btn-outline-danger {
  color: #b63349;
  background: #fff;
  border-color: #e9aeb9;
}
:is(#main-content, .modal) .btn-outline-danger:hover {
  color: #fff;
  background: #c53d52;
  border-color: #c53d52;
}

.table-overflow-hint {
  margin: 0 0 8px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #eef3fb;
  color: #4a6688;
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}
.table-overflow-hint[hidden] { display: none; }
.table-responsive:focus-visible { outline: 3px solid var(--teal-glow); outline-offset: 2px; }

/* Spectra editorial workspace, October 2026. Presentation only. */
:root {
  --teal: #5166df;
  --teal-hover: #394bc4;
  --teal-50: #f0f2ff;
  --teal-100: #dfe5ff;
  --teal-glow: rgba(81, 102, 223, .19);
  --ui-cyan: #56bac8;
  --body-bg: #f3f5f9;
  --card-border: #e4e9f1;
  --card-radius: 20px;
  --text-900: #15223d;
  --text-700: #42536d;
  --text-500: #6b7b93;
}
body.company-3 {
  --teal: #8a63d6;
  --teal-hover: #7148bf;
  --teal-50: #f7f1ff;
  --teal-100: #eadcfb;
  --teal-glow: rgba(138, 99, 214, .19);
  --ui-cyan: #d88fbf;
}
body {
  background: radial-gradient(ellipse 54rem 32rem at 90% 5%, rgba(143, 174, 234, .18), transparent 70%),
              radial-gradient(ellipse 42rem 35rem at 13% 90%, rgba(187, 204, 237, .13), transparent 70%),
              #f3f5f9;
}
#sidebar {
  background: linear-gradient(164deg, #111d3a 0%, #17294c 53%, #15233f 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 14px 0 42px rgba(17, 33, 70, .16);
}
#sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  background: radial-gradient(circle at 6% 4%, rgba(86,186,200,.22), transparent 62%),
              radial-gradient(circle at 100% 38%, rgba(122,112,228,.22), transparent 65%);
  pointer-events: none;
}
#sidebar > * { position: relative; }
.sb-logo {
  background: transparent;
  min-height: 102px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.sb-logo img { max-height: 60px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.14)); }
.sb-company, body.company-3 .sb-company {
  margin: 18px 13px 17px;
  padding: 16px 17px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 9px 20px rgba(0,0,0,.07);
}
.sb-company span { color: #aebcdb; letter-spacing: .12em; }
.sb-company strong { color: #fff; font-size: 14px; }
.nav-group-label, .nav-group-chevron { color: #9caed2; }
.nav-group-header:hover .nav-group-label, .nav-group-header:hover .nav-group-chevron { color: #fff; }
.sb-nav a, .sb-nav .nav-static { color: #c2cee7; }
.sb-nav a i { color: #b7c6e8; background: rgba(255,255,255,.09); }
.sb-nav a:hover, .sb-nav a:not(.active):hover {
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow: inset 3px 0 rgba(130,210,223,.75);
}
.sb-nav a:hover i { color: #fff; background: rgba(255,255,255,.17); }
.sb-nav a.active, .sb-nav .nav-static.active {
  color: #fff;
  background: linear-gradient(95deg, rgba(105,128,235,.48), rgba(86,186,200,.15));
  box-shadow: inset 3px 0 #8fe1e5, 0 8px 20px rgba(5,12,43,.14);
}
.sb-nav a.active i { color: #fff; background: rgba(255,255,255,.18); }
.sb-footer { background: rgba(5,13,32,.2); border-top: 1px solid rgba(255,255,255,.1); }
.sb-user-info strong { color: #fff; }
.sb-user-info span { color: #b8c7e5; }
.sb-avatar { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.17); color: #fff; }
.btn-logout { background: rgba(255,255,255,.08); color: #f7dce5; border-color: rgba(255,255,255,.12); }
.btn-logout:hover { background: rgba(255,255,255,.16); color: #fff; }

#topbar {
  background: rgba(255,255,255,.87);
  border-bottom: 1px solid rgba(217,225,239,.8);
  box-shadow: 0 12px 32px rgba(27,48,85,.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar-title { color: #253553; font-size: 15px; letter-spacing: -.025em; }
.topbar-title::before { background: linear-gradient(var(--teal), var(--ui-cyan)); }
.sb-toggle, .notif-btn { background: #eef2fa; border: 1px solid #e1e8f4; border-radius: 11px; }
.role-pill { border-radius: 999px; padding: 6px 12px; }
#main-content { padding: 36px clamp(22px, 3vw, 52px) 58px; }

.page-header {
  min-height: 154px;
  padding: 29px 35px;
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  background: linear-gradient(113deg, #17294e 0%, #27438a 57%, #4365a6 100%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(23,47,98,.19), inset 0 1px rgba(255,255,255,.16);
  isolation: isolate;
}
body.company-3 .page-header { background: linear-gradient(113deg, #2e2455, #57438f 58%, #8566ad); }
.page-header::before {
  left: auto;
  right: -4%;
  top: -140px;
  bottom: auto;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153,220,240,.24) 0%, rgba(153,220,240,.07) 43%, transparent 69%);
  z-index: -1;
  animation: spectraAmbient 11s ease-in-out infinite alternate;
}
.page-header::after {
  content: "";
  position: absolute;
  right: 12%;
  top: -95px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(255,255,255,.025), 0 0 0 112px rgba(255,255,255,.018);
  pointer-events: none;
  z-index: -1;
}
.page-header h2 { color: #fff; font-size: clamp(24px, 2.35vw, 34px); font-weight: 700; letter-spacing: -.045em; }
.page-header h2 + div, .page-header p, .page-header small { color: #d9e6ff !important; }
.page-header .btn-secondary, .page-header .btn-light, .page-header .btn-outline-secondary {
  background: rgba(255,255,255,.13);
  color: #fff;
  border-color: rgba(255,255,255,.32);
  backdrop-filter: blur(8px);
}
.page-header .btn-secondary:hover, .page-header .btn-light:hover, .page-header .btn-outline-secondary:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.page-header .btn-primary { background: #fff; color: #253d86; border-color: #fff; box-shadow: 0 9px 22px rgba(7,18,51,.17); }
.page-header .btn-primary:hover { background: #edf3ff; color: #253d86; border-color: #edf3ff; }

#main-content .card, .modal-content {
  border-color: #e2e8f2;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(29,48,83,.055), 0 1px 3px rgba(29,48,83,.035);
}
#main-content .card:hover { border-color: #cad7ed; box-shadow: 0 18px 42px rgba(29,48,83,.10); }
#main-content .card:not(.card-hover) { background-image: linear-gradient(155deg, rgba(255,255,255,.92), rgba(249,251,255,.65)); }
.section-title { color: #233453; font-weight: 750; letter-spacing: -.025em; }
.section-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  margin-right: 5px;
  color: var(--teal);
  background: var(--teal-50);
  border-radius: 9px;
}
.stat-card {
  min-height: 155px;
  padding: 24px 25px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #f8faff) !important;
  border: 1px solid #e1e8f3;
  border-radius: 20px;
  box-shadow: 0 11px 30px rgba(27,51,91,.075), inset 0 1px #fff;
}
.stat-card::before {
  inset: 0 auto 0 0;
  width: 4px;
  height: auto;
  background: linear-gradient(180deg, #5a70e5, #59c4d4);
}
.row > [class*="col"]:nth-child(4n+2) .stat-card::before { background: linear-gradient(#8b70db, #bfa5f4); }
.row > [class*="col"]:nth-child(4n+3) .stat-card::before { background: linear-gradient(#e8a350, #edcc78); }
.row > [class*="col"]:nth-child(4n+4) .stat-card::before { background: linear-gradient(#30afae, #7cd2a7); }
.stat-card::after {
  top: -65px;
  right: -70px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(112,133,225,.15), transparent 70%);
}
.stat-card .stat-value { color: #172848; font-size: clamp(29px, 2.45vw, 38px); font-weight: 750; line-height: 1.1; }
.stat-card .stat-label { margin-top: 9px; color: #5b6c86; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat-card .stat-delta { margin-top: 15px; background: #eef3fc; color: #526a91; border: 1px solid #e3eafa; border-radius: 99px; }
.stat-card .stat-icon { color: #7892c6; opacity: .35; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(27,51,91,.14); }

.btn-primary { background: linear-gradient(120deg, var(--teal), var(--ui-cyan)); border-color: var(--teal); box-shadow: 0 9px 21px var(--teal-glow); }
.btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(120deg, var(--teal-hover), var(--teal)); border-color: var(--teal-hover); }
.form-control, .form-select { min-height: 42px; background-color: #fcfdff; border-color: #dbe3ef; }
.form-control:hover, .form-select:hover { border-color: #bfcbe3; }
.table-responsive { border-radius: 14px; }
.table thead tr { background: #f0f4fb; }
.table th { padding-top: 13px !important; padding-bottom: 13px !important; color: #51647f !important; font-size: 11px; letter-spacing: .065em; text-transform: uppercase; }
.table td { padding-top: 13px !important; padding-bottom: 13px !important; border-color: #edf1f7; }
.table-hover tbody tr { transition: background .18s ease; }
.table-hover tbody tr:hover td { background: #f1f5ff; }
.nav-tabs { border-color: #e0e7f1; }
.nav-tabs .nav-link.active { color: var(--teal); border-color: #e0e7f1 #e0e7f1 #fff; font-weight: 700; }
.dropdown-menu { border-color: #e2e9f4; box-shadow: 0 24px 55px rgba(24,43,81,.17); }
.spectra-loader-card { border-color: #e0e7f3; box-shadow: 0 30px 80px rgba(21,42,83,.2); }

@keyframes spectraAmbient { from { transform: translate3d(-12px, 0, 0) scale(1); } to { transform: translate3d(18px, 12px, 0) scale(1.12); } }
@media (max-width: 768px) {
  #topbar { background: linear-gradient(110deg, #172b52, #344f92); backdrop-filter: none; }
  body.company-3 #topbar { background: linear-gradient(110deg, #35295d, #735399); }
  .topbar-title { color: #fff; }
  .topbar-company-mobile { color: #b9cbed; }
  .sb-toggle, .notif-btn { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.19); }
  #main-content { padding: 18px 15px 35px; }
  .page-header { min-height: 132px; padding: 23px 22px; border-radius: 20px; }
  .page-header h2 { font-size: clamp(22px, 6vw, 28px); }
  .page-header::before { width: 240px; height: 240px; top: -75px; }
  .page-header::after { width: 210px; height: 210px; top: -60px; right: -15%; }
  .stat-card { min-height: 138px; padding: 20px; }
  .stat-card .stat-value { font-size: 29px; }
  .sb-logo { min-height: 88px; }
  .sb-footer { background: rgba(5,13,32,.2); }
  .table th, .table td { padding: 11px 12px !important; }
}
@media (max-width: 480px) {
  #main-content { padding: 15px 12px 32px; }
  .page-header { padding: 21px 19px; }
  .stat-card { min-height: 130px; padding: 18px; }
  .stat-card .stat-value { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-header::before { animation: none; }
  .stat-card, #main-content .card { transition: none !important; }
  .stat-card:hover, #main-content .card:hover { transform: none; }
}
@media print {
  body, #main-content .card, .stat-card { background: #fff !important; }
  .page-header { min-height: 0; background: #fff !important; color: #15223d; box-shadow: none; border: 1px solid #dbe3ed; }
  .page-header h2, .page-header h2 + div, .page-header p, .page-header small { color: #15223d !important; }
  .page-header::before, .page-header::after { display: none; }
}
