/* Shared approved interface for all pages, roles and organisations. */
:root {
  --bg:#f3f4f1; --card:#ffffff; --ink:#26352d; --soft:#626f64; --line:#d6ded1;
  --chip:#e4e9de; --bar:#bccbb5; --y:#dce7ca; --onacc:#26352d; --onacc-soft:#43543e;
  --font:"Segoe UI",Roboto,Arial,sans-serif; --cond:"Segoe UI",Roboto,Arial,sans-serif;
  --r:#ad392a; --g:#316340; --warn:#876323;
  color-scheme:light;
}
.stripe { display:none; }
.top { position:static; }
.brand { padding:22px; gap:10px; }
.brand h1 { font-size:22px; }
.pill.y { background:#e4e9de; border-color:#d6ded1; color:#26352d; }
.shift-home .top { background:#354b3c; color:#fff; border-bottom:0; }
.shift-home .brand { display:grid; grid-template-columns:1fr; padding:24px 22px 27px; }
.shift-home .brand h1 { font-size:15px; font-weight:500; letter-spacing:0; }
.shift-home .brand h1::after { content:'Ваша смена.'; display:block; margin:18px 0 10px; font-size:36px; line-height:1.12; font-weight:600; letter-spacing:-1px; }
.shift-home .sub { color:#d4dfd1; font-size:12px; }
.shift-home .pills { margin:5px 0 0; gap:7px; }
.shift-home .pill, .shift-home .pill.y { background:transparent; border-color:#8ba28c; color:#edf4e9; font-size:12px; }
.shift-home .tabs { background:var(--card); color:var(--ink); }
.shift-home .wrap { padding:20px 18px 28px; }
.shift-dashboard { max-width:900px; width:100%; margin:auto; display:grid; gap:20px; }
.shift-task { padding:24px; background:var(--card); border:1px solid #e1e6dc; border-radius:18px; display:grid; gap:16px; }
.shift-task-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.shift-task h2 { font-size:23px; }
.shift-task p { color:var(--soft); font-size:14px; margin:9px 0 0; }
.shift-count { font:400 64px/1 Georgia,serif; color:#687e5f; }
button.shift-plan { width:100%; background:#354b3c; color:#fff; border-color:#354b3c; min-height:52px; text-align:left; }
.shift-preview { padding-left:18px; margin:0; display:grid; gap:10px; font-size:14px; overflow-wrap:anywhere; }
.shift-task .shift-overdue { color:var(--r); font-weight:600; margin:0; }
.shift-quick { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.shift-action { background:#e4e9de; border:0; color:var(--ink); border-radius:11px; min-width:0; padding:17px 12px; cursor:pointer; font:inherit; text-align:left; }
.shift-action b { font-weight:600; display:block; }
.shift-action small { display:block; color:var(--soft); margin-top:4px; }
.shift-icon { display:block; font-size:24px; line-height:1.1; font-weight:400; margin-bottom:12px; }
.shift-quick .shift-action { min-height:106px; text-align:center; font-size:13px; }
.shift-model { width:100%; display:flex; align-items:center; gap:18px; padding:22px; background:#d9e2cf; border-radius:14px; }
.shift-model .shift-icon { margin:0; padding-right:18px; border-right:1px solid #a9bba0; font:34px/1.2 Georgia,serif; }
.shift-model b { font-size:18px; }
.shift-model small { font-size:13px; }
.shift-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.shift-secondary .shift-action { background:transparent; border:1px solid #b9c7b1; min-height:52px; display:flex; align-items:center; gap:12px; font-size:14px; }
.shift-secondary .shift-icon { font-size:18px; margin:0; }
.shift-overview:empty { display:none; }
.shift-overview > .card { border:0; background:transparent; box-shadow:none; border-radius:0; padding:18px 0 0; border-top:1px solid var(--line); gap:12px; }
.shift-overview h2 { font-size:17px; }
.shift-overview .tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.shift-overview .tiles .tile { background:transparent; border:0 !important; padding:4px 0; min-height:0; gap:7px; justify-content:flex-start; }
.shift-overview .tile.y { color:var(--ink); }
.shift-overview .tile .k,.shift-overview .tile.y .k { font-size:11px; color:var(--soft); }
.shift-overview .tile .v { font-size:24px; letter-spacing:-.8px; white-space:nowrap; line-height:1.2; }
.shift-overview .tile .v small { display:block; font-size:11px; font-weight:400; line-height:1.3; }
.shift-overview .tiles .tile > .small { font-size:11px; }
.shift-overview .tiles .tile:nth-child(4) { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; align-items:center; gap:7px 12px; padding:12px 0; border-top:1px solid var(--line) !important; }
.shift-overview .tiles .tile:nth-child(4) .v { font-size:20px; }
.shift-overview .tiles .tile:nth-child(4) .v small { display:inline; margin-left:4px; }
.shift-overview .tiles .tile:nth-child(4) > .small { flex-basis:100%; }
.tabs button[aria-current="page"] { background:#354b3c; color:#fff; border-color:#354b3c; }
@media(min-width:761px) {
  .shift-home .brand { max-width:948px; }
  .shift-quick .shift-action { min-height:105px; }
  .shift-home .tabs { max-width:none; justify-content:center; }
}
@media(max-width:760px) {
  .brand { padding:20px 18px; }
  .shift-task { padding:22px; }
  .shift-task h2 { font-size:21px; }
  .shift-task p { font-size:13px; }
  .shift-count { font-size:60px; }
  .shift-quick .shift-action { padding:15px 7px; font-size:12px; }
  .shift-home .tabs { margin-top:0; }
  .shift-overview .tile .v { font-size:22px; }
}
@media(max-width:360px) {
  .shift-home .wrap { padding-left:14px; padding-right:14px; }
  .shift-task { padding:18px; }
  .shift-task h2 { font-size:19px; }
  .shift-model { padding:18px 15px; gap:13px; }
  .shift-model b { font-size:16px; }
  .shift-model small { font-size:12px; }
  .shift-overview .tile .v { font-size:20px; }
}
.shift-home .brand, .app-shell .brand { display:none; }
.shift-compact { max-width:944px; margin:0 auto; padding:22px; }
.shift-identity { display:flex; justify-content:space-between; align-items:start; gap:18px; }
.shift-identity h1 { font:600 21px/1.3 var(--font); letter-spacing:-.5px; text-transform:none; overflow-wrap:anywhere; margin:0; }
.shift-identity > span { font-size:11px; color:#d2ddcf; max-width:90px; text-align:right; flex-shrink:0; }
.shift-date { font-size:12px; color:#d2ddcf; margin-top:7px; }
.shift-header-stats:not(:empty) { border-top:1px solid #ffffff30; padding-top:14px; margin-top:16px; }
.shift-header-stats h2 { font-size:12px; color:#d2ddcf; font-weight:500; margin:0 0 11px; letter-spacing:0; }
.shift-header-numbers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.shift-header-number { text-align:left; padding:0; min-height:52px; border:0; background:transparent; color:#fff; cursor:pointer; font:inherit; }
.shift-header-number small { display:block; color:#d2ddcf; font-size:11px; margin-bottom:5px; }
.shift-header-number strong { display:block; font-size:24px; font-weight:600; letter-spacing:-.8px; line-height:1.25; }
.shift-full-overview > summary,.shift-settings > summary { min-height:44px; align-content:center; cursor:pointer; color:var(--soft); font-size:13px; }
.shift-full-overview > .card { margin-top:12px; }
.shift-settings { border-top:1px solid var(--line); padding-top:8px; }
.shift-settings .btn { margin:5px 8px 5px 0; }
@media(max-width:760px) {
  .shift-compact { padding:20px 20px 22px; }
  .shift-identity h1 { font-size:19px; }
  .shift-header-number strong { font-size:22px; }
}
@media(max-width:360px) {
  .shift-compact { padding:18px 16px 20px; }
  .shift-header-number strong { font-size:19px; }
  .shift-identity { gap:12px; }
}
.app-shell .top { background:#354b3c; color:#fff; border:0; position:static; }
.app-shell .tabs { background:var(--card); color:var(--ink); }
.app-shell .wrap { width:100%; max-width:944px; padding:20px 18px 28px; align-content:start; }
.app-shell .card { border:1px solid #dce3d7; border-radius:16px; box-shadow:none; padding:20px; gap:16px; }
.app-shell h2 { font-size:23px; font-weight:600; line-height:1.25; }
.app-shell h3 { font-size:17px; font-weight:600; }
.app-shell button.btn:not(.ghost), .app-shell summary.btn:not(.ghost) { background:#354b3c; color:#fff; border-color:#354b3c; min-height:48px; }
.app-shell button.btn.ghost { background:var(--card); color:var(--ink); border-color:#b9c7b1; }
.app-shell input:not([type=checkbox]):not([type=radio]), .app-shell select, .app-shell textarea { border-color:#b9c7b1; }
.app-shell .act { background:#e4e9de; border:0; color:var(--ink); border-radius:12px; min-height:64px; }
.app-shell .act .ic { background:#d9e2cf; color:var(--ink); }
.app-shell .tile { border:1px solid var(--line); background:var(--card); border-radius:12px; }
.app-shell .tile.y { background:#d9e2cf; color:var(--ink); }
.app-shell .chip.warn { background:#e7debb; color:#514620; }
.app-shell .note { border-left-color:#91a77d; }
.app-shell .list .item { padding:14px 0; }
.app-settings { width:calc(100% - 36px); max-width:908px; margin:0 auto; padding:12px 0 calc(24px + env(safe-area-inset-bottom,0px)); flex-shrink:0; }
.app-shell .shift-header-stats h2 { font-size:12px; font-weight:500; }
.app-shell .shift-header-number strong { overflow-wrap:anywhere; }
.app-shell .viewer input { color:#fff; }
@media(max-width:760px) {
 .app-shell .card { padding:18px 16px; }
 .app-shell .shift-task h2 { font-size:21px; }
 .app-shell .tabs { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .app-shell .tabs:empty { display:none; }
 .app-shell .tabs button { min-height:46px; }
 .app-shell .shift-header-numbers { align-items:start; }
 .app-shell .shift-header-number strong { font-size:21px; }
}
@media(max-width:360px) {
 .app-shell .shift-header-number strong { font-size:18px; }
 .app-shell .shift-identity h1 { font-size:18px; }
 .app-shell .wrap { padding-left:14px; padding-right:14px; }
}
.header-navigation { display:flex; gap:6px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#8da181 transparent; padding:13px 0 9px; margin:0 -2px; }
.header-navigation button { flex:0 0 54px; min-height:67px; border:1px solid #91a18c; border-radius:9px; background:transparent; color:#e5eddf; padding:8px 4px 7px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:7px; font:500 10px/1.2 var(--font); text-align:center; cursor:pointer; overflow-wrap:anywhere; }
.header-navigation svg { width:21px; height:21px; flex-shrink:0; }
.header-navigation button[aria-current=page] { background:#e2eacb; border-color:#e2eacb; color:#26352d; }
.header-navigation button:focus-visible { outline:3px solid #f3c742; outline-offset:-3px; }
.app-shell .header-navigation + .shift-header-stats:not(:empty) { margin-top:3px; padding-top:12px; }
@media(min-width:761px) { .header-navigation { gap:9px; } .header-navigation button { flex-basis:76px; font-size:12px; min-height:71px; } }
@media(max-width:360px) { .header-navigation button { flex-basis:49px; font-size:9px; min-height:66px; } }
.header-navigation button { overflow-wrap:normal; flex-basis:58px; }
.header-navigation button > span { white-space:nowrap; }
@media(max-width:360px) { .header-navigation button { flex-basis:55px; font-size:9px; } }
.tabs:empty { display:none; }
.compact-summary { background:#d9e2cf; border:1px solid #d9e2cf; border-radius:14px; padding:13px 16px; }
.compact-summary-title { background:transparent; border:0; display:flex; align-items:center; justify-content:space-between; padding:0; min-height:38px; width:100%; font:600 18px/1.3 var(--font); letter-spacing:-.4px; color:var(--ink); cursor:pointer; }
.compact-summary-title span { font-size:25px; font-weight:400; }
.compact-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.compact-metric { min-width:0; min-height:65px; border:0; background:transparent; padding:5px 0; text-align:left; color:var(--ink); cursor:pointer; font:inherit; }
.compact-metric small { display:block; color:#53644d; font-size:11px; margin-bottom:4px; }
.compact-metric b { display:block; font-size:27px; font-weight:550; letter-spacing:-.8px; line-height:1.25; }
.compact-metric em { font-size:12px; font-style:normal; font-weight:400; letter-spacing:0; }
.compact-metric:nth-child(2), .compact-people { border-left:1px solid #bdcbb3; padding-left:15px; }
.compact-people { grid-column:2; border-top:1px solid #bdcbb3; margin-top:6px; padding-top:9px; min-height:60px; }
.compact-lag { color:#9a482d; }
.summary-tabbed { display:grid; gap:17px; width:100%; min-width:0; }
.summary-tabs { display:grid; grid-template-columns:1fr 1.1fr .8fr; gap:4px; border-radius:10px; background:#e1e7dc; padding:4px; }
.summary-tabs button { min-height:46px; padding:9px 4px; border:0; border-radius:7px; background:transparent; color:var(--ink); font:500 13px/1.3 var(--font); white-space:nowrap; cursor:pointer; }
.summary-tabs button[aria-selected=true] { background:#354b3c; color:#fff; }
.summary-panel { min-width:0; }
.summary-panel[hidden] { display:none!important; }
.summary-stack { display:grid; gap:16px; }
.summary-value-row { display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.summary-value-row b { font-weight:600; white-space:nowrap; }
.summary-tabbed > h2 { margin:0; }
@media(max-width:360px) { .compact-metric b { font-size:24px; } .compact-metric small { font-size:10px; } .summary-tabs button { font-size:12px; } }
.compact-pour { display:grid; gap:10px; min-width:0; }
.pour-picker { display:flex; gap:10px; align-items:center; }
.pour-picker select { flex:1; min-width:0; min-height:44px; }
.pour-picker > span { flex:none; font-size:11px; }
.compact-pour-grid { position:relative; max-height:440px; max-height:min(54dvh,440px); overflow:auto; padding:0 2px 3px; }
.pour-grid-heading,.pour-floor { display:grid; grid-template-columns:34px minmax(0,1fr) minmax(0,1fr); gap:6px; }
.pour-grid-heading { position:sticky; top:0; z-index:1; background:var(--card); padding:5px 0 8px; font-size:11px; text-align:center; color:var(--soft); }
.pour-grid-heading > :first-child { text-align:left; }
.pour-floor { margin-top:6px; align-items:stretch; }
.pour-floor-name { align-self:center; color:var(--soft); font-size:11px; overflow-wrap:anywhere; }
.pour-cell { border:1px solid #dbe2d5; border-radius:9px; background:#edf0e9; color:#26352d; padding:10px 3px; min-height:64px; min-width:0; text-align:center; cursor:pointer; font:inherit; }
.pour-cell[data-element=ВК] { grid-column:2; }
.pour-cell[data-element=ПП] { grid-column:3; }
.pour-cell.foundation { grid-column:2/-1; }
.pour-cell.partial { background:#f5e8bc; color:#5b481b; }
.pour-cell.complete { background:#dce9d5; color:#2c5032; }
.pour-cell.over { background:#354b3c; color:#fff; }
.pour-cell:disabled { opacity:.55; cursor:not-allowed; }
.pour-cell b { display:block; font-size:15px; font-weight:600; line-height:1.2; }
.pour-cell em { font-size:10px; font-weight:400; font-style:normal; }
.pour-cell small { display:block; font-size:10px; margin-top:5px; }
.pour-legend { display:flex; gap:12px; flex-wrap:wrap; font-size:10px; color:var(--soft); }
.app-shell .compact-volume-card { padding:16px 12px; gap:10px; }
.pour-entry { width:min(420px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); margin:auto; overflow:auto; padding:22px 18px; border:1px solid #d6ded1; border-radius:19px; background:#fff; color:#26352d; box-shadow:0 16px 48px #0004; }
.pour-entry::backdrop { background:#15201999; }
.pour-entry:not([open]) { display:none; }
.pour-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pour-dialog-head h2 { margin:0; font-size:23px; }
.pour-close { flex:none; width:42px; height:42px; background:transparent; border:1px solid #d5decf; border-radius:50%; color:#26352d; font-size:23px; cursor:pointer; }
.pour-dialog-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px 0; margin:14px 0 16px; border-top:1px solid #dce3d7; border-bottom:1px solid #dce3d7; }
.pour-dialog-stats small { font-size:11px; color:var(--soft); }
.pour-dialog-stats b { display:block; font-size:17px; font-weight:600; }
.pour-modal-fields.note { padding:0; border:0; background:transparent; }
.pour-modal-fields > h3 { display:none; }
.pour-modal-fields form { margin:0!important; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.pour-modal-fields form > label,.pour-modal-fields form > details,.pour-modal-fields form > div { grid-column:1/-1; }
.pour-modal-fields label { width:100%; font-size:12px; }
.pour-modal-fields .pour-volume-field input { font-size:24px; min-height:56px; }
.pour-modal-fields .pour-extra,.pour-modal-fields .pour-checks { border-top:1px solid #dce3d7; padding-top:4px; }
.pour-modal-fields details > summary { min-height:42px; font-size:12px; color:var(--soft); }
.pour-modal-fields details > label { margin-top:12px; }
.pour-modal-fields .note { margin-top:10px; padding:12px; font-size:12px; }
.pour-modal-fields textarea { min-height:76px; }
.pour-modal-fields button.btn { width:100%; min-height:48px; margin:0; padding:11px; }
@media(max-width:360px) { .pour-grid-heading,.pour-floor { grid-template-columns:29px minmax(0,1fr) minmax(0,1fr); gap:5px; } .pour-cell b { font-size:14px; } }
.pour-picker { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; }
.pour-picker > span { text-align:right; }
.corpus-tabs { display:flex; gap:6px; overflow-x:auto; padding:3px 0 8px; scrollbar-width:thin; scrollbar-color:#8da181 transparent; }
.corpus-tabs button { flex:none; min-height:46px; padding:10px 13px; border:1px solid #b9c7b1; border-radius:9px; background:transparent; color:var(--ink); font:500 13px/1.3 var(--font); cursor:pointer; white-space:nowrap; }
.corpus-tabs button[aria-current=page] { background:#354b3c; color:#fff; border-color:#354b3c; }
.people-calendar { min-width:0; }
.people-month-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.people-month-heading h3 { margin:0; font-size:17px; text-transform:capitalize; }
.people-month-arrow { width:40px; min-height:44px; border:1px solid #d6ded1; border-radius:9px; color:var(--ink); background:transparent; font-size:24px; cursor:pointer; }
.people-month-arrow:disabled { opacity:.35; cursor:default; }
.people-weekdays,.people-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.people-weekdays { text-align:center; font-size:11px; color:var(--soft); }
.people-day { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:57px; min-width:0; padding:7px 0; border:1px solid transparent; border-radius:7px; background:#f0f3ec; color:var(--ink); font:500 13px/1.2 var(--font); cursor:pointer; }
.people-day small { font-size:10px; color:#687663; }
.people-day.today { background:#354b3c; color:#fff; }
.people-day.today small { color:#e3ecd9; }
.people-day.recorded:not(.today) { background:#dce8d3; border-color:#b9cca9; }
.people-day:disabled { opacity:.35; cursor:default; }
.people-today { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; background:#d9e2cf; color:var(--ink); border-radius:12px; min-height:66px; padding:15px; text-align:left; font:500 13px/1.4 var(--font); cursor:pointer; }
.people-today b { font-size:23px; font-weight:550; white-space:nowrap; }
.people-day-body { margin-top:18px; display:grid; gap:14px; }
.people-day-total b { font:500 39px/1.2 var(--font); }
.people-day-total span { font-size:13px; color:var(--soft); }
.people-record { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.people-record > b { white-space:nowrap; }
.people-edit-form,.people-create-form { display:grid!important; grid-template-columns:minmax(0,1fr); gap:14px!important; margin:0!important; }
.people-edit-form input[type=number],.people-create-form input[type=number] { font-size:26px; min-height:58px; }
.people-edit-form label,.people-create-form label { font-size:12px; }
.people-entry .people-create-form > .row { display:flex; }
.people-entry .people-create-form > label,.people-entry .people-create-form > div { min-width:0; }
.people-entry .btn { min-height:47px; }
@media(max-width:360px) { .app-shell .people-calendar { padding:16px 10px; gap:12px; } .people-month-grid { gap:3px; } .people-day { min-height:54px; font-size:12px; } .people-month-heading h3 { font-size:15px; } }
.people-entry-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.people-entry-actions button { width:100%; padding:11px!important; }
.people-optional { border-top:1px solid var(--line); padding-top:4px; }
.people-optional summary { min-height:44px; align-content:center; font-size:12px; color:var(--soft); cursor:pointer; }
.people-optional > label,.people-optional > .row { margin-top:12px; }
/* 05.11.2026: шапка на телефоне не шире экрана (Иван: «поправь»). Кнопки шапки делят ширину поровну; если кнопок больше 6 — прокрутка внутри шапки, страница не расползается. */
@media (max-width:760px) {
  .app-shell > * { min-width:0; }
  .header-navigation:not(:has(> :nth-child(7))) { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:4px; overflow:visible; margin:0 -6px; }
  .header-navigation button { min-width:0; padding-left:1px; padding-right:1px; }
  .header-navigation button > span { max-width:100%; overflow:hidden; }
}
@media (max-width:400px) { .header-navigation button { font-size:9.5px; } }
@media (max-width:370px) { .header-navigation button { font-size:9px; letter-spacing:-.02em; } .header-navigation:not(:has(> :nth-child(7))) { gap:3px; margin:0 -8px; } }
@media (max-width:340px) { .header-navigation button { font-size:8.5px; } }
