﻿/* Professional world/China maps and product master list */
.world-map-pro, .china-map-pro { display: block; width: 100%; height: auto; overflow: visible; }
.map-grid-lines line { stroke: #DDE4EA; stroke-width: .7; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.map-land, .china-land { fill: url(#chinaLand); stroke: #AEBBC7; stroke-width: 1.1; vector-effect: non-scaling-stroke; filter: url(#mapShadow); }
.world-map-pro .map-land { fill: #E7ECF1; }
.map-island { fill: #E7ECF1; stroke: #AEBBC7; stroke-width: 1; }
.china-land { fill-opacity: .9; }
.province-lines path { fill: none; stroke: #BEC8D2; stroke-width: .8; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.map-region-labels text { fill: #8A96A5; font-size: 11px; font-weight: 650; text-anchor: middle; }
.map-point { cursor: pointer; }
.map-point .dot { fill: var(--hosonic-blue); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 2px rgba(24,33,47,.18)); }
.map-point .pulse { fill: rgba(43,79,224,.12); stroke: rgba(43,79,224,.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-point text { fill: #263B58; font-family: var(--mono); font-size: 11px; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3; }
.china-point .dot { fill: #1F3EC5; }
.map-axis-labels text { fill: #8B97A6; font-family: var(--mono); font-size: 10px; }
.product-master-table { min-width: 1180px; }
.product-master-cell { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px; min-width: 210px; }
.product-master-cell .product-cell-thumb { width: 46px; height: 40px; }
.product-master-cell strong { display: block; color: #263B58; font-size: 10px; }
.product-master-cell span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.spec-stack strong { display: block; font-size: 9px; }
.spec-stack span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.channel-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.channel-tags span { padding: 3px 6px; border-radius: 4px; color: #52627A; background: #EEF2F6; font-size: 8px; }
.product-master-table .actions { display: flex; gap: 5px; }/* Order WIP */
.order-wip-table { min-width: 1320px; }
.order-wip-cell { min-width: 220px; }
.wip-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.wip-heading strong { color: var(--hosonic-blue); }
.wip-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.wip-track i { height: 5px; border-radius: 2px; background: #E2E7ED; }
.wip-track i.done { background: #1D7A5F; }
.wip-track i.active { background: var(--hosonic-blue); box-shadow: 0 0 0 2px rgba(43,79,224,.12); }
.wip-current { margin-top: 6px; color: #334155; font-size: 9px; font-weight: 750; }
.order-wip-cell > button { margin-top: 7px; padding: 0; border: 0; color: var(--hosonic-blue); background: transparent; font-size: 9px; font-weight: 800; }
.wip-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wip-summary > div { padding: 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #F7F9FA; }
.wip-summary span { display: block; color: var(--muted); font-size: 8px; }
.wip-summary strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 13px; }
.wip-timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.wip-step { position: relative; padding-top: 28px; }
.wip-step::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: #E2E7ED; }
.wip-step:first-child::before { left: 50%; }
.wip-step:last-child::before { right: 50%; }
.wip-step > span { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #E2E7ED; border-radius: 50%; color: #7B8797; background: #fff; font-family: var(--mono); font-size: 8px; }
.wip-step.done::before, .wip-step.active::before { background: var(--hosonic-blue); }
.wip-step.done > span { color: #fff; border-color: #1D7A5F; background: #1D7A5F; }
.wip-step.active > span { color: #fff; border-color: var(--hosonic-blue); background: var(--hosonic-blue); box-shadow: 0 0 0 5px rgba(43,79,224,.08); }
.wip-step strong { display: block; font-size: 10px; }
.wip-step p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
@media (max-width: 680px) { .wip-summary { grid-template-columns: 1fr; } .wip-timeline { grid-template-columns: 1fr; } .wip-step::before { display: none; } }
/* Logistics fulfillment list */
.logistics-list-table { min-width: 1180px; }
.logistics-order-row { cursor: pointer; }
.logistics-order-row.complete { background: rgba(29,122,95,.035); }
.logistics-order-row.incomplete { background: rgba(185,71,87,.035); }
.logistics-order-row:hover { background: #F7FAFC; }
.logistics-milestones { display: flex; gap: 4px; margin-bottom: 6px; }
.logistics-dot { display: block; width: 11px; height: 11px; border-radius: 50%; }
.logistics-dot.complete { background: #1D7A5F; box-shadow: 0 0 0 2px #DDF3EA; }
.logistics-dot.incomplete { background: #B94757; box-shadow: 0 0 0 2px #FBE5E8; }
.logistics-progress-text { display: block; color: #64748B; font-family: var(--mono); font-size: 8px; }
.logistics-detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.logistics-detail-grid > div { padding: 12px; border-radius: 8px; background: #F5F7FA; }
.logistics-detail-grid span { display: block; color: #7A8797; font-size: 8px; }
.logistics-detail-grid strong { display: block; margin-top: 4px; font-size: 10px; }
.logistics-events { display: grid; margin-top: 8px; }
.logistics-event { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EDF0F3; }
.logistics-event:first-child { border-top: 0; }
.logistics-event.complete .logistics-dot { background: #1D7A5F; }
.logistics-event.incomplete .logistics-dot { background: #B94757; }
.logistics-event strong { display: block; font-size: 10px; }
.logistics-event p { margin: 3px 0 0; color: #7A8797; font-size: 8px; }
.logistics-event time { color: #97A2B1; font-family: var(--mono); font-size: 8px; }
.package-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.package-list > div { padding: 12px; border: 1px solid #E6EBF0; border-radius: 8px; }
.package-list strong { display: block; font-size: 10px; }
.package-list span { display: block; margin-top: 3px; color: #7A8797; font-size: 8px; }
@media (max-width: 760px) { .logistics-detail-grid, .package-list { grid-template-columns: 1fr; } }
/* Left order detail drawer */
.order-drawer-overlay { position: fixed; z-index: 140; inset: 0; visibility: hidden; opacity: 0; background: rgba(24,33,47,.38); transition: .22s ease; }
.order-drawer-overlay.open { visibility: visible; opacity: 1; }
.order-detail-drawer { position: fixed; z-index: 145; top: 0; left: 0; width: min(560px, 94vw); height: 100%; transform: translateX(-102%); background: #fff; box-shadow: 18px 0 50px rgba(24,33,47,.18); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.order-detail-drawer.open { transform: translateX(0); }
.order-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 17px; border-bottom: 1px solid #E5EAF0; }
.order-drawer-head h3 { margin: 5px 0 0; font-size: 20px; }
.order-drawer-head p { margin: 5px 0 0; color: #7A8797; font-size: 10px; }
.order-drawer-tabs { display: flex; gap: 4px; padding: 11px 18px; border-bottom: 1px solid #E5EAF0; background: #F8FAFC; }
.order-drawer-tabs button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; color: #64748B; background: transparent; font-size: 9px; font-weight: 800; }
.order-drawer-tabs button.active { color: var(--hosonic-blue); background: #EEF2FF; }
.order-drawer-body { height: calc(100% - 190px); overflow-y: auto; padding: 18px 20px 28px; }
.order-drawer-panel { display: none; }
.order-drawer-panel.active { display: block; }
.order-drawer-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.order-drawer-summary > div { padding: 11px; border-radius: 8px; background: #F5F7FA; }
.order-drawer-summary span { display: block; color: #7A8797; font-size: 8px; }
.order-drawer-summary strong { display: block; margin-top: 4px; color: #263B58; font-size: 11px; }
.order-lines-head, .order-drawer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 9px; }
.order-lines-head h4, .order-drawer-section-head h4 { margin: 0; font-size: 12px; }
.order-lines-head span, .order-drawer-section-head > strong { color: var(--hosonic-blue); font-family: var(--mono); font-size: 9px; }
.order-line-list, .order-drawer-steps, .order-drawer-logistics { display: grid; }
.order-line-item { display: grid; grid-template-columns: 42px 1fr auto 74px; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid #EDF0F3; }
.order-line-item:first-child { border-top: 0; }
.order-line-item .product-cell-thumb { width: 42px; height: 38px; }
.order-line-item strong { display: block; font-size: 10px; }
.order-line-item span { display: block; margin-top: 3px; color: #7A8797; font-size: 8px; }
.order-line-item b { font-family: var(--mono); font-size: 10px; }
.order-line-item em { color: var(--hosonic-blue); font-family: var(--mono); font-size: 10px; font-style: normal; text-align: right; }
.order-drawer-step { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #EDF0F3; }
.order-drawer-step:first-child { border-top: 0; }
.order-drawer-step > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; font-family: var(--mono); font-size: 8px; }
.order-drawer-step.complete > span { background: #1D7A5F; }
.order-drawer-step.incomplete > span { background: #B94757; }
.order-drawer-step strong { display: block; font-size: 10px; }
.order-drawer-step p { margin: 3px 0 0; color: #7A8797; font-size: 8px; }
.order-drawer-logistics-step { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #EDF0F3; }
.order-drawer-logistics-step:first-child { border-top: 0; }
.order-drawer-logistics-step i { width: 10px; height: 10px; border-radius: 50%; }
.order-drawer-logistics-step.complete i { background: #1D7A5F; }
.order-drawer-logistics-step.incomplete i { background: #B94757; }
.order-drawer-logistics-step span { font-size: 10px; }
.order-drawer-logistics-step b { color: #7A8797; font-size: 8px; }
.order-drawer-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid #E5EAF0; background: #fff; }
@media (max-width: 620px) { .order-drawer-summary { grid-template-columns: 1fr; } .order-line-item { grid-template-columns: 38px 1fr auto; } .order-line-item em { grid-column: 2/-1; text-align: left; } }
