﻿:root {
  color-scheme: light;
  --bg-top: #dce7f2;
  --bg-bottom: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --border: rgba(13, 35, 64, 0.11);
  --shadow: 0 20px 50px rgba(20, 37, 57, 0.12);
  --text-main: #12304a;
  --text-soft: #557187;
  --brand: #0e7a6b;
  --brand-deep: #0b5f54;
  --brand-bright: #0b6ee8;
  --accent: #f39a43;
  --radius: 22px;
}

body.theme-dark {
  color-scheme: dark;
  --bg-top: #08111d;
  --bg-bottom: #0f1b2b;
  --panel: rgba(14, 24, 38, 0.88);
  --panel-strong: #132133;
  --border: rgba(133, 162, 205, 0.18);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  --text-main: #edf5ff;
  --text-soft: #97abc2;
  --brand: #31c7aa;
  --brand-deep: #14937d;
  --brand-bright: #5d96ff;
  --accent: #ffb45e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(243, 154, 67, 0.14), transparent 30%),
    linear-gradient(155deg, var(--bg-top), var(--bg-bottom));
}

body.auth-mode {
  background: linear-gradient(180deg, #edf4ff 0%, #ffffff 48%, #f7fbff 100%);
}

body.dashboard-mode {
  background: linear-gradient(180deg, #edf4ff 0%, #f9fbff 38%, #f6fbff 100%);
}

body.auth-mode::before,
body.auth-mode::after,
body.dashboard-mode::before,
body.dashboard-mode::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
}

body.auth-mode::before {
  background:
    radial-gradient(circle at 10% 8%, rgba(116, 163, 240, 0.62), transparent 23%),
    radial-gradient(circle at 50% 45%, rgba(74, 131, 230, 0.42), transparent 18%),
    radial-gradient(circle at 92% 80%, rgba(61, 188, 188, 0.28), transparent 20%),
    radial-gradient(circle at 10% 92%, rgba(116, 171, 237, 0.4), transparent 22%);
  filter: blur(36px);
}

body.auth-mode::after {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 50% 42%, rgba(75, 131, 228, 0.22), transparent 16%);
}

body.dashboard-mode::before {
  background:
    radial-gradient(circle at 6% 10%, rgba(123, 168, 240, 0.48), transparent 24%),
    radial-gradient(circle at 50% 98%, rgba(107, 160, 240, 0.3), transparent 22%),
    radial-gradient(circle at 94% 88%, rgba(52, 181, 185, 0.24), transparent 18%);
  filter: blur(42px);
}

body.dashboard-mode::after {
  background:
    linear-gradient(180deg, rgba(118, 163, 232, 0.1), transparent 18%),
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.92), transparent 38%);
}

body.theme-dark.dashboard-mode {
  background: linear-gradient(180deg, #08111c 0%, #0d1725 42%, #101b29 100%);
}

body.theme-dark.dashboard-mode::before {
  background:
    radial-gradient(circle at 10% 10%, rgba(62, 110, 189, 0.34), transparent 24%),
    radial-gradient(circle at 50% 96%, rgba(24, 147, 126, 0.2), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(101, 136, 255, 0.18), transparent 18%);
  filter: blur(48px);
}

body.theme-dark.dashboard-mode::after {
  background:
    linear-gradient(180deg, rgba(72, 108, 166, 0.18), transparent 18%),
    radial-gradient(circle at 54% 40%, rgba(19, 33, 51, 0.9), transparent 42%);
}

body.startup-loading {
  overflow: hidden;
}

body.has-auth-dialog {
  overflow: hidden;
}

body.has-payslip-viewer {
  overflow: hidden;
}

body.has-payslip-document-viewer {
  overflow: hidden;
}

body.startup-loading .page-shell {
  opacity: 0;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 36px 0 40px;
  position: relative;
  transition: opacity 220ms ease;
}

.startup-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(98, 147, 233, 0.26), transparent 24%),
    radial-gradient(circle at 84% 78%, rgba(52, 181, 185, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(241, 247, 255, 0.96), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(10px);
}

.startup-loader-card {
  width: min(540px, calc(100vw - 40px));
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 42px 38px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
  border: 1px solid rgba(89, 122, 171, 0.12);
  box-shadow: 0 30px 70px rgba(31, 59, 96, 0.14);
  text-align: center;
}

.startup-loader-brand {
  width: min(320px, 72%);
}

.startup-loader-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(31, 74, 143, 0.14));
}

.startup-loader-spinner {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from 90deg,
      rgba(14, 122, 107, 0.12),
      rgba(11, 110, 232, 0.2),
      rgba(11, 110, 232, 0.98),
      rgba(14, 122, 107, 0.24)
    );
  animation: startup-spin 1s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(77, 112, 167, 0.08);
}

.startup-loader-spinner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
}

.startup-loader-spinner-core {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0d75eb, #0453b5);
  box-shadow:
    0 0 0 8px rgba(13, 117, 235, 0.1),
    0 18px 30px rgba(18, 98, 208, 0.18);
}

.startup-loader-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.startup-loader-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #6e86a6;
}

.startup-loader-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  color: #163e77;
}

.startup-loader-copy p {
  margin: 0;
  max-width: 360px;
  color: #5f7595;
  line-height: 1.6;
  font-size: 1rem;
}

@keyframes startup-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

body.auth-mode .page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.dashboard-mode .page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.auth-mode .hero {
  display: none;
}

body.dashboard-mode .hero {
  display: none;
}

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

body.theme-dark .app-shell {
  background: linear-gradient(180deg, rgba(13, 22, 35, 0.98), rgba(11, 18, 30, 0.98));
}

body.theme-dark .topbar {
  background:
    linear-gradient(135deg, rgba(17, 34, 61, 0.98), rgba(14, 26, 46, 0.98)),
    linear-gradient(120deg, rgba(79, 128, 214, 0.16), rgba(255, 255, 255, 0));
  border-bottom-color: rgba(114, 145, 190, 0.18);
}

body.theme-dark .topbar-mark,
body.theme-dark .topbar-user-panel,
body.theme-dark .platform-powered-by {
  background: rgba(18, 34, 58, 0.76);
  border-color: rgba(115, 146, 191, 0.16);
  box-shadow: 0 16px 32px rgba(6, 10, 18, 0.24);
}

body.theme-dark .topbar-brand-label,
body.theme-dark .topbar-user-label,
body.theme-dark .platform-powered-by-copy span,
body.theme-dark .topbar-version-pill {
  color: #9db2d6;
}

body.theme-dark .topbar-version-pill {
  background: rgba(109, 145, 205, 0.12);
  border-color: rgba(117, 154, 214, 0.18);
}

body.theme-dark .topbar-brand-copy h1,
body.theme-dark .welcome-copy,
body.theme-dark .platform-powered-by-copy strong {
  color: #f6f9ff;
}

body.theme-dark .topbar-logout {
  background: linear-gradient(180deg, rgba(21, 39, 67, 0.96), rgba(16, 31, 54, 0.96));
  border-color: rgba(117, 154, 214, 0.16);
  color: #d4e4ff;
  box-shadow: 0 14px 28px rgba(6, 10, 18, 0.22);
}

body.theme-dark .topbar-dashboard-shortcut {
  background: linear-gradient(180deg, rgba(21, 39, 67, 0.96), rgba(16, 31, 54, 0.96));
  border-color: rgba(117, 154, 214, 0.16);
  color: #d4e4ff;
  box-shadow: 0 14px 28px rgba(6, 10, 18, 0.22);
}

body.theme-dark .topbar-dashboard-shortcut.is-active,
body.theme-dark .topbar-dashboard-shortcut:disabled {
  background: linear-gradient(180deg, #1f72de, #095fd0);
  border-color: rgba(69, 143, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(8, 53, 120, 0.28);
}

body.theme-dark .dashboard-sidebar {
  background: linear-gradient(180deg, rgba(11, 20, 32, 0.9), rgba(16, 28, 42, 0.72));
  border-right-color: rgba(114, 145, 190, 0.18);
}

body.theme-dark .dashboard-main {
  background: linear-gradient(180deg, rgba(9, 16, 26, 0.28), rgba(9, 16, 26, 0.08));
}

body.theme-dark .dashboard-card,
body.theme-dark .activity-card,
body.theme-dark .summary-card,
body.theme-dark .meta-card,
body.theme-dark .shift-planner-board,
body.theme-dark .shift-planner-staff-panel,
body.theme-dark .shift-planner-detail-panel,
body.theme-dark .shift-planner-side-panel,
body.theme-dark .settings-day-row,
body.theme-dark .table-wrap,
body.theme-dark .calendar-shell-card,
body.theme-dark .roster-calendar-card {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.94), rgba(13, 23, 36, 0.96));
  border-color: rgba(114, 145, 190, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: rgba(10, 18, 30, 0.9);
  color: var(--text-main);
  border-color: rgba(117, 146, 189, 0.2);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: rgba(151, 171, 194, 0.74);
}

body.theme-dark .nav-item:hover {
  background: rgba(93, 150, 255, 0.12);
}

body.theme-dark .nav-item.is-active {
  background: linear-gradient(90deg, rgba(93, 150, 255, 0.22), rgba(93, 150, 255, 0.08));
  color: #7db0ff;
}

body.theme-dark table thead th {
  background: rgba(21, 35, 54, 0.96);
}

body.theme-dark table tbody tr {
  border-bottom-color: rgba(117, 146, 189, 0.12);
}

body.theme-dark .profile-theme-option,
body.theme-dark .profile-toggle-row {
  background: rgba(10, 18, 30, 0.86);
  border-color: rgba(117, 146, 189, 0.18);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.eyebrow,
.section-tag,
.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-soft);
}

.hero h1,
.panel h2,
.panel h3 {
  margin: 8px 0 0;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
}

.subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text-main);
}

.content-grid {
  display: grid;
  gap: 22px;
}

body.auth-mode .content-grid {
  min-height: 100vh;
  align-items: center;
  padding: 40px 24px 72px;
}

body.dashboard-mode .content-grid {
  min-height: 100vh;
  gap: 0;
}

.panel,
.sub-panel,
.status-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.auth-panel {
  max-width: 620px;
}

body.auth-mode .auth-panel {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dashboard-panel {
  display: grid;
  gap: 22px;
}

.dashboard-view {
  width: 100%;
}

body.dashboard-mode .dashboard-view {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
  background:
    linear-gradient(135deg, rgba(245, 249, 255, 0.98), rgba(225, 236, 251, 0.96)),
    linear-gradient(120deg, rgba(96, 144, 222, 0.12), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(86, 119, 169, 0.12);
  box-shadow: 0 16px 40px rgba(55, 87, 131, 0.08);
}

.topbar-mark {
  width: min(220px, 24vw);
  flex: 0 0 auto;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(102, 132, 182, 0.18);
  box-shadow:
    0 18px 34px rgba(79, 111, 159, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.topbar-logo,
.topbar-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.topbar-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.topbar-brand-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.topbar-brand-label {
  margin: 0;
  color: #5f759d;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-brand-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 1.04;
  color: #18386f;
  text-shadow: none;
}

.topbar-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28, 71, 136, 0.08);
  border: 1px solid rgba(76, 109, 161, 0.14);
  color: #47618a;
  font-size: 0.92rem;
  font-weight: 800;
}

.topbar-update-pill {
  max-width: min(100%, 420px);
  padding: 8px 14px;
  box-shadow: none;
  line-height: 1.25;
}

.platform-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(102, 132, 182, 0.16);
  box-shadow: 0 10px 24px rgba(79, 111, 159, 0.08);
}

.platform-powered-by-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.98);
}

.platform-powered-by-copy {
  display: grid;
  gap: 1px;
}

.platform-powered-by-copy span {
  color: #7288ad;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-powered-by-copy strong {
  color: #23446c;
  font-size: 0.84rem;
  font-weight: 800;
}

.topbar-user {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.topbar-user-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-user-panel {
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(103, 132, 182, 0.16);
  box-shadow: 0 16px 30px rgba(79, 111, 159, 0.08);
}

.topbar-user-label {
  display: block;
  margin: 0 0 6px;
  color: #7288ad;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-copy {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #17396f;
}

.topbar-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-dashboard-shortcut {
  align-self: flex-start;
  min-width: 200px;
  border: 1px solid rgba(91, 121, 170, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f7fc);
  color: #214d8b;
  box-shadow: 0 14px 28px rgba(76, 108, 156, 0.1);
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.topbar-dashboard-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(76, 108, 156, 0.14);
}

.topbar-dashboard-shortcut.is-active,
.topbar-dashboard-shortcut:disabled {
  background: linear-gradient(180deg, #1f72de, #095fd0);
  border-color: rgba(16, 92, 205, 0.34);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(13, 88, 201, 0.22);
  transform: none;
}

.topbar-dashboard-shortcut:disabled {
  cursor: default;
}

.topbar-notifications {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(113, 139, 179, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.94));
  box-shadow: 0 10px 22px rgba(76, 108, 156, 0.1);
  color: #22519b;
  display: grid;
  place-items: center;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.topbar-notifications:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(76, 108, 156, 0.14);
}

.topbar-notifications.has-notifications {
  border-color: rgba(13, 117, 235, 0.24);
  color: #0d5fcb;
}

.topbar-notifications-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.topbar-notifications-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.topbar-notifications-badge,
.nav-notification-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7c6f, #df2d2d);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(189, 46, 46, 0.26);
}

.topbar-notifications-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #e9f0fb);
  border: 2px solid rgba(90, 124, 176, 0.22);
  box-shadow: 0 8px 18px rgba(80, 111, 158, 0.12);
  color: #22519b;
  font-weight: 800;
}

.topbar-logout {
  min-width: 116px;
  border: 1px solid rgba(91, 121, 170, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f7fc);
  color: #214d8b;
  box-shadow: 0 14px 28px rgba(76, 108, 156, 0.1);
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 800;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 117px);
}

.workspace-shell.is-shift-planner-focus {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-right: 1px solid rgba(88, 117, 165, 0.12);
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.78), rgba(255, 255, 255, 0.56));
}

.workspace-shell.is-shift-planner-focus .dashboard-sidebar {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4d6284;
  padding: 18px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.nav-notification-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-item:hover {
  background: rgba(96, 142, 224, 0.08);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(110, 153, 231, 0.24), rgba(110, 153, 231, 0.08));
  color: #1256be;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.dashboard-main {
  padding: 34px 32px 42px;
}

.dashboard-main.is-shift-planner-focus {
  padding: 20px 24px 28px;
}

.content-page {
  display: grid;
  gap: 0;
  min-height: 0;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
  color: #143f7f;
}

.page-copy {
  margin: 10px 0 0;
  max-width: 620px;
  color: #6a7d99;
  line-height: 1.6;
}

.page-action-button {
  min-width: 200px;
  border: 1px solid rgba(97, 127, 174, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: #0d5ac7;
  padding: 14px 18px;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(81, 109, 149, 0.1);
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(94, 123, 169, 0.16);
  box-shadow: 0 14px 24px rgba(84, 109, 150, 0.08);
  color: #4b6b95;
  font-weight: 700;
}

body.theme-dark .dashboard-status-pill {
  background: rgba(18, 34, 58, 0.76);
  border-color: rgba(115, 146, 191, 0.16);
  color: #d4e4ff;
  box-shadow: 0 16px 32px rgba(6, 10, 18, 0.24);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.dashboard-card,
.activity-card,
.meta-card {
  border-radius: 22px;
  border: 1px solid rgba(95, 122, 163, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 44px rgba(73, 103, 145, 0.12);
}

.dashboard-card {
  padding: 28px;
}

.clock-card {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: 312px;
}

.live-time {
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  color: #1d315a;
}

.live-date {
  margin: 12px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: #5f7394;
}

.clock-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.clock-break-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.clock-break-actions[hidden] {
  display: none;
}

.clock-action-button {
  min-width: 174px;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(76, 108, 152, 0.16);
}

.clock-action-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.98);
  display: none;
  flex: 0 0 auto;
  animation: startup-spin 0.8s linear infinite;
}

.clock-action-button.is-loading {
  opacity: 0.9;
}

.clock-action-button.is-loading .clock-action-spinner {
  display: inline-block;
}

.clock-action-button.is-loading .action-icon {
  display: none;
}

.clock-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clock-in-action {
  background: linear-gradient(180deg, #2fba7f 0%, #158653 100%);
}

.clock-out-action {
  background: linear-gradient(180deg, #e95f5f 0%, #c53636 100%);
}

.clock-break-action {
  min-width: 156px;
  min-height: 50px;
  font-size: 0.95rem;
}

.break-start-action {
  background: linear-gradient(180deg, #f1b74f 0%, #d68b18 100%);
}

.break-stop-action {
  background: linear-gradient(180deg, #6b7fa4 0%, #425779 100%);
}

.action-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.action-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.quick-note-field {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  margin-top: 24px;
  text-align: left;
}

.quick-note-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #5f7394;
}

.quick-note-field input {
  min-height: 54px;
  border-radius: 14px;
  background: rgba(247, 250, 255, 0.98);
}

.clock-action-pending {
  margin: 16px 0 0;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(11, 110, 232, 0.1);
  color: #255ca8;
  font-size: 0.96rem;
  font-weight: 700;
}

.clock-action-pending[hidden] {
  display: none;
}

.clock-action-pending-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(37, 92, 168, 0.22);
  border-top-color: #255ca8;
  animation: startup-spin 0.8s linear infinite;
}

.clock-state {
  margin: 24px 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #244f91;
}

.clock-state.is-pending {
  color: #255ca8;
}

.clock-state.is-live {
  color: #178856;
}

.clock-state.is-break {
  color: #c47a16;
}

.clock-state.is-idle {
  color: #c54040;
}

.clock-state-detail {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #657996;
}

.feature-card {
  min-height: 260px;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.feature-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  color: #0e67db;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.55rem;
  color: #1f3154;
}

.feature-card p {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #657996;
}

.feature-meta {
  font-size: 0.92rem !important;
  font-weight: 700;
  color: #3a67ae !important;
}

.feature-version {
  margin: 8px 0 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  color: #5f7394 !important;
}

.feature-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.card-button,
.card-ghost-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
}

.card-button {
  background: linear-gradient(180deg, #0d75eb 0%, #0453b5 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 98, 208, 0.2);
}

.card-ghost-button {
  background: rgba(16, 97, 216, 0.08);
  color: #0d5ac7;
}

.card-ghost-button.is-danger {
  background: rgba(214, 68, 68, 0.12);
  color: #b33535;
}

.activity-card {
  margin-top: 28px;
  overflow: hidden;
  min-width: 0;
}

.timesheet-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.summary-card {
  border-radius: 22px;
  border: 1px solid rgba(95, 122, 163, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 44px rgba(73, 103, 145, 0.12);
  padding: 24px;
}

.summary-card span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #7390b1;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: #183f7a;
}

.summary-card p {
  margin: 12px 0 0;
  color: #6a7d99;
  line-height: 1.55;
}

.payslips-history-card,
.payslip-detail-card {
  margin-top: 0;
}

.payslips-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 0;
  padding: 26px 28px;
}

.payslips-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.payslips-hero-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.payslips-hero-copy p {
  max-width: 720px;
}

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

.payslips-stat-card {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(95, 122, 163, 0.12);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(239, 246, 255, 0.88));
}

.payslips-stat-card span,
.payslip-highlight-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #7390b1;
}

.payslips-stat-card strong {
  color: #173f79;
  font-size: 1.8rem;
  line-height: 1;
}

.payslips-stat-card p {
  margin: 0;
  color: #68809d;
}

.payslips-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.payslips-history-card,
.payslip-detail-card {
  display: grid;
  align-content: start;
}

.payslips-history-card .table-wrap {
  margin: 0 28px 28px;
}

.payslips-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px)) auto;
  gap: 14px;
  align-items: end;
  padding: 0 28px 28px;
}

.payslips-filter-field {
  display: grid;
  gap: 8px;
}

.payslips-filter-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #557187;
}

.payslips-filter-button {
  width: auto;
  min-width: 160px;
}

.payslips-table-row.is-selected {
  background: rgba(13, 117, 235, 0.08);
}

.payslip-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.payslip-status-badge.is-paid {
  background: rgba(38, 168, 103, 0.14);
  color: #16784a;
}

.payslip-status-badge.is-approved,
.payslip-status-badge.is-issued {
  background: rgba(13, 117, 235, 0.12);
  color: #0b5ec8;
}

.payslip-status-badge.is-draft,
.payslip-status-badge.is-submitted,
.payslip-status-badge.is-pending,
.payslip-status-badge.is-processing {
  background: rgba(243, 154, 67, 0.16);
  color: #b96a17;
}

.accounting-queue-card .activity-header {
  gap: 18px;
}

.accounting-selection-copy {
  max-width: 420px;
  margin: 0 0 0 auto;
  text-align: right;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 700;
  color: #587193;
}

.accounting-tools-grid {
  align-items: start;
}

.accounting-groups {
  display: grid;
  gap: 18px;
}

.accounting-group-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(18, 48, 74, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(240, 246, 255, 0.88));
}

.accounting-group-header,
.accounting-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.accounting-group-metrics,
.accounting-group-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.accounting-group-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(19, 64, 122, 0.07);
  color: #496784;
  font-size: 0.84rem;
  font-weight: 700;
}

.accounting-group-metric strong {
  color: #153e77;
}

.accounting-group-actions .card-button,
.accounting-group-actions .card-ghost-button {
  min-height: 42px;
}

.accounting-group-table-wrap {
  border-radius: 18px;
}

.accounting-empty-state {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px dashed rgba(93, 123, 168, 0.26);
  background: rgba(246, 250, 255, 0.8);
  color: #68809d;
  text-align: center;
  font-weight: 700;
}

.accounting-staff-cell {
  display: grid;
  gap: 4px;
}

.accounting-staff-cell strong {
  font-size: 0.95rem;
  color: #193f78;
}

.accounting-staff-cell span {
  font-size: 0.82rem;
  color: #68809d;
}

.table-action-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(13, 117, 235, 0.09);
  color: #245aa0;
  font-size: 0.86rem;
  font-weight: 800;
}

.accounting-pay-slip-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.accounting-manual-pay-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.accounting-pay-slip-mode {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 74, 0.12);
  background: rgba(245, 249, 255, 0.9);
  cursor: pointer;
}

.accounting-pay-slip-mode input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.accounting-pay-slip-mode strong {
  color: #183f7a;
}

.accounting-pay-slip-mode small {
  color: #68809d;
  line-height: 1.45;
}

.accounting-pay-slip-mode:has(input:checked) {
  border-color: rgba(13, 117, 235, 0.28);
  box-shadow: 0 18px 34px -30px rgba(48, 106, 196, 0.45);
}

.accounting-upload-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(95, 122, 163, 0.22);
  background: rgba(244, 248, 255, 0.84);
}

.accounting-bulk-import-results {
  display: grid;
  gap: 10px;
}

.accounting-bulk-import-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(95, 122, 163, 0.18);
  background: rgba(248, 251, 255, 0.78);
}

.accounting-bulk-import-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.accounting-bulk-import-item-header strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
}

.accounting-bulk-import-item-header p,
.accounting-bulk-import-reason,
.accounting-bulk-import-period {
  margin: 0;
}

.accounting-bulk-import-item-header p {
  color: #567196;
}

.accounting-bulk-import-period {
  color: #35527e;
  font-size: 0.88rem;
  font-weight: 700;
}

.accounting-bulk-import-reason {
  color: #5d7597;
  font-size: 0.92rem;
}

.accounting-bulk-import-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.accounting-bulk-import-status-imported {
  background: rgba(46, 179, 102, 0.16);
  color: #1f8a56;
}

.accounting-bulk-import-status-skipped,
.accounting-bulk-import-status-queued {
  background: rgba(79, 125, 243, 0.14);
  color: #335cc3;
}

.accounting-bulk-import-status-failed {
  background: rgba(227, 83, 83, 0.16);
  color: #c43e3e;
}

.accounting-workspace-card {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 26px;
}

.accounting-workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(95, 122, 163, 0.12);
}

.accounting-workspace-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.accounting-store-filter {
  min-width: 210px;
  max-width: 240px;
}

.accounting-grouping-filter {
  min-width: 170px;
  max-width: 190px;
}

.accounting-workspace-layout {
  display: grid;
  grid-template-columns: minmax(250px, 292px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.accounting-staff-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 48, 74, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(240, 246, 255, 0.88));
  position: sticky;
  top: 18px;
}

.accounting-staff-list {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.accounting-staff-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 74, 0.1);
  background: rgba(247, 250, 255, 0.94);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.accounting-staff-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 117, 235, 0.18);
  box-shadow: 0 18px 28px -30px rgba(48, 106, 196, 0.45);
}

.accounting-staff-list-item.is-active {
  border-color: rgba(13, 117, 235, 0.28);
  box-shadow: 0 24px 34px -30px rgba(48, 106, 196, 0.52);
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(232, 241, 255, 0.92));
}

.accounting-staff-list-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.accounting-staff-list-copy strong {
  color: #183f7a;
  font-size: 0.94rem;
  line-height: 1.25;
}

.accounting-staff-list-copy span {
  color: #5f7899;
  font-size: 0.82rem;
  font-weight: 700;
}

.accounting-staff-list-copy small {
  color: #7891b0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.accounting-staff-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(19, 64, 122, 0.08);
  color: #1d4f92;
  font-size: 0.84rem;
  font-weight: 800;
  flex-shrink: 0;
}

.accounting-detail-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.accounting-detail-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
}

.accounting-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.accounting-detail-table-wrap {
  border-radius: 16px;
  overflow: auto;
}

.accounting-detail-panel .activity-header {
  gap: 12px;
  margin-bottom: 0;
}

.accounting-detail-panel .activity-header h3 {
  margin: 0;
}

.accounting-detail-panel .activity-header p {
  margin: 6px 0 0;
}

.accounting-detail-table-wrap th,
.accounting-detail-table-wrap td {
  padding: 12px 14px;
}

.accounting-detail-actions .card-button {
  min-height: 44px;
  padding: 0 18px;
}

.accounting-row td {
  vertical-align: middle;
}

.accounting-period-row td {
  padding: 10px 0 0;
  border-bottom: 0;
}

.accounting-period-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(95, 122, 163, 0.12);
  background: rgba(243, 248, 255, 0.82);
}

.accounting-period-heading,
.accounting-period-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.accounting-period-toggle {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(95, 122, 163, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #315a93;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.accounting-period-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 105, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.accounting-period-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(49, 90, 147, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  line-height: 1;
}

.accounting-period-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.accounting-period-copy strong {
  color: #173f79;
  font-size: 0.92rem;
}

.accounting-period-copy span {
  color: #66809f;
  font-size: 0.8rem;
  font-weight: 700;
}

.accounting-period-summary .table-action-button,
.accounting-period-summary .table-action-label {
  min-width: 140px;
  flex-shrink: 0;
}

.accounting-period-group.is-collapsed .accounting-row {
  display: none;
}

.payslip-detail-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 28px 20px;
}

.payslip-highlight-card {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.payslip-highlight-card:first-child {
  grid-column: 1 / -1;
}

.payslip-highlight-card strong {
  color: #183f7a;
  font-size: clamp(1.2rem, 1.6vw, 1.75rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payslip-highlight-card p {
  margin: 0;
  color: #68809d;
  line-height: 1.45;
}

.payslip-detail-grid {
  margin-bottom: 20px;
}

.payslip-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 28px 28px;
}

.payslip-detail-item {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(240, 246, 255, 0.7);
  border: 1px solid rgba(95, 122, 163, 0.1);
}

.payslip-detail-item span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #7390b1;
}

.payslip-detail-item strong {
  color: #183f7a;
  line-height: 1.45;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.payslip-detail-card .activity-header {
  padding-bottom: 14px;
}

.payslip-detail-card .activity-header h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.95rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.payslip-detail-card .activity-header p {
  max-width: 56ch;
}

.payslip-detail-attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.payslip-detail-attachment-row .card-ghost-button {
  min-height: 40px;
}

.payslip-detail-note {
  grid-column: 1 / -1;
}

.payslip-detail-preview {
  display: grid;
  gap: 14px;
  margin: 0 28px 28px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(95, 122, 163, 0.1);
  background: rgba(240, 246, 255, 0.54);
}

.payslip-document-preview {
  margin-top: 0;
}

.payslip-detail-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payslip-detail-preview-copy {
  display: grid;
  gap: 4px;
}

.payslip-detail-preview-copy span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #7390b1;
}

.payslip-detail-preview-copy strong {
  color: #183f7a;
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.payslip-detail-preview-frame,
.payslip-detail-preview-image-wrap {
  width: 100%;
  min-height: 560px;
  border: 1px solid rgba(95, 122, 163, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.payslip-detail-preview-frame {
  display: block;
}

.payslip-detail-preview-image-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
}

.payslip-detail-preview-image {
  display: block;
  max-width: 100%;
  max-height: 760px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.payslip-detail-preview-empty {
  min-height: 240px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed rgba(95, 122, 163, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.payslip-detail-preview-empty strong {
  color: #183f7a;
  font-size: 1.1rem;
}

.payslip-detail-preview-empty p {
  max-width: 480px;
  margin: 0;
  color: #68809d;
  line-height: 1.55;
}

.payslip-detail-modal[hidden] {
  display: none;
}

.payslip-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payslip-document-modal[hidden] {
  display: none;
}

.payslip-document-modal {
  position: fixed;
  inset: 0;
  z-index: 116;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payslip-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 16, 28, 0.42);
  backdrop-filter: blur(10px);
}

.payslip-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.payslip-document-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.payslip-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payslip-document-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payslip-detail-close {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(87, 112, 150, 0.16);
  background: rgba(243, 247, 253, 0.98);
  color: #4d6487;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.payslip-detail-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.payslip-detail-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(72, 102, 144, 0.14);
}

.leave-form-card,
.leave-history-card {
  margin-top: 0;
}

.leave-tab-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 22px;
}

.leave-tab-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(98, 129, 174, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: #285388;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(64, 102, 156, 0.08);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.leave-tab-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(64, 102, 156, 0.12);
}

.leave-tab-button.is-active {
  border-color: rgba(13, 117, 235, 0.26);
  background: linear-gradient(180deg, #0d75eb, #0453b5);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(18, 98, 208, 0.2);
}

.leave-tab-count {
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 900;
}

.leave-admin-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.leave-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.leave-admin-actions .table-action-button {
  min-width: 118px;
}

.leave-admin-complete {
  font-weight: 800;
  color: #5f7394;
}

.leave-history-copy p {
  margin: 0;
  color: #6a7d99;
}

.leave-request-form {
  display: grid;
  gap: 20px;
  padding: 0 28px 28px;
}

.leave-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.leave-type-row {
  grid-template-columns: minmax(0, 420px);
}

.leave-form-field {
  display: grid;
  gap: 8px;
}

.leave-form-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #557187;
}

.leave-form-field-wide {
  grid-column: 1 / -1;
}

.leave-preview-banner {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(95, 122, 163, 0.12);
  background: rgba(242, 247, 255, 0.86);
}

.leave-preview-banner strong {
  color: #173f7d;
}

.leave-preview-banner p {
  margin: 0;
  color: #5f7394;
  line-height: 1.55;
}

.leave-preview-banner.is-info {
  background: rgba(237, 244, 255, 0.92);
  border-color: rgba(13, 117, 235, 0.16);
}

.leave-preview-banner.is-success {
  background: rgba(232, 247, 237, 0.92);
  border-color: rgba(32, 153, 93, 0.18);
}

.leave-preview-banner.is-warning {
  background: rgba(255, 245, 230, 0.94);
  border-color: rgba(243, 154, 67, 0.2);
}

.leave-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.leave-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d75eb 0%, #0453b5 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(18, 98, 208, 0.2);
  cursor: pointer;
}

.leave-upload-name {
  color: #627694;
  line-height: 1.5;
}

.leave-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 48, 74, 0.08);
}

.leave-form-actions .card-button,
.leave-form-actions .card-ghost-button {
  width: auto;
  min-width: 180px;
}

.leave-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.leave-status-badge.is-submitted {
  background: rgba(13, 117, 235, 0.12);
  color: #0b5ec8;
}

.leave-status-badge.is-approved {
  background: rgba(38, 168, 103, 0.14);
  color: #16784a;
}

.leave-status-badge.is-declined,
.leave-status-badge.is-cancelled {
  background: rgba(226, 84, 84, 0.12);
  color: #c14545;
}

.timesheet-history-card {
  margin-top: 0;
}

.admin-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.employee-tools-grid {
  grid-template-columns: 0.95fr 0.95fr 1.2fr;
}

.admin-tool-card {
  margin-top: 0;
}

.employee-account-actions {
  display: grid;
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 28px 28px;
}

.admin-form-grid.compact {
  grid-template-columns: 1fr;
}

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

.admin-form-grid label span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #557187;
}

.admin-form-note {
  margin: 0;
  color: #6b8097;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-form-actions {
  display: flex;
  align-items: end;
}

.admin-form-span {
  grid-column: 1 / -1;
}

.admin-note-list {
  display: grid;
  gap: 14px;
  padding: 0 28px 28px;
}

.admin-note-actions {
  padding: 0 28px 28px;
}

.admin-note-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(240, 246, 255, 0.78);
  border: 1px solid rgba(95, 122, 163, 0.1);
}

.admin-note-item strong {
  color: #173f7d;
}

.admin-note-item span {
  color: #627694;
  line-height: 1.5;
}

.timesheet-duration-cell {
  font-weight: 800;
  color: #1f4f95;
}

.timesheet-note-cell {
  color: #5f7394;
  line-height: 1.5;
}

.employee-role-pill,
.employee-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.employee-role-pill {
  background: rgba(13, 117, 235, 0.1);
  color: #0b5ec8;
}

.employee-status-pill.is-live {
  background: rgba(37, 168, 103, 0.14);
  color: #16784a;
}

.employee-status-pill.is-idle {
  background: rgba(226, 84, 84, 0.12);
  color: #c14545;
}

.employee-status-pill.is-suspended {
  background: rgba(245, 184, 92, 0.16);
  color: #a86709;
}

.employee-store-pill {
  --store-color: #4f7df3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-color) 16%, #ffffff);
  color: color-mix(in srgb, var(--store-color) 82%, #173f7d);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.employee-store-pill.is-unassigned {
  background: rgba(113, 136, 165, 0.14);
  color: #667b97;
}

.table-action-button {
  min-width: 140px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d75eb 0%, #0453b5 100%);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(18, 98, 208, 0.16);
}

.table-action-button.is-danger {
  background: linear-gradient(180deg, #e95f5f 0%, #c53636 100%);
  box-shadow: 0 10px 20px rgba(197, 54, 54, 0.18);
}

.admin-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.roster-calendar-shell {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.roster-calendar-layout {
  margin-top: 0;
  min-width: 0;
}

.admin-calendar-month-card,
.admin-calendar-detail-card {
  margin-top: 0;
  min-width: 0;
}

.admin-calendar-month-card {
  overflow: auto;
}

.admin-calendar-header {
  align-items: flex-start;
}

.admin-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-calendar-toolbar-button {
  width: auto;
  min-width: 144px;
}

.admin-calendar-weekdays,
.admin-calendar-grid {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 0 28px 28px;
}

.admin-calendar-weekdays {
  padding-bottom: 10px;
}

.admin-calendar-weekdays span {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7188a5;
}

.admin-calendar-day {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(100, 127, 170, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #eef5fd);
  display: grid;
  align-content: space-between;
  gap: 10px;
  text-align: left;
  color: #1f416f;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.admin-calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(78, 106, 151, 0.12);
}

.admin-calendar-day.is-other-month {
  opacity: 0.58;
}

.admin-calendar-day.is-selected {
  border-color: rgba(13, 117, 235, 0.3);
  background: linear-gradient(180deg, rgba(13, 117, 235, 0.15), rgba(222, 237, 255, 0.96));
  box-shadow: 0 16px 30px rgba(18, 98, 208, 0.16);
}

.admin-calendar-day.is-today {
  border-color: rgba(243, 154, 67, 0.5);
  background: linear-gradient(180deg, rgba(255, 240, 219, 0.94), rgba(255, 248, 238, 0.98));
  box-shadow: inset 0 0 0 1px rgba(243, 154, 67, 0.18);
}

.admin-calendar-day.is-upcoming-shift {
  border-color: rgba(32, 129, 88, 0.32);
  background: linear-gradient(180deg, rgba(225, 246, 233, 0.98), rgba(244, 252, 246, 0.98));
  box-shadow: 0 14px 28px rgba(47, 145, 98, 0.14);
}

.admin-calendar-day.has-shifts .admin-calendar-day-meta {
  color: #0d5ac7;
}

.admin-calendar-day-number {
  font-size: 1.3rem;
  font-weight: 800;
}

.admin-calendar-day-meta {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #6a7d99;
}

.admin-calendar-day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-calendar-day-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-calendar-day-badge.is-today {
  background: rgba(243, 154, 67, 0.16);
  color: #b76412;
}

.admin-calendar-day-badge.is-upcoming {
  background: rgba(38, 139, 95, 0.14);
  color: #167247;
}

.admin-calendar-loading {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 128, 171, 0.18);
  background: rgba(245, 249, 255, 0.88);
  color: #6a7d99;
  text-align: center;
  font-weight: 700;
}

.admin-calendar-date-jump,
.admin-calendar-shifts {
  padding: 0 28px 20px;
}

.admin-calendar-date-jump label {
  display: grid;
  gap: 8px;
}

.admin-calendar-date-jump span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #557187;
}

.admin-calendar-shifts {
  display: grid;
  gap: 12px;
}

.admin-calendar-empty {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 128, 171, 0.16);
  background: rgba(245, 249, 255, 0.8);
  color: #6a7d99;
  line-height: 1.55;
}

.admin-calendar-shift-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #edf4fc);
  border: 1px solid rgba(99, 128, 171, 0.12);
}

.admin-calendar-shift-copy {
  display: grid;
  gap: 4px;
}

.admin-calendar-shift-copy strong {
  color: #193f77;
}

.admin-calendar-shift-copy span {
  color: #647a98;
  line-height: 1.45;
}

.admin-calendar-delete-button {
  min-width: 108px;
  flex: 0 0 auto;
}

.roster-calendar-shift-item {
  justify-content: flex-start;
}

.roster-calendar-shift-item.is-upcoming-shift {
  border-color: rgba(32, 129, 88, 0.28);
  background: linear-gradient(180deg, #f5fff8, #e6f5eb);
  box-shadow: 0 14px 26px rgba(47, 145, 98, 0.12);
}

.roster-calendar-shift-copy strong {
  font-size: 1.05rem;
}

.roster-calendar-shift-flag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(38, 139, 95, 0.14);
  color: #167247;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.roster-calendar-day {
  min-height: 132px;
  padding: 12px;
  align-content: start;
  gap: 10px;
  background: linear-gradient(180deg, #fefefe, #edf4fd);
}

.roster-calendar-day:hover {
  box-shadow: 0 14px 28px rgba(72, 104, 151, 0.16);
}

.roster-calendar-day.is-empty-day {
  background: linear-gradient(180deg, #fbfdff, #f3f7fd);
}

.roster-calendar-day-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.roster-calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(92, 122, 167, 0.12);
  box-shadow: 0 8px 18px rgba(88, 116, 160, 0.1);
}

.roster-calendar-day-summary {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(98, 126, 169, 0.12);
}

.roster-calendar-day-count {
  font-size: 0.92rem;
  font-weight: 800;
  color: #24497a;
}

.roster-page-heading {
  margin-bottom: 20px;
}

.roster-hero-card,
.roster-kpi-card,
.roster-board-shell,
.roster-shift-details-card,
.roster-status-card {
  border: 1px solid rgba(92, 122, 170, 0.16);
  background:
    radial-gradient(circle at top left, rgba(59, 91, 146, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(15, 24, 40, 0.98), rgba(11, 18, 30, 0.98));
  box-shadow: 0 26px 54px rgba(7, 14, 25, 0.22);
  color: #edf4ff;
}

.roster-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
  padding: 30px 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(32, 139, 104, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(14, 46, 47, 0.98), rgba(12, 24, 34, 0.98));
}

.roster-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.roster-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(61, 191, 121, 0.16);
  color: #7ff0b1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roster-hero-copy strong {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.08;
  color: #f7fbff;
}

.roster-hero-copy p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(236, 247, 241, 0.92);
}

.roster-hero-meta {
  color: rgba(184, 225, 212, 0.76);
  font-size: 1rem;
}

.roster-countdown-card {
  align-self: center;
  min-height: 156px;
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(90, 212, 153, 0.18);
  background: rgba(10, 20, 31, 0.54);
  display: grid;
  gap: 12px;
  align-content: center;
}

.roster-countdown-card > span {
  color: rgba(194, 214, 239, 0.8);
  font-size: 0.98rem;
  font-weight: 700;
}

.roster-countdown-card strong {
  font-size: 2.7rem;
  line-height: 1;
  color: #ffffff;
}

.roster-countdown-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(114, 138, 171, 0.2);
  overflow: hidden;
}

.roster-countdown-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3bdd88, #77f4b2);
}

.roster-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.roster-kpi-card {
  margin-top: 0;
  padding: 26px 28px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.roster-kpi-card.is-hours {
  background:
    radial-gradient(circle at top left, rgba(53, 103, 227, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(17, 33, 71, 0.98), rgba(14, 23, 48, 0.98));
}

.roster-kpi-card.is-shifts {
  background:
    radial-gradient(circle at top left, rgba(180, 71, 241, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(41, 22, 67, 0.98), rgba(24, 18, 44, 0.98));
}

.roster-kpi-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(103, 140, 215, 0.14);
  color: #7ec8ff;
}

.roster-kpi-card.is-shifts .roster-kpi-icon {
  background: rgba(189, 91, 255, 0.14);
  color: #ef8cff;
}

.roster-kpi-icon svg {
  width: 28px;
  height: 28px;
}

.roster-kpi-card div {
  display: grid;
  gap: 8px;
}

.roster-kpi-card span:last-child,
.roster-kpi-card div > span {
  color: rgba(198, 214, 241, 0.78);
  font-size: 1rem;
  font-weight: 600;
}

.roster-kpi-card strong {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  color: #f7fbff;
  line-height: 1;
}

.roster-board-shell {
  margin-top: 18px;
  padding: 28px;
  border-radius: 32px;
}

.roster-board-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  grid-template-areas: "view nav actions";
}

.roster-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  grid-area: view;
  flex-wrap: wrap;
}

.roster-view-pill,
.roster-nav-button,
.roster-jump-button {
  border: 1px solid rgba(95, 123, 167, 0.2);
  background: rgba(23, 35, 57, 0.82);
  color: #dce7fb;
  font-weight: 800;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.roster-view-pill {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.roster-view-pill.is-active,
.roster-view-pill:hover:not([aria-disabled="true"]),
.roster-jump-button:hover:not(:disabled),
.roster-nav-button:hover {
  border-color: rgba(87, 143, 239, 0.34);
  background: rgba(33, 56, 94, 0.94);
  box-shadow: 0 12px 26px rgba(9, 18, 33, 0.2);
  transform: translateY(-1px);
}

.roster-view-pill[aria-disabled="true"] {
  opacity: 0.48;
  cursor: default;
}

.roster-week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  grid-area: nav;
  min-width: 0;
}

.roster-week-nav h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  color: #f7fbff;
  text-align: center;
  overflow-wrap: anywhere;
}

.roster-nav-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.roster-board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-area: actions;
  min-width: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.roster-store-select-wrap {
  display: grid;
  gap: 6px;
  min-width: min(220px, 100%);
}

.roster-store-select-wrap span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7087a8;
}

.roster-store-select-wrap select {
  min-height: 48px;
  border-radius: 15px;
}

.roster-jump-button {
  padding: 13px 20px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.roster-jump-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.roster-grid-scroll {
  margin-top: 26px;
  overflow: visible;
  padding-bottom: 0;
}

.roster-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.roster-week-day-card {
  min-height: clamp(250px, 26vw, 340px);
  padding: 20px;
  border: 1px solid rgba(109, 137, 181, 0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(23, 31, 48, 0.98), rgba(15, 21, 33, 0.98));
  display: grid;
  gap: 18px;
  align-content: start;
  text-align: left;
  color: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.roster-week-day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 158, 242, 0.26);
  box-shadow: 0 16px 34px rgba(6, 12, 24, 0.24);
}

.roster-week-day-card.is-selected {
  border-color: rgba(86, 149, 245, 0.44);
  box-shadow: 0 18px 36px rgba(14, 59, 130, 0.24);
}

.roster-week-day-card.is-today {
  border-color: rgba(243, 154, 67, 0.3);
}

.roster-week-day-card.is-upcoming-shift {
  border-color: rgba(56, 204, 124, 0.46);
  background:
    radial-gradient(circle at top left, rgba(35, 135, 95, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(18, 44, 43, 0.98), rgba(15, 26, 32, 0.98));
}

.roster-week-day-card.is-empty-day {
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.96), rgba(14, 20, 32, 0.96));
}

.roster-week-day-header,
.roster-week-day-heading {
  display: grid;
  gap: 6px;
}

.roster-week-day-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f7fbff;
}

.roster-week-day-date {
  font-size: 1rem;
  color: rgba(183, 202, 232, 0.72);
}

.roster-week-day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roster-week-day-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roster-week-day-badge.is-today {
  background: rgba(243, 154, 67, 0.16);
  color: #ffca8e;
}

.roster-week-day-badge.is-upcoming {
  background: rgba(59, 221, 136, 0.16);
  color: #88efb2;
}

.roster-week-day-badge.is-holiday {
  background: rgba(124, 92, 255, 0.16);
  color: #d7c8ff;
}

.roster-week-shift-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.roster-week-shift-card {
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(38, 160, 101, 0.96), rgba(21, 117, 71, 0.96));
  color: #f4fff7;
  box-shadow:
    inset 0 0 0 1px rgba(170, 245, 202, 0.12),
    0 12px 28px rgba(16, 70, 44, 0.18);
}

.roster-week-shift-card strong {
  font-size: 1.06rem;
  line-height: 1.28;
}

.roster-week-shift-card span {
  font-size: 0.88rem;
  color: rgba(231, 247, 237, 0.84);
}

.roster-week-shift-card.is-upcoming-shift {
  background: linear-gradient(180deg, rgba(48, 181, 114, 0.98), rgba(26, 133, 82, 0.98));
}

.roster-week-shift-card.is-off {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(211, 223, 244, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(112, 134, 169, 0.12);
}

.roster-week-day-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(103, 130, 170, 0.12);
  color: rgba(193, 211, 238, 0.76);
  font-size: 0.88rem;
}

.roster-week-day-footer strong {
  color: #ffffff;
  font-size: 1rem;
}

.roster-bottom-panels {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.roster-shift-details-card,
.roster-status-card {
  margin-top: 0;
  border-radius: 28px;
  padding: 24px 26px;
}

.roster-detail-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(110, 136, 180, 0.14);
}

.roster-detail-header h3,
.roster-status-card h3 {
  margin: 0;
  color: #f7fbff;
}

.roster-detail-header p,
.roster-status-card p {
  margin: 8px 0 0;
  color: rgba(193, 211, 238, 0.78);
}

.roster-detail-body {
  padding: 22px 0 0;
  display: grid;
  gap: 16px;
}

.roster-detail-shift-panel {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(87, 113, 153, 0.18);
  background: rgba(15, 25, 40, 0.74);
  display: grid;
  gap: 18px;
}

.roster-detail-shift-panel.is-upcoming-shift {
  border-color: rgba(56, 204, 124, 0.32);
  background:
    radial-gradient(circle at top left, rgba(31, 124, 86, 0.16), transparent 38%),
    rgba(13, 30, 31, 0.82);
}

.roster-detail-shift-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.roster-detail-shift-title {
  display: grid;
  gap: 10px;
}

.roster-detail-shift-title strong {
  font-size: 1.2rem;
  color: #f7fbff;
}

.roster-detail-shift-duration {
  color: #9ddcb8;
  font-size: 1rem;
  font-weight: 800;
}

.roster-calendar-shift-flag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(61, 191, 121, 0.16);
  color: #88efb2;
  font-size: 0.74rem;
  font-weight: 800;
}

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

.roster-detail-metric,
.roster-status-metric {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(104, 130, 171, 0.12);
}

.roster-detail-metric span,
.roster-status-metric span {
  color: rgba(180, 201, 231, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roster-detail-metric strong,
.roster-status-metric strong {
  color: #f7fbff;
  font-size: 1rem;
  line-height: 1.35;
}

.roster-detail-empty {
  display: grid;
  gap: 8px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(114, 138, 171, 0.24);
}

.roster-detail-empty strong {
  color: #f7fbff;
}

.roster-detail-empty span {
  color: rgba(195, 214, 241, 0.76);
}

.roster-detail-team-panel {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(104, 130, 171, 0.12);
  background: rgba(12, 20, 31, 0.64);
}

.roster-detail-team-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.roster-detail-team-header h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #f7fbff;
}

.roster-detail-team-header p {
  margin: 0;
  color: rgba(195, 214, 241, 0.76);
}

.roster-detail-team-list {
  display: grid;
  gap: 12px;
}

.roster-detail-team-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(104, 130, 171, 0.12);
}

.roster-detail-team-entry-main {
  display: grid;
  gap: 4px;
}

.roster-detail-team-entry-main strong {
  color: #f7fbff;
  font-size: 0.98rem;
}

.roster-detail-team-entry-main span {
  color: rgba(195, 214, 241, 0.76);
  font-size: 0.9rem;
}

.roster-detail-team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.roster-detail-team-badge.is-same-shift {
  background: rgba(61, 191, 121, 0.16);
  color: #88efb2;
}

.roster-detail-team-badge.is-same-day {
  background: rgba(104, 130, 171, 0.16);
  color: rgba(217, 231, 249, 0.92);
}

.roster-status-card {
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(31, 124, 86, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(18, 31, 47, 0.98), rgba(11, 18, 29, 0.98));
}

.roster-status-metrics {
  display: grid;
  gap: 14px;
}

@media (max-width: 1240px) {
  .roster-hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-board-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "nav nav"
      "view actions";
    align-items: start;
  }

  .roster-bottom-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-week-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  }

  .roster-board-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .roster-hero-card,
  .roster-board-shell,
  .roster-shift-details-card,
  .roster-status-card {
    padding: 22px;
  }

  .roster-kpi-grid {
    grid-template-columns: 1fr;
  }

  .roster-week-nav {
    justify-content: flex-start;
  }

  .roster-week-nav h3 {
    text-align: left;
  }

  .roster-board-toolbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nav"
      "view"
      "actions";
  }

  .roster-detail-metrics {
    grid-template-columns: 1fr;
  }

  .roster-detail-team-entry {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .roster-week-grid {
    grid-template-columns: 1fr;
  }

  .roster-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.shift-planner-shell {
  margin-top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: clamp(640px, calc(100vh - 170px), 860px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(88, 117, 165, 0.14);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(236, 243, 252, 0.94));
  box-shadow: 0 22px 48px rgba(74, 102, 144, 0.14);
}

.workspace-shell.is-shift-planner-focus .shift-planner-shell {
  height: clamp(720px, calc(100vh - 150px), 1100px);
  border-radius: 30px;
}

.shift-planner-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(93, 122, 165, 0.14);
}

.workspace-shell.is-shift-planner-focus .shift-planner-toolbar {
  gap: 22px;
  padding: 24px 28px 20px;
}

.shift-planner-toolbar-left,
.shift-planner-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shift-planner-toolbar-left {
  min-width: 0;
}

.shift-planner-toolbar-copy h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #174785;
}

.shift-planner-staff-toggle {
  min-width: 188px;
  border: 1px solid rgba(98, 127, 169, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #eef5fd, #dfeafb);
  color: #244d84;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 1.05rem;
  font-weight: 800;
}

.shift-planner-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.shift-planner-staff-toggle.is-collapsed .shift-planner-chevron {
  transform: rotate(-45deg);
}

.shift-planner-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shift-planner-submit-button {
  width: auto;
  min-width: 184px;
  min-height: 58px;
  padding-inline: 28px;
}

.shift-planner-save-button {
  width: auto;
  min-width: 184px;
  min-height: 58px;
  padding-inline: 22px;
}

.shift-planner-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(102, 129, 171, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #385781;
  font-weight: 700;
}

.shift-planner-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.shift-planner-icon-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(102, 129, 171, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eff5fd);
  display: grid;
  place-items: center;
  color: #24538d;
}

.shift-planner-icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.shift-planner-layout {
  display: grid;
  grid-template-columns: clamp(220px, 18vw, 270px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  min-height: 0;
}

.workspace-shell.is-shift-planner-focus .shift-planner-layout {
  grid-template-columns: clamp(250px, 19vw, 320px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

#shift-planner-page.is-staff-collapsed .shift-planner-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.workspace-shell.is-shift-planner-focus #shift-planner-page.is-staff-collapsed .shift-planner-layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

#shift-planner-page.is-staff-collapsed .shift-planner-staff-panel {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 0;
  border: 0;
}

.shift-planner-staff-panel,
.shift-planner-board-panel,
.shift-planner-detail-panel {
  border-radius: 20px;
  border: 1px solid rgba(95, 122, 163, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 32px rgba(73, 103, 145, 0.1);
  min-height: 0;
}

.shift-planner-staff-panel,
.shift-planner-detail-panel {
  padding: 18px;
}

.shift-planner-staff-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.shift-planner-panel-heading h3,
.shift-planner-board-heading h3,
.shift-planner-detail-header h3 {
  margin: 0;
  font-size: 1.7rem;
  color: #224270;
}

.shift-planner-panel-heading p,
.shift-planner-detail-header p {
  margin: 8px 0 0;
  color: #6a7d99;
  line-height: 1.5;
}

.shift-planner-filter {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.shift-planner-filter span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #587390;
}

.shift-planner-filter select {
  min-height: 52px;
  border-radius: 14px;
  background: #f8fbff;
}

.shift-planner-staff-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.shift-planner-empty-staff {
  padding: 18px;
  border-radius: 16px;
  background: rgba(241, 246, 255, 0.82);
  color: #67809d;
}

.shift-planner-staff-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(101, 128, 171, 0.12);
  background: linear-gradient(180deg, #fbfdff, #edf4fc);
  color: #21406e;
  cursor: grab;
  user-select: none;
}

.shift-planner-staff-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(76, 108, 152, 0.1);
}

.shift-planner-staff-item:active {
  cursor: grabbing;
}

.shift-planner-staff-item.is-assigned {
  border-color: rgba(13, 117, 235, 0.28);
  background: linear-gradient(180deg, #eff6ff, #dce9fb);
}

.shift-planner-staff-item.is-sky,
.shift-planner-assigned-item.is-sky {
  border-color: rgba(61, 127, 212, 0.24);
}

.shift-planner-staff-item.is-mint,
.shift-planner-assigned-item.is-mint {
  border-color: rgba(59, 160, 118, 0.24);
}

.shift-planner-staff-item.is-violet,
.shift-planner-assigned-item.is-violet {
  border-color: rgba(130, 105, 201, 0.24);
}

.shift-planner-staff-item.is-amber,
.shift-planner-assigned-item.is-amber {
  border-color: rgba(213, 149, 53, 0.24);
}

.shift-planner-staff-item.is-teal,
.shift-planner-assigned-item.is-teal {
  border-color: rgba(33, 145, 166, 0.24);
}

.shift-planner-staff-item.is-rose,
.shift-planner-assigned-item.is-rose {
  border-color: rgba(196, 84, 130, 0.24);
}

.shift-planner-staff-item.is-indigo,
.shift-planner-assigned-item.is-indigo {
  border-color: rgba(77, 98, 196, 0.24);
}

.shift-planner-staff-item.is-lime,
.shift-planner-assigned-item.is-lime {
  border-color: rgba(111, 171, 53, 0.24);
}

.shift-planner-staff-item.is-dragging {
  opacity: 0.52;
  transform: scale(0.98);
  box-shadow: none;
}

.shift-planner-staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3d7fd4, #1c5fad);
  color: #ffffff;
  font-weight: 800;
}

.shift-planner-staff-avatar.is-sky,
.shift-planner-card-mini-avatar.is-sky,
.shift-planner-assigned-avatar.is-sky {
  background: linear-gradient(180deg, #3d7fd4, #1c5fad);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-mint,
.shift-planner-card-mini-avatar.is-mint,
.shift-planner-assigned-avatar.is-mint {
  background: linear-gradient(180deg, #2f9d72, #1c7654);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-violet,
.shift-planner-card-mini-avatar.is-violet,
.shift-planner-assigned-avatar.is-violet {
  background: linear-gradient(180deg, #8564cf, #6341aa);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-amber,
.shift-planner-card-mini-avatar.is-amber,
.shift-planner-assigned-avatar.is-amber {
  background: linear-gradient(180deg, #d79535, #a96a13);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-teal,
.shift-planner-card-mini-avatar.is-teal,
.shift-planner-assigned-avatar.is-teal {
  background: linear-gradient(180deg, #2290a7, #166575);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-rose,
.shift-planner-card-mini-avatar.is-rose,
.shift-planner-assigned-avatar.is-rose {
  background: linear-gradient(180deg, #c45785, #963a62);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-indigo,
.shift-planner-card-mini-avatar.is-indigo,
.shift-planner-assigned-avatar.is-indigo {
  background: linear-gradient(180deg, #5168c5, #364b98);
  color: #ffffff;
}

.shift-planner-staff-avatar.is-lime,
.shift-planner-card-mini-avatar.is-lime,
.shift-planner-assigned-avatar.is-lime {
  background: linear-gradient(180deg, #6fad35, #558620);
  color: #ffffff;
}

.shift-planner-staff-copy {
  display: grid;
  gap: 4px;
}

.shift-planner-staff-copy strong {
  font-size: 1rem;
}

.shift-planner-staff-copy span {
  color: #5f7898;
}

.shift-planner-staff-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 125, 243, 0.12);
  color: #35588f;
  font-size: 0.78rem;
  font-weight: 700;
}

.shift-planner-staff-store.is-borrowed {
  background: rgba(245, 177, 41, 0.14);
  color: #936217;
}

.shift-planner-staff-summary {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0f5fc, #e5edf8);
}

.shift-planner-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #22406c;
  font-weight: 700;
}

.shift-planner-summary-row strong {
  font-size: 1.2rem;
}

.shift-planner-summary-row.is-warning {
  color: #b33a3a;
}

.shift-planner-board-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
  overflow: auto;
}

.workspace-shell.is-shift-planner-focus .shift-planner-board-panel {
  padding: 14px 16px 16px;
}

.shift-planner-board-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(95, 122, 163, 0.12);
}

.shift-planner-board-copy {
  min-width: 0;
}

.shift-planner-board-copy h3 {
  font-size: 1.35rem;
  line-height: 1.05;
}

.shift-planner-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 12px;
}

.shift-planner-week-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f88a7;
}

.shift-planner-board-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.shift-planner-board-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(238, 244, 253, 0.94);
  border: 1px solid rgba(99, 128, 172, 0.14);
  color: #3b5d89;
  font-weight: 700;
  font-size: 0.95rem;
}

.shift-planner-week-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(237, 244, 253, 0.95));
  border: 1px solid rgba(99, 128, 172, 0.12);
}

.shift-planner-week-actions .shift-planner-filter {
  min-width: 180px;
  margin-top: 0;
}

.shift-planner-week-actions .shift-planner-filter select {
  min-height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.shift-planner-week-start {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.shift-planner-week-start span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6f88a7;
}

.shift-planner-week-start input {
  min-height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.shift-planner-week-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(99, 128, 172, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #2f5383;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}

.shift-planner-week-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(83, 112, 154, 0.12);
}

.shift-planner-week-button.is-current,
.shift-planner-week-button:disabled {
  border-color: rgba(13, 117, 235, 0.28);
  background: linear-gradient(180deg, #0d75eb 0%, #0453b5 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 98, 208, 0.2);
  cursor: default;
  opacity: 1;
}

.shift-planner-week-button.is-highlighted:not(:disabled) {
  border-color: rgba(13, 117, 235, 0.3);
  background: linear-gradient(180deg, #3393ff 0%, #0d75eb 55%, #0453b5 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(18, 98, 208, 0.28);
  transform: translateY(-1px) scale(1.01);
}

.shift-planner-week-grid {
  min-width: max(100%, 820px);
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  border-radius: 18px;
  max-height: clamp(380px, 50vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(94, 123, 170, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 255, 0.92));
}

.workspace-shell.is-shift-planner-focus .shift-planner-week-grid {
  min-width: max(100%, 980px);
  max-height: clamp(430px, 58vh, 760px);
}

.shift-planner-grid-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px;
  border-right: 1px solid rgba(94, 123, 170, 0.14);
  border-bottom: 1px solid rgba(94, 123, 170, 0.14);
  background: linear-gradient(180deg, #f6f9fe, #edf4fc);
}

.shift-planner-grid-header strong {
  display: block;
  font-size: 1.05rem;
  color: #24406d;
}

.shift-planner-grid-date {
  display: block;
  margin-top: 6px;
  color: #6c819c;
}

.shift-planner-grid-holiday {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  color: #5b4ca8;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shift-planner-grid-header:nth-child(7n) {
  border-right: 0;
}

.shift-planner-day-column {
  min-height: 360px;
  padding: 12px;
  border-right: 1px solid rgba(94, 123, 170, 0.14);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(152, 180, 220, 0.12) 0,
      rgba(152, 180, 220, 0.12) 1px,
      transparent 1px,
      transparent 86px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.88));
  display: grid;
  align-content: start;
  gap: 10px;
}

.shift-planner-day-column:nth-last-child(1) {
  border-right: 0;
}

.shift-planner-day-empty {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(118, 145, 186, 0.24);
  background: rgba(247, 250, 255, 0.74);
  color: #8a9ab1;
  text-align: center;
}

.shift-planner-day-empty strong {
  color: #486380;
}

.shift-planner-card {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(80, 115, 172, 0.14);
  box-shadow: 0 12px 24px rgba(78, 106, 151, 0.14);
  display: grid;
  gap: 8px;
  color: #1f3156;
  cursor: pointer;
}

.shift-planner-card.is-selected {
  outline: 2px solid rgba(11, 103, 219, 0.4);
  transform: translateY(-1px);
}

.shift-planner-card.is-drop-target,
.shift-planner-day-column.is-drop-target {
  outline: 2px dashed rgba(12, 108, 226, 0.52);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 999px rgba(12, 108, 226, 0.08);
}

.shift-planner-card.is-sky {
  background: linear-gradient(180deg, rgba(122, 181, 238, 0.95), rgba(214, 235, 255, 0.95));
}

.shift-planner-card.is-mint {
  background: linear-gradient(180deg, rgba(152, 209, 185, 0.95), rgba(231, 247, 239, 0.96));
}

.shift-planner-card.is-violet {
  background: linear-gradient(180deg, rgba(160, 151, 206, 0.95), rgba(234, 230, 248, 0.96));
}

.shift-planner-card.is-amber {
  background: linear-gradient(180deg, rgba(235, 193, 137, 0.95), rgba(255, 245, 223, 0.96));
}

.shift-planner-card.is-teal {
  background: linear-gradient(180deg, rgba(121, 209, 223, 0.95), rgba(225, 248, 250, 0.96));
}

.shift-planner-card.is-rose {
  background: linear-gradient(180deg, rgba(229, 171, 197, 0.95), rgba(252, 236, 244, 0.96));
}

.shift-planner-card.is-indigo {
  background: linear-gradient(180deg, rgba(151, 166, 233, 0.95), rgba(234, 239, 255, 0.96));
}

.shift-planner-card.is-lime {
  background: linear-gradient(180deg, rgba(194, 224, 148, 0.95), rgba(243, 251, 227, 0.96));
}

.shift-planner-card-time {
  font-size: 1rem;
  font-weight: 800;
}

.shift-planner-card-people {
  display: grid;
  gap: 8px;
}

.shift-planner-card-person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.shift-planner-card-person > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shift-planner-card-person.is-open {
  color: #6f4d12;
}

.shift-planner-card-store-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 26, 46, 0.12);
  color: #456488;
  font-size: 0.72rem;
  font-weight: 700;
}

.shift-planner-card-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  color: #21406d;
}

.shift-planner-card-warning {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b74646;
}

.shift-planner-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}

.shift-planner-detail-modal[hidden] {
  display: none;
}

.shift-planner-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.shift-planner-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 18, 31, 0.34);
  backdrop-filter: blur(8px);
}

.shift-planner-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  padding: 22px;
}

.shift-planner-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.shift-planner-detail-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(99, 128, 171, 0.14);
  background: linear-gradient(180deg, #ffffff, #eef4fc);
  color: #2e527f;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.shift-planner-detail-close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

body.theme-dark .shift-planner-detail-close {
  border-color: rgba(114, 145, 190, 0.18);
  background: linear-gradient(180deg, rgba(24, 38, 59, 0.96), rgba(14, 24, 38, 0.98));
  color: #d8e7fb;
}

.shift-planner-detail-focus {
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(99, 128, 171, 0.12);
}

.shift-planner-detail-time {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #18467f;
}

.shift-planner-detail-date {
  margin: 8px 0 0;
  color: #647a98;
}

.shift-planner-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.shift-planner-detail-stat {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f9ff, #edf4fd);
  border: 1px solid rgba(99, 128, 171, 0.12);
}

.shift-planner-detail-stat span {
  display: block;
  min-height: 2.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: #7991af;
}

.shift-planner-detail-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
  color: #1f406e;
}

.shift-planner-assigned-list,
.shift-planner-warning-list,
.shift-planner-detail-actions,
.shift-planner-detail-footer {
  margin-top: 16px;
}

.shift-planner-assigned-list {
  display: grid;
  gap: 10px;
}

.shift-planner-assigned-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #edf4fd);
  border: 1px solid rgba(99, 128, 171, 0.12);
}

.shift-planner-assigned-item.is-open {
  background: linear-gradient(180deg, #fff5dc, #ffedd0);
}

.shift-planner-assigned-item.is-preview {
  background: linear-gradient(180deg, #eef6ff, #e1ecfb);
  border-style: dashed;
}

.shift-planner-assigned-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3d7fd4, #1c5fad);
  color: #ffffff;
  font-weight: 800;
}

.shift-planner-assigned-item.is-open .shift-planner-assigned-avatar {
  background: linear-gradient(180deg, #f3c363, #d7902c);
}

.shift-planner-assigned-copy {
  display: grid;
  gap: 4px;
}

.shift-planner-assigned-copy strong {
  color: #21406d;
}

.shift-planner-assigned-copy span,
.shift-planner-empty-assigned {
  color: #647a98;
}

.shift-planner-warning-list {
  display: grid;
  gap: 10px;
}

.shift-planner-helper-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(237, 244, 253, 0.8);
  border: 1px solid rgba(99, 128, 171, 0.12);
  color: #5a7393;
  line-height: 1.5;
}

.shift-planner-warning-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff1cf, #ffe1a9);
  border: 1px solid rgba(219, 162, 38, 0.24);
  color: #915a03;
  font-weight: 700;
}

.shift-planner-warning-banner.is-critical {
  background: linear-gradient(180deg, #ffdcdc, #ffcccc);
  border-color: rgba(209, 84, 84, 0.24);
  color: #a13434;
}

.shift-planner-warning-banner.is-success {
  background: linear-gradient(180deg, #e6f7ec, #d2f0de);
  border-color: rgba(52, 155, 96, 0.2);
  color: #1f7c49;
}

.shift-planner-detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.shift-planner-detail-form label {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 8px;
}

.shift-planner-detail-form label span {
  display: flex;
  align-items: flex-end;
  min-height: 2.4em;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #587390;
}

.shift-planner-detail-form input,
.shift-planner-detail-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: #f8fbff;
}

.shift-planner-form-span {
  grid-column: 1 / -1;
}

.shift-planner-detail-actions,
.shift-planner-detail-footer {
  display: grid;
  gap: 10px;
}

.shift-planner-secondary-button {
  background: linear-gradient(180deg, #3b7dc4, #255e9d);
}

.shift-planner-detail-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px 18px;
}

.activity-header h3 {
  margin: 0;
  font-size: 1.85rem;
  color: #23355b;
}

.activity-header p {
  margin: 8px 0 0;
  color: #6a7d99;
}

.activity-toggle {
  min-width: 118px;
  border: 1px solid rgba(98, 129, 174, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: #0f5ecc;
  padding: 12px 16px;
  font-weight: 800;
}

.activity-list {
  display: grid;
}

.activity-item,
.activity-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border-top: 1px solid rgba(95, 122, 163, 0.12);
}

.activity-empty {
  color: #6a7d99;
}

.activity-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: 0 0 16px;
}

.activity-dot.clock-in {
  background: #37a36e;
}

.activity-dot.clock-out {
  background: #e05252;
}

.activity-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
}

.activity-kind {
  font-weight: 800;
  color: #243558;
}

.activity-when {
  color: #617590;
}

.activity-note {
  color: #8091ab;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.settings-tab-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.settings-tab-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(98, 129, 174, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: #285388;
  font-weight: 800;
}

.settings-tab-button.is-active {
  border-color: rgba(13, 117, 235, 0.26);
  background: linear-gradient(180deg, #0d75eb, #0453b5);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(18, 98, 208, 0.2);
}

.settings-panel {
  display: grid;
  gap: 22px;
}

.businesses-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.businesses-directory-stack,
.businesses-detail-stack {
  display: grid;
  gap: 22px;
}

.businesses-list {
  display: grid;
  gap: 14px;
}

.businesses-list-item {
  width: 100%;
  border: 1px solid rgba(95, 122, 163, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(242, 246, 252, 0.95), rgba(233, 240, 250, 0.82));
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.businesses-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 117, 235, 0.26);
  box-shadow: 0 14px 28px rgba(13, 117, 235, 0.12);
}

.businesses-list-item.is-active {
  border-color: rgba(13, 117, 235, 0.3);
  background: linear-gradient(180deg, rgba(224, 236, 255, 0.96), rgba(212, 228, 252, 0.88));
  box-shadow: 0 16px 30px rgba(13, 117, 235, 0.16);
}

.businesses-list-brand {
  display: flex;
  align-items: flex-start;
}

.business-logo-image,
.business-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.business-logo-image {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(95, 122, 163, 0.14);
}

.business-logo-fallback {
  background: linear-gradient(135deg, var(--business-primary), var(--business-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.businesses-list-copy,
.businesses-list-meta {
  grid-column: 2;
}

.businesses-list-copy {
  display: grid;
  gap: 6px;
}

.businesses-list-copy strong {
  font-size: 1rem;
  color: #173b68;
}

.businesses-list-copy span,
.businesses-list-meta small,
.businesses-empty,
#businesses-selected-meta {
  color: #617792;
}

.businesses-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.business-branding-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0 28px 28px;
}

.business-logo-preview {
  width: 84px;
  height: 84px;
  border-radius: 24px;
}

.business-branding-preview-copy {
  display: grid;
  gap: 8px;
}

.business-branding-preview-copy strong {
  font-size: 1.05rem;
  color: #173b68;
}

.business-branding-preview-copy p {
  margin: 0;
  color: #617792;
}

.business-theme-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.business-theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.business-workspace-shell {
  gap: 18px;
}

.business-workspace-hero-card,
.business-workspace-section-card,
.business-workspace-form-card {
  overflow: hidden;
}

.business-workspace-hero-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(79, 125, 243, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(247, 250, 255, 0.98), rgba(237, 244, 255, 0.94));
  border-color: rgba(95, 122, 163, 0.14);
}

.business-workspace-hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.business-workspace-hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(255, 255, 255, 0.58) 100%);
}

.business-workspace-hero-backdrop-logo {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  display: grid;
  place-items: center;
  opacity: 0.26;
  filter: saturate(0.95);
}

.business-logo-image.business-logo-watermark,
.business-logo-fallback.business-logo-watermark {
  width: 100%;
  height: 100%;
  border-radius: 34%;
  box-shadow: none;
}

.business-workspace-hero-backdrop-logo .business-logo-image.business-logo-watermark {
  border-color: rgba(89, 113, 153, 0.08);
}

.business-workspace-hero-backdrop-logo .business-logo-fallback.business-logo-watermark {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: 0.08em;
  border-color: rgba(89, 113, 153, 0.08);
}

.business-workspace-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: 280px;
  padding: 30px;
  align-items: end;
}

.business-workspace-identity-block {
  display: grid;
  gap: 16px;
  max-width: min(64%, 760px);
}

.business-workspace-branding-preview {
  gap: 20px;
  padding: 0;
  align-items: end;
}

.business-workspace-branding-preview .business-logo-image,
.business-workspace-branding-preview .business-logo-fallback {
  width: 136px;
  height: 136px;
  border-radius: 32px;
  box-shadow: 0 22px 42px rgba(19, 53, 88, 0.16);
}

.business-workspace-branding-preview .business-branding-preview-copy {
  align-content: start;
  gap: 12px;
}

.business-workspace-branding-preview .business-branding-preview-copy h3 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.98;
  color: #173b68;
}

.business-workspace-branding-preview #businesses-selected-meta {
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.55;
}

.business-workspace-section-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 0 2px 2px;
}

.business-workspace-section-nav .settings-tab-button {
  white-space: nowrap;
}

.business-workspace-operations-panel {
  display: grid;
  gap: 18px;
}

.business-workspace-operations-card {
  display: grid;
  gap: 22px;
}

.business-workspace-operations-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.business-workspace-main-grid.is-single-panel {
  grid-template-columns: minmax(0, 1fr);
}

.business-workspace-main-grid.is-single-panel .business-workspace-main-column,
.business-workspace-main-grid.is-single-panel .business-workspace-side-column {
  gap: 0;
}

.business-workspace-card-heading {
  display: grid;
  gap: 4px;
}

.business-workspace-card-heading span,
.business-workspace-release-meta span {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b80a0;
  font-weight: 800;
}

.business-workspace-card-heading strong,
.business-workspace-release-meta strong {
  font-size: 1.1rem;
  color: #173b68;
}

.business-workspace-card-copy,
.business-workspace-release-meta p,
.business-workspace-update-copy,
.business-workspace-section-header p {
  margin: 0;
  color: #617792;
}

.business-workspace-update-title {
  font-size: 1.45rem;
  color: #173b68;
}

.business-workspace-release-meta {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(95, 122, 163, 0.16);
}

.business-workspace-health-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.business-workspace-section-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
}

.business-workspace-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.business-workspace-section-header > div {
  display: grid;
  gap: 6px;
}

.business-workspace-section-header h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #173b68;
}

.business-workspace-status-grid {
  gap: 14px;
}

.business-workspace-status-grid .summary-card {
  min-height: 0;
  background: linear-gradient(180deg, rgba(248, 250, 254, 0.96), rgba(240, 245, 252, 0.9));
  border: 1px solid rgba(95, 122, 163, 0.12);
  box-shadow: none;
}

.business-workspace-status-grid .summary-card strong {
  font-size: 1.35rem;
}

.business-workspace-status-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-workspace-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.business-workspace-main-column,
.business-workspace-side-column {
  display: grid;
  gap: 18px;
}

.business-workspace-form-card .activity-header {
  padding-bottom: 6px;
}

.business-workspace-form-card .activity-header h3 {
  font-size: 1.3rem;
}

.developer-home-heading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.developer-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(280px, 0.9fr));
  gap: 22px;
  align-items: start;
}

.developer-spotlight-card {
  grid-column: 1 / -1;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(72, 118, 217, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(244, 247, 253, 0.96), rgba(233, 240, 250, 0.9));
}

.developer-spotlight-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0 28px 28px;
}

.developer-spotlight-brand .business-logo-image,
.developer-spotlight-brand .business-logo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.developer-spotlight-copy {
  display: grid;
  gap: 10px;
}

.developer-spotlight-copy strong {
  font-size: 1.5rem;
  color: #173b68;
}

.developer-spotlight-copy p {
  margin: 0;
  color: #617792;
}

.developer-spotlight-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.developer-chart-card,
.developer-attention-card {
  overflow: hidden;
}

.developer-chart-card .activity-header,
.developer-attention-card .activity-header {
  padding-bottom: 12px;
}

.developer-chart-shell {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 0 28px 28px;
}

.developer-donut-chart {
  --developer-chart-gradient: conic-gradient(rgba(120, 144, 179, 0.18) 0deg 360deg);
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--developer-chart-gradient);
  box-shadow: inset 0 0 0 1px rgba(95, 122, 163, 0.1);
  display: grid;
  place-items: center;
}

.developer-donut-chart::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8fbff, #eff5fc);
  box-shadow: 0 12px 24px rgba(22, 44, 78, 0.08);
}

.developer-donut-chart span {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  color: #173b68;
}

.developer-chart-legend {
  display: grid;
  gap: 12px;
}

.developer-chart-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 254, 0.98), rgba(240, 245, 252, 0.92));
  border: 1px solid rgba(95, 122, 163, 0.12);
}

.developer-chart-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--chart-swatch);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--chart-swatch) 18%, transparent);
}

.developer-chart-legend-copy {
  display: grid;
  gap: 3px;
}

.developer-chart-legend-copy strong {
  color: #173b68;
}

.developer-chart-legend-copy small,
.developer-chart-empty {
  color: #617792;
}

.developer-attention-list {
  display: grid;
  gap: 12px;
  padding: 0 28px 28px;
}

.developer-attention-item {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(95, 122, 163, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 254, 0.98), rgba(239, 245, 252, 0.92));
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.developer-attention-item:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 117, 235, 0.24);
  box-shadow: 0 14px 28px rgba(13, 117, 235, 0.12);
}

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

.developer-attention-item-head strong {
  color: #173b68;
}

.developer-attention-item-head span,
.developer-attention-item p {
  color: #617792;
  margin: 0;
}

.businesses-empty {
  padding: 18px 20px;
  border: 1px dashed rgba(95, 122, 163, 0.22);
  border-radius: 18px;
  background: rgba(246, 249, 253, 0.76);
}

.business-tier-features-block {
  display: grid;
  gap: 12px;
}

.settings-inline-label {
  display: inline-flex;
  align-items: center;
  color: #617792;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.business-tier-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.business-feature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 236, 250, 0.96), rgba(217, 229, 248, 0.88));
  border: 1px solid rgba(99, 128, 171, 0.16);
  color: #173b68;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.settings-email-summary-grid .summary-card strong,
.settings-email-summary-grid .summary-card p {
  overflow-wrap: anywhere;
}

.settings-grid {
  align-items: start;
}

.settings-form {
  align-items: end;
}

.settings-actions {
  grid-column: 1 / -1;
}

.settings-stores-list {
  display: grid;
  gap: 14px;
}

.settings-store-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 140px minmax(180px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(99, 128, 171, 0.14);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(238, 245, 253, 0.98));
}

.settings-store-row label {
  display: grid;
  gap: 8px;
}

.settings-store-row label span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7489a7;
}

.settings-store-row input[type="color"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 6px;
  border-radius: 14px;
}

.settings-store-preview {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.settings-store-chip {
  --store-color: #4f7df3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-color) 16%, #ffffff);
  color: color-mix(in srgb, var(--store-color) 84%, #1f3f74);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--store-color) 22%, rgba(95, 122, 163, 0.18));
}

.settings-store-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--store-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--store-color) 16%, transparent);
}

.settings-store-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-stores-empty {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 128, 171, 0.2);
  background: rgba(246, 249, 253, 0.72);
  color: #6c819e;
  font-weight: 700;
}

.settings-stores-actions {
  justify-content: space-between;
}

.settings-schedule-card {
  overflow: auto;
}

.settings-day-table {
  display: grid;
  gap: 12px;
  padding: 0 28px 28px;
}

.settings-day-table-header,
.settings-day-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 120px repeat(5, minmax(0, 0.9fr));
  gap: 14px;
  align-items: center;
}

.settings-day-table-header {
  padding: 0 2px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7188a5;
}

.settings-day-row {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(99, 128, 171, 0.12);
  background: linear-gradient(180deg, #fbfdff, #edf4fc);
}

.settings-day-row strong {
  color: #22406c;
}

.settings-day-row input {
  min-height: 48px;
}

.settings-open-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(99, 128, 171, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #385781;
  font-weight: 700;
}

.settings-open-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.meta-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.meta-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #7390b1;
}

.meta-card code {
  font-size: 0.82rem;
  line-height: 1.55;
}

.panel-header,
.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-header.compact {
  margin-bottom: 14px;
}

.helper-text {
  color: var(--text-soft);
  line-height: 1.55;
}

.auth-stage {
  width: min(100%, 700px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 22px;
  position: relative;
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 12% 10% auto;
  height: 34%;
  background: radial-gradient(circle, rgba(49, 113, 222, 0.28), transparent 70%);
  filter: blur(22px);
  z-index: -1;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.brand-mark {
  width: min(360px, 72vw);
  filter: drop-shadow(0 20px 40px rgba(30, 82, 160, 0.2));
}

.brand-logo,
.brand-logo-image {
  width: 100%;
  height: auto;
  display: block;
}

.login-title {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #ffffff;
  text-shadow:
    0 10px 30px rgba(42, 84, 151, 0.34),
    0 2px 0 rgba(11, 56, 124, 0.1);
}

.login-subtitle {
  max-width: 620px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #5f7898;
}

.login-card {
  width: min(100%, 640px);
  display: grid;
  gap: 20px;
}

.invite-setup-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(87, 112, 150, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(43, 69, 112, 0.16);
  gap: 24px;
}

.invite-setup-header {
  display: grid;
  gap: 10px;
}

.invite-setup-header h3 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.3rem);
  color: var(--text-main);
}

.invite-setup-header .helper-text {
  margin: 0;
}

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

.invite-setup-summary-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(87, 112, 150, 0.14);
  background: rgba(243, 247, 253, 0.74);
}

.invite-setup-summary-item span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f87a5;
}

.invite-setup-summary-item strong {
  font-size: 1.05rem;
  color: var(--text-main);
}

.invite-setup-form {
  gap: 18px;
}

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

.invite-setup-checkbox,
.invite-setup-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(87, 112, 150, 0.14);
  background: rgba(243, 247, 253, 0.74);
}

.invite-setup-checkbox input,
.invite-setup-radio input {
  width: auto;
  margin-top: 2px;
}

.invite-setup-security-group {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(87, 112, 150, 0.14);
  background: rgba(243, 247, 253, 0.64);
  display: grid;
  gap: 12px;
}

.invite-setup-security-group legend {
  padding: 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #5a7395;
}

.invite-setup-security-group .helper-text {
  margin: 0;
}

.auth-field {
  position: relative;
  width: 100%;
  display: block;
}

.auth-field input {
  min-height: 82px;
  padding: 0 82px 0 86px;
  border-radius: 18px;
  border: 1px solid rgba(115, 137, 173, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 40px rgba(71, 101, 144, 0.16),
    inset 0 -2px 0 rgba(33, 62, 103, 0.06);
  color: #637d9e;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.auth-field input::placeholder {
  color: #7189a8;
}

.field-icon,
.field-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #8094b0;
}

.field-icon {
  left: 24px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.field-toggle {
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
}

.field-toggle:hover {
  background: rgba(12, 110, 232, 0.08);
  transform: translateY(-50%);
}

.field-toggle.is-active {
  color: #0b63d7;
}

.field-icon svg,
.field-toggle svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.login-submit {
  min-height: 80px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0d75eb 0%, #0453b5 100%);
  box-shadow:
    0 10px 0 rgba(6, 72, 149, 0.18),
    0 24px 44px rgba(18, 98, 208, 0.28);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.auth-link-button {
  border: 0;
  background: none;
  color: #1064d9;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
  padding: 10px 14px;
}

.auth-dialog-shell[hidden] {
  display: none;
}

.auth-dialog-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 16, 28, 0.42);
  backdrop-filter: blur(10px);
}

.auth-dialog-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(87, 112, 150, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 70px rgba(43, 69, 112, 0.22);
  display: grid;
  gap: 16px;
}

.auth-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-dialog-header h3 {
  margin: 4px 0 0;
  font-size: 1.7rem;
  color: var(--text-main);
}

.auth-dialog-close {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(87, 112, 150, 0.16);
  background: rgba(243, 247, 253, 0.98);
  color: #4d6487;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.auth-dialog-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.auth-dialog-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(52, 75, 109, 0.12);
}

.auth-dialog-copy {
  margin: 0;
}

.auth-dialog-form {
  gap: 16px;
}

.auth-dialog-form input {
  min-height: 56px;
  padding: 14px 16px;
  font-size: 1.02rem;
}

.auth-dialog-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(214, 95, 95, 0.2);
  background: rgba(255, 238, 238, 0.94);
  color: #b14c4c;
  font-weight: 600;
  line-height: 1.45;
}

.auth-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.setup-drawer {
  width: min(100%, 640px);
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(87, 112, 150, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(43, 69, 112, 0.16);
}

body.auth-mode .setup-drawer input {
  min-height: auto;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-main);
}

body.auth-mode .setup-drawer .secondary-button {
  min-height: 54px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label,
.note-field {
  display: grid;
  gap: 8px;
}

label span,
.note-field span {
  font-size: 0.94rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 48, 74, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(14, 122, 107, 0.18);
  border-color: rgba(14, 122, 107, 0.45);
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(18, 48, 74, 0.16), transparent);
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  transition: transform 120ms ease, opacity 120ms ease, background-color 120ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.secondary-button {
  background: linear-gradient(135deg, #f8b460, #ef9245);
  color: #fff;
}

.ghost-button {
  background: rgba(18, 48, 74, 0.06);
  color: var(--text-main);
}

.status-grid,
.action-grid {
  display: grid;
  gap: 18px;
}

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

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

.status-card {
  padding: 20px;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(14, 122, 107, 0.18), rgba(14, 122, 107, 0.04)),
    var(--panel-strong);
}

.status-card h3,
.status-card p {
  margin-top: 10px;
  margin-bottom: 0;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.config-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.config-list div {
  display: grid;
  gap: 6px;
}

code,
.mono-line {
  font-family: "Cascadia Code", "Consolas", monospace;
  color: var(--text-main);
  word-break: break-all;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 74, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18, 48, 74, 0.07);
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.empty-row {
  text-align: center;
  color: var(--text-soft);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 48, 74, 0.9);
  color: #fff;
  box-shadow: var(--shadow);
}

.hidden,
[hidden] {
  display: none !important;
}

@media (max-width: 1360px) {
  .payslips-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero,
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 24px;
  }

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

  .topbar-mark {
    width: min(240px, 100%);
  }

  .status-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .payslips-filter-bar,
  .payslips-hero-stats,
  .payslips-dashboard-grid,
  .payslip-detail-highlights,
  .payslip-detail-meta,
  .leave-form-grid,
  .accounting-pay-slip-modes,
  .accounting-manual-pay-fields {
    grid-template-columns: 1fr;
  }

  .payslips-hero-card {
    grid-template-columns: 1fr;
  }

  .payslips-history-card .table-wrap {
    margin: 0 20px 20px;
  }

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

  .payslips-filter-button {
    width: 100%;
  }

  .payslip-detail-modal {
    padding: 18px;
  }

  .payslip-document-modal {
    padding: 18px;
  }

  .payslip-detail-dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  .payslip-document-dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  .leave-form-actions {
    flex-direction: column-reverse;
  }

  .leave-tab-row {
    display: grid;
    width: 100%;
  }

  .leave-tab-button {
    width: 100%;
    justify-content: space-between;
  }

  .leave-form-actions .card-button,
  .leave-form-actions .card-ghost-button {
    width: 100%;
  }

  .leave-admin-actions .table-action-button {
    width: 100%;
  }

  .accounting-group-header,
  .accounting-group-heading,
  .accounting-group-actions,
  .payslip-detail-attachment-row {
    flex-direction: column;
    align-items: stretch;
  }

  .payslip-detail-preview {
    margin: 0 20px 20px;
    padding: 16px;
  }

  .payslip-detail-preview-frame,
  .payslip-detail-preview-image-wrap {
    min-height: 420px;
  }

  .accounting-workspace-layout {
    grid-template-columns: 1fr;
  }

  .accounting-workspace-filters,
  .accounting-period-summary {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .accounting-period-heading,
  .accounting-period-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .accounting-staff-panel {
    position: static;
  }

  .accounting-staff-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(88, 117, 165, 0.12);
  }

  .profile-theme-options {
    grid-template-columns: 1fr;
  }

  .profile-authenticator-header,
  .profile-authenticator-setup-card,
  .profile-authenticator-verify-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .profile-authenticator-header .card-ghost-button,
  .profile-authenticator-verify-row .card-button {
    width: 100%;
  }

  .nav-item {
    border-radius: 16px;
    white-space: nowrap;
    padding: 14px 18px;
  }

  .dashboard-main {
    padding: 24px 18px 36px;
  }

  .dashboard-main.is-shift-planner-focus {
    padding: 18px 14px 28px;
  }

  .dashboard-grid,
  .meta-grid,
  .timesheet-summary-grid,
  .admin-calendar-layout,
  .admin-management-grid,
  .employee-tools-grid,
  .admin-form-grid,
  .businesses-layout,
  .settings-day-table-header,
  .settings-day-row {
    grid-template-columns: 1fr;
  }

  .admin-calendar-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .admin-calendar-toolbar-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .admin-calendar-weekdays,
  .admin-calendar-grid {
    gap: 8px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 18px;
  }

  .admin-calendar-day,
  .roster-calendar-day {
    min-height: 96px;
    padding: 10px;
  }

  .business-branding-preview {
    grid-template-columns: 1fr;
  }

  .business-workspace-hero,
  .business-workspace-health-board,
  .business-workspace-main-grid {
    grid-template-columns: 1fr;
  }

  .business-workspace-identity-block {
    max-width: none;
  }

  .business-workspace-hero-backdrop-logo {
    right: -24px;
    width: min(48vw, 320px);
    height: min(48vw, 320px);
  }

  .business-workspace-section-nav {
    flex-wrap: nowrap;
  }

  .developer-home-grid {
    grid-template-columns: 1fr;
  }

  .developer-chart-shell {
    grid-template-columns: 1fr;
  }

  .business-workspace-status-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .businesses-list-item {
    grid-template-columns: 1fr;
  }

  .businesses-list-copy,
  .businesses-list-meta {
    grid-column: auto;
  }

  .admin-form-actions {
    align-items: stretch;
  }

  .settings-day-table-header {
    display: none;
  }

  .settings-day-row {
    justify-items: stretch;
  }

  .shift-planner-toolbar,
  .shift-planner-toolbar-left,
  .shift-planner-toolbar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .shift-planner-board-heading {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .shift-planner-board-toolbar,
  .shift-planner-week-actions,
  .shift-planner-board-metrics {
    width: 100%;
    justify-content: flex-start;
  }

  .shift-planner-layout,
  #shift-planner-page.is-staff-collapsed .shift-planner-layout {
    grid-template-columns: 1fr;
  }

  .shift-planner-shell {
    height: auto;
  }

  .shift-planner-detail-stats,
  .shift-planner-detail-form,
  .shift-planner-detail-footer {
    grid-template-columns: 1fr;
  }
}

.profile-settings-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.profile-form-grid {
  align-items: start;
}

.profile-form-section {
  display: grid;
  gap: 14px;
}

@media (max-width: 860px) {
  .business-workspace-hero {
    min-height: 0;
    padding: 24px 22px;
  }

  .business-workspace-section-nav .settings-tab-button {
    flex: 1 0 auto;
  }

  .business-workspace-section-card,
  .business-workspace-operations-card {
    padding: 20px;
  }

  .developer-spotlight-body,
  .developer-chart-shell,
  .developer-attention-list {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }

  .developer-donut-chart {
    width: 170px;
    height: 170px;
  }

  .business-workspace-branding-preview .business-branding-preview-copy h3 {
    font-size: 2rem;
  }

  .business-workspace-status-grid--compact {
    grid-template-columns: 1fr;
  }

  .business-workspace-branding-preview .business-logo-image,
  .business-workspace-branding-preview .business-logo-fallback {
    width: 108px;
    height: 108px;
  }

  .business-workspace-hero-backdrop-logo {
    right: -54px;
    top: 30px;
    transform: none;
    width: 220px;
    height: 220px;
  }

  .business-workspace-hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.74) 100%);
  }

  .business-workspace-operations-actions {
    justify-content: stretch;
  }

  .developer-home-heading-actions,
  .developer-spotlight-pills {
    width: 100%;
  }

  .developer-spotlight-body {
    grid-template-columns: 1fr;
  }
}

.profile-two-factor-options {
  display: grid;
  gap: 14px;
}

.profile-two-factor-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(13, 35, 64, 0.11);
  border-radius: 20px;
  background: rgba(245, 249, 255, 0.9);
  transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.profile-two-factor-option:hover {
  transform: translateY(-1px);
  border-color: rgba(48, 106, 196, 0.24);
}

.profile-two-factor-option input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.profile-two-factor-option-copy {
  display: grid;
  gap: 4px;
}

.profile-two-factor-option-copy strong {
  color: var(--text-main);
}

.profile-two-factor-option-copy small {
  color: var(--text-soft);
  line-height: 1.5;
}

.profile-two-factor-option:has(input:checked) {
  border-color: rgba(48, 106, 196, 0.32);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(232, 242, 255, 0.9));
  box-shadow: 0 18px 34px -28px rgba(47, 106, 196, 0.45);
}

.profile-field-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.profile-theme-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(13, 35, 64, 0.11);
  border-radius: 20px;
  background: rgba(245, 249, 255, 0.9);
}

.profile-theme-option input {
  margin-top: 3px;
}

.profile-theme-copy {
  display: grid;
  gap: 4px;
}

.profile-theme-copy strong {
  color: var(--text-main);
}

.profile-theme-copy small,
.profile-toggle-copy small {
  color: var(--text-soft);
  line-height: 1.5;
}

.profile-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(13, 35, 64, 0.11);
  border-radius: 20px;
  background: rgba(245, 249, 255, 0.9);
}

.profile-toggle-row input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.profile-toggle-copy {
  display: grid;
  gap: 4px;
}

.profile-form-actions {
  justify-content: flex-start;
}

.profile-password-help {
  display: flex;
  justify-content: flex-start;
}

.profile-link-button {
  border: 0;
  padding: 0;
  background: none;
  color: #1064d9;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-link-button:hover {
  color: #0b56b7;
}

.profile-security-status {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(13, 35, 64, 0.11);
  border-radius: 20px;
  background: rgba(245, 249, 255, 0.9);
}

.profile-security-status p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.profile-security-status-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.profile-security-status strong {
  font-size: 1.1rem;
  color: var(--text-main);
}

.profile-authenticator-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(13, 35, 64, 0.11);
  border-radius: 22px;
  background: rgba(245, 249, 255, 0.9);
}

.profile-authenticator-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.profile-authenticator-header strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  color: var(--text-main);
}

.profile-authenticator-header p,
.profile-authenticator-key-copy,
.profile-authenticator-qr-copy {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.profile-authenticator-setup-card {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
}

.profile-authenticator-qr-card,
.profile-authenticator-key-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(13, 35, 64, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.9));
}

.profile-authenticator-qr-card {
  justify-items: center;
  align-content: start;
}

.profile-authenticator-qr-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(13, 35, 64, 0.08);
}

.profile-authenticator-manual-key {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 35, 64, 0.06);
  color: var(--text-main);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.profile-authenticator-verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.profile-authenticator-verify-row label {
  display: grid;
  gap: 8px;
}

.profile-authenticator-verify-row .card-button {
  min-height: 48px;
}

body.theme-dark .app-shell {
  background: linear-gradient(180deg, rgba(13, 22, 35, 0.98), rgba(11, 18, 30, 0.98));
}

body.theme-dark .dashboard-sidebar {
  background: linear-gradient(180deg, rgba(11, 20, 32, 0.9), rgba(16, 28, 42, 0.72));
  border-right-color: rgba(114, 145, 190, 0.18);
}

body.theme-dark .dashboard-main {
  background: linear-gradient(180deg, rgba(9, 16, 26, 0.28), rgba(9, 16, 26, 0.08));
}

body.theme-dark .dashboard-card,
body.theme-dark .activity-card,
body.theme-dark .summary-card,
body.theme-dark .meta-card,
body.theme-dark .shift-planner-board,
body.theme-dark .shift-planner-staff-panel,
body.theme-dark .shift-planner-detail-panel,
body.theme-dark .shift-planner-side-panel,
body.theme-dark .settings-day-row,
body.theme-dark .table-wrap,
body.theme-dark .calendar-shell-card,
body.theme-dark .roster-calendar-card {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.94), rgba(13, 23, 36, 0.96));
  border-color: rgba(114, 145, 190, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: rgba(10, 18, 30, 0.9);
  color: var(--text-main);
  border-color: rgba(117, 146, 189, 0.2);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: rgba(151, 171, 194, 0.74);
}

body.theme-dark .nav-item:hover {
  background: rgba(93, 150, 255, 0.12);
}

body.theme-dark .nav-item.is-active {
  background: linear-gradient(90deg, rgba(93, 150, 255, 0.22), rgba(93, 150, 255, 0.08));
  color: #7db0ff;
}

body.theme-dark table {
  background: rgba(12, 21, 33, 0.9);
  color: #dce8f9;
}

body.theme-dark table thead th {
  background: rgba(21, 35, 54, 0.96);
  color: #9fb5d2;
}

body.theme-dark table tbody tr {
  background: rgba(14, 24, 38, 0.88);
  border-bottom-color: rgba(117, 146, 189, 0.12);
}

body.theme-dark table tbody tr:nth-child(even) {
  background: rgba(17, 29, 45, 0.9);
}

body.theme-dark th,
body.theme-dark td,
body.theme-dark .empty-row {
  color: #dce8f9;
  border-bottom-color: rgba(117, 146, 189, 0.12);
}

body.theme-dark .empty-row {
  color: #97abc2;
}

body.theme-dark .accounting-staff-cell strong {
  color: #e8f1ff;
}

body.theme-dark .accounting-staff-cell span,
body.theme-dark .accounting-selection-copy {
  color: rgba(194, 214, 241, 0.78);
}

body.theme-dark .table-action-label {
  background: rgba(93, 150, 255, 0.14);
  color: #9bc0ff;
}

body.theme-dark .profile-theme-option,
body.theme-dark .profile-toggle-row,
body.theme-dark .profile-security-status,
body.theme-dark .profile-authenticator-panel,
body.theme-dark .profile-two-factor-option {
  background: rgba(10, 18, 30, 0.86);
  border-color: rgba(117, 146, 189, 0.18);
}

body.theme-dark .profile-two-factor-option:has(input:checked) {
  background: linear-gradient(180deg, rgba(14, 28, 45, 0.96), rgba(10, 22, 38, 0.92));
  border-color: rgba(82, 137, 222, 0.34);
}

body.theme-dark .profile-authenticator-qr-card,
body.theme-dark .profile-authenticator-key-card {
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.98), rgba(11, 20, 31, 0.92));
  border-color: rgba(117, 146, 189, 0.18);
}

body.theme-dark .profile-authenticator-qr-card img {
  background: #ffffff;
}

body.theme-dark .profile-authenticator-manual-key {
  background: rgba(255, 255, 255, 0.06);
  color: #edf5ff;
}

body.theme-dark .businesses-list-item {
  background: linear-gradient(180deg, rgba(12, 22, 35, 0.94), rgba(16, 29, 46, 0.88));
  border-color: rgba(117, 146, 189, 0.18);
}

body.theme-dark .businesses-list-item.is-active {
  border-color: rgba(93, 150, 255, 0.32);
  background: linear-gradient(180deg, rgba(21, 39, 63, 0.96), rgba(18, 33, 54, 0.92));
}

body.theme-dark .businesses-list-copy strong {
  color: #edf5ff;
}

body.theme-dark .business-branding-preview-copy strong {
  color: #edf5ff;
}

body.theme-dark .business-workspace-branding-preview .business-branding-preview-copy h3,
body.theme-dark .business-workspace-card-heading strong,
body.theme-dark .business-workspace-release-meta strong,
body.theme-dark .business-workspace-update-title,
body.theme-dark .business-workspace-section-header h3 {
  color: #edf5ff;
}

body.theme-dark .businesses-list-copy span,
body.theme-dark .businesses-list-meta small,
body.theme-dark .businesses-empty,
body.theme-dark .business-branding-preview-copy p,
body.theme-dark #businesses-selected-meta {
  color: #97abc2;
}

body.theme-dark .businesses-empty {
  background: rgba(10, 18, 30, 0.68);
  border-color: rgba(117, 146, 189, 0.18);
}

body.theme-dark .business-workspace-hero-card {
  background:
    radial-gradient(circle at top right, rgba(68, 117, 223, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(15, 28, 46, 0.98), rgba(13, 24, 39, 0.94));
  border-color: rgba(117, 146, 189, 0.14);
}

body.theme-dark .business-workspace-hero-backdrop::after {
  background:
    linear-gradient(90deg, rgba(10, 18, 30, 0.96) 0%, rgba(10, 18, 30, 0.88) 44%, rgba(10, 18, 30, 0.58) 100%);
}

body.theme-dark .business-workspace-hero-backdrop-logo {
  opacity: 0.18;
}

body.theme-dark .business-workspace-card-heading span,
body.theme-dark .business-workspace-release-meta span {
  color: #8ca4c5;
}

body.theme-dark .business-workspace-card-copy,
body.theme-dark .business-workspace-release-meta p,
body.theme-dark .business-workspace-update-copy,
body.theme-dark .business-workspace-section-header p {
  color: #97abc2;
}

body.theme-dark .business-workspace-release-meta {
  border-top-color: rgba(117, 146, 189, 0.14);
}

body.theme-dark .business-workspace-status-grid .summary-card {
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.95), rgba(15, 28, 45, 0.9));
  border-color: rgba(117, 146, 189, 0.14);
}

body.theme-dark .developer-spotlight-card {
  background:
    radial-gradient(circle at top right, rgba(77, 126, 231, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(13, 24, 38, 0.98), rgba(16, 29, 46, 0.94));
}

body.theme-dark .developer-spotlight-copy strong,
body.theme-dark .developer-chart-legend-copy strong,
body.theme-dark .developer-attention-item-head strong,
body.theme-dark .developer-donut-chart span {
  color: #edf5ff;
}

body.theme-dark .developer-spotlight-copy p,
body.theme-dark .developer-chart-legend-copy small,
body.theme-dark .developer-chart-empty,
body.theme-dark .developer-attention-item-head span,
body.theme-dark .developer-attention-item p {
  color: #97abc2;
}

body.theme-dark .developer-donut-chart::before {
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.96), rgba(13, 24, 38, 0.92));
  box-shadow: 0 12px 24px rgba(4, 11, 19, 0.28);
}

body.theme-dark .developer-chart-legend-item,
body.theme-dark .developer-attention-item {
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.95), rgba(15, 28, 45, 0.9));
  border-color: rgba(117, 146, 189, 0.14);
}

body.theme-dark .settings-inline-label {
  color: #97abc2;
}

body.theme-dark .business-feature-chip {
  background: linear-gradient(180deg, rgba(16, 29, 46, 0.96), rgba(12, 22, 35, 0.92));
  border-color: rgba(117, 146, 189, 0.18);
  color: #edf5ff;
}

body.theme-dark .profile-link-button {
  color: #7db0ff;
}

body.theme-dark .profile-link-button:hover {
  color: #a8c8ff;
}

body.theme-dark.auth-mode {
  background: linear-gradient(180deg, #07111c 0%, #0c1624 46%, #101a29 100%);
}

body.theme-dark.auth-mode::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(61, 108, 197, 0.34), transparent 24%),
    radial-gradient(circle at 50% 45%, rgba(42, 112, 223, 0.2), transparent 18%),
    radial-gradient(circle at 88% 82%, rgba(20, 147, 125, 0.22), transparent 20%),
    radial-gradient(circle at 10% 92%, rgba(66, 118, 205, 0.18), transparent 24%);
}

body.theme-dark.auth-mode::after {
  background:
    radial-gradient(circle at 50% 36%, rgba(19, 33, 51, 0.94), transparent 34%),
    radial-gradient(circle at 52% 42%, rgba(65, 111, 194, 0.18), transparent 16%);
}

body.theme-dark .startup-loader {
  background:
    radial-gradient(circle at 18% 16%, rgba(61, 108, 197, 0.24), transparent 24%),
    radial-gradient(circle at 84% 78%, rgba(20, 147, 125, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(7, 17, 28, 0.96), rgba(12, 22, 35, 0.98));
}

body.theme-dark .startup-loader-card,
body.theme-dark .setup-drawer {
  background: linear-gradient(180deg, rgba(17, 30, 46, 0.96), rgba(12, 21, 33, 0.94));
  border-color: rgba(114, 145, 190, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

body.theme-dark .startup-loader-spinner::before {
  background: rgba(10, 18, 30, 0.96);
}

body.theme-dark .startup-loader-eyebrow,
body.theme-dark .field-icon,
body.theme-dark .field-toggle {
  color: #8da5c4;
}

body.theme-dark .startup-loader-copy h2,
body.theme-dark .login-subtitle,
body.theme-dark .startup-loader-copy p {
  color: #dce8f9;
}

body.theme-dark .auth-field input {
  background: rgba(10, 18, 30, 0.95);
  border-color: rgba(117, 146, 189, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.26),
    inset 0 -2px 0 rgba(133, 162, 205, 0.06);
  color: #dce8f9;
}

body.theme-dark .auth-field input::placeholder {
  color: #8fa5c1;
}

body.theme-dark .field-toggle:hover {
  background: rgba(93, 150, 255, 0.12);
}

body.theme-dark .auth-link-button {
  color: #7fb0ff;
}

body.theme-dark .invite-setup-card,
body.theme-dark .invite-setup-summary-item,
body.theme-dark .invite-setup-checkbox,
body.theme-dark .invite-setup-radio,
body.theme-dark .invite-setup-security-group {
  border-color: rgba(114, 143, 188, 0.18);
  background: rgba(14, 25, 42, 0.9);
  box-shadow: none;
}

body.theme-dark .invite-setup-header h3,
body.theme-dark .invite-setup-summary-item strong {
  color: #f3f7ff;
}

body.theme-dark .invite-setup-summary-item span,
body.theme-dark .invite-setup-security-group legend {
  color: #9fb6d6;
}

body.theme-dark .card-ghost-button.is-danger {
  background: rgba(119, 33, 42, 0.68);
  color: #ffb4b4;
}

body.theme-dark .auth-dialog-card {
  background: linear-gradient(180deg, rgba(17, 30, 46, 0.98), rgba(12, 21, 33, 0.96));
  border-color: rgba(114, 145, 190, 0.18);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
}

body.theme-dark .auth-dialog-close {
  background: linear-gradient(180deg, rgba(21, 39, 67, 0.96), rgba(16, 31, 54, 0.96));
  border-color: rgba(117, 154, 214, 0.16);
  color: #d4e4ff;
}

body.theme-dark .auth-dialog-header h3 {
  color: #edf5ff;
}

body.theme-dark .auth-dialog-error {
  background: rgba(72, 26, 33, 0.92);
  border-color: rgba(214, 95, 95, 0.24);
  color: #ffb8b8;
}

body.theme-dark .auth-dialog-backdrop {
  background: rgba(4, 9, 16, 0.56);
}

body.theme-dark .payslips-table-row.is-selected {
  background: rgba(93, 150, 255, 0.16);
}

body.theme-dark .payslips-stat-card {
  background: linear-gradient(180deg, rgba(11, 20, 32, 0.94), rgba(14, 24, 38, 0.98));
  border-color: rgba(117, 146, 189, 0.18);
}

body.theme-dark .payslip-detail-item,
body.theme-dark .admin-note-item,
body.theme-dark .leave-preview-banner,
body.theme-dark .settings-open-toggle {
  background: rgba(10, 18, 30, 0.86);
  border-color: rgba(117, 146, 189, 0.18);
}

body.theme-dark .payslips-stat-card strong,
body.theme-dark .payslip-detail-item strong,
body.theme-dark .admin-note-item strong,
body.theme-dark .leave-preview-banner strong {
  color: #edf5ff;
}

body.theme-dark .payslips-stat-card span,
body.theme-dark .payslip-detail-item span,
body.theme-dark .admin-note-item span,
body.theme-dark .leave-preview-banner p,
body.theme-dark .leave-history-copy p,
body.theme-dark .leave-upload-name,
body.theme-dark .admin-form-note,
body.theme-dark .timesheet-note-cell,
body.theme-dark .leave-admin-complete {
  color: #97abc2;
}

body.theme-dark .payslips-stat-card p,
body.theme-dark .payslip-highlight-card p {
  color: #97abc2;
}

body.theme-dark .activity-header h3 {
  color: #edf5ff;
}

body.theme-dark .activity-header p {
  color: #97abc2;
}

body.theme-dark .leave-tab-button {
  border-color: rgba(117, 146, 189, 0.18);
  background: linear-gradient(180deg, rgba(17, 30, 46, 0.96), rgba(12, 21, 33, 0.94));
  color: #dce8f9;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

body.theme-dark .leave-tab-button:hover {
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

body.theme-dark .leave-tab-button.is-active {
  border-color: rgba(93, 150, 255, 0.32);
  background: linear-gradient(180deg, #1f72de, #095fd0);
  color: #ffffff;
}

body.theme-dark .leave-preview-banner.is-info {
  background: rgba(17, 35, 59, 0.92);
  border-color: rgba(93, 150, 255, 0.22);
}

body.theme-dark .leave-preview-banner.is-success {
  background: rgba(14, 40, 31, 0.92);
  border-color: rgba(49, 199, 170, 0.22);
}

body.theme-dark .leave-preview-banner.is-warning {
  background: rgba(48, 33, 15, 0.92);
  border-color: rgba(255, 180, 94, 0.22);
}

body.theme-dark .shift-planner-shell {
  background: linear-gradient(180deg, rgba(14, 24, 38, 0.98), rgba(10, 18, 30, 0.98));
  border-color: rgba(114, 145, 190, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

body.theme-dark .shift-planner-toolbar {
  background: rgba(12, 21, 33, 0.92);
  border-bottom-color: rgba(114, 145, 190, 0.16);
}

body.theme-dark .shift-planner-toolbar-copy h2,
body.theme-dark .shift-planner-panel-heading h3,
body.theme-dark .shift-planner-board-heading h3,
body.theme-dark .shift-planner-detail-header h3,
body.theme-dark .shift-planner-grid-header strong,
body.theme-dark .shift-planner-summary-row,
body.theme-dark .shift-planner-summary-row strong {
  color: #edf5ff;
}

body.theme-dark .shift-planner-panel-heading p,
body.theme-dark .shift-planner-detail-header p,
body.theme-dark .shift-planner-filter span,
body.theme-dark .shift-planner-staff-copy span,
body.theme-dark .shift-planner-week-label,
body.theme-dark .shift-planner-grid-date,
body.theme-dark .shift-planner-day-empty {
  color: #97abc2;
}

body.theme-dark .roster-week-day-badge.is-holiday {
  background: rgba(150, 118, 255, 0.18);
  color: #dccfff;
}

body.theme-dark .shift-planner-staff-store {
  background: rgba(64, 105, 178, 0.24);
  color: #d7e6ff;
}

body.theme-dark .shift-planner-staff-store.is-borrowed {
  background: rgba(178, 129, 42, 0.28);
  color: #ffe9b4;
}

body.theme-dark .shift-planner-staff-toggle,
body.theme-dark .shift-planner-week-actions,
body.theme-dark .shift-planner-week-button,
body.theme-dark .shift-planner-icon-button {
  background: rgba(16, 28, 42, 0.9);
  border-color: rgba(114, 145, 190, 0.18);
  color: #dce8f9;
}

body.theme-dark .shift-planner-week-button:hover:not(:disabled),
body.theme-dark .shift-planner-icon-button:hover,
body.theme-dark .shift-planner-staff-toggle:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

body.theme-dark .shift-planner-board-panel {
  background: linear-gradient(180deg, rgba(17, 29, 45, 0.94), rgba(11, 20, 32, 0.96));
  border-color: rgba(114, 145, 190, 0.18);
}

body.theme-dark .shift-planner-board-heading {
  border-bottom-color: rgba(114, 145, 190, 0.16);
}

body.theme-dark .shift-planner-board-pill,
body.theme-dark .shift-planner-week-start input,
body.theme-dark .shift-planner-filter select {
  background: rgba(10, 18, 30, 0.92);
  border-color: rgba(114, 145, 190, 0.18);
  color: #dce8f9;
}

body.theme-dark .shift-planner-staff-item,
body.theme-dark .shift-planner-staff-summary {
  background: linear-gradient(180deg, rgba(16, 28, 42, 0.94), rgba(11, 20, 32, 0.96));
  border-color: rgba(114, 145, 190, 0.18);
  color: #dce8f9;
  box-shadow: none;
}

body.theme-dark .shift-planner-staff-item.is-assigned {
  background: linear-gradient(180deg, rgba(25, 46, 73, 0.98), rgba(16, 31, 50, 0.96));
  border-color: rgba(93, 150, 255, 0.26);
}

body.theme-dark .shift-planner-empty-staff {
  background: rgba(10, 18, 30, 0.7);
  border: 1px dashed rgba(114, 145, 190, 0.18);
  color: #97abc2;
}

body.theme-dark .shift-planner-week-grid {
  border-color: rgba(114, 145, 190, 0.16);
  background: linear-gradient(180deg, rgba(11, 20, 32, 0.98), rgba(9, 17, 28, 0.98));
}

body.theme-dark .shift-planner-grid-header {
  background: linear-gradient(180deg, rgba(19, 33, 51, 0.98), rgba(14, 25, 40, 0.98));
  border-right-color: rgba(114, 145, 190, 0.14);
  border-bottom-color: rgba(114, 145, 190, 0.14);
}

body.theme-dark .shift-planner-grid-holiday {
  background: rgba(126, 97, 219, 0.18);
  color: #dacdff;
}

body.theme-dark .shift-planner-day-column {
  border-right-color: rgba(114, 145, 190, 0.14);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(88, 112, 145, 0.18) 0,
      rgba(88, 112, 145, 0.18) 1px,
      transparent 1px,
      transparent 86px
    ),
    linear-gradient(180deg, rgba(12, 21, 33, 0.96), rgba(9, 17, 28, 0.98));
}

body.theme-dark .shift-planner-day-empty {
  background: rgba(16, 28, 42, 0.74);
  border-color: rgba(114, 145, 190, 0.18);
}

body.theme-dark .timesheet-duration-cell {
  color: #9ec0ff;
}

body.theme-dark .employee-role-pill {
  background: rgba(93, 150, 255, 0.18);
  color: #9cc2ff;
}

body.theme-dark .employee-store-pill {
  background: color-mix(in srgb, var(--store-color) 16%, rgba(17, 27, 43, 0.98));
  color: color-mix(in srgb, var(--store-color) 68%, #d9e7ff);
}

body.theme-dark .employee-store-pill.is-unassigned {
  background: rgba(130, 152, 185, 0.14);
  color: #9ab0cb;
}

body.theme-dark .employee-status-pill.is-live {
  background: rgba(49, 199, 170, 0.18);
  color: #7ce3cb;
}

body.theme-dark .employee-status-pill.is-idle {
  background: rgba(227, 93, 93, 0.18);
  color: #ff9a9a;
}

body.theme-dark .employee-status-pill.is-suspended {
  background: rgba(255, 186, 87, 0.18);
  color: #ffc979;
}

@media (max-width: 720px) {
  .settings-store-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-store-actions {
    justify-content: flex-start;
  }

  .settings-stores-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell {
    width: min(100vw, calc(100vw - 24px));
    padding-top: 18px;
  }

  body.auth-mode .content-grid {
    padding: 28px 16px 56px;
  }

  .brand-mark {
    width: min(420px, 90vw);
  }

  .auth-field input {
    min-height: 74px;
    padding-left: 76px;
    padding-right: 72px;
  }

  .field-icon {
    left: 20px;
    width: 32px;
    height: 32px;
  }

  .setup-drawer {
    padding: 20px;
  }

  .auth-dialog-card {
    padding: 22px;
  }

  .auth-dialog-actions > * {
    flex: 1 1 180px;
  }

  .invite-setup-summary,
  .invite-setup-password-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .topbar-user {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .topbar-user-main {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-user-panel {
    min-width: min(250px, 100%);
  }

  .topbar-user-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar-dashboard-shortcut {
    width: 100%;
    min-width: 0;
  }

  .clock-actions {
    width: 100%;
  }

  .clock-action-button {
    width: 100%;
  }

  .activity-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-toggle {
    width: 100%;
  }

  .page-action-button {
    width: 100%;
  }

  .admin-calendar-toolbar {
    justify-content: stretch;
  }

  .admin-calendar-toolbar-button,
  .admin-calendar-delete-button {
    width: 100%;
  }

  .admin-calendar-shift-item {
    flex-direction: column;
    align-items: stretch;
  }

  .shift-planner-toolbar {
    padding: 18px 16px;
  }

  .shift-planner-staff-toggle,
  .shift-planner-submit-button,
  .shift-planner-save-button {
    width: 100%;
  }

  .shift-planner-icon-button {
    width: 46px;
    height: 46px;
  }

  .shift-planner-layout {
    padding: 12px;
  }

  .shift-planner-board-panel,
  .shift-planner-staff-panel,
  .shift-planner-detail-panel {
    padding: 16px;
  }

  .shift-planner-week-grid {
    min-width: 760px;
  }

  .shift-planner-week-actions {
    padding: 10px;
  }
}

/* Final dark-mode surface overrides for shared dashboard tables and planner */
body.theme-dark .table-wrap {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.96), rgba(11, 20, 31, 0.98)) !important;
  border-color: rgba(114, 145, 190, 0.2) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
}

body.theme-dark .table-wrap table {
  background: transparent !important;
}

body.theme-dark .table-wrap thead th {
  background: rgba(21, 35, 54, 0.98) !important;
  color: #9fb5d2 !important;
}

body.theme-dark .table-wrap tbody tr {
  background: linear-gradient(180deg, rgba(15, 26, 40, 0.94), rgba(11, 20, 32, 0.96)) !important;
  border-bottom-color: rgba(117, 146, 189, 0.12) !important;
}

body.theme-dark .table-wrap tbody tr:nth-child(even) {
  background: linear-gradient(180deg, rgba(18, 31, 47, 0.96), rgba(13, 23, 36, 0.98)) !important;
}

body.theme-dark .table-wrap th,
body.theme-dark .table-wrap td {
  background: transparent !important;
  color: #dce8f9 !important;
  border-bottom-color: rgba(117, 146, 189, 0.12) !important;
}

body.theme-dark .table-wrap td.empty-row,
body.theme-dark .table-wrap .empty-row {
  background: transparent !important;
  color: #97abc2 !important;
}

body.theme-dark .table-wrap .accounting-staff-cell strong,
body.theme-dark #employees-page .table-wrap strong {
  color: #edf5ff !important;
}

body.theme-dark .accounting-group-card {
  border-color: rgba(114, 145, 190, 0.18);
  background: linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(11, 20, 32, 0.98));
}

body.theme-dark .accounting-staff-panel,
body.theme-dark .accounting-detail-panel {
  border-color: rgba(114, 145, 190, 0.18);
  background: linear-gradient(180deg, rgba(16, 27, 42, 0.96), rgba(11, 20, 32, 0.98));
}

body.theme-dark .accounting-staff-list-item {
  border-color: rgba(114, 145, 190, 0.16);
  background: rgba(17, 29, 46, 0.86);
}

body.theme-dark .accounting-staff-list-item:hover,
body.theme-dark .accounting-staff-list-item.is-active {
  border-color: rgba(98, 154, 240, 0.34);
  background: linear-gradient(180deg, rgba(23, 41, 64, 0.96), rgba(16, 31, 49, 0.98));
  box-shadow: 0 24px 34px -30px rgba(7, 17, 31, 0.88);
}

body.theme-dark .accounting-staff-list-copy strong,
body.theme-dark .accounting-detail-panel h3,
body.theme-dark .accounting-detail-panel strong,
body.theme-dark .accounting-staff-list-count {
  color: #edf5ff;
}

body.theme-dark .accounting-staff-list-copy span,
body.theme-dark .accounting-staff-list-copy small,
body.theme-dark .accounting-detail-panel p {
  color: #97abc2;
}

body.theme-dark .accounting-staff-list-count {
  background: rgba(49, 88, 145, 0.2);
}

body.theme-dark .accounting-period-summary {
  border-color: rgba(114, 145, 190, 0.18);
  background: rgba(20, 34, 52, 0.88);
}

body.theme-dark .accounting-period-toggle {
  border-color: rgba(92, 119, 162, 0.22);
  background: rgba(18, 29, 46, 0.92);
  color: #d6e7ff;
}

body.theme-dark .accounting-period-toggle:hover {
  border-color: rgba(97, 148, 231, 0.34);
  background: rgba(20, 34, 56, 0.98);
}

body.theme-dark .accounting-period-toggle-icon {
  background: rgba(76, 125, 207, 0.18);
  color: #d6e7ff;
}

body.theme-dark .accounting-period-copy strong {
  color: #edf5ff;
}

body.theme-dark .accounting-period-copy span {
  color: #97abc2;
}

body.theme-dark .accounting-group-metric {
  background: rgba(49, 88, 145, 0.18);
  color: #9bb2cf;
}

body.theme-dark .accounting-group-metric strong {
  color: #edf5ff;
}

body.theme-dark .accounting-empty-state {
  border-color: rgba(114, 145, 190, 0.2);
  background: rgba(14, 24, 38, 0.78);
  color: #9ab0cb;
}

body.theme-dark .accounting-pay-slip-mode,
body.theme-dark .accounting-upload-panel {
  border-color: rgba(114, 145, 190, 0.18);
  background: rgba(16, 27, 42, 0.86);
}

body.theme-dark .accounting-bulk-import-item {
  border-color: rgba(114, 145, 190, 0.16);
  background: rgba(11, 20, 32, 0.86);
}

body.theme-dark .accounting-bulk-import-item-header p,
body.theme-dark .accounting-bulk-import-reason {
  color: #97abc2;
}

body.theme-dark .accounting-bulk-import-period {
  color: #d3e4ff;
}

body.theme-dark .accounting-bulk-import-status-skipped,
body.theme-dark .accounting-bulk-import-status-queued {
  background: rgba(49, 88, 145, 0.24);
  color: #b9d2ff;
}

body.theme-dark .accounting-pay-slip-mode strong,
body.theme-dark .payslip-highlight-card strong,
body.theme-dark .payslip-detail-item strong {
  color: #edf5ff;
}

body.theme-dark .accounting-pay-slip-mode small,
body.theme-dark .payslip-highlight-card span,
body.theme-dark .payslip-detail-item span {
  color: #95abca;
}

body.theme-dark .payslip-detail-preview {
  border-color: rgba(114, 145, 190, 0.18);
  background: rgba(16, 27, 42, 0.86);
}

body.theme-dark .payslip-detail-preview-copy span {
  color: #95abca;
}

body.theme-dark .payslip-detail-preview-copy strong,
body.theme-dark .payslip-detail-preview-empty strong {
  color: #edf5ff;
}

body.theme-dark .payslip-detail-preview-frame,
body.theme-dark .payslip-detail-preview-image-wrap {
  border-color: rgba(114, 145, 190, 0.18);
  background: rgba(10, 18, 30, 0.96);
}

body.theme-dark .payslip-detail-preview-empty {
  border-color: rgba(114, 145, 190, 0.2);
  background: rgba(10, 18, 30, 0.72);
}

body.theme-dark .payslip-detail-preview-empty p {
  color: #97abc2;
}

body.theme-dark .payslip-detail-close {
  border-color: rgba(114, 145, 190, 0.18);
  background: linear-gradient(180deg, rgba(24, 38, 59, 0.96), rgba(14, 24, 38, 0.98));
  color: #d8e7fb;
}

body.theme-dark .payslip-detail-backdrop {
  background: rgba(4, 10, 18, 0.56);
}

body.theme-dark .table-wrap .accounting-staff-cell span,
body.theme-dark .table-wrap .table-action-label,
body.theme-dark .table-wrap .leave-history-copy p,
body.theme-dark .table-wrap .timesheet-note-cell {
  color: #97abc2 !important;
}

body.theme-dark .employee-status-pill.is-break {
  background: rgba(255, 180, 94, 0.18) !important;
  color: #ffca7a !important;
}

body.theme-dark .settings-store-row {
  border-color: rgba(114, 145, 190, 0.16);
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.92), rgba(12, 20, 32, 0.94));
}

body.theme-dark .settings-store-row label span {
  color: #91a8c8;
}

body.theme-dark .settings-store-chip {
  background: color-mix(in srgb, var(--store-color) 16%, rgba(10, 18, 30, 0.98));
  color: color-mix(in srgb, var(--store-color) 72%, #e6efff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--store-color) 18%, rgba(114, 145, 190, 0.2));
}

body.theme-dark .settings-stores-empty {
  border-color: rgba(114, 145, 190, 0.2);
  background: rgba(14, 24, 38, 0.74);
  color: #9ab0cb;
}

body.theme-dark .roster-store-select-wrap span {
  color: #8fa8ca;
}

body.theme-dark .roster-store-select-wrap select {
  background: rgba(13, 23, 37, 0.96);
  border-color: rgba(114, 145, 190, 0.18);
  color: #ecf3ff;
}

body.theme-dark #shift-planner-page .shift-planner-shell {
  background: linear-gradient(180deg, rgba(14, 24, 38, 0.98), rgba(10, 18, 30, 0.98)) !important;
  border-color: rgba(114, 145, 190, 0.18) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34) !important;
}

body.theme-dark #shift-planner-page .shift-planner-toolbar {
  background: rgba(12, 21, 33, 0.94) !important;
  border-bottom-color: rgba(114, 145, 190, 0.16) !important;
}

body.theme-dark #shift-planner-page .shift-planner-staff-panel,
body.theme-dark #shift-planner-page .shift-planner-board-panel,
body.theme-dark #shift-planner-page .shift-planner-detail-panel {
  background: linear-gradient(180deg, rgba(17, 29, 45, 0.96), rgba(11, 20, 32, 0.98)) !important;
  border-color: rgba(114, 145, 190, 0.18) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22) !important;
}

body.theme-dark #shift-planner-page .shift-planner-board-heading {
  border-bottom-color: rgba(114, 145, 190, 0.16) !important;
}

body.theme-dark #shift-planner-page .shift-planner-staff-toggle,
body.theme-dark #shift-planner-page .shift-planner-week-actions,
body.theme-dark #shift-planner-page .shift-planner-week-button,
body.theme-dark #shift-planner-page .shift-planner-icon-button,
body.theme-dark #shift-planner-page .shift-planner-toggle,
body.theme-dark #shift-planner-page .shift-planner-board-pill,
body.theme-dark #shift-planner-page .shift-planner-week-start input,
body.theme-dark #shift-planner-page .shift-planner-filter select {
  background: rgba(10, 18, 30, 0.92) !important;
  border-color: rgba(114, 145, 190, 0.18) !important;
  color: #dce8f9 !important;
}

body.theme-dark #shift-planner-page .shift-planner-staff-item,
body.theme-dark #shift-planner-page .shift-planner-staff-summary {
  background: linear-gradient(180deg, rgba(16, 28, 42, 0.96), rgba(11, 20, 32, 0.98)) !important;
  border-color: rgba(114, 145, 190, 0.18) !important;
  color: #dce8f9 !important;
  box-shadow: none !important;
}

body.theme-dark #shift-planner-page .shift-planner-empty-staff {
  background: rgba(10, 18, 30, 0.72) !important;
  border-color: rgba(114, 145, 190, 0.18) !important;
  color: #97abc2 !important;
}

body.theme-dark #shift-planner-page .shift-planner-week-grid {
  background: linear-gradient(180deg, rgba(11, 20, 32, 0.98), rgba(9, 17, 28, 0.98)) !important;
  border-color: rgba(114, 145, 190, 0.16) !important;
}

body.theme-dark #shift-planner-page .shift-planner-grid-header {
  background: linear-gradient(180deg, rgba(19, 33, 51, 0.98), rgba(14, 25, 40, 0.98)) !important;
  border-right-color: rgba(114, 145, 190, 0.14) !important;
  border-bottom-color: rgba(114, 145, 190, 0.14) !important;
}

body.theme-dark #shift-planner-page .shift-planner-grid-holiday {
  background: rgba(126, 97, 219, 0.18) !important;
  color: #dacdff !important;
}

body.theme-dark #shift-planner-page .shift-planner-day-column {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(88, 112, 145, 0.18) 0,
      rgba(88, 112, 145, 0.18) 1px,
      transparent 1px,
      transparent 86px
    ),
    linear-gradient(180deg, rgba(12, 21, 33, 0.96), rgba(9, 17, 28, 0.98)) !important;
  border-right-color: rgba(114, 145, 190, 0.14) !important;
}

body.theme-dark #shift-planner-page .shift-planner-day-empty {
  background: rgba(16, 28, 42, 0.74) !important;
  border-color: rgba(114, 145, 190, 0.18) !important;
  color: #97abc2 !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #edf5ff !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-sky,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-mint,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-violet,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-amber,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-teal,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-rose,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-indigo,
body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-lime {
  color: #ffffff !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-store-badge {
  background: rgba(239, 246, 255, 0.1) !important;
  color: #d7e6ff !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-sky {
  background: linear-gradient(180deg, #3d7fd4, #1c5fad) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-mint {
  background: linear-gradient(180deg, #2f9d72, #1c7654) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-violet {
  background: linear-gradient(180deg, #8564cf, #6341aa) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-amber {
  background: linear-gradient(180deg, #d79535, #a96a13) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-teal {
  background: linear-gradient(180deg, #2290a7, #166575) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-rose {
  background: linear-gradient(180deg, #c45785, #963a62) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-indigo {
  background: linear-gradient(180deg, #5168c5, #364b98) !important;
}

body.theme-dark #shift-planner-page .shift-planner-card-mini-avatar.is-lime {
  background: linear-gradient(180deg, #6fad35, #558620) !important;
}

