.order-service-details{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.45rem .8rem;margin:.7rem 0;padding:.7rem .85rem;border:1px solid var(--line);border-radius:12px;background:var(--primary-soft)}
.order-service-details strong{color:var(--primary-dark);font-size:1rem;font-weight:900;white-space:nowrap}
.order-service-details span{min-width:0;overflow-wrap:anywhere;color:var(--ink,#0f172a);font-size:1.05rem;font-weight:800}
.order-service-details a{margin-left:auto;color:var(--primary);font-weight:800;white-space:nowrap}
@media(max-width:520px){.order-service-details{display:grid}.order-service-details a{margin-left:0}}
@media(max-width:620px){.orders-live-toolbar a.btn{display:inline-flex;padding:.55rem .7rem;font-size:.78rem}}
.printer-routing-summary{display:grid;gap:.45rem;padding:.75rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-alt)}
.printer-routing-summary>small{display:block;margin-top:-.25rem}.printer-routing-summary>div{display:grid;gap:.12rem;padding-top:.4rem;border-top:1px solid var(--line)}
.printer-routing-summary>div span{color:var(--muted);font-size:.76rem;overflow-wrap:anywhere}.printer-routing-summary .error{margin:0;font-size:.78rem}
.printer-connect-panel{display:grid;gap:.65rem;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,var(--primary-soft),#fff)}.printer-connect-panel>div:first-child{display:grid;gap:.12rem}.printer-connect-actions{display:flex;flex-wrap:wrap;gap:.45rem}.printer-connect-actions .btn{flex:1 1 180px;font-size:.8rem}.printer-connect-panel small{color:var(--muted)}
.qz-printer-list{display:grid;gap:.55rem}.qz-printer-list-heading{display:grid;gap:.1rem}.qz-printer-list-heading strong{font-size:.92rem}.qz-printer-list-heading span{color:var(--muted);font-size:.78rem}
.qz-printer-options{display:grid;gap:.4rem;max-height:260px;overflow:auto;padding:.15rem}
.qz-printer-option{display:grid;grid-template-columns:18px 1fr;gap:.7rem;align-items:start;width:100%;margin:0;padding:.7rem .8rem;border:1px solid var(--line);border-radius:10px;background:#fff;color:inherit;text-align:left;cursor:pointer}
.qz-printer-option:hover{border-color:#8dd4cd;background:#f4fffd}
.qz-printer-option.is-selected{border-color:var(--primary);background:var(--primary-soft);box-shadow:inset 0 0 0 1px var(--primary)}
.qz-printer-option-mark{width:16px;height:16px;margin-top:.15rem;border:2px solid #94a3b8;border-radius:50%}
.qz-printer-option.is-selected .qz-printer-option-mark{border-color:var(--primary);background:radial-gradient(circle at center,var(--primary) 0 45%,transparent 46%)}
.qz-printer-option-copy{display:grid;gap:.15rem;min-width:0}.qz-printer-option-copy strong{font-size:.9rem;word-break:break-word}.qz-printer-option-copy small{color:var(--muted);font-size:.75rem}
.qz-printer-select-wrap{display:grid;gap:.35rem;margin:0}.qz-printer-select-wrap select{width:100%}
.managed-order-card{position:relative;transition:border-color .25s ease,box-shadow .25s ease,background-color .25s ease}.managed-order-card.order-age-warning{border-color:#f59e0b;background:linear-gradient(135deg,#fffbeb 0,#fff 48%);box-shadow:0 10px 28px rgba(245,158,11,.14)}.managed-order-card.order-age-critical{border-color:#ef4444;background:linear-gradient(135deg,#fff1f2 0,#fff 48%);box-shadow:0 12px 30px rgba(239,68,68,.18)}.order-age-badge{display:inline-flex;align-items:center;gap:.35rem;margin-left:auto;padding:.42rem .68rem;border:1px solid #99f6e4;border-radius:999px;background:#f0fdfa;color:#0f766e;font-size:.76rem;font-weight:850;white-space:nowrap}.order-age-badge::before{content:'';width:.48rem;height:.48rem;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.order-age-badge.is-warning{border-color:#fcd34d;background:#fef3c7;color:#a16207}.order-age-badge.is-critical{border-color:#fca5a5;background:#fee2e2;color:#b91c1c;animation:order-age-pulse 1.8s ease-in-out infinite}.order-age-badge.is-completed{border-color:#a7f3d0;background:#ecfdf5;color:#047857}.order-age-badge.is-completed::before{box-shadow:none}@keyframes order-age-pulse{50%{box-shadow:0 0 0 5px rgba(239,68,68,.1)}}@media(max-width:620px){.managed-order-card>.title-row:first-child{align-items:flex-start;flex-wrap:wrap}.order-age-badge{order:3;margin-left:0;width:max-content;white-space:normal}}
.order-filter-pills{align-items:center;flex-wrap:wrap}.order-filter-divider{width:1px;height:1.8rem;margin:0 .2rem;background:var(--line)}.order-filter-pills .pill{display:inline-flex;align-items:center;gap:.42rem}.order-filter-count{display:inline-grid;min-width:1.45rem;height:1.45rem;padding:0 .38rem;place-items:center;border-radius:999px;background:#e8eef0;color:#344054;font-size:.72rem;font-variant-numeric:tabular-nums;line-height:1}.order-filter-pills .pill.active .order-filter-count{background:#fff;color:var(--primary-dark);box-shadow:0 0 0 1px #00000012}.order-type-pill{display:inline-flex;align-items:center;gap:.38rem}.order-type-pill.takeaway{border-color:#fdba74;background:#fff7ed;color:#9a3412}.order-type-pill.takeaway.active{border-color:#ea580c;background:#ea580c;color:#fff}.order-type-pill.delivery{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.order-type-pill.delivery.active{border-color:#2563eb;background:#2563eb;color:#fff}@media(max-width:620px){.order-filter-divider{display:none}.order-filter-pills{gap:.42rem}.order-type-pill{flex:1;justify-content:center}}
.order-advanced-search{display:grid;gap:.85rem;margin-bottom:1rem;padding:1rem 1.1rem;border:1px solid #d9ebe8;background:linear-gradient(135deg,#f3fffd,#fff 55%)}.order-advanced-search-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.order-advanced-search-head strong{display:block;font-size:.98rem}.order-advanced-search-head small{display:block;margin-top:.15rem;color:var(--muted)}.order-search-result-pill{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);font-size:.75rem;font-weight:850}.order-advanced-search-grid{display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(120px,1fr));gap:.7rem}.order-advanced-search-grid label{margin:0}.order-advanced-search-grid .order-search-wide{grid-column:span 1}.order-advanced-search-actions{display:flex;flex-wrap:wrap;gap:.55rem}.order-advanced-search-actions .btn{min-height:42px}@media(max-width:980px){.order-advanced-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-advanced-search-grid .order-search-wide{grid-column:1/-1}}@media(max-width:620px){.order-advanced-search-grid{grid-template-columns:1fr}.order-advanced-search-actions .btn{flex:1}}
[data-orders-live-region]{transition:opacity .18s ease,transform .18s ease}[data-orders-live-region].is-filtering{opacity:.55;transform:translateY(3px);pointer-events:none}[data-orders-live-region].is-filter-entering{opacity:.35;transform:translateY(7px)}@media(prefers-reduced-motion:reduce){[data-orders-live-region]{transition:none}}
.subscription-live-state{display:flex;align-items:center;gap:.65rem;margin:1rem 0;color:var(--primary);font-weight:700}.subscription-live-dot{width:.7rem;height:.7rem;border-radius:50%;background:var(--primary);box-shadow:0 0 0 0 color-mix(in srgb,var(--primary) 38%,transparent);animation:subscription-live-pulse 1.8s infinite}.subscription-activated{border-color:var(--primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 12%,transparent)}@keyframes subscription-live-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--primary) 38%,transparent)}70%{box-shadow:0 0 0 10px transparent}100%{box-shadow:0 0 0 0 transparent}}@media(prefers-reduced-motion:reduce){.subscription-live-dot,.order-age-badge.is-critical{animation:none}}
.order-tax-totals{display:grid;gap:.35rem;margin:.55rem 0 .85rem;padding:.7rem .8rem;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.order-tax-row{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;font-size:.9rem}.order-tax-row span{color:#475569}.order-tax-row small{color:#64748b;font-weight:600}.order-tax-row strong{white-space:nowrap;font-weight:850;color:#0f172a}.order-tax-row.order-tax-base strong{font-size:1.02rem}#cart-tax-totals{margin-top:.35rem}
.order-print-dialog{width:min(920px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);padding:0;border:0;border-radius:20px;background:#fff;color:#142033;box-shadow:0 28px 90px rgba(15,23,42,.32)}.order-print-dialog::backdrop{background:rgba(15,23,42,.62);backdrop-filter:blur(5px)}.order-print-dialog-card{display:grid;grid-template-rows:auto auto minmax(280px,1fr) auto;max-height:calc(100vh - 2rem)}.order-print-dialog-card>header{display:flex;justify-content:space-between;gap:1rem;padding:1.25rem 1.35rem;border-bottom:1px solid #e5e7eb}.order-print-dialog-card>header span{color:var(--primary);font-size:.72rem;font-weight:900;letter-spacing:.12em}.order-print-dialog-card h2{margin:.15rem 0;font-size:1.35rem}.order-print-dialog-card p{margin:0;color:#64748b}.order-print-close{align-self:flex-start;width:2.3rem;height:2.3rem;padding:0;border:0;border-radius:50%;background:#f1f5f9;color:#475569;font-size:1.5rem}.order-print-destinations{display:flex;gap:.55rem;overflow:auto;padding:.8rem 1.35rem;border-bottom:1px solid #e5e7eb}.order-print-destinations button,.order-print-destinations span{flex:0 0 auto;padding:.55rem .75rem;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;font-size:.78rem;font-weight:800}.order-print-destinations button.active{border-color:var(--primary);background:#e7f5f3;color:var(--primary)}.order-print-preview{min-height:280px;padding:1rem;background:#eef2f6;overflow:auto}.order-print-preview iframe{display:block;width:min(100%,420px);height:440px;margin:auto;border:1px solid #d5dbe3;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.12)}.order-print-dialog-card>footer{display:flex;justify-content:flex-end;gap:.7rem;padding:1rem 1.35rem;border-top:1px solid #e5e7eb;background:#fff}.order-print-confirm{min-width:220px}@media(max-width:620px){.order-print-dialog{width:calc(100vw - 1rem);max-height:calc(100vh - 1rem)}.order-print-dialog-card{max-height:calc(100vh - 1rem)}.order-print-dialog-card>header{padding:1rem}.order-print-preview{padding:.5rem}.order-print-preview iframe{height:390px}.order-print-dialog-card>footer{padding:.8rem;flex-direction:column-reverse}.order-print-dialog-card>footer .btn{width:100%}}
.order-quick-days{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.order-quick-days-label{color:var(--muted);font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.order-quick-days .pill{min-height:38px}.order-quick-days .order-day-clear{border-style:dashed}
.order-day-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.9rem 1.2rem;margin-bottom:1rem;padding:.95rem 1.1rem;border:1px solid #a7f3d0;background:linear-gradient(135deg,#ecfdf5,#fff 60%)}.order-day-summary-title{display:grid;gap:.1rem}.order-day-summary-title strong{font-size:1.15rem}.order-day-summary-title small{color:var(--muted)}.order-day-summary-stats{display:flex;flex-wrap:wrap;gap:.7rem;flex:1;justify-content:flex-end}.order-day-summary-stats article{display:grid;gap:.1rem;min-width:7.5rem;padding:.55rem .8rem;border:1px solid #d9ebe8;border-radius:12px;background:#fff}.order-day-summary-stats span{color:var(--muted);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.order-day-summary-stats b{font-size:1.25rem;font-variant-numeric:tabular-nums}.order-day-summary-stats small{color:var(--muted);font-size:.72rem}.order-day-summary-stats .is-income{border-color:#6ee7b7;background:#ecfdf5}.order-day-summary-stats .is-income b{color:#047857}
.order-age-badge.is-completed{display:inline-grid;grid-template-columns:auto 1fr;column-gap:.35rem;align-items:center;border-radius:14px;white-space:normal;text-align:left}.order-age-badge.is-completed::before{grid-row:1/3}.order-age-badge.is-completed small{grid-column:2;font-size:.72rem;font-weight:750;opacity:.85}
@media(max-width:620px){.order-day-summary{align-items:stretch}.order-day-summary-stats{justify-content:stretch}.order-day-summary-stats article{flex:1 1 calc(50% - .4rem);min-width:0}.order-quick-days .pill{flex:1;justify-content:center}.order-quick-days-label{flex-basis:100%}}
/* Owner Orders: compact heading, help disclosure and collapsible "Search & filters" shutter */
.orders-heading{align-items:center;margin-bottom:.9rem}.orders-heading-main{min-width:0;flex:1}.orders-heading-title{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.orders-heading-title h1{font-size:clamp(1.35rem,4.5vw,1.9rem)}
.orders-help{position:relative}.orders-help>summary{display:inline-grid;place-items:center;width:1.7rem;height:1.7rem;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted);font-size:.85rem;font-weight:800;line-height:1;cursor:pointer;list-style:none}.orders-help>summary::-webkit-details-marker{display:none}.orders-help[open]>summary,.orders-help>summary:hover{border-color:var(--primary);color:var(--primary-dark);background:var(--primary-soft)}
.orders-help-body{flex-basis:100%;margin-top:.55rem;padding:.7rem .85rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-alt,#f8fafc);color:var(--muted);font-size:.85rem;line-height:1.5}.orders-help[open]{flex-basis:100%}.orders-help[open]>summary{margin-bottom:0}
.orders-heading .orders-live-toolbar{flex-wrap:wrap;gap:.45rem}
.order-filter-shutter{margin-bottom:.9rem;padding:0;border:1px solid #d9ebe8;background:linear-gradient(135deg,#f3fffd,#fff 55%);overflow:hidden}.order-filter-shutter>summary{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:48px;padding:.6rem 1rem;cursor:pointer;list-style:none;font-weight:800;color:var(--ink);user-select:none}.order-filter-shutter>summary::-webkit-details-marker{display:none}.order-filter-shutter>summary:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.order-filter-shutter-title{display:inline-flex;align-items:center;gap:.5rem;font-size:.95rem}.order-filter-shutter-icon{color:var(--primary-dark);flex:none}.order-filter-shutter-meta{display:inline-flex;align-items:center;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}
.order-filter-on-badge{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .65rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.72rem;font-weight:850}.order-filter-on-badge::before{content:"";width:.4rem;height:.4rem;border-radius:50%;background:#fff}
.order-filter-shutter-chevron{width:.55rem;height:.55rem;margin:0 .2rem .2rem .1rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s ease}.order-filter-shutter[open] .order-filter-shutter-chevron{transform:rotate(-135deg);margin-bottom:-.15rem}
.order-filter-shutter[open]>summary{border-bottom:1px solid #d9ebe8}.order-filter-shutter.has-filters:not([open]){border-color:var(--primary)}
.order-filter-shutter .order-advanced-search{margin:0;padding:.9rem 1rem 1rem;border:0;border-radius:0;background:none;box-shadow:none}
@media(max-width:620px){.order-filter-shutter>summary{padding:.55rem .85rem}.order-filter-shutter .order-advanced-search{padding:.8rem .85rem .9rem}.orders-heading .orders-live-toolbar{margin-top:.6rem}.metric-grid{margin-bottom:.8rem}}
@media(prefers-reduced-motion:reduce){.order-filter-shutter-chevron{transition:none}}

/* Owner Orders board: compact scan cards (click -> full order dialog) */
.managed-order-grid.order-compact-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:.85rem;align-items:stretch}
/* Light card: white surface, hairline border, soft shadow. Status = thin left accent + small chip only (never a dark fill). */
.managed-order-card.order-compact-card{--oc-accent:#cbd5e1;--oc-shadow:0 1px 2px rgba(15,23,42,.05),0 4px 14px rgba(15,23,42,.05);display:flex;flex-direction:column;position:relative;gap:0;min-width:0;margin:0;padding:0;overflow:hidden;background:#fff;border:1px solid var(--line,#dfe7ea);border-radius:12px;box-shadow:var(--oc-shadow);transition:border-color .15s ease,box-shadow .15s ease}
.order-compact-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--oc-accent);pointer-events:none}
.order-compact-card[data-status="new"]{--oc-accent:#e0a526}.order-compact-card[data-status="accepted"],.order-compact-card[data-status="preparing"],.order-compact-card[data-status="ready"]{--oc-accent:#4f8fe0}.order-compact-card[data-status="completed"]{--oc-accent:var(--primary,#0f766e)}.order-compact-card[data-status="cancelled"]{--oc-accent:#c9847e}
/* Waiting time only recolours its own small badge; it must not repaint the whole card (older rules tinted the card pink/amber). */
.managed-order-card.order-compact-card.order-age-warning,.managed-order-card.order-compact-card.order-age-critical{background:#fff;border-color:var(--line,#dfe7ea);box-shadow:var(--oc-shadow)}
.managed-order-card.order-compact-card:hover,.managed-order-card.order-compact-card:focus-within{border-color:#9fd3cc;box-shadow:0 2px 4px rgba(15,23,42,.05),0 10px 24px rgba(15,23,42,.09)}
.order-compact-card .order-compact{position:relative;display:grid;flex:1;align-content:start;align-items:start;justify-content:stretch;gap:.55rem;width:100%;min-height:0;margin:0;padding:.85rem .95rem .8rem 1.15rem;border:0;border-radius:0;background:transparent;color:var(--ink,#142033);box-shadow:none;font-weight:400;line-height:1.35;text-align:left;cursor:pointer;transform:none}
.order-compact-card .order-compact:hover,.order-compact-card .order-compact:focus,.order-compact-card .order-compact:active{background:transparent;color:inherit;box-shadow:none;transform:none}
.order-compact-card .order-compact:focus-visible{outline:2px solid var(--primary,#0f766e);outline-offset:-3px}
.order-compact>span{display:flex;min-width:0}
.oc-top{align-items:center;justify-content:space-between;gap:.5rem}.oc-code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.98rem;font-weight:800;letter-spacing:-.01em;color:var(--ink,#142033)}.oc-status{flex:none;margin-left:auto}.oc-status .status-chip{font-size:.7rem;padding:.2rem .55rem}
.oc-customer{align-items:baseline;gap:.15rem .55rem}.oc-customer strong{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:700;color:var(--ink,#142033)}.oc-customer small{flex:none;color:var(--muted);font-size:.76rem;white-space:nowrap}
.oc-service{align-items:center;gap:.45rem}.order-source-chip{display:inline-block;margin-left:.25rem;padding:.08rem .45rem;border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);border:1px solid var(--line-strong);font-size:.64rem;font-weight:800;letter-spacing:.06em;vertical-align:middle}.oc-service .order-source-chip{flex:none;margin:0}.oc-service{min-height:2rem}
.oc-type{flex:none;display:inline-flex;align-items:center;gap:.35rem;min-height:2rem;padding:.3rem .8rem;border:1.5px solid var(--line);border-radius:999px;background:var(--surface-alt,#f8fafc);color:#334155;font-size:.84rem;font-weight:850;letter-spacing:.01em;line-height:1.1;white-space:nowrap}.oc-type>span[aria-hidden]{font-size:1rem;line-height:1}.oc-type.is-takeaway{border-color:#f0a35e;background:#fff1e0;color:#8a3d06}.oc-type.is-delivery{border-color:#8fb4ee;background:#e6f0ff;color:#1b4a9c}.oc-type.is-dine_in{border-color:#79cdb2;background:#e3f6ee;color:#0a5a43}
/* Table number / pickup / address: second most important thing on the card after the service chip */
.oc-where{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334155;font-size:.8rem;font-weight:600}
.oc-type.is-dine_in+.oc-where,.oc-type.is-dine_in~.oc-where{color:var(--ink,#0f172a);font-size:1.1rem;font-weight:900;letter-spacing:.01em;font-variant-numeric:tabular-nums;line-height:1.15}
.oc-type.is-takeaway+.oc-where,.oc-type.is-takeaway~.oc-where{color:#8a3d06;font-size:.95rem;font-weight:800}
.oc-type.is-delivery+.oc-where,.oc-type.is-delivery~.oc-where{color:#334155;font-size:.8rem;font-weight:600}
.oc-foot{align-items:baseline;justify-content:space-between;gap:.6rem;padding-top:.55rem;border-top:1px solid #edf1f3}.oc-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.76rem;font-weight:600}.oc-total{flex:none;font-size:.98rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink,#142033)}
.oc-age{align-items:center;flex-wrap:wrap;gap:.3rem .4rem}.oc-age .order-age-badge{margin-left:0;padding:.18rem .55rem;font-size:.7rem;font-weight:700;border-radius:999px}.oc-age .order-age-badge::before{width:.4rem;height:.4rem;box-shadow:none}.oc-age .order-age-badge.is-warning{border-color:#f3dba0;background:#fff9e8;color:#8a5a06}.oc-age .order-age-badge.is-critical{border-color:#f1c5c0;background:#fff4f2;color:#b0382e;animation:none}.oc-age .order-age-badge.is-completed{padding:.2rem .6rem;border-radius:12px;font-weight:700}.oc-age .order-age-badge.is-completed small{font-size:.66rem;font-weight:600}
.oc-attention{display:inline-flex;align-items:center;padding:.18rem .5rem;border-radius:999px;background:#fff6dc;color:#8a5a06;font-size:.68rem;font-weight:750}
.oc-open-hint{flex:none;margin-left:auto;color:var(--primary-dark);font-size:.72rem;font-weight:750;opacity:.75}.order-compact:hover .oc-open-hint,.order-compact:focus-visible .oc-open-hint{opacity:1}
.order-detail-source[hidden]{display:none!important}
/* Same full card content as before, now inside the dialog */
.managed-order-detail{display:grid;align-content:start;gap:.8rem;min-width:0;margin:0}.managed-order-detail p{margin:.2rem 0}.managed-order-detail>.inline-form:has(.order-status-actions){display:block;min-width:0}
@media(max-width:620px){.managed-order-detail>.title-row:first-child{align-items:flex-start;flex-wrap:wrap}}
.order-detail-dialog{width:min(860px,calc(100vw - 1.5rem));max-width:none;max-height:calc(100dvh - 1.5rem);padding:0;border:0;border-radius:18px;background:var(--surface,#fff);color:var(--ink,#142033);box-shadow:0 28px 90px rgba(15,23,42,.34);overflow:hidden}
.order-detail-dialog[open]{display:flex;flex-direction:column;animation:orderDialogIn .16s ease-out}.order-detail-dialog::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
@keyframes orderDialogIn{from{opacity:0;transform:translateY(8px) scale(.985)}}
.order-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex:none;padding:.7rem .8rem .7rem 1.15rem;border-bottom:1px solid var(--line);background:var(--surface-alt,#f8fafc)}.order-dialog-head span{color:var(--primary-dark);font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.order-dialog-close{display:inline-grid;place-items:center;width:2.3rem;min-height:2.3rem;height:2.3rem;padding:0;border:0;border-radius:50%;background:#e8eef0;color:#334155;font-size:1.5rem;line-height:1;box-shadow:none}.order-dialog-close:hover{background:#d5dde1;color:#0f172a}
.order-dialog-notice{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .8rem;flex:none;padding:.6rem 1.15rem;border-bottom:1px solid #fcd34d;background:#fffbeb;color:#92400e;font-size:.85rem;font-weight:650}.order-dialog-notice[hidden]{display:none}.order-dialog-notice button{min-height:34px;padding:.3rem .8rem;font-size:.8rem}
.order-dialog-body{flex:1 1 auto;min-height:0;padding:1.1rem 1.15rem 1.3rem;overflow-y:auto;overscroll-behavior:contain}
html:has(.order-detail-dialog[open]){overflow:hidden}
.order-detail-dialog .toast{z-index:1}
@media(max-width:620px){.managed-order-grid.order-compact-grid{grid-template-columns:1fr;gap:.6rem}.order-detail-dialog{width:calc(100vw - .5rem);height:calc(100dvh - .5rem);max-height:calc(100dvh - .5rem);border-radius:14px}.order-dialog-body{padding:.9rem .85rem 1.2rem}.order-dialog-head{padding-left:.9rem}}
@media(prefers-reduced-motion:reduce){.order-detail-dialog[open]{animation:none}.order-compact-card{transition:none}}