:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #647181;
  --line: #dce3ea;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --accent: #0f8b8d;
  --accent-strong: #0a6869;
  --warn: #c27a17;
  --danger: #ba3b46;
  --ok: #287a4d;
  --kitchen: #6843b8;
  --shadow: 0 10px 30px rgba(24, 32, 42, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--soft);
  color: var(--ink);
}

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

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.sidebar {
  background: #18202a;
  color: #f8fbfd;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 10px;
}

.brand strong {
  font-size: 22px;
}

.brand span {
  color: #afbac7;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  background: transparent;
  color: #d8e1ea;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav button.active,
.nav button:hover {
  background: #26313f;
  color: #ffffff;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar h1 {
  font-size: 24px;
  margin: 0;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.install-app {
  display: none;
}

.install-app.ready {
  display: inline-flex;
}

.content {
  padding: 22px 24px 32px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef3f6;
}

.login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
}

.login-status {
  border: 1px solid #bfe7dd;
  border-radius: 8px;
  background: #effbf8;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.login-status span {
  color: var(--muted);
  font-size: 13px;
}

.login-status strong {
  color: var(--accent-strong);
}

.login-status.expired {
  border-color: #efc4ca;
  background: #fff0f2;
}

.login-status.expired strong {
  color: var(--danger);
}

.staff-access-list {
  gap: 12px;
}

.staff-access-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(120px, 0.6fr) minmax(150px, 0.8fr) minmax(120px, 0.55fr) minmax(160px, 0.75fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.staff-access-row .field {
  min-width: 0;
}

.staff-access-row .check-row {
  align-self: center;
}

.store-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
}

.store-switcher select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  outline: 0;
}

.store-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.staff-store-list,
.staff-primary-store-list,
.store-list,
.user-sale-list {
  gap: 12px;
}

.staff-primary-store-row,
.staff-store-row,
.store-row,
.user-sale-row {
  display: grid;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.staff-primary-store-row {
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 0.85fr) minmax(220px, 1fr) auto;
}

.staff-store-row {
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.2fr) minmax(180px, 0.8fr) minmax(160px, 0.8fr) auto;
}

.store-row {
  grid-template-columns: minmax(170px, 0.9fr) repeat(4, minmax(130px, 1fr)) auto;
}

.user-sale-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.9fr) minmax(140px, 0.6fr) minmax(150px, 0.7fr) auto;
}

.staff-primary-store-row .field,
.staff-store-row .field,
.store-row .field,
.user-sale-row .field {
  min-width: 0;
}

.staff-row-actions {
  display: grid;
  gap: 8px;
}

.staff-edit-panel {
  border-color: rgba(15, 139, 141, 0.28);
  background: #fbfffe;
}

.delivery-alert-banner {
  margin: 16px 24px 0;
  border: 1px solid #bfe7dd;
  border-radius: 8px;
  background: #ecfbf6;
  color: var(--text);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-alert-banner div {
  margin-right: auto;
  display: grid;
  gap: 3px;
}

.delivery-alert-banner span {
  color: var(--muted);
  font-size: 13px;
}

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

.grid.cols-2 {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
}

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

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.backoffice-tabs {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin-bottom: 14px;
  background: var(--soft);
}

.backoffice-tabs button {
  flex: 0 0 auto;
  background: #e9eef3;
  color: var(--ink);
  padding: 10px 13px;
  white-space: nowrap;
}

.backoffice-tabs button.active,
.backoffice-tabs button:hover {
  background: var(--accent);
  color: #ffffff;
}

.backoffice-panel {
  min-width: 0;
}

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

.report-period-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.report-period-tabs button {
  flex: 0 0 auto;
  background: #e9eef3;
  color: var(--ink);
  padding: 10px 13px;
  white-space: nowrap;
}

.report-period-tabs button.active,
.report-period-tabs button:hover {
  background: var(--accent);
  color: #ffffff;
}

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

.finance-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 150px minmax(180px, 1.2fr) minmax(150px, 0.8fr) 130px 130px minmax(150px, 0.7fr);
  gap: 10px;
  align-items: end;
}

.finance-profit {
  font-size: 18px;
  font-weight: 800;
  color: var(--ok);
  margin: 5px 0;
}

.finance-profit.loss {
  color: var(--danger);
}

.menu-row-actions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.menu-row-actions .danger {
  width: 100%;
}

.menu-delete-button {
  border-color: #e7aeb6;
  background: #ffe9ec;
  color: var(--danger);
}

.menu-delete-list {
  margin-top: 14px;
  border: 1px solid #f0c8cd;
  border-radius: 8px;
  background: #fff7f8;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.menu-delete-list h3 {
  margin: 0;
  color: var(--danger);
}

.menu-delete-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f3d8dc;
  padding-top: 10px;
}

.menu-delete-row div {
  display: grid;
  gap: 3px;
}

.menu-delete-row span {
  color: var(--muted);
  font-size: 13px;
}

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

.edit-menu-panel {
  border-color: rgba(15, 139, 141, 0.28);
  background: #fbfffe;
}

.edit-menu-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.edit-menu-title > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f8f4;
  font-size: 24px;
}

.edit-menu-title div {
  display: grid;
  gap: 2px;
}

.edit-menu-title small {
  color: var(--muted);
}

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

.chart-card {
  padding: 16px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.chart-head h2 {
  margin: 0;
  font-size: 18px;
}

.chart-head span {
  color: var(--muted);
  font-size: 13px;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-svg text {
  fill: var(--muted);
  font-size: 12px;
}

.comparison-chart {
  display: grid;
  gap: 14px;
  padding: 16px 0 8px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
}

.comparison-row span {
  color: var(--muted);
  font-size: 13px;
}

.comparison-row b {
  text-align: right;
}

.comparison-track {
  height: 16px;
  border-radius: 999px;
  background: #edf2f5;
  overflow: hidden;
}

.comparison-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.search,
.input,
.select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
}

.search {
  flex: 1;
  min-width: 220px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.menu-item {
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 130px;
}

.menu-item .emoji {
  font-size: 30px;
}

.menu-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3f6;
}

.menu-image-editor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.menu-image-editor.compact {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.menu-image-preview {
  width: 120px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

.menu-image-editor.compact .menu-image-preview {
  width: 100%;
}

.menu-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-symbol-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-symbol-picker button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  display: inline-grid;
  place-items: center;
}

.menu-symbol-picker button.active,
.menu-symbol-picker button:hover {
  border-color: var(--accent);
  background: #e8f8f4;
}

.file-button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.menu-item strong {
  font-size: 16px;
}

.menu-item span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--accent-strong);
  font-weight: 700;
}

.primary {
  background: var(--accent);
  color: white;
  padding: 11px 14px;
}

.primary:hover {
  background: var(--accent-strong);
}

.ghost {
  background: #eef3f6;
  color: var(--ink);
  padding: 10px 12px;
}

.danger {
  background: #f8e7e9;
  color: var(--danger);
  padding: 9px 11px;
}

.cart-list,
.kitchen-list,
.table-list {
  display: grid;
  gap: 10px;
}

.cart-row,
.table-row,
.kitchen-ticket,
.stock-row,
.report-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  background: #eef3f6;
}

.totals {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.totals div,
.report-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.grand {
  font-size: 22px;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #eaf5f5;
  color: var(--accent-strong);
}

.badge.warn {
  background: #fff3dc;
  color: var(--warn);
}

.badge.danger {
  background: #f8e7e9;
  color: var(--danger);
}

.badge.kitchen {
  background: #efeafd;
  color: var(--kitchen);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.delivery-channel-card {
  display: grid;
  gap: 8px;
}

.delivery-sync-card {
  display: grid;
  gap: 8px;
}

.delivery-list {
  display: grid;
  gap: 12px;
}

.delivery-ticket,
.delivery-platform-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.delivery-platform-row {
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
  align-items: start;
}

.delivery-platform-row h3 {
  margin-bottom: 10px;
}

.delivery-meta {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.shift-status,
.recipe-row,
.purchase-row,
.audit-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.purchase-row,
.audit-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.recipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 8px 0 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
  font-size: 13px;
}

.bill-edit-list {
  display: grid;
  gap: 8px;
}

.checkout-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 12px;
}

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

.checkout-head b {
  font-size: 20px;
  color: var(--accent-strong);
}

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

.checkout-summary {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary .checkout-net {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-weight: 800;
  color: var(--accent-strong);
}

.checkout-summary .checkout-net b {
  font-size: 18px;
}

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

.payment-method {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.payment-method.active {
  border-color: var(--accent);
  background: #e9f7f7;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
}

.stock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.line-alert-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.line-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 9px;
  background: #edf2f5;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink) !important;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.receipt {
  background: #fbfdff;
  border: 1px dashed #aab7c5;
  padding: 14px;
  border-radius: 8px;
  font-family: Consolas, monospace;
  white-space: normal;
  line-height: 1.45;
}

.receipt-head {
  text-align: center;
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.receipt-head strong {
  font-size: 18px;
}

.receipt-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin: 0 auto 4px;
}

.receipt-meta {
  color: #2d3744;
  font-size: 12px;
  text-align: center;
}

.receipt-line {
  border-top: 1px dashed #9aa8b6;
  margin: 10px 0;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-total {
  font-size: 16px;
  font-weight: 800;
}

.receipt-footer {
  margin-top: 12px;
  text-align: center;
}

.kitchen-order-print-area {
  display: none;
}

.purchase-order-print-area {
  display: none;
}

.kitchen-print-ticket {
  font-family: Consolas, monospace;
  color: #000000;
}

.kitchen-print-head {
  text-align: center;
  display: grid;
  gap: 4px;
}

.kitchen-print-head strong {
  font-size: 24px;
}

.kitchen-print-head span {
  font-size: 20px;
  font-weight: 800;
}

.kitchen-print-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 7px 0;
  font-size: 17px;
}

.kitchen-print-item span {
  font-size: 13px;
}

.receipt-brand-editor {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.receipt-logo-preview {
  width: 110px;
  height: 110px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

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

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}

.purchase-print-document {
  background: #ffffff;
  color: #111111;
  font-family: "Segoe UI", Tahoma, sans-serif;
  padding: 18px;
}

.purchase-print-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 2px solid #111111;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.purchase-print-head h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.purchase-print-head p {
  margin: 4px 0 0;
}

.purchase-print-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.purchase-print-meta div,
.purchase-print-note {
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px;
}

.purchase-print-meta span {
  display: block;
  color: #555555;
  font-size: 12px;
}

.purchase-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.purchase-print-table th,
.purchase-print-table td {
  border: 1px solid #cccccc;
  padding: 8px;
}

.purchase-print-table th {
  background: #f2f2f2;
  color: #111111;
}

.purchase-print-table tfoot td {
  font-weight: 800;
}

.purchase-print-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.purchase-print-signatures div {
  border-top: 1px solid #111111;
  padding-top: 8px;
  text-align: center;
}

/* Modern POS refresh */
:root {
  --ink: #15211f;
  --text: #15211f;
  --muted: #667670;
  --line: #dbe5e1;
  --surface: #ffffff;
  --soft: #f3f6f5;
  --surface-soft: #f8faf9;
  --accent: #0f8b8d;
  --accent-strong: #0a676a;
  --accent-soft: #e5f5f4;
  --warn: #b7791f;
  --danger: #be3f4b;
  --ok: #287a4d;
  --kitchen: #5f4bb6;
  --sidebar: #11191b;
  --sidebar-soft: #1a2528;
  --shadow: 0 16px 42px rgba(17, 25, 27, 0.08);
}

body {
  background: var(--soft);
  line-height: 1.45;
}

button {
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

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

button:active {
  transform: translateY(0);
}

.shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--soft);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 14px;
  gap: 16px;
}

.brand {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 139, 141, 0.25);
}

.brand div {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brand span {
  color: #aab8b5;
}

.nav {
  gap: 6px;
}

.nav button {
  min-height: 44px;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d6e0de;
  padding: 10px 12px;
}

.nav button small {
  color: #82918d;
  font-size: 11px;
  font-weight: 800;
}

.nav button.active,
.nav button:hover {
  background: var(--sidebar-soft);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav button.active small,
.nav button:hover small {
  color: #b7ece8;
}

.main {
  background: var(--soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 229, 225, 0.85);
  padding: 18px 28px;
  box-shadow: 0 8px 28px rgba(17, 25, 27, 0.05);
}

.title-block {
  min-width: 0;
}

.topbar h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

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

.top-actions {
  gap: 8px;
}

.content {
  padding: 24px 28px 40px;
}

.panel,
.card {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel h2,
.panel h3 {
  letter-spacing: 0;
  line-height: 1.25;
}

.panel h2 {
  font-size: 18px;
}

.panel h3 {
  font-size: 16px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-bottom: 4px;
}

.grid {
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.toolbar {
  gap: 10px;
}

.backoffice-tabs {
  top: 76px;
  background: rgba(243, 246, 245, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.backoffice-tabs button,
.report-period-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.backoffice-tabs button.active,
.backoffice-tabs button:hover,
.report-period-tabs button.active,
.report-period-tabs button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 139, 141, 0.18);
}

.search,
.input,
.select,
textarea {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(17, 25, 27, 0.02);
}

.search:focus,
.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.field label {
  color: var(--muted);
  font-weight: 700;
}

.primary,
.ghost,
.danger,
.file-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(15, 139, 141, 0.18);
}

.primary:hover {
  background: var(--accent-strong);
}

.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.ghost:hover {
  background: var(--surface-soft);
  border-color: #c8d6d1;
}

.danger {
  border: 1px solid #f0c8cd;
  background: #fff0f2;
  color: var(--danger);
}

.danger:hover {
  background: #f9dfe3;
}

.badge {
  min-height: 26px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(15, 139, 141, 0.16);
}

.badge.warn {
  background: #fff6e8;
  border-color: #f2d5a7;
}

.badge.danger {
  background: #fff0f2;
  border-color: #f0c8cd;
}

.badge.kitchen {
  background: #f0edff;
  border-color: #dcd5ff;
}

.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.menu-item {
  min-height: 152px;
  align-content: start;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.menu-item:hover {
  border-color: rgba(15, 139, 141, 0.4);
  box-shadow: 0 16px 34px rgba(17, 25, 27, 0.11);
}

.menu-item .emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 24px;
}

.menu-photo,
.menu-image-preview,
.receipt-logo-preview {
  background: var(--surface-soft);
  border-color: var(--line);
}

.price {
  color: var(--accent-strong);
  font-size: 16px;
}

.cart-row,
.table-row,
.kitchen-ticket,
.stock-row,
.report-row,
.delivery-ticket,
.delivery-platform-row,
.shift-status,
.recipe-row,
.purchase-row,
.audit-row,
.checkout-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(17, 25, 27, 0.04);
}

.cart-row:hover,
.stock-row:hover,
.report-row:hover,
.delivery-ticket:hover,
.purchase-row:hover,
.audit-row:hover {
  border-color: #c8d6d1;
}

.qty button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
}

.totals {
  border-top-color: var(--line);
}

.grand {
  color: var(--accent-strong);
}

.payment-method {
  background: var(--surface);
  border-color: var(--line);
}

.payment-method.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

th {
  background: var(--surface-soft);
  color: var(--muted);
}

tr:hover td {
  background: #fbfcfc;
}

.progress {
  background: #e8eeeb;
}

.progress span {
  background: var(--ok);
}

.line-alert-summary,
.line-status,
.check-row,
.receipt {
  border-color: var(--line);
  background: var(--surface-soft);
}

.chart-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.comparison-track {
  background: #e8eeeb;
}

.login-screen {
  background: var(--soft);
}

.login-card {
  padding: 24px;
}

.delivery-alert-banner {
  border-color: #bde6df;
  background: #effbf8;
}

.recipe-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.recipe-list-panel {
  grid-column: 1 / -1;
}

.recipe-list {
  display: grid;
  gap: 12px;
}

.recipe-menu-card {
  gap: 12px;
}

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

.recipe-menu-head > div {
  display: grid;
  gap: 4px;
}

.recipe-ingredients {
  display: grid;
  gap: 8px;
}

.recipe-ingredient-row,
.recipe-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.45fr) auto auto auto;
  gap: 8px;
  align-items: center;
}

.recipe-add-row {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.45fr) auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.recipe-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft);
}

.recipe-chip {
  background: var(--surface-soft);
}

.customer-shell {
  min-height: 100vh;
  background: var(--soft);
}

.customer-hero {
  background: var(--sidebar);
  color: #ffffff;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.customer-hero h1 {
  margin: 8px 0 4px;
  font-size: 28px;
  letter-spacing: 0;
}

.customer-hero p {
  margin: 0;
  color: #c6d3d0;
}

.customer-order-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
}

.kitchen-station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.kitchen-station {
  min-height: 360px;
}

.kitchen-station .kitchen-ticket {
  border-left: 4px solid var(--accent);
}

.qr-table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.qr-table-card img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.qr-base-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.qr-url-help {
  border: 1px solid #bde6df;
  border-radius: 8px;
  background: #effbf8;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.qr-url-help span,
.qr-warning {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.qr-url-help.warn {
  border-color: #f2d5a7;
  background: #fff6e8;
}

.qr-url-help.warn strong,
.qr-warning {
  color: var(--warn);
}

.qr-warning {
  margin: 8px 0 0;
}

.station-print-page + .station-print-page {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

body[data-theme="fresh"] {
  --ink: #15211f;
  --text: #15211f;
  --muted: #667670;
  --line: #dbe5e1;
  --surface: #ffffff;
  --soft: #f3f6f5;
  --surface-soft: #f8faf9;
  --accent: #0f8b8d;
  --accent-strong: #0a676a;
  --accent-soft: #e5f5f4;
  --warn: #b7791f;
  --danger: #be3f4b;
  --ok: #287a4d;
  --kitchen: #5f4bb6;
  --sidebar: #11191b;
  --sidebar-soft: #1a2528;
}

body[data-theme="coral"] {
  --ink: #241a1c;
  --text: #241a1c;
  --muted: #74676a;
  --line: #eadbd7;
  --surface: #ffffff;
  --soft: #f8f3f0;
  --surface-soft: #fff9f6;
  --accent: #d65f48;
  --accent-strong: #a93d2b;
  --accent-soft: #fff0eb;
  --warn: #a86f16;
  --danger: #bd3554;
  --ok: #23785c;
  --kitchen: #3d68b2;
  --sidebar: #251817;
  --sidebar-soft: #342523;
}

body[data-theme="midnight"] {
  --ink: #17202b;
  --text: #17202b;
  --muted: #647282;
  --line: #dce4ee;
  --surface: #ffffff;
  --soft: #f3f6fb;
  --surface-soft: #f8fbff;
  --accent: #2f6fbe;
  --accent-strong: #214f91;
  --accent-soft: #eaf2ff;
  --warn: #b7791f;
  --danger: #bc3f56;
  --ok: #247a55;
  --kitchen: #8a5a2b;
  --sidebar: #121824;
  --sidebar-soft: #1f2a3a;
}

body[data-theme="orchid"] {
  --ink: #201b29;
  --text: #201b29;
  --muted: #70677a;
  --line: #e3ddea;
  --surface: #ffffff;
  --soft: #f6f2f8;
  --surface-soft: #fbf8fd;
  --accent: #8b4fb5;
  --accent-strong: #65358b;
  --accent-soft: #f3eafa;
  --warn: #ad761d;
  --danger: #b53a58;
  --ok: #2b7a5a;
  --kitchen: #087d87;
  --sidebar: #1d1825;
  --sidebar-soft: #2a2236;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
}

.theme-switcher select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
}

.pos-workspace {
  display: grid;
  gap: 18px;
}

.pos-command-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.pos-command-copy {
  display: grid;
  gap: 8px;
}

.pos-command-copy h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.pos-command-copy p {
  margin: 0;
  color: var(--muted);
}

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

.pos-stat-card,
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  display: grid;
  gap: 5px;
  box-shadow: 0 12px 30px rgba(17, 25, 27, 0.06);
}

.pos-stat-card span,
.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pos-stat-card b,
.metric-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.pos-stat-card small,
.metric-card small {
  color: var(--muted);
}

.pos-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.pos-menu-panel,
.pos-order-panel {
  min-width: 0;
}

.pos-order-panel {
  position: sticky;
  top: 96px;
}

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

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 2px;
}

.category-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
}

.category-pill.active,
.category-pill:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(17, 25, 27, 0.1);
}

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

.pos-menu-item {
  min-height: 174px;
}

.menu-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.table-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.table-chip {
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  padding: 10px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.table-chip span {
  color: var(--muted);
  font-size: 12px;
}

.table-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pos-cart-list {
  max-height: min(46vh, 520px);
  overflow: auto;
  padding-right: 2px;
}

.pos-cart-row {
  align-items: start;
}

.pos-totals {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pos-actions {
  display: grid;
  grid-template-columns: 1fr auto;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
}

.report-dashboard {
  display: grid;
  gap: 18px;
}

.report-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
}

.report-hero h2 {
  margin: 10px 0 4px;
  font-size: 28px;
}

.report-hero p {
  margin: 0;
  color: var(--muted);
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: var(--surface);
  border-color: var(--line);
}

.metric-card.accent {
  border-top: 4px solid var(--accent);
}

.metric-card.ok {
  border-top: 4px solid var(--ok);
}

.metric-card.warn {
  border-top: 4px solid var(--warn);
}

.metric-card.danger {
  border-top: 4px solid var(--danger);
}

.metric-card.kitchen {
  border-top: 4px solid var(--kitchen);
}

.trend {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.trend.up {
  background: #e8f8ef;
  color: var(--ok);
}

.trend.down {
  background: #fff0f2;
  color: var(--danger);
}

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

.report-detail-grid {
  margin-top: 0;
}

.elevated-chart {
  overflow: hidden;
}

.donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.donut span b {
  color: var(--ink);
  font-size: 28px;
}

.donut-legend {
  display: grid;
  gap: 10px;
}

.donut-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.donut-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.donut-legend span {
  color: var(--muted);
}

.ranked-list {
  display: grid;
  gap: 12px;
}

.ranked-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
}

.ranked-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ranked-row > div:first-child b {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex: 0 0 auto;
}

.ranked-row span {
  min-width: 0;
}

.ranked-row .comparison-track i {
  background: var(--accent);
}

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

  .sidebar {
    position: static;
    top: 0;
    z-index: 6;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .topbar {
    position: static;
  }

  .brand {
    flex-direction: row;
    padding-bottom: 12px;
  }

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

  .grid.cols-2,
  .grid.cols-3,
  .customer-order-grid,
  .kitchen-station-grid,
  .chart-layout,
  .pos-command-panel,
  .pos-main-grid,
  .report-kpi-grid,
  .report-chart-grid,
  .checkout-fields,
  .delivery-platform-row,
  .form-grid,
  .finance-row,
  .menu-image-editor,
  .receipt-brand-editor,
  .recipe-workbench,
  .recipe-ingredient-row,
  .recipe-add-row,
  .staff-access-row,
  .staff-primary-store-row,
  .staff-store-row,
  .store-row,
  .user-sale-row {
    grid-template-columns: 1fr;
  }

  .recipe-list-panel {
    grid-column: auto;
  }

  .backoffice-tabs {
    top: 0;
  }

  .pos-order-panel {
    position: static;
  }

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

  .report-hero,
  .donut-layout,
  .ranked-row {
    grid-template-columns: 1fr;
  }

  .report-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .comparison-row b {
    text-align: left;
  }

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

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .topbar,
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .nav button {
    min-height: 40px;
  }

  .nav button small {
    display: none;
  }

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

  .customer-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }

  .customer-order-grid {
    padding: 16px;
  }

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

@media print {
  body {
    background: #ffffff;
  }

  body * {
    visibility: hidden;
  }

  body.print-receipt .receipt-print-area,
  body.print-receipt .receipt-print-area *,
  body.print-kitchen .kitchen-order-print-area,
  body.print-kitchen .kitchen-order-print-area *,
  body.print-report .report-print-area,
  body.print-report .report-print-area *,
  body.print-purchase .purchase-order-print-area,
  body.print-purchase .purchase-order-print-area * {
    visibility: visible;
  }

  body.print-receipt .receipt-print-area,
  body.print-kitchen .kitchen-order-print-area {
    position: absolute;
    inset: 24px auto auto 24px;
    width: 320px;
    border: 0;
    background: #ffffff;
    color: #000000;
    padding: 0;
  }

  body.print-kitchen .kitchen-order-print-area {
    display: block;
  }

  body.print-report .report-print-area {
    position: absolute;
    inset: 18px;
    width: auto;
    background: #ffffff;
    color: #000000;
  }

  body.print-purchase .purchase-order-print-area {
    display: block;
    position: absolute;
    inset: 18px;
    width: auto;
    background: #ffffff;
    color: #000000;
  }

  body.print-report .panel,
  body.print-report .chart-card,
  body.print-purchase .purchase-print-document {
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-report .chart-layout {
    grid-template-columns: 1fr;
  }

  .no-print {
    display: none !important;
  }
}
