.logistics-page{position:relative}
.portal-motion-spinner{display:inline-block;box-sizing:border-box;width:16px;height:16px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;flex:none}
.logistics-loading-state{position:absolute;top:45%;left:50%;margin-left:-110px;width:220px;padding:14px 16px;box-sizing:border-box;z-index:4;text-align:center;background:#f7faf7;color:#203629;border:1px solid #b6cdbd;border-radius:12px;box-shadow:0 3px 16px #0002;pointer-events:none}
.logistics-loading-state[hidden]{display:none}
.portal-motion-notice{position:fixed;right:24px;bottom:72px;z-index:19000;max-width:min(420px,calc(100vw - 48px));padding:12px 18px;border-radius:10px;background:#205b3a;color:#fff;border:1px solid #a6c9b1;box-shadow:0 3px 18px #0003;font:16px/1.4 Arial,sans-serif;pointer-events:none}
.logistics-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap}
.logistics-express{background:#b71926;color:#fff;border-radius:10px;padding:14px 20px;max-width:480px;font:16px/1.5 Arial,sans-serif;white-space:normal}
.logistics-express strong{display:block;font-size:21px}
.logistics-page .stock-scroll{overflow-anchor:none}
.logistics-table td.logistics-onec{white-space:nowrap;text-align:left!important}
.logistics-table .logistics-box{width:1%;min-width:0;padding-left:10px;padding-right:10px}
.logistics-table th:nth-child(2){width:1%;min-width:0;padding-left:10px;padding-right:10px}
.logistics-ul{background:#b5ff00!important;color:#162000!important;padding:2px 4px;border-radius:3px;font-weight:bold}
.logistics-aulet{background:#773ac2!important;color:#fff!important;padding:2px 4px;border-radius:3px;font-weight:bold}
.logistics-delivery-cell{white-space:nowrap}
.logistics-icon{border:0;background:transparent;padding:3px;cursor:pointer;font:inherit;color:#333;vertical-align:middle;line-height:1}
.logistics-icon svg{width:1.15em;height:1.15em;vertical-align:middle;fill:currentColor}
.logistics-icon.is-known{color:#059e65}
.logistics-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.25em;height:1.25em;padding:0 2px;border-radius:4px;background:#d71f2c;color:white;font-weight:800;line-height:1}
.logistics-badge.dropoff{background:#087b8a}.logistics-badge.pickup{background:#196dcc}.logistics-badge.unknown,.logistics-badge.seller{background:#626a70}
.logistics-warning{color:#da0719;font-weight:900;font-size:1.2em;vertical-align:middle;margin-right:6px}
.logistics-table td.logistics-due-today{background:#f7a2a2!important;color:#251b16!important}
.logistics-table td.logistics-due-tomorrow{background:#ffc078!important;color:#251b16!important}
.logistics-modal-backdrop{position:fixed;inset:0;background:#0008;z-index:16000;display:flex;align-items:center;justify-content:center;padding:15px}
.logistics-dialog{background:#f5f1e6;color:#203629;box-shadow:0 8px 36px #0006;border-radius:14px;padding:22px;max-width:760px;width:100%;max-height:85vh;overflow:auto;font:16px/1.5 Arial,sans-serif}
.logistics-dialog h2{margin-top:0}.logistics-dialog dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:8px 14px}.logistics-dialog dt{font-weight:600}.logistics-dialog dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.logistics-dialog .logistics-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.logistics-history-entry{border-top:1px solid #bdcbbb;padding:12px 0}
.logistics-context{position:fixed;z-index:15500;background:#fff;color:#203629;box-shadow:0 4px 18px #0004;padding:8px;border-radius:10px}
.logistics-context button{display:block;background:#fff;color:#203629;border:0;padding:12px 20px;cursor:pointer;width:100%;text-align:left}
.logistics-context button:hover{background:#dcebdc}.logistics-context button:disabled{color:#999;cursor:default}
.logistics-alert .logistics-dialog{border:3px solid #d71f2c;max-width:550px}.logistics-alert-bell{font-size:2em;display:inline-block;animation:logistics-bell .35s alternate infinite}
@keyframes logistics-bell{to{transform:rotate(15deg)}}
@media(prefers-reduced-motion:reduce){.logistics-alert-bell{animation:none}}
@media(max-width:600px){.logistics-header{display:block}.logistics-express{margin-bottom:15px}.logistics-dialog dl{grid-template-columns:1fr}.logistics-dialog{padding:16px}.logistics-dialog dd{margin-bottom:8px}}

/* The register owns the remaining workspace height; its pager stays visible. */
.logistics-page{display:flex;flex-direction:column;min-height:0;max-width:none;overflow:hidden;box-sizing:border-box}
.logistics-header{flex:none;flex-wrap:nowrap;align-items:center;gap:18px;margin-bottom:12px}
.logistics-brand{display:flex;align-items:center;gap:24px;flex-wrap:wrap;min-width:0}
.logistics-brand h1{margin:0;line-height:1.15}
.logistics-brand img{display:block;width:clamp(100px,12vw,180px);height:auto;mix-blend-mode:multiply}
.logistics-overview{display:flex;flex-direction:column;gap:8px;flex:none}
.logistics-summary{background:#f9fcf8;border:1px solid #afc8b8;border-radius:10px;padding:10px 14px;color:#203629;font:14px/1.5 Arial,sans-serif}
.logistics-summary:empty{display:none}
.logistics-summary-line{display:flex;gap:8px;align-items:center;white-space:nowrap}
.logistics-summary-line strong{margin-left:auto}
.logistics-summary-unknown{color:#936000;font-weight:bold}
.logistics-tools{flex:none;display:flex;flex-wrap:wrap;gap:8px;margin:0}
.logistics-tools .portal-action,.logistics-pager .portal-action{padding:7px 12px;font-size:14px;min-height:34px}
.logistics-note{flex:none;margin:8px 0;font-size:14px}
.logistics-page .logistics-scroll{flex:1 1 0;min-height:0;max-height:none!important;overflow:auto}
.logistics-page .logistics-table{min-width:0!important;height:auto!important}
.logistics-table th,.logistics-table td{box-sizing:border-box;min-width:0!important;max-width:none;white-space:nowrap!important;height:auto!important;padding:9px 12px;overflow:hidden}
.logistics-table td:first-child{min-width:0!important;white-space:nowrap!important}
.logistics-table th:nth-child(2),.logistics-table .logistics-box{padding-left:12px;padding-right:12px;width:auto}
.logistics-table .logistics-hideable{padding-left:calc(12px * var(--logistics-column-open,1));padding-right:calc(12px * var(--logistics-column-open,1))}
.logistics-cell-content{overflow:hidden;white-space:nowrap;opacity:var(--logistics-column-open,1)}
.logistics-page .logistics-pager{flex:none;display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 0;padding:0}
.logistics-pager span{font-size:14px}
.logistics-express{font-size:13px;padding:8px 12px;max-width:380px}
.logistics-express strong{font-size:16px}
@media(max-width:850px){.logistics-header{flex-wrap:wrap;gap:10px}.logistics-brand{gap:16px}.logistics-brand h1{font-size:clamp(24px,4vw,36px)}.logistics-overview{flex:1}.logistics-summary{padding:7px 10px}.logistics-summary-line{white-space:normal}.logistics-brand img{width:110px}}
@media(max-height:650px){.logistics-brand h1{font-size:28px}.logistics-header{margin-bottom:6px}.logistics-note{margin:4px 0}.logistics-summary{padding:5px 10px}.logistics-tools .portal-action{padding:5px 9px;min-height:30px}}

.logistics-summary button.logistics-summary-line{width:100%;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;padding:3px 5px}
.logistics-summary button.logistics-summary-line:hover{background:#e5f2e8;border-color:#a8c8b2}
.logistics-summary button.logistics-summary-line[aria-pressed=true]{background:#d1ebd8;border-color:#27824d;box-shadow:inset 3px 0 #27824d}
.logistics-summary button.logistics-summary-line:focus-visible{outline:2px solid #27824d;outline-offset:2px}
.logistics-tools .logistics-filter-reset:not(:disabled){background:#e8f3e7;color:#17432a;border-color:#27824d}

.logistics-packing-dialog{max-width:1000px;display:flex;flex-direction:column;max-height:92vh;padding:18px;box-sizing:border-box}
.logistics-packing-heading{display:flex;align-items:flex-start;gap:12px;flex:none}
.logistics-packing-heading h2{flex:1;margin:0 0 12px;font-size:21px}
.logistics-packing-heading .logistics-packing-cross{padding:0 9px;min-width:34px;font:28px/32px Arial;flex:none}
.logistics-packing-body{overflow:auto;min-height:0;flex:1}
.logistics-packing-tools,.logistics-packing-actions{display:flex;gap:9px;flex-wrap:wrap;flex:none;margin:8px 0}
.logistics-packing-dialog .portal-action{font-size:14px;padding:7px 12px}
.logistics-packing-heading .logistics-packing-cross{font-size:24px;line-height:28px}
.logistics-packing-actions{justify-content:flex-end;margin-bottom:0}
.logistics-packing-error{color:#b31e2b;white-space:normal;margin:5px 0;flex:none}.logistics-packing-error:empty{display:none}
.logistics-packing-field{display:grid;grid-template-columns:85px minmax(190px,280px) minmax(180px,1fr);align-items:center;gap:10px;margin:9px 0}
.logistics-packing-field input{width:100%;box-sizing:border-box;background:#fff;color:#203629;border:1px solid #7b9d87;border-radius:6px;padding:9px;font:16px Arial}
.logistics-packing-field input:focus{outline:2px solid #19ad59;outline-offset:1px}
.logistics-code-description{font-size:14px;overflow-wrap:anywhere;white-space:normal}.logistics-code-description.is-error{color:#b31e2b}
.logistics-packing-body fieldset{border:1px solid #afc4b6;border-radius:8px;padding:10px 12px;margin:12px 0;min-width:0}
.logistics-packing-body fieldset>label{display:inline-flex;align-items:center;gap:6px;margin:8px 14px 8px 0}
.logistics-packing-body input[type=checkbox]{width:19px;height:19px;accent-color:#258454}
.logistics-selected-gift{display:flex;align-items:center;gap:10px}.logistics-selected-gift button{margin-left:auto}
.logistics-packing-dialog .price-scroll{max-height:55vh}.logistics-packing-dialog .logistics-gift-picker{min-width:720px;width:100%;font-size:14px}
.logistics-gift-picker td:nth-child(3){text-align:left!important;white-space:normal}.logistics-gift-picker td:first-child{min-width:36px}
.logistics-gift-picker td:nth-child(3) button{display:block;margin-top:5px}
.logistics-gift-image{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:auto}
.logistics-packed-unit{border-bottom:1px solid #c4d5c9;padding-bottom:8px}.logistics-packed-unit p{overflow-wrap:anywhere}
.logistics-table td[data-column=imei],.logistics-table td[data-column=icc],.logistics-table td[data-column=icc_phone]{white-space:pre!important}
@media(max-width:700px){.logistics-packing-field{grid-template-columns:65px minmax(0,1fr)}.logistics-code-description{grid-column:2}.logistics-packing-dialog{padding:12px}.logistics-packing-heading h2{font-size:18px}}

.logistics-gift-picker td{vertical-align:middle}.logistics-gift-picker .logistics-gift-view{white-space:nowrap}.logistics-gift-picker .logistics-gift-view button{display:inline-block;margin:0;padding:5px 10px;font-size:14px;line-height:1.2}
