:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6670;
  --line: #d9dee6;
  --line-soft: #eceff3;
  --surface: #ffffff;
  --page: #f6f7f9;
  --brand: #b3261e;
  --brand-dark: #17191c;
  --focus: #2459c7;
  --ok: #177245;
  --ok-bg: #eaf6ef;
  --warn: #9a6500;
  --warn-bg: #fff4df;
  --danger: #b3261e;
  --danger-bg: #fdebea;
  --blue-bg: #eef4ff;
  --nav: #18172a;
  --paper: #fbfaf7;
  --cream: #f4f2ec;
  --accent: #ec3548;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
}

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

strong,
b,
h1,
h2,
h3 {
  font-weight: 500;
}

.login-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  scroll-padding-top: 18px;
}

.login-card {
  width: min(420px, 100%);
  margin-top: clamp(18px, 10vh, 92px);
  margin-bottom: 24px;
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.login-page.keyboard-open .login-card {
  margin-top: 12px;
}

.login-card input {
  font-size: 16px;
}

.login-card h1 {
  font-size: 2rem;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  padding: 24px 40px;
  border-radius: 0;
  background: var(--nav);
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  max-width: 42vw;
  height: 48px;
}

.brand-logo-wrap-light {
  width: 196px;
  height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--nav);
}

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

.brand-lockup strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
}

.brand-lockup span:not(.brand-logo-wrap) {
  display: block;
  margin-top: 2px;
  color: #c4c4d2;
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

.today-pill {
  white-space: nowrap;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  color: #d8d8e4;
  font-weight: 500;
}

.topbar .ghost-button {
  border-color: transparent;
  background: transparent;
  color: #d8d8e4;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 24px;
  align-items: end;
  margin: 0 48px 28px;
}

.hero-panel h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: #3f3f3f;
  font-size: 1.15rem;
}

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

.module-tabs {
  display: flex;
  gap: 8px;
  margin: -16px 48px 28px;
  padding: 6px;
  width: fit-content;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.module-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.module-tab:hover,
.module-tab:focus-visible {
  transform: translateY(-2px);
  background: #f3f4f5;
  color: var(--ink);
}

.module-tab.active {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.module-tab:active {
  transform: translateY(1px) scale(0.98);
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 48px 28px;
}

.report-selector {
  display: grid;
  grid-template-columns: minmax(220px, 280px);
  gap: 12px;
  align-items: end;
  margin: 0;
}

.report-selector label {
  color: var(--muted);
}

.summary-title {
  min-height: 180px;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 12px;
  padding: 26px;
  display: grid;
  align-content: space-between;
}

.summary-title .eyebrow {
  color: #ffcb35;
}

.summary-title span {
  color: #d5d9df;
  font-weight: 500;
}

.crm-branch-selector {
  display: grid;
  gap: 14px;
}

.crm-branch-selector label {
  color: #d5d9df;
  font-weight: 800;
}

.crm-branch-selector select {
  width: min(100%, 260px);
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.crm-branch-selector option {
  color: var(--ink);
}

.metric {
  min-height: 180px;
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  align-content: space-between;
}

.metric span {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.metric strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.metric small {
  color: #3f3f3f;
  font-size: 0.95rem;
}

.metric .trend-up {
  color: #168548;
}

.metric .trend-warn {
  color: #a46900;
}

.metric.warning strong {
  color: var(--warn);
}

.metric.highlight {
  border-color: #f1d79b;
  background: var(--warn-bg);
}

.metric.highlight strong {
  color: var(--brand-dark);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1.05fr);
  gap: 28px;
  margin: 0 48px;
  align-items: start;
}

.staff-module > .summary-band,
.staff-module > .workspace {
  margin-left: 48px;
  margin-right: 48px;
}

.staff-workspace {
  margin-top: 0;
}

.stock-module {
  margin: 0 48px;
}

.stock-frame {
  width: 100%;
  min-height: calc(100vh - 170px);
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.crm-module > .summary-band,
.crm-module > .workspace,
.crm-module > .records-panel {
  margin-left: 48px;
  margin-right: 48px;
}

.crm-workspace {
  grid-template-columns: minmax(420px, 0.9fr) minmax(460px, 1.1fr);
}

.crm-form,
.crm-customer-list {
  display: grid;
  gap: 14px;
}

.crm-list-panel {
  align-self: start;
}

.crm-customer-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.crm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.crm-grid-single {
  grid-template-columns: 1fr;
}

.crm-search {
  max-width: 360px;
}

.crm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: min(100%, 760px);
}

.crm-filter-bar .crm-search,
.crm-filter {
  min-width: 132px;
  max-width: none;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.crm-filter-bar .crm-search {
  flex: 1 1 220px;
}

.crm-filter {
  flex: 0 1 145px;
}

.crm-export-button {
  min-height: 44px;
  padding-inline: 16px;
}

.crm-customer-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: default;
  transition: border-color 160ms ease, background 160ms ease;
}

.crm-customer-card[data-crm-customer-open] {
  cursor: pointer;
}

.crm-customer-card:hover {
  border-color: rgba(23, 25, 28, 0.24);
  background: #f7f8f8;
}

.crm-customer-card:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.28);
  outline-offset: 4px;
}

.crm-card-main {
  all: unset;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.crm-card-main:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.28);
  outline-offset: 5px;
  border-radius: 10px;
}

.crm-customer-card span {
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.crm-customer-card strong {
  font-size: 1.15rem;
}

.crm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-card-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.74rem;
  font-weight: 800;
}

.crm-card-tags .crm-postcode-tag {
  background: var(--warm);
  color: var(--brand-dark);
}

.crm-card-tags .crm-branch-tag {
  background: #eef2ff;
  color: #313755;
}

.crm-card-tags .crm-contact-tag {
  background: #f1f5f9;
  color: #475569;
}

.crm-customer-card small,
.crm-customer-card em {
  color: var(--muted);
  font-style: normal;
}

.crm-order-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.crm-order-body p {
  margin: 0;
  white-space: pre-wrap;
  max-width: 920px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.48;
}

.crm-order-body small {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.crm-order-body a {
  color: inherit;
  font-weight: 700;
}

.crm-card-actions,
.crm-order-actions,
.crm-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-card-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.crm-order-actions {
  align-items: center;
  padding-top: 2px;
}

.crm-order-card .record-header {
  padding-bottom: 10px;
}

.crm-order-card {
  cursor: pointer;
}

.crm-order-card:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.28);
  outline-offset: 4px;
}

.crm-order-card .record-header strong {
  font-size: 1.12rem;
  font-weight: 650;
}

.crm-order-actions .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.crm-order-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.crm-order-pager span {
  min-width: 130px;
  text-align: center;
}

.crm-order-pager .small-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.crm-order-modal-card {
  width: min(820px, 100%);
}

.crm-customer-modal-card {
  width: min(780px, 100%);
}

.crm-customer-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.crm-customer-modal-summary b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 850;
}

.crm-customer-modal-summary .crm-postcode-tag {
  background: var(--warm);
  color: var(--brand-dark);
}

.crm-customer-modal-summary .crm-branch-tag {
  background: #eef2ff;
  color: #313755;
}

.crm-order-modal-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.crm-customer-modal-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.crm-order-modal-card input,
.crm-order-modal-card select,
.crm-order-modal-card textarea,
.crm-customer-modal-card input,
.crm-customer-modal-card textarea {
  color: var(--ink);
}

.crm-customer-modal-orders {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.crm-customer-modal-orders > strong {
  font-size: 0.95rem;
}

.crm-customer-order-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.crm-customer-order-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.crm-customer-order-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-modal-ticket {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.crm-ticket-preview,
.crm-import-list {
  display: grid;
  gap: 12px;
}

.crm-ticket-preview {
  padding: 14px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: #f7f8f8;
}

.crm-ticket-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.crm-ticket-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.crm-imports-panel {
  margin-top: 28px;
}

.crm-import-card {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: default;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.crm-import-card:hover,
.crm-import-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(23, 25, 28, 0.24);
  background: #f7f8f8;
  box-shadow: 0 12px 26px rgba(23, 25, 28, 0.1);
}

.crm-import-card img {
  width: 112px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  background: #f7f8f8;
}

.crm-import-card div {
  display: grid;
  gap: 5px;
}

.crm-import-actions {
  justify-content: flex-end;
}

.crm-import-card small,
.crm-import-card em {
  color: var(--muted);
  font-style: normal;
}

.crm-pdf-preview {
  display: grid;
  place-items: center;
  width: 112px;
  height: 86px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 800;
}

.tablet-clock,
.staff-form {
  display: grid;
  gap: 14px;
  padding: 24px 0;
}

.pin-pad-input {
  min-height: 70px;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 0;
}

.checkbox-label input {
  width: 22px;
  min-height: 22px;
}

.ok-text {
  color: var(--ok);
}

.staff-alerts {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
}

.staff-alert {
  display: grid;
  gap: 4px;
  border: 0.5px solid #f1d79b;
  border-radius: 12px;
  padding: 12px;
  background: var(--warn-bg);
  color: var(--warn);
}

.staff-alert span {
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-list {
  padding-top: 6px;
}

.staff-list-item {
  width: 100%;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.staff-list-item:hover,
.staff-list-item:focus-visible,
.staff-list-item.is-selected {
  transform: translateY(-2px);
  border-color: rgba(195, 34, 40, 0.26);
  background: #fff6f6;
  box-shadow: 0 12px 26px rgba(195, 34, 40, 0.1);
}

.staff-list-item:hover span,
.staff-list-item:focus-visible span,
.staff-list-item.is-selected span {
  color: var(--accent);
}

.staff-list-item:active {
  transform: translateY(1px) scale(0.99);
  background: #ffe8e9;
}

.staff-dashboard {
  grid-column: 1 / -1;
}

.staff-workspace > .staff-dashboard {
  order: 1;
}

.staff-workspace > .branch-summary-panel {
  order: 2;
}

.staff-workspace > .weekly-trend-panel {
  order: 3;
}

.compact-actions {
  margin: 0;
}

.staff-report-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.staff-week-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.staff-report-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}

.staff-report-range label {
  min-width: 0;
  font-size: 0.82rem;
}

.staff-report-range input {
  min-height: 46px;
  padding: 10px 12px;
}

.staff-motivation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.staff-entry-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.staff-entry-row div {
  display: grid;
  gap: 4px;
}

.staff-entry-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-entry-flow {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.flow-in {
  background: #e8f7ee;
  color: #167a4a;
}

.flow-out {
  background: #ffe9e6;
  color: #bb2c20;
}

.flow-open {
  background: #fff4d9;
  color: #9b6800;
}

.staff-entry-row.needs-correction {
  margin: 8px 0;
  border: 0.5px solid #f1d79c;
  border-radius: 12px;
  padding: 12px;
  background: #fff8e8;
}

.staff-entry-row.is-voided {
  opacity: 0.62;
  background: #f7f8f8;
}

.staff-kiosk-page {
  min-height: 100vh;
  background: #f4f3f0;
}

.staff-kiosk {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(24px, 4vw, 54px);
}

.staff-kiosk-card {
  width: min(980px, 100%);
  display: grid;
  align-content: start;
  gap: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.kiosk-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.kiosk-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 74px;
  border-radius: 14px;
  background: #17191c;
  padding: 14px 22px;
}

.kiosk-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kiosk-clock {
  display: grid;
  gap: 6px;
  text-align: right;
}

.kiosk-clock strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.04em;
}

.kiosk-clock span {
  color: #a2a2a2;
  font-size: 1.25rem;
}

.kiosk-status-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-radius: 12px;
  padding: clamp(26px, 4vw, 42px);
  background: #17191c;
  color: #fff;
  box-shadow: 0 18px 42px rgba(23, 25, 28, 0.13);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.kiosk-status-card > div:first-child {
  display: flex;
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.status-icon {
  font-size: clamp(2.8rem, 5vw, 4rem);
}

.kiosk-status-card h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.kiosk-status-card p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
}

.kiosk-status-card .eyebrow {
  color: #ff474f;
}

.kiosk-status-card.status-in {
  background: #13271c;
}

.kiosk-status-card.status-break {
  background: #2b2415;
}

.kiosk-status-card.status-out {
  background: #17191c;
}

.kiosk-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}

.kiosk-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 24px;
}

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

.staff-kiosk-actions.three-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-kiosk-actions .primary-button,
.staff-kiosk-actions .ghost-button {
  min-height: 76px;
  font-size: 1.25rem;
}

.kiosk-main-action {
  width: 100%;
  min-height: 112px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
}

.kiosk-footer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.kiosk-footer-actions .action-button {
  min-height: 58px;
  font-size: 1.05rem;
}

.action-button {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1.35), box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
  will-change: transform;
}

.action-button::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.55) 42%, transparent 68%);
  transform: translateX(-140%) skewX(-18deg);
  transition: transform 560ms ease;
}

.action-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(236, 53, 72, 0.22);
  transition: opacity 220ms ease, box-shadow 220ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-9px) scale(1.025);
  filter: saturate(1.08);
  box-shadow: 0 24px 42px rgba(24, 23, 42, 0.23);
  z-index: 2;
}

.action-button:hover::after,
.action-button:focus-visible::after {
  transform: translateX(140%) skewX(-18deg);
}

.action-button:hover::before,
.action-button:focus-visible::before {
  opacity: 1;
  box-shadow: 0 0 0 8px rgba(236, 53, 72, 0.1);
}

.action-button:active {
  transform: translateY(2px) scale(0.975);
  transition-duration: 80ms;
  box-shadow: 0 10px 18px rgba(24, 23, 42, 0.15) inset;
}

.button-emoji {
  display: inline-block;
  font-size: 1.7rem;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1.35);
}

.action-button:hover .button-emoji,
.action-button:focus-visible .button-emoji {
  transform: translateY(-3px) rotate(-8deg) scale(1.28);
}

.clock-in-action {
  background: #17191c;
}

.clock-in-action:hover,
.clock-in-action:focus-visible {
  background: #08090b;
}

.clock-in-action:active {
  background: #2f3439;
}

.break-action {
  border-color: #ded8cc;
  background: #fff;
  color: #17191c;
}

.break-action:hover,
.break-action:focus-visible {
  border-color: #d89b2a;
  background: #fff0c7;
}

.break-action:active {
  background: #f5c75b;
}

.clock-out-action {
  background: #b3261e;
  color: #fff;
}

.clock-out-action:hover,
.clock-out-action:focus-visible {
  background: #8f1f19;
}

.clock-out-action:active {
  background: #d84038;
}

.logout-action {
  border-color: #bdbbb5;
  color: #777;
  background: #fff;
}

.logout-action:hover,
.logout-action:focus-visible {
  border-color: #17191c;
  color: #17191c;
}

.logout-action:active {
  background: #ece9e1;
}

.motivation-card {
  min-height: 320px;
  display: grid;
  align-content: space-between;
  border-radius: 12px;
  border: 0.5px solid #dfddd6;
  padding: 34px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 25, 28, 0.04);
}

.motivation-card .quote-mark {
  color: #ff474f;
  font-size: 2rem;
  line-height: 1;
}

.motivation-card p {
  margin: 0;
  color: #444;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
}

.motivation-card small {
  color: #b8b8b8;
  font-size: 1.05rem;
}

.kiosk-stats {
  display: grid;
  gap: 20px;
}

.stat-tile {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  border: 0.5px solid #dfddd6;
  border-radius: 12px;
  padding: 22px 28px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 25, 28, 0.04);
}

.stat-tile > span {
  font-size: 2.1rem;
}

.stat-tile strong {
  display: block;
  color: #17191c;
  font-size: 1.7rem;
}

.stat-tile small {
  display: block;
  margin-top: 6px;
  color: #a2a2a2;
  font-size: 1.05rem;
}

.stat-tile.dark {
  background: #17191c;
  color: #fff;
}

.stat-tile.dark strong {
  color: #fff;
}

.entry-panel,
.dashboard-panel,
.branch-summary-panel,
.weekly-trend-panel {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.entry-panel > *,
.branch-summary-panel > *,
.weekly-trend-panel > *,
.dashboard-panel > * {
  margin-left: 26px;
  margin-right: 26px;
}

.entry-panel > .section-head,
.branch-summary-panel > .section-head,
.weekly-trend-panel > .section-head,
.dashboard-panel > .section-head {
  margin: 0 0 0;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.dashboard-panel {
  grid-column: 1 / -1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.form-grid,
.money-grid,
.filters {
  display: grid;
  gap: 12px;
}

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

.form-grid.single-field {
  grid-template-columns: minmax(220px, 420px);
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 20%, transparent);
  border-color: var(--focus);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.is-readonly .step-card:first-of-type::before {
  content: "Bu kayıt salt okunur. Düzeltme için merkezden kilidi açın.";
  display: block;
  border-radius: 12px;
  padding: 12px;
  color: var(--ok);
  background: var(--ok-bg);
}

.section-title {
  margin: 20px 0 10px;
  font-weight: 500;
}

.header-fields {
  margin-bottom: 14px;
}

.step-card {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.step-card:last-of-type {
  border-bottom: 1px solid var(--line);
}

.step-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 28px 26px 8px;
  position: relative;
}

.step-progress::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22px;
  height: 1px;
  background: var(--line);
}

.progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #3f3f3f;
  text-align: center;
}

.progress-step span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #bdbbb5;
  border-radius: 999px;
  background: var(--surface);
  color: #3f3f3f;
  font-size: 1.1rem;
  font-weight: 500;
}

.progress-step.done span {
  border-color: #229b56;
  background: #229b56;
  color: #fff;
}

.progress-step.cash-step span {
  border-color: var(--warn);
  background: var(--warn);
  color: #fff;
}

.progress-step.active span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.progress-step small {
  max-width: 96px;
  font-size: 0.8rem;
  line-height: 1.15;
}

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

.step-head h3 {
  margin-top: 3px;
  font-size: 1.22rem;
}

.step-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.running-total,
.total-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  padding: 12px;
  background: var(--cream);
}

.running-total span,
.total-strip span,
.summary-cell span {
  color: var(--muted);
  font-size: 0.82rem;
}

.running-total strong,
.total-strip strong {
  font-size: 1.3rem;
}

.cash-field {
  border-color: #c7d8ff;
  background: var(--blue-bg);
}

.cash-split {
  display: grid;
  gap: 10px;
}

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

.summary-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 0.5px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.summary-cell.full {
  grid-column: 1 / -1;
}

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

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

.form-message {
  min-height: 20px;
  margin-top: 10px;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  color: var(--ok);
}

.status-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.submission-notice {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  border: 0.5px solid #bfe4ce;
  border-radius: 12px;
  padding: 16px;
  background: var(--ok-bg);
  color: var(--ok);
}

.submission-notice span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #d9f0e3;
  font-size: 0.78rem;
  font-weight: 500;
}

.submission-notice strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.submission-notice p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cash-difference {
  margin-top: 10px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-weight: 500;
}

.cash-difference.balanced {
  color: var(--ok);
  background: #e8f4ee;
}

.cash-difference.unbalanced {
  color: var(--danger);
  background: var(--danger-bg);
}

.field-error {
  border-color: var(--warn);
  background: #fff8ed;
}

.expense-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 190px) minmax(96px, 120px);
  gap: 8px;
  align-items: center;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fbfcfd;
}

.expense-row > * {
  min-width: 0;
}

.expense-row input[type="file"] {
  grid-column: 1 / 3;
  overflow: hidden;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.82rem;
}

.expense-delete-button {
  grid-column: 3;
  min-height: 52px;
  padding: 0 10px;
}

.expense-add-bottom {
  justify-self: stretch;
}

.note-field {
  margin-top: 16px;
}

.calculation-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f0f3f5;
}

.calculation-strip div {
  display: grid;
  gap: 4px;
}

.calculation-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.calculation-strip strong {
  font-size: 1rem;
}

.primary-button,
.ghost-button,
.small-button,
.icon-button,
.dark-button {
  border: 0.5px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
  background: var(--brand-dark);
  color: #fff;
  padding: 0 16px;
  border-color: var(--brand-dark);
}

.primary-button:hover {
  background: #000;
}

.primary-button:hover,
.primary-button:focus-visible,
.dark-button:hover,
.dark-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.ghost-button,
.small-button {
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.small-button:hover,
.small-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(23, 25, 28, 0.24);
  background: #f7f8f8;
  box-shadow: 0 12px 26px rgba(23, 25, 28, 0.1);
}

.primary-button:active,
.ghost-button:active,
.small-button:active,
.icon-button:active,
.dark-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.12);
}

.primary-button:disabled,
.ghost-button:disabled,
.small-button:disabled,
.icon-button:disabled,
.dark-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.dark-button {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
  padding: 0 14px;
}

.small-button {
  min-height: 48px;
}

.warning-button {
  border-color: #e6bf6a;
  background: #fff6dc;
  color: #9b6800;
}

.warning-button:hover,
.warning-button:focus-visible {
  border-color: #c79422;
  background: #ffefbd;
  color: #6f4800;
}

.icon-button {
  width: 48px;
  min-height: 48px;
  background: var(--danger-bg);
  color: var(--danger);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row .primary-button {
  flex: 1 1 160px;
}

.button-row .ghost-button,
.button-row .small-button {
  flex: 1 1 140px;
}

.summary-list {
  display: grid;
  gap: 0;
  padding-bottom: 22px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-weight: 500;
}

.summary-item.danger span,
.summary-item.danger strong {
  color: var(--accent);
}

.weekly-trend-panel {
  grid-column: 2;
}

.trend-list {
  display: grid;
  gap: 16px;
  padding: 24px 0 28px;
}

.trend-mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.trend-mode-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.trend-mode-switch button.active {
  color: #fff;
  background: var(--brand-dark);
}

.monthly-trend-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.monthly-trend-hero div {
  display: grid;
  gap: 4px;
}

.monthly-trend-hero span,
.monthly-trend-hero small {
  color: var(--muted);
  font-weight: 700;
}

.monthly-trend-hero strong {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
}

.monthly-trend-hero em {
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--ok);
  background: var(--ok-bg);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.monthly-trend-hero.behind em {
  color: var(--danger);
  background: var(--danger-bg);
}

.monthly-month-row {
  width: 100%;
  display: grid;
  grid-template-columns: 150px minmax(140px, 1fr) minmax(120px, 150px) 62px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.monthly-month-row:hover,
.monthly-month-row:focus-visible {
  background: #fff8ee;
  outline: none;
}

.monthly-month-row .trend-bar {
  height: 19px;
}

.monthly-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--line);
}

.monthly-detail-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
}

.monthly-detail-grid strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.monthly-detail-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 650;
}

.trend-legend {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  display: inline-block;
  width: 24px;
  height: 8px;
  border-radius: 999px;
}

.legend-current {
  background: var(--accent);
}

.legend-previous {
  background: #b9b8b2;
}

.trend-row-wrap {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
}

.trend-row-wrap.is-open {
  border-color: #d9e7dd;
  background: #fbfdfb;
}

.trend-row-wrap.is-open.behind {
  border-color: #f0c9c4;
  background: #fffaf8;
}

.trend-row {
  width: 100%;
  display: grid;
  grid-template-columns: 96px minmax(115px, 1fr) minmax(118px, 132px) 62px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 6px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.trend-row-wrap.is-open .trend-row {
  padding: 14px 16px 12px;
}

.trend-row:hover,
.trend-row:focus-visible {
  background: #fff8ee;
  outline: none;
}

.trend-day {
  display: grid;
  gap: 6px;
  align-content: center;
}

.trend-day > span {
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 500;
  line-height: 1;
}

.trend-day small {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.trend-day small.ahead {
  color: var(--ok);
  background: var(--ok-bg);
}

.trend-day small.behind {
  color: var(--danger);
  background: var(--danger-bg);
}

.trend-day small.neutral {
  color: var(--muted);
  background: #f0f2f4;
}

.trend-bars {
  display: grid;
  gap: 5px;
}

.trend-bar {
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream);
}

.trend-bar span {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.trend-row.ahead .trend-bar:not(.trend-previous) span {
  background: var(--ok);
}

.trend-row.behind .trend-bar:not(.trend-previous) span {
  background: var(--accent);
}

.trend-previous {
  height: 10px;
  background: #f0eee8;
}

.trend-previous span {
  background: #b9b8b2;
}

.trend-row.empty .trend-bar span {
  min-width: 34px;
  background: #b9b8b2;
}

.trend-row strong {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 1.24rem;
  font-weight: 600;
}

.trend-row strong small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.1;
}

.trend-toggle {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--muted);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.trend-row-wrap.is-open .trend-toggle {
  color: var(--ok);
  border-color: #c9e8d4;
}

.trend-row-wrap.is-open.behind .trend-toggle {
  color: var(--accent);
  border-color: #f0c9c4;
}

.trend-breakdown {
  display: grid;
  gap: 1px;
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.trend-breakdown.is-hidden {
  display: none;
}

.trend-breakdown-head,
.trend-breakdown-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.95fr) minmax(105px, 0.75fr) minmax(220px, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
}

.trend-breakdown-head {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.trend-breakdown-head strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.trend-channel {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
}

.trend-channel-icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--ok);
}

.trend-channel-icon.store {
  background: var(--accent);
}

.trend-channel-icon.justeat {
  background: #f28c28;
}

.trend-channel-icon.ubereats {
  background: #111316;
}

.trend-channel-icon.deliveroo {
  background: #00a8a8;
}

.trend-channel strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.trend-channel small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.trend-breakdown-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trend-breakdown-metrics span,
.trend-breakdown-metrics b,
.trend-breakdown-metrics em {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}

.trend-breakdown-metrics small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.trend-breakdown-metrics b,
.trend-breakdown-row.ahead .trend-breakdown-metrics em {
  color: var(--ok);
}

.trend-breakdown-row.behind .trend-breakdown-metrics b,
.trend-breakdown-row.behind .trend-breakdown-metrics em {
  color: var(--danger);
}

.trend-breakdown-row.neutral .trend-breakdown-metrics b,
.trend-breakdown-row.neutral .trend-breakdown-metrics em {
  color: var(--muted);
}

.trend-breakdown-row.channel-justeat .trend-bar:not(.trend-previous) span {
  background: #f28c28;
}

.trend-breakdown-row.channel-ubereats .trend-bar:not(.trend-previous) span {
  background: #111316;
}

.trend-breakdown-row.channel-deliveroo .trend-bar:not(.trend-previous) span {
  background: #00a8a8;
}

.trend-breakdown-row.channel-store .trend-bar:not(.trend-previous) span {
  background: var(--accent);
}

.trend-insight {
  padding: 12px 14px;
  color: var(--ink);
  background: #fffdf6;
  font-size: 0.9rem;
  font-weight: 650;
}

.trend-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.trend-summary-strip div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
}

.trend-summary-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.trend-summary-strip strong {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 650;
}

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

@media (max-width: 1180px) {
  .trend-breakdown-head,
  .trend-breakdown-row {
    grid-template-columns: minmax(130px, 0.9fr) minmax(90px, 0.65fr) minmax(180px, 1.25fr);
    gap: 10px;
  }

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

.filters {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.branch-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.status-item {
  border: 0.5px solid var(--line);
  border-radius: 999px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
}

.status-item.done span {
  color: var(--ok);
}

.status-item.waiting span {
  color: var(--warn);
}

.status-item.done {
  background: var(--ok-bg);
  border-color: #c9e8d4;
}

.status-item.waiting {
  background: var(--warn-bg);
  border-color: #f1d79b;
}

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

.record-card {
  border: 0.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.record-card.is-working {
  position: relative;
  border-color: #9edbb7;
  background: linear-gradient(90deg, #eaf8ef 0, #f7fffa 48%, #fff 100%);
  box-shadow: 0 16px 38px rgba(30, 128, 75, 0.12);
}

.record-card.is-working::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #2fb36f, #78c51f);
}

.record-card.needs-review:not(.is-working) {
  border-color: #f1d79c;
  background: #fffaf0;
}

.record-card.is-working .record-header {
  background: transparent;
}

.record-card.is-working .record-kicker,
.record-card.is-working .record-header strong {
  color: var(--ok);
}

.staff-report-card .status-pill {
  font-size: 1rem;
  font-weight: 650;
}

.employee-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.employee-heading > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.employee-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  background: #f2f4f1;
  color: #394150;
  font-size: 0.9rem;
  font-weight: 900;
}

.record-card.is-working .employee-avatar {
  background: #ddf5e6;
  color: #136d3d;
  box-shadow: inset 0 0 0 1px rgba(19, 109, 61, 0.12);
}

.staff-quick-stats {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.7fr;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.staff-quick-stats div {
  min-width: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
}

.staff-quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staff-quick-stats strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
  font-weight: 850;
}

.record-card.is-working .staff-quick-stats strong {
  color: #2d7b46;
}

.record-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
}

.record-header strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 500;
}

.record-kicker,
.record-meta span,
.record-channel span,
.record-total span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.record-kicker,
.record-meta span,
.record-total span {
  text-transform: uppercase;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-draft {
  background: var(--warn-bg);
  color: var(--warn);
}

.status-submitted {
  background: #eaf2ff;
  color: #2459c7;
}

.status-locked {
  background: var(--ok-bg);
  color: #167a4a;
}

.status-live {
  background: #dff5e8;
  color: #117340;
  box-shadow: inset 0 0 0 1px rgba(17, 115, 64, 0.12);
}

.status-void {
  background: var(--danger-bg);
  color: var(--danger);
}

.record-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.record-meta div {
  min-width: 0;
  padding: 12px 16px;
  background: #f8fafc;
}

.record-meta strong,
.record-channel strong,
.record-total strong {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  background: #fff;
  border-top: 1px solid var(--line);
}

.record-channel {
  min-width: 0;
  background: #fff;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-channel.store-channel {
  background: #fff8e8;
}

.record-channel.store-channel strong {
  color: var(--warn);
  font-weight: 650;
}

.record-channel:last-child {
  border-right: 0;
}

.record-totals {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
}

.record-total {
  min-width: 0;
  background: #fff;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.record-total:last-child {
  border-right: 0;
}

.closing-actions {
  display: grid;
  gap: 1px;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.closing-actions > span {
  padding: 12px 16px;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.closing-action-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
}

.closing-action-row > div:first-child {
  display: grid;
  gap: 3px;
}

.closing-action-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.staff-day-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.staff-day-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
}

.staff-day-row span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-weight: 500;
}

.staff-day-row span b {
  color: var(--muted);
}

.staff-day-row span em {
  color: var(--ink);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

.staff-day-row strong {
  font-weight: 600;
  text-align: right;
}

.staff-day-action {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.icon-edit-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-edit-button:hover,
.icon-edit-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23, 25, 28, 0.3);
  background: #f7f8f8;
  box-shadow: 0 10px 22px rgba(23, 25, 28, 0.12);
}

.icon-edit-button:active {
  transform: translateY(1px) scale(0.96);
}

.icon-edit-button.needs-attention {
  border-color: #e6bf6a;
  background: #fff6dc;
  color: #9b6800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 17, 20, 0.46);
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.modal-card .section-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin: -4px -4px 18px;
  padding: 4px 4px 18px;
}

.modal-card textarea {
  resize: vertical;
}

.correction-current {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.correction-current div {
  display: grid;
  gap: 4px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.correction-current span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.correction-current strong {
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 18px;
}

.staff-day-row.empty {
  color: var(--muted);
  background: #f8fafc;
}

.record-action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.record-action-bar .small-button {
  min-width: 108px;
  min-height: 38px;
}

.danger-button {
  color: var(--danger);
  border-color: #f1c4c7;
  background: #fff;
}

.danger-button:hover,
.danger-button:focus-visible {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 12px 26px rgba(195, 34, 40, 0.18);
}

.expense-report {
  margin-top: 18px;
}

.expense-report h3 {
  margin-bottom: 10px;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.audit-list {
  display: grid;
}

.audit-list .report-row {
  align-items: center;
}

.audit-list .report-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-list .report-row strong::before {
  content: "•";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.audit-list .report-row.audit-staff-out strong::before {
  content: "←";
  background: #ffe9e6;
  color: #bb2c20;
}

.audit-list .report-row.audit-staff-edit strong::before {
  content: "✎";
  background: #fff4d9;
  color: #9b6800;
}

.audit-list .report-row span {
  color: var(--muted);
  text-align: right;
}

.audit-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.audit-pagination span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.audit-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1000px) {
  .workspace,
  .summary-band,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .weekly-trend-panel {
    grid-column: auto;
  }

  .metric,
  .summary-title {
    min-height: 82px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: 100%;
    padding: 0 0 18px;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 24px;
    padding: 18px;
  }

  .hero-panel,
  .summary-band,
  .workspace,
  .module-tabs,
  .staff-module > .summary-band,
  .staff-module > .workspace,
  .stock-module,
  .crm-module > .summary-band,
  .crm-module > .workspace,
  .crm-module > .records-panel {
    margin-left: 14px;
    margin-right: 14px;
  }

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

  .crm-import-card {
    grid-template-columns: 72px 1fr;
  }

  .crm-import-card img,
  .crm-pdf-preview {
    width: 72px;
    height: 62px;
  }

  .crm-card-actions,
  .crm-order-actions,
  .crm-import-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .crm-card-actions .small-button,
  .crm-order-actions .small-button,
  .crm-import-actions .small-button {
    flex: 1 1 130px;
  }

  .crm-filter-bar {
    justify-content: stretch;
    width: 100%;
  }

  .crm-customer-list {
    max-height: 340px;
  }

  .crm-filter-bar .crm-search,
  .crm-filter {
    flex: 1 1 calc(50% - 8px);
  }

  .crm-filter-bar .crm-search {
    flex-basis: 100%;
  }

  .crm-export-button {
    flex: 1 1 calc(50% - 8px);
  }

  .module-tabs {
    width: auto;
    margin-top: -10px;
  }

  .module-tab {
    flex: 1;
    padding: 0 10px;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.1rem;
  }

  .entry-panel,
  .dashboard-panel,
  .branch-summary-panel,
  .weekly-trend-panel {
    padding: 0;
  }

  .summary-band {
    gap: 10px;
    margin-bottom: 12px;
  }

  .metric,
  .summary-title {
    min-height: 76px;
    padding: 13px;
  }

  .metric strong {
    font-size: 1.35rem;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 1rem;
  }

  .section-title {
    margin-top: 16px;
  }

  .top-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .money-grid,
  .filters,
  .branch-status,
  .calculation-strip {
    grid-template-columns: 1fr;
  }

  .step-progress {
    margin-left: 14px;
    margin-right: 14px;
  }

  .entry-panel > *,
  .branch-summary-panel > *,
  .weekly-trend-panel > *,
  .dashboard-panel > * {
    margin-left: 14px;
    margin-right: 14px;
  }

  .entry-panel > .section-head,
  .branch-summary-panel > .section-head,
  .weekly-trend-panel > .section-head,
  .dashboard-panel > .section-head {
    padding: 18px 14px;
  }

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

  .expense-row input[type="file"],
  .expense-delete-button {
    grid-column: auto;
  }

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

  .audit-list .report-row,
  .audit-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-list .report-row span {
    text-align: left;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    padding: 18px;
  }

  .correction-current {
    grid-template-columns: 1fr;
  }

  .modal-actions > * {
    width: 100%;
  }

  .trend-list {
    gap: 8px;
    padding: 12px 0 14px;
  }

  .trend-legend {
    gap: 12px;
    font-size: 0.9rem;
  }

  .trend-legend i {
    width: 22px;
    height: 7px;
  }

  .trend-mode-switch {
    width: 100%;
  }

  .trend-mode-switch button {
    flex: 1;
    padding: 8px 10px;
  }

  .monthly-trend-hero {
    align-items: flex-start;
    padding: 12px;
  }

  .monthly-trend-hero strong {
    font-size: 1.45rem;
  }

  .monthly-trend-hero small {
    font-size: 0.8rem;
  }

  .monthly-trend-hero em {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .trend-row-wrap {
    border-radius: 10px;
  }

  .trend-row,
  .monthly-month-row {
    grid-template-columns: 76px minmax(0, 1fr) 78px;
    gap: 8px;
    padding: 7px 0;
  }

  .trend-row-wrap.is-open .trend-row,
  .trend-row-wrap.is-open .monthly-month-row {
    padding: 8px 10px;
  }

  .trend-row .trend-bars,
  .monthly-month-row .trend-bars {
    grid-column: 2;
    grid-row: 1;
  }

  .trend-day {
    gap: 4px;
  }

  .trend-day > span {
    font-size: 1.35rem;
  }

  .trend-day small {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .trend-bar {
    height: 10px;
  }

  .monthly-month-row .trend-bar {
    height: 13px;
  }

  .trend-previous {
    height: 7px;
  }

  .trend-row strong,
  .monthly-month-row strong {
    gap: 1px;
    text-align: right;
    font-size: 1.05rem;
  }

  .trend-row strong small,
  .monthly-month-row strong small {
    display: none;
  }

  .trend-toggle {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

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

  .trend-summary-strip div {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 10px 8px;
    text-align: center;
  }

  .trend-summary-strip span {
    font-size: 0.68rem;
  }

  .trend-summary-strip strong {
    font-size: 1rem;
  }

  .trend-breakdown {
    margin: 0 8px 10px;
  }

  .trend-breakdown-head {
    display: none;
  }

  .trend-breakdown-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

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

  .staff-kiosk {
    padding: 12px;
  }

  .kiosk-topline,
  .kiosk-status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .kiosk-clock {
    width: 100%;
    text-align: left;
  }

  .kiosk-logo {
    width: 190px;
    height: 62px;
  }

  .kiosk-content-grid,
  .kiosk-footer-actions {
    grid-template-columns: 1fr;
  }

  .motivation-card {
    min-height: 220px;
    padding: 24px;
  }

  .staff-kiosk-actions {
    grid-template-columns: 1fr;
  }

  .staff-kiosk-actions.three-actions {
    grid-template-columns: 1fr;
  }

  .record-header {
    flex-direction: column;
  }

  .staff-report-actions {
    justify-items: stretch;
    width: 100%;
  }

  .staff-week-shortcuts {
    justify-content: stretch;
  }

  .staff-week-shortcuts .small-button {
    flex: 1 1 120px;
  }

  .staff-report-range,
  .staff-motivation-summary {
    grid-template-columns: 1fr;
  }

  .record-meta,
  .record-totals {
    grid-template-columns: 1fr;
  }

  .record-action-bar {
    justify-content: stretch;
  }

  .record-action-bar .small-button {
    flex: 1 1 130px;
  }

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

  .record-channel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 18px 0 0;
    padding: 12px 14px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .split-title {
    align-items: stretch;
  }

  .small-button {
    width: 100%;
  }

  .calculation-strip {
    gap: 8px;
    padding: 10px;
  }

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

@media print {
  body.printing-staff .topbar,
  body.printing-staff .module-tabs,
  body.printing-staff .hero-panel,
  body.printing-staff #closingModule,
  body.printing-staff .staff-summary-band,
  body.printing-staff .tablet-clock-panel,
  body.printing-staff .branch-summary-panel,
  body.printing-staff .weekly-trend-panel,
  body.printing-staff .staff-dashboard .section-head .staff-report-actions,
  body.printing-staff .staff-dashboard .expense-report {
    display: none !important;
  }

  body.printing-staff .app-shell,
  body.printing-staff .staff-module > .workspace {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.printing-staff .staff-dashboard {
    display: block !important;
    border: 0;
  }

  body.printing-staff .record-card {
    break-inside: avoid;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 1.85rem;
  }

  .login-card {
    margin-top: 12px;
    padding: 18px;
  }

  .today-pill,
  .ghost-button {
    width: 100%;
    text-align: center;
  }

  .entry-panel,
  .dashboard-panel,
  .branch-summary-panel {
    border-radius: 8px;
  }

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