/* Дополнения портала к стилям макета: формы, вход, матрица прав */
.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}

/* фильтры сотрудников: селекты по содержимому, поиск справа */
.pflt{margin-bottom:12px}.pflt select.in{width:auto;min-width:180px;max-width:280px}
@media (max-width:700px){.pflt select.in{flex:1 1 140px;min-width:0;max-width:none}}
.ma button.req{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}.ma button.req:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* сводка в один экран (Павел Пятаев 26.11.2026): два ряда карточек делят высоту окна, длинные списки листаются внутри карточки */
.feed a.sig .sub{display:block;margin-top:2px;font-size:12px;color:var(--text-3)}
@media (min-width:1100px) and (min-height:760px){
 .grid-a.dash{height:max(240px,calc((100dvh - 440px) / 2))}
 .grid-a.dash>.card{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .grid-a.dash>.card>.card-h{flex:none}
 .grid-a.dash>.card>.feed,.grid-a.dash>.card>.bars-h{flex:1;min-height:0;overflow:auto}
 .grid-a.dash>.card>.chart{flex:1;min-height:0;overflow:hidden}
 .grid-a.dash>.card>.chart svg{height:100%}
}
.frow.fm{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.1fr)}.frow.fm b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ma .pnav{justify-content:space-between}.iconbtn:disabled{opacity:.4;cursor:not-allowed}
/* таблица операций в приложении */
.ma .blk .search{width:100%;margin-left:0;order:0}
.mtw{margin:0 -4px}
.mt{width:100%;border-collapse:collapse;font-size:13px}
.mt th{padding:6px 4px;border-bottom:1px solid var(--line);font-weight:400;text-align:left}.mt th.r{text-align:right}
.mt td{padding:8px 4px;border-bottom:1px solid var(--line);vertical-align:top}.mt td.r{text-align:right;white-space:nowrap}
.mt tfoot td{border-bottom:0}
.mt .w{color:var(--text-3);font-size:12px}
.mt button.srt{border:0;background:none;padding:0;font:inherit;font-size:12px;color:var(--text-3);cursor:pointer;white-space:nowrap}.mt button.srt.on{color:var(--text)}
.mt .nw{white-space:nowrap}.mt td.r,.mt tfoot td{font-size:12px}.mt td:first-child{min-width:120px;overflow-wrap:normal;hyphens:auto}
/* шапка и «Итого» закреплены под верхней панелью при прокрутке (Павел Пятаев 26.11.2026) */
.mt thead{position:sticky;top:calc(56px + env(safe-area-inset-top,0px));z-index:5;background:var(--surface)}
.mt thead th,.mt thead td{background:var(--surface)}
.mt thead tr.tot td{border-bottom:1px solid var(--line);padding:8px 4px;font-size:12px}.mt thead tr.tot td:first-child{font-size:13px}
/* период в одну строку с «День, Неделя, Месяц» (Павел Пятаев 26.11.2026) */
.aperrow{display:flex;align-items:center;gap:6px}.aperrow .mchips{flex:none;flex-wrap:nowrap}.aperrow .mchips{gap:4px}.aperrow .mchips button{padding:0 6px;font-size:13px}
.aperrow .pnav{flex:1;min-width:0;gap:4px}.aperrow .pnav .mono{flex:1;min-width:0;text-align:center;font-size:11px;line-height:1.25}.aperrow .iconbtn{width:32px;height:34px}
/* таблица операций с границами ячеек (Павел Пятаев 26.11.2026). separate, а не collapse: у закреплённой шапки границы не пропадают */
.mt{border-collapse:separate;border-spacing:0;border:1px solid var(--line-2);border-radius:var(--r)}
.mt thead tr:first-child th:first-child{border-top-left-radius:var(--r)}.mt thead tr:first-child th:last-child{border-top-right-radius:var(--r)}
.mt tbody tr:last-child td:first-child{border-bottom-left-radius:var(--r)}.mt tbody tr:last-child td:last-child{border-bottom-right-radius:var(--r)}
.mt th,.mt td,.mt thead tr.tot td{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 6px}
.mt th:last-child,.mt td:last-child{border-right:0}
.mt tbody tr:last-child td{border-bottom:0}
.mt thead tr:first-child th{background:var(--surface-2,var(--surface))}
.mtw{margin:0}
/* компактные карточки сверху (Павел Пятаев 26.11.2026): подпись и сумма в одной строке, меньше отступов */
.ma .blk.cmp{padding:10px 12px;gap:4px}
.ma .cmp .row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.ma .blk.cmp .big{font-size:24px}
.ma .req.cmp{padding:8px 12px;gap:2px}.ma .req.cmp .lbl{font-size:12px}
.ma-top{height:44px}
/* «Итого» оттенком акцента (Павел Пятаев 26.11.2026, правило подсветки итогов): фон непрозрачный, иначе под закреплённой строкой видны операции */
.mt thead tr.tot td{background:linear-gradient(var(--accent-soft),var(--accent-soft)),var(--surface);border-bottom:1px solid var(--accent-line)}
/* таблица не шире карточки на телефоне 375 px */
.mt{table-layout:auto;max-width:100%}.mt th,.mt td,.mt thead tr.tot td{padding:6px 4px}.mt td:first-child{min-width:0}
.mt td:first-child{hyphens:manual}
.rqc{display:inline-block;align-self:flex-start;max-width:100%;padding:2px 8px;border-radius:var(--r);background:var(--warn-soft);color:var(--text);font-weight:500;overflow-wrap:anywhere}
/* карточка-герой (Павел Пятаев 26.11.2026) */
.ma .blk.hero{padding:12px 16px;gap:4px}
.ma .hero .hst{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:2px 8px;border-radius:var(--r);background:var(--good-soft);font-size:12px;font-weight:500;margin-bottom:4px}
.ma .hero .hst i{width:6px;height:6px;border-radius:50%;background:currentColor}
.ma .hero .hk{font-size:12px;color:var(--text-3)}
.ma .hero .hv{font:500 30px/1.1 var(--m);font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--text)}
.ma .hero .hv.bad{color:var(--bad)}
.ma .hero .hfl{margin-top:6px;padding:6px 8px;border-radius:var(--r);font-size:12px;line-height:1.35}
.ma .hero .hfl.warn{background:var(--warn-soft);color:var(--warn)}.ma .hero .hfl.bad{background:var(--bad-soft);color:var(--bad)}
.ma .hero .hmeta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:13px;color:var(--text-2)}
.ma .hero .hmeta b{font:500 13px var(--m);color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.ma .hero .hbar{height:4px;border-radius:2px;background:var(--surface-3);overflow:hidden}.ma .hero .hbar i{display:block;height:100%;background:var(--accent)}
a.btn{text-decoration:none}
/* мобильная версия руководства (Павел Пятаев 26.11.2026, макет «АЗС / Мобильная версия руководства»): шапка, вкладки внизу, карточки */
.mtop{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;min-height:56px;padding:0 16px;padding-top:env(safe-area-inset-top);background:var(--surface);border-bottom:1px solid var(--line)}
.mtop .mtt{display:flex;flex-direction:column;min-width:0;flex:1}.mtop .mtt b{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtop .mtt small{font-size:12px;color:var(--text-3)}
.mback{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 8px 0 4px;border:1px solid var(--line);border-radius:var(--r);color:var(--text);text-decoration:none;font-size:14px;white-space:nowrap;flex-shrink:0}.mback .ic{width:18px;height:18px}
main.mb{padding:12px 16px calc(80px + env(safe-area-inset-bottom))}main.mb .wrap{display:flex;flex-direction:column;gap:8px;max-width:none;padding:0}
main.mb .wrap .head .hrow{display:none}main.mb .wrap .head{margin:0}
.mnav{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.mnav a{flex:1 1 0;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;font-size:12px;color:var(--text-3);text-decoration:none;min-width:0}
.mnav a .ic{width:22px;height:22px}.mnav a.on{color:var(--accent);font-weight:600}.mnav a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.mnav .mbdg{position:absolute;top:4px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--bad);color:#fff;font:500 11px/16px var(--m);font-style:normal;text-align:center}
.mseg{display:flex;gap:4px;padding:4px;background:var(--surface-3);border-radius:var(--r)}.mseg a{flex:1 1 0;height:36px;display:flex;align-items:center;justify-content:center;border-radius:var(--r);color:var(--text-2);text-decoration:none;font-size:14px;white-space:nowrap}.mseg a.on{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 0 0 1px var(--line)}
.mper{display:flex;align-items:center;gap:4px}.mper .sp{flex:1}.mper .chip{height:32px;padding:0 8px}.mper .iconbtn{width:32px;height:32px}.mper .mpl{font-size:12px;text-align:center;white-space:nowrap}
.mchips{display:flex;gap:4px;overflow-x:auto}.mchips .chip{white-space:nowrap;flex-shrink:0}
.msearch{width:100%;margin:0}
.mhero{display:flex;flex-direction:column;gap:4px;padding:12px 16px;border-radius:var(--r);background:var(--stela);color:#fff}.mhero span,.mhero small{font-size:12px;color:var(--stela-text)}.mhero b{font-size:24px;font-weight:500;letter-spacing:-.02em}
.mtiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mtiles.m3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mtile{display:flex;flex-direction:column;gap:2px;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);min-width:0}.mtile .t3{font-size:12px}.mtile b{font-size:17px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mtiles.m3 b{font-size:14px}
.mlist{display:flex;flex-direction:column}.mlh{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line)}.mlh b{font-size:14px;font-weight:600}.mlh a{text-decoration:none}
.mrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;min-height:44px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none;background:none;border-left:0;border-right:0;border-top:0;font:inherit;text-align:left;width:100%;cursor:pointer}
.mrow:last-child{border-bottom:0}a.mrow:hover,button.mrow:hover{background:var(--surface-2)}div.mrow{cursor:default}
.mrow .ml{display:flex;flex-direction:column;gap:2px;min-width:0}.mrow .ml b{font-weight:500;overflow-wrap:anywhere}.mrow .ml b .mn{font-weight:400}.mrow .ml .t3{font-size:12px;overflow-wrap:anywhere}
.mrow .mr{display:flex;align-items:center;gap:4px;white-space:nowrap;flex-shrink:0}.mrow .chev{font-size:17px;line-height:1}
.mrow.mhl{background:var(--warn-soft)}
.mrow .dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;background:var(--warn);vertical-align:middle}.mrow .dot.bad{background:var(--bad)}.mrow .dot.ok{background:var(--good)}
.mline{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:0 4px;font-size:14px}
.mcard{display:flex;flex-direction:column;gap:4px;padding:12px;color:var(--text);text-decoration:none}.mcard.mbad{border-color:var(--bad)}.mcard.mwarn{border-color:var(--warn)}
.mcard .mrw{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.mcard .st{align-self:flex-start}.mcard>a{font-size:14px;text-decoration:none}
.mbtns{display:flex;gap:8px;margin-top:4px}.mbtns .btn{flex:1 1 0;min-width:0;padding:0 8px}
.mkas{display:flex;flex-direction:column;gap:4px;padding:12px}.mkas b{font-size:24px;font-weight:500}
.mgh{font-size:12px;color:var(--text-3);padding:8px 4px 0}
body:has(main.mb){overflow-x:hidden}main.mb,main.mb .wrap{min-width:0;max-width:100vw}main.mb .card{min-width:0}
.mnav a{flex:1 1 auto}
.mcard>a{color:var(--accent)}
main.mb .msearch{order:0}
/* телефон: iOS не увеличивает страницу при нажатии в поле (шрифт поля 16 px), страница не шире экрана (Павел Пятаев 26.11.2026, видео с iPhone) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (max-width:760px){input,select,textarea,.in,.search input{font-size:16px!important}html,body{overflow-x:hidden;max-width:100%}}
main.mb .tw{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}main.mb .card,main.mb .form,main.mb .linkbox{max-width:100%;min-width:0}
main.mb .row2,main.mb .actions,main.mb .hr,main.mb .chips,main.mb .pbar{flex-wrap:wrap}main.mb .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
main.mb table.tcard,main.mb table.tcard tbody,main.mb table.tcard tr,main.mb table.tcard td{display:block;width:auto!important;min-width:0!important}
main.mb table.tcard colgroup,main.mb table.tcard tr:first-child{display:none}
main.mb table.tcard tr{padding:8px 12px;border-bottom:1px solid var(--line)}main.mb table.tcard tr:last-child{border-bottom:0}
main.mb table.tcard td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:2px 0!important;border:0!important;text-align:right;white-space:normal;overflow-wrap:anywhere;height:auto}
main.mb table.tcard td::before{content:attr(data-l);color:var(--text-3);font-size:12px;text-align:left;flex-shrink:0;max-width:45%}
main.mb table.tcard td:not([data-l]){display:block;text-align:left}main.mb table.tcard td:first-child{font-weight:600}
main.mb table.tcard td:empty{display:none}main.mb table.tcard td .actions{justify-content:flex-end}
main.mb table.tcard tr.go{cursor:pointer}
main.mb .head{flex-wrap:wrap;max-width:100%}main.mb .head .hl{min-width:0;max-width:100%;flex:1 1 100%}main.mb .head .lead{white-space:normal;overflow-wrap:anywhere}
@media (max-width:380px){.mper{flex-wrap:wrap}.mper .sp{flex-basis:100%;height:0}.mper .mpl{flex:1}main.mb .pbar .seg{flex-wrap:wrap}main.mb .pbar .seg button{flex:1 1 auto}}
/* самый узкий телефон 320 px (Павел Пятаев 26.11.2026): период в две строки, суммы переносятся по группам цифр */
@media (max-width:350px){.ma .aperrow{flex-wrap:wrap}.ma .aperrow>*:first-child{flex:1 1 100%}.ma .mt td.r,.ma .mt th.r{white-space:normal;word-break:normal;overflow-wrap:normal}.ma .mt{font-size:12px}.ma .mt td,.ma .mt th{padding:6px 3px}}
@media (max-width:350px){.ma .mt td:first-child,.ma .mt td:first-child *{white-space:normal}.ma .mt td:first-child{min-width:0;width:auto}}
@media (max-width:350px){.ma .mt td,.ma .mt th,.ma .mt thead tr.tot td{padding-left:2px;padding-right:2px}}

/* шаг 3 закрытия смены (30.11.2026): одна цифра в строке - название и поле пополам, длинное имя общей колонки переносится */
.frow.f2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
/* организация: топливо шире, «Убрать» по тексту (Денис Бондарев 01.12.2026: «АИ-» обрезалось) */
.frow.fo{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto}.frow.fo .mbtn{padding:0 12px}.frow.f2 b{overflow-wrap:anywhere}
.fuelrow2{display:flex;flex-direction:column;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.fuelrow2:last-child{border-bottom:0}
.pks{display:flex;flex-wrap:wrap;gap:4px}.form .pks label.pk,.pk{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-width:52px;height:36px;padding:0 8px;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-size:14px;font-variant-numeric:tabular-nums}.pk:has(input:checked){border-color:var(--accent-line);background:var(--accent-soft)}
.form .fuelrow2 label.ck>span,.form label.pk>span{font-size:14px;color:var(--text)}
.t.tst td{overflow-wrap:normal}.t.tst .st{white-space:nowrap}
/* фото и файлы смены плитками (Денис Бондарев 02.12.2026) */
.phgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.phg{position:relative;aspect-ratio:3/4;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;font-size:12px;color:var(--text-2);text-align:center;overflow-wrap:anywhere}
.phg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.phg b{font-size:14px;color:var(--text)}
.phg .x{position:absolute;top:4px;right:4px;width:32px;height:32px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:18px;line-height:1;padding:0}
.phg .wait{position:absolute;left:4px;bottom:4px;right:4px;background:var(--warn-soft);color:var(--warn);border-radius:var(--r);padding:2px 4px}
.phg.add{border-style:dashed;color:var(--accent);font-size:14px;cursor:pointer;font:inherit;font-size:14px}
.shfiles{display:flex;flex-wrap:wrap;gap:8px}.shfiles a{display:block;width:160px}.shfiles img{width:160px;height:200px;object-fit:cover;border:1px solid var(--line);border-radius:var(--r)}
.shfiles .fl{width:160px;height:200px;border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;text-align:center;overflow-wrap:anywhere;color:var(--text-2);font-size:12px}.shfiles .fl b{font-size:14px;color:var(--text)}
.req .row{display:flex;justify-content:space-between;gap:8px}.shfiles a{text-decoration:none}
