:root{--bg:#f6f7f9;--card:#fff;--text:#17191d;--muted:#747b86;--line:#e7e9ee;--red:#c9151e;--red-soft:#fff0f1;--green:#168a45;--green-soft:#eaf8ef;--orange:#d96c00;--orange-soft:#fff3e7;--blue:#2469d8;--blue-soft:#edf4ff;--shadow:0 8px 30px rgba(18,24,40,.05);--radius:16px}
*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;font-weight:700;font-size:18px}.brand b{color:var(--red)}.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--red);color:white;display:grid;place-items:center;font-size:13px;letter-spacing:.04em}.sidebar nav{display:grid;gap:6px;margin-top:34px}.nav-link{padding:12px 14px;border-radius:11px;color:#454b55}.nav-link:hover{background:var(--red-soft);color:var(--red)}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:18px;display:grid;gap:8px}.link-button{border:0;background:none;padding:0;color:var(--red);cursor:pointer;text-align:left}.main-content{margin-left:240px;min-height:100vh}.page{padding:28px;max-width:1600px;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.page-header h1{margin:0;font-size:30px}.page-header p{margin:5px 0 0;color:var(--muted)}.header-actions{display:flex;gap:8px}.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin-bottom:18px}.panel.narrow{max-width:760px}.panel h2{font-size:17px;margin:0 0 4px}.panel-title-row{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.muted{color:var(--muted);font-size:13px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.kpi-label{font-size:13px;color:var(--muted)}.kpi-value{font-size:30px;font-weight:800;margin-top:8px}.kpi-foot{font-size:12px;color:var(--muted);margin-top:4px}.filters{display:grid;grid-template-columns:2fr repeat(5,1fr) auto auto;gap:10px;margin-bottom:14px}.filters.compact{grid-template-columns:1fr 1fr auto;max-width:900px}.filters input,.filters select,.auth-card input,.panel input,.panel select{width:100%;border:1px solid var(--line);background:white;border-radius:10px;padding:11px 12px;outline:none}.filters input:focus,.filters select:focus,.auth-card input:focus{border-color:#c9ccd4;box-shadow:0 0 0 3px rgba(201,21,30,.07)}.btn{border:0;border-radius:10px;padding:11px 15px;cursor:pointer;font-weight:650;display:inline-flex;align-items:center;justify-content:center}.btn.primary{background:var(--red);color:white}.btn.secondary{background:white;color:#333;border:1px solid var(--line)}.btn.full{width:100%}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.data-table{width:100%;border-collapse:collapse;min-width:900px;background:#fff}.data-table th{font-size:12px;text-align:left;color:#656b76;padding:11px 12px;background:#fafbfc;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{font-size:13px;padding:11px 12px;border-bottom:1px solid #eff0f2;vertical-align:middle}.data-table tr:hover td{background:#fffafa}.ship-link{color:var(--red);font-weight:750}.status{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700;text-transform:capitalize}.status.in-transit{background:var(--orange-soft);color:var(--orange)}.status.loaded{background:var(--blue-soft);color:var(--blue)}.status.arrived,.status.received-correctly,.status.fully-received{background:var(--green-soft);color:var(--green)}.status.not-received,.status.partial-discrepancy,.status.short-partially-received,.status.over-received{background:var(--red-soft);color:var(--red)}.pager{display:flex;justify-content:flex-end;gap:7px;margin-top:14px;align-items:center}.pager button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer}.pager button.active{background:var(--red);color:white;border-color:var(--red)}.analytics-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}.status-chart{display:grid;gap:12px;margin-top:18px}.status-row{display:grid;grid-template-columns:110px 1fr 34px;align-items:center;gap:10px}.status-track,.bar-track{height:9px;background:#f0f1f4;border-radius:99px;overflow:hidden}.status-fill,.bar-fill{height:100%;background:var(--red);border-radius:99px}.bar-list{display:grid;gap:13px;margin-top:18px}.bar-row{display:grid;grid-template-columns:minmax(150px,1fr) 2fr 90px;gap:12px;align-items:center;font-size:12px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.detail-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}.detail-card .label{color:var(--muted);font-size:12px}.detail-card .value{font-weight:750;margin-top:7px;word-break:break-word}.back-link{color:var(--red);font-size:13px}.product-search-panel{max-width:900px}.global-product-search{display:grid;grid-template-columns:1fr auto;gap:10px}.search-results{display:grid;gap:8px;margin-top:12px}.search-result{border:1px solid var(--line);border-radius:10px;padding:12px;cursor:pointer;display:flex;justify-content:space-between;gap:12px}.search-result:hover{border-color:#d4a6a9;background:#fffafa}.hidden{display:none}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#fbfbfc,#f3f4f7)}.auth-card{width:min(430px,100%);background:white;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}.auth-card h1{margin:28px 0 6px}.auth-card p{color:var(--muted)}.auth-card form{display:grid;gap:16px;margin-top:22px}.auth-card label,.panel label{display:grid;gap:7px;font-size:13px;font-weight:650}.auth-card .check{display:flex;gap:8px;align-items:center;font-weight:500}.auth-card .check input{width:auto}.validation{color:var(--red);font-size:13px}.setup-steps{line-height:1.8}.wrap-code{display:block;white-space:normal;word-break:break-all;margin-top:8px}.recovery{margin-top:22px;display:flex;flex-wrap:wrap;gap:8px}.recovery h3{width:100%}.recovery code{padding:8px;background:#f7f7f8;border-radius:8px}.mobile-topbar,.mobile-bottom-nav{display:none}.icon-button{border:0;background:white;font-size:22px}.mobile-brand{font-weight:700;color:var(--red)}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(2,1fr)}.analytics-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){body{padding-bottom:62px}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 9999px rgba(0,0,0,.25)}.main-content{margin-left:0}.mobile-topbar{display:flex;height:58px;background:#fff;border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:0 16px;position:sticky;top:0;z-index:12}.mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:15;bottom:0;left:0;right:0;height:58px;background:#fff;border-top:1px solid var(--line);font-size:11px}.mobile-bottom-nav a{display:grid;place-items:center}.page{padding:16px}.page-header h1{font-size:24px}.kpi-grid{grid-template-columns:repeat(2,1fr);gap:10px}.kpi-card{padding:14px}.kpi-value{font-size:23px}.filters,.filters.compact{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr 1fr}.panel{padding:14px}.data-table{min-width:760px}.bar-row{grid-template-columns:120px 1fr 72px}.auth-card{padding:22px}.page-header{align-items:center}}
@media(max-width:430px){.detail-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr 1fr}.kpi-label{font-size:11px}.kpi-value{font-size:20px}}

/* ========================= v2 UX enhancements ========================= */
.row-number{font-weight:750;color:#6a707a;width:44px}.row-arrow{font-size:22px;color:var(--red);font-weight:800}.text-button{border:0;background:none;padding:0;margin:0;color:var(--red);cursor:pointer;text-align:left}.text-button:hover{text-decoration:underline}.text-button.strong{font-weight:750}.btn.mini{padding:6px 9px;border-radius:8px;font-size:11px;white-space:nowrap}.field-label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.product-search-help{margin:9px 0 0}.product-search-panel{max-width:1000px}.product-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}.product-summary-strip>div{border:1px solid var(--line);background:#fafbfc;border-radius:12px;padding:12px 14px}.product-summary-strip span{display:block;color:var(--muted);font-size:11px}.product-summary-strip b{display:block;margin-top:5px;font-size:18px}.mini-badge{display:inline-flex;margin-left:5px;padding:3px 6px;border-radius:999px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.mini-badge.active{background:var(--blue-soft);color:var(--blue)}.mini-badge.history{background:#f1f2f4;color:#727782}

/* Select2 styled to match the application */
.select2-container{font-size:13px;min-width:0}.select2-container .select2-selection--single{height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:42px;padding-left:12px;padding-right:34px;color:var(--text)}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#8a9099}.select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;right:7px}.select2-container--default.select2-container--focus .select2-selection--single,.select2-container--default.select2-container--open .select2-selection--single{border-color:#c9ccd4;box-shadow:0 0 0 3px rgba(201,21,30,.07)}.select2-dropdown{border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 12px 36px rgba(18,24,40,.12);z-index:10050}.select2-search--dropdown{padding:8px}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid var(--line);border-radius:8px;padding:9px}.select2-results__option{padding:9px 11px}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background:var(--red);color:#fff}.select2-container--default .select2-results__option--selected{background:#fff3f4}.product-select-result{display:grid;gap:3px}.product-select-result small{color:#7d838d}.select2-results__option--highlighted .product-select-result small{color:rgba(255,255,255,.82)}.product-lookup-select+.select2-container{width:100%!important;max-width:100%}

/* Better filter layout */
.filters.compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));max-width:none}.dashboard-page .filters.compact{grid-template-columns:minmax(220px,320px) minmax(250px,1fr);max-width:760px}.mobile-filter-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;font-weight:750;align-items:center;gap:8px;margin-bottom:12px;cursor:pointer}.filter-count{margin-left:auto;min-width:22px;height:22px;display:inline-grid;place-items:center;border-radius:999px;background:#f0f1f3;color:#6f7580;font-size:11px}.filter-count.has-filters{background:var(--red);color:#fff}

@media(max-width:760px){
  .mobile-filter-toggle{display:flex;width:100%}
  .filter-panel{display:none!important;background:#fafbfc;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:14px}
  .filter-panel.open{display:grid!important}
  .filters,.filters.compact,.dashboard-page .filters.compact{grid-template-columns:1fr!important;max-width:none}
  .filter-panel .select2-container{width:100%!important}
  .product-summary-strip{grid-template-columns:1fr}
  .panel-title-row{align-items:flex-start}

  /* Tables become touch-friendly cards instead of a wide horizontal grid. */
  .table-wrap.mobile-cards{overflow:visible;border:0;background:transparent}
  .mobile-cards .responsive-table{min-width:0;border-collapse:separate;border-spacing:0 10px;background:transparent}
  .mobile-cards .responsive-table thead{display:none}
  .mobile-cards .responsive-table tbody{display:grid;gap:10px}
  .mobile-cards .responsive-table tr{display:grid;background:#fff;border:1px solid var(--line);border-radius:13px;padding:8px 11px;box-shadow:0 4px 18px rgba(18,24,40,.035)}
  .mobile-cards .responsive-table td{display:grid;grid-template-columns:minmax(105px,38%) 1fr;gap:10px;padding:7px 2px;border-bottom:1px dashed #eceef1;align-items:start;word-break:break-word}
  .mobile-cards .responsive-table td:last-child{border-bottom:0}
  .mobile-cards .responsive-table td::before{content:attr(data-label);font-size:10px;letter-spacing:.03em;text-transform:uppercase;color:var(--muted);font-weight:800;padding-top:2px}
  .mobile-cards .responsive-table td.row-number{display:flex;justify-content:flex-end;color:var(--muted);font-size:11px;width:auto;border:0;padding:2px 0 4px}.mobile-cards .responsive-table td.row-number::before{content:'#';margin-right:3px}
  .mobile-cards .responsive-table td[data-label="Details"]{display:flex;justify-content:flex-end}
  .mobile-cards .responsive-table td[data-label="Details"]::before{display:none}
  .mobile-cards .responsive-table td[colspan]{display:block;text-align:center;padding:18px}
  .mobile-cards .responsive-table td[colspan]::before{display:none}
  .pager{justify-content:center;flex-wrap:wrap}
}


/* ========================= Shimmer / skeleton loading UX ========================= */
/*
   Visible moving sheen instead of a static-looking gradient.
   The ::after layer travels fully across each placeholder so users can
   immediately tell the page is actively loading rather than frozen.
*/
@keyframes si-shimmer-sweep{
  0%{transform:translate3d(-115%,0,0)}
  100%{transform:translate3d(115%,0,0)}
}
@keyframes si-shimmer-pulse{
  0%,100%{opacity:.82}
  50%{opacity:1}
}
@keyframes si-spin{to{transform:rotate(360deg)}}

.shimmer-block{
  position:relative;
  display:block;
  max-width:100%;
  min-width:18px;
  overflow:hidden;
  isolation:isolate;
  border-radius:7px;
  background:#eceef2;
  animation:si-shimmer-pulse 1.8s ease-in-out infinite;
}
.shimmer-block::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  width:72%;
  transform:translate3d(-115%,0,0);
  background:linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.25) 28%,
    rgba(255,255,255,.88) 50%,
    rgba(255,255,255,.25) 72%,
    rgba(255,255,255,0) 100%
  );
  animation:si-shimmer-sweep 1.25s cubic-bezier(.4,0,.2,1) infinite;
  will-change:transform;
  pointer-events:none;
}
/* A small phase offset prevents every placeholder from looking mechanically synced. */
.shimmer-row:nth-child(2n) .shimmer-block::after,
.shimmer-chart-row:nth-child(2n) .shimmer-block::after{animation-delay:.12s}
.shimmer-row:nth-child(3n) .shimmer-block::after,
.shimmer-chart-row:nth-child(3n) .shimmer-block::after{animation-delay:.22s}

.shimmer-card{overflow:hidden}
.shimmer-row td{height:43px}
.shimmer-row:hover td{background:#fff!important}
.shimmer-chart-row{display:grid;grid-template-columns:minmax(105px,160px) 1fr;gap:14px;align-items:center;margin:14px 0}
.shimmer-bar{height:9px!important;border-radius:99px}
.product-summary-strip .shimmer-card{border:1px solid var(--line);background:#fafbfc;border-radius:12px;padding:12px 14px}
.load-error{padding:24px!important;text-align:center!important;color:var(--red);font-weight:650}
.button-spinner{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;margin-right:8px;animation:si-spin .7s linear infinite}
.btn.is-loading{opacity:.72;cursor:wait}
.loading-cards:empty::before{content:''}

@media(max-width:760px){
  .mobile-cards .shimmer-row td{display:block!important;border-bottom:0!important;padding:8px 2px!important}
  .mobile-cards .shimmer-row td::before{display:none!important}
  .mobile-cards .shimmer-row .shimmer-block{height:12px!important}
  .shimmer-chart-row{grid-template-columns:95px 1fr}
}

/* Respect OS accessibility settings while still giving a gentle loading cue. */
@media(prefers-reduced-motion:reduce){
  .shimmer-block{animation:si-shimmer-pulse 2.2s ease-in-out infinite}
  .shimmer-block::after{animation:none;display:none}
  .button-spinner{animation:none}
}


/* Product search: real search bar (not a select/dropdown control) */
.product-search-box-wrap{position:relative;display:flex;align-items:center;max-width:100%}
.product-search-input{height:50px!important;padding-left:46px!important;padding-right:44px!important;font-size:15px!important;border-radius:13px!important}
.product-search-input:focus{border-color:#c9ccd4!important;box-shadow:0 0 0 3px rgba(201,21,30,.07)!important;outline:none}
.product-search-icon{position:absolute;left:16px;z-index:1;font-size:22px;color:#737984;pointer-events:none;transform:translateY(-1px)}
.product-search-clear{position:absolute;right:10px;width:32px;height:32px;border:0;border-radius:50%;background:#f0f1f3;color:#626873;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}
.product-search-clear:hover{background:#e7e8eb;color:var(--red)}
.product-search-status{min-height:18px;margin-top:10px}
.product-search-results{display:grid;gap:8px;margin-top:10px;max-height:470px;overflow:auto}
.product-search-result{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;cursor:pointer;color:var(--text)}
.product-search-result:hover,.product-search-result.keyboard-active{border-color:#dca8ab;background:#fff7f7;box-shadow:0 3px 12px rgba(17,24,39,.04)}
.product-search-result-main{min-width:0;display:grid;gap:4px}
.product-search-result-main strong{font-size:14px;line-height:1.35}
.product-search-result-main small{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.product-search-open{flex:0 0 auto;font-size:11px;font-weight:750;color:var(--red);background:var(--red-soft);padding:6px 9px;border-radius:999px;white-space:nowrap}
.product-search-result-loading{cursor:default;pointer-events:none}
.product-search-result-loading:hover{border-color:var(--line);background:#fff;box-shadow:none}
@media(max-width:760px){
  .product-search-result{align-items:flex-start}
  .product-search-open{display:none}
  .product-search-results{max-height:55vh}
}
.status.sailing{background:var(--blue-soft);color:var(--blue)}
.status.booked,.status.new,.status.inprogress{background:var(--orange-soft);color:var(--orange)}
.status.pending,.status.error,.status.untracked,.status.no-bl{background:var(--red-soft);color:var(--red)}
.status.discharged{background:var(--green-soft);color:var(--green)}
.tracking-action{min-width:125px}.tracking-action small{display:block;margin-top:5px;max-width:220px}.tracking-action .btn{padding:7px 10px;font-size:12px}
.kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ========================= Shipment details v3 ========================= */
.shipment-detail-page{max-width:1680px}
.shipment-detail-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:18px}
.shipment-title-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px}
.shipment-title-line h1{margin:0;font-size:34px;line-height:1.1;letter-spacing:-.02em}
.shipment-heading-meta{display:grid;gap:4px;text-align:right;min-width:145px}
.shipment-heading-meta span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:750}
.shipment-heading-meta strong{font-size:14px}
.shipment-route-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:22px;margin-bottom:18px}
.shipment-route-main{display:grid;grid-template-columns:minmax(170px,1fr) minmax(340px,2.2fr) minmax(170px,1fr);gap:24px;align-items:center}
.route-endpoint{display:grid;gap:6px}.route-endpoint-right{text-align:right}.route-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.route-endpoint strong{font-size:20px;line-height:1.2}
.route-progress-area{display:grid;gap:9px}.route-progress-top,.route-progress-bottom{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted)}.route-progress-top strong{color:var(--text)}
.route-track{height:8px;background:#eef0f3;border-radius:99px;overflow:hidden}.route-fill{height:100%;width:0;background:var(--red);border-radius:99px;transition:width .35s ease}
.shipment-route-facts{display:grid;grid-template-columns:minmax(120px,.85fr) minmax(260px,1.55fr) minmax(150px,1fr) minmax(220px,1.35fr) minmax(130px,.8fr);gap:0;margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.tracking-fact{padding:0 14px;border-right:1px solid var(--line);min-width:0}.tracking-fact:first-child{padding-left:0}.tracking-fact:last-child{border-right:0}.tracking-fact span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.tracking-fact strong{display:block;font-size:13px;margin-top:5px;overflow-wrap:anywhere}
.shipment-section{margin-bottom:18px}.shipment-section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.shipment-section-title h2{font-size:19px;margin:3px 0 4px}.section-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--red);font-weight:850}
.commercial-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.commercial-kpi{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;min-height:112px;box-shadow:0 4px 18px rgba(18,24,40,.035);display:flex;flex-direction:column;justify-content:center}.commercial-kpi-label{font-size:11px;color:var(--muted);font-weight:750}.commercial-kpi-value{font-size:24px;font-weight:850;line-height:1.15;margin-top:7px;overflow-wrap:anywhere}.commercial-kpi-sub{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.35}.commercial-kpi.good{border-color:#ccebd7;background:#fbfffc}.commercial-kpi.attention{border-color:#f3d3d6;background:#fffafa}.commercial-kpi.attention .commercial-kpi-value{color:var(--red)}
.po-breakdown-panel{padding:18px}.po-count-badge{font-size:12px;font-weight:800;padding:7px 10px;border-radius:999px;background:#f2f3f5;color:#5f6570;white-space:nowrap}.po-summary-table{min-width:1120px}.po-summary-table td strong{font-weight:800}.products-panel{margin-top:18px}.shipment-product-filters{grid-template-columns:minmax(220px,1.3fr) minmax(180px,1fr) minmax(180px,1fr) auto!important;max-width:none!important}
@media(max-width:1200px){.shipment-route-facts{grid-template-columns:repeat(3,1fr);row-gap:16px}.tracking-fact:nth-child(3){border-right:0}.commercial-kpi-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.shipment-route-main{grid-template-columns:1fr}.route-endpoint-right{text-align:left}.route-progress-area{order:3}.shipment-heading-meta{display:none}.shipment-product-filters{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){.shipment-detail-heading{align-items:flex-start}.shipment-title-line h1{font-size:28px}.shipment-route-card{padding:16px}.shipment-route-facts{grid-template-columns:repeat(2,1fr)}.tracking-fact,.tracking-fact:first-child{padding:0 10px;border-right:0}.commercial-kpi-grid{grid-template-columns:1fr 1fr}.commercial-kpi{padding:14px;min-height:100px}.commercial-kpi-value{font-size:20px}.shipment-product-filters{grid-template-columns:1fr!important}}
@media(max-width:430px){.commercial-kpi-grid{grid-template-columns:1fr}.shipment-route-facts{grid-template-columns:1fr}.route-progress-top,.route-progress-bottom{flex-direction:column;gap:4px}.tracking-fact{padding:0}}

/* Multiple ShipsGo containers on shipment details */
.container-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.container-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #d8dde6;
    border-radius: 7px;
    background: #f7f8fa;
    color: #20242b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}


/* ========================= Shipment details v6: live map + equipment ========================= */
.tracking-visual-section{margin:20px 0}
.tracking-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:12px}
.tracking-section-heading h2{margin:4px 0 4px;font-size:20px;letter-spacing:-.01em}
.tracking-refresh-btn{gap:8px;white-space:nowrap}
.refresh-dot{width:7px;height:7px;border-radius:50%;background:#168a45;box-shadow:0 0 0 4px rgba(22,138,69,.1)}
.tracking-refresh-btn.is-loading .refresh-dot{animation:trackingPulse 1s infinite}
@keyframes trackingPulse{50%{opacity:.25}}
.tracking-map-shell{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px}
.tracking-map-card,.vessel-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.tracking-map-card{position:relative;padding:0}
.shipment-map{height:430px;width:100%;background:#eef1f4;position:relative;z-index:1}
.map-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:13px;font-weight:650;z-index:600;background:linear-gradient(110deg,#f4f5f7 8%,#fafafa 18%,#f4f5f7 33%);background-size:200% 100%;animation:mapShimmer 1.4s linear infinite}
@keyframes mapShimmer{to{background-position-x:-200%}}
.map-legend{position:absolute;left:14px;bottom:14px;z-index:500;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border:1px solid rgba(218,222,228,.9);border-radius:10px;padding:8px 10px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;box-shadow:0 5px 18px rgba(17,24,39,.08);font-size:10px;color:#626975;font-weight:700}
.map-legend span{display:flex;align-items:center;gap:5px}.legend-line{width:18px;height:3px;border-radius:99px;display:inline-block;background:#8d96a3}.legend-line.current{background:var(--red);height:4px}.legend-line.future{height:0;border-top:2px dashed #8f98a6;background:none}.legend-ship{font-style:normal;color:var(--red);font-size:14px}
.ship-map-icon-wrap{background:transparent!important;border:0!important}.ship-map-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--red);border:3px solid #fff;box-shadow:0 5px 14px rgba(201,21,30,.28)}.ship-map-icon span{color:#fff;font-size:16px;transform:rotate(45deg);display:block}
.vessel-card{padding:19px;display:flex;flex-direction:column}.vessel-card-top{display:flex;gap:12px;align-items:center;padding-bottom:17px;border-bottom:1px solid var(--line)}.vessel-icon{width:42px;height:42px;border-radius:12px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-size:22px;font-weight:800}.vessel-eyebrow{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800}.vessel-card h3{margin:4px 0 0;font-size:17px;line-height:1.25}.vessel-detail-list{display:grid;margin-top:8px}.vessel-detail-list>div{display:grid;grid-template-columns:95px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid #f0f1f3}.vessel-detail-list span{font-size:11px;color:var(--muted)}.vessel-detail-list strong{font-size:12px;text-align:right;overflow-wrap:anywhere}.vessel-status-note{margin-top:auto;padding-top:14px;color:var(--muted);font-size:10px;line-height:1.5}
.container-manifest-panel{padding:18px}.container-panel-heading{margin-bottom:12px}.container-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.container-detail-card{display:grid;grid-template-columns:42px minmax(150px,1.5fr) minmax(130px,1fr) auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:13px;padding:13px 14px;background:#fbfbfc;transition:border-color .18s ease,box-shadow .18s ease}.container-detail-card:hover{border-color:#d5d9df;box-shadow:0 5px 16px rgba(18,24,40,.04)}.container-sequence{width:34px;height:34px;border-radius:9px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:10px;color:var(--muted);font-weight:850}.container-detail-label,.container-equipment span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800;margin-bottom:4px}.container-detail-main strong{font-size:14px;letter-spacing:.025em}.container-equipment strong{font-size:12px}.container-live-status{text-align:right}.container-empty,.container-detail-skeleton{grid-column:1/-1;border:1px dashed var(--line);border-radius:12px;padding:20px;text-align:center;color:var(--muted);font-size:12px;background:#fafbfc}
.leaflet-container{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.leaflet-control-zoom a{color:#303640!important}.leaflet-popup-content{font-size:12px;line-height:1.5}
@media(max-width:1180px){.tracking-map-shell{grid-template-columns:1fr}.vessel-card{min-height:auto}.vessel-detail-list{grid-template-columns:repeat(2,1fr);column-gap:18px}.vessel-status-note{margin-top:10px}.container-detail-grid{grid-template-columns:1fr}}
@media(max-width:760px){.tracking-section-heading{align-items:flex-start;flex-direction:column}.tracking-refresh-btn{width:100%}.shipment-map{height:360px}.map-legend{right:10px;left:10px;bottom:10px;justify-content:center}.vessel-detail-list{grid-template-columns:1fr}.container-detail-card{grid-template-columns:38px 1fr auto}.container-equipment{grid-column:2/3}.container-live-status{grid-row:1/3;grid-column:3}.container-detail-main strong{font-size:13px}}
@media(max-width:460px){.shipment-map{height:315px}.map-legend{gap:8px;font-size:9px}.container-detail-card{grid-template-columns:34px 1fr}.container-live-status{grid-column:2;grid-row:auto;text-align:left}.container-equipment{grid-column:2}.vessel-detail-list>div{grid-template-columns:88px 1fr}}

/* V7 - inline container equipment + map reliability */
.container-inline-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.container-chip-rich{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;max-width:100%}
.container-chip-rich strong{font-size:11px;letter-spacing:.025em;color:var(--text);white-space:nowrap}
.container-chip-rich small{font-size:9px;font-weight:800;color:var(--muted);background:#f3f5f7;border-radius:6px;padding:3px 5px;white-space:nowrap}
.tracking-fact:has(.container-inline-list){min-width:220px}
@media(max-width:760px){.container-chip-rich{padding:5px 7px}.container-chip-rich strong{font-size:10px}.container-chip-rich small{font-size:8px}}


/* V8 self-contained ShipsGo vector map — no external JS/CSS map library required */
.si-svg-map-shell{position:absolute;inset:0;overflow:hidden;border-radius:inherit;background:#f4f7f9}
.si-svg-map{display:block;width:100%;height:100%;font-family:inherit}
.si-map-grid{stroke:#dce4e9;stroke-width:1;opacity:.55;vector-effect:non-scaling-stroke}
.si-map-coast{fill:none;stroke:#b7c2c9;stroke-width:1.15;opacity:.78;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.si-route-line{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.si-route-past{stroke:#909aa5;stroke-width:3;opacity:.75}
.si-route-current{stroke:#cf1621;stroke-width:4.5;opacity:1}
.si-route-future{stroke:#8f98a6;stroke-width:3;stroke-dasharray:9 8;opacity:.85}
.si-port-marker circle{vector-effect:non-scaling-stroke;stroke-width:2}
.si-port-marker circle.past{fill:#fff;stroke:#39424c}.si-port-marker circle.future{fill:#fff;stroke:#929ba5;stroke-dasharray:3 2}.si-port-marker circle.inner{fill:#fff;stroke:none}
.si-port-marker text{font-size:13px;font-weight:800;fill:#26313b;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.si-vessel-marker{filter:url(#siShipShadow)}.si-vessel-marker circle{fill:#cf1621;stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke}.si-vessel-marker path{fill:#fff}.si-vessel-marker text{font-size:14px;font-weight:900;fill:#111820;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}
@media(max-width:760px){.si-port-marker text{font-size:11px}.si-vessel-marker text{font-size:12px}}

/* V9 - keep container equipment type on the same line as the container number */
.tracking-fact .container-inline-list{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
}
.tracking-fact .container-chip-rich{
    display:inline-flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    gap:7px;
    width:max-content;
    max-width:none;
    white-space:nowrap;
}
.tracking-fact .container-chip-rich strong{
    display:inline;
    margin-top:0;
    overflow-wrap:normal;
    white-space:nowrap;
}
.tracking-fact .container-chip-rich small{
    display:inline-flex;
    align-items:center;
    margin:0;
    white-space:nowrap;
    line-height:1;
}

/* ========================= V11 executive operations dashboard ========================= */
.dashboard-v11{max-width:1600px;margin:0 auto}.dashboard-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:20px}.dashboard-eyebrow,.panel-kicker{display:block;color:var(--red);font-size:10px;font-weight:900;letter-spacing:.11em;margin-bottom:6px}.dashboard-hero h1{margin:0;font-size:34px;letter-spacing:-.035em}.dashboard-hero p{margin:7px 0 0;color:var(--muted);max-width:720px}.dashboard-hero-actions{display:flex;align-items:center;gap:12px}.dashboard-sync-note{display:flex;align-items:center;gap:7px;color:#626b76;font-size:11px;font-weight:750}.sync-live-dot{width:8px;height:8px;border-radius:50%;background:#1b9a55;box-shadow:0 0 0 5px rgba(27,154,85,.09)}.dashboard-refresh-btn{background:#111820;color:#fff;border-color:#111820}.dashboard-refresh-btn:hover{background:#252b33}
.executive-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}.executive-kpi{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;min-height:132px;padding:17px;display:flex;gap:13px;align-items:flex-start;box-shadow:0 6px 24px rgba(20,27,38,.035)}.executive-kpi-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#f4f6f8;color:#505a66;display:grid;place-items:center;font-size:16px;font-weight:900}.executive-kpi-copy{min-width:0;display:flex;flex-direction:column}.executive-kpi-copy>span{color:#697480;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.executive-kpi-copy strong{font-size:25px;line-height:1.05;margin:9px 0 7px;letter-spacing:-.025em;overflow-wrap:anywhere}.executive-kpi-copy small{color:#818a95;font-size:10px;line-height:1.35}.executive-kpi.accent{border-color:#f1c9cc;background:linear-gradient(145deg,#fff 55%,#fff4f4)}.executive-kpi.accent .executive-kpi-icon{background:var(--red-soft);color:var(--red)}.executive-kpi.warning .executive-kpi-icon{background:#fff6e6;color:#b66a00}.executive-kpi.dark{background:#151b22;color:#fff;border-color:#151b22}.executive-kpi.dark .executive-kpi-icon{background:rgba(255,255,255,.1);color:#fff}.executive-kpi.dark .executive-kpi-copy>span,.executive-kpi.dark .executive-kpi-copy small{color:#adb5bf}
.dashboard-insight-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr);gap:14px;margin-bottom:14px}.dashboard-v11 .panel{border-radius:18px;box-shadow:0 7px 26px rgba(20,27,38,.035)}.dashboard-value-panel,.dashboard-receiving-panel,.dashboard-chart-panel{padding:20px}.dashboard-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.dashboard-panel-head h2{margin:0;font-size:18px;letter-spacing:-.015em}.panel-head-number{font-size:21px;letter-spacing:-.02em}.chart-note{color:var(--muted);font-size:10px;margin-top:4px}.value-stage{display:grid;gap:16px}.value-stage-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}.value-stage-label span{font-size:11px;font-weight:750;color:#59636e}.value-stage-label strong{font-size:12px}.value-stage-track{height:10px;border-radius:99px;background:#edf0f3;overflow:hidden}.value-stage-fill{height:100%;border-radius:inherit;min-width:0}.value-stage-fill.sailing{background:var(--red)}.value-stage-fill.awaiting{background:#303944}.value-stage-fill.arrived{background:#b8c0c9}.value-stage-row small{display:block;margin-top:5px;color:#8a929c;font-size:9px}.receiving-position{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:22px;min-height:165px}.receiving-donut{--received:0;width:138px;height:138px;border-radius:50%;background:conic-gradient(var(--red) calc(var(--received)*1%),#e9edf0 0);display:grid;place-items:center;position:relative}.receiving-donut:before{content:"";position:absolute;width:101px;height:101px;border-radius:50%;background:#fff}.receiving-donut>div{position:relative;z-index:1;text-align:center}.receiving-donut strong{display:block;font-size:22px}.receiving-donut span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800;letter-spacing:.05em}.receiving-stats{display:grid;gap:4px}.receiving-stats>div{padding:10px 0;border-bottom:1px solid #edf0f2;display:flex;justify-content:space-between;gap:12px}.receiving-stats>div:last-child{border-bottom:0}.receiving-stats span{font-size:10px;color:var(--muted)}.receiving-stats strong{font-size:12px}
.dashboard-eta-panel{margin-bottom:14px;padding:20px}.dashboard-section-title{margin-bottom:13px}.dashboard-section-title h2{margin:0 0 3px;font-size:19px}.dashboard-section-title p{margin:0;font-size:10px}.dashboard-eta-table-wrap{border-radius:13px}.dashboard-eta-table{min-width:1000px}.dashboard-eta-table th{font-size:9px;letter-spacing:.045em;text-transform:uppercase}.dashboard-eta-table td{vertical-align:middle;font-size:11px}.table-subline{display:block;color:var(--muted);font-size:9px;margin-top:3px}.eta-route{display:flex;align-items:center;gap:7px;white-space:nowrap}.eta-route b{color:#a3aab2;font-size:13px}.eta-days{display:inline-flex;border-radius:999px;background:#f2f4f6;padding:5px 8px;font-weight:800;font-size:9px;white-space:nowrap}.eta-days.soon{background:#fff2df;color:#a85a00}.eta-days.overdue{background:#fff0f1;color:var(--red)}.mini-progress{width:78px;height:6px;border-radius:99px;background:#ebedf0;overflow:hidden;margin-bottom:4px}.mini-progress span{display:block;height:100%;background:var(--red);border-radius:inherit}.dashboard-eta-table td small{color:var(--muted);font-size:9px}
.dashboard-analytics-grid{grid-template-columns:1fr 1fr;gap:14px}.rich-status-chart,.rich-group-bars{display:grid;gap:12px}.rich-status-chart .status-row{display:grid;grid-template-columns:135px 1fr 28px;gap:10px;align-items:center}.rich-status-chart .status-row>span{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700}.status-dot{width:7px;height:7px;border-radius:50%;background:#adb5be}.status-dot.sailing{background:var(--red)}.status-dot.arrived,.status-dot.discharged{background:#1b9a55}.status-dot.booked,.status-dot.loaded{background:#d38b20}.status-dot.pending,.status-dot.new,.status-dot.inprogress{background:#7a8490}.rich-status-chart .status-track{height:7px}.rich-status-chart .status-fill{background:#39424d}.rich-bar-row{grid-template-columns:minmax(100px,150px) 1fr 110px}.rich-bar-row>span{font-size:10px}.rich-bar-row .bar-fill{background:linear-gradient(90deg,#d01621,#ea3842)}.group-metric{text-align:right}.group-metric b{display:block;font-size:10px}.group-metric small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.empty-dashboard{padding:20px;color:var(--muted);text-align:center;font-size:11px}.dashboard-block-shimmer{height:48px;border-radius:10px;background:linear-gradient(90deg,#f1f3f5 25%,#fafbfc 50%,#f1f3f5 75%);background-size:200% 100%;animation:shimmer 1.3s infinite;margin-bottom:10px}.dashboard-block-shimmer.tall{height:150px}
@media(max-width:1350px){.executive-kpi-grid{grid-template-columns:repeat(3,1fr)}.dashboard-insight-grid{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.dashboard-insight-grid,.dashboard-analytics-grid{grid-template-columns:1fr}.receiving-position{grid-template-columns:150px 1fr}}
@media(max-width:760px){.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-hero-actions{width:100%;justify-content:space-between}.dashboard-refresh-btn{min-width:140px}.dashboard-hero h1{font-size:28px}.executive-kpi-grid{grid-template-columns:1fr 1fr}.executive-kpi{min-height:120px}.dashboard-eta-panel,.dashboard-value-panel,.dashboard-receiving-panel,.dashboard-chart-panel{padding:15px}.receiving-position{grid-template-columns:1fr;justify-items:center}.receiving-stats{width:100%}.rich-status-chart .status-row{grid-template-columns:110px 1fr 24px}.rich-bar-row{grid-template-columns:105px 1fr 92px}.dashboard-section-title{align-items:flex-start}}
@media(max-width:460px){.executive-kpi-grid{grid-template-columns:1fr}.executive-kpi{min-height:auto}.dashboard-hero-actions{align-items:stretch;flex-direction:column}.dashboard-refresh-btn{width:100%}.rich-status-chart .status-row{grid-template-columns:90px 1fr 20px}.rich-bar-row{grid-template-columns:90px 1fr}.group-metric{grid-column:2;text-align:left}.receiving-donut{width:124px;height:124px}.receiving-donut:before{width:91px;height:91px}}


/* V13 — preserve V11 dashboard layout, improve readability, simplify shipment filters */
.dashboard-v11 .executive-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}

.shipments-list-panel{position:relative;padding:18px}
.shipment-list-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px;position:relative;z-index:20}
.shipment-search-wrap{position:relative;flex:1;max-width:760px}
.shipment-main-search{width:100%;height:48px;padding:0 44px 0 42px!important;border-radius:14px!important;font-size:14px!important;background:#fff}
.shipment-search-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:20px;color:#7b8590;pointer-events:none;line-height:1}
.shipment-search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;background:transparent;border-radius:8px;color:#77818c;font-size:20px;cursor:pointer}
.shipment-search-clear:hover{background:#f2f4f6;color:#111820}
.shipment-filter-menu-wrap{position:relative;margin-left:auto}
.shipment-filter-button{height:48px;display:flex;align-items:center;gap:9px;padding:0 16px;background:#fff;border:1px solid var(--line);color:#202832;border-radius:14px;font-weight:800;white-space:nowrap}
.shipment-filter-button:hover,.shipment-filter-button[aria-expanded="true"]{border-color:#cfd4da;background:#f8f9fa}
.shipment-filter-button.has-filters{border-color:#efc9cc}
.shipment-filter-icon{font-size:15px;color:var(--red)}
.shipment-filter-menu{position:absolute;right:0;top:58px;width:min(720px,calc(100vw - 340px));min-width:620px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 60px rgba(17,24,32,.16);padding:18px;opacity:0;transform:translateY(-5px);transition:opacity .12s ease,transform .12s ease;z-index:100}
.shipment-filter-menu.is-open{opacity:1;transform:translateY(0)}
.shipment-filter-menu[hidden]{display:none!important}
.shipment-filter-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid #edf0f2;margin-bottom:15px}
.shipment-filter-menu-head strong{display:block;font-size:16px}
.shipment-filter-menu-head small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.filter-menu-close{border:0;background:#f4f5f7;width:32px;height:32px;border-radius:9px;font-size:21px;line-height:1;color:#606a75;cursor:pointer}
.filter-menu-close:hover{background:#eceff2;color:#111820}
.shipment-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px}
.shipment-filter-field{display:grid;gap:6px;min-width:0}
.shipment-filter-field>span{font-size:10px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;color:#697480}
.shipment-filter-field input,.shipment-filter-field select{width:100%;height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 11px;font:inherit;font-size:12px;color:#202832;outline:none}
.shipment-filter-field input:focus,.shipment-filter-field select:focus{border-color:#c8cdd3;box-shadow:0 0 0 3px rgba(16,24,32,.04)}
.shipment-sort-field{grid-column:1/-1}
.shipment-filter-menu-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:16px;margin-top:16px;border-top:1px solid #edf0f2}
.shipment-filter-menu-actions .btn{min-width:120px}
.active-filter-summary{display:flex;flex-wrap:wrap;gap:7px;margin:-4px 0 14px}
.active-filter-summary span{display:inline-flex;align-items:center;background:#f4f5f7;border:1px solid #e5e8eb;color:#59636e;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:700}

@media(max-width:980px){.shipment-filter-menu{width:min(680px,calc(100vw - 80px));min-width:0}}
@media(max-width:760px){
  .shipment-list-toolbar{align-items:stretch;gap:8px}
  .shipment-search-wrap{max-width:none}
  .shipment-filter-button{width:48px;padding:0;justify-content:center}
  .shipment-filter-button>span:nth-child(2){display:none}
  .shipment-filter-button .filter-count{position:absolute;top:-6px;right:-5px}
  .shipment-filter-menu-wrap{position:static}
  .shipment-filter-menu{left:0;right:0;top:60px;width:100%;min-width:0}
  .shipment-filter-grid{grid-template-columns:1fr}
  .shipment-sort-field{grid-column:auto}
  .shipment-filter-menu-actions{position:sticky;bottom:0;background:#fff;padding-bottom:2px}
}
@media(max-width:460px){.shipment-main-search{font-size:13px!important}.shipment-filter-menu{padding:15px}.shipment-filter-menu-actions .btn{flex:1;min-width:0}}

/* ========================= V15 — V11 dashboard, readability only ========================= */
/* No dashboard layout/content changes. These overrides only make dashboard text easier to read. */
.dashboard-v11 .dashboard-eyebrow,
.dashboard-v11 .panel-kicker{font-size:11px}
.dashboard-v11 .dashboard-hero h1{font-size:36px}
.dashboard-v11 .dashboard-hero p{font-size:15px;line-height:1.5}
.dashboard-v11 .dashboard-sync-note{font-size:12px}
.dashboard-v11 .dashboard-refresh-btn{font-size:14px}

.dashboard-v11 .executive-kpi-copy>span{font-size:11px}
.dashboard-v11 .executive-kpi-copy strong{font-size:28px}
.dashboard-v11 .executive-kpi-copy small{font-size:11px;line-height:1.45}

.dashboard-v11 .dashboard-panel-head h2{font-size:20px}
.dashboard-v11 .panel-head-number{font-size:23px}
.dashboard-v11 .chart-note{font-size:11px}

.dashboard-v11 .value-stage-label span{font-size:12px}
.dashboard-v11 .value-stage-label strong{font-size:13px}
.dashboard-v11 .value-stage-row small{font-size:10px}

.dashboard-v11 .receiving-donut strong{font-size:24px}
.dashboard-v11 .receiving-donut span{font-size:10px}
.dashboard-v11 .receiving-stats span{font-size:11px}
.dashboard-v11 .receiving-stats strong{font-size:13px}

.dashboard-v11 .dashboard-section-title h2{font-size:21px}
.dashboard-v11 .dashboard-section-title p{font-size:12px;line-height:1.45}
.dashboard-v11 .dashboard-eta-table th{font-size:10px}
.dashboard-v11 .dashboard-eta-table td{font-size:12px}
.dashboard-v11 .table-subline{font-size:10px}
.dashboard-v11 .eta-days{font-size:10px}
.dashboard-v11 .dashboard-eta-table td small{font-size:10px}

.dashboard-v11 .rich-status-chart .status-row>span{font-size:11px}
.dashboard-v11 .rich-bar-row>span{font-size:11px}
.dashboard-v11 .group-metric b{font-size:11px}
.dashboard-v11 .group-metric small{font-size:9px}
.dashboard-v11 .empty-dashboard{font-size:12px}

@media(max-width:760px){
  .dashboard-v11 .dashboard-hero h1{font-size:30px}
  .dashboard-v11 .dashboard-hero p{font-size:14px}
  .dashboard-v11 .executive-kpi-copy strong{font-size:26px}
  .dashboard-v11 .dashboard-panel-head h2{font-size:19px}
  .dashboard-v11 .dashboard-section-title h2{font-size:20px}
}


/* V18 — Dashboard readability bump only. Layout and V11 visual structure are unchanged. */
.dashboard-v11 .dashboard-eyebrow,
.dashboard-v11 .panel-kicker{font-size:12px}
.dashboard-v11 .dashboard-hero h1{font-size:38px}
.dashboard-v11 .dashboard-hero p{font-size:16px;line-height:1.55}
.dashboard-v11 .dashboard-sync-note{font-size:13px}
.dashboard-v11 .dashboard-refresh-btn{font-size:15px}
.dashboard-v11 .executive-kpi-copy>span{font-size:12px}
.dashboard-v11 .executive-kpi-copy strong{font-size:30px}
.dashboard-v11 .executive-kpi-copy small{font-size:12px;line-height:1.5}
.dashboard-v11 .dashboard-panel-head h2{font-size:21px}
.dashboard-v11 .panel-head-number{font-size:24px}
.dashboard-v11 .chart-note{font-size:12px}
.dashboard-v11 .value-stage-label span{font-size:13px}
.dashboard-v11 .value-stage-label strong{font-size:14px}
.dashboard-v11 .value-stage-row small{font-size:11px}
.dashboard-v11 .receiving-donut strong{font-size:25px}
.dashboard-v11 .receiving-donut span{font-size:11px}
.dashboard-v11 .receiving-stats span{font-size:12px}
.dashboard-v11 .receiving-stats strong{font-size:14px}
.dashboard-v11 .dashboard-section-title h2{font-size:22px}
.dashboard-v11 .dashboard-section-title p{font-size:13px;line-height:1.5}
.dashboard-v11 .dashboard-eta-table th{font-size:11px}
.dashboard-v11 .dashboard-eta-table td{font-size:13px}
.dashboard-v11 .table-subline{font-size:11px}
.dashboard-v11 .eta-days{font-size:11px}
.dashboard-v11 .dashboard-eta-table td small{font-size:11px}
.dashboard-v11 .rich-status-chart .status-row>span{font-size:12px}
.dashboard-v11 .rich-bar-row>span{font-size:12px}
.dashboard-v11 .group-metric b{font-size:12px}
.dashboard-v11 .group-metric small{font-size:10px}
.dashboard-v11 .empty-dashboard{font-size:13px}
@media(max-width:760px){
  .dashboard-v11 .dashboard-hero h1{font-size:32px}
  .dashboard-v11 .dashboard-hero p{font-size:15px}
  .dashboard-v11 .executive-kpi-copy strong{font-size:28px}
  .dashboard-v11 .dashboard-panel-head h2{font-size:20px}
  .dashboard-v11 .dashboard-section-title h2{font-size:21px}
}
