.pos-venda-acao {
    text-align: center !important;
}

.pos-venda-gerenciar {
    padding: 6px 10px;
    border: 1px solid #cad3df;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.pos-venda-gerenciar:hover {
    background: #f0f4f8;
}


.pos-venda-modal {
    width: min(1050px, 96vw);
    max-width: 96vw;
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: #f4f6f9;
    color: #172033;
    box-shadow:
        0 22px 70px rgba(0,0,0,.3);
}

.pos-venda-modal::backdrop {
    background:
        rgba(8,17,34,.72);
}

.pos-venda-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: #14213d;
    color: #fff;
}

.pos-venda-head h2 {
    margin: 0;
    font-size: 23px;
}

.pos-venda-sub {
    margin-top: 4px;
    color: #d5ddeb;
    font-size: 13px;
}

.pos-venda-fechar {
    padding: 9px 15px;
    border:
        1px solid
        rgba(255,255,255,.35);
    border-radius: 7px;
    background:
        rgba(255,255,255,.13);
    color: #fff;
    cursor: pointer;
}

.pos-venda-body {
    max-height:
        calc(94vh - 78px);
    overflow-y: auto;
    padding:
        20px 24px 28px;
}

.pos-venda-identificacao {
    display: grid;
    grid-template-columns:
        2fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding: 17px;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    background: #fff;
}

.pos-venda-identificacao small {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 11px;
}

.pos-venda-identificacao strong {
    overflow-wrap: anywhere;
}

.pos-venda-cards {
    display: grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.pos-venda-card {
    padding: 14px;
    border:
        1px solid #e2e7ee;
    border-radius: 9px;
    background: #fff;
}

.pos-venda-card small {
    display: block;
    color: #667085;
    font-size: 10px;
}

.pos-venda-card strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
}

.pos-venda-card.negativo strong,
.pos-venda-impacto.negativo {
    color: #b42318;
}

.pos-venda-card.positivo strong,
.pos-venda-impacto.positivo {
    color: #067647;
}

.pos-venda-aviso,
.pos-venda-painel,
.pos-venda-resumo {
    margin-bottom: 16px;
    padding: 19px;
    border:
        1px solid #e2e7ee;
    border-radius: 10px;
    background: #fff;
}

.pos-venda-aviso {
    border-color: #fedf89;
    background: #fffaeb;
}

.pos-venda-aviso h3,
.pos-venda-painel h3,
.pos-venda-resumo h3,
.pos-venda-form h3 {
    margin: 0 0 12px;
}

.pos-venda-painel-head,
.pos-venda-ocorrencia-head,
.pos-venda-form-acoes,
.pos-venda-acoes-linha {
    display: flex;
    justify-content:
        space-between;
    align-items: center;
    gap: 10px;
}

.pos-venda-ocorrencias {
    display: grid;
    gap: 12px;
}

.pos-venda-ocorrencia {
    padding: 15px;
    border:
        1px solid #e4e7ec;
    border-radius: 9px;
    background: #fafbfc;
}

.pos-venda-ocorrencia.inativa {
    opacity: .6;
}

.pos-venda-ocorrencia-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 8px 16px;
    margin-top: 12px;
    font-size: 12px;
}

.pos-venda-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    font-size: 10px;
}

.pos-venda-impacto {
    font-size: 17px;
}

.pos-venda-observacao {
    margin:
        12px 0 0;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
}

.pos-venda-meta {
    margin-top: 10px;
    color: #667085;
    font-size: 10px;
}

.pos-venda-acoes-linha {
    justify-content:
        flex-end;
    margin-top: 12px;
}

.pos-venda-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 13px;
}

.pos-venda-form label {
    display: grid;
    gap: 5px;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
}

.pos-venda-form input,
.pos-venda-form select,
.pos-venda-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border:
        1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #101828;
    font: inherit;
}

.pos-venda-observacao-label {
    margin-top: 13px;
}

.pos-venda-form-acoes {
    justify-content:
        flex-start;
    margin-top: 15px;
}

.pos-venda-btn {
    padding: 9px 13px;
    border: 0;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.pos-venda-btn.principal {
    background: #175cd3;
    color: #fff;
}

.pos-venda-btn.secundario {
    border:
        1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

.pos-venda-btn.perigo {
    background: #b42318;
    color: #fff;
}

.pos-venda-btn.fechar-ocorrencia {
    background: #344054;
    color: #fff;
}

.pos-venda-vazio {
    padding: 18px;
    border:
        1px dashed #d0d5dd;
    border-radius: 7px;
    color: #667085;
    text-align: center;
}

.pos-venda-erro {
    padding: 18px;
    border:
        1px solid #fecdca;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
}

.pos-venda-nota {
    color: #667085;
    font-size: 11px;
}

.venda-ficha-table {
    min-width: 1150px;
}


@media(max-width:900px) {

    .pos-venda-identificacao {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .pos-venda-cards {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .pos-venda-ocorrencia-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media(max-width:600px) {

    .pos-venda-identificacao,
    .pos-venda-cards,
    .pos-venda-form-grid,
    .pos-venda-ocorrencia-grid {
        grid-template-columns: 1fr;
    }

    .pos-venda-body {
        padding: 14px;
    }

    .pos-venda-painel-head,
    .pos-venda-ocorrencia-head {
        align-items:
            flex-start;
        flex-direction:
            column;
    }
}
