:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #211916;
  background: #f8f4ee;
  --muted: #64554e;
  --line: #e6dbd0;
  --red: #b71021;
  --black: #121010;
  --yellow: #ffca31;
  --display-font: Impact, "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
:focus-visible { outline: 3px solid #bc7800; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--black); color: white; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 24px; }
.brand { position: relative; overflow: hidden; aspect-ratio: 2 / 1; border-radius: 10px; background: #0b0b0b; }
.brand img { position: absolute; width: 100%; top: 50%; transform: translateY(-55%); }
.sidebar-brand { display: grid; gap: 10px; }
.sidebar-greeting { padding: 0 8px; color: var(--yellow); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.mobile-brand { display: none; }
.login-mascot { position: relative; overflow: hidden; background: #000; }
.login-mascot img { position: absolute; width: 115%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar-menu { position: relative; }
.sidebar-menu > summary { cursor: pointer; list-style: none; font-weight: 700; }
.sidebar-menu > summary::-webkit-details-marker { display: none; }
.sidebar-menu[open] > summary, .sidebar-menu > summary[data-active-group] { background: #541922; color: var(--yellow); }
.sidebar-options { position: absolute; z-index: 5; top: 0; left: calc(100% + 16px); width: 192px; padding: 6px; border: 1px solid #63222a; border-radius: 10px; background: var(--black); box-shadow: 0 8px 22px #0004; }
.sidebar-options .nav-item { width: 100%; }
.nav-label { color: #d1bfb7; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin: 13px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #f4eae5; text-align: left; border-radius: 9px; padding: 11px 10px; font-size: 14px; }
.nav-item:hover { background: #30201f; }
.nav-item[aria-current="page"] { color: var(--yellow); background: #541922; font-weight: 700; }
.nav-icon { width: 19px; text-align: center; font-size: 17px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #422d29; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.sidebar-profile { display: flex; gap: 8px; align-items: center; padding: 4px 8px; font-size: 14px; }
.profile-settings { display: block; padding: 2px 0; border: 0; background: transparent; color: #f3d78a; font-size: 13px; }
.profile-settings:hover { text-decoration: underline; }
.profile-logout { font-size: 23px; padding: 7px; }
.topbar { background: white; border-bottom: 1px solid var(--line); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(16px, 3vw, 42px); }
.topbar strong { font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.notification-button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #ebd8b2; border-radius: 10px; background: #fff3cd; font-size: 19px; }
.notification-button:hover { background: #ffe998; }
.avatar { background: #f8dce0; color: #7f1524; border-radius: 50%; display: grid; place-items: center; width: 36px; height: 36px; font-size: 13px; font-weight: 750; }
main { max-width: 1500px; margin: 0 auto; padding: 31px clamp(16px, 3vw, 42px) 38px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
h1 { font-family: var(--display-font); font-size: clamp(2rem, 4vw, 2.65rem); font-weight: 500; letter-spacing: .01em; line-height: 1.12; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.subtitle { color: var(--muted); margin-top: 7px; line-height: 1.5; }
.primary { border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; background: var(--red); color: white; font-weight: 700; }
.primary:not(:disabled):hover { background: #920f1c; }
.orders-page-head { align-items: flex-start; }
.comanda-panel { width: min(100%, 360px); padding: 10px 12px; border: 1px solid #ecd59e; border-radius: 9px; background: #fffaf0; }
.comanda-panel h2 { font-size: 15px; }
.comanda-panel ul { display: flex; flex-wrap: wrap; gap: 5px; max-height: 105px; overflow: auto; list-style: none; margin: 6px 0 0; padding: 2px; }
.comanda-panel p { margin-top: 5px; font-size: 13px; color: var(--muted); }
#board-title { padding-bottom: 7px; border-bottom: 2px solid var(--red); }
.orders-section { margin-top: 13px; }
.order-date-actions { display: grid; gap: 7px; }
.finalized-button { padding: 8px 11px; border: 1px solid #226246; border-radius: 8px; background: #25704e; color: white; font-weight: 700; }
.finalized-button:hover { background: #1b563b; }
.new-order-actions { display: grid; justify-items: stretch; gap: 7px; }
.order-drafts { display: grid; gap: 6px; max-height: 126px; overflow-y: auto; padding: 2px; }
.order-header-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.order-date, .order-search input { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: white; color: inherit; }
.order-date { cursor: pointer; }
.order-search { display: grid; gap: 5px; width: min(100%, 355px); margin: 16px 0 10px; font-size: 14px; font-weight: 650; }
.order-search input { width: 100%; font-weight: 400; }
.new-order-actions [data-resume-order] { max-width: min(270px, 100%); height: 36px; padding-block: 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-button { border: 1px solid #d9c09a; border-radius: 8px; padding: 8px 11px; background: #fff3cd; color: #4a2d08; font-weight: 700; }
.panel, .ticket { background: white; border: 1px solid var(--line); border-radius: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.filters button { padding: 6px 10px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; font-size: 14px; }
.filters button[aria-pressed="true"] { background: #ffe998; color: #492800; font-weight: 700; }
.order-filters { width: fit-content; max-width: 100%; gap: 3px; padding: 4px; }
.order-filters button { text-align: left; white-space: nowrap; padding: 8px 10px; font-size: 14px; }
.order-board-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; margin-bottom: 6px; }
.local-board-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-board-tools > :first-child { grid-column: 1 / -2; }
.order-board-tools .order-search { margin: 0; width: 100%; }
.customer-order-products { white-space: normal; min-width: 150px; }
.order-board-section + .order-board-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-board-section h2 { margin-bottom: 9px; }
.order-board-tools h2 { margin: 0; }
.board { display: grid; grid-template-columns: repeat(var(--board-columns, 4), minmax(0, 1fr)); gap: 12px; }
.board-local { --board-columns: 3; }
.column { background: var(--stage-background, #eee5da); border-radius: 12px; min-height: 320px; padding: 10px; }
.column[data-stage="novos"] { --stage-background: #f9dce1; --stage-card: #fff7f8; }
.column[data-stage="preparo"] { --stage-background: #dce9fb; --stage-card: #f6faff; }
.column[data-stage="prontos"] { --stage-background: #dbefe2; --stage-card: #f7fcf8; }
.column[data-stage="saiu"] { --stage-background: #eae0f8; --stage-card: #fbf8ff; }
.column .ticket { background: var(--stage-card, white); }
.column-tickets { display: grid; align-content: start; gap: 8px; position: relative; }
.column-tickets .ticket { margin-bottom: 0; }
.column-tickets[data-scroll-orders] { max-height: 740px; overflow-y: auto; scrollbar-gutter: stable; padding-right: 3px; }
.column h3 { display: flex; align-items: center; gap: 7px; padding: 4px 2px 10px; font-size: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage); flex: none; }
.count { margin-left: auto; background: white; border-radius: 6px; padding: 3px 8px; font-size: 14px; }
.ticket { padding: 12px; margin-bottom: 8px; }
.ticket[draggable="true"] { cursor: grab; }
.ticket.dragging { opacity: .58; cursor: grabbing; }
.column.drop-target { outline: 2px solid var(--stage); outline-offset: -2px; }
.ticket-actions { margin-top: 9px; font-size: 14px; }
.ticket-actions summary { padding: 6px 8px; background: #ffe998; color: #492800; border-radius: 6px; cursor: pointer; font-weight: 700; }
.ticket-action-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ticket-action-buttons button { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: white; color: inherit; font-weight: 650; }
.ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.ticket-channel { display: grid; justify-items: end; gap: 5px; }
.ticket-id, .ticket p, .ticket-bottom { font-size: 14px; }
.ticket-id { padding: 4px 8px; border: 1px solid #e4cdac; border-radius: 6px; background: #fff3cd; color: #492800; font-weight: 750; }
.ticket-id:is(button):hover { background: #ffe998; }
.order-number-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.order-number-badge { padding: 4px 7px; border: 1px solid #e4cdac; border-radius: 6px; background: #faf3e5; color: #492800; font-size: 15px; font-weight: 700; }
button.order-number-badge { background: #ffe998; border-color: #e8bd61; }
button.order-number-badge:hover { background: #ffdc77; }
.ticket-name { margin-top: 10px; min-height: 26px; display: flex; align-items: center; font-weight: 700; overflow-wrap: anywhere; }
.ticket-detail { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.ticket-bottom { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 9px; }
.ticket-timeline { display: grid; grid-template-columns: .85fr 1.25fr .9fr 1fr; gap: 3px; margin: 0; color: var(--muted); text-align: center; }
.ticket-timeline.local-timeline { grid-template-columns: 1fr 1.25fr 1fr; }
.ticket-timeline dt { font-size: 10px; line-height: 1.2; }
.ticket-timeline dd { margin: 3px 0 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.ticket-total { display: block; margin-top: 7px; text-align: right; }
.empty { color: var(--muted); font-size: 13px; }
.empty { padding: 9px 2px; }
.pill { display: inline-block; border-radius: 20px; padding: 3px 8px; font-size: 12px; font-weight: 700; background: #edf1f7; color: #35455a; }
.delivery { background: #f2eaff; color: #633293; }
.mesa { background: #e5f3ff; color: #225c87; }
.balcao { background: #ffefd8; color: #79430d; }
.panel { margin-top: 22px; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
caption { text-align: left; padding: 17px 18px; font-weight: 700; }
th, td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; }
th { background: #f8f9fc; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 13px; margin-top: 22px; }
.module { padding: 17px; margin: 0; }
.module h2, .module h3 { margin: 8px 0 6px; }
.module p { color: var(--muted); line-height: 1.5; font-size: 14px; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.12fr 1fr; padding: 0; max-width: none; background: radial-gradient(ellipse at 90% 5%, #b41326, #6f0b16 75%); }
.login-brand { display: grid; place-items: center; background: #030303; padding: clamp(24px, 5vw, 64px); border-right: 4px solid var(--yellow); }
.login-slogan { position: relative; width: min(100%, 560px); aspect-ratio: 866 / 110; overflow: hidden; }
.login-slogan img { position: absolute; width: 147.81%; max-width: none; top: -116.36%; left: -46.19%; }
.login-form { width: min(100% - 36px, 430px); margin: 32px auto; align-self: center; padding: clamp(24px, 4vw, 42px); background: #fff9ef; border-radius: 20px; box-shadow: 0 18px 55px #28000460; }
.login-mascot { width: clamp(118px, 12vw, 150px); aspect-ratio: 1; margin: 0 auto; border: 2px solid var(--yellow); border-radius: 24px; }
.login-form form { margin-top: 23px; display: grid; gap: 13px; }
.login-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.login-form input:not([type="checkbox"]) { width: 100%; background: white; border: 1px solid #b6a49b; border-radius: 8px; padding: 11px; }
.login-form .remember-password { display: flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; }
.remember-password input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.credential-status { margin-bottom: 16px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 14px; }
.error { color: #a12926; font-size: 14px; }
.mobile-menu { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.finance-filters { width: fit-content; margin-top: 20px; }
.payables-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 22px; }
.payable-categories { margin: 0; padding: 12px; display: grid; gap: 6px; }
.payable-categories h2 { font-size: 14px; margin-bottom: 4px; }
.payable-categories button { text-align: left; color: var(--muted); background: #f4f6f9; border: 1px solid transparent; border-radius: 6px; padding: 7px 9px; font-size: 14px; }
.payable-categories button[aria-pressed="true"] { background: #fff0e7; color: #943511; border-color: #f6daca; font-weight: 700; }
.payable-filters { width: fit-content; }
.payable-table { margin-top: 12px; }
.payable-table th, .payable-table td { padding: 12px; }
.payable-table th:first-child, .payable-table td:first-child { white-space: normal; min-width: 145px; }
.supplier-field { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.supplier-field label { flex: 1 1 210px; }
.payable-split-control { display: flex; align-items: center; gap: 8px; }
.installment-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 8px; margin-top: 10px; }
.supplier-panel-head { padding: 15px 18px; }
.supplier-table { overflow: auto; }
.payable-open, .payable-filters button[data-payable-status="Em aberto"][aria-pressed="true"] { background: #fbe5e7; color: #922638; }
.payable-paid, .payable-filters button[data-payable-status="Pago"][aria-pressed="true"] { background: #e1f4e9; color: #216146; }
.payable-state { border: 1px solid transparent; }
.payable-state[aria-pressed="false"] { background: white; border-color: var(--line); color: var(--muted); }
.payable-state:hover { border-color: currentColor; }
.delete-payable-button { justify-self: start; color: #922638; border: 1px solid #e8b6bf; background: #fff5f6; border-radius: 8px; padding: 8px 11px; font-weight: 700; }
.delete-payable-confirm { padding: 10px; border: 1px solid #e8b6bf; border-radius: 8px; background: #fff5f6; }
.delete-payable-confirm p { margin-bottom: 8px; }
.edit-payable { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: white; color: #233b63; font-weight: 650; }
dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100% - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: inherit; }
dialog::backdrop { background: rgb(23 33 50 / 62%); }
.order-details { display: grid; gap: 12px; }
.order-movement { display: grid; gap: 12px; }
.order-movement .subtitle { margin: 0; }
dialog.finalized-orders-dialog { width: min(1100px, calc(100% - 28px)); }
.finalized-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.finalized-heading label { width: min(100%, 168px); margin-left: auto; }
.finalized-search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 8px; }
.finalized-status-heading th { background: #fff3cd; }
#finalized-paid .finalized-status-heading th { border-top: 3px solid #95b9a5; background: #e1f4e9; color: #216146; }
.finalized-orders-dialog .finalized-customer-name, .customer-name-cell { padding-block: 13px; white-space: normal; min-width: 135px; }
.finalized-channel-filters { width: fit-content; }
.finalized-orders-dialog .order-items :is(th, td) { text-align: left; }
.finalized-orders-dialog [data-finalized-comanda] { padding: 4px 8px; font-size: 13px; }
.order-notifications { list-style: none; margin: 0; padding: 0; }
.order-notifications li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.order-notifications time { margin-left: auto; color: var(--muted); font-size: 13px; }
dialog.order-details-dialog { width: min(630px, calc(100% - 28px)); }
.order-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.order-details dl div { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.order-details .comanda-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-details .comanda-summary div { padding: 4px 7px; }
@media (max-width: 540px) {
  .order-details .comanda-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.order-details dt { color: var(--muted); font-size: 13px; }
.order-details dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; }
.order-items { width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
.order-items th, .order-items td { padding: 7px 9px; font-size: 13px; }
.order-items tbody td:first-child, .order-items thead th { white-space: normal; }
.order-items :is(th, td):not(:first-child) { text-align: right; }
.order-details .order-items :is(th, td):nth-child(2) { text-align: left; white-space: normal; }
.order-line-quantity { width: 4.4em; padding: 4px; text-align: right; }
.remove-order-line { padding: 1px 6px; border: 1px solid #ebc1c6; border-radius: 5px; background: #fff4f5; color: #9b1528; font-size: 16px; line-height: 1.2; font-weight: 700; }
.report-toolbar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; padding: 12px; }
.report-toolbar label, .cash-fields label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.report-toolbar input, .cash-fields input, .cash-fields select { min-width: 0; width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: inherit; font: inherit; }
.cash-filter { padding: 14px; }
.cash-filter .report-toolbar { padding: 12px 0 0; }
.cash-fields, .cash-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr)); gap: 10px; }
.cash-card { padding: 13px; }
.cash-card h2 { font-size: 14px; margin-bottom: 5px; color: var(--muted); }
.cash-card strong { font-size: 20px; }
.home-reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-report { padding: 14px; }
.home-week { grid-column: 1 / -1; }
.home-report dl, .home-product-list { margin: 10px 0 0; padding: 0; }
.home-report dl div, .home-product-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.home-report dd { margin: 0; font-weight: 700; }
.home-week-scroll { overflow: auto; margin-top: 10px; }
.home-week-value { display: flex; align-items: center; gap: 10px; }
.home-week-bar { flex: 1 1 180px; height: 8px; max-width: 310px; background: #f4ede3; border-radius: 8px; overflow: hidden; }
.home-week-bar span { display: block; height: 100%; background: var(--red); border-radius: inherit; }
dialog.user-editor { width: min(660px, calc(100% - 28px)); border-radius: 10px; }
.user-fields, .access-module-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.access-module-fields .subtitle { grid-column: 1 / -1; font-size: 13px; }
.access-module-group { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf2; }
.access-module-group strong { display: block; margin-bottom: 3px; font-size: 13px; }
.access-module-fields .access-module-group label { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-weight: 500; cursor: pointer; }
.access-module-group input { flex: 0 0 15px; width: 15px; height: 15px; margin: 0; accent-color: var(--red); }
.order-adjustments { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.order-adjustments > label { flex: 1 1 150px; }
#order-discount-fields:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 0 0 100%; }
.order-adjustment-totals { display: grid; gap: 5px; font-size: 14px; }
.order-adjustment-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-adjustment-totals .order-adjusted-total { padding: 9px 11px; background: #ffedbc; border-radius: 7px; font-size: 16px; font-weight: 750; }
#payment-editor { width: min(405px, calc(100% - 28px)); }
.payment-total { padding: 10px 12px; background: #ffedbc; border-radius: 7px; display: flex; justify-content: space-between; gap: 10px; }
.receipt-question { display: grid; gap: 15px; }
dialog form { display: grid; gap: 13px; }
dialog label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
dialog label[hidden] { display: none; }
dialog input:not([type="radio"], [type="checkbox"]), dialog select { width: 100%; border: 1px solid #b8c4d3; background: white; border-radius: 8px; padding: 9px; font: inherit; color: inherit; }
dialog fieldset { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
dialog legend { font-size: 14px; font-weight: 700; }
dialog.order-editor { width: min(1080px, calc(100% - 28px)); }
.order-editor-head, .order-editor-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-editor-head h2 { font-family: var(--display-font); font-size: 1.9rem; font-weight: 500; }
.order-customer { display: flex; flex-wrap: wrap; gap: 12px; }
.order-customer label { flex: 1 1 210px; max-width: 420px; }
.order-customer label[data-order-field="mesa"] { max-width: 180px; }
.order-customer label.comanda-field { flex: 0 1 95px; }
.order-service-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.order-service-row > fieldset { flex: 1 1 300px; min-width: 0; margin: 0; }
.order-service-identifiers { align-items: end; padding: 8px 12px; border: 1px solid #ded8ce; border-radius: 8px; }
.order-service-identifiers label[data-order-field="mesa"] { flex: 0 1 130px; }
.order-service-identifiers[hidden] { display: none; }
.catalog-filters { width: fit-content; margin: 8px 0 12px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); gap: 10px; }
.product-tile { display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid #e3cbb0; border-radius: 10px; background: #fff9ed; text-align: center; min-width: 0; }
.product-photo { display: grid; place-items: center; height: 86px; background: white; border-radius: 6px; overflow: hidden; }
.product-photo > div { position: relative; height: 100%; max-width: 100%; overflow: hidden; }
.product-photo img { position: absolute; height: auto; max-width: none; }
.product-name { margin: 0; font-size: 14px; line-height: 1.22; }
.product-options { display: grid; gap: 4px; margin-top: auto; }
.product-options button { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 34px; border: 1px solid #e3cbb0; border-radius: 6px; padding: 4px; background: white; color: #733024; font-size: 13px; font-weight: 650; }
.product-options button:hover, .product-options .product-selected { background: #ffebaa; border-color: #c9993d; }
.product-count { min-width: 18px; padding: 1px 4px; border-radius: 5px; background: var(--red); color: white; font-size: 12px; }
.product-group { grid-column: 1 / -1; margin: 4px 0 0; padding: 7px 9px; border-radius: 6px; background: #f4ede3; font-size: 14px; }
.product-description { text-align: left; color: var(--muted); font-size: 13px; }
.product-description summary { cursor: pointer; }
.product-description p { margin-top: 5px; line-height: 1.35; }
.selected-products { display: flex; flex-wrap: wrap; gap: 6px; }
.selected-products:empty { display: none; }
.selected-products span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 5px 3px 9px; border-radius: 7px; background: #f4ede3; font-size: 14px; }
.selected-product-quantity { min-width: 24px; padding: 2px 5px; border-radius: 4px; background: #b3152c; color: white; text-align: center; }
.selected-products button { min-width: 24px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.order-editor-footer { border-top: 1px solid var(--line); padding-top: 10px; }
.order-total strong { margin-left: 5px; font-size: 1.2rem; }
.order-save-status { color: #216146; font-size: 14px; }
.order-options, .editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-options label { display: flex; align-items: center; padding: 7px 9px; background: #f4f6f9; border-radius: 7px; cursor: pointer; }
.order-options label:has(:checked) { color: #943511; background: #fff0e7; }
.order-options input { accent-color: var(--red); }
.editor-actions { justify-content: flex-end; }
.order-details-actions .return-order-button { margin-right: auto; }
#cancel-editor { background: white; color: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 10px 15px; }
@media (max-width: 1150px) {
  .board, .order-board-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  body:has(.users-report, .printable-report) :is(.sidebar, .topbar, .report-toolbar, .users-report button, .printable-report button, .printable-report .cash-filter) { display: none; }
  body:has(.users-report, .printable-report) .layout { display: block; }
  body:has(.users-report, .printable-report) main { padding: 0; }
}
@media (max-width: 760px) {
  .home-reports { grid-template-columns: minmax(0, 1fr); }
  .layout { display: block; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; }
  .sidebar-options { left: auto; right: 0; top: calc(100% + 4px); }
  .mobile-menu { display: inline-block; }
  .mobile-brand { display: block; width: clamp(88px, 26vw, 125px); }
  .desktop-restaurant-name { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-brand { border-right: 0; border-bottom: 4px solid var(--yellow); padding: 26px 20px; }
  .payables-layout { grid-template-columns: minmax(0, 1fr); }
  .payable-categories { display: flex; flex-wrap: wrap; align-items: center; }
  .payable-categories h2 { margin: 0 4px 0 0; }
}
@media (max-width: 440px) {
  .user-fields, .access-module-fields { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: 1fr; }
  .order-board-tools { grid-template-columns: 1fr; }
  .order-board-tools > :first-child { grid-column: auto; }
  .column { min-height: 130px; }
}
