@charset "utf-8";

/* Contas a Receber - Modulo 178 | Grupo Ekos */

.cr26 {
    --g: #20683c;
    --line: #e2e7e2;
    --muted: #6d756f;
    background: #f4f5f3;
    color: #263029;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 0 20px !important
}

.cr26 * {
    box-sizing: border-box
}

.cr-head {
    background: var(--g);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 24px;
    gap: 12px
}

.cr-head small {
    font-size: 11px;
    opacity: .8
}

.cr-head h3 {
    color: #fff;
    font-weight: 750;
    font-size: 22px;
    margin: 3px 0 0
}

.cr-export {
    border: 1px solid #8daf93;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    padding: 11px 17px;
    cursor: pointer;
    font-size: 12px
}

.cr-export:hover {
    background: rgba(255, 255, 255, .12)
}

.cr-body {
    padding: 18px 22px;
    max-width: 1700px;
    margin: auto
}

.cr-cap {
    font-size: 10px;
    letter-spacing: .06em;
    color: #6e7670;
    font-weight: 800;
    margin-bottom: 11px
}

.cr-empresas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.cr-empresa {
    padding: 9px 12px;
    border: 1px solid var(--cor, #64748B);
    border-radius: 6px;
    background: var(--cor, #64748B);
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    min-width: 0;
    flex: 1 1 180px;
    max-width: 240px;
    overflow: hidden;
    box-sizing: border-box;
    transition: filter .2s ease, box-shadow .2s ease;
}

.cr-empresa:hover {
    background: var(--cor, #64748B);
    filter: brightness(.9);
}

.cr-empresa.ativa {
    background: var(--cor, #64748B);
    outline: 2px solid #25372d;
    outline-offset: 2px;
}

.cr-dot {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #ffffff;
    margin-top: 3px;
}

.cr-empresa .cr-nome {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
    white-space: normal;
}

.cr-empresa .cr-sub {
    display: block;
    color: #ffffff;
    opacity: .9;
    font-size: 10px;
    margin-top: 5px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Cor da empresa e protecao contra nomes longos */
.cr-empresa .cr-nome-texto {
    display: block;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.3;
}

.cr-empresa span,
.cr-empresa small,
.cr-empresa strong,
.cr-empresa i,
.cr-empresa svg {
    color: #ffffff;
}

.cr-lista tbody td:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cr-indicadores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin: 18px 0
}

.cr-kpi {
    min-height: 100px;
    background: #fff;
    border: 1px solid #e5eae5;
    border-radius: 8px;
    padding: 16px 17px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .025)
}

.cr-kpi small {
    color: #687268;
    font-size: 12px
}

.cr-kpi strong {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 750;
    color: #2a302d
}

.cr-kpi:first-child strong {
    color: #167c42
}

.cr-kpi span {
    font-size: 11px;
    color: #7b857e
}

.cr-kpi.cr-alerta {
    background: #fff7ec;
    border-color: #f0dcc1
}

.cr-alerta small,
.cr-alerta strong {
    color: #88551f
}

.cr-filtros {
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 17px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap
}

.cr-campo {
    min-width: 100px;
    flex: 1
}

.cr-campo label {
    display: block;
    font-size: 11px;
    color: #606d62;
    margin-bottom: 6px
}

.cr-campo select,
.cr-campo input {
    width: 100%;
    height: 36px;
    border: 1px solid #d9dfd9;
    border-radius: 5px;
    padding: 7px 9px;
    color: #39443b;
    background: #fff;
    font-size: 12px
}

.cr-campo select:disabled {
    background: #f6f6f6
}

.cr-busca {
    flex: 1.3
}

.cr-modos {
    display: flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden
}

.cr-modos button {
    border: 0;
    background: #fff;
    padding: 11px 12px;
    font-size: 11px;
    cursor: pointer;
    color: #465248
}

.cr-modos button.ativo {
    background: var(--g);
    color: #fff;
    font-weight: 700
}

.cr-lista {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0
}

.cr-scroll {
    max-height: 680px;
    overflow: auto
}

.cr-lista table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1060px;
    font-size: 12px
}

.cr-lista thead {
    background: #f1f4ef;
    position: sticky;
    top: 0;
    z-index: 1
}

.cr-lista th {
    padding: 13px 12px;
    text-align: left;
    font-size: 10px;
    color: #6c766e;
    letter-spacing: .035em
}

.cr-lista tbody tr {
    border-top: 1px solid #e9ece8
}

.cr-lista tbody td {
    padding: 12px;
    vertical-align: middle
}

.cr-lista tbody tr td:first-child {
    border-left: 4px solid var(--cor, #289d6b)
}

.cr-direita {
    text-align: right !important
}

.cr-etiqueta {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    padding: 6px 9px;
    background: var(--cor, #64748B);
    border: 1px solid var(--cor, #64748B);
    border-radius: 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    box-sizing: border-box;
}

.cr-data {
    font-weight: 700;
    display: block
}

.cr-vencido {
    color: #ac3e31
}

.cr-hoje {
    color: #287e40
}

.cr-small {
    font-size: 10px;
    color: #778178;
    display: block;
    margin-top: 4px
}

.cr-cliente {
    font-weight: 600
}

.cr-status {
    display: inline-block;
    background: #edf2ee;
    color: #4b6250;
    border-radius: 15px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700
}

.cr-status.atrasado {
    background: #fae7e3;
    color: #a34334
}

.cr-status.hoje {
    background: #e1f1e5;
    color: #20773d
}

.cr-btn {
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #d9dfda;
    background: #fff;
    text-decoration: none;
    color: #43534a;
    padding: 7px 9px;
    font-size: 10px;
    margin-left: 4px;
    white-space: nowrap;
    cursor: pointer
}

.cr-btn:hover {
    text-decoration: none;
    filter: brightness(.96)
}

.cr-btn.baixa {
    background: #20683c;
    color: #fff;
    border-color: #20683c
}

.cr-lista tfoot {
    position: sticky;
    bottom: 0;
    background: #f2f5f1;
    font-weight: 800;
    border-top: 2px solid #d5ddd5
}

.cr-lista tfoot th {
    font-size: 12px;
    color: #243428
}

.cr-carregando {
    text-align: center;
    padding: 28px !important
}

.cr-nota {
    font-size: 11px;
    color: #8b938c;
    margin: 9px 2px 0
}

.cr-muted {
    color: #7b877d
}

.cr-grupo {
    background: #f3f7f2;
    font-weight: 800;
    color: #2c5535
}

.cr-grupo td {
    padding: 9px 12px !important
}

.cr-grupo td:first-child {
    border-left: 4px solid #cad7ca !important
}

@media(max-width:1050px) {
    .cr-indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .cr-modos {
        width: 100%
    }

    .cr-modos button {
        flex: 1
    }
}

@media(max-width:600px) {
    .cr-head {
        padding: 16px;
        flex-wrap: wrap
    }

    .cr-head h3 {
        font-size: 19px
    }

    .cr-body {
        padding: 12px
    }

    .cr-indicadores {
        gap: 8px
    }

    .cr-kpi {
        padding: 12px;
        min-height: 86px
    }

    .cr-kpi strong {
        font-size: 18px
    }

    .cr-campo {
        flex: 1 1 42%
    }

    .cr-empresa {
        flex-basis: 43%;
        min-width: 0
    }
}