:root {
  --red: #e60000;
  --red-dark: #b00000;
  --black: #111111;
  --black-fixed: #111111;
  --ink: #242424;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f7f8;
  --surface: #ffffff;
  --paper: #ffffff;
  --white: #ffffff;
  --white-fixed: #ffffff;
  --field-border: #cfd3da;
  --preview: #fff4f4;
  --sticky-topbar-offset: 76px;
  --sticky-table-offset: 126px;
}

html[data-theme="dark"] {
  --black: #f5f5f5;
  --ink: #eceff3;
  --muted: #aab1bd;
  --line: #333842;
  --soft: #111318;
  --surface: #202630;
  --paper: #202630;
  --white: #1b1f27;
  --field-border: #48505d;
  --preview: #341b1b;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --black: #f5f5f5;
    --ink: #eceff3;
    --muted: #aab1bd;
    --line: #333842;
    --soft: #111318;
    --surface: #202630;
    --paper: #202630;
    --white: #1b1f27;
    --field-border: #48505d;
    --preview: #341b1b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  min-width: 0;
  overflow-x: hidden;
}

.appearance-stage {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.appearance-background {
  background-image: var(--appearance-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(72vw, 980px) auto;
  inset: 0;
  opacity: 0.09;
  position: absolute;
}

.appearance-layer {
  opacity: var(--layer-opacity, 0.16);
  position: absolute;
  z-index: var(--layer-z, 0);
}

.appearance-layer img {
  display: block;
  height: auto;
  max-height: 42vh;
  max-width: min(32vw, 360px);
  object-fit: contain;
  width: var(--layer-size, 140px);
}

.appearance-layer-tiled {
  background-image: var(--layer-image);
  background-repeat: repeat;
  background-size: var(--layer-size, 140px);
  inset: 0;
}

.appearance-position-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.appearance-position-top-left {
  left: 18px;
  top: 18px;
}

.appearance-position-top-right {
  right: 18px;
  top: 18px;
}

.appearance-position-bottom-left {
  bottom: 18px;
  left: 18px;
}

.appearance-position-bottom-right {
  bottom: 18px;
  right: 18px;
}

.appearance-position-top-center {
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.appearance-position-bottom-center {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.appearance-position-left-center {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.appearance-position-right-center {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.appearance-layer-passing {
  left: -20vw;
  opacity: 0;
  top: 12vh;
}

.appearance-layer-passing.is-running {
  animation: appearance-pass var(--layer-speed, 18s) linear 1;
  opacity: var(--layer-opacity, 0.16);
}

@keyframes appearance-pass {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(140vw);
  }
}

.page {
  position: relative;
  z-index: 10;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 700;
}

.tabs {
  position: sticky;
  top: var(--sticky-topbar-offset);
  z-index: 650;
}

.quick-nav {
  z-index: 80;
}

.system-version {
  z-index: 90;
}

body[data-main-admin="true"] .data-table td,
body[data-main-admin="true"] .data-table th,
body[data-main-admin="true"] .product-result-main,
body[data-main-admin="true"] .product-result-badge {
  user-select: text;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 24px;
}

.login-page .topbar {
  min-height: 94px;
}

.login-page .brand {
  visibility: hidden;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 1 420px;
  font-weight: 800;
  gap: 14px;
  line-height: 1.18;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  height: 66px;
  width: 90px;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-size: 20px;
  max-width: 360px;
  overflow-wrap: anywhere;
}

.brand-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .brand-logo-light {
    display: none;
  }

  html[data-theme="auto"] .brand-logo-dark {
    display: block;
  }
}

.logout-form,
.store-switch-form,
.actions,
.inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar .logout-form {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.topbar .user-chip {
  max-width: min(280px, 24vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-control {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  position: relative;
  z-index: 340;
}

.theme-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.theme-picker {
  position: relative;
}

.theme-current {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 5px 14px 5px 6px;
}

.theme-current-icon,
.theme-options [data-theme-value] > span {
  align-items: center;
  background: color-mix(in srgb, var(--soft) 86%, var(--white));
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 17px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.theme-current-label {
  font-size: 13px;
  font-weight: 800;
  min-width: 38px;
  text-align: left;
}

.theme-options {
  align-items: center;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  display: flex;
  gap: 7px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  transform: translateY(-4px) scale(0.96);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 360;
}

.theme-control:hover .theme-options,
.theme-control:focus-within .theme-options,
.theme-control.is-open .theme-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.theme-options [data-theme-value] {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 52px;
  padding: 4px;
}

.theme-options [data-theme-value].is-active > span {
  background: var(--red);
  color: var(--white-fixed);
}

.theme-options small {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.store-switch-form select {
  min-height: 32px;
  min-width: 170px;
  padding: 5px 24px 5px 8px;
  width: auto;
}

.topbar .store-switch-form {
  flex: 1 1 260px;
  min-width: 180px;
}

.topbar .store-switch-form select {
  width: 100%;
}

.actions form,
.compact-field {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-field select {
  min-height: 40px;
  min-width: 210px;
  width: auto;
}

.back-button {
  min-height: 32px;
  padding: 5px 12px;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[data-money-input="true"] {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.inline-form input[type="number"] {
  max-width: 120px;
  min-width: 82px;
  text-align: right;
}

.auto-adjust-form {
  flex-wrap: nowrap;
}

.auto-adjust-form input {
  min-width: 96px;
}

.compact-actions {
  align-items: stretch;
  flex-wrap: nowrap;
}

.compact-actions .inline-form {
  flex-wrap: nowrap;
}

.compact-actions input {
  max-width: 140px;
}

.shipment-source-form select {
  min-width: 180px;
}

.compact-hint {
  align-items: center;
  display: inline-flex;
  min-height: 40px;
}

.user-chip,
.status {
  background: var(--black-fixed);
  color: var(--white-fixed);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.status-badge {
  border: 1px solid transparent;
  border-radius: 999px;
  letter-spacing: 0;
}

.status-open {
  background: #fff3bf;
  border-color: #e6b800;
  color: #5c4300;
}

.status-received {
  background: #d9f7df;
  border-color: #1f8f3a;
  color: #146c2e;
}

.status-deleted {
  background: #ffe0e0;
  border-color: #d70000;
  color: #a00000;
}

.status-separation {
  background: #dceeff;
  border-color: #1d6fd1;
  color: #174f95;
}

.status-transit {
  background: #eadcff;
  border-color: #7c3aed;
  color: #5620a6;
}

.status-neutral {
  background: #edf0f5;
  border-color: #9aa4b2;
  color: #384152;
}

.status-warning {
  background: #fff3bf;
  border-color: #e6b800;
  color: #5c4300;
}

.tabs {
  background: var(--black-fixed);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 20px;
}

.tabs a,
.nav-trigger {
  background: transparent;
  border: 0;
  color: var(--white-fixed);
  font-size: 14px;
  font-weight: 700;
  min-height: 0;
  padding: 14px 12px;
}

.tabs a:hover,
.nav-trigger:hover,
.nav-group.is-open .nav-trigger,
.nav-group:hover .nav-trigger {
  background: var(--red);
  color: var(--white-fixed);
}

.nav-direct,
.nav-group {
  position: relative;
  z-index: 210;
}

.nav-group.is-open,
.nav-group:hover,
.nav-group:focus-within {
  z-index: 260;
}

.nav-trigger {
  align-items: center;
  display: inline-flex;
  height: 100%;
}

.nav-trigger::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  margin-left: 8px;
  transition: transform 0.16s ease;
}

.nav-group.is-open .nav-trigger::after,
.nav-group:hover .nav-trigger::after,
.nav-group:focus-within .nav-trigger::after {
  transform: rotate(180deg);
}

.nav-menu {
  background: var(--black-fixed);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  display: grid;
  left: 0;
  max-height: 0;
  min-width: 190px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 100%;
  transform: translateY(-6px);
  transition: max-height 0.18s ease, opacity 0.14s ease, transform 0.18s ease;
  z-index: 270;
}

.nav-group.is-open .nav-menu,
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  max-height: 340px;
  opacity: 1;
  overflow-y: auto;
  transform: translateY(0);
}

.nav-menu a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.page {
  margin: 0 auto;
  max-width: none;
  padding: 24px 18px;
  width: 100%;
}

.page-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1,
h2 {
  color: var(--black);
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.panel,
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  margin-bottom: 18px;
  overflow: visible;
  padding: 18px;
}

.panel.narrow {
  max-width: 720px;
}

.panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cash-print-settings {
  border-left: 4px solid var(--red);
}

.cash-print-settings .panel-head {
  align-items: flex-start;
}

.cash-print-settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}

.cash-print-settings-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.cash-print-settings [data-receipt-print-status] {
  border-left: 3px solid #16a34a;
  color: var(--ink);
  font-weight: 700;
  margin: 12px 0 0;
  padding-left: 10px;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button img {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
}

.metric-wide {
  grid-column: span 2;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  color: var(--black);
  display: block;
  font-size: 30px;
}

.scan-live-summary {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0 6px;
}

.scan-live-summary .metric {
  padding: 14px 16px;
}

.scan-live-summary .metric span {
  font-size: 14px;
  margin-bottom: 6px;
}

.scan-live-summary .metric strong {
  font-size: 34px;
  line-height: 1;
}

.category-summary {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-summary div {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding-top: 8px;
}

.category-summary a {
  align-items: baseline;
  border-top: 1px solid var(--line);
  color: inherit;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding-top: 8px;
  text-decoration: none;
}

.category-summary b {
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-summary strong {
  font-size: 20px;
  margin-left: 10px;
}

.order-request-head {
  align-items: flex-start;
}

.order-request-head > div {
  order: 1;
}

.order-stock-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  flex: 0 1 760px;
  margin-left: auto;
  order: 2;
  padding: 12px 14px;
}

.order-stock-summary h2,
.stock-summary-panel h2 {
  color: var(--red);
  font-size: 21px;
  margin: 0 0 6px;
  text-align: center;
}

.order-stock-summary .category-summary,
.stock-classification-summary {
  gap: 6px;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
}

.order-stock-summary .category-summary a,
.stock-classification-summary a {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
  justify-content: stretch;
  min-height: 50px;
  padding: 6px 8px;
}

.order-stock-summary .category-summary b,
.stock-classification-summary b {
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}

.order-stock-summary .category-summary strong,
.stock-classification-summary strong {
  font-size: 19px;
  line-height: 1;
  margin-left: 0;
  text-align: right;
}

.stock-summary-panel {
  max-width: none;
  padding: 14px 18px;
}

.stock-summary-panel .panel-head {
  margin-bottom: 10px;
}

.stock-summary-panel .muted {
  margin: 0;
}

.inline-autosave-field {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 190px;
}

.stock-classification-select {
  min-width: 176px;
}

.mini-autosave-status {
  font-size: 11px;
  margin: 0;
  min-width: 40px;
}

.mini-autosave-status[data-state="saved"] {
  color: #047857;
}

.mini-autosave-status[data-state="error"] {
  color: var(--red);
}

.compact-note {
  margin: 0;
}

.form-note {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.form-note strong {
  color: var(--ink);
}

html[data-theme="dark"] .form-note {
  background: #151515;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .form-note {
    background: #151515;
  }
}

.action-tile {
  display: grid;
  gap: 12px;
}

.two-column {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.conference-layout {
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
}

.document-detail-layout {
  display: grid;
  gap: 18px;
}

.document-scan-panel .scan-form {
  align-items: end;
  grid-template-columns: minmax(260px, 2fr) repeat(auto-fit, minmax(140px, 1fr));
}

.document-scan-panel .product-preview,
.document-scan-panel .button {
  align-self: stretch;
}

.button,
button {
  background: var(--white);
  border: 1px solid var(--black);
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  overflow-wrap: anywhere;
  padding: 10px 14px;
  text-align: center;
}

.button:hover,
button:hover {
  border-color: var(--red);
  color: var(--red);
}

.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-fixed);
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white-fixed);
}

.button-danger {
  background: var(--black-fixed);
  border-color: var(--black-fixed);
  color: var(--white-fixed);
}

.button-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white-fixed);
}

.button-dark {
  background: var(--black-fixed);
  color: var(--white-fixed);
}

body.dialog-open {
  overflow: hidden;
}

.dialog-backdrop {
  align-items: center;
  background: rgba(17, 17, 17, 0.42);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 20px;
  position: fixed;
  z-index: 2000;
}

.system-dialog {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 18px;
  max-height: min(88vh, 620px);
  max-width: 560px;
  overflow: auto;
  padding: 26px;
  width: min(92vw, 560px);
}

.system-dialog-head {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.system-dialog-head h2 {
  font-size: 24px;
  line-height: 1.18;
  margin: 0;
}

.system-dialog-success .system-dialog-head {
  border-bottom-color: #146c2e;
}

.system-dialog-success .eyebrow,
.system-dialog-success .system-dialog-head h2 {
  color: #146c2e;
}

.system-dialog-success .button-primary {
  background: #146c2e;
  border-color: #146c2e;
}

.system-dialog-error .system-dialog-head {
  border-bottom-color: var(--red);
}

.system-dialog-error .eyebrow,
.system-dialog-error .system-dialog-head h2 {
  color: var(--red);
}

.system-dialog-message {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.system-dialog-input {
  background: var(--white);
  border: 2px solid var(--black);
  color: var(--ink);
  font: inherit;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.system-dialog-input:focus {
  border-color: var(--red);
  outline: 2px solid rgba(215, 0, 0, 0.14);
}

.system-dialog-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  margin: -8px 0 0;
}

.system-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.system-dialog-actions .button {
  min-width: 96px;
}

.system-dialog-choice-red .system-dialog-actions .button {
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
}

.system-dialog-choice-red .system-dialog-actions .button:hover,
.system-dialog-choice-red .system-dialog-actions .button:focus,
.system-dialog-choice-red .system-dialog-actions .button:focus-visible,
.system-dialog-choice-red .system-dialog-actions .button:active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-fixed);
}

.system-dialog-choice-red .system-dialog-actions .button:focus-visible {
  outline: 3px solid rgba(215, 0, 0, 0.2);
  outline-offset: 2px;
}

.table-link,
.table-button {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.table-button {
  background: transparent;
  border: 0;
  min-height: auto;
  padding: 0;
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

tr[data-deleting="true"] {
  opacity: 0.55;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior: contain;
}

.conference-lines-table {
  min-width: 560px;
}

.conference-comparison-table {
  min-width: 760px;
}

.document-items-table {
  min-width: 1060px;
  table-layout: fixed;
}

.document-items-table th:first-child,
.document-items-table td:first-child {
  width: 150px;
}

.document-items-table th:nth-child(2),
.document-items-table td:nth-child(2) {
  width: 340px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.document-items-table th:nth-child(3),
.document-items-table td:nth-child(3),
.document-items-table th:nth-child(4),
.document-items-table td:nth-child(4) {
  width: 130px;
}

.document-items-table th:nth-child(5),
.document-items-table td:nth-child(5) {
  width: 130px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.document-items-table th:nth-child(6),
.document-items-table td:nth-child(6),
.document-items-table th:nth-child(7),
.document-items-table td:nth-child(7) {
  width: 140px;
}

.document-items-table th:last-child,
.document-items-table td:last-child {
  width: 90px;
  white-space: nowrap;
}

.data-table input[type="number"],
.data-table input[inputmode="decimal"] {
  max-width: 132px;
  min-width: 88px;
  text-align: right;
}

.conference-lines-table td:nth-child(2),
.conference-comparison-table td:nth-child(2) {
  min-width: 180px;
}

.conference-lines-table th:last-child,
.conference-lines-table td:last-child {
  min-width: 88px;
  text-align: right;
  white-space: nowrap;
}

.audit-event-table {
  min-width: 920px;
}

.audit-action {
  max-width: 430px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.audit-note {
  max-width: 260px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--paper);
  box-shadow: inset 0 -1px 0 var(--line);
  color: var(--black);
  font-size: 12px;
  text-transform: uppercase;
}

.panel .data-table th,
.table-scroll .data-table th {
  background: var(--paper);
}

.floating-table-head {
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  display: none;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 620;
}

.floating-table-head.is-visible {
  display: block;
}

.floating-table-head table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.floating-table-head .data-table th {
  background: var(--paper);
  position: static;
  top: auto;
  z-index: auto;
}

.sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 4px;
}

.sort-link:hover,
.sort-link.is-active {
  color: var(--red);
}

.sort-indicator {
  color: var(--red);
  font-weight: 900;
  margin-left: 3px;
}

.select-column {
  text-align: center !important;
  width: 44px;
}

.bulk-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.danger-panel {
  border-color: rgba(215, 0, 0, 0.35);
}

.danger-panel input {
  max-width: 180px;
}

.status-cell {
  text-align: center !important;
}

.state-marker {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-width: 78px;
  padding: 5px 8px;
  text-align: center;
}

.state-marker::before {
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.state-active {
  background: rgba(20, 108, 46, 0.08);
  color: #146c2e;
}

.state-active::before {
  background: #146c2e;
}

.state-inactive {
  background: var(--soft);
  color: var(--muted);
}

.state-inactive::before {
  background: var(--muted);
}

.number {
  font-weight: 800;
  text-align: right;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.autosave-status,
.mini-save-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.autosave-status {
  border-left: 4px solid var(--line);
  margin: 0;
  padding: 8px 10px;
}

.autosave-status[data-state="saved"],
.mini-save-status[data-state="saved"] {
  color: #146c2e;
}

.autosave-status[data-state="saving"],
.mini-save-status[data-state="saving"] {
  color: #9a6700;
}

.autosave-status[data-state="error"],
.mini-save-status[data-state="error"] {
  color: var(--red);
}

.item-quantity-form {
  justify-content: flex-end;
}

.item-quantity-form input[type="number"] {
  max-width: 86px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-title {
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
}

.field-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.permission-topic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
}

.permission-panel {
  padding: 14px;
}

.permission-topic-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  margin-bottom: 10px;
}

.permission-topic h3 {
  color: var(--black);
  font-size: 13px;
  margin: 0;
}

.permission-topic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.permission-list ul,
.checkbox-group ul,
.permission-list div[id^="id_"],
.checkbox-group div[id^="id_"] {
  display: grid;
  gap: 6px 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.permission-list li,
.checkbox-group li,
.permission-list div[id^="id_"] > div,
.checkbox-group div[id^="id_"] > div {
  margin: 0;
}

.checkbox-line {
  align-items: center;
  display: flex;
  gap: 8px;
}

.flag-actions {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  justify-content: flex-end;
}

.checkbox-card,
.permission-list label,
.checkbox-group label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1.25;
  min-height: 34px;
  padding: 7px 9px;
  text-align: center;
}

.checkbox-card {
  justify-self: start;
  min-width: 180px;
}

.permission-list label,
.checkbox-group label {
  width: 100%;
}

.flag-grid {
  display: grid;
  gap: 8px 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 8px;
}

.flag-grid .checkbox-card {
  justify-self: stretch;
  min-height: 38px;
  min-width: 0;
  width: 100%;
}

.unit-filter-field {
  max-width: 420px;
  position: relative;
}

.unit-filter-dropdown {
  position: relative;
  width: 100%;
}

.unit-filter-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--field-border);
  color: var(--black);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 34px 9px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}

.unit-filter-toggle::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--black);
  content: "";
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.unit-filter-toggle[aria-expanded="true"] {
  border-color: var(--red);
}

.unit-filter-toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.unit-filter-menu {
  background: var(--white);
  border: 1px solid var(--field-border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 10px;
  left: 0;
  max-height: 390px;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  width: min(420px, calc(100vw - 32px));
  z-index: 180;
}

.unit-filter-menu[hidden] {
  display: none;
}

.unit-filter-menu-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.unit-filter-search {
  min-height: 36px;
}

.unit-filter-list {
  display: grid;
  gap: 0;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.unit-filter-list .unit-filter-option {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  justify-content: flex-start;
  min-height: 32px;
  padding: 7px 4px;
  text-align: left;
}

.unit-filter-list .unit-filter-option:hover {
  background: var(--preview);
}

.unit-filter-empty {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.order-request-grid {
  display: grid;
  gap: 14px;
}

.order-request-total-grid {
  grid-template-columns: minmax(180px, 280px);
  margin-bottom: 12px;
}

.request-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.request-section-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.request-section-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.request-section-head h3 {
  color: var(--black);
  font-size: 13px;
  margin: 0;
}

.request-section-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-section-required .request-section-head span {
  color: var(--red);
}

.request-field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.request-field-grid label {
  font-size: 12px;
}

.access-form label,
.access-form .field-title,
.access-form small {
  font-size: 12px;
}

label {
  color: var(--black);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--field-border);
  color: var(--black);
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.appearance-theme-list {
  display: grid;
  gap: 12px;
}

.appearance-theme-card,
.appearance-media-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.appearance-theme-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.appearance-theme-card h3 {
  margin: 2px 0 6px;
}

.appearance-media-grid {
  display: grid;
  gap: 10px;
}

.appearance-media-card {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.appearance-media-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.appearance-studio-panel {
  border-color: color-mix(in srgb, var(--red) 22%, var(--line));
}

.appearance-studio-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.appearance-studio-form .appearance-media-picker,
.appearance-studio-form .form-note,
.appearance-studio-form .button {
  grid-column: 1 / -1;
}

.appearance-media-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.appearance-media-picker > strong {
  display: block;
  margin-bottom: 4px;
}

.appearance-media-picker ul {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.appearance-media-picker li label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.appearance-media-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.appearance-media-choice {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 62px minmax(0, 1fr);
  padding: 10px;
}

.appearance-media-choice:hover {
  border-color: color-mix(in srgb, var(--red) 38%, var(--line));
}

.appearance-media-choice small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.appearance-thumb {
  align-items: center;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--line) 65%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--line) 65%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--line) 65%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--line) 65%, transparent) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 62px;
  justify-content: center;
  overflow: hidden;
  width: 62px;
}

.appearance-thumb img {
  max-height: 54px;
  max-width: 54px;
  object-fit: contain;
}

.appearance-preview-pair {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appearance-preview {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 170px;
  padding: 16px;
}

.appearance-preview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.appearance-preview img {
  max-height: 96px;
  max-width: min(100%, 240px);
  object-fit: contain;
}

.appearance-preview-light {
  background: #ffffff;
  color: #111111;
}

.appearance-preview-dark {
  background: #111318;
  color: #ffffff;
}

input[type="checkbox"] {
  accent-color: var(--red);
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.password-field {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.password-field input {
  border-right: 0;
}

.password-reveal {
  align-items: center;
  border-color: var(--field-border);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: 2px solid rgba(215, 0, 0, 0.14);
}

.filter-bar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr) auto;
  margin-bottom: 18px;
}

@keyframes revealDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-panel,
.product-search-results,
.checkbox-group {
  animation: revealDown 0.16s ease-out;
}

.filter-bar-wide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.filter-bar input:only-child {
  grid-column: span 2;
}

.report-filters {
  display: grid;
  gap: 14px;
}

.panel.report-filters {
  overflow: visible;
}

.filter-section {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

select[multiple] {
  min-height: 132px;
}

.selected-row td {
  background: var(--preview);
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message {
  background: var(--black-fixed);
  color: var(--white-fixed);
  font-weight: 700;
  padding: 12px 14px;
}

.message.success {
  background: #146c2e;
}

.message.error {
  background: var(--red);
}

.product-preview {
  background: var(--preview);
  border-left: 4px solid var(--red);
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
  min-height: 44px;
  padding: 12px;
  text-align: center;
}

.product-preview[data-state="missing"] {
  background: var(--red);
  color: var(--white-fixed);
  font-size: 24px;
}

.product-search-results {
  background: var(--surface);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  container-type: inline-size;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
  width: 100%;
}

.product-search-results-wide {
  margin-top: 14px;
  scroll-margin-top: 18px;
}

.product-search-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.product-search-head strong {
  color: var(--black);
  display: block;
  font-size: 18px;
}

.product-search-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.product-search-list {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.product-result-row {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr) 120px;
  padding: 12px;
}

.product-result-row:hover,
.product-result-row.is-selected {
  background: var(--preview);
  border-left-color: var(--red);
}

.product-result-check {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--black);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  justify-items: center;
  min-height: 76px;
  padding: 8px;
  text-transform: uppercase;
}

.product-result-check input {
  height: 18px;
  width: 18px;
}

.product-result-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-result-main strong {
  color: var(--black);
  display: block;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-result-badge {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--black);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
}

.product-result-badge b {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.product-result-quantity {
  color: var(--black);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  text-transform: uppercase;
}

.product-result-quantity input {
  min-width: 0;
  text-align: right;
}

.product-search-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 10px;
}

.product-search-foot > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@container (max-width: 620px) {
  .product-search-head,
  .product-result-row,
  .product-search-foot,
  .product-search-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-result-check {
    display: flex;
    justify-content: flex-start;
    min-height: 0;
  }

  .product-result-quantity {
    max-width: 180px;
  }
}

.camera-scan-button {
  justify-self: start;
  margin-top: 6px;
  min-height: 34px;
  padding: 6px 12px;
}

.camera-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 1900;
}

.camera-modal[hidden] {
  display: none;
}

.camera-dialog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 16px;
  width: min(100%, 560px);
}

.camera-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.camera-head h2 {
  margin: 0;
}

.camera-stage {
  background: var(--black-fixed);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.camera-video {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.camera-guide {
  border: 3px solid var(--red);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18);
  height: 34%;
  left: 10%;
  pointer-events: none;
  position: absolute;
  right: 10%;
  top: 33%;
}

.camera-status {
  background: var(--preview);
  border-left: 4px solid var(--red);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  padding: 10px;
}

.camera-status[data-state="missing"] {
  background: var(--red);
  color: var(--white-fixed);
}

.camera-confirm {
  border: 1px solid var(--red);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.camera-confirm[hidden] {
  display: none;
}

.camera-confirm strong {
  color: var(--black);
  font-size: 15px;
}

.camera-confirm span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.camera-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.page-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-nav {
  align-items: center;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 4px;
  margin: 18px 16px 0 auto;
  padding: 6px;
  position: static;
  width: max-content;
}

.quick-nav a,
.quick-nav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 6px 8px;
}

.quick-nav a:hover,
.quick-nav button:hover {
  color: var(--red);
}

.system-version {
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin: 8px 16px 16px auto;
  padding: 6px 10px;
  position: static;
  width: max-content;
}

.version-chip {
  align-items: center;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.08;
  min-height: 36px;
  padding: 6px 10px;
  white-space: nowrap;
}

.version-chip:hover,
.version-chip:focus-visible {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  color: var(--red);
}

.version-chip small {
  color: inherit;
  font-size: 9px;
  font-weight: 800;
}

.sync-widget {
  align-items: center;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
}

.error-page-minimal {
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--red) 7%, transparent), transparent 34%),
    var(--white);
  color: var(--ink);
  min-height: 100vh;
}

.error-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 28px;
}

.error-card {
  background: color-mix(in srgb, var(--white) 97%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(22px, 4vw, 40px);
  width: min(100%, 720px);
}

.error-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.error-brand img {
  height: 54px;
  object-fit: contain;
  width: 74px;
}

.error-code {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.error-card h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  margin: 0;
}

.error-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.sync-widget-main {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
  min-width: 0;
  padding: 6px 12px;
}

.sync-dot {
  background: #16a34a;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.sync-widget strong,
.sync-widget small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-widget strong {
  color: var(--black);
  font-size: 12px;
}

.sync-widget small {
  color: var(--muted);
  display: none;
  font-size: 11px;
  font-weight: 800;
}

.sync-widget button {
  display: none;
  min-height: 34px;
  padding: 6px 8px;
  white-space: nowrap;
}

.table-button.danger {
  color: var(--red);
}

.sync-widget[data-state="offline"] .sync-dot,
.sync-widget[data-state="pending"] .sync-dot {
  background: #f59e0b;
}

.sync-widget[data-state="syncing"] .sync-dot {
  background: #eab308;
}

.sync-widget[data-state="error"] .sync-dot {
  background: var(--red);
}

.offline-table {
  min-width: 980px;
}

.offline-status-pending,
.offline-status-syncing {
  background: #fff3bf;
  border-color: #e6b800;
  color: #5c4300;
}

.offline-status-error,
.offline-status-conflict {
  background: #ffe0e0;
  border-color: #d70000;
  color: #a00000;
}

.muted,
small {
  color: var(--muted);
}

.login-shell,
.module-shell {
  display: grid;
  position: relative;
}

.login-shell {
  gap: 22px;
  min-height: calc(100vh - 170px);
  place-items: center;
  padding: 24px 16px 92px;
}

.login-shell::before,
.module-shell::before {
  background: url("../img/logo-cdc-watermark-light.40d294f0c9cc.png") center / contain no-repeat;
  content: "";
  height: min(72vw, 760px);
  opacity: 0.1;
  pointer-events: none;
  position: absolute;
  width: min(92vw, 1080px);
}

html[data-theme="dark"] .login-shell::before,
html[data-theme="dark"] .module-shell::before {
  background-image: url("../img/logo-cdc-watermark-dark.7e6059a7a831.png");
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .login-shell::before,
  html[data-theme="auto"] .module-shell::before {
    background-image: url("../img/logo-cdc-watermark-dark.7e6059a7a831.png");
  }
}

.login-shell > *,
.module-shell > * {
  position: relative;
  z-index: 1;
}

.login-hero {
  align-items: center;
  display: grid;
  justify-items: center;
  margin-top: 10px;
}

.login-hero-logo {
  height: clamp(140px, 18vw, 245px);
  object-fit: contain;
  width: min(78vw, 420px);
}

.login-hero p {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-style: italic;
  gap: 14px;
  justify-content: center;
  margin: -8px 0 0;
  text-align: center;
}

.login-hero p::before,
.login-hero p::after {
  background: var(--line);
  content: "";
  height: 1px;
  width: 54px;
}

.login-panel {
  background: color-mix(in srgb, var(--white) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.12);
  max-width: 520px;
  padding: 34px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.login-lock {
  align-items: center;
  background: color-mix(in srgb, var(--red) 10%, var(--white));
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 50px;
  justify-content: center;
  margin-bottom: 12px;
  width: 50px;
}

.login-panel h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}

.login-subtitle {
  color: var(--muted);
  margin: 10px 0 22px;
}

.login-panel .form-grid {
  gap: 16px;
  text-align: left;
}

.login-panel label {
  font-weight: 800;
}

.login-panel input {
  min-height: 50px;
}

.login-submit {
  align-items: center;
  display: flex;
  font-size: 16px;
  justify-content: center;
  min-height: 52px;
}

.login-submit span {
  margin-left: auto;
}

.login-error {
  background: color-mix(in srgb, var(--red) 9%, var(--white));
  border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line));
  color: var(--black);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.login-error strong {
  color: var(--red);
}

.login-error span,
.login-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.login-hint {
  margin: -4px 0 0;
  text-align: center;
}

.login-safe-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  text-align: center;
}

.module-shell {
  align-items: center;
  gap: 28px;
  justify-items: center;
  min-height: calc(100vh - 230px);
  padding: 30px 0;
}

.module-head {
  text-align: center;
}

.module-head h1 {
  color: var(--black);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin: 4px 0 0;
}

.module-store-line,
.module-last-access {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0 0;
}

.entry-dashboard {
  max-width: 1180px;
  width: 100%;
}

.entry-pendency-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-pendency {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
}

.entry-pendency strong {
  color: var(--white-fixed);
  display: grid;
  font-size: 16px;
  min-width: 38px;
  place-items: center;
}

.entry-pendency-danger strong {
  background: var(--red);
}

.entry-pendency-warning strong {
  background: #b45309;
}

.entry-pendency-ok strong {
  background: #15803d;
}

.entry-pendency span {
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.module-choice-title {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.module-choice-title h2 {
  font-size: 22px;
  margin: 0;
}

.module-choice-title img {
  height: 82px;
  object-fit: contain;
  width: 104px;
}

.module-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  max-width: 1180px;
  width: 100%;
}

.module-card-form {
  margin: 0;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  color: var(--black);
  cursor: pointer;
  display: grid;
  gap: 12px;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
  place-items: center;
  position: relative;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.module-card::before {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--red) 9%, transparent));
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--red);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.14);
  outline: 0;
  transform: translateY(-6px);
}

.module-card:hover::before,
.module-card:focus-visible::before {
  opacity: 1;
}

.module-illustration {
  display: block;
  height: 130px;
  position: relative;
  width: 170px;
  z-index: 1;
}

.stock-box {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 35%),
    color-mix(in srgb, var(--muted) 36%, var(--white));
  border: 2px solid color-mix(in srgb, var(--black) 18%, transparent);
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, 0.07);
  display: block;
  height: 72px;
  position: absolute;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 82px;
}

.stock-box::before {
  background: rgba(255, 255, 255, 0.5);
  content: "";
  height: 16px;
  left: 22px;
  position: absolute;
  top: -2px;
  width: 36px;
}

.stock-box-a {
  bottom: 8px;
  left: 6px;
  transform: rotate(-5deg);
}

.stock-box-b {
  bottom: 8px;
  right: 7px;
  transform: rotate(4deg);
}

.stock-box-c {
  bottom: 58px;
  left: 43px;
  transform: rotate(1deg);
}

.module-card:hover .stock-box,
.module-card:focus-visible .stock-box {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 35%),
    color-mix(in srgb, var(--red) 78%, var(--white));
  border-color: color-mix(in srgb, var(--red) 70%, var(--black));
}

.module-card:hover .stock-box-a,
.module-card:focus-visible .stock-box-a {
  transform: rotate(-7deg) translateY(-2px);
}

.module-card:hover .stock-box-b,
.module-card:focus-visible .stock-box-b {
  transform: rotate(6deg) translateY(-2px);
}

.module-card:hover .stock-box-c,
.module-card:focus-visible .stock-box-c {
  transform: rotate(1deg) translateY(-4px);
}

.cash-register {
  bottom: 12px;
  display: block;
  height: 104px;
  left: 24px;
  position: absolute;
  width: 122px;
}

.cash-register-screen {
  background: color-mix(in srgb, var(--black) 82%, var(--white));
  border: 2px solid color-mix(in srgb, var(--black) 26%, transparent);
  display: block;
  height: 38px;
  left: 27px;
  position: absolute;
  top: 0;
  transform: skew(-5deg);
  width: 66px;
}

.cash-register-screen::after {
  background: color-mix(in srgb, var(--red) 84%, var(--white));
  content: "";
  height: 8px;
  left: 12px;
  position: absolute;
  top: 13px;
  width: 38px;
}

.cash-register-body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 40%),
    color-mix(in srgb, var(--muted) 34%, var(--white));
  border: 2px solid color-mix(in srgb, var(--black) 18%, transparent);
  display: block;
  height: 58px;
  left: 8px;
  position: absolute;
  top: 35px;
  width: 106px;
}

.cash-register-body::before {
  background:
    radial-gradient(circle, var(--black-fixed) 2px, transparent 3px) 0 0 / 18px 14px;
  content: "";
  height: 26px;
  left: 17px;
  opacity: 0.72;
  position: absolute;
  top: 15px;
  width: 70px;
}

.cash-register-drawer {
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--black) 18%, transparent);
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  top: 84px;
  width: 122px;
}

.cash-register-drawer::after {
  background: color-mix(in srgb, var(--red) 72%, var(--black));
  content: "";
  height: 4px;
  left: 48px;
  position: absolute;
  top: 6px;
  width: 26px;
}

.cash-envelope {
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--red) 70%, var(--black));
  bottom: 18px;
  display: block;
  height: 44px;
  position: absolute;
  right: 0;
  transform: rotate(8deg);
  transition: transform 160ms ease;
  width: 68px;
}

.cash-envelope::before,
.cash-envelope::after {
  border-bottom: 22px solid transparent;
  border-top: 22px solid transparent;
  content: "";
  position: absolute;
  top: -2px;
}

.cash-envelope::before {
  border-left: 34px solid color-mix(in srgb, var(--red) 12%, var(--white));
  left: -2px;
}

.cash-envelope::after {
  border-right: 34px solid color-mix(in srgb, var(--red) 12%, var(--white));
  right: -2px;
}

.module-card:hover .cash-register-body,
.module-card:focus-visible .cash-register-body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 40%),
    color-mix(in srgb, var(--red) 78%, var(--white));
}

.module-card:hover .cash-envelope,
.module-card:focus-visible .cash-envelope {
  transform: rotate(3deg) translateY(-4px);
}

.config-gear {
  background:
    radial-gradient(circle at center, var(--white) 0 21px, transparent 22px),
    conic-gradient(
      from 8deg,
      var(--red) 0 22deg,
      transparent 22deg 45deg,
      var(--black) 45deg 68deg,
      transparent 68deg 91deg,
      var(--red) 91deg 114deg,
      transparent 114deg 137deg,
      var(--black) 137deg 160deg,
      transparent 160deg 183deg,
      var(--red) 183deg 206deg,
      transparent 206deg 229deg,
      var(--black) 229deg 252deg,
      transparent 252deg 275deg,
      var(--red) 275deg 298deg,
      transparent 298deg 321deg,
      var(--black) 321deg 344deg,
      transparent 344deg 360deg
    );
  border-radius: 50%;
  display: block;
  height: 92px;
  left: 2px;
  position: absolute;
  top: 14px;
  transition: transform 160ms ease;
  width: 92px;
}

.config-gear-core {
  background: color-mix(in srgb, var(--red) 78%, var(--black));
  border: 10px solid color-mix(in srgb, var(--line) 70%, var(--white));
  border-radius: 50%;
  display: block;
  height: 42px;
  left: 25px;
  position: absolute;
  top: 25px;
  width: 42px;
}

.config-sliders {
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--black) 18%, transparent);
  box-shadow: 0 12px 0 color-mix(in srgb, var(--red) 16%, transparent);
  display: grid;
  gap: 13px;
  padding: 18px 14px;
  position: absolute;
  right: 4px;
  top: 36px;
  transition: transform 160ms ease;
  width: 86px;
}

.config-sliders span {
  background: var(--line);
  display: block;
  height: 6px;
  position: relative;
}

.config-sliders span::after {
  background: var(--red);
  border: 2px solid var(--white);
  content: "";
  height: 14px;
  position: absolute;
  top: -4px;
  width: 14px;
}

.config-sliders span:nth-child(1)::after {
  left: 6px;
}

.config-sliders span:nth-child(2)::after {
  left: 38px;
}

.config-sliders span:nth-child(3)::after {
  left: 22px;
}

.module-card:hover .config-gear,
.module-card:focus-visible .config-gear {
  transform: rotate(18deg);
}

.module-card:hover .config-sliders,
.module-card:focus-visible .config-sliders {
  transform: translateY(-5px);
}

.bi-screen {
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--black) 18%, transparent);
  bottom: 18px;
  display: grid;
  gap: 10px;
  height: 92px;
  left: 12px;
  padding: 16px 14px;
  position: absolute;
  width: 126px;
}

.bi-screen::before {
  background: color-mix(in srgb, var(--black) 70%, var(--white));
  bottom: -12px;
  content: "";
  height: 12px;
  left: 44px;
  position: absolute;
  width: 38px;
}

.bi-screen span {
  background: color-mix(in srgb, #2563eb 75%, var(--white));
  display: block;
  height: 9px;
  transition: width 160ms ease, background 160ms ease;
}

.bi-screen span:nth-child(1) {
  width: 70%;
}

.bi-screen span:nth-child(2) {
  background: color-mix(in srgb, #d97706 78%, var(--white));
  width: 92%;
}

.bi-screen span:nth-child(3) {
  background: color-mix(in srgb, #0f766e 78%, var(--white));
  width: 54%;
}

.bi-chart-line {
  border-bottom: 4px solid #be185d;
  border-left: 4px solid #be185d;
  border-radius: 0 0 0 20px;
  display: block;
  height: 54px;
  position: absolute;
  right: 4px;
  top: 20px;
  transform: skew(-18deg);
  transition: transform 160ms ease;
  width: 78px;
}

.module-card:hover .bi-screen span,
.module-card:focus-visible .bi-screen span {
  width: 100%;
}

.module-card:hover .bi-chart-line,
.module-card:focus-visible .bi-chart-line {
  transform: skew(-18deg) translateY(-5px);
}

.finance-ledger {
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--black) 18%, transparent);
  bottom: 10px;
  display: grid;
  gap: 9px;
  left: 20px;
  padding: 12px;
  position: absolute;
  width: 130px;
}

.finance-ledger span {
  background: color-mix(in srgb, var(--line) 82%, var(--black));
  display: block;
  height: 9px;
  position: relative;
  transition: background 160ms ease, transform 160ms ease, width 160ms ease;
  width: 82%;
}

.finance-ledger span::after {
  background: var(--red);
  content: "";
  height: 9px;
  position: absolute;
  right: -18px;
  top: 0;
  width: 10px;
}

.finance-ledger span:nth-child(2) {
  width: 64%;
}

.finance-ledger span:nth-child(3) {
  width: 74%;
}

.module-card:hover .module-icon-finance,
.module-card:focus-visible .module-icon-finance {
  filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--red) 24%, transparent));
  transform: translateY(-5px) rotate(2deg);
}

.module-card:hover .finance-ledger span,
.module-card:focus-visible .finance-ledger span {
  background: color-mix(in srgb, var(--red) 16%, var(--line));
  transform: translateX(4px);
}

.module-icon-img {
  display: block;
  height: 86px;
  left: 42px;
  position: absolute;
  top: 12px;
  transition: transform 160ms ease, filter 160ms ease;
  width: 86px;
}

.warehouse-shelf {
  background: color-mix(in srgb, var(--black) 82%, var(--white));
  border-radius: 6px;
  bottom: 10px;
  display: grid;
  gap: 10px;
  left: 18px;
  padding: 12px;
  position: absolute;
  width: 134px;
}

.warehouse-shelf span {
  background:
    linear-gradient(90deg, var(--red) 0 28%, transparent 28% 36%, var(--white) 36% 100%);
  border-radius: 3px;
  display: block;
  height: 12px;
  transition: transform 160ms ease;
}

.warehouse-shelf span:nth-child(2) {
  background:
    linear-gradient(90deg, var(--white) 0 44%, transparent 44% 52%, var(--red) 52% 100%);
}

.module-card:hover .module-icon-warehouse,
.module-card:focus-visible .module-icon-warehouse {
  filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--red) 24%, transparent));
  transform: translateY(-5px) rotate(-2deg);
}

.module-card:hover .warehouse-shelf span,
.module-card:focus-visible .warehouse-shelf span {
  transform: translateX(4px);
}

.coupon-paper-stack {
  bottom: 8px;
  display: block;
  height: 54px;
  left: 38px;
  position: absolute;
  width: 96px;
}

.coupon-paper-stack span {
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--black) 16%, transparent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  display: block;
  height: 42px;
  position: absolute;
  transition: transform 160ms ease;
  width: 76px;
}

.coupon-paper-stack span:first-child {
  left: 4px;
  top: 8px;
  transform: rotate(-7deg);
}

.coupon-paper-stack span:last-child {
  right: 0;
  top: 0;
  transform: rotate(6deg);
}

.module-card:hover .module-icon-fiscal-coupon,
.module-card:focus-visible .module-icon-fiscal-coupon {
  filter: drop-shadow(0 10px 14px color-mix(in srgb, #0f766e 30%, transparent));
  transform: translateY(-5px) rotate(2deg);
}

.module-card:hover .coupon-paper-stack span:first-child,
.module-card:focus-visible .coupon-paper-stack span:first-child {
  transform: rotate(-10deg) translateY(-3px);
}

.module-card:hover .coupon-paper-stack span:last-child,
.module-card:focus-visible .coupon-paper-stack span:last-child {
  transform: rotate(9deg) translateY(-5px);
}

.module-name {
  color: var(--black);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.module-description {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 220px;
  position: relative;
  z-index: 1;
}

.finance-title {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.finance-title img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
  height: 58px;
  width: 58px;
}

.finance-title h1 {
  overflow-wrap: anywhere;
}

.finance-empty-inline {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  min-height: 54px;
}

.finance-empty-inline img {
  border-radius: 6px;
  height: 34px;
  opacity: 0.86;
  width: 34px;
}

.finance-error-panel p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

body[data-active-module="finance"] .tabs .nav-direct:first-child {
  background: var(--red);
  color: var(--white-fixed);
}

.warehouse-title {
  align-items: center;
  display: flex;
  gap: 14px;
}

.warehouse-title img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
  height: 58px;
  width: 58px;
}

.warehouse-title p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 0;
}

.warehouse-filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.warehouse-filter-bar input,
.warehouse-filter-bar select {
  min-height: 42px;
}

.warehouse-list-panel {
  overflow: visible;
  padding: 0;
}

.warehouse-list-panel .warehouse-table-scroll {
  border: 0;
  border-radius: 8px 8px 0 0;
}

.warehouse-list-panel .pagination {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px 16px;
}

.warehouse-table-scroll {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.warehouse-data-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;
  width: 100%;
}

.warehouse-data-table th,
.warehouse-data-table td {
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  line-height: 1.35;
  padding: 13px 12px;
  vertical-align: middle;
}

.warehouse-data-table th {
  background: #f8fafc;
  color: #111827;
  font-weight: 900;
  letter-spacing: 0;
}

.warehouse-data-table th:last-child,
.warehouse-data-table td:last-child {
  border-right: 0;
}

.warehouse-data-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.warehouse-data-table tbody tr:hover td {
  background: #fff7f7;
}

.warehouse-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.warehouse-data-table td:first-child {
  font-weight: 800;
}

.warehouse-data-table .status,
.warehouse-data-table .table-button,
.warehouse-data-table .table-link {
  white-space: nowrap;
}

.warehouse-material-table,
.warehouse-history-table,
.warehouse-home-movement-table {
  min-width: 1240px;
}

.warehouse-supplier-table,
.warehouse-report-table {
  min-width: 980px;
}

.warehouse-category-table {
  min-width: 760px;
}

.warehouse-form-panel {
  overflow: hidden;
  padding: 0;
}

.warehouse-form-grid {
  gap: 0;
}

.warehouse-form-grid > .warehouse-field {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.warehouse-form-grid > .warehouse-field:nth-of-type(even) {
  background: #fcfcfd;
}

.warehouse-form-grid > .warehouse-field:last-of-type {
  border-bottom: 0;
}

.warehouse-form-grid > .errorlist {
  margin: 0;
  padding: 12px 16px;
}

.warehouse-form-grid .form-actions {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 16px;
}

.warehouse-form-grid-wide {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.warehouse-form-grid-wide > .warehouse-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.warehouse-guide-panel {
  overflow: hidden;
}

.warehouse-guide-list,
.warehouse-error-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  list-style-position: inside;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.warehouse-guide-list p,
.warehouse-error-list li {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 12px 14px;
}

.warehouse-guide-list p:nth-child(even),
.warehouse-error-list li:nth-child(even) {
  background: #fcfcfd;
}

.warehouse-guide-list p:last-child,
.warehouse-error-list li:last-child {
  border-bottom: 0;
}

.warehouse-home-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.warehouse-home-actions .button {
  min-width: 136px;
}

.warehouse-home-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.warehouse-home-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.warehouse-home-metric {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 118px;
  padding: 16px;
}

.warehouse-home-metric-small {
  min-height: 112px;
}

.warehouse-home-metric-icon {
  align-items: center;
  background: #fff2f2;
  border-radius: 8px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.warehouse-home-metric-icon img {
  display: block;
  height: 26px;
  width: 26px;
}

.warehouse-home-metric span:not(.warehouse-home-metric-icon) {
  color: #1f2937;
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.warehouse-home-metric strong {
  color: var(--black);
  display: block;
  font-size: 24px;
  line-height: 1;
}

.warehouse-home-metric small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 10px;
}

.warehouse-tone-black .warehouse-home-metric-icon {
  background: #f3f4f6;
}

.warehouse-tone-red .warehouse-home-metric-icon,
.warehouse-tone-red-soft .warehouse-home-metric-icon {
  background: #fff0f0;
}

.warehouse-tone-orange .warehouse-home-metric-icon {
  background: #fff7e6;
}

.warehouse-tone-green .warehouse-home-metric-icon {
  background: #eaf8ef;
}

.warehouse-tone-blue .warehouse-home-metric-icon {
  background: #edf5ff;
}

.warehouse-tone-orange small {
  color: #b45309;
  font-weight: 800;
}

.warehouse-tone-green small {
  color: #15803d;
  font-weight: 800;
}

.warehouse-home-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.warehouse-home-panel {
  min-height: 286px;
}

.warehouse-home-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.warehouse-home-panel-head h2 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}

.warehouse-home-panel-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 0;
}

.warehouse-home-panel-head .button,
.warehouse-home-panel-head .table-link {
  flex: 0 0 auto;
}

.warehouse-home-compact-table,
.warehouse-home-movement-table {
  min-width: 720px;
}

.warehouse-home-compact-table th,
.warehouse-home-compact-table td,
.warehouse-home-movement-table th,
.warehouse-home-movement-table td {
  white-space: nowrap;
}

.warehouse-home-compact-table th:first-child,
.warehouse-home-compact-table td:first-child,
.warehouse-home-movement-table th:nth-child(3),
.warehouse-home-movement-table td:nth-child(3),
.warehouse-home-movement-table th:nth-child(4),
.warehouse-home-movement-table td:nth-child(4),
.warehouse-home-movement-table th:nth-child(5),
.warehouse-home-movement-table td:nth-child(5) {
  white-space: normal;
}

.warehouse-home-movement-table {
  min-width: 1240px;
}

.warehouse-home-movements {
  margin-top: 18px;
}

.warehouse-home-inline-link {
  color: var(--black);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-top: 14px;
  text-decoration: none;
}

.warehouse-home-inline-link:hover {
  color: var(--red);
}

.warehouse-empty-inline {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  min-height: 54px;
}

.warehouse-empty-inline img {
  border-radius: 6px;
  height: 34px;
  opacity: 0.86;
  width: 34px;
}

.warehouse-entry-batch {
  display: grid;
  gap: 18px;
}

.warehouse-entry-table {
  min-width: 860px;
}

.warehouse-entry-table th:nth-child(1) {
  width: 44%;
}

.warehouse-entry-table th:nth-child(2),
.warehouse-entry-table th:nth-child(3),
.warehouse-entry-table th:nth-child(4) {
  width: 16%;
}

.warehouse-entry-table select,
.warehouse-entry-table input {
  width: 100%;
}

.warehouse-entry-table tr[hidden] {
  display: none;
}

.warehouse-entry-summary {
  align-items: center;
  background: color-mix(in srgb, var(--red) 7%, var(--panel));
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 16px;
  padding: 14px 16px;
}

.warehouse-entry-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.warehouse-entry-summary strong,
.warehouse-entry-table [data-entry-line-total] {
  font-variant-numeric: tabular-nums;
}

.warehouse-entry-summary strong {
  color: var(--red-dark);
  font-size: 24px;
}

.coupon-title {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.coupon-title img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
  height: 58px;
  width: 58px;
}

.coupon-title h1 {
  overflow-wrap: anywhere;
}

.coupon-title span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.coupon-empty-inline {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  min-height: 54px;
}

.coupon-empty-inline img {
  border-radius: 6px;
  height: 34px;
  opacity: 0.86;
  width: 34px;
}

.coupon-status {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  line-height: 1.2;
  padding: 6px 10px;
  white-space: nowrap;
}

.coupon-status span {
  border-radius: 50%;
  display: block;
  height: 9px;
  width: 9px;
}

.coupon-status-ok {
  background: color-mix(in srgb, #16a34a 10%, var(--white));
  color: #166534;
}

.coupon-status-ok span {
  background: #16a34a;
}

.coupon-status-danger {
  background: color-mix(in srgb, var(--red) 10%, var(--white));
  color: var(--red-dark);
}

.coupon-status-danger span {
  background: var(--red);
}

.coupon-status-warning {
  background: color-mix(in srgb, #f59e0b 14%, var(--white));
  color: #92400e;
}

.coupon-status-warning span {
  background: #f59e0b;
}

.coupon-status-info {
  background: color-mix(in srgb, #0284c7 10%, var(--white));
  color: #075985;
}

.coupon-status-info span {
  background: #0284c7;
}

.coupon-status-muted {
  background: color-mix(in srgb, var(--muted) 10%, var(--white));
  color: var(--muted);
}

.coupon-status-muted span {
  background: var(--muted);
}

.coupon-row-danger td {
  background: color-mix(in srgb, var(--red) 3%, transparent);
}

.coupon-row-warning td {
  background: color-mix(in srgb, #f59e0b 4%, transparent);
}

.coupon-grid-table th,
.coupon-grid-table td,
.coupon-annual-table th,
.coupon-annual-table td {
  min-width: 118px;
  white-space: nowrap;
}

.coupon-grid-table th:first-child,
.coupon-grid-table td:first-child {
  min-width: 74px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.coupon-grid-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 8px;
  text-decoration: none;
}

.coupon-grid-cell small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: normal;
}

.coupon-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.coupon-detail-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.coupon-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coupon-detail-list dd {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

body[data-active-module="fiscal-coupon"] .tabs .nav-direct:first-child {
  background: var(--red);
  color: var(--white-fixed);
}

.bi-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bi-filter-panel {
  display: grid;
  gap: 14px;
}

.bi-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bi-filter-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.bi-filter-control {
  min-height: 42px;
}

.bi-filter-wide {
  grid-row: span 2;
}

.bi-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bi-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.bi-metric small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
}

.bi-dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bi-chart-panel-wide {
  grid-column: 1 / -1;
}

.bi-chart {
  min-height: 320px;
  overflow: hidden;
}

.bi-chart svg {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.bi-chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.bi-chart-axis,
.bi-chart-label,
.bi-chart-value,
.bi-chart-legend {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bi-chart-label {
  fill: var(--black);
}

.bi-chart-value {
  fill: var(--ink);
}

.bi-chart-line-path {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bi-chart-point {
  fill: var(--white-fixed);
  stroke: #2563eb;
  stroke-width: 2;
}

.bi-bar {
  fill: #2563eb;
}

.bi-bar-1 {
  fill: #d97706;
}

.bi-bar-2 {
  fill: #0f766e;
}

.bi-bar-3 {
  fill: #be185d;
}

.bi-bar-4 {
  fill: #4d7c0f;
}

.bi-bar-entry {
  fill: #0f766e;
}

.bi-bar-exit {
  fill: #d97706;
}

.bi-legend-entry {
  fill: #0f766e;
}

.bi-legend-exit {
  fill: #d97706;
}

.bi-chart-empty {
  align-items: center;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}

.bi-chart-fallback {
  margin-top: 12px;
}

.bi-alert-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bi-alert {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 5px solid #2563eb;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.bi-alert strong {
  color: var(--black);
}

.bi-alert span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bi-alert-warning {
  border-left-color: #d97706;
}

.bi-alert-critical {
  border-left-color: #be185d;
}

.bi-alert-info {
  border-left-color: #2563eb;
}

.bi-ranking-columns,
.bi-source-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bi-ranking-columns h3 {
  color: var(--black);
  font-size: 15px;
  margin: 0 0 10px;
}

.bi-ranking-list {
  display: grid;
  gap: 8px;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.bi-ranking-list li {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.bi-ranking-list span {
  overflow-wrap: anywhere;
}

.bi-ranking-list strong {
  color: var(--black);
}

.bi-method-note {
  margin: 12px 0 0;
}

.bi-source-grid div {
  background: var(--soft);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.bi-source-grid strong {
  color: var(--black);
}

.bi-source-grid span,
.bi-error-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bi-error-panel {
  display: grid;
  gap: 14px;
}

.bi-dashboard-page {
  background: #eef3f9;
}

.bi-dashboard-page .tabs {
  display: none;
}

.bi-dashboard-page .page {
  padding: 0;
}

.bi-console-shell {
  background: #f3f6fb;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: calc(100vh - var(--sticky-topbar-offset));
}

.bi-console-sidebar {
  background: linear-gradient(180deg, #061a3a 0%, #082b55 54%, #04162c 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
  padding: 22px 12px;
}

.bi-console-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 8px 14px;
}

.bi-console-brand-mark {
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  color: #082b55;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.bi-console-brand strong,
.bi-console-brand small {
  display: block;
  line-height: 1.1;
  text-transform: uppercase;
}

.bi-console-brand strong {
  font-size: 15px;
  font-weight: 900;
}

.bi-console-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.bi-console-nav {
  display: grid;
  gap: 6px;
}

.bi-console-nav a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 12px;
}

.bi-console-nav a:hover,
.bi-console-nav a:focus-visible,
.bi-console-nav a[aria-current="page"] {
  background: #1464f6;
  color: #ffffff;
}

.bi-console-sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  margin-top: auto;
  padding: 16px 8px 0;
}

.bi-console-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.bi-console-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.bi-console-head h1 {
  color: #0f172a;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.bi-console-head p {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 0;
}

.bi-console-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bi-console-actions .button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  min-height: 38px;
  padding: 9px 12px;
}

.bi-console-actions img {
  height: 15px;
  width: 15px;
}

.bi-updated-at {
  color: #475569;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 126px;
}

.bi-updated-at strong {
  color: #0f172a;
  font-size: 13px;
}

.bi-console-filters,
.bi-panel,
.bi-kpi-card,
.bi-method-details {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.bi-console-filters {
  padding: 12px;
  position: relative;
  z-index: 2;
}

.bi-console-filter-row,
.bi-more-filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
}

.bi-console-filters label {
  color: #0f172a;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
}

.bi-console-filters label span {
  white-space: nowrap;
}

.bi-console-filters .bi-filter-control {
  border-radius: 5px;
  font-size: 12px;
  min-height: 36px;
  padding: 7px 9px;
}

.bi-console-filters select[multiple].bi-filter-control {
  height: 36px;
  min-height: 36px;
  overflow: hidden;
}

.bi-more-filters {
  position: relative;
}

.bi-more-filters summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  list-style: none;
  margin-top: 16px;
  padding: 0 12px;
}

.bi-more-filters summary::-webkit-details-marker {
  display: none;
}

.bi-more-filter-grid {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(760px, 80vw);
  z-index: 10;
}

.bi-console-filter-row > .button-primary {
  align-self: end;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
}

.bi-form-errors {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
  padding: 10px;
}

.bi-kpi-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bi-kpi-card {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 116px;
  padding: 16px;
}

.bi-kpi-icon {
  align-items: center;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.bi-kpi-icon img {
  filter: brightness(0) invert(1);
  height: 24px;
  width: 24px;
}

.bi-kpi-blue .bi-kpi-icon {
  background: #1464f6;
}

.bi-kpi-purple .bi-kpi-icon {
  background: #6d5bd0;
}

.bi-kpi-green .bi-kpi-icon {
  background: #16a34a;
}

.bi-kpi-orange .bi-kpi-icon {
  background: #f59e0b;
}

.bi-kpi-red .bi-kpi-icon {
  background: #ef4444;
}

.bi-kpi-card span:not(.bi-kpi-icon) {
  color: #334155;
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.bi-kpi-card strong {
  color: #0f172a;
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.bi-kpi-card small {
  color: #475569;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 6px;
}

.bi-hero-grid,
.bi-secondary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(280px, 0.75fr);
}

.bi-panel {
  min-width: 0;
  padding: 14px;
}

.bi-panel-wide {
  grid-column: span 1;
}

.bi-panel-head {
  align-items: flex-start;
  border-bottom: 1px solid #e5edf6;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: -2px -2px 12px;
  padding: 0 2px 10px;
}

.bi-panel-head h2 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.bi-panel-head p,
.bi-panel-head small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

.bi-chart-tabs {
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  display: inline-flex;
  overflow: hidden;
}

.bi-chart-tabs span {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 12px;
}

.bi-chart-tabs span[aria-current="true"] {
  background: #1464f6;
  color: #ffffff;
}

.bi-chart {
  min-height: 260px;
}

.bi-line-chart {
  min-height: 318px;
}

.bi-chart-line-previous {
  stroke: #a8b1c2;
  stroke-dasharray: 6 7;
  stroke-width: 2;
}

.bi-legend-previous {
  fill: #64748b;
}

.bi-donut-layout {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1fr);
  min-height: 260px;
}

.bi-donut-track,
.bi-donut-segment {
  fill: none;
  stroke-width: 34;
}

.bi-donut-track {
  stroke: #e5edf6;
}

.bi-donut-segment {
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center;
}

.bi-donut-total {
  fill: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.bi-donut-caption {
  fill: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.bi-donut-legend {
  display: grid;
  gap: 10px;
}

.bi-donut-legend-item {
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 10px 1fr;
}

.bi-donut-legend-item span {
  border-radius: 999px;
  height: 10px;
  margin-top: 4px;
  width: 10px;
}

.bi-donut-legend-item strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.bi-donut-legend-item small {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  grid-column: 2;
}

.bi-alert-list {
  display: grid;
  gap: 8px;
}

.bi-alert-row {
  align-items: start;
  border-bottom: 1px solid #e5edf6;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  padding: 9px 0;
}

.bi-alert-row > span {
  border: 1.5px solid #2563eb;
  border-radius: 4px;
  height: 14px;
  margin-top: 2px;
  width: 14px;
}

.bi-alert-warning > span {
  border-color: #f59e0b;
}

.bi-alert-critical > span {
  border-color: #ef4444;
}

.bi-alert-info > span {
  border-color: #2563eb;
}

.bi-alert-row strong {
  color: #0f172a;
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.bi-alert-row small,
.bi-empty-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.bi-panel-link {
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  color: #1464f6;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 12px;
  padding: 8px;
  text-align: center;
}

.bi-compact-table th,
.bi-compact-table td {
  font-size: 12px;
  padding: 9px 10px;
  white-space: nowrap;
}

.bi-store-rank {
  color: #64748b;
  display: inline-block;
  font-weight: 900;
  min-width: 18px;
}

.bi-store-bar {
  background: #1464f6;
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  margin-right: 8px;
  width: var(--bar, 0%);
}

.bi-cash-status-grid,
.bi-stock-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bi-cash-status-grid div,
.bi-stock-summary div,
.bi-difference-grid div {
  background: #f8fafc;
  border: 1px solid #e5edf6;
  border-radius: 7px;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 11px 8px;
  text-align: center;
}

.bi-cash-status-grid img {
  height: 22px;
  width: 22px;
}

.bi-cash-status-grid span,
.bi-stock-summary span,
.bi-difference-grid span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.bi-cash-status-grid strong,
.bi-stock-summary strong,
.bi-difference-grid strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.bi-difference-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.positive {
  color: #059669 !important;
}

.negative {
  color: #dc2626 !important;
}

.bi-detail-panel {
  overflow: hidden;
}

.bi-status-pill {
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
}

.bi-status-pill.ok {
  background: #dcfce7;
  color: #166534;
}

.bi-status-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.bi-method-details {
  padding: 12px 14px;
}

.bi-method-details summary {
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.bi-method-details .bi-source-grid {
  margin-top: 12px;
}

.bi-import-page {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bi-import-grid,
.bi-import-summary {
  display: grid;
  gap: 12px;
}

.bi-import-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
}

.bi-import-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bi-import-summary .metric {
  min-height: 96px;
}

.bi-import-form,
.bi-alias-form,
.bi-confirm-import-form,
.bi-mapping-form {
  display: grid;
  gap: 10px;
}

.bi-import-form label,
.bi-alias-form label,
.bi-confirm-import-form label {
  color: var(--black);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
}

.bi-alias-form {
  align-items: end;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  margin-bottom: 14px;
}

.bi-confirm-import-form {
  align-items: center;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.bi-import-check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bi-import-check-grid div {
  background: #f8fafc;
  border: 1px solid #e5edf6;
  border-radius: 7px;
  display: grid;
  gap: 5px;
  padding: 11px;
}

.bi-import-check-grid span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bi-import-check-grid strong {
  color: #0f172a;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.bi-candidate-chip {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin: 2px 4px 2px 0;
  padding: 4px 7px;
}

.bi-alert-list-full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-choice-shell .module-head {
  max-width: 760px;
}

.context-choice-section {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  width: 100%;
}

.context-choice-section > h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.context-general-card .store-card-initials {
  background: var(--red);
}

.store-choice-card {
  min-height: 220px;
}

.store-card-initials {
  align-items: center;
  background: var(--black-fixed);
  color: var(--white-fixed);
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  height: 88px;
  justify-content: center;
  position: relative;
  text-transform: uppercase;
  width: 88px;
  z-index: 1;
}

.last-used-badge {
  border: 1px solid color-mix(in srgb, #b45309 48%, var(--line));
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
  position: relative;
  z-index: 1;
}

.settings-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.settings-tabs a,
.settings-tabs span {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.settings-tabs a:hover,
.settings-tabs a[aria-current="step"],
.settings-tabs span[aria-current="step"] {
  border-color: var(--red);
  color: var(--red);
}

.settings-overview .metric strong {
  font-size: 22px;
}

.settings-check {
  border-left: 5px solid var(--line);
}

.settings-check p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 10px 0 0;
}

.settings-check-ok {
  border-left-color: #15803d;
}

.settings-check-attention {
  border-left-color: #b45309;
}

.settings-check-danger {
  border-left-color: var(--red);
}

.settings-section {
  scroll-margin-top: 18px;
}

.settings-section-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.settings-section-head .muted {
  margin: 8px 0 0;
  max-width: 760px;
}

.settings-metric-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.settings-mini-metric {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.settings-mini-metric span,
.settings-diagnostic-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.settings-mini-metric strong,
.settings-diagnostic-grid strong {
  color: var(--black);
  display: block;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.settings-links {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings-live-area {
  align-items: start;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.settings-list-item strong {
  color: var(--black);
  display: block;
  margin-bottom: 5px;
}

.settings-list-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.settings-list-item p {
  margin: 8px 0 0;
}

.changelog-latest {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.changelog-latest h2 {
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.changelog-summary {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.changelog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.changelog-tags span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.changelog-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.changelog-items li {
  line-height: 1.42;
}

.changelog-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
}

.changelog-index {
  align-self: start;
  position: sticky;
  top: 12px;
}

.changelog-index-item {
  display: block;
}

.changelog-detail-list {
  display: grid;
  gap: 18px;
}

.changelog-entry {
  scroll-margin-top: 110px;
}

.settings-diagnostic-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-diagnostic-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.cash-flow-steps {
  display: grid;
  gap: 12px;
}

.cash-step {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.6fr) minmax(180px, 1fr) auto;
  padding: 12px;
}

.cash-step strong {
  color: var(--black);
}

.cash-step span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cash-step-done {
  border-color: rgba(20, 108, 46, 0.42);
}

.cash-alert-list {
  display: grid;
  gap: 10px;
}

.cash-alert {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.cash-alert strong {
  color: var(--black);
  font-size: 13px;
}

.cash-alert span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cash-alert-warning {
  border-left-color: #9a6700;
}

.cash-alert-critical {
  border-left-color: var(--red);
}

.cash-opening-lock {
  display: grid;
  gap: 0;
  max-width: 980px;
}

.cash-opening-lock-banner {
  background: var(--black-fixed);
  color: var(--white-fixed);
  font-size: 15px;
  font-weight: 900;
  padding: 13px 16px;
}

.cash-opening-lock-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  display: grid;
  gap: 18px;
}

.cash-opening-lock-main {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
}

.cash-opening-lock-icon {
  align-items: center;
  background: color-mix(in srgb, var(--red) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--red) 28%, var(--line));
  border-radius: 8px;
  display: flex;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.cash-opening-lock-icon img {
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.cash-opening-lock-main h2 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.cash-opening-lock-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cash-opening-lock-metrics .metric {
  min-width: 0;
}

.cash-opening-lock-metrics .metric strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.cash-opening-override-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cash-payment-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cash-payment-grid fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.cash-payment-grid legend {
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  padding: 0 6px;
}

.cash-diary-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cash-diary-meta-line {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 8px 14px;
  margin-top: 6px;
}

.cash-date-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  padding: 8px 14px;
}

.cash-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.cash-kpi-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
}

.cash-kpi-heading {
  align-items: center;
  display: flex;
  gap: 10px;
}

.metric .cash-kpi-label {
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.cash-kpi-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.cash-kpi-card p,
.cash-kpi-card small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.cash-kpi-icon {
  border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line));
  border-radius: 6px;
  box-sizing: border-box;
  height: 34px;
  object-fit: contain;
  padding: 6px;
  width: 34px;
}

.cash-icon-red {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.28);
  filter: none;
}

.cash-icon-green {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.28);
  filter: hue-rotate(110deg) saturate(0.9) brightness(0.85);
}

.cash-icon-blue {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
  filter: hue-rotate(210deg) saturate(1.2) brightness(0.9);
}

.cash-icon-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  filter: hue-rotate(52deg) saturate(1.4) brightness(1.08);
}

.cash-icon-purple {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.28);
  filter: hue-rotate(255deg) saturate(1.1) brightness(0.95);
}

.cash-status-card {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.cash-status-ok {
  background: rgba(22, 163, 74, 0.06);
  border-color: rgba(22, 163, 74, 0.22);
}

.cash-status-attention {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.22);
}

.cash-status-icon {
  border: 1px solid color-mix(in srgb, var(--red) 28%, var(--line));
  border-radius: 50%;
  box-sizing: border-box;
  height: 64px;
  padding: 15px;
  width: 64px;
}

.cash-status-attention .cash-status-icon {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
}

.cash-total-difference {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
}

.cash-total-difference span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.cash-total-difference b {
  color: var(--black);
  font-size: 18px;
}

.cash-difference-positive b {
  color: #15803d;
}

.cash-difference-negative b {
  color: var(--red);
}

.cash-status-mark {
  align-items: center;
  background: var(--red);
  border-radius: 50%;
  color: var(--white-fixed);
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.metric.cash-status-card .cash-status-mark {
  color: var(--white-fixed);
  display: inline-flex;
  line-height: 1;
  margin: 0;
}

.cash-status-attention .cash-status-mark {
  background: var(--red);
}

.cash-pill {
  align-items: center;
  background: color-mix(in srgb, var(--red) 12%, var(--white));
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  padding: 7px 12px;
  text-transform: uppercase;
}

.cash-envelope-status-checked,
.cash-envelope-status-deposited {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.cash-envelope-status-pending,
.cash-envelope-status-waiting_deposit,
.cash-envelope-status-not_deposited {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.cash-envelope-status-divergent,
.cash-envelope-status-canceled {
  background: rgba(220, 38, 38, 0.12);
  color: var(--red);
}

.cash-alert-critical {
  color: var(--red);
  font-weight: 900;
}

.cash-alert-summary {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cash-alert-items {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 18px;
  padding: 0;
}

.cash-alert-items li {
  line-height: 1.45;
}

.cash-alert-justification {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.cash-alert-justification p {
  margin-bottom: 0;
}

.cash-envelope-comparison-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-envelope-comparison-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.cash-envelope-comparison-grid b,
.cash-envelope-comparison-grid strong,
.cash-envelope-comparison-grid span,
.cash-envelope-comparison-grid small {
  display: block;
}

.cash-envelope-comparison-grid b {
  color: var(--red);
  font-size: 12px;
  text-transform: uppercase;
}

.cash-envelope-comparison-grid strong {
  color: var(--black);
  font-size: 20px;
}

.cash-envelope-comparison-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.cash-diary-layout,
.cash-payment-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.cash-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.cash-summary-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.cash-summary-block h3,
.cash-accumulated-grid h3 {
  color: var(--black);
  font-size: 16px;
  margin: 0 0 12px;
}

.cash-envelope-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.cash-envelope-strip div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.cash-envelope-strip span:not(.cash-kpi-icon),
.cash-envelope-strip small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

.cash-envelope-strip strong {
  color: var(--black);
  display: block;
  font-size: 28px;
  margin-top: 4px;
}

.cash-envelope-strip p {
  margin: 10px 0 0;
}

.cash-stock-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.cash-stock-list dt,
.cash-stock-list dd {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 10px 0;
}

.cash-stock-list {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cash-stock-list dt {
  color: var(--muted);
  font-weight: 700;
}

.cash-stock-list dd {
  color: var(--black);
  font-weight: 900;
  text-align: right;
}

.cash-payment-layout {
  align-items: start;
}

.cash-payment-total {
  background: color-mix(in srgb, var(--soft) 72%, var(--white));
  font-weight: 900;
}

.cash-payment-total td {
  color: var(--black);
}

.cash-payment-grand-total {
  background: rgba(37, 99, 235, 0.1);
  border-top: 2px solid #2563eb;
}

.cash-payment-grand-total td:first-child {
  color: #1d4ed8;
}

.cash-payment-net-total {
  background: rgba(37, 99, 235, 0.08);
  border-top: 2px solid #2563eb;
}

.cash-payment-net-total td:first-child {
  color: #1d4ed8;
}

.cash-money-alert {
  color: var(--red) !important;
  font-weight: 900;
}

.cash-money-ok {
  color: #15803d !important;
  font-weight: 900;
}

.cash-money-total {
  color: #1d4ed8 !important;
  font-weight: 900;
}

.form-error {
  color: var(--red);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.cash-accumulated-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-accumulated-grid section + section {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.cash-report-foot {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 18px;
}

@media print {
  @page {
    margin: 7mm;
    size: A4 landscape;
  }

  html,
  body {
    background: #fff !important;
    color: #111827 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body > header,
  body > nav,
  .top-bar,
  .site-header,
  .main-nav,
  .module-nav,
  .theme-selector,
  .store-selector,
  .version-widget,
  .scroll-shortcuts,
  .cash-diary-head .actions,
  .cash-diary-head + .messages,
  .cash-report-actions,
  .no-print {
    display: none !important;
  }

  main,
  .container,
  .content,
  .page-content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .cash-diary-head,
  .cash-kpi-grid,
  .cash-alert-summary,
  .cash-diary-layout,
  .cash-payment-layout,
  .cash-accumulated-panel {
    break-inside: avoid;
  }

  .panel,
  .metric,
  .cash-summary-block,
  .cash-envelope-strip,
  .cash-kpi-card {
    box-shadow: none !important;
  }

  .cash-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .cash-diary-layout,
  .cash-payment-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr) !important;
  }
}

.cash-panel-heading {
  align-items: center;
  justify-content: flex-start;
}

.cash-panel-heading h2 {
  margin: 0;
}

.cash-panel-icon {
  height: 30px;
  width: 30px;
}

.cash-admin-analysis-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-admin-analysis-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.cash-admin-analysis-grid span,
.cash-deposit-summary span,
.cash-deposit-confirmation span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-admin-analysis-grid strong {
  color: var(--black);
  font-size: 22px;
}

.cash-admin-analysis-actions {
  margin-top: 16px;
}

.cash-deposit-summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 14px;
}

.cash-deposit-summary > div {
  display: grid;
  gap: 4px;
}

.cash-deposit-summary strong {
  color: var(--black);
}

.two-column-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-deposit-confirmation {
  border-left: 4px solid var(--red);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.cash-deposit-confirmation strong {
  color: var(--black);
  font-size: 24px;
}

.cash-required-deposit-value input,
.cash-operational-input {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: var(--white-fixed) !important;
  font-size: 24px;
  font-weight: 900;
  text-align: left;
}

.cash-required-deposit-value input::placeholder,
.cash-operational-input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.cash-blue-value {
  color: #1d4ed8 !important;
}

.cash-admin-correction-banner {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cash-compact-table th,
.cash-compact-table td {
  font-size: 11px;
  padding: 8px 10px;
  white-space: nowrap;
}

.cash-divergent-form {
  display: grid;
  gap: 8px;
}

.cash-divergent-form [data-divergent-reason] {
  display: grid;
  gap: 6px;
}

.cash-divergent-form [data-divergent-reason][hidden] {
  display: none;
}

.cash-divergent-form input[name="reason"] {
  min-width: 180px;
}

.compact-actions {
  align-items: center;
  gap: 6px;
}

.compact-actions form {
  margin: 0;
}

.cash-denomination-grid {
  display: grid;
  gap: 10px;
}

.cash-denomination-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.cash-denomination-grid label {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  padding: 10px;
}

.cash-denomination-equation {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .cash-denomination-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 420px) {
  .cash-denomination-row {
    grid-template-columns: 1fr;
  }
}

.cash-recount-notice {
  border: 2px solid var(--red);
  box-shadow: 0 14px 36px rgba(215, 0, 0, 0.14);
  text-align: center;
}

.cash-recount-notice h2 {
  color: var(--red);
  font-size: 22px;
  margin: 0;
}

.cash-recount-notice p:last-child {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
}

.cash-analysis-positive {
  background: rgba(22, 163, 74, 0.12);
}

.cash-analysis-neutral {
  background: rgba(22, 163, 74, 0.08);
}

.cash-analysis-negative {
  background: rgba(220, 38, 38, 0.12);
}

.cash-analysis-table th,
.cash-analysis-table td {
  padding: 7px 8px;
  vertical-align: middle;
}

.cash-analysis-table textarea {
  min-height: 38px;
  padding: 8px;
}

.cash-analysis-table textarea.cash-required-justification {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-fixed);
  font-weight: 800;
}

.cash-analysis-table textarea.cash-required-justification::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.cash-analysis-negative .cash-analysis-difference {
  color: var(--red) !important;
}

.cash-analysis-table .cash-analysis-negative td:nth-child(4) {
  color: var(--red) !important;
  font-weight: 900;
}

.cash-smart-summary {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid #2563eb;
  color: var(--black);
  font-weight: 700;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.cash-click-row {
  cursor: pointer;
}

.cash-click-row:hover {
  background: color-mix(in srgb, var(--soft) 70%, var(--white));
}

.cash-truncated-note {
  color: var(--muted);
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions-menu {
  position: relative;
}

.row-actions-menu summary {
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  list-style: none;
  min-width: 36px;
  padding: 4px 8px;
}

.row-actions-menu summary::-webkit-details-marker {
  display: none;
}

.row-actions-menu > div {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
}

.row-actions-menu[open] > div {
  left: var(--row-actions-left, auto);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  position: fixed;
  right: auto;
  top: var(--row-actions-top, auto);
  z-index: 1000;
}

.row-actions-menu a,
.row-actions-menu button {
  background: transparent;
  border: 0;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 7px 8px;
  text-align: left;
  text-decoration: none;
}

.row-actions-menu a:hover,
.row-actions-menu button:hover {
  background: var(--soft);
}

.row-actions-menu form {
  display: grid;
  gap: 4px;
  margin: 0;
}

.cash-envelope-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.cash-denomination-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.cash-denomination-summary > div {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 10px;
}

.cash-denomination-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cash-denomination-summary strong,
.cash-denomination-summary b {
  color: var(--black);
}

@media (max-width: 980px) {
  .cash-envelope-detail-grid {
    grid-template-columns: 1fr;
  }
}

.cash-detail-list {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  margin: 0;
}

.cash-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cash-detail-list dd {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cash-diary-layout .cash-detail-list,
.cash-payment-layout .cash-detail-list {
  gap: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cash-diary-layout .cash-detail-list dt,
.cash-diary-layout .cash-detail-list dd,
.cash-payment-layout .cash-detail-list dt,
.cash-payment-layout .cash-detail-list dd {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.cash-diary-layout .cash-detail-list dt,
.cash-payment-layout .cash-detail-list dt {
  font-size: 13px;
  font-weight: 700;
}

.cash-diary-layout .cash-detail-list dd,
.cash-payment-layout .cash-detail-list dd {
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.module-empty {
  max-width: 520px;
  text-align: center;
}

.module-permission-list {
  margin-top: 12px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.finish-form {
  margin-top: 16px;
}

body[data-active-module="cash"] {
  background: color-mix(in srgb, var(--soft) 46%, var(--white));
}

body[data-active-module="cash"] .topbar {
  background: var(--red);
  border-bottom: 0;
  color: var(--white-fixed);
  flex-wrap: nowrap;
  gap: 14px;
  min-height: 58px;
  padding: 8px 20px;
}

body[data-active-module="cash"] .brand {
  color: var(--white-fixed);
  flex: 0 1 auto;
  font-size: 17px;
  gap: 12px;
  min-width: 0;
}

body[data-active-module="cash"] .brand span {
  overflow-wrap: anywhere;
}

body[data-active-module="cash"] .brand img {
  flex: 0 0 auto;
  height: 46px;
  padding: 0;
  width: 58px;
}

body[data-active-module="cash"] .brand-logo-light {
  display: none;
}

body[data-active-module="cash"] .brand-logo-dark {
  display: block;
}

body[data-active-module="cash"] .topbar-actions {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

body[data-active-module="cash"] .brand-title {
  max-width: clamp(190px, 18vw, 340px);
}

body[data-active-module="cash"] .logout-form,
body[data-active-module="cash"] .store-switch-form,
body[data-active-module="cash"] .theme-control,
body[data-active-module="cash"] .sync-widget {
  flex-wrap: nowrap;
}

body[data-active-module="cash"] .sync-widget {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.42);
  flex-basis: auto;
  max-width: none;
}

body[data-active-module="cash"] .theme-control > span,
body[data-active-module="cash"] .logout-form .user-chip {
  color: var(--white-fixed);
}

body[data-active-module="cash"] .logout-form .user-chip {
  max-width: clamp(150px, 15vw, 260px);
}

body[data-active-module="cash"] .theme-current,
body[data-active-module="cash"] .store-switch-form select {
  border-color: rgba(255, 255, 255, 0.42);
  min-height: 36px;
}

body[data-active-module="cash"] .theme-current {
  min-width: 104px;
}

body[data-active-module="cash"] .store-switch-form select {
  max-width: min(320px, 24vw);
}

body[data-active-module="cash"] .topbar .button {
  border-color: rgba(255, 255, 255, 0.42);
  min-height: 36px;
  padding-left: 12px;
  padding-right: 12px;
}

body[data-active-module="cash"] .topbar .button:not(.button-primary):not(.button-dark) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-fixed);
}

@media (max-width: 1760px) {
  body[data-active-module="cash"] .topbar {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  body[data-active-module="cash"] .brand {
    gap: 8px;
  }

  body[data-active-module="cash"] .brand img {
    height: 40px;
    width: 50px;
  }

  body[data-active-module="cash"] .brand-title {
    font-size: 18px;
    max-width: 250px;
  }

  body[data-active-module="cash"] .topbar-actions {
    gap: 6px;
  }

  body[data-active-module="cash"] .theme-control > span,
  body[data-active-module="cash"] .version-chip small {
    display: none;
  }

  body[data-active-module="cash"] .theme-current {
    min-width: 92px;
  }

  body[data-active-module="cash"] .sync-widget-main,
  body[data-active-module="cash"] .version-chip,
  body[data-active-module="cash"] .topbar .button {
    font-size: 12px;
    min-height: 34px;
    padding-left: 9px;
    padding-right: 9px;
  }

  body[data-active-module="cash"] .store-switch-form {
    flex: 0 1 280px;
    min-width: 190px;
  }

  body[data-active-module="cash"] .store-switch-form select {
    max-width: min(280px, 22vw);
  }

  body[data-active-module="cash"] .logout-form .user-chip {
    max-width: min(210px, 13vw);
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 1480px) {
  body[data-active-module="cash"] .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body[data-active-module="cash"] .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  body[data-active-module="cash"] .logout-form {
    margin-left: auto;
  }
}

body[data-active-module="cash"] .tabs {
  background: var(--black-fixed);
  min-height: 50px;
  padding: 0 28px;
}

body[data-active-module="cash"] .tabs .nav-direct,
body[data-active-module="cash"] .tabs .nav-trigger {
  min-height: 50px;
  padding-left: 18px;
  padding-right: 18px;
}

body[data-active-module="cash"] .tabs .nav-direct:first-child {
  background: var(--red);
  color: var(--white-fixed);
}

.cash-closing-page .page {
  background:
    radial-gradient(circle at 22% 12%, rgba(220, 38, 38, 0.06), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.05), transparent 26%),
    color-mix(in srgb, var(--soft) 60%, var(--white));
  padding: 34px 44px 42px;
}

.cash-closing-shell {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 1680px;
}

.cash-closing-titlebar {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.cash-closing-titlebar h1 {
  font-size: 30px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cash-closing-meta {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(170px, auto));
  margin: 0;
}

.cash-closing-meta div {
  border-left: 1px solid color-mix(in srgb, var(--muted) 32%, transparent);
  padding: 0 28px;
}

.cash-closing-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cash-closing-meta dd {
  color: var(--black);
  font-size: 17px;
  font-weight: 900;
  margin: 4px 0 0;
}

.cash-closing-stepper {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  margin: 10px 38px 4px;
  position: relative;
}

.cash-closing-stepper::before {
  background: var(--line);
  content: "";
  height: 3px;
  left: 36px;
  position: absolute;
  right: 36px;
  top: 20px;
  z-index: 0;
}

.cash-closing-step {
  min-width: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.cash-closing-step a,
.cash-closing-step span {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-decoration: none;
}

.cash-closing-step-marker {
  align-items: center;
  background: var(--white);
  border: 2px solid color-mix(in srgb, var(--muted) 32%, var(--line));
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
  color: var(--black);
  display: inline-flex;
  font-size: 17px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.cash-closing-step-marker img {
  height: 20px;
  width: 20px;
}

.cash-closing-step small {
  color: var(--black);
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 126px;
}

.cash-closing-step-done .cash-closing-step-marker {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white-fixed);
}

.cash-closing-step-active .cash-closing-step-marker {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-fixed);
}

.cash-closing-step-active small {
  color: var(--red);
}

.cash-closing-step-pending .cash-closing-step-marker {
  color: #475569;
}

.cash-closing-card {
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  max-width: 1240px;
  padding: 30px 34px;
  width: min(100%, 1240px);
}

.cash-closing-card-wide {
  max-width: 1560px;
  padding: 34px 38px 26px;
  width: min(100%, 1560px);
}

.cash-closing-form {
  display: grid;
  gap: 22px;
}

.cash-closing-entry {
  display: grid;
  gap: 18px;
  justify-items: stretch;
}

.cash-closing-entry > h2 {
  color: #0f172a;
  font-size: 34px;
  line-height: 1.12;
  text-align: center;
}

.cash-closing-entry > .muted {
  font-size: 16px;
  line-height: 1.45;
  margin: -6px auto 6px;
  max-width: 760px;
  text-align: center;
}

.cash-closing-step-pill {
  align-self: center;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  justify-self: center;
  padding: 8px 14px;
  text-transform: uppercase;
}

.cash-closing-divider {
  background: var(--line);
  height: 1px;
  margin: 2px auto 10px;
  width: 94%;
}

.cash-pdv-flow {
  display: grid;
  gap: 16px;
}

.cash-pdv-flow h3,
.cash-modern-label {
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.cash-counted-display {
  align-items: center;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.1), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(22, 163, 74, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 64px 1fr;
  min-height: 78px;
  padding: 12px 18px;
}

.cash-counted-display span {
  align-items: center;
  background: rgba(22, 163, 74, 0.14);
  border-radius: 999px;
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.cash-counted-display img {
  filter: hue-rotate(98deg) saturate(1.1) brightness(0.8);
  height: 28px;
  width: 28px;
}

.cash-counted-display strong {
  color: #16a34a;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.cash-flow-arrow {
  color: #64748b;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.cash-money-input-row {
  align-items: center;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--muted) 25%, var(--line));
  border-radius: 8px;
  display: grid;
  grid-template-columns: 78px 54px 1fr;
  min-height: 76px;
  overflow: hidden;
}

.cash-money-input-icon {
  align-items: center;
  align-self: stretch;
  background: color-mix(in srgb, var(--soft) 82%, var(--white));
  display: flex;
  justify-content: center;
}

.cash-money-input-icon img {
  filter: grayscale(1) brightness(0.55);
  height: 28px;
  width: 28px;
}

.cash-money-prefix {
  color: #475569;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.cash-closing-page .cash-money-input-row .cash-operational-input,
.cash-closing-page .cash-machine-amount .cash-operational-input {
  background: var(--white) !important;
  border: 0 !important;
  color: #0f172a !important;
  font-size: 30px;
  font-weight: 950;
  min-height: 72px;
  outline: none;
  padding: 10px 18px;
  text-align: left;
  width: 100%;
}

.cash-closing-page .cash-machine-amount .cash-operational-input {
  font-size: 34px;
  min-height: 68px;
  text-align: right;
}

.cash-closing-page .cash-operational-input:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.24);
}

.cash-closing-help,
.cash-closing-lock {
  align-items: center;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  color: #1e40af;
  display: flex;
  font-size: 15px;
  font-weight: 750;
  gap: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 14px 18px;
}

.cash-closing-help img {
  filter: hue-rotate(205deg) saturate(1.2) brightness(0.92);
  height: 24px;
  width: 24px;
}

.cash-machine-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 290px;
  margin-top: 8px;
}

.cash-machine-fields {
  display: grid;
  gap: 12px;
}

.cash-machine-field {
  align-items: center;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--muted) 24%, var(--line));
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: 110px minmax(0, 1fr) minmax(230px, 300px);
  min-height: 126px;
  overflow: hidden;
}

.cash-machine-field-apurado .cash-machine-icon {
  background: rgba(22, 163, 74, 0.11);
}

.cash-machine-field-system .cash-machine-icon {
  background: rgba(37, 99, 235, 0.09);
}

.cash-machine-icon {
  align-items: center;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.cash-machine-icon img {
  height: 42px;
  width: 42px;
}

.cash-machine-field-apurado .cash-machine-icon img {
  filter: hue-rotate(110deg) saturate(1.15) brightness(0.84);
}

.cash-machine-field-system .cash-machine-icon img {
  filter: hue-rotate(205deg) saturate(1.18) brightness(0.9);
}

.cash-machine-copy {
  display: grid;
  gap: 8px;
}

.cash-machine-copy h3 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.cash-machine-copy h3 span {
  font-weight: 600;
}

.cash-machine-copy p {
  color: #475569;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
}

.cash-machine-amount {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--muted) 25%, var(--line));
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 48px 1fr;
  margin-right: 24px;
  min-height: 72px;
  padding-left: 12px;
}

.cash-machine-amount span {
  color: #475569;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.cash-machine-guidance {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  color: #334155;
  padding: 28px 24px;
}

.cash-machine-guidance h3 {
  align-items: center;
  color: #1d4ed8;
  display: flex;
  font-size: 18px;
  gap: 10px;
  margin: 0 0 22px;
}

.cash-machine-guidance img {
  filter: hue-rotate(205deg) saturate(1.2) brightness(0.92);
  height: 24px;
  width: 24px;
}

.cash-machine-guidance ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.cash-machine-guidance li {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.cash-closing-submit {
  align-items: center;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
  display: inline-flex;
  font-size: 20px;
  gap: 22px;
  justify-content: center;
  min-height: 66px;
  width: 100%;
}

.cash-closing-submit b {
  font-size: 30px;
  line-height: 1;
}

.cash-closing-lock {
  background: rgba(148, 163, 184, 0.11);
  border: 0;
  color: #475569;
  display: block;
  text-align: center;
}

.cash-closing-lock strong {
  color: #1e293b;
}

.cash-closing-total strong {
  color: #16a34a;
}

.cash-envelope-step-summary {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
  width: min(100%, 720px);
}

.cash-envelope-step-card {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 210px;
  padding: 14px 18px;
  text-align: center;
  width: max-content;
}

.cash-envelope-step-card span {
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.cash-envelope-step-card strong {
  font-size: 24px;
  line-height: 1.1;
  white-space: nowrap;
}

.cash-envelope-number-card {
  min-width: 150px;
}

.cash-envelope-number-card strong {
  font-size: 22px;
  max-width: 260px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cash-step-feature-layout {
  align-items: stretch;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  margin-top: 8px;
}

.cash-step-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.cash-step-highlight-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-step-kpi {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 28px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 188px;
  padding: 28px 34px;
}

.cash-step-kpi-icon {
  align-items: center;
  border-radius: 999px;
  display: flex;
  height: 86px;
  justify-content: center;
  width: 86px;
}

.cash-step-kpi-icon img {
  height: 44px;
  width: 44px;
}

.cash-step-kpi h3 {
  align-items: center;
  color: #0f172a;
  display: flex;
  font-size: 18px;
  font-weight: 950;
  gap: 8px;
  margin: 0 0 8px;
}

.cash-step-kpi h3 small {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.cash-step-kpi p {
  color: #475569;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 16px;
}

.cash-step-kpi strong {
  display: block;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.05;
}

.cash-step-kpi mark {
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  margin-top: 12px;
  padding: 6px 12px;
}

.cash-step-kpi-warning {
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.86));
  border-color: rgba(245, 158, 11, 0.24);
}

.cash-step-kpi-warning .cash-step-kpi-icon {
  background: rgba(245, 158, 11, 0.13);
}

.cash-step-kpi-warning img,
.cash-step-guidance-warning h3 img {
  filter: sepia(1) saturate(4.4) hue-rotate(350deg) brightness(0.98);
}

.cash-step-kpi-warning strong,
.cash-step-guidance-warning h3 {
  color: #d97706;
}

.cash-step-kpi-danger {
  background: linear-gradient(120deg, rgba(220, 38, 38, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(220, 38, 38, 0.2);
}

.cash-step-kpi-danger .cash-step-kpi-icon {
  background: rgba(220, 38, 38, 0.11);
}

.cash-step-kpi-danger img {
  filter: hue-rotate(330deg) saturate(1.5) brightness(0.9);
}

.cash-step-kpi-danger strong,
.cash-coupon-diff strong,
.cash-coupon-diff em {
  color: var(--red);
}

.cash-step-kpi-blue {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(37, 99, 235, 0.22);
}

.cash-step-kpi-blue .cash-step-kpi-icon {
  background: rgba(37, 99, 235, 0.12);
}

.cash-step-kpi-blue img,
.cash-pairs-input-icon img {
  filter: hue-rotate(205deg) saturate(1.15) brightness(0.9);
}

.cash-step-kpi-blue strong {
  color: #2563eb;
}

.cash-step-kpi-blue mark {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.cash-step-kpi-green {
  background: linear-gradient(120deg, rgba(22, 163, 74, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(22, 163, 74, 0.22);
}

.cash-step-kpi-green .cash-step-kpi-icon {
  background: rgba(22, 163, 74, 0.12);
}

.cash-step-kpi-green img {
  filter: hue-rotate(98deg) saturate(1.1) brightness(0.8);
}

.cash-step-kpi-green strong {
  color: #15803d;
}

.cash-step-kpi-green mark {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.cash-coupon-input-row {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 28%, var(--line));
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 280px;
  padding-bottom: 10px;
}

.cash-coupon-input-row span {
  color: var(--red);
  font-size: 28px;
  font-weight: 950;
}

.cash-closing-page .cash-coupon-input-row .cash-operational-input {
  background: transparent !important;
  border: 0 !important;
  color: var(--red) !important;
  font-size: 32px;
  font-weight: 950;
  min-height: 48px;
  outline: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.cash-coupon-diff {
  margin: 12px 0 0;
}

.cash-coupon-diff dt {
  color: #475569;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 6px;
}

.cash-coupon-diff dd {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 0;
}

.cash-coupon-diff strong {
  font-size: 24px;
  font-weight: 950;
}

.cash-coupon-diff em {
  background: rgba(220, 38, 38, 0.12);
  border-radius: 999px;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  padding: 6px 10px;
}

.cash-step-info-strip {
  max-width: none;
}

.cash-modern-textarea {
  display: grid;
  gap: 10px;
}

.cash-modern-textarea > span {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.cash-modern-textarea textarea {
  border: 1px solid color-mix(in srgb, var(--muted) 24%, var(--line));
  border-radius: 8px;
  min-height: 74px;
  padding: 14px 16px;
}

.cash-modern-textarea small {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.cash-step-guidance {
  align-self: stretch;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 8px;
  color: #334155;
  padding: 30px 28px;
}

.cash-step-guidance h3 {
  align-items: center;
  display: flex;
  font-size: 18px;
  gap: 10px;
  margin: 0 0 22px;
}

.cash-step-guidance h3 img {
  height: 25px;
  width: 25px;
}

.cash-step-guidance ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cash-step-guidance li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  padding: 0 0 14px;
}

.cash-step-guidance li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cash-pairs-input-card {
  align-items: center;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--muted) 24%, var(--line));
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 104px minmax(0, 1fr) minmax(260px, 420px);
  min-height: 116px;
  overflow: hidden;
}

.cash-pairs-input-icon {
  align-items: center;
  align-self: stretch;
  background: rgba(37, 99, 235, 0.09);
  display: flex;
  justify-content: center;
}

.cash-pairs-input-icon img {
  height: 42px;
  width: 42px;
}

.cash-pairs-input-card label {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.cash-pairs-input-card label b {
  color: var(--red);
}

.cash-pairs-input-card p {
  color: #475569;
  font-size: 15px;
  font-weight: 650;
  margin: 8px 0 0;
}

.cash-pairs-input-row {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--muted) 24%, var(--line));
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  margin-right: 24px;
  overflow: hidden;
}

.cash-closing-page .cash-pairs-input-row .cash-operational-input {
  background: var(--white) !important;
  border: 0 !important;
  color: #0f172a !important;
  font-size: 34px;
  font-weight: 950;
  min-height: 72px;
  outline: none;
  padding: 10px 18px;
  text-align: right;
}

.cash-pairs-input-row > span {
  align-items: center;
  align-self: stretch;
  background: color-mix(in srgb, var(--soft) 78%, var(--white));
  color: #334155;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  justify-content: center;
}

@media (max-width: 1280px) {
  .cash-closing-page .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cash-closing-stepper {
    margin-left: 0;
    margin-right: 0;
  }

  .cash-closing-step small {
    font-size: 13px;
    max-width: 106px;
  }

  .cash-machine-layout {
    grid-template-columns: 1fr;
  }

  .cash-step-feature-layout {
    grid-template-columns: 1fr;
  }

  .cash-machine-guidance {
    padding: 18px 20px;
  }
}

@media (max-width: 980px) {
  .cash-closing-titlebar {
    display: grid;
  }

  .cash-closing-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .cash-closing-meta div {
    padding: 0 14px;
  }

  .cash-closing-stepper {
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cash-closing-stepper::before {
    display: none;
  }

  .cash-closing-card {
    padding: 22px;
  }

  .cash-step-highlight-grid {
    grid-template-columns: 1fr;
  }

  .cash-machine-field {
    grid-template-columns: 86px minmax(0, 1fr);
    padding-right: 16px;
  }

  .cash-step-kpi,
  .cash-pairs-input-card {
    grid-template-columns: 86px minmax(0, 1fr);
    padding-right: 18px;
  }

  .cash-pairs-input-row {
    grid-column: 2;
    margin: 0 0 18px;
  }

  .cash-machine-amount {
    grid-column: 2;
    margin: 0 0 18px;
  }
}

@media (max-width: 680px) {
  .cash-closing-page .page {
    padding: 18px 12px 28px;
  }

  .cash-closing-titlebar h1,
  .cash-closing-entry > h2 {
    font-size: 24px;
  }

  .cash-closing-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cash-closing-meta div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
  }

  .cash-closing-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-closing-card {
    padding: 16px;
  }

  .cash-closing-card-wide {
    padding: 18px 14px;
  }

  .cash-counted-display,
  .cash-money-input-row {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 14px;
  }

  .cash-money-input-icon {
    align-self: auto;
    border-radius: 999px;
    height: 52px;
    width: 52px;
  }

  .cash-money-prefix {
    display: none;
  }

  .cash-closing-page .cash-money-input-row .cash-operational-input,
  .cash-closing-page .cash-machine-amount .cash-operational-input {
    text-align: center;
  }

  .cash-machine-field {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
    text-align: center;
  }

  .cash-step-kpi,
  .cash-pairs-input-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cash-step-kpi-icon,
  .cash-pairs-input-icon {
    align-self: auto;
    height: 64px;
    width: 64px;
  }

  .cash-pairs-input-row {
    grid-column: auto;
    grid-template-columns: 1fr 84px;
    margin: 0;
  }

  .cash-closing-page .cash-pairs-input-row .cash-operational-input,
  .cash-closing-page .cash-coupon-input-row .cash-operational-input {
    font-size: 26px;
  }

  .cash-machine-icon {
    align-self: auto;
    border-radius: 999px;
    height: 68px;
    width: 68px;
  }

  .cash-machine-amount {
    grid-column: 1;
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .topbar .logout-form {
    margin-left: auto;
  }

  body[data-active-module="cash"] .topbar {
    flex-wrap: wrap;
  }

  body[data-active-module="cash"] .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }
}

.cash-home-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cash-home-head h1 {
  font-size: 34px;
  line-height: 1.1;
  text-transform: uppercase;
}

.cash-home-meta,
.cash-home-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cash-home-meta {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  margin-top: 8px;
}

.cash-home-head-actions .button {
  min-width: 104px;
}

.cash-button-excel {
  border-color: #15803d;
  color: #15803d;
}

.cash-home-filter {
  justify-content: flex-end;
}

.cash-home-date-filter {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  max-width: 300px;
  padding: 12px;
}

.cash-home-date-filter label {
  width: 100%;
}

.cash-home-status,
.cash-home-grid,
.cash-home-lower-grid,
.cash-home-bottom-grid {
  display: grid;
  gap: 14px;
}

.cash-home-status {
  align-items: center;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  padding: 20px;
}

.cash-home-status-main {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.cash-home-status-icon {
  border-radius: 50%;
  height: 54px;
  padding: 10px;
  width: 54px;
}

.cash-home-status-ok .cash-home-status-icon {
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.24);
}

.cash-home-status-warning .cash-home-status-icon {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.cash-home-status-main h2 {
  color: #15803d;
  font-size: 26px;
  line-height: 1.05;
}

.cash-home-status-warning .cash-home-status-main h2 {
  color: #b45309;
}

.cash-home-status-main span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.cash-home-status-items {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cash-home-status-items > div {
  align-items: center;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 62px;
  padding: 0 18px;
}

.cash-home-status-items img {
  grid-row: span 2;
  height: 30px;
  width: 30px;
}

.cash-home-status-items strong,
.cash-home-status-items span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cash-home-status-items strong {
  color: var(--black);
  font-size: 14px;
}

.cash-home-status-items span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cash-home-grid {
  grid-template-columns: minmax(280px, 1.18fr) minmax(280px, 0.92fr) minmax(280px, 1fr);
}

.cash-home-lower-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.98fr);
}

.cash-home-bottom-grid {
  grid-template-columns: minmax(0, 2.15fr) minmax(320px, 0.82fr);
}

.cash-home-next,
.cash-home-flow,
.cash-home-envelope,
.cash-home-summary,
.cash-home-alerts,
.cash-home-recent,
.cash-home-quick {
  margin-bottom: 0;
}

.cash-home-next,
.cash-home-flow,
.cash-home-envelope {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 280px;
}

.cash-home-next .button,
.cash-home-flow .button,
.cash-home-envelope .button,
.cash-home-summary .button,
.cash-home-recent > .button {
  justify-self: stretch;
}

.cash-home-next-content {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
}

.cash-home-next-content img {
  background: #fbbf24;
  border-radius: 50%;
  height: 74px;
  padding: 18px;
  width: 74px;
}

.cash-home-next-content h2 {
  font-size: 22px;
  line-height: 1.15;
}

.cash-home-next-content p,
.cash-home-next-content span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 8px 0 0;
}

.cash-home-section-title {
  align-items: center;
  display: flex;
  gap: 12px;
}

.cash-home-section-title img {
  height: 28px;
  width: 28px;
}

.cash-home-timeline {
  display: grid;
  gap: 0;
}

.cash-home-flow-step {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 54px;
  position: relative;
}

.cash-home-flow-step::after {
  background: var(--line);
  bottom: 0;
  content: "";
  left: 11px;
  position: absolute;
  top: 24px;
  width: 2px;
}

.cash-home-flow-step:last-child::after {
  display: none;
}

.cash-home-flow-dot {
  background: var(--white);
  border: 3px solid var(--muted);
  border-radius: 50%;
  height: 18px;
  margin-top: 2px;
  position: relative;
  width: 18px;
  z-index: 1;
}

.cash-home-flow-done .cash-home-flow-dot {
  background: #16a34a;
  border-color: #16a34a;
}

.cash-home-flow-active .cash-home-flow-dot {
  background: #fbbf24;
  border-color: #fbbf24;
}

.cash-home-flow-warning .cash-home-flow-dot {
  background: #f59e0b;
  border-color: #f59e0b;
}

.cash-home-flow-step strong,
.cash-home-flow-step small,
.cash-home-flow-step time {
  display: block;
}

.cash-home-flow-step strong {
  color: var(--black);
  font-size: 15px;
}

.cash-home-flow-step small,
.cash-home-flow-step time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cash-home-envelope-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.cash-home-envelope-box > div {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 16px;
}

.cash-home-envelope-box > div:nth-child(2n) {
  border-right: 0;
}

.cash-home-envelope-box > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cash-home-envelope-box span,
.cash-home-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cash-home-envelope-box strong {
  color: var(--black);
  font-size: 24px;
}

.cash-home-summary {
  display: grid;
  gap: 14px;
}

.cash-home-summary-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cash-home-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 14px;
}

.cash-home-summary-card span,
.cash-home-summary-card strong {
  grid-column: 1;
}

.cash-home-summary-card strong {
  color: var(--black);
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cash-home-summary-card img {
  align-self: end;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 34px;
  width: 34px;
}

.cash-home-summary-values {
  display: grid;
  gap: 2px 8px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 6px;
}

.cash-home-summary-values small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-home-summary-values b {
  color: var(--black);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.cash-home-summary-values-single {
  grid-template-columns: auto minmax(0, 1fr);
}

.cash-home-card-green {
  background: rgba(22, 163, 74, 0.08);
}

.cash-home-card-blue {
  background: rgba(37, 99, 235, 0.08);
}

.cash-home-card-red {
  background: rgba(220, 38, 38, 0.07);
}

.cash-home-card-purple {
  background: rgba(126, 34, 206, 0.07);
}

.cash-home-card-gold {
  background: rgba(245, 158, 11, 0.09);
}

.cash-home-alerts {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cash-home-alert-list {
  display: grid;
}

.cash-home-alert {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 0;
}

.cash-home-alert:first-child {
  border-top: 0;
}

.cash-home-alert img {
  height: 24px;
  width: 24px;
}

.cash-home-alert strong,
.cash-home-alert span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cash-home-alert strong {
  color: var(--black);
  font-size: 13px;
}

.cash-home-alert span,
.cash-home-alert time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cash-home-alert-critical strong,
.cash-home-alert-critical span,
.cash-home-alert-critical time {
  color: var(--red);
}

.cash-home-alert-info img {
  filter: hue-rotate(170deg);
}

.cash-home-recent {
  display: grid;
  gap: 12px;
}

.cash-home-recent .data-table th,
.cash-home-recent .data-table td {
  white-space: nowrap;
}

.cash-home-quick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-home-quick-grid .button {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 68px;
}

.cash-home-quick-grid img {
  height: 28px;
  width: 28px;
}

.cash-general-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(220px, 0.6fr);
}

.cash-general-summary-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) minmax(220px, 0.7fr);
}

.cash-general-card {
  align-content: start;
  display: grid;
  gap: 12px;
}

.cash-general-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.cash-general-card summary span,
.cash-general-action-card span,
.cash-general-total-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cash-general-card summary strong,
.cash-general-action-card strong,
.cash-general-total-card strong {
  color: var(--black);
  font-size: 30px;
  line-height: 1;
}

.cash-general-action-card {
  align-content: stretch;
  min-height: 116px;
}

.cash-general-action-card > div {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.cash-general-action-card .button {
  justify-self: stretch;
  text-align: center;
}

.cash-general-total-card {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.24);
}

.cash-admin-report-panel {
  display: grid;
  gap: 18px;
}

.cash-admin-report-head,
.cash-admin-subhead {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.cash-admin-report-head {
  padding: 4px 0 2px;
}

.cash-admin-subhead {
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  padding: 16px 18px;
}

.cash-admin-title {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.cash-admin-title img {
  background: rgba(220, 38, 38, 0.09);
  border-radius: 8px;
  height: 44px;
  padding: 10px;
  width: 44px;
}

.cash-admin-title h2,
.cash-admin-title h3,
.cash-admin-title p {
  margin: 0;
}

.cash-admin-title h2 {
  color: var(--black);
  font-size: 28px;
  line-height: 1.08;
}

.cash-admin-title h3 {
  color: var(--black);
  font-size: 22px;
  line-height: 1.1;
}

.cash-admin-title p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.cash-admin-title-small img {
  background: rgba(37, 99, 235, 0.1);
  height: 40px;
  width: 40px;
}

.cash-admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cash-admin-table-wrap .data-table {
  min-width: 1280px;
}

.cash-envelope-report-table {
  min-width: 1380px;
}

.cash-envelope-approval-panel {
  overflow: hidden;
}

.cash-envelope-approval-table {
  min-width: 1180px;
  table-layout: fixed;
}

.cash-envelope-approval-table .cash-envelope-approval-check {
  width: 48px;
}

.cash-envelope-approval-table .cash-envelope-approval-store {
  width: 15%;
}

.cash-envelope-approval-table .cash-envelope-approval-date {
  width: 110px;
}

.cash-envelope-approval-table .cash-envelope-approval-number {
  width: 88px;
}

.cash-envelope-approval-table .cash-envelope-approval-money {
  width: 130px;
}

.cash-envelope-approval-table .cash-envelope-approval-status {
  width: 160px;
}

.cash-envelope-approval-table .cash-envelope-approval-deposit {
  width: 210px;
}

.cash-envelope-approval-table .cash-envelope-approval-transfer {
  width: 220px;
}

.cash-envelope-approval-table .cash-envelope-approval-user {
  width: 170px;
}

.cash-envelope-approval-table .cash-envelope-approval-actions {
  width: 92px;
}

.cash-envelope-approval-table th,
.cash-envelope-approval-table td {
  font-size: 13px;
  line-height: 1.28;
  overflow: hidden;
  padding: 13px 12px;
  text-overflow: ellipsis;
}

.cash-envelope-approval-table th {
  white-space: normal;
}

.cash-envelope-approval-table td {
  white-space: nowrap;
}

.cash-envelope-approval-table td:nth-child(1) {
  text-align: center;
}

.cash-envelope-approval-table td:nth-child(6),
.cash-envelope-approval-table td:nth-child(7) {
  white-space: normal;
}

.cash-envelope-approval-table .cash-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-envelope-approval-table .cash-truncated-note {
  max-width: 100%;
}

.cash-envelope-approval-table .compact-actions {
  justify-content: flex-start;
}

.cash-inline-cancel-form {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 320px;
}

.cash-inline-cancel-form input[type="text"] {
  min-width: 180px;
}

.cash-envelope-approval-table .compact-actions .button {
  min-height: 34px;
  padding: 7px 10px;
}

.cash-approval-filter {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-content: start;
}

.cash-approval-filter .button {
  align-self: end;
}

.cash-approval-bulk-actions {
  align-items: center;
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

@media (max-width: 900px) {
  .cash-approval-filter,
  .cash-approval-bulk-actions {
    grid-template-columns: 1fr;
  }
}

.cash-approval-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.cash-approval-tabs a {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.cash-approval-tabs a.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.cash-admin-day-table th,
.cash-admin-day-table td,
.cash-admin-accumulated-table th,
.cash-admin-accumulated-table td {
  font-size: 14px;
  padding: 17px 18px;
  vertical-align: middle;
  white-space: nowrap;
}

.cash-admin-day-table td:nth-child(2) a,
.cash-admin-accumulated-table td:first-child a {
  color: var(--red);
  font-weight: 1000;
  text-transform: uppercase;
}

.cash-admin-day-table td:nth-child(12) {
  min-width: 260px;
  white-space: normal;
}

.cash-admin-justification {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: -webkit-box;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  max-width: 330px;
  min-height: 44px;
  overflow: hidden;
  padding: 9px 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cash-admin-accumulated {
  margin-top: 18px;
}

.cash-admin-accumulated-block {
  display: grid;
  gap: 0;
}

.cash-admin-accumulated-block .cash-admin-table-wrap {
  border-radius: 0 0 8px 8px;
  border-top: 0;
}

.cash-admin-accumulated-table .cash-report-total-row td {
  color: #174ea6;
}

.cash-report-total-row-green {
  background: rgba(22, 163, 74, 0.11);
}

.cash-report-total-row-green td {
  color: #15803d !important;
}

.cash-report-subtotal-row,
.cash-report-total-row {
  font-weight: 900;
}

.cash-report-subtotal-row {
  background: rgba(17, 24, 39, 0.05);
}

.cash-report-total-row {
  background: rgba(37, 99, 235, 0.12);
  color: #174ea6;
}

.cash-day-justification,
.cash-final-justification {
  border-left: 4px solid var(--red);
}

.cash-day-justification p,
.cash-final-justification p {
  font-weight: 700;
  margin: 0;
}

.cash-final-justification {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cash-final-justification textarea {
  min-height: 110px;
  width: 100%;
}

.cash-count-overview-grid,
.cash-flow-readonly-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cash-count-tables,
.cash-count-panel,
.cash-flow-section {
  display: grid;
  gap: 12px;
}

.cash-count-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cash-count-table summary {
  background: rgba(17, 24, 39, 0.04);
  cursor: pointer;
  font-weight: 900;
  padding: 12px 14px;
}

.cash-count-table .table-scroll {
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .warehouse-home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .warehouse-home-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-home-grid {
    grid-template-columns: 1fr;
  }

  .order-stock-summary .category-summary,
  .stock-classification-summary {
    grid-template-columns: repeat(4, minmax(88px, 1fr));
  }

  .conference-layout {
    grid-template-columns: 1fr;
  }

  .cash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-diary-layout,
  .cash-payment-layout {
    grid-template-columns: 1fr;
  }

  .cash-home-status,
  .cash-home-grid,
  .cash-home-lower-grid,
  .cash-home-bottom-grid,
  .cash-general-grid {
    grid-template-columns: 1fr;
  }

  .cash-home-status-items,
  .cash-home-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-home-status-items > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }
}

@media (max-width: 860px) {
  .bi-head,
  .bi-filter-actions {
    align-items: stretch;
    display: grid;
  }

  .bi-filter-grid,
  .bi-dashboard-grid,
  .bi-ranking-columns,
  .bi-source-grid {
    grid-template-columns: 1fr;
  }

  .bi-filter-wide {
    grid-row: auto;
  }

  .bi-chart {
    min-height: 280px;
  }

  .appearance-hide-mobile {
    display: none;
  }

  .appearance-background {
    background-size: 120vw auto;
    opacity: 0.05;
  }

  body {
    font-size: 15px;
  }

  .order-request-head {
    display: grid;
  }

  .order-stock-summary {
    flex-basis: auto;
    margin-left: 0;
    width: 100%;
  }

  .order-stock-summary .category-summary,
  .stock-classification-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    min-height: 0;
    padding: 10px 12px;
  }

  .cash-kpi-grid,
  .cash-summary-grid,
  .cash-alert-summary,
  .cash-envelope-strip,
  .cash-accumulated-grid,
  .cash-envelope-comparison-grid,
  .cash-admin-analysis-grid,
  .cash-deposit-summary,
  .cash-opening-lock-main,
  .cash-opening-lock-metrics,
  .two-column-fields {
    grid-template-columns: 1fr;
  }

  .cash-opening-lock {
    max-width: none;
  }

  .cash-opening-lock-icon {
    height: 58px;
    width: 58px;
  }

  .cash-opening-lock-main h2 {
    font-size: 22px;
  }

  .cash-kpi-card {
    min-height: 0;
  }

  .cash-alert-justification,
  .cash-envelope-strip div + div,
  .cash-accumulated-grid section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .brand {
    gap: 10px;
    line-height: 1.15;
  }

  .brand img {
    flex: 0 0 auto;
    height: 44px;
    width: 54px;
  }

  .brand span {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .topbar-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .login-page .topbar {
    align-items: flex-end;
  }

  .login-page .topbar-actions {
    display: flex;
    width: auto;
  }

  .theme-control,
  .store-switch-form,
  .logout-form {
    align-items: stretch;
    width: 100%;
  }

  .theme-control {
    display: grid;
    gap: 4px;
  }

  .theme-picker,
  .theme-current,
  .store-switch-form select,
  .topbar-actions .button,
  .logout-form .button {
    min-height: 42px;
    width: 100%;
  }

  .theme-current {
    justify-content: flex-start;
  }

  .theme-options {
    left: 0;
    right: auto;
  }

  .logout-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .user-chip {
    align-items: center;
    justify-content: center;
    min-height: 42px;
  }

  .login-page .system-version {
    display: block;
    margin: 0 12px 18px auto;
    position: static;
    width: max-content;
  }

  .metric-grid,
  .two-column,
  .dashboard-grid,
  .warehouse-home-metrics,
  .warehouse-home-summary,
  .warehouse-home-grid,
  .settings-metric-row,
  .settings-diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .settings-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-tabs a,
  .settings-tabs span {
    flex: 1 1 160px;
    text-align: center;
  }

  .metric-wide {
    grid-column: auto;
  }

  .category-summary {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-section {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 14px 10px 82px;
  }

  .page-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .warehouse-home-head {
    align-items: stretch;
    display: grid;
    gap: 14px;
  }

  .page-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .finance-title,
  .warehouse-title {
    align-items: flex-start;
  }

  .finance-title img,
  .warehouse-title img {
    height: 46px;
    width: 46px;
  }

  .warehouse-home-metric {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 96px;
    padding: 14px;
  }

  .warehouse-home-metric-icon {
    height: 42px;
    width: 42px;
  }

  .warehouse-home-metric strong {
    font-size: 22px;
  }

  .warehouse-home-panel-head {
    display: grid;
    gap: 10px;
  }

  .warehouse-filter-bar {
    padding: 10px;
  }

  .warehouse-table-scroll .warehouse-data-table {
    display: table;
    overflow: visible;
    white-space: normal;
  }

  .warehouse-form-grid-wide {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 17px;
  }

  .actions,
  .inline-form,
  .bulk-actions,
  .request-section-actions,
  .system-dialog-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button,
  button {
    align-items: center;
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
  }

  .panel {
    margin-bottom: 12px;
    padding: 14px;
  }

  .panel-head {
    align-items: stretch;
    display: grid;
    gap: 8px;
  }

  .metric-grid {
    gap: 10px;
    margin-bottom: 12px;
  }

  .metric {
    padding: 14px;
  }

  .metric strong {
    font-size: 26px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .table-scroll {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 -2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll .data-table {
    min-width: 680px;
  }

  .table-scroll .document-items-table {
    min-width: 1060px;
  }

  .product-search-head,
  .product-result-row,
  .product-search-foot,
  .product-search-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-result-check {
    display: flex;
    justify-content: flex-start;
    min-height: 0;
  }

  .product-result-quantity {
    max-width: 180px;
  }

  .data-table th,
  .data-table td {
    font-size: 13px;
    padding: 10px 9px;
  }

  .quick-nav {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 10px 0;
    padding: 6px;
    width: auto;
  }

  .quick-nav a,
  .quick-nav button {
    min-height: 38px;
    padding: 8px 6px;
  }

  .system-version {
    font-size: 10px;
    margin: 8px 10px 12px auto;
  }

  .version-chip {
    flex-direction: row;
    gap: 5px;
    min-height: 34px;
    padding: 5px 8px;
  }

  .version-chip small {
    display: none;
  }

  .sync-widget {
    grid-column: auto;
    max-width: none;
    width: 100%;
  }

  .sync-widget-main {
    min-height: 42px;
    width: 100%;
  }

  .sync-widget button {
    display: none;
  }

  .changelog-latest,
  .changelog-layout {
    grid-template-columns: 1fr;
  }

  .changelog-index {
    position: static;
  }

  .changelog-latest h2 {
    font-size: 28px;
  }

  .permission-topic-head {
    grid-template-columns: 1fr;
  }

  .permission-topic-controls {
    justify-content: stretch;
  }

  .tabs {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav-group,
  .nav-direct {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-trigger,
  .tabs a {
    min-height: 44px;
    padding: 14px 12px;
    white-space: nowrap;
    width: auto;
  }

  .nav-menu {
    height: 0;
    left: auto;
    max-width: calc(100vw - 20px);
    min-width: 180px;
    opacity: 1;
    overflow: hidden;
    position: static;
    transform: none;
    transition: none;
    width: max-content;
  }

  .nav-group.is-open .nav-menu,
  .nav-group:hover .nav-menu,
  .nav-group:focus-within .nav-menu {
    height: auto;
    max-height: 320px;
    opacity: 1;
    overflow-y: auto;
    transform: none;
  }

  .tabs .nav-group.is-open > .nav-menu {
    display: grid;
    height: auto;
    max-height: 320px;
    opacity: 1;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-menu a {
    min-height: 42px;
    padding: 12px 14px;
  }

  .checkbox-card {
    width: 100%;
  }

  .module-shell {
    min-height: calc(100vh - 190px);
  }

  .entry-pendency-list {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .module-card {
    min-height: 220px;
  }

  .cash-step,
  .cash-detail-list {
    grid-template-columns: 1fr;
  }

  .cash-payment-grid {
    grid-template-columns: 1fr;
  }

  body[data-active-module="cash"] .topbar,
  body[data-active-module="cash"] .tabs {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cash-home-head,
  .cash-home-head-actions,
  .cash-home-meta {
    align-items: stretch;
    display: grid;
  }

  .cash-home-head h1 {
    font-size: 28px;
  }

  .cash-home-status-items,
  .cash-home-summary-cards,
  .cash-home-envelope-box,
  .cash-home-quick-grid {
    grid-template-columns: 1fr;
  }

  .cash-home-envelope-box > div,
  .cash-home-envelope-box > div:nth-child(2n),
  .cash-home-envelope-box > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .cash-home-envelope-box > div:last-child {
    border-bottom: 0;
  }

  .request-section-head,
  .field-title-row {
    align-items: stretch;
    display: grid;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .appearance-theme-card,
  .appearance-media-card,
  .appearance-preview-pair {
    grid-template-columns: 1fr;
  }

  .appearance-studio-form,
  .appearance-media-picker ul,
  .appearance-media-choice-grid {
    grid-template-columns: 1fr;
  }

  .appearance-media-card {
    justify-items: start;
  }

  .topbar-actions {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logout-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .user-chip {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand span {
    font-size: 12px;
  }

  .page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .panel,
  .metric,
  .settings-mini-metric,
  .settings-diagnostic-grid div,
  .cash-step {
    border-radius: 6px;
  }

  .module-card {
    min-height: 190px;
    padding: 18px;
  }

  .module-illustration {
    height: 104px;
    transform: scale(0.86);
  }

  .module-name {
    font-size: 22px;
  }

  .module-description {
    font-size: 12px;
  }

  .table-scroll .data-table {
    min-width: 620px;
  }

  .system-dialog {
    max-height: 90vh;
    padding: 18px;
    width: min(94vw, 560px);
  }
}

@media (max-width: 1280px) {
  .bi-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bi-hero-grid,
  .bi-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bi-hero-grid .bi-panel:first-child {
    grid-column: 1 / -1;
  }

  .bi-console-filter-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 920px) {
  .bi-console-shell {
    grid-template-columns: 1fr;
  }

  .bi-console-sidebar {
    min-height: 0;
    padding: 14px;
  }

  .bi-console-brand,
  .bi-console-sidebar-foot {
    display: none;
  }

  .bi-console-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .bi-console-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .bi-console-head,
  .bi-console-actions {
    align-items: stretch;
    display: grid;
    justify-content: stretch;
  }

  .bi-console-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bi-updated-at {
    grid-column: 1 / -1;
  }

  .bi-hero-grid,
  .bi-secondary-grid,
  .bi-more-filter-grid,
  .bi-import-grid,
  .bi-import-summary,
  .bi-import-check-grid,
  .bi-alert-list-full {
    grid-template-columns: 1fr;
  }

  .bi-more-filter-grid {
    position: static;
    width: auto;
  }

  .bi-cash-status-grid,
  .bi-stock-summary,
  .bi-alias-form,
  .bi-confirm-import-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bi-console-main {
    padding: 10px;
  }

  .bi-console-filter-row,
  .bi-kpi-strip,
  .bi-difference-grid,
  .bi-console-actions {
    grid-template-columns: 1fr;
  }

  .bi-more-filters summary {
    margin-top: 0;
  }

  .bi-kpi-card {
    min-height: 96px;
  }

  .bi-donut-layout {
    grid-template-columns: 1fr;
  }

  .bi-chart-tabs {
    display: none;
  }

  .bi-cash-status-grid,
  .bi-stock-summary,
  .bi-alias-form,
  .bi-confirm-import-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .appearance-reduce-motion {
    animation: none;
  }
}

.form-section {
  grid-column: 1 / -1;
}

.form-section h2 {
  margin-bottom: 4px;
}

.cash-rule-fund-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.cash-rule-fund-total {
  grid-column: 1 / -1;
}

.cash-rule-fund-table input[type="number"] {
  max-width: 140px;
}

.cash-rule-fund-required {
  align-items: center;
  margin: 0;
}

.cash-rule-fund-total small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.cash-envelope-composition {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.cash-envelope-composition h3 {
  font-size: 16px;
  margin: 0;
}

.cash-pending-envelope-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cash-pending-envelope-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cash-pending-envelope-card:hover,
.cash-pending-envelope-card:focus-visible {
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(220, 0, 0, 0.12);
  transform: translateY(-1px);
}

.cash-pending-envelope-card.is-active {
  border-color: var(--red);
  box-shadow: inset 4px 0 0 var(--red);
}

.cash-pending-envelope-card strong,
.cash-pending-envelope-card small {
  color: var(--red-dark);
}

.cash-form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
}

.cash-form-section h2 {
  font-size: 16px;
  margin: 0;
}

.cash-opening-comparison .metric-grid {
  margin-bottom: 12px;
}
