/* RollEm POS: daylight palette for the touch checkout and laptop. Loaded last on /pos/ only. */
:root {
  color-scheme: light;
  color: #182433;
  background: #f3f6fa;
  --bg: #f3f6fa;
  --sidebar: #fff;
  --panel: #fff;
  --panel-2: #f6f8fb;
  --panel-3: #e9eef5;
  --line: #cbd5e1;
  --line-soft: #e2e8f0;
  --text: #182433;
  --muted: #536273;
  --red: #cf2032;
  --red-dark: #ad1728;
  --red-soft: #fff0f2;
  --green: #158052;
  --green-soft: #e8f6ee;
  --amber: #a35b00;
  --blue: #246db2;
}
html, body { background: var(--bg); color: var(--text); }
input, select, textarea { color-scheme: light; }
input::placeholder, textarea::placeholder { color: #718096; }
.pos-shell { background: #f3f6fa; }
.pos-sidebar { background: #fff; border-right-color: var(--line); }
.nav-button { color: #334155; }
.nav-button:hover { background: #eef3f8; color: #182433; }
.nav-button.active { background: #cf2032; color: #fff; box-shadow: 0 5px 14px #cf203229; }
.operator-card { border-top-color: var(--line-soft); }
.operator-avatar { background: #e3eaf2; color: #253447; }
.pos-topbar { background: #fff; border-bottom-color: var(--line); }
.status-pill { background: #f8fafc; color: #334155; }
.status-pill.success { border-color: #b4dbc5; background: #eaf7ef; color: #16633f; }
.status-pill.configured { border-color: #eed3a5; background: #fff7e8; color: #825010; }
.primary-button { background: #cf2032; color: #fff; box-shadow: 0 5px 15px #cf203226; }
.primary-button:hover { background: #ad1728; }
.secondary-button, .icon-button { background: #fff; color: #243447; }
.secondary-button:hover, .icon-button:hover { background: #edf2f7; }
.danger-button { background: #fff2f3; border-color: #e8b4bb; color: #a71e2c; }
.filter-chip, .category-button { background: #fff; color: #334155; }
.filter-chip.active { background: #fff0f2; border-color: #d45361; color: #9c1727; }
.filter-chip.active .filter-count { color: #9c1727; }
.category-button.active { background: #243447; border-color: #243447; color: #fff; }
.catalog-search, .stop-list-search input { background: #fff; border-color: var(--line); color: #334155; }
.catalog-search input, .stop-list-search input { color: var(--text); }
.catalog-search input::placeholder { color: #64748b; }
.catalog-search:focus-within { border-color: #cf2032; box-shadow: 0 0 0 3px #cf20321c; }

/* Orders, catalog, stop-list. Photos retain their original colours. */
.order-card, .product-card, .metric-card, .equipment-card, .settings-panel,
.stop-list-item, .payment-panel, .pos-login-form {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 3px 12px #1c35500b;
}
.order-card:hover, .product-card:hover { border-color: #8394a8; }
.order-lines, .order-meta, .queue-address, .payment-order-line { color: #405065; }
.order-total, .payment-order-line span:last-child { color: #152131; }
.order-detail-status strong { color: #915100; }
.order-status.new { background: #fff0d9; color: #824800; }
.order-status.preparing { background: #e5f0ff; color: #16599c; }
.order-status.ready, .order-status.completed { background: #e2f5e9; color: #126843; }
.order-status.delivery { background: #f0e8fa; color: #70459b; }
.order-status.cancelled { background: #ffeaed; color: #a12335; }
.order-scheduled, .order-facts .scheduled-fact { background: #fff0f2; border-color: #df9aa4; color: #8a1b2b; }
.order-scheduled.due-soon { background: #fff4dd; border-color: #e3b861; }
.order-scheduled.due-soon small, .queue-payment-state { color: #835000; }
.order-facts .scheduled-fact span { color: #9a3443; }
.order-facts .scheduled-fact strong { color: #58202a; }
.product-visual, .product-card:nth-child(3n+2) .product-visual,
.product-card:nth-child(3n+3) .product-visual {
  background: #edf1f6;
}
.product-card.stopped { border-color: var(--line); }
.product-stop-badge { background: #e7ebf0; color: #4b596a; }
.stop-list-item.stopped { background: #fff5f6; border-color: #e8bbc1; }
.stop-list-state { background: #e5f5eb; color: #15633f; }
.stop-list-state.stopped { background: #ffe9ed; color: #a02031; }
.closed-summary, .order-history, .order-facts div { background: #fff; border-color: var(--line); }
.closed-filters label, .queue-tools label, .cash-entry>label { color: #334155; }
.closed-filters input, .queue-tools input, .queue-tools select,
.cash-entry input, .pos-location-select { background: #fff; color: var(--text); border-color: var(--line); }
.order-history summary { color: #25415e; }

/* Order draft: the selected address stays compact and cart lines own the scroll space. */
.cart-panel { background: #fff; border-color: var(--line); box-shadow: 0 3px 12px #1c35500d; }
.cart-header { border-bottom-color: var(--line-soft); }
.order-type-toggle { background: #e9eef4; }
.order-type-toggle button { color: #48596b; }
.order-type-toggle button.active { background: #fff; color: #172536; box-shadow: 0 1px 5px #1c355020; }
.customer-card { background: #fff; border-color: #aebdcb; color: #1d2b3d; }
.customer-card:hover { background: #f4f8fb; border-color: #758da4; }
.customer-card.selected, .cart-panel:not(:has(.cart-edit-body)) .address-picker-compact.has-selected {
  background: #eaf7ef;
  border-color: #7fc49c;
}
.customer-avatar { background: #e2e9f1; color: #263e55; }
.customer-card.selected .customer-avatar { background: #c7e9d4; color: #155d3c; }
.customer-chevron { color: #465b70; }
.address-picker { background: #f8fafc; border-color: var(--line); }
.address-picker-list>button { background: #fff; border-color: var(--line); }
.address-picker-list>button.active, .cart-edit-body .address-picker-list button.active { background: #e9f7ef; border-color: #75bd94; }
.address-picker-list b, .cart-edit-body .address-picker-list button.active b,
.address-picker-compact summary b { color: #176943; }
.address-picker-list span, .address-picker-compact summary small { color: #405065; }
.address-picker-compact .address-picker-expand, .cart-edit-body .address-picker>div:first-child button { color: #245d8f; }
.address-picker-compact details[open] .address-picker-expand { color: #1b4265; }
.cart-panel:not(:has(.cart-edit-body)) .address-picker-compact .address-picker-list {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 25px #273b5433;
}
.cart-list-region { background: #fff; }
.empty-cart strong { color: #334155; }
.quantity-control button { background: #eef3f8; border-color: var(--line); color: #182433; }
.quantity-control button[data-action="remove-cart-item"] { color: #9c2432; }
.quantity-control>span:first-child { color: #46586b; }
.cart-summary { background: #f8fafc; border-top-color: var(--line); }
.summary-row { color: #526273; }
.summary-row.total { color: #172536; }
.delivery-fee-row strong { color: #156943; }
.delivery-progress, .delivery-progress.free { background: #e8f5ec; color: #155d3b; }
.cart-warning { color: #a52635; }
.pos-gift-choices { background: #fff8e8; border-top-color: #efd89e; }
.pos-gift-choices>small { color: #695936; }
.pos-gift-option { background: #fff; }
.pos-gift-option.selected { background: #fff1ca; border-color: #d39d27; }
.pos-gift-option b { color: #895700; }

/* Checkout, shifts, equipment and other operational panels. */
.payment-method, .keypad button, .equipment-actions button,
.settings-options label { background: #fff; color: #213247; border-color: var(--line); }
.payment-method.active { background: #fff0f2; border-color: #cc5663; }
.keypad button:hover, .equipment-actions button:hover { background: #edf2f7; }
.payment-breakdown, .split-field, .terminal-instruction { background: #f8fafc; border-color: var(--line); }
.split-field label { color: #44556a; }
.split-field input, .form-grid input, .form-grid textarea,
.delivery-address-entry textarea { background: #fff; color: var(--text); border-color: var(--line); }
.split-status, .paid-notice { background: #e7f5ec; border-color: #9ccfb0; color: #176643; }
.split-status.invalid { background: #fff0f2; border-color: #dfafb7; color: #a22131; }
.loyalty-panel, .bonus-entry label>div, .customer-points-editor,
.customer-editor-balance { background: #fff9e9; border-color: #e6d399; }
.loyalty-panel small, .bonus-entry label, .bonus-entry label span,
.customer-points-heading small, .customer-editor-balance small { color: #6c592e; }
.loyalty-actions button, .bonus-entry>button { background: #fff4d3; border-color: #dac27e; color: #644814; }
.loyalty-actions .active { background: #eccc71; color: #392c10; }
.bonus-entry input { color: #283341; }
.customer-editor-balance strong, .customer-points-heading>b { color: #73500e; }
.success-card { background: #f5fbf7; border-color: #9ccfb0; box-shadow: 0 14px 40px #2b65421c; }
.success-check { background: #158052; color: #fff; }
.hardware-result div { background: #fff; border-color: #a9d6ba; }
.hardware-result small { color: #426e53; }
.journal, .form-panel, .map-panel { background: #fff; border-color: var(--line); }
.journal-row.header { background: #e9eff5; color: #43566a; }
.equipment-icon { background: #e9eff5; }
.map-panel { background-color: #e8edf2; background-image: linear-gradient(#d6e0e9 1px,transparent 1px),linear-gradient(90deg,#d6e0e9 1px,transparent 1px); }
.map-panel:before,.map-panel:after { background: #bbcbd8; }
.map-caption { background: #ffffffef; color: #405065; }
.map-caption strong { color: #172536; }
.settings-options label { background: #f8fafc; }
.order-edit-fields, .order-snapshot-address, .order-edit-conflict { background: #fff; }
.order-edit-grid label { color: #334155; }
.order-edit-grid input,.order-edit-grid select,.order-edit-grid textarea,
.modifier-quantities input,.pos-weight-field input { background: #fff; color: var(--text); border-color: var(--line); }
.order-snapshot-address { background: #eaf7ef; border-color: #8ac7a3; }
.order-snapshot-address strong { color: #176943; }
.order-edit-conflict { background: #fff5e8; border-color: #d6a466; color: #70400c; }
.order-fact-edit { color: #1e5e95; }
.delivery-map-picker, .address-row-map-panel { background: #f3f8fc; border-color: #b6cee1; }
.delivery-map-heading span { color: #235f95; }
.pos-delivery-map, .customer-address-map { background: #e6edf3; }
.leaflet-tooltip { background: #fff; color: #1b2b3c; border-color: #b9c7d4; }
.delivery-address-entry { color: #334155; }
.delivery-fee-row strong { color: #176943; }

/* Dialogs: modifiers, client, cancellation and calendar. */
.pos-dialog { background: #fff; color: var(--text); border-color: #bcc9d7; box-shadow: 0 24px 70px #1d314b55; }
.pos-dialog::backdrop { background: #2433478c; }
.dialog-product, .customer-list { background: #f4f7fa; }
.dialog-visual { background: #e9eef4; }
.option-button, .pos-half-option, .pizza-size-option, .pos-choice-tile,
.customer-list-item, .customer-metric, .customer-address,
.customer-addresses, .customer-extra-fields, .address-form-disclosure,
.customer-profile-info, .address-form-row { background: #fff; color: #223247; border-color: var(--line); }
.option-button.selected, .pos-half-option.selected, .pizza-size-option.selected,
.pos-choice-tile:has(input:checked), .customer-list-item.active,
.customer-list-item:hover { background: #fff0f2; color: #8c1828; border-color: #d55866; }
.pos-half-placeholder { background: #e7edf3; }
.pos-weight-field { color: #334155; }
.customer-list-item b { color: #825b0f; }
.customer-search, .customer-form input, .customer-editor .customer-form input,
.customer-editor .customer-form select, .customer-points-fields input,
.customer-points-fields select, .pos-login-form input,
.cancel-note textarea { background: #fff; color: var(--text); border-color: var(--line); }
.customer-form label, .customer-editor .customer-form label,
.customer-points-fields label, .cancel-note { color: #334155; }
.customer-addresses b, .customer-address-disclosure>summary b { color: #176943; }
.customer-addresses p, .customer-address-disclosure>summary small,
.customer-address-extra, .customer-address-extra p { color: #405065; }
.address-form-row button { background: #fff0f2; border-color: #e2b4bb; color: #9c2432; }
.address-form-row .address-map-button { background: #eaf3fb; border-color: #aac7df; color: #1e5d90; }
.address-form-summary { color: #243447; }
.customer-editor-footer { background: #fff; border-top-color: var(--line); }
.customer-editor-eyebrow, .dialog-cancel-header>span { color: #a01e2f; }
.customer-address-disclosure>summary i, .customer-extra-fields summary i,
.address-form-disclosure>summary i, .customer-profile-info summary i { color: #286798; }
.cancel-stock-options label, .cancel-reason-options label { background: #fff; }
.cancel-stock-options label:has(input:checked),
.cancel-reason-options label:has(input:checked) { background: #fff0f2; border-color: #d55866; }
.cancel-stock-options legend, .cancel-reason-options legend { color: #334155; }
.login-error, .employee-error { background: #fff0f2; border-color: #e4b4bb; color: #9c2432; }
.pos-loading span { border-color: #cad5e1; border-top-color: var(--red); }
.pos-login-form label { color: #405065; }
.pos-login-form>span { color: #a82231; }
.pos-pin-keypad button, .operator-lock { background: #f3f5f8; color: #1d2938; border-color: #d6dce5; }
.pos-pin-keypad button:hover, .pos-pin-keypad button:active { background: #e5eaf1; }
.pos-toast { background: #233447; color: #fff; }
dialog.touch-date-dialog.dark-date-dialog { background: #fff!important; color: #222832!important; border-color: #d8dce3!important; }
.dark-date-dialog .touch-date-heading, .dark-date-dialog .touch-date-footer { background: #fafbfc; border-color: #e2e8f0; }
.dark-date-dialog .touch-date-eyebrow, .dark-date-dialog .touch-date-weekdays { color: #5a6675; }
.dark-date-dialog .touch-date-month-nav>button, .dark-date-dialog .touch-date-month-picker select,
.dark-date-dialog .touch-date-close, .dark-date-dialog .touch-date-days button { background: #f4f7fa; color: #243447; border-color: #d5dfe9; }
.dark-date-dialog .touch-date-days button.outside { background: transparent; color: #8795a5; }
.dark-date-dialog .touch-date-days button.today { color: #a82030; }
.dark-date-dialog .touch-date-days button.selected, .dark-date-dialog .touch-date-apply { background: #cf2032; color: #fff; }
.dark-date-dialog .touch-date-today { background: #fff0f2; color: #a82030; }
.dark-date-dialog .touch-date-clear, .dark-date-dialog .touch-date-cancel { background: #edf2f7; color: #334155; }

/* Staff screen has its own stylesheet, so cover its dark surfaces here too. */
.employee-clock-panel, .employee-card { background: #fff; border-color: var(--line); }
.employee-card.on-shift { border-color: #8ac7a3; }
.employee-clock-form input { background: #fff; color: var(--text); border-color: var(--line); }
.employee-avatar { background: #e6edf4; color: #243447; }
.employee-status { background: #edf2f7; color: #405065; }
.employee-status.active { background: #e5f5eb; color: #15633f; border-color: #8ac7a3; }
.employee-metrics>div { background: #f7f9fc; border-color: var(--line-soft); }
.employee-note { background: #eef3f8; color: #405065; }
.employee-note.warning { background: #fff4df; color: #805014; }
.employee-footnote { color: #536273; }

/* Preserve the plain black-on-white courier receipt regardless of POS theme. */
body.receipt-print-mode, .courier-receipt-print { background: #fff!important; color: #000!important; }
