.mobile-orders-sort{display:none}
@media(min-width:801px){.mobile-add-disclosure{display:contents}.mobile-add-disclosure>summary{display:none}.mobile-row-menu{display:contents}.mobile-row-menu>summary{display:none}}
@media(max-width:800px){
#orders .product-package,#orders .named-package-proof-slot,#orders .order-proof-list{min-height:0!important;height:auto!important;align-content:start!important}
#orders .shipment-lines{display:flex!important;flex-direction:column!important;gap:5px!important;min-height:0!important}
#orders .shipment-lines>div{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important;min-height:0!important;height:auto!important;padding:0!important;font-size:11px!important}
#orders .shipment-tracking>div{gap:4px 8px!important}#orders .shipment-tracking small{min-width:42px}
#orders .product-package{align-items:flex-start!important;flex-direction:row!important}
#orders .product-package strong{width:100%!important}
#orders .order-proof-button{height:auto!important;min-width:0!important}
.mobile-metrics-disclosure>summary{padding:9px 12px;font-size:12px;cursor:pointer;border:1px solid var(--mobile-card-border,#dfe3eb);border-radius:9px;background:var(--mobile-card-bg,#fff)}
.workspace:has(#orders) #quick-filters{margin:4px 0 10px!important}
html[data-theme] .workspace:has(#orders){padding:0!important;min-width:0}
.workspace:has(#orders)>header{display:none!important}
.workspace:has(#orders) .notice{font-size:12px;padding:10px;margin:10px 0}
.workspace:has(#orders) .metrics{display:flex!important;overflow:auto;gap:8px;padding:0 0 8px}
.workspace:has(#orders) .metrics>*{flex:0 0 115px;padding:10px!important;min-height:0!important}
.workspace:has(#orders) .manual-add{padding:12px!important;margin:10px 0!important}
.workspace:has(#orders) .manual-add summary{cursor:pointer;font-weight:600;min-height:32px}
.workspace:has(#orders) #quick-filters{display:flex!important;gap:7px!important;overflow:visible;flex-wrap:wrap!important;padding:10px 0!important}
#quick-filters [data-status]{min-height:38px!important;font-size:12px!important;padding:7px 10px!important;flex:0 0 auto!important}
#quick-filters>span{display:none!important}
#quick-filters #order-search{display:block!important;order:-2;width:100%!important;flex:1 0 100%!important;min-height:44px!important;font-size:16px!important;box-sizing:border-box}
#quick-filters #toggle-search{display:none!important}
.mobile-orders-sort{display:flex;align-items:center;gap:6px;width:100%;font-size:12px}
.mobile-orders-sort select{min-height:38px;min-width:0;flex:1;font-size:14px}
.workspace:has(#orders) .shortcut-hint{display:none!important}
html[data-theme] .workspace:has(#orders) .table-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] .workspace:has(#orders) table{display:block!important;min-width:0!important;width:100%!important;border:0!important;background:transparent!important;table-layout:auto!important}
.workspace:has(#orders) thead{display:none!important}
html[data-theme] #orders{display:flex!important;flex-direction:column;gap:12px;width:100%}
html[data-theme] #orders>tr:not(.inline-order-detail){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 10px!important;padding:14px!important;border:1px solid var(--mobile-card-border,#dfe3eb)!important;border-radius:14px!important;background:var(--mobile-card-bg,#fff)!important;box-shadow:0 2px 5px #00000003!important;width:100%!important;box-sizing:border-box;position:relative}
html[data-theme] #orders>tr>td{display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px!important;line-height:1.55!important;text-align:left!important;box-sizing:border-box}
html[data-theme] #orders>tr>td::before{display:none!important}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(1){display:none!important}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(2){grid-column:1;grid-row:1;font-size:19px!important;font-weight:700;color:#007aff}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(6){grid-column:2;grid-row:1;text-align:right!important}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(3){grid-column:1;grid-row:2;color:var(--mobile-muted,#64748b)}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(4){grid-column:2;grid-row:2;font-size:11px!important;text-align:right!important;color:var(--mobile-muted,#64748b)}
#orders .ordered-time br{display:none}#orders .ordered-time span{margin-left:5px;font-size:inherit!important}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(5){grid-column:1/-1;grid-row:3;background:var(--mobile-inset,#f5f7fa)!important;border-radius:9px!important;padding:9px 10px!important}
#orders .grouped-products{display:grid;gap:8px}#orders .product-package{margin:0!important;padding:0!important;border:0!important;display:flex;gap:3px 10px;flex-wrap:wrap}#orders .product-package strong{flex:0 0 100%}#orders .product-package span{display:inline!important}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(7){grid-column:1/-1;grid-row:4;padding:4px 0!important;font-size:12px!important}
#orders td:nth-child(7):empty::after{content:'Tracking: Chưa có tracking';color:var(--mobile-muted,#64748b)}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(8){grid-column:1/-1;grid-row:5}
#orders .order-proof-list{display:flex!important;gap:8px!important;flex-wrap:wrap;align-items:flex-start!important}
#orders .named-package-proof-slot{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:4px;max-width:100%;font-size:11px}
#orders .order-proof-button{width:auto!important;max-width:100%!important;min-height:44px!important;display:flex!important;gap:8px;align-items:center;padding:5px!important;text-align:left;border-radius:8px}
#orders .order-proof-button img{width:64px!important;height:56px!important;object-fit:cover!important;border-radius:6px!important;flex:none}
#orders .order-proof-button span{font-size:11px!important;max-width:220px;white-space:normal}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(9){grid-column:1/-1;grid-row:6;color:var(--mobile-muted,#64748b);font-size:11px!important}
#orders td:nth-child(9)::after{content:' · Cập nhật cuối'}
html[data-theme] #orders>tr:not(.inline-order-detail)>td:nth-child(10){grid-column:1/-1;grid-row:7;padding-top:3px!important}
#orders .row-actions{display:flex!important;flex-direction:row!important;gap:7px!important;flex-wrap:wrap!important;align-items:center!important}
#orders .row-actions button{min-height:42px!important;padding:8px 10px!important;font-size:12px!important;border-radius:9px!important;white-space:normal!important}
#orders .detail-btn{flex:1!important;color:#007aff!important}#orders .check-btn{flex:1!important;background:#007aff!important;color:#fff!important;border-color:#007aff!important}#orders .check-btn:disabled{opacity:.55}
#orders .mobile-row-menu{position:relative;flex:0 0 auto}#orders .mobile-row-menu>summary{list-style:none;cursor:pointer;padding:8px 14px;min-height:42px;box-sizing:border-box;border:1px solid var(--mobile-card-border,#dfe3eb);border-radius:9px;font-size:19px;line-height:24px}#orders .mobile-row-menu>summary::-webkit-details-marker{display:none}#orders .mobile-row-menu[open]>.delete-btn{position:absolute;right:0;top:46px;z-index:10;min-width:100px;background:var(--mobile-card-bg,#fff)!important;box-shadow:0 5px 20px #0002}
html[data-theme] #orders>tr.inline-order-detail{display:block!important;width:100%!important;border:1px solid var(--mobile-card-border,#dfe3eb)!important;border-radius:14px!important;background:var(--mobile-card-bg,#fff)!important;margin-top:-8px!important;overflow:hidden}
html[data-theme] #orders>tr.inline-order-detail>td{padding:12px!important;width:100%!important}
html[data-theme] #orders #detail{display:flex!important;flex-direction:column!important;gap:10px!important;padding:0!important;margin:0!important;min-width:0!important}
html[data-theme] #orders #detail>article{width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;box-sizing:border-box;padding:12px!important;border-radius:10px!important}
#orders #detail h2{font-size:14px!important;margin:0 0 10px!important}#orders #detail p{font-size:13px!important;line-height:1.55!important}
#orders .inline-detail-heading{display:flex!important;align-items:center;justify-content:space-between;gap:8px;font-size:13px!important}#orders .inline-detail-heading button{min-height:42px!important;padding:8px!important}
#orders .delivery-images{display:block!important}#orders .delivery-images figure{margin:0 0 14px!important;width:100%!important}#orders .proof-open{width:100%!important}#orders .proof-open img{width:100%!important;height:auto!important;max-height:330px!important;object-fit:contain!important}#orders .proof-open span{min-height:42px!important;display:flex;align-items:center;justify-content:center}#orders .proof-timeline summary{min-height:42px;display:flex;align-items:center}
html[data-theme=dark]{--mobile-card-bg:#1c1c1e;--mobile-card-border:#38383b;--mobile-inset:#262629;--mobile-muted:#a6a6b0}
}
@media(min-width:801px){.mobile-metrics-disclosure{display:contents}.mobile-metrics-disclosure>summary{display:none}}
