/* Installations, the new-installation steps, customers and sites, alerts and activity. */

.op { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.op .grow { flex: 1; min-width: 0; }
.op h2 + .lede { margin-top: 4px; }
.op .center { text-align: center; }
.op .glyph { display: inline-flex; color: var(--ink-2); flex: none; }
.op .ic.bad { color: var(--bad); }

.op .card.flush > .cardbody { padding: 0; }
.op .card.flush > .cardbody .tablewrap { border: 0; border-radius: 0 0 8px 8px; margin: 0; }
.op .card.flush > .cardbody > :is(p, form), .op .card.flush > .cardbody > div > p.empty,
.op .card.flush > .cardbody > .form { margin: 16px 20px; }

.op .filterbar .check { margin-left: 8px; }
.op .filterbar > select.filter { max-width: 260px; min-width: 0; text-overflow: ellipsis; }
.op .stack > .search { flex: none; max-width: none; }
.days { display: flex; flex-direction: column; gap: 24px; }
.op .filterbar .info { margin-left: -2px; }
.datefield { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.datefield input[type="date"] { border: 0 !important; min-height: 38px !important; padding: 0 2px !important; width: auto !important; outline-offset: 2px; }

.op .table td .sub .badge { margin: 4px 4px 0 0; }
.op .table td.heard { white-space: nowrap; color: var(--ink-2); }
.op .table td.mono, .op .mono { font-family: var(--f-mono); font-size: 13px; }
.op .table td.mono { white-space: nowrap; }
@media (min-width: 901px) {
  .op .table.instrows :is(th, td) { padding-left: 12px; padding-right: 12px; }
  .op .table.instrows :is(th, td):first-child { padding-left: 16px; }
  .op .table.instrows td { white-space: nowrap; }
  .op .table.instrows td.inst { white-space: normal; }
}
.op .table td.inst .main { display: block; }
.op .tfoot.bare { border: 0; padding: 0; }

svg.socbar { width: 56px; height: 6px; flex: none; display: block; border-radius: 2px; }
svg.socbar .track { fill: var(--track); }
svg.socbar .fill { fill: var(--accent); }
.meter .num { font: 500 13px/18px var(--f-data); }

.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.what { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.what .ic { color: var(--link); }
.what.bad .ic { color: var(--bad); }
.what.warn .ic { color: var(--warn-fg); }
.what.ok .ic { color: var(--ok-fg); }

details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menupop .menunote { padding: 6px 12px 8px; max-width: 280px; }

.readings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.readings.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reading {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; min-width: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.reading .tlabel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: var(--label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ink-2); }
.reading .tvalue { font: 600 22px/28px var(--f-data); color: var(--ink); white-space: nowrap; }
.reading .tvalue small { font: 400 13px/18px var(--f-body); color: var(--muted); }
.reading .tnote { font: 400 12px/16px var(--f-body); color: var(--ink-2); }
.reading .live { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--link); }

.packlist { list-style: none; margin: 0; padding: 0; }
.packlist > li {
  display: grid; grid-template-columns: auto minmax(170px, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center; gap: 12px 16px; padding: 14px 20px; border-top: 1px solid var(--line);
}
.packlist > li:first-child { border-top: 0; }
.packlist .packid { display: flex; flex-direction: column; min-width: 0; }
.packlist .packid .sub, .packlist .packsoc .sub { font: 400 13px/18px var(--f-body); color: var(--ink-2); }
.packlist .packstate { display: flex; flex-wrap: wrap; gap: 4px; }
.packlist .packsoc { display: flex; flex-direction: column; gap: 4px; }
.op .packacts .detach select { width: auto; min-height: 32px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed > li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed > li:first-child { padding-top: 0; }
.feed > li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed > li > .dot { margin-top: 7px; background: var(--line-2); }
.feed .sub { font: 400 12px/16px var(--f-body); color: var(--ink-2); margin-top: 2px; }

.loccard svg.map { max-width: none; margin: 0 0 12px; }
.locline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }

.kvcard .kv { grid-template-columns: minmax(0, 1fr); }
.kvcard .kv > div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; }
.kvcard .kv dd { text-align: right; }
.kvcard .kv > div:last-child { border-bottom: 0; }

.instedit .fields.power, .wizform .fields.power { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.instedit .field.check, .wizform .field.check { padding-top: 0; min-height: 40px; }
.instedit .notice { margin-top: 16px; }
.instedit .rows + .actions { margin-top: 16px; }

dialog.dlg .dlghead h2 { font: 600 18px/26px var(--f-head); }
dialog.dlg .notice ul { margin: 8px 0 0; padding-left: 18px; }
dialog.dlg .notice li + li { margin-top: 4px; }
dialog.dlg .notice .eyebrow { color: var(--warn-fg); }
dialog.dlg .notice.kept .eyebrow { color: var(--info-fg); }
.notice.kept > div > * + * { margin-top: 8px; }
.notice.kept .rpacks { max-height: 12rem; overflow: auto; }
.dpacks { display: flex; flex-direction: column; }
.dpacks .eyebrow { margin-bottom: 4px; }
.dpacks .field { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; }
.dpacks .field select { width: auto; min-width: 160px; font-family: var(--f-body); }

.picks { display: flex; flex-direction: column; gap: 10px; }
.pick {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 0;
  padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  text-align: left; font: inherit; white-space: normal; cursor: pointer;
}
.pick:hover { background: var(--hover); border-color: var(--field); }
.pick.on, .pick:has(input:checked) { border: 1.5px solid var(--accent); background: var(--tint); }
.pick.here { cursor: default; }
.pick.here:hover { background: var(--bg); border-color: var(--line); }
.pick > input[type="radio"] { flex: none; }
.pick .radio { width: 18px; height: 18px; border-radius: 9999px; border: 1.5px solid var(--field); flex: none; background: var(--bg); }
.pick.on .radio { border: 5px solid var(--link); }
.pickbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pickbody b { font: 600 14px/20px var(--f-body); }
.pickbody .sub { font: 400 13px/18px var(--f-body); color: var(--ink-2); }
.pickside { font: 400 12px/18px var(--f-body); color: var(--ink-2); white-space: nowrap; }

.op .steps { flex-wrap: nowrap; gap: 10px; margin: 0; }
.op .steps > li { gap: 10px; font: 500 14px/20px var(--f-body); color: var(--ink-2); }
.op .steps > li::before { content: none; display: none; }
.op .steps > li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.wizfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.op .chosen.card { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: nowrap; }
.op .chosen.card > .ic { color: var(--ink-2); }
.op .chosen.card b { display: block; font: 600 14px/20px var(--f-body); }
.op .chosen.card .sub { font: 400 13px/18px var(--f-body); color: var(--ink-2); }
.op .chosen + .chosen { border-top: 1px solid var(--line); }
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; color: var(--link); font-weight: 600; }
details.more > .field { margin-top: 12px; }
.wizcreate .formacts, .attachrow .formacts { margin-top: 16px; }
.attachrow > .fields { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.attached { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.attached > li {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg);
}
.attached > li > .ic { color: var(--ok-fg); }
.attached .sub { display: block; font: 400 13px/18px var(--f-body); color: var(--ink-2); }

.siteblock { overflow: hidden; }
.sitehead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sitehead b { display: block; }
.sitehead .sub { display: block; font: 400 13px/18px var(--f-body); color: var(--ink-2); }
.instlines { list-style: none; margin: 0; padding: 0; }
.instlines > li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.siteblock a { color: var(--ink); text-decoration: none; }
.siteblock a:hover { color: var(--link); text-decoration: underline; }
.instlines a { font-weight: 600; }
.people { list-style: none; margin: 0; padding: 0; }
.people > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people > li:first-child { padding-top: 0; }
.people > li:last-child { border-bottom: 0; padding-bottom: 0; }
.people .avatar { width: 32px; height: 32px; }
.people b { display: block; }
.people .sub { font: 400 13px/18px var(--f-body); color: var(--ink-2); }

.split.single { grid-template-columns: minmax(0, 1fr); }
.alertpanel { padding: 0; }
.panelpart { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.panelpart:first-child { border-top: 0; }
.panelpart h2 { font: 600 20px/28px var(--f-head); }
.panelmeta { display: flex; align-items: center; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline > li { display: flex; gap: 10px; }
.timeline > li > .ic { color: var(--ink-2); margin-top: 1px; }
.timeline .sub { font: 400 12px/16px var(--f-body); color: var(--ink-2); }
.panelpart form .actions { margin-top: 10px; }
.assignrow { display: flex; align-items: flex-end; gap: 8px; }
.assignrow .field { flex: 1; }
.clearrow { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.alarmname { display: flex; gap: 12px; align-items: flex-start; }
.alarmname button.link { color: var(--ink); text-align: left; white-space: normal; }
.daygroup { display: flex; flex-direction: column; gap: 8px; }
.daygroup > h2.eyebrow { color: var(--ink); }

@media (max-width: 1100px) {
  .readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packlist > li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .packlist .packstate { grid-column: 2 / -1; }
  .packlist .packsoc { grid-column: 2; }
}

@media (max-width: 900px) {
  .op { gap: 16px; }
  .instedit .fields.power, .wizform .fields.power { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op .steps > li { gap: 6px; }
  .wizfoot > .small { flex-basis: 100%; order: -1; }
  .sitehead { flex-wrap: wrap; }
  .instlines > li { flex-wrap: wrap; gap: 6px 12px; }
  .instlines > li > .grow { flex-basis: calc(100% - 40px); }
  .op .filterbar > .filter, .op .filterbar > select.filter { flex: 1 1 100%; max-width: 100%; }

  .tablewrap:has(> .scroll > .instrows) { border: 0; background: transparent; overflow: visible; }
  .tablewrap:has(> .scroll > .instrows) > .tfoot { border-top: 0; padding: 4px 0 0; }
  .table.cards.instrows tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--bg);
  }
  .table.cards.instrows tr:last-child { border-bottom: 1px solid var(--line); }
  .table.cards.instrows tr.alarm { border-color: var(--bad); }
  .table.cards.instrows td { width: auto; padding: 0; }
  .table.cards.instrows td.inst { grid-column: 1; grid-row: 1; }
  .table.cards.instrows td.inst .sub { display: none; }
  .table.cards.instrows td.health { grid-column: 2; grid-row: 1; justify-self: end; }
  .table.cards.instrows td.cust { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .table.cards.instrows td.cust a { color: inherit; font-weight: 400; }
  .table.cards.instrows td.soc { grid-column: 1; grid-row: 3; margin-top: 6px; }
  .table.cards.instrows td.heard { grid-column: 2; grid-row: 3; justify-self: end; margin-top: 6px; font-size: 13px; }
  .table.cards td.acts { text-align: left; padding-top: 8px; }
  .table.cards .packacts { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .readings, .readings.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reading { padding: 10px 12px; }
  .reading .tvalue { font-size: 18px; line-height: 24px; }
  .packlist > li { padding: 12px 16px; }
  .clearrow { flex-wrap: wrap; }
}
