/* Nikole order workspace: monochrome structure, semantic status tints and original courier assets. */
.nc-order-row>td{background:var(--order-tint,#fafafa)!important}.nc-order-row:hover>td{background:var(--order-hover,#f0f0f0)!important}.nc-order-row>td:first-child{border-left:3px solid var(--order-line,#bbb)!important}.nc-phone{white-space:nowrap;font-variant-numeric:tabular-nums;color:inherit;text-decoration:none}.nc-phone:hover{text-decoration:underline}.nc-courier{display:inline-flex;align-items:center;min-height:28px;max-width:110px;font-size:var(--erp-font-12,12px);font-weight:600;flex:none}.nc-courier img,.product-detail-modal .nc-courier img{display:block;width:88px;height:32px;max-width:110px;max-height:40px;object-fit:contain;border:0!important;border-radius:0!important;background:transparent!important;filter:none!important;padding:0}.nc-status{display:inline-flex;align-items:center;gap:7px;background:#ffffffb8;border:1px solid var(--order-line,#bbb);border-radius:30px;padding:5px 9px;font-size:var(--erp-font-11,11px);line-height:1.5;color:#333}.nc-status i{width:6px;height:6px;flex:none;border-radius:50%;background:var(--order-line,#999)}.nc-tracking-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:86px}.nc-tracking-cell .nc-courier img{width:70px;height:24px}.orders-table{min-width:1380px}.orders-table .orders-col-tracking{width:8%;overflow:visible}.orders-table .orders-col-phone{width:10%;white-space:nowrap}.orders-table .orders-col-order-date{width:11%}.orders-table td{padding:12px 8px;line-height:1.5}.orders-table .orders-col-site-order-number{font-weight:600}.orders-table .orders-col-customer-name{white-space:normal}.orders-table .nc-status{font-size:var(--erp-font-10,10px);padding:3px 7px;max-width:180px;white-space:normal}.orders-table .orders-col-products button,.orders-table .tracking-mini-button{border-color:#d4d4d4;background:#ffffffb0;min-height:28px;border-radius:5px}.orders-table .tracking-mini-button{font-size:var(--erp-font-10,10px);width:auto;min-width:70px;padding:5px 8px}.orders-table .orders-col-phone .nc-phone{font-size:var(--erp-font-11,11px)}.nc-order-detail{display:grid;gap:20px;padding:24px;min-width:0}.modal:has(.nc-order-detail),.modal:has(.product-detail-modal){width:min(1120px,calc(100vw - 40px));max-width:1120px;background:#f5f5f4}.modal:has(.nc-order-detail)>.modal-header,.modal:has(.product-detail-modal)>.modal-header{background:#fff;border-bottom:1px solid #e4e4e4;padding:18px 24px;gap:16px}.modal-header>strong{font-weight:600;font-size:var(--erp-font-15,15px)}.modal-header>button{font-size:var(--erp-font-12,12px);min-height:36px;padding:8px 13px}.nc-order-overview{background:#fff;border:1px solid #e1e1e1;border-left:4px solid var(--order-line,#bbb);border-radius:10px;overflow:hidden}.nc-order-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:24px;gap:22px}.nc-section-label{display:block;font-size:var(--erp-font-9,9px);letter-spacing:.12em;color:#888;font-weight:500}.nc-order-heading h2{font-size:var(--erp-font-26,26px);font-weight:600;letter-spacing:-.035em;margin:7px 0}.nc-order-created{font-size:var(--erp-font-12,12px);color:#777;font-variant-numeric:tabular-nums}.nc-order-heading-state{display:flex;align-items:flex-end;flex-direction:column;gap:7px}.nc-order-amount{font-size:var(--erp-font-25,25px);font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.nc-order-heading-state>span:last-child{font-size:var(--erp-font-12,12px);color:#777;text-align:right}.nc-order-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 24px;border-top:1px solid #eee}.nc-order-contact,.nc-order-delivery{display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:var(--erp-font-12,12px);min-width:0}.nc-order-contact strong{font-size:var(--erp-font-15,15px);font-weight:600}.nc-order-contact>a:not(.nc-phone){font-size:var(--erp-font-12,12px);color:#666;overflow-wrap:anywhere}.nc-order-delivery{border-left:1px solid #eee;padding-left:24px}.nc-order-delivery .nc-courier{margin:-5px 0 1px}.nc-tracking-number{font-size:var(--erp-font-13,13px);font-variant-numeric:tabular-nums}.nc-items-panel{border:1px solid #e1e1e1;border-radius:10px;background:#fff;overflow:hidden}.nc-items-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 22px;border-bottom:1px solid #e8e8e8}.nc-items-title h3{margin:0;font-size:var(--erp-font-15,15px);font-weight:600}.nc-items-title span{font-size:var(--erp-font-12,12px);color:#888}.nc-order-detail .order-items-table{min-width:850px;table-layout:auto}.nc-order-detail .order-items-table th{font-size:var(--erp-font-10,10px);letter-spacing:.025em;padding:13px 12px;background:#fafafa;font-weight:600;white-space:nowrap}.nc-order-detail .order-items-table td{font-size:var(--erp-font-12,12px);padding:16px 12px;line-height:1.6;vertical-align:middle}.nc-order-detail .order-thumb{width:56px;height:76px;object-fit:cover;border-radius:5px;border:1px solid #ddd;background:#fff}.nc-order-detail .order-return-location select{max-width:150px;font-size:var(--erp-font-11,11px);min-height:34px}.nc-order-detail .order-return-location button{min-height:30px;font-size:var(--erp-font-10,10px);padding:5px 10px}.nc-order-detail .tiny-text{font-size:var(--erp-font-10,10px);line-height:1.6;color:#777}.nc-order-detail .shipment-settings-card{margin:0;padding:20px 22px;border:1px solid #e1e1e1;border-radius:10px;background:#fff}.nc-order-detail .shipment-settings-card h3{font-size:var(--erp-font-15,15px);font-weight:600;margin:0 0 15px}.nc-order-detail .shipment-settings-card .button-row{align-items:center;gap:10px}.nc-order-detail .shipment-settings-card button,.nc-order-detail .shipment-settings-card .button-link{font-size:var(--erp-font-12,12px);min-height:38px;padding:9px 13px;background:#111;color:#fff;border-color:#111}.nc-order-detail .shipment-settings-card button.secondary{background:#fff;color:#222;border-color:#d8d8d8}.nc-order-detail .shipment-settings-card select{min-height:38px;font-size:var(--erp-font-12,12px);max-width:280px}.nc-order-detail .shipment-settings-card>.muted{font-size:var(--erp-font-11,11px);line-height:1.8;color:#888}.nc-order-detail .shipment-settings-card>p:not(.muted){font-size:var(--erp-font-12,12px);line-height:1.6}.nc-order-detail .order-finance-summary{margin:0}.nc-order-detail .order-finance-box{border:1px solid #e1e1e1;background:#fff;box-shadow:none}.nc-source-details{margin:0;padding:22px;background:#fff;border:1px solid #e1e1e1;border-radius:10px}.nc-source-details h3{font-size:var(--erp-font-15,15px);font-weight:600;margin:0 0 18px}.nc-source-addresses{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}.nc-source-address{display:flex;align-items:flex-start;flex-direction:column;gap:6px;font-size:var(--erp-font-12,12px)}.nc-source-address>strong{font-size:var(--erp-font-13,13px);font-weight:600;margin-top:5px}.nc-source-address p{font-size:var(--erp-font-12,12px)!important;line-height:1.7!important;margin:0!important}.nc-source-address a{color:#555;font-size:var(--erp-font-12,12px)}.nc-source-methods{display:grid;grid-template-columns:1fr 1.3fr 1fr;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;padding:18px 0;gap:20px}.nc-source-methods>div{display:flex;align-items:flex-start;flex-direction:column;gap:7px;font-size:var(--erp-font-12,12px)}.nc-source-methods small{font-size:var(--erp-font-9,9px);letter-spacing:.1em;color:#888}.nc-source-methods span{line-height:1.7}.nc-source-methods .nc-courier{margin-top:-3px}.nc-source-note{padding-top:18px}.nc-source-note p{font-size:var(--erp-font-12,12px);margin:8px 0 0;line-height:1.8;white-space:pre-wrap}.nc-order-timeline{margin-top:20px}.nc-order-timeline summary{font-size:var(--erp-font-12,12px);font-weight:600;cursor:pointer;padding:7px 0}.nc-status-history{width:100%;border-collapse:collapse;min-width:650px;margin-top:12px}.nc-status-history td,.nc-status-history th{padding:12px;font-size:var(--erp-font-11,11px);text-align:left}.nc-status-history th{background:#fafafa;color:#777}.nc-status-history td:first-child{white-space:nowrap;font-variant-numeric:tabular-nums}.nc-status-history td:last-child{white-space:normal;overflow-wrap:anywhere}.product-detail-modal{background:#f5f5f4;padding:24px}.product-detail-modal .product-detail-head{background:#fff;border:1px solid #e1e1e1;border-radius:10px;display:grid;grid-template-columns:190px minmax(0,1fr);padding:22px;gap:24px;align-items:start;margin:0}.product-detail-modal .product-detail-head>img{width:190px;height:250px;max-width:190px;max-height:250px;object-fit:contain;background:#fafafa;border-radius:6px;border:1px solid #eee}.product-detail-modal .product-detail-head h3{font-size:var(--erp-font-22,22px);font-weight:600;letter-spacing:-.025em;line-height:1.4;margin:0 0 9px}.product-detail-modal .product-detail-head>div>p{font-size:var(--erp-font-12,12px);line-height:1.7;margin:0 0 18px}.product-detail-modal .product-detail-grid{gap:12px;margin-top:18px}.product-detail-modal .product-detail-chip{padding:12px;border-radius:6px;background:#fafafa;border-color:#e9e9e9}.product-detail-modal .product-detail-chip span{font-size:var(--erp-font-10,10px);color:#888}.product-detail-modal .product-detail-chip strong{font-size:var(--erp-font-13,13px);font-weight:600;line-height:1.5;margin-top:6px;display:block}.product-detail-modal .product-detail-section,.product-detail-modal .product-description{background:#fff;border:1px solid #e1e1e1;border-radius:10px;margin-top:20px;padding:20px 22px}.product-detail-modal .product-detail-section>strong,.product-detail-modal .product-description>strong{font-size:var(--erp-font-14,14px);font-weight:600;display:block;margin-bottom:16px}.product-detail-modal .product-description p,.product-detail-modal .product-description li{font-size:var(--erp-font-12,12px);line-height:1.8}.product-detail-modal .product-order-history{margin-top:18px}.nc-product-orders{width:100%;border-collapse:separate;border-spacing:0;min-width:850px;table-layout:auto}.nc-product-orders th{padding:12px;font-size:var(--erp-font-10,10px);letter-spacing:.03em;color:#777;background:#fafafa;text-align:left;font-weight:600}.nc-product-orders td{padding:15px 12px;font-size:var(--erp-font-12,12px);border-bottom:1px solid #e1e1e1;line-height:1.6;vertical-align:middle}.nc-product-orders td:first-child{white-space:nowrap;min-width:150px}.nc-product-orders .product-order-number{display:grid;gap:5px}.nc-product-orders .product-order-number strong{font-size:var(--erp-font-12,12px);font-weight:600}.nc-product-orders small{font-size:var(--erp-font-10,10px);color:#777;display:block;margin-top:4px}.nc-product-orders .nc-order-client{display:flex;flex-direction:column;gap:6px;min-width:160px}.nc-product-orders .nc-status{max-width:180px}.nc-product-orders button{min-height:34px;font-size:var(--erp-font-11,11px);padding:7px 12px}.nc-product-orders .nc-courier{min-width:88px}.nc-fashion-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:700px){.modal:has(.nc-order-detail),.modal:has(.product-detail-modal){width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.nc-order-detail,.product-detail-modal{padding:14px;gap:14px}.nc-order-heading{padding:18px;gap:16px;flex-wrap:wrap}.nc-order-heading h2{font-size:var(--erp-font-21,21px)}.nc-order-amount{font-size:var(--erp-font-21,21px)}.nc-order-heading-state{margin-left:auto}.nc-order-heading-state .nc-status{max-width:165px;font-size:var(--erp-font-10,10px)}.nc-order-heading-state>span:last-child{max-width:140px;font-size:var(--erp-font-11,11px)}.nc-order-created{font-size:var(--erp-font-11,11px)}.nc-order-contact-grid{grid-template-columns:1fr;padding:18px;gap:18px}.nc-order-delivery{padding:15px 0 0;border-left:0;border-top:1px solid #eee}.nc-order-detail .shipment-settings-card,.nc-source-details{padding:18px}.nc-order-detail .shipment-settings-card .button-row{display:flex;flex-wrap:wrap}.nc-order-detail .shipment-settings-card select{width:100%;max-width:none;font-size:var(--erp-font-16,16px)}.nc-order-detail .shipment-settings-card .button-row>*{max-width:100%}.nc-order-detail .order-items-table,.nc-order-detail .order-items-table tbody,.nc-order-detail .order-items-table tr{display:block;min-width:0;width:100%}.nc-order-detail .order-items-table thead{display:none}.nc-order-detail .order-items-table tr{border-left:3px solid var(--order-line);padding:15px;background:var(--order-tint);border-bottom:1px solid #ddd}.nc-order-detail .order-items-table td{display:flex;align-items:center;justify-content:space-between;padding:7px 0;gap:15px;border:0!important;text-align:right;white-space:normal}.nc-order-detail .order-items-table td:before{content:attr(data-label);font-size:var(--erp-font-10,10px);color:#777;text-align:left}.nc-order-detail .order-items-table td:first-child{justify-content:flex-start}.nc-order-detail .order-items-table td:first-child:before{display:none}.nc-order-detail .order-items-table td.wrap-cell{display:flex;flex-wrap:wrap}.nc-order-detail .order-items-table .order-return-location{display:flex;flex-wrap:wrap;justify-content:flex-end}.nc-source-addresses,.nc-source-methods{grid-template-columns:1fr;gap:18px}.nc-source-methods>div{padding-bottom:5px}.nc-status-history{min-width:0}.nc-status-history thead{display:none}.nc-status-history,.nc-status-history tbody,.nc-status-history tr{display:block;width:100%}.nc-status-history tr{padding:10px 12px;border-left:3px solid var(--order-line);border-bottom:1px solid #ddd;background:var(--order-tint)}.nc-status-history td{display:block;padding:5px 0;border:0!important}.product-detail-modal .product-detail-head{grid-template-columns:1fr;gap:18px;padding:18px}.product-detail-modal .product-detail-head>img{width:100%;height:240px;max-width:100%;max-height:240px}.product-detail-modal .product-detail-grid{grid-template-columns:1fr 1fr;gap:10px}.product-detail-modal .product-detail-head h3{font-size:var(--erp-font-20,20px)}.product-detail-modal .product-detail-section,.product-detail-modal .product-description{padding:18px}.product-detail-modal .product-order-history .table-wrap{border:0}.nc-product-orders,.nc-product-orders tbody,.nc-product-orders tr{display:block;min-width:0;width:100%}.nc-product-orders thead{display:none}.nc-product-orders tr{padding:15px;border-left:3px solid var(--order-line);border-bottom:1px solid #ddd;background:var(--order-tint)}.nc-product-orders td{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border:0!important;gap:12px;white-space:normal;min-width:0!important}.nc-product-orders td:before{content:attr(data-label);font-size:var(--erp-font-10,10px);color:#777;min-width:50px}.nc-product-orders td:first-child:before{display:none}.nc-product-orders .nc-order-client{min-width:0;align-items:flex-end}.nc-product-orders .nc-status{max-width:200px}.nc-product-orders td:first-child{padding-bottom:13px}.nc-fashion-actions{justify-content:flex-end}}


.modal-body.nc-order-detail,.modal-body.product-detail-modal{grid-auto-rows:max-content;align-content:start}
.product-detail-modal .product-description>summary{font-size:var(--erp-font-14,14px);font-weight:600;cursor:pointer;list-style-position:inside}
.product-detail-modal .product-description[open]>summary{margin-bottom:18px}
.nc-order-detail .nc-sync-complete{color:#666;font-size:var(--erp-font-11,11px);margin:12px 0 0}
.nc-delivery-notices{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.nc-delivery-notices>span{display:inline-block;padding:5px 8px;background:#f5f5f5;border:1px solid #e7e7e7;border-radius:5px;font-size:var(--erp-font-10,10px);color:#666;line-height:1.6}

.modal-backdrop:has(.nc-order-detail),.modal-backdrop:has(.product-detail-modal){z-index:200}
@media(max-width:700px){.nc-product-orders td{width:100%!important;max-width:none;text-align:right;box-sizing:border-box}.nc-product-orders .nc-order-client{flex:1;min-width:0;overflow-wrap:anywhere}.nc-product-orders .nc-order-row>td:first-child,.nc-order-detail .order-items-table .nc-order-row>td:first-child{border-left:0!important}}
/* STATUS PALETTE */
.nc-state-P{--order-tint:#fff9e8;--order-hover:#fff3cf;--order-line:#b68b2b}
.nc-state-U{--order-tint:#f3f4f6;--order-hover:#e9ecef;--order-line:#7b8493}
.nc-state-C{--order-tint:#edf7f3;--order-hover:#e0f0e9;--order-line:#388568}
.nc-state-T{--order-tint:#edf7f3;--order-hover:#e0f0e9;--order-line:#388568}
.nc-state-Z{--order-tint:#f5f1fa;--order-hover:#ece4f5;--order-line:#8d70b2}
.nc-state-S{--order-tint:#eef5fd;--order-hover:#e0edfc;--order-line:#537eaf}
.nc-state-F{--order-tint:#eef7ef;--order-hover:#e0f0e2;--order-line:#55835e}
.nc-state-X{--order-tint:#fff0f0;--order-hover:#fbe2e2;--order-line:#b66d6d}
.nc-state-D{--order-tint:#fff0f0;--order-hover:#fbe2e2;--order-line:#b66d6d}
.nc-state-O{--order-tint:#fff3e9;--order-hover:#fce8d7;--order-line:#bd8756}
.nc-state-R{--order-tint:#f8eff5;--order-hover:#f1e3ec;--order-line:#a57495}
.nc-state-K{--order-tint:#f8eff5;--order-hover:#f1e3ec;--order-line:#a57495}
.nc-state-Y{--order-tint:#f3effa;--order-hover:#eae3f6;--order-line:#8a73b1}
.nc-state-M{--order-tint:#fff6e5;--order-hover:#f9edce;--order-line:#af8a3f}
.nc-state-E{--order-tint:#fff9e8;--order-hover:#fff3cf;--order-line:#b68b2b}
.nc-state-unknown{--order-tint:#f8f8f8;--order-hover:#f0f0f0;--order-line:#aaa}

/* Orders workspace: compact operations on desktop, complete order cards on mobile. */
@media(max-width:900px){.layout:not(.menu-open)>.sidebar{box-shadow:none!important;visibility:hidden;pointer-events:none}.layout.menu-open>.sidebar{visibility:visible;pointer-events:auto}}
.orders-table{min-width:0!important;width:100%;table-layout:auto}.orders-table-wrap{background:transparent;border:0;border-radius:10px}.orders-table th{font-size:var(--erp-font-10,10px);padding:13px 10px;white-space:nowrap;background:#fafafa}.orders-table td{padding:14px 10px;font-size:var(--erp-font-12,12px);line-height:1.5;vertical-align:middle}.orders-table .orders-col-site-order-number{width:15%;white-space:nowrap}.orders-table .orders-col-channel{width:46px;text-align:center}.orders-table .orders-col-customer-name{width:24%;min-width:170px}.orders-table .orders-col-status{width:36%;min-width:300px}.orders-table .orders-col-total{width:12%;min-width:92px;white-space:nowrap}.orders-table .orders-col-products{width:50px;text-align:right}.orders-table .orders-col-actions{width:34px}.orders-table .shop-badge{font-size:var(--erp-font-10,10px);font-weight:700;padding:4px 6px;min-width:28px;border-radius:4px;border:1px solid #d1d1d1;background:#fff;color:#333;letter-spacing:.04em}.orders-table .nc-order-number-link{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-height:0;background:none;border:0;border-radius:0;box-shadow:none;color:#171717;padding:0;text-align:left;font-size:var(--erp-font-12,12px)}.orders-table .nc-order-number-link:hover strong{text-decoration:underline;text-underline-offset:3px}.orders-table .nc-order-number-link small{font-size:var(--erp-font-10,10px);font-weight:400;color:#777;white-space:nowrap}.nc-order-client-cell{display:grid;gap:7px;min-width:0}.nc-order-client-cell>strong{font-size:var(--erp-font-12,12px);font-weight:600;overflow-wrap:anywhere}.nc-client-contacts{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}.nc-client-contacts .nc-phone{font-size:var(--erp-font-11,11px)}.nc-client-contacts small{font-size:var(--erp-font-10,10px);color:#777}.nc-fulfillment-line{display:flex;align-items:center;gap:9px;white-space:nowrap}.orders-table .nc-fulfillment-line .nc-status{font-size:var(--erp-font-10,10px);white-space:nowrap;max-width:none;flex:none}.orders-table .nc-fulfillment-line .nc-courier img{width:64px;height:25px;max-width:64px}.orders-table .nc-fulfillment-line .tracking-mini-button{width:auto;min-width:68px;min-height:31px;padding:6px 8px;font-size:var(--erp-font-10,10px);flex:none;white-space:nowrap}.nc-order-payment{display:block;font-size:var(--erp-font-10,10px);font-weight:400;color:#777;max-width:140px;white-space:normal;line-height:1.5;margin-top:5px}.orders-table .orders-col-products button{min-height:32px;font-size:var(--erp-font-11,11px);padding:6px 11px}.orders-toolbar{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(110px,1fr)) auto;gap:12px;align-items:end;padding:20px;margin:0 0 20px;background:#fff;border:1px solid #e2e2e2;border-radius:10px}.orders-toolbar label{min-width:0;font-size:var(--erp-font-12,12px);margin:0}.orders-toolbar label>input,.orders-toolbar label>select{width:100%;min-width:0;font-size:var(--erp-font-13,13px);min-height:42px}.orders-toolbar button{font-size:var(--erp-font-12,12px);min-height:42px;padding:10px 17px}.orders-toolbar>button.secondary{grid-column:1/-1;justify-self:end;min-height:34px}
@media(min-width:1251px) and (max-width:1350px){.orders-table td,.orders-table th{padding-left:7px;padding-right:7px}.orders-table .nc-fulfillment-line{gap:6px}.orders-table .orders-col-status{min-width:285px}.orders-table .orders-col-customer-name{min-width:140px}.orders-toolbar{grid-template-columns:minmax(190px,2fr) repeat(3,minmax(100px,1fr)) auto}}
@media(max-width:1250px){.orders-table,.orders-table tbody,.orders-table tr{display:block;width:100%;min-width:0!important}.orders-table thead{display:none}.orders-table tr.nc-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 12px;background:var(--order-tint,#fafafa);border:1px solid #ddd;border-left:3px solid var(--order-line,#bbb);border-radius:10px;margin:0 0 14px;padding:18px}.orders-table tr.nc-order-row>td{display:block;width:auto!important;max-width:none!important;min-width:0!important;border:0!important;padding:0!important;background:transparent!important;white-space:normal;text-align:left}.orders-table tr.nc-order-row>td:first-child{border-left:0!important}.orders-table td:before{display:none!important}.orders-table .orders-col-site-order-number{grid-column:1;grid-row:1}.orders-table .orders-col-channel{grid-column:2;grid-row:1;justify-self:end}.orders-table .orders-col-customer-name{grid-column:1/-1;grid-row:2}.orders-table .orders-col-status{grid-column:1/-1;grid-row:3;border-top:1px solid #00000012!important;padding-top:13px!important}.orders-table .orders-col-total{grid-column:1;grid-row:4}.orders-table .orders-col-products{grid-column:2;grid-row:4;align-self:center;justify-self:end}.orders-table .orders-col-actions{grid-column:2;grid-row:5;justify-self:end}.orders-table .nc-order-number-link{font-size:var(--erp-font-14,14px)}.orders-table .nc-order-number-link small{font-size:var(--erp-font-11,11px)}.nc-order-client-cell>strong{font-size:var(--erp-font-14,14px)}.nc-client-contacts{gap:6px 14px}.nc-client-contacts .nc-phone{font-size:var(--erp-font-12,12px)}.nc-client-contacts small{font-size:var(--erp-font-11,11px)}.nc-fulfillment-line{justify-content:flex-start;flex-wrap:wrap;gap:10px}.orders-table .nc-fulfillment-line .nc-status{font-size:var(--erp-font-11,11px);padding:5px 8px}.orders-table .nc-fulfillment-line .nc-courier{margin-left:auto}.orders-table .nc-fulfillment-line .nc-courier img{width:66px;height:25px}.orders-table .nc-fulfillment-line .tracking-mini-button{min-height:34px;font-size:var(--erp-font-11,11px);padding:7px 9px}.orders-table .orders-col-total strong{font-size:var(--erp-font-17,17px)}.nc-order-payment{max-width:none;font-size:var(--erp-font-11,11px)}.orders-table .orders-col-products button{min-height:38px;min-width:66px;font-size:var(--erp-font-12,12px)}.orders-toolbar{grid-template-columns:repeat(3,minmax(0,1fr)) auto;padding:17px;gap:12px}.orders-toolbar>label:first-child{grid-column:1/-1}}
@media(max-width:600px){.orders-toolbar{grid-template-columns:1fr 1fr;padding:15px;gap:12px}.orders-toolbar>label:first-child{grid-column:1/-1}.orders-toolbar>label:has([name=status]){grid-column:1}.orders-toolbar>button[type=submit],.orders-toolbar>button:not([type]){grid-column:2;min-height:44px;align-self:end}.orders-toolbar label>input,.orders-toolbar label>select{font-size:var(--erp-font-16,16px);min-height:44px}.orders-table tr.nc-order-row{padding:16px;gap:15px 10px}.orders-table .nc-fulfillment-line{gap:8px}.orders-table .nc-fulfillment-line .nc-status{font-size:var(--erp-font-10,10px)}.orders-table .nc-fulfillment-line .nc-courier img{width:58px;max-width:58px}.orders-table .nc-fulfillment-line .tracking-mini-button{font-size:var(--erp-font-10,10px);min-width:60px;padding:7px 8px}}


/* One fixed courier/action grid per row, independent of the status label. */
.orders-table .orders-col-status{width:20%;min-width:145px}
.orders-table .orders-col-tracking{width:198px;min-width:198px;white-space:nowrap}
.orders-table .nc-shipment-actions{display:grid;grid-template-columns:72px 94px;align-items:center;column-gap:12px;width:178px;min-height:34px}
.orders-table .nc-shipment-actions .nc-courier{display:flex;align-items:center;justify-content:center;width:72px;max-width:72px;min-height:34px;margin:0;font-size:var(--erp-font-10,10px);text-align:center;white-space:normal}
.orders-table .nc-shipment-actions .nc-courier img{display:block;width:72px;height:28px;max-width:72px;max-height:28px;object-fit:contain}
.orders-table .nc-shipment-actions .tracking-mini-button{box-sizing:border-box;width:94px;min-width:94px;min-height:34px;margin:0;padding:7px 5px;font-size:var(--erp-font-10,10px);line-height:18px;white-space:nowrap;justify-self:start}
@media(min-width:1251px) and (max-width:1350px){
 .orders-table .orders-col-tracking{width:192px;min-width:192px}
 .orders-table .orders-col-status{min-width:145px}
}
@media(max-width:1250px){
 .orders-table .orders-col-tracking{grid-column:1/-1;grid-row:4}
 .orders-table .orders-col-total,.orders-table .orders-col-products{grid-row:5}
 .orders-table .orders-col-actions{grid-row:6}
 .orders-table .nc-shipment-actions{grid-template-columns:72px 94px;column-gap:12px;width:178px;min-height:38px}
 .orders-table .nc-shipment-actions .nc-courier{min-height:38px}
 .orders-table .nc-shipment-actions .tracking-mini-button{min-height:38px;font-size:var(--erp-font-11,11px)}
}

/* Ready-to-print label: a consistent, accessible green action. */
.nc-label-download{background:#17804a!important;border-color:#17804a!important;color:#fff!important;text-decoration:none!important}
.nc-label-download:hover{background:#116b3d!important;border-color:#116b3d!important;color:#fff!important}
.nc-label-download:focus-visible{outline:3px solid #8dc9a6;outline-offset:3px}
.nc-cod-change{border-color:#b48632!important;color:#654817!important;background:#fff8e6!important}
.orders-table .nc-shipment-actions{grid-template-columns:72px 94px 34px!important;gap:10px!important;width:220px}
.orders-table .orders-col-tracking{width:240px;min-width:240px}
.nc-dispatch-slot,.nc-dispatch-button{width:34px;min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;box-sizing:border-box}
.nc-dispatch-button{background:#17804a!important;border:1px solid #17804a!important;color:#fff!important;border-radius:5px;cursor:pointer}
.nc-dispatch-button:hover{background:#116b3d!important}
.nc-dispatch-button:disabled{opacity:.5;cursor:wait}
.nc-dispatch-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.nc-order-row.nc-state-H{background:#edf0ff!important;--nc-row-bg:#edf0ff}.nc-status.nc-state-H{background:#e1e6fb;color:#2f4384;border-color:#c7d1f3}.nc-state-H .ncs-timeline-dot{background:#5266a6}

/* Explicit payment confirmation, independent of fulfillment status. */
.nc-payment-paid{--order-tint:#ccebdc;--order-hover:#bce2cd;--order-line:#08613c}
.nc-payment-failed{--order-tint:#171717;--order-hover:#242424;--order-line:#050505}
.nc-order-row.nc-payment-paid>td,.nc-order-row.nc-payment-failed>td{background:var(--order-tint)!important;border-bottom-color:#ffffff24}
.nc-order-row.nc-payment-paid:hover>td,.nc-order-row.nc-payment-failed:hover>td{background:var(--order-hover)!important}
.nc-payment-paid>td:first-child,.nc-payment-failed>td:first-child{border-left-width:6px!important}
.nc-payment-flags{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.nc-payment-mobile-flag{display:none}
.nc-payment-flag{display:inline-flex;align-items:center;gap:7px;max-width:240px;padding:8px 10px;border:1px solid #08613c;border-radius:5px;background:#08613c;color:#fff!important;font-size:var(--erp-font-11,13px);font-weight:750;line-height:1.4;letter-spacing:.025em;white-space:normal;text-align:left}
.nc-payment-flag-failed{background:#fff;color:#111!important;border-color:#fff}
.nc-order-row.nc-payment-failed,.nc-order-row.nc-payment-failed>td{color:#fff!important}
.nc-payment-failed .nc-order-number-link,.nc-payment-failed .nc-order-number-link strong,.nc-payment-failed .nc-order-client-cell>strong,.nc-payment-failed .nc-phone,.nc-payment-failed .ncs-order,.nc-payment-failed .ncs-customer-name,.nc-payment-failed .ncs-price,.nc-payment-failed .order-total-cell>strong{color:#fff!important}
.nc-payment-failed .nc-order-number-link small,.nc-payment-failed .nc-client-contacts small,.nc-payment-failed .nc-order-payment,.nc-payment-failed .ncs-date,.nc-payment-failed td>small,.nc-payment-failed .ncs-payment-cell{color:#d4d4d4!important}
.nc-payment-failed .nc-status{background:#fff;color:#171717!important;border-color:#fff}
.nc-payment-failed .nc-status i{background:#171717}
.nc-payment-failed .nc-courier img{background:#fff!important;border-radius:4px!important;padding:3px!important;box-sizing:border-box}
.nc-payment-failed .ncs-open{background:#fff;color:#111!important;border-color:#fff}
.nc-order-overview.nc-payment-paid,.ncs-order-overview.nc-payment-paid{background:#e1f3e9;border-left-width:6px}
.nc-order-overview.nc-payment-failed,.ncs-order-overview.nc-payment-failed{background:#171717;color:#fff;border-color:#171717}
.nc-order-overview.nc-payment-failed .nc-section-label,.nc-order-overview.nc-payment-failed .nc-order-created,.nc-order-overview.nc-payment-failed .nc-order-heading-state>span:last-child,.ncs-order-overview.nc-payment-failed .ncs-eyebrow,.ncs-order-overview.nc-payment-failed .ncs-created,.ncs-order-overview.nc-payment-failed .ncs-order-state>span:last-child{color:#d4d4d4}
.nc-order-overview.nc-payment-failed h2,.nc-order-overview.nc-payment-failed .nc-order-amount,.ncs-order-overview.nc-payment-failed h2,.ncs-order-overview.nc-payment-failed .ncs-order-total{color:#fff}
.nc-payment-failed .ncs-item strong,.nc-payment-failed .ncs-item small,.nc-payment-failed .ncs-item-options,.nc-payment-failed .nc-order-item-name{color:#fff!important}
.nc-payment-failed .tiny-text,.nc-payment-failed .muted{color:#d4d4d4!important}
.nc-order-overview.nc-payment-failed .nc-order-contact a,.nc-order-overview.nc-payment-failed .nc-order-delivery{color:#fff!important}
.nc-order-heading-state>.nc-payment-flag,.ncs-order-state>.nc-payment-flag{font-size:var(--erp-font-11,13px);max-width:280px;text-align:right}
@media(max-width:1250px){.orders-table tr.nc-payment-paid,.orders-table tr.nc-payment-failed{background:var(--order-tint)!important}}
@media(max-width:700px){.nc-payment-flag{font-size:12px;padding:8px 10px}.nc-order-row.nc-payment-failed td:before{color:#d4d4d4!important}.nc-order-heading-state>.nc-payment-flag,.ncs-order-state>.nc-payment-flag{font-size:12px;max-width:230px}.nc-payment-failed .nc-order-contact a,.nc-payment-failed .nc-order-delivery{color:#fff!important}}
@media(max-width:650px){.nc-payment-mobile-flag{display:block;margin-top:10px;max-width:200px}.nc-payment-mobile-flag:empty{display:none}}

/* Desktop payment flags stay on one line to keep the order rows compact. */
@media(min-width:961px){.nc-payment-flag-failed{white-space:nowrap;max-width:none;flex-shrink:0}.ncs-payment-label .nc-payment-flag-failed{font-size:11px;letter-spacing:0;padding:8px}.orders-table .nc-payment-flag-failed{font-size:12px;letter-spacing:0;padding:7px 8px}}

@media(min-width:1251px) and (max-width:1350px){.orders-table .orders-col-customer-name{min-width:110px}.orders-table .nc-order-number-link small{font-size:12px}.orders-table .orders-col-tracking{width:212px;min-width:212px}.orders-table .nc-shipment-actions{grid-template-columns:64px 84px 30px!important;gap:8px!important;width:194px}.orders-table .nc-shipment-actions .nc-courier,.orders-table .nc-shipment-actions .nc-courier img{width:64px;max-width:64px}.orders-table .nc-shipment-actions .tracking-mini-button{width:84px;min-width:84px}}
