/* Operations summary and report refinements. Other forms keep their layout. */
.operations-content{max-width:1600px;padding:20px 22px 36px}
.operations-content>.heading{margin-bottom:12px;gap:12px}
.operations-content>.heading h1{font-size:28px;line-height:1.15;margin:3px 0}
.operations-content>.heading p{font-size:12px;margin-top:4px}
.operations-content>.heading .eyebrow{font-size:9px}
.operations-content .operations-stats{gap:10px;margin-bottom:12px}
.operations-stats .stat{display:block;text-align:left;padding:11px 14px;min-height:78px;font:inherit;color:var(--ink);border-radius:12px}
.operations-stats .stat .row{margin-bottom:5px}
.operations-stats .stat strong{font-size:25px}
.stat-filter{cursor:pointer;transition:border-color .15s,background .15s}
.stat-filter:hover,.stat-filter[aria-pressed=true]{border-color:var(--brand);background:#f5efff}
.stat-filter:focus-visible{outline:3px solid #cbb1ff;outline-offset:2px}
.operations-content .drivers-panel{margin-bottom:10px;border-radius:10px}
.operations-content .drivers-toggle{min-height:40px;padding:8px 12px}
.operations-content .drivers-title,.operations-content .drivers-toggle-label{font-size:11px}
.operations-content .drivers{gap:8px;margin-bottom:8px;padding:0 10px 8px}
.operations-content .driver-chip{padding:8px 10px;min-height:44px;border-radius:9px}
.operations-content .driver-chip .avatar{width:26px;height:26px}
.operations-content>.tabs{margin:0 0 12px;gap:22px}
.operations-content>.tabs .tab{padding:9px 1px;font-size:12px}
.operations-toolbar{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(150px,1fr) minmax(145px,1fr) auto;gap:10px;align-items:end;margin-bottom:10px}
.operations-toolbar label,.operations-toolbar .store-select-label{width:100%;max-width:none;min-width:0;font-size:11px;gap:4px}
.operations-toolbar input,.operations-toolbar select{height:41px;min-height:41px;padding:8px 9px;width:100%;max-width:none;min-width:0;font-size:13px}
.operations-toolbar .more-filters{min-height:41px;padding:9px 12px;font-size:12px;white-space:nowrap}
.operations-content .orders-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.operations-content .bulk-order-wrap{display:flex;flex-direction:column;min-width:0}
.operations-content .order-card{padding:14px;border-radius:13px;height:auto;display:flex;flex-direction:column;flex:1}
.operations-content .order-card .order-head{gap:7px;align-items:flex-start;margin-bottom:9px}
.operations-content .order-head>.row{gap:5px;flex:1;min-width:0}
.operations-content .order-number{font-size:12px;overflow-wrap:anywhere}
.operations-content .order-head .badge{font-size:9px;letter-spacing:.1px;padding:4px 6px;line-height:1.25}
.operations-content .order-head>.badge{flex:none;max-width:110px}
.operations-content .order-card .customer{font-size:14px;margin:7px 0 8px;gap:6px}
.operations-content .order-card .customer a{font-size:11px}
.operations-content .order-card .detail-line{font-size:11px;gap:6px;margin-top:5px;line-height:1.5}
.operations-content .order-card .contact-row{gap:5px;margin-top:8px}
.operations-content .order-card .contact-row .button{min-height:34px;font-size:10px;padding:6px 4px;border-radius:8px}
.operations-content .order-card .contact-row .icon{width:13px;height:13px;flex-basis:13px}
.card-address{min-width:0;flex:1}
.card-address>summary{display:block;list-style:none;cursor:pointer}
.card-address>summary::-webkit-details-marker,.card-extra-products>summary::-webkit-details-marker{display:none}
.card-address-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.card-address[open] .card-address-text{display:block;overflow:visible}
.card-expand-more,.card-expand-less{color:var(--brand-deep);font-size:10px;font-weight:650;line-height:1.6}
details .card-expand-less{display:none}
details[open]>.card-expand-more,details[open]>summary>.card-expand-more{display:none}
details[open]>.card-expand-less,details[open]>summary>.card-expand-less{display:inline}
.card-products{display:flex;gap:7px;align-items:flex-start}
.card-products>.icon{flex:none;width:15px;height:15px;margin-top:2px}
.card-products>div{min-width:0;flex:1}
.card-products ul{list-style:none;padding:0;margin:0;display:grid;gap:2px}
.card-products li{overflow-wrap:anywhere}
.card-extra-products>summary{list-style:none;cursor:pointer;padding-top:3px}
.card-extra-products[open] ul{margin-top:3px}
.operations-content .card-products{padding:8px 10px;margin-top:9px;font-size:10px}
.operations-content .order-card .payment-box{padding:9px 11px;gap:9px;margin-top:9px;border-radius:9px}
.operations-content .order-card .payment-box .eyebrow{font-size:9px;letter-spacing:.25px;line-height:1.4}
.operations-content .order-card .payment-box p{font-size:10px;line-height:1.4;margin-top:3px}
.operations-content .order-card .payment-box strong{font-size:21px;flex:none}
.order-card .delivery-store-charge{justify-content:space-between;gap:10px;font-size:10px;padding:9px 11px;margin-top:8px;border-radius:9px}
.order-card .delivery-store-charge small{display:block;margin-top:3px;font-size:10px}
.order-card .delivery-store-charge strong{font-size:18px;white-space:nowrap}
.card-agency{margin-top:8px;padding:8px 10px;background:#f8f5ff;border:1px solid #e9dfff;border-radius:9px;font-size:11px;color:#62458a}
.card-agency summary{font-weight:650;cursor:pointer}
.card-agency p{margin:7px 0 0;font-size:11px;line-height:1.5}
.operations-content .card-bottom{font-size:10px;padding:10px 0 9px;gap:8px}
.operations-content .card-bottom b{font-size:14px}
.operations-content .order-card>.card-actions{margin-top:auto}
.operations-content .card-actions{padding-top:9px;gap:7px}
.operations-content .card-actions .button{font-size:11px;min-height:36px;padding:8px 10px;border-radius:8px}
.operations-content .order-card>.notice{font-size:10px;padding:8px 10px;margin:0 0 9px;line-height:1.5}
.operations-content .bulk-actions{margin:6px 0 10px}
.operations-content .bulk-actions .button{font-size:11px;padding:6px 10px;min-height:32px}
.operations-content .filter-summary{margin:8px 0 10px;font-size:11px}
.operations-content .bulk-order-wrap:has(.bulk-order-choice) .order-card{height:auto;border-top-left-radius:0}
.operations-content .bulk-order-choice{min-height:26px;width:max-content;max-width:100%;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;padding:3px 8px;background:#f4eeff;font-size:10px}
.operations-content .orders-grid:has(.bulk-order-choice)>.bulk-order-wrap:not(:has(.bulk-order-choice))::before{content:"";height:26px;flex:none}
.bulk-selection-bar{position:sticky;bottom:12px;z-index:15;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px solid #b293ed;border-radius:12px;background:#fff;box-shadow:0 5px 25px #2b174530}
.bulk-selection-bar>b{margin-right:auto;font-size:12px}
.bulk-selection-bar .button{font-size:11px;min-height:36px}
.badge[data-state=queued],.badge[data-state=offered]{background:#fff2d5;color:#89521a}
.badge[data-state=picked_up]{background:#facc15;color:#422006}
.badge[data-state=en_route]{background:#e4efff;color:#164994}
.badge[data-state=accepted],.badge[data-state=delivered]{background:#e4f5e9;color:#176c36}
.badge[data-state=not_delivered]{background:#ffe6e6;color:#a12424}
.badge[data-state=returned]{background:#eee9f5;color:#5b4475}
.badge[data-state=cancelled]{background:#374151;color:#fff}
.report-day-courier+.report-day-courier{border-top:1px solid var(--line)}
.report-day-amounts{display:grid;gap:4px;padding:0 12px 11px}
.report-day-amounts>span{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}
.report-day-amounts b{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink)}
.report-day-amounts .amount-pending,.report-day-amounts .amount-pending b{color:#8b6116}
.report-day-amounts .amount-due,.report-day-amounts .amount-due b{color:#a12424}
#operations-filter-fields{display:grid;gap:12px;min-width:0}
#operations-filter-fields .two-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#operations-filter-fields label{min-width:0}
#operations-filter-fields input,#operations-filter-fields select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#operations-filter-fields input[type=date]{appearance:none;-webkit-appearance:none;inline-size:100%;min-inline-size:0;max-inline-size:100%}
@media(min-width:1280px){.operations-content .orders-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.operations-content{padding:18px 16px 30px}.operations-toolbar{grid-template-columns:minmax(180px,1.3fr) minmax(110px,1fr) minmax(110px,1fr) auto;gap:8px}}
@media(max-width:820px){.operations-content{padding:14px 12px 28px}.operations-content .orders-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-content>.heading h1{font-size:25px}.operations-toolbar input,.operations-toolbar select{font-size:16px}.operations-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}.operations-toolbar .search-label{grid-column:1/-1}.operations-toolbar .store-select-label,.operations-toolbar .state-label{grid-column:auto}.operations-content .order-card .contact-row .button,.operations-content .card-actions .button{min-height:40px}.operations-toolbar .more-filters{font-size:11px;min-height:41px;padding:8px}.operations-toolbar .more-filters .icon{width:15px;height:15px}}
@media(max-width:650px){.operations-content{padding:10px 10px 26px}.operations-content .orders-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px}.operations-content>.heading{gap:8px;align-items:center;margin-bottom:10px}.operations-content>.heading p{font-size:11px;max-width:250px}.operations-content .operations-stats{gap:8px;margin-bottom:10px}.operations-stats .stat{min-height:70px;padding:10px 12px}.operations-stats .stat strong{font-size:24px}.operations-content .drivers-toggle{padding:8px 10px;gap:6px;min-height:38px}.operations-content .drivers-title{gap:4px}.operations-content .drivers-count{font-size:10px}.operations-content .drivers-toggle-label{font-size:10px;white-space:nowrap}.operations-content>.tabs{margin-bottom:10px}.operations-content .order-card{padding:12px;border-radius:12px}.operations-content .order-card .customer{font-size:15px}.operations-content .order-card .detail-line{font-size:12px}.operations-content .card-products{font-size:11px}.operations-toolbar .more-filters span{font-size:11px}.operations-toolbar select{padding:8px 21px 8px 7px}.operations-content .bulk-selection-bar{bottom:calc(8px + env(safe-area-inset-bottom,0px));gap:6px;padding:9px}.bulk-selection-bar>b{flex-basis:100%}.bulk-selection-bar .button{flex:1 1 auto;font-size:11px;padding:9px 7px;min-height:40px}dialog:has(#operations-filter-fields){width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0;border-radius:16px 16px 0 0}dialog:has(#operations-filter-fields) .modal-body{padding:14px}#operations-filter-fields input,#operations-filter-fields select{font-size:16px;min-height:44px}#operations-filter-fields .two-cols{gap:8px}}
