:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#19343d;background:#f4f7f8;--teal:#087f83;--muted:#6f8188;--line:#dfe7e9}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}
header{background:#112f3b;color:white;border-bottom:3px solid #26b4ab}
.header-inner{max-width:1740px;margin:auto;padding:14px 30px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{display:flex;gap:12px;align-items:center;font-size:18px;font-weight:600}.brand-icon{font-size:30px;color:#80e0d7}
.brand-en{display:block;font-size:9px;color:#9bb9c3;letter-spacing:2px;margin-top:3px}
.account{display:flex;align-items:center;gap:10px;min-width:0}
.customer{font-size:13px;color:#d9ecee;background:#254650;padding:8px 14px;border-radius:20px;overflow-wrap:anywhere}
.link{border:0;background:none;color:#b9d8dc;font-size:13px;padding:6px 2px}.link:hover{color:white;text-decoration:underline}
main{max-width:1740px;margin:auto;padding:22px 30px 30px}
h1{font-size:22px;margin:0;font-weight:650}
.toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:0 0 12px}
.toolbar h1 span{font-size:13px;background:#dcefeb;color:var(--teal);padding:3px 10px;margin-left:6px;border-radius:10px;vertical-align:middle}
.quiet{border:1px solid var(--line);border-radius:6px;background:white;color:#4f6a72;padding:8px 14px;font-size:13px}.quiet:hover{border-color:#77b7b6}.quiet:disabled{opacity:.4;cursor:default}
.filter{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.search{display:flex;gap:10px;align-items:center;background:white;border:1px solid var(--line);border-radius:7px;padding:0 13px;max-width:520px;flex:1}
.search span{font-size:22px;color:#82969c}.search input{border:0;outline:none;background:transparent;padding:11px 0;width:100%;font-size:14px}
.search:focus-within{outline:2px solid #8ac8c6;outline-offset:2px}.sync{font-size:12px;color:var(--muted);white-space:nowrap}
.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:9px}
.order-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed;min-width:1440px}
.order-table thead{background:#edf3f4;color:#59727b}
.order-table th,.order-table td{text-align:left;vertical-align:top;padding:16px 18px;border-bottom:1px solid #e8eef0;overflow-wrap:anywhere}
.order-table thead th{font-size:13px;font-weight:600;padding-top:12px;padding-bottom:12px}
.order-table thead th:nth-child(1){width:13%}.order-table thead th:nth-child(2){width:17%}.order-table thead th:nth-child(3){width:8%}.order-table thead th:nth-child(4){width:10%}.order-table thead th:nth-child(5){width:14%}.order-table thead th:nth-child(6){width:11%}.order-table thead th:nth-child(7){width:13%}.order-table thead th:nth-child(8){width:14%}
.order-table tbody tr:last-child>*{border-bottom:0}.order-table tbody tr:hover{background:#f8fbfb}
.order-reference{font-size:15px;font-weight:600}.product-name{line-height:1.6}
.muted{color:var(--muted);font-size:12px;line-height:1.6;font-weight:400}.order-table small{display:block;margin-top:4px}
.order-table small.state{display:inline-block;margin-top:6px;font-size:12px;color:#8a612f;background:#fff4e2;border-radius:4px;padding:2px 8px}
.thumbs{display:flex;flex-wrap:wrap;gap:6px}
.thumb{position:relative;width:76px;height:76px;padding:4px;border:1px solid var(--line);border-radius:6px;background:#f2f6f7;overflow:hidden;color:var(--teal);font-size:12px;line-height:1.3;display:flex;align-items:center;justify-content:center;text-align:center}
.thumb:not(.pending){padding:0}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb:not(.pending):hover{border-color:#77b7b6}
.thumb.pending:disabled{color:#8b9b9f;cursor:default}.thumb progress{position:absolute;left:6px;right:6px;bottom:6px;width:auto;height:4px;accent-color:var(--teal)}
.file-item+.file-item{margin-top:9px}
.file-action{display:inline-block;color:var(--teal);background:#f2f9f7;border:1px solid #d0e6e1;border-radius:5px;padding:6px 10px;text-decoration:none;font-size:13px;line-height:1.4}
.file-action:hover{background:#e4f2ee}.file-action:disabled{color:#8b9b9f;background:#f5f7f8;cursor:default}.file-action.all{display:table;margin-top:10px}
.file-size{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.file-item progress{display:block;width:100%;height:5px;margin-top:6px;accent-color:var(--teal)}
.error{color:#b45c45}
.tracking{display:block;color:var(--teal);font-size:14px;font-weight:600;text-decoration:none;line-height:1.8}.tracking:hover{text-decoration:underline}
.destination-cell,.recipient-cell{line-height:1.6}
.fee-line{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;line-height:1.9}.fee-line>span{color:var(--muted);white-space:nowrap}.fee-line strong{font-size:13px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.freight-total{border:0;border-bottom:1px dotted var(--teal);padding:0;background:transparent;color:var(--teal);font-size:13px;font-weight:600;white-space:nowrap;line-height:1.6;font-variant-numeric:tabular-nums}
.expense-total{margin-top:5px;padding-top:5px;border-top:1px solid var(--line)}.expense-total strong{font-weight:700;color:var(--teal)}
.fee-tooltip{position:fixed;z-index:60;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:14px 16px;border:1px solid #c5d9dc;border-radius:8px;background:white;color:#19343d;box-shadow:0 8px 28px #19343d26;font-size:13px}.fee-tooltip>strong{display:block;margin-bottom:8px}.fee-tooltip .fee-line strong{white-space:normal;text-align:right}.fee-formula{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.7}.fee-equation{margin-top:5px;line-height:1.7;font-variant-numeric:tabular-nums}
.pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 0;color:var(--muted);font-size:13px}.pagination>div{display:flex;align-items:center;gap:12px}
.empty{text-align:center!important;color:var(--muted);padding:45px 20px!important;font-size:14px}.panel{background:white;border:1px solid var(--line);border-radius:9px}.panel h2{font-size:17px;margin:0}
#message{border:1px solid #ecd8bc;border-radius:7px;background:#fff8ee;color:#8a612f;padding:12px 16px;font-size:14px;margin-bottom:16px}
.viewer{position:fixed;inset:0;z-index:50;background:rgba(8,22,28,.92);display:flex;align-items:center;justify-content:center}
.viewer img{max-width:92vw;max-height:82vh;object-fit:contain;border-radius:4px;background:#fff}
.viewer-close,.viewer-nav{position:absolute;border:0;background:rgba(255,255,255,.12);color:white;border-radius:50%;width:44px;height:44px;font-size:28px;line-height:44px;padding:0}
.viewer-close:hover,.viewer-nav:hover{background:rgba(255,255,255,.24)}.viewer-close{top:14px;right:16px}
.viewer-nav{top:50%;transform:translateY(-50%);font-size:34px}.viewer-nav.prev{left:14px}.viewer-nav.next{right:14px}
.viewer-bar{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;align-items:center;gap:20px;color:#d9ecee;font-size:14px}
.viewer-download{color:#80e0d7;text-decoration:none;font-weight:600}.viewer-download:hover{text-decoration:underline}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #75bebc;outline-offset:3px}
@media(max-width:700px){
  main{padding:14px 12px 24px}.header-inner{padding:12px 14px}.brand{font-size:16px}.brand-icon{font-size:26px}.brand-en{display:none}
  .customer{font-size:12px;padding:6px 11px}.filter{display:block;padding:12px 0}.search{max-width:none}.sync{display:block;margin-top:8px}
  /* Phones: each order becomes one stacked block, so photos, videos and tracking show without sideways scrolling. */
  .table-wrap{overflow:visible;background:none;border:0;border-radius:0}
  .order-table,.order-table tbody{display:block;min-width:0}.order-table thead{display:none}
  .order-table tbody tr{display:block;background:white;border:1px solid var(--line);border-radius:9px;padding:13px 14px;margin-bottom:10px}
  .order-table tbody tr:hover{background:white}
  .order-table th,.order-table td,.order-table tbody tr:last-child>*{display:block;padding:0;border:0}
  .order-table tbody tr>*+*{margin-top:10px}.order-table td.none{display:none}
  .order-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;margin-bottom:2px}
  .fees-cell{max-width:340px}.fees-cell>.fee-line,.fees-cell>.freight-detail{max-width:300px}
  .order-table td.empty{padding:40px 16px!important}.thumb{width:72px;height:72px}.pagination{gap:8px}
  .viewer-nav{top:auto;bottom:56px;transform:none}
}
