/* Модуль «Присутствие»: цвет стола по статусу сотрудника, кнопка в шапке, баннер отметки, панель, легенда */
.desk-wrapper.pst { background-color: var(--st) !important; border-color: color-mix(in srgb, var(--st) 72%, black) !important; color: #fff !important; }
.desk-wrapper.pst .desk-name-line { color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.45); }
.desk-wrapper.model.pst .surface { fill: var(--st); }
.tooltip-pst { font-size: 12px; opacity: 0.85; }

.btn-presence { display: inline-flex; align-items: center; gap: 6px; }
.btn-presence[hidden] { display: none; }
.btn-presence .pdot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; display: inline-block; }
.btn-presence.need { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35); }

.pres-bar { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); z-index: 1100; max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: #fffbeb; color: #78350f; border: 1px solid #f59e0b; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.pres-bar[hidden] { display: none; }
.pres-bar-buttons, .pres-buttons { display: flex; flex-wrap: wrap; gap: 6px; }

.pst-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.pst-btn i { width: 10px; height: 10px; border-radius: 50%; background: var(--st); display: inline-block; }
.pst-btn:hover { border-color: var(--st); }
.pst-btn.active { background: var(--st); color: #fff; border-color: var(--st); }
.pst-btn.active i { background: #fff; }

.pres-panel { position: fixed; top: 64px; right: 12px; bottom: 12px; width: 340px; z-index: 1001; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.pres-panel[hidden] { display: none; }
.pres-panel .nav-body { flex: 1; }
.pres-plan-form { display: flex; flex-wrap: wrap; gap: 6px; }
.pres-plan-form input[type=text] { flex: 1 1 100%; }
.pres-plan { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.pair-code { font-size: 20px; letter-spacing: 3px; }

.pres-legend { position: fixed; left: 12px; bottom: 44px;   /* выше строки с авторскими правами внизу слева */ z-index: 900; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 60vw; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.15)); }
.pres-legend[hidden] { display: none; }
.pres-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pres-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

@media (max-width: 700px) {
    .pres-panel { left: 8px; right: 8px; width: auto; }
    .btn-presence .txt { display: none; }
}

#btnRoute { display: inline-flex; align-items: center; gap: 6px; }
