﻿
.table {
    color: inherit;
    border-color: var(--border-color);
}
.table td,
.table th {
    border-color: var(--border-color);

}
html.dark main#layout .table,
html.dark .table td,
html.dark .table th {
    color: inherit;
    border: 2px solid var(--secondary)!important;
}
html.dark main#layout .table th {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    white-space: nowrap;
}
html.dark main#layout .table tr {
    border: 2px solid var(--secondary);
    background: #222;
}
html.dark main#layout .table td {
    border: 2px solid var(--secondary);
}
main#layout .table tr.even {
    background: var(--secondary);
}
html.dark main#layout .table tr.even {
    background: #2b2625;
}
html.dark main#layout .table-hover tbody tr:hover {
}
html.dark main#layout .table-hover tbody tr:hover td {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--color);
}

.page-item .page-link,
.page-item.disabled .page-link {
    background: transparent;
    border-color: var(--secondary);
}
.page-item .page-link {
    color: var(--primary);
    font-weight: 600;
}
html.dark .page-item.disabled .page-link {
    color: rgba(255,255,255,.2);
    font-weight: 400!important;
}
.page-item .page-link:active,
.page-item .page-link:focus {
    box-shadow: none!important;
}
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
html.dark .page-item.active .page-link {
    color: white;
}

table input[type='checkbox'] {
    width: 16px;
    height: 16px;
}

.tabela {
    padding: 20px 0 200px;
}
.tabela .head {
    font-weight: 600;
    position: sticky;
    top: -10px;
    background: white;
}
html.dark .tabela .head {
    background: var(--dark-one);
}
.tabela .items .item {
    font-weight: 500;
}
.tabela .items .item.group {
/*    background: #ff000022;*/
}
.tabela.extrato .head,
.tabela.extrato .items .item {
    display: grid;
    grid-template-columns: 60px 2fr 1fr .5fr;
    margin-bottom: 2px;
}
.tabela.extrato .head {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.tabela.extrato .items .item:hover {
    background: #fdf2eb;
    cursor: pointer;
    border: 1px solid #ffb9a6;
    border-radius: 6px;
}
html.dark .tabela.extrato .items .item:hover {
    background: var(--dark-two);
    border-color: var(--dark-three);
}
.tabela .items .item .item-data {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    line-height: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    min-height: 35px;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-left: 0;
    border-right: 0;
}
.tabela .items .item.group:not(.last) .item-data:first-child {
    border: none;
}
.tabela .font-weight-bold {
    font-weight: 700 !important;
}
.tabela .items .item .item-data span:first-child {
    font-size: 16px;
}
.tabela .items .item .item-data span.vtaxas {
    font-size: 13px;
    font-weight: 700;
    color: rgb(73 73 73 / 67%);
    text-align: end;
}
.tabela .items .item .item-data span.vtaxas.positive {
    color: rgb(60 173 98);
}
.tabela .items .item .item-data span.vtaxas.pending {
    color: #b1962f;
}
.tabela .font-weight-bold {
    font-weight: 700 !important;
}
.tabela .items .item .item-data span:first-child {
    font-size: 16px;
}
.tabela .items .item .item-data span.vtaxas {
    font-size: 13px;
    font-weight: 700;
    color: rgb(73 73 73 / 67%);
    text-align: end;
}
.tabela .items .item .item-data .item-data .fa-2x {
    font-size: 1.2em;
}
.tabela .items .item .item-data .icon {
    width: 35px;
    height: 35px;
    max-height: 35px;
    background: var(--secondary);
    color: rgba(0,0,0,.6);
    font-size: 18px;
    max-height: 35px;
    border-radius: 35px;
    border: 1px solid transparent;

    text-align: center;
    padding: 7px;
}
.tabela .items .item .item-data .icon i {
    font-size: inherit;
    color: inherit;
}
.tabela .items .item .item-data .icon.criada,
.tabela .items .item .item-data .icon.criado,
.tabela .items .item .item-data .icon.pendente,
.tabela .items .item .item-data .icon.emanalise {
    background: #e8f4f8;
    color: #74919b;
    border-color: #74919b33;
    font-size: 19px;
    padding: 0 0 0 1px;
}
.tabela .items .item .item-data .icon.aprovada,
.tabela .items .item .item-data .icon.aprovado {
    background: #d0ebd9;
    color: #3a9358;
    border-color: #74919b33;
}
.tabela .items .item .item-data .icon.cancelada,
.tabela .items .item .item-data .icon.cancelado {
    background: #f8e8e8;
    color: #cf8585;
    border-color: #cf858588;
}
.tabela .items .item .item-data .icon.estornada,
.tabela .items .item .item-data .icon.estornado {
    background: #f8e8e8;
    color: #cf8585;
    border-color: #cf858588;
}
.tabela .items .item .item-data .icon i.fa-money-bill-transfer {
    font-size: 15px;
    opacity: 0.7;
}
.tabela .items .item .item-data .amount {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.tabela .items .item.group:not(.first) .item-data .icon {
    display: none;
}

@media (max-width: 991px) {

    .tabela.extrato .head {
        grid-template-areas: 'ICON TITLE DATE AMOUNT';
    }
    .tabela.extrato .items .item {
        grid-template-areas: 'ICON TITLE TITLE TITLE'
                             'ICON DATE AMOUNT AMOUNT';
    }
    .tabela.extrato .head div:nth-of-type(1) {
        max-width: 0;
    }
    .tabela.extrato .head div:nth-of-type(1),
    .tabela.extrato .items .item .item-data:nth-of-type(1) {
        grid-area: ICON;
        justify-content: flex-start;
    }
    .tabela.extrato .head div:nth-of-type(2),
    .tabela.extrato .items .item .item-data:nth-of-type(2) {
        grid-area: TITLE;
        border: none;
        padding-bottom: 0;
    }
    .tabela.extrato .head div:nth-of-type(3) {
        opacity: 0;
    }
    .tabela.extrato .head div:nth-of-type(3),
    .tabela.extrato .items .item .item-data:nth-of-type(3) {
        grid-area: DATE;
    }
    .tabela.extrato .head div:nth-of-type(4),
    .tabela.extrato .items .item .item-data:nth-of-type(4) {
        grid-area: AMOUNT;
    }
}

@media (max-width: 480px) {

    .tabela.extrato .head div:nth-of-type(1) {
        max-width: initial;
    }
    .tabela.extrato .head div:nth-of-type(3) {
        max-width: 0;
        overflow: hidden;
        max-height: 0;
    }
}

/* TABLE PROPOSTA NEGOCIACAO */

table#detalhesProposta {
    margin: 0 0 40px auto;
}
table#detalhesProposta tbody tr td h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: end;
    line-height: 1.5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
    margin: 0;
    white-space: nowrap;
}
table#detalhesProposta tbody tr td:first-child {
    width: 100%;
}
table#detalhesProposta tbody tr td:last-child {
}
table#detalhesProposta tbody tr td:last-child h3 {
    justify-content: start;
}
table#detalhesProposta #diferencaValorProposta {
}
table#detalhesProposta .input-group#valorProposta {
    margin: 0 -10px;
    width: calc(100% + 20px);
    min-width: 200px;
    overflow: hidden;
    color: var(--color);
    font-size: 18px;
    font-weight: 700;

    border: 3px solid var(--primary);
    margin: -6px -11px -18px -11px;
    height: 52px;
}
table#detalhesProposta .input-group#valorProposta .input-group-text {
    background: transparent !important;
    border: none !important;
    font-size: inherit;
    color: inherit !important;
    padding-right: 6px;
    font-weight: inherit;
}
table#detalhesProposta .input-group#valorProposta input {
    border: none !important;
    outline: none !important;
    padding-left: 0;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    background: inherit;
    height: inherit;
    margin: -3px 0 -3px 0;
}
table#detalhesProposta .input-group#valorProposta input:focus,
table#detalhesProposta .input-group#valorProposta input:active {
    border: none!important;
    outline: none!important;
    box-shadow: none!important;
}

table th.action,
table td.action {
    min-width: 50px;
    width: 50px;
    height: 36px;
    padding: 0px !important;
}
table th.action a,
table td.action a {
    width: 100%;
    height: inherit;
    background: transparent;

    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    line-height: 1;

    margin: 0 auto;
    padding: 5px;
}
table th.action a:hover,
table td.action a:hover {
    background: var(--primary);
    color: white;
}
input[type='checkbox'] {
    accent-color: #f4623a;
}
table th.action input[type='checkbox'],
table td.action input[type='checkbox'] {
    justify-self: center;
    height: 18px;
    width: 18px;
    margin: 10px 15px;
    border-radius: 10px;
}
table th.action input[type='checkbox']:hover,
table td.action input[type='checkbox']:hover {
    box-shadow: 0 0 0 2px var(--primary);
}

#table-auditoria {
    --secondary: var(--dark-three);
    --secondary-hover: var(--dark-three);
}