.zone-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin: -7px 0 17px; }
.zone-switcher a { border: 1px solid #d7dfed; border-radius: 8px; background: #fff; color: #53627e; padding: 7px 11px; font-size: 13px; text-decoration: none; }
.zone-switcher a.selected { background: #eaf1ff; border-color: #b9d1ff; color: #1f5cdd; font-weight: 650; }
.zone-select { margin-left: auto; width: 170px; border: 1px solid #cbd8ed; border-radius: 7px; background: #fff; color: #30415f; padding: 7px 28px 7px 9px; font-size: 13px; }
.reconciliation-table > .manager-adjustment { display:grid; grid-template-columns:160px minmax(280px,1fr) 150px; gap:16px; align-items:end; padding:16px 18px; background:#fbfcfe; border-bottom:1px solid #e5eaf2; }.manager-adjustment label { display:grid; min-width:0; gap:6px; color:#697891; font-size:12px; }.manager-adjustment input { width:100%; height:38px; border:1px solid #d7dfed; border-radius:7px; padding:0 10px; color:#263552; background:#fff; }.manager-adjustment button { width:150px; height:38px; border:1px solid #b9caf0; border-radius:7px; background:#fff; color:#2457cc; font-size:13px; font-weight:650; padding:0 14px; white-space:nowrap; }.manager-adjustment .form-error { grid-column:2 / -1; }
.manager-savebar .secondary-action { background: #1662de; }
.manager-savebar .secondary-action:disabled { background:#1f8d57; color:#fff; opacity:1; cursor:default; }
.manager-savebar .secondary-action.is-confirming:disabled { background:#7898d6; cursor:wait; }
.manager-savebar button span { display:inline; }
@media (min-width:901px) { .mobile-app-navigation { display:none; } }
.manager-reconciliation-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 10px; }
.manager-reconciliation-tools .search { width:min(420px,100%); }
.manager-ledger-count { margin:0; color:#60718e; font-size:13px; }
.manager-ledger-count strong { color:#183768; font-weight:700; }
.manager-filter-row { margin: 12px 0 14px; }
.manager-reconciliation-table > .manager-summary-header,
.manager-reconciliation-table > .manager-summary-row { grid-template-columns:74px minmax(260px,1fr) 100px 100px 100px; }
.manager-summary-header .sortable-heading { color:#7c8aa5; }
.manager-summary-header .sortable-heading.is-active { color:#245fdc; }
.manager-dish-preview,
.manager-summary-row > .dish-visual { width:62px; height:52px; }
.manager-dish-preview .dish-preview-icon { width:22px; height:22px; }
.manager-summary-row { min-height:76px; }
.manager-revision-details { padding:0 18px; border-bottom:1px solid #e5eaf2; background:#fbfcfe; }
.manager-revision-details summary { display:flex; align-items:center; min-height:42px; cursor:pointer; color:#2457cc; font-size:12px; font-weight:650; }
.manager-revision-details summary::marker { color:#2457cc; }
.manager-details-content { display:grid; gap:14px; padding:0 0 14px; }
.manager-details-content section { display:grid; gap:8px; }
.manager-details-content h3 { margin:0; color:#263552; font-size:12px; }
.manager-revision-details dl { display:grid; grid-template-columns:repeat(2, minmax(0, 180px)) minmax(220px, 1fr); gap:12px 20px; margin:0; }
.manager-revision-details dl > div { display:grid; gap:3px; min-width:0; }
.manager-revision-details dt { color:#72819a; font-size:11px; }
.manager-revision-details dd { margin:0; color:#263552; font-size:13px; overflow-wrap:anywhere; }
.manager-revision-details .manager-revision-reason { grid-column:auto; }
.manager-summary-empty { display:block!important; padding:42px 18px!important; text-align:center; color:#7b89a1!important; }
.vera-inventory-table { --vera-list-columns: minmax(210px, 1fr) 120px 210px 110px 130px 240px; }
.vera-inventory-tools { display:grid; grid-template-columns:minmax(230px, 1fr) repeat(2, minmax(140px, .55fr)) repeat(2, minmax(120px, .42fr)) auto; gap:10px; align-items:end; margin:0 0 12px; }
.vera-inventory-tools .search { width:100%; }
.vera-inventory-tools > label:not(.search) { display:grid; gap:5px; color:#74839b; font-size:11px; }
.vera-inventory-tools select,.vera-inventory-tools input[type="date"] { width:100%; height:38px; border:1px solid #d7dfed; border-radius:7px; background:#fff; color:#30415f; padding:0 9px; font:inherit; }
.vera-filters-reset { height:38px; border:1px solid #b9caf0; border-radius:7px; background:#fff; color:#2457cc; padding:0 12px; font-size:13px; font-weight:650; cursor:pointer; }
@media (max-width:1100px) { .vera-inventory-tools { grid-template-columns:repeat(3, minmax(150px, 1fr)); } .vera-inventory-tools .search { grid-column:span 3; } }
@media (max-width:900px) { .vera-inventory-tools { grid-template-columns:1fr 1fr; } .vera-inventory-tools .search { grid-column:1 / -1; } .vera-filters-reset { grid-column:1 / -1; } }
.vera-table-head-actions,
.vera-inventory-row-actions { grid-template-columns: var(--vera-list-columns)!important; }
.vera-table-head-actions > *,
.vera-inventory-row-actions > * { min-width:0; }
.vera-table-head-actions > :not(:first-child),
.vera-inventory-row-actions > :not(:first-child):not(.vera-actions) { text-align:center; }
.vera-inventory-row-actions { cursor: default; }.vera-inventory-row-actions > a { min-width: 0; color: #263552; text-decoration: none; }.vera-actions { display: flex; justify-content:flex-end; gap: 8px; align-items: center; min-width: 0; }.vera-actions a, .vera-actions button { border: 1px solid #b9caf0; border-radius: 7px; background: #fff; color: #2457cc; padding: 6px 9px; font-size: 12px; font-weight: 650; text-decoration: none; white-space:nowrap; }.vera-actions button { cursor: pointer; }
.vera-restaurant-name { color:#63728c; }.vera-actions .is-destructive { color:#b42334; border-color:#edb9c0; }.vera-actions .is-destructive:hover { background:#fff1f2; }.vera-actions button:focus-visible { outline:2px solid #2457cc; outline-offset:2px; }.status-pill.cancelled { color:#65728c; background:#eef1f6; }
@media (max-width:900px) { .vera-inventory-row-actions > .vera-restaurant-name { grid-column:1 / -1; } .vera-inventory-row-actions .vera-actions { flex-wrap:wrap; } }
.nav-badge { display:grid; place-items:center; min-width:20px; height:20px; margin-left:auto; padding:0 6px; border:2px solid #142f75; border-radius:999px; background:#e33f4f; color:#fff; font-size:11px; line-height:1; box-shadow:0 2px 8px rgba(114,9,27,.35); }
.portal-admin-indicator { display:flex; gap:8px; align-items:flex-start; margin:0 0 14px; padding:10px; border:1px solid rgba(169,197,255,.52); border-radius:9px; background:rgba(43,104,232,.2); color:#dce9ff; }
.portal-admin-indicator > svg { flex:0 0 auto; color:#a9c9ff; }
.portal-admin-indicator div { display:grid; gap:3px; min-width:0; }
.portal-admin-indicator strong { color:#fff; font-size:11px; line-height:1.3; }
.portal-admin-indicator small { color:#bed3fc; font-size:10px; line-height:1.35; }
.workspace-test-exit { margin-top:8px; }.workspace-test-exit button { width:100%; border:1px solid rgba(169,197,255,.52); border-radius:7px; background:transparent; color:#dce9ff; padding:7px 8px; font-size:10px; cursor:pointer; }.workspace-test-exit button:hover { background:rgba(255,255,255,.1); }
.breadcrumb-back { color:#2865eb; font-weight:650; text-decoration:none; }.breadcrumb-back:hover { text-decoration:underline; }
.nav-item.active .nav-badge { border-color:#2b68e8; }
.manager-task-list { max-width:1280px; }
.manager-list-title { margin-bottom:22px; }
.manager-list-title p { margin:8px 0 0; color:#7887a1; font-size:14px; }
.manager-inventory-list { --inventory-card-columns:44px minmax(230px,1fr) 120px 190px 110px 140px 20px; display:grid; gap:12px; }
.manager-inventory-card { display:grid; grid-template-columns:var(--inventory-card-columns); gap:14px; align-items:center; min-height:78px; padding:14px 18px; border:1px solid #dce4ef; border-radius:12px; background:#fff; color:#263552; text-decoration:none; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.manager-inventory-card:hover { border-color:#a9c2f5; box-shadow:0 8px 22px rgba(30,71,145,.08); transform:translateY(-1px); }
.manager-inventory-card:focus-visible { outline:3px solid rgba(40,101,235,.2); outline-offset:2px; }
.manager-inventory-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:10px; background:#eaf1ff; color:#2865eb; }
.manager-inventory-copy { display:grid; gap:5px; }
.manager-inventory-copy strong { font-size:15px; color:#17305e; }
.manager-inventory-copy small,.manager-inventory-meta small { color:#8190a8; }
.manager-inventory-meta { display:grid; gap:4px; }
.manager-inventory-meta strong { color:#31415f; }
.manager-inventory-arrow { color:#2865eb; font-size:27px; font-weight:300; text-align:right; }
.employee-task-list .manager-inventory-list { --inventory-card-columns:44px minmax(230px,1fr) 190px 110px 170px 78px; }
.employee-inventory-card { grid-template-columns:var(--inventory-card-columns); }
.employee-inventory-card.is-closed { cursor:default; background:#fbfcfe; }
.employee-inventory-card.is-closed:hover { border-color:#dce4ef; box-shadow:none; transform:none; }
.employee-inventory-closed { color:#72819a; font-size:12px; font-weight:650; text-align:right; }
.employee-assignment-states { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-left:auto; }
.assignment-refresh { flex:0 0 auto; border:1px solid #b9caf0; border-radius:8px; background:#fff; color:#2457cc; padding:8px 11px; font-size:12px; font-weight:650; }
.assignment-refresh-wrap { display:grid; justify-items:end; gap:5px; flex:0 0 auto; }
.assignment-refresh-wrap small { color:#72819a; font-size:11px; }
.assignment-refresh:disabled { cursor:wait; opacity:.65; }
.manager-ledger-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.manager-excel-download { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid #b9caf0; border-radius:8px; background:#fff; color:#2457cc; font-size:12px; font-weight:650; text-decoration:none; white-space:nowrap; }
.manager-excel-download:hover { background:#edf3ff; }
.manager-excel-download:focus-visible { outline:2px solid #2457cc; outline-offset:2px; }
.assignment-state { padding:6px 9px; border-radius:999px; font-size:12px; font-weight:650; white-space:nowrap; }
.assignment-state.is-complete { color:#167a45; background:#e8f8ee; }
.assignment-state.is-pending { color:#8b5d0a; background:#fff4d8; }
.manager-savebar-status { display:grid; gap:3px; min-width:0; max-height:72px; overflow:auto; padding-right:12px; font-size:12px; }
.manager-savebar-status strong { color:#263552; }
.manager-savebar-status span { display:block; overflow-wrap:anywhere; }
@media (max-width:900px) { .manager-inventory-list { --inventory-card-columns:40px minmax(190px,1fr) 180px 20px; }.employee-task-list .manager-inventory-list { --inventory-card-columns:40px minmax(190px,1fr) 180px 20px; }.manager-inventory-meta { display:none; } }
@media (max-width:900px) { .manager-inventory-list,.employee-task-list .manager-inventory-list { --inventory-card-columns:40px 1fr 18px; }.manager-inventory-card { gap:10px; padding:13px; }.manager-inventory-card .status-pill { grid-column:2; }.manager-inventory-arrow { grid-column:3; grid-row:1/3; }.employee-inventory-closed { grid-column:3; grid-row:1/3; font-size:0; }.employee-inventory-closed::after { content:'—'; font-size:18px; }.manager-list-title h1 { font-size:25px; }.reconciliation-table > .manager-adjustment { grid-template-columns:1fr; }.manager-adjustment button { width:100%; }.manager-adjustment .form-error { grid-column:1; }.manager-reconciliation-tools { align-items:stretch; flex-direction:column; }.manager-reconciliation-tools .search { width:100%; }.manager-reconciliation-table { min-width:820px; }.manager-revision-details dl { grid-template-columns:1fr; gap:9px; }.manager-revision-details .manager-revision-reason { grid-column:auto; }.vera-inventory-row-actions { grid-template-columns:1fr auto!important; }.vera-inventory-row-actions > a { grid-column:1 / -1; }.vera-actions { grid-column:1 / -1; }.employee-row { flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }.employee-assignment-states { flex-basis:100%; justify-content:flex-start; margin-left:45px; }.manager-savebar { flex-direction:column; align-items:stretch; height:auto; min-height:0; gap:6px; padding-top:8px; padding-bottom:8px; }.manager-savebar-status { flex:none; max-height:64px; padding-right:0; font-size:11px; }.manager-savebar .manager-savebar-status span { display:block; }.manager-savebar button { width:100%; min-width:0; height:40px; padding:0 10px; font-size:12px; } }
.vera-inventory-open { display:grid; gap:3px; }
.vera-inventory-open small { color:#6b82a9; font-size:11px; }
.vera-inventory-open:hover strong { color:#2457cc; text-decoration:underline; }
.vera-detail-screen { max-width:1280px; padding-bottom:35px; }
.vera-detail-title { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:10px 0 22px; }
.vera-detail-title h1 { margin:0; color:#13294f; font-size:28px; }
.vera-detail-title p { margin:6px 0 0; color:#72819a; font-size:13px; }
.vera-detail-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.vera-detail-metrics > div { display:grid; gap:8px; padding:18px; border:1px solid #dce4ef; border-radius:10px; background:#fff; }
.vera-detail-metrics span { color:#72819a; font-size:12px; }
.vera-detail-metrics strong { color:#183768; font-size:18px; }
.vera-detail-panel { margin-bottom:14px; padding:20px; border:1px solid #dce4ef; border-radius:11px; background:#fff; }
.vera-detail-section-title { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:15px; }
.vera-detail-section-title h2 { margin:0; color:#17294b; font-size:17px; }
.vera-detail-section-title p { margin:5px 0 0; color:#72819a; font-size:12px; line-height:1.45; }
.vera-detail-section-title .search { width:min(350px,100%); flex:0 0 auto; }
.vera-source-file { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding:14px 16px; border:1px solid #dce4ef; border-radius:9px; background:#f9fbff; }
.vera-source-file > div { display:grid; gap:5px; min-width:0; overflow-wrap:anywhere; }
.vera-source-file strong { color:#17305e; font-size:14px; }
.vera-source-file span { color:#72819a; font-size:12px; }
.vera-source-file a,.vera-detail-report a { display:inline-flex; align-items:center; min-height:38px; padding:0 14px; border-radius:8px; background:#2865eb; color:#fff; font-size:12px; font-weight:650; text-decoration:none; }
.vera-source-file .vera-source-unavailable { max-width:450px; color:#8c5c14; line-height:1.45; }
.vera-assignment-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 0; border-top:1px solid #e5eaf2; }
.vera-assignment-row > div { display:grid; gap:4px; }
.vera-assignment-row strong { color:#17305e; font-size:13px; }
.vera-assignment-row div span { color:#72819a; font-size:12px; }
.vera-detail-empty { padding:20px; color:#72819a; font-size:13px; }
.vera-source-table { border:1px solid #dce4ef; border-radius:9px; overflow:hidden; }
.vera-source-head,.vera-source-row { display:grid; grid-template-columns:130px minmax(230px,1fr) 180px 120px; gap:14px; align-items:center; padding:12px 15px; }
.vera-source-head { background:#f7f9fd; color:#72819a; font-size:11px; }
.vera-source-row { border-top:1px solid #e5eaf2; color:#53627e; font-size:12px; }
.vera-source-row strong { color:#17305e; font-size:13px; font-weight:600; }
.vera-source-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; color:#72819a; font-size:12px; }
.vera-source-footer button { border:1px solid #b9caf0; border-radius:7px; background:#fff; color:#2457cc; padding:8px 12px; font-weight:650; }
.vera-detail-report { margin-top:16px; }
@media (max-width:900px) { .vera-detail-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.vera-source-head,.vera-source-row { grid-template-columns:110px minmax(180px,1fr) 130px 100px; } }
@media (max-width:900px) { .vera-detail-title h1 { font-size:23px; }.vera-detail-metrics { gap:8px; }.vera-detail-metrics > div { padding:13px; }.vera-detail-metrics strong { font-size:14px; }.vera-detail-panel { padding:15px; }.vera-detail-section-title { align-items:stretch; flex-direction:column; }.vera-detail-section-title .search { width:100%; }.vera-source-file a { width:100%; justify-content:center; }.vera-source-head { display:none; }.vera-source-row { grid-template-columns:minmax(0,1fr) auto; gap:6px; }.vera-source-row strong { grid-column:1/-1; grid-row:1; }.vera-source-row span:first-child { grid-column:1; grid-row:2; }.vera-source-row span:nth-child(3) { grid-column:1; grid-row:3; }.vera-source-row span:last-child { grid-column:2; grid-row:2; }.vera-assignment-row { align-items:flex-start; }.vera-detail-report a { width:100%; justify-content:center; } }

/* Phone layouts keep every operational number next to its meaning. */
@media (max-width:900px) {
    body { overflow-x:hidden; }

    .main-content { padding-bottom:132px; }

    .vera-inventory-table { overflow:visible; }
    .vera-table-head-actions { display:none; }
    .vera-inventory-row-actions {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
        gap:10px;
        padding:15px;
    }
    .vera-inventory-row-actions > .vera-inventory-open,
    .vera-inventory-row-actions > .vera-inventory-date,
    .vera-inventory-row-actions > .status-pill,
    .vera-inventory-row-actions > .vera-actions { grid-column:1 / -1; }
    .vera-inventory-row-actions > .vera-inventory-stat { grid-column:auto; color:#263552; font-size:inherit; }
    .vera-inventory-row-actions > .status-pill { justify-self:start; }
    .vera-inventory-date { color:#263552; font-size:13px; }
    .vera-inventory-date::before { content:'Дата запуска'; display:block; margin-bottom:3px; color:#71809a; font-size:11px; line-height:1.25; }
    .vera-inventory-stat {
        display:grid;
        gap:3px;
        min-width:0;
        padding:9px 10px;
        border:1px solid #e0e8f4;
        border-radius:8px;
        background:#f8faff;
        color:#263552;
    }
    .vera-inventory-stat small { display:block; color:#71809a; font-size:11px; line-height:1.25; }
    .vera-inventory-stat strong { font-size:14px; line-height:1.25; }
    .vera-actions { justify-content:flex-start; gap:7px; }
    .vera-actions a,
    .vera-actions button { min-height:38px; padding:0 11px; }

    .manager-inventory-list,
    .employee-task-list .manager-inventory-list { --inventory-card-columns:40px minmax(0, 1fr) 18px; }
    .manager-inventory-card { align-items:start; gap:10px; padding:14px; }
    .manager-inventory-icon { grid-row:1 / 5; }
    .manager-inventory-copy { padding-top:3px; }
    .manager-inventory-card .status-pill { justify-self:start; }
    .manager-inventory-meta {
        display:grid;
        grid-column:2;
        grid-template-columns:minmax(0, 1fr) auto;
        align-items:center;
        gap:8px;
        padding:8px 10px;
        border:1px solid #e0e8f4;
        border-radius:8px;
        background:#f8faff;
    }
    .manager-inventory-meta small { font-size:11px; }
    .manager-inventory-meta strong { font-size:14px; text-align:right; }
    .manager-inventory-arrow { grid-column:3; grid-row:1 / 5; align-self:center; }
    .employee-inventory-closed { grid-column:2; grid-row:auto; align-self:start; font-size:12px; text-align:left; }
    .employee-inventory-closed::after { content:none; }

    .manager-status { align-items:flex-start; padding:15px; }
    .manager-status span { line-height:1.45; }
    .manager-reconciliation-tools .manager-ledger-actions { align-items:stretch; flex-direction:column; }
    .manager-excel-download { justify-content:center; }
    .reconciliation-panel { overflow:visible; }
    .manager-reconciliation-table { min-width:0; overflow:visible; }
    .manager-reconciliation-table > .manager-summary-header { display:none; }
    .manager-reconciliation-table > .manager-summary-row {
        grid-template-columns:62px minmax(0, 1fr) auto;
        gap:7px 10px;
        min-height:0;
        padding:12px;
    }
    .manager-summary-row > .dish-visual,
    .manager-summary-row > .dish-preview-trigger { grid-column:1; grid-row:1 / 4; }
    .manager-summary-row > strong { grid-column:2 / -1; grid-row:1; min-width:0; overflow-wrap:anywhere; }
    .manager-summary-row > span { display:grid; grid-template-columns:auto auto; justify-content:start; gap:5px; color:#263552; font-size:12px; }
    .manager-summary-row > span::before,
    .manager-summary-row > b::before { color:#72819a; font-size:11px; font-weight:400; }
    .manager-summary-row > span:nth-of-type(1) { grid-column:2; grid-row:2; }
    .manager-summary-row > span:nth-of-type(1)::before { content:'По учёту'; }
    .manager-summary-row > span:nth-of-type(2) { grid-column:2; grid-row:3; }
    .manager-summary-row > span:nth-of-type(2)::before { content:'По факту'; }
    .manager-summary-row > b { display:grid; gap:3px; grid-column:3; grid-row:2 / 4; align-self:center; text-align:right; }
    .manager-summary-row > b::before { content:'Разница'; }
    .manager-revision-details { padding:0 12px; }
    .manager-adjustment { padding:14px 12px !important; }

    .topbar { padding-right:112px; gap:10px; }
    .topbar .top-actions { display:none; }
    .inventory-heading { gap:10px; }
    .progress-copy { gap:8px; }
    .progress-copy strong { font-size:14px; }
    .progress-copy span { font-size:11px; }
    .dropzone { min-height:210px; padding:18px; }
    .dropzone strong { font-size:16px; }
    .dropzone span { line-height:1.4; }
    .validation { align-items:flex-start; line-height:1.45; }
}

.access-settings-screen { max-width:1280px; padding-bottom:38px; }
.access-settings-title { margin:10px 0 22px; }
.access-settings-title h1 { margin:8px 0 0; color:#13294f; font-size:29px; }
.access-settings-title p { max-width:800px; margin:8px 0 0; color:#72819a; font-size:14px; line-height:1.55; }
.access-settings-notice { display:flex; align-items:flex-start; gap:13px; margin-bottom:16px; padding:17px 19px; border:1px solid #cadcff; border-radius:11px; background:#edf4ff; }
.access-settings-notice-icon { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:10px; background:#dbe9ff; color:#2360df; }
.access-settings-notice div { display:grid; gap:5px; }
.access-settings-notice strong { color:#17305e; font-size:15px; }
.access-settings-notice span { color:#61708c; font-size:13px; line-height:1.45; }
.access-notification-test { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:-3px 0 16px; padding:16px 19px; border:1px solid #d7e5fa; border-radius:11px; background:#fff; }
.access-notification-test div { display:grid; gap:5px; }.access-notification-test strong { color:#17305e; font-size:15px; }.access-notification-test span { color:#61708c; font-size:13px; line-height:1.45; }.access-notification-test button { flex:0 0 auto; min-height:40px; border:0; border-radius:8px; padding:0 15px; background:#2865eb; color:#fff; font-weight:650; }.access-notification-test-status { margin:-7px 0 16px; color:#1d7e4a; font-size:13px; }
.access-role-panel,.access-matrix-panel,.access-settings-next { margin-bottom:16px; padding:21px 23px; border:1px solid #dce4ef; border-radius:12px; background:#fff; }
.access-panel-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:16px; }
.access-panel-heading h2,.access-settings-next h2 { margin:0; color:#17294b; font-size:17px; }
.access-panel-heading p { margin:5px 0 0; color:#72819a; font-size:12px; line-height:1.45; }
.access-panel-heading > span { flex:0 0 auto; padding:7px 10px; border-radius:8px; background:#eef3fb; color:#526887; font-size:12px; font-weight:650; }
.access-role-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.access-role-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; min-width:0; padding:13px 14px; border:1px solid #e0e7f2; border-radius:9px; background:#fbfcfe; }
.access-role-row > div { display:grid; min-width:0; gap:4px; }
.access-role-row strong { color:#20375f; font-size:13px; }
.access-role-row small { color:#72819a; font-size:12px; line-height:1.4; }
.access-role-row em { overflow:hidden; color:#526887; font-size:11px; font-style:normal; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.access-role-state { flex:0 0 auto; padding:5px 7px; border-radius:99px; background:#eaf1ff; color:#2457cc; font-size:10px; font-weight:650; white-space:nowrap; }
.access-role-add,.access-role-column button { display:grid; flex:0 0 auto; place-items:center; width:28px; height:28px; border:1px solid #aac3f4; border-radius:7px; background:#fff; color:#2457cc; font-size:20px; line-height:1; font-weight:500; cursor:pointer; }
.access-role-add:hover,.access-role-column button:hover { background:#edf3ff; }
.access-role-add:focus-visible,.access-role-column button:focus-visible { outline:3px solid rgba(40,101,235,.25); outline-offset:2px; }
.access-matrix-legend { display:flex; align-items:center; gap:6px; }
.access-matrix-legend i { width:16px; height:16px; display:inline-block; border-radius:5px; background:#2865eb; }
.access-matrix { overflow:hidden; border:1px solid #dce4ef; border-radius:10px; }
.access-matrix-head,.access-matrix-row { display:grid; grid-template-columns:minmax(320px,1.8fr) repeat(3,minmax(150px,.8fr)); align-items:center; }
.access-matrix-head { min-height:50px; padding:0 16px; background:#f7f9fd; color:#71809a; font-size:11px; font-weight:650; }
.access-matrix-head > span:not(:first-child) { text-align:center; }
.access-role-column { display:flex; justify-content:center; align-items:center; gap:6px; padding:7px 2px; text-align:center; }
.access-role-column button { width:21px; height:21px; border-radius:6px; font-size:16px; }
.access-matrix-section { padding:10px 16px; border-top:1px solid #dfe6f0; background:#f4f7fc; color:#506686; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.access-matrix-row { min-height:71px; padding:10px 16px; border-top:1px solid #e7edf5; }
.access-matrix-row > div { display:grid; gap:4px; min-width:0; padding-right:16px; }
.access-matrix-row strong { color:#213758; font-size:13px; }
.access-matrix-row small { color:#72819a; font-size:11px; line-height:1.35; }
.access-permission-toggle { display:grid; place-items:center; min-height:42px; cursor:pointer; }
.access-permission-toggle input { position:absolute; width:1px; height:1px; opacity:0; }
.access-permission-toggle span { width:25px; height:25px; display:grid; place-items:center; border:1px solid #cfdaea; border-radius:7px; background:#fff; color:transparent; transition:.16s ease; }
.access-permission-toggle input:checked + span { border-color:#2865eb; background:#2865eb; color:#fff; box-shadow:0 4px 10px rgba(40,101,235,.2); }
.access-permission-toggle input:focus-visible + span { outline:3px solid rgba(40,101,235,.25); outline-offset:2px; }
.access-settings-next { background:#fbfcfe; }
.restaurant-responsibility-list { display:grid; gap:12px; }
.restaurant-responsibility-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:16px; padding:16px; border:1px solid #dce4ef; border-radius:9px; }
.restaurant-responsibility-row > div { min-width:0; }
.restaurant-responsibility-row strong { display:block; color:#17294b; font-size:14px; overflow-wrap:anywhere; }
.restaurant-responsibility-row small { display:block; margin-top:5px; color:#72819a; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.restaurant-responsibility-control label { display:block; margin-bottom:7px; color:#526887; font-size:12px; }
.responsible-picker { position:relative; }
.responsible-picker-field { position:relative; }
.responsible-picker-field input { display:block; box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:9px 30px 9px 10px; border:1px solid #cbd6e5; border-radius:7px; background:#fff; color:#17294b; font:inherit; font-size:13px; }
.responsible-picker-field input:focus { outline:2px solid #2865eb; outline-offset:1px; }
.responsible-picker-field > span { position:absolute; right:11px; top:12px; color:#526887; pointer-events:none; }
.responsible-picker-options { position:absolute; z-index:20; top:calc(100% + 5px); right:0; left:0; max-height:240px; overflow-y:auto; overscroll-behavior:contain; padding:4px; border:1px solid #cbd6e5; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(31,57,99,.15); }
.responsible-picker-options.is-above { top:auto; bottom:calc(100% + 5px); }
.responsible-picker-options button { display:block; width:100%; min-height:40px; padding:9px; border:0; border-radius:5px; background:#fff; color:#17294b; font:inherit; font-size:13px; text-align:left; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
.responsible-picker-options button.is-active { background:#eaf1ff; color:#164bb8; }
.responsible-picker-options button[aria-selected="true"] { font-weight:650; }
.responsible-picker-options p { margin:8px; color:#72819a; font-size:13px; }
.restaurant-responsibility-reset { display:block; margin-top:8px; padding:4px 0; border:0; background:transparent; color:#2865eb; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
@media (max-width:600px) { .restaurant-responsibility-row { grid-template-columns:minmax(0,1fr); gap:12px; padding:12px; } }
.access-settings-next ol { display:grid; gap:8px; margin:13px 0 0; padding-left:20px; color:#62728c; font-size:13px; line-height:1.45; }
.access-settings-savebar { position:fixed; z-index:5; right:0; bottom:0; left:240px; height:88px; display:flex; justify-content:space-between; align-items:center; gap:18px; padding:0 46px; border-top:1px solid #dce4ef; background:rgba(255,255,255,.97); box-shadow:0 -6px 24px rgba(31,57,99,.06); color:#71809a; font-size:13px; }
.access-settings-savebar > span { min-width:0; }
.access-settings-savebar button { height:50px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:9px; padding:0 20px; background:#2865eb; color:#fff; font-weight:650; box-shadow:0 10px 22px rgba(40,101,235,.22); }.access-settings-savebar button.is-saved { background:#1d9b5a; box-shadow:0 10px 22px rgba(29,155,90,.22); }
.access-settings-savebar button > span { display:flex; align-items:center; gap:8px; }
.notification-log-notice { display:flex; align-items:flex-start; gap:10px; margin-bottom:16px; padding:14px 17px; border:1px solid #d7e5fa; border-radius:10px; background:#f6f9ff; color:#536986; font-size:13px; line-height:1.45; }.notification-log-notice svg { flex:0 0 auto; color:#2865eb; }.notification-log-panel { display:grid; gap:10px; }.notification-log-entry,.notification-log-empty { padding:17px 19px; border:1px solid #dce4ef; border-radius:11px; background:#fff; }.notification-log-entry-head { display:flex; justify-content:space-between; gap:14px; }.notification-log-entry-head > div:first-child { display:grid; gap:3px; }.notification-log-entry-head strong { color:#17305e; }.notification-log-entry-head span,.notification-log-entry footer { color:#71809a; font-size:12px; }.notification-log-entry p { margin:13px 0; color:#32476c; font-size:14px; line-height:1.5; white-space:pre-line; }.notification-log-entry footer { display:flex; justify-content:space-between; gap:12px; }.notification-log-status { align-self:flex-start; border-radius:999px; padding:5px 9px; font-size:12px; font-weight:700; }.notification-log-status.sent { background:#e7f8ef; color:#16804a; }.notification-log-status.failed { background:#fff0f0; color:#c83f3f; }.notification-log-status.pending { background:#fff6dc; color:#a56a00; }.notification-log-error { color:#c83f3f; text-align:right; }
.access-saved { display:flex; align-items:center; gap:7px; color:#1d8953; }
.access-binding-backdrop { position:fixed; z-index:20; inset:0; background:rgba(17,32,59,.46); }
.access-binding-modal { position:fixed; z-index:21; top:50%; left:50%; width:min(700px,calc(100vw - 32px)); height:min(650px,calc(100vh - 48px)); display:flex; flex-direction:column; overflow:hidden; border-radius:14px; background:#fff; box-shadow:0 22px 60px rgba(17,32,59,.3); transform:translate(-50%,-50%); }
.access-binding-modal header { display:flex; flex:0 0 auto; justify-content:space-between; gap:18px; padding:22px 24px 18px; border-bottom:1px solid #e2e8f2; }
.access-binding-modal header > div { min-width:0; }.access-binding-modal header span { color:#72819a; font-size:12px; }.access-binding-modal header h2 { margin:4px 0 0; color:#17305e; font-size:21px; }.access-binding-modal header p { margin:6px 0 0; color:#6c7b94; font-size:13px; line-height:1.45; }.access-binding-modal header > button { width:32px; height:32px; flex:0 0 auto; border:0; border-radius:7px; background:#f1f4f9; color:#55708f; font-size:24px; line-height:1; cursor:pointer; }
.access-binding-hint { display:flex; flex:0 0 auto; gap:8px; align-items:flex-start; margin:16px 24px 0; padding:10px 12px; border-radius:8px; background:#eef5ff; color:#49698e; font-size:12px; line-height:1.4; }.access-binding-hint svg { flex:0 0 auto; color:#2865eb; }
.access-structure-toolbar { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:12px; margin:12px 24px 0; color:#71809a; font-size:12px; }.access-structure-toolbar .access-secondary { min-height:32px; flex:0 0 auto; border:1px solid #c5d2e6; border-radius:7px; padding:0 10px; background:#fff; color:#315a9f; font:inherit; font-weight:650; cursor:pointer; }
.access-picker-controls { display:flex; flex:0 0 auto; gap:10px; align-items:center; margin:14px 24px 0; }.access-picker-tabs { display:flex; flex:0 0 auto; gap:3px; padding:3px; border-radius:8px; background:#f0f4fa; }.access-picker-tabs button { display:flex; align-items:center; gap:6px; min-height:32px; border:0; border-radius:6px; padding:0 10px; background:transparent; color:#74839b; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }.access-picker-tabs button.is-active { background:#2865eb; color:#fff; box-shadow:0 1px 3px rgba(25,74,170,.2); }.access-picker-search { display:flex; align-items:center; min-width:0; flex:1; gap:7px; height:38px; border:1px solid #cbd7e8; border-radius:8px; padding:0 10px; color:#8090a7; }.access-picker-search input { width:100%; min-width:0; border:0; outline:0; color:#21395f; font:inherit; font-size:13px; }.access-picker-search input::placeholder { color:#9aa8bd; }
.access-company-tree { display:block; flex:1 1 auto; min-height:0; overflow-y:auto; padding:16px 24px 22px; }.access-company-tree > * + * { margin-top:12px; }
.access-department { min-height:52px; margin-left:calc(var(--department-depth) * 18px); border:1px solid #dce5f0; border-radius:10px; overflow:hidden; }.access-department > label,.access-department-users > label { display:flex; align-items:center; gap:10px; cursor:pointer; }.access-department > label,.access-unassigned-heading { min-height:52px; padding:0 14px; background:#f8faff; }.access-department > label > div { display:grid; min-width:0; gap:2px; }.access-department > label small,.access-unassigned-heading small { color:#74839b; font-size:11px; }.access-unassigned-heading { display:flex; align-items:center; gap:10px; }.access-department strong { color:#22395f; font-size:13px; }
.access-department input { position:absolute; width:1px; height:1px; opacity:0; }.access-department input + span { display:grid; flex:0 0 auto; place-items:center; width:20px; height:20px; border:1px solid #c4d2e6; border-radius:5px; background:#fff; color:transparent; }.access-department input:checked + span { border-color:#2865eb; background:#2865eb; color:#fff; }.access-department input:focus-visible + span { outline:3px solid rgba(40,101,235,.25); outline-offset:2px; }
.access-department-users { display:grid; border-top:1px solid #e4ebf4; }.access-department-users > label { min-height:48px; padding:0 14px 0 42px; border-top:1px solid #edf1f6; }.access-department-users > label:first-child { border-top:0; }.access-department-users .avatar { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#e9f0ff; color:#2865eb; font-size:10px; font-weight:700; }.access-department-users label > div:last-child { display:grid; gap:2px; }.access-department-users small { color:#74839b; font-size:11px; }
.access-user-picker { display:grid; overflow:hidden; border:1px solid #dce5f0; border-radius:10px; }.access-user-picker > label { display:flex; align-items:center; min-height:56px; gap:10px; padding:0 14px; border-top:1px solid #edf1f6; cursor:pointer; }.access-user-picker > label:first-child { border-top:0; }.access-user-picker input { position:absolute; width:1px; height:1px; opacity:0; }.access-user-picker input + span { display:grid; flex:0 0 auto; place-items:center; width:20px; height:20px; border:1px solid #c4d2e6; border-radius:5px; background:#fff; color:transparent; }.access-user-picker input:checked + span { border-color:#2865eb; background:#2865eb; color:#fff; }.access-user-picker .avatar { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#e9f0ff; color:#2865eb; font-size:10px; font-weight:700; }.access-user-picker label > div:last-child { display:grid; gap:2px; }.access-user-picker small { color:#74839b; font-size:11px; }
.access-binding-modal footer { display:flex; flex:0 0 auto; justify-content:space-between; align-items:center; gap:14px; padding:14px 24px; border-top:1px solid #e2e8f2; background:#fbfcfe; color:#71809a; font-size:12px; }.access-binding-modal footer > div { display:flex; gap:9px; }.access-binding-modal footer button { min-height:38px; border:0; border-radius:8px; padding:0 14px; background:#2865eb; color:#fff; font-weight:650; cursor:pointer; }.access-binding-modal footer .access-secondary { border:1px solid #c5d2e6; background:#fff; color:#315a9f; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.access-bitrix-picker { width:min(830px,calc(100vw - 32px)); height:min(680px,calc(100vh - 40px)); }.access-bitrix-picker .access-picker-header { display:flex; gap:12px; align-items:flex-start; padding:10px; border-bottom:1px solid #dfe8f4; }.access-picker-query { display:flex; flex:1; flex-wrap:wrap; align-items:center; gap:6px; min-height:52px; border:1px solid #8eb9ff; border-radius:9px; padding:6px; background:#fbfdff; }.access-picker-query > label { display:flex; flex:1 1 150px; align-items:center; gap:7px; min-width:150px; color:#7a8da7; }.access-picker-query input { width:100%; border:0; outline:0; background:transparent; color:#21395f; font:inherit; font-size:13px; }.access-picker-chip { display:flex; align-items:center; max-width:100%; gap:6px; border:1px solid #ffbd71; border-radius:6px; padding:5px 7px; background:#fff4e8; color:#b95d00; font-size:11px; }.access-picker-chip button { border:0; padding:0; background:transparent; color:inherit; font:inherit; font-size:15px; line-height:1; cursor:pointer; }.access-picker-close { display:grid; place-items:center; width:32px; height:32px; flex:0 0 auto; border:0; border-radius:7px; background:#f1f5fa; color:#6d829f; font-size:22px; line-height:1; cursor:pointer; }
.access-picker-role { display:flex; flex:0 0 auto; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid #e6edf6; color:#6d809b; font-size:12px; }.access-picker-role strong { color:#17305e; font-size:14px; }.access-picker-role span { flex:1; }.access-picker-role button { min-height:30px; flex:0 0 auto; border:1px solid #c5d5eb; border-radius:6px; padding:0 9px; background:#fff; color:#315a9f; font:inherit; font-size:11px; font-weight:650; cursor:pointer; }
.access-picker-layout { display:grid; flex:1 1 auto; min-height:0; grid-template-columns:146px minmax(0,1fr); }.access-picker-nav { display:grid; align-content:start; gap:5px; border-right:1px solid #e0e8f2; padding:10px 8px; background:#fbfcff; }.access-picker-nav button { display:flex; align-items:center; gap:8px; min-height:38px; border:0; border-radius:19px; padding:0 11px; background:#eff4fa; color:#7a8da0; font:inherit; font-size:12px; cursor:pointer; text-align:left; }.access-picker-nav button.is-active { background:#2188f7; color:#fff; }.access-picker-content { min-height:0; overflow:auto; padding:10px 16px 18px; }.access-picker-note { margin:0 0 9px; color:#7488a3; font-size:11px; line-height:1.35; }.access-picker-search-context { margin:-4px 0 9px; color:#4d7396; font-size:11px; line-height:1.35; }
.access-org-department { margin:7px 0 0 calc(var(--department-depth) * 12px); border:1px solid #b8d9ff; border-radius:9px; background:#eef8ff; overflow:hidden; }.access-org-department-head { display:flex; width:100%; align-items:center; min-height:47px; gap:10px; border:0; padding:0 12px; background:transparent; color:#416480; cursor:pointer; text-align:left; }.access-org-department-head:hover { background:#e2f2ff; }.access-org-department-head:focus-visible { outline:2px solid #2865eb; outline-offset:-2px; }.access-org-department-head > div { display:grid; min-width:0; gap:2px; }.access-org-department-head strong { color:#294968; font-size:13px; }.access-org-department-head small { color:#7690a8; font-size:10px; }.access-org-expand { display:grid; place-items:center; width:21px; height:27px; flex:0 0 auto; border-right:1px solid #c6dff7; color:#3c6a90; font-size:19px; line-height:1; }
.access-org-options { display:grid; border-top:1px solid #cee3f8; background:#fff; }.access-org-options > label { display:flex; align-items:center; gap:10px; min-height:46px; padding:0 14px; border-top:1px solid #edf3f9; cursor:pointer; }.access-org-options > label:first-child { border-top:0; }.access-org-options input { position:absolute; width:1px; height:1px; opacity:0; }.access-org-options input + span { display:grid; flex:0 0 auto; place-items:center; width:19px; height:19px; border:1px solid #c4d2e6; border-radius:5px; background:#fff; color:transparent; }.access-org-options input:checked + span { border-color:#2865eb; background:#2865eb; color:#fff; }.access-org-options > label > div:not(.avatar) { display:grid; min-width:0; gap:2px; }.access-org-options strong { color:#304a6a; font-size:12px; }.access-org-options small { color:#7d8fa7; font-size:10px; }.access-org-options .avatar { display:grid; place-items:center; width:27px; height:27px; flex:0 0 auto; border-radius:50%; background:#e9f0ff; color:#2865eb; font-size:10px; font-weight:700; }.access-org-users-title { margin:0; padding:12px 14px 4px; border-top:1px solid #edf3f9; color:#71849e; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
@media (max-width:900px) { .access-bitrix-picker { width:calc(100vw - 16px); height:calc(100vh - 16px); }.access-bitrix-picker .access-picker-header { padding:8px; }.access-picker-role { align-items:flex-start; flex-wrap:wrap; padding:9px 12px; }.access-picker-role span { min-width:100%; order:3; }.access-picker-layout { grid-template-columns:110px minmax(0,1fr); }.access-picker-nav { padding:8px 6px; }.access-picker-nav button { padding:0 8px; font-size:11px; }.access-picker-content { padding:8px 10px 14px; }.access-org-department { margin-left:calc(var(--department-depth) * 6px); }.access-bitrix-picker footer { padding:10px 12px; } }
@media (max-width:900px) { .access-settings-savebar { left:72px; padding:0 22px; }.access-role-list { grid-template-columns:1fr; }.access-matrix { overflow-x:auto; }.access-matrix-head,.access-matrix-row { min-width:770px; } }
@media (max-width:900px) { .access-settings-title h1 { font-size:24px; }.access-settings-title p { font-size:13px; }.access-settings-notice { padding:15px; }.access-notification-test { align-items:stretch; flex-direction:column; padding:15px; }.access-notification-test button { width:100%; }.access-role-panel,.access-matrix-panel,.access-settings-next { padding:16px 14px; }.access-panel-heading { flex-direction:column; gap:9px; }.access-matrix { margin:0 -14px; border-right:0; border-left:0; border-radius:0; }.access-matrix-head,.access-matrix-row { min-width:700px; }.access-settings-savebar { left:0; height:auto; min-height:0; flex-direction:column; align-items:stretch; gap:8px; padding:9px 15px; }.access-settings-savebar > span { font-size:11px; }.access-settings-savebar button { width:100%; height:43px; }.access-settings-screen { padding-bottom:120px; }.access-binding-modal { width:calc(100vw - 20px); height:calc(100vh - 20px); }.access-binding-modal header,.access-binding-modal footer { padding-right:16px; padding-left:16px; }.access-company-tree { padding-right:16px; padding-left:16px; }.access-binding-hint,.access-structure-toolbar,.access-picker-controls { margin-right:16px; margin-left:16px; }.access-structure-toolbar { align-items:flex-start; flex-direction:column; }.access-picker-controls { align-items:stretch; flex-direction:column; }.access-picker-tabs { width:100%; }.access-picker-tabs button { flex:1; justify-content:center; }.access-department { margin-left:calc(var(--department-depth) * 10px); }.access-department-users > label { padding-left:24px; }.access-binding-modal footer { align-items:stretch; flex-direction:column; }.access-binding-modal footer > div { display:grid; grid-template-columns:1fr 1fr; }.access-binding-modal footer button { width:100%; } }

/* Keep the role picker stable while Livewire updates its selection. */
.access-bitrix-picker { top:16px; bottom:16px; width:min(1220px,calc(100vw - 32px)); height:auto; max-height:none; transform:translateX(-50%); }
.access-picker-header-fields { display:grid; flex:1; min-width:0; gap:8px; }.access-picker-search { display:flex; align-items:center; gap:7px; min-height:42px; border:1px solid #8eb9ff; border-radius:9px; padding:0 11px; background:#fbfdff; color:#7a8da7; }.access-picker-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#21395f; font:inherit; font-size:13px; }.access-picker-selection { display:flex; align-content:center; align-items:center; flex-wrap:wrap; gap:6px; min-height:42px; max-height:132px; overflow-x:hidden; overflow-y:auto; border:1px solid #d8e3f1; border-radius:9px; padding:6px 9px; background:#f8fbff; }.access-picker-selection-label { flex:0 0 auto; color:#6d809b; font-size:11px; font-weight:650; }.access-picker-selection-empty { color:#8a9ab0; font-size:12px; }.access-picker-chip { flex:0 0 auto; max-width:260px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.access-picker-layout { min-height:0; overflow:hidden; }.access-picker-nav { overflow-y:auto; }.access-picker-content { height:100%; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.access-user-picker > label,.access-org-options > label { position:relative; }
@media (max-width:900px) { .access-bitrix-picker { top:8px; bottom:8px; width:calc(100vw - 16px); height:auto; } }

.access-new-role { display:flex; align-items:center; gap:6px; min-height:36px; border:1px solid #9dbbf1; border-radius:8px; padding:0 11px; background:#fff; color:#2457cc; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }.access-matrix { overflow:auto; }.access-matrix-head,.access-matrix-row { grid-template-columns:minmax(280px,1.8fr) repeat(var(--role-columns),minmax(240px,.8fr)); min-width:calc(280px + var(--role-columns) * 240px); }.access-matrix-head { min-height:56px; }.access-role-column { position:relative; min-width:0; flex-wrap:nowrap; }.access-role-column .access-role-name { display:block; width:auto; height:auto; min-width:0; max-width:none; flex:1 1 auto; border:0; padding:0; background:transparent; color:#526887; font:inherit; font-size:11px; font-weight:650; line-height:1.3; overflow-wrap:normal; text-align:center; white-space:nowrap; cursor:pointer; }.access-role-delete { display:grid!important; position:absolute; top:3px; right:1px; width:16px!important; height:16px!important; border:0!important; background:transparent!important; color:#a24b55!important; font-size:16px!important; }.access-role-editor { position:fixed; z-index:22; top:50%; left:50%; width:min(400px,calc(100vw - 32px)); border-radius:12px; padding:22px; background:#fff; box-shadow:0 22px 60px rgba(17,32,59,.3); transform:translate(-50%,-50%); }.access-role-editor h2 { margin:0 0 18px; color:#17305e; font-size:19px; }.access-role-editor label { display:grid; gap:7px; color:#60738f; font-size:12px; }.access-role-editor input { height:42px; border:1px solid #c5d4e9; border-radius:8px; padding:0 11px; color:#1e385e; font:inherit; }.access-role-editor > div { display:flex; justify-content:flex-end; gap:9px; margin-top:18px; }.access-role-editor button { min-height:38px; border:0; border-radius:8px; padding:0 14px; background:#2865eb; color:#fff; font-weight:650; cursor:pointer; }.access-role-editor .access-secondary { border:1px solid #c5d2e6; background:#fff; color:#315a9f; }

/* Tree connectors make the department hierarchy readable at a glance. */
.access-org-department.is-nested { position:relative; overflow:visible; }.access-org-department.is-nested::before { position:absolute; z-index:0; top:-8px; bottom:-8px; left:-13px; width:1px; background:#b7d7f5; content:""; }.access-org-department.is-nested::after { position:absolute; z-index:0; top:23px; left:-13px; width:13px; height:1px; background:#b7d7f5; content:""; }.access-org-department.is-nested > * { position:relative; z-index:1; }.access-org-department.is-nested .access-org-options { box-shadow:inset 0 0 0 1px rgba(183,215,245,.3); }
.access-org-users-title { display:flex; width:100%; align-items:center; gap:7px; border:0; background:#fff; cursor:pointer; text-align:left; }.access-org-users-title:hover { background:#f7fbff; }.access-org-users-title span { color:#3c6a90; font-size:17px; line-height:1; }.access-org-users-title:focus-visible { outline:2px solid #2865eb; outline-offset:-2px; }
.access-role-column { justify-content:flex-start; text-align:left; }.access-role-heading { display:grid; min-width:0; flex:0 1 auto; gap:4px; }.access-role-column .access-role-name { overflow:hidden; text-align:left; text-overflow:ellipsis; }.access-role-bind { margin-left:2px; }.access-role-binding-status { display:block; overflow:hidden; color:#8a98ab; font-size:10px; font-weight:500; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }.access-role-avatars { display:flex; align-items:center; min-height:22px; padding:1px 0; }.access-role-avatar { display:grid; place-items:center; width:22px; height:22px; margin-left:-4px; border:2px solid #f7f9fd; border-radius:50%; background:#dce9ff; color:#2457cc; font-size:8px; font-weight:750; line-height:1; }.access-role-avatar:first-child { margin-left:0; }.access-role-avatar.is-department { border-radius:7px; background:#e8f5ee; color:#16804d; }.access-role-avatar.is-more { background:#eef2f7; color:#62738a; font-size:8px; }

/* Mobile navigation and access matrix must fit the Bitrix24 viewport. */
.access-mobile-role-label { display:none !important; }
@media (max-width:900px) {
    .app-shell, .main-content, .access-settings-screen { min-width:0; max-width:100%; }
    .main-content { padding-top:64px; }
    .mobile-nav-panel { width:min(340px, calc(100vw - 28px)); min-width:0; max-height:calc(100dvh - 74px); overflow-y:auto; overscroll-behavior:contain; }
    .mobile-workspace-switcher { display:grid; gap:8px; min-width:0; margin-top:9px; padding:12px 7px 4px; border-top:1px solid #e4eaf3; }
    .mobile-workspace-switcher > label { color:#536986; font-size:12px; font-weight:700; }
    .mobile-workspace-switcher > input { width:100%; min-width:0; min-height:42px; padding:8px 10px; border:1px solid #cbd7e8; border-radius:8px; color:#21395f; background:#fff; font-size:16px; }
    .mobile-workspace-options { display:grid; max-height:min(38dvh, 270px); overflow-y:auto; border:1px solid #e0e8f4; border-radius:8px; }
    .mobile-workspace-option { display:grid; gap:3px; width:100%; min-width:0; padding:10px; border:0; border-top:1px solid #e8eef6; background:#fff; color:#21395f; text-align:left; }
    .mobile-workspace-option:first-child { border-top:0; }
    .mobile-workspace-option:focus-visible, .mobile-workspace-option:active { background:#eaf1ff; outline:2px solid #2865eb; outline-offset:-2px; }
    .mobile-workspace-option strong, .mobile-workspace-option span { overflow-wrap:anywhere; }
    .mobile-workspace-option strong { font-size:13px; }
    .mobile-workspace-option span, .mobile-workspace-options p { color:#71809a; font-size:11px; }
    .mobile-workspace-options p { margin:0; padding:10px; }
    .mobile-workspace-exit { padding:7px; }
    .mobile-workspace-exit button { width:100%; min-height:42px; border:1px solid #b9caf0; border-radius:8px; background:#fff; color:#2457cc; font-size:13px; font-weight:700; }
    .access-matrix { overflow:visible; max-width:100%; }
    .access-matrix-head, .access-matrix-row { grid-template-columns:repeat(2, minmax(0, 1fr)); min-width:0; gap:8px; padding:12px; }
    .access-matrix-head > span:first-child, .access-matrix-row > div { grid-column:1 / -1; }
    .access-role-column { min-width:0; justify-content:flex-start; flex-wrap:wrap; padding:9px; border:1px solid #dce5f0; border-radius:8px; text-align:left; }
    .access-role-heading { min-width:0; }
    .access-role-column .access-role-name { white-space:normal; overflow-wrap:anywhere; }
    .access-matrix-row > div { padding-right:0; }
    .access-permission-toggle { display:flex; min-width:0; justify-content:flex-start; gap:8px; padding:8px; border:1px solid #e0e8f4; border-radius:8px; background:#fbfcfe; }
    .access-permission-toggle > span:first-of-type { flex:0 0 25px; }
    .access-mobile-role-label { display:block !important; width:auto !important; height:auto !important; min-width:0; border:0 !important; background:transparent !important; color:#304a6a !important; font-size:11px; font-weight:650; line-height:1.25; overflow-wrap:anywhere; }
    .filter-row, .employee-mobile-sort { flex-wrap:wrap; overflow-x:visible; }
    .notification-log-entry, .notification-log-entry-head, .notification-log-entry footer { min-width:0; flex-wrap:wrap; overflow-wrap:anywhere; }
}
/* Keep employee task status and metrics in separate mobile rows. */
@media (max-width:900px) {
    .employee-task-list .manager-inventory-list { --inventory-card-columns:40px minmax(0, 1fr); }
    .employee-inventory-card { grid-template-columns:var(--inventory-card-columns); align-items:start; gap:10px 12px; }
    .employee-inventory-card .manager-inventory-icon { grid-column:1; grid-row:1; }
    .employee-inventory-card .manager-inventory-copy { grid-column:2; grid-row:1; min-width:0; }
    .employee-inventory-card .status-pill { grid-column:1 / -1 !important; grid-row:auto; justify-self:start; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
    .employee-inventory-card .manager-inventory-meta { grid-column:1 / -1; grid-row:auto; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 10px; min-width:0; }
    .employee-inventory-card .manager-inventory-meta small { flex:1 1 125px; }
    .employee-inventory-card .manager-inventory-meta strong { min-width:0; overflow-wrap:anywhere; }
    .employee-inventory-card .manager-inventory-arrow { grid-column:1 / -1; grid-row:auto; justify-self:end; }
    .employee-inventory-card .employee-inventory-closed { grid-column:1 / -1; grid-row:auto; justify-self:start; font-size:12px; text-align:left; }
    .employee-inventory-card .employee-inventory-closed::after { content:none; }
}

@media (min-width:901px) {
    .reconciliation-table > .manager-adjustment { grid-template-columns:160px 150px; }
}
.manager-count-forms { margin-bottom:16px; }.manager-count-forms .manager-excel-download { white-space:normal; padding:8px 12px; }
