/* ===========================================================
   ASSESSMENT CASE — redesigned 3-column interior
   Namespace: .ac-  (scoped to .mc-board .ac-body)
   =========================================================== */
.ac-body {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 28% 44% 28%;
  gap: 8px;
  padding: 8px 10px;
  background: #FAFAFA;
  font-family: system-ui, -apple-system, 'Hanken Grotesk', sans-serif;
  overflow: hidden;
}
.ac-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; padding-right: 3px; }
.ac-col::-webkit-scrollbar { width: 4px; }
.ac-col::-webkit-scrollbar-thumb { background: #E0E0E0; border-radius: 3px; }
.ac-col::-webkit-scrollbar-track { background: transparent; }

/* ---- Inner cards ---- */
.ac-card, .ac-panel {
  border-radius: 8px;
  padding: 9px 10px;
  border: 1px solid #EEE;
  background: #fff;
}
.ac-card--blue   { background: #F0F7FF; border-color: #DBEAFE; }
.ac-card--orange { background: #FFF7F5; border-color: #FED7C3; }
.ac-card--green  { background: #F0FDF4; border-color: #BBF7D0; }

/* Card / panel header */
.ac-card-h, .ac-panel-h {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #999;
  margin-bottom: 7px;
  font-family: 'Satoshi', system-ui, sans-serif;
}
.ac-panel-h { color: #8a8a8a; }
.ac-ico { width: 14px; height: 14px; flex-shrink: 0; }
.ac-ico svg { width: 14px; height: 14px; display: block; }
.ac-ico--blue   { color: #3B82F6; }
.ac-ico--orange { color: #E8450A; }
.ac-ico--green  { color: #16A34A; }
.ac-ico--dark   { color: #475569; }

/* Two-column label/value rows */
.ac-rows { display: flex; flex-direction: column; gap: 6px; }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-l { font-size: 10px; color: #9a9a9a; flex-shrink: 0; }
.ac-v { font-size: 12px; color: #1A1A1A; text-align: right; }
.ac-v--strong { font-size: 13px; font-weight: 600; }
.ac-muted { color: #b0b0b0; }
.ac-green { color: #166534; font-weight: 600; }

/* Pills */
.ac-pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 100px; white-space: nowrap; line-height: 1.5; }
.ac-pill--gray  { background: #F3F3F3; color: #555; }
.ac-pill--amber { background: #FEF3C7; color: #92400E; }
.ac-pill--red   { background: #FEE2E2; color: #991B1B; }
.ac-pill--green { background: #DCFCE7; color: #166534; }

/* Plate tile */
.ac-plate-tile { display: flex; justify-content: center; padding: 5px 0 8px; }
.ac-plate {
  display: inline-block; background: #FDE68A; color: #1A1A1A;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 16px; border-radius: 5px;
  border: 1px solid #EAC94A;
}

/* 2-col grid inside asset card */
.ac-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ac-grid2 .ac-row { justify-content: space-between; }
.ac-grid2 .ac-row--full { grid-column: 1 / -1; }
.ac-grid2 .ac-l { font-size: 9.5px; }
.ac-grid2 .ac-v { font-size: 11.5px; }

.ac-card-foot { margin-top: 9px; }

/* ---- Centre panels ---- */
.ac-panel-h .ac-badge-orange {
  margin-left: auto; background: #FCEDE7; color: #E8450A;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: 100px; text-transform: none;
}
.ac-kebab-v { margin-left: auto; display: flex; flex-direction: column; gap: 2px; }
.ac-kebab-v i { width: 3px; height: 3px; border-radius: 50%; background: #b0b0b0; }

.ac-banner {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600;
  padding: 7px 10px; border-radius: 6px; margin-bottom: 10px;
}
.ac-banner--green { background: #DCFCE7; color: #166534; }
.ac-banner svg { width: 14px; height: 14px; }

.ac-jobgrid { gap: 11px 14px; }
.ac-jf { display: flex; flex-direction: column; gap: 3px; }
.ac-jf .ac-l { font-size: 10px; }
.ac-jf .ac-v { text-align: left; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.ac-link-blue { font-size: 12px; color: #2563EB; font-weight: 500; }
.ac-link-orange { font-size: 12px; color: #E8450A; font-weight: 500; }

/* Meter log */
.ac-meter-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.ac-mf { display: flex; flex-direction: column; gap: 4px; padding: 0 11px; border-left: 1px solid #F0F0F0; }
.ac-mf:first-child { padding-left: 0; border-left: 0; }
.ac-mf .ac-l { font-size: 10px; }
.ac-mf .ac-v { text-align: left; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.ac-mf .ac-v svg { width: 12px; height: 12px; color: #9a9a9a; }
.ac-chip-blue {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EFF6FF; color: #1D4ED8; font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; align-self: flex-start;
}
.ac-chip-blue svg { width: 12px; height: 12px; }
.ac-duration {
  margin-top: 11px; background: #FFF1EE; color: #E8450A;
  font-size: 11px; font-weight: 600; text-align: center;
  padding: 6px; border-radius: 6px;
}
.ac-meter-ref { margin-top: 8px; font-size: 10px; color: #a8a8a8; font-family: 'SF Mono', ui-monospace, monospace; }

/* Tyre diagram */
.ac-tyre-diag {
  position: relative; height: 116px; margin: 4px auto 4px;
  width: 188px;
}
.ac-veh-body {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 116px; border: 2px solid #CBD5E1; border-radius: 14px 14px 9px 9px;
  background: #F8FAFC;
}
.ac-veh-body::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 10px; height: 22px;
  border: 1.5px solid #DBE3EC; border-radius: 6px; background: #fff;
}
.ac-wheel {
  position: absolute; width: 44px; text-align: center;
}
.ac-wheel-dot {
  width: 26px; height: 26px; margin: 0 auto 3px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.ac-wheel-dot.green { background: #22C55E; }
.ac-wheel-dot.amber { background: #F59E0B; }
.ac-wheel-lbl { font-size: 9px; color: #94a3b8; font-weight: 600; font-family: 'SF Mono', ui-monospace, monospace; }
.ac-wheel.fl { left: 2px; top: 10px; }
.ac-wheel.fr { right: 2px; top: 10px; }
.ac-wheel.rl { left: 2px; bottom: 6px; }
.ac-wheel.rr { right: 2px; bottom: 6px; }
.ac-tyre-make {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 2px auto 0;
}
.ac-tyre-make span {
  background: #F1F5F9; color: #475569; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}
.ac-tyre-foot { margin-top: 8px; font-size: 10px; color: #a8a8a8; }

/* ---- Right column: map ---- */
.ac-map-tools, .ac-tl-tools { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #b0b0b0; }
.ac-map-tools svg, .ac-tl-tools svg { width: 13px; height: 13px; }
.ac-map-toggle { display: inline-flex; border: 1px solid #E2E2E2; border-radius: 5px; overflow: hidden; text-transform: none; letter-spacing: 0; }
.ac-map-toggle span { font-size: 9.5px; padding: 2px 7px; color: #888; }
.ac-map-toggle .active { background: #475569; color: #fff; }

.ac-map {
  position: relative; height: 172px; border-radius: 8px; overflow: hidden;
  border: 1px solid #E6E6E6;
  background:
    linear-gradient(135deg, #EAF1E8 0%, #E4EDEF 100%);
}
.ac-map-grid { position: absolute; inset: 0; opacity: 0.5; }
.ac-map-grid path { stroke: #C9D6CE; stroke-width: 1.4; fill: none; }
.ac-map-road { stroke: #fff; stroke-width: 3; fill: none; }
.ac-map-road2 { stroke: #F2C9A0; stroke-width: 2.4; fill: none; }
.ac-truck-marker {
  position: absolute; left: 50%; top: 78%; transform: translate(-50%,-50%);
  width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); z-index: 3;
}
.ac-map-pop {
  position: absolute; left: 50%; top: 78%; transform: translate(-50%, calc(-100% - 14px));
  width: 164px; background: #fff; border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16); z-index: 4; font-family: system-ui, sans-serif;
}
.ac-map-pop::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px; background: #fff; box-shadow: 2px 2px 3px rgba(0,0,0,0.06);
}
.ac-pop-plate {
  display: inline-block; background: #FDE68A; color: #1A1A1A;
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; border: 1px solid #EAC94A;
}
.ac-pop-row { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; margin-bottom: 2px; }
.ac-pop-row span:first-child { color: #9a9a9a; }
.ac-pop-row span:last-child { color: #444; font-weight: 500; }
.ac-pop-live { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 10px; color: #166534; font-weight: 600; }
.ac-pop-live i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.ac-map-cap { margin-top: 7px; font-size: 10px; color: #a8a8a8; }

/* ---- Timeline ---- */
.ac-tl-search, .ac-tl-note {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid #E6E6E6; border-radius: 6px; padding: 6px 9px;
  font-size: 11px; color: #9a9a9a; margin-bottom: 7px;
}
.ac-tl-search svg, .ac-tl-note svg { width: 13px; height: 13px; flex-shrink: 0; }
.ac-tl-note .ac-attach { margin-left: auto; }
.ac-tl-hl { display: flex; align-items: flex-start; gap: 7px; font-size: 10.5px; color: #a0a0a0; padding: 2px 0 6px; }
.ac-tl-hl svg { width: 14px; height: 14px; color: #cbd5e1; flex-shrink: 0; margin-top: 1px; }
.ac-tl-recent { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #555; margin-bottom: 6px; }
.ac-tl-recent svg { width: 13px; height: 13px; }
.ac-tl-item { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid #F0F0F0; }
.ac-tl-av { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; color: #fff; }
.ac-tl-av.green { background: #15803D; }
.ac-tl-av.purple { background: #7C3AED; }
.ac-tl-meta { font-size: 9.5px; color: #a0a0a0; }
.ac-tl-line { font-size: 11px; color: #444; margin: 1px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-tl-line a { color: #2563EB; }
.ac-tl-task { font-size: 11.5px; color: #1A1A1A; font-weight: 500; }
.ac-tl-more { font-size: 10.5px; color: #2563EB; }
.ac-overdue { background: #FEE2E2; color: #991B1B; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 100px; }

@media (max-width: 900px) {
  .ac-body { grid-template-columns: 1fr; overflow: visible; }
  .ac-col { overflow: visible; }
}
