/**
 * painel_leitos.css — Estilos do Painel Operacional de Leitos
 * Versão: 1.0 — 23/02/2026
 */

/* ── Estrutura da View ── */
/* IMPORTANTE: display é gerenciado pelo .view-pane / .view-pane.active
   NÃO colocar display aqui – ID tem especificidade maior que .view-pane */
#view-painel-leitos.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
    background: var(--bg-body);
}

/* ── Header do módulo ── */
.leitos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--sidebar-bg, #0f172a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.leitos-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.leitos-header-left i {
    font-size: 1.4rem;
    color: #06b6d4;
}

/* ── Filtros ── */
.leitos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ── Dropdowns de Ala e Andar ── */
.leitos-dropdowns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.leitos-dropdown-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.leitos-dropdown-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.7);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.leitos-dropdown-label i {
    font-size: 0.9rem;
    color: #06b6d4;
}

.leitos-dropdown-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 1.8rem 0.3rem 0.65rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-width: 110px;
}

.leitos-dropdown-select:hover,
.leitos-dropdown-select:focus {
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.1);
    outline: none;
}

.leitos-dropdown-select option {
    background: #1e293b;
    color: #e2e8f0;
}

.leitos-filter-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.leitos-filter-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
    color: #06b6d4;
}

.leitos-filter-btn.active {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #0f172a;
    font-weight: 700;
}

.leitos-filter-todos {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(226, 232, 240, 0.5);
    background: transparent;
    margin-right: 0.25rem;
}

.leitos-filter-todos:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Separador entre grupos de filtros ── */
.leitos-dropdowns-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    align-self: center;
}

/* ── Interruptor da coluna Códigos ── */
.leitos-codigos-toggle-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leitos-codigos-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.leitos-codigos-toggle-label i {
    color: #dc2626;
    font-size: 0.9rem;
}

/* Travado (Código pendente): switch fica opaco/desabilitado — o próprio JS já força
   input.disabled, isso é só o feedback visual de "não dá pra mexer agora". */
.leitos-codigos-toggle-group.leitos-toggle-locked .gl-toggle {
    opacity: 0.55;
    cursor: not-allowed;
}

:root.light-mode .leitos-codigos-toggle-label {
    color: #1e293b;
}

/* ── Painel de filtro de período (histórico dos KPIs) ── */
.leitos-periodo-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leitos-periodo-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, rgba(148, 163, 184, 0.8));
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.leitos-periodo-input {
    width: auto !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.78rem !important;
}

.leitos-periodo-aviso {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #a78bfa;
    font-size: 0.76rem;
    font-weight: 700;
}

:root.light-mode .leitos-periodo-panel {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ── Multi-select dropdown (Andar e Colunas) ── */
.leitos-multiselect-wrap {
    position: relative;
}

.leitos-multiselect-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem 0.3rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
    min-width: 110px;
}

.leitos-multiselect-btn i:first-child {
    color: #06b6d4;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.leitos-multiselect-btn:hover,
.leitos-multiselect-btn.ms-open {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.leitos-multiselect-btn.ms-filtered {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.leitos-caret {
    margin-left: auto;
    font-size: 0.72rem;
    transition: transform 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.leitos-caret.rotated {
    transform: rotate(180deg);
}

.leitos-multiselect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    max-height: 280px;
    overflow-y: auto;
    background: #1a2535;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    z-index: 500;
    padding: 0.35rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

.leitos-multiselect-panel.ms-open {
    display: block;
    animation: msDropIn 0.14s ease;
}

@keyframes msDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leitos-ms-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.85rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: background 0.12s;
    user-select: none;
}

.leitos-ms-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #e2e8f0;
}

.leitos-ms-todos {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.leitos-ms-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.12s;
}

.leitos-ms-check.checked {
    background: #06b6d4;
    border-color: #06b6d4;
}

.leitos-ms-check.checked::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.leitos-ms-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.3rem 0;
}

.leitos-ms-empty {
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.5);
    font-style: italic;
    text-align: center;
}

/* Barra de KPIs: usa o componente compartilhado gl-dashboard/gl-kpi-card
   (css/gestao_leitos.css) — mesmo layout de GL/LC/Nutrição/Transporte, sem CSS próprio. */

/* ── Lista de detalhe de um KPI (dentro do modal reaproveitado gl-detail-*) ── */
.leitos-kpi-list-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s;
}

.leitos-kpi-list-row:hover {
    background: rgba(6, 182, 212, 0.1);
}

.leitos-kpi-list-swatch {
    flex: 0 0 8px;
    align-self: stretch;
    border-radius: 4px;
}

.leitos-kpi-list-main {
    flex: 1;
    min-width: 0;
}

.leitos-kpi-list-bed {
    font-size: 0.85rem;
    font-weight: 700;
}

.leitos-kpi-list-tipo {
    font-size: 0.72rem;
    opacity: 0.7;
}

.leitos-kpi-list-tipo small {
    opacity: 0.7;
}

.leitos-kpi-list-status {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.leitos-kpi-list-time {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.85;
    min-width: 60px;
    text-align: right;
}

/* Linha especial da lista "Cadeias Ativas" — cada hop concatenado vira uma "coluna" */
.leitos-kpi-list-row-cadeia {
    align-items: stretch;
}

/* Tabela de Cadeias Ativas: colunas por posição de hop (1º/2º/3º Passo...) — cada
   célula é um <td> próprio (ver _leitosCadeiaHopCellHtml), não mais um chip que quebrava
   linha dentro de uma coluna única "Sequência". */
.igl-dd-table .leitos-kpi-cadeia-hop-nome {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.igl-dd-table .leitos-kpi-cadeia-hop-hora {
    font-size: 0.66rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    opacity: 0.65;
    margin: 1px 0 3px;
}

/* ── Grid Container ── */
.leitos-grid-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
}

/* ── Board de Urgência (4 colunas: Baixa / Atenção / Emergencial / Códigos) ── */
.leitos-board {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    min-width: 900px;
    height: 100%;
    align-items: stretch;
}

.leito-board-col {
    flex: 1 1 0;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
}

.leito-board-col-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.leito-board-col-header i {
    font-size: 1rem;
    margin-right: 0.35rem;
}

.leito-board-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.7rem;
    font-weight: 800;
}

.leito-board-col-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leito-board-empty {
    text-align: center;
    padding: 1.5rem 0.5rem;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.4);
    font-style: italic;
}

/* ── Card de evento ── */
.leito-board-card {
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.leito-board-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* SLA em Atenção: mesmo brilho vermelho, só que fixo — luz acesa sem piscar */
.leito-board-card-atencao {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 14px 4px rgba(248, 113, 113, 0.8);
}

:root.light-mode .leito-board-card-atencao {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 14px 4px rgba(220, 38, 38, 0.7);
}

/* SLA crítico estourado: brilho vermelho pulsante em volta do card, tipo luz piscando */
.leito-board-card-critico {
    animation: leito-critico-glow 1.4s ease-in-out infinite;
}

@keyframes leito-critico-glow {

    0%,
    100% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(248, 113, 113, 0.75);
    }

    50% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 18px 5px rgba(248, 113, 113, 0.85);
    }
}

:root.light-mode .leito-board-card-critico {
    animation-name: leito-critico-glow-light;
}

@keyframes leito-critico-glow-light {

    0%,
    100% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(220, 38, 38, 0.65);
    }

    50% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 18px 5px rgba(220, 38, 38, 0.75);
    }
}

/* Duas colunas: esquerda (leito + tipo) cresce e trunca se precisar; direita (tempo +
   status + sla), empilhada e alinhada à direita, encolhe só o necessário — pedido do
   usuário pra tirar os badges de baixo do texto e agrupá-los junto do tempo decorrido. */
.leito-board-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.leito-board-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.leito-board-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.leito-board-card-bed {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.leito-board-card-time {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    opacity: 0.85;
}

.leito-board-card-tipo {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.9;
    line-height: 1.25;
}

/* Badge de status (Aguardando/Aceito/Iniciado) — fundo clarinho na cor do status */
.leito-board-card-status {
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leito-board-card-sla {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 5px;
    padding: 2px 6px;
    width: fit-content;
}

.sla-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Light Mode ── */
:root.light-mode #view-painel-leitos.active {
    background: #f8fafc;
}

:root.light-mode .leitos-header {
    background: #f1f5f9;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .leitos-header-left {
    color: #1e293b;
}

:root.light-mode .leitos-dropdowns-sep {
    background: rgba(0, 0, 0, 0.1);
}

:root.light-mode .leitos-multiselect-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1e293b;
}

:root.light-mode .leitos-multiselect-btn:hover,
:root.light-mode .leitos-multiselect-btn.ms-open {
    background: rgba(6, 182, 212, 0.08);
}


:root.light-mode .leito-board-col {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .leito-board-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ── Responsivo ── */
@media (max-width: 768px) {
    .leitos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .leitos-filter-btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ── Estilos do Formulário de Config (settings-leitos) ── */
.leitos-evento-row {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: background 0.2s;
}

.leitos-evento-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leitos-evento-id-wrap {
    flex: 0 0 110px;
}

.leitos-evento-name-wrap {
    flex: 1;
}

.leitos-evento-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.65);
    margin-bottom: 0.25rem;
}

.leitos-remove-btn {
    flex: 0 0 36px;
    height: 42px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    align-self: flex-end;
}

.leitos-remove-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: #f87171;
}

.leitos-add-evento-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.06);
    color: #06b6d4;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.leitos-add-evento-btn:hover {
    background: rgba(6, 182, 212, 0.14);
    border-color: #06b6d4;
}

.leitos-evento-empty {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.4);
    font-style: italic;
    padding: 0.5rem 0;
}

.leitos-coluna-card {
    border-left: 3px solid rgba(6, 182, 212, 0.3) !important;
}

.leitos-coluna-header:hover {
    opacity: 0.85;
}

/* ── Eventos somente-leitura (vindos do banco via view_event_categories) ── */
.leitos-evento-readonly {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    margin-bottom: 0.35rem;
    transition: opacity 0.15s;
}

/* Passo (hop) dentro de uma cadeia de Eventos Concatenados */
.leitos-cadeia-hop {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 7px;
    margin-bottom: 0.35rem;
}

.leitos-cadeia-hop-num {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leitos-cadeia-hop-nome {
    flex: 1;
    font-size: 0.82rem;
    color: #cbd5e1;
    font-weight: 500;
}

.leitos-cadeia-hop-nome small {
    opacity: 0.55;
    font-weight: 400;
}

.leitos-ev-visivel-check {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Evento desabilitado: nunca aparece no board — linha esmaecida na config */
.leitos-evento-desabilitado {
    opacity: 0.45;
}

.leitos-evento-desabilitado .leitos-ev-nome,
.leitos-evento-desabilitado .leitos-ev-id {
    text-decoration: line-through;
}

.leitos-ev-id {
    flex: 0 0 55px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 5px;
    padding: 2px 6px;
    text-align: center;
}

.leitos-ev-nome {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
    flex: 1;
}

/* Urgência por evento (herda o padrão da categoria quando vazio) */
.leitos-ev-urg-select {
    flex-shrink: 0;
    width: 190px;
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
}

/* Cor do card por evento (sugestão vinda do Multitone, sobrescrevível) */
.leitos-ev-cor-input {
    flex-shrink: 0;
    width: 34px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

/* ── Preview do ícone no select ── */
#view-settings-leitos select.settings-input {
    cursor: pointer;
}