/* Steps table of the monitoring page, drawn like the map's other overlay cards. */
.monitoring-steps{position:absolute;z-index:9;top:9px;right:18px;width:min(380px,calc(100% - 36px));max-height:calc(100% - 18px);display:flex;flex-direction:column;padding:18px 0 0;background:rgba(246,243,236,.98);box-shadow:0 16px 44px rgba(0,30,43,.18);color:var(--navy)}
.monitoring-steps[hidden]{display:none}
.monitoring-steps__head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:0 18px 14px}
.monitoring-steps__head h2{font-size:.88rem;font-weight:600;line-height:1.3}
.monitoring-steps__head p{margin-top:4px;font-size:.64rem;line-height:1.5;color:var(--muted)}
.monitoring-steps__close{font-size:18px;line-height:1;color:var(--navy);cursor:pointer}
.monitoring-steps__actions{display:flex;gap:8px;flex:none}
.monitoring-steps__expand{color:var(--navy);cursor:pointer}
.monitoring-steps__expand svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.monitoring-steps__expand .is-shrink,.monitoring-steps.is-expanded .monitoring-steps__expand .is-grow{display:none}
.monitoring-steps.is-expanded .monitoring-steps__expand .is-shrink{display:inline}
.monitoring-steps__expand[aria-pressed="true"]{border-color:#008f8866;color:#007d78;background:#008f880a}
.monitoring-steps{transition:width .32s cubic-bezier(.22,1,.36,1)}
.monitoring-steps.is-expanded{width:min(1010px,calc(100% - 420px))}
.left-column-hidden .monitoring-steps.is-expanded{width:min(1010px,calc(100% - 80px))}
.monitoring-steps-toggle{width:100%;justify-content:center;margin:0 0 12px}
.monitoring-steps-toggle[hidden]{display:none}
.monitoring-steps__frame{position:relative;display:flex;min-height:0;border-top:1px solid var(--line)}
.monitoring-steps__scroll{flex:1;overflow:auto;min-height:0;scrollbar-width:thin}
.monitoring-steps__frame::after{content:"";position:absolute;top:0;right:0;bottom:0;width:42px;background:linear-gradient(90deg,rgba(246,243,236,0),rgba(246,243,236,.98));pointer-events:none;transition:opacity .2s}
.monitoring-steps__frame.is-end::after{opacity:0}
.monitoring-steps__more{position:absolute;z-index:4;top:5px;right:8px;display:flex;align-items:center;min-height:26px;padding:0 8px;border:1px solid #008f8866;background:#fff;color:#007d78;font:inherit;font-size:.6rem;cursor:pointer;transition:opacity .2s,background .18s}
.monitoring-steps__more:hover{background:#eef3f0}
.monitoring-steps__frame.is-end .monitoring-steps__more{opacity:0;pointer-events:none}
.monitoring-steps__table{border-collapse:separate;border-spacing:0;width:100%;min-width:760px;font-size:.7rem}
.monitoring-steps__table th,.monitoring-steps__table td{padding:0;height:34px;border-bottom:1px solid rgba(0,63,87,.08)}
.monitoring-steps__table td{border-left:1px solid rgba(0,63,87,.06)}
.monitoring-steps__table thead th{position:sticky;top:0;z-index:2;height:36px;padding:0 8px;background:rgba(246,243,236,.98);border-bottom:1px solid var(--line);color:var(--muted);font-size:.57rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;text-align:center;white-space:nowrap}
.monitoring-steps__table .monitoring-steps__corner{left:0;z-index:3;min-width:214px;padding-left:18px;text-align:left}
.monitoring-steps__group th{height:auto;padding:16px 0 6px;background:transparent;text-align:left;border-bottom:1px solid var(--line)}
.monitoring-steps__group span{position:sticky;left:18px;color:#007d78;font-size:.57rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.monitoring-steps__zone{position:sticky;left:0;z-index:1;background:rgba(246,243,236,.98);text-align:left;box-shadow:1px 0 0 rgba(0,63,87,.1)}
.monitoring-steps__zone button{display:flex;align-items:center;gap:7px;width:100%;height:100%;min-height:34px;padding:0 10px 0 18px;border:0;background:transparent;color:var(--navy);font:inherit;font-size:.72rem;font-weight:500;text-align:left;cursor:pointer;transition:color .18s}
.monitoring-steps__zone button:hover{color:#007d78}
.monitoring-steps tr.is-active .monitoring-steps__zone{background:#fdf3d0;box-shadow:inset 3px 0 0 #fdda72,1px 0 0 rgba(0,63,87,.1)}
.monitoring-steps tr.is-active .monitoring-steps__zone button{color:var(--navy-deep);font-weight:600}
.monitoring-steps tr.is-active td{background:#fdf8e6}
.monitoring-steps__zone b{min-width:18px;padding:1px 4px;background:var(--navy-deep);color:#fff;font-size:.56rem;font-weight:600;text-align:center}
.monitoring-steps__cell{min-width:60px;background:rgba(255,255,255,.68);text-align:center;vertical-align:middle}
.monitoring-steps__table thead th.has-title{min-width:96px;max-width:130px;padding:6px 8px;white-space:normal;text-align:left;vertical-align:bottom}
.monitoring-steps__table thead th.has-title small{display:block;font-size:.52rem}
.monitoring-steps__table thead th.has-title span{display:block;margin-top:2px;color:var(--navy);font-size:.62rem;font-weight:600;letter-spacing:0;text-transform:none;line-height:1.25}
.monitoring-steps__cell[data-state="done"]{background:#2ea26c24}
.monitoring-steps__cell[data-state="in_progress"]{background:#fdda7259}
.monitoring-steps__mark{display:inline-grid;place-items:center;width:18px;height:18px;color:#fff;font-size:.62rem;font-weight:700}
[data-state="done"] .monitoring-steps__mark{background:#2ea26c}
[data-state="in_progress"] .monitoring-steps__mark{width:9px;height:9px;border-radius:50%;background:#e0a300}
.monitoring-steps__cell small{display:block;margin-top:2px;font-size:.52rem;color:var(--muted)}
.monitoring-steps__key{display:inline-flex;align-items:center;gap:5px;margin-right:12px}
.monitoring-steps__key.is-done{color:#1f6e4a}
.monitoring-steps__key.is-in_progress::before{content:"";width:8px;height:8px;border-radius:50%;background:#e0a300}
.monitoring-steps__note{margin:0;padding:10px 18px 12px;border-top:1px solid var(--line);font-size:.6rem;color:var(--muted)}
.monitoring-steps button:focus-visible,.monitoring-steps__scroll:focus-visible,.monitoring-steps-toggle:focus-visible{outline:3px solid #ffdc70;outline-offset:2px}
@media (min-width:821px){
  .map-stage.has-left-info .map-overlay-corner{top:var(--monitoring-column-top,160px);bottom:32px;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .map-overlay-corner>.map-info-stack.is-in-corner{position:relative;inset:auto;flex:none;width:auto;max-height:none;overflow:visible;pointer-events:auto}
  .map-overlay-corner>.map-info-stack.is-in-corner .lot-card{flex:none;max-height:none;overflow:visible}
  /* The right column is gone: the filters run in one line almost to the right edge,
     and the steps table opens below them. */
  .map-stage.has-left-info .map-toolbar{width:calc(100vw - 27px);max-width:none}
  /* The left column slides out while the steps table is open; the tab brings it back. */
  .map-stage.has-left-info .map-overlay-corner{transition:left .42s cubic-bezier(.22,1,.36,1),transform .42s cubic-bezier(.22,1,.36,1)}
  .map-stage.left-column-hidden .map-overlay-corner{transform:translateX(calc(-100% - 20px));pointer-events:none}
  .map-stage.left-column-hidden .map-overlay-corner *{pointer-events:none}
  /* A tab glued to the top-right corner of the column: same paper, rounded outer edge. */
  .monitoring-column-tab{position:absolute;z-index:8;top:var(--monitoring-column-top,160px);left:349px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:26px;height:68px;padding:0;border:1px solid rgba(0,63,87,.1);border-left:0;border-radius:0 14px 14px 0;background:rgba(246,243,236,.98);color:var(--navy);box-shadow:8px 6px 18px rgba(0,30,43,.14);cursor:pointer;transition:left .42s cubic-bezier(.22,1,.36,1),background .18s,color .18s}
  .monitoring-column-tab::before,.monitoring-column-tab::after{content:"";width:2px;height:8px;border-radius:1px;background:currentColor;opacity:.22}
  .monitoring-column-tab:hover{background:#fff;color:#007d78}
  .monitoring-column-tab svg{order:0;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s}
  .monitoring-column-tab::after{order:1}
  .monitoring-column-tab:hover svg{transform:translateX(-2px)}
  .map-stage.left-column-hidden .monitoring-column-tab{left:0;border-left:1px solid rgba(0,63,87,.1);border-radius:0 14px 14px 0}
  .map-stage.left-column-hidden .monitoring-column-tab svg{transform:rotate(180deg)}
  .map-stage.left-column-hidden .monitoring-column-tab:hover svg{transform:rotate(180deg) translateX(-2px)}
  .map-stage:not(.has-left-info) .monitoring-column-tab,body.filters-open .monitoring-column-tab{display:none}
  .map-stage.has-left-info .monitoring-steps{top:var(--monitoring-column-top,160px);max-height:calc(100% - var(--monitoring-column-top,160px) - 9px)}
}
@media (max-width:820px){
  .monitoring-steps{top:auto;right:10px;bottom:22px;width:min(420px,calc(100% - 20px));max-height:55%;padding-top:14px}
  .monitoring-steps__head{padding:0 14px 10px}
  .monitoring-steps__head p{display:none}
  .monitoring-steps__expand{display:none}
  .monitoring-column-tab{display:none}
  .monitoring-steps.is-expanded{width:min(420px,calc(100% - 20px))}
}
