:root {
  --ink: #17212b;
  --muted: #64717d;
  --line: #d9e0e5;
  --surface: #ffffff;
  --canvas: #f3f5f6;
  --primary: #176b55;
  --primary-hover: #105643;
  --danger: #b43b45;
  --warning: #9a650c;
  --info: #25658a;
  --accent: #7a4f16;
  --focus: #1d7a60;
  --touch-shadow: 0 8px 18px rgba(29, 43, 54, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 15px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf2ef 0, var(--canvas) 190px) fixed;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.pos-shell {
  color-scheme: light;
}

a {
  color: #155f8a;
}

a:hover {
  color: #0d496c;
}

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 14px rgba(23, 33, 43, 0.06);
}

.app-header-inner {
  min-height: 64px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 2rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
}

.brand-mark-inline {
  width: 38px;
  height: 30px;
  margin: 0;
  font-size: 0.72rem;
}

.app-navigation {
  gap: 0.3rem;
}

.app-navigation .nav-link {
  min-height: 46px;
  padding: 0.68rem 0.82rem;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 5px;
  color: #4a5864;
  font-weight: 600;
}

.app-navigation .nav-link:hover {
  background: #edf5f2;
  color: var(--ink);
}

.app-navigation .nav-link.active {
  border-color: #c8ded6;
  border-bottom-color: var(--primary);
  color: var(--primary);
  background: #edf5f2;
}

.navbar-context {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.context-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.context-copy strong {
  font-size: 0.86rem;
}

.context-copy span {
  color: var(--muted);
  font-size: 0.75rem;
}

.app-shell {
  padding-top: 1.6rem;
  padding-bottom: 4rem;
}

.pos-main main {
  min-width: 0;
}

.app-footer {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.app-intro,
.home-panel,
.status-panel,
.cash-panel,
.catalog-panel,
.catalog-form-panel,
.sales-panel,
.payments-panel {
  width: min(100%, 960px);
}

.tables-panel {
  width: min(100%, 1120px);
}

.prebill-panel {
  width: min(100%, 860px);
}

.kitchen-panel {
  width: min(100%, 1200px);
}

.print-view-panel {
  width: min(100%, 900px);
}

.report-panel {
  width: min(100%, 1120px);
}

.admin-panel {
  width: min(100%, 1200px);
}

.page-header,
.page-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.page-header h1,
.page-actions h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-header p,
.page-actions p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.header-actions,
.button-group,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.brand-mark {
  display: inline-grid;
  width: 46px;
  height: 34px;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.btn {
  min-height: 44px;
  border-radius: 5px;
  font-weight: 650;
}

.btn-sm {
  min-height: 34px;
}

.btn-lg {
  min-height: 54px;
  padding-right: 1.2rem;
  padding-left: 1.2rem;
  font-size: 1rem;
}

.pos-touch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  touch-action: manipulation;
}

.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.form-control,
.form-select {
  min-height: 44px;
  border-color: #bdc8d0;
  border-radius: 5px;
  background-color: var(--surface);
}

textarea.form-control {
  min-height: auto;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 0.2rem rgba(29, 122, 96, 0.18);
}

.form-label {
  margin-bottom: 0.35rem;
  font-weight: 650;
}

.login-panel {
  width: min(100%, 420px);
  max-width: calc(100vw - 2rem);
  margin: 3vh auto 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(29, 43, 54, 0.07);
}

.login-heading {
  margin-bottom: 1.6rem;
}

.login-heading h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 750;
}

.login-heading p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.login-form,
.cash-form,
.catalog-form,
.sales-form,
.payment-form {
  width: min(100%, 540px);
  max-width: 100%;
}

.payment-form,
.cash-form {
  width: min(100%, 440px);
}

.product-image-editor {
  display: grid;
  grid-template-columns: 180px minmax(0, 360px);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.product-image-preview,
.product-image-empty {
  width: 180px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #f3f5f1;
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 750;
}

.product-image-form {
  display: grid;
  gap: 0.65rem;
}

.product-image-form h2 {
  margin: 0;
  font-size: 1.15rem;
}

.product-image-form p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

@media (max-width: 600px) {
  .product-image-editor {
    grid-template-columns: 1fr;
  }
}

.form-section,
.ticket-actions,
.report-section,
.catalog-category {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.ticket-actions h2,
.report-section h2,
.catalog-category h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.summary-surface {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-card {
  box-shadow: var(--touch-shadow);
}

.pos-money {
  color: #122b24;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-money-strong {
  color: var(--accent);
  font-size: 1.08rem;
}

.pos-ticket-summary {
  border-left-color: var(--info);
}

.sales-ticket-panel {
  width: min(100%, 1200px);
}

.sales-ticket-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 7px;
  background: var(--surface);
}

.sales-ticket-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sales-ticket-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.sales-ticket-title h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
}

.sales-ticket-identity p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.sales-ticket-total {
  min-width: 245px;
  padding: 0 1.25rem;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: right;
}

.sales-ticket-total span,
.sales-ticket-finance-total span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.sales-ticket-total strong {
  display: block;
  color: #102a23;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.sales-ticket-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.sales-ticket-meta > span {
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border-right: 1px solid var(--line);
}

.sales-ticket-meta > span:last-child {
  border-right: 0;
}

.sales-ticket-meta small,
.sales-ticket-finance-row small {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sales-ticket-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-ticket-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(315px, 0.85fr);
  align-items: start;
  gap: 1rem;
}

.sales-ticket-items,
.sales-ticket-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.sales-ticket-items {
  min-width: 0;
  overflow: hidden;
}

.sales-ticket-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.sales-ticket-section-heading h2,
.sales-ticket-card h2,
.sales-ticket-payments h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.sales-ticket-section-heading > strong {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.sales-ticket-items-table {
  border-right: 0;
  border-left: 0;
}

.sales-ticket-items-table .sales-ticket-product {
  min-width: 150px;
  font-weight: 750;
}

.sales-ticket-items-table .sales-ticket-subtotal {
  color: var(--primary);
  font-weight: 850;
}

.sales-ticket-sidebar {
  display: grid;
  gap: 1rem;
}

.sales-ticket-card {
  padding: 1.1rem;
}

.sales-ticket-card .sales-ticket-section-heading {
  padding: 0 0 0.9rem;
}

.sales-ticket-add-form {
  display: grid;
  gap: 0.9rem;
}

.sales-ticket-control {
  min-height: 52px;
  font-size: 1rem;
}

.sales-ticket-wide-action {
  width: 100%;
}

.sales-ticket-finance {
  border-color: #b8d3ca;
  background: #f4faf7;
}

.sales-ticket-finance-total {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #cfe0da;
}

.sales-ticket-finance-total strong {
  display: block;
  color: #102a23;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sales-ticket-finance-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 0.85rem;
}

.sales-ticket-finance-row span:last-child {
  text-align: right;
}

.sales-ticket-finance-row strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sales-ticket-primary-actions {
  display: grid;
  gap: 0.75rem;
}

.sales-ticket-action-note {
  margin: 0;
  padding: 0.8rem;
  border-radius: 5px;
  color: #244f68;
  background: #edf5f8;
}

.sales-ticket-action-note.success {
  color: #125c49;
  background: #e8f5f0;
}

.sales-ticket-document-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.sales-ticket-document-actions .btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.sales-ticket-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
}

.sales-ticket-secondary-grid .tax-breakdown,
.sales-ticket-payments {
  margin: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.sales-ticket-payments h2 {
  margin-bottom: 0.9rem;
}

.sales-ticket-danger-zone {
  margin-top: 1.25rem;
  border: 1px solid #e1b6bb;
  border-radius: 6px;
  color: #762c34;
  background: #fff8f8;
}

.sales-ticket-danger-zone summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 750;
}

.sales-ticket-danger-zone > div {
  padding: 0 1rem 1rem;
  border-top: 1px solid #eed1d4;
}

.sales-ticket-danger-zone p {
  margin: 0.8rem 0;
}

.sales-ticket-danger-zone form {
  display: grid;
  gap: 0.75rem;
}

.pos-danger-zone {
  border-top-color: #e3afb4;
}

.pos-danger-zone textarea {
  border-color: #d9a0a6;
}

.cash-summary,
.ticket-summary,
.report-summary,
.status-summary {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 0.7rem 1rem;
  margin: 0 0 1.5rem;
}

.cash-summary dt,
.ticket-summary dt,
.report-summary dt,
.status-summary dt {
  color: #52606c;
  font-weight: 650;
}

.cash-summary dd,
.ticket-summary dd,
.report-summary dd,
.status-summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.status-badge,
.method-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.pos-status-badge::before {
  display: inline-block;
  width: 0.52rem;
  height: 0.52rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.status-open,
.status-active,
.status-available,
.status-paid {
  border-color: #a8d4c4;
  color: #125c49;
  background: #e8f5f0;
}

.status-pendingpayment,
.status-pending {
  border-color: #ebcc89;
  color: #80520a;
  background: #fff5d9;
}

.status-inpreparation {
  border-color: #b8cde1;
  color: #255f88;
  background: #ebf3fa;
}

.status-ready {
  border-color: #a8d4c4;
  color: #125c49;
  background: #e8f5f0;
}

.status-delivered {
  border-color: #cbd3d9;
  color: #53616c;
  background: #eef1f3;
}

.status-closed,
.status-inactive,
.status-unavailable {
  border-color: #cbd3d9;
  color: #53616c;
  background: #eef1f3;
}

.status-cancelled {
  border-color: #e3afb4;
  color: #93313a;
  background: #fae9eb;
}

.status-occupied {
  border-color: #b8cde1;
  color: #255f88;
  background: #ebf3fa;
}

.dining-area {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.dining-area .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.dining-area .section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dining-table-card {
  display: flex;
  min-height: 205px;
  padding: 1.05rem;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid #7a8791;
  border-radius: 6px;
  background: var(--surface);
}

.dining-table-card:hover,
.kitchen-item:hover {
  border-color: #b9c8c1;
  transform: translateY(-1px);
}

.dining-table-card.table-available {
  border-top-color: var(--primary);
}

.dining-table-card.table-occupied {
  border-top-color: var(--info);
}

.dining-table-card.table-pending {
  border-top-color: var(--warning);
}

.dining-table-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dining-table-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
}

.table-detail {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-card-actions {
  display: grid;
  gap: 0.5rem;
}

.tactile-page-header {
  align-items: center;
}

.tactile-state-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.tactile-state-summary > span {
  display: flex;
  min-height: 64px;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-right: 1px solid var(--line);
  border-left: 4px solid var(--line);
}

.tactile-state-summary > span:last-child {
  border-right: 0;
}

.tactile-state-summary small {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.tactile-state-summary strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.tactile-state-summary .state-summary-available {
  border-left-color: var(--primary);
}

.tactile-state-summary .state-summary-occupied {
  border-left-color: var(--info);
}

.tactile-state-summary .state-summary-pending {
  border-left-color: var(--warning);
}

.table-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.table-detail strong {
  color: var(--ink);
}

.table-ticket-reference small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.table-ticket-reference strong {
  color: var(--info);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}

body:has(.tables-pos-board) {
  overflow: hidden;
  background: #f3f4f6;
}

body:has(.tables-pos-board) .app-footer {
  display: none;
}

body:has(.tables-pos-board) .container.app-shell {
  width: 100%;
  max-width: none;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  padding: 0;
}

body:has(.tables-pos-board) .container.app-shell > main {
  height: 100%;
}

.tables-pos-board {
  --tables-green: #22a45a;
  --tables-green-soft: #dcfce7;
  --tables-green-border: #a7f3c4;
  --tables-amber: #d97706;
  --tables-amber-soft: #fef3c7;
  --tables-amber-border: #f7d77b;
  --tables-blue: #2563eb;
  --tables-blue-soft: #dbeafe;
  --tables-blue-border: #a9c8ff;
  --tables-red: #c2410c;
  --tables-red-soft: #ffedd5;
  --tables-red-border: #fed7aa;
  --tables-gray: #6b7280;
  --tables-gray-soft: #f3f4f6;
  --tables-border: #e5e7eb;
  --tables-ink: #111827;
  --tables-muted: #667085;
  --tables-surface: #ffffff;

  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--tables-ink);
  background: #f3f4f6;
}

.tables-pos-header {
  display: flex;
  min-height: 72px;
  padding: 0.85rem 1.15rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--tables-border);
  background: var(--tables-surface);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.tables-pos-title {
  min-width: 0;
}

.tables-pos-eyebrow {
  display: block;
  color: var(--tables-muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.tables-pos-title h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.05;
}

.tables-pos-title p {
  margin: 0.2rem 0 0;
  color: var(--tables-muted);
  font-size: 0.9rem;
}

.tables-pos-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tables-pos-link,
.tables-pos-cash {
  display: inline-flex;
  min-height: 42px;
  padding: 0 0.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tables-border);
  border-radius: 8px;
  background: #f9fafb;
  color: var(--tables-ink);
  font-weight: 750;
  text-decoration: none;
}

.tables-pos-link:hover {
  border-color: #c7d2fe;
  color: var(--tables-blue);
  background: #eef2ff;
}

.tables-pos-cash.is-open {
  border-color: var(--tables-green-border);
  color: #166534;
  background: var(--tables-green-soft);
}

.tables-pos-cash.is-closed {
  border-color: var(--tables-red-border);
  color: #9a3412;
  background: var(--tables-red-soft);
}

.tables-pos-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(136px, 1fr)) minmax(120px, 0.65fr);
  gap: 0.75rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--tables-border);
  background: var(--tables-surface);
}

.tables-pos-metric,
.tables-pos-total {
  display: flex;
  min-height: 64px;
  padding: 0.75rem 0.9rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--tables-border);
  border-radius: 8px;
  background: #f9fafb;
}

.tables-pos-metric > span {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.tables-pos-metric div,
.tables-pos-total {
  min-width: 0;
}

.tables-pos-metric strong,
.tables-pos-total strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tables-pos-metric small,
.tables-pos-total small {
  display: block;
  margin-top: 0.22rem;
  color: var(--tables-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tables-pos-total {
  justify-content: space-between;
  color: var(--tables-muted);
}

.metric-available {
  border-color: var(--tables-green-border);
  background: var(--tables-green-soft);
}

.metric-available > span {
  background: var(--tables-green);
}

.metric-occupied {
  border-color: var(--tables-amber-border);
  background: var(--tables-amber-soft);
}

.metric-occupied > span {
  background: var(--tables-amber);
}

.metric-active {
  border-color: #d1d5db;
  background: #f8fafc;
}

.metric-active > span {
  background: #64748b;
}

.metric-payment {
  border-color: var(--tables-blue-border);
  background: var(--tables-blue-soft);
}

.metric-payment > span {
  background: var(--tables-blue);
}

.tables-pos-alerts {
  flex: 0 0 auto;
  padding: 0 1.15rem;
}

.tables-pos-alerts:empty {
  display: none;
}

.tables-pos-alerts .operational-alert {
  margin: 0.7rem 0 0;
}

.tables-pos-grid-shell {
  min-height: 0;
  flex: 1 1 auto;
  padding: 1rem 1.15rem 1.15rem;
  overflow-y: auto;
  scrollbar-color: #cbd5e1 transparent;
}

.tables-pos-grid-shell::-webkit-scrollbar {
  width: 8px;
}

.tables-pos-grid-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.tables-pos-area + .tables-pos-area {
  margin-top: 1.15rem;
}

.tables-pos-area-heading {
  display: flex;
  margin-bottom: 0.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tables-pos-area-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
}

.tables-pos-area-heading span {
  color: var(--tables-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.tables-pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.tables-pos-card {
  display: flex;
  min-height: 210px;
  padding: 0.95rem;
  flex-direction: column;
  border: 2px solid var(--tables-border);
  border-top-width: 5px;
  border-radius: 8px;
  background: var(--tables-surface);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
  transition: transform 0.1s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tables-pos-card:hover {
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
}

.tables-pos-card:active {
  transform: scale(0.98);
}

.tables-pos-card.is-available {
  border-color: var(--tables-green-border);
  border-top-color: var(--tables-green);
}

.tables-pos-card.is-active {
  border-color: var(--tables-amber-border);
  border-top-color: var(--tables-amber);
}

.tables-pos-card.is-payment {
  border-color: var(--tables-blue-border);
  border-top-color: var(--tables-blue);
}

.tables-pos-card.is-closed {
  border-color: #d1d5db;
  border-top-color: var(--tables-gray);
  background: var(--tables-gray-soft);
}

.tables-pos-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tables-pos-card-heading h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.1;
}

.tables-pos-card-heading span {
  max-width: 46%;
  overflow: hidden;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--tables-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tables-pos-card-state {
  display: flex;
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  align-items: center;
  gap: 0.45rem;
  border-top: 1px solid var(--tables-border);
}

.tables-pos-card-state span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--tables-gray);
}

.tables-pos-card-state strong {
  font-size: 0.83rem;
  font-weight: 850;
  text-transform: uppercase;
}

.is-available .tables-pos-card-state span,
.is-available .tables-pos-primary-action {
  background: var(--tables-green);
}

.is-available .tables-pos-card-state strong {
  color: #166534;
}

.is-active .tables-pos-card-state span,
.is-active .tables-pos-primary-action {
  background: var(--tables-amber);
}

.is-active .tables-pos-card-state strong {
  color: #92400e;
}

.is-payment .tables-pos-card-state span,
.is-payment .tables-pos-primary-action {
  background: var(--tables-blue);
}

.is-payment .tables-pos-card-state strong {
  color: #1d4ed8;
}

.is-closed .tables-pos-card-state strong {
  color: #4b5563;
}

.tables-pos-card-detail {
  display: flex;
  min-height: 58px;
  margin: 0.65rem 0 0.9rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.tables-pos-card-detail small {
  color: var(--tables-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tables-pos-card-detail strong {
  color: var(--tables-ink);
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1.15;
}

.tables-pos-card-detail span {
  color: var(--tables-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.tables-pos-card-actions {
  display: grid;
  margin-top: auto;
  gap: 0.5rem;
}

.tables-pos-card-actions form {
  margin: 0;
}

.tables-pos-primary-action,
.tables-pos-secondary-action {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.tables-pos-primary-action {
  border: 0;
  color: #ffffff;
  box-shadow: 0 5px 10px rgba(17, 24, 39, 0.12);
}

.tables-pos-primary-action:hover {
  color: #ffffff;
  filter: brightness(0.96);
}

.tables-pos-primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.tables-pos-secondary-action {
  border: 1px solid var(--tables-border);
  background: #ffffff;
  color: var(--tables-ink);
}

.tables-pos-secondary-action:hover {
  border-color: #cbd5e1;
  color: var(--tables-ink);
  background: #f8fafc;
}

.tables-pos-empty {
  height: 100%;
}

@media (max-width: 1100px) {
  .tables-pos-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tables-pos-total {
    grid-column: span 2;
  }

  .tables-pos-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  body:has(.tables-pos-board) {
    overflow: auto;
  }

  body:has(.tables-pos-board) .container.app-shell {
    height: auto;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
  }

  .tables-pos-board {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
  }

  .tables-pos-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tables-pos-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .tables-pos-link,
  .tables-pos-cash {
    flex: 1 1 120px;
  }

  .tables-pos-metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0.7rem;
  }

  .tables-pos-total {
    grid-column: span 2;
  }

  .tables-pos-grid-shell {
    overflow: visible;
    padding: 0.8rem;
  }

  .tables-pos-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.7rem;
  }

  .tables-pos-card {
    min-height: 188px;
    padding: 0.8rem;
  }

  .tables-pos-card-heading h3 {
    font-size: 1.25rem;
  }
}

.payments-tactile-panel {
  width: min(100%, 1180px);
}

.pos-payment-board,
.pos-payment-detail {
  min-height: calc(100vh - 160px);
}

.pos-payment-board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid #d7e1e0;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faf7 100%);
  box-shadow: var(--touch-shadow);
}

.pos-payment-board-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.pos-payment-board-header p,
.pos-payment-context {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.pos-payment-board-actions,
.pos-payment-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pos-payment-summary-strip {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 1.1fr 0.9fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pos-payment-summary-card {
  min-height: 104px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-payment-summary-card span,
.pos-payment-summary-card small,
.pos-payment-ticket-meta span,
.pos-payment-history-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pos-payment-summary-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-payment-summary-card--balance {
  border-color: #cbdac7;
  background: #f4fbf1;
}

.pos-payment-summary-card--balance strong {
  color: var(--primary);
}

.pos-payment-summary-card.is-open {
  border-color: #bdd7cf;
  background: #eef8f4;
}

.pos-payment-summary-card.is-closed {
  border-color: #eed3a1;
  background: #fff8e8;
}

.payment-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.payment-ticket-card {
  display: flex;
  min-height: 330px;
  padding: 1.1rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--warning);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-payment-ticket-card {
  border-top-color: #d18a14;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.payment-ticket-heading,
.payment-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.payment-ticket-heading small,
.payment-ticket-balance small,
.payment-financial-card small,
.payment-header-balance span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.payment-ticket-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.payment-ticket-balance {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-ticket-balance strong {
  display: block;
  color: #176b55;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payment-ticket-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.payment-ticket-totals div:last-child {
  text-align: right;
}

.payment-ticket-totals dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.payment-ticket-totals dd {
  margin: 0;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.payment-ticket-card > .btn {
  margin-top: auto;
  min-height: 58px;
  font-size: 1.05rem;
  font-weight: 800;
}

.payment-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--warning);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-payment-detail-header {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f4faf7 100%);
}

.payment-header h1 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

.payment-header-balance {
  min-width: 245px;
  padding: 0 1.25rem;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: right;
}

.payment-header-balance strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payment-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 1rem;
}

.payment-operation-card,
.payment-financial-card,
.payment-history-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-payment-register-card {
  min-height: 320px;
}

.payment-section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.payment-section-heading > strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.payment-tactile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}

.payment-tactile-form > .btn {
  grid-column: 1 / -1;
  min-height: 64px;
  font-size: 1.15rem;
  font-weight: 850;
}

.payment-control {
  min-height: 60px;
  font-size: 1.15rem;
}

.payment-field-help {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-amount-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.payment-amount-control > span {
  display: grid;
  padding: 0 0.85rem;
  place-items: center;
  border: 1px solid #bdc8d0;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  color: var(--muted);
  background: #f0f3f4;
  font-weight: 750;
}

.payment-amount-control .form-control {
  border-radius: 0 5px 5px 0;
  font-size: 1.2rem;
  font-weight: 750;
}

.payment-financial-card {
  border-color: #b8d3ca;
  background: #f4faf7;
}

.pos-payment-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 0.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #cfe0da;
}

.pos-payment-ticket-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

.payment-financial-total {
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid #cfe0da;
}

.payment-financial-total strong {
  display: block;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.payment-financial-row {
  display: flex;
  padding: 0.85rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #cfe0da;
}

.payment-financial-row strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payment-financial-balance {
  margin-bottom: 1rem;
  color: var(--accent);
}

.payment-complete-state {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-direction: column;
  color: var(--primary);
  text-align: center;
}

.payment-complete-state strong {
  font-size: 1.5rem;
}

.payment-history-card {
  margin-top: 1rem;
}

.payment-history-card .empty-state {
  margin-top: 1rem;
}

.pos-payment-history-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.pos-payment-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #fbfdfc;
}

.pos-payment-history-item strong {
  display: block;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-payment-history-item > div:last-child {
  text-align: right;
}

.pos-document-panel,
.pos-ticket-list-screen {
  width: min(100%, 1180px);
}

.pos-document-toolbar,
.pos-ticket-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid #d7e1e0;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4faf7 100%);
  box-shadow: var(--touch-shadow);
}

.pos-document-toolbar h1,
.pos-ticket-list-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
}

.pos-document-toolbar p,
.pos-ticket-list-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.pos-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pos-document-actions .btn {
  min-height: 54px;
  font-weight: 800;
}

.pos-document-card {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid #d7e1e0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-document-heading {
  align-items: stretch;
  border-bottom: 1px solid #d9e4e1;
  background: #fbfdfc;
}

.pos-document-heading > div:first-child {
  justify-content: center;
}

.pos-document-kind {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
}

.pos-document-non-fiscal {
  min-width: 250px;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 2px solid #d27d87;
  border-radius: 8px;
  background: #fff2f3;
}

.pos-document-non-fiscal strong {
  font-size: 1.25rem;
}

.pos-document-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #f6fbf8 100%);
}

.pos-document-hero > div {
  min-height: 106px;
  padding: 1rem;
  border: 1px solid #d6e4df;
  border-radius: 8px;
  background: #ffffff;
}

.pos-document-hero span,
.pos-document-section-title span,
.pos-ticket-list-card-header span,
.pos-ticket-list-total span,
.pos-ticket-list-meta dt {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pos-document-hero strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--primary);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-variant-numeric: tabular-nums;
}

.pos-document-hero small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 650;
}

.pos-document-hero--paid > div:last-child {
  border-color: #bad8cf;
  background: #f1faf6;
}

.pos-document-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.95rem 1.35rem;
}

.pos-document-meta > div {
  min-width: 0;
}

.pos-document-meta dt {
  font-size: 0.74rem;
  text-transform: uppercase;
}

.pos-document-meta dd {
  overflow-wrap: anywhere;
  font-weight: 650;
}

.pos-document-items,
.pos-document-payments {
  padding: 1.1rem 1.35rem;
  border-top: 1px solid var(--line);
}

.pos-document-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pos-document-section-title strong {
  font-size: 0.95rem;
}

.pos-document-item,
.pos-document-payment-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.85rem 1rem;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #ffffff;
}

.pos-document-item + .pos-document-item,
.pos-document-payment-item + .pos-document-payment-item {
  margin-top: 0.65rem;
}

.pos-document-item-qty {
  display: grid;
  width: 64px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: #eef8f4;
  text-align: center;
}

.pos-document-item-qty strong {
  line-height: 1;
  font-size: 1.25rem;
}

.pos-document-item-qty span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.pos-document-item-body h2 {
  margin: 0;
  font-size: 1.08rem;
}

.pos-document-item-body p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.pos-document-item-total,
.pos-document-payment-item > strong {
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-document-tax-details {
  border-top: 1px solid var(--line);
}

.pos-document-tax-details summary {
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.pos-document-tax-details .tax-breakdown {
  padding: 0 1.35rem 1rem;
}

.pos-document-total {
  padding: 1.15rem 1.35rem;
  border-top: 2px solid var(--primary);
  background: #f2faf6;
}

.pos-document-total strong {
  color: var(--primary);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.pos-document-flow-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pos-document-flow-actions form {
  margin: 0;
}

.pos-document-flow-actions .btn,
.pos-document-flow-actions button {
  min-height: 58px;
  min-width: 180px;
  font-weight: 800;
}

.pos-document-payment-list {
  display: grid;
  gap: 0.65rem;
}

.pos-document-payment-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pos-document-payment-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 650;
}

.pos-document-payment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: auto;
  margin: 1rem 0 0;
}

.pos-document-payment-summary > div {
  padding: 0.85rem;
  border: 1px solid #cfe0da;
  border-radius: 8px;
  background: #f7fbf9;
}

.pos-document-payment-summary dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pos-document-payment-summary dd {
  margin: 0.2rem 0 0;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.pos-ticket-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pos-ticket-list-card {
  display: flex;
  min-height: 318px;
  padding: 1rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--info);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-ticket-list-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.pos-ticket-list-card-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.4rem;
}

.pos-ticket-list-total {
  margin: 0.9rem 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pos-ticket-list-total strong {
  display: block;
  color: var(--primary);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
}

.pos-ticket-list-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.pos-ticket-list-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.pos-ticket-list-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.pos-ticket-list-card > .btn {
  margin-top: auto;
  min-height: 56px;
  font-weight: 800;
}

.pos-cash-screen,
.pos-daily-screen {
  width: min(100%, 1180px);
}

.pos-cash-header,
.pos-daily-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid #d7e1e0;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4faf7 100%);
  box-shadow: var(--touch-shadow);
}

.pos-cash-header h1,
.pos-daily-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.pos-cash-header p,
.pos-daily-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.pos-cash-header-actions,
.pos-daily-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pos-cash-screen .pos-touch-button,
.pos-daily-screen .pos-touch-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
}

.pos-cash-header-actions .btn,
.pos-daily-header-actions .btn {
  min-height: 54px;
  font-weight: 800;
}

.pos-cash-empty-state,
.pos-cash-close-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-cash-empty-state h2,
.pos-cash-close-context h2 {
  margin: 0;
  font-size: 1.4rem;
}

.pos-cash-empty-state p,
.pos-cash-close-context p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.pos-cash-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pos-cash-summary-card,
.pos-daily-metric,
.pos-daily-method-list article {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-cash-summary-card span,
.pos-daily-metric span,
.pos-daily-method-list span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-cash-summary-card strong,
.pos-daily-metric strong,
.pos-daily-method-list strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-variant-numeric: tabular-nums;
}

.pos-cash-summary-card small,
.pos-daily-metric small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 650;
}

.pos-cash-summary-card--expected,
.pos-daily-metric--main {
  border-color: #bad8cf;
  background: #f1faf6;
}

.pos-cash-summary-card--expected strong,
.pos-daily-metric--main strong,
.pos-daily-method-list strong {
  color: var(--primary);
}

.pos-cash-form-card {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.pos-cash-form-card .pos-touch-button {
  min-height: 62px;
  font-weight: 850;
}

.pos-cash-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.pos-cash-money-input > span {
  display: grid;
  padding: 0 0.85rem;
  place-items: center;
  border: 1px solid #bdc8d0;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  color: var(--muted);
  background: #f0f3f4;
  font-weight: 800;
}

.pos-cash-money-input .form-control {
  min-height: 60px;
  border-radius: 0 6px 6px 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.pos-cash-close-context {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.pos-cash-close-context .btn {
  margin-top: 1rem;
  min-height: 54px;
  font-weight: 800;
}

.pos-daily-selector {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-daily-selector .form-select,
.pos-daily-selector .btn {
  min-height: 54px;
}

.pos-daily-print-heading {
  border-radius: 8px 8px 0 0;
  background: #fbfdfc;
}

.pos-daily-summary-section,
.pos-daily-methods-section,
.pos-daily-list-section {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--touch-shadow);
}

.pos-daily-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pos-daily-section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.pos-daily-section-heading > strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.pos-daily-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pos-daily-metric.is-negative {
  border-color: #e0b5b8;
  background: #fff3f4;
}

.pos-daily-metric.is-negative strong {
  color: var(--danger);
}

.pos-daily-metric.is-positive {
  border-color: #e4cf98;
  background: #fff8e7;
}

.pos-daily-metric.is-positive strong {
  color: var(--warning);
}

.pos-daily-metric.is-zero {
  border-color: #bad8cf;
  background: #f1faf6;
}

.pos-daily-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pos-daily-context > div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fbfdfc;
}

.pos-daily-context dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-daily-context dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.pos-daily-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.pos-daily-ticket-list,
.pos-daily-payment-list {
  display: grid;
  gap: 0.7rem;
}

.pos-daily-ticket-card,
.pos-daily-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 78px;
  padding: 0.85rem 1rem;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #ffffff;
}

.pos-daily-ticket-card a,
.pos-daily-payment-card a {
  font-weight: 850;
  text-decoration: none;
}

.pos-daily-ticket-card strong,
.pos-daily-payment-card strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-daily-ticket-card small,
.pos-daily-payment-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.prebill-document {
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.prebill-heading {
  display: flex;
  padding: 1.35rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.prebill-heading > div:first-child {
  display: flex;
  flex-direction: column;
}

.prebill-heading strong {
  font-size: 1.1rem;
}

.prebill-heading span {
  margin-top: 0.2rem;
  color: var(--muted);
}

.prebill-number {
  font-size: 1.35rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.prebill-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto) minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
  margin: 0;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.prebill-meta dt {
  color: var(--muted);
  font-weight: 650;
}

.prebill-meta dd {
  margin: 0;
}

.prebill-table {
  margin: 0;
}

.prebill-table thead th {
  padding: 0.75rem 1.35rem;
  border-bottom: 1px solid var(--line);
  color: #4c5964;
  background: #f0f3f4;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.prebill-table tbody td {
  padding: 0.8rem 1.35rem;
  border-color: #e4e9ec;
  font-variant-numeric: tabular-nums;
}

.prebill-table th:not(:first-child),
.prebill-table td:not(:first-child) {
  text-align: right;
}

.prebill-total {
  display: flex;
  padding: 1.1rem 1.35rem;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1.5rem;
  border-top: 2px solid var(--ink);
}

.prebill-total span {
  color: var(--muted);
  font-weight: 650;
}

.prebill-total strong {
  min-width: 130px;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.prebill-actions {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prebill-actions form {
  margin: 0;
}

.print-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.print-document-heading {
  display: flex;
  padding: 1.35rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.print-document-heading h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.print-document-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.non-fiscal-legend {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: #8e3038;
  line-height: 1.25;
  text-align: right;
}

.non-fiscal-legend strong {
  font-size: 1rem;
}

.non-fiscal-legend span {
  font-size: 0.8rem;
  font-weight: 750;
}

.non-fiscal-legend small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.print-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto) minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
  margin: 0;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.print-meta dt {
  color: var(--muted);
  font-weight: 650;
}

.print-meta dd {
  margin: 0;
}

.print-table {
  margin: 0;
}

.print-table thead th {
  padding: 0.7rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: #f0f3f4;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.print-table tbody td {
  padding: 0.75rem 1.35rem;
  border-color: #e4e9ec;
  font-variant-numeric: tabular-nums;
}

.print-table th:not(:first-child),
.print-table td:not(:first-child) {
  text-align: right;
}

.print-total {
  display: flex;
  padding: 1.1rem 1.35rem;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1.5rem;
  border-top: 2px solid var(--ink);
}

.print-total span {
  color: var(--muted);
  font-weight: 650;
}

.print-total strong {
  min-width: 130px;
  font-size: 1.35rem;
  text-align: right;
}

.print-subsection {
  padding: 1.2rem 1.35rem;
  border-top: 1px solid var(--line);
}

.print-subsection h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.print-payment-summary {
  display: grid;
  grid-template-columns: auto minmax(100px, 150px);
  gap: 0.4rem 1rem;
  margin: 1rem 0 0 auto;
  width: max-content;
}

.print-payment-summary dd {
  margin: 0;
  text-align: right;
}

.print-empty {
  padding: 2rem 1.35rem;
  color: var(--muted);
  text-align: center;
}

.operational-document-notes {
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--line);
  color: #44515c;
  background: #f7f9f9;
  text-align: center;
}

.operational-document-notes p {
  margin: 0;
  white-space: pre-line;
}

.operational-document-notes p + p {
  margin-top: 0.35rem;
}

.report-operational-note {
  border: 1px solid var(--line);
  border-top: 0;
}

.print-notes td {
  color: #5f4b20;
  background: #fff8e8;
  text-align: left !important;
}

.report-print-heading {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  background: var(--surface);
}

.tax-breakdown {
  padding: 1.2rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.tax-breakdown h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.tax-breakdown-table {
  margin: 0;
  border: 1px solid var(--line);
}

.tax-breakdown-table th,
.tax-breakdown-table td {
  padding: 0.55rem 0.7rem;
  border-color: #e4e9ec;
  font-variant-numeric: tabular-nums;
}

.tax-breakdown-table th:not(:first-child),
.tax-breakdown-table td:not(:first-child) {
  text-align: right;
}

.tax-breakdown-table tfoot {
  border-top: 2px solid var(--ink);
}

.tax-disclaimer {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.tax-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tax-label + small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.kitchen-send-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kitchen-send-action h2 {
  margin-bottom: 0.25rem;
}

.kitchen-send-action p {
  margin: 0;
  color: var(--muted);
}

.kitchen-station {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.kitchen-station .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.kitchen-station .section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kitchen-item {
  display: flex;
  min-height: 280px;
  padding: 1.05rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--warning);
  border-radius: 6px;
  background: var(--surface);
}

.kitchen-item.status-border-inpreparation {
  border-top-color: var(--info);
}

.kitchen-item.status-border-ready {
  border-top-color: var(--primary);
}

.kitchen-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kitchen-item-heading time {
  color: var(--muted);
  font-size: 0.78rem;
}

.kitchen-item h3 {
  margin: 1rem 0 0.3rem;
  font-size: 1.16rem;
  font-weight: 750;
}

.kitchen-quantity {
  margin-bottom: 1rem;
  color: var(--muted);
}

.kitchen-quantity strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.kitchen-context {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.kitchen-context dt {
  color: var(--muted);
  font-weight: 650;
}

.kitchen-context dd {
  margin: 0;
}

.kitchen-notes {
  padding: 0.65rem;
  border-left: 3px solid var(--warning);
  background: #fff8e8;
}

.kitchen-item form {
  margin-top: auto;
}

.kitchen-state-summary {
  margin-bottom: 0;
}

.kitchen-product-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.kitchen-product-line h3 {
  margin: 0;
}

.kitchen-product-line .kitchen-quantity {
  min-width: 72px;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  text-align: center;
  background: #f0f3f4;
}

.kitchen-product-line .kitchen-quantity small {
  display: block;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pos-kitchen-board-page {
  --kitchen-amber: #d97706;
  --kitchen-amber-soft: #fef3c7;
  --kitchen-blue: #2563eb;
  --kitchen-blue-soft: #dbeafe;
  --kitchen-green: #15803d;
  --kitchen-green-soft: #dcfce7;
  --kitchen-red: #b91c1c;
  --kitchen-red-soft: #fee2e2;
  --kitchen-gray: #64748b;
  --kitchen-gray-soft: #f1f5f9;
  --kitchen-border: #d9e0e5;
  --kitchen-surface: #ffffff;
  --kitchen-muted: #64717d;
}

.pos-kitchen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pos-kitchen-title h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 850;
}

.pos-kitchen-title p {
  margin: 0.25rem 0 0;
  color: var(--kitchen-muted);
}

.pos-kitchen-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pos-kitchen-active-badge {
  display: inline-flex;
  min-height: 44px;
  padding: 0 0.95rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #f7d77b;
  border-radius: 8px;
  color: #92400e;
  background: var(--kitchen-amber-soft);
  font-weight: 850;
}

.pos-kitchen-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pos-kitchen-summary-card {
  display: flex;
  min-height: 72px;
  padding: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--kitchen-border);
  border-left: 6px solid var(--kitchen-gray);
  border-radius: 8px;
  background: var(--kitchen-surface);
}

.pos-kitchen-summary-card small {
  color: var(--kitchen-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-kitchen-summary-card strong {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pos-kitchen-summary-card.summary-pending {
  border-left-color: var(--kitchen-amber);
  background: var(--kitchen-amber-soft);
}

.pos-kitchen-summary-card.summary-process {
  border-left-color: var(--kitchen-blue);
  background: var(--kitchen-blue-soft);
}

.pos-kitchen-summary-card.summary-ready {
  border-left-color: var(--kitchen-green);
  background: var(--kitchen-green-soft);
}

.pos-kitchen-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 2rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.pos-kitchen-empty strong {
  font-size: 1.45rem;
}

.pos-kitchen-empty span {
  max-width: 460px;
  color: var(--kitchen-muted);
}

.pos-kitchen-station {
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--kitchen-border);
}

.pos-kitchen-station-heading {
  display: flex;
  margin-bottom: 0.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pos-kitchen-station-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 850;
}

.pos-kitchen-station-heading span {
  color: var(--kitchen-muted);
  font-weight: 750;
}

.pos-kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.pos-kitchen-card {
  display: flex;
  min-height: 276px;
  padding: 1rem;
  flex-direction: column;
  border: 2px solid var(--kitchen-border);
  border-top: 6px solid var(--kitchen-amber);
  border-radius: 8px;
  background: var(--kitchen-surface);
  box-shadow: 0 4px 12px rgba(23, 33, 43, 0.08);
}

.pos-kitchen-card.status-inpreparation {
  border-top-color: var(--kitchen-blue);
}

.pos-kitchen-card.status-ready {
  border-top-color: var(--kitchen-green);
}

.pos-kitchen-card.status-delivered {
  border-top-color: var(--kitchen-gray);
}

.pos-kitchen-card.status-cancelled {
  border-top-color: var(--kitchen-red);
}

.pos-kitchen-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pos-kitchen-status {
  display: inline-flex;
  min-height: 32px;
  padding: 0 0.7rem;
  align-items: center;
  border-radius: 999px;
  color: #92400e;
  background: var(--kitchen-amber-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-inpreparation .pos-kitchen-status {
  color: #1d4ed8;
  background: var(--kitchen-blue-soft);
}

.status-ready .pos-kitchen-status {
  color: #166534;
  background: var(--kitchen-green-soft);
}

.status-delivered .pos-kitchen-status {
  color: #475569;
  background: var(--kitchen-gray-soft);
}

.status-cancelled .pos-kitchen-status {
  color: #991b1b;
  background: var(--kitchen-red-soft);
}

.pos-kitchen-card-top time {
  color: var(--kitchen-muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.pos-kitchen-product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  align-items: center;
}

.pos-kitchen-product h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.2;
}

.pos-kitchen-quantity {
  display: inline-flex;
  min-width: 66px;
  min-height: 66px;
  padding: 0.45rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
  background: #eef2f6;
}

.pos-kitchen-quantity small {
  color: var(--kitchen-muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-kitchen-quantity strong {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.pos-kitchen-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.pos-kitchen-context div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--kitchen-border);
  border-radius: 8px;
  background: #f8fafc;
}

.pos-kitchen-context dt {
  color: var(--kitchen-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-kitchen-context dd {
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.pos-kitchen-notes {
  padding: 0.7rem;
  border-left: 4px solid var(--kitchen-amber);
  border-radius: 6px;
  background: #fffbeb;
  color: #78350f;
}

.pos-kitchen-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.pos-kitchen-actions form {
  margin: 0;
}

.pos-kitchen-primary-action,
.pos-kitchen-secondary-action {
  display: flex;
  width: 100%;
  min-height: 56px;
  padding: 0.7rem 0.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.pos-kitchen-primary-action {
  border: 0;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 6px 12px rgba(23, 33, 43, 0.14);
}

.status-pending .pos-kitchen-primary-action {
  background: var(--kitchen-amber);
}

.status-inpreparation .pos-kitchen-primary-action {
  background: var(--kitchen-blue);
}

.status-ready .pos-kitchen-primary-action {
  background: var(--kitchen-green);
}

.pos-kitchen-primary-action:hover {
  color: #ffffff;
  filter: brightness(0.96);
}

.pos-kitchen-secondary-action {
  border: 1px solid var(--kitchen-border);
  color: var(--ink);
  background: #ffffff;
}

.pos-kitchen-secondary-action:hover {
  color: var(--ink);
  background: #f8fafc;
}

@media (max-width: 992px) {
  .pos-kitchen-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-kitchen-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .pos-kitchen-header {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-kitchen-header-actions {
    justify-content: stretch;
  }

  .pos-kitchen-header-actions .btn,
  .pos-kitchen-active-badge {
    flex: 1 1 140px;
  }

  .pos-kitchen-summary {
    grid-template-columns: 1fr;
  }

  .pos-kitchen-context {
    grid-template-columns: 1fr;
  }
}

.method-cash {
  border-color: #a8d4c4;
  color: #125c49;
  background: #e8f5f0;
}

.method-cardmanual {
  border-color: #b8cde1;
  color: #255f88;
  background: #ebf3fa;
}

.operational-table {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.operational-table thead th {
  padding: 0.75rem;
  border-bottom: 1px solid #c9d2d8;
  color: #4c5964;
  background: #f0f3f4;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.operational-table tbody td {
  padding: 0.82rem 0.75rem;
  border-color: #e4e9ec;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.operational-table tbody tr:hover td {
  background: #f8faf9;
}

.audit-table {
  min-width: 1080px;
}

.audit-event {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  border: 1px solid #bfd1dc;
  border-radius: 4px;
  color: #244f68;
  background: #edf5f8;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.audit-summary {
  min-width: 260px;
  white-space: normal;
}

.empty-state {
  display: flex;
  min-height: 120px;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #bdc8cf;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.pos-empty-state {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.empty-state strong {
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.empty-state.compact {
  min-height: 64px;
  padding: 0.8rem;
}

.operational-alert {
  border-width: 1px;
  border-radius: 6px;
}

.action-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.validation-summary,
.validation-summary-errors {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #e3afb4;
  border-radius: 6px;
  color: #8e3038;
  background: #fae9eb;
}

.validation-summary:empty,
.validation-summary-valid {
  display: none;
}

.validation-summary ul,
.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.report-selector {
  width: min(100%, 640px);
  margin: 1.5rem 0;
}

.admin-context,
.admin-summary {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 0.7rem 1rem;
  margin: 0 0 1.5rem;
}

.admin-context dt,
.admin-summary dt {
  color: #52606c;
  font-weight: 650;
}

.admin-context dd,
.admin-summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.admin-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.admin-section .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.admin-section .section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

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

.admin-links a {
  display: flex;
  min-height: 64px;
  padding: 0.8rem;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.admin-links a:last-child {
  border-right: 0;
}

.admin-links a:hover {
  background: #edf5f2;
}

.report-selector-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.action-stack {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1.25rem;
}

.workflow-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

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

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

.workflow-links a {
  display: flex;
  min-height: 126px;
  padding: 1.15rem;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.workflow-links a:last-child {
  border-right: 0;
}

.workflow-links a:hover {
  background: #edf5f2;
}

.workflow-links strong {
  color: var(--primary);
  font-size: 1.08rem;
}

.workflow-links span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

body:has(.pos-sale-kimi) {
  overflow: hidden;
  background: #f5f2ea;
}

body:has(.pos-sale-kimi) .app-header,
body:has(.pos-sale-kimi) .app-footer {
  display: none;
}

body:has(.pos-sale-kimi) .container.app-shell {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  padding: 0;
}

body:has(.pos-sale-kimi) .container.app-shell > main {
  height: 100%;
}

.pos-sale-kimi {
  --pos-sale-primary: #1a5f2a;
  --pos-sale-primary-dark: #124a1f;
  --pos-sale-amber: #e8a838;
  --pos-sale-bg: #f5f2ea;
  --pos-sale-surface: #ffffff;
  --pos-sale-soft: #faf9f5;
  --pos-sale-border: #e0ded2;
  --pos-sale-text: #24323f;
  --pos-sale-muted: #6f7a7d;
  --pos-sale-blue: #2f7fb6;
  --pos-sale-orange: #df7b24;
  --pos-sale-green: #23945c;
  --pos-sale-red: #b94742;

  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  color: var(--pos-sale-text);
  background: var(--pos-sale-bg);
}

.pos-sale-header {
  display: flex;
  min-height: 78px;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  color: #ffffff;
  background: var(--pos-sale-primary);
  box-shadow: 0 4px 14px rgba(18, 74, 31, 0.18);
}

.pos-sale-header__back {
  display: inline-flex;
  min-width: 120px;
  min-height: 48px;
  padding: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  text-decoration: none;
}

.pos-sale-header__back:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.pos-sale-header__info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  font-size: 1rem;
}

.pos-sale-header__info > strong {
  font-size: 1.18rem;
  white-space: nowrap;
}

.pos-sale-table {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #22303a;
  background: var(--pos-sale-amber);
  font-weight: 850;
  white-space: nowrap;
}

.pos-sale-status {
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
}

.pos-sale-operator {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-sale-total {
  min-width: 260px;
  text-align: right;
}

.pos-sale-total span {
  display: block;
  opacity: 0.82;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pos-sale-total strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.pos-sale-feedback {
  position: absolute;
  z-index: 20;
  top: 84px;
  left: 50%;
  max-width: min(720px, calc(100vw - 2rem));
  transform: translateX(-50%);
}

.pos-sale-main {
  display: grid;
  min-height: 0;
  padding: 0.75rem;
  grid-template-columns: minmax(320px, 35%) minmax(0, 65%);
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.pos-sale-ticket,
.pos-sale-catalog {
  min-height: 0;
  overflow: hidden;
}

.pos-sale-ticket {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pos-sale-border);
  border-radius: 8px;
  background: var(--pos-sale-surface);
  box-shadow: 0 3px 12px rgba(36, 50, 63, 0.08);
}

.pos-sale-ticket__header {
  display: flex;
  min-height: 62px;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  border-bottom: 2px solid var(--pos-sale-border);
}

.pos-sale-ticket__header span,
.pos-sale-ticket__header strong,
.pos-sale-ticket__header small {
  display: block;
}

.pos-sale-ticket__header span {
  font-size: 1.18rem;
  font-weight: 850;
}

.pos-sale-ticket__header strong,
.pos-sale-ticket__header small {
  color: var(--pos-sale-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.pos-sale-ticket__items {
  display: flex;
  min-height: 0;
  padding: 0.55rem;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.pos-sale-empty {
  display: flex;
  min-height: 100%;
  padding: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--pos-sale-muted);
  text-align: center;
}

.pos-sale-empty strong {
  color: var(--pos-sale-text);
  font-size: 1.08rem;
}

.pos-sale-empty--catalog {
  min-height: 210px;
  grid-column: 1 / -1;
  border: 1px dashed var(--pos-sale-border);
  border-radius: 8px;
  background: var(--pos-sale-surface);
}

.pos-sale-item {
  display: grid;
  min-height: 92px;
  padding: 0.75rem;
  align-items: center;
  grid-template-columns: 58px minmax(0, 1fr) minmax(118px, auto);
  gap: 0.75rem;
  border: 1px solid #edeae0;
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: var(--pos-sale-soft);
}

.pos-sale-item--kitchen {
  border-left-color: var(--pos-sale-orange);
}

.pos-sale-item__qty {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: #eef5f1;
}

.pos-sale-item__qty strong {
  font-size: 1.2rem;
  line-height: 1;
}

.pos-sale-item__qty span {
  color: var(--pos-sale-muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pos-sale-item__body {
  min-width: 0;
}

.pos-sale-item__body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.pos-sale-item__body p {
  margin: 0.15rem 0 0;
  color: var(--pos-sale-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.pos-sale-kitchen-chip {
  display: inline-flex;
  min-height: 26px;
  margin-top: 0.35rem;
  padding: 0.25rem 0.55rem;
  align-items: center;
  border-radius: 999px;
  color: #7b4a12;
  background: #fff0dc;
  font-size: 0.72rem;
  font-weight: 800;
}

.pos-sale-offer-chip {
  display: inline-flex;
  min-height: 24px;
  margin-top: 0.28rem;
  padding: 0.22rem 0.5rem;
  align-items: center;
  border-radius: 999px;
  color: var(--pos-sale-primary);
  background: #edf7ee;
  font-size: 0.7rem;
  font-weight: 850;
}

.pos-sale-item__side {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  text-align: right;
}

.pos-sale-item__side strong {
  color: var(--pos-sale-primary);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-sale-item__side small {
  color: var(--pos-sale-muted);
  font-size: 0.72rem;
}

.pos-sale-remove {
  width: 34px;
  height: 34px;
  border: 1px solid #f0c3c0;
  border-radius: 999px;
  color: var(--pos-sale-red);
  background: #fff3f2;
  font-weight: 900;
}

.pos-sale-ticket__summary {
  display: grid;
  padding: 0.75rem 1rem;
  gap: 0.35rem;
  flex-shrink: 0;
  border-top: 2px solid var(--pos-sale-border);
  background: var(--pos-sale-soft);
}

.pos-sale-ticket__summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pos-sale-ticket__summary span {
  color: var(--pos-sale-muted);
  font-weight: 700;
}

.pos-sale-ticket__summary strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-sale-ticket__summary-total {
  padding-top: 0.45rem;
  border-top: 1px solid var(--pos-sale-border);
  color: var(--pos-sale-primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.pos-sale-catalog {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pos-sale-catalog__controls {
  display: flex;
  min-height: 0;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
  border: 1px solid var(--pos-sale-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(36, 50, 63, 0.05);
}

.pos-sale-category-strip-shell {
  display: grid;
  min-height: 42px;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 0.35rem;
}

.pos-sale-category-scroll {
  display: inline-flex;
  width: 34px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9ddcf;
  border-radius: 999px;
  color: var(--pos-sale-primary);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 -1px 0 rgba(36, 50, 63, 0.04);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  touch-action: manipulation;
}

.pos-sale-category-scroll:hover,
.pos-sale-category-scroll:focus {
  border-color: #bfd2c8;
  color: var(--pos-sale-primary-dark);
  background: #f7fbf8;
}

.pos-sale-category-scroll:active {
  color: #ffffff;
  background: var(--pos-sale-primary);
}

.pos-sale-categories {
  display: flex;
  min-height: 42px;
  max-width: 100%;
  gap: 0.42rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  scrollbar-width: none;
  white-space: nowrap;
}

.pos-sale-categories::-webkit-scrollbar {
  display: none;
}

.pos-sale-category {
  display: inline-flex;
  min-width: 78px;
  max-width: 162px;
  min-height: 40px;
  padding: 0.42rem 0.72rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  border: 1px solid #d9ddcf;
  border-radius: 999px;
  color: #35424a;
  background: var(--pos-sale-surface);
  box-shadow: inset 0 -1px 0 rgba(36, 50, 63, 0.05);
  font-size: 0.88rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.pos-sale-category > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-sale-category small {
  display: inline-flex;
  min-width: 22px;
  min-height: 20px;
  padding: 0 0.32rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #6c767a;
  background: #f0f2ec;
  font-size: 0.68rem;
  font-weight: 850;
}

.pos-sale-category--active,
.pos-sale-category:hover {
  border-color: var(--pos-sale-primary);
  color: #ffffff;
  background: var(--pos-sale-primary);
  box-shadow: 0 4px 10px rgba(26, 95, 42, 0.18);
}

.pos-sale-category--active small,
.pos-sale-category:hover small {
  color: var(--pos-sale-primary-dark);
  background: rgba(255, 255, 255, 0.82);
}

.pos-sale-search {
  display: grid;
  min-height: 44px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #d7ddd1;
  border-radius: 8px;
  background: var(--pos-sale-surface);
}

.pos-sale-search span {
  padding-left: 0.9rem;
  color: var(--pos-sale-muted);
}

.pos-sale-search input {
  min-height: 44px;
  border: 0;
  outline: 0;
  padding: 0 0.85rem;
  font-size: 1rem;
  background: transparent;
}

.pos-sale-search button {
  min-width: 96px;
  min-height: 44px;
  border: 0;
  color: #ffffff;
  background: var(--pos-sale-primary);
  font-weight: 850;
}

.pos-sale-products {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  grid-auto-rows: minmax(156px, 1fr);
  align-content: start;
  gap: 0.55rem;
  flex: 1;
  overflow: hidden;
}

.pos-sale-offers {
  display: grid;
  padding: 0.5rem;
  gap: 0.45rem;
  flex-shrink: 0;
  border: 1px solid #d9ddcf;
  border-radius: 8px;
  background: #fbfcf7;
}

.pos-sale-offers__header {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pos-sale-offers__header strong {
  color: var(--pos-sale-text);
  font-size: 0.94rem;
  font-weight: 900;
}

.pos-sale-offers__header span {
  color: var(--pos-sale-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.pos-sale-offers__strip {
  display: grid;
  grid-auto-columns: minmax(160px, 190px);
  grid-auto-flow: column;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.pos-sale-offer-card,
.pos-sale-offer-card > form {
  min-width: 0;
  height: 100%;
}

.pos-sale-offer-card button {
  display: grid;
  width: 100%;
  min-height: 118px;
  padding: 0.45rem;
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 0.55rem;
  border: 1px solid #d6dccf;
  border-radius: 8px;
  color: var(--pos-sale-text);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(36, 50, 63, 0.05);
  text-align: left;
  touch-action: manipulation;
}

.pos-sale-offer-card button:hover,
.pos-sale-offer-card button:focus {
  border-color: var(--pos-sale-primary);
  box-shadow: 0 6px 14px rgba(26, 95, 42, 0.12);
}

.pos-sale-offer-card button:active {
  color: #ffffff;
  background: var(--pos-sale-primary);
  transform: scale(0.98);
}

.pos-sale-offer-card__media {
  display: block;
  width: 52px;
  height: 76px;
  grid-row: 1 / -1;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2ec;
}

.pos-sale-offer-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-sale-offer-card__meta {
  min-width: 0;
  overflow: hidden;
  color: var(--pos-sale-primary);
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pos-sale-offer-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.1;
}

.pos-sale-offer-card small {
  min-width: 0;
  overflow: hidden;
  color: var(--pos-sale-muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-sale-offer-card__price {
  align-self: end;
  color: var(--pos-sale-primary);
  font-size: 0.96rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.pos-sale-offer-card button:active .pos-sale-offer-card__meta,
.pos-sale-offer-card button:active .pos-sale-offer-card__price,
.pos-sale-offer-card button:active small {
  color: rgba(255, 255, 255, 0.88);
}

.pos-sale-product-card,
.pos-sale-product-card button {
  min-width: 0;
  min-height: 0;
}

.pos-sale-product-card > form {
  height: 100%;
}

.pos-sale-product-card button {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 156px;
  padding: 0.48rem 0.58rem 0.56rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  border: 1px solid #dce0d4;
  border-radius: 8px;
  color: var(--pos-sale-text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  box-shadow: 0 3px 10px rgba(36, 50, 63, 0.06);
  text-align: center;
  touch-action: manipulation;
}

.pos-sale-product-card button:hover,
.pos-sale-product-card button:focus {
  border-color: var(--pos-sale-primary);
  box-shadow: 0 7px 18px rgba(26, 95, 42, 0.15);
}

.pos-sale-product-card button:active {
  color: #ffffff;
  background: var(--pos-sale-primary);
  transform: scale(0.98);
}

.pos-sale-product-card__category {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #748082;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pos-sale-product-card strong {
  display: -webkit-box;
  overflow: hidden;
  flex-shrink: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.98rem;
  font-weight: 880;
  line-height: 1.16;
}

.pos-sale-product-card__price {
  color: var(--pos-sale-primary);
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pos-sale-product-card button:active .pos-sale-product-card__category,
.pos-sale-product-card button:active .pos-sale-product-card__price {
  color: rgba(255, 255, 255, 0.88);
}

.pos-sale-product-card__media {
  display: block;
  width: 100%;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2ec;
}

.pos-sale-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-sale-product-card__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #65736b;
  background: linear-gradient(135deg, #edf1eb, #dce6dc);
  font-size: 1.55rem;
  font-weight: 900;
}

.pos-sale-modifier-list,
.pos-document-modifier-list {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.pos-sale-modifier-list li,
.pos-document-modifier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pos-sale-muted, #6f7a7d);
  font-size: 0.82rem;
  line-height: 1.2;
}

.pos-sale-modifier-list strong,
.pos-document-modifier-list strong {
  color: var(--pos-sale-primary, #1a5f2a);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pos-sale-combo,
.pos-document-combo {
  margin-top: 6px;
  color: var(--pos-sale-muted, #6f7a7d);
  font-size: 0.8rem;
}

.pos-sale-combo > strong,
.pos-document-combo > strong {
  color: var(--pos-sale-text, #24323f);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.pos-sale-combo ul,
.pos-document-combo ul {
  display: flex;
  margin: 3px 0 0;
  padding: 0;
  gap: 4px 12px;
  flex-wrap: wrap;
  list-style: none;
}

.pos-sale-combo li::before,
.pos-document-combo li::before {
  content: "+";
  margin-right: 4px;
  color: var(--pos-sale-primary, #1a5f2a);
  font-weight: 900;
}

.pos-sale-product-card__badge {
  padding: 2px 7px;
  border: 1px solid rgba(26, 95, 42, 0.28);
  border-radius: 999px;
  color: var(--pos-sale-primary);
  background: #edf7ee;
  font-size: 0.68rem;
  font-weight: 850;
}

.pos-sale-edit {
  min-width: 64px;
  min-height: 32px;
  border: 1px solid var(--pos-sale-primary);
  border-radius: 6px;
  color: var(--pos-sale-primary);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
}

.pos-sale-customization-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(700px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfd8cc;
  border-radius: 8px;
  color: var(--pos-sale-text);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(20, 31, 38, 0.28);
}

.pos-sale-customization-dialog::backdrop {
  background: rgba(20, 31, 38, 0.62);
}

.pos-sale-customization-dialog form {
  display: grid;
  max-height: min(700px, calc(100vh - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.pos-sale-customization-dialog header,
.pos-sale-customization-dialog footer {
  display: flex;
  padding: 14px 18px;
  align-items: center;
  gap: 12px;
  border-color: var(--pos-sale-border);
  background: #f8faf6;
}

.pos-sale-customization-dialog header {
  justify-content: space-between;
  border-bottom: 1px solid var(--pos-sale-border);
}

.pos-sale-customization-dialog header span,
.pos-sale-dialog-note span {
  color: var(--pos-sale-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-sale-customization-dialog h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.pos-sale-customization-dialog header p {
  margin: 2px 0 0;
  color: var(--pos-sale-primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.pos-sale-dialog-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--pos-sale-border);
  border-radius: 50%;
  color: var(--pos-sale-text);
  background: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.pos-sale-dialog-body {
  display: grid;
  padding: 16px 18px;
  overflow-y: auto;
  gap: 14px;
}

.pos-sale-dialog-body fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pos-sale-dialog-body legend {
  margin-bottom: 7px;
  color: var(--pos-sale-text);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.pos-sale-dialog-options label {
  display: grid;
  min-height: 48px;
  padding: 9px 11px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--pos-sale-border);
  border-radius: 7px;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.pos-sale-dialog-options label:has(input:checked) {
  border-color: var(--pos-sale-primary);
  background: #edf7ee;
}

.pos-sale-dialog-options input {
  width: 20px;
  height: 20px;
  accent-color: var(--pos-sale-primary);
}

.pos-sale-dialog-options strong {
  color: var(--pos-sale-primary);
  font-size: 0.78rem;
}

.pos-sale-dialog-component {
  display: grid;
  padding: 12px;
  gap: 10px;
  border: 1px solid #dce0d4;
  border-radius: 7px;
  background: #fbfcf9;
}

.pos-sale-dialog-component > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pos-sale-dialog-component small {
  color: var(--pos-sale-muted);
}

.pos-sale-dialog-note {
  display: grid;
  gap: 5px;
}

.pos-sale-dialog-note input {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--pos-sale-border);
  border-radius: 7px;
}

.pos-sale-customization-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--pos-sale-border);
}

.pos-sale-customization-dialog footer > div {
  display: grid;
  margin-right: auto;
}

.pos-sale-customization-dialog footer > div span {
  color: var(--pos-sale-muted);
  font-size: 0.72rem;
}

.pos-sale-customization-dialog footer > div strong {
  color: var(--pos-sale-primary);
  font-size: 1.08rem;
}

.pos-sale-customization-dialog footer button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--pos-sale-border);
  border-radius: 7px;
  background: #ffffff;
  font-weight: 850;
}

.pos-sale-customization-dialog footer .is-primary {
  border-color: var(--pos-sale-primary);
  color: #ffffff;
  background: var(--pos-sale-primary);
}

.pos-sale-pagination {
  display: flex;
  min-height: 46px;
  padding: 0.2rem 0.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-shrink: 0;
  border: 1px solid var(--pos-sale-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -1px 8px rgba(36, 50, 63, 0.04);
}

.pos-sale-pagination a {
  display: inline-flex;
  min-width: 104px;
  min-height: 40px;
  padding: 0.42rem 0.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7ddd1;
  border-radius: 8px;
  color: var(--pos-sale-text);
  background: var(--pos-sale-surface);
  font-weight: 850;
  text-decoration: none;
}

.pos-sale-pagination strong {
  color: var(--pos-sale-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.pos-sale-pagination__count {
  color: #7d878a;
  font-size: 0.76rem;
  font-weight: 780;
  white-space: nowrap;
}

.pos-sale-pagination .is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.pos-sale-closed-catalog {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--pos-sale-border);
  border-radius: 8px;
  background: var(--pos-sale-surface);
}

.pos-sale-actions {
  display: flex;
  min-height: 96px;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  flex-shrink: 0;
  background: var(--pos-sale-surface);
  box-shadow: 0 -4px 18px rgba(36, 50, 63, 0.08);
}

.pos-sale-actions form,
.pos-sale-actions > a {
  display: flex;
  min-width: 0;
  flex: 1;
}

.pos-sale-action {
  display: flex;
  width: 100%;
  min-height: 72px;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.12rem;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.pos-sale-action:hover {
  color: #ffffff;
  filter: brightness(0.96);
}

.pos-sale-action span {
  font-size: 1.05rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.pos-sale-action small {
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0.84;
}

.pos-sale-action:disabled {
  opacity: 0.42;
}

.pos-sale-action--prebill {
  background: var(--pos-sale-blue);
}

.pos-sale-action--kitchen {
  background: var(--pos-sale-orange);
}

.pos-sale-action--payment {
  background: var(--pos-sale-green);
  box-shadow: 0 4px 14px rgba(35, 148, 92, 0.24);
}

.pos-sale-action--receipt {
  background: var(--pos-sale-primary);
}

.pos-sale-action--back {
  background: #67747b;
}

.pos-sale-danger {
  flex-shrink: 0;
  border-top: 1px solid #e7bbb8;
  color: #8e302e;
  background: #fff5f4;
}

.pos-sale-danger summary {
  display: flex;
  min-height: 44px;
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 850;
}

.pos-sale-danger > div {
  display: grid;
  padding: 0 1rem 0.75rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
  gap: 1rem;
}

.pos-sale-danger p {
  margin: 0;
  color: #8e302e;
  font-size: 0.9rem;
}

.pos-sale-danger form {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.pos-sale-danger textarea {
  min-height: 44px;
  max-height: 72px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d99f9b;
  border-radius: 8px;
}

.pos-sale-danger button {
  min-height: 48px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--pos-sale-red);
  border-radius: 8px;
  color: #ffffff;
  background: var(--pos-sale-red);
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .app-header {
    position: static;
  }

  .navbar-collapse {
    padding: 0.75rem 0 1rem;
  }

  .app-navigation .nav-link {
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 5px;
  }

  .app-navigation .nav-link.active {
    border-left-color: var(--primary);
    background: #edf5f2;
  }

  .navbar-context {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

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

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

  .admin-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pos-document-toolbar,
  .pos-ticket-list-header {
    grid-template-columns: 1fr;
  }

  .pos-cash-header,
  .pos-daily-header {
    grid-template-columns: 1fr;
  }

  .pos-document-actions {
    justify-content: flex-start;
  }

  .pos-cash-header-actions,
  .pos-daily-header-actions {
    justify-content: flex-start;
  }

  .pos-document-hero,
  .pos-document-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-cash-summary-grid,
  .pos-daily-metrics,
  .pos-daily-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-cash-empty-state,
  .pos-cash-close-workspace,
  .pos-daily-ticket-card,
  .pos-daily-payment-card {
    grid-template-columns: 1fr;
  }

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

  .admin-links a:nth-child(3) {
    border-right: 0;
  }

  .admin-links a:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .sales-ticket-workspace {
    grid-template-columns: 1fr;
  }

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

  .sales-ticket-primary-actions {
    grid-column: 1 / -1;
  }

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

  .pos-payment-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-payment-board-header,
  .payment-header {
    grid-template-columns: 1fr;
  }

  .pos-payment-board-actions,
  .pos-payment-header-actions {
    justify-content: flex-start;
  }

  .payment-workspace {
    grid-template-columns: 1fr;
  }

  .workflow-links a:nth-child(2) {
    border-right: 0;
  }

  .workflow-links a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }

  .app-shell {
    padding-top: 1.25rem;
  }

  .login-panel {
    width: calc(100vw - 3rem);
    max-width: 100%;
    margin: 1.5rem auto 0;
    padding: 1.5rem;
  }

  .login-form {
    width: 100%;
  }

  .page-header,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .button-group,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions .btn,
  .button-group .btn,
  .form-actions .btn {
    width: 100%;
  }

  .navbar-brand {
    margin-right: 0.5rem;
  }

  .context-copy {
    max-width: 100%;
  }

  .context-copy span {
    overflow-wrap: anywhere;
  }

  .cash-summary,
  .ticket-summary,
  .report-summary,
  .status-summary,
  .admin-context,
  .admin-summary,
  .report-selector-controls {
    grid-template-columns: 1fr;
  }

  .pos-document-toolbar,
  .pos-ticket-list-header,
  .pos-cash-header,
  .pos-daily-header,
  .pos-document-hero,
  .pos-document-meta,
  .pos-document-payment-summary,
  .pos-ticket-list-grid,
  .pos-cash-summary-grid,
  .pos-cash-empty-state,
  .pos-cash-close-workspace,
  .pos-daily-metrics,
  .pos-daily-context,
  .pos-daily-method-list,
  .pos-daily-ticket-card,
  .pos-daily-payment-card {
    grid-template-columns: 1fr;
  }

  .pos-document-actions,
  .pos-document-flow-actions,
  .pos-cash-header-actions,
  .pos-daily-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-document-actions .btn,
  .pos-document-flow-actions .btn,
  .pos-document-flow-actions form,
  .pos-document-flow-actions button,
  .pos-cash-header-actions .btn,
  .pos-daily-header-actions .btn,
  .pos-cash-close-context .btn {
    width: 100%;
  }

  .pos-document-non-fiscal {
    align-items: flex-start;
    min-width: 0;
    text-align: left;
  }

  .pos-document-item,
  .pos-document-payment-item {
    grid-template-columns: 1fr;
  }

  .pos-document-item-qty {
    width: 100%;
    height: auto;
    min-height: 54px;
  }

  .pos-document-item-total,
  .pos-document-payment-item > strong {
    white-space: normal;
  }

  .summary-surface {
    padding: 1rem;
  }

  .summary-surface dt:not(:first-child) {
    margin-top: 0.45rem;
  }

  .workflow-links {
    grid-template-columns: 1fr;
  }

  .workflow-links.workflow-links-double {
    grid-template-columns: 1fr;
  }

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

  .prebill-meta {
    grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  }

  .print-meta {
    grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  }

  .print-document-heading,
  .prebill-heading {
    flex-direction: column;
  }

  .non-fiscal-legend {
    align-items: flex-start;
    text-align: left;
  }

  .prebill-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .prebill-actions .btn,
  .prebill-actions form {
    width: 100%;
  }

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

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

  .admin-links a,
  .admin-links a:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-links a:last-child {
    border-bottom: 0;
  }

  .kitchen-send-action {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-links a,
  .workflow-links a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-links a:last-child {
    border-bottom: 0;
  }

  .action-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-ticket-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sales-ticket-total {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .sales-ticket-back {
    width: 100%;
  }

  .sales-ticket-meta,
  .sales-ticket-sidebar,
  .sales-ticket-secondary-grid {
    grid-template-columns: 1fr;
  }

  .sales-ticket-meta > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sales-ticket-meta > span:last-child {
    border-bottom: 0;
  }

  .sales-ticket-primary-actions {
    grid-column: auto;
  }

  .tactile-state-summary,
  .pos-payment-summary-strip,
  .payment-ticket-grid,
  .payment-tactile-form,
  .payment-header {
    grid-template-columns: 1fr;
  }

  .pos-payment-board-header {
    grid-template-columns: 1fr;
  }

  .pos-payment-board-actions,
  .pos-payment-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-payment-board-actions .btn,
  .pos-payment-header-actions .btn {
    width: 100%;
  }

  .tactile-state-summary > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tactile-state-summary > span:last-child {
    border-bottom: 0;
  }

  .payment-header-balance {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .payment-tactile-form > .btn {
    grid-column: auto;
  }

  .pos-payment-history-item {
    grid-template-columns: 1fr;
  }

  .pos-payment-history-item > div:last-child {
    text-align: left;
  }
}

@media print {
  @page {
    margin: 10mm;
  }

  html,
  body {
    min-height: auto;
    color: #000000;
    background: #ffffff;
    font-size: 10pt;
  }

  .app-header,
  .app-footer,
  .no-print,
  button,
  form,
  .operational-alert,
  .validation-summary,
  .validation-summary-errors {
    display: none !important;
  }

  .container,
  .app-shell,
  main,
  .print-view-panel,
  .prebill-panel,
  .report-panel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-document,
  .prebill-document,
  .report-section,
  .summary-surface,
  .report-print-heading {
    overflow: visible;
    border-color: #000000;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }

  .pos-document-card {
    border: 1px solid #000000;
    box-shadow: none;
  }

  .pos-document-hero,
  .pos-document-meta,
  .pos-document-payment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-document-tax-details summary {
    display: none;
  }

  .pos-document-tax-details .tax-breakdown {
    padding: 0;
  }

  .report-print-heading {
    margin: 0;
    border-width: 0 0 1px;
  }

  .print-document-heading,
  .prebill-heading {
    border-color: #000000;
  }

  .non-fiscal-legend,
  .non-fiscal-legend small {
    color: #000000;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .print-table,
  .prebill-table,
  .operational-table {
    width: 100% !important;
    border-color: #000000;
  }

  .print-table thead th,
  .prebill-table thead th,
  .operational-table thead th {
    border-color: #000000;
    color: #000000;
    background: #ffffff !important;
  }

  .print-table tbody td,
  .prebill-table tbody td,
  .operational-table tbody td {
    border-color: #777777;
  }

  a,
  a:visited {
    color: #000000 !important;
    text-decoration: none !important;
  }

  .status-badge,
  .method-badge,
  .pos-status-badge {
    border-color: #555555;
    color: #000000;
    background: #ffffff !important;
  }

  .pos-status-badge::before {
    display: none;
  }

  .pos-card,
  .summary-surface {
    box-shadow: none;
  }

  .report-section,
  .print-subsection,
  .kitchen-print-station,
  .tax-breakdown {
    break-inside: avoid;
  }

  .operational-document-notes {
    border-color: #000000;
    color: #000000;
    background: #ffffff;
    break-inside: avoid;
  }

  .empty-state {
    min-height: 0;
    border: 0;
    background: #ffffff;
  }
}
