:root {
  color-scheme: light;
  --bg: #eaf0f4;
  --panel: #fbfdfe;
  --ink: #33424c;
  --muted: #71818c;
  --line: #d6e1e9;
  --accent: #4f7c9a;
  --accent-ink: #ffffff;
  --accent-soft: #dfeaf1;
  --accent-softer: #edf3f7;
  --user: #dce8f0;
  --user-ink: #26363f;
  --assistant: #fbfdfe;
  --danger: #b0524c;
  --warn: #a97a3c;
  --danger-soft: #f5e3e1;
  --warn-soft: #f6ecdb;
  --info-soft: #e2eaf3;
  --doc-soft: #eae4f0;
  --sage-soft: #e5efe2;
  --info-ink: #1d4ed8;
  --doc-ink: #6d28d9;
  --sage-ink: #4c7a52;
  --danger-line: #ecc7c4;
  --warn-line: #ecd9b5;
  --sage-line: #cfe0cd;
  --row-hover: #f3f7fa;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #172229;
  --panel: #1f2c35;
  --ink: #e8eef3;
  --muted: #94a5b0;
  --line: #33434d;
  --accent: #8cb6ce;
  --accent-ink: #132129;
  --accent-soft: #2a3d49;
  --accent-softer: #263741;
  --user: #2a4250;
  --user-ink: #e8eef3;
  --assistant: #24333d;
  --danger: #e08b85;
  --warn: #d9b57e;
  --danger-soft: #402a29;
  --warn-soft: #3b3123;
  --info-soft: #263646;
  --doc-soft: #2f2a3a;
  --sage-soft: #273527;
  --info-ink: #9db8e8;
  --doc-ink: #b9a0e8;
  --sage-ink: #8fc09a;
  --danger-line: #5c3a37;
  --warn-line: #57492f;
  --sage-line: #3a5540;
  --row-hover: #263741;
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body { display: flex; flex-direction: column; overflow: hidden; }

/* ── topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex: none;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 9px; font-size: 18px; font-weight: 700;
}
.brand-title { font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 3px; flex: none; white-space: nowrap; }
.nav-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-btn:hover { background: var(--accent-softer); color: var(--ink); }
.nav-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.meta { display: flex; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; }
.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.pill-ok { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-softer); }
.pill-busy { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.pill-err { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
#meta-status { min-width: 8em; display: inline-block; text-align: center; }

/* ── вкладки ── */
.tab { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab.active { display: flex; }

/* ── рабочая область: контент 2/3 слева + диалог 1/3 справа ── */
.workspace { display: flex; flex: 1; min-height: 0; }
.content-pane {
  order: 1; flex: 2; min-width: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.dialog-pane {
  order: 2; flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.page { flex: 1; overflow-y: auto; padding: 24px 28px; }
.page-head h1 { margin: 0 0 6px; font-size: 22px; }
.lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; max-width: 760px; line-height: 1.5; }
.muted { color: var(--muted); font-size: 13px; }
.hint-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ── chat ── */
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.empty { text-align: center; margin: auto; max-width: 520px; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.hints { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hint {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hint:hover { border-color: var(--accent); background: var(--accent-softer); }

.msg { max-width: 76%; display: flex; flex-direction: column; }
.msg.user { align-self: flex-end; }
.msg.assistant { align-self: flex-start; }
.msg-label { font-size: 11px; color: var(--muted); margin: 0 4px 3px; }
.msg-body {
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.msg.user .msg-body { background: var(--user); color: var(--user-ink); border-bottom-right-radius: 4px; }
.msg.assistant .msg-body { background: var(--assistant); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

.dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite both;
}
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer {
  padding: 12px 20px 8px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  flex: none;
}
.composer-inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.composer-inner:focus-within { border-color: var(--accent); }
#input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  max-height: 160px;
}
#send {
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  flex: none;
}
#send:disabled { opacity: .5; cursor: default; }
#attach {
  border: none;
  background: transparent;
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  flex: none;
}
#attach:hover { background: var(--panel); color: var(--accent); }
#tab-dialog.drag-over { outline: 2px dashed var(--accent); outline-offset: -6px; }
.composer-note { font-size: 11px; color: var(--muted); padding: 4px 4px 0; min-height: 16px; }

/* ── кнопки/бейджи ── */
.btn-primary {
  border: none; background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 10px; font-size: 14px; cursor: pointer;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 9px 16px; border-radius: 10px; font-size: 13px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 3px 8px; border-radius: 6px; font-size: 11px; cursor: pointer;
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent); }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge-ok { color: var(--accent); background: var(--accent-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-st { color: var(--info-ink); background: var(--info-soft); }
.badge-doc { color: var(--doc-ink); background: var(--doc-soft); }
.badge-err { color: var(--danger); background: var(--danger-soft); }
.badge-advance { color: var(--info-ink); background: var(--info-soft); border: 1px dashed var(--info-ink); }

/* ── реестр ── */
.summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sum-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; min-width: 130px;
}
.sum-card.ok { border-color: var(--accent-soft); background: var(--accent-softer); }
.sum-card.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.sum-num { font-size: 20px; font-weight: 700; }
.sum-lbl { font-size: 12px; color: var(--muted); }

.registry-filters { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.chk { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }

.quarter { margin-bottom: 20px; }
.quarter-head {
  font-size: 15px; font-weight: 700; padding: 8px 2px 6px;
  border-bottom: 2px solid var(--accent); display: flex; justify-content: space-between;
}
.quarter-total { color: var(--muted); font-weight: 500; font-size: 13px; }

.month { margin: 10px 0; }
.month-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--accent-softer); padding: 7px 12px; border-radius: 8px 8px 0 0;
  cursor: pointer; user-select: none;
}
.month-head:hover { background: var(--accent-soft); }
.month-caret { flex: none; width: 14px; color: var(--muted); }
.month-label { flex: 1; }
.month-total { flex: none; font-weight: 500; color: var(--muted); font-size: 12px; }
.month-body { display: block; }
.month-body.collapsed { display: none; }

.reg-table { width: 100%; border-collapse: collapse; background: var(--panel); }
.reg-table th {
  text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.reg-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  font-size: 13px; vertical-align: top;
}
.reg-table tr:hover td { background: var(--row-hover); }
.td-date { white-space: nowrap; color: var(--muted); font-size: 12px; }
.td-cat { white-space: normal; max-width: 150px; font-size: 12px; color: var(--muted); }
.td-amt { white-space: nowrap; text-align: right; font-weight: 600; }
.td-badge { white-space: nowrap; }
.td-st { text-align: center; white-space: nowrap; }
.td-docs { max-width: 260px; }
.cp { font-weight: 600; }
.purp { color: var(--muted); font-size: 12px; margin-top: 2px; }
.r { text-align: right; }

.st { border: none; border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; font-weight: 600; }
.st-yes { background: var(--accent-soft); color: var(--accent); }
.st-no { background: var(--danger-soft); color: var(--danger); }

.doc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 6px 2px 10px; font-size: 12px; margin: 2px 2px 0 0;
}
.doc-chip a { color: var(--accent); text-decoration: none; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-source { display: inline-flex; align-items: center; background: var(--sage-soft); border: 1px solid var(--sage-line); color: var(--sage-ink); border-radius: 999px; padding: 2px 8px; font-size: 12px; margin: 2px 2px 0 0; white-space: nowrap; }
.chip-x {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px;
}
.chip-x:hover { color: var(--danger); }

/* ── доходы ── */
.income-type { margin: 10px 0; }
.income-type-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px;
}
.income-type-title { font-weight: 700; font-size: 14px; }
.income-type-meta { color: var(--muted); font-size: 13px; flex: 1; }
.income-type-actions { display: flex; gap: 6px; }
.income-type-items { display: none; }
.income-type-items.open { display: block; margin-top: 4px; }
.td-type { white-space: nowrap; }
.type-select {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px;
  font: inherit; font-size: 12px; color: var(--ink); background: var(--panel);
}

/* ── документы ── */
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.upload-status { font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.upload-status.ok { color: var(--accent); }
.upload-status.err { color: var(--danger); }

.doc-sec { margin: 10px 0 4px 12px; }
.doc-sec-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 6px;
}
.file-row a { color: var(--ink); text-decoration: none; font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row a:hover { color: var(--accent); }

/* ── сотрудники ── */
.sec-h { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.emp-actions { float: right; display: inline-flex; gap: 6px; }
.emp-recon { margin-top: 8px; }
.emp-recon th, .emp-recon td { font-size: 12px; }

/* ── настройки ── */
.settings-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px; max-width: 720px;
}
.settings-card-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; max-width: 460px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--ink);
  padding: 8px 12px; font: inherit; font-size: 14px;
}
.field textarea { resize: vertical; min-height: 52px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
#settings-save { margin-top: 4px; }
#settings-status { margin-left: 12px; font-size: 13px; }
#accounting-asof, #reporting-year {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
  background: var(--panel); color: var(--ink); font: inherit; font-size: 13px;
}

/* ── безопасность ── */
.user-table { margin-top: 6px; }
.user-table td, .user-table th { font-size: 13px; }
.role-owner { color: var(--accent); font-weight: 600; }
.role-accountant { color: var(--info-ink); }
.role-viewer { color: var(--muted); }

/* ── логин ── */
.login-overlay {
  position: fixed; inset: 0; background: rgba(20,24,34,.55);
  display: grid; place-items: center; z-index: 100;
}
.login-overlay[hidden] { display: none; }
.login-card {
  background: var(--panel); border-radius: 14px; padding: 28px;
  width: 360px; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-card h2 { margin: 0 0 16px; font-size: 18px; }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* ── доходы: исключение из УСН ── */
.income-excluded td { opacity: .45; }
.income-excluded .cp, .income-excluded .purp { text-decoration: line-through; }
.td-excl { white-space: nowrap; text-align: center; }
.quarter-excl { color: var(--warn); font-weight: 600; }
.input-month { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: inherit; }

/* Бухгалтерия */
table.kv { width: 100%; border-collapse: collapse; margin: 6px 0 14px; background: var(--panel); }
table.kv td, table.kv th { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
table.kv td.num, table.kv th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.kv tr.tot td { font-weight: 600; border-top: 2px solid var(--line); background: var(--row-hover); }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted ul { margin: 6px 0 0 18px; padding: 0; }

/* ── сотрудники: компактные поля ввода (Отраб. дни / Отпуск / Нетруд. / Премия) ── */
.wd-inp, .vac-inp, .sick-inp {
  width: 4ch; min-width: 56px; padding: 4px 6px; text-align: right;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: inherit; font: inherit; font-size: 13px;
}
.bonus-inp {
  width: 90px; min-width: 70px; padding: 4px 6px; text-align: right;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: inherit; font: inherit; font-size: 13px;
}
.vac-start-inp, .sick-start-inp {
  width: 11ch; min-width: 118px; padding: 4px 6px; text-align: left;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: inherit; font: inherit; font-size: 13px;
}
.vac-cell, .sick-cell {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.td-emp { min-width: 150px; }
.emp-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-weight: 600;
}
.emp-pos { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calc-table { min-width: 1250px; }
.reg-wide { min-width: 0; table-layout: fixed; }
.reg-wide td { overflow-wrap: break-word; word-break: break-word; }


/* ── календарь ── */
.calendar-summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-select { border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.cal-month { font-size: 14px; font-weight: 700; padding: 10px 2px 6px; border-bottom: 2px solid var(--accent); margin-top: 8px; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cal-row.done { opacity: .55; }
.cal-row.overdue { border-left: 3px solid var(--danger); }
.cal-date { white-space: nowrap; color: var(--muted); font-size: 12px; min-width: 44px; }
.cal-title { flex: 1; min-width: 180px; font-size: 13px; }
.cal-amt { white-space: nowrap; text-align: right; font-weight: 600; font-size: 13px; }

/* ── календарь: компактная отметка выполнения ── */
.cal-done {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  cursor: pointer; font-size: 13px; line-height: 1; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-done:hover { border-color: var(--accent); color: var(--accent); }
.cal-done.is-done { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
/* ── документы сотрудника ── */
.emp-docs { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.emp-docs .file-row { padding: 2px 0; }
.emp-docs .btn-mini { margin-top: 6px; }

/* ── НДС ── */
.vat-settings { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.vat-block { margin-bottom: 18px; }
.vat-sub { margin: 8px 0; font-size: 14px; color: var(--muted); }
.vat-year { margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.vat-year-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.vat-year-head > :first-child { font-weight: 600; font-size: 16px; }
.vat-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.vat-ok { background: var(--accent-soft); color: var(--accent); }
.vat-breach { background: var(--danger-soft); color: var(--danger); }
.vat-meta { color: var(--muted); font-size: 12px; }
.vat-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.vat-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.vat-bar-fill.vat-breach { background: var(--danger); }
.vat-warning { background: var(--warn-soft); color: var(--warn); }
.vat-bar-fill.vat-warning { background: var(--warn); }
.alert-danger { padding: 10px 12px; border: 1px solid var(--danger); background: var(--danger-soft); color: var(--danger); border-radius: 8px; margin-bottom: 12px; }
.alert-warn { padding: 10px 12px; border: 1px solid var(--warn-line); background: var(--warn-soft); color: var(--warn); border-radius: 8px; margin-bottom: 12px; }
.vat-months { display: flex; flex-wrap: wrap; gap: 4px; }
.vat-month { font-size: 11px; color: var(--muted); padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; }
.vat-inv-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.vat-inv-form input, .vat-inv-form select {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: 13px; background: var(--panel); color: var(--ink);
}
.vat-inv-form input:focus, .vat-inv-form select:focus { outline: none; border-color: var(--accent); }
.vat-inv-form #inv-amount, .vat-inv-form #inv-rate { width: 120px; }
.vat-inv-form #inv-counterparty { min-width: 180px; flex: 1; }
.vat-inv-form #inv-expense { min-width: 200px; flex: 1; }


/* ── модальное окно сотрудника ── */
.emp-modal-card {
  background: var(--panel); border-radius: 14px; padding: 24px;
  width: 640px; max-width: 94vw; max-height: 90vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.emp-modal-card h2 { margin: 0 0 4px; font-size: 17px; }
.emp-modal-sub { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.emp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.emp-form-grid .field-full { grid-column: 1 / -1; }
.emp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.emp-check input { width: auto; }
.emp-modal-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.emp-modal-status { color: var(--danger); font-size: 13px; }

/* ── отчётность: заголовок квартала ── */
.rep-qhead td {
  background: var(--panel); font-weight: 700; font-size: 13px;
  color: var(--accent); padding: 8px 10px; border-top: 2px solid var(--line);
}

#logout-btn { cursor: pointer; }

/* ── аккаунты ── */
.account-modal-card { width: 460px; }
#accounts-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 40vh; overflow: auto; }
.account-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.account-row.active { border-color: var(--accent); background: var(--accent-softer); }
.account-name { font-weight: 600; font-size: 14px; flex: 1; }
.account-meta { font-size: 12px; color: var(--muted); }
.account-active-tag { font-size: 11px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.account-add { margin-top: 4px; }
#account-add-form { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
