/* =========================================================================
   Safripol Operations KPI Report
   Connect Logistics - Process Optimization & Development
   ========================================================================= */

:root {
  --bg: #f3f6fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --line: #dbe3ef;
  --line-soft: #e9eef6;
  --text: #14213d;
  --text-2: #4d5b77;
  --text-3: #77849d;
  --accent: #0b1aa3;
  --accent-2: #28a9c8;
  --connect-blue: #0b1aa3;
  --connect-green: #00ae73;
  --connect-orange: #ff4b00;
  --saf-teal: #2fa9c5;
  --good: #009c69;
  --warn: #b45309;
  --bad: #dc2626;
  --shadow: 0 8px 28px rgba(31, 45, 77, .08);
  --grid: rgba(15, 27, 51, .16);
  --grid-soft: rgba(15, 27, 51, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 520px at 4% -12%, rgba(11, 26, 163, .08), transparent 62%),
    radial-gradient(900px 460px at 95% -8%, rgba(47, 169, 197, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(14px, .74vw, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
.muted { color: var(--text-3); }
.hidden { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------- loader ------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .35s ease, visibility .35s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; color: var(--text-2); }
.spinner {
  width: 42px; height: 42px; margin: 0 auto 16px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------- topbar ------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 11px 28px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.connect-logo { width: 118px; height: 40px; object-fit: contain; }
.safripol-logo { width: 126px; height: 36px; object-fit: contain; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.titles h1 { font-size: clamp(17px, .95vw, 21px); }
.titles p { margin: 2px 0 0; font-size: clamp(12px, .68vw, 14px); color: var(--text-2); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.stamp { text-align: right; line-height: 1.25; margin-right: 4px; }
.stamp-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); }
.stamp-value { display: block; font-size: 13px; font-weight: 600; font-family: "JetBrains Mono", monospace; }
.stamp-sub { display: block; font-size: 10.5px; color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-icon { padding: 8px 9px; }
.btn.busy svg { animation: spin .8s linear infinite; }

/* ------------------------------- banner ------------------------------- */
.banner {
  margin: 14px 28px -4px; padding: 11px 16px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--warn);
}
.banner.bad {
  border-color: color-mix(in srgb, var(--bad) 45%, transparent);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
}

/* -------------------------------- tabs -------------------------------- */
.tabs {
  position: sticky; top: 63px; z-index: 55;
  display: flex; gap: 4px; padding: 10px 24px;
  overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; background: transparent;
  color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; transition: all .15s;
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab.active {
  color: var(--connect-blue); background: var(--surface);
  border-color: var(--line);
  box-shadow: inset 0 -3px 0 0 var(--saf-teal);
}

/* -------------------------------- views ------------------------------- */
main { padding: clamp(18px, 1.4vw, 34px); width: 100%; max-width: none; margin: 0; overflow: hidden; }
.view { display: none; min-width: 0; animation: fade .3s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 1.1vw, 26px);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card::selection { background: rgba(47, 169, 197, .24); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-head h3 { font-size: 13.5px; letter-spacing: .01em; }
.card-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--text-3); }
.section-icon {
  width: 36px; height: 36px; object-fit: contain; opacity: .82;
  filter: saturate(.9);
}
.chip {
  padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.chip.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip.bad  { color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 1.2vw, 26px); }
@media (max-width: 1080px) { .grid-2 { grid-template-columns: 1fr; } }

/* --------------------------------- hero ------------------------------- */
.progress-hero { padding: 22px 24px; }
.progress-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(112deg, rgba(11, 26, 163, .04), rgba(47, 169, 197, .08)),
    var(--surface);
  border-top: 4px solid var(--connect-blue);
}
.progress-hero::after {
  content: ""; position: absolute; width: 230px; height: 230px;
  right: -60px; bottom: -110px;
  background: url("images/Connect-Logistics-Icon.png") center/contain no-repeat;
  opacity: .035; pointer-events: none;
}
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hero-head h2 { font-size: 15px; }
.hero-head .sub { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }
.hero-pct { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-family: "JetBrains Mono", monospace; }
.hero-pct small { font-size: 20px; color: var(--text-3); margin-left: 2px; }
.bar {
  height: 12px; margin: 18px 0 16px; border-radius: 99px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--connect-blue), var(--saf-teal), var(--connect-green));
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-stat { min-width: 120px; }
.hero-stat .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.hero-stat .v { font-size: 19px; font-weight: 700; font-family: "JetBrains Mono", monospace; margin-top: 2px; }

/* --------------------------------- kpis ------------------------------- */
.kpi-group-title {
  font-size: clamp(11px, .6vw, 12.5px); text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); font-weight: 700;
  margin: clamp(4px, .6vw, 10px) 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.kpi-group-title::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.kpi-grid {
  display: grid; gap: clamp(14px, .9vw, 22px); margin-bottom: clamp(18px, 1.2vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
}
/* Five-card and ten-card groups divide cleanly into rows of five; the default
   auto-fit lands on four columns at common widths and leaves an orphan row. */
@media (min-width: 1180px) {
  .kpi-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
}
.kpi {
  display: grid;
  /* Fixed rows keep the label, value and sub baselines aligned across cards.
     Each row reserves just enough for its worst realistic case - over-reserving
     leaves a short card floating in dead space. */
  grid-template-rows: 1.6em minmax(44px, auto) 2.7em;
  align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 15px 14px;
  position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.kpi.has-icon { padding-right: 48px; }
.kpi .kpi-icon {
  position: absolute; right: 13px; top: 14px;
  width: 32px; height: 32px; object-fit: contain;
  opacity: .72; transition: transform .18s, opacity .18s;
}
.kpi:hover .kpi-icon { transform: translateY(-2px) scale(1.04); opacity: .92; }
.kpi:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: .8;
}
.kpi:nth-child(3n+1)::before { background: var(--connect-blue); }
.kpi:nth-child(3n+2)::before { background: var(--saf-teal); }
.kpi:nth-child(3n)::before { background: var(--connect-green); }
.kpi.good::before { background: var(--good); }
.kpi.warn::before { background: var(--warn); }
.kpi.bad::before  { background: var(--bad); }
/* Global: any KPI card carrying a tone colors its headline number too, not
   just the accent strip - a red/green strip alone is too easy to miss. */
.kpi.good .value { color: var(--good); }
.kpi.warn .value { color: var(--warn); }
.kpi.bad  .value { color: var(--bad); }
.kpi.good .value .unit,
.kpi.warn .value .unit,
.kpi.bad  .value .unit { color: inherit; opacity: .75; }
.kpi .label {
  align-self: start;
  display: flex; align-items: flex-start;
  font-size: clamp(10.5px, .58vw, 12px); text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); font-weight: 700;
  line-height: 1.25;
}
.kpi .value {
  align-self: center;
  font-size: clamp(26px, 1.5vw, 33px); font-weight: 700; margin-top: 0;
  /* 1.05 clipped glyph descenders on the monospace face. */
  line-height: 1.15;
  font-family: "JetBrains Mono", monospace; letter-spacing: -.02em;
}
.kpi .value .unit { font-size: 12px; color: var(--text-3); margin-left: 4px; font-weight: 500; }
.kpi .value .qualifier {
  font-size: 13px; font-weight: 700; margin-left: 6px;
  text-transform: uppercase; letter-spacing: .03em;
}
/* Dates read as words, not measurements, so they get the UI face a touch smaller. */
.kpi .value.is-date {
  font-family: inherit; font-size: clamp(19px, 1.05vw, 25px); letter-spacing: -.01em;
  white-space: nowrap;
}
.kpi .sub {
  align-self: start;
  font-size: clamp(11.5px, .64vw, 13px); color: var(--text-2); margin-top: 0;
  line-height: 1.45;
}
.kpi .sub.good { color: var(--good); }
.kpi .sub.warn { color: var(--warn); }
.kpi .sub.bad  { color: var(--bad); }

/* -------------------------------- charts ------------------------------ */
/* Charts need vertical room to read as analysis rather than as a strip. These
   scale with the viewport so a large external display gets a genuinely bigger
   plot instead of the same block surrounded by white space. */
.chart-wrap { position: relative; height: clamp(320px, 20vw, 460px); }
.chart-wrap.tall { height: clamp(390px, 25vw, 560px); }
.chart-wrap.xlarge { height: clamp(460px, 33vw, 720px); }

/* A chart card is mostly plot, so it earns a slightly larger heading and a
   cleaner separation from the canvas below it. */
.card-head h3 { font-size: 14.5px; letter-spacing: -.01em; font-weight: 700; }
.card:has(.chart-wrap) .card-head {
  padding-bottom: 13px; margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.card:has(.chart-wrap) { transition: box-shadow .22s ease, border-color .22s ease; }
.card:has(.chart-wrap):hover {
  box-shadow: 0 10px 30px -14px rgba(11, 26, 163, .20), var(--shadow);
  border-color: color-mix(in srgb, var(--saf-teal) 26%, var(--line));
}

/* -------------------------- operations ribbon ------------------------- */
.operations-ribbon {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 15px 20px;
  background: linear-gradient(90deg, #fff, #f6fbfd 50%, #fff);
}
.ribbon-step { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ribbon-step img { width: 38px; height: 38px; object-fit: contain; }
.ribbon-step div { display: flex; flex-direction: column; }
.ribbon-step span {
  font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); font-weight: 700; white-space: nowrap;
}
.ribbon-step strong {
  margin-top: 2px; font: 700 16px/1.2 "JetBrains Mono", monospace;
  white-space: nowrap; color: var(--text);
}
.ribbon-arrow { color: var(--saf-teal); font-size: 20px; opacity: .55; }

.iso-summary table { font-size: 13px; }
.iso-summary tbody tr:last-child td {
  font-weight: 800; color: #fff; background: var(--connect-blue);
  border-bottom: 0;
}
.iso-summary tbody tr:last-child:hover td { background: var(--connect-blue); }
.exception-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* -------------------------------- tables ------------------------------ */
.table-wrap { overflow: auto; max-height: 420px; border-radius: 9px; }
.table-wrap.tall { max-height: 560px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2); color: var(--text-2);
  text-align: left; font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 11px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 9px 11px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-family: "JetBrains Mono", monospace; }
td.good { color: var(--good); } td.warn { color: var(--warn); } td.bad { color: var(--bad); }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line);
}
.pill.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill.bad  { color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

/* ------------------------------ exceptions ---------------------------- */
.exceptions { display: flex; flex-direction: column; gap: 9px; max-height: 340px; overflow: auto; }
.exc {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 13px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--text-3);
}
.exc.high   { border-left-color: var(--bad); }
.exc.medium { border-left-color: var(--warn); }
.exc.low    { border-left-color: var(--accent); }
.exc-body { flex: 1; min-width: 0; }
.exc-cat { font-size: 12.5px; font-weight: 700; }
.exc-detail { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: normal; }
.exc-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.exc-val {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; color: var(--text);
}

/* ------------------------------ bars / cycle -------------------------- */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row .bar-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; margin-bottom: 6px;
}
.bar-row .bar-top strong { font-family: "JetBrains Mono", monospace; }
.bar-track {
  position: relative; height: 10px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); overflow: visible;
}
.bar-val { height: 100%; border-radius: 99px; background: var(--accent); transition: width .8s ease; }
.bar-val.over { background: var(--bad); }
.bar-val.under { background: var(--good); }
.bar-target {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--text-2); border-radius: 2px;
}

.cycle-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.cycle-step {
  flex: 1 1 150px; padding: 14px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line); position: relative;
}
.cycle-step .n { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.cycle-step .v { font-size: 21px; font-weight: 700; font-family: "JetBrains Mono", monospace; margin-top: 5px; }
.cycle-step .t { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.cycle-step.over { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.cycle-step.ok   { border-color: color-mix(in srgb, var(--good) 45%, transparent); }

/* ------------------------------- vessel ------------------------------ */
.vessel-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 178px;
  background:
    linear-gradient(120deg, rgba(11, 26, 163, .055), rgba(47, 169, 197, .075), rgba(0, 174, 115, .045)),
    #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 4px solid color-mix(in srgb, var(--connect-blue) 78%, #fff);
  overflow: hidden;
  position: relative;
}
.vessel-hero::after {
  content: ""; position: absolute; inset: auto 2% -80px auto;
  width: 320px; height: 320px;
  background: url("images/Connect-Logistics-Icon.png") center/contain no-repeat;
  opacity: .035; pointer-events: none;
}
.vessel-hero h2 {
  font-size: clamp(24px, 1.85vw, 38px); line-height: 1.1; max-width: 980px;
  color: var(--connect-blue);
}
.vessel-hero p { margin: 13px 0 0; max-width: 1180px; color: var(--text-2); font-size: clamp(13px, .78vw, 16px); }
.vessel-hero img { width: clamp(70px, 5vw, 118px); height: auto; opacity: .78; filter: saturate(.8); }
.eyebrow {
  display: inline-block; margin-bottom: 9px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 800; color: var(--saf-teal);
}
.vessel-summary-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: clamp(18px, 1.2vw, 26px);
}
.vessel-main-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(520px, .65fr);
  gap: clamp(18px, 1.2vw, 26px);
}
.recon-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.recon-item {
  padding: 16px; border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid var(--line);
}
.recon-item span {
  display: block; font-size: 10.5px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
}
.recon-item strong {
  display: block; margin-top: 7px; font: 800 clamp(21px, 1.35vw, 31px)/1.05 "JetBrains Mono", monospace;
  color: var(--connect-blue);
}
.recon-item small { display: block; margin-top: 6px; color: var(--text-2); }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 5px; }
.timeline-item { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.timeline-item:not(:last-child) .dot::after {
  content: ""; position: absolute; top: 16px; left: 6px; width: 2px; height: 42px;
  background: var(--line);
}
.dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--saf-teal); margin-top: 4px; }
.timeline-item span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 800; }
.timeline-item strong { display: block; margin-top: 2px; font: 800 18px/1.2 "JetBrains Mono", monospace; }
.timeline-item small { display: block; color: var(--text-2); margin-top: 2px; }

@media (max-width: 1180px) {
  .vessel-summary-grid,
  .vessel-main-grid {
    grid-template-columns: 1fr;
  }
  .recon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------- misc --------------------------------- */
.empty-state {
  padding: 52px 28px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state h3 { font-size: 15px; margin-bottom: 8px; }
.empty-state p { color: var(--text-2); max-width: 560px; margin: 0 auto; font-size: 13px; }
.note { font-size: 11.5px; color: var(--text-3); margin: 10px 0 0; }
.basis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.basis-item { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.basis-item .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.basis-item .d { font-size: 12.5px; color: var(--text-2); margin-top: 4px; white-space: normal; }

.foot {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  align-items: center; padding: 16px 28px 22px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--text-3);
}
.foot::after {
  content: ""; position: absolute; right: 48%; top: -35px;
  width: 90px; height: 90px;
  background: url("images/Connect-Logistics-Icon.png") center/contain no-repeat;
  opacity: .025; pointer-events: none;
}
.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-brand img { width: 25px; height: 25px; object-fit: contain; opacity: .75; }

/* -------------------------------- print ------------------------------- */
@media print {
  .topbar, .tabs, .btn, .loader { display: none !important; }
  body { background: #fff; }
  .view { display: block !important; page-break-before: always; }
  .view:first-of-type { page-break-before: auto; }
  .card { box-shadow: none; break-inside: avoid; }
  .table-wrap { max-height: none; }
}

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .topbar-left { flex-wrap: wrap; width: 100%; }
  .connect-logo { width: 88px; height: 30px; }
  .safripol-logo { width: 90px; height: 28px; }
  .brand-divider { height: 24px; }
  .titles { flex-basis: 100%; width: 100%; }
  .titles h1 { font-size: 15px; }
  .tabs { top: auto; padding: 8px 12px; }
  main { padding: 16px 14px 32px; }
  .hero-pct { font-size: 34px; }
  .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .operations-ribbon { overflow-x: auto; justify-content: flex-start; }
  .ribbon-step { min-width: 150px; }
  .exception-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-head { align-items: center; }
  .hero-stats { gap: 16px; }
  .progress-hero, .card { padding-left: 16px; padding-right: 16px; }
}
