:root {
  --bg: #edf3f1;
  --bg-deep: #d8e4e0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #f4f8f6;
  --ink: #132224;
  --muted: #607170;
  --line: #d6dfdc;
  --line-strong: #bccac5;
  --accent: #0f766e;
  --accent-strong: #0a4f4d;
  --accent-soft: #dbf2ee;
  --accent-glow: rgba(15, 118, 110, 0.14);
  --ember: #d38a3e;
  --success: #dff4e7;
  --error: #f8dde0;
  --nav: rgba(11, 24, 31, 0.88);
  --nav-ink: #edf7f5;
  --weekend: #ffe6ab;
  --shadow: 0 28px 70px rgba(20, 37, 37, 0.12);
  --shadow-soft: 0 16px 32px rgba(20, 37, 37, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(211, 138, 62, 0.2), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.17), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(73, 104, 175, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbfa 0%, var(--bg) 100%);
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.62), transparent 0, transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.28), transparent 0, transparent 22%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

input[type="date"],
input[type="month"] {
  color-scheme: light;
}

.login-body,
.app-body {
  min-height: 100vh;
}

.app-body.is-page-loading {
  overflow: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-card,
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 251, 0.82));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--ember) 100%);
}

.login-card {
  width: min(100%, 500px);
  padding: 30px 24px 22px;
}

.page-shell {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  padding: 16px 0 30px;
}

.page-shell--worker {
  padding-bottom: 102px;
}

.app-body--worker {
  background:
    radial-gradient(circle at 16% 0%, rgba(15, 118, 110, 0.14), transparent 22%),
    radial-gradient(circle at 84% 2%, rgba(211, 138, 62, 0.12), transparent 20%),
    linear-gradient(180deg, #f7fbfa 0%, var(--bg) 100%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2 + 12px));
  background: linear-gradient(180deg, rgba(249, 251, 249, 0.97), rgba(239, 245, 242, 0.95));
  color: #27403e;
  border: 0;
  border-bottom: 1px solid rgba(188, 202, 197, 0.88);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-nav--worker {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
}

.site-nav__brand {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-nav__eyebrow {
  color: rgba(81, 102, 100, 0.68);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav__brand a {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.site-nav__links,
.site-nav__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav__links {
  min-width: 0;
}

.site-nav--worker .site-nav__links {
  justify-content: center;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(188, 202, 197, 0.84);
  color: #47605e;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.site-nav__links a.is-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(211, 138, 62, 0.18));
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--accent-strong);
  box-shadow: none;
}

.site-nav__links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 118, 110, 0.16);
}

.site-nav__links a.is-active:hover {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(211, 138, 62, 0.2));
  border-color: rgba(15, 118, 110, 0.18);
}

.site-nav__meta {
  justify-content: flex-end;
}

.site-nav__user {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.site-nav__name {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.site-nav__logout {
  margin: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-size: 0.76rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 16px;
}

.page-header--worker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 332px);
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

.page-header--admin-report {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.page-header > div:first-child {
  max-width: 760px;
}

.page-header--worker > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.worker-header-panel {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 126px;
  padding: 18px 20px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(211, 138, 62, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(9, 23, 31, 0.98), rgba(16, 45, 53, 0.92));
  color: #eef8f6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(10, 22, 28, 0.18);
}

.worker-header-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -42px -30px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.worker-header-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.worker-header-kicker {
  color: rgba(237, 247, 245, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.worker-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.worker-header-subtitle {
  margin: 0;
  max-width: 52ch;
  color: rgba(237, 247, 245, 0.76);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-report-worker-pill {
  min-height: 28px;
}

.page-header h1,
.card h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.page-header h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.18;
}

.page-header--worker h1 {
  font-size: clamp(1.12rem, 1.45vw, 1.48rem);
  line-height: 1.08;
  white-space: nowrap;
}

.worker-header-panel h1 {
  color: var(--ink);
}

.page-header--worker .eyebrow {
  display: none;
}

.page-header--worker .muted {
  display: none;
}

.page-header--worker .status-pill {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(188, 202, 197, 0.82);
  color: #536766;
}

.page-header--worker .status-pill--edit {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.14);
  color: var(--accent-strong);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

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

.card {
  padding: 16px;
}

.card--dense {
  padding: 14px;
}

.card__title-row,
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sheet-head > div {
  display: grid;
  gap: 6px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--admin {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.stack-form,
.list-stack {
  display: grid;
  gap: 10px;
}

.field {
  position: relative;
  display: block;
  min-width: min(100%, 220px);
}

.stack-form .field {
  width: 100%;
}

.field span {
  position: absolute;
  top: 9px;
  left: 12px;
  z-index: 1;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 247, 0.84));
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 140ms ease, transform 140ms ease;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px 14px 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 246, 0.98));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.field input::placeholder {
  color: #9ba8a6;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 246, 0.98));
  background-position:
    calc(100% - 18px) calc(50% + 6px),
    calc(100% - 12px) calc(50% + 6px),
    center;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field input:focus,
.field select:focus,
.qty-cell input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 16px 34px rgba(15, 118, 110, 0.13);
  background-color: var(--surface-strong);
}

.field:focus-within span {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.field--compact {
  min-width: 160px;
}

.field--small {
  min-width: 136px;
}

.inline-form.inline-form--worker {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: min(100%, 332px);
  padding: 10px;
  gap: 6px;
  border-radius: 22px;
  justify-self: end;
  align-items: stretch;
  border-color: rgba(188, 202, 197, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 249, 0.96));
  box-shadow: var(--shadow);
}

.inline-form.inline-form--worker .field {
  min-width: 0;
  width: 100%;
}

.worker-date-field--editable input {
  border-color: rgba(15, 118, 110, 0.34);
  background:
    linear-gradient(180deg, rgba(223, 242, 238, 0.96), rgba(244, 250, 248, 0.98));
}

.worker-date-field--editable span {
  color: var(--accent-strong);
  background: rgba(223, 242, 238, 0.96);
}

.worker-date-field--locked input {
  border-color: rgba(211, 138, 62, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 239, 214, 0.98), rgba(255, 248, 236, 0.98));
}

.worker-date-field--locked span {
  color: #91561d;
  background: rgba(255, 239, 214, 0.98);
}

.inline-form.inline-form--worker .field input,
.inline-form.inline-form--worker .field select {
  min-height: 38px;
  padding-top: 13px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 30px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.inline-form.inline-form--worker .field span {
  top: 2px;
  left: 7px;
  font-size: 0.5rem;
  line-height: 1;
}

.inline-form.inline-form--worker input[type="date"]::-webkit-date-and-time-value,
.inline-form.inline-form--worker input[type="month"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

.inline-form.inline-form--worker input[type="date"]::-webkit-datetime-edit,
.inline-form.inline-form--worker input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.inline-form.inline-form--worker input[type="month"]::-webkit-datetime-edit,
.inline-form.inline-form--worker input[type="month"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.field-row,
.inline-form,
.inline-form--wide,
.inline-editor {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.inline-form,
.inline-form--wide {
  padding: 10px;
  border: 1px solid rgba(188, 202, 197, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.inline-form .field,
.inline-form--wide .field,
.inline-editor .field {
  flex: 1 1 180px;
}

.inline-editor .field--small {
  flex-basis: 140px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.login-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(188, 202, 197, 0.76);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(250, 252, 251, 0.94), rgba(242, 247, 245, 0.92));
  color: #49605e;
}

.login-remember__main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.login-remember__main input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.login-remember__main strong {
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.login-remember__hint {
  color: #6e8280;
  font-size: 0.72rem;
  text-align: right;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  box-shadow: var(--shadow-soft);
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
}

.button--secondary {
  background: linear-gradient(180deg, #f0f5f7 0%, #dfe8ec 100%);
  color: #1d3036;
  border-color: #cad7db;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border-color: rgba(188, 202, 197, 0.9);
  box-shadow: none;
}

.site-nav .button--ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-color: rgba(188, 202, 197, 0.9);
}

.button--block {
  width: 100%;
}

.alert,
.empty-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.alert--success {
  background: linear-gradient(180deg, rgba(223, 244, 231, 0.94), rgba(223, 244, 231, 0.76));
}

.alert--error {
  background: linear-gradient(180deg, rgba(248, 221, 224, 0.94), rgba(248, 221, 224, 0.76));
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.36), transparent 0, transparent 38%),
    rgba(11, 24, 31, 0.38);
  backdrop-filter: blur(8px);
}

.page-loading-overlay[hidden] {
  display: none !important;
}

.page-loading-overlay__panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 340px);
  padding: 24px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 248, 0.92));
  box-shadow: 0 28px 70px rgba(10, 22, 28, 0.22);
  text-align: center;
}

.page-loading-overlay__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(15, 118, 110, 0.14);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: page-loading-spin 0.8s linear infinite;
}

.page-loading-overlay__title {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.page-loading-overlay__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

@keyframes page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-box {
  background: rgba(255, 255, 255, 0.72);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(19, 34, 36, 0.08);
  color: #4e5f5e;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pill--edit {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.worker-card {
  padding-top: 8px;
}

.sheet-head--worker {
  margin-bottom: 6px;
}

.sheet-head--worker strong {
  font-size: 0.9rem;
}

.sheet-head--worker .muted {
  font-size: 0.78rem;
}

.worker-grid {
  display: grid;
  gap: 4px;
}

.worker-grid__head,
.worker-grid__row {
  display: grid;
  grid-template-columns: minmax(72px, 0.82fr) minmax(0, 1.92fr) 116px 156px;
  gap: 5px;
  align-items: center;
}

.worker-grid__head {
  padding: 0 6px;
  color: #48605d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.worker-grid__row {
  align-items: start;
  padding: 4px 7px;
  border: 1px solid var(--worker-border, rgba(188, 202, 197, 0.82));
  border-radius: 11px;
  background:
    linear-gradient(135deg, var(--worker-soft-strong, rgba(244, 248, 246, 0.92)) 0%, var(--worker-soft, rgba(255, 255, 255, 0.92)) 58%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.worker-grid__category,
.worker-grid__price {
  display: block;
  max-width: 100%;
  font-size: 0.78rem;
  color: #4b605e;
}

.worker-grid__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--worker-border, rgba(188, 202, 197, 0.82));
  color: var(--worker-accent, #325653);
  font-weight: 700;
}

.worker-grid__name {
  display: block;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.08;
}

.worker-grid__main {
  display: grid;
  gap: 0;
  min-width: 0;
}

.worker-grid__name-top {
  display: flex;
  align-items: center;
  min-width: 0;
}

.worker-grid__month-total {
  font-size: 0.6rem;
  line-height: 1.02;
  color: #5f7472;
  font-weight: 600;
}

.worker-grid__meta {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  padding-top: 1px;
}

.worker-favorite-button {
  flex: 0 0 auto;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(188, 202, 197, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #88a09d;
  font-size: 0.9rem;
  line-height: 1;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.worker-favorite-button:hover {
  border-color: var(--worker-border, rgba(15, 118, 110, 0.24));
  color: var(--worker-accent, var(--accent-strong));
  transform: translateY(-1px);
}

.worker-favorite-button.is-active {
  border-color: var(--worker-border, rgba(15, 118, 110, 0.24));
  background: rgba(255, 255, 255, 0.96);
  color: var(--worker-accent, var(--accent-strong));
}

.worker-favorite-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.worker-grid__category,
.worker-grid__name,
.worker-grid__price {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.worker-grid__price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: auto;
  width: auto;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--worker-accent, var(--accent-strong));
}

.worker-grid__qty {
  display: flex;
  align-self: start;
  justify-content: flex-end;
}

.worker-grid__qty-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding-top: 1px;
}

.worker-grid__qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 246, 0.98));
  font-size: 1rem;
  font-weight: 700;
  color: var(--worker-accent, var(--accent-strong));
  font-variant-numeric: tabular-nums;
}

.worker-grid__qty-buttons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.worker-step-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(188, 202, 197, 0.92);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 244, 0.98));
  color: var(--worker-accent, var(--accent-strong));
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
}

.worker-step-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.worker-grid__empty {
  margin-bottom: 0;
}

.worker-fit-text {
  display: block;
}

.worker-grid__category.worker-fit-text {
  display: inline-flex;
  align-items: center;
}

.worker-fit--sm {
  font-size: 0.72rem;
}

.worker-fit--xs {
  font-size: 0.65rem;
  letter-spacing: -0.02em;
}

.worker-save-dock {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  transform: translateX(-50%);
  width: min(calc(100% - 16px), 560px);
  z-index: 30;
}

.worker-save-dock__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(188, 202, 197, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(20, 37, 37, 0.16);
  backdrop-filter: blur(18px);
}

.worker-sticky-bar__meta {
  display: grid;
  gap: 2px;
}

.worker-sticky-bar__meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.worker-header-panel {
  min-height: 112px;
  padding: 16px 18px 15px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(211, 138, 62, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(252, 253, 252, 0.96), rgba(243, 247, 245, 0.94));
  border: 1px solid rgba(188, 202, 197, 0.84);
  box-shadow: none;
}

.worker-header-panel::after {
  content: "";
  position: absolute;
  inset: 14px 18px auto auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.worker-header-copy {
  gap: 8px;
}

.worker-header-subtitle {
  max-width: 48ch;
  color: #5a6d6b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.worker-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-header-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(188, 202, 197, 0.82);
  color: #435d5b;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.page-header--admin-report .admin-report-hero {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.page-header--admin-report .admin-report-hero::before {
  display: none;
}

.page-header--admin-report .admin-report-hero::after {
  display: none;
}

.page-header--admin-report .admin-report-copy {
  gap: 0;
}

.page-header--admin-report .eyebrow {
  display: block;
  margin: 0;
  color: rgba(63, 103, 96, 0.86);
}

.page-header--admin-report .admin-report-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.page-header--admin-report .admin-report-title-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-header--admin-report .worker-header-panel h1 {
  color: var(--ink);
  font-size: clamp(1.26rem, 1.7vw, 1.62rem);
  line-height: 1.04;
}

.page-header--admin-report .status-pill {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.14);
  color: #0f5e59;
}

.page-header--admin-report .status-pill--edit {
  background: rgba(211, 138, 62, 0.16);
  border-color: rgba(211, 138, 62, 0.2);
  color: #8a5311;
}

.page-header--admin-report .admin-report-worker-pill {
  min-height: 30px;
  padding-inline: 12px;
  white-space: nowrap;
}

.inline-form.inline-form--worker.worker-filter-card {
  width: min(100%, 388px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  gap: 8px;
  border-radius: 22px;
  border-color: rgba(188, 202, 197, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 248, 0.96));
  box-shadow: 0 18px 34px rgba(20, 37, 37, 0.1);
}

.inline-form.inline-form--worker.worker-filter-card.worker-filter-card--range {
  width: min(100%, 540px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-form.inline-form--worker.worker-filter-card.admin-report-filter-card {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 9px;
  gap: 7px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(20, 37, 37, 0.08);
}

.inline-form.inline-form--worker.worker-filter-card.admin-report-filter-card.admin-report-filter-card--daily {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-header--admin-report .admin-report-filter-card {
  justify-self: stretch;
}

.page-header--admin-report .admin-report-filter-card .field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-header--admin-report .admin-report-filter-card .field span {
  position: static;
  padding: 0;
  min-width: fit-content;
  background: transparent;
  color: #5a6c6b;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
}

.page-header--admin-report .admin-report-filter-card .field input,
.page-header--admin-report .admin-report-filter-card .field select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

.page-header--admin-report .admin-report-filter-card .field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.page-header--admin-report .admin-report-filter-card .field input:focus,
.page-header--admin-report .admin-report-filter-card .field select:focus {
  box-shadow: none;
  border-color: transparent;
}

.page-header--admin-report .admin-report-filter-card .field:focus-within {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.page-header--admin-report .admin-report-filter-card .field:focus-within span {
  transform: none;
}

.worker-card,
.worker-report-card {
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(188, 202, 197, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 248, 0.9));
  box-shadow: 0 18px 38px rgba(20, 37, 37, 0.1);
}

.worker-card {
  padding-top: 10px;
}

.worker-report-card {
  gap: 8px;
}

.worker-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.worker-section-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.worker-section-heading strong {
  font-size: 1rem;
}

.worker-section-heading .muted {
  font-size: 0.78rem;
}

.worker-summary-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: flex-end;
}

.worker-summary-strip--compact .worker-summary-pill {
  min-height: 30px;
}

.worker-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 9px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 243, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.worker-summary-pill em {
  color: #697e7b;
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.worker-summary-pill strong {
  color: var(--accent-strong);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.worker-summary-strip--topline {
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  justify-self: end;
}

.worker-summary-strip--topline::-webkit-scrollbar {
  display: none;
}

.worker-summary-strip--topline .worker-summary-pill {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
}

.worker-summary-strip--topline .worker-summary-pill strong {
  font-size: 1.08rem;
}

@media (min-width: 821px) {
  .worker-summary-strip--topline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    gap: 6px;
  }

  .worker-summary-strip--topline .worker-summary-pill {
    justify-content: center;
    min-width: 86px;
  }
}

.worker-grid {
  gap: 4px;
}

.worker-grid__head {
  padding: 0 6px;
  font-size: 0.62rem;
}

.worker-grid__row {
  gap: 6px;
  padding: 4px 7px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(20, 37, 37, 0.08);
}

.worker-grid__category {
  padding: 2px 8px 1px;
  font-size: 0.68rem;
}

.worker-grid__name {
  font-size: 0.79rem;
}

.worker-grid__price {
  font-size: 0.82rem;
}

.worker-grid__qty input {
  min-height: 28px;
  border-radius: 9px;
  font-size: 0.8rem;
}

.worker-save-dock__inner {
  padding: 8px 10px;
  border-radius: 16px;
}

.worker-report-list {
  gap: 5px;
}

.worker-report-list--compact {
  gap: 4px;
}

.worker-report-row {
  gap: 8px;
  padding: 6px 9px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(20, 37, 37, 0.08);
}

.worker-report-main {
  gap: 3px;
}

.worker-report-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.worker-report-topline .worker-grid__category {
  justify-self: start;
  align-self: center;
  margin-bottom: 0;
}

.worker-report-topline .worker-report-meta {
  margin-left: 0;
  white-space: nowrap;
}

.worker-report-name {
  font-size: 0.86rem;
  line-height: 1.14;
}

.worker-report-meta {
  font-size: 0.7rem;
}

.worker-report-meta--price {
  color: var(--worker-accent, var(--accent-strong));
  font-weight: 800;
}

.worker-report-stats {
  gap: 5px;
  align-items: center;
}

.worker-report-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  min-height: 26px;
  padding: 0 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.worker-report-stats strong {
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.worker-report-stats em {
  font-size: 0.56rem;
  letter-spacing: 0.01em;
}

.worker-day-group-list {
  display: grid;
  gap: 12px;
}

.worker-day-group {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.9));
  box-shadow: 0 14px 28px rgba(20, 37, 37, 0.08);
  overflow: hidden;
}

.worker-day-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.92), rgba(10, 79, 77, 0.7));
}

.worker-day-group:nth-child(even)::before {
  background: linear-gradient(180deg, rgba(211, 138, 62, 0.94), rgba(168, 104, 31, 0.72));
}

.worker-day-group__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px 9px;
  border-radius: 14px;
  border: 1px solid rgba(188, 202, 197, 0.72);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.worker-day-group:nth-child(even) .worker-day-group__header {
  background: linear-gradient(135deg, rgba(211, 138, 62, 0.11), rgba(255, 255, 255, 0.94));
}

.worker-day-group__title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.worker-day-group__title strong {
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.worker-day-group__title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-soft);
}

.page-shell--dashboard {
  width: min(calc(100% - 16px), 1760px);
}

.sheet-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.94);
}

.sheet-table th,
.sheet-table td {
  border: 1px solid rgba(214, 223, 220, 0.88);
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.88rem;
}

.sheet-table thead th,
.sheet-table tfoot th {
  background: linear-gradient(180deg, #f7faf9 0%, #edf4f1 100%);
  color: #294341;
  font-weight: 800;
}

.sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sheet-table tbody tr:nth-child(even) td {
  background: rgba(244, 248, 246, 0.72);
}

.sheet-table tbody tr:hover td {
  background: rgba(219, 242, 238, 0.42);
}

.sheet-table--entry th:nth-child(3),
.sheet-table--entry td:nth-child(3) {
  text-align: left;
}

.dashboard-edit-form {
  display: grid;
  gap: 8px;
}

.sheet-head--dashboard {
  margin-bottom: 0;
}

.sheet-head--dashboard > div:first-child {
  gap: 4px;
}

.dashboard-summary-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.dashboard-summary-month {
  font-size: clamp(1.2rem, 1.55vw, 1.42rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.dashboard-summary-worker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(211, 138, 62, 0.16));
  color: var(--accent-strong);
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-summary-totals {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 3px;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(211, 138, 62, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: #44615f;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-summary-total-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px 5px 11px;
  border-radius: 12px;
  border: 1px solid rgba(188, 202, 197, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.94));
  box-shadow: 0 6px 14px rgba(20, 37, 37, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dashboard-summary-total-item em {
  color: #5a706d;
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-summary-total-item strong {
  color: var(--accent-strong);
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.dashboard-summary-total-item--quantity {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, rgba(243, 250, 248, 0.98), rgba(235, 245, 241, 0.95));
}

.dashboard-summary-total-item--amount {
  border-color: rgba(185, 118, 53, 0.2);
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(251, 239, 225, 0.95));
}

.dashboard-summary-total-item--amount strong {
  color: #9a4f12;
}

.dashboard-summary-total-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(15, 118, 110, 0.14);
}

.dashboard-mode-hint {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-mode-hint--edit {
  border: 1px solid rgba(211, 138, 62, 0.34);
  background: linear-gradient(135deg, rgba(211, 138, 62, 0.18), rgba(15, 118, 110, 0.14));
  color: #8b4f12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px rgba(211, 138, 62, 0.1);
}

.dashboard-mode-hint--view {
  border: 1px solid rgba(188, 202, 197, 0.72);
  background: linear-gradient(180deg, rgba(247, 250, 249, 0.92), rgba(239, 245, 243, 0.88));
  color: #526665;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-save-state[hidden] {
  display: none !important;
}

.dashboard-save-button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.page-header--dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(248px, 332px);
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.page-header--dashboard > div:first-child {
  max-width: none;
}

.inline-form.inline-form--worker.worker-filter-card.admin-report-filter-card.dashboard-filter-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 7px;
  gap: 6px;
  border-radius: 16px;
}

.page-header--dashboard .dashboard-filter-card .field {
  padding: 0 8px;
  border-radius: 12px;
}

.page-header--dashboard .dashboard-filter-card .field span {
  font-size: 0.66rem;
}

.page-header--dashboard .dashboard-filter-card .field input,
.page-header--dashboard .dashboard-filter-card .field select {
  min-height: 34px;
  padding-right: 24px;
  font-size: 0.84rem;
}

.page-header--dashboard .dashboard-filter-card .field select {
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  padding-right: 22px;
}

.page-header--admin-parts {
  grid-template-columns: minmax(0, 1fr) minmax(248px, 332px);
  gap: 8px;
  margin-bottom: 8px;
}

.admin-parts-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-self: stretch;
  padding: 9px;
  border: 1px solid rgba(188, 202, 197, 0.88);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 248, 0.96));
  box-shadow: 0 12px 24px rgba(20, 37, 37, 0.08);
}

.admin-parts-switcher__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.98));
  color: #435d5b;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.admin-parts-switcher__tab:hover {
  border-color: rgba(15, 118, 110, 0.22);
  color: #145450;
}

.admin-parts-switcher__tab.is-active {
  border-color: rgba(15, 118, 110, 0.3);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(211, 138, 62, 0.14));
  color: #0f5e59;
}

.dashboard-hero {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
}

.dashboard-hero::before {
  display: none;
}

.dashboard-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.dashboard-hero .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.54rem;
}

.dashboard-hero h1 {
  color: var(--ink);
  font-size: clamp(1.24rem, 1.5vw, 1.62rem);
  line-height: 1.02;
}

.dashboard-hero .muted {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.dashboard-hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dashboard-hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(188, 202, 197, 0.84);
  color: #48615f;
  font-size: 0.66rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dashboard-hero-chip--accent {
  background: linear-gradient(135deg, rgba(211, 138, 62, 0.16), rgba(15, 118, 110, 0.12));
  color: var(--accent-strong);
}

.inline-form.inline-form--dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 6px;
  padding: 0;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.inline-form.inline-form--dashboard .field input,
.inline-form.inline-form--dashboard .field select {
  min-height: 38px;
  padding-top: 13px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 30px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.2;
}

.inline-form.inline-form--dashboard .field span {
  top: 2px;
  left: 7px;
  font-size: 0.5rem;
  line-height: 1;
}

.card--dashboard {
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(188, 202, 197, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 248, 0.92));
  box-shadow: 0 16px 30px rgba(20, 37, 37, 0.08);
  overflow: visible;
}

.dashboard-edit-form {
  gap: 8px;
}

.sheet-head--dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 246, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dashboard-summary-card {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
}

.dashboard-summary-heading {
  gap: 7px;
}

.dashboard-summary-month {
  font-size: clamp(1rem, 1.18vw, 1.18rem);
}

.dashboard-summary-worker {
  min-height: 24px;
  padding: 0 9px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(211, 138, 62, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: clamp(0.8rem, 0.94vw, 0.92rem);
}

.dashboard-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
  padding-left: 2px;
}

.dashboard-summary-totals {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(211, 138, 62, 0.12));
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #2b4441;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-summary-total-item {
  display: grid;
  gap: 1px;
}

.dashboard-summary-total-item em {
  color: #58716e;
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-summary-total-item strong {
  color: #0e4e4b;
  font-size: 0.86rem;
  line-height: 1.05;
}

.dashboard-summary-total-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(15, 118, 110, 0.16);
}

.dashboard-summary-context {
  color: #627674;
  font-size: 0.64rem;
  font-weight: 700;
}

.dashboard-worker-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 6px;
  width: 100%;
  padding-top: 2px;
}

.dashboard-worker-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.dashboard-worker-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 10px 18px rgba(20, 37, 37, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.dashboard-worker-card.is-selected {
  border-color: rgba(15, 118, 110, 0.3);
  background: linear-gradient(135deg, rgba(238, 249, 245, 0.98), rgba(255, 247, 239, 0.98));
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dashboard-worker-card__name {
  color: #204745;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dashboard-worker-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-worker-card__stat {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-worker-card__stat em {
  color: #607674;
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-worker-card__stat b {
  color: #0e4e4b;
  font-size: 0.9rem;
  line-height: 1.04;
  font-variant-numeric: tabular-nums;
}

.dashboard-worker-card__stat--amount b {
  color: #9a4f12;
}

.dashboard-mode-hint {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.64rem;
}

.dashboard-actions {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: end;
  min-width: 160px;
}

.dashboard-actions__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-actions .button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 0.82rem;
}

[data-dashboard-pdf-button] {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18)), linear-gradient(135deg, rgba(255, 250, 244, 1), rgba(237, 246, 242, 0.98));
  border-color: rgba(15, 118, 110, 0.22);
  color: #145450;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

[data-dashboard-pdf-button]:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.18)), linear-gradient(135deg, rgba(255, 252, 247, 1), rgba(230, 243, 238, 1));
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.dashboard-table-viewport {
  padding: 12px;
  border: 1px solid rgba(188, 202, 197, 0.74);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(251, 253, 252, 0.98), rgba(242, 247, 245, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.table-wrap--dashboard {
  max-height: calc(100vh - 340px + var(--dashboard-native-scrollbar-size));
  border: 1px solid rgba(188, 202, 197, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sheet-table--dashboard thead th {
  background: linear-gradient(180deg, #fbfcfb 0%, #edf4f1 100%);
  box-shadow: inset 0 -1px 0 rgba(188, 202, 197, 0.88);
}

.sheet-table--dashboard tfoot th {
  background: linear-gradient(180deg, #f8fbfa 0%, #eaf2ef 100%);
}

.sheet-table--dashboard tbody tr td:nth-last-child(-n + 2) {
  background: linear-gradient(180deg, rgba(246, 250, 248, 0.96), rgba(238, 245, 242, 0.98));
}

.sheet-table--dashboard tbody tr:hover td:not(.is-saturday-col):not(.is-sunday-col) {
  background: rgba(239, 247, 244, 0.94);
}

@media (max-width: 980px) {
  .page-header--dashboard {
    grid-template-columns: 1fr;
  }

  .page-header--admin-parts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-header--dashboard {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .page-header--admin-parts {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .card--dashboard {
    padding: 10px;
    border-radius: 18px;
  }

  .sheet-head--dashboard {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 16px;
  }

  .dashboard-summary-totals {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .dashboard-worker-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-total-divider {
    display: none;
  }

  .inline-form.inline-form--worker.worker-filter-card.admin-report-filter-card.dashboard-filter-card {
    grid-template-columns: 1fr;
  }

  .admin-parts-switcher {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    min-width: 0;
    justify-items: stretch;
  }

  .dashboard-actions__buttons {
    justify-content: stretch;
  }

  .dashboard-actions__buttons .button {
    flex: 1 1 100%;
  }

  .dashboard-table-viewport {
    padding: 8px 8px 0;
    border-radius: 20px;
  }

  .table-wrap--dashboard {
    max-height: calc(100vh - 330px + var(--dashboard-native-scrollbar-size));
    border-radius: 18px;
  }

  .worker-header-panel {
    min-height: 0;
    padding: 14px 14px 13px;
    border-radius: 18px;
  }

  .worker-header-badges {
    gap: 6px;
  }

  .worker-header-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .inline-form.inline-form--worker.worker-filter-card,
  .inline-form.inline-form--worker.worker-filter-card.worker-filter-card--range {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .worker-card,
  .worker-report-card {
    padding: 8px;
    border-radius: 18px;
  }

  .worker-section-head,
  .worker-day-group__header {
    grid-template-columns: 1fr;
  }

  .worker-summary-strip {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .worker-summary-pill {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    min-height: 28px;
    padding: 0 7px;
  }

.worker-summary-pill strong {
    font-size: 0.94rem;
  }

  .worker-summary-strip--compact .worker-summary-pill,
  .worker-summary-strip--group .worker-summary-pill {
    flex-basis: calc(50% - 4px);
  }

  .worker-report-row {
    padding: 6px 7px;
  }

  .worker-day-group {
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
  }

  .worker-day-group__header {
    padding: 8px 9px 7px;
    border-radius: 12px;
  }

  .worker-day-group__title strong {
    font-size: 0.98rem;
  }

  .worker-day-group__title span {
    font-size: 0.72rem;
  }
}

.card--dashboard {
  overflow: visible;
}

.dashboard-table-viewport {
  position: relative;
  overflow: hidden;
  padding: 12px 12px 0;
}

.table-wrap--dashboard {
  --dashboard-native-scrollbar-size: 18px;
  position: relative;
  max-height: calc(100vh - 260px + var(--dashboard-native-scrollbar-size));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.table-wrap--dashboard::-webkit-scrollbar:horizontal {
  height: 0 !important;
}

.sheet-table--dashboard {
  --dashboard-col-seq: 52px;
  --dashboard-col-price: 76px;
  --dashboard-col-price-offset: var(--dashboard-col-seq);
  --dashboard-col-part-offset: calc(var(--dashboard-col-seq) + var(--dashboard-col-price));
  --dashboard-col-part: 210px;
  --dashboard-row-height: 30px;
  min-width: 1680px;
  width: max-content;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.sheet-table--dashboard th,
.sheet-table--dashboard td {
  padding: 3px 2px;
  border-right: 1px solid rgba(214, 223, 220, 0.88);
  border-bottom: 1px solid rgba(214, 223, 220, 0.88);
  font-size: 0.78rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sheet-table--dashboard thead th,
.sheet-table--dashboard tfoot th {
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  border-right: 1px solid rgba(214, 223, 220, 0.88);
  border-bottom: 1px solid rgba(214, 223, 220, 0.88);
}

.sheet-table--dashboard thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(180deg, #f7faf9 0%, #edf4f1 100%);
  font-size: 0.78rem;
}

.sheet-table--dashboard tfoot th {
  background: linear-gradient(180deg, #f7faf9 0%, #edf4f1 100%);
  font-size: 0.84rem;
}

.sheet-table--dashboard thead th:nth-child(1),
.sheet-table--dashboard tbody td:nth-child(1) {
  width: var(--dashboard-col-seq);
  min-width: var(--dashboard-col-seq);
  max-width: var(--dashboard-col-seq);
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.sheet-table--dashboard thead th:nth-child(2),
.sheet-table--dashboard tbody td:nth-child(2) {
  width: var(--dashboard-col-price);
  min-width: var(--dashboard-col-price);
  max-width: var(--dashboard-col-price);
  text-align: right;
  padding-right: 6px;
}

.sheet-table--dashboard thead th:nth-child(3),
.sheet-table--dashboard tbody td:nth-child(3) {
  width: var(--dashboard-col-part);
  min-width: var(--dashboard-col-part);
  max-width: var(--dashboard-col-part);
  text-align: left;
  padding-left: 8px;
  padding-right: 8px;
}

.sheet-table--dashboard thead th:nth-child(n + 4):nth-last-child(n + 3),
.sheet-table--dashboard tbody td:nth-child(n + 4):nth-last-child(n + 3) {
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  padding-left: 0;
  padding-right: 0;
}

.sheet-table--dashboard thead th:nth-last-child(2),
.sheet-table--dashboard tbody td:nth-last-child(2) {
  width: 92px;
  text-align: right;
  padding-right: 8px;
}

.sheet-table--dashboard thead th:last-child,
.sheet-table--dashboard tbody td:last-child {
  width: 148px;
  text-align: right;
  padding-right: 14px;
}

.sheet-table--dashboard tbody tr td {
  height: var(--dashboard-row-height);
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
  font-size: 0.88rem;
  transition: background-color 140ms ease, color 140ms ease;
}

.sheet-table--dashboard tbody tr td:nth-child(-n + 3) {
  background: linear-gradient(180deg, var(--dashboard-soft-strong, #eef5f2), var(--dashboard-soft, #f8fbfa));
}

.sheet-table--dashboard tbody tr td:nth-child(1) {
  color: #55706d;
  font-size: 0.76rem;
  font-weight: 800;
}

.sheet-table--dashboard tbody tr td:nth-child(3) {
  font-size: 0.76rem;
}

.sheet-table--dashboard tbody tr td:first-child {
  box-shadow: inset 3px 0 0 var(--dashboard-accent, var(--accent));
}

.sheet-table--dashboard tbody tr:hover td:nth-child(-n + 3) {
  background: linear-gradient(180deg, var(--dashboard-soft-strong, #e4f2ee), var(--dashboard-soft, #f7fbfa));
}

.sheet-table--dashboard .is-saturday-col {
  background: linear-gradient(180deg, #e9f3ff 0%, #cfe3ff 100%) !important;
}

.sheet-table--dashboard .is-sunday-col {
  background: linear-gradient(180deg, #ffe8ea 0%, #ffcfd6 100%) !important;
}

.sheet-table--dashboard td.has-value {
  color: #c2352a;
  font-weight: 800;
}

.sheet-table--dashboard thead th:nth-child(1),
.sheet-table--dashboard tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 4;
}

.sheet-table--dashboard thead th:nth-child(2),
.sheet-table--dashboard tbody td:nth-child(2) {
  position: sticky;
  left: var(--dashboard-col-price-offset);
  z-index: 4;
}

.sheet-table--dashboard thead th:nth-child(3),
.sheet-table--dashboard tbody td:nth-child(3) {
  position: sticky;
  left: var(--dashboard-col-part-offset);
  z-index: 4;
}

.sheet-table--dashboard thead th:nth-child(-n + 3) {
  z-index: 8;
  box-shadow: 1px 0 0 rgba(188, 202, 197, 0.9);
  background-clip: padding-box;
  will-change: auto;
}

.sheet-table--dashboard thead th:nth-child(1),
.sheet-table--dashboard tbody td:nth-child(1) {
  box-shadow: inset 3px 0 0 var(--dashboard-accent, var(--accent)), 1px 0 0 rgba(188, 202, 197, 0.9);
  background-clip: padding-box;
  will-change: auto;
}

.sheet-table--dashboard thead th:nth-child(2),
.sheet-table--dashboard tbody td:nth-child(2) {
  box-shadow: 1px 0 0 rgba(188, 202, 197, 0.9);
  background-clip: padding-box;
  will-change: auto;
}

.sheet-table--dashboard thead th:nth-child(3),
.sheet-table--dashboard tbody td:nth-child(3) {
  box-shadow: 1px 0 0 rgba(188, 202, 197, 0.9);
  background-clip: padding-box;
  will-change: auto;
}

.dashboard-index-cell {
  text-align: center;
}

.dashboard-part-cell {
  min-width: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.dashboard-part-content {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: var(--dashboard-row-height);
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-part-content span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-cell-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--dashboard-row-height);
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-cell-value.has-value {
  color: #c2352a;
  font-weight: 800;
}

.dashboard-cell-value.is-empty {
  visibility: hidden;
}

.dashboard-category-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--dashboard-accent, var(--accent));
  box-shadow: 0 0 0 2px var(--dashboard-soft-strong, rgba(219, 242, 238, 0.82));
}

.dashboard-qty-input {
  display: block;
  width: 100%;
  min-height: var(--dashboard-row-height);
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.88rem;
  appearance: textfield;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

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

.dashboard-qty-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.32);
}

.dashboard-qty-input.has-value {
  color: #c2352a;
  font-weight: 800;
}

.dashboard-scrollbar {
  position: fixed;
  bottom: 0;
  z-index: 30;
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(20, 37, 37, 0.14);
  backdrop-filter: blur(12px);
}

.dashboard-scrollbar[hidden] {
  display: none !important;
}

.dashboard-scrollbar__track {
  height: 1px;
}

.dashboard-pdf-stage {
  position: fixed;
  top: 0;
  left: -20000px;
  width: 1122px;
  display: grid;
  gap: 24px;
  pointer-events: none;
  z-index: -1;
}

.dashboard-pdf-preview {
  width: min(96vw, 1380px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.dashboard-pdf-preview::backdrop {
  background: rgba(30, 44, 43, 0.42);
  backdrop-filter: blur(8px);
}

.dashboard-pdf-preview__panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(188, 202, 197, 0.74);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(251, 253, 252, 0.98), rgba(240, 246, 243, 0.96));
  box-shadow: 0 28px 56px rgba(33, 55, 53, 0.24);
}

.dashboard-pdf-preview__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.dashboard-pdf-preview__copy {
  display: grid;
  gap: 4px;
}

.dashboard-pdf-preview__eyebrow {
  color: #6c807e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-pdf-preview__title {
  margin: 0;
  color: #173b3a;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.12;
}

.dashboard-pdf-preview__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-pdf-preview__viewport {
  max-height: calc(100vh - 180px);
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(188, 202, 197, 0.74);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, rgba(237, 244, 241, 0.94), rgba(225, 235, 232, 0.92));
}

.dashboard-pdf-preview__pages {
  display: grid;
  gap: 24px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.dashboard-pdf-preview__pages .dashboard-pdf-page {
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(39, 58, 57, 0.18);
}

.dashboard-pdf-page {
  position: relative;
  width: 1122px;
  min-height: 794px;
  padding: 34px 34px 44px;
  box-sizing: border-box;
  background: #ffffff;
  color: #223436;
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

.dashboard-pdf-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.dashboard-pdf-page__title-wrap {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
}

.dashboard-pdf-page__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.dashboard-pdf-page__meta {
  margin: 0;
  color: #4f6667;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-pdf-page__number {
  position: absolute;
  right: 34px;
  bottom: 18px;
  color: #56706f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-pdf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.dashboard-pdf-table th,
.dashboard-pdf-table td {
  border: 1px solid #cfdbd9;
  padding: 4px 2px;
  font-size: 10px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-align: center;
  vertical-align: middle;
}

.dashboard-pdf-table thead th,
.dashboard-pdf-table tfoot th {
  background: linear-gradient(180deg, #f6faf8 0%, #e8f0ed 100%);
  color: #284241;
  font-weight: 800;
}

.dashboard-pdf-table th:nth-child(1),
.dashboard-pdf-table td:nth-child(1) {
  width: 34px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.dashboard-pdf-table th:nth-child(2),
.dashboard-pdf-table td:nth-child(2) {
  width: 58px;
  text-align: right;
  padding-right: 6px;
}

.dashboard-pdf-table th:nth-child(3),
.dashboard-pdf-table td:nth-child(3) {
  width: 138px;
  text-align: left;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
  word-break: keep-all;
}

.dashboard-pdf-table th:nth-child(n + 4):nth-last-child(n + 3),
.dashboard-pdf-table td:nth-child(n + 4):nth-last-child(n + 3) {
  width: 19.8px;
  padding-left: 0;
  padding-right: 0;
}

.dashboard-pdf-table th:nth-last-child(2),
.dashboard-pdf-table td:nth-last-child(2) {
  width: 58px;
  text-align: right;
  padding-right: 6px;
}

.dashboard-pdf-table th:last-child,
.dashboard-pdf-table td:last-child {
  width: 94px;
  text-align: right;
  padding-right: 8px;
}

.dashboard-pdf-table tbody td.dashboard-pdf-cell--label:first-child {
  background: linear-gradient(180deg, #f9fbfa 0%, #edf4f2 100%);
  color: #2f4b4a;
  font-weight: 800;
}

.dashboard-pdf-table tbody td.dashboard-pdf-cell--label:nth-child(2),
.dashboard-pdf-table tbody td.dashboard-pdf-cell--label:nth-child(3) {
  background: var(--dashboard-pdf-soft, #f7fbfa);
  color: #223436;
}

.dashboard-pdf-table tbody td.dashboard-pdf-cell--label:nth-child(2) {
  font-weight: 700;
}

.dashboard-pdf-cell--saturday {
  background: linear-gradient(180deg, #e9f3ff 0%, #d8e8ff 100%) !important;
}

.dashboard-pdf-cell--sunday {
  background: linear-gradient(180deg, #ffe9ec 0%, #ffd6dd 100%) !important;
}

.dashboard-pdf-cell--total {
  color: #184a4d;
  font-weight: 800;
}

.dashboard-pdf-cell--value {
  color: #c2352a;
  font-weight: 800;
}

.dashboard-pdf-preview__actions .button {
  min-height: 40px;
  border-radius: 14px;
}

.is-weekend {
  background: linear-gradient(180deg, #ffefc8 0%, var(--weekend) 100%) !important;
}

.sheet-table--dashboard tfoot th:nth-last-child(2) {
  text-align: right;
  padding-right: 8px;
}

.sheet-table--dashboard tfoot th:last-child {
  text-align: right;
  padding-right: 14px;
}

.is-total {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.qty-cell input {
  width: 84px;
  min-height: 40px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.98));
}

.qty-cell input:disabled {
  color: #839290;
  background: #eef2f1;
}

.empty-cell {
  padding: 24px 12px;
  color: var(--muted);
}

.inline-editor {
  padding: 12px;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 248, 247, 0.76));
  box-shadow: var(--shadow-soft);
}

.inline-editor__header {
  min-width: 110px;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(211, 138, 62, 0.12));
}

.admin-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.admin-tabs__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.admin-tabs__button.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.admin-tab-panel {
  padding: 18px;
}

.admin-panel-stack {
  display: grid;
  gap: 16px;
}

.admin-panel-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(188, 202, 197, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(188, 202, 197, 0.74);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 247, 0.84));
}

.admin-toolbar__copy {
  display: grid;
  gap: 4px;
}

.admin-toolbar__copy h2 {
  margin: 0;
}

.admin-toolbar__copy .muted {
  margin: 0;
}

.admin-users-card {
  display: grid;
  gap: 14px;
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 247, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.admin-user-row__summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-user-row__summary strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.admin-user-row__summary span {
  color: #627674;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.admin-user-row__meta {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(188, 202, 197, 0.8);
  color: #415b58;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-user-badge.is-active {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.14);
  color: var(--accent-strong);
}

.admin-user-badge.is-inactive {
  background: rgba(211, 138, 62, 0.12);
  border-color: rgba(211, 138, 62, 0.16);
  color: #8a5311;
}

.admin-modal {
  width: min(calc(100% - 24px), 680px);
  max-width: 680px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-modal::backdrop {
  background: rgba(19, 34, 36, 0.34);
  backdrop-filter: blur(4px);
}

.admin-modal__panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 246, 0.94));
  box-shadow: 0 28px 60px rgba(20, 37, 37, 0.16);
}

.admin-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-modal__copy {
  display: grid;
  gap: 4px;
}

.admin-modal__eyebrow {
  color: rgba(74, 97, 94, 0.66);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-modal__title {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.admin-modal__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #4f6665;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

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

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

.admin-modal__check {
  min-height: 48px;
}

.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-list-stack {
  gap: 8px;
}

.admin-list-stack .inline-editor {
  padding: 8px 10px;
  gap: 8px;
  border-radius: 14px;
}

.admin-list-stack .inline-editor .field input,
.admin-list-stack .inline-editor .field select {
  min-height: 42px;
  padding: 18px 12px 6px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.admin-list-stack .inline-editor .field span {
  top: 6px;
  left: 10px;
  font-size: 0.58rem;
}

.admin-list-stack .inline-editor__header {
  min-width: 96px;
  padding: 8px 10px;
  border-radius: 12px;
}

.admin-reorder-form {
  display: grid;
  gap: 10px;
}

.admin-reorder-form__head {
  margin-bottom: 0;
}

.admin-reorder-form__inputs {
  display: none;
}

.sort-controls {
  display: grid;
  grid-template-columns: 44px 30px 30px 34px;
  gap: 4px;
  align-items: stretch;
}

.sort-order-badge {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 6px;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sort-button,
.sort-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(188, 202, 197, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #385150;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.sort-handle {
  cursor: grab;
}

.sort-handle:active {
  cursor: grabbing;
}

.field-row--admin-actions {
  justify-content: space-between;
  align-items: center;
}

.field-row--admin-actions .button {
  min-width: 132px;
}

.inline-editor--category {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 118px auto 78px;
  gap: 8px;
  align-items: center;
  border-color: var(--category-line, rgba(188, 202, 197, 0.78));
  background:
    linear-gradient(90deg, var(--category-accent, rgba(15, 118, 110, 0.18)) 0 6px, transparent 6px),
    linear-gradient(180deg, var(--category-soft-strong, rgba(255, 255, 255, 0.84)), var(--category-soft, rgba(245, 248, 247, 0.78)));
}

.inline-editor--category .field,
.inline-editor--category .field--small,
.inline-editor--part .field,
.inline-editor--part .field--small {
  flex: none;
  width: 100%;
  min-width: 0;
}

.field--color input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
}

.inline-editor--part {
  display: grid;
  grid-template-columns: 92px 148px minmax(150px, 0.92fr) minmax(180px, 1.45fr) 92px auto 78px;
  gap: 8px;
  align-items: center;
  border-color: var(--category-line, rgba(188, 202, 197, 0.78));
  background:
    linear-gradient(90deg, var(--category-accent, rgba(15, 118, 110, 0.18)) 0 6px, transparent 6px),
    linear-gradient(180deg, var(--category-soft-strong, rgba(255, 255, 255, 0.84)), var(--category-soft, rgba(245, 248, 247, 0.78)));
}

.inline-editor--part .inline-editor__header strong {
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  color: var(--category-ink, var(--accent-strong));
}

.inline-editor--part .inline-editor__header {
  background: linear-gradient(135deg, var(--category-soft-strong, rgba(15, 118, 110, 0.1)), var(--category-soft, rgba(211, 138, 62, 0.12)));
  box-shadow: inset 0 0 0 1px var(--category-line, rgba(188, 202, 197, 0.35));
}

.inline-editor--category .sort-order-badge,
.inline-editor--part .sort-order-badge {
  border-color: var(--category-line, rgba(188, 202, 197, 0.82));
  color: var(--category-accent, var(--accent-strong));
}

.inline-editor--category .sort-button,
.inline-editor--category .sort-handle,
.inline-editor--part .sort-button,
.inline-editor--part .sort-handle {
  border-color: var(--category-line, rgba(188, 202, 197, 0.82));
}

.inline-editor--category .check,
.inline-editor--part .check {
  min-height: 42px;
  padding: 0 11px;
  justify-content: center;
  white-space: nowrap;
}

.inline-editor--category .button,
.inline-editor--part .button {
  min-width: 78px;
  min-height: 42px;
  padding: 0 12px;
}

.inline-editor--category.is-dragging,
.inline-editor--part.is-dragging {
  opacity: 0.72;
}

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

@media (max-width: 820px) {
  .page-header,
  .sheet-head,
  .inline-form,
  .inline-form--wide,
  .inline-editor,
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell {
    width: min(calc(100% - 16px), var(--max));
  }

  .site-nav {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    top: 0;
    margin: 0 0 6px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 0;
  }

  .site-nav__brand {
    gap: 3px;
  }

  .site-nav__eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.16em;
  }

  .site-nav__links {
    display: grid;
    width: 100%;
    gap: 6px;
  }

  .site-nav--worker {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand meta"
      "links links";
    align-items: start;
  }

  .site-nav--worker .site-nav__brand {
    grid-area: brand;
  }

  .site-nav--worker .site-nav__links {
    grid-area: links;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .site-nav--worker .site-nav__meta {
    grid-area: meta;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-nav--admin .site-nav__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav__meta {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav__user {
    gap: 2px;
  }

  .site-nav__name {
    font-size: 0.78rem;
  }

  .card,
  .card--dense,
  .login-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sheet-table {
    min-width: 660px;
  }

  .qty-cell input {
    width: 76px;
  }

  .site-nav__brand a {
    font-size: 0.92rem;
  }

  .site-nav__links a,
  .site-nav .button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.76rem;
    border-radius: 14px;
  }

  .site-nav__links a {
    width: 100%;
  }

  .role-badge {
    display: none;
  }

  .admin-tabs {
    display: grid;
    width: 100%;
    margin-bottom: 12px;
  }

  .admin-tab-panel {
    padding: 14px;
  }

  .admin-panel-block {
    padding: 12px;
    border-radius: 16px;
  }

  .admin-toolbar {
    padding: 12px;
  }

  .admin-toolbar .button {
    width: 100%;
  }

  .field-row--admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .field-row--admin-actions .button {
    width: 100%;
    min-width: 0;
  }

  .inline-editor--category,
  .inline-editor--part {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .inline-editor--category .check,
  .inline-editor--part .check,
  .inline-editor--category .button,
  .inline-editor--part .button {
    width: 100%;
    min-width: 0;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-user-row__meta {
    justify-content: flex-start;
  }

  .admin-user-row .button {
    width: 100%;
  }

  .admin-modal {
    width: calc(100% - 12px);
  }

  .admin-modal__panel {
    padding: 14px;
    border-radius: 18px;
  }

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

  .dashboard-pdf-preview {
    width: calc(100% - 10px);
    min-height: 100dvh;
  }

  .dashboard-pdf-preview__panel {
    min-height: 100dvh;
    padding: 14px;
    border-radius: 0;
  }

  .dashboard-pdf-preview__head {
    align-items: flex-start;
  }

  .dashboard-pdf-preview__actions {
    width: 100%;
  }

  .dashboard-pdf-preview__actions .button {
    flex: 1 1 140px;
  }

  .dashboard-pdf-preview__viewport {
    height: calc(100dvh - 190px);
    max-height: none;
    padding: 10px;
  }

  .dashboard-pdf-preview__pages {
    justify-content: flex-start;
  }

  .page-shell {
    padding-top: 6px;
    padding-bottom: 16px;
  }

  .page-shell--worker {
    padding-bottom: 96px;
  }

  .page-header {
    gap: 8px;
    margin-bottom: 8px;
  }

  .page-header h1 {
    font-size: 1.12rem;
  }

  .page-header .muted {
    font-size: 0.8rem;
  }

  .page-header--worker .eyebrow,
  .page-header--worker .muted {
    display: none;
  }

  .page-header--worker {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    align-items: stretch;
  }

  .page-header--worker h1 {
    font-size: 1.08rem;
    white-space: normal;
  }

  .worker-header-panel {
    min-height: 0;
    padding: 14px 14px 13px;
    border-radius: 18px;
  }

  .worker-header-copy {
    gap: 8px;
  }

  .worker-header-kicker {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
  }

  .worker-header-subtitle {
    font-size: 0.72rem;
    line-height: 1.42;
  }

  .inline-form,
  .inline-form--wide,
  .inline-form--worker {
    padding: 6px;
    gap: 6px;
  }

  .inline-form .field input,
  .inline-form .field select,
  .inline-form--wide .field input,
  .inline-form--wide .field select,
  .inline-form--worker .field input,
  .inline-form--worker .field select {
    min-height: 42px;
    padding-top: 16px;
    padding-bottom: 6px;
    padding-left: 11px;
    padding-right: 34px;
    line-height: 1.2;
  }

  .inline-form .field span,
  .inline-form--wide .field span,
  .inline-form--worker .field span {
    top: 4px;
    left: 8px;
    font-size: 0.54rem;
    line-height: 1;
  }

  .inline-form.inline-form--worker {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    width: 100%;
    padding: 8px;
    border-radius: 18px;
    justify-self: stretch;
    align-items: stretch;
    box-shadow: var(--shadow-soft);
  }

  .inline-form.inline-form--worker .field {
    min-width: 0;
  }

  .page-header--admin-report .admin-report-filter-card,
  .page-header--admin-report .admin-report-filter-card.admin-report-filter-card--daily {
    grid-template-columns: 1fr;
  }

  .page-header--admin-report .admin-report-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-header--admin-report .admin-report-filter-card .field {
    padding: 0 10px;
  }

  .page-header--admin-report .admin-report-filter-card .field span {
    position: static;
    top: auto;
    left: auto;
    padding: 0;
    font-size: 0.68rem;
  }

  .page-header--admin-report .admin-report-filter-card .field input,
  .page-header--admin-report .admin-report-filter-card .field select {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
  }

  .worker-grid {
    gap: 4px;
  }

  .worker-grid__head {
    display: none;
  }

  .worker-grid__row {
    grid-template-columns: minmax(0, 1fr) 126px;
    grid-template-areas:
      "category meta"
      "name qty";
    gap: 2px 6px;
    padding: 4px 6px 3px;
    border-radius: 11px;
  }

  .worker-grid__category {
    grid-area: category;
    font-size: 0.6rem;
    min-height: 0;
    padding: 2px 6px 1px;
    align-self: start;
  }

  .worker-grid__main {
    grid-area: name;
    align-self: start;
  }

  .worker-grid__meta {
    grid-area: meta;
    gap: 4px;
    align-self: start;
  }

  .worker-grid__name {
    font-size: 0.72rem;
  }

  .worker-grid__price {
    width: auto;
    font-size: 0.74rem;
  }

  .worker-grid__qty {
    grid-area: qty;
    align-self: start;
  }

  .worker-grid__month-total {
    font-size: 0.56rem;
  }

  .worker-favorite-button {
    min-width: 26px;
    min-height: 26px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .worker-grid__qty-control {
    justify-content: flex-end;
    gap: 8px;
    padding-top: 0;
  }

  .worker-grid__qty-value {
    min-width: 50px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.92rem;
  }

  .worker-grid__qty-buttons {
    gap: 4px;
  }

  .worker-step-button {
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .worker-save-dock {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    width: calc(100% - 12px);
  }

  .worker-save-dock__inner {
    padding: 7px 9px;
    border-radius: 12px;
  }

.worker-save-dock .button {
    min-width: 74px;
    min-height: 36px;
  }

  .worker-sticky-bar__meta span {
    font-size: 0.68rem;
  }
}

.worker-report-card {
  display: grid;
  gap: 12px;
}

.worker-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.worker-stat-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(188, 202, 197, 0.78);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 248, 246, 0.8));
  box-shadow: var(--shadow-soft);
}

.worker-stat-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.worker-stat-card strong {
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.worker-report-list {
  display: grid;
  gap: 8px;
}

.worker-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--worker-border, rgba(188, 202, 197, 0.82));
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--worker-soft-strong, rgba(244, 248, 246, 0.92)) 0%, var(--worker-soft, rgba(255, 255, 255, 0.92)) 60%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.worker-report-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.worker-report-name {
  font-size: 0.96rem;
  line-height: 1.22;
}

.worker-report-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.worker-report-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.worker-report-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  min-height: 26px;
  padding: 0 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  white-space: nowrap;
}

.worker-report-stats strong {
  font-size: 1rem;
  color: var(--worker-accent, var(--accent-strong));
}

.worker-report-stats em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.56rem;
}

@media (max-width: 820px) {
  .worker-summary-strip--topline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-self: stretch;
    justify-content: stretch;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
  }

  .worker-summary-strip--topline .worker-summary-pill {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    justify-content: center;
    text-align: center;
    flex: 1 1 auto;
  }

  .worker-summary-strip--topline .worker-summary-pill strong {
    font-size: 1rem;
  }

  .worker-summary-strip--topline .worker-summary-pill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .worker-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .worker-stat-card {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .worker-stat-card span {
    font-size: 0.66rem;
  }

  .worker-stat-card strong {
    font-size: 0.92rem;
  }

  .worker-report-list {
    gap: 6px;
  }

  .worker-report-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .worker-report-main {
    gap: 4px;
  }

  .worker-report-topline {
    gap: 6px;
  }

  .worker-report-name {
    font-size: 0.84rem;
  }

  .worker-report-meta {
    font-size: 0.7rem;
  }

  .worker-report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .worker-report-stats span {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .worker-report-stats strong {
    font-size: 0.96rem;
  }

  .worker-report-stats em {
    font-size: 0.54rem;
  }
}
