/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Layout principal */
.main-layout[b-ym91us3mtd] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-header[b-ym91us3mtd] {
    flex: 0 0 auto;
    z-index: 1000;
    position: relative;
}

/* Área que contém sidebar + conteúdo */
.layout-body[b-ym91us3mtd] {
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
}

/* Conteúdo principal cresce para ocupar o espaço restante */
.main-content[b-ym91us3mtd] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.page-content[b-ym91us3mtd] {
    padding: 24px;
    height: 100%;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Visibility rules (unchanged logic) ── */
.components-reconnect-first-attempt-visible[b-33mzm1cika],
.components-reconnect-repeated-attempt-visible[b-33mzm1cika],
.components-reconnect-failed-visible[b-33mzm1cika],
.components-pause-visible[b-33mzm1cika],
.components-resume-failed-visible[b-33mzm1cika],
.components-rejoining-animation[b-33mzm1cika] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-retrying[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-failed[b-33mzm1cika],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-33mzm1cika] {
    display: block;
}

/* ── Dialog ── */
#components-reconnect-modal[b-33mzm1cika] {
    width: 22rem;
    margin: 20vh auto;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: rcm-fade-out-b-33mzm1cika 0.4s both;

    &[open] {
        animation: rcm-slide-up-b-33mzm1cika 0.45s cubic-bezier(.05, .89, .25, 1.02) 0.15s,
                   rcm-fade-in-b-33mzm1cika  0.35s ease-out 0.15s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-33mzm1cika]::backdrop {
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    animation: rcm-fade-in-b-33mzm1cika 0.35s ease-out;
    opacity: 1;
}

/* ── Container ── */
.components-reconnect-container[b-33mzm1cika] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}

/* ── Logo ── */
.rcm-logo[b-33mzm1cika] {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

/* ── Messages ── */
.rcm-msg[b-33mzm1cika] {
    margin: 0;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.55;
}

.rcm-msg--warn[b-33mzm1cika] {
    color: #92400e;
}

.rcm-msg--error[b-33mzm1cika] {
    color: #991b1b;
}

/* ── Button ── */
.rcm-btn[b-33mzm1cika] {
    background: #0f6cbd;
    color: #ffffff;
    border: 0;
    border-radius: 0.55rem;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    font-family: inherit;
    margin-top: 0.25rem;
}

.rcm-btn:hover[b-33mzm1cika] {
    background: #0d5ca3;
    transform: translateY(-1px);
}

/* ── Ripple animation ── */
.components-rejoining-animation[b-33mzm1cika] {
    position: relative;
    width: 56px;
    height: 56px;
    color: #0f6cbd;
}

.components-rejoining-animation div[b-33mzm1cika] {
    position: absolute;
    border: 2.5px solid currentColor;
    border-radius: 50%;
    animation: rcm-ripple-b-33mzm1cika 1.6s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-33mzm1cika] {
    animation-delay: -0.8s;
}

@keyframes rcm-ripple-b-33mzm1cika {
    0% {
        top: 28px; left: 28px;
        width: 0; height: 0;
        opacity: 0;
    }
    5% {
        top: 28px; left: 28px;
        width: 0; height: 0;
        opacity: 1;
    }
    100% {
        top: 0; left: 0;
        width: 56px; height: 56px;
        opacity: 0;
    }
}

/* ── Keyframes ── */
@keyframes rcm-slide-up-b-33mzm1cika {
    from { transform: translateY(24px) scale(0.97); }
    to   { transform: translateY(0) scale(1); }
}

@keyframes rcm-fade-in-b-33mzm1cika {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rcm-fade-out-b-33mzm1cika {
    from { opacity: 1; }
    to   { opacity: 0; }
}
/* /Components/Pages/Agenda/Agenda.razor.rz.scp.css */
/* Status Modal */
[b-ygevrlms4y] .status-modal-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px;
}

[b-ygevrlms4y] .status-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
    border: 1.5px solid transparent;
    user-select: none;
}

[b-ygevrlms4y] .status-modal-item:hover {
    background: #f4f6f9;
}

[b-ygevrlms4y] .status-modal-item.selected {
    border-color: #0078d4;
    background: rgba(0, 120, 212, 0.07);
}

[b-ygevrlms4y] .status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    transition: box-shadow 0.15s;
}

[b-ygevrlms4y] .status-label {
    font-size: 14px;
    flex: 1;
    font-weight: 500;
}

[b-ygevrlms4y] .status-check-icon {
    font-size: 11px;
    color: #0078d4;
    opacity: 0.9;
}

/* Cabeçalho do paciente na modal de detalhes */
[b-ygevrlms4y] .sessao-paciente-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
    border-radius: 10px;
    border: 1px solid #d0def8;
}

[b-ygevrlms4y] .sessao-paciente-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

[b-ygevrlms4y] .sessao-paciente-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a7fb5;
}

[b-ygevrlms4y] .sessao-paciente-nome {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    margin-top: 1px;
}

[b-ygevrlms4y] .sessao-paciente-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: white;
    border: 1px solid #c0d4ef;
    color: #0078d4;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    margin-left: auto;
}

[b-ygevrlms4y] .sessao-paciente-link:hover {
    background: #e8f0fe;
    border-color: #0078d4;
    text-decoration: none;
}

/* Modal de confirmação */
[b-ygevrlms4y] .confirmacao-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 20px 12px;
    text-align: center;
}

[b-ygevrlms4y] .confirmacao-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 14px rgba(133, 100, 4, 0.18);
}

[b-ygevrlms4y] .confirmacao-text {
    font-size: 14px;
    color: #3a3a3a;
    line-height: 1.6;
    max-width: 340px;
}

/* Agenda schedule — altura das células */
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-work-cells,
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-time-cells-wrap table td {
    height: 26px;
}

/* Destaque da coluna do dia atual na visão semanal */
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-work-cells.dia-atual {
    background-color: rgba(25, 118, 210, 0.09) !important;
}

/* Destaque do cabeçalho e coluna do dia atual — visão semanal */
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-date-header-wrap table col.e-current-day,
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-content-wrap table col.e-current-day {
    background-color: rgba(0, 120, 212, 0.08);
}

[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-date-header-wrap .e-current-day {
    background-color: rgba(0, 120, 212, 0.14);
    color: #005a9e;
    font-weight: 700;
}

[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-work-cells.e-current-day {
    background-color: rgba(0, 120, 212, 0.08);
    border-left-color: rgba(0, 120, 212, 0.35);
    border-right-color: rgba(0, 120, 212, 0.35);
}

/* Destaque de feriados — células de trabalho (dia/semana) */
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-work-cells.dia-feriado {
    background-color: rgba(211, 47, 47, 0.07) !important;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 4px,
        rgba(211, 47, 47, 0.06) 4px,
        rgba(211, 47, 47, 0.06) 5px
    );
}

/* Destaque de feriados — cabeçalho de data (dia/semana) */
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-vertical-view .e-date-header-wrap .dia-feriado {
    background-color: rgba(211, 47, 47, 0.12) !important;
    color: #c62828 !important;
    font-weight: 700 !important;
}

/* Destaque de feriados — visão mensal */
[b-ygevrlms4y] .agenda-schedule.e-schedule .e-month-view .e-work-cells.dia-feriado {
    background-color: rgba(211, 47, 47, 0.08) !important;
}

[b-ygevrlms4y] .agenda-schedule.e-schedule .e-month-view .e-work-cells.dia-feriado .e-date-header {
    color: #c62828 !important;
    font-weight: 700 !important;
}

/* Barra de feriados do período visível */
.agenda-feriados-bar[b-ygevrlms4y] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.agenda-feriado-pill[b-ygevrlms4y] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(211, 47, 47, 0.10);
    border: 1px solid rgba(211, 47, 47, 0.22);
    font-size: 12px;
    color: #b71c1c;
    white-space: nowrap;
}

.agenda-feriado-pill i[b-ygevrlms4y] {
    font-size: 11px;
    opacity: 0.8;
}

.agenda-feriado-data[b-ygevrlms4y] {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.agenda-feriado-nome[b-ygevrlms4y] {
    color: #333;
    font-weight: 500;
}

.agenda-feriado-tipo[b-ygevrlms4y] {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(211, 47, 47, 0.15);
    border-radius: 10px;
    padding: 1px 6px;
    color: #c62828;
}

/* Combo de cor — largura ajustada */
[b-ygevrlms4y] .combo-cor-agenda {
    width: auto;
}

[b-ygevrlms4y] .combo-cor-agenda .e-input-group,
[b-ygevrlms4y] .combo-cor-agenda .e-ddl,
[b-ygevrlms4y] .combo-cor-agenda .e-control-wrapper {
    width: 18ch !important;
    min-width: 18ch !important;
}

/* Comparação de Semanas — Grade de Tempo */
[b-ygevrlms4y] .e-dialog-comparacao .e-dlg-content {
    padding: 0;
    overflow: visible;
}

[b-ygevrlms4y] .comparacao-dias-selector {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 20px;
    padding: 12px 14px;
    border-bottom: 1px solid #e0e7ef;
    background: #f8f9fb;
}

[b-ygevrlms4y] .comparacao-campo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

[b-ygevrlms4y] .comparacao-campo-paciente {
    flex: 1 1 auto;
    flex-shrink: 1;
    min-width: 180px;
    max-width: 340px;
}

[b-ygevrlms4y] .comparacao-dias-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7c93;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

[b-ygevrlms4y] .comparacao-dp {
    width: 130px !important;
}

[b-ygevrlms4y] .comparacao-paciente-dd {
    width: 100% !important;
}

[b-ygevrlms4y] .comparacao-day-weekday {
    font-size: 11px;
    font-weight: 500;
    color: #7a8da0;
    margin-top: 1px;
}

[b-ygevrlms4y] .comparacao-day-header-hoje .comparacao-day-weekday {
    color: #3a7fc1;
}

/* Wrapper com scroll bidirecional */
[b-ygevrlms4y] .comparacao-scroll-wrapper {
    overflow: auto;
    max-height: 580px;
    margin-top: 14px;
}

/* Cabeçalho fixo com datas (sticky no topo) */
[b-ygevrlms4y] .comparacao-day-headers {
    display: flex;
    flex-shrink: 0;
    border-bottom: 2px solid #d0d8e4;
    background: #f8f9fb;
    position: sticky;
    top: 0;
    z-index: 3;
    min-width: max-content;
}

/* Espaçador sticky no canto superior-esquerdo */
[b-ygevrlms4y] .comparacao-time-spacer {
    width: 52px;
    flex-shrink: 0;
    border-right: 1px solid #e0e7ef;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #f8f9fb;
}

[b-ygevrlms4y] .comparacao-day-header {
    flex: 1 0 140px;
    min-width: 140px;
    padding: 8px 6px;
    text-align: center;
    border-right: 1px solid #e0e7ef;
}

[b-ygevrlms4y] .comparacao-day-header-hoje {
    background: rgba(0, 120, 212, 0.08);
}

[b-ygevrlms4y] .comparacao-day-date {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
}

[b-ygevrlms4y] .comparacao-day-header-hoje .comparacao-day-date {
    color: #0055a5;
}

[b-ygevrlms4y] .comparacao-badge-hoje {
    display: inline-block;
    background: #0078d4;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

[b-ygevrlms4y] .comparacao-day-count {
    font-size: 10px;
    color: #7a8da0;
    margin-top: 2px;
}

/* Grade interna: coluna de horas + colunas dos dias */
[b-ygevrlms4y] .comparacao-grid-inner {
    display: flex;
    height: 960px; /* 16 horas × 60px */
    min-width: max-content;
}

/* Coluna de rótulos de hora (sticky à esquerda) */
[b-ygevrlms4y] .comparacao-time-col {
    width: 52px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid #e0e7ef;
    background: #fafbfc;
}

[b-ygevrlms4y] .comparacao-time-label {
    position: absolute;
    left: 0;
    right: 4px;
    text-align: right;
    font-size: 10px;
    color: #8a9ab0;
    transform: translateY(-6px);
    white-space: nowrap;
}

/* Coluna de cada dia */
[b-ygevrlms4y] .comparacao-day-col {
    flex: 1 0 140px;
    min-width: 140px;
    position: relative;
    border-right: 1px solid #e8ecf2;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 29px,
        #f0f2f5 29px,
        #f0f2f5 30px,
        transparent 30px,
        transparent 59px,
        #dde3ec 59px,
        #dde3ec 60px
    );
}

[b-ygevrlms4y] .comparacao-day-col-hoje {
    background-color: rgba(0, 120, 212, 0.04);
}

/* Evento posicionado absolutamente na grade */
[b-ygevrlms4y] .comparacao-evento-abs {
    position: absolute;
    box-sizing: border-box;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    padding: 2px 4px;
    transition: opacity 0.12s, box-shadow 0.12s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-size: 11px;
    z-index: 1;
}

[b-ygevrlms4y] .comparacao-evento-abs:hover {
    opacity: 0.87;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

[b-ygevrlms4y] .comparacao-evento-abs.comparacao-evento-abs-cancelado {
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0,0,0,0.18) 0px,
        rgba(0,0,0,0.18) 2px,
        transparent 2px,
        transparent 8px
    );
    opacity: 0.7;
}

[b-ygevrlms4y] .comparacao-evt-hora {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.3;
}

[b-ygevrlms4y] .comparacao-evt-nome {
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

[b-ygevrlms4y] .comparacao-evt-status {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 8px;
    opacity: 0.9;
}
/* /Components/Pages/Agenda/NovaAgenda.razor.rz.scp.css */
/* ── Toolbar ── */

.nagenda-toolbar[b-jqo79z3u4r] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nagenda-range-label[b-jqo79z3u4r] {
    font-size: 14px;
    font-weight: 600;
    color: #1a2a3a;
    white-space: nowrap;
    padding: 0 4px;
}

/* Mobile: compacta a linha de navegação de data para caber em uma linha */
@media (max-width: 575.98px) {
    .nagenda-range-label[b-jqo79z3u4r] {
        display: none;
    }

    .nagenda-toolbar[b-jqo79z3u4r] {
        gap: 4px !important;
    }

    [b-jqo79z3u4r] .nagenda-paciente-dd .e-input-group,
    [b-jqo79z3u4r] .nagenda-paciente-dd .e-ddl,
    [b-jqo79z3u4r] .nagenda-paciente-dd .e-control-wrapper {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Cada coluna ocupa a largura útil do grid no celular (menos a coluna de horas de 52px).
       !important necessário: a regra base flex:1 0 140px aparece depois no arquivo e sobrescreveria. */
    .nagenda-day-col[b-jqo79z3u4r],
    .nagenda-day-header[b-jqo79z3u4r] {
        flex: 0 0 var(--nagenda-col-w, calc(100vw - 126px)) !important;
        min-width: var(--nagenda-col-w, calc(100vw - 126px)) !important;
        max-width: var(--nagenda-col-w, calc(100vw - 126px)) !important;
    }

    /* Scroll snap: cada dia ocupa a tela inteira e o arrasto sempre para num dia completo.
       scroll-padding-left desconta a coluna de horas (52px) que fica sticky à esquerda. */
    .nagenda-grid[b-jqo79z3u4r] {
        scroll-snap-type: x mandatory;
        scroll-padding-left: 52px;
    }

    .nagenda-day-col[b-jqo79z3u4r] {
        scroll-snap-align: start;
    }
}

[b-jqo79z3u4r] .combo-cor-agenda {
    width: auto;
}

[b-jqo79z3u4r] .combo-cor-agenda .e-input-group,
[b-jqo79z3u4r] .combo-cor-agenda .e-ddl,
[b-jqo79z3u4r] .combo-cor-agenda .e-control-wrapper {
    width: 18ch !important;
    min-width: 18ch !important;
}

[b-jqo79z3u4r] .nagenda-dp-wrap .e-input-group,
[b-jqo79z3u4r] .nagenda-dp-wrap .e-control-wrapper {
    width: 130px !important;
    min-width: 130px !important;
}

[b-jqo79z3u4r] .nagenda-paciente-dd .e-input-group,
[b-jqo79z3u4r] .nagenda-paciente-dd .e-ddl,
[b-jqo79z3u4r] .nagenda-paciente-dd .e-control-wrapper {
    width: 22ch !important;
    min-width: 22ch !important;
}

/* ── Barra de feriados ── */

.nagenda-feriados-bar[b-jqo79z3u4r] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nagenda-feriado-pill[b-jqo79z3u4r] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(211, 47, 47, 0.10);
    border: 1px solid rgba(211, 47, 47, 0.22);
    font-size: 12px;
    color: #b71c1c;
    white-space: nowrap;
}

.nagenda-feriado-pill i[b-jqo79z3u4r] {
    font-size: 11px;
    opacity: 0.8;
}

.nagenda-feriado-data[b-jqo79z3u4r] {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nagenda-feriado-nome[b-jqo79z3u4r] {
    color: #333;
    font-weight: 500;
}

.nagenda-feriado-tipo[b-jqo79z3u4r] {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(211, 47, 47, 0.15);
    border-radius: 10px;
    padding: 1px 6px;
    color: #c62828;
}

/* ── Grade — wrapper com scroll bidirecional ── */

.nagenda-grid[b-jqo79z3u4r] {
    overflow: auto;
    height: calc(100vh - 190px);
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
}

/* Cabeçalho fixo com datas (sticky no topo) */
.nagenda-day-headers[b-jqo79z3u4r] {
    display: flex;
    flex-shrink: 0;
    border-bottom: 2px solid #d0d8e4;
    background: #f8f9fb;
    position: sticky;
    top: 0;
    z-index: 3;
    min-width: max-content;
}

/* Espaçador sticky no canto superior-esquerdo */
.nagenda-time-spacer[b-jqo79z3u4r] {
    width: 52px;
    flex-shrink: 0;
    border-right: 1px solid #e0e7ef;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #f8f9fb;
}

.nagenda-day-header[b-jqo79z3u4r] {
    flex: 1 0 140px;
    min-width: 140px;
    padding: 8px 6px;
    text-align: center;
    border-right: 1px solid #e0e7ef;
}

.nagenda-day-header-hoje[b-jqo79z3u4r] {
    background: rgba(0, 120, 212, 0.08);
}

.nagenda-day-header-feriado[b-jqo79z3u4r] {
    background: rgba(211, 47, 47, 0.08);
}

.nagenda-day-date[b-jqo79z3u4r] {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
}

.nagenda-day-header-hoje .nagenda-day-date[b-jqo79z3u4r] {
    color: #0055a5;
}

.nagenda-day-header-feriado .nagenda-day-date[b-jqo79z3u4r] {
    color: #c62828;
}

.nagenda-day-weekday[b-jqo79z3u4r] {
    font-size: 11px;
    font-weight: 500;
    color: #7a8da0;
    margin-top: 1px;
}

.nagenda-day-header-hoje .nagenda-day-weekday[b-jqo79z3u4r] {
    color: #3a7fc1;
}

.nagenda-badge-hoje[b-jqo79z3u4r] {
    display: inline-block;
    background: #0078d4;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.nagenda-badge-feriado[b-jqo79z3u4r] {
    display: inline-block;
    background: rgba(211, 47, 47, 0.85);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.nagenda-day-count[b-jqo79z3u4r] {
    font-size: 10px;
    color: #7a8da0;
    margin-top: 2px;
}

/* ── Grade interna: coluna de horas + colunas dos dias ── */

/* Altura definida inline pela página: (HoraFimAgenda - HoraInicioAgenda) × 60px */
.nagenda-grid-inner[b-jqo79z3u4r] {
    display: flex;
    min-width: max-content;
}

/* Coluna de rótulos de hora (sticky à esquerda) */
.nagenda-time-col[b-jqo79z3u4r] {
    width: 52px;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid #e0e7ef;
    background: #fafbfc;
}

.nagenda-time-label[b-jqo79z3u4r] {
    position: absolute;
    left: 0;
    right: 4px;
    text-align: right;
    font-size: 10px;
    color: #8a9ab0;
    transform: translateY(-6px);
    white-space: nowrap;
}

/* Primeiro rótulo de hora: sem deslocamento para não ficar cortado sob o header */
.nagenda-time-label-first[b-jqo79z3u4r] {
    transform: translateY(2px);
}

/* Coluna de cada dia */
.nagenda-day-col[b-jqo79z3u4r] {
    flex: 1 0 140px;
    min-width: 140px;
    position: relative;
    border-right: 1px solid #e8ecf2;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 29px,
        #f0f2f5 29px,
        #f0f2f5 30px,
        transparent 30px,
        transparent 59px,
        #dde3ec 59px,
        #dde3ec 60px
    );
}

.nagenda-day-col-hoje[b-jqo79z3u4r] {
    background-color: rgba(0, 120, 212, 0.04);
}

.nagenda-day-col-feriado[b-jqo79z3u4r] {
    background-color: rgba(211, 47, 47, 0.05);
}

/* ── Evento posicionado absolutamente na grade ── */

.nagenda-evento-abs[b-jqo79z3u4r] {
    position: absolute;
    box-sizing: border-box;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    padding: 2px 4px;
    transition: opacity 0.12s, box-shadow 0.12s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-size: 11px;
    z-index: 1;
    user-select: none;
}

.nagenda-evento-abs:hover[b-jqo79z3u4r] {
    opacity: 0.87;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

.nagenda-evento-abs.nagenda-evento-abs-adicional[b-jqo79z3u4r] {
    opacity: 0.55;
}

.nagenda-evt-hora[b-jqo79z3u4r] {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.3;
}

.nagenda-evt-nome[b-jqo79z3u4r] {
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nagenda-evt-icons[b-jqo79z3u4r] {
    position: absolute;
    bottom: 2px;
    right: 3px;
    display: flex;
    gap: 3px;
    align-items: center;
    font-size: 10px;
    opacity: 0.9;
}

/* Ícone de isento — canto superior direito */
.nagenda-evt-isento[b-jqo79z3u4r] {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 10px;
    opacity: 0.9;
}

/* ── Linha do horário atual ── */

.nagenda-now-line[b-jqo79z3u4r] {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed rgba(229, 57, 53, 0.45);
    z-index: 2;
    pointer-events: none;
}

.nagenda-now-line-hoje[b-jqo79z3u4r] {
    border-top: 2px solid #e53935;
}

.nagenda-now-line-hoje[b-jqo79z3u4r]::before {
    content: '';
    position: absolute;
    left: -1px;
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53935;
}

/* ── Status Modal ── */

[b-jqo79z3u4r] .status-modal-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px;
}

[b-jqo79z3u4r] .status-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
    border: 1.5px solid transparent;
    user-select: none;
}

[b-jqo79z3u4r] .status-modal-item:hover {
    background: #f4f6f9;
}

[b-jqo79z3u4r] .status-modal-item.selected {
    border-color: #0078d4;
    background: rgba(0, 120, 212, 0.07);
}

[b-jqo79z3u4r] .status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    transition: box-shadow 0.15s;
}

[b-jqo79z3u4r] .status-label {
    font-size: 14px;
    flex: 1;
    font-weight: 500;
}

[b-jqo79z3u4r] .status-check-icon {
    font-size: 11px;
    color: #0078d4;
    opacity: 0.9;
}

/* ── Cabeçalho do paciente na modal de detalhes ── */

[b-jqo79z3u4r] .sessao-paciente-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
    border-radius: 10px;
    border: 1px solid #d0def8;
}

[b-jqo79z3u4r] .sessao-paciente-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

[b-jqo79z3u4r] .sessao-paciente-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a7fb5;
}

[b-jqo79z3u4r] .sessao-paciente-nome {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    margin-top: 1px;
}

[b-jqo79z3u4r] .sessao-paciente-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: white;
    border: 1px solid #c0d4ef;
    color: #0078d4;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    margin-left: auto;
}

[b-jqo79z3u4r] .sessao-paciente-link:hover {
    background: #e8f0fe;
    border-color: #0078d4;
    text-decoration: none;
}

/* ── Modal de confirmação ── */

[b-jqo79z3u4r] .confirmacao-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 20px 12px;
    text-align: center;
}

[b-jqo79z3u4r] .confirmacao-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 14px rgba(133, 100, 4, 0.18);
}

[b-jqo79z3u4r] .confirmacao-text {
    font-size: 14px;
    color: #3a3a3a;
    line-height: 1.6;
    max-width: 340px;
}
/* /Components/Pages/Gravacoes/Index.razor.rz.scp.css */
/* ── Layout principal ── */
.grav-layout[b-e3g3w4tvr5] {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 64px);
    overflow: hidden;
}

/* ── Botão Voltar (só mobile) ── */
.grav-voltar-btn[b-e3g3w4tvr5] {
    display: none;
}

@media (max-width: 991px) {
    .grav-layout[b-e3g3w4tvr5] {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    /* Oculta o painel no mobile via classe aplicada diretamente no elemento */
    .grav-mobile-oculto[b-e3g3w4tvr5] {
        display: none !important;
    }

    /* Botão Voltar visível no mobile */
    .grav-voltar-btn[b-e3g3w4tvr5] {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px 16px;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
        font-size: .88rem;
        font-weight: 600;
        color: #6366f1;
        cursor: pointer;
        text-align: left;
        flex-shrink: 0;
    }

    .grav-voltar-btn:hover[b-e3g3w4tvr5] {
        background: #eef2ff;
    }
}

/* ── Alerta de feedback ── */
.grav-alerta[b-e3g3w4tvr5] {
    margin: 12px 16px 0;
    font-size: .88rem;
}

/* ── Painel esquerdo ── */
.grav-lista-panel[b-e3g3w4tvr5] {
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}

.grav-lista-header[b-e3g3w4tvr5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.grav-loading-center[b-e3g3w4tvr5] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 16px;
    flex: 1;
}

.grav-empty-list[b-e3g3w4tvr5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    flex: 1;
}

/* ── Filtro de data ── */
.grav-lista-filtro[b-e3g3w4tvr5] {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.grav-datepicker.e-input-group[b-e3g3w4tvr5] {
    width: 100%;
}

/* ── Item de gravação na lista ── */
.grav-item[b-e3g3w4tvr5] {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .12s;
}

.grav-item:hover[b-e3g3w4tvr5] {
    background: #f3f4f6;
}

.grav-item--ativo[b-e3g3w4tvr5] {
    background: #eef2ff;
    border-left: 3px solid #6366f1;
}

.grav-item--ativo:hover[b-e3g3w4tvr5] {
    background: #e8eeff;
}

.grav-item-icone[b-e3g3w4tvr5] {
    font-size: 18px;
    color: #6366f1;
    margin-top: 2px;
    flex-shrink: 0;
}

.grav-item-nome[b-e3g3w4tvr5] {
    font-size: .88rem;
    font-weight: 600;
    color: #111827;
}

.grav-item-data[b-e3g3w4tvr5] {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 2px;
}

.grav-badge[b-e3g3w4tvr5] {
    font-size: .7rem;
}

/* ── Painel direito ── */
.grav-detalhe-panel[b-e3g3w4tvr5] {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.grav-empty-detalhe[b-e3g3w4tvr5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 60px 24px;
    color: #9ca3af;
    font-size: .92rem;
}

/* ── Cabeçalho do detalhe ── */
.grav-detalhe-header[b-e3g3w4tvr5] {
    padding: 20px 24px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.grav-detalhe-nome[b-e3g3w4tvr5] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.grav-detalhe-meta[b-e3g3w4tvr5] {
    font-size: .82rem;
    color: #6b7280;
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

/* ── Seções do detalhe ── */
.grav-section[b-e3g3w4tvr5] {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.grav-section:last-child[b-e3g3w4tvr5] {
    border-bottom: none;
}

.grav-section-title[b-e3g3w4tvr5] {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
}

/* ── Caixa de transcrição ── */
.grav-transcricao-box[b-e3g3w4tvr5] {
    font-size: .9rem;
    line-height: 1.75;
    color: #1f2937;
    white-space: pre-wrap;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    max-height: 280px;
    overflow-y: auto;
}

/* ── Card de sessão vinculada ── */
.grav-sessao-card[b-e3g3w4tvr5] {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color .15s;
}

.grav-sessao-card:last-child[b-e3g3w4tvr5] {
    margin-bottom: 0;
}

.grav-sessao-card:hover[b-e3g3w4tvr5] {
    border-color: #a5b4fc;
}

.grav-sessao-paciente[b-e3g3w4tvr5] {
    font-size: .92rem;
    font-weight: 600;
    color: #111827;
}

.grav-sessao-meta[b-e3g3w4tvr5] {
    font-size: .8rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ── Badges de status de resumo ── */
.resumo-tipo-badge[b-e3g3w4tvr5] {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.resumo-tipo-badge--ok[b-e3g3w4tvr5] {
    background: #d1fae5;
    color: #065f46;
}

.resumo-tipo-badge--vazio[b-e3g3w4tvr5] {
    background: #f3f4f6;
    color: #9ca3af;
}

/* ── Botão de cópia ── */
.grav-copy-btn[b-e3g3w4tvr5] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6366f1;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.grav-copy-btn:hover[b-e3g3w4tvr5] {
    background: #eef2ff;
    border-color: #6366f1;
}

.grav-copy-btn--copiado[b-e3g3w4tvr5],
.grav-copy-btn--copiado:hover[b-e3g3w4tvr5] {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

/* ── Blocos de resumo expansíveis ── */
.grav-resumo-bloco[b-e3g3w4tvr5] {
    margin-top: 8px;
}

.grav-resumo-header[b-e3g3w4tvr5] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background .12s, border-color .12s;
}

.grav-resumo-header:disabled[b-e3g3w4tvr5] {
    cursor: default;
    opacity: .7;
}

.grav-resumo-header--ok[b-e3g3w4tvr5] {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.grav-resumo-header--ok:not(:disabled):hover[b-e3g3w4tvr5] {
    background: #d1fae5;
}

.grav-resumo-header--vazio[b-e3g3w4tvr5] {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af;
}

.grav-resumo-texto[b-e3g3w4tvr5] {
    font-size: .85rem;
    line-height: 1.7;
    color: #1f2937;
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 10px 12px;
    max-height: 240px;
    overflow-y: auto;
}

/* ── Itens do dialog de vínculos ── */
.grav-sessao-check-item[b-e3g3w4tvr5] {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}

.grav-sessao-check-item:last-child[b-e3g3w4tvr5] {
    margin-bottom: 0;
}

.grav-sessao-check-item:hover[b-e3g3w4tvr5] {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.grav-sessao-check-item--marcado[b-e3g3w4tvr5] {
    background: #eef2ff;
    border-color: #818cf8;
}

.grav-sessao-check-item--marcado:hover[b-e3g3w4tvr5] {
    background: #e8eeff;
}
/* /Components/Pages/Pacientes/ListaPacientes.razor.rz.scp.css */
[b-6gbtlpj5hx] .e-row {
    cursor: pointer;
}

[b-6gbtlpj5hx] .e-headercell .e-headercelldiv {
    display: flex;
    align-items: center;
    height: 100%;
}
/* /Components/Pages/Pacientes/PacienteDashboard.razor.rz.scp.css */
/* ── Breadcrumb ── */
.paciente-db-breadcrumb[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.paciente-db-breadcrumb-link[b-syfxu6pxti] {
    color: #4f46e5;
    text-decoration: none;
}

.paciente-db-breadcrumb-link:hover[b-syfxu6pxti] {
    text-decoration: underline;
}

.paciente-db-breadcrumb-sep[b-syfxu6pxti] {
    font-size: .65rem;
    color: #9ca3af;
}

/* ── Card base ── */
.paciente-db-card[b-syfxu6pxti] {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.paciente-db-card-header[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.paciente-db-card-icon[b-syfxu6pxti] {
    font-size: 18px;
    color: #6366f1;
}

.paciente-db-tab-count[b-syfxu6pxti] {
    font-size: .78rem;
    margin-bottom: 4px;
    margin-top: 12px;
}

.paciente-db-metric-card--link[b-syfxu6pxti] {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s;
}

.paciente-db-metric-card--link:hover[b-syfxu6pxti] {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .15);
    color: inherit;
}

.paciente-db-metric-link-hint[b-syfxu6pxti] {
    font-size: .72rem;
    color: #6366f1;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.paciente-db-agenda-link[b-syfxu6pxti] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #6366f1;
    background: #eef2ff;
    text-decoration: none;
    font-size: 14px;
    transition: background .15s;
}

.paciente-db-agenda-link:hover[b-syfxu6pxti] {
    background: #6366f1;
    color: #fff;
}

.paciente-db-isento-badge[b-syfxu6pxti] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    background: #d1fae5;
    color: #065f46;
}

.paciente-db-card-title[b-syfxu6pxti] {
    font-weight: 700;
    font-size: .9rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Info rows (dados do paciente) ── */
.paciente-db-info-row[b-syfxu6pxti] {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.paciente-db-info-row:last-child[b-syfxu6pxti] {
    border-bottom: none;
}

.paciente-db-info-label[b-syfxu6pxti] {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
}

.paciente-db-info-value[b-syfxu6pxti] {
    font-size: .92rem;
    color: #111827;
}

.paciente-db-age-badge[b-syfxu6pxti] {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: .75rem;
    font-weight: 700;
}

.paciente-db-whatsapp-link[b-syfxu6pxti] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.paciente-db-whatsapp-link:hover[b-syfxu6pxti] {
    text-decoration: underline;
}

.paciente-db-whatsapp-icon[b-syfxu6pxti] {
    font-size: 16px;
}

/* ── Metric cards ── */
.paciente-db-metric-card[b-syfxu6pxti] {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paciente-db-metric-label[b-syfxu6pxti] {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.paciente-db-metric-number[b-syfxu6pxti] {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.paciente-db-metric-date[b-syfxu6pxti] {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

/* ── Status / convênio lists ── */
.paciente-db-status-list[b-syfxu6pxti] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paciente-db-status-row[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fafb;
}

.paciente-db-status-dot[b-syfxu6pxti] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.paciente-db-status-nome[b-syfxu6pxti],
.paciente-db-convenio-nome[b-syfxu6pxti] {
    font-size: .88rem;
    color: #374151;
    flex: 1;
}

.paciente-db-status-pct[b-syfxu6pxti] {
    font-size: .78rem;
    min-width: 36px;
    text-align: right;
}

.paciente-db-status-count[b-syfxu6pxti] {
    font-size: .88rem;
    font-weight: 700;
    color: #111827;
    background: #e5e7eb;
    border-radius: 999px;
    padding: 1px 10px;
    min-width: 32px;
    text-align: center;
}

/* ── Sessões table ── */
.paciente-db-table th[b-syfxu6pxti] {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom-width: 1px;
}

.paciente-db-table td[b-syfxu6pxti] {
    font-size: .88rem;
    vertical-align: middle;
    color: #374151;
}

.paciente-db-status-badge[b-syfxu6pxti] {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Timeline de Sessões ── */
.tl[b-syfxu6pxti] {
    position: relative;
    padding-left: 28px;
}

.tl[b-syfxu6pxti]::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
    border-radius: 2px;
}

.tl-item[b-syfxu6pxti] {
    position: relative;
    margin-bottom: 6px;
}

.tl-dot-col[b-syfxu6pxti] {
    position: absolute;
    left: -25px;
    top: 14px;
}

.tl-dot[b-syfxu6pxti] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.tl-item--future .tl-dot[b-syfxu6pxti] {
    box-shadow: 0 0 0 2px #a5b4fc;
}

.tl-content[b-syfxu6pxti] {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.tl-item--future .tl-content[b-syfxu6pxti] {
    border-color: #c7d2fe;
    background: #f9f9ff;
}

.tl-header[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    flex-wrap: wrap;
}

.tl-header:hover[b-syfxu6pxti] {
    background: rgba(99,102,241,.04);
}

.tl-header-left[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.tl-header-right[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tl-data[b-syfxu6pxti] {
    font-weight: 700;
    font-size: .88rem;
    color: #111827;
    white-space: nowrap;
}

.tl-hora[b-syfxu6pxti] {
    font-size: .8rem;
    color: #9ca3af;
    white-space: nowrap;
}

.tl-chevron[b-syfxu6pxti] {
    font-size: 13px;
    color: #9ca3af;
    transition: transform .2s;
}

.tl-meta[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 14px 10px;
}

.tl-pill[b-syfxu6pxti] {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: .75rem;
    color: #6b7280;
}

.tl-pill--muted[b-syfxu6pxti] {
    color: #9ca3af;
}

.tl-valor[b-syfxu6pxti] {
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
}

/* ── Divisor HOJE ── */
.tl-hoje[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.tl-hoje-line[b-syfxu6pxti] {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 2px;
}

.tl-hoje-pill[b-syfxu6pxti] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px;
    border-radius: 999px;
    background: #6366f1;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

/* ── Área de relatos (expandida) ── */
.tl-relatos[b-syfxu6pxti] {
    border-top: 1px solid rgba(0,0,0,.07);
    padding: 16px 14px;
    background: #fafafa;
}

/* ── Resumos: accordion header ── */
.resumo-accordion-header[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 2px 0;
}

.resumo-acc-data[b-syfxu6pxti] {
    font-weight: 600;
    font-size: .9rem;
    color: #111827;
    white-space: nowrap;
}

.resumo-acc-num[b-syfxu6pxti] {
    font-size: .8rem;
    white-space: nowrap;
}

.resumo-acc-badges[b-syfxu6pxti] {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.resumo-tipo-badge[b-syfxu6pxti] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.resumo-tipo-badge--ok[b-syfxu6pxti] {
    background: #d1fae5;
    color: #065f46;
}

.resumo-tipo-badge--vazio[b-syfxu6pxti] {
    background: #f3f4f6;
    color: #9ca3af;
}

/* ── Resumos: painel de conteúdo ── */
.resumo-painel[b-syfxu6pxti] {
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px;
    padding: 16px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resumo-painel-header[b-syfxu6pxti] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.resumo-painel-titulo[b-syfxu6pxti] {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #374151;
}

.resumo-painel-meta[b-syfxu6pxti] {
    font-size: .75rem;
    color: #9ca3af;
}

.resumo-btn-acao[b-syfxu6pxti] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6366f1;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.resumo-btn-acao:hover[b-syfxu6pxti] {
    background: #eef2ff;
    border-color: #6366f1;
}

.resumo-btn-acao--copiado[b-syfxu6pxti],
.resumo-btn-acao--copiado:hover[b-syfxu6pxti] {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

/* ── Texto de leitura ── */
.resumo-texto-leitura[b-syfxu6pxti] {
    font-size: .92rem;
    line-height: 1.75;
    color: #1f2937;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 4px;
    flex: 1;
}

/* ── Editor ── */
.resumo-editor[b-syfxu6pxti] {
    font-size: .9rem;
    line-height: 1.65;
    resize: vertical;
    min-height: 200px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    color: #1f2937;
    background: #fff;
    flex: 1;
}

.resumo-editor:focus[b-syfxu6pxti] {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ── Estado vazio ── */
.resumo-vazio[b-syfxu6pxti] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    flex: 1;
    text-align: center;
}

.resumo-vazio-icon[b-syfxu6pxti] {
    font-size: 36px;
    color: #d1d5db;
}

.resumo-vazio-msg[b-syfxu6pxti] {
    font-size: .85rem;
    color: #9ca3af;
}
