/* Дополнения портала к стилям макета: формы, вход, матрица прав */
.side a.nav{text-decoration:none}
.form{display:flex;flex-direction:column;gap:12px}
.form label{display:flex;flex-direction:column;gap:4px}
.form label>span{font-size:12px;color:var(--text-3)}
.form .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
select.in{appearance:none;font-family:var(--f);font-weight:400}
input.in.txt,textarea.in.txt{font-family:var(--f);font-weight:400}
.err{color:var(--bad);font-size:13px;min-height:18px}
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:var(--bg)}
.auth .box{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:16px}
.auth h1{font-size:20px;margin:0}
.auth .ck{flex-direction:row!important;align-items:flex-start;gap:8px!important;font-size:13px;color:var(--text-2)}
.auth .ck input{margin-top:2px}
.linkbox{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--accent-line);background:var(--accent-soft);border-radius:var(--r)}
.linkbox code{font-family:var(--m);font-size:12px;word-break:break-all;color:var(--text)}
.mx td.c,.mx th.c{text-align:center;width:120px}
.mx input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}
.fuelrow{display:grid;grid-template-columns:24px 1fr 1fr;gap:8px;align-items:center}
.tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--r);background:var(--surface-2);font-size:12px;color:var(--text-2);margin:0 4px 4px 0}
.checklist{display:flex;flex-direction:column}
.checklist a{display:grid;grid-template-columns:20px 1fr auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line);color:var(--text);text-decoration:none}
.checklist a:first-child{border-top:0}
.checklist a:hover{background:var(--surface-2)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--n3)}
.dot.ok{background:var(--good)}.dot.part{background:var(--warn)}
.actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
@media (max-width:560px){.form .row2{grid-template-columns:1fr}.mx td.c,.mx th.c{width:64px}}
.drawer>div:first-child>h1{flex:1;min-width:0}
/* Павел Пятаев 25.11.2026: «в каждом разделе закрепи шапки таблиц для прокрутки вниз». Таблица крутится внутри своей рамки до низа экрана,
   строка с названиями столбцов остаётся сверху */
.tw{max-height:calc(100vh - 150px);overflow:auto}
.tw .t tr:first-child th{position:sticky;top:0;z-index:3;background:var(--surface);box-shadow:inset 0 -1px 0 var(--line)}
@media (max-width:560px){.tw{max-height:calc(100vh - 110px)}}
/* 002: разделы по макету и приложения на телефоне */
.pnav{display:flex;align-items:center;gap:8px}
.legend i.p0{background:var(--accent)}.legend i.p1{background:var(--n2)}.legend i.p2{background:var(--n3)}
.bars-h{display:flex;flex-direction:column;gap:8px}
.bars-h .bh{display:grid;grid-template-columns:140px 1fr 120px;gap:12px;align-items:center;color:var(--text);text-decoration:none;font-size:13px}
.bars-h .track{height:10px}.bars-h .track i.neg{background:var(--bad)}
.feed a.sig{display:grid;grid-template-columns:18px 1fr;gap:10px;padding:10px 16px;border-top:1px solid var(--line);color:var(--text);text-decoration:none;font-size:13px}
.feed a.sig:first-child{border-top:0}
.feed .fr{padding:8px 16px}
.note-row{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line);color:var(--text);text-decoration:none;font-size:13px}
.note-row.new{font-weight:600}
img.blank{width:100%;max-height:560px;object-fit:contain;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.pairs.pl{padding:0 16px 16px}.pairs .b{font-weight:600;color:var(--text)}
.pnlt tr.sum td{font-weight:600;background:var(--surface-2)}
table.t tr.hit td{background:var(--accent-soft)}
.bellbtn{position:relative}.bellbtn .cnt{position:absolute;top:2px;right:2px;min-width:16px;height:16px;font-size:10px;padding:0 4px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--bad);color:#fff}
.app{max-width:520px;margin:0 auto;min-height:calc(100vh - 56px)}
.warnb{border-color:var(--warn)!important;background:var(--warn-soft)}
.req{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--accent-line);border-radius:var(--r);background:var(--accent-soft)}
a.mbtn{text-decoration:none}
@media (max-width:760px){.who{display:none}.bars-h .bh{grid-template-columns:96px 1fr 96px}}
.pnlt td:first-child,.pnlt th:first-child{min-width:220px;white-space:nowrap;position:sticky;left:0;background:var(--surface);z-index:2}
.pnlt tr:first-child th:first-child{z-index:4}
.pnlt td.r,.pnlt th.r{white-space:nowrap}
/* сворачивание групп меню (Павел Пятаев 25.11.2026) */
.side .gt{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;cursor:pointer;text-align:left;font:inherit;padding-right:8px}
.side .gt .chev{width:14px;height:14px;transition:transform .15s}
.side .gt.shut .chev{transform:rotate(-90deg)}
.side .gt:hover{color:var(--text)}

/* «Смотреть как» (25.11.2026): плашка сверху на всех экранах, имя сотрудника - кнопка-ссылка */
.asbar{display:flex;align-items:center;gap:16px;padding:8px 16px;background:var(--warn-soft);border-bottom:1px solid var(--warn);font-size:14px;position:sticky;top:0;z-index:30}
.asbar span{flex:1}
.lnk{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.lnk:hover{color:var(--accent);text-decoration-color:var(--accent-line)}
@media (max-width:767px){.asbar{padding:8px 16px;gap:8px}.asbar .asx{display:none}}
/* «Сотрудники и доступ» (Павел Пятаев 25.11.2026: «поправь вёрстку аккуратнее»): ширины столбцов постоянные, таблица по сумме ширин,
   названия АЗС, вход и кнопки не переносятся по буквам, кнопки в одну строку и прижаты вправо */
.card.fit{width:fit-content;max-width:100%}
/* Павел Пятаев 25.11.2026: «адаптируй на всю ширину экрана». Таблица во всю ширину, постоянная ширина только у телефона, входа и кнопок,
   имя, роль и АЗС делят остальное. Меньше 1100 px - прокрутка внутри таблицы */
.t.tpp{table-layout:fixed;width:100%;min-width:1100px}
.t.tpp th:nth-child(4){width:160px}.t.tpp th:nth-child(5){width:224px}.t.tpp th:nth-child(6){width:330px}
.t.tpp td{overflow-wrap:normal}
.t.tpp td:nth-child(3),.t.tpp td:nth-child(4),.t.tpp td:nth-child(5){white-space:nowrap}
.t.tpp .actions{flex-wrap:nowrap}
/* «Сейчас на смене» и «Расхождения» (25.11.2026): постоянные ширины, в экран 1728 при 115 % (1196 px) */
.t.tnow{table-layout:fixed;width:100%;min-width:1100px}
.t.tnow th:nth-child(3){width:170px}.t.tnow th:nth-child(4){width:150px}
.t.tdiff{table-layout:fixed;width:100%;min-width:1100px}
.t.tdiff th:nth-child(1){width:150px}.t.tdiff th:nth-child(5){width:140px}.t.tdiff th:nth-child(6){width:180px}.t.tdiff th:nth-child(7){width:210px}
.t.tnow td,.t.tdiff td{overflow-wrap:normal}
a.chip{text-decoration:none;display:inline-flex;align-items:center}
.t td a{color:var(--accent);text-decoration:none}.t td a:hover{text-decoration:underline}
/* Павел Пятаев 25.11.2026: «кнопка должна помещаться в мобильной версии». 100vh на телефоне включает панель браузера,
   низ уходил под неё. Видимая высота 100dvh, кнопки шагов закреплены внизу экрана над вырезом iPhone */
.app{min-height:calc(100dvh - 56px)}
.ma .wiz{position:sticky;bottom:0;z-index:5;margin-top:auto;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));background:var(--bg);box-shadow:0 -1px 0 var(--line)}
.ma.app{overflow:visible}
/* цены на главной оператора: столбцы «Наличные» и «Карта» подписаны (Павел Пятаев 25.11.2026) */
.ma .prt{display:grid;grid-template-columns:minmax(0,1fr) 96px 96px;gap:8px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.ma .prt>span:not(:first-child){text-align:right}.ma .prt.lbl{border-top:0;padding:0;font-size:12px}
