:root {
  --bg: #091521;
  --sidebar: rgba(16, 31, 48, 0.42);
  --panel: rgba(18, 36, 56, 0.42);
  --panel-2: rgba(24, 45, 70, 0.54);
  --panel-3: rgba(34, 59, 88, 0.58);
  --line: rgba(210, 241, 255, 0.18);
  --text: #f7fbff;
  --muted: #bed6e4;
  --soft: #8fb2c7;
  --green: #64d36b;
  --red: #d64d59;
  --blue: #72c8ff;
  --shadow: 0 24px 54px rgba(4, 18, 30, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 20, 34, 0.48), rgba(5, 18, 28, 0.62)),
    linear-gradient(135deg, rgba(18, 107, 122, 0.22), rgba(8, 42, 66, 0.28)),
    url("./assets/huffy-sea-bg.jpeg") center center / cover no-repeat fixed;
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.52), rgba(7, 18, 31, 0.72)),
    linear-gradient(135deg, rgba(18, 107, 122, 0.16), rgba(8, 42, 66, 0.22));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.auth-card {
  width: min(100%, 460px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(19, 34, 56, 0.72);
  box-shadow: 0 26px 56px rgba(3, 14, 25, 0.45);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  padding: 24px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.auth-card-glow {
  position: absolute;
  inset: -35% auto auto -25%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(116, 225, 227, 0.2), rgba(116, 225, 227, 0));
  pointer-events: none;
}

.auth-card-logo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  margin: 0 auto 4px;
}

.auth-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card h2 {
  margin: 0;
  text-align: center;
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 8px 18px rgba(2, 16, 28, 0.24);
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auth-form {
  margin-top: 4px;
  display: grid;
  gap: 12px;
}

.auth-language-field select {
  width: 100%;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(170, 205, 255, 0.2);
  background: rgba(64, 89, 130, 0.5);
  color: var(--text);
  padding: 13px 14px;
}

.auth-form input::placeholder {
  color: rgba(196, 219, 238, 0.65);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 88px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
}

.auth-password-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auth-submit {
  margin-top: 6px;
  width: 100%;
}

.auth-error {
  margin-top: 2px;
  color: #ffbfc4;
  font-size: 0.9rem;
  text-align: left;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  backdrop-filter: blur(4px);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(14, 27, 42, 0.72), rgba(12, 22, 36, 0.54));
  border-right: 1px solid rgba(210, 241, 255, 0.14);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 18px;
}

.logo-badge {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-block h1 {
  margin: 0;
  font-size: 1.1rem;
}

.muted-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: grid;
  gap: 10px;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 13px 14px;
  background: transparent;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-link.active,
.nav-link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(2, 18, 32, 0.22);
}

.nav-icon {
  color: #d9daf6;
  opacity: 0.85;
}

.sidebar-card,
.panel,
.group-card,
.summary-item,
.document-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.sidebar-card {
  margin-top: auto;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.employee-zone-card {
  cursor: pointer;
}

.sidebar-card strong {
  font-size: 0.95rem;
}

.sidebar-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sidebar-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.sidebar-card-add {
  width: 100%;
  min-width: 0;
}

.employee-portal-shell {
  display: grid;
  gap: 18px;
}

.employee-portal-login-card {
  padding: 22px;
}

.employee-portal-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, 0.8fr)) auto;
  gap: 18px;
  align-items: end;
}

.employee-portal-login-copy {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.employee-portal-login-copy strong {
  color: var(--text);
  font-size: 1.05rem;
}

.employee-portal-login-actions {
  display: flex;
  justify-content: flex-end;
}

.employee-portal-topbar {
  padding: 22px;
}

.employee-portal-topbar-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) auto;
  gap: 18px;
}

.employee-portal-topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.employee-portal-topbar-value {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 22px;
  background: rgba(73, 98, 148, 0.48);
  border: 1px solid rgba(190, 210, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.employee-portal-tabs {
  display: flex;
  gap: 12px;
}

.employee-portal-content {
  display: grid;
  gap: 18px;
}

.employee-portal-punch-view {
  display: grid;
  gap: 18px;
}

.employee-portal-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.employee-portal-access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(73, 98, 148, 0.32);
  border: 1px solid rgba(190, 210, 255, 0.08);
  color: rgba(233, 240, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.employee-portal-week-tabs {
  padding: 0 4px;
}

.employee-portal-punch-hero {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(42, 45, 94, 0.86), rgba(31, 35, 72, 0.78));
  border: 1px solid rgba(194, 218, 255, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.employee-portal-punch-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8e77f;
  font-weight: 800;
}

.employee-portal-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(167, 188, 215, 0.42);
}

.employee-portal-status-dot.active {
  background: rgba(123, 214, 93, 0.92);
  box-shadow: 0 0 0 8px rgba(123, 214, 93, 0.12);
}

.employee-portal-punch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.employee-portal-punch-btn {
  min-height: 68px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.employee-portal-punch-btn.punch-in {
  background: linear-gradient(180deg, rgba(114, 206, 92, 0.78), rgba(92, 177, 77, 0.68));
}

.employee-portal-punch-btn.punch-out {
  background: linear-gradient(180deg, rgba(226, 96, 88, 0.8), rgba(189, 72, 67, 0.68));
}

.employee-portal-punch-btn.is-muted {
  filter: saturate(0.7) brightness(0.9);
  opacity: 0.72;
}

.employee-portal-punch-btn.is-blocked {
  opacity: 0.45;
  filter: grayscale(0.18) saturate(0.5);
  cursor: not-allowed;
}

.employee-portal-punch-timer {
  display: grid;
  gap: 6px;
}

.employee-portal-punch-timer span {
  color: var(--muted);
  font-weight: 700;
}

.employee-portal-punch-timer strong {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.employee-portal-location-btn {
  width: fit-content;
  min-width: 180px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(194, 218, 255, 0.14);
  background: rgba(64, 97, 138, 0.28);
  color: var(--text);
  font-weight: 700;
}

.employee-portal-location-text {
  color: var(--muted);
  font-size: 0.96rem;
}

.employee-portal-blocked-note {
  color: rgba(255, 196, 196, 0.92);
  font-weight: 700;
}

.employee-portal-last-actions {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.employee-portal-punch-list {
  display: grid;
  gap: 10px;
}

.employee-portal-punch-row {
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(49, 54, 96, 0.7);
  border: 1px solid rgba(194, 218, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1fr auto;
  gap: 16px;
  align-items: center;
}

.employee-portal-punch-row strong {
  font-size: 1rem;
}

.employee-portal-punch-row-day {
  display: grid;
  gap: 4px;
}

.employee-portal-punch-row-day small {
  color: rgba(214, 226, 247, 0.68);
  font-size: 0.82rem;
  line-height: 1.2;
}

.employee-portal-punch-row span {
  color: var(--muted);
}

.employee-portal-punch-row-chevron {
  color: rgba(214, 226, 247, 0.62);
  font-size: 1.05rem;
}

.employee-portal-empty {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(195, 224, 255, 0.14);
  background: rgba(24, 45, 69, 0.56);
  color: var(--muted);
}

.settings-geo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.main-shell {
  padding: 28px;
  position: relative;
}

.main-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(4, 20, 34, 0.12), rgba(5, 18, 28, 0.3)),
    linear-gradient(135deg, rgba(34, 170, 165, 0.14), rgba(7, 43, 68, 0.22)),
    url("./assets/huffy-sea-bg.jpeg") center center / cover no-repeat;
  opacity: 0.92;
  filter: saturate(1.08) contrast(0.96) brightness(0.88);
  pointer-events: none;
}

.main-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(7, 20, 30, 0.14), rgba(7, 20, 30, 0.24));
  pointer-events: none;
}

.main-shell > * {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin: 116px 0 18px;
  flex-direction: column;
}

.hero-brand {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 22px 24px 28px;
  text-align: center;
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.11em;
  font-weight: 500;
  font-stretch: condensed;
  color: rgba(255, 255, 255, 0.96);
  text-transform: uppercase;
  text-shadow: 0 8px 18px rgba(2, 16, 28, 0.28);
  background: linear-gradient(180deg, rgba(8, 27, 38, 0.18), rgba(8, 27, 38, 0.05));
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-brand::after {
  content: none;
}

.topbar-title h2 {
  padding-top: 4px;
}

.topbar-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h2 {
  margin: 8px 0;
  font-size: 2rem;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: flex-end;
}

.toolbar-logout {
  height: 48px;
  padding-inline: 18px;
}

.topbar-add {
  min-width: 160px;
}

.toolbar-field,
.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar-field.compact {
  justify-items: start;
}

.toolbar-field.compact span {
  padding-left: 8px;
}

.toolbar-field select,
.search-field input {
  min-width: 220px;
}

.toolbar-field.compact select {
  min-width: 150px;
}

.toolbar-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 0;
}

select,
input {
  border: 1px solid transparent;
  outline: none;
  border-radius: 16px;
  background: var(--panel-3);
  color: var(--text);
  padding: 12px 14px;
  backdrop-filter: blur(16px);
}

select:focus,
input:focus {
  border-color: rgba(112, 123, 247, 0.65);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ghost-btn,
.danger-btn,
.success-btn,
.icon-btn {
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--text);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.1);
}

.danger-btn {
  background: var(--red);
}

.success-btn {
  background: var(--green);
  color: #102214;
  font-weight: 800;
}

.icon-btn {
  background: transparent;
  padding: 0;
  font-size: 1.7rem;
  color: var(--muted);
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-cycle {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cycle-toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(210, 241, 255, 0.14);
  background: rgba(20, 43, 67, 0.5);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.cycle-toggle-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 7px;
  border: 1px solid rgba(178, 214, 255, 0.24);
  background: rgba(85, 118, 168, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(6, 19, 32, 0.16);
}

.cycle-toggle-field input[type="checkbox"]:checked {
  background: rgba(118, 201, 86, 0.88);
  border-color: rgba(159, 233, 125, 0.5);
}

.payroll-tabs-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.payroll-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payroll-tab {
  border: 1px solid rgba(210, 241, 255, 0.14);
  background: rgba(16, 36, 56, 0.48);
  color: var(--muted);
  border-radius: 24px;
  min-height: 62px;
  padding: 14px 28px;
  font-weight: 700;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.payroll-tab.active {
  background: rgba(122, 218, 86, 0.9);
  color: #102214;
  border-color: transparent;
}

.payroll-commission-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0;
  width: min(100%, 420px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(210, 241, 255, 0.14);
  background: rgba(20, 43, 67, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.payroll-commission-item {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  min-width: 0;
}

.payroll-commission-item + .payroll-commission-item {
  border-left: 1px solid rgba(210, 241, 255, 0.12);
}

.payroll-commission-item span {
  color: rgba(145, 199, 113, 0.95);
  font-weight: 800;
  font-size: 0.95rem;
}

.payroll-commission-item strong {
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
}

.payroll-commission-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payroll-commission-input input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.payroll-commission-input input::-webkit-outer-spin-button,
.payroll-commission-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.payroll-commission-input strong {
  flex-shrink: 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

.payroll-tabs-bar {
  align-items: center;
}

.payroll-tabs-bar .payroll-commission-card {
  margin-left: auto;
}

.section-cycle-field {
  width: fit-content;
}

.section-cycle-field select {
  min-width: 420px;
  background: rgba(68, 72, 126, 0.48);
}

.employee-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.group-list,
.stats-grid,
.panel-grid,
.summary-list,
.document-grid {
  display: grid;
  gap: 18px;
}

.settings-users-card {
  margin-bottom: 18px;
}

#employeesSection {
  display: grid;
  gap: 24px;
}

#employeesSection .group-list {
  gap: 24px;
}

.inventory-shell {
  display: grid;
  gap: 18px;
}

.inventory-panel {
  display: grid;
  gap: 18px;
}

.inventory-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-controls {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inventory-control {
  display: grid;
  gap: 10px;
}

.inventory-control-actions {
  align-content: end;
}

.inventory-actions-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-control span {
  color: var(--muted);
}

.inventory-control input,
.inventory-control select {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(214, 238, 255, 0.12);
  background: rgba(34, 68, 104, 0.58);
  color: var(--text);
  border-radius: 22px;
  padding: 14px 18px;
}

.inventory-summary-grid,
.inventory-alerts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inventory-summary-card {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(214, 238, 255, 0.18);
  background: linear-gradient(180deg, rgba(17, 49, 68, 0.52), rgba(24, 52, 78, 0.4));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.inventory-summary-card span {
  color: var(--muted);
}

.inventory-summary-card strong {
  font-size: 2rem;
}

.inventory-table-panel {
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(180deg, rgba(16, 36, 53, 0.92), rgba(14, 31, 47, 0.88));
}

.inventory-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.inventory-simple-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(214, 238, 255, 0.08);
  background: rgba(16, 34, 52, 0.94);
}

.inventory-simple-table th,
.inventory-simple-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
  border-right: 1px solid rgba(214, 238, 255, 0.08);
  border-bottom: 1px solid rgba(214, 238, 255, 0.08);
}

.inventory-simple-table th:last-child,
.inventory-simple-table td:last-child {
  border-right: 0;
}

.inventory-simple-table tbody tr:last-child td {
  border-bottom: 0;
}

.inventory-simple-table thead th {
  background: rgba(111, 155, 89, 0.88);
  color: #f8fff4;
  font-weight: 700;
}

.inventory-simple-row-need-order td {
  background: rgba(154, 76, 76, 0.16);
}

.inventory-simple-row-low td {
  background: rgba(162, 148, 82, 0.14);
}

.inventory-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.inventory-table th,
.inventory-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(214, 238, 255, 0.08);
  vertical-align: top;
}

.inventory-table td:last-child,
.inventory-table th:last-child {
  white-space: nowrap;
}

.inventory-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  background: rgba(111, 155, 89, 0.82);
  color: #f8fff4;
}

.inventory-table tr:last-child td {
  border-bottom: 0;
}

.inventory-row-need-order td {
  background: rgba(154, 76, 76, 0.18);
}

.inventory-row-low td {
  background: rgba(162, 148, 82, 0.15);
}

.inventory-inline-input,
.inventory-inline-select {
  width: 100%;
  border: 1px solid rgba(214, 238, 255, 0.08);
  background: rgba(20, 39, 60, 0.92);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
}

.inventory-action-stack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inventory-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(214, 238, 255, 0.1);
  background: rgba(19, 42, 66, 0.36);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.inventory-alert-main {
  display: grid;
  gap: 6px;
}

.inventory-alert-main span {
  color: var(--muted);
}

.inventory-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.inventory-alert-badge.need-order {
  background: rgba(193, 91, 91, 0.22);
  color: #ffd5d5;
}

.inventory-alert-badge.low {
  background: rgba(188, 171, 92, 0.2);
  color: #fff4bf;
}

.inventory-dropzone {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed rgba(210, 241, 255, 0.26);
  background: rgba(18, 42, 64, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: 180ms ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.inventory-dropzone.is-dragover {
  border-color: rgba(139, 224, 107, 0.78);
  background: rgba(34, 78, 87, 0.42);
  transform: translateY(-1px);
}

.inventory-dropzone strong {
  font-size: 1.05rem;
}

.inventory-dropzone span {
  color: var(--muted);
  max-width: 620px;
}

.inventory-documents-list {
  display: grid;
  gap: 12px;
}

.modal-documents-dropzone {
  padding: 22px 24px;
  margin-top: -6px;
}

.modal-documents-list {
  margin-top: -4px;
}

@media (max-width: 860px) {
  #employeeDetailsPanel {
    grid-template-columns: 1fr;
  }

  .employee-modal-span-2,
  #employeeDetailsPanel .checkbox-field,
  #employeeDetailsPanel .form-divider,
  #employeeDetailsPanel .form-section-title,
  #employeeDetailsPanel .modal-documents-dropzone,
  #employeeDetailsPanel .modal-documents-list,
  #employeeDetailsPanel .modal-actions {
    grid-column: auto;
  }

  .field-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-payslip-head,
  .employee-punch-day,
  .employee-punch-times {
    grid-template-columns: 1fr;
  }

  .employee-portal-topbar-grid {
    grid-template-columns: 1fr;
  }

  .employee-portal-access-row {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-portal-access-badge {
    justify-content: flex-start;
  }

  .employee-portal-punch-actions,
  .employee-portal-punch-row,
  .settings-geo-grid,
  .inventory-controls {
    grid-template-columns: 1fr;
  }

  .schedule-calendar-week,
  .schedule-calendar-month {
    grid-template-columns: 1fr;
  }

  .schedule-toolbar {
    align-items: stretch;
  }

  .schedule-period-nav {
    justify-content: space-between;
  }

  .schedule-period-nav span {
    min-width: 0;
    flex: 1;
  }

  .schedule-time-grid {
    grid-template-columns: 1fr;
  }
}

.inventory-document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(19, 42, 66, 0.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.inventory-document-main {
  display: grid;
  gap: 6px;
}

.inventory-document-main span,
.inventory-empty {
  color: var(--muted);
}

.inventory-empty {
  padding: 12px 4px 2px;
}

.inventory-item-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-item-actions {
  justify-content: space-between;
}

.settings-user-row {
  min-height: 88px;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
}

.settings-user-row .employee-main {
  gap: 4px;
}

.settings-user-meta {
  display: grid;
  gap: 6px;
  min-width: 160px;
  justify-items: end;
  text-align: right;
}

.settings-user-meta strong {
  margin: 0;
}

.settings-user-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-inline-btn {
  border: 1px solid rgba(156, 175, 205, 0.25);
  background: rgba(64, 84, 120, 0.36);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.field-inline-btn:hover {
  background: rgba(84, 110, 155, 0.42);
  border-color: rgba(171, 196, 229, 0.34);
  transform: translateY(-1px);
}

.group-card {
  border-radius: 28px;
  overflow: hidden;
}

.group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(21, 43, 67, 0.45);
  color: var(--text);
  padding: 26px 24px;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
}

.group-toggle-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inline-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(150, 224, 109, 0.92), rgba(113, 205, 91, 0.82));
  color: #122114;
  font-weight: 800;
  border: 1px solid rgba(223, 255, 211, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 28px rgba(32, 86, 34, 0.22);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.group-chevron-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.group-toggle small {
  color: var(--muted);
  font-size: 0.92rem;
}

.chevron {
  color: var(--muted);
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.group-card.expanded .chevron {
  transform: rotate(90deg);
}

.group-content {
  padding: 18px 22px 22px;
  display: grid;
  gap: 14px;
}

.group-content.hidden {
  display: none;
}

.group-empty-state {
  display: grid;
  gap: 10px;
  min-height: 180px;
  align-content: center;
  justify-items: start;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px solid rgba(214, 238, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(18, 43, 63, 0.5), rgba(20, 44, 64, 0.36)),
    radial-gradient(circle at top right, rgba(182, 210, 255, 0.08), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.group-empty-state strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.group-empty-state span {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

#scheduleToggleButton.is-collapsed .chevron {
  transform: rotate(0deg);
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 24px;
  border: 1px solid rgba(196, 226, 255, 0.08);
  background: linear-gradient(180deg, rgba(23, 49, 74, 0.48), rgba(19, 41, 62, 0.34));
}

.schedule-view-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-view-tab {
  min-width: 112px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: rgba(48, 77, 111, 0.46);
  color: var(--muted);
  font-weight: 700;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.schedule-view-tab.active {
  background: linear-gradient(180deg, rgba(151, 224, 113, 0.86), rgba(114, 197, 96, 0.74));
  color: #112312;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.schedule-period-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(30, 56, 84, 0.44);
  border: 1px solid rgba(196, 226, 255, 0.1);
  color: var(--text);
}

.schedule-period-nav span {
  min-width: 160px;
  text-align: center;
  font-weight: 700;
}

.schedule-employee-picker-wrap {
  padding: 10px;
  border-radius: 24px;
  background: rgba(52, 80, 116, 0.42);
  border: 1px solid rgba(196, 226, 255, 0.1);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.schedule-employee-select-field {
  min-width: min(100%, 420px);
}

.schedule-employee-select-field select {
  width: 100%;
  min-height: 68px;
  padding: 0 20px;
  border-radius: 22px;
  border: 1px solid rgba(138, 166, 255, 0.18);
  background: rgba(46, 68, 102, 0.86);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.schedule-calendar {
  display: grid;
  gap: 14px;
}

.schedule-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.schedule-update-btn {
  min-width: 150px;
}

.schedule-calendar-week,
.schedule-calendar-month {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.schedule-week-editor {
  display: grid;
  gap: 18px;
}

.schedule-week-board {
  overflow-x: auto;
  padding-bottom: 6px;
}

.schedule-week-grid {
  display: grid;
  grid-template-columns: 200px repeat(7, minmax(165px, 1fr));
  gap: 8px;
  min-width: 1360px;
  align-items: stretch;
}

.schedule-week-head,
.schedule-week-employee,
.schedule-week-cell {
  border-radius: 22px;
  border: 1px solid rgba(196, 226, 255, 0.1);
  background: rgba(19, 42, 66, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.schedule-week-head {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px 14px;
  align-content: center;
  text-align: center;
}

.schedule-week-head strong {
  font-size: 1rem;
}

.schedule-week-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-week-head-employee {
  text-align: left;
  font-weight: 800;
}

.schedule-week-employee {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(20, 46, 70, 0.68), rgba(19, 40, 62, 0.48)),
    linear-gradient(90deg, color-mix(in srgb, var(--schedule-chip) 40%, transparent), transparent 55%);
}

.schedule-week-employee-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  background: color-mix(in srgb, var(--schedule-chip) 78%, rgba(57, 86, 122, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.schedule-week-employee-meta {
  display: grid;
  gap: 4px;
}

.schedule-week-employee-meta strong {
  font-size: 1rem;
  line-height: 1.25;
}

.schedule-week-cell {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(20, 46, 70, 0.54), rgba(19, 40, 62, 0.42)),
    radial-gradient(circle at top left, color-mix(in srgb, var(--schedule-chip) 28%, transparent), transparent 52%);
}

.schedule-week-cell.has-shift {
  border-color: color-mix(in srgb, var(--schedule-chip) 42%, rgba(196, 226, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 3px 0 0 color-mix(in srgb, var(--schedule-chip) 76%, transparent);
}

.schedule-week-cell-preview {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--schedule-chip) 26%, rgba(32, 53, 82, 0.62));
}

.schedule-week-day-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 26px;
  border: 1px solid rgba(196, 226, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(20, 46, 70, 0.48), rgba(19, 40, 62, 0.38)),
    radial-gradient(circle at top right, rgba(172, 210, 255, 0.06), transparent 45%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(7, 19, 34, 0.16);
}

.schedule-week-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.schedule-week-day-head span {
  color: var(--muted);
}

.schedule-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schedule-time-shell input {
  min-width: 0;
}

.schedule-shift-preview,
.schedule-month-shift {
  color: var(--text);
  font-weight: 700;
  opacity: 0.92;
}

.schedule-month-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.schedule-month-entry {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--schedule-chip), rgba(37, 62, 92, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.schedule-month-entry-name {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.schedule-month-entry-hours {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.schedule-month-shift {
  margin-top: auto;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.schedule-day-card,
.schedule-month-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(196, 226, 255, 0.1);
  background: rgba(19, 42, 66, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.schedule-month-card {
  min-height: 146px;
}

.schedule-month-card.is-muted {
  opacity: 0.62;
}

#employeeLeaveList .employee-row {
  min-height: 104px;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(180px, 0.9fr) auto;
  padding: 18px 20px;
}

#employeeLeaveList .employee-main {
  gap: 8px;
}

#employeeLeaveList .employee-main span {
  color: var(--muted);
  line-height: 1.45;
}

.schedule-day-card strong,
.schedule-month-card strong {
  font-size: 1rem;
}

.schedule-day-card span,
.schedule-month-card span {
  color: var(--muted);
}

.schedule-hours-input {
  margin-top: auto;
}

@media (max-width: 1380px) {
  .employee-portal-login-form {
    grid-template-columns: 1fr;
  }

  .schedule-calendar-week,
  .schedule-calendar-month {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

.employee-row,
.summary-item,
.document-card {
  border-radius: 22px;
  padding: 16px;
  background: rgba(19, 42, 66, 0.42);
}

.employee-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  min-height: 98px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(114, 200, 255, 0.34), rgba(49, 108, 161, 0.58));
  color: #f5fbff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.employee-main {
  display: grid;
  gap: 6px;
}

.employee-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.employee-action-btn {
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.employee-action-btn.delete {
  background: rgba(214, 77, 89, 0.95);
}

.employee-main strong,
.summary-item strong,
.document-card strong {
  display: block;
  margin-bottom: 4px;
}

.employee-main span,
.employee-meta,
.status-pill,
.document-card span,
.summary-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.status-active {
  color: #81f0a3;
  background: rgba(100, 211, 107, 0.14);
}

.status-pending {
  color: #ffcb77;
  background: rgba(255, 203, 119, 0.14);
}

.status-inactive {
  color: #f08e96;
  background: rgba(214, 77, 89, 0.14);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  border-radius: 30px;
  padding: 22px;
}

#dashboardSection .panel-grid {
  grid-template-columns: minmax(0, 1fr);
}

#dashboardSection .panel {
  width: 100%;
  max-width: 1240px;
}

#dashboardSection .summary-item {
  min-height: 96px;
  padding-inline: 28px;
}

.panel-head h3 {
  margin: 0;
}

.panel-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.panel-head-inline .section-cycle-field {
  width: fit-content;
  margin: 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.summary-item p {
  margin: 0;
  color: var(--muted);
}

#historyFeed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.payslip-sheet {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(210, 241, 255, 0.14);
  background: rgba(18, 36, 56, 0.44);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.payslip-sheet-head {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.4fr);
  border-bottom: 1px solid rgba(210, 241, 255, 0.12);
}

.payslip-sheet-head strong,
.payslip-sheet-head span {
  padding: 10px 12px;
  border-right: 1px solid rgba(210, 241, 255, 0.12);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.payslip-sheet-head strong {
  background: rgba(118, 162, 170, 0.22);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.payslip-sheet-head span {
  background: rgba(255, 255, 255, 0.06);
}

.payslip-sheet-head span {
  border-right: 0;
}

.payslip-sheet-body {
  display: grid;
}

.payslip-sheet-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.4fr);
}

.payslip-sheet-row span,
.payslip-sheet-row strong {
  padding: 8px 10px;
  border-right: 1px solid rgba(210, 241, 255, 0.12);
  border-bottom: 1px solid rgba(210, 241, 255, 0.12);
  font-size: 0.95rem;
  background: rgba(14, 30, 48, 0.42);
  color: var(--text);
}

.payslip-sheet-row strong {
  border-right: 0;
  text-align: right;
  font-weight: 500;
}

.payslip-sheet-lavender .payslip-sheet-head strong {
  background: rgba(146, 125, 196, 0.3);
}

.payslip-sheet-ice .payslip-sheet-head strong {
  background: rgba(118, 183, 198, 0.28);
}

.payslip-sheet-sand .payslip-sheet-head strong {
  background: rgba(192, 168, 116, 0.28);
}

.payslip-sheet-stone .payslip-sheet-head strong {
  background: rgba(142, 152, 167, 0.28);
}

.payslip-sheet-mint .payslip-sheet-head strong {
  background: rgba(118, 185, 146, 0.28);
}

.payslip-sheet-sky .payslip-sheet-head strong {
  background: rgba(102, 166, 205, 0.28);
}

.payslip-sheet-cream .payslip-sheet-head strong {
  background: rgba(192, 182, 132, 0.28);
}

.payroll-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  color: #102214;
  border-radius: 20px;
  overflow: hidden;
}

.payroll-table th,
.payroll-table td {
  padding: 14px 10px;
  text-align: left;
  border: 1px solid rgba(18, 36, 56, 0.16);
}

.payroll-table th {
  color: #08161f;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.01em;
  background: #33c000;
  font-weight: 800;
}

.payroll-table tbody tr:last-child td {
  font-weight: 800;
}

.payroll-table td:first-child {
  font-weight: 700;
}

.payroll-table td.is-total {
  background: rgba(53, 74, 99, 0.92);
  color: #f8fcff;
  font-weight: 800;
}

.payroll-black-cell {
  background: #000000;
}

.payroll-detailed-shell {
  border-radius: 28px;
  overflow: hidden;
}

.payroll-hours-table td,
.payroll-hours-table th {
  text-align: center;
}

.payroll-hours-table td:first-child,
.payroll-hours-table th:first-child {
  text-align: left;
}

.payroll-hours-input {
  width: 92px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  border-radius: 0;
}

.punch-table th,
.punch-table td {
  min-width: 104px;
}

.punch-table th:first-child,
.punch-table td:first-child {
  min-width: 160px;
}

.punch-table th:last-child,
.punch-table td:last-child,
.punch-table th:nth-last-child(2),
.punch-table td:nth-last-child(2),
.punch-table th:nth-last-child(3),
.punch-table td:nth-last-child(3) {
  min-width: 132px;
}

.punch-week-tabs {
  display: flex;
  gap: 12px;
  padding: 0 0 18px;
}

.punch-section-toolbar {
  justify-content: space-between;
}

.punch-import-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.punch-template-btn {
  min-height: 48px;
  border: 1px solid rgba(210, 241, 255, 0.16);
}

.punch-import-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(210, 241, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 64, 91, 0.68), rgba(20, 43, 67, 0.48)),
    rgba(10, 27, 44, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.punch-import-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.punch-import-head > div {
  display: grid;
  gap: 5px;
}

.punch-import-head strong {
  font-size: 1.08rem;
}

.punch-import-head span,
.punch-import-hint {
  color: var(--muted);
}

.punch-import-hint {
  margin: 0;
}

.punch-import-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.punch-import-stats span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid rgba(210, 241, 255, 0.12);
  border-radius: 16px;
  background: rgba(7, 22, 37, 0.38);
  color: var(--muted);
}

.punch-import-stats strong {
  color: var(--text);
  font-size: 1.2rem;
}

.punch-import-stats .is-ready {
  border-color: rgba(137, 211, 94, 0.38);
  background: rgba(63, 111, 51, 0.2);
}

.punch-import-stats .is-warning {
  border-color: rgba(255, 189, 89, 0.42);
  background: rgba(125, 82, 24, 0.2);
}

.punch-import-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.punch-import-success {
  color: #bdeba7;
  font-weight: 700;
}

.punch-week-tab {
  border: 1px solid rgba(156, 184, 203, 0.24);
  background: rgba(44, 70, 99, 0.58);
  color: rgba(236, 243, 255, 0.88);
  border-radius: 18px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.punch-week-tab.active {
  background: rgba(137, 211, 94, 0.82);
  color: #16311b;
  border-color: rgba(214, 246, 191, 0.6);
  box-shadow: 0 10px 25px rgba(117, 200, 79, 0.18);
}

.punch-week-tab:hover {
  transform: translateY(-1px);
}

.punch-input {
  width: 100%;
}

.punch-day-cell {
  display: grid;
  gap: 6px;
}

.punch-day-cell .punch-input {
  text-align: center;
}

.punch-day-summary {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding-top: 2px;
}

.punch-day-summary span {
  color: rgba(214, 226, 247, 0.72);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.payroll-review-title {
  padding: 0 0 16px;
  text-align: center;
  color: var(--text);
  font-size: 2rem;
  font-weight: 500;
}

.payroll-review-table th {
  background: rgba(154, 165, 234, 0.72);
  color: #101522;
  text-align: center;
}

.payroll-review-table td,
.payroll-review-table th,
.payroll-review-table td:first-child,
.payroll-review-table th:first-child {
  text-align: center;
}

.payroll-review-header-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #101522;
  text-align: center;
  font-weight: 700;
  border-radius: 0;
}

.payroll-review-header-input::placeholder {
  color: transparent;
}

.payroll-table-dashboard {
  background: rgba(18, 36, 56, 0.44);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.payroll-table-dashboard th,
.payroll-table-dashboard td {
  border: 1px solid rgba(210, 241, 255, 0.12);
}

.payroll-table-dashboard th {
  color: #f8fcff;
  background: rgba(90, 132, 85, 0.68);
}

.payroll-table-dashboard td {
  background: rgba(14, 30, 48, 0.42);
  color: var(--text);
}

.payroll-employee-cell {
  font-size: 1.02rem;
  min-width: 180px;
}

.payroll-employee-cell.is-highlight {
  background: rgba(255, 232, 92, 0.88);
  color: #151203;
}

.payroll-total-cell {
  font-weight: 700;
}

.payroll-total-row td {
  font-weight: 800;
  text-align: center;
}

.payroll-total-row td:not(.is-total) {
  background: rgba(36, 57, 77, 0.72);
}

.payroll-summary-detailed td {
  min-width: 120px;
}

.payroll-summary-detailed .payroll-total-cell.has-value {
  font-weight: 800;
}

.payroll-cell-input {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.payroll-cell-input input {
  width: 92px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: right;
  border-radius: 0;
}

.payroll-cell-input span,
.payroll-cell-value {
  color: var(--text);
}

.payroll-cell-blocked {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(9, 14, 22, 0.82);
}

.payroll-name-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 0;
}

.payroll-name-input::placeholder {
  color: var(--muted);
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.7);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-card {
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 28px;
  background: rgba(20, 40, 62, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: auto;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.employee-modal-tabs {
  display: flex;
  gap: 10px;
  padding: 14px 24px 0;
  flex-wrap: wrap;
}

.employee-modal-tab {
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(199, 228, 255, 0.1);
  background: rgba(40, 60, 90, 0.42);
  color: var(--muted);
  font-weight: 700;
}

.employee-modal-tab.active {
  background: rgba(206, 70, 88, 0.88);
  color: #fff;
  border-color: rgba(255, 219, 224, 0.16);
}

.form-grid {
  display: grid;
  gap: 18px;
  padding: 24px;
}

#employeeForm {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 18px;
}

.employee-modal-panel {
  display: grid;
  gap: 18px;
}

#employeeDetailsPanel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}

.employee-modal-top-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.employee-modal-field {
  min-width: 0;
}

.salary-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px 0 0;
  border-radius: 20px;
  background: rgba(46, 68, 102, 0.86);
  border: 1px solid rgba(138, 166, 255, 0.18);
}

.salary-input-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 64px;
  padding: 0 18px;
  color: var(--text);
}

.salary-input-shell span {
  color: rgba(219, 231, 248, 0.78);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.employee-modal-span-2,
#employeeDetailsPanel .checkbox-field,
#employeeDetailsPanel .form-divider,
#employeeDetailsPanel .form-section-title,
#employeeDetailsPanel .modal-documents-dropzone,
#employeeDetailsPanel .modal-documents-list,
#employeeDetailsPanel .modal-actions {
  grid-column: 1 / -1;
}

.employee-modal-cycle {
  margin-bottom: 6px;
}

.employee-modal-preview {
  display: grid;
  gap: 18px;
}

.employee-payslip-card {
  border-radius: 24px;
  border: 1px solid rgba(195, 224, 255, 0.16);
  background: rgba(24, 45, 69, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.employee-payslip-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
}

.employee-payslip-head strong,
.employee-payslip-head span {
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(195, 224, 255, 0.14);
}

.employee-payslip-head strong {
  color: #f8fbff;
}

.employee-payslip-head span {
  color: rgba(240, 245, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.employee-payslip-rows {
  display: grid;
}

.employee-payslip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(195, 224, 255, 0.1);
}

.employee-payslip-row:last-child {
  border-bottom: 0;
}

.employee-payslip-row span {
  color: var(--muted);
}

.employee-payslip-row strong {
  color: var(--text);
  font-weight: 800;
}

.employee-punch-shell {
  display: grid;
  gap: 12px;
}

.employee-schedule-shell {
  display: grid;
  gap: 16px;
}

.employee-modal-schedule-tabs {
  justify-content: flex-start;
}

.employee-schedule-days {
  display: grid;
  gap: 14px;
}

.employee-schedule-day-card {
  gap: 12px;
}

.employee-schedule-day-card .salary-input-shell {
  min-height: 0;
}

.employee-schedule-day-card .salary-input-shell input {
  min-height: 56px;
}

.employee-schedule-day-card .salary-input-shell span {
  padding-right: 2px;
  font-size: 0.94rem;
}

.employee-schedule-shift-preview {
  min-height: 24px;
  color: rgba(240, 245, 255, 0.9);
}

.employee-punch-day {
  border-radius: 20px;
  border: 1px solid rgba(195, 224, 255, 0.12);
  background: rgba(44, 49, 88, 0.74);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1fr auto;
  gap: 18px;
  align-items: center;
}

.employee-punch-day strong {
  font-size: 1rem;
}

.employee-punch-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 160px));
  gap: 10px;
}

.employee-punch-day .punch-input {
  min-height: 44px;
}

.employee-punch-placeholder {
  color: var(--muted);
}

.employee-punch-chevron {
  color: var(--muted);
  font-size: 1rem;
}

.employee-punch-total {
  margin-top: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(22, 26, 50, 0.88);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.employee-punch-total span {
  color: var(--muted);
  font-weight: 700;
}

.employee-punch-total strong {
  color: #76cb56;
  font-size: 1.8rem;
  font-weight: 800;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 12px;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(210, 241, 255, 0.12);
  background: rgba(35, 61, 91, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(85, 118, 168, 0.42);
  border: 1px solid rgba(178, 214, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(6, 19, 32, 0.16);
  accent-color: rgba(127, 211, 95, 0.9);
  border-radius: 6px;
  opacity: 0.85;
  filter: saturate(0.9);
}

.checkbox-field input[type="checkbox"]:checked {
  background: rgba(118, 201, 86, 0.88);
  border-color: rgba(159, 233, 125, 0.5);
}

.checkbox-field span {
  color: var(--text);
  font-weight: 600;
}

.checkbox-field-compact {
  width: auto;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 14px;
  gap: 10px;
  background: rgba(35, 61, 91, 0.26);
}

.checkbox-field-compact input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checkbox-field-compact span {
  font-size: 0.94rem;
}

.form-divider {
  height: 1px;
  background: var(--line);
}

.form-section-title {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.user-permissions-field {
  display: grid;
  gap: 12px;
}

.user-permissions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-permissions-list .checkbox-field {
  min-height: 60px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

@media (max-width: 1100px) {
  .stats-grid,
  .panel-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .employee-row {
    grid-template-columns: 56px 1fr auto;
  }

  .user-permissions-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 8px;
  }

  .main-shell {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-title {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    justify-content: flex-start;
    align-self: stretch;
  }

  .toolbar-field select,
  .search-field input {
    min-width: 100%;
  }

  .section-cycle-field,
  .section-cycle-field select {
    width: 100%;
    min-width: 100%;
  }

  .punch-import-actions,
  .punch-import-actions button {
    width: 100%;
    margin-left: 0;
  }

  .punch-import-stats {
    grid-template-columns: 1fr 1fr;
  }

  .employee-row {
    grid-template-columns: 1fr;
  }

  .employee-actions {
    justify-content: flex-start;
  }
}
