/* AKT Workforce Portal — static EngageCore-ready interface */
:root {
  --wf-sidebar: 292px;
  --wf-topbar: 72px;
  --wf-gap: clamp(14px, 1.4vw, 22px);
  --wf-green: #2f6b54;
  --wf-green-soft: #dcebe3;
  --wf-amber: #a35e38;
  --wf-blue: #35657a;
  --wf-red: #aa4037;
  --wf-radius: 4px;
  --wf-card-shadow: 0 16px 46px rgba(41, 32, 22, 0.07);
}

html[data-theme="dark"] {
  --wf-green: #75b99a;
  --wf-green-soft: #18362a;
  --wf-blue: #75acc3;
  --wf-red: #e38277;
  --wf-card-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

html:not([data-theme="dark"]) .wf-body {
  --copper: #9b552f;
  --copper-dark: #6f3b24;
}

.wf-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
  overflow-x: clip;
}

.wf-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.wf-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1200;
  width: var(--wf-sidebar);
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-inline-end: 1px solid var(--line);
  box-shadow: 24px 0 70px rgba(26, 22, 17, 0.04);
  backdrop-filter: blur(22px) saturate(125%);
  transition: transform 0.35s var(--ease-out);
}

[dir="ltr"] .wf-sidebar {
  inset: 0 auto 0 0;
  border-inline-end: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(26, 22, 17, 0.04);
}

.wf-brand-row {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.wf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-brand .brand-symbol {
  width: 34px;
  height: 34px;
}

.wf-brand .brand-symbol i { border-color: var(--ink); }

.wf-brand > span:last-child {
  display: grid;
  line-height: 1.25;
}

.wf-brand strong { font-size: 0.9rem; }

.wf-brand small {
  color: var(--ink-soft);
  font-family: var(--font-en);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wf-sidebar-close {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.wf-sidebar-close svg { width: 18px; height: 18px; }
.wf-sidebar.is-open { z-index: 1600; }

.wf-demo-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-block: 22px 14px;
  padding-inline: 12px;
  color: var(--copper-dark);
  background: color-mix(in srgb, var(--copper) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--copper) 26%, transparent);
  font-size: 0.69rem;
  font-weight: 650;
}

html[data-theme="dark"] .wf-demo-chip { color: #e2aa85; }

.wf-demo-chip i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper) 15%, transparent);
}

.wf-role-control {
  display: grid;
  gap: 6px;
  margin-block-end: 13px;
}

.wf-role-control > span {
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 650;
}

.wf-role-control select,
.wf-language-control select {
  appearance: none;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(14px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(9px) 50% / 5px 5px no-repeat,
    var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.76rem;
  font-weight: 650;
}

[dir="ltr"] .wf-role-control select,
[dir="ltr"] .wf-language-control select {
  background-position: calc(100% - 9px) 50%, calc(100% - 14px) 50%, 0 0;
}

.wf-role-control small {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.wf-nav {
  display: grid;
  gap: 3px;
  min-height: 0;
  padding-block: 3px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.wf-nav button {
  position: relative;
  min-height: 43px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 6px 10px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-inline-start: 2px solid transparent;
  text-align: start;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wf-nav button:hover { color: var(--ink); background: var(--paper-deep); }
.wf-nav button[aria-current="page"] { color: var(--ink); background: var(--paper-deep); border-inline-start-color: var(--copper); }
.wf-nav button:disabled { display: none; }
.wf-nav svg { width: 19px; height: 19px; }
.wf-nav span { font-size: 0.78rem; font-weight: 650; }

.wf-nav b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 50%;
  color: var(--white);
  background: var(--copper);
  font-family: var(--font-en);
  font-size: 0.59rem;
}

.wf-user-card {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 10px;
  margin-block-start: auto;
  padding-block-start: 15px;
  border-block-start: 1px solid var(--line);
}

.wf-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 750;
}

.wf-user-card > span:nth-child(2) { display: grid; min-width: 0; }
.wf-user-card strong { overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.wf-user-card small { overflow: hidden; color: var(--ink-soft); font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }

.wf-user-card button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.wf-user-card svg { width: 16px; height: 16px; transform: rotate(180deg); }
[dir="ltr"] .wf-user-card svg { transform: none; }

.wf-app {
  min-height: 100vh;
  margin-inline-start: var(--wf-sidebar);
}

[dir="ltr"] .wf-app { margin-inline-start: var(--wf-sidebar); }

.wf-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 900;
  min-height: var(--wf-topbar);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-inline: clamp(16px, 2.6vw, 42px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-block-end: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(130%);
}

.wf-page-ident { display: grid; line-height: 1.3; }
.wf-page-ident span { color: var(--ink-soft); font-family: var(--font-en); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wf-page-ident strong { font-size: 0.91rem; }

.wf-menu-button { display: none !important; }

.wf-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wf-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.wf-icon-button:hover { color: var(--copper); border-color: var(--copper); }
.wf-icon-button svg { width: 19px; height: 19px; }

.wf-language-control select {
  width: 62px;
  min-height: 44px;
  padding-inline: 12px 24px;
  background-color: color-mix(in srgb, var(--surface) 90%, transparent);
  font-family: var(--font-en);
  font-size: 0.7rem;
}

.wf-notification-button { position: relative; }
.wf-notification-button > span {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--wf-red);
  font-family: var(--font-en);
  font-size: 0.56rem;
  font-weight: 700;
}

.wf-demo-banner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(16px, 2.6vw, 42px);
  color: color-mix(in srgb, var(--ink) 84%, var(--copper));
  background: color-mix(in srgb, var(--copper) 8%, var(--surface));
  border-block-end: 1px solid color-mix(in srgb, var(--copper) 22%, transparent);
}

.wf-demo-banner svg { width: 21px; height: 21px; color: var(--copper); }
.wf-demo-banner p { display: grid; margin: 0; line-height: 1.45; }
.wf-demo-banner strong { font-size: 0.69rem; }
.wf-demo-banner span { color: var(--ink-soft); font-size: 0.65rem; }
.wf-demo-banner a { padding: 8px 0; color: var(--copper); border-block-end: 1px solid currentColor; font-size: 0.68rem; font-weight: 700; }

.wf-content {
  width: min(1240px, calc(100% - clamp(32px, 5.2vw, 84px)));
  margin-inline: auto;
  padding-block: clamp(24px, 3vw, 44px) 70px;
  outline: 0;
}

.wf-view { animation: wf-enter 0.42s var(--ease-out) both; }

.wf-view-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-block-end: 24px;
}

.wf-view-head > div:first-child { max-width: 720px; }
.wf-view-head .section-code { margin-block-end: 5px; }
.wf-view-head h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.8rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.035em; }
.wf-view-head h1:focus { outline: none; }
.wf-view-head p { max-width: 670px; margin: 9px 0 0; color: var(--ink-soft); font-size: 0.8rem; }

.wf-view-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }

.wf-button,
.wf-button-secondary,
.wf-button-quiet,
.wf-quick-action,
.wf-inline-button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding-inline: 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wf-button { color: var(--paper); background: var(--ink); }
.wf-button:hover { color: #fff; background: var(--copper); border-color: var(--copper); }
.wf-button-secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.wf-button-secondary:hover { color: var(--copper); border-color: var(--copper); }
.wf-button-quiet { min-height: 36px; padding-inline: 10px; background: transparent; border-color: var(--line); }
.wf-button:active, .wf-button-secondary:active, .wf-quick-action:active { transform: translateY(1px); }
.wf-button svg, .wf-button-secondary svg, .wf-button-quiet svg { width: 16px; height: 16px; }

.wf-card {
  position: relative;
  min-width: 0;
  padding: clamp(17px, 1.8vw, 25px);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--wf-radius);
  box-shadow: var(--wf-card-shadow);
}

.wf-card-head {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-block-end: 17px;
}

.wf-card-head > div { display: grid; }
.wf-card-head h2, .wf-card-head h3 { margin: 0; font-size: 0.94rem; font-weight: 700; }
.wf-card-head p, .wf-card-head span { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.65rem; }
.wf-card-head > a, .wf-card-head > button { min-height: 36px; display: inline-flex; align-items: center; padding-inline: 10px; color: var(--copper); background: transparent; border: 0; font-size: 0.67rem; font-weight: 700; }

.wf-grid { display: grid; gap: var(--wf-gap); }
.wf-grid-dashboard { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); }
.wf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wf-span-2 { grid-column: span 2; }
.wf-span-full { grid-column: 1 / -1; }

.wf-shift-card {
  min-height: 304px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  color: #f8f3e9;
  background:
    linear-gradient(115deg, rgba(20, 24, 21, 0.98), rgba(30, 63, 49, 0.92)),
    var(--charcoal);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 64px rgba(20, 30, 24, 0.2);
}

.wf-shift-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.14) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(255,255,255,.1) 50%, transparent 50.5%);
  background-size: 52px 52px;
  pointer-events: none;
}

.wf-shift-copy, .wf-shift-dial { position: relative; z-index: 1; }
.wf-shift-copy { display: flex; flex-direction: column; justify-content: space-between; }
.wf-shift-kicker { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.7); font-family: var(--font-en); font-size: .62rem; letter-spacing: .13em; }
.wf-shift-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #75c696; box-shadow: 0 0 0 5px rgba(117,198,150,.13); }
.wf-shift-card h2 { max-width: 560px; margin: 24px 0 9px; font-size: clamp(1.65rem, 3vw, 2.8rem); font-weight: 450; line-height: 1.1; }
.wf-shift-card p { max-width: 520px; margin: 0; color: rgba(255,255,255,.65); font-size: .76rem; }
.wf-shift-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-block-start: 26px; }
.wf-shift-meta span { display: grid; color: rgba(255,255,255,.58); font-size: .61rem; }
.wf-shift-meta strong { color: #fff; font-family: var(--font-en); font-size: .78rem; }

.wf-shift-dial { display: grid; place-items: center; align-self: center; }
.wf-dial {
  position: relative;
  width: 156px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#78c49b 0 72%, rgba(255,255,255,.11) 72% 100%);
}
.wf-dial::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #17231d; }
.wf-dial > span { position: relative; display: grid; text-align: center; line-height: 1.25; }
.wf-dial strong { font-family: var(--font-en); font-size: 1.65rem; font-weight: 500; }
.wf-dial small { color: rgba(255,255,255,.58); font-size: .6rem; }

.wf-punch-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-block-start: 18px;
  padding-inline: 17px;
  color: #111d17;
  background: #87d7aa;
  border: 0;
  font-size: .76rem;
  font-weight: 750;
  transition: background-color .2s ease, transform .2s ease;
}
.wf-punch-button:hover { background: #a2ebc0; }
.wf-punch-button svg { width: 18px; height: 18px; }
.wf-punch-button.is-out { color: #fff; background: #a04c3e; }

.wf-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wf-gap); }
.wf-metric { min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.wf-metric > span:first-child { color: var(--ink-soft); font-size: .64rem; }
.wf-metric strong { font-family: var(--font-en); font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 500; line-height: 1; }
.wf-metric small { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .61rem; }
.wf-metric small i { width: 7px; height: 7px; border-radius: 50%; background: var(--wf-green); }
.wf-metric.is-alert small i { background: var(--wf-red); }

.wf-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.wf-quick-action {
  min-height: 94px;
  flex-direction: column;
  align-items: start;
  padding: 13px;
  background: var(--paper-deep);
  border-color: var(--line);
  text-align: start;
}
.wf-quick-action:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.wf-quick-action svg { width: 20px; height: 20px; }
.wf-quick-action span { margin-block-start: auto; font-size: .67rem; }

.wf-timeline { position: relative; display: grid; gap: 0; }
.wf-timeline::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 6px; width: 1px; background: var(--line); }
.wf-timeline-item { position: relative; display: grid; grid-template-columns: 13px minmax(0,1fr) auto; gap: 11px; padding-block: 9px; }
.wf-timeline-item > i { z-index: 1; width: 13px; height: 13px; margin-block-start: 4px; border: 3px solid var(--surface); border-radius: 50%; background: var(--wf-green); box-shadow: 0 0 0 1px var(--wf-green); }
.wf-timeline-item.is-pending > i { background: var(--paper-deep); box-shadow: 0 0 0 1px var(--line-strong); }
.wf-timeline-item div { display: grid; }
.wf-timeline-item strong { font-size: .7rem; }
.wf-timeline-item span { color: var(--ink-soft); font-size: .61rem; }
.wf-timeline-item time { color: var(--ink-soft); font-family: var(--font-en); font-size: .64rem; }

.wf-status {
  width: max-content;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: 9px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .59rem;
  font-weight: 700;
}
.wf-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wf-status.is-success { color: var(--wf-green); background: color-mix(in srgb, var(--wf-green) 9%, var(--surface)); border-color: color-mix(in srgb, var(--wf-green) 25%, transparent); }
.wf-status.is-warning { color: var(--copper); background: color-mix(in srgb, var(--copper) 9%, var(--surface)); border-color: color-mix(in srgb, var(--copper) 25%, transparent); }
.wf-status.is-danger { color: var(--wf-red); background: color-mix(in srgb, var(--wf-red) 9%, var(--surface)); border-color: color-mix(in srgb, var(--wf-red) 25%, transparent); }

.wf-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.wf-list-item { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; background: var(--surface); }
.wf-list-item > div { min-width: 0; display: grid; }
.wf-list-item strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.wf-list-item p { margin: 3px 0 0; color: var(--ink-soft); font-size: .63rem; }
.wf-list-item small { color: var(--ink-soft); font-family: var(--font-en); font-size: .58rem; }
.wf-list-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }

.wf-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.wf-table { width: 100%; border-collapse: collapse; font-size: .7rem; }
.wf-table th { padding: 11px 13px; color: var(--ink-soft); background: var(--paper-deep); font-size: .61rem; font-weight: 700; text-align: start; white-space: nowrap; }
.wf-table td { padding: 13px; border-block-start: 1px solid var(--line); vertical-align: middle; }
.wf-table tr:hover td { background: color-mix(in srgb, var(--paper-deep) 52%, transparent); }
.wf-table time, .wf-table .wf-latin { font-family: var(--font-en); }

.wf-calendar-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-block-end: 0; }
.wf-calendar-head span { padding: 8px 4px; color: var(--ink-soft); background: var(--paper-deep); font-size: .58rem; text-align: center; }
.wf-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.wf-day { position: relative; min-height: 70px; display: grid; align-content: space-between; padding: 7px; background: var(--surface); border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
.wf-day > span { font-family: var(--font-en); font-size: .62rem; }
.wf-day > i { width: 7px; height: 7px; border-radius: 50%; background: var(--wf-green); }
.wf-day.is-off > i { background: var(--ink-soft); }
.wf-day.is-alert > i { background: var(--wf-red); }
.wf-day.is-today { background: color-mix(in srgb, var(--wf-green) 9%, var(--surface)); box-shadow: inset 0 0 0 2px var(--wf-green); }

.wf-segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper-deep); }
.wf-segmented button { min-height: 36px; padding-inline: 13px; border: 0; background: transparent; font-size: .65rem; font-weight: 700; }
.wf-segmented button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }

.wf-policy-note { display: grid; grid-template-columns: 22px 1fr; gap: 11px; padding: 13px; color: var(--ink-soft); background: color-mix(in srgb, var(--wf-blue) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--wf-blue) 23%, transparent); font-size: .64rem; }
.wf-policy-note svg { width: 19px; height: 19px; color: var(--wf-blue); }
.wf-policy-note p { margin: 0; }
.wf-policy-note strong { color: var(--ink); }

.wf-progress { height: 7px; overflow: hidden; background: var(--paper-deep); }
.wf-progress i { display: block; width: var(--progress, 50%); height: 100%; background: var(--wf-green); }

.wf-pay-hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  color: #f8f3e9;
  background: linear-gradient(120deg, #171a18, #313a34);
  border-color: rgba(255,255,255,.1);
}
.wf-pay-hero .section-code { color: rgba(255,255,255,.54); }
.wf-pay-hero h2 { margin: 10px 0 4px; font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 500; }
.wf-pay-hero p { max-width: 580px; margin: 0; color: rgba(255,255,255,.62); font-size: .7rem; }
.wf-pay-value { display: grid; min-width: 190px; text-align: end; }
.wf-pay-value span { color: rgba(255,255,255,.58); font-size: .61rem; }
.wf-pay-value strong { margin-block: 8px 12px; font-family: var(--font-en); font-size: 1.3rem; letter-spacing: .12em; }
.wf-pay-value button { color: #fff; border-color: rgba(255,255,255,.3); }
.wf-pay-lines { display: grid; gap: 8px; }
.wf-pay-line { display: flex; justify-content: space-between; gap: 18px; padding-block: 10px; border-block-end: 1px solid var(--line); font-size: .68rem; }
.wf-pay-line span:last-child { color: var(--ink-soft); font-family: var(--font-en); text-align: end; }

.wf-insurance-strip { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 18px; }
.wf-insurance-seal { width: 92px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--wf-green); border-radius: 50%; color: var(--wf-green); background: color-mix(in srgb, var(--wf-green) 7%, var(--surface)); }
.wf-insurance-seal svg { width: 35px; height: 35px; }
.wf-insurance-strip h2 { margin: 0; font-size: 1.05rem; }
.wf-insurance-strip p { margin: 5px 0 0; color: var(--ink-soft); font-size: .66rem; }

.wf-feature-card { min-height: 190px; display: flex; flex-direction: column; }
.wf-feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-block-end: 24px; color: var(--copper); background: color-mix(in srgb, var(--copper) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--copper) 25%, transparent); }
.wf-feature-icon svg { width: 21px; height: 21px; }
.wf-feature-card h3 { margin: 0 0 6px; font-size: .82rem; }
.wf-feature-card p { margin: 0; color: var(--ink-soft); font-size: .64rem; }
.wf-feature-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-block-start: auto; padding-block-start: 18px; }
.wf-feature-card footer span { color: var(--ink-soft); font-size: .6rem; }

.wf-approval-card { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.wf-approval-avatar { width: 46px; height: 46px; display: grid; place-items: center; color: var(--paper); background: var(--ink); font-size: .67rem; font-weight: 750; }
.wf-approval-card > div:nth-child(2) { min-width: 0; display: grid; }
.wf-approval-card strong { font-size: .72rem; }
.wf-approval-card p { margin: 2px 0 0; color: var(--ink-soft); font-size: .62rem; }
.wf-approval-card small { color: var(--ink-soft); font-family: var(--font-en); font-size: .57rem; }
.wf-approval-actions { display: flex; gap: 7px; }
.wf-approval-actions button { min-width: 70px; min-height: 38px; border: 1px solid var(--line); background: transparent; font-size: .63rem; font-weight: 700; }
.wf-approval-actions button:first-child:hover { color: #fff; background: var(--wf-green); border-color: var(--wf-green); }
.wf-approval-actions button:last-child:hover { color: #fff; background: var(--wf-red); border-color: var(--wf-red); }

.wf-announcement { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.wf-announcement:last-child { border-block-end: 0; }
.wf-announcement time { display: grid; place-items: center; align-content: center; min-height: 50px; color: var(--paper); background: var(--ink); font-family: var(--font-en); font-size: .58rem; line-height: 1.2; text-align: center; }
.wf-announcement strong { font-size: .72rem; }
.wf-announcement p { margin: 3px 0 0; color: var(--ink-soft); font-size: .63rem; }

.wf-course { display: grid; gap: 13px; padding: 15px; background: var(--surface); border: 1px solid var(--line); }
.wf-course header { display: flex; justify-content: space-between; gap: 12px; }
.wf-course h3 { margin: 0; font-size: .74rem; }
.wf-course p { margin: 4px 0 0; color: var(--ink-soft); font-size: .62rem; }
.wf-course small { color: var(--ink-soft); font-family: var(--font-en); font-size: .58rem; }

.wf-safety-hero {
  min-height: 260px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  color: #f7f2e9;
  background: linear-gradient(120deg, #18221d 0 58%, #a75e35 58% 100%);
}
.wf-safety-hero::after { content: ""; position: absolute; inset: 0; opacity: .15; background: repeating-linear-gradient(45deg, transparent 0 18px, #fff 18px 19px); pointer-events: none; }
.wf-safety-hero > * { position: relative; z-index: 1; }
.wf-safety-hero h2 { max-width: 650px; margin: 13px 0 8px; font-size: clamp(1.45rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; }
.wf-safety-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.64); font-size: .69rem; }
.wf-report-action { width: 164px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 10px; justify-self: center; color: #fff; background: rgba(17,17,17,.24); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; text-align: center; transition: background .2s ease; }
.wf-report-action:hover { background: rgba(17,17,17,.42); }
.wf-report-action svg { width: 28px; height: 28px; }
.wf-report-action span { max-width: 110px; font-size: .68rem; font-weight: 750; }

.wf-ppe-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.wf-ppe { display: grid; gap: 9px; min-height: 110px; padding: 13px; background: var(--paper-deep); border: 1px solid transparent; }
.wf-ppe.is-due { border-color: var(--copper); }
.wf-ppe strong { font-size: .68rem; }
.wf-ppe span { color: var(--ink-soft); font-size: .59rem; }

.wf-score { display: flex; align-items: end; gap: 12px; }
.wf-score strong { font-family: var(--font-en); font-size: 3rem; font-weight: 450; line-height: 1; }
.wf-score span { margin-block-end: 4px; color: var(--ink-soft); font-size: .65rem; }

.wf-bars { display: grid; gap: 13px; }
.wf-bar { display: grid; grid-template-columns: minmax(100px, .7fr) 1.5fr 40px; align-items: center; gap: 12px; font-size: .65rem; }
.wf-bar > div { height: 7px; background: var(--paper-deep); }
.wf-bar i { display: block; width: var(--value); height: 100%; background: var(--wf-green); }
.wf-bar b { font-family: var(--font-en); font-size: .63rem; text-align: end; }

.wf-document { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); background: var(--surface); }
.wf-document > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; color: var(--copper); background: color-mix(in srgb, var(--copper) 10%, var(--surface)); }
.wf-document svg { width: 19px; height: 19px; }
.wf-document > div { min-width: 0; display: grid; }
.wf-document strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.wf-document small { color: var(--ink-soft); font-size: .59rem; }
.wf-document button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: transparent; }

.wf-form { display: grid; gap: 17px; }
.wf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.wf-field { display: grid; gap: 6px; }
.wf-field.is-full { grid-column: 1 / -1; }
.wf-field > span, .wf-field legend { color: var(--ink); font-size: .68rem; font-weight: 700; }
.wf-field small { color: var(--ink-soft); font-size: .58rem; }
.wf-field input:not([type="checkbox"]):not([type="radio"]), .wf-field select, .wf-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: .72rem;
}
.wf-field textarea { min-height: 110px; resize: vertical; }
.wf-field input:focus, .wf-field select:focus, .wf-field textarea:focus { border-color: var(--copper); outline: 2px solid color-mix(in srgb, var(--copper) 25%, transparent); outline-offset: 1px; }
.wf-fieldset { grid-column: 1 / -1; margin: 0; padding: 12px; border: 1px solid var(--line); }
.wf-fieldset legend { padding-inline: 6px; }
.wf-choice-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.wf-choice { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: .67rem; }
.wf-choice input { width: 18px; height: 18px; accent-color: var(--copper); }
.wf-form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; padding-block-start: 4px; }
.wf-form-disclaimer { display: flex; align-items: start; gap: 8px; margin: 0; color: var(--ink-soft); font-size: .59rem; }
.wf-form-disclaimer svg { width: 16px; height: 16px; flex: none; color: var(--copper); }

.wf-empty { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 32px; text-align: center; }
.wf-empty svg { width: 38px; height: 38px; color: var(--ink-soft); }
.wf-empty h2 { margin: 8px 0 0; font-size: 1rem; }
.wf-empty p { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: .67rem; }

.wf-notifications {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1600;
  width: min(430px, 92vw);
  padding: 22px;
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  box-shadow: -24px 0 80px rgba(20, 17, 13, .18);
  transform: translateX(105%);
  transition: transform .35s var(--ease-out);
}
[dir="ltr"] .wf-notifications { inset: 0 auto 0 0; transform: translateX(-105%); }
.wf-notifications.is-open { transform: none; }
.wf-notifications header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.wf-notifications h2 { margin: 5px 0 0; font-size: 1.35rem; }
.wf-mark-read { min-height: 44px; margin-block: 8px 10px; padding: 0; color: var(--copper); background: transparent; border: 0; font-size: .67rem; font-weight: 700; }
.wf-notification-item { position: relative; display: grid; grid-template-columns: 9px 1fr; gap: 12px; padding: 15px 5px; border-block-end: 1px solid var(--line); }
.wf-notification-item > i { width: 8px; height: 8px; margin-block-start: 7px; border-radius: 50%; background: var(--line-strong); }
.wf-notification-item.is-unread > i { background: var(--copper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper) 13%, transparent); }
.wf-notification-item strong { display: block; font-size: .7rem; }
.wf-notification-item p { margin: 3px 0; color: var(--ink-soft); font-size: .62rem; }
.wf-notification-item time { color: var(--ink-soft); font-family: var(--font-en); font-size: .57rem; }

.wf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  padding: 0;
  background: rgba(12, 10, 8, .5);
  border: 0;
  backdrop-filter: blur(4px);
}

.wf-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(820px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 30px 100px rgba(12,10,8,.3);
}
.wf-dialog::backdrop { background: rgba(12,10,8,.58); backdrop-filter: blur(5px); }
.wf-dialog > header { position: sticky; inset-block-start: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 22px; background: var(--surface); border-block-end: 1px solid var(--line); }
.wf-dialog h2 { margin: 6px 0 0; font-size: 1.25rem; }
.wf-dialog [data-dialog-body] { padding: 22px; }

.wf-toast {
  position: fixed;
  inset-inline: auto 24px;
  inset-block-end: 24px;
  z-index: 2200;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  color: #fff;
  background: #20241f;
  border-inline-start: 3px solid #79c49c;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  font-size: .68rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.wf-toast.is-visible { opacity: 1; transform: none; }

.wf-bottom-nav { display: none; }

@keyframes wf-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  :root { --wf-sidebar: 268px; }
  .wf-grid-dashboard { grid-template-columns: minmax(0,1fr); }
  .wf-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .wf-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1040px) {
  .wf-sidebar { width: min(320px, 88vw); transform: translateX(105%); }
  [dir="ltr"] .wf-sidebar { transform: translateX(-105%); }
  .wf-sidebar.is-open { transform: none; }
  .wf-sidebar-close { display: grid; }
  .wf-app, [dir="ltr"] .wf-app { margin-inline-start: 0; }
  .wf-menu-button { display: grid !important; }
  .wf-content { padding-block-end: 110px; }
  .wf-bottom-nav {
    position: fixed;
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
    z-index: 1000;
    min-height: 64px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    padding: 5px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(20,17,13,.18);
    backdrop-filter: blur(18px);
  }
  .wf-bottom-nav button { min-width: 0; min-height: 52px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 3px; color: var(--ink-soft); background: transparent; border: 0; }
  .wf-bottom-nav button[aria-current="page"] { color: var(--copper); background: color-mix(in srgb, var(--copper) 8%, transparent); }
  .wf-bottom-nav svg { width: 18px; height: 18px; }
  .wf-bottom-nav span { overflow: hidden; max-width: 100%; font-size: .55rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 760px) {
  .wf-demo-banner { grid-template-columns: 20px 1fr; }
  .wf-demo-banner a { display: none; }
  .wf-demo-banner span { display: none; }
  .wf-content { width: min(100% - 28px, 680px); }
  .wf-view-head { align-items: start; flex-direction: column; }
  .wf-view-actions { width: 100%; justify-content: start; }
  .wf-grid-2, .wf-grid-3 { grid-template-columns: 1fr; }
  .wf-span-2 { grid-column: auto; }
  .wf-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wf-shift-card { grid-template-columns: minmax(0,1fr) 130px; }
  .wf-dial { width: 122px; }
  .wf-quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wf-pay-hero { grid-template-columns: 1fr; }
  .wf-pay-value { text-align: start; }
  .wf-insurance-strip { grid-template-columns: 74px 1fr; }
  .wf-insurance-seal { width: 68px; }
  .wf-insurance-strip > :last-child { grid-column: 1 / -1; }
  .wf-safety-hero { grid-template-columns: 1fr 130px; }
  .wf-report-action { width: 118px; }
  .wf-ppe-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wf-form-grid { grid-template-columns: 1fr; }
  .wf-field.is-full, .wf-fieldset { grid-column: auto; }
}

@media (max-width: 540px) {
  .wf-topbar { min-height: 64px; padding-inline: 12px; }
  .wf-page-ident span { display: none; }
  .wf-page-ident strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wf-language-control select { width: 54px; padding-inline: 8px 20px; }
  .wf-top-actions { gap: 5px; }
  .wf-content { width: calc(100% - 24px); padding-block-start: 20px; }
  .wf-view-head { gap: 15px; margin-block-end: 18px; }
  .wf-view-head h1 { font-size: 1.55rem; }
  .wf-view-actions .wf-button, .wf-view-actions .wf-button-secondary { flex: 1; padding-inline: 11px; }
  .wf-card { padding: 15px; }
  .wf-shift-card { min-height: 385px; grid-template-columns: 1fr; }
  .wf-shift-dial { position: absolute; inset-block-start: 18px; inset-inline-end: 16px; opacity: .9; }
  .wf-dial { width: 92px; }
  .wf-dial strong { font-size: 1.12rem; }
  .wf-shift-card h2 { max-width: calc(100% - 90px); margin-block-start: 30px; font-size: 1.75rem; }
  .wf-shift-copy { min-height: 350px; }
  .wf-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wf-metric { min-height: 125px; }
  .wf-grid-4 { grid-template-columns: 1fr; }
  .wf-quick-grid { gap: 7px; }
  .wf-quick-action { min-height: 83px; }
  .wf-calendar-head span { font-size: .5rem; }
  .wf-day { min-height: 52px; padding: 5px; }
  .wf-table-wrap { overflow: visible; border: 0; }
  .wf-table, .wf-table tbody, .wf-table tr, .wf-table td { display: block; width: 100%; }
  .wf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wf-table tbody { display: grid; gap: 9px; }
  .wf-table tr { padding: 11px; background: var(--surface); border: 1px solid var(--line); }
  .wf-table td { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; padding: 7px 0; border: 0; }
  .wf-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: .58rem; }
  .wf-list-item { align-items: start; grid-template-columns: 1fr; }
  .wf-list-actions { justify-content: start; }
  .wf-approval-card { grid-template-columns: 42px 1fr; }
  .wf-approval-actions { grid-column: 1 / -1; }
  .wf-approval-actions button { flex: 1; }
  .wf-safety-hero { min-height: 340px; grid-template-columns: 1fr; align-content: space-between; }
  .wf-report-action { width: auto; min-height: 54px; aspect-ratio: auto; justify-self: stretch; display: flex; border-radius: 0; }
  .wf-ppe-grid { grid-template-columns: 1fr 1fr; }
  .wf-bars .wf-bar { grid-template-columns: 90px minmax(0,1fr) 32px; }
  .wf-document { grid-template-columns: 38px minmax(0,1fr) 40px; }
  .wf-dialog { width: calc(100vw - 16px); max-height: calc(100svh - 16px); }
  .wf-dialog > header, .wf-dialog [data-dialog-body] { padding: 16px; }
  .wf-toast { inset-inline: 12px; inset-block-end: 86px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-view { animation: none; }
  .wf-sidebar, .wf-notifications, .wf-toast, .wf-button, .wf-button-secondary, .wf-quick-action { transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  .wf-card, .wf-table-wrap, .wf-list, .wf-document, .wf-course, .wf-approval-card { border-color: currentColor; }
  .wf-status { border-color: currentColor; }
}
