/* Customer cargo page (order.ga-oms.com/dashboard) — "flight board" direction, 2026-09-24.
   Modelled on Uber Freight (two-line rows, big status text), Hapag-Lloyd Navigator (to-do priority, timeline),
   Maersk Hub (masthead numbers), WINIT / 17TRACK (tab strip with counts). Tokens: the company site's dark slate
   #1F2531 and gold #D1AD59 (goldenarcus.com, 2026-10-01). */
:root {
    --ga-navy: #1F2531; --ga-navy-2: #2B3342; --ga-gold: #D1AD59; --ga-gold-light: #F6EEDB;
    --ga-canvas: #F4F5F7; --ga-card: #FFFFFF; --ga-line: #E3E6EB; --ga-text: #1F2937; --ga-muted: #6B7280;
    --st-prealert: #6B7280; --st-flight: #1D6FE0; --st-customs: #5B4FC4; --st-released: #0E8A7A; --st-warehouse: #0E8A7A;
    --st-shipped: #1F8A4C; --st-red: #C8322B; --st-red-bg: #FBE9E7; --st-amber: #B45309; --st-amber-bg: #FDF3E1; --st-done: #9CA3AF;
}
.cg { color: var(--ga-text); font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
.cg .mono { font-family: Consolas, "Roboto Mono", "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.cg a { color: var(--ga-navy-2); }
.cg .muted { color: var(--ga-muted); }
.cg .lbl { font-size: 11px; font-weight: 600; color: var(--ga-muted); }
html[lang="en"] .cg .lbl { text-transform: uppercase; letter-spacing: .04em; }

/* ---- masthead */
.cg-mast { background: var(--ga-navy); color: #fff; border-radius: 4px; padding: 20px 24px 18px; margin-bottom: 14px; }
.cg-mast .row-1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cg-mast h2 { margin: 0; font-size: 20px; font-weight: 600; color: #fff; line-height: 1.3; }
.cg-mast h2 small { display: block; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 400; margin-top: 3px; }
.cg-mast .nums { display: flex; gap: 28px; }
.cg-mast .num { cursor: pointer; text-align: left; }
.cg-mast .num .n { font-size: 28px; font-weight: 600; line-height: 1.1; color: #fff; }
.cg-mast .num .t { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.cg-mast .num.red .n { color: #F7B0A9; }
.cg-mast .num.gold .n { color: var(--ga-gold); }
.cg-mast .num:hover .t { color: #fff; }
.cg-mast .search { margin-top: 14px; position: relative; max-width: 560px; }
.cg-mast .search input { height: 38px; border: 0; border-radius: 3px; padding-left: 36px; font-size: 14px; box-shadow: none; }
.cg-mast .search .fa { position: absolute; left: 12px; top: 11px; color: var(--ga-muted); }
.cg-mast .search .hint { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 5px; }
.cg-mast .mode { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; overflow: hidden; margin-left: 12px; vertical-align: middle; }
.cg-mast .mode a { color: rgba(255,255,255,.8); padding: 3px 10px; font-size: 12px; text-decoration: none; }
.cg-mast .mode a.active { background: var(--ga-gold); color: var(--ga-navy); font-weight: 600; }

/* ---- tab strip */
.cg-tabs { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--ga-line); margin-bottom: 12px; overflow-x: auto; white-space: nowrap; }
.cg-tabs .tab { padding: 8px 12px 9px; font-size: 14px; color: var(--ga-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; user-select: none; }
.cg-tabs .tab .c { margin-left: 5px; font-size: 12px; color: var(--ga-muted); }
.cg-tabs .tab:hover { color: var(--ga-text); }
.cg-tabs .tab.active { color: var(--ga-navy); font-weight: 600; border-bottom-color: var(--ga-gold); }
.cg-tabs .tab.active .c { color: var(--ga-navy); }
.cg-tabs .tab.warn.has { color: var(--st-red); }
.cg-tabs .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; padding-bottom: 6px; }
.cg-tabs .tools select { height: 28px; padding: 2px 8px; font-size: 12px; width: auto; }
.cg-tabs .tools .btn { padding: 3px 9px; font-size: 12px; }
/* destination: every choice in view on its own row, one click (Marshall 2026-10-10; was a drop-down) */
.cg-filter { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; }
.cg-filter .lbl { font-size: 12px; color: var(--ga-muted); }
.cg-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ga-line); border-radius: 3px; overflow: hidden; background: var(--ga-card); }
.cg-seg a { padding: 5px 14px; font-size: 13px; line-height: 18px; color: var(--ga-muted); text-decoration: none; border-left: 1px solid var(--ga-line); }
.cg-seg a:first-child { border-left: 0; }
.cg-seg a:hover { color: var(--ga-text); background: var(--ga-gold-light); }
.cg-seg a.active { background: var(--ga-gold); color: var(--ga-navy); font-weight: 600; }

/* GA staff client view (StaffView): who is looking, read-only, which warehouse */
.cg-staffbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; background: var(--ga-gold-light); border: 1px solid var(--ga-gold); border-left-width: 4px; border-radius: 3px; color: var(--ga-navy); padding: 8px 12px; margin: 0 0 12px; font-size: 13px; }
.cg-staffbar .by { margin-left: auto; color: var(--ga-muted); }
.cg-star.ro { cursor: default; }

/* ---- needs-attention strip */
.cg-need { border: 1px solid var(--ga-line); border-left: 4px solid var(--st-red); border-radius: 4px; background: var(--ga-card); padding: 10px 14px; margin-bottom: 12px; }
.cg-need.calm { border-left-color: var(--st-shipped); color: var(--ga-muted); font-size: 13px; }
.cg-need .h { font-size: 12px; font-weight: 600; color: var(--st-red); margin-bottom: 4px; }
html[lang="en"] .cg-need .h { text-transform: uppercase; letter-spacing: .04em; }
.cg-need ul { list-style: none; margin: 0; padding: 0; }
.cg-need li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 13px; border-top: 1px solid #F1F3F5; flex-wrap: wrap; }
.cg-need li:first-child { border-top: 0; }
.cg-need li .id { font-weight: 600; min-width: 120px; }
.cg-need li .why { flex: 1; min-width: 200px; }
.cg-need li .when { color: var(--ga-muted); font-size: 12px; white-space: nowrap; }
.cg-need li .when.over { color: var(--st-red); font-weight: 600; }
.cg-need li .when.soon { color: var(--st-amber); font-weight: 600; }
.cg-need .await { margin-top: 6px; font-size: 12px; color: var(--ga-muted); }
.cg-need .await b { color: var(--ga-text); font-weight: 600; }

/* ---- list */
.cg-table { width: 100%; border-collapse: collapse; }
.cg-table th { font-size: 11px; font-weight: 600; color: var(--ga-muted); padding: 6px 10px; border-bottom: 1px solid var(--ga-line); text-align: left; white-space: nowrap; cursor: pointer; user-select: none; }
html[lang="en"] .cg-table th { text-transform: uppercase; letter-spacing: .04em; }
.cg-table th.sorted:after { content: " \25BE"; color: var(--ga-gold); }
.cg-table th.sorted.asc:after { content: " \25B4"; }
.cg-table td { padding: 10px 10px; border-bottom: 1px solid var(--ga-line); vertical-align: top; font-size: 14px; line-height: 1.35; }
.cg-table tbody tr { cursor: pointer; }
.cg-table tbody tr:hover td { background: #FAFBFC; }
.cg-table .l2 { font-size: 12px; color: var(--ga-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cg-table td.att { width: 26px; padding-right: 0; padding-top: 14px; }
.cg-table td.grp { background: var(--ga-canvas); font-size: 12px; color: var(--ga-muted); padding: 5px 10px; }
.cg-table td.grp b { color: var(--ga-text); font-weight: 600; }
.cg-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cg-dot.red { background: var(--st-red); }
.cg-dot.amber { background: var(--st-amber); }
.cg-dot.none { background: transparent; }
.cg-id { font-size: 15px; font-weight: 600; color: var(--ga-navy); white-space: nowrap; }
.cg-id .fa-star, .cg-id .fa-star-o { color: var(--ga-gold); font-size: 12px; margin-left: 4px; }
.cg-id .fa-barcode { color: var(--ga-muted); font-size: 12px; margin-left: 4px; }
.cg-status { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cg-status.prealert { color: var(--st-prealert); }
.cg-status.flight { color: var(--st-flight); }
.cg-status.customs { color: var(--st-customs); }
.cg-status.released { color: var(--st-released); }
.cg-status.warehouse { color: var(--st-warehouse); }
.cg-status.shipped { color: var(--st-shipped); }
.cg-status.hold { color: var(--st-red); }
.cg-bar { display: flex; gap: 2px; margin-top: 6px; width: 96px; }
.cg-bar i { flex: 1; height: 3px; background: var(--ga-line); border-radius: 1px; }
.cg-bar.prealert i.on { background: var(--st-prealert); }
.cg-bar.flight i.on { background: var(--st-flight); }
.cg-bar.customs i.on { background: var(--st-customs); }
.cg-bar.released i.on, .cg-bar.warehouse i.on { background: var(--st-warehouse); }
.cg-bar.shipped i.on { background: var(--st-shipped); }
.cg-bar.hold i.on { background: var(--st-red); }
.cg-bar i.half { background: linear-gradient(90deg, currentColor 50%, var(--ga-line) 50%); }
.cg-chip { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 7px; border-radius: 999px; background: #EEF0F3; color: var(--ga-text); margin: 2px 4px 0 0; white-space: nowrap; }
.cg-chip.ok { background: #E3F4EA; color: var(--st-shipped); }
.cg-chip.red { background: var(--st-red-bg); color: var(--st-red); }
.cg-chip.amber { background: var(--st-amber-bg); color: var(--st-amber); }
.cg-chip.gold { background: var(--ga-gold-light); color: #7A5E0C; }
.cg-tick { color: var(--ga-line); margin-right: 5px; font-size: 14px; }
.cg-tick.on { color: var(--st-shipped); }
.cg-empty { text-align: center; color: var(--ga-muted); padding: 44px 10px 40px; font-size: 14px; }
.cg-empty .fa { display: block; font-size: 30px; color: var(--ga-line); margin-bottom: 8px; }
.cg-count { font-size: 12px; color: var(--ga-muted); margin: 0 0 6px; }

/* ---- phone cards (< 768) */
.cg-cards { display: none; }
.cg-card { display: block; border: 1px solid var(--ga-line); border-radius: 4px; background: var(--ga-card); padding: 10px 12px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.cg-card:hover, .cg-card:focus { text-decoration: none; color: inherit; }
.cg-card .r1 { display: flex; justify-content: space-between; align-items: center; }
.cg-card .r2 { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.cg-card .r2 .cg-status { font-size: 16px; }
.cg-card .r2 .when { font-size: 12px; color: var(--ga-muted); }
.cg-card .r3 { font-size: 12px; color: var(--ga-muted); margin-top: 4px; }
.cg-card .cg-bar { width: 100%; margin-top: 8px; }

/* ---- detail */
.cg-back { font-size: 13px; margin-bottom: 8px; display: inline-block; }
.cg-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.cg-hero h2 { margin: 0; font-size: 22px; font-weight: 600; color: var(--ga-navy); line-height: 1.3; }
.cg-hero h2 .mono { letter-spacing: .03em; }
.cg-hero .next { font-size: 14px; color: var(--ga-muted); margin-top: 4px; }
.cg-hero .acts .btn { margin-left: 6px; }
.cg-banner { border-radius: 4px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.cg-banner.red { background: var(--st-red-bg); color: #7B1E17; }
.cg-banner.amber { background: var(--st-amber-bg); color: #6B3F0B; }
.cg-banner .fa { margin-top: 3px; }
.cg-banner b { font-weight: 600; }
.cg-banner .sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.cg-panel { border: 1px solid var(--ga-line); border-radius: 4px; background: var(--ga-card); padding: 14px 16px; margin-bottom: 14px; }
.cg-panel h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--ga-muted); display: flex; justify-content: space-between; align-items: center; }
html[lang="en"] .cg-panel h4 { text-transform: uppercase; letter-spacing: .04em; }
.cg-panel h4 .tog { font-weight: 400; }
.cg-panel h4 .tog a { margin-left: 8px; }
.cg-panel h4 .tog a.on { color: var(--ga-navy); font-weight: 600; border-bottom: 2px solid var(--ga-gold); }
/* timeline */
.cg-tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.cg-tl li { position: relative; padding: 0 0 16px 26px; }
.cg-tl li:before { content: ""; position: absolute; left: 7px; top: 14px; bottom: -4px; width: 2px; background: var(--ga-line); }
.cg-tl li:last-child:before { display: none; }
.cg-tl li .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ga-line); background: #fff; }
.cg-tl li.done .dot { background: var(--ga-navy); border-color: var(--ga-navy); }
.cg-tl li.done:before { background: var(--ga-navy); }
.cg-tl li.cur .dot { background: #fff; border: 3px solid var(--ga-gold); box-shadow: 0 0 0 3px var(--ga-gold-light); }
.cg-tl li.hold .dot { background: var(--st-red); border-color: var(--st-red); }
.cg-tl li .t { font-size: 12px; color: var(--ga-muted); }
.cg-tl li .e { font-size: 14px; color: var(--ga-muted); }
.cg-tl li.done .e { color: var(--ga-navy); font-weight: 600; }
.cg-tl li.cur .e { color: var(--ga-navy); font-weight: 600; }
.cg-tl li .who { font-size: 12px; color: var(--ga-muted); margin-left: 6px; font-weight: 400; }
.cg-tl li .sub { font-size: 12px; color: var(--ga-muted); margin-top: 2px; }
.cg-tl li.hidden-all { display: none; }
.cg-tl.all li.hidden-all { display: block; }
/* facts */
.cg-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.cg-facts .k { font-size: 11px; color: var(--ga-muted); font-weight: 600; }
html[lang="en"] .cg-facts .k { text-transform: uppercase; letter-spacing: .04em; }
.cg-facts .v { font-size: 14px; margin-top: 1px; word-break: break-word; }
.cg-facts .big .v { font-size: 18px; font-weight: 600; color: var(--ga-navy); }
/* last mile */
.cg-lm { width: 100%; border-collapse: collapse; font-size: 13px; }
.cg-lm th { font-size: 11px; color: var(--ga-muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--ga-line); text-align: left; white-space: nowrap; }
html[lang="en"] .cg-lm th { text-transform: uppercase; letter-spacing: .04em; }
.cg-lm td { padding: 7px 6px; border-bottom: 1px solid #F1F3F5; vertical-align: top; white-space: nowrap; }
.cg-lm td.ch { font-weight: 600; }
.cg-lm td .l2 { font-size: 11px; color: var(--ga-muted); font-weight: 400; }
.cg-lm .diff { color: var(--st-amber); font-weight: 600; }
/* documents */
.cg-docs { list-style: none; margin: 0; padding: 0; }
.cg-docs li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #F1F3F5; font-size: 13px; }
.cg-docs li:last-child { border-bottom: 0; }
.cg-docs .fa { width: 18px; text-align: center; color: var(--ga-muted); }
.cg-docs .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-docs .src { font-size: 11px; color: var(--ga-muted); white-space: nowrap; }
.cg-docs .src.ga { color: var(--st-shipped); }
.cg-docs .time { color: var(--ga-muted); font-size: 12px; white-space: nowrap; }
.cg-hist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cg-hist li { padding: 5px 0; border-bottom: 1px solid #F1F3F5; }
.cg-hist li:last-child { border-bottom: 0; }
.cg-hist .when { color: var(--ga-muted); font-size: 12px; margin-right: 8px; }
.cg-collapse { cursor: pointer; }
.cg-collapse .fa { transition: transform .15s; }
.cg-collapse.open .fa { transform: rotate(90deg); }

.btn-gold { background: var(--ga-gold); color: var(--ga-navy); border: 0; font-weight: 600; }
.btn-gold:hover, .btn-gold:focus { background: #C49E48; color: var(--ga-navy); }
.btn-navy { background: var(--ga-navy); color: #fff; border: 0; }
.btn-navy:hover, .btn-navy:focus { background: var(--ga-navy-2); color: #fff; }

@media (max-width: 991px) { .cg-table .hide-md { display: none; } .cg-table .l2 { max-width: 180px; } }
@media (max-width: 767px) {
    .cg-mast { padding: 16px; }
    .cg-mast .nums { gap: 14px; width: 100%; margin-top: 10px; }
    .cg-mast .num .n { font-size: 22px; }
    .cg-mast .search { max-width: none; }
    .cg-tabs .tools { display: none; }
    .cg-table { display: none; }
    .cg-cards { display: block; }
    .cg-facts { grid-template-columns: repeat(2, 1fr); }
    .cg-hero h2 { font-size: 19px; }
    .cg-hero .acts { width: 100%; }
    .cg-hero .acts .btn { margin: 6px 6px 0 0; }
    .cg-need li .id { min-width: 0; }
}

/* ---- stars, memos, tasks, share (2026-09-24) */
.cg-star { color: var(--ga-gold); font-size: 14px; text-decoration: none; vertical-align: middle; }
.cg-star:hover, .cg-star:focus { color: #B8921F; text-decoration: none; }
.cg-table .cg-star { margin-left: 4px; }
.cg-table .cg-star.off { color: #D5DBDF; }
.cg-table .cg-star.off:hover { color: var(--ga-gold); }
.cg-memo { margin-top: 6px; font-size: 13px; color: var(--ga-text); }
.cg-memo .v { display: inline-block; background: var(--ga-gold-light); color: #7A5E0C; padding: 1px 8px; border-radius: 3px; }
.cg-memo .v.empty { background: transparent; color: var(--ga-muted); font-style: italic; }
.cg-memo a { color: var(--ga-muted); margin-left: 4px; }
.cg-memo .edit { display: inline-flex; gap: 6px; align-items: center; }
.cg-memo .edit input { width: 260px; max-width: 60vw; }
.cg-table .memo { display: inline-block; background: var(--ga-gold-light); color: #7A5E0C; padding: 0 6px; border-radius: 3px; font-size: 11px; margin-right: 4px; }
.cg-banner.task { border-left: 4px solid var(--st-red); }
.cg-banner .due.overdue { color: var(--st-red); font-weight: 600; }
.cg-banner .due.soon { color: var(--st-amber); font-weight: 600; }
.cg-need .h.turn { color: var(--st-red); }
.cg-need .h.ga { color: var(--st-amber); margin-top: 8px; }
.cg-need.turn { border-left-color: var(--st-red); }
.cg-need li .due { font-size: 12px; white-space: nowrap; }
.cg-need li .due.overdue { color: var(--st-red); font-weight: 600; }
.cg-need li .due.soon { color: var(--st-amber); font-weight: 600; }
.cg-need li .due.later { color: var(--ga-muted); }
.cg-shared { background: var(--ga-gold-light); color: #7A5E0C; border-radius: 4px; padding: 6px 12px; font-size: 13px; margin-bottom: 10px; }
.cg-tabs .tab .fa-star { color: var(--ga-gold); font-size: 12px; }
