/* Generated by engine/products/state_pages.py from site/waterledger/mi/viewer.css; edit that file and rerun. */
/* Water Ledger: the tracker viewer (map, side panel, table). */
:root { --plant: #6B4E9B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --plant: #B9A3E0; } }
:root[data-theme="dark"] { --plant: #B9A3E0; }
.chip.nodate { color: var(--plant); }
.chip.unknown { color: var(--ink); }
.chip.built { color: var(--ok); background: var(--ok-soft); }
.chip.existing { color: var(--ink); }
.chip.action { color: var(--plant); }
.vsteps { list-style: none; margin: 4px 0 0; padding: 0; font-size: .84rem; }   /* no scroll of its own: the panel scrolls, and a scrolling list in its grid shrank to nothing */
.vsteps li { padding: 5px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.vsteps .vdate { font-weight: 600; white-space: nowrap; margin-right: 4px; }
.vmenu .vnar { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.vmenu .vnar p { margin: 0 10px 2px; font-size: .78rem; color: var(--muted); }
.tlegend i.sq, .vmenu i.sq { border-radius: 1px; }
.tlegend i.dia, .vmenu i.dia { width: 8px; height: 8px; border-radius: 1px; background: var(--surface); border: 2px solid var(--ink); transform: rotate(45deg); box-sizing: border-box; }
.tlegend i.tri, .vmenu i.tri { width: 0; height: 0; border-radius: 0; background: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--plant); }
.viewer { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
#vmap { width: 100%; height: min(68vh, 620px); min-height: 380px; }
.vpanel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: 350px; max-width: calc(100% - 20px); overflow: auto; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 10px; align-content: start; font-size: .92rem; }
.vpanel[hidden] { display: none; }
.vpanel .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; padding-right: 26px; }
.vpanel .where { font-weight: 700; }
.vpanel .who { font-size: .88rem; color: var(--muted); }
.vpanel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: .86rem; }
.vpanel dt { color: var(--muted); }
.vpanel dd { margin: 0; overflow-wrap: anywhere; }
.vpanel .sub { font-weight: 700; font-size: .86rem; margin: 4px 0 0; }
.vpanel .row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .84rem; overflow-wrap: anywhere; }
.vpanel .btn { display: inline-flex; background: transparent; font-weight: 600; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--water); color: var(--water); text-decoration: none; }
.vpanel .btn:hover { background: var(--water-soft); }
.vclose { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.vclose:hover { background: var(--paper); color: var(--ink); }
.vtools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 14px 0 10px; font-size: .9rem; }
.vtools label { display: inline-flex; gap: 6px; align-items: center; }
.vtools input[type=search], .vtools select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.vtools input[type=search] { flex: 1 1 200px; min-width: 0; max-width: 340px; }
.vmulti { position: relative; }
.vmulti summary { list-style: none; cursor: pointer; padding: 6px 28px 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); position: relative; }
.vmulti summary::-webkit-details-marker { display: none; }
.vmulti summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.vmulti[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.vmenu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 260px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.vmenu label { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.vmenu label:hover { background: var(--paper); }
.vmenu .vall { font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; padding-bottom: 8px; }
.vmenu i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.vshown { color: var(--muted); font-size: .84rem; margin-left: auto; }
.vdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.vabout { max-width: 720px; margin: 22px 0 6px; }
.vabout h2 { font-size: 1.05rem; margin: 0 0 6px; }
.vabout p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.vnote { color: var(--muted); font-size: .84rem; margin-top: 8px; }
@media (max-width: 760px) {
  #vmap { height: 56vh; min-height: 300px; }
  .vpanel { position: relative; top: auto; right: auto; bottom: auto; width: auto; max-width: none; border-width: 1px 0 0; border-radius: 0; }
  .vshown { margin-left: 0; width: 100%; }
  .vtools { position: relative; }
  .vmulti { position: static; }
  .vmenu { left: 0; right: 0; min-width: 0; }
  .vmenu label { white-space: normal; }
}
