:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --canvas: #f1f4ec;
  --surface: #ffffff;
  --surface-soft: #fbfcf8;
  --surface-strong: #eef4e8;
  --text: #202018;
  --muted: #656b5e;
  --subtle: #9aa190;
  --line: #dce4d4;
  --line-soft: #edf1e8;
  --primary: #5f9f3f;
  --primary-strong: #3f7f29;
  --primary-deep: #245b27;
  --accent: #e07020;
  --accent-2: #f0b030;
  --warning: #b87514;
  --danger: #b33d1f;
  --ok: #4d8d33;
  --nav: #1f2419;
  --nav-2: #2e351f;
  --shadow: 0 24px 70px rgba(42, 49, 31, 0.12);
  --shadow-soft: 0 12px 34px rgba(42, 49, 31, 0.08);
  --shadow-line: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 248, 244, 0.96)),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, input, select { font: inherit; }

button {
  border: 0;
  background: var(--primary);
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button:hover {
  background: var(--primary-strong);
  box-shadow: 0 10px 22px rgba(95, 159, 63, 0.2);
}

button:active { transform: translateY(1px); }

button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

button.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

button.mini {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  background: #f2f8ec;
  color: var(--primary-strong);
  border: 1px solid #d6e8c8;
}

.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(31, 36, 25, 0.98) 0%, rgba(45, 79, 32, 0.96) 44%, rgba(95, 159, 63, 0.9) 100%),
    var(--nav);
}

.login-product {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 34px 96px rgba(2, 8, 23, 0.32);
  backdrop-filter: blur(18px);
}

.login-story {
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 36px 42px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(160deg, rgba(240, 176, 48, 0.2), transparent 44%),
    linear-gradient(22deg, rgba(224, 112, 32, 0.15), transparent 52%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

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

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 92px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
}

.brand-logo-wrap.on-dark {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(2, 8, 23, 0.22);
}

.brand-logo-wrap.compact {
  width: 58px;
  height: 40px;
  padding: 7px;
  box-shadow: none;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.login-brand span {
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  color: #fbf8da;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-story h1 {
  max-width: 640px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.98;
  color: #fff;
}

.login-story p {
  max-width: 570px;
  color: rgba(226, 232, 240, 0.84);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.login-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff8df;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.login-preview {
  width: min(520px, 100%);
  padding: 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-top,
.preview-row {
  display: grid;
  align-items: center;
}

.preview-top {
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  min-height: 34px;
  color: #f8fafc;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

.preview-top strong {
  font-size: 13px;
}

.preview-top em {
  color: #ffe3a0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.preview-metrics div {
  min-height: 70px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-metrics span {
  display: block;
  color: rgba(226, 232, 240, 0.76);
  font-size: 11px;
  font-weight: 900;
}

.preview-metrics strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.preview-row {
  grid-template-columns: 34px 1fr 72px;
  gap: 10px;
  min-height: 36px;
}

.preview-row span,
.preview-row b,
.preview-row i {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.preview-row span {
  width: 28px;
  height: 28px;
}

.preview-row b {
  height: 9px;
}

.preview-row i {
  height: 20px;
  background: rgba(240, 176, 48, 0.28);
  border: 1px solid rgba(255, 227, 160, 0.22);
}

.login-panel {
  width: 100%;
  display: grid;
  align-content: center;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.56);
  padding: 48px;
}

.login-panel-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.panel-logo {
  width: 118px;
  height: 54px;
  object-position: left center;
}

.login-panel-brand strong,
.login-panel-brand span {
  display: block;
}

.login-panel-brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.login-panel-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.panel-kicker {
  width: max-content;
  color: var(--primary-strong);
  background: #f0f8e8;
  border: 1px solid #d8eac6;
  margin-bottom: 18px;
}

.login-panel h2 {
  margin-bottom: 10px;
  font-size: 36px;
  line-height: 1.04;
}

.login-panel p {
  max-width: 390px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.login-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.login-status-strip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 999px;
  color: #394032;
  background: #fbfcf8;
  border: 1px solid #e4ebd9;
  font-size: 12px;
  font-weight: 900;
}

.login-status-strip b {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(95, 159, 63, 0.14);
}

.login-panel .stack {
  gap: 15px;
}

.login-panel label {
  gap: 9px;
}

.login-panel input {
  min-height: 52px;
  border-color: #dce4d4;
  background: #fffefa;
  font-size: 15px;
}

.login-panel button {
  min-height: 52px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.login-panel button:hover {
  background: linear-gradient(135deg, var(--primary-strong), #c65e17);
}

.kiosk-shortcut {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  background: #f4faee;
  border: 1px solid #d7e8c8;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.kiosk-screen {
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(240, 176, 48, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfcf8, #eef4e8);
}

.kiosk-public-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.compact-logo {
  width: 84px;
  height: 44px;
  object-position: left center;
}

.kiosk-public-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.08; }
h2 { font-size: 26px; line-height: 1.16; margin-bottom: 5px; }
h3 { font-size: 15px; line-height: 1.2; margin-bottom: 0; }
p { color: var(--muted); }

.stack { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 7px;
  color: #555d4b;
  font-size: 13px;
  font-weight: 800;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(42, 49, 31, 0.025);
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 159, 63, 0.16);
}

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 239, 0.96)),
    var(--canvas);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 0% 0%, rgba(240, 176, 48, 0.16), transparent 34%),
    var(--nav);
  color: #fff;
  padding: 24px 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.side-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 6px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-brand strong, .kiosk-public-head strong {
  display: block;
  line-height: 1.2;
}

.side-brand span {
  display: block;
  color: #b8c3a7;
  font-size: 12px;
  font-weight: 700;
}

nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: start;
  text-align: left;
  background: transparent;
  color: #d5ddcb;
  border: 1px solid transparent;
  box-shadow: none;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 850;
}

.nav:hover, .nav.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.nav.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(95, 159, 63, 0.9), rgba(224, 112, 32, 0.72));
  border-color: rgba(255, 255, 255, 0.18);
}

.nav span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #fff7d4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 950;
}

.nav.active span {
  color: #273016;
  background: rgba(255, 255, 255, 0.86);
}

.side-footer {
  display: grid;
  gap: 10px;
}

.side-footer a, .top-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.side-footer a {
  color: #fff7db;
  background: rgba(240, 176, 48, 0.16);
  border: 1px solid rgba(240, 176, 48, 0.24);
}

.content {
  min-width: 0;
  padding: 30px 34px 38px;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar p {
  margin-bottom: 0;
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-link {
  padding: 0 13px;
  color: var(--accent);
  background: #fff6df;
  border: 1px solid #f2dfaa;
}

.today {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: #394032;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.tab { display: none; }
.tab.active { display: block; }

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

.metric, .panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-line);
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 18px;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin-top: 16px;
  letter-spacing: 0;
}

.metric em {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.panel {
  padding: 18px;
}

.panel-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.activity-list { display: grid; gap: 10px; }

.activity {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.activity span { color: var(--muted); font-size: 13px; }
.activity strong { font-size: 14px; }

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(240, 176, 48, 0.26), transparent 30%),
    linear-gradient(135deg, #1f2419 0%, #29451f 58%, #5f9f3f 100%);
  box-shadow: var(--shadow);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 760px;
}

.eyebrow.soft {
  width: max-content;
  color: #fff5c8;
  background: rgba(255, 255, 255, 0.11);
}

.dashboard-hero h1 {
  max-width: 680px;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  font-weight: 950;
}

.dashboard-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(241, 245, 235, 0.82);
  font-size: 16px;
  line-height: 1.62;
}

.hero-board {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 184px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-board span {
  display: block;
  color: rgba(244, 248, 236, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-board strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.ring {
  --ring-progress: 0deg;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #27351d 0 57%, transparent 58%),
    conic-gradient(var(--accent-2) var(--ring-progress), rgba(255, 255, 255, 0.14) 0);
}

.ring span {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  text-transform: none;
}

.metric.primary::before { background: linear-gradient(90deg, #3f7f29, #5f9f3f); }
.metric.success::before { background: linear-gradient(90deg, #5f9f3f, #f0b030); }
.metric.warning::before { background: linear-gradient(90deg, #f0b030, #e07020); }
.metric.dark::before { background: linear-gradient(90deg, #202018, #5f9f3f); }

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 16px;
}

.status-bars {
  display: grid;
  gap: 16px;
}

.status-bars div {
  display: grid;
  gap: 9px;
}

.status-bars span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
}

.status-bars em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.status-bars i {
  overflow: hidden;
  height: 10px;
  display: block;
  border-radius: 999px;
  background: #edf1e8;
}

.status-bars strong {
  min-width: 3%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  transition: width 0.24s ease;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

button.neutral,
.mini-link {
  background: #fbfcf8;
  color: #394032;
  border: 1px solid #e4ebd9;
}

.mini-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

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

.department-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.department-row strong,
.department-row span,
.department-row em {
  display: block;
}

.department-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.department-row em {
  color: var(--primary-strong);
  font-style: normal;
  font-weight: 950;
}

.department-row i {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  display: block;
  border-radius: 999px;
  background: #edf1e8;
}

.department-row b {
  min-width: 8%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
}

.dashboard-table table {
  min-width: 680px;
}

.insight-panel {
  display: grid;
  align-content: start;
}

.payroll-glance {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(95, 159, 63, 0.12), rgba(240, 176, 48, 0.18)),
    #fbfcf8;
  border: 1px solid #e1ead5;
}

.payroll-glance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-glance strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.empty-state {
  padding: 16px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 800;
}

/* HR SaaS dashboard theme */
.shell {
  grid-template-columns: 208px minmax(0, 1fr);
  background: #f4f6fb;
}

.sidebar {
  background: #f7faff;
  color: #283142;
  padding: 14px 10px;
  gap: 18px;
  border-right: 1px solid #dfe5ef;
  box-shadow: 8px 0 24px rgba(22, 34, 51, 0.04);
}

.side-brand {
  min-height: 54px;
  padding: 4px 8px 12px;
  border-bottom: 1px solid #e4e9f2;
}

.side-brand .brand-logo-wrap {
  width: 50px;
  height: 34px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e1e7ef;
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.06);
}

.side-brand strong {
  color: #1f2937;
  font-size: 14px;
}

.side-brand span {
  color: #6b7280;
  font-size: 11px;
}

nav {
  gap: 4px;
}

.nav {
  min-height: 36px;
  gap: 9px;
  padding: 0 9px;
  border-radius: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 760;
}

.nav:hover,
.nav.active {
  background: #e8edff;
  color: #3658d8;
  border-color: #dfe6ff;
}

.nav.active {
  background: #dfe6ff;
  box-shadow: none;
}

.nav span {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  color: #5b6472;
  background: transparent;
  border: 1px solid #d9e0ea;
  font-size: 10px;
}

.nav.active span {
  color: #fff;
  background: #4f6eea;
  border-color: #4f6eea;
}

.side-footer a {
  color: #3f7f29;
  background: #edf7e8;
  border-color: #d7ebcb;
}

.side-footer .ghost {
  color: #374151;
  background: #fff;
  border: 1px solid #dfe5ef;
}

.content {
  padding: 0;
  background: #f4f6fb;
}

.system-strip {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 22px;
  color: #fff;
  background: #747982;
  font-size: 13px;
  font-weight: 750;
}

.system-strip button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.topbar {
  min-height: 76px;
  margin: 0;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #e6eaf1;
}

.topbar h2 {
  font-size: 22px;
  font-weight: 850;
}

.topbar p {
  color: #6b7280;
  font-size: 13px;
}

.top-link,
.today {
  min-height: 36px;
  border-radius: 6px;
  box-shadow: none;
}

.tab.active {
  display: block;
  padding: 0 22px 28px;
}

.payroll-alert {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -22px 16px;
  padding: 10px 22px;
  color: #80621d;
  background: #fff1bf;
  border-bottom: 1px solid #f2dda1;
  font-size: 13px;
}

.payroll-alert span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #b98200;
  border: 1px solid #e5bf58;
  font-weight: 900;
}

.payroll-alert p {
  margin: 0;
  color: inherit;
}

.link-button {
  min-height: 30px;
  padding: 0 8px;
  color: #3658d8;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.welcome-card {
  min-height: 184px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 34, 51, 0.06);
}

.welcome-copy {
  display: grid;
  align-content: center;
}

.welcome-card h1 {
  margin: 0 0 6px;
  color: #20242c;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 820;
}

.welcome-date {
  margin: 0 0 26px;
  color: #7a8290;
  font-size: 13px;
}

.shortcut-label {
  margin-bottom: 10px;
  color: #333947;
  font-size: 11px;
  font-weight: 850;
}

.shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shortcut-row button,
.shortcut-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #20242c;
  background: #fff;
  border: 1px solid #dfe4ec;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 3px 10px rgba(22, 34, 51, 0.04);
}

.shortcut-row button:hover,
.shortcut-row a:hover {
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(22, 34, 51, 0.08);
}

.welcome-visual {
  position: relative;
  min-height: 154px;
}

.welcome-visual img {
  position: absolute;
  right: -12px;
  bottom: -28px;
  width: min(390px, 100%);
  height: 230px;
  object-fit: contain;
  object-position: right bottom;
}

.compact-metrics {
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.panel {
  border-color: #e0e5ed;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(22, 34, 51, 0.05);
}

.metric {
  min-height: 96px;
  padding: 16px 18px;
}

.metric::before {
  height: 3px;
}

.metric span {
  color: #6b7280;
  font-size: 11px;
}

.metric strong {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 880;
}

.metric em {
  margin-top: 8px;
  color: #7a8290;
}

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

.analytics-card {
  min-height: 260px;
  padding: 18px 20px;
}

.analytics-card .panel-head {
  margin-bottom: 18px;
}

.analytics-card h3 {
  font-size: 15px;
  font-weight: 820;
}

.menu-dot {
  width: 28px;
  min-height: 28px;
  padding: 0;
  color: #6b7280;
  background: transparent;
  font-size: 20px;
  box-shadow: none;
}

.status-bars {
  gap: 18px;
}

.status-bars span {
  font-size: 12px;
}

.status-bars i {
  height: 8px;
  background: #edf0f4;
}

.status-bars strong {
  background: linear-gradient(90deg, #09a8d8, #ff8500 58%, #5f49d8);
}

.department-row {
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0f4;
}

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

.department-row i {
  height: 7px;
  background: #edf0f4;
}

.department-row b {
  background: linear-gradient(90deg, #09a8d8, #ff8500);
}

.donut-wrap {
  min-height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.donut-wrap .ring {
  width: 118px;
  height: 118px;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    conic-gradient(#0ea5d8 var(--ring-progress), #e8edf5 0);
}

.donut-wrap .ring span {
  color: #20242c;
  font-size: 22px;
}

.donut-wrap > strong {
  margin-top: 12px;
  color: #20242c;
  font-size: 20px;
}

.donut-wrap > span {
  color: #7a8290;
  font-size: 12px;
  font-weight: 760;
}

.payroll-glance {
  min-height: 170px;
  display: grid;
  place-content: center;
  margin: 0;
  text-align: center;
  background: linear-gradient(180deg, #f7fff4, #fff);
  border-color: #dfead9;
}

.payroll-glance strong {
  font-size: 26px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 16px;
}

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

.grid-form button, .grid-form .form-error { grid-column: span 2; }

.grid-form button.ghost {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.grid-form button.ghost:hover {
  background: #e7eedf;
  box-shadow: none;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  background: #fff;
}

th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

tbody tr:hover { background: #fbfcf8; }
tbody tr:last-child td { border-bottom: 0; }

th {
  color: #656b5e;
  font-size: 11px;
  text-transform: uppercase;
  background: #fbfcf8;
  position: sticky;
  top: 0;
  z-index: 1;
}

small { color: var(--muted); }

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #edf8e8;
  color: var(--ok);
  border: 1px solid #d3e9c8;
}

.status-pill.off {
  background: #fff2eb;
  color: var(--danger);
  border-color: #f5cdbd;
}

.kiosk {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 18px;
  align-items: stretch;
}

.kiosk-screen .kiosk {
  min-height: calc(100vh - 112px);
}

.kiosk-clock {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(240, 176, 48, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(63, 127, 41, 0.9), rgba(31, 36, 25, 0.97)),
    var(--nav);
  color: white;
  border-radius: 8px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 28px;
  box-shadow: var(--shadow);
}

.kiosk-clock::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.kiosk-clock span {
  font-size: clamp(54px, 9vw, 112px);
  line-height: 1;
  font-weight: 900;
}

.kiosk-clock strong {
  margin-top: 16px;
  color: #eef4e3;
}

.kiosk-form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.kiosk-form input, .kiosk-form button {
  min-height: 58px;
  font-size: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-strong);
}

.segmented label {
  min-height: 54px;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.segmented label:has(input:checked) {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 2px rgba(95, 159, 63, 0.2);
}

.segmented input {
  width: auto;
  min-height: auto;
  margin-right: 8px;
}

.kiosk-result {
  min-height: 52px;
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  font-weight: 900;
}

.kiosk-result.ok {
  color: var(--ok);
  background: #f0faeb;
  border-color: #d3e9c8;
}

.kiosk-result.err {
  color: var(--danger);
  background: #fff4ef;
  border-color: #f5cdbd;
}

.payroll-total {
  background: linear-gradient(135deg, #f2f8ec, #fff6df);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 8px;
  font-weight: 900;
  margin-bottom: 12px;
  border: 1px solid #e2ebd5;
}

@media (max-width: 1060px) {
  .login-product {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-story {
    gap: 22px;
  }

  .login-panel {
    border-left: 0;
    border-top: 1px solid rgba(42, 49, 31, 0.07);
  }

  .dashboard-hero,
  .ops-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-board {
    justify-items: start;
    grid-template-columns: 1fr auto;
  }

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

@media (min-width: 561px) {
  .login-screen {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 12px;
    gap: 12px;
  }

  .side-footer { display: none; }

  nav {
    grid-auto-flow: column;
    overflow: auto;
    padding-bottom: 2px;
  }

  .nav {
    white-space: nowrap;
    min-width: max-content;
    min-height: 42px;
    gap: 9px;
    padding: 0 11px;
  }

  .nav span {
    width: 25px;
    height: 25px;
  }

  .content { padding: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-content: flex-start; }

  .dashboard-hero {
    min-height: 0;
    padding: 20px;
  }

  .dashboard-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .login-screen {
    padding: 12px;
    place-items: start center;
  }

  .login-product {
    border-radius: 16px;
    min-height: auto;
  }

  .login-story {
    display: none;
  }

  .login-panel {
    order: 1;
  }

  .login-story h1 {
    font-size: 34px;
    line-height: 1.02;
    margin: 16px 0 12px;
  }

  .login-story p {
    font-size: 14px;
    line-height: 1.55;
  }

  .login-proof {
    display: none;
  }

  .login-preview {
    padding: 12px;
  }

  .preview-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .preview-metrics div {
    min-height: 64px;
    padding: 10px;
  }

  .preview-metrics strong {
    margin-top: 8px;
    font-size: 23px;
  }

  .preview-row {
    min-height: 34px;
    grid-template-columns: 28px 1fr 56px;
    gap: 8px;
  }

  .preview-row span {
    width: 22px;
    height: 22px;
  }

  .login-panel {
    padding: 24px;
  }

  .login-panel h2 {
    font-size: 29px;
  }

  .login-panel p {
    margin-bottom: 16px;
  }

  .metric-grid { grid-template-columns: 1fr; }
  .hero-board {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .dashboard-hero h1 {
    font-size: 28px;
    line-height: 1.04;
  }
  .dashboard-hero p {
    font-size: 14px;
    line-height: 1.55;
  }
  .quick-actions {
    display: grid;
  }
  .topbar h2 {
    font-size: 34px;
  }
  .metric {
    min-height: 118px;
  }
  .metric strong {
    font-size: 36px;
  }
  .grid-form { grid-template-columns: 1fr; }
  .grid-form button, .grid-form .form-error { grid-column: auto; }
  .kiosk-screen { padding: 12px; }
  .kiosk-form { padding: 16px; }
}

@media (max-width: 1180px) {
  .welcome-card {
    grid-template-columns: 1fr 280px;
  }

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

@media (max-width: 860px) {
  .content {
    padding: 0;
  }

  .tab.active {
    padding: 0 14px 22px;
  }

  .payroll-alert {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .welcome-card,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card {
    padding: 18px;
  }

  .welcome-visual {
    display: none;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .topbar h2 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .system-strip {
    align-items: flex-start;
    padding: 10px 12px;
    font-size: 12px;
  }

  .topbar {
    padding: 16px 14px;
  }

  .welcome-card h1 {
    font-size: 22px;
  }

  .shortcut-row {
    display: grid;
  }

  .shortcut-row button,
  .shortcut-row a {
    justify-content: center;
  }

  .metric {
    min-height: 92px;
  }

  .metric strong {
    font-size: 32px;
  }
}
