:root {
    color-scheme: light;
    --ink: #202c40;
    --muted: #7b879a;
    --blue: #3569dc;
    --line: #e9edf3;
    --surface: #ffffff;
    --background: #f4f6fa;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 14px/1.65 "Segoe UI", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #2049a5; text-decoration: underline; }
button { color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8eb2ff; outline-offset: 3px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.topbar { background: #16243c; color: #fff; }
.topbar-inner { min-height: 72px; max-width: 1680px; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 56px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #bcd2ff; background: #2c4266; }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 2px; line-height: 1.2; }
.brand-caption { display: block; margin-top: 3px; color: #91a3be; font-size: 9px; letter-spacing: 2.7px; }
.nav-current { align-self: stretch; display: flex; align-items: center; gap: 9px; position: relative; color: #eff5ff; font-weight: 600; }
.nav-current:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #7da7ff; border-radius: 3px 3px 0 0; }
.workspace-nav { display: flex; align-self: stretch; gap: 28px; }
.nav-link { display: flex; align-items: center; gap: 9px; color: #a8b5c9; white-space: nowrap; font-weight: 600; }
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link.nav-current { color: #eff5ff; }
.workspace-label { margin-left: auto; color: #a8b5c9; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.workspace-label:before { content: ""; width: 6px; height: 6px; background: #7fbaad; border-radius: 50%; }
.workspace { max-width: 1680px; margin: 0 auto; padding: 32px 40px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 600; color: #8b97ab; margin: 0 0 7px; }
h1 { font-size: 28px; letter-spacing: -.7px; line-height: 1.4; margin: 0 0 7px; font-weight: 650; }
.page-description { margin: 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; align-items: center; gap: 16px; }
.updated { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.8; }
.updated time { display: block; color: #56637a; font-variant-numeric: tabular-nums; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 16px; border: 1px solid #dce3ed; border-radius: 7px; background: white; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { background: #f7f9fd; border-color: #b6c6e1; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 3px 6px #3569dc19; }
.button-primary:hover { background: #2859c5; border-color: #2859c5; }
.overview-label { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.overview-label span { font-size: 12px; font-weight: 400; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.metric { background: white; border: 1px solid #e6ebf3; border-radius: 10px; padding: 19px 21px 17px; position: relative; }
.metric-label { color: #657289; font-size: 13px; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin: 9px 0 5px; font-size: 31px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.7px; }
.metric-value span { font-size: 12px; color: #8a96a8; font-weight: 400; letter-spacing: 0; }
.metric-note { font-size: 12px; color: #909bad; }
.metric-icon { position: absolute; top: 18px; right: 20px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #f0f4fd; color: #577bd0; }
.metric-icon.teal { color: #3b988f; background: #eef8f5; }
.metric-icon.green { color: #4a9c6f; background: #eff8f1; }
.metric-icon.amber { color: #c28d3d; background: #fff7ea; }
.metric-alert .metric-value { color: #bf8735; }
.records-panel { background: white; border: 1px solid #e3e9f1; border-radius: 11px; box-shadow: 0 3px 12px #20304b03; }
.panel-heading { padding: 21px 24px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-title { display: flex; gap: 10px; align-items: center; }
h2 { font-size: 16px; font-weight: 650; margin: 0; }
.record-count { font-size: 12px; color: #6e7e97; background: #f0f3f9; padding: 2px 9px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.panel-hint { color: #95a0b1; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.panel-hint .icon { width: 14px; height: 14px; }
.filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 0 24px 18px; padding: 17px 18px; background: #f8fafd; border: 1px solid #edf0f5; border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: #69768b; }
.field select, .search-input { border: 1px solid #dfe5ee; border-radius: 6px; min-height: 39px; background: white; color: #3c4960; padding: 8px 12px; }
.field select { min-width: 154px; padding-right: 28px; }
.field select:disabled { color: #8c98aa; background: #f0f3f8; cursor: default; }
.search-field { margin-left: auto; width: 270px; }
.search-wrap { position: relative; display: block; }
.search-wrap .icon { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: #8a97aa; pointer-events: none; }
.search-input { width: 100%; padding-left: 36px; }
.search-input::placeholder { color: #a0a9b9; font-size: 13px; }
.filter-note { display: flex; align-items: center; gap: 6px; margin: -5px 25px 17px; color: #8a96a8; font-size: 12px; }
.filter-note .icon { width: 14px; height: 14px; }
.table-scroll { overflow-x: auto; }
.shipments { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.shipments th { padding: 12px 15px; background: #f8fafd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #7c899b; font-weight: 500; font-size: 12px; white-space: nowrap; }
.shipments td { padding: 18px 15px; border-bottom: 1px solid #edf0f5; vertical-align: top; line-height: 1.65; }
.shipments th:first-child, .shipments td:first-child { padding-left: 24px; }
.shipments th:last-child, .shipments td:last-child { padding-right: 24px; }
.shipments tbody tr:last-child td { border-bottom: 0; }
.shipments tbody tr:hover { background: #fafcff; }
.row-number { color: #9ca7b7; font-size: 12px; font-variant-numeric: tabular-nums; }
.departure { white-space: nowrap; font-variant-numeric: tabular-nums; }
.departure small { display: block; color: #9aa5b4; font-size: 12px; margin-top: 3px; letter-spacing: .3px; }
.shipment-name { min-width: 155px; }
.order-name { display: block; font-weight: 600; color: #34435c; white-space: nowrap; }
.transport-label { display: inline-flex; align-items: center; gap: 4px; color: #98a3b3; font-size: 12px; margin-top: 4px; }
.transport-label .icon { width: 12px; height: 12px; }
.carrier { display: inline-block; padding: 2px 7px; font-size: 12px; font-weight: 700; border: 1px solid #e1e7f0; border-radius: 5px; color: #6c7891; white-space: nowrap; }
.carrier-ups { color: #876a3c; border-color: #eddfc4; background: #fffbf2; }
.carrier-fedex { color: #8062ab; border-color: #e5dcf1; background: #fbf8ff; }
.tracking-number { font: 13px/1.8 Consolas, "SFMono-Regular", monospace; white-space: nowrap; letter-spacing: -.15px; }
.box-count { font-variant-numeric: tabular-nums; text-align: center; color: #59677d; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; font-size: 12px; white-space: nowrap; background: #f0f3f8; color: #78869c; font-weight: 500; }
.status-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-transit { color: #4c77cf; background: #eef4ff; }
.status-collected { color: #8e76b5; background: #f4effb; }
.status-delivering { color: #349d97; background: #eaf7f5; }
.status-signed { color: #499772; background: #edf8f0; }
.status-alert { color: #c48a32; background: #fff5e5; }
a.status-badge:hover { filter: brightness(.94); color: inherit; text-decoration: none; }
.location { min-width: 100px; max-width: 150px; color: #6e7b8f; font-size: 13px; }
.duration { white-space: nowrap; color: #6e7b8f; font-size: 13px; font-variant-numeric: tabular-nums; }
.route-cell { min-width: 190px; max-width: 330px; color: #59667c; font-size: 13px; }
.route-time { display: block; font-size: 12px; color: #99a4b4; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.route-description { display: block; overflow-wrap: anywhere; }
.route-details { margin-top: 5px; }
.route-details > summary { display: inline-block; list-style: none; color: #7b93b7; font-size: 12px; }
.route-details > summary::-webkit-details-marker { display: none; }
.route-details > summary:after { content: "\2197"; margin-left: 4px; }
.route-details > summary:hover { color: var(--blue); }
.route-history { padding: 12px; background: #f8fafd; border-radius: 6px; margin-top: 10px; max-height: 320px; overflow-y: auto; overflow-wrap: anywhere; }
.route-history p { margin: 0; padding: 0 0 16px 18px; border-left: 1px solid #dce5f2; position: relative; color: #6a7890; font-size: 13px; }
.route-history p:before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; left: -4px; top: 6px; background: #c1cfe4; box-shadow: 0 0 0 4px #f8fafd; }
.route-history p:first-child:before { background: var(--blue); }
.route-history p:last-child { border-left-color: transparent; padding-bottom: 0; }
.delete-link { color: #c06262; white-space: nowrap; font-size: 12px; }
.table-footer { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; color: #98a2b2; font-size: 12px; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state > .icon { width: 38px; height: 38px; color: #aabbd5; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 6px; color: #596980; font-size: 15px; font-weight: 500; }
.empty-state p { margin: 0; color: #97a2b3; font-size: 13px; }
.page-footer { margin-top: 21px; display: flex; align-items: center; justify-content: space-between; color: #a1acbc; font-size: 10px; letter-spacing: .2px; }
.footer-brand { letter-spacing: 1px; font-weight: 600; }
.tracking-dialog { padding: 0; border: 1px solid #e2e8f1; border-radius: 14px; width: min(520px,calc(100% - 32px)); color: var(--ink); box-shadow: 0 24px 80px #14284738; }
.tracking-dialog::backdrop { background: #13233c66; backdrop-filter: blur(3px); }
.dialog-heading { padding: 23px 24px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading h2 { margin-bottom: 3px; }
.dialog-tracking-number { margin: 0; color: #8c9aaf; font: 13px/1.6 Consolas,monospace; overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; background: #f2f5f9; border: 0; border-radius: 7px; width: 32px; height: 32px; }
.icon-button:hover { background: #e8edf5; }
.dialog-content { padding: 24px; }
.dialog-content .route-history { margin: 0; padding: 16px 17px; max-height: 55vh; }
.dialog-footer { padding: 0 24px 22px; color: #95a0b1; font-size: 12px; }
[hidden] { display: none !important; }
@media (min-width: 1600px) { .shipments td { padding-top: 20px; padding-bottom: 20px; } }
@media (max-width: 1200px) { .topbar-inner { padding: 0 24px; } .workspace { padding: 26px 24px; } .shipments th, .shipments td { padding-left: 12px; padding-right: 12px; } .search-field { width: 235px; } .field select { min-width: 135px; } }
@media (max-width: 900px) { .heading-actions { gap: 10px; } .metrics { gap: 10px; } .metric { padding: 16px; } .metric-icon { right: 14px; width: 28px; height: 28px; } .metric-icon .icon { width: 17px; height: 17px; } .search-field { width: 100%; margin-left: 0; } .panel-hint { display: none; } .field { flex: 1; } .field select { width: 100%; } .shipments { min-width: 1160px; } }
@media (max-width: 600px) { .topbar-inner { min-height: 63px; padding: 0 18px; gap: 27px; } .brand-name { font-size: 16px; } .brand-caption { font-size: 8px; } .brand-mark { width: 32px; height: 32px; } .nav-current { font-size: 12px; gap: 6px; } .nav-current .icon { width: 16px; height: 16px; } .workspace-label { display: none; } .workspace { padding: 24px 16px; } .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 23px; flex-wrap: wrap; } h1 { font-size: 24px; } .page-description { font-size: 14px; } .heading-actions { width: 100%; justify-content: space-between; } .updated { display: flex; gap: 8px; align-items: center; text-align: left; } .updated time { display: inline; } .button { padding-left: 12px; padding-right: 12px; min-height: 37px; font-size: 12px; } .overview-label span { font-size: 12px; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 21px; } .metric { padding: 15px; } .metric-value { font-size: 27px; margin-top: 10px; } .metric-icon { right: 13px; top: 13px; } .metric-note { font-size: 12px; } .panel-heading { padding: 18px 16px 14px; } .filters { margin: 0 14px 16px; padding: 13px; gap: 10px; } .field { min-width: 0; } .field select { min-width: 0; } .search-field { flex-basis: 100%; } .filters .button-primary { flex: 0 0 100%; order: 4; } .filter-note { margin: -4px 17px 15px; font-size: 12px; align-items: flex-start; } .filter-note .icon { margin-top: 2px; flex-shrink: 0; } .table-footer { padding: 13px 16px; flex-wrap: wrap; font-size: 12px; } .page-footer { gap: 14px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 600px) { .topbar-inner { flex-wrap: wrap; row-gap: 4px; padding-top: 12px; } .workspace-nav { width: 100%; height: 42px; gap: 24px; } .nav-link { font-size: 12px; gap: 6px; } .nav-link .icon { width: 16px; height: 16px; } }
