/* JuriTotal - Ficha da Nota Fiscal */

.jt-compras-nf-box {
    margin: -4px 0 20px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,.045);
}

.jt-compras-nf-titulo {
    margin-bottom: 13px;
}

.jt-compras-nf-titulo h3 {
    margin: 0;
    font-size: 18px;
    color: #172033;
}

.jt-compras-nf-titulo p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
}

.jt-compras-nf-grid {
    display: grid;
    grid-template-columns:
        minmax(220px,1fr)
        minmax(280px,1.3fr)
        auto;
    gap: 12px;
    align-items: end;
}

.jt-compras-nf-campo label {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
}

.jt-compras-nf-campo select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    font: inherit;
}

#jt-nf-abrir {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: #14213d;
    color: white;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#jt-nf-abrir:disabled {
    opacity: .45;
    cursor: default;
}

#compras-corpo td:nth-child(2) {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

#compras-corpo td:nth-child(2):hover {
    color: #14213d;
    font-weight: 700;
}

.jt-nf-modal {
    width: min(1320px,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);
}

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

.jt-nf-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: white;
}

.jt-nf-head h2 {
    margin: 0;
    font-size: 24px;
}

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

.jt-nf-fechar {
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 7px;
    background: rgba(255,255,255,.13);
    color: white;
    cursor: pointer;
}

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

.jt-nf-info {
    display: grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
}

.jt-nf-info small,
.jt-nf-kpis small {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 11px;
}

.jt-nf-info strong,
.jt-nf-kpis strong {
    display: block;
    overflow-wrap: anywhere;
}

.jt-nf-kpis {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.jt-nf-kpis > div {
    padding: 16px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 9px;
}

.jt-nf-kpis strong {
    font-size: 20px;
}

.jt-nf-tabs {
    display: flex;
    gap: 7px;
    margin-bottom: 10px;
}

.jt-nf-tabs button {
    padding: 9px 14px;
    border: 1px solid #d6dce6;
    border-radius: 7px;
    background: #f5f7fa;
    color: #172033;
    font-weight: 700;
    cursor: pointer;
}

.jt-nf-tabs button.ativo {
    background: #14213d;
    border-color: #14213d;
    color: #fff;
}

.jt-nf-tabela-box {
    padding: 15px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
}

.jt-nf-tabela-box[hidden] {
    display: none !important;
}

.jt-nf-table-wrap {
    overflow-x: auto;
}

.jt-nf-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.jt-nf-table th,
.jt-nf-table td {
    padding: 9px;
    border-bottom: 1px solid #edf0f4;
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
}

.jt-nf-table th {
    color: #667085;
    font-size: 10px;
    text-transform: uppercase;
}

.jt-nf-table .num {
    text-align: right;
}

.jt-nf-produto {
    max-width: 330px;
}

.jt-nf-sku-row {
    cursor: pointer;
}

.jt-nf-sku-row:hover {
    background: #f5f8fc;
}

.jt-nf-sku {
    font-weight: 700;
}

@media(max-width:900px) {
    .jt-compras-nf-grid {
        grid-template-columns: 1fr;
    }

    .jt-nf-info {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .jt-nf-kpis {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media(max-width:550px) {
    .jt-nf-info,
    .jt-nf-kpis {
        grid-template-columns: 1fr;
    }
}
