/* ============================================================
   SAFENTRA — PTW SIM 08 · SIMOPS
   zone board · overlap timeline · conflict cards ·
   coordination board. Dense but readable; color is never the
   only indicator (labels + icons everywhere).
   ============================================================ */

/* ---------- zone board ---------- */
.smo-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.smo-zone { border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; background: var(--color-surface-1); cursor: pointer; position: relative; }
.smo-zone:hover { border-color: #0F62FE88; }
.smo-zone .zn { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.smo-zone .zrow { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-text-3); padding: 2px 0; }
.smo-zone .zrow b { color: var(--color-text-1); font-variant-numeric: tabular-nums; }
.smo-zone .wflag { position: absolute; top: -7px; right: 10px; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 9px; letter-spacing: .05em; }
.smo-zone .wflag.crit { background: #E5484D; color: #fff; }
.smo-zone .wflag.warn { background: #E8930C; color: #fff; }
.smo-zone .wflag.ok { background: #0E9C8E; color: #fff; }

/* ---------- overlap timeline ---------- */
.smo-tl { border: 1px solid var(--color-border); border-radius: 8px; overflow-x: auto; }
.smo-tl .row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--color-border-soft); min-width: 760px; }
.smo-tl .row:last-child { border-bottom: 0; }
.smo-tl .lbl { padding: 6px 10px; font-size: 11px; border-right: 1px solid var(--color-border-soft); display: flex; gap: 6px; align-items: center; }
.smo-tl .lane { position: relative; height: 30px; background: repeating-linear-gradient(90deg, transparent 0 99px, var(--color-border-soft) 99px 100px); }
.smo-tl .bar { position: absolute; top: 5px; height: 20px; border-radius: 4px; font-size: 9px; font-weight: 700; color: #fff; display: flex; align-items: center; padding: 0 6px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.smo-tl .bar.crit { box-shadow: 0 0 0 2px #E5484D; }
.smo-tl .axis { display: grid; grid-template-columns: 210px 1fr; min-width: 760px; background: var(--color-surface-2); }
.smo-tl .axis .lbl { font-size: 10px; color: var(--color-text-3); }
.smo-tl .axis .hours { position: relative; height: 16px; }
.smo-tl .axis .hours span { position: absolute; font-size: 9px; color: var(--color-text-4); transform: translateX(-50%); }
.smo-tl .nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: #E5484D; opacity: .7; }

/* ---------- conflict cards ---------- */
.smo-conf { border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-1); padding: 10px 12px; border-left-width: 4px; }
.smo-conf.r-critical { border-left-color: #E5484D; }
.smo-conf.r-high { border-left-color: #E8930C; }
.smo-conf.r-medium { border-left-color: #0F62FE; }
.smo-conf .vs { display: grid; grid-template-columns: 1fr 30px 1fr; gap: 6px; align-items: center; margin: 8px 0; }
.smo-conf .vs .mid { width: 26px; height: 26px; margin: 0 auto; border-radius: 50%; background: #E5484D14; color: #C62F35; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.smo-conf .side { border: 1px solid var(--color-border-soft); border-radius: 8px; padding: 7px 9px; font-size: 11px; background: var(--color-surface-2); }
.smo-conf .side b { display: block; font-size: 11px; }

/* ---------- permit coordination board ---------- */
.pcb-day { border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.pcb-row { display: grid; grid-template-columns: 108px 1fr repeat(4, minmax(86px, auto)); gap: 0; border-bottom: 1px solid var(--color-border-soft); font-size: 11px; align-items: center; }
.pcb-row > * { padding: 6px 8px; border-right: 1px solid var(--color-border-soft); }
.pcb-row .ph { background: var(--color-surface-2); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.pcb-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* ---------- meetings ---------- */
.smo-meet { border: 1px solid var(--color-border); border-radius: 8px; padding: 9px 11px; background: var(--color-surface-1); font-size: 11px; }
.smo-meet .mh { font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }

@media (max-width: 1180px) { .smo-board { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .smo-board { grid-template-columns: repeat(2, 1fr); }
  .pcb-row { grid-template-columns: 96px 1fr repeat(2, minmax(70px, auto)); }
  .pcb-row > :nth-child(n+5) { display: none; } }
@media (max-width: 560px)  { .smo-board { grid-template-columns: 1fr; } }

/* conflict type headline inside conflict cards */
.smo-type{font-size:12px;font-weight:700;margin-top:6px}
