/* ЕСИР — the owner's pages (sign-in, jobs, products, reports, tax rates, settings, users, API clients, audit, about,
   taxpayers). app.css holds the frame and the common controls; this file only adds what these pages need. */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.head-row h1, .head-row h2 { margin: 0; }
.head-row .actions { margin-top: 0; }
.panel.narrow { max-width: 720px; }
table + .panel, table + form.panel, .pager + .panel { margin-top: 18px; }
.panel.login { max-width: 420px; margin: 0 auto; }
.panel h2:first-child, .subpanel h3:first-child { margin-top: 0; }
.subpanel { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fbfcfd; }
.decision { border-color: #f0c36d; background: #fffaf0; }
.incidents { border-color: #f3b4ae; }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow0 { flex: 0 0 auto !important; }
.filter { margin-bottom: 12px; }
form .row { align-items: flex-start; } /* fields with hints of different lengths: their inputs on one line */
.row > .w-sm { flex: 0 1 320px; }
form.inline, form.inline-form { display: inline; margin: 0; }
.inline-form { display: inline-flex !important; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: 220px; }
label.check { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 14.5px; margin: 6px 0; }
label.check input { margin-top: 3px; flex: 0 0 auto; }
label.check.vat { margin-top: 26px; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
legend { font-size: 13px; color: var(--muted); margin-bottom: 4px; padding: 0; }
textarea { resize: vertical; }

tr.inactive td { color: var(--muted); }
tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
table.kv { width: auto; min-width: 50%; background: transparent; }
table.kv th { width: 260px; background: transparent; font-size: 13.5px; }
table.kv td, table.kv th { border-bottom: 1px solid #eef1f4; }
table.compact { width: auto; min-width: 420px; }
table.label-map td input { min-width: 140px; }
table.audit td.details { min-width: 200px; max-width: 520px; overflow-wrap: anywhere; }
td.nowrap form.inline { margin-left: 10px; }
td.label-cell { font-weight: 800; font-size: 16px; }
ul.plain { margin: 4px 0 0; padding-left: 18px; }
button.link.danger-link { color: var(--err); }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 14px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs a { padding: 6px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.tabs a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
section.panel { scroll-margin-top: 64px; }
details.advanced, details.doc { margin: 8px 0 12px; }
details.advanced summary, details.doc summary { cursor: pointer; color: var(--accent); margin-bottom: 8px; }
details.doc pre { background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; max-height: 420px; font-size: 12.5px; }
.status-answer { margin-top: 12px; border-color: #9fd3b4; background: var(--ok-soft); }

.key-once { border: 2px solid var(--ok); background: var(--ok-soft); }
.copy-row { display: flex; gap: 8px; margin: 6px 0 12px; }
.copy-row input { flex: 1; font-size: 14px; background: #fff; }
.copy-row button.copied { border-color: var(--ok); color: var(--ok); }

.report-frame { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.about th { width: 320px; }

@media (max-width: 860px) {
	table.kv th { width: auto; }
	.inline-form input { width: 100%; }
	table { display: block; overflow-x: auto; }
}
@media print { .tabs, .report-frame, .head-row .actions { display: none !important; } }
label.check.attention { color: var(--warn); font-weight: 700; }
