﻿:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#2b2d35;background:#f9f9fa;font-synthesis:none;--red:#ed1728;--line:#e8e9ec;--muted:#7c7f8a}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d02051;outline-offset:3px}svg{width:20px;height:20px;display:block;flex-shrink:0}.layout{height:100dvh;display:flex;overflow:hidden}.sidebar{width:234px;flex-shrink:0;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand-panel{height:116px;background:var(--red);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.brand-crop{width:150px;position:relative}.brand-crop img{display:block;width:100%;height:auto}.brand-panel>span{font-size:11px;letter-spacing:1.6px;color:#ffd9dd}.store{display:flex;align-items:center;gap:10px;padding:26px 20px 14px}.store-avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:9px;background:#faf6f2;color:#a17147;font-size:12px;font-weight:650}.store strong{font-size:14px;display:block}.store div>span{display:block;font-size:12px;color:#8b8e9c;margin-top:5px}.nav-caption{padding:0 23px 12px;font-size:11px;letter-spacing:1.4px;color:#a1a4b1}nav{padding:0 12px}.nav-item{display:flex;width:100%;align-items:center;gap:11px;text-align:left;padding:9px 12px;min-height:40px;border:0;border-radius:7px;background:transparent;color:#818595;font-size:13px;text-decoration:none;margin-bottom:2px}.nav-item svg{width:18px;height:18px}.nav-item.active{background:#ffeef0;color:#e11d48;font-weight:650}.nav-item:hover{background:#fcf6f8}.external{margin-left:auto;color:#a9acb9}.sidebar-bottom{margin-top:auto;padding:8px 21px 0;flex-shrink:0}.help-mark{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#fbf5f8;color:#9b9fad;font-size:12px}.sidebar-bottom>p{font-size:12px;color:#9ca0ae;line-height:1.8;margin:11px 0 26px}.sidebar-bottom>p strong{font-weight:500;color:#838799}.operator{display:flex;align-items:center;gap:9px;padding:20px 0;border-top:1px solid var(--line)}.operator>span{display:grid;place-items:center;width:31px;height:31px;background:#ebebee;color:#9599a8;border-radius:50%;font-size:12px}.operator strong{display:block;font-size:12px;color:#7c8193;font-weight:500}.operator small{display:block;font-size:11px;color:#a3a6b3;margin-top:5px}main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.topbar{background:#fff;min-height:97px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 27px;border-bottom:1px solid var(--line);flex-shrink:0}.heading{display:flex;align-items:center;gap:12px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#9da1af;font-weight:600}h1{font-size:23px;letter-spacing:-.7px;margin:7px 0 0;font-weight:650}.header-actions{display:flex;align-items:center;gap:12px}.search{height:42px;width:238px;display:flex;gap:9px;align-items:center;border:1px solid #e8e9ec;background:#fbfbfb;border-radius:7px;padding:0 12px}.search svg{width:16px;color:#9fa3b1}.search input{min-width:0;width:100%;border:0;background:transparent;color:#565a6a;font-size:12px;height:100%}.search input::placeholder{color:#9ea1af}.primary{background:var(--red);border:1px solid var(--red);border-radius:7px;color:#fff;font-size:13px;font-weight:600;padding:11px 15px;min-height:44px;white-space:nowrap}.primary:hover:not(:disabled){background:#d40016}.primary:disabled{background:#f3e6ec;border-color:#d9dae0;color:#a3a6b4}.primary>span{font-size:17px;margin-right:5px}.secondary{background:#fff;border:1px solid #dfe0e5;border-radius:7px;color:#767b8f;min-height:44px;padding:10px 13px;font-size:13px}.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #e2e3e8;border-radius:7px;color:#818598;background:#fff}.menu-toggle{display:none}.overview{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:27px 28px 25px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--line)}.day-label{font-size:11px;letter-spacing:1.5px;color:#a5a8b5}.overview h2{font-size:16px;font-weight:550;letter-spacing:-.2px;margin:8px 0}.overview p{font-size:12px;color:#979baa;margin:0}.summary-metrics{display:flex;align-items:center;gap:25px}.summary-metrics>div{border-left:1px solid #e7e8ec;padding-left:22px}.summary-metrics>div>span{font-size:12px;color:#999cab;display:block;white-space:nowrap}.summary-metrics small{font-size:11px;color:#b4b6c1}.summary-metrics strong{display:block;font-size:23px;font-weight:550;color:#5b5f70;letter-spacing:-.7px;margin-top:8px}.summary-metrics>div:last-child strong{color:#db2a5e;font-size:21px}.board-toolbar{display:flex;align-items:center;justify-content:space-between;padding:23px 27px 20px;flex-shrink:0}.board-toolbar h2{font-size:15px;font-weight:600;display:inline-flex;gap:8px;align-items:center;margin:0}.board-toolbar h2 span{font-size:12px;color:#a0a3b1;background:#e8e9ec;padding:3px 6px;border-radius:5px}.board-toolbar>div>span{display:block;font-size:12px;color:#9fa2b0;margin-top:6px}.board-date{font-size:12px;color:#989baa}.board-date>span{margin:0 6px}.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;flex:1;min-height:0;padding:0 24px 15px;overflow-x:auto}.column{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f5f4f6;border:1px solid #e3e4e9;border-radius:8px}.column-header{padding:15px 12px 13px;border-bottom:1px solid #e2e3e7;flex-shrink:0}.column-label{display:flex;align-items:center;gap:6px}.stage-dot{width:7px;height:7px;border-radius:50%;background:var(--stage);flex-shrink:0}.column-label h3{font-size:13px;margin:0;font-weight:650;color:#636778;white-space:nowrap}.column-count{flex-shrink:0;min-width:20px;box-sizing:border-box;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;background:#e1e2e7;border-radius:5px;font-size:12px;padding:3px 5px;color:#8d91a1}.column-total{margin-left:auto;padding-left:8px;font-size:12px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;color:#9da1af}.column-body{overflow-y:auto;padding:10px 8px;min-height:0;display:flex;flex-direction:column;gap:10px}.order-card{display:block;text-align:left;width:100%;background:#fff;border:1px solid #e2e3e7;border-top:2px solid var(--stage);border-radius:7px;padding:12px 10px;color:#525664;box-shadow:0 2px 3px #42455003;flex-shrink:0}.order-card:hover{border-color:#d790b5;box-shadow:0 3px 10px #4a4d5a0a}.card-top{display:flex;justify-content:space-between;gap:7px;align-items:center}.order-code{font-size:12px;font-weight:650}.card-top time{font-size:12px;color:#a0a3b1}.order-card h4{font-size:14px;line-height:1.45;margin:13px 0 6px;font-weight:600}.card-items{font-size:12px;color:#999dac;line-height:1.6;margin:0 0 13px;min-height:32px}.card-modality{display:inline-flex;gap:4px;align-items:center;font-size:11px;color:#858a9c;background:#f3f3f5;border-radius:4px;padding:4px 5px}.card-modality svg{width:11px;height:11px}.card-footer{border-top:1px dashed #e5e6ea;margin-top:13px;padding-top:11px;display:flex;align-items:center;justify-content:space-between;gap:6px}.card-footer strong{font-size:14px;font-weight:650;color:#676c7e}.card-footer span{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#c35a8e}.card-footer svg{width:12px;height:12px}.column-empty{font-size:12px;color:#a4a8b5;text-align:center;padding:25px 7px;line-height:1.7}.demo-footer{display:flex;justify-content:center;align-items:center;gap:6px;padding:10px 18px;background:#fff;border-top:1px solid var(--line);font-size:11px;color:#9da0ae;line-height:1.6;flex-shrink:0}.demo-footer svg{width:12px;height:12px}.demo-footer strong{font-weight:600;color:#838799}.board-state{grid-column:1/-1;margin:auto;text-align:center;padding:30px;color:#7f8497;font-size:14px;line-height:1.8}.board-state strong{display:block;font-size:18px;margin-bottom:8px;color:#5e6272}.board-state button{margin-top:15px}.sidebar-backdrop[hidden]{display:none}.toast{position:fixed;bottom:48px;right:25px;max-width:380px;z-index:20;background:#fff7fa;border:1px solid #e999be;border-radius:8px;padding:14px 18px;color:#ad4174;font-size:13px;box-shadow:0 7px 25px #4c4f5c12}.toast.error{color:#c0213c;background:#fff4f4;border-color:#eb9c9c}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-dialog{position:fixed;inset:0 0 0 auto;height:100dvh;max-height:100dvh;width:440px;max-width:100vw;margin:0;padding:0;border:0;border-left:1px solid #dfe0e4;background:#fff;color:#505361;overflow:hidden}.app-dialog[open]{display:flex;flex-direction:column}.app-dialog::backdrop{background:#25272e55}.dialog-header{padding:23px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);flex-shrink:0}.dialog-eyebrow{font-size:11px;letter-spacing:1.2px;color:#969aa9}.dialog-header h2{font-size:22px;margin:8px 0 0;font-weight:600;letter-spacing:-.5px}.dialog-body{padding:23px;overflow-y:auto;flex:1;min-height:0}.dialog-footer{padding:13px 23px;border-top:1px solid var(--line);font-size:12px;color:#9498a8;flex-shrink:0}.detail-customer{display:flex;align-items:center;gap:12px;padding:18px;background:#fff7f9;margin-bottom:24px;border-radius:8px}.customer-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f9e8ef;color:#b8457c;font-size:14px;font-weight:600}.detail-customer strong{display:block;font-size:15px}.detail-customer span{display:block;font-size:13px;color:#8d91a1;margin-top:6px}.detail-stage{display:flex;align-items:center;gap:7px;font-size:13px;padding:10px 0;color:#858a9c}.dialog-body h3{font-size:14px;margin:24px 0 12px}.line-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;font-size:14px;border-bottom:1px solid #ebecef;line-height:1.6}.line-item strong{white-space:nowrap;font-weight:550}.detail-total{display:flex;align-items:center;justify-content:space-between;padding:19px 0;border-bottom:1px solid var(--line);font-size:14px}.detail-total strong{font-size:23px;color:#cf2d68;letter-spacing:-.5px;font-weight:600}.detail-notes{background:#fcf8fa;border:1px solid #f5ebf1;border-radius:7px;padding:13px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#868a9c}.history{list-style:none;padding:0;margin:0}.history li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:13px;color:#7a7f93}.history time{font-size:12px;color:#9ca0ae}.advance-order{width:100%;margin-top:23px}.field-label{display:block;font-size:13px;font-weight:550;margin:19px 0 9px}.form-input,.form-select,.form-notes{width:100%;border:1px solid #dddee3;background:#fffefe;border-radius:7px;min-height:44px;padding:11px;color:#63687a;font-size:14px}.form-notes{resize:vertical;min-height:85px;max-height:160px;line-height:1.7}.catalog{border:1px solid #e1e2e6;border-radius:8px;overflow:hidden}.product{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 12px;border-bottom:1px solid #e8e9ed}.product:last-child{border:0}.product strong{display:block;font-size:13px}.product span{font-size:13px;color:#9296a5;display:block;margin-top:5px}.quantity{width:66px;height:44px;border:1px solid #d9dae0;border-radius:6px;padding:8px;color:#74798d;background:#fffbfd;font-size:14px}.form-error{color:#c6233e;font-size:13px;line-height:1.7}.form-note{font-size:12px;color:#9397a7;line-height:1.7}.create-order{width:100%;margin-top:8px}.crm-customer{border:1px solid #f4e8ef;border-radius:8px;padding:15px;margin-bottom:13px}.crm-customer h3{font-size:14px;margin:0 0 7px}.crm-customer p{font-size:12px;color:#8d91a2;line-height:1.7;margin:0}.crm-orders{margin-top:12px;border-top:1px solid #e8e9ec;padding-top:9px;font-size:12px;color:#8b8fa0;line-height:1.8}@media(max-width:1250px){.sidebar{width:212px}.topbar{padding:21px}.overview{padding:25px 21px}.overview-intro{display:none}.summary-metrics{width:100%;justify-content:space-between}.summary-metrics>div:first-child{border:0;padding-left:0}.board{grid-template-columns:repeat(5,190px);padding:0 20px 14px;gap:11px}.header-actions{gap:9px}.search{width:220px}h1{font-size:21px}.board-toolbar{padding:22px 21px}.column-label h3{font-size:14px}.card-items{font-size:12px}.card-footer span{font-size:12px}}@media(max-width:767px){.sidebar{position:fixed;inset:0 auto 0 0;width:235px;z-index:30;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;z-index:29;background:#24262d66;border:0}.menu-toggle{display:grid}.topbar{padding:16px;flex-wrap:wrap;gap:17px;min-height:0}.heading{width:100%}.eyebrow{font-size:11px}h1{font-size:21px;margin-top:5px}.header-actions{width:100%;gap:9px}.search{flex:1;width:0;min-width:0}.primary{padding:10px 12px;font-size:12px}.overview{padding:20px 16px}.summary-metrics{gap:12px}.summary-metrics>div{padding-left:12px}.summary-metrics>div>span{font-size:11px}.summary-metrics strong{font-size:22px}.summary-metrics>div:last-child strong{font-size:19px}.summary-metrics small{display:none}.board-toolbar{padding:19px 17px}.board-toolbar h2{font-size:14px}.board-toolbar>div>span{font-size:11px}.board-date{display:none}.board{grid-template-columns:repeat(5,254px);padding:0 15px 13px;gap:12px}.column-header{padding:16px 13px}.column-label h3{font-size:14px}.column-total{font-size:12px}.order-card{padding:15px 13px}.order-card h4{font-size:15px}.card-top .order-code{font-size:13px}.card-items{font-size:13px;min-height:0;margin-bottom:13px}.card-modality{font-size:12px}.card-footer strong{font-size:15px}.card-footer span{font-size:12px}.demo-footer{font-size:11px;padding:9px 12px;align-items:flex-start;justify-content:flex-start}.demo-footer svg{margin-top:1px}.app-dialog{width:100vw}.dialog-header{padding:19px}.dialog-body{padding:20px}.toast{left:15px;right:15px;bottom:55px;max-width:none}}@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
/* Operational labels remain readable at the five-column desktop width. */
.nav-item{font-size:14px}.search input{font-size:14px}.column-label h3{font-size:14px}.column-count,.column-total{font-size:12px}.order-card h4{font-size:14px}.card-items{font-size:13px}.order-code,.card-top time{font-size:12px}.card-modality{font-size:12px}.card-footer span{font-size:12px}.card-footer strong{font-size:14px}.summary-metrics>div>span{font-size:12px}.overview p{font-size:13px}.board-toolbar>div>span{font-size:12px}.store div>span{font-size:12px}.demo-footer{font-size:12px}.dialog-body h3,.field-label{font-size:14px}.product strong{font-size:14px}.form-note{font-size:13px}.history li{font-size:14px}.crm-customer p,.crm-orders{font-size:13px}@media(max-width:767px){.column-label h3{font-size:14px}.order-card h4{font-size:15px}.summary-metrics>div>span{font-size:11px}.demo-footer{font-size:11px}}
/* Distinct stage headers and stronger operational contrast. */
.column[data-stage="analysis"] .column-header{background:#fff1f3}.column[data-stage="analysis"] .column-label h3,.column[data-stage="analysis"] .column-total{color:#be123c}.column[data-stage="analysis"] .column-count{background:#e11d48;color:#fff}.column[data-stage="preparing"] .column-header{background:#fff4ea}.column[data-stage="preparing"] .column-label h3,.column[data-stage="preparing"] .column-total{color:#c2410c}.column[data-stage="preparing"] .column-count{background:#ea6c0a;color:#fff}.column[data-stage="ready"] .column-header{background:#eef4ff}.column[data-stage="ready"] .column-label h3,.column[data-stage="ready"] .column-total{color:#1d4ed8}.column[data-stage="ready"] .column-count{background:#2563eb;color:#fff}.column[data-stage="delivering"] .column-header{background:#ecfaf1}.column[data-stage="delivering"] .column-label h3,.column[data-stage="delivering"] .column-total{color:#15803d}.column[data-stage="delivering"] .column-count{background:#16a34a;color:#fff}.column[data-stage="completed"] .column-header{background:#f1f4f8}.column[data-stage="completed"] .column-label h3,.column[data-stage="completed"] .column-total{color:#475569}.column[data-stage="completed"] .column-count{background:#64748b;color:#fff}.card-items,.card-top time{color:#777c8e}.card-modality{color:#6c7185}.card-footer span{color:#7a7f92}.overview p,.board-toolbar>div>span,.board-date{color:#7e8295}.summary-metrics>div>span{color:#808597}.demo-footer{color:#7e8295}
/* Compact operation header and independently collapsible statistics/menu. */
.topbar{min-height:76px;padding:14px 25px}.menu-toggle{display:grid;flex-shrink:0}.heading{gap:13px}.eyebrow{font-size:11px}h1{font-size:22px;margin-top:5px}.overview{position:relative;min-height:76px;padding:13px 76px 13px 26px;gap:22px}.overview-intro{display:none}.overview-caption{font-size:13px;font-weight:600;color:#7f8497;flex-shrink:0}.summary-metrics{width:auto;flex:1;justify-content:flex-end;gap:28px}.summary-metrics>div{padding-left:24px}.summary-metrics>div:first-child{border-left:1px solid #e7e8ec;padding-left:24px}.summary-metrics>div>span{font-size:12px}.summary-metrics strong{font-size:21px;margin-top:5px}.summary-metrics>div:last-child strong{font-size:21px}.overview-toggle{position:absolute;right:24px;top:16px;width:44px;height:44px;background:#fff;border-color:#e6e7ea;color:#818698}.overview-toggle svg{width:19px;height:19px}.overview-content[hidden],#overview-content[hidden]{display:none}.overview.collapsed{min-height:46px;height:46px;padding-top:0;padding-bottom:0}.overview.collapsed .overview-toggle{top:1px;border-color:transparent}.overview.collapsed .overview-toggle svg{transform:rotate(180deg)}.board-toolbar{padding:16px 26px 14px;min-height:65px}.board-toolbar>div>span{margin-top:4px}.layout.menu-collapsed .sidebar{width:76px}.layout.menu-collapsed main{width:100%}.menu-toggle[aria-expanded="false"]{background:#fff7f9;color:#d72c68}@media(max-width:1250px){.summary-metrics{gap:22px}.overview{padding-left:22px}.summary-metrics>div{padding-left:20px}.summary-metrics>div:first-child{padding-left:20px}}@media(max-width:767px){.topbar{padding:13px 15px;gap:14px;min-height:0}.heading{gap:11px}.overview{padding:12px 61px 12px 15px;min-height:78px;gap:0}.overview-caption{display:none}.summary-metrics{width:100%;justify-content:space-between;gap:10px}.summary-metrics>div,.summary-metrics>div:first-child{padding-left:10px}.summary-metrics>div:first-child{border:0;padding-left:0}.summary-metrics>div>span{font-size:11px}.summary-metrics strong,.summary-metrics>div:last-child strong{font-size:19px;margin-top:6px}.overview-toggle{right:10px;top:17px}.overview.collapsed{min-height:46px;height:46px}.overview.collapsed .overview-caption{display:block;font-size:13px}.overview.collapsed .overview-toggle{top:1px}.board-toolbar{padding:15px 16px 13px;min-height:62px}.sidebar{display:flex}.menu-toggle{width:42px;height:42px}}
/* Review 03: concise cards, explicit decisions and payment details. */
.order-card h4{margin:12px 0 11px;font-size:15px}.card-payment{display:block;margin:11px 0 0;font-size:12px;font-weight:600;line-height:1.5;color:#777c90}.card-payment.paid{color:#48976c}.card-payment.pending{color:#a87a37}.card-top .elapsed{font-size:12px}.order-card.attention{border-top-color:#e47412;background:#fffefa}.order-card.attention .elapsed{color:#be6a14;font-weight:700;background:#fff5e4;padding:4px 5px;border-radius:4px}.rejected-badge{display:inline-block;font-size:12px;color:#bc4465;background:#fbeef1;border-radius:4px;padding:4px 6px;margin-left:5px}.rejected-card{opacity:.85}.reject-order{width:100%;margin-top:10px;color:#bd3357;background:#fffafc;border-color:#f4dae3}.payment-details{border:1px solid #dfe0e4;border-radius:7px;padding:14px;color:#6b6f82;font-size:14px;line-height:1.7;background:#fffdfe}.payment-details>strong{font-size:14px}.payment-details>span{display:block;font-size:12px;color:#8c90a1;margin-top:9px}.payment-details p{margin:9px 0 0;font-size:14px}.rejection-reason{padding:13px;border:1px solid #f5dae3;border-radius:7px;background:#fff7f9;font-size:14px;color:#bc4770;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.rejection-actions{display:flex;gap:9px;margin-top:13px}.rejection-actions .primary{flex:1}#rejection-panel{margin-top:18px}#rejection-panel[hidden],#address-field[hidden],#change-field[hidden],.reject-order[hidden]{display:none}.card-footer{margin-top:13px}
.order-card{padding:10px}.order-card h4{font-size:14px;margin:9px 0 10px}.card-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.card-payment{font-size:13px;margin:0}.card-modality{font-size:12px;padding:3px 4px}.card-footer{margin-top:10px;padding-top:9px}.card-top .elapsed{font-size:12px}.rejected-badge{margin-left:0}@media(max-width:767px){.order-card{padding:13px}.order-card h4{font-size:15px}.card-top .elapsed{font-size:12px}.card-modality{font-size:12px}}
/* Revision 04: stage alerts and confirmed drag transitions. */
.order-card.analysis-alert{background:#fffcf3;border-color:#f8cc42;border-top-color:#e9b010;animation:analysis-pulse 2s ease-in-out infinite}.order-card.overdue{background:#fff5f6;border-color:#f36f85;border-top-color:#ee1339;animation:overdue-pulse 2s ease-in-out infinite}.order-card.overdue .elapsed{color:#c72340;font-weight:700;background:#ffe9ed;border-radius:4px;padding:3px 5px}.overdue-badge{display:block;width:max-content;max-width:100%;font-size:12px;font-weight:700;color:#cb2442;background:#ffe9ed;padding:4px 6px;border-radius:4px;margin:-2px 0 9px}.countdown-badge{display:block;width:max-content;max-width:100%;font-size:12px;font-weight:600;color:#5f626e;background:#f0f0f2;padding:4px 6px;border-radius:4px;margin:-2px 0 9px}.countdown-badge b{font-variant-numeric:tabular-nums;color:#343740}.countdown-badge[hidden]{display:none}.overdue-badge[hidden]{display:none}.order-card[draggable="true"]{cursor:grab}.order-card.dragging{opacity:.55;cursor:grabbing}.column.drop-allowed{outline:2px dashed #cb578d;outline-offset:-3px;background:#fff7fa}.column.drop-over{outline-style:solid;outline-color:#be3270;background:#fdebf4}.column.drop-over .column-header{background:#f9e0ec}.drag-helper{font-size:12px;color:#7f8496;margin-left:15px}.order-card.rejected-card{animation:none}@keyframes analysis-pulse{0%,100%{background-color:#fffdf5;border-color:#f5b40b;box-shadow:0 0 0 0 #f59e0b00}50%{background-color:#fff4cf;border-color:#f59e0b;box-shadow:0 0 0 3px #f59e0b40}}@keyframes overdue-pulse{0%,100%{background-color:#fff5f6;border-color:#f36f85;box-shadow:0 0 0 0 #ff012610}50%{background-color:#ffe7ea;border-color:#f80e34;box-shadow:0 0 0 3px #ff012625}}@media(prefers-reduced-motion:reduce){.order-card.analysis-alert,.order-card.overdue{animation:none}}@media(max-width:767px){.drag-helper{display:none}}


.store .restaurant-logo{width:42px;height:42px;object-fit:contain;flex-shrink:0;background:#700006;border-radius:9px}
.operator-area{position:relative}.operator-area .operator{width:100%;background:transparent;border:0;border-top:1px solid var(--line);text-align:left;cursor:pointer;font:inherit}.operator-area .operator strong{font-size:14px;font-weight:600;color:#363943}.operator-area .operator small{font-size:12px}.operator-chevron{width:18px;height:18px;margin-left:auto;color:#787c8e}.operator[aria-expanded="true"] .operator-chevron{transform:rotate(180deg)}.operator-menu{position:absolute;bottom:calc(100% - 8px);left:0;right:0;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #24262c20;z-index:30}.operator-menu[hidden]{display:none}.operator-menu button{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:0;padding:12px 10px;border:0;border-radius:7px;background:transparent;font:inherit;font-size:14px;text-align:left;color:#363943;cursor:pointer}.operator-menu button svg{width:18px;height:18px;flex-shrink:0}.operator-menu button:hover{background:#fcf6f7}.operator-menu #sign-out{color:#e80c23;border-top:1px solid var(--line);border-radius:0 0 7px 7px}.operator-menu button:focus-visible,.operator:focus-visible{outline:2px solid #ed1728;outline-offset:2px}.profile-actions{display:flex;gap:10px;margin-top:24px}.layout[hidden]{display:none}.operator-exit{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f8f9fa}.operator-exit-card{text-align:center;max-width:440px}.operator-exit-card h1{font-size:25px;margin:20px 0 10px}.operator-exit-card p{color:#787c8b;margin-bottom:24px}.exit-avatar{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#fcedf1;color:#d32345;font-weight:600}

/* Order detail: status and action on top, address copy, edit actions and history timeline. */
.detail-head{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #f5ebf1;border-radius:8px;background:#fffdfe}
.detail-head .detail-stage{padding:0;font-size:14px;font-weight:600;color:#565a6a}
.detail-head .advance-order,.detail-head .reject-order{margin-top:0}
.detail-head .rejection-reason{margin:0}
.address-box{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.address-box .copy-address{flex-shrink:0;min-height:32px;padding:6px 10px;font-size:12px}
.detail-actions{display:flex;gap:10px;margin-top:24px}
.detail-actions>button{flex:1}
.history.timeline li{position:relative;display:flex;justify-content:space-between;gap:12px;padding:0 0 18px 26px}
.history.timeline li::before{content:'';position:absolute;left:3px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--dot,#e61a3d);box-shadow:0 0 0 3px #fff}
.history.timeline li::after{content:'';position:absolute;left:7px;top:18px;bottom:2px;width:2px;background:#e1e2e6}
.history.timeline li:last-child{padding-bottom:0}
.history.timeline li:last-child::after{display:none}
.history.timeline li.change::before{background:#fff;border:2px solid var(--dot);width:6px;height:6px}
.history.timeline li.change span{font-style:italic}
#edit-address-field[hidden],#edit-change-field[hidden]{display:none}
.product.in-order{background:#fff9fb}

/* Brand panel aligned with the top bar; collapsed menu shows only icons and the Pipefood symbol. */
.brand-panel{height:var(--topbar-height,78px);box-sizing:border-box;gap:6px;flex-shrink:0}
.brand-panel .brand-crop{transform:scale(.82);margin:-4px 0}
.brand-symbol{display:none;width:40px;height:40px}
@media(min-width:768px){
.layout.menu-collapsed .brand-panel .brand-crop,.layout.menu-collapsed .brand-panel>span,.layout.menu-collapsed .store>div,.layout.menu-collapsed .store-state,.layout.menu-collapsed .nav-caption,.layout.menu-collapsed .nav-item .external,.layout.menu-collapsed .sidebar-bottom>p,.layout.menu-collapsed .sidebar-bottom>.help-mark,.layout.menu-collapsed .operator>div,.layout.menu-collapsed .operator-chevron{display:none}
.layout.menu-collapsed .brand-symbol{display:block}
.layout.menu-collapsed .store{justify-content:center;padding:18px 0 14px}
.layout.menu-collapsed nav{padding:0 12px}
.layout.menu-collapsed .nav-item{font-size:0;justify-content:center;gap:0;padding:9px 0}
.layout.menu-collapsed .sidebar-bottom{padding:8px 12px 0}
.layout.menu-collapsed .operator{justify-content:center}
.layout.menu-collapsed .operator-menu{left:12px;right:auto;width:220px}
}

/* Order edit: current or new address, search and address fields. */
.address-choice{display:flex;gap:16px;margin:4px 0 10px;font-size:14px}
.address-choice label{display:flex;align-items:center;gap:6px}
.address-fields{display:grid;grid-template-columns:2fr 1fr;gap:8px 12px;margin-top:8px}
.address-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#6b6f82}
.address-field-complement,.address-field-district{grid-column:span 1}
.address-field .form-input{margin:0}
.address-search .form-input{margin-bottom:0}

/* Demanda: top-bar button with a flame that grows with the level (0 normal, 1 alta, 2 muito alta). */
.demand-button{display:flex;align-items:center;gap:8px;height:42px;padding:0 12px 0 8px;border:1px solid #e8e9ec;border-radius:7px;background:#fbfbfb;cursor:pointer;text-align:left;white-space:nowrap}
.demand-button:hover{border-color:#d790b5}
.demand-button small{display:block;font-size:11px;letter-spacing:.4px;color:#9da1af;line-height:1.2}
.demand-button strong{display:block;font-size:13px;color:#565a6a;line-height:1.3}
.demand-button[data-level="1"]{background:#fff9f2;border-color:#ffc177}.demand-button[data-level="1"] strong{color:#cf4b10}
.demand-button[data-level="2"]{background:#fff3f5;border-color:#f68b9c}.demand-button[data-level="2"] strong{color:#d11430}
.demand-flame{width:26px;height:26px;flex-shrink:0;transform-origin:50% 90%;transition:transform .25s}
.demand-flame path{fill:#cfd0d7}.demand-flame .demand-flame-core{fill:#efeff2}
[data-level="0"] .demand-flame{transform:scale(.72)}[data-level="0"] .demand-flame path{fill:#a8abb7}[data-level="0"] .demand-flame .demand-flame-core{fill:#e5e6ea}
[data-level="1"] .demand-flame{transform:scale(.85)}[data-level="1"] .demand-flame path{fill:#ff8307}[data-level="1"] .demand-flame .demand-flame-core{fill:#ffc642}
[data-level="2"] .demand-flame{transform:scale(1.12)}[data-level="2"] .demand-flame path{fill:#ff0419}[data-level="2"] .demand-flame .demand-flame-core{fill:#ffa626}
[data-level="1"] .demand-flame,[data-level="2"] .demand-flame{animation:demand-flicker 1.6s ease-in-out infinite}
@keyframes demand-flicker{50%{filter:brightness(1.15);translate:0 -1px}}
@keyframes demand-pulse{50%{opacity:.45}}
.demand-now .demand-flame{width:34px;height:34px}
.demand-now{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #f5ebf1;border-radius:10px;background:#fffdfe}
.demand-now strong{display:block;font-size:14px}
.demand-now small{display:block;font-size:13px;color:#8d91a1;margin-top:3px}
.demand-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.demand-preset .demand-flame{width:30px;height:30px;margin-bottom:2px}
#demand-details[hidden]{display:none}
.demand-preset{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 10px;border:1px solid #e2e3e8;border-radius:10px;background:#fff;text-align:left;cursor:pointer;color:#525664}
.demand-preset strong{font-size:13px}.demand-preset small{font-size:12px;color:#8d91a1}
.demand-preset[aria-pressed="true"]{border-color:#ff6f01;background:#fff9f2}
.demand-preset[data-level="0"][aria-pressed="true"]{border-color:#55b94f;background:#f6fcf6}
.demand-stepper{display:flex;gap:8px}
.demand-stepper .form-input{text-align:center}
.demand-stepper .secondary{min-width:44px;font-size:18px}
.demand-chips{display:flex;flex-wrap:wrap;gap:8px}
.demand-chip{position:relative;cursor:pointer}
.demand-chip input{position:absolute;opacity:0}
.demand-chip span{display:inline-block;padding:8px 12px;border:1px solid #e2e3e8;border-radius:999px;font-size:13px;color:#636778;background:#fff}
.demand-chip input:checked+span{border-color:#ff6f01;background:#fff9f2;color:#b24904;font-weight:600}
.demand-chip input:focus-visible+span{outline:3px solid #d02051;outline-offset:2px}
#demand-note{margin-top:10px}
#demand-note[hidden]{display:none}
.demand-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px;padding:14px;border-radius:10px;background:#f9fcf9;border:1px solid #e3f1e4}
.demand-preview>span{grid-column:1/-1;font-size:12px;color:#5c7a60;letter-spacing:.3px}
.demand-preview b{display:block;font-size:14px;color:#23622e}
.demand-preview small{font-size:12px;color:#8aa58d}
@media(prefers-reduced-motion:reduce){.demand-flame{animation:none!important;transition:none}}
@media(max-width:1250px){.demand-button small{display:none}}
/* Card: modality and deadline on one line; item kinds (food, drink, dessert) beside the payment. */
.card-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-2px 0 9px}
.card-tags .overdue-badge:not([hidden]),.card-tags .countdown-badge:not([hidden]){display:inline-block;margin:0}
.card-kinds{display:inline-flex;gap:4px}
.kind-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:5px}
.kind-icon svg{width:13px;height:13px}
.kind-food{background:#fdf3ea;color:#b7580c}
.kind-drink{background:#ebf4fb;color:#226ea9}
.kind-dessert{background:#fbecf4;color:#b13371}

/* Motoboy: card line, detail block and the dispatch picker. */
.card-courier{display:flex;align-items:center;gap:5px;margin-top:8px;font-size:12px;font-weight:600;color:#2f8157}
.card-courier svg{width:14px;height:14px;flex-shrink:0}
.courier-box{display:flex;align-items:center;justify-content:space-between;gap:12px}
.courier-box a{color:#0e8332;font-weight:600}
.courier-options{display:grid;gap:8px}
.courier-option{position:relative;cursor:pointer}
.courier-option input{position:absolute;opacity:0}
.courier-option>span{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid #e2e3e8;border-radius:10px;background:#fff}
.courier-option strong{font-size:14px;color:#393c46}
.courier-option small{font-size:12px;color:#8d91a1}
.courier-option input:checked+span{border-color:#3e9d6d;background:#f5faf6;box-shadow:inset 0 0 0 1px #3e9d6d}
.courier-option input:focus-visible+span{outline:3px solid #d02051;outline-offset:2px}
.rider-fields{border:1px solid #e3f1e4;border-radius:10px;background:#f9fcf9;margin:16px 0 0;padding:4px 14px 14px}
.rider-fields[hidden]{display:none}
.rider-fields legend{font-size:13px;font-weight:700;color:#23622e;padding:0 4px}
.rider-fields small{font-weight:400;color:#8aa58d}
.column.drop-denied{position:relative;outline:2px dashed #db788d;outline-offset:-2px}
.column.drop-denied::after{content:"Retirada não vai para entrega";position:absolute;left:12px;right:12px;top:96px;padding:10px 12px;border-radius:8px;background:#fff5f6;border:1px solid #f36f85;color:#b31e3d;font-size:13px;font-weight:600;text-align:center;pointer-events:none}
/* Motoboy as a complement under the order value; click swaps or sets it. */
.order-card .card-courier{display:flex;align-items:center;gap:6px;width:100%;box-sizing:border-box;margin-top:10px;padding:7px 9px;border-radius:6px;background:#f3faf5;color:#2f8157;font-size:12px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.order-card .card-courier svg{width:14px;height:14px;flex-shrink:0}
.order-card .card-courier[data-swap-courier]{cursor:pointer}
.order-card .card-courier[data-swap-courier]::after{content:"Trocar";margin-left:auto;font-weight:500;font-size:12px;text-decoration:underline;opacity:.8}
.order-card .card-courier.pending[data-swap-courier]::after{content:"Definir"}
.order-card .card-courier[data-swap-courier]:hover{background:#e6f4ea}
.order-card .card-courier.pending{background:#fff7e7;color:#835500}
.order-card .card-courier.pending:hover{background:#fff0cd}
/* Switch: the system's on/off control (checkbox with class "switch" and role="switch"). Plain checkboxes stay only
   where a list of choices needs them (list filters, complement choices in the customer menu). */
input.switch[role="switch"]{appearance:none;-webkit-appearance:none;position:relative;flex-shrink:0;box-sizing:border-box;width:36px;height:20px;min-height:0;margin:0;padding:0;border:0;border-radius:20px;background:#c9cbd3;cursor:pointer;transition:background .15s}
input.switch[role="switch"]::before{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
input.switch[role="switch"]:checked{background:#2ca25a}
input.switch[role="switch"]:checked::before{transform:translateX(16px)}
input.switch[role="switch"]:focus-visible{outline:3px solid #c90015;outline-offset:3px}
input.switch[role="switch"]:disabled{opacity:.6;cursor:default}
@media(prefers-reduced-motion:reduce){input.switch[role="switch"],input.switch[role="switch"]::before{transition:none}}
html[data-theme="dark"] input.switch[role="switch"]:not(:checked){background:#4a5568}
/* Alert (showAlert): centered, sized to its content, warning icon on top. Used by the dispatch reminder. */
.app-alert{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:32px 28px 26px;border:0;border-radius:16px;background:#fff;color:#505361;text-align:center;overflow-y:auto;box-shadow:0 24px 60px #1b1d2440}
.app-alert[open]{animation:alert-pop .2s ease-out}
.app-alert::backdrop{background:#25272e66}
.app-alert .alert-icon{display:flex;align-items:center;justify-content:center;width:72px;height:72px;margin:0 auto 16px;border:4px solid #f8bb4b;border-radius:50%;color:#f59e0b;font-size:40px;font-weight:700;line-height:1}
.app-alert h2{margin:0 0 8px;font-size:22px;color:#2b2d35}
.alert-actions{display:flex;justify-content:center;gap:10px;margin-top:22px}
.alert-actions button{min-width:140px}
@keyframes alert-pop{from{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}
/* Dispatch reminder: items the store asked to check before the order goes out. */
.dispatch-check p{margin:0 0 14px;font-size:14px;color:#5f626e}
.dispatch-check p strong{color:#2b2d35}
.dispatch-check ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;text-align:left}
.dispatch-check li{display:flex;align-items:baseline;gap:8px;padding:10px 12px;border-radius:10px;background:#fff8e6;border:1px solid #f6d58a;font-size:14px;color:#3d3f48}
.dispatch-check li b{font-size:16px;color:#b45309;font-variant-numeric:tabular-nums}
.dispatch-check li small{margin-left:auto;font-size:12px;color:#9a7a3a}
@media(prefers-reduced-motion:reduce){.app-alert[open]{animation:none}}
@media(max-width:480px){.alert-actions{flex-direction:column-reverse}.alert-actions button{width:100%}}
html[data-theme="dark"] .app-alert{background:#1c2029;color:#e6eaf1}
html[data-theme="dark"] .app-alert::backdrop{background:#070a11aa}
html[data-theme="dark"] .app-alert h2,html[data-theme="dark"] .dispatch-check p strong{color:#f0f3f9}
html[data-theme="dark"] .dispatch-check p{color:#b9c1cf}
html[data-theme="dark"] .dispatch-check li{background:#33280f;border-color:#6b5420;color:#fde7b0}
html[data-theme="dark"] .dispatch-check li b{color:#fbbf24}
html[data-theme="dark"] .dispatch-check li small{color:#e5c47a}
/* Thin scrollbar inside the board columns. */
.column-body{scrollbar-width:thin;scrollbar-color:#c9cbd3 transparent}
html[data-theme="dark"] .column-body{scrollbar-color:#4a5568 transparent}
/* No toolbar above the board: the columns start right below the statistics. */
#board.board{padding-top:16px}

/* Delivery quote of the order form (fee, distance, range and time) and the fee typed by the attendant. */
.delivery-quote{margin:8px 0 4px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.55}.delivery-quote:empty,.delivery-quote[hidden]{display:none}.delivery-quote p{margin:0}.delivery-quote p+p{margin-top:6px}.delivery-quote[data-state="priced"]{border-color:#bfe3cc;background:#f1fbf4}.delivery-quote[data-state="refused"]{border-color:#ffc177;background:#fff7ef;color:#964403}.manual-fee{margin-top:4px}html[data-theme="dark"] .delivery-quote[data-state="priced"]{background:#14281c;border-color:#24543a}html[data-theme="dark"] .delivery-quote[data-state="refused"]{background:#382613;border-color:#714716;color:#ffb35c}
.store-now{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #bfe5cb;border-radius:10px;background:#f3fbf5;color:#166534}
.store-now strong{display:block;font-size:14px}
.store-now small{display:block;font-size:13px;margin-top:3px;color:#4b6b55}

/* Store open or closed in the side menu (layout/store-control.js): status, why, and its action */
.store-state{--tone:#16a34a;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;width:calc(100% - 32px);margin:0 16px 22px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--tone) 30%,#e6e7ea);border-radius:10px;background:color-mix(in srgb,var(--tone) 6%,#fff);color:#3d4150;font:inherit;text-align:left;cursor:pointer}
.store-state[hidden]{display:none}
.store-state:hover{border-color:var(--tone)}
.store-state[data-state="closed"]{--tone:#8b8f9c}.store-state[data-state="paused"]{--tone:#e08a00}
.store-state-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:var(--tone);box-shadow:0 0 0 3px color-mix(in srgb,var(--tone) 22%,transparent)}
.store-state-text{display:flex;flex-direction:column;min-width:0;line-height:1.35}.store-state-text b{font-size:13px;font-weight:650;color:color-mix(in srgb,var(--tone) 70%,#2b2d35)}.store-state-text small{font-size:12px;color:#80838f;overflow-wrap:anywhere}
.store-state-action{padding:4px 9px;border-radius:999px;background:#16a34a;color:#fff;font-size:12px;font-style:normal;font-weight:700;white-space:nowrap}
.store-state[data-state="open"] .store-state-action{background:#e00017;color:#fff}
html[data-theme="dark"] .store-state{background:color-mix(in srgb,var(--tone) 12%,#171a21);border-color:color-mix(in srgb,var(--tone) 40%,#2a2f3a);color:#e6eaf1}
html[data-theme="dark"] .store-state-text b{color:color-mix(in srgb,var(--tone) 55%,#fff)}html[data-theme="dark"] .store-state-text small{color:#9aa1b0}
html[data-theme="dark"] .store-state-action{background:#22c55e;color:#08200f}html[data-theme="dark"] .store-state[data-state="open"] .store-state-action{background:#f43f5e;color:#fff}

.demand-button:disabled{opacity:.45;cursor:not-allowed}.demand-button:disabled:hover{border-color:#e8e9ec}

/* Vehicle of the courier: icon with its name (couriers page, picker, card and order detail) */
.vehicle-tag{display:inline-flex;align-items:center;gap:4px;font-weight:600;white-space:nowrap}.vehicle-tag.is-mixed{color:#767c88;font-weight:500}.vehicle-icon{width:15px!important;height:15px!important;flex-shrink:0}
.rider-vehicles,.courier-vehicle-options{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}.courier-vehicle{position:relative;cursor:pointer}.courier-vehicle input{position:absolute;opacity:0}.courier-vehicle>span{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border:1px solid #dfe0e5;border-radius:999px;background:#fff;font-size:13px;font-weight:600;color:#4b4f5c}.courier-vehicle input:checked+span{border-color:#c90015;background:#fff1f3;color:#c90015}.courier-vehicle input:focus-visible+span{outline:3px solid #c90015;outline-offset:2px}.courier-vehicle input:disabled+span{opacity:.6;cursor:not-allowed}
html[data-theme="dark"] .courier-vehicle>span{background:#1c2029;border-color:#3c4554;color:#e6eaf1}html[data-theme="dark"] .courier-vehicle input:checked+span{background:#3a1d24;border-color:#ff556e;color:#ff8e9d}

/* New order: centered step dialog. Detail and edit panels keep their side layout. */
.app-dialog.new-order-dialog{--order-panel:#fff;--order-soft:#f7f8fa;--order-ink:#30343e;--order-muted:#697180;inset:0;margin:auto;width:min(1040px,calc(100vw - 32px));max-width:none;height:min(820px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 100px #17202b40;color:var(--order-ink)}
.new-order-dialog #order-form{display:flex;flex-direction:column;height:100%;min-height:0;margin:0}
.new-order-dialog [hidden]{display:none!important}
.new-order-dialog .dialog-header{padding:20px 28px;border-bottom:0}
.new-order-dialog .dialog-header h2{margin:4px 0 0;font-size:25px;font-weight:650}
.new-order-dialog .icon-button{border-radius:50%;width:44px;height:44px}
.new-order-steps{display:flex;list-style:none;padding:0 28px 20px;margin:0;border-bottom:1px solid var(--line);gap:12px;flex-shrink:0}
.new-order-steps li{display:flex;align-items:center;gap:10px;flex:1;color:var(--order-muted);font-size:14px;min-width:0}
.new-order-steps li:not(:last-child)::after{content:'';height:1px;background:var(--line);flex:1;margin-left:5px}
.new-order-steps li>span{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;font-size:13px;font-weight:650;background:var(--order-soft)}
.new-order-steps b{font-weight:550;white-space:nowrap}
.new-order-steps li[aria-current="step"]{color:var(--red)}
.new-order-steps li[aria-current="step"]>span{background:var(--red);border-color:var(--red);color:#fff}
.new-order-steps li.is-done>span{background:#eaf7ee;border-color:#bfe4c9;color:#177541}
.new-order-content{padding:24px 28px 28px;flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.new-order-content>h3{font-size:18px;font-weight:600;letter-spacing:-.25px;margin:0 0 22px;color:var(--order-ink)}
.new-order-content .field-label{margin:17px 0 8px;color:var(--order-ink)}
.new-order-content .form-note{color:var(--order-muted);font-size:13px;line-height:1.65}
.new-order-content .form-error{font-size:14px;line-height:1.6}
.new-order-content #form-error:empty{display:none}
.new-order-content .form-input,.new-order-content .form-select,.new-order-content .form-notes{color:var(--order-ink);background:var(--order-panel);border-color:var(--line)}
.new-order-content .form-input:focus,.new-order-content .form-select:focus,.new-order-content .form-notes:focus{border-color:var(--red)}
.order-modalities{border:0;padding:0;margin:0 0 20px;display:flex;gap:12px}
.order-modalities legend{font-size:13px;font-weight:600;padding:0;margin-bottom:9px}
.order-modalities label{position:relative;flex:1;max-width:250px;cursor:pointer}
.order-modalities input{position:absolute;opacity:0;width:1px;height:1px}
.order-modalities label>span{display:flex;align-items:center;justify-content:center;gap:10px;padding:15px 20px;min-height:54px;border:1px solid var(--line);border-radius:10px;font-size:14px;font-weight:600;background:var(--order-panel)}
.order-modalities input:checked+span{border-color:var(--red);background:color-mix(in srgb,var(--red) 5%,var(--order-panel));color:var(--red)}
.order-modalities input:focus-visible+span{outline:3px solid var(--red);outline-offset:3px}
.order-customer-title{font-size:16px;margin:8px 0 16px}
.new-order-dialog .dialog-header.order-compact-header{position:absolute;right:12px;top:12px;padding:0;border:0;z-index:1}
.new-order-dialog .new-order-steps{padding:22px 74px 22px 28px}
.order-category-nav{display:flex;align-items:center;gap:6px;margin-top:14px;min-width:0}
.order-category-nav .order-categories{min-width:0;flex:1;margin:0;scrollbar-width:none}
.order-category-nav .icon-button{flex-shrink:0;font-size:28px;width:32px;height:38px}
.order-product-select{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer;background:var(--order-panel)}
.order-product-select>span:first-child{display:grid;gap:4px}
.order-product-select small{color:var(--order-muted);font-size:12px}
.order-product-select strong{font-size:14px}
.order-product-add{font-size:24px;color:var(--red);padding:0 12px}
.order-item-note{display:block;color:var(--order-muted);font-size:13px;white-space:normal;margin-top:4px;overflow-wrap:anywhere}
.order-item-dialog{--order-panel:#fff;--order-ink:#30343e;--order-muted:#697180;padding:0;border:1px solid var(--line);border-radius:16px;width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px);color:var(--order-ink);background:var(--order-panel);box-shadow:0 20px 70px #0003}
.order-item-dialog::backdrop{background:#0005}
.order-item-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.order-item-dialog .dialog-header{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.order-item-dialog .dialog-header h2{font-size:19px;margin:0}
.order-item-content{padding:8px 22px 22px;overflow:auto}
.order-option-group{border:1px solid var(--line);border-radius:12px;padding:12px 16px 4px;margin:12px 0 16px;min-width:0}
.order-option-group legend{font-weight:650;font-size:15px;padding:0 6px;margin-left:-6px}
.order-group-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:2px 0 4px;font-size:13px;color:var(--order-muted)}
.order-badge{background:color-mix(in srgb,var(--red) 10%,transparent);color:var(--red);border-radius:999px;padding:2px 9px;font-weight:650;font-size:12px}
.order-group-count{margin-left:auto;font-weight:600;color:var(--order-ink)}
.order-group-error{margin:8px 0 2px;padding:8px 11px;border-radius:8px;background:color-mix(in srgb,#e11d48 10%,var(--order-panel));color:#b3122a;font-size:13px;font-weight:600}
.order-group-error[hidden]{display:none}
.order-option-group.is-invalid{border-color:#e11d48;background:color-mix(in srgb,#e11d48 4%,var(--order-panel));animation:order-shake .35s}
@keyframes order-shake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){.order-option-group.is-invalid{animation:none}}
.order-option{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:11px 0;cursor:pointer}
.order-option:last-child{border-bottom:0}
.order-option>span{flex:1;font-size:14px}.order-option strong{font-size:13px;color:var(--order-muted);font-weight:600}.order-option small{display:block;color:var(--muted)}
.order-option:has(input:disabled){opacity:.5;cursor:default}
.item-quantity-field{max-width:none;margin-top:18px}.item-quantity-field .order-quantity{width:max-content}.item-quantity-field .order-quantity .quantity{width:64px;font-size:15px;font-weight:600}
.order-quantity button:disabled{opacity:.4;cursor:default}
.order-item-dialog .new-order-footer{padding:14px 22px;gap:12px;flex-shrink:0}
.order-item-dialog #item-total{margin-left:auto;white-space:nowrap}
@media(max-width:480px){.new-order-dialog .new-order-steps{padding:18px 60px 16px 16px}.order-item-dialog .new-order-footer{padding:12px;gap:8px}.order-item-dialog .new-order-footer .primary{min-width:0;font-size:13px}.order-item-dialog .new-order-footer strong{font-size:14px}}
.new-order-steps li[hidden]{display:none}
.rejection-options{border:1px solid var(--line);border-radius:10px;padding:0;margin:16px 0;display:grid;gap:0}
.rejection-options legend{font-size:14px;font-weight:600;margin-bottom:12px;padding:0 8px}
.rejection-options label{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--line);cursor:pointer;font-size:14px}
.rejection-options label:last-child{border-bottom:0}
.rejection-options label:has(input:checked){border-color:var(--red);background:color-mix(in srgb,var(--red) 5%,transparent)}
.rejection-options label:has(input:focus-visible){outline:2px solid var(--red);outline-offset:-2px}
.rejection-options input{accent-color:var(--red);flex-shrink:0}
.new-customer-phone{max-width:580px;margin-bottom:18px}
.new-customer-phone>.field-label{margin-top:0}
.order-phone-status{margin:8px 0 0;color:var(--order-muted);font-size:13px;line-height:1.6;min-height:20px}
.order-phone-status[data-state="found"]{color:#177541}
.order-phone-status[data-state="error"]{color:#c41931}
.order-phone-status p{margin:0 0 8px}
.order-phone-status .secondary{font-size:13px}
.new-customer-fields input:disabled{opacity:.65;background:var(--order-soft);cursor:not-allowed}
.order-customer-results{list-style:none;padding:4px;margin:6px 0 0;border:1px solid var(--line);border-radius:9px;background:var(--order-panel);max-height:200px;overflow:auto;box-shadow:0 5px 20px #17202b0d}
.order-customer-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:6px;background:transparent;text-align:left;color:var(--order-ink);font-size:14px}
.order-customer-results button:hover,.order-customer-results button:focus-visible{background:var(--order-soft)}
.order-customer-results button span{font-size:13px;color:var(--order-muted);white-space:nowrap}
.order-text-button{border:0;background:transparent;padding:10px 0;min-height:44px;color:var(--red);font-size:13px;font-weight:600}
.selected-customer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;background:var(--order-soft);border:1px solid var(--line);border-radius:10px;max-width:580px;margin:15px 0}
.selected-customer>div{display:grid;gap:4px}.selected-customer small,.selected-customer>div>span{font-size:12px;color:var(--order-muted)}.selected-customer strong{font-size:14px}
.new-customer-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:580px;margin:4px 0 20px}
/* Phone with "Continuar sem cadastro" beside it (counter without "Cadastro obrigatório"). */
.customer-phone-row{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap}
.customer-phone-row>.form-input{flex:1 1 220px;max-width:300px}
.order-inline-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:550;color:var(--order-ink);cursor:pointer}
.order-inline-switch[hidden]{display:none}
.order-inline-switch:has(input:focus-visible){outline:3px solid var(--red);outline-offset:2px;border-radius:8px}
.new-customer-phone input:disabled{opacity:.65;background:var(--order-soft);cursor:not-allowed}
.new-customer-fields[hidden]{display:none}
/* "Dados adicionais": birth date now, the store's own customer fields later. */
.order-extra{max-width:580px;margin:0 0 8px}
.order-extra[hidden]{display:none}
.order-extra-title{display:flex;align-items:center;gap:12px;margin:0 0 14px;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--order-muted)}
.order-extra-title::after{content:"";flex:1;height:1px;background:var(--line)}
.order-extra-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.order-extra-fields input:disabled{opacity:.65;background:var(--order-soft);cursor:not-allowed}
/* Custom tags of the customer in the Novo pedido (2026-11-18): next to the birth date; one column on small screens. */
.order-tags-field .tag-select select{width:100%;max-width:none}
.order-tags-field .form-note{margin:0}
.new-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;font-weight:550;color:var(--order-ink)}
.new-field>span>small{font-size:12px;font-weight:400;color:var(--order-muted)}
.new-field .form-input,.new-field .form-select{margin:0;min-width:0}
.order-product-layout,.order-checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px}
.order-product-picker{min-width:0}.order-product-picker>.field-label{margin-top:0}
.order-categories{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:12px 0 14px}
.order-categories button{white-space:nowrap;min-height:44px;border:1px solid var(--line);border-radius:999px;padding:7px 12px;background:var(--order-panel);color:var(--order-muted);font-size:13px;font-weight:550}
.order-categories button[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff}
.order-products{display:grid;gap:8px;max-height:330px;overflow:auto;padding:2px 4px 3px 0;scrollbar-width:thin}
.order-product{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:90px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--order-panel)}
.order-product>div:first-child{display:grid;gap:5px;min-width:0}.order-product small{font-size:12px;color:var(--order-muted)}.order-product strong{font-size:14px;font-weight:550;line-height:1.4}.order-product>div:first-child>span{font-size:14px;font-weight:650}
.order-quantity{display:flex;flex-shrink:0;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.order-quantity button{width:44px;min-height:44px;border:0;background:var(--order-soft);color:var(--order-ink);font-size:19px}
.order-quantity .quantity{width:44px;height:44px;border:0;border-radius:0;padding:3px;text-align:center;background:var(--order-panel);color:var(--order-ink);appearance:textfield;-moz-appearance:textfield}
.order-quantity .quantity::-webkit-inner-spin-button,.order-quantity .quantity::-webkit-outer-spin-button{appearance:none;margin:0}
.order-cart{background:var(--order-soft);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.order-cart h4{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600}
.order-cart h4>span{display:grid;place-items:center;min-width:23px;height:23px;border-radius:6px;background:var(--order-panel);color:var(--order-muted);font-size:12px}
#chosen-products,.order-summary-scroll,#summary-items{max-height:min(340px,40vh);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;margin-right:-6px;padding-right:6px}
.order-chosen-product{display:grid;gap:2px;padding:9px 0;border-bottom:1px solid var(--line)}
.order-chosen-product:last-child{border-bottom:0}
.order-chosen-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.order-chosen-head .order-text-button{min-height:0;padding:0;text-align:left;color:var(--order-ink)}.order-chosen-head .order-text-button:hover strong{text-decoration:underline}
.order-chosen-product strong{font-size:14px;line-height:1.4;font-weight:600}
.order-chosen-desc{font-size:12px;line-height:1.45;color:var(--order-muted);overflow-wrap:anywhere}.order-chosen-desc .order-item-note{font-size:12px;margin-top:2px}
.order-chosen-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:3px}
.order-chosen-price{font-size:14px;font-weight:650}
.order-chosen-quantity{display:flex;align-items:center;gap:2px}.order-chosen-quantity button{border:1px solid var(--line);background:var(--order-panel);color:var(--order-ink);border-radius:7px;min-width:32px;min-height:32px;font-size:16px;line-height:1}.order-chosen-quantity button:disabled{opacity:.4}.order-chosen-quantity>span{min-width:28px;text-align:center;font-size:14px;font-weight:600}
.order-remove-product{border:0;background:transparent;color:var(--order-muted);font-size:13px;min-width:32px;min-height:32px;margin:-6px -8px 0 0;align-self:start}
.order-cart .line-item{font-size:13px;gap:10px}.order-cart .order-item-note{font-size:12px}
.order-cart-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px;font-size:13px}.order-cart-total strong{font-size:16px}
.order-empty{padding:22px 14px;border:1px dashed var(--line);border-radius:10px;text-align:center;font-size:14px;color:var(--order-muted);line-height:1.7}
.order-saved-addresses{display:grid;gap:8px;margin:0 0 18px}
.order-address-option{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:9px;padding:13px;cursor:pointer;background:var(--order-panel);font-size:13px}
.order-address-option:has(input:checked){border-color:var(--red);background:color-mix(in srgb,var(--red) 3%,var(--order-panel))}
.order-address-option input{margin:3px 0 0;accent-color:var(--red);flex-shrink:0}
.order-address-option>span{display:grid;gap:5px;line-height:1.5}.order-address-option strong{font-weight:550}.order-address-option span span{color:var(--order-muted);font-size:12px}
.order-address-option strong small{display:inline-block;font-size:11px;font-weight:550;border-radius:4px;padding:2px 5px;background:var(--order-soft);color:var(--order-muted);margin-left:4px}
.order-save-address{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:13px;cursor:pointer}
.order-save-address input.switch{flex-shrink:0}
.order-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:580px;margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--order-soft);cursor:pointer;transition:border-color .15s,background .15s}
.order-switch-row[hidden]{display:none}
.order-switch-row>span{display:grid;gap:3px}.order-switch-row strong{font-size:14px;font-weight:600;color:var(--order-ink)}.order-switch-row small{font-size:13px;line-height:1.5;color:var(--order-muted)}
.order-switch-row:has(input:checked){border-color:#2ca25a;background:color-mix(in srgb,#2ca25a 8%,var(--order-panel))}
.order-switch-row:has(input:focus-visible){outline:3px solid var(--red);outline-offset:2px}
.order-payment-heading{font-size:14px;margin:24px 0 14px}.order-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.order-pickup-note{display:flex;align-items:center;gap:9px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--order-soft);font-size:14px;margin:0}
.new-order-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 28px;background:var(--order-panel);border-top:1px solid var(--line);flex-shrink:0}
.new-order-footer .primary{display:flex;align-items:center;gap:12px;min-width:132px;justify-content:center;font-size:14px}
.new-order-footer .primary svg{width:17px;height:17px}
.new-order-footer-total{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex:1;margin-right:8px}.new-order-footer-total small{font-size:12px;color:var(--order-muted)}.new-order-footer-total strong{font-size:18px}
html[data-theme="dark"] .new-order-dialog{--order-panel:#1c2029;--order-soft:#232a35;--order-ink:#e6eaf1;--order-muted:#b4bfce}
html[data-theme="dark"] .order-item-dialog{--order-panel:#1c2029;--order-ink:#e6eaf1;--order-muted:#b4bfce}
html[data-theme="dark"] .new-order-steps li.is-done>span{background:#163428;border-color:#32684c;color:#a1dfb8}
html[data-theme="dark"] .order-phone-status[data-state="found"]{color:#a1dfb8}html[data-theme="dark"] .order-phone-status[data-state="error"]{color:#ff8e9d}
@media(max-width:760px){.order-product-layout,.order-checkout-layout{grid-template-columns:minmax(0,1fr)}.order-cart{padding:15px}.order-products{max-height:290px}.new-order-steps b{font-size:12px}.new-order-steps li{gap:7px}.new-order-steps{gap:8px}}
@media(max-width:480px){.app-dialog.new-order-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.new-order-dialog .dialog-header{padding:16px}.new-order-dialog .dialog-header h2{font-size:21px}.new-order-steps{padding:0 16px 15px;gap:5px}.new-order-steps li{gap:5px;align-items:flex-start;flex-direction:column}.new-order-steps li:not(:last-child)::after{display:none}.new-order-steps b{white-space:normal;font-size:12px;line-height:1.35}.new-order-steps li>span{width:26px;height:26px}.new-order-content{padding:20px 16px}.new-order-content>h3{font-size:17px;margin-bottom:18px}.new-customer-fields{grid-template-columns:1fr;gap:15px}.new-customer-fields>.new-field:first-child{grid-column:auto}.order-modalities label>span{padding:12px;font-size:14px}.selected-customer{align-items:flex-start;flex-wrap:wrap}.order-product{padding:11px;gap:9px}.order-product strong{font-size:13px}.order-quantity button{width:44px}.order-quantity .quantity{width:44px}.order-payment-fields{grid-template-columns:1fr}.new-order-footer{padding:13px 16px;gap:8px}.new-order-footer .primary{min-width:112px;font-size:13px;padding:10px}.new-order-footer-total{flex-direction:column;gap:3px;align-items:flex-end;margin-right:2px}.new-order-footer-total strong{font-size:15px}.new-order-footer-total small{font-size:11px}}
/* Courier picker: own couriers and partner companies on two buttons, in the filter style of the couriers page */
.courier-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 12px}.courier-tab{border:1px solid #e8e8ed;background:#fff;color:#4a4d58;border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.courier-tab span{margin-left:4px;opacity:.7}.courier-tab:hover{border-color:var(--red);color:var(--red)}.courier-tab[aria-selected="true"]{background:var(--red);border-color:var(--red);color:#fff}.courier-group h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
html[data-theme="dark"] .courier-tab{background:#1c2029;border-color:#3c4554;color:#e6eaf1}html[data-theme="dark"] .courier-tab[aria-selected="true"]{background:#d9102c;border-color:#d9102c;color:#fff}
/* Novo pedido, etapa de produtos: setas das categorias no tamanho das etiquetas e lista que ocupa a altura livre */
.order-category-nav .icon-button{display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:22px;line-height:1;border-radius:50%}
.order-category-nav .icon-button:disabled{opacity:.35;cursor:default}
@media(min-width:761px){
.new-order-section[data-order-section="2"]:not([hidden]){height:100%}
.new-order-section[data-order-section="2"] .order-product-layout{height:100%;min-height:380px;align-items:stretch}
.new-order-section[data-order-section="2"] .order-product-picker{display:flex;flex-direction:column;min-height:0}
.new-order-section[data-order-section="2"] .order-products{flex:1;min-height:0;max-height:none}
.new-order-section[data-order-section="2"] .order-cart{align-self:stretch;display:flex;flex-direction:column;min-height:0}
.new-order-section[data-order-section="2"] #chosen-products{flex:1;max-height:none;min-height:0}
}
.order-search{position:relative}.order-search .form-input{padding-left:40px}.order-search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);display:grid;color:var(--order-muted);pointer-events:none}.order-search-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.order-category-nav{margin-top:10px}
.new-order-dialog #edit-address-field>.field-label:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.order-products{align-content:start}

/* Novo pedido: troco em destaque, edição do pedido na janela central */
.change-highlight{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0;padding:12px 16px;border:1px solid #9bd7b3;border-radius:10px;background:color-mix(in srgb,#2ca25a 10%,var(--order-panel));color:#177541;font-size:14px;font-weight:600}
.change-highlight[hidden]{display:none}.change-highlight strong{font-size:20px;letter-spacing:-.3px}
.change-highlight.is-error{display:block;border-color:#f0a3ae;background:color-mix(in srgb,#e11d48 8%,var(--order-panel));color:#b3122a}
html[data-theme="dark"] .change-highlight{color:#a1dfb8;border-color:#32684c}html[data-theme="dark"] .change-highlight.is-error{color:#ffadb9;border-color:#7a3340}
.order-edit-banner{margin:0 0 16px;padding:10px 14px;border-radius:10px;background:var(--order-soft);border:1px solid var(--line);font-size:14px;color:var(--order-muted)}.order-edit-banner strong{color:var(--order-ink)}
.is-editing .new-customer-phone,.is-editing #customer-phone-status,.is-editing #customer-extra,.is-editing #selected-customer{display:none}
.is-editing .new-customer-fields{grid-template-columns:minmax(0,1fr);margin-top:8px}
.is-editing .order-customer-title{margin-top:20px}

/* Detalhe do pedido (painel lateral): cartões, rótulos de seção e ações compactas */
#app-dialog:not(.new-order-dialog):not(.app-alert) h3{margin:22px 0 8px;font-size:12px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:var(--muted)}
.detail-customer{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.detail-customer .customer-avatar{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:50%;background:color-mix(in srgb,var(--red) 10%,#fff);color:var(--red);font-size:14px;font-weight:700}
.detail-customer>div{display:grid;gap:3px;min-width:0}.detail-customer strong{font-size:16px}.detail-customer span{font-size:13px;color:var(--muted)}
.detail-head{background:#fff;border-color:var(--line);border-radius:12px;margin-top:14px}
.detail-head #rejection-panel{display:grid;gap:8px}.detail-head #rejection-panel .form-select{margin:0}
.detail-head #rejection-panel .field-label{margin:4px 0 0;font-size:13px}
.rejection-actions{display:flex;gap:8px}.rejection-actions>button{flex:1}
.address-box{align-items:center;border-radius:12px}
.address-box .copy-address{display:grid;place-items:center;width:36px;height:36px;min-height:0;padding:0;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);cursor:pointer}
.address-box .copy-address:hover{color:var(--red);border-color:var(--red)}
.address-box .copy-address svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.detail-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:4px 16px 14px}
.detail-card .line-item{padding:10px 0;font-size:14px}.detail-card .detail-total{margin-top:6px;padding-top:12px}
.payment-details{border-radius:12px;display:grid;gap:10px}
.payment-line strong{font-size:14px}
.change-box{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.change-box>div{padding:10px 12px;border-radius:10px;background:var(--order-soft,#f7f8fa);border:1px solid var(--line)}
.change-box dt{font-size:12px;color:var(--muted)}.change-box dd{margin:2px 0 0;font-size:15px;font-weight:650}
.change-box .change-due{background:color-mix(in srgb,#2ca25a 10%,#fff);border-color:#9bd7b3}.change-box .change-due dd{color:#177541;font-size:17px}
.payment-note{font-size:12px;color:var(--muted)}

/* Cartão do pedido: ação para avançar de etapa, só texto com seta como o antigo "Ver pedido" */
.card-footer .card-advance{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;min-width:0;min-height:30px;padding:0 0 0 6px;border:0;background:transparent;font-size:12px;font-weight:inherit;line-height:1.3;white-space:nowrap;cursor:pointer}
.card-footer .card-advance svg{width:14px;height:14px;flex-shrink:0}
.card-footer .card-advance:hover{color:var(--red)}
.card-footer .card-advance:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:4px}
.card-footer:has(.card-advance){flex-wrap:wrap;column-gap:6px;row-gap:0}
.card-footer .card-advance{margin-left:auto}
.detail-head .advance-order.is-accept{background:#16a34a;border-color:#16a34a;color:#fff}.detail-head .advance-order.is-accept:hover:not(:disabled){background:#12823c;border-color:#12823c}.detail-head .advance-order.is-accept:focus-visible{outline:3px solid #16a34a55;outline-offset:2px}.detail-head .advance-order.is-accept:disabled{opacity:.5}

/* Pedidos do iFood */
.card-code{display:inline-flex;align-items:center;gap:6px}.source-badge{display:inline-block;padding:1px 6px;border-radius:6px;background:#697180;font-size:12px;font-weight:700;line-height:1.5;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}.source-sep{opacity:.75}.source-ifood{background:#ea1d2c}.source-99food{background:#ffc21a;color:#2b2200}.source-meta{background:#0866ff}.source-whatsapp{background:#15803d}.schedule-badge{display:inline-block;padding:2px 6px;border-radius:6px;background:#eef2ff;font-size:12px;font-weight:600;color:#4f46e5}.detail-source{margin-left:10px;font-size:13px;font-weight:500;color:var(--muted)}.ifood-phone{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:var(--muted)}.ifood-wait{display:block;flex:1}.alert-text{margin:0 0 14px;text-align:center;line-height:1.5}
html[data-theme="dark"] .schedule-badge{background:#2b2f55;color:#c7d2fe}
.cancel-reason{margin:4px 0 18px;padding:16px;border-radius:10px;background:#f2f2f4;text-align:center;font-size:15px;line-height:1.45;color:#30343e}html[data-theme="dark"] .cancel-reason{background:#1f2937;color:#e5ecf6}
.ifood-ahead{display:inline-block;padding:2px 6px;border-radius:6px;background:#fdecee;font-size:12px;font-weight:600;color:#b3121f}html[data-theme="dark"] .ifood-ahead{background:#3b1a1f;color:#fda4ad}
.overview-folded{display:none}.overview.collapsed .overview-folded{display:block}
.overview-body{display:flex;flex:1;align-items:center;justify-content:space-between;gap:18px 22px;min-width:0;flex-wrap:wrap}.overview-body[hidden]{display:none}
.board-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px 12px;min-width:0}
.filters-caption{align-self:center;font-size:13px;font-weight:600;color:#7f8497;margin-right:2px}
.filter-field{display:grid;gap:4px}.filter-field>span{font-size:12px;color:#999cab;white-space:nowrap}
.filter-select{width:auto;min-height:34px;height:34px;padding:5px 26px 5px 10px;font-size:13px;border-radius:8px;cursor:pointer}
.filter-field.is-active .filter-select{border-color:var(--red);color:#c8102e;font-weight:600}
.filter-late{display:inline-flex;align-items:center;gap:8px;height:34px;font-size:13px;color:#5b5f70;cursor:pointer;white-space:nowrap}
.filters-clear{height:34px;padding:0 2px;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:#c8102e;cursor:pointer;white-space:nowrap}.filters-clear:hover{text-decoration:underline}.filters-clear:focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:4px}
.overview-stats{display:flex;align-items:center;gap:22px;margin-left:auto}
html[data-theme="dark"] .filter-field.is-active .filter-select{border-color:#f87171!important;color:#fecaca!important}html[data-theme="dark"] .filter-late,html[data-theme="dark"] .filters-caption,html[data-theme="dark"] .filter-field>span{color:#b4bfce}html[data-theme="dark"] .filters-clear{color:#fca5a5}
@media(max-width:760px){.overview-body{flex-direction:column;align-items:stretch}.overview-stats{margin-left:0}.board-filters .filter-field{flex:1 1 140px}.filter-select{width:100%}}
.board-filters{gap:8px 10px}.board-filters .filter-select{padding:5px 22px 5px 9px}.overview-stats{gap:16px}.overview-body .summary-metrics{gap:18px}.overview-body .summary-metrics>div{padding-left:18px}.overview-body .summary-metrics>div:first-child{border-left:1px solid #e7e8ec;padding-left:18px}
.board-filters .filters-clear[hidden]{display:inline-block;visibility:hidden}
.overview.collapsed .overview-folded{display:flex;align-items:center;gap:14px}.overview-folded .filters-clear{height:auto;padding:0}
.overview-summary{display:none;margin:0 0 0 auto;font-size:13px;color:#7f8497;white-space:nowrap}.overview.collapsed .overview-summary{display:flex;align-items:center;gap:10px}.overview-summary span{color:#c9cbd3}.overview-summary strong{font-weight:600;color:#db2a5e}
html[data-theme="dark"] .overview-summary{color:#b4bfce}html[data-theme="dark"] .overview-summary span{color:#4d596b}
@media(max-width:760px){.overview.collapsed .overview-summary{display:none}}
@media(min-width:761px){.overview-body{gap:14px 16px}.board-filters{gap:8px}.board-filters .filter-select{padding:5px 20px 5px 8px}.filter-late{gap:6px}.overview-stats{gap:12px}.overview-body .summary-metrics{gap:14px}.overview-body .summary-metrics>div,.overview-body .summary-metrics>div:first-child{padding-left:14px}}
.bar-icon{width:16px;height:16px;flex-shrink:0}.filters-caption,.overview-stats>.overview-caption{display:inline-flex;align-items:center;gap:6px}.overview-summary .bar-icon,.overview-folded .bar-icon{color:#7f8497}html[data-theme="dark"] .overview-summary .bar-icon,html[data-theme="dark"] .overview-folded .bar-icon{color:#b4bfce}
@media(min-width:768px){.overview{padding-left:24px;padding-right:70px}.overview-body{gap:12px}.board-filters{gap:6px}.board-filters .filter-select{padding-left:7px}.overview-stats{gap:10px}.filters-caption,.overview-stats>.overview-caption{gap:4px}}
@media(min-width:768px) and (max-width:1250px){.overview{padding-left:20px}}
@media(min-width:768px){.overview-stats{gap:8px}.overview-body .summary-metrics{gap:12px}.overview-body .summary-metrics>div,.overview-body .summary-metrics>div:first-child{padding-left:12px}}
.source-brendi{background:#203e44;color:#fff}.source-menu{background:#475569;color:#fff}
.brendi-pending-badge{display:block;flex-basis:100%;max-width:100%;padding:3px 6px;border-radius:5px;background:#fff4d6;color:#785300;font-size:12px;font-weight:600;line-height:1.45;white-space:normal}
.brendi-pending-detail{display:flex;flex:1 1 100%;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e6c575;border-radius:10px;background:#fff9e8;color:#785300;font-size:13px;line-height:1.5}
.brendi-pending-detail button{flex-shrink:0}
html[data-theme="dark"] .brendi-pending-badge,html[data-theme="dark"] .brendi-pending-detail{background:#302a1a;color:#f1d693;border-color:#74613a}
@media(max-width:767px){.brendi-pending-detail{align-items:flex-start;flex-direction:column}}
/* Counter order without a customer: "Sem cliente" reads as a state, not as a name. */
.no-customer{font-style:italic;color:#6b7080}
html[data-theme="dark"] .no-customer{color:#aab4c3}
/* Payment step: Pix key of the store with copy, and the warning when no method applies to the mode. */
.pix-key-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;padding:12px 16px;border:1px solid var(--line);color:var(--order-ink,inherit);border-radius:10px;background:var(--order-soft,var(--appearance-bg))}.pix-key-box>div{display:grid;gap:2px;min-width:0}.pix-key-box span{color:var(--order-muted,var(--muted));font-size:13px;font-weight:600}.pix-key-box strong{font-size:14px;overflow-wrap:anywhere}.pix-key-box small{color:var(--order-muted,var(--muted));font-size:13px}.pix-copy{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.pix-copy svg{width:16px;height:16px}
.payment-details .pix-key-box{margin-top:10px}
.order-alert-note{margin:12px 0 0;padding:10px 14px;border:1px solid #f3b3bd;border-radius:10px;background:#fff4f6;color:#b4051d;font-size:14px;font-weight:600}.order-alert-note[hidden]{display:none}
html[data-theme="dark"] .order-alert-note{background:#3a1d24;border-color:#6b2a37;color:#ff8096}
@media(max-width:560px){.pix-key-box{flex-direction:column;align-items:stretch}}
/* Payment step of the new order: methods as square buttons with icon, brand chips, status and discount toggles. */
.pay-method-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;max-width:640px}
.pay-method-grid[hidden]{display:none}
.pay-method{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;aspect-ratio:1/1;min-height:88px;padding:10px 6px;border:1px solid var(--line);border-radius:12px;background:var(--order-panel);color:var(--order-ink,inherit);font:inherit;font-size:14px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
.pay-method svg{width:28px;height:28px;color:var(--order-muted,var(--muted))}
.pay-method:hover{border-color:color-mix(in srgb,var(--red) 45%,var(--line))}
.pay-method[aria-pressed="true"]{border-color:var(--red);background:color-mix(in srgb,var(--red) 6%,var(--order-panel));color:var(--red)}
.pay-method[aria-pressed="true"] svg{color:var(--red)}
.pay-method:focus-visible,.pay-brand:focus-visible,.pay-toggle button:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.pay-brand-field{margin-top:14px}.pay-brand-field[hidden]{display:none}
.pay-brand-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pay-brand{min-height:36px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--order-panel);color:var(--order-ink,inherit);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.pay-brand[aria-pressed="true"]{border-color:var(--red);background:color-mix(in srgb,var(--red) 6%,var(--order-panel));color:var(--red)}
.pay-extra{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px 28px;margin:18px 0 4px}
.pay-status-field,.pay-discount-field{display:grid;gap:6px}
.pay-toggle{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--order-panel)}
.pay-toggle button{min-height:42px;min-width:92px;padding:8px 16px;border:0;background:transparent;color:var(--order-ink,inherit);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.pay-toggle button+button{border-left:1px solid var(--line)}
.pay-toggle button[aria-pressed="true"]{background:color-mix(in srgb,var(--red) 8%,var(--order-panel));color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.pay-toggle.is-compact button{min-width:48px;padding:8px 12px}
.pay-discount{display:flex;gap:8px;align-items:center}
.pay-discount .form-input{width:140px;margin:0}
.discount-note{min-height:18px;margin:0;font-size:13px;color:var(--order-muted,var(--muted))}
.discount-note.is-error{color:#b3122a;font-weight:600}
.line-item.discount-line strong{color:#177541}
html[data-theme="dark"] .discount-note.is-error{color:#ffadb9}
html[data-theme="dark"] .line-item.discount-line strong{color:#a1dfb8}
@media(max-width:480px){.pay-method-grid{grid-template-columns:repeat(3,1fr)}.pay-method{min-height:76px;font-size:13px}.pay-extra{gap:14px}}
/* Counter QR Code orders, tickets ("senha") and the counter service fee. */
.source-counter{background:#0f766e;color:#fff}
.detail-ticket{display:inline-flex;align-items:center;margin-left:8px;padding:2px 10px;border-radius:999px;background:#111827;color:#fff;font-size:14px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.service-fee-field{margin:12px 0 4px}.service-fee-field[hidden]{display:none}
/* Side menu: the page list scrolls (thin, light bar) and the user menu stays at the bottom of the window. */
.sidebar{min-height:0}
.sidebar>nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#e9eaee transparent}
.sidebar>nav::-webkit-scrollbar{width:6px}
.sidebar>nav::-webkit-scrollbar-thumb{background:#e9eaee;border-radius:3px}
.sidebar>nav::-webkit-scrollbar-track{background:transparent}
html[data-theme="dark"] .sidebar>nav{scrollbar-color:#353e4c transparent}
html[data-theme="dark"] .sidebar>nav::-webkit-scrollbar-thumb{background:#353e4c}
.sidebar-bottom .operator{padding:14px 0}
/* "Exibir pedidos finalizados" off: four columns, no "Finalizados". */
.board.no-finished{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1250px){.board.no-finished{grid-template-columns:repeat(4,190px)}}
@media(max-width:767px){.board.no-finished{grid-template-columns:repeat(4,254px)}}
/* "Cancelar pedido": footer of the order detail and its alert. */
.detail-actions{flex-wrap:wrap}
.detail-actions .cancel-order-button{color:#c0213c;border-color:#efc2c9}
.detail-actions .cancel-order-button:hover{background:#fff4f5}
.app-alert .cancel-form{text-align:left;margin-top:14px}
.app-alert .cancel-form>.field-label:first-child{margin-top:0}
.app-alert .cancel-form textarea{margin-top:0}
.cancel-paid{margin:14px 0 0;padding:11px 13px;border-radius:8px;background:#fff8e6;border:1px solid #f5d98b;color:#7a5600;font-size:13px;line-height:1.6;text-align:left}
html[data-theme="dark"] .detail-actions .cancel-order-button{color:#ffadb9;border-color:#5a2d39}
html[data-theme="dark"] .detail-actions .cancel-order-button:hover{background:#3a1f27}
html[data-theme="dark"] .cancel-paid{background:#3a2f12;border-color:#6b5520;color:#f5d98b}
.detail-actions .print-order-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.detail-actions .print-order-button svg{width:18px;height:18px;flex:none}
/* "Imprimir" with more than one via on: menu above the button (choosePrint in board.js). */
.detail-actions{position:relative}
.print-menu{position:absolute;bottom:calc(100% + 6px);z-index:5;display:flex;flex-direction:column;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--order-panel,#fff);box-shadow:0 10px 30px rgba(15,23,42,.16)}
.print-menu button{display:block;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:7px;background:none;color:inherit;font:inherit;font-size:14px;text-align:left;white-space:nowrap;cursor:pointer}
.print-menu button:hover,.print-menu button:focus-visible{background:var(--order-soft,#f4f4f6);outline:none}
.print-menu button:first-child{font-weight:600}
html[data-theme="dark"] .print-menu{background:#1f2129;border-color:#343743}
html[data-theme="dark"] .print-menu button:hover,html[data-theme="dark"] .print-menu button:focus-visible{background:#2a2d37}
/* Botões do sistema (2026-11-17): ícone, sinal e texto centralizados na mesma linha. O "+" é desenhado (.btn-plus),
   porque o caractere "＋" fica mais baixo que o texto em várias fontes. */
button.primary,a.primary,button.secondary,a.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2}
.btn-plus{position:relative;display:inline-block;flex:none;width:12px;height:12px}
.btn-plus::before,.btn-plus::after{content:"";position:absolute;left:50%;top:50%;background:currentColor;border-radius:1px;transform:translate(-50%,-50%)}
.btn-plus::before{width:12px;height:2px}.btn-plus::after{width:2px;height:12px}
.integrations-filter{display:inline-flex;align-items:center;gap:6px;line-height:1.2}
:has(>.btn-plus){display:inline-flex;align-items:center;gap:8px}
/* Switch ao lado de texto (2026-11-17): o texto é quase todo em minúsculas e parece mais baixo que o switch
   centralizado pela caixa; 1 px para baixo alinha pelo olho. Sem texto visível (.pay-switch), fica no centro. */
label:not(.pay-switch)>input.switch[role="switch"]{top:1px}
