/* CSP-utils: статические утилиты, вынесенные из inline style= (CSP запрещает inline).
   Автогенерируется по значениям из resources/views. Только фиксированные значения. */

.bd-none{border:none}
.bg-10b981{background:#10b981}
.bg-64748b{background:#64748b}
.bg-6f42c1{background:#6f42c1}
.bg-8b5cf6{background:#8b5cf6}
.bg-94a3b8{background:#94a3b8}
.bg-bbf7d0{background:#bbf7d0}
.bg-f59e0b{background:#f59e0b}
.bg-f8f9fa{background:#f8f9fa}
.bg-fecaca{background:#fecaca}
.bg-fff{background:#fff}
.bg-muted-var{background:var(--muted-color,#adb5bd)}
.bg-none{background:none}
.bg-success-var{background:var(--success-color,#2eca6a)}
.br-2{border-radius:2px}
.br-50p{border-radius:50%}
.br-8{border-radius:8px}
.clr-166534{color:#166534}
.clr-6366f1{color:#6366f1}
.clr-8b5cf6{color:#8b5cf6}
.clr-ef4444{color:#ef4444}
.clr-f59e0b{color:#f59e0b}
.cur-grab{cursor:grab}
.cur-pointer{cursor:pointer}
.d-block{display:block}
.doc-serif-page{max-width:820px;margin:0 auto;font-family:'Times New Roman',serif;font-size:1.05rem;line-height:1.5}
.ff-inherit{font-family:inherit}
.flex-none{flex:none}
.fs-12{font-size:12px}
.fs-65rem{font-size:.65rem}
.fs-6rem{font-size:.6rem}
.fs-72rem{font-size:.72rem}
.fs-7rem{font-size:.7rem}
.fs-8rem{font-size:.8rem}
.fs-9rem{font-size:.9rem}
.grid-autofit-150{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.grid-autofit-210{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.grid-autofit-220{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.h-12{height:12px}
.h-14{height:14px}
.h-16{height:16px}
.h-22{height:22px}
.h-220{height:220px}
.h-32{height:32px}
.h-320{height:320px}
.h-380{height:380px}
.h-40{height:40px}
.h-6{height:6px}
.h-64{height:64px}
.h-8{height:8px}
.h-90vh{height:90vh}
.jc-center{justify-content:center}
.left-0{left:0}
.lh-13{line-height:1.3}
.ls-02em{letter-spacing:.02em}
.maxh-160{max-height:160px}
.maxh-240{max-height:240px}
.maxh-420{max-height:420px}
.maxh-60vh{max-height:60vh}
.maxh-68vh{max-height:68vh}
.maxh-70vh{max-height:70vh}
.maxh-76vh{max-height:76vh}
.maxh-80vh{max-height:80vh}
.maxw-1000{max-width:1000px}
.maxw-110{max-width:110px}
.maxw-130{max-width:130px}
.maxw-140{max-width:140px}
.maxw-150{max-width:150px}
.maxw-160{max-width:160px}
.maxw-170{max-width:170px}
.maxw-180{max-width:180px}
.maxw-200{max-width:200px}
.maxw-220{max-width:220px}
.maxw-260{max-width:260px}
.maxw-280{max-width:280px}
.maxw-320{max-width:320px}
.maxw-360{max-width:360px}
.maxw-380{max-width:380px}
.maxw-420{max-width:420px}
.maxw-520{max-width:520px}
.maxw-560{max-width:560px}
.maxw-60p{max-width:60%}
.maxw-640{max-width:640px}
.maxw-720{max-width:720px}
.maxw-760{max-width:760px}
.maxw-820{max-width:820px}
.maxw-860{max-width:860px}
.maxw-920{max-width:920px}
.maxw-92vw{max-width:92vw}
.minh-200{min-height:200px}
.minh-300{min-height:300px}
.minh-320{min-height:320px}
.minw-110{min-width:110px}
.minw-120{min-width:120px}
.minw-16rem{min-width:16rem}
.minw-18rem{min-width:18rem}
.minw-180{min-width:180px}
.minw-200{min-width:200px}
.minw-220{min-width:220px}
.minw-240{min-width:240px}
.minw-30{min-width:30px}
.minw-9rem{min-width:9rem}
.minw-11rem{min-width:11rem}
.ofit-cover{object-fit:cover}
.ovf-auto{overflow:auto}
.ovfx-auto{overflow-x:auto}
.pos-sticky{position:sticky}
.space-canvas{display:block;background:#fff;touch-action:none;max-width:100%;height:auto;cursor:grab}
.space-canvas text{-webkit-user-select:none;user-select:none;pointer-events:none}
/* Подсветка кабинета/маркера при наведении и при выделении из легенды (.hl). */
.space-canvas .cab:hover rect,.space-canvas .cab:hover polygon,.space-canvas .cab:hover path,
.space-canvas .cab.hl rect,.space-canvas .cab.hl polygon,.space-canvas .cab.hl path{stroke:#0d6efd;stroke-width:2.5;fill-opacity:.72}
.space-canvas .marker:hover rect,.space-canvas .marker.hl rect{stroke:#0d6efd;stroke-width:2.5}
.space-canvas .cab,.space-canvas .marker{cursor:pointer}
/* Столы карты кабинета: подсветка при наведении/выборе. */
.space-canvas .desk{cursor:pointer}
.space-canvas .desk:hover rect,.space-canvas .desk.hl rect{stroke:#0d6efd;stroke-width:2.5}
.space-canvas .desk.sel>rect{stroke:#0d6efd;stroke-width:2.5}
.space-canvas .desk-handle{cursor:nwse-resize}
.room-row:hover,.desk-row:hover{background:#eef4ff}
.ta-none{touch-action:none}
.td-none{text-decoration:none}
.top-5rem{top:.5rem}
.w-10{width:10px}
.w-110{width:110px}
.w-11rem{width:11rem}
.w-12{width:12px}
.w-120{width:120px}
.w-12rem{width:12rem}
.w-135{width:135px}
.w-140{width:140px}
.w-10rem{width:10rem}
.w-14rem{width:14rem}
.w-150{width:150px}
.w-160{width:160px}
.w-180{width:180px}
.w-1p{width:1%}
.w-30{width:30px}
.w-32{width:32px}
.w-340{width:340px}
.w-3rem{width:3rem}
.w-40{width:40px}
.w-4rem{width:4rem}
.w-50p{width:50%}
.w-5rem{width:5rem}
.w-64{width:64px}
.w-6rem{width:6rem}
.w-70{width:70px}
.w-7rem{width:7rem}
.w-80{width:80px}
.w-8rem{width:8rem}
.w-90{width:90px}
.w-9rem{width:9rem}
.w-auto{width:auto}
.wcal-cell{background:var(--bs-body-bg);border:1px solid var(--bs-border-color)}
.wcal-halfday{background:color-mix(in srgb,var(--bs-secondary-color) 18%,transparent)}
.ws-nowrap{white-space:nowrap}
.ws-pre-line{white-space:pre-line}
.ws-pre-wrap{white-space:pre-wrap}
.z-5{z-index:5}
/* Хост тостов (вынесено из инлайн-style scripts.blade). */
/* Тосты — ВНИЗУ справа: сверху их не видно, когда страница прокручена или открыта модалка
   (окно уезжает вверх, а сообщение остаётся за кадром — непонятно, сохранилось или нет).
   z-index выше модального окна: сообщение об ошибке должно быть видно поверх формы. */
.toast-host{position:fixed;bottom:1rem;right:1rem;z-index:1090;display:flex;flex-direction:column-reverse;gap:.5rem;max-width:min(28rem,calc(100vw - 2rem));pointer-events:none}
.toast-host > *{pointer-events:auto}
/* Онбординг-тур: оверлей + подсказка + подсветка активного элемента. */
.erp-tour-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1090}
.erp-tour-pop{position:fixed;z-index:1092;max-width:320px;min-width:240px}
.erp-tour-active{position:relative;z-index:1091;outline:3px solid var(--accent-color,#4154f1);outline-offset:2px;border-radius:6px}
/* ЭЦП: спиннер и мелкая дата сертификата (вынос из инлайн-style). */
#ecpCertList .spinner-border,#signCertList .spinner-border{width:1rem;height:1rem}
.ecp-cert-to,.sign-cert-date{font-size:.75rem}
/* Колокольчик уведомлений: позиционирование самоуправляемого меню + мелкие стили строк (вынос из инлайн). */
.header-action-wrap{position:relative}
#notifBell .dropdown-menu{position:absolute;right:0;top:100%}
.notif-item{white-space:normal}
.notif-body{font-size:.75rem}
.notif-ago{font-size:.7rem}
.notif-dot{font-size:.5rem}
/* Цифровая комната: схема прокладки. Скроллится внутри карточки — стена шире экрана. */
.dr-plan-wrap{overflow-x:auto;max-width:100%}
.dr-plan{width:100%;min-width:32rem;height:auto;display:block}
.dr-points input{max-width:9rem}
.w-2rem{width:2rem}
/* Цифровая комната: снимок с отметками маяков — координаты берутся кликом, а не набором чисел. */
.dr-shot-wrap{position:relative;display:inline-block;max-width:100%}
.dr-shot{max-width:100%;height:auto;display:block;cursor:crosshair;border:1px solid var(--bs-border-color)}
.dr-mark{position:absolute;left:var(--dr-x);top:var(--dr-y);transform:translate(-50%,-50%);background:#2b8a3e;color:#fff;font-size:.7rem;line-height:1;padding:.15rem .3rem;border-radius:.25rem;pointer-events:none}
.dr-plan{cursor:crosshair}
[data-dr-marker-row][data-dr-active="1"]{outline:2px solid var(--bs-primary);outline-offset:2px;border-radius:.25rem}
/* Карта озеленения: схема территории с подсказкой при наведении на растение. */
.land-map-wrap{overflow-x:auto;max-width:100%}
.land-map{width:100%;min-width:34rem;height:auto;display:block;cursor:crosshair}
.land-point{cursor:help}
.land-point:hover{stroke-width:4}
/* Подсказка карты — плавающая карточка у курсора (как в ГПР), а не блок под схемой. */
.lmap-tip{position:fixed;z-index:1080;min-width:15rem;max-width:21rem;padding:.6rem .75rem;border-radius:.6rem;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#212529);border:1px solid var(--bs-border-color,#dee2e6);box-shadow:0 10px 30px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.1);font-size:.78rem;line-height:1.35;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .12s ease,transform .12s ease}
.lmap-tip.show{opacity:1;transform:translateY(0)}
.lmap-tip-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.15rem}
.lmap-tip-kind{font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--bs-secondary-color,#6b7280)}
.lmap-tip-bad{font-size:.64rem;font-weight:700;color:#c92a2a;background:rgba(201,42,42,.12);border-radius:.25rem;padding:.05rem .3rem;white-space:nowrap}
.lmap-tip-title{font-weight:600;margin-bottom:.35rem;overflow-wrap:anywhere}
.lmap-tip-row{display:flex;justify-content:space-between;gap:.75rem;padding:.05rem 0}
.lmap-tip-k{color:var(--bs-secondary-color,#6b7280);flex:0 0 auto}
.lmap-tip-v{text-align:right;font-variant-numeric:tabular-nums}
.lmap-tip-warn{margin-top:.35rem;color:#e8590c}
.lmap-tip-note{margin-top:.25rem;color:var(--bs-secondary-color,#6b7280)}

/* БЛОК В РАБОТЕ: пока подгружается страница списка или применяется фильтр (pjax).
   Затенение заметное и с надписью — еле различимая полупрозрачность не отвечает на вопрос
   «нажалось или нет», а именно его человек и задаёт, ткнув в пагинацию. */
.erp-busy-block { position: relative; pointer-events: none; user-select: none; }

.erp-busy-block > * { opacity: .3; filter: blur(.5px); transition: opacity .12s ease; }

.erp-busy-block::after {
    content: 'Обновляем…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-primary, #4154f1);
    background: color-mix(in srgb, var(--bs-body-bg, #fff) 70%, transparent);
    border-radius: .4rem;
}
