/* Staff ordering extends the existing sky and liquid-glass workspace. */
.ordering-customer{display:grid;grid-template-columns:minmax(280px,1fr) minmax(240px,1fr);gap:28px;padding:22px 24px;align-items:center}
.ordering-customer-picker,.ordering-customer-address{min-width:0}
.ordering-customer-picker label{display:block}
.ordering-customer-picker label>span{display:block;font-size:12px;margin-bottom:8px;font-weight:600}
.ordering-customer-picker select{min-height:46px;max-width:100%;font-size:14px;line-height:1.25;padding:8px 34px 8px 12px;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23385e75' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-size:12px 8px;background-repeat:no-repeat}
.ordering-customer-picker p,.ordering-caption{font-size:12px;color:var(--muted);line-height:1.8;margin-top:9px}
.ordering-customer-address{border-left:1px solid var(--line);padding-left:26px;overflow-wrap:anywhere}
.ordering-customer-address b{display:block;font-size:17px;margin-bottom:7px}
.ordering-customer-address span,.ordering-customer-address p{font-size:13px;line-height:1.8}
.ordering-customer-address small{display:block;margin-top:7px}
.staff-order-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.ordering-products{min-width:0}
.ordering-products .catalog-search{margin-bottom:18px}
.ordering-products .catalog-search input{max-width:none;min-height:44px}
.ordering-products .real-catalog{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));padding-bottom:0;gap:18px}
.ordering-products .real-catalog .product{min-width:0}
.ordering-products .product-art{height:150px}
.ordering-products .product-body h3{overflow-wrap:anywhere}
.ordering-products .product-price{min-height:48px;align-items:center}
.ordering-products .product-price .gold{font-size:12px;line-height:1.7}
.ordering-products .cart-quantity input{min-height:44px;font-size:16px;width:86px}
.ordering-products input:disabled{cursor:not-allowed;opacity:.6}
.ordering-summary{position:sticky;top:88px;padding:22px;min-width:0}
.ordering-summary-title b{display:block;font-size:17px}
.ordering-summary-title small{display:block;margin-top:6px;overflow-wrap:anywhere}
.ordering-summary-lines{margin:18px 0;max-height:45vh;overflow:auto}
.ordering-summary-lines>div{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}
.ordering-summary-lines>div>span{min-width:0;overflow-wrap:anywhere}
.ordering-summary-lines small{display:block;margin-top:5px}
.ordering-summary-lines>div>b{white-space:nowrap}
.ordering-summary-total{border-top:1px solid var(--line);padding:16px 0}
.ordering-summary-total span{font-size:12px;display:block;color:var(--muted)}
.ordering-summary-total strong{font-size:27px;color:var(--green);display:block;margin-top:4px;overflow-wrap:anywhere}
.ordering-handler{font-size:12px;color:var(--muted);margin:18px 0}
.ordering-checkout-customer{padding:0 0 18px}
.ordering-checkout-customer b{display:block;font-size:16px}
.ordering-checkout-customer small,.order-handler{display:block;margin-top:6px;line-height:1.8}
.customer-row-actions{display:flex;gap:8px;flex-wrap:wrap}
.ordering-aside{display:grid;gap:14px;position:sticky;top:88px;min-width:0}
.ordering-aside .ordering-summary{position:static}
.shipment-checkout-actions,.shipment-draft-controls,.shipment-group-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shipment-checkout-actions>.btn{flex:1;min-height:44px;white-space:nowrap}
.shipment-drafts{padding:17px;min-width:0}
.shipment-drafts>.between{margin-bottom:9px}
.shipment-drafts>.btn{margin-top:10px;min-height:44px}
.shipment-drafts>p{margin:9px 0 0;font-size:12px;line-height:1.65}
.shipment-draft-row{
 --draft-background:#f0f6ff;
 --draft-border:#cddff3;
 --draft-accent:#417bb4;
 --draft-label-background:#dceaff;
 --draft-label-color:#1b456e;
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin-top:8px;padding:11px 12px;
 border:1px solid var(--draft-border);border-inline-start:4px solid var(--draft-accent);
 border-radius:12px;background:var(--draft-background)
}
.shipment-draft-row[data-order-kind="special"]{
 --draft-background:#fff7e9;
 --draft-border:#ecd8b4;
 --draft-accent:#ae7225;
 --draft-label-background:#f9e7c9;
 --draft-label-color:#714713
}
.shipment-draft-details{min-width:0;overflow-wrap:anywhere}
.shipment-draft-heading{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap}
.shipment-draft-type{
 display:inline-flex;padding:2px 8px;border-radius:20px;
 background:var(--draft-label-background);color:var(--draft-label-color);
 font-size:12px;font-weight:700;white-space:nowrap
}
.shipment-draft-details small{display:block;margin-top:5px;color:var(--muted)}
.shipment-draft-controls .btn{min-height:44px}
#dialog .dialog-body:has(>.shipment-draft-review){overscroll-behavior:contain;scrollbar-gutter:stable}
.shipment-draft-review .shipment-draft-row{flex-direction:column;align-items:stretch}
.shipment-draft-review .shipment-draft-controls{justify-content:flex-end}
.shipment-draft-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 8px;margin-bottom:8px}
.shipment-items-toggle{
 min-height:44px;padding:4px 8px;border:0;border-radius:8px;background:transparent;
 color:#254f7b;font-size:13px;font-weight:700;white-space:nowrap
}
.shipment-items-toggle:hover{background:#fff9}
.shipment-draft-items{border:1px solid var(--draft-border);border-radius:10px;background:#ffffff97;overflow:hidden}
.shipment-draft-items table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.shipment-item-boxes{width:78px}
#dialog .shipment-draft-items :is(th,td){min-width:0;padding:5px 8px;text-align:left;line-height:1.4}
#dialog .shipment-draft-items th{background:#ffffff90;color:#565d66;font-size:12px;font-weight:700}
#dialog .shipment-draft-items td{border-top:1px solid var(--draft-border);border-bottom:0;color:#272a2e;font-size:13px}
#dialog .shipment-draft-items td:first-child{font-weight:650;overflow-wrap:anywhere}
#dialog .shipment-draft-items :is(th,td):not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#dialog .shipment-draft-items .shipment-item-gift b{color:var(--draft-label-color);font-size:14px}
#dialog .shipment-draft-items .shipment-item-zero{color:#646a73}
.shipment-draft-gift-note{margin:6px 0 0;font-size:12px}
.shipment-overview{padding:0 16px 10px}
.shipment-overview-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 10px;border-bottom:1px solid var(--line)}
.shipment-group-link{min-height:36px;white-space:normal;overflow-wrap:anywhere}
.shipment-group-actions{justify-content:flex-end}
.desk-main[data-route=catalog]>.content>.real-cart{display:none}
@media(min-width:1600px){.ordering-products .real-catalog{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.staff-order-layout{grid-template-columns:minmax(0,1fr) 330px}}
@media(min-width:651px) and (max-width:1050px){.staff-order-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.ordering-customer{grid-template-columns:minmax(0,1fr);gap:16px}.ordering-customer-address{border-left:0;border-top:1px solid var(--line);padding:14px 0 0}}
@media(max-width:650px){
 .desk-main[data-route=catalog] .heading{gap:12px}.desk-main[data-route=catalog] .heading>.flex{max-width:none}
 .desk-main[data-route=catalog] .heading .btn,.customer-row-actions .btn{min-height:44px;min-width:88px;font-size:13px}
 .ordering-customer{grid-template-columns:minmax(0,1fr);gap:15px;padding:17px}
 .ordering-customer-picker select{font-size:16px;height:46px;min-width:0}
 .ordering-customer-picker p{font-size:11px}
 .ordering-customer-address{border-left:0;border-top:1px solid var(--line);padding:14px 0 0}
 .ordering-customer-address b{font-size:15px}.ordering-customer-address span,.ordering-customer-address p{font-size:12px}
 .staff-order-layout{display:block}.ordering-summary{display:none}
 .ordering-aside{position:static;margin-top:14px}
 .shipment-draft-row{align-items:flex-start}
 .shipment-draft-controls{flex:none;gap:6px}
 .shipment-item-boxes{width:72px}
 #dialog .shipment-draft-items :is(th,td){padding:5px 6px;font-size:12px}
 .shipment-overview{padding:0 8px 9px}
 .shipment-overview-row{padding:7px 3px}
 .shipment-group-link{min-height:44px}
 .ordering-products .catalog-search input{font-size:16px}
 .ordering-products .real-catalog{grid-template-columns:minmax(0,1fr);padding-bottom:0;gap:13px}
 .ordering-products .product{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:stretch}
 .ordering-products .real-catalog .product-art{height:auto;min-height:152px;border-radius:0}
 .ordering-products .real-catalog .product-art img{height:100%;max-height:190px}
 .ordering-products .real-catalog .product-body{padding:14px}
 .ordering-products .real-catalog .product-body h3{font-size:14px}
 .ordering-products .real-catalog .product-body p{font-size:11px}
 .ordering-products .product-price{min-height:36px;margin-top:8px}
 .ordering-products .real-catalog .product-price strong{font-size:23px}
 .ordering-products .cart-quantity{margin-top:10px;font-size:12px}
 .ordering-products .cart-quantity input{width:86px;min-height:44px;height:44px}
 .ordering-handler{padding-bottom:100px;font-size:11px}
 .desk-main[data-route=catalog]>.content>.real-cart{display:flex;padding:12px 15px;gap:14px}
 .desk-main[data-route=catalog] .real-cart strong{font-size:23px}
 .desk-main[data-route=catalog] .real-cart .btn{min-height:46px;font-size:14px}
 .desk-main[data-route=catalog] .real-cart .shipment-checkout-actions{justify-content:flex-end;gap:6px}
 .desk-main[data-route=catalog] .real-cart .shipment-checkout-actions>.btn{flex:none;padding-inline:9px;font-size:12px}
 .order-handler{font-size:11px}
 .ordering-home-grid .mobile-app-tile small{display:block;font-size:10px;line-height:1.5;color:var(--muted)}
}
@media(max-width:480px){
 .shipment-draft-row{flex-direction:column;align-items:stretch}
 .shipment-draft-controls{justify-content:flex-end}
}
