/* Calix EM portal. Light, calm, readable. */
:root {
  --bg: #f5f7f8; --surface: #fff; --text: #101828; --muted: #667085; --line: #e4e7ec;
  --soft: #f2f4f7; --accent: #0f766e; --accent-ink: #0b5c56; --accent-soft: #e6f4f1;
  --danger: #c0392b; --warn: #b45309; --warn-soft: #fef3e2; --ok: #1a7f37;
  --landlord: #7c3aed; --building: #2563eb; --tenant: #059669; --meter: #475569;
  /* chart series, in a fixed order validated for colour-blind separation */
  --c0: #0d9488; --c1: #eb6834; --c2: #2a78d6; --c3: #eda100;
  --c4: #e87ba4; --c5: #008300; --c6: #4a3aa7; --c7: #e34948;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* top bar */
.demo-bar { background: var(--warn); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 5px 12px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.nav a.on { color: var(--accent-ink); background: var(--accent-soft); }
.user { position: relative; }
.user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.user summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-menu { position: absolute; right: 0; top: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.12); min-width: 220px; padding: 6px; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--soft); text-decoration: none; }
.user-menu .who { padding: 8px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.premade { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 440px)); align-items: start; }

/* cards, layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }  /* side by side in a grid: the gap spaces them */
.grid { display: grid; gap: 16px; }
.cols-usage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.sticky { position: sticky; top: 80px; }
.cols-usage > * { min-width: 0; }
@media (max-width: 900px) { .cols-usage { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat.total { background: linear-gradient(135deg, var(--accent), #14857c); color: #fff; border: 0; }
.stat.total .label, .stat.total .value small { color: rgba(255,255,255,.8); }

/* forms */
label.field, .field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=month], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; padding: 9px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }
.help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--danger); font-size: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label, .check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; margin: 0; cursor: pointer; }
.checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.radios ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radios label { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }

/* segmented control */
.seg { display: flex; background: var(--soft); border-radius: 9px; padding: 3px; gap: 2px; }
.seg label { flex: 1; text-align: center; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 8px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 14px; border-radius: 8px; padding: 9px 15px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--text); border-color: #d0d5dd; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary:hover { background: var(--soft); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f3c3bd; }
.btn.danger:hover { background: #fdf0ee; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.link.danger { color: var(--danger); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
tr.total td { font-weight: 700; border-top: 2px solid var(--accent); background: var(--accent-soft); }
th.num, td.num { text-align: right; }

/* tags */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--text); border: 1px solid var(--line); white-space: nowrap; margin: 1px 2px 1px 0; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--meter); }
.chip.landlord::before { background: var(--landlord); } .chip.building::before { background: var(--building); }
.chip.tenant::before { background: var(--tenant); } .chip.meter::before { background: var(--meter); }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.landlord { background: var(--landlord); } .dot.building { background: var(--building); } .dot.tenant { background: var(--tenant); } .dot.meter { background: var(--meter); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.badge.ok { background: #e7f5ec; color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.admin { background: var(--accent-soft); color: var(--accent-ink); } .badge.off { background: #fdecea; color: var(--danger); }

/* tag picker */
.picker { position: relative; margin-top: 8px; }
.picker-btn { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 14px; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 11px; cursor: pointer; color: var(--text); }
.picker-btn:hover { border-color: #98a2b3; }
.picker-btn .lbl { font-weight: 600; }
.picker-btn .summary { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn .caret { color: var(--muted); }
.picker-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,24,40,.14); z-index: 30; padding: 8px; }
.picker-list { max-height: 240px; overflow-y: auto; margin: 6px 0; }
.picker-list label { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.picker-list label:hover { background: var(--soft); }
.picker-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.picker-chips { margin-top: 6px; }

/* format choices with example popovers */
.formats { display: flex; gap: 8px; flex-wrap: wrap; }
.fmt { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 10px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; }
.fmt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.info { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; cursor: help; font-style: normal; }
.tip { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 270px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,24,40,.18); padding: 12px; z-index: 40; font-weight: 400; text-align: left; cursor: default; }
.info:hover .tip, .info:focus .tip, .info:focus-within .tip { display: block; }
.tip b { display: block; font-size: 13px; margin-bottom: 6px; }
.tip p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.mini-pdf { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 11px; background: #fcfcfd; }
.mini-pdf .t { font-weight: 700; font-size: 12px; }
.mini-pdf .r { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 2px 0; }
.mini-pdf .r:last-child { border: 0; font-weight: 700; color: var(--accent); }
.mini-xls { border-collapse: collapse; width: 100%; font-size: 11px; }
.mini-xls td, .mini-xls th { border: 1px solid #d0d5dd; padding: 2px 5px; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--text); }
.mini-xls th { background: var(--accent); color: #fff; }
.mini-csv { font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #fcfcfd; border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; margin: 0; white-space: pre; overflow: hidden; }

/* usage results */
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.group-card { padding: 0; overflow: hidden; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fcfcfd; cursor: pointer; }
.group-head h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.group-head .big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.group-head .big small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.group-card table td:first-child, .group-card table th:first-child { padding-left: 20px; }
.group-card table td:last-child, .group-card table th:last-child { padding-right: 20px; }
details.group-card > summary { list-style: none; }
details.group-card > summary::-webkit-details-marker { display: none; }
.chev { transition: transform .15s; color: var(--muted); }
details[open] .chev { transform: rotate(90deg); }
.chart-box { position: relative; height: 280px; }

/* predicted usage */
.forecast-card { margin-bottom: 16px; }
.forecast-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.forecast-head h2 { margin-bottom: 2px; }
.forecast-figures { display: flex; gap: 28px; }
.forecast-figures .label { font-size: 13px; color: var(--muted); }
.forecast-figures .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.forecast-figures .value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.forecast-box { height: 300px; }
.forecast-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--text); }
.forecast-legend li { display: flex; align-items: center; gap: 8px; }
.forecast-legend .nums { color: var(--muted); }
.forecast-legend .nums strong { color: var(--text); font-weight: 600; }
.forecast-legend .key { width: 24px; height: 8px; flex: none; }
.forecast-legend line { stroke-width: 2.5; stroke-linecap: round; }
.forecast-legend line.dash { stroke-dasharray: 5 4; }
.s0 { stroke: var(--c0); } .s1 { stroke: var(--c1); } .s2 { stroke: var(--c2); } .s3 { stroke: var(--c3); }
.s4 { stroke: var(--c4); } .s5 { stroke: var(--c5); } .s6 { stroke: var(--c6); } .s7 { stroke: var(--c7); }
.forecast-how { margin: 10px 0 0; }
.cost-card { margin-bottom: 16px; }
.cost-card .cost-box { margin-top: 10px; }
.cost-note { margin: 8px 0 0; }
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.table-view .table-wrap { max-height: 320px; overflow: auto; margin-top: 8px; }
.table-view thead th { position: sticky; top: 0; background: var(--surface); }
.side-cards { display: flex; flex-direction: column; gap: 16px; align-self: start; }
/* building connectors (admins' Home page) */
.conn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.conn-head h2 { margin: 0; }
.conn-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.conn-table { max-height: calc(100vh - 230px); overflow: auto; }  /* long lists scroll under a fixed header */
.conn-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.conn-table td { vertical-align: top; }
.table-view tr.predicted td { color: var(--muted); font-style: italic; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.drop { position: relative; }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop-panel { position: absolute; right: 0; top: calc(100% + 6px); width: 340px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(16,24,40,.16); padding: 16px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--text); }
.note { background: var(--warn-soft); color: #7a4a0b; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-top: 14px; }
.note ul { margin: 4px 0 0; padding-left: 18px; }

/* messages */
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.messages li { padding: 11px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.messages .success { background: #ecfdf3; border-color: #abefc6; color: #085d3a; }
.messages .error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.messages .warning { background: var(--warn-soft); border-color: #fedf89; color: #7a4a0b; }
.messages .info { background: #eff8ff; border-color: #b2ddff; color: #194185; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--accent-ink); border-color: var(--accent); }
.form-card { max-width: 720px; }
.form-card .field:first-child > label { margin-top: 0; }
/* fields side by side line up: same label spacing, tops aligned */
.form-card .row { align-items: flex-start; }
.form-card .row > .field > label { margin-top: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 26px 0 4px; }
.section-title:first-of-type { margin-top: 0; }
@media (max-width: 640px) {
  .topbar-in { gap: 12px; padding: 0 12px; }
  .topbar .brand span { display: none; }
  .nav a { padding: 8px 9px; }
  main { padding: 16px 12px 40px; }
  .tip { left: 0; transform: none; width: 240px; }
}

/* sign-in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #d7efe9 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e0ecff 0, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; box-shadow: 0 20px 50px rgba(16,24,40,.10); }
.auth-card .brand { justify-content: center; font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.auth-card .btn { width: 100%; margin-top: 18px; padding: 11px; }
.timeline td { font-size: 14px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 14px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
@media print { .topbar, .no-print, .cols-usage > aside { display: none !important; } .cols-usage { display: block; } body { background: #fff; } .card { box-shadow: none; } }

/* meters: selection bar, name boxes, single-meter actions, directory */
.selbar { position: sticky; bottom: 12px; z-index: 15; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16,24,40,.16); padding: 12px 16px; }
.selbar .help { margin-top: 6px; }
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16,24,40,.14); z-index: 30; max-height: 260px; overflow: auto; }
.selbar .combo-list { top: auto; bottom: calc(100% + 4px); }  /* the bar sits at the bottom: open upward */
.combo-list li { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.combo-list li.on, .combo-list li:hover { background: var(--accent-soft); }
.combo-list li.new { color: var(--accent-ink); font-weight: 600; }
.combo-list li.none { color: var(--muted); cursor: default; background: none; }
.combo-note { font-size: 12.5px; color: var(--accent-ink); margin-top: 4px; }
.combo-note:empty { display: none; }
.selbar .combo { flex: 1 1 240px; }
.selbar .combo-note { position: absolute; top: calc(100% + 6px); left: 2px; right: 0; }
.selbar:has(.combo-note:not(:empty)) .help { visibility: hidden; }  /* the note takes its place */
.add-row > input, .tag-edit .row > input { flex: 1 1 180px; }
.act-row, .tag-edit { scroll-margin-top: 170px; }  /* keep the row you clicked in view */
@media (max-width: 600px) {
  .assign-table tr { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line); }
  .assign-table tr > * { border-bottom: 0; }
  .assign-table th[scope=row] { width: auto; }
  .assign-table td.acts, .act-row > td { grid-column: 1 / -1; }
  .assign-table td.acts { padding-top: 0; }
  .assign-table td.acts > div { justify-content: flex-start; padding-left: 10px; }
  .act-row .row > .field { flex-basis: 100%; }
  .selbar .combo-note { position: static; }
  .selbar:has(.combo-note:not(:empty)) .help { display: none; }
}
.assign-table th[scope=row] { width: 140px; padding-left: 20px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.assign-table td.acts > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; padding-right: 10px; }
.assign-table tr:last-child > * { border-bottom: 0; }
.act-row:not(:target) { display: none; }
.act-row > td { background: #fcfcfd; padding: 2px 20px 18px; }
.act-buttons { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.dir details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; padding: 9px 0; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary .dot { margin-right: 0; }
.dir details[open] > summary > .chev { transform: rotate(90deg); }
.dir-landlord + .dir-landlord { border-top: 1px solid var(--line); }
.dir-buildings { margin: 0 0 10px 5px; padding-left: 20px; border-left: 2px solid var(--line); }
.dir-tenants { margin: 0 0 6px 5px; padding-left: 20px; border-left: 2px solid var(--line); }
.dir-tenant { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 6px 0; }
.dir-tenant .who { min-width: 220px; }
.dir-tenant .meters { flex: 1; min-width: 200px; }
.dir .count { color: var(--muted); font-size: 13px; }
.dir .edit-link { font-size: 13px; margin-left: 6px; }
.dir .note { font-size: 12.5px; color: var(--muted); font-style: italic; margin: -4px 0 6px 26px; }
.dir-tenant .note { margin: 2px 0 0 15px; }
.unused-kind { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 2px; }
a.chip { color: var(--text); }
a.chip:hover { text-decoration: none; border-color: var(--accent); }
.tag-edit:not(:target) { display: none; }
.tag-edit { background: #fcfcfd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 2px 0 10px; }

/* labels (stickers) and panels */
.label-no { display: inline-block; font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--soft); color: var(--text); white-space: nowrap; vertical-align: 1px; }
.label-no.big { font-size: 15px; padding: 1px 8px; vertical-align: 3px; }
.chip .label-no { font-size: 11px; padding: 0 4px; margin-left: 2px; }
.dot.pnl { background: var(--building); border-radius: 2px; }  /* a panel: square, in its building's colour */
.dot.sticker { background: var(--muted); border-radius: 2px; }
.chip.panel-chip::before { background: var(--building); border-radius: 2px; }
.chip.suite-chip::before { background: var(--tenant); border-radius: 2px; }
.chip.suite-chip.vacant { border-style: dashed; background: none; }
.chip.suite-chip.vacant::before { background: none; border: 1.5px solid var(--tenant); width: 5px; height: 5px; }
.dir-panels { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -2px 0 6px 26px; }
.label-stats { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.label-stats .value small { font-size: 13px; }
.order-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.label-preview { margin: 14px 0 0; text-align: center; }
.label-preview img { display: block; width: 2in; max-width: 100%; height: auto; margin: 0 auto 6px; background: #fff; border: 1px solid #c8ccd2; border-radius: 6px; box-shadow: var(--shadow); }
.label-preview figcaption { max-width: 2.6in; }
td.files, .nowrap { white-space: nowrap; }
.seg-links { display: flex; gap: 4px; flex-wrap: wrap; }
.seg-links a { padding: 4px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-links a.on { background: var(--accent-soft); color: var(--accent-ink); }
.pager { display: flex; gap: 14px; justify-content: center; margin-top: 12px; }
.pick-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; max-height: 420px; overflow: auto; }
.pick-list > label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 400; }
.pick-list > label:last-child { border-bottom: 0; }
.pick-list > label:has(input:checked) { background: var(--accent-soft); }
.pick-list > label > input { margin-top: 3px; flex: none; }
.pick-list.big > label { padding: 12px 14px; }
.assign-card { max-width: 640px; }
@media (max-width: 600px) {
  .order-grid { grid-template-columns: 1fr; }
  .btn.block-phone { width: 100%; }
}
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
h1 .dot { width: 12px; height: 12px; vertical-align: 2px; }
.pick-list .pick-group { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: var(--soft); border-bottom: 1px solid var(--line); }
.card .flush { margin: 4px -20px -18px; }  /* a table running to the card's edges */
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.user-grid { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); }
@media (max-width: 900px) { .user-grid { grid-template-columns: minmax(0, 1fr); } }  /* phones: boxes stack */
.add-panel:not(:target) { display: none; }  /* opened by its "+ Add" button */
.add-panel { scroll-margin-top: 90px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.steps { margin: 0; padding-left: 20px; } .steps li { margin: 4px 0; }
.js .js-hide { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* list pages' building filter + search: stack on phones so the search box keeps its width */
@media (max-width: 600px) { .list-bar > select, .list-bar > input[type=search] { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; } }
/* Connector configuration: one block per network port */
.net-iface { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.net-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.net-head .badge { margin-left: auto; }
/* Energy Cost: common area electric per building, and share rows in the table */
.common-summary { margin-top: 16px; }
.common-summary h3 { font-size: 14px; margin: 0 0 6px; }
/* Building page: Common Area Electric */
h3.sub { font-size: 14px; margin: 16px 0 6px; }
/* Removed meters and connectors; a new computer's settings file */
.retired-note { border-left: 4px solid var(--muted); margin-bottom: 16px; }
.settings-file { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; white-space: pre; overflow-x: auto; }
.steps { padding-left: 20px; margin: 12px 0 0; }
.steps li { margin: 6px 0; }
