.shipping-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:15px}.shipping-account{padding:16px;border:1px solid var(--line);border-radius:12px}.shipping-account p{margin:8px 0}.shipping-fields{border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:16px}.shipping-fields legend{font-weight:700}.shipping-fields .notice{margin:10px 0}.shipping-fields label{display:block;margin-bottom:10px}.shipping-fields [hidden]{display:none}.shipping-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.shipping-summary>div{padding:16px;background:white;border:1px solid var(--line);border-radius:10px}.shipping-summary small,.shipping-summary strong{display:block}.shipping-summary strong{font-size:20px;margin-top:7px}.shipping-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.shipping-filters{gap:10px;flex-wrap:wrap;align-items:flex-end}.shipping-filters>.input{max-width:220px}.shipping-filters>.input:first-child{max-width:360px;flex:1}.shipping-filters label{font-size:11px}.shipping-orders{min-width:1000px}.shipping-orders td{vertical-align:top;max-width:220px}.shipping-orders small{display:block;margin:5px 0;font-size:11px;overflow-wrap:anywhere}.shipping-orders strong{font-size:12px}.shipping-error{color:#a34235}.shipping-history article{padding:12px;border-left:2px solid #73a18c;margin-left:8px}.shipping-history strong,.shipping-history small{display:block}.shipping-history small{color:#77867d;margin-bottom:5px}@media(max-width:760px){.shipping-summary{grid-template-columns:repeat(2,1fr)}.shipping-summary strong{font-size:16px}.shipping-filters>.input{max-width:100%}.shipping-fields .form-grid{grid-template-columns:1fr 1fr}}
.page-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.shipping-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) repeat(2,140px)}.shipping-filters>.input,.shipping-filters>.input:first-child{width:100%;max-width:none}.shipping-filters>button{justify-self:start}@media(max-width:760px){.page-title{align-items:flex-start;flex-direction:column}.shipping-filters{grid-template-columns:1fr 1fr}.shipping-filters>[data-shipping-filter=search]{grid-column:1/-1}.shipping-filters>.input{min-width:0}.shipping-summary>div{padding:12px}}
.orders-workspace{background:#f0f2f7;padding:14px;border-radius:8px;font-size:13px}.orders-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.orders-top .primary{background:#0960c8}.orders-segments{display:flex;background:#dce1e8;padding:3px;border-radius:6px;gap:2px}.orders-segments .btn{background:transparent;border:0}.orders-segments [aria-pressed=true]{background:white;color:#0865ac}.orders-surface{background:#fff;border-radius:9px;overflow:hidden}.orders-view-tabs{display:flex;gap:8px;align-items:center;background:#f5f6fa;border-bottom:1px solid #e8ebf0;padding:8px 10px}.orders-view-tabs .btn{border:0;background:transparent}.orders-view-tabs [aria-pressed=true]{color:#075d9d;background:#fff}.orders-view-tabs [data-orders-action=refresh]{margin-left:auto}.orders-filters{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(130px,1fr)) repeat(2,130px);gap:8px;padding:10px 12px}.orders-filters .input{min-width:0;padding:7px 9px;font-size:12px}.orders-status-tabs{display:flex;overflow:auto;gap:5px;padding:6px 12px 10px;white-space:nowrap}.orders-status-tabs .btn{border:1px solid transparent;background:transparent;color:#39475a}.orders-status-tabs [aria-pressed=true]{border-color:#0862a8;color:#0862a8;border-radius:4px}.orders-status-tabs small{border-radius:12px;background:#eff1f5;padding:2px 5px;color:#8992a0}.orders-table-scroll{overflow:auto;max-height:calc(100vh - 345px);min-height:260px;margin:0 12px}.orders-dense{min-width:2100px;border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%}.orders-dense th{position:sticky;top:0;z-index:2;background:#f2f4f8;text-transform:none;font-weight:600;letter-spacing:0;font-size:12px;color:#273346}.orders-dense th,.orders-dense td{padding:7px 9px;vertical-align:middle;border-bottom:1px solid #edf0f3;max-width:none;font-size:12px}.orders-dense th:first-child,.orders-dense td:first-child{width:35px}.orders-dense th:nth-child(2){width:190px}.orders-dense th:nth-child(3){width:65px}.orders-dense th:nth-child(4){width:165px}.orders-dense th:nth-child(9){width:240px}.orders-dense th:last-child,.orders-dense td:last-child{position:sticky;right:0;background:#fff;width:160px;box-shadow:-4px 0 6px #20304008}.orders-dense th:last-child{background:#f2f4f8;z-index:3}.orders-dense tr:hover td{background:#f5faff}.orders-dense td{overflow-wrap:anywhere}.orders-link{color:#075c9c;background:transparent;border:0;padding:0;text-align:left;font-size:12px;display:block}.orders-carrier{background:#07818c;color:#fff;padding:3px 8px;border-radius:4px}.orders-status{display:block;text-align:center;color:#fff;background:#189da2;border-radius:4px;padding:3px 6px;white-space:nowrap}.status-delivered{background:#59bd0b}.status-in_transit,.status-fulfilling{background:#f09317}.status-failed,.status-unknown,.status-delivery_failed,.status-cancelled{background:#d45455}.status-returned,.status-return_pending_check,.status-returning{background:#8970ba}.orders-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #e6eaf0;padding:12px;font-size:12px}.orders-footer small{display:block;color:#8992a0;font-size:11px}.orders-footer .input{max-width:70px;padding:5px}.orders-footer .row{white-space:nowrap}@media(max-width:1100px){.orders-filters{grid-template-columns:2fr 1fr 1fr}.orders-top{flex-wrap:wrap}}@media(max-width:760px){.orders-workspace{padding:8px}.orders-top>.row{flex-wrap:wrap;gap:5px}.orders-filters{grid-template-columns:1fr 1fr}.orders-filters>[data-orders-filter=search]{grid-column:1/-1}.orders-footer{align-items:flex-start;flex-direction:column}.orders-table-scroll{max-height:60vh}.orders-view-tabs{overflow:auto;white-space:nowrap}}
.shipping-address-result{font-size:12px;color:#52677b;margin:6px 0}.shipping-address-result small{display:block;margin-bottom:5px}.shipping-address-result button{white-space:normal;text-align:left;background:#f4f6fa;line-height:1.5}
.orders-tools{display:flex;gap:5px;margin-left:auto}.orders-search-row{display:flex;gap:8px;align-items:center;padding:12px;flex-wrap:wrap}.orders-search-row>.input{flex:1;min-width:240px;max-width:600px}.orders-search-row small{margin-left:auto;color:#738096}.orders-dense{table-layout:fixed}.orders-dense th,.orders-dense td{width:auto!important}.orders-dense th .btn{border:0;background:none;padding:0;text-align:left;font-weight:600;color:inherit}.orders-dense th:last-child,.orders-dense td:last-child{position:static;box-shadow:none}.orders-dense [data-column=status]{position:sticky;right:0;background:#fff;box-shadow:-5px 0 8px #21344d12}.orders-dense th[data-column=status]{background:#f2f4f8;z-index:3}.orders-row-menu{position:relative}.orders-row-menu summary{cursor:pointer;list-style:none}.orders-row-menu[open]>div{position:relative;z-index:4;display:grid;background:#fff;border:1px solid #dde4ec;box-shadow:0 5px 15px #22334416;border-radius:8px;padding:5px;margin-top:5px;min-width:145px}.orders-row-menu button,.orders-row-menu a{font:inherit;text-align:left;padding:8px;color:#185f9b;background:none;border:0;text-decoration:none}.orders-row-menu button:hover,.orders-row-menu a:hover{background:#eef5fd}.orders-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.orders-filter-grid>label{display:grid;gap:6px}.orders-multiselect{border:1px solid #dce3ec;border-radius:8px;align-self:start}.orders-multiselect summary{padding:10px;cursor:pointer}.orders-multiselect>div{padding:8px 12px;max-height:220px;overflow:auto;border-top:1px solid #e8edf4}.orders-multiselect .check-label{display:flex;gap:8px;padding:5px}.orders-dialog-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e1e7ee;padding-top:16px;margin-top:20px}.orders-column-config{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.orders-column-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:55vh;overflow:auto;margin-top:12px}.orders-column-options label{display:flex;align-items:center;gap:8px;padding:5px}.orders-column-options [hidden]{display:none!important}#orders-column-order{max-height:38vh;overflow:auto}#orders-column-order>div{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f4f6fa;border-radius:7px;padding:8px;margin:6px 0;cursor:grab}#orders-column-order>div>span:last-child{display:flex;gap:3px}#orders-column-order .btn{padding:3px 7px;min-height:26px}.orders-dense .order-duplicate td{background:#fff1f2}.orders-dense .order-missing td{background:#fffbdc}.orders-dense .order-overdue td{background:#fff0d5}.orders-operation-row{display:flex;align-items:flex-start;justify-content:space-between;padding:10px;border-bottom:1px solid #e5e9ef;gap:14px}.orders-footer .input{max-width:120px}.orders-top .row{gap:8px}@media(max-width:760px){.orders-column-config{grid-template-columns:1fr}.orders-filter-grid{grid-template-columns:1fr}.orders-column-options{max-height:30vh}.orders-tools{position:sticky;right:0;background:#f5f6fa}.orders-search-row>.input{min-width:100%;max-width:none}.orders-search-row small{margin-left:0}.orders-top>.row{width:100%}.orders-top .primary{margin-left:auto}.orders-workspace .orders-dense [data-column=status]{position:static}}
.orders-dense .orders-row-menu{padding:0;margin:0;border:0;background:transparent;border-radius:0}.orders-dense .orders-row-menu>summary{padding:4px 6px;margin:0;font-size:12px;line-height:1.5}.orders-dense td{height:auto}.orders-status-tabs{scrollbar-width:thin}.orders-filter-grid label{font-size:13px}.orders-column-config .check-label{margin-bottom:8px}
.orders-dense th[data-column=status],.orders-dense td[data-column=status]{position:sticky;right:0;box-shadow:-5px 0 8px #21344d12}.orders-dense td[data-column=status]{z-index:1}.orders-dense th[data-column=status]{z-index:3}@media(max-width:760px){.orders-dense th[data-column=status],.orders-dense td[data-column=status]{position:static;box-shadow:none}}
.order-editor-modal{width:min(1320px,calc(100vw - 24px));max-width:1320px}.order-editor-modal .modal-body{padding:16px;background:#eef1f6}.order-editor-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.order-editor-heading .orders-status{display:inline-block}.order-editor-heading small{color:#758297}.order-editor-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:12px}.order-editor-panel{padding:16px;background:#fff;border:1px solid #e3e8ee;border-radius:9px;margin-bottom:12px;min-width:0}.order-editor-panel h3{font-size:14px;margin:0 0 14px}.order-editor-panel label:not(.check-label){display:grid;gap:5px;margin:10px 0;font-size:12px}.order-editor-panel .input{font-size:13px;padding:8px}.order-editor-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.order-editor-layout main,.order-editor-layout aside{min-width:0}.order-editor-cart{min-width:520px;width:100%;font-size:12px}.order-editor-cart th{font-size:11px;padding:8px}.order-editor-cart td{padding:8px;vertical-align:middle}.order-editor-cart td:nth-child(2){width:70px}.order-editor-cart td:nth-child(3){width:120px}.order-editor-cart small{display:block;color:#738096;margin-top:4px}.order-editor-cart button{border:0;background:none;cursor:pointer}.order-editor-cart .input{width:100%;min-width:55px}.order-empty-cart{text-align:center;padding:35px!important;color:#8392a3}#order-editor-product-options{max-height:220px;overflow:auto;border:1px solid #e0e7ef;margin:5px 0}#order-editor-product-options[hidden]{display:none}#order-editor-product-options button{display:block;width:100%;text-align:left;border:0;background:#f8fbff;padding:10px;cursor:pointer}#order-editor-product-options button:hover{background:#e9f3ff}.order-editor-parcel{display:grid;grid-template-columns:repeat(2,1fr);gap:0 10px}.order-detail-shipping{border:1px solid #cde4ec;border-radius:8px;padding:12px;font-size:12px;margin-top:12px}.order-detail-shipping .orders-status{display:inline-block;white-space:normal}.order-detail-shipping dl{display:grid;grid-template-columns:1fr 1.3fr;gap:8px}.order-detail-shipping dd{margin:0;text-align:right;overflow-wrap:anywhere}.order-detail-shipping button{border:0;background:#eff8fb;color:#18758a;cursor:pointer}.order-editor-footer{position:sticky;bottom:-16px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:white;border-top:1px solid #e0e6ec;z-index:5;margin:0 -16px -16px}.order-editor-footer>span{margin-left:16px}.order-editor-footer>.row{margin-right:16px}.order-chat-origin{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:#58687b;color:white;border:0;cursor:pointer;font-weight:700;margin-right:6px;vertical-align:middle}.order-chat-origin.is-zalo{background:#1979ed}.order-chat-origin.is-facebook{background:#1877f2}.order-editor-layout textarea{min-height:70px}@media(max-width:850px){.order-editor-layout{grid-template-columns:1fr}.order-editor-layout aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.order-editor-layout aside .order-editor-panel:last-child{grid-column:1/-1}}@media(max-width:550px){.order-editor-modal{width:calc(100vw - 12px)}.order-editor-modal .modal-body{padding:10px}.order-editor-two,.order-editor-layout aside{display:block}.order-editor-panel{padding:12px}.order-editor-footer{bottom:-10px;margin:0 -10px -10px;padding:10px;flex-wrap:wrap}.order-editor-footer>span{margin:0}.order-editor-footer>.row{width:100%;margin:0;justify-content:flex-end}.order-editor-footer .btn{font-size:12px}.order-editor-heading{font-size:13px}}

.orders-copy-value{padding:0;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:copy;white-space:normal}.orders-dense tr[data-order-row]{cursor:pointer}.orders-dense tr[data-order-row]:hover{background:#f1f7fb}.orders-dense tr[data-order-row]{-webkit-touch-callout:none}
.order-editor-modal.has-linked-chat{width:calc(100vw - 32px);max-width:1800px}.has-linked-chat .modal-body{overflow:hidden;padding:0}.order-detail-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,30%);height:min(82vh,1000px);min-height:0}.order-detail-workspace>#order-detail-editor{overflow:auto;min-width:0;padding:16px}.order-detail-workspace .order-editor-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr)}.order-linked-chat{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid #dbe2ea;background:#f3f5f7}.order-linked-chat>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#fff;border-bottom:1px solid #dbe2ea}.order-linked-messages{flex:1;overflow:auto;padding:16px;min-height:0;overflow-wrap:anywhere}.order-linked-messages .bubble-wrap{max-width:100%;margin:8px 0}.order-linked-messages .bubble{max-width:95%}.order-linked-messages img{max-width:100%;max-height:280px;object-fit:contain}.order-linked-reply{background:white;border-top:1px solid #dbe2ea;padding:12px;display:grid;gap:8px}.order-linked-reply textarea{min-height:75px;max-height:160px;resize:vertical}.order-linked-reply>.btn{justify-self:end}.order-linked-reply p:empty{display:none}
@media(max-width:1100px){.order-detail-workspace .order-editor-layout{grid-template-columns:1fr}.order-detail-workspace .order-editor-layout aside{display:block}}
@media(max-width:700px){.order-editor-modal.has-linked-chat{width:calc(100vw - 12px)}.has-linked-chat .modal-body{overflow:auto}.order-detail-workspace{display:flex;flex-direction:column;height:auto}.order-detail-workspace>#order-detail-editor{overflow:visible;padding:10px}.order-linked-chat{height:520px;flex:none;border-left:0;border-top:1px solid #dbe2ea}.order-detail-workspace .order-editor-layout{display:block}.order-detail-workspace .order-editor-two{display:block}}

.order-detail-mobile-tabs{display:none}@media(max-width:700px){.order-detail-mobile-tabs{display:flex;background:#fff;border-bottom:1px solid #dbe2ea}.order-detail-mobile-tabs button{flex:1;border:0;background:transparent;padding:12px;color:#718093;font:inherit}.order-detail-mobile-tabs [aria-pressed=true]{color:#236a53;border-bottom:2px solid #236a53;font-weight:600}.order-detail-workspace{height:72dvh}.order-detail-workspace>#order-detail-editor{overflow:auto;flex:1;min-height:0}.order-detail-workspace[data-mobile-pane=detail]>.order-linked-chat,.order-detail-workspace[data-mobile-pane=chat]>#order-detail-editor{display:none}.order-detail-workspace[data-mobile-pane=chat]>.order-linked-chat{height:100%;border:0}.order-linked-chat .order-linked-messages{min-height:0}}
.order-customer-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#edf7ff;border:1px solid #c9e1f5;border-radius:8px;padding:12px;font-size:11px}.order-customer-numbers span:last-child{grid-column:1/-1}.order-customer-numbers strong{display:block;font-size:15px;color:#235b93;margin-bottom:3px}.order-customer-summary details .orders-link{display:block;text-align:left;margin:8px 0;max-width:100%;white-space:normal}.orders-sort-options{display:grid;gap:12px;margin-bottom:20px}.order-editor-panel .check-label{font-size:12px;margin-bottom:10px}

/* POS status palette, shared by the grid and order details. */
.orders-status.status-draft{background:#08979c}.orders-status.status-waiting_stock{background:#c38b16}.orders-status.status-confirmed{background:#1357c7}.orders-status.status-packing{background:#7545c1}.orders-status.status-pickup_pending{background:#eb2f96}.orders-status.status-shipping,.orders-status.status-fulfilling{background:#ff8a00}.orders-status.status-in_transit{background:#e06c14}.orders-status.status-delivered{background:#52a80b}.orders-status.status-return_pending_check{background:#8d61a9}.orders-status.status-returning{background:#b24ca1}.orders-status.status-returned{background:#655783}.orders-status.status-partially_returned{background:#9d6551}.orders-status.status-cancelled{background:#e04455}.orders-status.status-delivery_failed{background:#b9372d}.orders-status.status-unknown{background:#75644d}.orders-status.status-failed{background:#a80d38}.orders-status.status-sending{background:#3a84ad}
.orders-status-popup{position:fixed;z-index:10050;background:#fff;border:1px solid #e1e6e3;border-radius:10px;box-shadow:0 10px 32px #152d2526;padding:8px;overflow:auto;display:grid;gap:3px;color:#243b32;font-size:13px}.orders-status-popup>strong{padding:8px 10px;border-bottom:1px solid #edf0ed}.orders-status-popup>button,.orders-status-popup>a{border:0;background:transparent;text-align:left;padding:10px;border-radius:6px;color:inherit;font:inherit;cursor:pointer;text-decoration:none}.orders-status-popup>button:hover,.orders-status-popup>button:focus-visible,.orders-status-popup>a:hover{background:#edf4eb}.orders-status-popup>button:disabled{opacity:.6;cursor:default}.orders-status-popup small{display:block;font-size:11px;font-weight:400;line-height:1.45;margin-top:3px}.orders-status-popup .danger{color:#d72b40}.orders-status-popup>p{padding:4px 10px;font-size:11px;line-height:1.5;color:#708079;margin:4px 0}.orders-status[aria-expanded=true]{outline:2px solid #3c8b6c;outline-offset:2px}
.orders-status.status-awaiting_confirmation{background:#7757bb;color:#fff}.orders-status.status-purchased{background:#257b8e;color:#fff}.orders-status.status-waiting_print{background:#9c7426;color:#fff}.orders-status.status-printed{background:#6246a8;color:#fff}.orders-status.status-collected{background:#238146;color:#fff}
button.orders-status{border:0;cursor:pointer;width:100%;font:inherit;font-weight:600;border-radius:4px;padding:7px 10px;white-space:nowrap}

.orders-top{justify-content:flex-end}.orders-view-tab{display:inline-flex;align-items:center;flex:none}.orders-view-tab [data-orders-action=remove-view]{padding:2px 5px;min-height:24px;color:#8b97a5}.orders-view-tab [data-orders-action=remove-view]:hover{color:#c23846;background:#fff0f1}.orders-view-tabs{overflow:auto}.orders-dense th{position:sticky}.orders-dense th .btn{max-width:calc(100% - 8px);white-space:normal}.orders-column-resize{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:5;outline-offset:-2px}.orders-column-resize:after{content:'';position:absolute;right:3px;top:20%;bottom:20%;width:2px;background:#cbd5df}.orders-column-resize:hover:after,.orders-column-resize:focus-visible:after{background:#2676bd}.orders-resizing,.orders-resizing *{cursor:col-resize!important;user-select:none!important}.orders-dense td{overflow:hidden}.orders-status{overflow:hidden;text-overflow:ellipsis}.orders-sync-pending{display:block;color:#65798b;font-size:10px;margin-top:3px}.orders-status[aria-busy=true]{opacity:.85}.orders-table-scroll{max-height:calc(100vh - 280px)}

.order-address-picker{margin-top:8px;font-size:13px;font-weight:400;min-width:0}.order-address-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-address-summary small{color:var(--muted,#687b74);line-height:1.5;flex:1}.order-address-summary button{flex-shrink:0}.order-address-picker [data-address-manual-fields]{margin-top:12px;padding:14px;background:#f4f7f5;border-radius:10px}.order-address-picker label{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;font-size:13px}.order-address-picker [hidden]{display:none!important}.order-address-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}.order-address-picker .input{width:100%;min-width:0;font-size:14px}.order-address-picker [data-address-confirm]{margin-top:4px}@media(max-width:600px){.order-address-areas{grid-template-columns:1fr}.order-address-summary{align-items:flex-start}.order-address-picker [data-address-manual-fields]{padding:10px}}
