/* Per-product rows keep shipment state readable without losing order context. */
.emall-module .emo-orders{--emo-line:var(--line);--emo-soft:var(--surface-soft);min-width:0}
.emall-module .emo-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.emall-module .emo-intro p{font-size:13px;color:var(--ink)}
.emall-module .emo-intro>div>span{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.emall-module .emo-freshness{display:flex;align-items:center;gap:7px;flex:none;font-size:10px;color:var(--muted)}.emall-module .emo-freshness i{width:6px;height:6px;border-radius:50%;background:var(--green)}.emall-module .emo-freshness.is-stale i{background:var(--amber)}
.emall-module .emo-source-note{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:8px;padding:10px 13px;background:var(--amber-soft);margin-bottom:15px;font-size:11px;color:var(--amber)}.emall-module .emo-source-note span{color:var(--muted)}
.emall-module .emo-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:13px}
.emall-module .emo-metric{position:relative;min-width:0;display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:15px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-align:left}
.emall-module .emo-metric:hover,.emall-module .emo-metric.selected{border-color:var(--em-accent);background:var(--em-accent-soft)}.emall-module .emo-metric>span{font-size:11px;align-self:center}.emall-module .emo-metric>strong{font-size:25px;line-height:1.1;font-weight:650;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.emall-module .emo-metric>small{grid-column:1/-1;color:var(--muted);font-size:9px}
.emall-module .emo-distribution{margin:12px 1px 19px}.emall-module .emo-distribution-caption{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;margin-bottom:7px}.emall-module .emo-distribution-bar{display:flex;gap:3px;height:5px;overflow:hidden;border-radius:4px;background:var(--line)}.emall-module .emo-distribution-bar>span{min-width:3px;background:#c8d5df;border-radius:2px;flex-basis:0}
.emall-module .emo-distribution-bar>.emo-bar-confirmed{background:#9aa9cd}.emall-module .emo-distribution-bar>.emo-bar-awaiting_delivery{background:#8c8fcf}.emall-module .emo-distribution-bar>.emo-bar-in_delivery{background:#4d92bb}.emall-module .emo-distribution-bar>.emo-bar-on_post{background:#5bab99}.emall-module .emo-distribution-bar>.emo-bar-delivered{background:var(--green)}.emall-module .emo-distribution-bar>:is(.emo-bar-cancelled,.emo-bar-refusal){background:var(--red)}.emall-module .emo-distribution-bar>:is(.emo-bar-conflicting,.emo-bar-unknown,.emo-bar-in_payment){background:var(--amber)}
.emall-module .emo-toolbar{display:flex;align-items:flex-end;gap:10px;padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:10px;flex-wrap:wrap}
.emall-module .emo-search{flex:1 1 220px;min-width:160px;display:flex;align-items:center;gap:8px;height:37px;border:1px solid var(--line);border-radius:7px;padding:0 10px;color:var(--muted);background:var(--bg)}.emall-module .emo-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}.emall-module .emo-search svg{width:16px;height:16px}.emall-module .emo-search input{min-width:0;width:100%;font-size:11px;border:0;background:transparent;color:var(--ink);outline:none;padding:8px 0}.emall-module .emo-search input:focus-visible{outline:none}
.emall-module .emo-select{flex:0 1 150px;min-width:110px;display:block}.emall-module .emo-select>span{display:block;margin:0 0 4px;font-size:9px;color:var(--muted)}.emall-module .emo-select select{min-width:0;width:100%;height:37px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:11px;padding:7px 8px}.emall-module .emo-refresh{min-height:37px;flex:0 0 auto}
.emall-module .emo-result-count{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:10px;min-height:41px;padding:0 2px}.emall-module .emo-order-list{display:flex;flex-direction:column;gap:10px}
.emall-module .emo-order-card{min-width:0;border:1px solid var(--line);border-left:3px solid #83a5c0;border-radius:10px;background:var(--surface);overflow:hidden}.emall-module .emo-state-good{border-left-color:var(--green)}.emall-module .emo-state-warn{border-left-color:var(--amber)}
.emall-module .emo-order-main{display:grid;grid-template-columns:49px minmax(180px,1.15fr) minmax(320px,1.8fr) minmax(98px,.43fr);gap:15px;align-items:center;padding:13px 15px 10px}
.emall-module .emo-photo{display:grid;place-items:center;width:49px;height:61px;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;align-self:center}.emall-module .emo-photo img{width:100%;height:100%;object-fit:contain}.emall-module .emo-photo.is-empty{background:var(--surface-soft);color:var(--muted)}.emall-module .emo-photo-fallback{display:grid;place-items:center}.emall-module .emo-photo svg{width:24px;height:24px}
.emall-module .emo-product{min-width:0}.emall-module .emo-order-reference{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:5px;font-size:9px}.emall-module .emo-order-reference>strong{font-weight:550;color:var(--em-accent)}.emall-module .emo-order-reference>span{color:var(--muted);font-size:9px}
.emall-module .emo-product h2{font-size:12px;line-height:1.45;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.emall-module .emo-product>p{color:var(--muted);font-size:10px;margin:4px 0}.emall-module .emo-product>p>span{margin:0 3px}.emall-module .emo-product-meta{display:flex;align-items:baseline;gap:9px;font-size:9px;color:var(--muted)}.emall-module .emo-product-meta>span:first-child{font-weight:650;color:var(--ink);white-space:nowrap}.emall-module .emo-product-meta>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emall-module .emo-track{min-width:0}.emall-module .emo-track-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.emall-module .emo-status{display:inline-flex;align-items:center;gap:6px;padding:3px 7px;border-radius:5px;background:var(--blue-soft);color:var(--blue);font-size:10px;font-weight:550}.emall-module .emo-status>i{height:5px;width:5px;border-radius:50%;background:currentColor}.emall-module .emo-status-good{background:var(--green-soft);color:var(--green)}.emall-module .emo-status-warn{background:var(--amber-soft);color:var(--amber)}.emall-module .emo-shipment{font-size:9px;color:var(--muted)}
.emall-module .emo-track .flow-timeline{margin:10px 0 6px}.emall-module .emo-track .flow-step{font-size:9px;line-height:1.3;padding-right:5px;min-width:0}.emall-module .emo-track .flow-step small{display:none}.emall-module .emo-track .flow-step time{font-size:8px}.emall-module .emo-track .flow-step-skipped .flow-label{text-decoration:none;color:var(--muted);opacity:.75}.emall-module .emo-track .flow-step-skipped:not(:last-child)::after{background:repeating-linear-gradient(90deg,var(--line),var(--line) 3px,transparent 3px,transparent 6px)}
.emall-module .emo-route-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:9px;color:var(--muted)}.emall-module .emo-route-meta b{font-weight:500;color:var(--ink);overflow-wrap:anywhere}.emall-module .emo-route-meta .emo-overdue{color:var(--red)}
.emall-module .emo-amount{min-width:0;text-align:right;font-variant-numeric:tabular-nums}.emall-module .emo-amount>strong{display:block;font-size:14px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.emall-module .emo-amount>span,.emall-module .emo-amount>small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.emall-module .emo-details{border-top:1px solid var(--line);margin:0 15px}.emall-module .emo-details>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;cursor:pointer;font-size:9px;color:var(--muted);list-style:none}.emall-module .emo-details>summary::-webkit-details-marker{display:none}.emall-module .emo-details>summary>span:first-child::before{content:'›';display:inline-block;transition:transform .15s;margin-right:6px;font-size:13px;line-height:1}.emall-module .emo-details[open]>summary>span:first-child::before{transform:rotate(90deg)}
.emall-module .emo-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px;padding:13px 0 16px}.emall-module .emo-detail-grid h3{font-size:11px;margin-bottom:11px}.emall-module .emo-history{list-style:none;padding:0;margin:0;display:grid;gap:12px;max-height:280px;overflow-y:auto}.emall-module .emo-history li{display:flex;align-items:flex-start;gap:9px;min-width:0}.emall-module .emo-history-dot{width:7px;height:7px;border:2px solid var(--em-accent);border-radius:50%;margin-top:4px;flex:none}.emall-module .emo-history strong{display:block;font-size:10px;font-weight:550}.emall-module .emo-history small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.emall-module .emo-provenance{margin:0;font-size:10px;display:grid;gap:6px}.emall-module .emo-provenance>div{display:grid;grid-template-columns:minmax(115px,.8fr) minmax(0,1fr);gap:12px}.emall-module .emo-provenance dt{color:var(--muted)}.emall-module .emo-provenance dd{margin:0;overflow-wrap:anywhere}.emall-module .emo-caption{font-size:10px;line-height:1.65;color:var(--muted);margin-top:10px}
.emall-module .emo-empty{text-align:center;border:1px dashed var(--line);border-radius:10px;padding:45px 20px;color:var(--muted);background:var(--surface)}.emall-module .emo-empty>svg{width:34px;height:34px;margin-bottom:12px}.emall-module .emo-empty h2{font-size:15px;color:var(--ink);margin-bottom:8px}.emall-module .emo-empty p{font-size:11px}
.emall-module .emo-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;color:var(--muted);font-size:10px}.emall-module .emo-pagination>div{display:flex;align-items:center;gap:12px}.emall-module .emo-pagination .em-button{min-height:30px;padding:4px 11px}
.emall-module .emo-method{margin-top:20px;border-top:1px solid var(--line);padding-top:13px;color:var(--muted);font-size:10px;max-width:900px}.emall-module .emo-method>summary{cursor:pointer;font-weight:550;color:var(--ink);list-style-position:inside}.emall-module .emo-method p{margin-top:10px;line-height:1.7}.emall-module .emo-method a{display:inline-block;margin-top:9px;color:var(--blue)}
.emall-module .emo-source-coverage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 22px;list-style:none;margin:13px 0 0;padding:0}.emall-module .emo-source-coverage li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--line)}
@media(max-width:1250px){.emall-module .emo-order-main{grid-template-columns:45px minmax(140px,1fr) minmax(280px,1.6fr);gap:11px}.emall-module .emo-photo{width:45px;height:56px}.emall-module .emo-amount{grid-column:2;grid-row:2;text-align:left;display:flex;align-items:baseline;gap:9px}.emall-module .emo-amount>strong{font-size:12px}.emall-module .emo-amount>span{display:none}.emall-module .emo-track{grid-column:3;grid-row:1/3}.emall-module .emo-select{flex-basis:125px}.emall-module .emo-metric{padding:12px}.emall-module .emo-metric>strong{font-size:22px}}
@media(max-width:900px){.emall-module .emo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.emall-module .emo-intro{align-items:flex-start;flex-direction:column;gap:8px}.emall-module .emo-toolbar{gap:9px}.emall-module .emo-search{flex-basis:100%}.emall-module .emo-select{flex:1 1 120px}.emall-module .emo-refresh{flex:1 1 130px}.emall-module .emo-order-main{grid-template-columns:45px minmax(0,1fr) auto;gap:10px}.emall-module .emo-track{grid-column:1/-1;grid-row:2;padding-top:3px}.emall-module .emo-amount{display:block;grid-column:3;grid-row:1;text-align:right;max-width:115px}.emall-module .emo-track .flow-step{min-width:0}.emall-module .emo-track .flow-timeline{overflow:visible;padding:0;margin:11px 0 9px}.emall-module .emo-track .flow-label{max-width:75px}.emall-module .emo-detail-grid{gap:18px}}
@media(max-width:540px){.emall-module .emo-order-main{padding:11px}.emall-module .emo-product h2{font-size:11px}.emall-module .emo-product-meta{gap:6px}.emall-module .emo-amount{max-width:85px}.emall-module .emo-amount>strong{font-size:11px}.emall-module .emo-amount>small{font-size:8px}.emall-module .emo-order-reference>span{display:none}.emall-module .emo-track .flow-step{font-size:8px;padding-right:4px}.emall-module .emo-track .flow-node{height:13px;width:13px;font-size:8px}.emall-module .emo-track .flow-step:not(:last-child)::after{top:6px;left:13px}.emall-module .emo-track .flow-step time{display:none}.emall-module .emo-details{margin:0 11px}.emall-module .emo-detail-grid,.emall-module .emo-source-coverage{grid-template-columns:minmax(0,1fr)}.emall-module .emo-result-count>span:last-child{display:none}.emall-module .emo-metric>span{font-size:10px}.emall-module .emo-metric>small{font-size:8px}.emall-module .emo-metric>strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.emall-module .emo-orders *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
