:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 30px;
    text-align: center;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 10px;
}

.card .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.filters {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filters h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.search-box h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 10px;
}

.search-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
}

.search-input i {
    color: #7f8c8d;
    margin-right: 10px;
}

.search-input input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.accounts-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accounts-list h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background-color: var(--light-color);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.proxima {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.receber {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pago {
    background-color: #d1ecf1;
    color: #0c5460;
}

.btn-pagar, .btn-receber, .btn-detalhes {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pagar {
    background-color: var(--warning-color);
    color: white;
}

.btn-receber {
    background-color: var(--success-color);
    color: white;
}

.btn-detalhes {
    background-color: var(--secondary-color);
    color: white;
}

.btn-pagar:hover, .btn-receber:hover, .btn-detalhes:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #495057;
    --text-light: #6c757d;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

header p {
    color: var(--text-light);
    font-size: 14px;
    margin: 5px 0 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.card h3 {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card .value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.filters {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.filters h2 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-box h3 {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.search-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    background-color: var(--light-gray);
}

.search-input i {
    color: var(--text-light);
    margin-right: 8px;
    font-size: 14px;
}

.search-input input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background-color: transparent;
}

.accounts-list {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accounts-list h2 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background-color: var(--light-gray);
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: top;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.proxima {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.receber {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pago {
    background-color: #e2e3e5;
    color: #383d41;
}

.btn-pagar, .btn-receber, .btn-detalhes {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pagar {
    background-color: #dc3545;
    color: white;
}

.btn-receber {
    background-color: #28a745;
    color: white;
}

.btn-detalhes {
    background-color: #6c757d;
    color: white;
}

.btn-pagar:hover, .btn-receber:hover, .btn-detalhes:hover {
    opacity: 0.9;
}

small {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: 3px;
}

/* Ícones específicos */
.fa-building, .fa-home, .fa-city {
    margin-right: 5px;
    color: var(--text-light);
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    table th, table td {
        padding: 8px 10px;
    }
}
.header-topo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.back-button {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #007bff;
}

.header-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.header-title p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
.header-topo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.back-button {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.back-button:hover {
    color: #007bff;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Garante alinhamento à esquerda */
}

.header-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.header-title p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}
.accounts-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.accounts-list th, .accounts-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.accounts-list th {
    background: #f4f6f9;
    font-weight: 600;
}

.accounts-list tr:hover {
    background: #f9fbff;
}

.accounts-list a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.accounts-list a:hover {
    text-decoration: underline;
}
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d9534f; /* Vermelho PDF */
    text-decoration: none;
    font-weight: 500;
}

.pdf-link i {
    font-size: 16px;
}

.pdf-link:hover {
    text-decoration: underline;
    color: #b52b27; /* Vermelho mais escuro ao hover */
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
    color: #fff;
}

.badge.pago {
    background-color: #28a745;
}

.badge.pendente {
    background-color: #ffc107;
    color: #333;
}

.badge.atrasado {
    background-color: #dc3545;
}
.btn-boleto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f44336; /* Vermelho PDF */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-boleto i {
    font-size: 16px;
}

.btn-boleto:hover {
    background-color: #d32f2f; /* Vermelho mais escuro */
    transform: scale(1.05);
}

.btn-boleto:active {
    transform: scale(0.97);
}
.pdf-icon {
    color: #d9534f; /* Vermelho PDF */
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.pdf-icon:hover {
    color: #b52b27; /* Vermelho mais escuro no hover */
    transform: scale(1.2);
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
}

/* Situações */
.badge.a-vencer {
    background-color: #0275d8; /* Azul */
}

.badge.vencido {
    background-color: #d9534f; /* Vermelho */
}

.badge.pago {
    background-color: #5cb85c; /* Verde */
}
.situacao-badge {
    cursor: pointer;
    user-select: none;
}
.modal-comprovante {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-comprovante .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.modal-comprovante button {
    margin-top: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.btn-cancelar {
    background: #ccc;
    margin-left: 10px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.modal-actions button {
    padding: 6px 12px;
    cursor: pointer;
}

.btn-edit {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 18px;
}
/* Fundo da modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escurecido */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

/* Caixa da modal */
.modal-content {
    background: #ffffff;
    width: 400px;
    max-width: 90%;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Título */
.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Select de situação */
.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    background: #f9f9f9;
    transition: border 0.2s ease;
}

.modal-content select:focus {
    border-color: #007bff;
    outline: none;
}

/* Input de arquivo */
.modal-content input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #bbb;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border 0.2s ease;
}

.modal-content input[type="file"]:hover {
    border-color: #007bff;
}

/* Área dos botões */
.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Botão Salvar/Enviar */
.modal-actions button:first-child {
    background: #007bff;
    color: #fff;
}

.modal-actions button:first-child:hover {
    background: #0056b3;
    transform: scale(1.03);
}

/* Botão Cancelar */
.modal-actions button:last-child {
    background: #f1f1f1;
    color: #333;
}

.modal-actions button:last-child:hover {
    background: #e0e0e0;
    transform: scale(1.03);
}
.filters {
    margin: 20px 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.filters input, .filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filters button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

#btnFiltrar {
    background: #007bff;
    color: #fff;
}

#btnFiltrar:hover {
    background: #0056b3;
}

#btnLimpar {
    background: #f1f1f1;
    color: #333;
}

#btnLimpar:hover {
    background: #ddd;
}
.btn-export {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-export.pdf {
    background: #d9534f;
    color: #fff;
}

.btn-export.pdf:hover {
    background: #b52b27;
}

.btn-export.excel {
    background: #28a745;
    color: #fff;
}

.btn-export.excel:hover {
    background: #1e7e34;
}

.btn-export i {
    font-size: 16px;
}
.filters-container {
    display: flex;
    justify-content: space-between; /* Separa esquerda e direita */
    align-items: flex-end;
    gap: 15px;
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filters-right {
    display: flex;
    gap: 10px;
}

.btn-export.minimal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 20px;
    color: #555;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-export.minimal i {
    pointer-events: none;
}

.btn-export.minimal:hover {
    transform: scale(1.2);
}

.btn-export.minimal.pdf i {
    color: #d9534f;
}

.btn-export.minimal.pdf:hover i {
    color: #b52b27;
}

.btn-export.minimal.excel i {
    color: #28a745;
}

.btn-export.minimal.excel:hover i {
    color: #1e7e34;
}
.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filters-right {
    display: flex;
    gap: 15px;
}

/* Botões minimalistas neutros */
.btn-export.minimal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 48px; /* Ícones maiores */
    color: #777; /* Neutro */
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-export.minimal i {
    pointer-events: none;
}

/* Hover discreto */
.btn-export.minimal:hover {
    transform: scale(1.15);
    color: #333; /* Tom mais escuro ao hover */
}
.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filters-right {
    display: flex;
    gap: 12px;
}

/* Botões circulares apenas com borda */
.btn-export.bordered {
    width: 45px;
    height: 45px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease, color 0.2s ease;
    font-size: 22px;
    color: #777;
}

.btn-export.bordered:hover {
    border-color: #555;
    color: #333;
    transform: scale(1.1);
}

.btn-export.bordered i {
    pointer-events: none;
    font-size: 20px;
}
.header-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

#userEmail {
    font-weight: 500;
    color: #333;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    border-color: #999;
    color: #222;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

#userEmail {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

#userCargo {
    font-size: 12px;
    color: #888; /* Texto mais claro */
}
.actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #f7f7f7;
    border-color: #999;
}

.btn-action i {
    font-size: 16px;
}

/* Botão desabilitado para 'Em breve' */
.btn-action.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #f9f9f9;
    border-style: dashed;
}
.dashboard-cards {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

/* Botões alinhados à direita dentro dos cards */
.cards-actions {
    margin-left: auto; /* empurra os botões para a direita */
    display: flex;
    gap: 15px;
}

/* Estilo dos botões */
.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #f7f7f7;
    border-color: #999;
}

.btn-action i {
    font-size: 16px;
}

/* Botão desabilitado para 'Em breve' */
.btn-action.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #f9f9f9;
    border-style: dashed;
}
.bank-icon {
    height: 14px;
    margin-right: 6px;
}
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 20px;
    width: 320px;
    font-size: 14px;
    color: #333;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.custom-alert p {
    margin: 0 0 10px;
    line-height: 1.4;
}

.custom-alert button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    float: right;
}

.custom-alert button:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 20px 25px;
    width: 400px;
    max-width: 90%;
    font-size: 15px;
    color: #333;
    z-index: 2000;
    display: none;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.custom-alert p {
    margin: 0 0 15px;
    line-height: 1.5;
}

.custom-alert button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.custom-alert button:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
/* =========================
   Estilo minimalista branco
========================= */
:root {
  --border: #e5e7eb;
  --accent: #2563eb;
  --ok: #22c55e;
  --warn: #facc15;
  --danger: #ef4444;
  --text: #111827;
  --muted: #6b7280;
  --bg-input: #ffffff;
  --bg-hover: #f9fafb;
  --radius: 10px;
  --transition: 0.2s ease;
}

/* Base geral */
#pedidoMaterialTable td {
  vertical-align: middle;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
#pedidoMaterialTable th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border);
}

/* =========================
   Campo de data
========================= */
#pedidoMaterialTable input[type="date"] {
  width: 100%;
  padding: 10px 12px 10px 38px;
  font: 500 14px "Inter", sans-serif;
  color: var(--text);
  background: var(--bg-input) no-repeat 12px center / 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'><path d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 1-1Zm12 8H5v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8ZM6 8h12V6H6v2Z'/></svg>");
}

#pedidoMaterialTable input[type="date"]:hover {
  border-color: #cbd5e1;
  background-color: var(--bg-hover);
}
#pedidoMaterialTable input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* =========================
   Campo de situação
========================= */
#pedidoMaterialTable select.situacao-select {
  width: 100%;
  padding: 10px 38px 10px 12px;
  font: 600 13px "Inter", sans-serif;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input) no-repeat right 12px center / 14px 14px;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 20 20'><polyline points='6 8 10 12 14 8'/></svg>");
  transition: var(--transition);
}

#pedidoMaterialTable select.situacao-select:hover {
  background-color: var(--bg-hover);
  border-color: #cbd5e1;
}
#pedidoMaterialTable select.situacao-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Cores suaves por situação */
#pedidoMaterialTable select.situacao-select.pago {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
#pedidoMaterialTable select.situacao-select.vencido {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
#pedidoMaterialTable select.situacao-select.avencer {
  background-color: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

/* =========================
   Ícone de PDF
========================= */
#pedidoMaterialTable a.pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background-color: #ffffff;
  border: 1px solid var(--border);
  transition: var(--transition);
}
#pedidoMaterialTable a.pdf-icon i {
  font-size: 16px;
  color: #dc2626;
}
#pedidoMaterialTable a.pdf-icon:hover {
  background-color: #fef2f2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* =========================
   Aparência geral
========================= */
#pedidoMaterialTable {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}

#pedidoMaterialTable tbody tr:hover {
  background-color: var(--bg-hover);
  transition: background-color 0.15s ease;
}

/* Responsividade */
@media (max-width: 768px) {
  #pedidoMaterialTable th, #pedidoMaterialTable td {
    font-size: 12px;
    padding: 8px 10px;
  }
  #pedidoMaterialTable input[type="date"],
  #pedidoMaterialTable select.situacao-select {
    font-size: 12px;
    padding: 8px;
  }
}
/* ====== Nova Conta (modal) – branco minimal ====== */
.nc-modal {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.nc-modal[aria-hidden="false"] { display: flex; }

.nc-modal__content {
  width: min(720px, 92vw);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 20px 20px 16px;
  color: #222;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.nc-modal__content h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.nc-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 6px 8px;
  position: absolute;
  margin-left: calc(min(720px, 92vw) - 40px);
  color: #888;
  cursor: pointer;
}
.nc-modal__close:hover { color: #333; }

.nc-form { margin-top: 6px; }

.nc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .nc-grid { grid-template-columns: 1fr; }
}

.nc-field label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.nc-field input[type="text"],
.nc-field input[type="number"],
.nc-field input[type="date"],
.nc-field input[type="file"],
.nc-field select {
  width: 100%;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #222;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}

.nc-field input:focus,
.nc-field select:focus {
  border-color: #dcdcdc;
  box-shadow: 0 0 0 4px rgba(0,0,0,.035);
}

.nc-help {
  display: inline-block;
  margin-top: 6px;
  color: #8a8a8a;
  font-size: 12px;
}

.nc-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Reuso dos seus botões base (ajuste se precisar) */
.btn {
  background: #f5f5f5;
  color: #222;
  border: 1px solid #e5e5e5;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}
.btn:hover { background: #f0f0f0; }
.btn.ghost {
  background: #fff;
  border: 1px solid #eee;
}
/* =========================================
   LAYOUT FULL WIDTH (95%)
========================================= */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
    background-color: #f4f6f8; /* Cor de fundo suave padrão */
}

.container {
    width: 95% !important;      /* Força 95% da tela */
    max-width: 100% !important; /* Remove limites fixos (ex: 1200px) */
    margin: 20px auto;          /* Centraliza horizontalmente */
    padding: 0 10px;            /* Pequeno respiro nas bordas */
}

/* Garante que a tabela aproveite o espaço extra */
#pedidoMaterialTable {
    width: 100%;
    table-layout: auto; /* Ou fixed, dependendo da sua preferência */
}

/* Ajuste para o cabeçalho acompanhar a largura */
.header-topo {
    width: 100%;
    box-sizing: border-box;
}
/* --- Área de Upload Múltiplo --- */
.upload-area {
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 6px;
    background: #f9f9f9;
    text-align: center;
}

.file-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #e3f2fd;
    color: #0277bd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #b3e5fc;
}

.file-chip .btn-remove {
    background: none;
    border: none;
    color: #d32f2f;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}

.file-chip .btn-remove:hover {
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
}
/* Atualize ou adicione ao financeiro.css */

.file-chip {
    /* Mude para flex-wrap se quiser que quebre linha, ou mantenha inline-flex */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e3f2fd;
    color: #0277bd;
    padding: 6px 12px;
    border-radius: 8px; /* Menos arredondado para caber o input */
    font-size: 13px;
    border: 1px solid #b3e5fc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Garante que o input de data fique bonito dentro do chip */
.file-chip input[type="date"] {
    background: #fff;
    border: 1px solid #90caf9;
    color: #333;
    outline: none;
    height: 22px;
}
/* Ícone de Comprovante */
.receipt-icon {
    color: #28a745; /* Verde */
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
    cursor: pointer;
}
.receipt-icon:hover {
    transform: scale(1.1);
    color: #218838;
}
/* ================= ACORDEÃO (Parcelas) ================= */

/* Botão de Expandir */
.btn-toggle-accordion {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #007bff;
    transition: transform 0.3s ease;
    padding: 5px;
}
.btn-toggle-accordion.open {
    transform: rotate(180deg);
}

/* Linha Pai (Main) */
tr.accordion-parent {
    cursor: pointer;
}
tr.accordion-parent:hover {
    background-color: #f1f7ff !important;
}

/* Linha Filho (Detalhes) */
tr.accordion-child {
    display: none; /* Oculto por padrão */
    background-color: #f8f9fa;
}
tr.accordion-child.show {
    display: table-row;
}

/* Tabela Interna das Parcelas */
.sub-table-container {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.sub-table th {
    text-align: left;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}
.sub-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    color: #444;
}
.sub-table tr:last-child td {
    border-bottom: none;
}

/* Badges menores para a sub-tabela */
.sub-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.sub-status.pago { background: #d4edda; color: #155724; }
.sub-status.pendente { background: #fff3cd; color: #856404; }
.sub-status.vencido { background: #f8d7da; color: #721c24; }

/* --- CORREÇÃO INPUT DATA --- */
/* Remove ícones de background que possam estar causando duplicação */
table input[type="date"] {
    background-image: none !important; 
    padding: 4px 8px;
    height: 30px;
}

/* --- BOTÕES MINI (Boleto e Comprovante) --- */
.btn-anexar-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px dashed #999;
    border-radius: 4px;
    color: #555;
    font-size: 0.75rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-anexar-mini:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f0f7ff;
}

.btn-ver-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}
.btn-ver-mini:hover {
    text-decoration: underline;
}
/* Input de data alertando vencimento */
.input-alert-vencido {
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    background-color: #fff8f8 !important;
    font-weight: bold;
}

.spinner-log {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.doc-link-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #eff6ff; color: #2563eb; padding: 3px 8px;
    border-radius: 4px; font-size: 11px; text-decoration: none;
    font-weight: 700; margin: 2px; border: 1px solid #bfdbfe;
}
.btn-anexar-doc {
    background: #fff; border: 1px dashed #cbd5e1; color: #64748b;
    padding: 4px 8px; border-radius: 4px; font-size: 10px; cursor: pointer;
    font-weight: 700; transition: 0.2s;
}
.btn-anexar-doc:hover { border-color: #2563eb; color: #2563eb; background: #f0f7ff; }

/* --- BOTÕES DE ANEXO E DOCUMENTOS --- */
.doc-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    transition: 0.2s;
}
.doc-link-chip:hover { background: #dbeafe; transform: translateY(-1px); }

.btn-plus-doc {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.btn-plus-doc:hover { border-color: #2563eb; color: #2563eb; background: #f0f7ff; }

.btn-anexar-doc {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-anexar-doc:hover { background: #e2e8f0; color: #1e293b; }

/* --- DROPDOWN DE SITUAÇÃO --- */
.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    width: 110px;
    appearance: none;
    text-align: center;
}

.bg-a-vencer { background-color: #fef3c7; color: #b45309; } /* Amarelo */
.bg-vencido { background-color: #fee2e2; color: #dc2626; }  /* Vermelho */
.bg-pago { background-color: #d1fae5; color: #065f46; }     /* Verde */

/* --- AJUSTE OVERLAY --- */
#loadingOverlay {
    display: none; /* JS mudará para flex */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* --- OVERLAY DE CARREGAMENTO --- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px); /* Efeito fosco profissional */
    z-index: 10000; /* Garante que fica na frente de tudo */
    display: none; /* Escondido por padrão, o JS mudará para 'flex' */
    align-items: center;
    justify-content: center;
}

.loader-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-box p {
    margin: 0;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* Spinner Animado */
.spinner-line {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #2563eb; /* Azul Mekabim */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Campo de Data na Tabela */
.input-data-pagto {
    border: 1px solid #e2e8f0;
    padding: 5px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #1e293b;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.input-data-pagto:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Esconde o ícone de calendário padrão em alguns navegadores se preferir algo mais clean, 
   ou deixe-o para facilitar o clique */
   .bg-provisionado {
    background-color: #e0e7ff !important; /* Azul claro */
    color: #3730a3 !important; /* Azul escuro */
    border: 1px solid #c7d2fe !important;
}

/* Para acomodar mais filtros em linha */
.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-item {
    min-width: 180px;
    flex: 1;
}

.filter-item label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* Balãozinho de "Copiado" */
.tooltip-copiado {
    position: absolute;
    background-color: #10b981; /* Verde Sucesso */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none; /* O clique passa através dele */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    
    /* Centralizar o balão em relação à posição que definiremos no JS */
    transform: translateX(-50%);
    
    /* Animação para subir e sumir */
    animation: floatAndFade 1.5s ease-out forwards;
}

/* Seta do balãozinho (opcional, para ficar bonitinho) */
.tooltip-copiado::after {
    content: '';
    position: absolute;
    top: 100%; /* Embaixo do balão */
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #10b981 transparent transparent transparent;
}

@keyframes floatAndFade {
    0% { opacity: 0; margin-top: 0; }
    15% { opacity: 1; margin-top: -5px; }
    80% { opacity: 1; margin-top: -5px; }
    100% { opacity: 0; margin-top: -15px; }
}
/* --- 1. Aumentar Espaçamento da Tabela (Conforto Visual) --- */
#pedidoMaterialTable tbody td {
    padding: 20px 15px; /* Aumentei bastante o padding vertical */
    vertical-align: middle; /* Mantém tudo centralizado verticalmente */
    border-bottom: 1px solid #e2e8f0;
}

/* Garante que os inputs de data fiquem alinhados */
.input-data-pgto {
    padding: 8px; /* Inputs maiores */
    height: 38px;
}

/* --- 2. Novo Visual do PIX (Maior e Destacado) --- */
.pix-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    
    background-color: #f8fafc; /* Fundo cinza bem suave */
    border: 1px solid #cbd5e1;
    padding: 8px 12px;         /* Espaço interno generoso */
    border-radius: 8px;
    
    width: fit-content;        /* Ocupa apenas o tamanho necessário */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pix-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pix-key-text {
    font-size: 15px;       /* Aumentei de 11px para 15px */
    font-weight: 600;      /* Negrito suave */
    color: #1e293b;        /* Cor escura para contraste */
    font-family: 'Courier New', Courier, monospace; /* Fonte monoespaçada facilita ler números/letras */
}

.btn-copy-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background-color: #e0e7ff; /* Azul bem clarinho */
    color: #3b82f6;            /* Ícone azul */
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy-pix:hover {
    background-color: #3b82f6;
    color: white;
}

/* Container do documento (ícone + texto) */
.doc-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    vertical-align: top;
}

/* Ícone maior */
.doc-icon {
    font-size: 22px !important; /* Aumentado */
    color: #ea580c;
    text-decoration: none;
    margin-bottom: 2px;
}

/* Link de excluir */
.btn-delete-doc {
    font-size: 10px;
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-top: 2px;
}

.btn-delete-doc:hover {
    color: #991b1b;
    font-weight: bold;
}