/* SIG Regulation — доповнення до спільних стилів групи (app.css перенесено з Retention Hub: токени, оболонка, контроли, картки, таблиці, вхід). */

/* підпис групи в боковому меню */
.nav-grp { margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* головна: компанії й доступ поруч */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.home-grid .facts { grid-template-columns: minmax(0, 1fr); }

/* «Доступи»: хрестик у чипі ролі чи дозволу, форми додавання в розкритому рядку */
.chip-x { all: unset; cursor: pointer; margin-left: 6px; padding: 0 4px; border-radius: 6px; font-weight: 700; color: var(--ink-2); }
.chip-x:hover, .chip-x:focus-visible { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.chip-x[disabled] { opacity: .5; cursor: not-allowed; }
.tbl .perm-chips .chip { height: auto; white-space: normal; }
.acc-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding: 6px 0; }
.acc-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 1100px) { .acc-forms { grid-template-columns: minmax(0, 1fr); } }

/* фільтри журналу: поля в один рядок */
.filters .inp[type="date"] { width: 150px; }
.filters .inp[name="q"] { flex: 1 1 220px; }

/* ── спільні розділи: календар, запити, інциденти, задачі, документи, навчання ── */

/* форма створення й редагування: три колонки, широкі поля — на весь рядок */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

/* картка: зміст ліворуч, стан і дії праворуч */
.card-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 86ch; margin: 8px 0 0; }
.facts.one { grid-template-columns: minmax(0, 1fr); }
.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .facts.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* строк і залишок днів */
.due { white-space: nowrap; font-variant-numeric: tabular-nums; }
.due .pill { margin-left: 6px; }
.tbl td.wrap { overflow-wrap: anywhere; min-width: 220px; }
.tbl .t-name { overflow-wrap: anywhere; }

/* файли й нотатки */
.file-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-list a { font-weight: 600; color: var(--brand); overflow-wrap: anywhere; }
.inp.file { height: auto; padding: 7px 10px; }
.notes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notes li { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.notes .who { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.notes .txt { white-space: pre-wrap; overflow-wrap: anywhere; }

/* головна: чотири плитки */
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.kpi { text-decoration: none; }

/* шаблон календаря: чекбокси в один рядок */
.field.checks, .checks { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.nowrap { white-space: nowrap; }

/* навчання: вибір учасників з довідника */
.checks.pick { max-height: 280px; overflow: auto; padding: 4px 0 8px; }
.tbl td select { height: 32px; }
.tbl td .inp { height: 32px; width: 100%; min-width: 180px; }
