:root { --ink: #1c2733; --muted: #5d6b7a; --line: #d5dde5; --bg: #f3f6f9; --card: #fff; --brand: #1f4e79; --warn: #9a5b00; --bad: #a32222; --good: #1d6b3c; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: var(--brand); color: #fff; }
.bar h1 { font-size: 18px; margin: 0; } .bar nav { display: flex; gap: 8px; } .bar .ghost { color: #fff; border-color: #ffffff80; background: none; }
main { padding: 16px 20px; max-width: 1500px; margin: auto; } .two { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 4px 0 8px; } h2:not(:first-child) { margin-top: 18px; } h3 { font-size: 14px; margin: 14px 0 6px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 10px 0 0; padding: 8px 0 0; min-width: 0; } legend { font-weight: 600; padding: 0 8px 0 0; }
.tenant { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; } .tenant .head { display: flex; gap: 8px; } .name { font-weight: 600; flex: 1; min-width: 0; }
label.row { display: grid; grid-template-columns: 1fr 130px; gap: 10px; align-items: center; margin: 6px 0; } label.check { display: flex; gap: 8px; align-items: center; margin: 5px 0; }
small { display: block; color: var(--muted); } .muted { color: var(--muted); margin: 6px 0; } .seg { display: flex; flex-wrap: wrap; gap: 14px; } .seg label { display: flex; gap: 5px; align-items: center; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font: inherit; width: 100%; padding: 5px 8px; border: 1px solid #b7c2cd; border-radius: 5px; background: #fff; color: inherit; }
input:invalid { border-color: var(--bad); } textarea { font-family: Consolas, monospace; font-size: 13px; min-height: 34px; resize: vertical; field-sizing: content; }
:focus-visible { outline: 2px solid #3d8bd4; outline-offset: 1px; }
button, a.ghost { font: inherit; cursor: pointer; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 5px; padding: 6px 12px; text-decoration: none; }
button.ghost, a.ghost { background: #fff; color: var(--brand); } button.small { padding: 3px 8px; font-size: 13px; } button.danger { border-color: var(--bad); color: var(--bad); } button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } details > summary { cursor: pointer; font-weight: 600; margin: 10px 0 4px; } details.panel > summary { margin: 0; }
.cards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 10px; position: sticky; top: 0; z-index: 3; background: var(--brand); border-radius: 10px; box-shadow: 0 4px 14px #1c273347; } .card { flex: 1 1 auto; background: #ffffff1a; border: 1px solid #ffffff38; border-radius: 8px; padding: 8px 12px; color: #fff; } .card span { color: #cfe0f1; font-size: 13px; display: block; white-space: nowrap; } .card strong { font-size: 26px; } .card.lead { flex: 0 1 auto; max-width: 170px; background: none; border: none; display: flex; flex-direction: column; justify-content: center; } .card.lead strong { font-size: 22px; letter-spacing: 1px; order: -1; } .card.lead span { white-space: normal; }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; } th, td { border: 1px solid var(--line); padding: 6px 9px; text-align: center; vertical-align: middle; }
thead th, tfoot td { background: var(--brand); color: #fff; font-weight: 600; } tbody th { text-align: left; } tbody tr:nth-child(odd) { background: #eaf2fb; } tbody tr:nth-child(even) { background: #fdf0e3; } table.apps tr > :last-child, tfoot td:first-child { text-align: left; }
table.plain tbody tr { background: none; } table.plain td { text-align: left; } table.plain td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { padding: 2px 8px; border-radius: 10px; font-size: 13px; white-space: nowrap; border: 1px solid; background: #fff; } .tag.good { color: var(--good); } .tag.risk { color: var(--warn); } .tag.bad { color: var(--bad); }
.note ul { margin: 0; padding-left: 20px; } .note.warn { border-left: 4px solid #d98a1a; } .note.info { border-left: 4px solid #3d8bd4; } .note.assume { border-left: 4px solid #9aa7b4; } .error { border-left: 4px solid var(--bad); color: var(--bad); white-space: pre-wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; } .tabs button { background: #fff; color: var(--brand); } .tabs button[aria-selected=true] { background: var(--brand); color: #fff; }
.grid td, .grid th { text-align: left; vertical-align: top; padding: 4px 6px; } .grid tbody tr { background: none !important; } .w-s { min-width: 90px; width: 110px; } .w-m { min-width: 190px; } .moves { display: flex; gap: 5px; } .w-l { min-width: 320px; } .w-sel { min-width: 170px; } .preview { font-size: 13px; line-height: 1.5; } .preview small { color: var(--muted); } .preview small.block { display: block; margin-top: 2px; } .rulef code { white-space: pre-wrap; font-size: 12px; } .login { max-width: 360px; margin: 60px auto; } .status { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .status .grow { flex: 1; min-width: 200px; } .ok { color: var(--good); } .off { color: var(--bad); font-weight: 600; } .num { text-align: right; } .help { font-size: 13px; color: var(--muted); } .help code { background: #eef2f6; padding: 1px 4px; border-radius: 3px; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } main { padding: 12px; } }
@media print { .bar nav, form#form, .noprint { display: none !important; } .two { display: block; } body { background: #fff; font-size: 12px; } .panel { break-inside: avoid; } * { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
label.check.top { align-items: flex-start; } label.check.top input { margin-top: 5px; } .drawing svg { max-width: 100%; height: auto; min-width: 760px; } table.list { font-size: 13px; } table.list td, table.list th { text-align: left; } table.list tbody tr { background: none !important; } details.panel > summary { cursor: pointer; }
@media print { details.panel:not([open]) { display: none; } .cards { position: static; box-shadow: none; } .drawing svg { min-width: 0; } table.list { font-size: 9px; } }
label.row.wide { grid-template-columns: 180px 1fr; }
table.apps tbody tr > :last-child { min-width: 260px; } table.list td, table.list th { min-width: 84px; } table.list td:last-child { min-width: 170px; }
pre.file { background: #f6f8fa; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; max-height: 460px; overflow: auto; font: 12.5px/1.45 Consolas, monospace; }
/* Admin: a name without text in the selected language */
.todo { border-color: #d98a1a !important; background: #fff7ec; } .filters { align-items: center; margin: 0 0 10px; } .filters select { width: auto; } .filters input { flex: 1; width: auto; min-width: 200px; } .texts code { font-size: 12px; word-break: break-all; } .texts textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13.5px; }
/* Sizing page: HA choices, name above a full-width list */
label.stack { display: block; margin: 8px 0; } label.stack select { margin-top: 4px; }
