/* Stylme Partner: the established navy/white world, tuned for daily shop work. */
.portal-shell{--paper:#f5f7fa;--line:#e1e7ef;--muted:#52647a;--shadow:0 16px 48px #10213b18;font-size:14px}
.portal-shell ::selection{background:#cbdcf7;color:var(--ink)}
.portal-shell :is(input,textarea){caret-color:var(--accent)}
.portal-shell :is(button,a,summary){cursor:pointer}
.portal-shell :is(button,a,input,textarea,select){transition:background-color 160ms,border-color 160ms,color 160ms}
.portal-shell :is(input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.portal-shell .sidebar{padding:24px 14px 18px;scrollbar-color:#536984 #10213b}
.portal-shell .wordmark{letter-spacing:-.035em}
.portal-shell .workspace-label{margin:20px 10px 16px}
.portal-shell .portal-nav{gap:3px}
.portal-shell .nav-group{font-size:12px;margin:18px 12px 6px;color:#aebed3}
.portal-shell .portal-nav button{min-height:42px;padding:10px 12px;border-radius:8px}
.portal-shell .portal-nav button.is-active{background:#244569;color:#fff}
.portal-shell .portal-nav .nav-copy strong{font-size:13px;font-weight:550}
.portal-shell .workspace-topbar{min-height:72px;gap:16px;padding:14px 24px}
.portal-shell .workspace-tools{gap:8px}
.portal-shell .workspace-search{max-width:520px}
.portal-shell .toolbar-icon{width:40px;height:40px}
.portal-shell .portal-main{padding:28px 28px 70px}
.portal-shell .page-head h1{font-size:28px;letter-spacing:-.025em}
.portal-shell .page-head p{font-size:14px;line-height:1.6;max-width:65ch}
.portal-shell .panel{border-radius:14px}
.portal-shell .workbench-list{padding:22px}
.portal-shell .workbench-search{padding:0 12px;min-height:44px}
.portal-shell .workbench-search input{height:42px}
.portal-shell .operational-table td{padding:18px 14px}
.portal-shell .operational-table th{padding:13px 14px}
.portal-shell .record-photo{width:52px;height:62px;flex-basis:52px;border-radius:8px}
.portal-shell .record-identity strong{font-size:14px;line-height:1.45}
.portal-shell .operational-table .wrap-cell{max-width:220px}
.portal-shell .review-workspace.has-detail{grid-template-columns:minmax(0,1fr)}
.portal-shell .review-workspace .review-detail{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(740px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:none;padding:0;border:0;border-radius:16px;background:#fff;color:var(--ink);box-shadow:var(--shadow);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b5c2d2 #fff}
[dir=rtl] .portal-shell .review-workspace .review-detail{inset:16px auto 16px 16px}
.review-detail::backdrop{background:#10213b66}
.portal-shell .review-detail .panel-head{position:sticky;top:0;z-index:2;padding:20px 24px;margin:0;background:#fff;border-block-end:1px solid var(--line)}
.portal-shell .review-detail .panel-head h2{font-size:20px;min-width:0;overflow-wrap:anywhere}
.portal-shell .review-detail .panel-head .button{flex-shrink:0;min-height:44px}
.portal-shell .review-detail-body{padding:24px}
.portal-shell .review-detail .order-card__head{flex-direction:row;justify-content:space-between}
.portal-shell .detail-product-photo{height:240px;max-width:100%;object-fit:contain;border-radius:12px;background:#f4f6f8}
.portal-shell .record-detail-actions{display:flex;flex-wrap:wrap;gap:10px}
.portal-shell .record-detail-actions .button{width:auto;min-height:44px}
.portal-shell .record-facts>div{font-size:14px;padding:14px 0}
.portal-shell .record-facts dd{max-width:65%;line-height:1.6}
.portal-shell .product-workspace-tabs{display:flex;gap:4px;border-block-end:1px solid var(--line);margin:-8px 0 24px;overflow:auto}
.portal-shell .product-workspace-tabs button{flex:1;min-height:48px;padding:12px 8px;border:0;border-block-end:2px solid transparent;border-radius:0;background:none;white-space:nowrap;font-weight:600;color:var(--muted)}
.portal-shell .product-workspace-tabs [aria-selected=true]{color:var(--accent);border-block-end-color:var(--accent);background:#f5f8fe}
.portal-shell .product-workspace-content{min-width:0}
.portal-shell .product-editor-form{gap:22px}
.portal-shell .product-category-field{grid-column:1/-1}
.portal-shell .category-multiselect{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:1px solid var(--line);border-radius:12px;padding:16px}
.portal-shell .category-multiselect p{grid-column:1/-1;font-size:13px;margin:0 0 8px}
.portal-shell .category-multiselect legend{padding:0 6px;font-size:14px;font-weight:600}
.portal-shell .category-multiselect .check-row{min-height:36px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.editor-footer{position:sticky;bottom:-24px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px -24px -24px;padding:16px 24px;border-block-start:1px solid var(--line);background:#fff;z-index:1}
.editor-footer .button{min-height:44px;flex-shrink:0}
.save-feedback{margin:0;font-size:13px;line-height:1.55;color:#415873;overflow-wrap:anywhere}
.save-feedback.is-error{color:#aa2439}
.stock-matrix{border-block-start:1px solid var(--line)}
.stock-matrix-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:20px;align-items:center;padding:16px 0;border-block-end:1px solid var(--line)}
.stock-option{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;align-items:baseline}
.stock-option strong{font-size:16px}.stock-option span{font-size:14px}.stock-option small{grid-column:1/-1;color:var(--muted);font-size:12px}
.stock-matrix-row .field{font-size:12px}.stock-matrix-row input{font-variant-numeric:tabular-nums;font-size:16px}
.stock-matrix-row .button{min-height:44px}
.mobile-record-list{display:none}
.mobile-search-toggle{display:none}
.completed-pickups{border-block:1px solid var(--line);padding:14px 0;margin-block:12px}
.completed-pickups>summary{font-size:14px;color:var(--muted);min-height:30px}
.delivery-next-label{font-size:15px;font-weight:650;padding-block:8px}
.is-muted{color:var(--muted)}
@keyframes record-arrive{from{transform:translateX(18px);opacity:.8}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:no-preference){.review-detail[open]{animation:record-arrive 210ms cubic-bezier(.2,.8,.2,1)}}
@media(max-width:780px){
 .portal-shell .sidebar{padding:6px 12px calc(6px + env(safe-area-inset-bottom));gap:4px}
 .portal-shell .nav-group{display:none}
 .portal-shell.partner-more-open .nav-group{display:block;grid-column:1/-1;width:100%;margin:16px 12px 4px}
 .portal-shell .portal-nav button{min-height:48px}
 .portal-shell .workspace-topbar{padding:12px 16px;gap:8px;flex-wrap:wrap}
 .portal-shell .workspace-store-context{flex:1;min-width:0}
 .portal-shell .workspace-store-context strong{font-size:14px}
 .portal-shell .workspace-tools{gap:6px}.portal-shell .workspace-tools #pwa-controls{display:none}
 .portal-shell .workspace-search{display:none;order:4;width:100%;max-width:none;margin-top:8px}
 .portal-shell .workspace-search.is-open{display:flex}
 .mobile-search-toggle{display:inline-grid}
 .portal-shell .portal-main{padding:22px 16px calc(100px + env(safe-area-inset-bottom))}
 .portal-shell .page{gap:18px}.portal-shell .page-head{min-height:0;align-items:flex-start;flex-wrap:wrap;gap:14px}
 .portal-shell .page-head h1{font-size:24px}.portal-shell .page-head p{font-size:14px}
 .portal-shell .workbench-list{padding:16px;border-radius:14px}
 .portal-shell .workbench-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .portal-shell .workbench-search{grid-column:1/-1;width:100%;min-width:0}
 .portal-shell .workbench-filters>select{width:100%;max-width:none;font-size:13px}
 .portal-shell .workbench-list>.table-wrap:has(table){display:none}
 .portal-shell .workbench-list>.table-wrap:has(.empty-state){display:block;border:0}
 .mobile-record-list{display:grid;gap:0}
 .mobile-record{padding:18px 0;border-block-start:1px solid var(--line);min-width:0}
 .mobile-record:first-child{padding-top:4px;border:0}.mobile-record:last-child{padding-bottom:0}
 .mobile-record .record-identity{min-width:0}.mobile-record .record-identity strong{max-width:none;font-size:15px}
 .mobile-record-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
 .mobile-record-facts>div{min-width:0}.mobile-record-facts dt{font-size:12px;color:var(--muted);margin-bottom:5px}
 .mobile-record-facts dd{margin:0;font-size:14px;overflow-wrap:anywhere}.mobile-record-facts .category-labels{font-size:12px}
 .mobile-record>.button{width:100%;min-height:44px;font-size:14px}
 .mobile-record-heading,.mobile-order-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}
 .mobile-record p{margin:10px 0;font-size:14px}.mobile-order-meta{margin:10px 0 16px;font-size:13px}
 .portal-shell .review-workspace .review-detail,.portal-shell[dir] .review-workspace .review-detail,[dir=rtl] .portal-shell .review-workspace .review-detail{inset:0;margin:0;width:100%;height:100dvh;border-radius:0;padding:0}
 .portal-shell .review-detail .panel-head{padding:14px 16px;min-height:70px}.portal-shell .review-detail .panel-head h2{font-size:17px}
 .portal-shell .review-detail-body{padding:20px 16px calc(20px + env(safe-area-inset-bottom))}
 .portal-shell .review-detail .order-card__head{flex-direction:column}
 .portal-shell .review-detail .record-facts>div{font-size:13px}
 .portal-shell .product-workspace-tabs{margin-bottom:20px;gap:0}.portal-shell .product-workspace-tabs button{font-size:13px;padding:12px 8px}
 .portal-shell .category-multiselect{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
 .editor-footer{margin-inline:-16px;margin-bottom:-20px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));bottom:calc(-20px - env(safe-area-inset-bottom))}
 .stock-matrix-row{grid-template-columns:minmax(0,1fr) 96px;gap:10px 16px;padding:16px 0}.stock-matrix-row>.button{grid-column:1/-1;width:max-content;min-height:44px}
 .table-pagination>div{flex-wrap:wrap}.portal-shell .table-pagination .button{min-height:44px}
 .portal-shell .toast{bottom:calc(86px + env(safe-area-inset-bottom))}
}
.dialog:has(.product-editor-form){width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.dialog:has(.product-editor-form) .dialog__head{position:sticky;top:0;background:#fff;z-index:2}
.dialog .product-editor-form .editor-footer{margin-inline:-21px;margin-bottom:-21px;bottom:-21px}
@media(max-width:780px){.dialog:has(.product-editor-form){width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.dialog:has(.product-editor-form) .dialog__head{padding:16px}.dialog>.product-editor-form{padding:20px 16px}.dialog .product-editor-form .editor-footer{margin-inline:-16px}}
@media(prefers-reduced-motion:reduce){.portal-shell *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.portal-shell .detail-product-photo{display:grid;place-items:center;overflow:hidden}
.portal-shell .detail-product-photo img{width:100%;height:100%;object-fit:contain}
.portal-shell .review-workspace .review-detail{max-width:calc(100vw - 32px)}
@media(max-width:780px){.portal-shell .review-workspace .review-detail{max-width:100%;max-height:100dvh}.portal-shell .detail-product-photo{height:200px}}

/* Image-first Library: existing originals and assignments, with quiet controls. */
.portal-shell .library{padding:24px;gap:22px}
.portal-shell .library .gallery-head{justify-content:flex-end}
.portal-shell .library-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px}
.portal-shell .library-card{border-radius:12px;background:#fafafa;border-color:#e5e7eb}
.portal-shell .library-card .photo-thumb{aspect-ratio:4/5;background:#f5f5f4}
.portal-shell .library-card .photo-thumb img{object-fit:contain;padding:10px}
.portal-shell .photo-card-caption{background:#fff;padding:12px 14px}
.portal-shell .library-usages{background:#fff}
.portal-shell .gallery-tabs button{border-radius:6px;font-size:13px}
@media(max-width:780px){.portal-shell .library{padding:16px;gap:18px}.portal-shell .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portal-shell.partner-more-open .workspace-tools #pwa-controls{display:flex}}

.portal-shell .compact-refunds{gap:12px}.portal-shell .compact-refunds .page-head{min-height:0}
.portal-shell .compact-workbench-controls{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.compact-control-buttons,.record-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.compact-filter-fields{display:flex;gap:8px}.icon-control{width:44px;height:44px;padding:10px!important}
.portal-shell .compact-workbench-controls [hidden]{display:none!important}
.quick-receipt:has([role=status]:empty){display:contents}.quick-receipt .button{font-size:12px;min-height:40px}
@media(max-width:780px){.portal-shell .compact-workbench-controls{display:flex}.portal-shell .compact-workbench-controls .workbench-search{flex:1;min-width:180px}.mobile-record .record-actions>.button,.mobile-record .record-actions>.quick-receipt{flex:1}.mobile-record .record-actions .button{width:100%}}

.portal-shell .page{gap:16px}.portal-shell .page-head{min-height:0}.portal-shell .workbench-list{padding:18px}
.portal-shell .operational-table td{padding-block:12px}.portal-shell .record-photo{width:42px;height:48px;min-width:42px}.portal-shell .record-identity{gap:12px}
.compact-add-product{min-height:44px;padding:10px 16px!important;gap:6px;font-size:13px!important;display:flex;align-items:center}
.icon-control.has-active-filters{position:relative;border-color:var(--navy)}.icon-control.has-active-filters::after{content:attr(data-active-count);position:absolute;inset-block-start:-6px;inset-inline-end:-6px;background:#10213b;color:#fff;border-radius:50%;width:18px;height:18px;font-size:11px;display:grid;place-items:center}
.portal-shell .library .gallery-filterbar.compact-workbench-controls{display:flex;flex-wrap:wrap}.portal-shell .library .gallery-tabs{width:100%}
@media(max-width:780px){
 .portal-shell .mobile-record{padding:12px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}
 .mobile-record-identity{grid-column:1/-1}.mobile-record .record-identity strong{font-size:14px}
 .mobile-record-facts{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0}.mobile-record-facts>div{display:flex;gap:5px;align-items:center}.mobile-record-facts dt{margin:0;font-size:11px}.mobile-record-facts dd{font-size:12px}
 .mobile-record .record-actions{justify-content:flex-end}.mobile-record .record-actions>.button{min-height:40px;width:auto;flex:initial;padding:8px 12px}
 .mobile-record-heading,.mobile-order-meta,.mobile-record>p{grid-column:1/-1;margin:0!important}.mobile-record>.button{width:auto;min-height:40px;grid-column:2;grid-row:3}
 .compact-filter-fields{flex-wrap:wrap;width:100%}.compact-filter-fields select{max-width:100%;min-height:44px}
}

.portal-shell .workspace-search{display:none;max-width:440px}.portal-shell .workspace-search.is-open{display:flex}.mobile-search-toggle{display:inline-grid}
.portal-shell .delivery-search input[hidden]{display:none!important}.portal-shell .delivery-search input{max-width:320px;width:min(320px,100%)}
.portal-shell .compact-filter-fields select{width:auto;max-width:240px}.portal-shell .compact-workbench-controls .workbench-search{max-width:320px;width:320px}
@media(max-width:780px){.portal-shell .workspace-search.is-open{max-width:none}.portal-shell .compact-workbench-controls .workbench-search{width:min(320px,100%);min-width:0;flex:initial}}

/* Delivery: one open job, one current stop, one persistent handoff action. */
.portal-shell--delivery .page--delivery-worker{display:grid;gap:12px;max-width:920px;margin-inline:auto}
.page--delivery-worker .delivery-page-head{margin:0}
.page--delivery-worker .delivery-page-head h1{font-size:24px;margin:0}
.delivery-work-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.delivery-queue-tabs{display:flex;gap:4px;flex-wrap:wrap}
.delivery-queue-tabs button{display:flex;align-items:center;gap:8px;min-height:44px;border:0;border-radius:8px;padding:8px 12px;background:transparent;color:#52647a;font-size:14px;font-weight:600}
.delivery-queue-tabs [aria-pressed=true]{background:#e8eef7;color:#163b69}
.delivery-queue-tabs .delivery-count{font-variant-numeric:tabular-nums;background:none;border:0;padding:0;color:inherit}
.page--delivery-worker .delivery-search{margin:0;gap:4px}
.page--delivery-worker>input{width:min(100%,380px);min-height:44px;padding:10px 12px;border:1px solid #b8c6d9;border-radius:8px;font-size:15px}
.page--delivery-worker>input[hidden],.delivery-action-bar[hidden]{display:none!important}
.page--delivery-worker .delivery-announcement:empty{display:none}
.delivery-work-record{padding:0!important;list-style:none;box-shadow:none!important;overflow-wrap:anywhere}
.delivery-record-summary{display:grid;gap:8px;min-height:44px;padding:16px;cursor:pointer;list-style:none}
.delivery-record-summary::-webkit-details-marker{display:none}
.delivery-record-summary .delivery-card-heading{margin:0;gap:8px}
.delivery-record-summary .delivery-payment{margin:0;padding:0;background:none;border:0;font-size:14px}
.delivery-record-meta{display:flex;gap:12px;align-items:center;justify-content:space-between;color:#52647a;font-size:13px}
.delivery-record-meta .workspace-icon{width:16px;height:16px}
.delivery-work-record[open] .delivery-record-meta .workspace-icon{transform:rotate(180deg)}
.delivery-work-body{padding:0 16px 16px;border-top:1px solid var(--line)}
.delivery-work-body .delivery-stop-label{margin:14px 0 8px;font-size:13px;color:#415873;font-weight:600}
.delivery-work-body .pickup-stop{list-style:none;padding:0;border:0;background:none;border-radius:0;margin:0}
.delivery-work-body .pickup-stop.is-next{padding:0;background:none;border:0}
.delivery-work-body .pickup-stop h3,.delivery-work-body .delivery-customer h3{font-size:18px;margin:0;line-height:1.5}
.delivery-work-body .pickup-number{width:26px;height:26px;font-size:13px}
.delivery-work-body .pickup-address{margin:8px 0;font-size:15px;line-height:1.55;max-width:70ch}
.delivery-package-count{font-size:14px;margin:6px 0 12px;color:#415873}
.delivery-work-body .pickup-links{gap:8px;margin:0 0 12px}
.delivery-work-body .pickup-links .button,.delivery-work-body .delivery-map-links .button{min-height:44px;font-size:14px;padding:10px 12px}
.delivery-work-body .pickup-links small{font-size:13px;color:#52647a}
.delivery-work-body .delivery-customer{margin:0;padding:8px 0 12px;border:0;background:none;border-radius:0}
.delivery-work-body .delivery-customer .button{display:inline-flex;flex-wrap:wrap;gap:8px;min-height:44px;font-size:14px}
.delivery-work-body .delivery-notes{display:grid;gap:4px;font-size:14px;line-height:1.55;max-width:70ch;margin:12px 0;color:#415873}
.delivery-work-body .delivery-route{margin-top:12px}
.delivery-work-body .delivery-route>summary{min-height:48px;font-size:14px}
.delivery-work-body .pickup-stops{margin:0;padding:0;gap:0}
.delivery-work-body .other-delivery-stops .pickup-stop{padding:14px 0;border-top:1px solid var(--line)}
.delivery-action-bar{position:fixed;z-index:8;inset-inline-start:240px;inset-inline-end:0;bottom:0;display:flex;align-items:center;gap:12px;background:#fff;border-top:1px solid var(--line);padding:14px 28px calc(14px + env(safe-area-inset-bottom))}
[dir=rtl] .delivery-action-bar{inset-inline-start:240px;inset-inline-end:0}
.delivery-action-bar .worker-main-button{width:auto;flex:1;min-width:0;max-width:720px;min-height:48px;font-size:15px;font-weight:600;white-space:normal;line-height:1.5}
.delivery-action-bar .delivery-action-reference{font-size:13px;color:#415873}
.page--delivery-worker.has-delivery-action{padding-bottom:80px}
.delivery-action-bar .icon-control{min-width:44px;min-height:48px}
.order-secondary-details{border-top:1px solid var(--line);padding:6px 0;color:var(--muted)}
.order-secondary-details>summary,.order-more-actions>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px}
.order-secondary-details>summary::after,.order-more-actions>summary::after{content:'+';margin-inline-start:10px;font-size:18px}
.order-secondary-details[open]>summary::after,.order-more-actions[open]>summary::after{content:'−'}
.portal-shell .review-detail .order-card--clean .order-card__head{flex-direction:row;gap:12px}
.order-card--clean .order-card__identity{min-width:0;overflow-wrap:anywhere}
.order-secondary-details[open]>summary{margin-bottom:10px}
.order-card--clean .order-card__actions{background:#fff;align-items:center}
.order-card--clean .order-card__actions>.button:not(.button--secondary){flex:1;min-height:48px}
.order-more-actions{margin-inline-start:auto}.order-more-actions[open]{flex-basis:100%}
.order-product-options span{background:#f5f6f8;border-radius:5px;padding:4px 7px}
.order-product-quantity{background:#edf2f8;border-radius:8px;padding:7px 10px;min-width:45px;text-align:center}
.delivery-action-bar{flex-wrap:wrap}
.delivery-next-stop{flex-basis:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}
.delivery-next-address{display:grid;gap:3px;min-width:0}
.delivery-next-address strong{font-size:17px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.delivery-next-address span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.delivery-next-stop small{font-size:12px;color:#52647a}
.delivery-next-money{display:grid;gap:4px;text-align:end}
.delivery-next-money bdi{font-size:22px;font-weight:700;color:#182c42;font-variant-numeric:tabular-nums}
.delivery-next-links,.delivery-next-links .delivery-map-links{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.delivery-next-links .button{min-height:44px;padding:9px 12px;font-size:13px}
.page--delivery-worker.has-delivery-action:has(.delivery-next-stop){padding-bottom:220px}
@media(max-width:780px){
 .delivery-next-stop{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-bottom:8px}
 .delivery-next-links{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .delivery-next-links .delivery-map-links{display:contents}
 .delivery-next-links .button{justify-content:center;padding:9px 5px;font-size:12px;min-width:0}
 .delivery-next-links>.delivery-notes{grid-column:1/-1}
 .delivery-next-money{max-width:125px}
 .delivery-next-money bdi{font-size:20px}
 .page--delivery-worker.has-delivery-action:has(.delivery-next-stop){padding-bottom:290px}
}
.page--delivery-history .delivery-page-head{margin:0}
.page--delivery-history .delivery-phone-card{box-shadow:none}
@media(max-width:780px){
 .portal-shell--delivery .portal-main{padding:16px 12px calc(100px + env(safe-area-inset-bottom))}
 .delivery-work-toolbar{gap:8px;flex-wrap:wrap}
 .delivery-queue-tabs{gap:0;flex-wrap:nowrap}.delivery-queue-tabs button{padding:8px;gap:6px;font-size:13px}
 .page--delivery-worker .delivery-search .button{width:44px;height:44px;min-height:44px;padding:0}
 .delivery-record-summary{padding:12px}
 .delivery-work-body{padding:0 12px 12px}
 .delivery-action-bar{inset-inline:0!important;bottom:calc(76px + env(safe-area-inset-bottom));padding:10px 12px;gap:8px}
 .delivery-action-bar .delivery-action-reference{display:none}
 .delivery-work-body .pickup-links{flex-wrap:wrap}
 .page--delivery-worker .delivery-phone-card{scroll-margin-block:100px}
}

/* Focused daily-work helpers use the existing portal tokens. */
.workspace-refresh-state{padding:10px 14px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:14px;margin-bottom:12px}
.workspace-refresh-state .load-error{padding:8px}.workspace-refresh-state h1{font-size:17px;margin:0 0 8px}
.work-alert{position:relative}.work-count{position:absolute;top:-4px;inset-inline-end:-4px;min-width:20px;height:20px;border-radius:12px;background:#cc3038;color:#fff;font:600 12px/20px sans-serif;text-align:center}
.work-alert.has-new-work{outline:2px solid #2563eb;outline-offset:2px}.work-alert.is-offline{color:#8b4b10}
.work-update-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.restock-rows{max-height:58dvh;overflow:auto}.restock-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 62px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.restock-row>div{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.restock-row input{width:100%;min-height:44px}.restock-row small{color:#19734d}
@media(max-width:520px){.restock-row{grid-template-columns:minmax(0,1fr) 85px;gap:8px}.restock-row small{grid-column:1/-1}}

.publish-readiness{display:flex;flex-wrap:wrap;gap:8px;padding-block:12px}.publish-readiness h3{width:100%;margin:0 0 4px}.publish-readiness .button{min-height:44px}

.order-products{padding-block:12px;border-top:1px solid var(--line)}.order-products h3{margin:0 0 8px;font-size:15px}
.order-products-list{list-style:none;margin:0;padding:0}.order-product-row{display:flex;align-items:center;gap:12px;padding:8px 0}.order-product-row+li{border-top:1px solid var(--line)}
.order-product-row .photo-thumb{width:40px;height:48px;flex:none}.order-product-info{flex:1;min-width:0;overflow-wrap:anywhere}.order-product-info>strong{font-size:14px}
.order-product-options{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:13px;color:var(--muted)}.order-product-quantity{display:grid;gap:4px;text-align:center;flex:none}.order-product-quantity small{font-size:12px;color:var(--muted)}

.delivery-route-summary{display:grid;gap:6px;margin-block:10px}.delivery-route-summary>div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px;align-items:start}.delivery-route-summary small{font-size:12px;color:var(--muted)}.delivery-route-summary span{font-size:14px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Daily Store work: compact summary, stage queues and a readable stock matrix. */
.owner-orders-mobile{display:none}
.portal-shell .owner-orders-mobile .button{min-height:44px}
@media(max-width:780px){.owner-orders-desktop{display:none}.owner-orders-mobile{display:grid}}
.portal-shell .shop-metrics--strip{display:flex;flex-wrap:wrap;gap:0;background:white;border:1px solid var(--line);border-radius:10px}
.portal-shell .shop-metrics--strip .shop-metric{flex:1;min-width:140px;border:0;border-radius:0;box-shadow:none;padding:12px 16px;gap:8px;background:none}
.shop-metrics--strip .shop-metric small,.shop-metrics--strip .shop-metric-icon{display:none}
.portal-shell .shop-metrics--strip .shop-metric strong{font-size:21px}
.portal-shell .store-management{margin-top:10px;border-top:1px solid #40536d;padding-top:10px}
.store-management>summary{padding:12px;min-height:44px;color:#d6e1ef;cursor:pointer}.store-management button{width:100%}
.workbench-list>.segmented{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:14px}
.workbench-list>.segmented button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px}.stage-count{font-variant-numeric:tabular-nums;font-size:12px}
.record-sequence{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;color:var(--muted)}
.order-card--clean .order-card__actions{position:sticky;bottom:0;background:white;padding:12px 0;margin-bottom:0;border-top:1px solid var(--line);z-index:1}
.order-card--clean .order-card__head{padding-bottom:4px}.order-card--clean .order-summary-row{margin-block:8px}
.order-product-options{color:#34465c;font-size:14px;font-weight:600}.order-product-quantity strong{font-size:20px}
.stock-grid-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px}
.stock-grid{width:100%;border-collapse:collapse}.stock-grid th,.stock-grid td{padding:8px;border-bottom:1px solid var(--line);text-align:center}
.stock-grid th{background:#f5f7fa;color:#34465c;font-size:13px}.stock-grid th:first-child{position:sticky;inset-inline-start:0;z-index:1}
.stock-grid-cell{display:grid;gap:4px;min-width:88px;padding:4px;border-radius:6px}.stock-grid-cell input{width:88px;min-height:44px;text-align:center;font-size:16px;margin:auto}
.stock-grid-cell small{font-size:12px;color:var(--muted)}.stock-grid-cell .button{font-size:12px;min-height:44px;padding:6px}
.stock-grid-cell.is-changed{background:#e8f1ff;outline:1px solid #799cc9}.stock-change-count{font-size:13px;color:var(--muted)}.stock-mobile-color{display:none}
@media(min-width:1180px){
 .portal-shell .review-workspace.review-workspace--split.has-detail{display:grid;grid-template-columns:minmax(340px,1fr) minmax(360px,1fr);gap:16px;align-items:start}
 .portal-shell .review-workspace--split .review-detail[open]{position:sticky!important;top:12px;inset-inline:auto!important;margin:0!important;width:100%!important;max-width:none!important;height:auto!important;max-height:calc(100dvh - 24px);min-height:0;box-shadow:none}
 .review-workspace--split.has-detail .workbench-list{padding:12px;min-width:0}
 .review-workspace--split.has-detail .workbench-list .table-wrap{display:none}
 .review-workspace--split.has-detail .mobile-record-list{display:grid}
 .review-workspace--split.has-detail .mobile-record{padding:12px}
 .portal-shell .review-workspace--split .review-detail-body{padding:16px}
}
@media(max-width:780px){
 .portal-shell .store-management{display:none;width:100%;grid-column:1/-1}
 .portal-shell.partner-more-open .store-management{display:block}
 .stock-mobile-color{display:block}.stock-color-inactive{display:none}
 .shop-metrics--strip .shop-metric{min-width:45%!important;padding:10px!important}
}

.nav-work-count{margin-inline-start:auto;font-size:12px;padding:2px 7px;border-radius:10px;background:#244569;color:white}.stock-grid-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.review-workspace--split .mobile-order-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.review-workspace--split .mobile-order-meta>span{direction:ltr;unicode-bidi:isolate}.review-workspace--split .mobile-order-meta>strong{direction:ltr;unicode-bidi:isolate}.workbench-list>.segmented button{font-size:13px}


.updates-preview{position:fixed;inset:auto;inset-block-start:68px;inset-inline-end:16px;margin:0;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 100px);padding:0;border:1px solid #e6e8eb;border-radius:18px;background:#fff;color:#181a1d;box-shadow:0 16px 60px #10182826}
.updates-preview::backdrop{background:#10182824}
.updates-preview header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #e6e8eb}
.updates-preview__body{max-height:55dvh;overflow:auto;padding:8px 12px;overscroll-behavior:contain}
.updates-preview__body>p{padding:8px}
.updates-preview .update-card{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:12px 4px;background:white;border:0;border-bottom:1px solid #eef0f3;text-align:start;cursor:pointer}
.updates-preview .update-card p{margin:4px 0 0;font-size:13px;line-height:1.5;color:#697079}
.updates-preview footer{padding:10px 12px;border-top:1px solid #e6e8eb}
.updates-preview button:focus-visible{outline:2px solid #245bc4;outline-offset:2px}
