body.abonos { --accent: #315e68; --tool-tint: #e6eff0; --border: #cddad9; }
body.menu-tool { --accent: #963e2b; --tool-tint: #f6e8df; --border: #e1d1c6; }
.abonos .topbar, .menu-tool .topbar { max-width: 1040px; }
.business-header { align-items: center; margin-bottom: 1.6rem; }
.business-header img { border-radius: 16px; flex: 0 0 auto; }
.business-header h1 { margin-bottom: .35rem; }
.business-header p { color: var(--muted); margin: 0; }
.balance-banner { background: var(--accent); color: white; padding: 1.35rem 1.6rem; border-radius: 20px; display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.balance-banner p { margin: 0; }
.abonos .backup-entry button.backup-entry-button { background: #e6eff0; color: #254e58; }
#statements:not([hidden]) { margin-top: .9rem; }
.balance-banner strong { font-size: clamp(1.9rem, 5vw, 2.65rem); line-height: 1.15; overflow-wrap: anywhere; }
.balance-banner button { margin-left: auto; background: white; color: var(--accent); }
.business-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1rem, 3vw, 1.55rem); margin: 0 0 1rem; min-width: 0; }
.business-panel > :last-child { margin-bottom: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; }
.filter-label { display: flex; align-items: center; gap: .45rem; }
.filter-label select { width: auto; margin: 0; }
.tool-notice { color: var(--accent); font-weight: 600; margin: .55rem 0; overflow-wrap: anywhere; }
.tool-notice:empty { min-height: .25rem; }
.business-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.business-row { border-top: 1px solid var(--border); padding: .65rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; overflow-wrap: anywhere; }
.business-row p { margin: .15rem 0 0; }
.row-amount { text-align: right; }
.row-amount small { display: block; }
.business-dialog { width: min(610px, calc(100% - 1.5rem)); max-height: 88dvh; background: var(--surface); border: 1px solid var(--border); color: var(--ink); border-radius: 20px; padding: clamp(1rem, 4vw, 1.55rem); }
.business-dialog::backdrop { background: #182b2bcc; }
.business-form { display: grid; gap: .85rem; }
.business-form > button { justify-self: start; }
.form-row { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.form-row > label { flex: 1 1 9.5rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.tool-actions > .button, .form-row > .button, .sale-detail > .button { display: inline-flex; align-items: center; justify-content: center; }
.sale-detail { background: var(--tool-tint); padding: 1rem; border-radius: 14px; overflow-wrap: anywhere; }
.sale-detail p { margin-bottom: .4rem; }
.detail-balance { font-weight: 700; font-size: 1.25rem; }
.due-form, .sale-payments { margin-top: .85rem; }
.payment-form { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .85rem; }
.payment-form h3, .sale-payments h3 { margin-bottom: .25rem; }
.payment-row-tool { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); }
@media (max-width: 520px) {
  .business-header { gap: .75rem; }
  .business-header img { width: 52px; height: 52px; }
  .balance-banner { padding: 1rem; }
  .balance-banner button { margin-left: 0; width: 100%; }
  .business-row { grid-template-columns: minmax(0, 1fr) auto; }
  .business-row > button { grid-column: 1 / -1; justify-self: start; }
}


.menu-editor { gap: 0; }
.menu-editor .business-panel h2 { margin-bottom: 0; }
.menu-editor .business-panel p { margin: 0; }
.menu-badge { background: var(--tool-tint); color: var(--accent); border-radius: 99px; padding: .25rem .7rem; font-size: .84rem; font-weight: 700; }
.dish-editor { display: grid; gap: .7rem; }
.dish-input { border: 1px solid var(--border); background: #fffcf9; border-radius: 12px; padding: .75rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, .4fr) auto auto; align-items: end; gap: .65rem; }
.check-label { min-height: 46px; display: flex; align-items: center; gap: .4rem; }
.check-label input { margin: 0; }
#schedule-controls { margin-top: .8rem; }
.menu-actions { margin: .5rem 0 1.2rem; }
.customer-menu { max-width: 720px; margin: auto; padding: clamp(.8rem, 3vw, 2rem); }
.customer-menu .business-panel { padding: 0; overflow: hidden; }
.menu-public-heading { padding: clamp(1rem, 4vw, 1.75rem); background: var(--tool-tint); color: var(--accent); overflow-wrap: anywhere; }
.menu-public-heading p { margin: 0 0 .35rem; }
.menu-public-heading h1, .menu-public-heading h3 { margin: .3rem 0 .55rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.75rem); line-height: 1; }
.menu-when { font-size: .9rem; font-weight: 700; }
.customer-dishes { padding: .55rem clamp(.85rem, 4vw, 1.55rem); gap: 0; }
.customer-dish { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .75rem 0; overflow-wrap: anywhere; }
.customer-dish + .customer-dish { border-top: 1px solid var(--border); }
.customer-dish p { margin: .15rem 0 0; }
.quantity-controls { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }
.quantity-controls output { min-width: 2ch; text-align: center; }
.quantity-controls button { width: 44px; min-height: 44px; padding: .15rem; }
.order-panel { padding: .85rem clamp(.85rem, 4vw, 1.55rem); background: #fffcf8; border-top: 1px solid var(--border); }
.order-panel .button { display: inline-flex; align-items: center; margin: 0 0 .6rem; }
.order-panel p { margin-bottom: .5rem; }
.order-total { font-weight: 700; margin-top: .35rem; }
.menu-credit { color: var(--muted); text-align: center; font-size: .85rem; }
@media (max-width: 635px) {
  .menu-editor .business-panel .form-row > label { flex-basis: 100%; }
  .dish-input { grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); }
  .dish-input button { justify-self: end; }
}
