﻿/* ==========================================================
   Convênios — estilos compartilhados (todas páginas de convênio)
   Base: app.css + pdv.css
   ========================================================== */

/* Checkbox consistente (sem “quadradão nervoso”) */
.convenio-check {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

    .convenio-check:focus {
        box-shadow: none !important;
        outline: none !important;
    }

/* Força checkbox nativo caso algum global mexa em appearance */
input.convenio-check[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

/* Lista */
.conv-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card do cliente */
.conv-client {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 12px;
}

.conv-client-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conv-client-left {
    min-width: 220px;
}

.conv-client-title {
    font-weight: 800;
    line-height: 1.2;
}

.conv-client-meta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

/* Botões */
.conv-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .conv-actions .btn {
        white-space: nowrap;
    }

/* Detalhes */
.conv-details {
    margin-top: 10px;
}

    .conv-details .table {
        font-size: 12px;
    }

/* Responsivo */
@media (max-width: 992px) {
    .conv-client-top {
        flex-direction: column;
        align-items: stretch;
    }

    .conv-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   Convênios — estilos compartilhados (convenios.css)
   Base visual vem de app.css + pdv.css (pdv-card/pdv-shell)
   ========================================================= */

.conv-section {
    margin-top: 14px;
}

/* Header "Notion-like" */
.conv-header.clickable {
    cursor: pointer;
    user-select: none;
}

    .conv-header.clickable:hover {
        background: rgba(0,0,0,.02);
    }

.conv-header-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.conv-title {
    font-weight: 800;
}

.conv-arrow {
    font-size: 12px;
    opacity: .75;
}

/* Tabela em card com scroll (pra não estourar a tela) */
.conv-table-wrap {
    overflow: auto;
    max-height: calc(100vh - 320px);
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .conv-table-wrap {
        max-height: none;
    }
}


/* Mais "respiro" dentro dos cards (igual Atendimentos) */
.conv-section {
    padding: 10px; /* cria borda interna geral */
}

    /* Mantém o header alinhado e com padding mais confortável */
    .conv-section .pdv-card-header {
        padding: 12px 14px;
    }

    /* Dá margem interna pro miolo (onde fica a tabela/alert) */
    .conv-section .p-2 {
        padding: 12px 14px !important;
    }

/* Tabela não encostar na borda do card */
.conv-table-wrap {
    padding: 0 14px 14px; /* laterais + fundo */
}

    /* Um ar extra no cabeçalho/linhas da tabela */
    .conv-table-wrap .table thead th {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .conv-table-wrap .table tbody td {
        padding-top: 10px;
        padding-bottom: 10px;
    }
