#nt-financeiro-app {
    max-width: 900px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

.nt-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.nt-box h2 {
    margin: 0 0 8px;
    color: #35234F;
    font-size: 28px;
}

.nt-box p {
    color: #666;
    margin-bottom: 24px;
}

.nt-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.nt-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
}

.nt-form button {
    background: #4B3273;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
}

.nt-form button:hover {
    background: #6E52A0;
}

#nt-loading {
    color: #4B3273;
    font-weight: 700;
    margin-bottom: 16px;
}

#nt-erro {
    color: #991b1b;
    background: #fee2e2;
    padding: 12px 16px;
    border-radius: 12px;
    display: none;
    margin-bottom: 16px;
}

.nt-resumo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.nt-resumo-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
}

.nt-resumo-card span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 6px;
}

.nt-resumo-card strong {
    color: #35234F;
    font-size: 20px;
}

.nt-progresso-box {
    background: linear-gradient(135deg, #35234F, #4B3273);
    color: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 28px;
}

.nt-progresso-topo {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.nt-progresso-topo strong {
    font-size: 18px;
}

.nt-progresso-percentual {
    font-size: 24px;
    font-weight: 800;
}

.nt-barra {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.nt-barra-preenchida {
    height: 100%;
    background: #22c55e;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.nt-progresso-legenda {
    font-size: 13px;
    opacity: 0.9;
}

.nt-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.nt-filtro-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #35234F;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.nt-filtro-btn.ativo {
    background: #4B3273;
    color: #fff;
    border-color: #4B3273;
}

.nt-card {
    margin-top: 24px;
}

.nt-card-header h3 {
    margin: 0;
    color: #35234F;
    font-size: 22px;
}

.nt-card-header p {
    margin-top: 6px;
    color: #777;
}

.nt-timeline {
    position: relative;
    margin-top: 24px;
    padding-left: 28px;
}

.nt-timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e5e7eb;
}

.nt-timeline-item {
    position: relative;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.nt-timeline-dot {
    position: absolute;
    left: -27px;
    top: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ddd;
}

.nt-status-pago .nt-timeline-dot {
    background: #22c55e;
}

.nt-status-avencer .nt-timeline-dot {
    background: #facc15;
}

.nt-status-vencido .nt-timeline-dot {
    background: #ef4444;
}

.nt-timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.nt-timeline-title {
    font-weight: 700;
    color: #2d2340;
    font-size: 15px;
}

.nt-timeline-date {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.nt-timeline-value {
    font-weight: 800;
    color: #2d2340;
    white-space: nowrap;
}

.nt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.nt-status-pago .nt-status-badge {
    background: #dcfce7;
    color: #166534;
}

.nt-status-avencer .nt-status-badge {
    background: #fef9c3;
    color: #854d0e;
}

.nt-status-vencido .nt-status-badge {
    background: #fee2e2;
    color: #991b1b;
}

.nt-dias-vencido {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #991b1b;
}

.nt-alerta-urgencia {
    margin-top: 10px;
    background: #fff1f2;
    color: #991b1b;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

.nt-timeline-actions {
    margin-top: 12px;
}

.nt-timeline-actions a {
    display: inline-block;
    text-decoration: none;
    background: #4B3273;
    color: #fff;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.nt-timeline-actions a:hover {
    background: #6E52A0;
}

.nt-projecao {
    opacity: 0.80;
    background: #fbfbfb;
}

.nt-projecao-label {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
    font-style: italic;
}

@media (max-width: 700px) {
    #nt-financeiro-app {
        margin: 24px auto;
    }

    .nt-box {
        padding: 22px;
    }

    .nt-form {
        flex-direction: column;
    }

    .nt-resumo {
        grid-template-columns: 1fr;
    }

    .nt-timeline-top,
    .nt-progresso-topo {
        flex-direction: column;
        align-items: flex-start;
    }

    .nt-timeline-value {
        white-space: normal;
    }
}/* ABAS */

.nt-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.nt-tab-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #35234F;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nt-tab-btn:hover {
    border-color: #4B3273;
}

.nt-tab-btn.ativo {
    background: #4B3273;
    color: #fff;
    border-color: #4B3273;
}

.nt-tab-content {
    display: none;
}

.nt-tab-content.ativo {
    display: block;
}

/* DOCUMENTOS */

.nt-documentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.nt-doc-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.nt-doc-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.nt-doc-icon {
    font-size: 28px;
}

.nt-doc-status {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
}

.nt-doc-card h4 {
    margin: 0 0 10px;
    color: #35234F;
    font-size: 17px;
}

.nt-doc-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.nt-doc-btn {
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
    background: #4B3273;
    color: #fff;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.nt-doc-btn:hover {
    background: #6E52A0;
}

.nt-doc-btn-disabled {
    background: #ddd;
    color: #666;
    cursor: not-allowed;
}

.nt-doc-assinado .nt-doc-status {
    background: #dcfce7;
    color: #166534;
}

.nt-doc-pendente .nt-doc-status {
    background: #fef9c3;
    color: #854d0e;
}

.nt-doc-disponivel .nt-doc-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.nt-doc-bloqueado .nt-doc-status {
    background: #f3f4f6;
    color: #6b7280;
}

.nt-doc-empty {
    margin-top: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    color: #666;
}

/* RESPONSIVO */

@media (max-width: 700px) {
    .nt-tabs {
        flex-direction: column;
    }

    .nt-documentos-grid {
        grid-template-columns: 1fr;
    }

    .nt-doc-topo {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}