/* qurylys-lite additions. qurylys.css and runtime.css are byte copies of the procurement cabinet
   (zakup-ba 9e38cd2) and are never edited; only existing variables are used here. */
.inline-form{display:inline-flex;margin:0}
.company-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.company-list li{display:flex;flex-direction:column;gap:6px;padding-top:14px;border-top:1px solid var(--line-soft)}
.company-list li:first-child{padding-top:0;border-top:0}
.company-list strong{font-size:14px;font-weight:600}
/* Task manager layout, copied from tasks-int-erm/styles.css (layout only; colours from qurylys.css). */
.tasks-columns{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(340px,1.15fr);gap:20px;align-items:start}
.panel-inner{padding:22px}
.panel-inner>h2{line-height:1.5;margin:0 0 12px}
.panel-inner>p{margin:10px 0}
.panel-inner>h3{font-size:14px;margin:20px 0 8px}
.panel-inner>h3+p{font-size:13px;line-height:1.7;white-space:pre-line}
.task-row{width:100%;text-align:left;background:transparent;color:inherit}
.task-row[aria-current="true"]{background:var(--surface2);box-shadow:inset 3px 0 var(--accent)}
.task-row .task-title{font-size:13px;font-weight:550;line-height:1.5;margin-bottom:5px}
.task-row .row-meta{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}
.task-row .task-action{min-width:16px;display:flex;align-self:center}
.task-footer .badge{white-space:normal}
.tasks-columns .list-meta{font-size:10px;letter-spacing:.06em;color:var(--faint);padding:12px 22px 8px}
.tasks-columns .empty{padding:24px 22px;font-size:13px;color:var(--muted)}
.pagination{align-items:center}
.details{margin:24px 0}
.section{border-top:1px solid var(--line-soft);margin-top:22px;padding-top:20px}
.section h3{font-size:14px;margin-bottom:12px}
.section p{font-size:12px;line-height:1.65;margin:10px 0}
.section label{font-size:11px;color:var(--muted);display:block;margin:0 0 7px}
.section .timeline h3{font-size:12px;margin:3px 0 0}
.section .timeline p{font-size:11px;margin:5px 0 0}
.command-notice{display:block}
.task-form{max-width:720px}
textarea.input{min-height:auto;resize:vertical}
@media (max-width:1190px){.tasks-columns{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){.tasks-columns{gap:17px}.panel-inner{padding:18px}.tasks-columns .list-meta{padding:12px 18px 8px}.task-row .task-title{font-size:14px}.task-row .meta{font-size:12px}.tasks-columns .empty{padding:24px 18px}}
/* Tender digest preview: the message text as it will be sent. */
.digest-preview{white-space:pre-wrap;font:inherit;font-size:13px;line-height:1.6;margin:0}
/* Role groups in the sidebar (brief 050): one caption per role, as the cabinet's .nav-caption. */
.nav .nav-group{margin:16px 0 2px}
.mobile-nav{overflow-x:auto}
.mobile-nav a{flex:1 0 64px}
/* Role screens: «только данные портала» label, act/object lists, totals row. */
.portal-only{margin-left:8px;vertical-align:middle}
.data-table tfoot td{font-weight:600;border-top:1px solid var(--line)}
.data-table td small,.metric small{display:block;font-size:11px;color:var(--muted);font-weight:400}
.date-filters{flex-wrap:wrap}
.date-filters label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.object-list .task{align-items:center}
.handoff-form{max-width:640px}
.role-cards .metric{cursor:default}
/* Workplace switcher (brief 090): the «Рабочее место» select of the contract-card-v3 demo bar,
   moved into the top bar. */
.workplace-switch{gap:6px;align-items:center;font-size:11px;color:var(--muted)}
.workplace-switch select{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:4px 7px;min-height:30px;font-size:11px;color:var(--text);max-width:160px}
.js .workplace-switch button{display:none}
@media(max-width:760px){.workplace-switch label{display:none}}
/* «Источник не подключён» pages (Обязательства, Письма, Помощник). The assistant's own rules
   are in assistant.css (brief 110). */
.source-state{max-width:760px}
/* Contract card (brief 090): a figure that has no value or no rule. */
.no-data{color:var(--muted);font-weight:400;font-size:12px}
.card-freshness{font-size:12px;color:var(--muted);margin:-6px 0 14px}
/* The card keeps its tab bar on a phone: lite has no section select (card.css `.local-select`). */
@media(max-width:760px){nav.localbar{display:flex}}
/* History filters are links here (one address per filter), styled as card.css styles its buttons. */
.history-filters a{font-size:11px;border:1px solid var(--line-soft);border-radius:6px;color:var(--muted);padding:5px 8px;min-height:30px;display:inline-flex;align-items:center}
.history-filters a[aria-pressed=true]{background:var(--accent-bg);color:var(--accent)}
@media(max-width:760px){.history-filters a{min-height:40px;font-size:12px}}

/* Brief 120: notifications grouped by contract — one panel per contract. */
.notification-group + .notification-group { margin-top: 16px; }
.notification-group .panel-head h2 { margin: 0; }

/* Brief 150: «Главное по договору» on the card's «Обзор» — finance-metrics of contract-card-v3,
   each figure a link to its tab. */
.overview-figures{padding-top:4px}
.overview-figures>a{display:block;color:inherit;border:1px solid var(--line-soft);border-radius:10px;padding:10px 12px;min-width:0}
.overview-figures>a:hover{border-color:var(--accent)}
.overview-figures strong{display:block;font-size:17px;overflow-wrap:anywhere}
.overview-figures small{display:block;font-size:11px;color:var(--muted);margin-top:4px}

/* Brief 170: «Обязательства» — money in the metric tiles is longer than a count. */
.obligation-metrics .metric-value{font-size:24px;overflow-wrap:anywhere}
#obligations-table tfoot td{border-top:1px solid var(--line-soft)}

/* Brief 210: «Счета и остатки» — bukh style.css `.account-grid`, `.account-item`, `.statline`. */
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.account-item{padding:18px 0;border-bottom:1px solid var(--line-soft)}
.account-item:last-child{border:0}
.account-value{font-size:24px;font-weight:550;margin:10px 0 15px}
.statline{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.statline:last-child{border:0}
.inline-note{font-size:12px;color:var(--faint);margin-top:16px}
.securities-metrics .metric-value{font-size:24px;overflow-wrap:anywhere}
@media(max-width:760px){.account-grid{grid-template-columns:1fr}}
/* Brief 280: one row for every list of records (templates/partials/row.html) — the `.task` row
   of the procurement «Сегодня» (qurylys.css) with a value or status on the right. A row that
   leads to a record opens it on a click anywhere in it (app.js). */
.task[aria-current="true"],.task.unread{background:var(--surface2);box-shadow:inset 3px 0 var(--accent)}
.task .task-title{display:block;color:inherit}
.task .task-title:hover h3{color:var(--accent)}
.task .deadline-date{margin-top:2px}
.row-end{margin-left:auto;flex-shrink:0;align-self:center;white-space:nowrap;font-size:13px}
.row-end.num{font-weight:600}
.row-end.time{font-size:11px;color:var(--faint)}
[data-href]{cursor:pointer}
.data-table tr[data-href]:hover td{background:var(--surface2)}
@media(max-width:760px){.task{flex-wrap:wrap}.task>.grow{min-width:160px}.row-end{margin-left:42px;white-space:normal}}
/* Brief 280: «Сегодня» tiles in balanced rows (ui.tile_grid): never 5 + 1; two columns on a
   tablet, one on a phone. «Просрочено» above zero is red: value, border and icon (qurylys.css
   `.metric.red`, `--red`, `--red-bg`). */
.metric-grid.tiles-1{grid-template-columns:minmax(0,1fr)}
.metric-grid.tiles-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.metric-grid.tiles-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.metric-grid.tiles-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.metric.red.alert{border-color:var(--red);background:var(--red-bg)}
.metric.red.alert .metric-title{color:var(--red)}
@media(max-width:1000px){.metric-grid.tiles-3,.metric-grid.tiles-4{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid.tiles-odd>:last-child{grid-column:1/-1}}
@media(max-width:760px){.metric-grid[class*="tiles-"]{grid-template-columns:minmax(0,1fr)}.metric-grid.tiles-odd>:last-child{grid-column:auto}}
/* Brief 290: the first line of the contract card — the contract's group and why. Colours of
   qurylys.css badges (`.badge.ok`, `.badge.danger`). */
.actuality{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;border-radius:9px;margin-bottom:14px;font-size:13px;font-weight:550;color:var(--muted);background:var(--surface2)}
.actuality.ok{color:var(--green);background:var(--green-bg)}
.actuality.danger{color:var(--red);background:var(--red-bg)}
.customer-contact{padding:12px 18px;border-top:1px solid var(--line-soft);font-size:12px;line-height:1.7}
.customer-contact .row{gap:10px}
/* The full text of a letter for «Скопировать» (brief 290): present for the copy, not shown. */
.copy-source{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:pre;opacity:0}
/* «Изменения статусов» by group (brief 290): each group a section; «Архив» starts collapsed. */
.change-section{margin-bottom:18px}
.change-section>summary{cursor:pointer;list-style:none}
.change-section>summary::-webkit-details-marker{display:none}
.change-section .notification-group{margin-bottom:14px}
/* Brief 300: «Подрядчик объекта» short — one block per approved link; the dialog «Добавить
   подрядчика» (qurylys.css `dialog`) and its page; «История» — what changed, field by field. */
.contractor-link+.contractor-link{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft)}
#contractor-history{margin-top:12px}
#contractor-history>summary{cursor:pointer}
#contractor-choice .record-row form,#contractor-choice .record-row .badge{flex-shrink:0}
#contractor-choice h3{margin-top:16px}
.contractor-page{padding:0;max-width:760px}
.change-list{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.6}
.change-list s{color:var(--muted)}
.change-note{margin-top:.25rem}.note-form summary{cursor:pointer}.note-form form{margin-top:.25rem}
#timeline{margin-top:14px}
#timeline>summary{cursor:pointer}
/* Brief 340: the hint of an unmatched letter — `.notice.info` with a short list of contracts, each
   with its «Привязать». */
.mail-hint{margin:10px 0 0}
.mail-hint>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.mail-hint-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.mail-hint-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* Brief 430: a reply under the letter it answers («Переписка по договору»), the tender number at
   the end of a bell row, the group row of «Письма и приказы» by contract. */
.task.reply{margin-left:28px;box-shadow:inset 2px 0 var(--line-soft)}
.row-ref{white-space:nowrap;font-size:12px;margin-left:auto;padding-right:10px;align-self:center}
.data-table tr.group-row td{background:var(--surface2);font-weight:550}
/* Brief 590: the top bar's two groups — the tools on the left after the company, the account's
   controls (gear, theme, bell, «Выход») at the right edge; on a narrow screen the left group
   shrinks (the switcher's select narrows) and nothing overlaps. */
.topbar .top-tools{min-width:0;flex-shrink:1}
.topbar .top-account{margin-left:auto;flex-shrink:0}
.icon-button[aria-current="page"]{background:var(--surface2);border-color:var(--line-soft);color:var(--text)}
@media(max-width:760px){.topbar .top-tools{flex-shrink:1;min-width:0}.topbar .top-account{flex-shrink:0;gap:0}.workplace-switch select{max-width:96px}.top-tools .ai-trigger{padding:8px 6px!important}}
@media(max-width:420px){.top-tools .ai-trigger{font-size:0!important;gap:0}.top-tools .ai-trigger .ai-symbol{margin-right:0;font-size:18px}}
#task-state-filter{padding:0 18px;margin:0 0 8px}
/* Brief 630: «Доска» of «Задачи» — rows are people, columns are states. A wide screen lays a row
   out as the head and four columns under one header line; below 1000px the header goes and each
   cell of a row stacks under the row's head with its own caption. Cards as the task rows. */
.board-switch{margin-right:6px}
.board{display:grid;gap:12px;margin-bottom:24px}
.board-company{font-size:16px;margin:8px 0 0}
.board-head,.board-row{display:grid;grid-template-columns:minmax(190px,1fr) repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.board-head{font-size:10px;letter-spacing:.06em;color:var(--faint);padding:0 13px}
.board-head small{display:block;letter-spacing:0;margin-top:2px}
.board-row{padding:13px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}
.board-row.board-test,.board-row.board-former{opacity:.85}
.board-person h3{margin:0 0 4px;font-size:14px;line-height:1.4}
.board-person .meta{font-size:11px;color:var(--muted);line-height:1.6}
.board-cell{display:grid;gap:8px;min-width:0}
.board-cell-label{display:none;font-size:10px;letter-spacing:.06em;color:var(--faint)}
.board-card{display:grid;gap:5px;padding:9px 10px;border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--glass);font-size:11px;line-height:1.5;color:inherit;min-width:0}
.board-card:hover{border-color:var(--accent)}
.board-card.late{border-left:3px solid var(--warn)}
.board-card .task-title{font-size:12px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.board-card .badge{justify-self:start;white-space:normal}
.board-card-meta{color:var(--muted)}
.board-more{font-size:11px;color:var(--accent)}
.board-note{font-size:12px}
.board-card.plain:hover{border-color:var(--line-soft)}
.board-done{margin-bottom:4px}
.board-done th small{display:block;font-weight:400;color:var(--faint)}
.board-split{display:block;font-size:10px;color:var(--muted);white-space:nowrap}
.board-total td{border-top:1px solid var(--line)}
@media(max-width:1000px){.board-head{display:none}.board-row{grid-template-columns:minmax(0,1fr)}.board-cell-label{display:block}.board-cell:not(:has(.board-card)){display:none}}
.task-step{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:10px;padding:10px 14px;margin:8px 0 12px}.task-step strong{font-size:13px}.task-step p{font-size:12px;color:var(--muted);margin-top:3px}.task-step .actions{display:flex;gap:7px;flex-wrap:wrap}.step-cell{display:block;font-size:13px}
/* Brief 770: no `style` attribute in a page (the content policy allows styles from files only). */
.bar-track i[data-width]{width:0}.ledger td.cell-wrap{white-space:normal}.input.portion-size{width:5em}
