/* PrintAdmin SPA styles — visual system per admin-ux-ui-principles.md §11 */
:root {
  --bg: #faf6ee; --card: #fffdf8; --border: #ece3d4; --text: #3d3229; --muted: #96897a;
  --accent: #c77b3f;
  --ok: #2fa89a; --warn: #c77b3f; --crit: #d9534f; --info: #4a7fb5;
  --side: #fff8ee;
  --shadow: 0 1px 3px rgba(120,90,50,.08), 0 4px 16px rgba(120,90,50,.06);
  --sb: 236px; --rail: 62px;
  --mono: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  display: flex; flex-direction: row; height: 100vh; overflow: hidden;
}
a { color: var(--accent); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
h1.page { font-size: 20px; font-weight: 650; margin: 0 0 14px; }
h2.sec { font-size: 15px; font-weight: 650; margin: 22px 0 10px; }
h2.sec:first-child { margin-top: 0; }
h3 { font-size: 16px; font-weight: 650; margin: 0 0 12px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: 12.5px; }
/* T-080: secondary "4G" traffic figure — small, subdued, non-intrusive next to the main traffic numbers. */
.mobile-sub { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- sidebar ---------- */
.sidebar {
  width: var(--sb); flex: 0 0 auto; background: var(--side); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: width .15s; overflow: hidden;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 17px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.sidebar .brand .logo { display: inline-flex; }
.sidebar .brand .logo svg { width: 26px; height: 26px; display: block; }
.sidebar .brand .txt b { color: #ffb020; font-weight: 700; }
.sidebar nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 8px 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--text); white-space: nowrap;
  border-left: 3px solid transparent; text-decoration: none;
}
.nav-item:hover { background: rgba(199,123,63,.08); text-decoration: none; }
.nav-item.active { background: rgba(47,168,154,.12); border-left-color: var(--ok); font-weight: 600; }
.nav-item .ic { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-item .ic svg { width: 20px; height: 20px; display: block; }
.side-foot { border-top: 1px solid var(--border); padding: 10px 12px; font-size: 12.5px; }
.side-foot .email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 6px 0; }
.metrics { display: flex; gap: 6px; margin-bottom: 6px; }
.metric { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px; position: relative; overflow: hidden; cursor: pointer; font-size: 11px; }
.metric .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ok); }
.metric.warn .bar { background: var(--warn); }
.metric.crit .bar { background: var(--crit); }
.metric .k { color: var(--muted); }
.metric .v { font-weight: 600; }
body.collapsed .sidebar { width: var(--rail); }
body.collapsed .sidebar .label, body.collapsed .sidebar .brand .txt, body.collapsed .side-foot .email, body.collapsed .metrics, body.collapsed .side-foot .build { display: none; }
body.collapsed .nav-item { padding: 8px 0; justify-content: center; }
body.collapsed .side-foot { padding: 8px 4px; text-align: center; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }

/* ---------- main ---------- */
.main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--card); }
.topbar .burger { background: none; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.topbar #viewTitle { flex: 1; font-weight: 650; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar #viewTitle .crumb { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; }
.lang { position: relative; }
.lang > button { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.lang .menu { display: none; position: absolute; right: 0; top: 38px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); z-index: 30; min-width: 150px; }
.lang.open .menu { display: block; }
.lang .menu button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 8px 12px; cursor: pointer; text-align: left; font-size: 13.5px; }
.lang .menu button:hover, .lang .menu button.cur { background: rgba(199,123,63,.1); }
svg.flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.content { flex: 1 1 auto; overflow: auto; padding: 18px; }
.content.flush { padding: 0; }

/* ---------- components ---------- */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kpigrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.kpi .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .k { color: var(--muted); font-size: 12.5px; }
.kpi .kpi-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kpi.ok .v { color: var(--ok); } .kpi.warn .v { color: var(--warn); } .kpi.crit .v { color: var(--crit); } .kpi.info .v { color: var(--info); }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { border-color: var(--accent); }
.probgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.prob h3 { display: flex; align-items: center; gap: 8px; }
.prob ul { list-style: none; margin: 0; padding: 0; }
.prob li { padding: 4px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 8px; justify-content: space-between; }
.prob li:last-child { border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 7px 14px; font-size: 14px; cursor: pointer; line-height: 1.3; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { border-color: var(--crit); color: var(--crit); }
.btn.danger:hover { background: var(--crit); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.xs { padding: 2px 8px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.icon { padding: 5px 8px; }
.input, select.input, textarea.input {
  height: 36px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; color: var(--text);
}
textarea.input { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
label.field > .input { color: var(--text); }
label.field.inline { flex-direction: row; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .sl { width: 38px; height: 22px; border-radius: 11px; background: #d8d0c2; position: relative; transition: background .15s; flex: 0 0 auto; }
.switch .sl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .sl { background: var(--ok); }
.switch input:checked + .sl::after { left: 19px; }
.switch.busy { opacity: .5; pointer-events: none; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #e9e2d6; color: #5d5245; }
.badge.on { background: rgba(47,168,154,.16); color: #1f7f74; }
.badge.off { background: #e9e2d6; color: #7c7062; }
.badge.warn { background: rgba(199,123,63,.16); color: #9a5a27; }
.badge.crit { background: rgba(217,83,79,.16); color: #b03a37; }
.badge.info { background: rgba(74,127,181,.16); color: #34638f; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #efe8db; border-radius: 12px; padding: 2px 10px; font-size: 12.5px; }
.chip button { background: none; border: 0; cursor: pointer; font-size: 13px; padding: 0; color: var(--muted); }
.chip button:hover { color: var(--crit); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tab { padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); }
.tab.active { color: var(--text); border-bottom-color: var(--ok); font-weight: 600; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.toolbar, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions { margin-top: 12px; }
.state { text-align: center; color: var(--muted); padding: 30px 10px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--ok); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.detail-head .ttl { font-size: 22px; font-weight: 700; }
.detail-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chg { display: inline-flex; align-items: center; gap: 6px; }
.chg .bar { width: 42px; height: 7px; background: #e9e2d6; border-radius: 4px; overflow: hidden; }
.chg .bar i { display: block; height: 100%; background: var(--ok); }
.chg.warn .bar i { background: var(--warn); } .chg.crit .bar i { background: var(--crit); }
.pb-sub { color: var(--muted); font-size: 12px; margin-left: 4px; }
.notice { background: rgba(199,123,63,.1); border: 1px solid rgba(199,123,63,.3); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }
.notice.crit { background: rgba(217,83,79,.08); border-color: rgba(217,83,79,.35); }
/* T-054d: крупный, невозможно не заметить, красный баннер критической ошибки принтера. */
.notice.crit.lg { background: rgba(217,83,79,.12); border: 2px solid var(--crit); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 6px rgba(217,83,79,.18); }
.notice.crit.lg .crit-hd { font-size: 16px; color: var(--crit); margin-bottom: 4px; }
.notice.crit.lg .crit-bd { font-size: 14px; line-height: 1.45; }
.mon-live { color: var(--crit); font-size: 11px; font-weight: 600; margin-left: 6px; animation: mon-blink 1.6s ease-in-out infinite; }
@keyframes mon-blink { 50% { opacity: .35; } }
.code-big { font-family: var(--mono); font-size: 32px; letter-spacing: 6px; text-align: center; padding: 14px; background: #fff; border: 1px dashed var(--accent); border-radius: 12px; margin: 10px 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.list-plain li:last-child { border-bottom: 0; }

/* ---------- serverTable ---------- */
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.list-head h1 { margin: 0; }
.list-head .spacer { flex: 1; }
.list-head .count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.list-head .count.filtered { color: var(--accent); font-weight: 600; }
.list-head input[type=search] { width: 260px; max-width: 100%; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
.tbl-scroll { overflow: auto; max-height: calc(100vh - 234px); border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
table.tbl th { position: sticky; top: 0; z-index: 2; background: #f6efe3; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; }
table.tbl th.sortable { cursor: pointer; }
table.tbl th.sortable:hover { color: var(--text); }
table.tbl th.sorted { color: var(--text); }
table.tbl th .dot { color: var(--accent); margin-left: 3px; }
table.tbl th.num, table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.mono { font-family: var(--mono); font-size: 12.5px; }
/* th stays position: sticky (declared above) — it is a positioned box, so the absolute .col-resizer anchors to it; `relative` here would cancel sticky and shift the filter row by its `top`. */
.col-resizer { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 3; }
th.drag-over-left { box-shadow: inset 3px 0 0 var(--accent); }
th.drag-over-right { box-shadow: inset -3px 0 0 var(--accent); }
table.tbl tr.frow th { top: 33px; padding: 4px 6px; background: #faf5ec; z-index: 1; }
table.tbl tr.frow .input { height: 30px; width: 100%; min-width: 60px; font-size: 12.5px; padding: 0 6px; }
table.tbl tr.frow .input.active { border-color: var(--accent); background: rgba(199,123,63,.06); }
table.tbl tr.frow .dr { display: flex; gap: 3px; }
table.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:hover { background: rgba(199,123,63,.05); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tr.row-off { background: rgba(217,83,79,.07); } table.tbl tr.row-off:hover { background: rgba(217,83,79,.12); }
table.tbl tr.row-empty { background: rgba(140,110,200,.10); } table.tbl tr.row-empty:hover { background: rgba(140,110,200,.16); }
table.tbl tr.row-low { background: rgba(140,110,200,.05); } table.tbl tr.row-low:hover { background: rgba(140,110,200,.1); }
table.tbl tr.ord-active { background: rgba(47,168,154,.08); }
table.tbl tr.ord-failed { background: rgba(217,83,79,.07); }
/* T-112: an order held for review — money in limbo until an operator resolves it, highlighted like a to-do (warn tint). */
table.tbl tr.ord-held { background: rgba(199,123,63,.12); } table.tbl tr.ord-held:hover { background: rgba(199,123,63,.18); }
.warn-txt { color: var(--warn); }
.hold-panel { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.hold-panel .hold-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; font-size: 14px; }
.hold-panel .hold-amt b { color: var(--warn); }
.hold-panel .hold-hint { font-size: 13px; margin-bottom: 12px; }
.modal .err { color: var(--crit); font-size: 13px; margin-top: 8px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13px; color: var(--muted); }
.pager .spacer { flex: 1; }
.pager select { height: 28px; }
.cell-inline { width: 100%; min-width: 120px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 13px; color: var(--text); }
.cell-inline:hover { border-color: var(--border); }
.cell-inline:focus { outline: none; border-color: var(--accent); background: #fff; }
.cell-inline.saved-flash { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(47,168,154,.25); transition: box-shadow .8s; }
.combo-arrow { cursor: pointer; color: var(--muted); margin-left: 4px; padding: 0 3px; }
.combo-arrow:hover { color: var(--accent); }
.combo-dd { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; min-width: 220px; }
.combo-dd button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; cursor: pointer; font-size: 13.5px; }
.combo-dd button:hover { background: rgba(199,123,63,.1); }
.combo-dd .none { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.ctx-menu { position: fixed; z-index: 70; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 4px 0; min-width: 200px; }
.ctx-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 12px; cursor: pointer; font-size: 13.5px; }
.ctx-menu button:hover { background: rgba(199,123,63,.1); }
.ctx-menu button:disabled { color: var(--muted); cursor: default; background: none; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(40,30,20,.4); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); width: 560px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
.modal.wide { width: 1120px; }
.modal h3 { padding: 16px 20px 0; margin: 0 0 8px; }
.modal-body { padding: 8px 20px; overflow: auto; flex: 1 1 auto; }
.modal-foot { padding: 12px 20px 16px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modal .note { color: var(--crit); font-size: 13px; margin-top: 8px; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #3d3229; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; max-width: 360px; animation: tin .2s ease-out; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--crit); } .toast.warn { background: var(--warn); } .toast.info { background: var(--info); }
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

/* ---------- editor / map ---------- */
.editor { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 16px; }
.map { height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #eee; }
.map-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.geo-res button { display: block; width: 100%; text-align: left; margin-top: 4px; }
/* T-026: locations map tab, legend dots (same colours as the markers), popup */
.map.map-lg { height: calc(100vh - 250px); min-height: 380px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12.5px; margin-top: 8px; }
.map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); vertical-align: -1px; }
.dot.crit { background: var(--crit); } .dot.ok { background: var(--ok); } .dot.none { background: var(--muted); }
.map-pop { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text); }
.map-pop .btn { align-self: flex-start; margin-top: 4px; }
.crit-text { color: var(--crit); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- login ---------- */
body.login { align-items: center; justify-content: center; }
.login-card { width: 400px; max-width: 95vw; }
.login-card .brand { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 18px; }
.login-card .brand { display: flex; align-items: center; justify-content: center; gap: 9px; }
.login-card .brand .logo svg { width: 28px; height: 28px; display: block; }
.login-card .err { color: var(--crit); margin-top: 10px; text-align: center; font-size: 13.5px; }
.gbtn { display: flex; justify-content: center; margin: 10px 0; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 45; transform: translateX(-100%); transition: transform .15s; width: var(--sb) !important; }
  body.drawer .sidebar { transform: none; }
  body.drawer .backdrop { display: block; }
  body.collapsed .sidebar .label, body.collapsed .sidebar .brand .txt, body.collapsed .side-foot .email, body.collapsed .metrics { display: initial; }
  body.collapsed .metrics { display: flex; }
  body.collapsed .nav-item { padding: 8px 18px; justify-content: flex-start; }
  .editor { grid-template-columns: 1fr; }
  .content { padding: 12px; }
}
@media (max-width: 860px) { .modal.wide .grid2 { grid-template-columns: 1fr; } }

/* T-060: kiosk build progress (buildModal) — a 3-step tracker, a scrolling monospace build log, and the "builds in progress" strip. */
.err-text { color: var(--crit); }
.build-progress { margin-top: 4px; }
.build-steps { display: flex; gap: 8px; margin: 4px 0 12px; flex-wrap: wrap; }
.bstep { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 120px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--muted); background: var(--card); }
.bstep .bdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); font-size: 12px; line-height: 1; flex: none; }
.bstep.is-done { color: var(--text); border-color: rgba(47,168,154,.4); }
.bstep.is-done .bdot { background: var(--ok); border-color: var(--ok); color: #fff; }
.bstep.is-current { color: var(--text); border-color: rgba(74,127,181,.45); }
.bstep.is-error { color: var(--crit); border-color: rgba(217,83,79,.45); }
.bstep.is-error .bdot { background: var(--crit); border-color: var(--crit); color: #fff; }
.build-running { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.build-log { max-height: 320px; overflow: auto; background: #1c1a17; color: #e7e2d8; border-radius: 10px; padding: 10px 12px; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.build-strip .build-strip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; font-size: 13.5px; }
/* Рекламный инвентарь по площадкам: строка площадки, экраны под ней, места клетками, раскрываемый список объявлений. */
.inv-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
table.tbl tr.inv-venue td { background: #faf5ec; padding-top: 10px; }
table.tbl tr.inv-screen.muted td { opacity: .7; }
table.tbl tr.inv-detail td { background: #fdfaf4; padding: 6px 10px 12px 34px; }
.inv-toggle { background: none; border: 0; cursor: pointer; font-size: 13px; width: 18px; padding: 0; color: var(--muted); }
.inv-toggle:hover { color: var(--text); }
.slotbar { display: inline-flex; gap: 3px; flex-wrap: wrap; max-width: 220px; }
.slotbar i { width: 13px; height: 13px; border-radius: 3px; background: #f3ede2; border: 1px solid #d9cfbf; }
.slotbar i.on { background: var(--ok); border-color: var(--ok); }
.slotbar i.warn { background: var(--warn); border-color: var(--warn); }
.slotlegend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.slotlegend .slotbar { margin-left: 8px; }
td.money-low { color: var(--crit); font-weight: 600; }
