/* Pivoteka ERP 2.17.2 — access and schedule repair. */
:root{
  --d217-bg:#081426;--d217-panel:#0d1c30;--d217-panel-2:#12233a;--d217-border:#21334d;
  --d217-text:#f4f7fb;--d217-muted:#92a2b9;--d217-blue:#377dff;--d217-blue-soft:#15396f;
  --d217-green:#5bcf83;--d217-red:#ff6868;--d217-yellow:#f3bd4c;--d217-radius:12px;
}
body{background:radial-gradient(circle at 55% -20%,#122542 0,#081426 42%,#071221 100%);color:var(--d217-text)}
.desktop-shell,.desktop-main{min-width:0}.desktop-main{background:transparent}.desktop-content{padding:18px 20px 28px}
.d217-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.d217-icon.fill{fill:currentColor;stroke:none}
.tabbar__btn>span:first-child{display:inline-flex;align-items:center;justify-content:center;width:22px}.tabbar__btn{gap:10px}.tabbar__btn.active{background:linear-gradient(90deg,#174582,#173965);box-shadow:inset 0 0 0 1px rgba(94,147,255,.15)}
.d217-page{display:grid;gap:14px;min-width:0}.d217-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.d217-field{display:grid;gap:5px;min-width:170px}.d217-field label{font-size:11px;color:var(--d217-muted)}
.d217-select,.d217-input{height:42px;border:1px solid var(--d217-border);border-radius:9px;background:#0e1d31;color:var(--d217-text);padding:0 12px;outline:none}.d217-select:focus,.d217-input:focus{border-color:#477fc9;box-shadow:0 0 0 3px rgba(55,125,255,.1)}
.d217-spacer{flex:1}.d217-btn{height:40px;border-radius:9px;border:1px solid var(--d217-border);background:#11233a;color:var(--d217-text);padding:0 14px;display:inline-flex;gap:8px;align-items:center;justify-content:center;cursor:pointer}.d217-btn:hover{background:#172d49}.d217-btn.primary{background:#245ecb;border-color:#3479f2}.d217-btn.danger{color:#ff8a8a}.d217-btn:disabled{opacity:.5;cursor:not-allowed}
.d217-grid-kpi{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:9px}.d217-kpi{border:1px solid var(--d217-border);background:linear-gradient(145deg,#102139,#0c1a2d);border-radius:var(--d217-radius);padding:13px 14px;min-height:102px;display:grid;align-content:space-between;gap:7px;overflow:hidden}.d217-kpi-head{display:flex;align-items:center;gap:8px;color:var(--d217-muted);font-size:12px}.d217-kpi strong{font-size:21px;letter-spacing:-.02em}.d217-kpi small{color:var(--d217-muted)}.d217-kpi .positive{color:var(--d217-green)}.d217-kpi .negative{color:var(--d217-red)}.d217-kpi .warning{color:var(--d217-yellow)}
.d217-card{border:1px solid var(--d217-border);background:linear-gradient(145deg,rgba(15,31,52,.96),rgba(10,24,42,.96));border-radius:var(--d217-radius);min-width:0;overflow:hidden}.d217-card-head{min-height:48px;padding:10px 13px;border-bottom:1px solid var(--d217-border);display:flex;align-items:center;gap:9px}.d217-card-head h3{font-size:13px;margin:0}.d217-card-head .meta{margin-left:auto;color:var(--d217-muted);font-size:11px}.d217-card-body{padding:12px}
.d217-layout-3{display:grid;grid-template-columns:minmax(440px,1.1fr) minmax(350px,.9fr) minmax(300px,.68fr);gap:10px;align-items:stretch}.d217-stack{display:grid;gap:10px;min-width:0}.d217-detail{position:sticky;top:12px;max-height:calc(100vh - 170px);overflow:auto}.d217-tabs{display:flex;gap:20px;border-bottom:1px solid var(--d217-border);padding:0 4px}.d217-tab{border:0;background:transparent;color:var(--d217-muted);padding:12px 8px;cursor:pointer;border-bottom:2px solid transparent}.d217-tab.active{color:#fff;border-bottom-color:var(--d217-blue)}
.d217-table-wrap{overflow:auto;max-height:420px}.d217-table{width:100%;border-collapse:collapse;font-size:12px}.d217-table th{position:sticky;top:0;background:#102039;color:#b7c5d8;font-weight:600;text-align:left;padding:10px;border-bottom:1px solid var(--d217-border);z-index:2}.d217-table td{padding:8px 9px;border-bottom:1px solid rgba(33,51,77,.58);vertical-align:middle}.d217-table tr[data-select]{cursor:pointer}.d217-table tr[data-select]:hover,.d217-table tr.is-selected{background:#142c4c}.d217-cell-main{display:flex;align-items:center;gap:8px;min-width:180px}.d217-thumb{width:24px;height:38px;border-radius:4px;object-fit:contain;background:#172a43;border:1px solid var(--d217-border)}.d217-thumb-placeholder{display:grid;place-items:center;color:#7290b4}.d217-muted{color:var(--d217-muted)}
.d217-status{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 7px;font-size:10px;border:1px solid transparent}.d217-status.ok{color:#82e39e;background:#153624;border-color:#245b39}.d217-status.info{color:#83b2ff;background:#132f5c;border-color:#244f93}.d217-status.warning{color:#f3ca70;background:#382d15;border-color:#665022}.d217-status.error{color:#ff8585;background:#3f1d27;border-color:#68313e}.d217-status.muted{color:#acb8c9;background:#1b2a3d;border-color:#2a3a51}
.d217-list{display:grid;gap:7px}.d217-list-item{border:1px solid var(--d217-border);background:#102139;border-radius:9px;padding:10px;cursor:pointer}.d217-list-item:hover,.d217-list-item.is-selected{border-color:#3e78d4;background:#15325b}.d217-list-top{display:flex;gap:7px;align-items:center}.d217-list-top strong{font-size:12px}.d217-list-item p{margin:6px 0 0;font-size:11px;color:var(--d217-muted)}.d217-progress{height:5px;border-radius:4px;background:#1a2d47;overflow:hidden;margin-top:8px}.d217-progress>span{display:block;height:100%;background:#397cff;border-radius:4px}
.d217-detail h2{font-size:17px;margin:8px 0 13px}.d217-detail-grid{display:grid;gap:9px}.d217-detail-row{display:flex;align-items:start;justify-content:space-between;gap:10px;font-size:11px}.d217-detail-row span:first-child{color:var(--d217-muted)}.d217-divider{height:1px;background:var(--d217-border);margin:12px 0}.d217-detail-section h4{font-size:12px;margin:0 0 8px}.d217-source{border:1px dashed #2a4263;border-radius:9px;padding:9px;margin-top:9px;color:var(--d217-muted);font-size:10px}.d217-source strong{color:#dbe7f6}.d217-empty{display:grid;place-items:center;text-align:center;min-height:120px;padding:20px;color:var(--d217-muted)}.d217-empty .d217-icon{width:28px;height:28px;margin-bottom:7px}.d217-action-card{border:1px solid #5f4b24;background:#2b2518;color:#f2d58d;border-radius:9px;padding:10px;display:flex;gap:10px;align-items:start}.d217-action-card.error{border-color:#68313e;background:#321b24;color:#ffacac}.d217-action-card button{margin-left:auto;white-space:nowrap}
.d217-bars{display:grid;gap:8px}.d217-bar-row{display:grid;grid-template-columns:minmax(130px,1fr) 90px 70px;gap:8px;align-items:center;font-size:11px}.d217-bar-line{height:5px;background:#1b2e49;border-radius:5px;overflow:hidden}.d217-bar-line span{display:block;height:100%;background:#3e83ff}.d217-chart{height:210px;display:flex;align-items:end;gap:3px;padding:12px 4px 4px}.d217-chart-bar{flex:1;min-width:3px;background:linear-gradient(#4d8dff,#2455ac);border-radius:4px 4px 0 0;position:relative}.d217-chart-bar:hover:after{content:attr(data-title);position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#050d18;padding:5px 7px;border-radius:5px;white-space:nowrap;font-size:10px;z-index:3}
.d217-dashboard-grid{display:grid;grid-template-columns:1.15fr 1.45fr .95fr;gap:10px}.d217-mini-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.d217-alerts{display:grid;gap:7px}.d217-alert{padding:9px;border-left:3px solid var(--d217-yellow);background:#142337;border-radius:6px}.d217-alert.error{border-color:var(--d217-red)}.d217-alert strong{display:block;font-size:11px}.d217-alert p{font-size:10px;color:var(--d217-muted);margin:4px 0 0}
.d217-bank-cards{display:flex;gap:8px;overflow:auto;padding-bottom:2px}.d217-bank-card{min-width:200px;border:1px solid var(--d217-border);background:#102139;border-radius:10px;padding:11px;cursor:pointer}.d217-bank-card.is-selected{border-color:#397cff;box-shadow:inset 0 0 0 1px #397cff}.d217-bank-card strong{display:block;margin:8px 0 3px}.d217-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.38fr);gap:10px}
.d217-people{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:10px}.d217-avatar{width:34px;height:34px;border-radius:50%;background:#234c82;display:grid;place-items:center;font-weight:700;color:#dceaff;overflow:hidden;flex:0 0 auto}.d217-avatar.large{width:62px;height:62px;font-size:20px}.d217-person-head{display:flex;gap:11px;align-items:center}.d217-timeline{display:grid;gap:8px}.d217-timeline-item{border-left:2px solid #315a91;padding-left:9px}.d217-timeline-item small{color:var(--d217-muted)}
.d217-integration-grid{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:9px}.d217-integration-card{padding:13px}.d217-integration-card header{display:flex;justify-content:space-between;align-items:center}.d217-integration-card h3{margin:10px 0 4px;font-size:15px}.d217-integration-card p{margin:0;color:var(--d217-muted);font-size:11px}.d217-node{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px;border-bottom:1px solid var(--d217-border)}
.d217-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:420px;overflow:auto;border:1px solid var(--d217-border);background:#0b182a;border-radius:10px;box-shadow:0 18px 45px rgba(0,0,0,.45);z-index:1000;padding:6px}.global-search{position:relative}.d217-search-result{display:block;width:100%;text-align:left;border:0;background:transparent;color:#fff;padding:9px;border-radius:7px;cursor:pointer}.d217-search-result:hover{background:#15325b}.d217-search-result small{display:block;color:var(--d217-muted);margin-top:2px}
.notification-btn b:empty{display:none}.desktop-status-pill.is-warning{color:#f3ca70}.desktop-status-pill.is-error{color:#ff8585}.desktop-status-pill.is-off{color:#a9b6c8}.desktop-status-pill span{background:currentColor}
@media(max-width:1450px){.d217-grid-kpi{grid-template-columns:repeat(3,1fr)}.d217-layout-3{grid-template-columns:minmax(390px,1fr) minmax(330px,.85fr)}.d217-layout-3>.d217-detail{grid-column:1/-1;position:static;max-height:none}.d217-dashboard-grid{grid-template-columns:1fr 1fr}.d217-dashboard-grid>:last-child{grid-column:1/-1}.d217-integration-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.d217-grid-kpi{grid-template-columns:repeat(2,1fr)}.d217-layout-3,.d217-dashboard-grid,.d217-split,.d217-people{grid-template-columns:1fr}.d217-integration-grid{grid-template-columns:repeat(2,1fr)}.d217-detail{position:static;max-height:none}}

/* 2.17.2 accessibility and functional controls */
.d217-card,.d217-kpi,.d217-btn,.d217-input,.d217-select{color:var(--d217-text)}
.d217-muted,.d217-card p,.d217-source{line-height:1.45}
.d217-avatar img,.employee-avatar img,.employee-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.d217-photo-actions,.employee-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.employee-photo-editor{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center;padding:14px;border:1px solid var(--d217-border);border-radius:10px;background:#0c1a2d;margin:12px 0}
.employee-photo-preview{width:88px;height:88px;border-radius:50%;overflow:hidden;background:#234c82;color:#dceaff;display:grid;place-items:center;font-size:24px;font-weight:700}
.f-lock-mark,.schedule-lock-mark{display:inline-flex;align-items:center;justify-content:center;gap:3px;color:#ff9b9b;max-width:100%}
.f-lock-mark .d217-icon,.schedule-lock-mark .d217-icon{width:15px;height:15px;flex:0 0 auto}
.f-lock-mark small,.schedule-lock-mark small{font-size:7px;line-height:1.05;max-width:52px;overflow:hidden;text-overflow:ellipsis}
.f-shift-cell.conflict,.schedule-cell.is-conflict{border:1px solid #8d4050!important;background:#3a1d2a!important;color:#ffd1d1!important;opacity:1!important}
.employee-avatar{overflow:hidden}
.f-modal,.d217-modal-backdrop .f-modal{color:#f4f7fb;background:#0d1c30}
.f-modal label,.f-modal h3,.f-modal h4{color:#f4f7fb}
.f-modal .muted,.f-modal small{color:#aebdd0}
@media (min-width:1100px){.d217-card-head h3{font-size:14px}.d217-detail-row{font-size:12px}.d217-list-item p{font-size:12px}.d217-status{font-size:11px}}


/* 2.17.2 cumulative readability and interaction repair. Loaded last on purpose. */
:root{--d217-text:#f4f7ff;--d217-muted:#aebbd1;--d217-subtle:#8fa0bb;--d217-panel:#111a2b;--d217-panel-2:#162238;--d217-border:rgba(173,192,224,.22)}
#screen,.d217-page,.f-page{color:var(--d217-text)}
.muted,.d217-muted,.f-muted,.f-page small,.schedule-lock-label{color:var(--d217-muted)!important}
.d217-card,.f-card,.card{border-color:var(--d217-border)}
.d217-table th,.f-table th{font-size:12px!important;letter-spacing:.025em;color:#c8d3e6!important}
.d217-table td,.f-table td{font-size:13px!important;line-height:1.42;color:#edf2fb}
.d217-btn,.primary-btn,.soft-btn,.icon-btn{min-height:36px;font-size:13px;font-weight:650}
.d217-btn:focus-visible,.primary-btn:focus-visible,.soft-btn:focus-visible,.icon-btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #65a4ff!important;outline-offset:2px}
.d217-employee-avatar img,.employee-photo img,.eerp-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.schedule-lock-mark,.f-lock-mark{display:inline-flex!important;align-items:center;justify-content:center;width:18px;height:18px;color:#ffd56a;background:rgba(255,184,0,.16);border:1px solid rgba(255,213,106,.48);border-radius:5px;vertical-align:middle}
.schedule-lock-mark svg,.f-lock-mark svg{width:12px;height:12px;stroke:currentColor}
.schedule-cell.is-locked,.f-shift.is-locked{box-shadow:inset 0 0 0 1px rgba(255,213,106,.5);background:linear-gradient(180deg,rgba(255,184,0,.13),rgba(255,184,0,.05))}
.f-modal-backdrop{z-index:10000;background:rgba(3,8,18,.78);backdrop-filter:blur(5px)}
.f-modal{color:#f3f7ff;background:#111a2b;border:1px solid rgba(173,192,224,.28)}
.f-modal input,.f-modal select,.f-modal textarea{color:#f5f7ff;background:#0c1423;border-color:rgba(173,192,224,.3)}
button[disabled]{cursor:not-allowed;opacity:.55}
@media (max-width:1280px){.d217-layout-3{grid-template-columns:minmax(0,1fr) minmax(280px,.72fr)}.d217-layout-3>.d217-detail{grid-column:1/-1}}

/* Pivoteka ERP 2.17.2 — per-user access and stable schedule workspace. */
.tabbar__btn.is-access-locked{opacity:.72;filter:saturate(.65);position:relative}
.tabbar__btn.is-access-locked::after{content:"нет доступа";margin-left:auto;font-size:8px;line-height:1;text-transform:uppercase;letter-spacing:.04em;color:#f0bf73;border:1px solid rgba(240,191,115,.38);border-radius:999px;padding:3px 5px}
.tabbar__btn.is-access-locked:hover{opacity:1;background:#14243a}
.route-access-denied{min-height:460px;border:1px solid var(--d217-border);border-radius:16px;background:linear-gradient(145deg,#102139,#0b182a);display:grid;place-items:center;align-content:center;text-align:center;gap:10px;padding:48px;color:var(--d217-text)}
.route-access-denied__icon{width:70px;height:70px;border-radius:22px;display:grid;place-items:center;background:#172d49;border:1px solid #2d4d76;font-size:30px}
.route-access-denied h2{margin:4px 0 0;font-size:25px}.route-access-denied p{margin:0;font-size:15px}.route-access-denied small{max-width:650px;color:#aebed2;line-height:1.55}
.access-section-matrix{display:grid;grid-template-columns:repeat(2,minmax(230px,1fr));gap:10px;margin:12px 0}
.access-section-group{border:1px solid var(--d217-border);border-radius:12px;background:#0b182a;padding:11px;display:grid;gap:7px}.access-section-group h4{margin:0 0 3px;color:#cfe0f4;font-size:12px}
.access-section-switch{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;gap:10px;min-height:36px;padding:6px 8px;border-radius:9px;background:#102139;color:#dce7f5;font-size:11px;cursor:pointer}.access-section-switch:hover{background:#142b49}.access-section-switch input{position:absolute;opacity:0;pointer-events:none}.access-section-switch i{width:38px;height:21px;border-radius:999px;background:#26384f;border:1px solid #394d67;position:relative;transition:.18s}.access-section-switch i::after{content:"";position:absolute;width:15px;height:15px;left:2px;top:2px;border-radius:50%;background:#95a5b9;transition:.18s}.access-section-switch input:checked+i{background:#1f63d2;border-color:#4388ff}.access-section-switch input:checked+i::after{left:19px;background:#fff;box-shadow:0 0 10px rgba(255,255,255,.35)}
.compensation-mask{display:inline-flex;align-items:center;letter-spacing:.16em;color:#b9c6d8!important;filter:blur(.35px);user-select:none}
.compensation-hidden-card{border:1px dashed #3a526f!important;border-radius:11px!important;background:#101d30!important;padding:12px!important;color:#c8d6e8!important}.compensation-hidden-card strong,.compensation-hidden-card span,.compensation-hidden-card p{display:block;margin:0}.compensation-hidden-card p{margin-top:5px;color:#93a5bc;font-size:11px;line-height:1.45}.compensation-hidden-card .compensation-mask{margin-top:7px;font-size:18px}.finance-form-grid__wide{grid-column:1/-1}

/* Schedule: one authoritative store selector, readable calendar and persistent viewport. */
.f-schedule-page{min-width:0}.f-schedule-layout{grid-template-columns:minmax(0,1fr) 300px}.f-schedule-scroll{max-width:100%;max-height:calc(100vh - 325px);min-height:420px;scrollbar-gutter:stable both-edges;overscroll-behavior:contain;scroll-behavior:auto;outline:none;box-shadow:inset 0 0 0 1px rgba(77,112,158,.04)}
.f-schedule-scroll:focus{border-color:#3f73b9;box-shadow:0 0 0 3px rgba(55,125,255,.12)}
.f-schedule-scroll::-webkit-scrollbar{height:15px;width:13px}.f-schedule-scroll::-webkit-scrollbar-track{background:#081220;border-radius:8px}.f-schedule-scroll::-webkit-scrollbar-thumb{background:#39516f;border:3px solid #081220;border-radius:9px}.f-schedule-scroll::-webkit-scrollbar-thumb:hover{background:#4b6b92}
.f-schedule th{height:62px;min-width:54px;background:#132641;color:#d8e5f4;font-size:12px}.f-schedule th b{display:block;font-size:14px;color:#fff;line-height:1.15}.f-schedule th small{display:block;margin-top:4px;font-size:10px;color:#9fb2cb;text-transform:uppercase;letter-spacing:.03em}.f-schedule th.weekend{background:#1b2940;color:#f3b6be}.f-schedule th.weekend small{color:#e6a7b0}.f-schedule th.is-today{background:#183c70;box-shadow:inset 0 -3px 0 #4c91ff}.f-schedule th:first-child{min-width:258px;width:258px;padding:0 14px;font-size:12px;background:#142944;color:#fff}
.f-schedule td{height:62px;min-width:54px;background:#091628}.f-schedule td:first-child{min-width:258px;width:258px;padding:7px 10px;background:#0f2036;box-shadow:5px 0 12px rgba(2,8,17,.2)}.f-schedule tr:hover td{background-color:rgba(27,54,88,.42)}.f-schedule tr:hover td:first-child{background:#152a46}.f-schedule td.weekend{background:rgba(121,63,80,.08)}.f-schedule td.is-today{box-shadow:inset 2px 0 0 rgba(76,145,255,.34),inset -2px 0 0 rgba(76,145,255,.18)}
.f-person{min-width:0}.f-person>div{min-width:0}.f-person b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;color:#fff}.f-person small{display:flex;align-items:center;gap:5px;color:#92a6bf}.f-person .ghost-btn{height:25px;padding:0 7px;font-size:10px}
.f-drag-handle{width:26px;height:32px;border:1px solid #314964;border-radius:7px;background:#132641;color:#a9bdd6;cursor:grab;display:grid;place-items:center;font-weight:900;letter-spacing:-2px;padding:0}.f-drag-handle:active{cursor:grabbing}.f-drag-handle:disabled{opacity:.35;cursor:not-allowed}.f-schedule-row.is-dragging{opacity:.45}.f-schedule-row.is-drag-over td{box-shadow:inset 0 3px 0 #5d9cff}.f-schedule-row.is-drag-over td:first-child{background:#17345b}
.f-shift-cell{min-width:54px;padding:3px;color:#8295ac;transition:background .12s,border-color .12s,transform .08s}.f-shift-cell:hover:not([aria-disabled="true"]){background:#142d4c;color:#dce9fa;box-shadow:inset 0 0 0 1px #39658e}.f-shift-cell:active:not([aria-disabled="true"]){transform:scale(.97)}.f-shift-cell b{display:block;font-size:14px;line-height:1;color:#fff}.f-shift-cell small{font-size:9px;color:#abc0d9}.f-shift-cell.is-locked,.f-shift-cell[aria-disabled="true"].is-locked{cursor:not-allowed;background:rgba(124,45,64,.22);box-shadow:inset 0 0 0 1px rgba(255,104,124,.28)}.f-shift-cell.is-locked:hover{background:rgba(124,45,64,.28)}.f-shift-cell.is-today{box-shadow:inset 0 0 0 1px rgba(86,151,255,.34)}
.f-lock-mark{display:grid;place-items:center;gap:2px;color:#ff9aab;line-height:1}.f-lock-mark .d217-icon{width:17px;height:17px}.f-lock-mark small{max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffb0bc;font-size:7px}
.f-hours-editor{display:grid;gap:12px}.f-hours-editor p{margin:0;line-height:1.5}.f-hours-editor label{display:grid;gap:7px;font-size:12px;color:#c4d3e5}.f-hours-editor input{height:52px;font-size:22px;font-weight:800;text-align:center}.f-hours-editor+.muted{line-height:1.5}
.f-schedule-head .f-top-actions{align-items:center}.f-schedule-head .js-f-schedule-month{min-width:145px}.f-version-box>div{min-width:95px}.f-side-panel{max-height:calc(100vh - 120px);overflow:auto}.f-side-panel .f-lock-mark{display:inline-flex;grid-auto-flow:column;gap:5px}.f-schedule-page .helper-banner.warning{border-color:#6b5225;background:#2a2418;color:#f2d58d}
@media(max-width:1350px){.access-section-matrix{grid-template-columns:1fr}.f-schedule-layout{grid-template-columns:1fr}.f-side-panel{position:static;max-height:none}.f-schedule-scroll{max-height:650px}.f-schedule th:first-child,.f-schedule td:first-child{min-width:230px;width:230px}}

/* 2.17.2 — employee-first access editor */
.access-workspace{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:16px;align-items:start}
.access-user-browser{position:sticky;top:92px;display:grid;gap:10px;max-height:calc(100vh - 130px);overflow:hidden}
.access-user-list{display:grid;gap:7px;overflow:auto;padding-right:4px;scrollbar-gutter:stable}
.access-user-select{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 10px;gap:10px;align-items:center;text-align:left;border:1px solid #263d5d;border-radius:12px;background:#0e1d31;color:#e8f1fb;padding:10px;cursor:pointer;transition:.16s ease}
.access-user-select:hover{border-color:#4f78ae;background:#132842}.access-user-select.is-selected{border-color:#5d9cff;background:#17345b;box-shadow:0 0 0 1px rgba(93,156,255,.22)}
.access-user-select__avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#244a78;color:#fff;font-weight:800;font-size:12px}
.access-user-select>span:nth-child(2){min-width:0;display:grid;gap:2px}.access-user-select b,.access-user-select small,.access-user-select em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.access-user-select b{font-size:13px}.access-user-select small{color:#9fb1c7;font-size:10px}.access-user-select em{font-style:normal;color:#79a9ed;font-size:10px}
.access-user-select>i{width:8px;height:8px;border-radius:50%;background:#54657b}.access-user-select>i.is-online{background:#28d69a;box-shadow:0 0 0 4px rgba(40,214,154,.10)}
.access-editor{min-width:0}.access-editor .access-user-card{margin:0}.route-access-denied__icon svg{width:32px;height:32px;stroke:currentColor}
@media(max-width:980px){.access-workspace{grid-template-columns:1fr}.access-user-browser{position:static;max-height:none}.access-user-list{max-height:300px}}

/* 2.18.0 — year-first schedule editor foundation */
.f-schedule-v218{gap:12px}.f-schedule-commandbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border:1px solid #263b58;border-radius:14px;background:#0d1b2e;position:sticky;top:0;z-index:20}.f-year-control,.f-command-actions,.f-schedule-filters{display:flex;align-items:center;gap:8px}.f-year-control b{font-size:18px;color:#fff;min-width:110px;text-align:center}.f-year-control .soft-btn{width:36px;padding:0}.f-schedule-filters{flex:1}.f-schedule-filter{height:36px;border:1px solid #2a405f;border-radius:10px;background:#11223a;color:#b9c9dc;padding:0 13px;cursor:pointer}.f-schedule-filter:hover,.f-schedule-filter.is-active{background:#1a3760;color:#fff;border-color:#4e7db9}.f-schedule-filter b{margin-left:6px;color:#ff8799}.f-command-actions{margin-left:auto}.f-save-state{font-size:11px;color:#91a5bf}.f-save-state.is-dirty{color:#ffd36c}.f-point-tabs{display:flex;gap:6px;overflow:auto;padding:2px 0 6px;scrollbar-width:thin}.f-point-tab{display:flex;align-items:center;gap:8px;white-space:nowrap;height:42px;padding:0 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:#aebfd2;cursor:pointer}.f-point-tab:hover{color:#fff;background:#11233a}.f-point-tab.is-active{color:#fff;border-bottom-color:#4b91ff;background:#10233c}.f-point-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto;background:#65758a}.f-point-dot.published{background:#36c879}.f-point-dot.draft{background:#ffc53d}.f-point-dot.warning{background:#ff9f43}.f-point-dot.conflict{background:#ff5c72}.f-point-dot.empty,.f-point-dot.neutral{background:#78869a}.f-month-strip{display:grid;grid-template-columns:repeat(12,minmax(42px,1fr));gap:5px}.f-month-strip button{height:30px;border:1px solid #263b58;border-radius:8px;background:#0d1b2e;color:#8fa3bc;cursor:pointer}.f-month-strip button:hover,.f-month-strip button.is-active{background:#1c4f8f;color:#fff;border-color:#4f91e7}.f-month-card{border:1px solid #263d5d;border-radius:15px;background:#091526;overflow:hidden}.f-month-card.is-working{border-color:#3e82da;box-shadow:0 0 0 1px rgba(62,130,218,.16)}.f-month-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #243a57;background:#0f1f35}.f-month-card__head h2{margin:0;color:#fff;font-size:20px}.f-month-card__head h2 span{display:inline-flex;margin-left:8px;padding:4px 8px;border-radius:7px;background:#17375e;color:#78b0fa;font-size:10px;vertical-align:middle}.f-month-card__head p{margin:4px 0 0;color:#91a5bf;font-size:11px}.f-month-status{display:flex;align-items:center;gap:7px;color:#afbed0;font-size:11px}.f-month-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid #223650;background:#0b192b}.f-month-tools .select{max-width:220px}.f-month-tools .js-f-pattern-day{width:74px}.f-schedule-v218 .f-schedule-scroll{border:0;border-radius:0;max-height:calc(100vh - 390px);min-height:390px}.f-schedule-v218 .f-schedule th{min-width:42px;height:48px}.f-schedule-v218 .f-schedule td{min-width:42px;height:48px}.f-schedule-v218 .f-schedule th:first-child,.f-schedule-v218 .f-schedule td:first-child{min-width:220px;width:220px}.f-schedule-v218 .f-shift-cell{min-width:42px;height:38px;border-radius:7px}.f-schedule-v218 .f-shift-cell.has-shift{background:#193a67;border:1px solid #376aa5;color:#fff}.f-schedule-v218 .f-schedule th.is-uncovered{background:#40212b}.f-schedule-v218 .f-schedule th.is-uncovered em{font-style:normal;color:#ff687d}.f-schedule-v218 .f-schedule td.is-uncovered{background-image:linear-gradient(135deg,rgba(255,93,113,.035) 25%,transparent 25%,transparent 50%,rgba(255,93,113,.035) 50%,rgba(255,93,113,.035) 75%,transparent 75%,transparent);background-size:8px 8px}.f-month-footer{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #223650;background:#0d1b2e;color:#91a5bf;font-size:11px}.f-month-footer span:last-child{margin-left:auto}.f-month-footer b{color:#e7f0fb}.f-negative{color:#ff788b!important}
@media(max-width:1100px){.f-schedule-commandbar{position:static}.f-schedule-filters{order:3;width:100%;overflow:auto}.f-month-strip{grid-template-columns:repeat(6,1fr)}.f-month-footer span:last-child{margin-left:0}.f-schedule-v218 .f-schedule-scroll{max-height:620px}}
