body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #f7f5ef 0%, #eef3ea 100%);
  color: #24311f;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 8px 28px;
  background: #355834;
  color: #f8fbf3;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  width: 180px;
  height: 62px;
  padding: 5px 8px;
  border-radius: 12px;
  background: #fbfaf6;
  box-sizing: border-box;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.brand-name { color: #243a28; font: 600 27px/1 Georgia, serif; letter-spacing: -.04em; }

.nav a {
  color: #f8fbf3;
  text-decoration: none;
  margin-left: 18px;
}

.nav {
  display: flex;
  align-items: center;
}

.mobile-nav { display: none; }

.nav-more {
  position: relative;
  margin-left: 18px;
}

.nav-more summary {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #f8fbf3;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: " ▾";
}

.nav-more[open] summary::after {
  content: " ▴";
}

.nav-more-menu {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 245px;
  padding: 8px;
  border: 1px solid #c9d6c0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 45, 24, 0.22);
}

.nav-more-menu a {
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  color: #294329;
  white-space: nowrap;
}

.nav-more-menu a:hover,
.nav-more-menu a:focus-visible {
  background: #edf4e8;
}

.nav-logout {
  display: inline;
  margin-left: 18px;
}

.nav-logout button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8fbf3;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.nav a.is-active,
.nav-more.is-active summary {
  padding: 9px 15px;
  border-radius: 999px;
  background: #eef5cf;
  color: #294329 !important;
  font-weight: 800;
}

.nav a:focus-visible,
.nav-more summary:focus-visible {
  outline: 3px solid #eef5cf;
  outline-offset: 3px;
}

.page {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 20px;
}

.dashboard-eyebrow { margin: 0 0 8px; color: #557052; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.dashboard-stats { margin-top: 22px; }
.dashboard-stats .stat strong { overflow-wrap: anywhere; }
.dashboard-graph-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dashboard-graph-header h2 { margin: 0; }
.dashboard-periods { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: #edf3e7; }
.dashboard-periods a { padding: 8px 14px; border-radius: 999px; color: #294329; text-decoration: none; font-weight: 700; }
.dashboard-periods a.is-active { background: #315b35; color: #fff; }
.dashboard-periods a:focus-visible { outline: 3px solid #315b35; outline-offset: 2px; }
.dashboard-breakdown { width: fit-content; max-width: 100%; margin-top: 4px; flex-wrap: wrap; border-radius: 14px; }
.dashboard-average { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; margin-top: 16px; padding: 15px 17px; border: 1px solid #dce8d2; border-radius: 15px; background: #f6f9f2; color: #345237; }
.dashboard-average strong { display: block; margin-top: 3px; color: #18311e; font-size: 19px; }
.dashboard-average small { flex-basis: 100%; color: #53624e; line-height: 1.4; }
.dashboard-period-totals { display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 18px 0; color: #4e634d; }
.dashboard-period-totals strong { display: block; color: #152b1a; font-size: 20px; }
.dashboard-chart-scroll { width: 100%; min-width: 0; overflow: hidden; padding: 8px 0; }
.dashboard-chart { display: flex; align-items: flex-end; gap: clamp(1px, .4vw, 5px); width: 100%; min-width: 0; height: 210px; border-bottom: 1px solid #aebea4; }
.dashboard-chart-column { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.dashboard-chart-track { display: flex; flex: 1; align-items: flex-end; width: 100%; max-width: 34px; }
.dashboard-chart-bar { width: 100%; min-height: 0; border-radius: 5px 5px 0 0; background: #82a94d; }
.dashboard-chart-bar.is-negative { background: #bd6554; }
.dashboard-chart-label { height: 23px; padding-top: 5px; color: #53624e; font-size: 10px; white-space: nowrap; }
@media (max-width: 700px) {
  .dashboard-chart-dense .dashboard-chart-column:not(:nth-child(4n + 1)) .dashboard-chart-label,
  .dashboard-chart-month .dashboard-chart-column:not(:nth-child(3n + 1)) .dashboard-chart-label { visibility: hidden; }
  .dashboard-chart-dense .dashboard-chart-column:first-child .dashboard-chart-label { transform: translateX(8px); }
  .dashboard-chart-label { font-size: 9px; }
}
.dashboard-date-picker,
.report-filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.dashboard-date-picker label,
.report-filters label { display: flex; flex-direction: column; gap: 5px; color: #294329; font-weight: 700; }
.dashboard-date-picker input,
.report-filters input { min-height: 42px; border: 1px solid #b7c9aa; border-radius: 10px; padding: 7px 10px; color: #203b27; background: #fff; font: inherit; }
.dashboard-date-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border-radius: 10px; background: #edf3e7; color: #294329; text-decoration: none; font-size: 22px; }
.dashboard-date-arrow:focus-visible { outline: 3px solid #315b35; outline-offset: 2px; }
.dashboard-selected-period { margin: -8px 0 15px; font-weight: 600; }
.report-tabs { display: inline-flex; border-radius: 16px; flex-wrap: wrap; }
.report-source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.report-source-card { padding: 16px; border: 1px solid #d7e3cd; border-radius: 15px; background: #f5f8f0; }
.report-source-card > div { display: flex; flex-direction: column; gap: 3px; }
.report-source-card small { color: #5a7058; }
.report-source-card > span { display: block; margin-top: 12px; color: #142d1a; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.report-source-card p { margin: 8px 0 0; color: #4a604b; line-height: 1.4; }
.report-section-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.report-section-title h2 { margin-bottom: 0; }
.report-section-title strong { font-size: 21px; }
.report-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.report-links a { display: block; padding: 12px; border-radius: 12px; background: #edf3e7; color: #294329; font-weight: 700; }

.panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(53, 88, 52, 0.12);
}

.legal-document {
  line-height: 1.6;
}

.legal-document h2 {
  margin-top: 1.6em;
}

.customer-kind-hint {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #b8c99e;
  border-radius: 12px;
  background: #f1f6e7;
  color: #294329;
}

.training-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 9px 16px;
  background: #f4c430;
  color: #172117;
  border-bottom: 2px solid #172117;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
}

.environment-switch {
  border: 2px solid var(--forest, #315d35);
  border-radius: 18px;
  padding: 1.25rem;
}

.environment-switch__state {
  display: inline-flex;
  min-width: 11rem;
  justify-content: center;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px;
  border-radius: 16px;
  background: #f4f8ef;
}

.card {
  padding: 18px;
  border-radius: 16px;
  background: #f4f8ef;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.card p {
  margin: 0;
}

.stat span {
  display: block;
  margin-bottom: 8px;
  color: #52634f;
}

.stat strong {
  display: block;
  color: #172d22;
  font-size: 18px;
  line-height: 1.3;
}

.stat small {
  display: block;
  margin-top: 5px;
  color: #52634f;
  line-height: 1.35;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #9fbe64;
  color: #24311f;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

.list {
  padding-left: 18px;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #dbe6d2;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #52634f;
}

.data-table tbody tr:hover {
  background: #f7faf3;
}

.align-right {
  text-align: right !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dce9c3;
  color: #2f4a20;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}

.status-pill-muted {
  background: #edf3e7;
  color: #52634f;
}

.button-compact {
  width: auto;
}

.rental-shell {
  display: grid;
  gap: 22px;
}

.rental-summary {
  margin-top: 2px;
}

.rental-callout {
  padding: 16px 18px;
  border-left: 5px solid #9fbe64;
  border-radius: 12px;
  background: #f4f8ef;
  line-height: 1.55;
}

.rental-deposit,
.rental-row-head,
.rental-inline-form,
.rental-amounts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rental-deposit {
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #dbe6d2;
  border-radius: 16px;
}

.rental-deposit h2,
.rental-deposit p,
.rental-row h2,
.rental-row p {
  margin: 0;
}

.rental-inline-form label,
.rental-payment-form label {
  display: grid;
  gap: 5px;
  color: #52634f;
  font-size: 13px;
}

.rental-inline-form input,
.rental-payment-form input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #c9d6c0;
  border-radius: 10px;
  font: inherit;
}

.rental-inline-form .button {
  width: auto;
}

.rental-year-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.rental-year-nav a {
  padding: 8px 14px;
  border: 1px solid #c9d6c0;
  border-radius: 999px;
  color: #355834;
  text-decoration: none;
}

.rental-year-nav a.is-active {
  background: #355834;
  color: #fff;
}

.rental-list {
  display: grid;
  gap: 16px;
}

.rental-row {
  padding: 18px;
  border: 1px solid #dbe6d2;
  border-radius: 18px;
  background: #fff;
}

.rental-row.is-overdue {
  border-color: #c9786f;
}

.rental-row-head {
  justify-content: space-between;
  align-items: flex-start;
}

.rental-amounts {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rental-amounts span {
  display: grid;
  gap: 3px;
  text-align: right;
  color: #52634f;
  font-size: 12px;
}

.rental-amounts strong {
  color: #24311f;
  font-size: 15px;
}

.rental-payment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rental-note {
  grid-column: span 2;
}

.rental-alert {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.rental-qr-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #c9d6c0;
  border-radius: 16px;
  background: #f8fbf5;
}

.rental-qr-copy h3 {
  margin: 0 0 8px;
}

.rental-qr-copy > p {
  margin: 6px 0;
}

.rental-qr-copy dl {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.rental-qr-copy dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
}

.rental-qr-copy dt {
  color: #52634f;
}

.rental-qr-copy dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.rental-upn-qr {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.rental-tabs { display: flex; gap: .65rem; margin: 1rem 0; }
.rental-tabs a { padding: .65rem .9rem; border-radius: 999px; background: #edf3e9; color: #355834; text-decoration: none; }
.rental-tabs a.is-active { background: #355834; color: #fff; }
.rental-qr-actions { display: grid; justify-items: center; gap: .75rem; }

@media (max-width: 780px) {
  .section-head,
  .rental-deposit,
  .rental-row-head {
    align-items: stretch;
    flex-direction: column;
  }

  .button-compact,
  .rental-inline-form .button {
    width: 100%;
  }

  .rental-inline-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rental-qr-block {
    grid-template-columns: 1fr;
  }

  .rental-upn-qr {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .rental-note {
    grid-column: auto;
  }

  .rental-amounts {
    justify-content: space-between;
  }

  .rental-amounts span {
    text-align: left;
  }
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
}

.form input,
.form select,
.form textarea {
  padding: 10px 12px;
  border: 1px solid #c9d6c0;
  border-radius: 12px;
  font: inherit;
}

.registry-search {
  padding: 16px;
  border: 1px solid #c9d6c0;
  border-radius: 16px;
  background: #f7faef;
}

.registry-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.registry-search-row .button {
  min-height: 46px;
  padding-inline: 22px;
}

.registry-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.registry-results[hidden] {
  display: none;
}

.registry-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d6c0;
  border-radius: 12px;
  background: #fff;
  color: #243522;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.registry-result:hover,
.registry-result:focus-visible {
  border-color: #56784f;
  background: #eef5cf;
  outline: 2px solid rgba(86, 120, 79, 0.18);
}

.registry-result span,
.registry-result small {
  color: #52634f;
}

@media (max-width: 600px) {
  .registry-search-row {
    grid-template-columns: 1fr;
  }
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fce8e6;
  color: #8b2e26;
}

.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #e5f3df;
  color: #294b2c;
}

.hint {
  margin: 0;
  color: #52634f;
  font-size: 14px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: stretch;
}

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

.actions form {
  margin: 0;
  width: 100%;
}

.actions .button {
  height: 46px;
  min-height: 46px;
  width: 100%;
  padding: 0 16px;
  white-space: nowrap;
}

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

/* Retail POS: large touch targets, one-screen cart and calm visual hierarchy. */
.page:has(.pos-shell) {
  max-width: 1440px;
  margin-top: 22px;
}

.pos-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.pos-catalog,
.pos-cart {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(53, 88, 52, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(53, 88, 52, 0.12);
}

.pos-catalog {
  padding: 24px;
}

.pos-cart {
  position: sticky;
  top: 70px;
  overflow: hidden;
}

.pos-heading,
.pos-cart-head,
.pos-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.pos-receipt-seller {
  display: grid;
  gap: 3px;
  margin: 22px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe6d2;
  line-height: 1.35;
}

.pos-receipt-seller strong {
  font-size: 1.15rem;
}

.pos-receipt-internal {
  margin: 6px 0 0;
  color: #647060;
  font-size: 0.82rem;
}

.pos-correction-banner {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 3px solid #9f2f2f;
  border-radius: 16px;
  background: #fff1f0;
  color: #762020;
  text-align: center;
}

.pos-correction-banner strong {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.pos-correction-banner span {
  font-weight: 700;
}

.pos-receipt-ddv-clause {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid #9fbe64;
  background: #f4f8ef;
  font-size: 0.9rem;
}

.pos-receipt-grand-total {
  padding-top: 10px;
  border-top: 1px solid #cdd9c6;
  font-size: 1.08rem;
}

.pos-receipt-thanks {
  margin: 20px 0 0;
  text-align: center;
  font-weight: 700;
}

.pos-heading h1,
.pos-cart-head h2,
.pos-receipt-head h1 {
  margin: 0;
}

.pos-eyebrow {
  margin: 0 0 4px;
  color: #71806c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pos-clock {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.pos-test-notice {
  margin: 18px 0;
  padding: 11px 14px;
  border: 1px solid #d5a600;
  border-radius: 12px;
  background: #fff2b8;
  color: #493b00;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
}

.pos-shop-toolbar {
  display: grid;
  gap: 12px;
  margin: 18px 0 16px;
}

.pos-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #bdcdb5;
  border-radius: 16px;
  background: #fff;
  color: #66805d;
  box-shadow: 0 5px 18px rgba(53, 88, 52, 0.06);
}

.pos-search > span {
  font-size: 27px;
  line-height: 1;
}

.pos-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #263b28;
  font: inherit;
  font-size: 16px;
}

.pos-search kbd {
  padding: 4px 7px;
  border: 1px solid #d5dfcf;
  border-radius: 7px;
  background: #f4f7f1;
  color: #71806c;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.pos-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pos-category-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #cbd9c4;
  border-radius: 999px;
  background: #fff;
  color: #52634f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.pos-category-tabs button.is-active {
  border-color: #355834;
  background: #355834;
  color: #fff;
}

.pos-category-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 18px 0 12px;
}

.pos-category-head strong,
.pos-category-head small {
  display: block;
}

.pos-category-head strong {
  color: #294329;
  font-size: 18px;
}

.pos-category-head small {
  margin-top: 3px;
  color: #71806c;
}

.pos-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pos-addon-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dbe6d2;
}

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

.pos-addon-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid #d9cfad;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf7, #f7f1df);
  color: #3d4d31;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pos-addon-tile > span {
  grid-row: 1 / 3;
  font-size: 24px;
}

.pos-addon-tile > small { color: #6f755f; }

.pos-app-tile {
  display: grid;
  min-height: 118px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: #263b28;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 22px rgba(53, 88, 52, 0.09);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.pos-app-tile:hover,
.pos-app-tile:focus-visible {
  outline: 3px solid rgba(53, 88, 52, 0.18);
  box-shadow: 0 12px 28px rgba(53, 88, 52, 0.16);
  transform: translateY(-2px);
}

.pos-app-tile-symbol {
  align-self: start;
  font-size: 27px;
  line-height: 1;
}

.pos-app-tile strong {
  align-self: end;
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.15;
}

.pos-app-tile small {
  margin-top: 5px;
  opacity: 0.75;
}

.pos-app-tile--rose { background: linear-gradient(145deg, #fff3f5, #f5ced6); color: #6e3040; }
.pos-app-tile--blue { background: linear-gradient(145deg, #f2f8ff, #cfe2f3); color: #315776; }
.pos-app-tile--green { background: linear-gradient(145deg, #f2f9ef, #cee6c4); color: #345b31; }
.pos-app-tile--turquoise { background: linear-gradient(145deg, #effaf8, #c5e8e1); color: #27625a; }
.pos-app-tile--violet { background: linear-gradient(145deg, #f8f3ff, #dfd0ee); color: #62467a; }
.pos-app-tile--gold { background: linear-gradient(145deg, #fff9e9, #f1dfad); color: #735b1e; }

.pos-other-product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  width: 100%;
  min-height: 66px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid #bfd0b6;
  border-radius: 17px;
  background: #f6f9f2;
  color: #355834;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pos-other-product > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 25px;
}

.pos-other-product strong { font-size: 16px; }
.pos-other-product small { color: #71806c; }

.pos-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 22px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #263b28;
  box-shadow: 0 28px 80px rgba(20, 39, 21, 0.35);
}

.pos-dialog::backdrop {
  background: rgba(23, 37, 24, 0.58);
  backdrop-filter: blur(3px);
}

.pos-source-dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; }
.pos-source-dialog h2 { margin: 0 0 16px; }
.pos-source-options { display: grid; gap: 8px; }
.pos-source-options button {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d8e3d2;
  border-radius: 12px;
  background: #fff;
  color: #263b28;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pos-source-options button:hover,
.pos-source-options button:focus-visible { background: #eef5ea; border-color: #6d916d; }
.pos-source-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.pos-source-actions button { min-height: 48px; padding: 10px 16px; cursor: pointer; }

.pos-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.pos-dialog-head h2 { margin: 0; }

.pos-dialog-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eef3e9;
  color: #355834;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.pos-recent-prices {
  margin-top: 17px;
}

.pos-recent-prices > span {
  color: #52634f;
  font-size: 13px;
  font-weight: 800;
}

.pos-recent-prices > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.pos-recent-prices button {
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #bdcdb5;
  border-radius: 999px;
  background: #f4f8ef;
  color: #355834;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.pos-price-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 16px;
  margin-top: 18px;
}

.pos-price-display-wrap {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #52634f;
  font-size: 13px;
  font-weight: 800;
}

.pos-price-display {
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 2px solid #9eb491;
  border-radius: 16px;
  box-sizing: border-box;
  background: #fbfdf9;
  color: #213d26;
  font: inherit;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
}

.pos-price-clear {
  min-height: 44px;
  border: 1px solid #cbd9c4;
  border-radius: 12px;
  background: #fff;
  color: #52634f;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.pos-price-quantity {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  color: #355834;
  font-weight: 800;
}

.pos-price-quantity-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pos-price-quantity-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #bdcdb5;
  border-radius: 12px;
  background: #f4f8ef;
  color: #355834;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.pos-price-quantity-controls button:disabled { opacity: .45; cursor: default; }
.pos-price-quantity-controls output { min-width: 34px; text-align: center; font-size: 20px; }

.pos-input-error {
  margin: 0;
  color: #9b342e;
  font-size: 13px;
  font-weight: 800;
}

.pos-input-error[hidden] { display: none; }

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

.pos-keypad button {
  min-height: 58px;
  border: 1px solid #c7d6bf;
  border-radius: 14px;
  background: #f5f8f2;
  color: #294329;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
}

.pos-keypad button:active { background: #dfead7; transform: scale(0.98); }
.pos-keypad button.is-delete { background: #f8ece8; color: #8b493d; }

.pos-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.pos-dialog-actions .button { min-width: 220px; }

.pos-price-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pos-price-actions .button,
.pos-price-add { min-width: 0; min-height: 58px; font: inherit; font-weight: 800; }
.pos-price-add {
  padding: 12px 16px;
  border: 1px solid #bdcdb5;
  border-radius: 12px;
  background: #fff;
  color: #355834;
  cursor: pointer;
}
@media (max-width: 520px) {
  .pos-price-actions { grid-template-columns: 1fr; }
}

.pos-manual-dialog .pos-custom-line {
  grid-template-columns: minmax(220px, 1fr) 130px 100px 120px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pos-manual-dialog .pos-add-button { grid-column: 1 / -1; }

.pos-lock {
  margin-top: 20px;
  padding: 24px;
  border: 2px solid #b55349;
  border-radius: 18px;
  background: #fff3f1;
}

.pos-lock strong {
  font-size: 20px;
}

.pos-lock p {
  margin-bottom: 0;
}

.pos-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pos-tile {
  display: grid;
  grid-template-rows: auto minmax(44px, auto) auto;
  gap: 12px;
  min-height: 158px;
  padding: 15px;
  border: 1px solid #d6e0d0;
  border-radius: 18px;
  background: linear-gradient(150deg, #ffffff, #f0f6eb);
  color: #294329;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.pos-tile[hidden] {
  display: none;
}

.pos-tile--šopki { background: linear-gradient(150deg, #fff, #f3f8ed); }
.pos-tile--rezano-cvetje { background: linear-gradient(150deg, #fff, #fff1f3); }
.pos-tile--lončnice { background: linear-gradient(150deg, #fff, #edf7ef); }
.pos-tile--dodatki { background: linear-gradient(150deg, #fff, #f7f1e8); }

.pos-tile-top,
.pos-tile-meta {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pos-tile-icon {
  display: grid !important;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(91, 132, 69, 0.12);
  color: #527642;
  font-size: 22px;
}

.pos-tile-add {
  display: grid !important;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(53, 88, 52, 0.08);
  color: #355834;
  font-size: 18px;
  font-weight: 900;
}

.pos-tile-name {
  align-self: end;
  line-height: 1.25;
}

.pos-tile-meta small {
  margin: 0;
  font-size: 11px;
}

.pos-tile-meta strong {
  color: #8b5b35;
  font-size: 12px;
  white-space: nowrap;
}

.pos-tile.has-price .pos-tile-meta strong {
  color: #355834;
  font-size: 14px;
}

.pos-tile:hover,
.pos-tile:focus-visible {
  border-color: #6c924d;
  box-shadow: 0 8px 20px rgba(53, 88, 52, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.pos-tile span,
.pos-tile small {
  display: block;
}

.pos-no-products {
  padding: 34px 18px;
  border: 1px dashed #bdcdb5;
  border-radius: 16px;
  color: #71806c;
  text-align: center;
}

.pos-manual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce5d6;
}

.pos-manual-head strong,
.pos-manual-head small {
  display: block;
}

.pos-manual-head small {
  margin-top: 3px;
  color: #71806c;
}

.pos-manual-head button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #bdcdb5;
  border-radius: 11px;
  background: #f4f8ef;
  color: #355834;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.pos-tile span {
  font-size: 16px;
  font-weight: 750;
}

.pos-tile small {
  margin-top: 9px;
  color: #71806c;
}

.pos-custom-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 90px 120px 145px;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #dce5d6;
  border-radius: 15px;
  background: #f8faf6;
}

.pos-custom-line[hidden] { display: none; }

.pos-custom-line label,
.pos-checkout-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #52634f;
  font-size: 13px;
  font-weight: 700;
}

.pos-custom-line input,
.pos-custom-line select,
.pos-checkout-form input,
.pos-checkout-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bacbb2;
  border-radius: 12px;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
}

.pos-custom-line input,
.pos-custom-line select,
.pos-custom-line .pos-add-button {
  min-height: 64px;
}

#custom-price,
#custom-quantity,
#cash-received {
  min-height: 64px;
  padding: 12px 15px;
  font-size: 25px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

#custom-price:focus,
#custom-quantity:focus,
#cash-received:focus {
  border-color: #5f874a;
  box-shadow: 0 0 0 4px rgba(95, 135, 74, 0.14);
  outline: none;
}

#custom-quantity {
  text-align: center;
}

.pos-cash-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pos-cash-presets button {
  display: grid;
  gap: 2px;
  min-height: 53px;
  border: 1px solid #b7c9ae;
  border-radius: 11px;
  background: #f2f7ed;
  color: #355834;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.pos-cash-presets button strong,
.pos-cash-presets button small { display: block; }
.pos-cash-presets button small { color: #71806c; font-size: 10px; font-weight: 650; }

.pos-add-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 750;
}

.pos-cart-head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid #dce5d6;
}

.pos-cart-count {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #e5efdc;
  color: #355834;
  font-size: 12px;
  vertical-align: middle;
}

.pos-clear {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #9a3f38;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.pos-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 48px 20px;
  color: #71806c;
  text-align: center;
}

.pos-empty[hidden] {
  display: none;
}

.pos-empty-icon {
  color: #95b06f;
  font-size: 34px;
}

.pos-cart-lines {
  max-height: 40vh;
  overflow-y: auto;
}

.pos-cart-add {
  width: calc(100% - 44px);
  min-height: 44px;
  margin: 10px 22px;
  border: 1px solid #bdcdb5;
  border-radius: 12px;
  background: #fff;
  color: #355834;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.pos-add-dialog { width: min(460px, calc(100vw - 28px)); overflow-y: auto; }

.pos-cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid #edf1e9;
}

.pos-line-copy {
  min-width: 0;
}

.pos-line-copy strong,
.pos-line-copy small {
  display: block;
}

.pos-line-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-line-copy small {
  margin-top: 3px;
  color: #71806c;
}

.pos-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd9c4;
  border-radius: 10px;
  overflow: hidden;
}

.pos-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f2f7ed;
  color: #355834;
  cursor: pointer;
  font-size: 20px;
}

.pos-stepper span {
  min-width: 30px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pos-line-total {
  white-space: nowrap;
}

.pos-line-remove {
  width: 38px;
  height: 38px;
  border: 1px solid #e3b9b1;
  border-radius: 10px;
  background: #fff3f1;
  color: #9c2726;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.pos-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 22px;
  background: #f3f8ec;
  font-size: 18px;
}

.pos-total-row strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.pos-checkout-form {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
}

.pos-buyer-panel {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #d8e3d2;
  border-radius: 14px;
  background: #f7faf4;
}

.pos-buyer-panel select {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #bacbb2;
  border-radius: 11px;
  background: #fff;
  font: inherit;
}

.pos-buyer-panel a {
  justify-self: start;
  color: #355834;
  font-size: 13px;
  font-weight: 800;
}

.pos-payment-method {
  min-width: 0;
  padding: 0;
  border: 0;
}

.pos-payment-method legend,
.pos-field-title {
  display: block;
  margin-bottom: 8px;
  color: #52634f;
  font-size: 13px;
  font-weight: 800;
}

.pos-payment-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pos-payment-buttons button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 2px solid #d2ddcc;
  border-radius: 15px;
  background: #fff;
  color: #355834;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pos-payment-buttons button.is-selected {
  border-color: #355834;
  background: #edf6e7;
  box-shadow: 0 0 0 3px rgba(53, 88, 52, 0.1);
}

.pos-payment-buttons button:disabled { cursor: not-allowed; opacity: 0.48; }
.pos-payment-buttons strong,
.pos-payment-buttons small { display: block; }
.pos-payment-buttons strong { font-size: 16px; }
.pos-payment-buttons small { margin-top: 3px; color: #71806c; font-size: 11px; }

.pos-payment-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #e5efdc;
  font-size: 19px;
  font-weight: 900;
}

.pos-cash-panel {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid #d7e1d1;
  border-radius: 15px;
  background: #f8fbf5;
}

.pos-cash-panel[hidden],
.pos-card-panel[hidden],
.pos-change-breakdown[hidden] { display: none; }

.pos-cash-exact > span,
.pos-change-breakdown > span {
  display: block;
  margin-bottom: 7px;
  color: #52634f;
  font-size: 12px;
  font-weight: 700;
}

.pos-denomination-list { display: flex; flex-wrap: wrap; gap: 6px; }

.pos-denomination {
  padding: 5px 8px;
  border: 1px solid #bdcfb4;
  border-radius: 8px;
  background: #fff;
  color: #355834;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pos-denomination--empty { color: #71806c; font-weight: 650; }

.pos-change {
  display: flex;
  justify-content: space-between;
  color: #52634f;
}

.pos-change strong { color: #244b28; font-size: 20px; }

.pos-change-breakdown {
  padding-top: 10px;
  border-top: 1px dashed #c9d6c3;
}

.pos-card-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #cbd7e3;
  border-radius: 15px;
  background: #f3f7fb;
  color: #304b63;
}

.pos-card-panel strong,
.pos-card-panel small { display: block; }
.pos-card-panel small { margin-top: 3px; color: #64798b; }
#wolt-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
#wolt-panel[hidden] { display: none; }
#wolt-panel label { display: grid; gap: 6px; min-width: 0; }
#wolt-panel input { width: 100%; min-width: 0; box-sizing: border-box; }
#wolt-total-check { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pos-card-mark { font-size: 30px; }

.pos-pay {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  border-radius: 15px;
  background: #355834;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.pos-pay:disabled {
  background: #a9b4a5;
  cursor: not-allowed;
}

.pos-card-disabled {
  margin: 0;
  color: #7c6b62;
  font-size: 12px;
  text-align: center;
}

.pos-recent {
  margin-top: 26px;
}

.pos-recent-toggle {
  padding: 0;
  border: 1px solid #dbe6d2;
  border-radius: 16px;
  background: #fbfdf9;
}

.pos-recent-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: #294329;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.pos-recent-toggle > summary::-webkit-details-marker { display: none; }

.pos-recent-toggle > summary::after {
  content: "▾";
  margin-left: 4px;
}

.pos-recent-toggle[open] > summary::after { content: "▴"; }

.pos-recent-toggle > summary strong {
  min-width: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #dce9c3;
  text-align: center;
}

.pos-recent-toggle .pos-recent-list,
.pos-recent-toggle > .hint,
.pos-recent-toggle > .pos-all-documents-link {
  margin: 0 16px 16px;
}

.retail-session-documents {
  margin: 18px 0;
}

.retail-session-documents > .table-wrap {
  margin: 0 16px 16px;
}

.retail-session-document-table {
  min-width: 820px;
}

.retail-session-document-table td {
  vertical-align: top;
  line-height: 1.45;
}

.retail-session-document-table td > small {
  display: block;
  margin-top: 5px;
  color: #52634f;
}

.pos-recent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.pos-recent-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f8ef;
  color: #355834;
  text-decoration: none;
  font-size: 13px;
}

.pos-session-document-list a {
  align-items: flex-start;
  min-width: 0;
}

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

.pos-session-document-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

.pos-session-document-head time {
  color: #71806c;
  font-size: 11px;
}

.pos-session-document-items {
  display: block;
  margin-top: 7px;
  color: #294329;
  line-height: 1.35;
}

.pos-session-document-total { white-space: nowrap; }

.pos-document-items span {
  display: block;
  min-width: 210px;
  margin-bottom: 4px;
}

.pos-furs-list-state { margin-top: 8px; }
.pos-furs-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .025em;
}
.pos-furs-badge-ok { background: #e1efd5; color: #254c28; }
.pos-furs-badge-test { background: #e9eef3; color: #3c5260; }
.pos-furs-badge-alert { background: #a62524; color: #fff; }
.pos-furs-help { display: block; margin-top: 5px; color: #852e29; font-weight: 700; line-height: 1.35; }
.pos-furs-attention { border: 2px solid #b22f2d !important; background: #fffaf8; }

/* Prednaročila */
.preorder-page { display: grid; gap: 20px; }
.eyebrow { margin: 0 0 4px; color: #61745c; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button-secondary { background: #edf3e9; color: #294b2e; border: 1px solid #b9caae; }
.preorder-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.preorder-tabs a { padding: 9px 14px; border-radius: 999px; background: #edf3e9; color: #355834; text-decoration: none; font-weight: 700; }
.preorder-tabs a.is-active { background: #355834; color: #fff; }
.preorder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 13px; }
.preorder-card { display: grid; gap: 8px; min-width: 0; padding: 17px; border: 1px solid #d5e0ce; border-radius: 18px; background: #fff; color: #213725; text-decoration: none; box-shadow: 0 8px 24px rgba(39, 65, 37, .05); }
.preorder-card:hover { border-color: #8eaa80; transform: translateY(-1px); }
.preorder-card.is-overdue { border: 2px solid #b74a45; background: #fffafa; }
.preorder-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preorder-number { color: #5c7158; font-size: .86rem; font-weight: 800; letter-spacing: .04em; }
.preorder-card > span { overflow-wrap: anywhere; }
.preorder-next-action { padding: 9px 11px; border-radius: 11px; background: #f1f5ed; font-weight: 700; }
.preorder-price { color: #4c644b; font-size: .9rem; }
.danger-text { color: #9a302e !important; }
.preorder-form { display: grid; gap: 18px; }
.preorder-form fieldset { min-width: 0; margin: 0; padding: 17px; border: 1px solid #d8e3d2; border-radius: 18px; background: #fbfcf9; }
.preorder-form legend { padding: 0 8px; color: #294b2e; font-size: 1.08rem; font-weight: 800; }
.preorder-form label, .detail-card label { display: grid; gap: 6px; color: #385039; font-size: .9rem; font-weight: 700; }
.preorder-form input, .preorder-form select, .preorder-form textarea, .detail-card input, .detail-card select, .detail-card textarea, .reference-upload input { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 11px; border: 1px solid #bacbb2; border-radius: 11px; background: #fff; color: #203b27; font: inherit; }
.preorder-form textarea, .detail-card textarea { resize: vertical; }
.form-grid { display: grid; gap: 13px; margin-bottom: 13px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.optional { color: #768574; font-size: .78rem; font-weight: 500; }
.checkbox-row, .checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; }
.checkbox-row label, .checklist-grid label { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border-radius: 11px; background: #edf3e9; }
.checkbox-row input, .checklist-grid input { width: 20px; min-height: 20px; }
.preorder-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preorder-hero > div { display: grid; gap: 6px; padding: 17px; border-radius: 17px; background: #edf3e9; }
.preorder-hero strong { font-size: 1.12rem; }
.preorder-hero a { color: #294b2e; }
.preorder-action-callout { display: grid; gap: 4px; padding: 16px 18px; border-left: 5px solid #769956; border-radius: 14px; background: #f4f7ef; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-card { min-width: 0; padding: 17px; border: 1px solid #d8e3d2; border-radius: 18px; background: #fff; }
.detail-card h2 { margin-top: 0; }
.preorder-advance-entry { margin-top: 14px; }
.preorder-advance-entry summary { width: fit-content; color: #294b2e; font-weight: 700; cursor: pointer; }
.preorder-advance-entry .form { margin-top: 14px; }
.detail-card .preorder-advance-confirmation { display: flex; align-items: center; gap: 10px; }
.detail-card .preorder-advance-confirmation input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: #355834; }
.detail-row { display: grid; grid-template-columns: minmax(100px, .38fr) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf1e9; }
.detail-row span { color: #6c7e69; }
.detail-row strong { overflow-wrap: anywhere; white-space: pre-line; }
.checklist-action { margin: 0 0 7px; }
.checklist-button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #cad8c3; border-radius: 11px; background: #fff; color: #2e4931; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.checklist-button.is-done { border-color: #8bab78; background: #edf5e7; }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.reference-grid figure { margin: 0; overflow: hidden; border: 1px solid #d8e3d2; border-radius: 14px; background: #f7f9f4; }
.reference-grid img { display: block; width: 100%; height: 180px; object-fit: cover; }
.reference-grid figcaption { display: grid; gap: 5px; padding: 9px; font-size: .8rem; overflow-wrap: anywhere; }
.reference-upload { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.reference-upload input { flex: 1 1 260px; }
.link-danger { padding: 0; border: 0; background: transparent; color: #9a302e; font: inherit; cursor: pointer; text-align: left; }
.empty-state { padding: 28px; border: 1px dashed #b9caae; border-radius: 18px; text-align: center; }

@media (max-width: 760px) {
  .form-grid-2, .form-grid-3, .preorder-hero, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .preorder-form fieldset, .detail-card { padding: 14px; }
  .detail-row { grid-template-columns: 1fr; gap: 3px; }
}
.pos-furs-attention summary { color: #852321; }
.pos-furs-list-warning {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-left: 5px solid #a62524;
  border-radius: 10px;
  background: #fff0ec;
  color: #762b26;
  font-weight: 750;
  line-height: 1.45;
}
.pos-furs-row-actions { min-width: 210px; }
.pos-furs-row-actions a { display: inline-block; margin-top: 8px; }
.pos-furs-list-action { margin: 0; }
.pos-furs-retry-button {
  width: auto;
  min-height: 42px;
  padding: 9px 13px;
  background: #9c2726;
  border-color: #9c2726;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
  text-align: center;
}
.pos-furs-retry-button:hover, .pos-furs-retry-button:focus-visible { background: #7c1d1c; }

.pos-recent-list a span small {
  display: block;
  margin-top: 3px;
  color: #71806c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pos-all-documents-link {
  display: inline-block;
  color: #355834;
  font-weight: 750;
}

.pos-heading-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.pos-bottom-control {
  max-width: 1440px;
  margin: 20px auto 36px;
  padding: 0 18px;
  text-align: center;
}

.pos-bottom-control a {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid #cbd9c4;
  border-radius: 12px;
  color: #52634f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pos-bottom-control a:hover, .pos-bottom-control a:focus-visible { background: #f3f8ec; }

.retail-control-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.retail-control-shell > *, .retail-control-shell .form, .retail-control-shell label { min-width: 0; }
.retail-control-shell .form { grid-template-columns: minmax(0, 1fr); }
.retail-control-shell input, .retail-control-shell select, .retail-control-shell textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
}

.retail-control-head {
  gap: 20px;
  margin-bottom: 20px;
}

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

.pos-documents-shell {
  display: grid;
  gap: 20px;
}

.pos-documents-head h1,
.pos-documents-result-head h2 {
  margin-top: 0;
}

.receipt-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}

.receipt-filter-form label {
  display: grid;
  gap: 7px;
  color: #52634f;
  font-size: 13px;
  font-weight: 700;
}

.receipt-filter-form input,
.receipt-filter-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c5d3bd;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  color: #24311f;
  font: inherit;
}

.receipt-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.receipt-filter-actions a { color: #52634f; }

.pos-documents-total {
  color: #355834;
  font-size: 18px;
}

.receipt-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.receipt-pagination > :last-child { justify-self: end; }

.retail-control-head h1,
.retail-control-shell h2,
.pos-correction-controls h2 {
  margin-top: 0;
}

.retail-control-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.retail-control-stats .stat {
  min-width: 0;
  min-height: 98px;
  box-sizing: border-box;
}

.retail-status-stat strong {
  color: #2f6a45;
}

.retail-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.retail-control-grid .card h2,
.retail-control-grid .card h3 {
  margin-top: 0;
}

.retail-open-card {
  width: min(100%, 480px);
  margin-top: 18px;
  box-sizing: border-box;
}

.retail-shift-status { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.retail-close-card { margin: 20px 0; padding: 24px; border: 1px solid #b9cdb2; }
.retail-close-form { max-width: 720px; gap: 22px; margin-top: 20px; }
.retail-close-field { display: grid; gap: 8px; }
.retail-close-field > span { font-size: 18px; font-weight: 750; color: #243b2b; }
.retail-close-field small, .retail-close-explanation small { font-size: 14px; line-height: 1.55; color: #405441; }
.retail-close-field input { font-size: 22px; min-height: 52px; }
.retail-secondary { margin-top: 18px; }
.retail-secondary > summary { cursor: pointer; font-size: 16px; font-weight: 700; color: #243b2b; }
.retail-secondary[open] > summary { margin-bottom: 18px; }
.retail-close-explanation { display: grid; gap: 8px; padding: 16px; background: #fff4df; border-radius: 12px; }

.retail-subsection,
.pos-correction-history,
.pos-correction-controls {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #dbe6d2;
}

.retail-danger {
  background: #b64b43;
  color: #fff;
}

.pos-correction-controls .form input,
.pos-correction-controls .form textarea {
  width: 100%;
  box-sizing: border-box;
}

.pos-receipt {
  max-width: 760px;
  margin: 0 auto;
}

.pos-paper-receipt {
  display: none;
}

.pos-receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.pos-receipt-meta div {
  padding: 12px;
  border-radius: 12px;
  background: #f4f8ef;
}

.pos-receipt-meta dt {
  color: #71806c;
  font-size: 12px;
}

.pos-receipt-meta dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.pos-receipt-totals {
  width: min(100%, 360px);
  margin: 24px 0 0 auto;
}

.pos-receipt-totals p {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid #dce5d6;
}

.pos-receipt-change {
  color: #355834;
  font-size: 18px;
}

.pos-receipt-note {
  padding: 12px;
  border-radius: 12px;
  background: #f6f3e7;
}

.pos-print {
  background: #e9efe3;
}

@media (max-width: 980px) {
  .pos-shell {
    grid-template-columns: 1fr;
  }

  .pos-cart {
    position: static;
  }
}

@media (max-width: 700px) {
  .topbar {
    position: relative;
    z-index: 1001;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
  }

  .brand {
    width: 146px;
    height: 52px;
    padding: 4px 6px;
  }

  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 24px; }

  .nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #c9d9ad;
    border-radius: 13px;
    background: #eef5cf;
    color: #243d25;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav > summary span { font-size: 22px; line-height: 1; }
  .mobile-nav > summary:focus-visible { outline: 3px solid #eef5cf; outline-offset: 3px; }
  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    left: 10px;
    display: grid;
    gap: 3px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid #c9d6c0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(25, 45, 24, .25);
  }
  .mobile-nav-heading {
    margin: 8px 10px 4px;
    color: #5b7059;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .mobile-nav-panel a,
  .mobile-nav-logout button {
    display: flex;
    align-items: center;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #294329;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    text-align: left;
  }
  .mobile-nav-panel a.is-active { background: #e9f2d5; font-weight: 800; }
  .mobile-nav-panel a:focus-visible,
  .mobile-nav-logout button:focus-visible { outline: 3px solid #315b35; outline-offset: -2px; }
  .mobile-nav-logout { margin: 7px 0 0; padding-top: 8px; border-top: 1px solid #dce5d6; }
  .mobile-nav-logout button { width: 100%; cursor: pointer; }

  .page { margin: 18px auto; padding: 0 12px; }
  .panel { padding: 18px; }
  .dashboard-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
  .dashboard-periods a { padding: 9px 3px; text-align: center; }
  .dashboard-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-date-picker { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; }
  .dashboard-date-picker label { min-width: 0; }
  .dashboard-date-picker input { box-sizing: border-box; width: 100%; min-width: 0; }
  .dashboard-date-picker button { grid-column: 1 / -1; }

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

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

  .pos-catalog {
    padding: 16px;
  }

  .pos-tile {
    min-height: 145px;
    padding: 13px;
  }

  .pos-app-tile {
    min-height: 104px;
    padding: 14px;
    border-radius: 17px;
  }

  .pos-app-tile strong { font-size: 17px; }

  .pos-price-entry {
    grid-template-columns: 1fr;
  }

  .pos-dialog {
    padding: 17px;
  }

  .pos-manual-dialog .pos-custom-line {
    grid-template-columns: 1fr 1fr;
  }

  .pos-custom-line {
    grid-template-columns: 1fr 1fr;
  }

  .pos-custom-line label:first-child,
  .pos-add-button {
    grid-column: 1 / -1;
  }

  .pos-cart-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pos-line-copy { grid-column: 1; grid-row: 1; }
  .pos-line-remove { grid-column: 2; grid-row: 1; }
  .pos-stepper { grid-column: 1; grid-row: 2; justify-self: start; }
  .pos-line-total {
    grid-column: 2;
    grid-row: 2;
  }

  .pos-receipt-meta {
    grid-template-columns: 1fr;
  }

  .pos-heading-actions {
    justify-items: stretch;
  }

  .retail-control-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .retail-control-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .retail-control-shell > .panel { padding: 16px; }
  .retail-close-card { padding: 16px; }
  .retail-control-head h1, .retail-close-card h2 { font-size: 24px; }
  .retail-control-stats { grid-template-columns: 1fr; }
  .pos-quick-grid { gap: 9px; }
  .pos-tile { min-height: 138px; border-radius: 15px; }
  .pos-search kbd { display: none; }
}

@media print {
  @page {
    margin: 0;
  }

  .topbar,
  .training-banner,
  .pos-receipt-actions {
    display: none !important;
  }

  .pos-screen-only {
    display: none !important;
  }

  body,
  .page {
    background: white;
    margin: 0;
    padding: 0;
    width: 80mm;
    max-width: 80mm;
  }

  .pos-receipt {
    width: 72mm;
    max-width: 72mm;
    margin: 0 auto;
    padding: 0 3mm;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pos-receipt > :not(.pos-paper-receipt) {
    display: none !important;
  }

  .pos-paper-receipt {
    display: block;
    color: #000;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    line-height: 1.17;
    overflow-wrap: anywhere;
  }

  .pos-paper-logo {
    display: block;
    width: 48.75mm;
    height: auto;
    margin: 0 auto 0.2mm;
  }

  .pos-paper-warning,
  .pos-paper-copy,
  .pos-paper-copy-time,
  .pos-paper-furs-status,
  .pos-paper-thanks,
  .pos-paper-document-number,
  .pos-paper-reference {
    margin: 0;
    text-align: center;
  }

  .pos-paper-warning,
  .pos-paper-copy,
  .pos-paper-furs-status,
  .pos-paper-thanks {
    font-weight: 800;
  }

  .pos-paper-warning,
  .pos-paper-copy {
    font-size: 9pt;
  }

  .pos-paper-seller,
  .pos-paper-buyer {
    display: grid;
    gap: 0.2mm;
  }

  .pos-paper-seller {
    margin-top: 0.8mm;
    text-align: center;
  }

  .pos-paper-seller strong {
    font-size: 10pt;
  }

  .pos-paper-buyer {
    margin-top: 0.8mm;
    font-size: 7.5pt;
  }

  .pos-paper-rule {
    margin: 0.8mm 0 0.7mm;
    border-top: 0.2mm solid #000;
  }

  .pos-paper-rule-heavy {
    border-top-width: 0.35mm;
  }

  .pos-paper-receipt h1 {
    margin: 0;
    font-size: 10pt;
    line-height: 1.12;
    text-align: center;
  }

  .pos-paper-document-number {
    margin-top: 0.4mm;
    font-size: 9pt;
    font-weight: 800;
  }

  .pos-paper-reference {
    margin-top: 0.35mm;
    font-weight: 700;
  }

  .pos-paper-meta {
    margin: 0.8mm 0 0;
    font-size: 7.5pt;
    font-weight: 700;
  }

  .pos-paper-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2mm;
    align-items: end;
  }

  .pos-paper-row > :last-child {
    text-align: right;
    white-space: nowrap;
  }

  .pos-paper-table-head {
    font-size: 7pt;
    font-weight: 800;
  }

  .pos-paper-items {
    display: grid;
    gap: 0.7mm;
  }

  .pos-paper-total {
    font-size: 10pt;
  }

  .pos-paper-refund {
    margin-top: 0.4mm;
    font-weight: 700;
  }

  .pos-paper-ddv,
  .pos-paper-note,
  .pos-paper-code {
    margin: 0.8mm 0 0;
    font-size: 7pt;
  }

  .pos-paper-code {
    margin-top: 0.35mm;
  }

  .pos-paper-qr {
    display: block;
    width: 28mm;
    height: 28mm;
    margin: 0.5mm auto 0;
    image-rendering: pixelated;
  }

  .pos-paper-thanks {
    font-size: 8.5pt;
  }
}

.export-grid {
  display: grid;
  gap: 14px;
}

.furs-preview-form {
  margin-bottom: 20px;
}

.furs-certificate-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #a9c49a;
  border-radius: 14px;
  background: #edf7e8;
  color: #294b2c;
}

.furs-upload {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #c9d6c0;
  border-radius: 16px;
  background: #fbfdf9;
}

.furs-upload summary {
  cursor: pointer;
  font-weight: 800;
}

.furs-upload .form {
  margin-top: 16px;
}

.furs-upload input[type="file"] {
  background: white;
}

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

.furs-payment-card {
  padding: 18px;
  border: 1px solid #c9d6c0;
  border-radius: 18px;
  background: #fdfefb;
  overflow-wrap: anywhere;
}

.furs-payment-card p {
  margin: 6px 0;
}

.furs-upn-qr {
  display: block;
  width: min(100%, 425px);
  height: auto;
  margin: 16px auto 0;
  image-rendering: pixelated;
}

.furs-payment-status {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dce5d6;
}

.furs-payment-paid-form {
  display: block;
}

.furs-payment-paid-form .button {
  width: 100%;
}

.payment-status-unpaid {
  color: #7b3f22;
  font-weight: 700;
}

.payment-status-paid {
  padding: 12px 14px;
  border-radius: 12px;
  color: #244b2b;
  background: #dcefd9;
  font-weight: 700;
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calculated-total {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f4f8ef;
}

.invoice-line-fields {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 0.8fr) minmax(190px, 1.4fr);
  gap: 14px;
  align-items: end;
}

.invoice-line-fields label {
  min-width: 0;
}

.invoice-line-fields input,
.invoice-line-fields select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}

.chip {
  padding: 8px 12px;
  border: 1px solid #c9d6c0;
  border-radius: 999px;
  background: #f4f8ef;
  color: #355834;
  cursor: pointer;
}

@media (max-width: 780px) {
  .receipt-filter-form {
    grid-template-columns: 1fr;
  }

  .receipt-filter-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .pos-documents-head,
  .pos-documents-result-head {
    align-items: flex-start;
    gap: 14px;
  }

  .invoice-line-fields {
    grid-template-columns: 1fr 1fr;
  }

  .invoice-line-fields label:last-child {
    grid-column: 1 / -1;
  }

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

  .furs-upn-qr {
    width: min(100%, 340px);
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 14px;
    margin-top: 18px;
  }

  .data-table tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dbe6d2;
    border-radius: 16px;
    background: #fdfefb;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: #52634f;
    font-weight: 600;
  }
}

/* Floral composition, shared desktop and phone flow. */
.flower-dialog { width: min(1000px, 96vw); max-height: 92dvh; overflow-y: auto; }
.flower-modes { display: flex; gap: 12px; flex-wrap: wrap; }
.flower-modes button { flex: 1; min-height: 64px; }
.flower-modes [aria-pressed="true"] { background: #234d3b; color: white; }
.flower-work { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr); gap: 20px; margin-top: 16px; }
.flower-available { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.flower-available button { text-align: left; white-space: pre-line; min-height: 68px; }
.flower-dialog button:disabled { opacity: .38; cursor: not-allowed; }
.flower-chosen-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.flower-chosen-row span { flex: 1; min-width: 180px; }
.flower-error { color: #a32929; }
.flower-next { display: block; width: 100%; min-height: 64px; margin-top: 16px; background: #234d3b; color: white; }
.flower-fixed { max-width: 320px; margin-top: 16px; }
.flower-price-keys button { min-height: 45px; }
@media (max-width: 600px) { .flower-work { grid-template-columns: 1fr; } .flower-available { max-height: 30vh; } }
.flower-dialog { font-size: 17px; color: #244333; padding: 22px; box-sizing: border-box; }
.flower-dialog .pos-dialog-head { position: sticky; top: -22px; z-index: 2; background: white; padding: 12px 0; }
.flower-dialog .pos-dialog-head h2 { margin: 0; }
.flower-dialog button { font: inherit; border: 1px solid #c9d5c8; border-radius: 12px; padding: 12px 14px; color: #244333; background: #f6f8f3; cursor: pointer; }
.flower-dialog .pos-dialog-head button { font-size: 26px; padding: 5px 14px; }
.flower-dialog label { display: block; font-size: 15px; font-weight: 600; }
.flower-dialog input { display: block; width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #bacbb7; border-radius: 10px; padding: 10px; margin-top: 5px; font: inherit; color: #244333; }
.flower-dialog .flower-fixed input { font-size: 28px; text-align: right; }
.flower-dialog .flower-modes [aria-pressed="true"], .flower-dialog .flower-next { background: #234d3b; color: white; }
.flower-price-next { width: 100%; margin-top: 12px; }
.flower-quantity .pos-keypad { margin-bottom: 10px; }
.flower-price-edit { margin: 0 0 14px; }
.flower-total { display: block; margin: 12px 0; font-size: 22px; }
