.alert-proxima-fatura{
	margin: 12px 0 8px 0;
	background: #eef9ff;
	border: 1px solid #b6e3ff;
	color: #0b5c8a;
	padding: 10px 12px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.alert-proxima-fatura i{ color: #0b5c8a; }
/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
}

/* Container e Header Padrão */
.cobrancas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    margin-bottom: 30px;
    color: #333;
    background: linear-gradient(135deg, #6f42c1, #563d7c);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-info {
    flex: 1;
    text-align: left;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-voltar-painel {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voltar-painel:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Dashboard Cards - Versão Discreta */
.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.card {
    border-radius: 16px;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color-light));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.card.active {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    transform: translateY(-6px);
}

/* Card Pagas - Verde */
.card-pagas {
    --card-color: #198754;
    --card-color-light: #20c997;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.card-pagas .card-icon {
    color: #198754;
    background: linear-gradient(135deg, #198754, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Vencidas - Vermelho */
.card-vencidas {
    --card-color: #dc3545;
    --card-color-light: #fd7e14;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe8e8 100%);
}

.card-vencidas .card-icon {
    color: #dc3545;
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-stats p {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: #2c3e50;
    line-height: 1;
}

.card-count {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.card-value {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--card-color);
}

.card-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
}

/* Responsividade para Cards */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .card-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}

/* Nova Cobrança Button */
.nova-cobranca-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.btn-nova-cobranca {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
}

.btn-nova-cobranca:hover {
    background: #563d7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(111, 66, 193, 0.3);
}

/* Filtros */
.filtros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filtro-grupo.filtro-acoes {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.filtro-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.filtro-select, .filtro-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    color: #495057;
}

.filtro-select:focus, .filtro-input:focus {
    border-color: #6f42c1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.25);
}

.btn-filtro-filtrar, .btn-filtro-limpar {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}

.btn-filtro-filtrar {
    background-color: #6f42c1;
    color: white;
}

.btn-filtro-filtrar:hover {
    background-color: #563d7c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
}

.btn-filtro-limpar {
    background-color: #e9ecef;
    color: #495057;
}

.btn-filtro-limpar:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/* Tabela */
.tabela-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.tabela-cobrancas {
    width: 100%;
    border-collapse: collapse;
}

.tabela-cobrancas th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabela-cobrancas td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
    font-size: 0.95rem;
}

.tabela-cobrancas tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tabela-cobrancas tbody tr:hover {
    background-color: #f1f3f5;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paga {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pendente {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-vencida {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ações */
.acoes-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* Botões de ação maiores com padrão visual */
.acoes-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.btn-pagar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    min-width: 140px; /* Aumentar largura mínima para acomodar R$ */
}

.btn-pagar:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-historico {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-historico:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-reabrir {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.btn-reabrir:hover {
    background: linear-gradient(135deg, #545b62, #3d4449);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-visualizar {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-visualizar:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-excluir {
    color: #dc3545;
}

.btn-excluir:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Estado Vazio */
.estado-vazio {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.estado-vazio i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.estado-vazio p {
    font-size: 1.1rem;
}

/* Paginação */
.paginacao-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.paginacao-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.paginacao-controles {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-paginacao {
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-paginacao:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #6f42c1;
    color: #6f42c1;
}

.btn-paginacao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-paginacao.active {
    background: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.paginacao-numeros {
    display: flex;
    gap: 2px;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .paginacao-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .paginacao-controles {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-paginacao {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
    }
}/*
 Modais */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 650px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    margin: 20px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #6f42c1, #563d7c);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Formulários */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 5px;
    position: relative;
}

.form-group label[for*="required"]::after,
.form-group label:has(+ .form-input[required])::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Estilo para campos obrigatórios */
.form-input[required] {
    border-left: 3px solid #6f42c1;
}

.form-input[required]:focus {
    border-left-color: #563d7c;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-height: 44px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #6f42c1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
    transform: translateY(-1px);
}

.form-input:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
    opacity: 0.8;
}

.form-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.form-help {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Botões */
.btn-primary, .btn-secondary {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    white-space: nowrap;
}

.btn-primary {
    background: #6f42c1;
    color: white;
    border: 2px solid #6f42c1;
}

.btn-primary:hover:not(:disabled) {
    background: #563d7c;
    border-color: #563d7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(111, 66, 193, 0.4);
}

.btn-primary:disabled {
    background: #adb5bd;
    border-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para o modal de nova cobrança */
#modal-nova-cobranca .modal-content {
    max-width: 700px;
    width: 90%;
}

#modal-nova-cobranca .modal-body {
    padding: 35px;
}

#modal-nova-cobranca .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
    align-items: start;
}

#modal-nova-cobranca .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#modal-nova-cobranca .form-group:last-child {
    margin-bottom: 0;
}

#modal-nova-cobranca .form-group label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

#modal-nova-cobranca .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-height: 48px;
    box-sizing: border-box;
}

#modal-nova-cobranca .form-input:focus {
    border-color: #6f42c1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

#modal-nova-cobranca textarea.form-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

#modal-nova-cobranca select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

#modal-nova-cobranca select.form-input:disabled {
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Estilo para campos obrigatórios no modal */
#modal-nova-cobranca .form-input[required] {
    border-left: 4px solid #6f42c1;
}

#modal-nova-cobranca .form-input[required]:focus {
    border-left-color: #563d7c;
}

/* Footer específico do modal nova cobrança */
#modal-nova-cobranca .modal-footer {
    padding: 25px 35px;
    gap: 20px;
}

#modal-nova-cobranca .btn-primary,
#modal-nova-cobranca .btn-secondary {
    padding: 16px 28px;
    font-size: 1rem;
    min-width: 140px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        max-width: none;
    }
    
    .form-row,
    #modal-nova-cobranca .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 20px;
    }
    
    #modal-nova-cobranca .modal-body {
        padding: 25px;
    }
    
    #modal-nova-cobranca .modal-footer {
        padding: 20px 25px;
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary,
    #modal-nova-cobranca .btn-primary,
    #modal-nova-cobranca .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }
}/* Estilos 
para botão de histórico */
.btn-historico {
    color: #17a2b8;
}

.btn-historico:hover {
    background-color: rgba(23, 162, 184, 0.1);
}

/* Estilos do Modal de Histórico */
.historico-info {
    margin-bottom: 25px;
}

.cobranca-info h3 {
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-item span {
    color: #495057;
    font-size: 1rem;
}

.historico-lista h3 {
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.sem-historico {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.historico-pagamentos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pagamento-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.pagamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.pagamento-data {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pagamento-valor {
    font-size: 1.2rem;
    font-weight: 700;
}

.pagamento-detalhes {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalhe-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.detalhe-item span {
    color: #495057;
}

.detalhe-item.juros span {
    color: #dc3545;
    font-weight: 600;
}

.detalhe-item.atraso span {
    color: #fd7e14;
    font-weight: 600;
}

.btn-ver-comprovante {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}

.btn-ver-comprovante:hover {
    background: #563d7c;
    transform: translateY(-1px);
}

.historico-resumo {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #6f42c1;
}

.historico-resumo h4 {
    margin-bottom: 15px;
    color: #495057;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-item label {
    font-weight: 600;
    color: #6c757d;
}

.valor-destaque {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.juros-destaque {
    font-size: 1rem;
    font-weight: 600;
    color: #dc3545;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .pagamento-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagamento-detalhes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .resumo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Estilos específicos para campos de juros e multa no modal de pagamento */
#modal-pagamento .form-input[readonly] {
    background: #f8f9fa;
    color: #495057;
    cursor: not-allowed;
    border-color: #e9ecef;
}

#modal-pagamento .form-input[readonly]:focus {
    border-color: #e9ecef;
    box-shadow: none;
    transform: none;
}

/* Estilos para o campo de dias de atraso */
.dias-atraso-container {
    position: relative;
}

.dias-atraso-info {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.85rem;
    pointer-events: none;
}

.dias-atraso-info i {
    color: #6f42c1;
}

/* Estilos para os botões de toggle */
.toggle-button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #6f42c1;
}

.toggle-button.active {
    background: linear-gradient(135deg, #6f42c1 0%, #563d7c 100%);
    border-color: #6f42c1;
    color: white;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);
}

.toggle-button.active .toggle-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toggle-button.active .toggle-switch {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #6f42c1;
    color: white;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.toggle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    transition: color 0.3s ease;
}

.toggle-value {
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.toggle-button.active .toggle-label,
.toggle-button.active .toggle-value {
    color: white;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Animação de entrada para os botões */
.toggle-button {
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de ripple nos botões */
.toggle-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.toggle-button:active::before {
    width: 300px;
    height: 300px;
}

/* Estilo para destacar quando multa/juros estão aplicados */
#modal-pagamento .form-input[readonly]:not([value*="R$ 0,00"]) {
    background: #e8f5e8;
    border-color: #28a745;
    color: #155724;
}

/* Responsividade para os botões */
@media (max-width: 768px) {
    .toggle-button {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .toggle-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .toggle-switch {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .toggle-label {
        font-size: 0.9rem;
    }
    
    .toggle-value {
        font-size: 0.8rem;
    }
}

/* Estilos para o input de arquivo personalizado */
.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-container input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.file-input-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    justify-content: center;
}

.file-input-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.file-input-button:active {
    transform: translateY(0);
}

.file-name-display {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    min-height: 20px;
}

.file-name-display.has-file {
    background: #e8f5e8;
    border-color: #28a745;
    color: #155724;
    font-weight: 500;
}

/* Estilos para o botão de comprovante no histórico */
.btn-ver-comprovante {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
    text-decoration: none;
}

.btn-ver-comprovante:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
    color: white;
    text-decoration: none;
}

.btn-ver-comprovante:active {
    transform: translateY(0);
}

.detalhe-item.comprovante {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin-top: 8px;
}

.detalhe-item.comprovante label {
    color: #17a2b8;
    font-weight: 600;
}

/* Estilos para o botão pequeno de reabrir fatura */
.btn-reabrir-pequeno {
    background: #6c757d;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-reabrir-pequeno:hover {
    background: #5a6268;
    transform: scale(1.1);
}

.btn-reabrir-pequeno i {
    font-size: 0.7rem;
}

/* Ajuste para o container de dias de atraso */
.detalhe-item.atraso {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhe-item.atraso label {
    min-width: 100px;
}

.detalhe-item.atraso span {
    flex: 1;
}

/* Badges de tipo de locação */
.tipo-locacao-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tipo-locacao-badge.tipo-normal {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tipo-locacao-badge.tipo-promessa {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsividade para badges */
@media (max-width: 768px) {
    .tipo-locacao-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Ações compactas à direita no histórico */
.info-acoes {
	justify-content: flex-end !important;
}

.historico-pagamentos .pagamento-item .pagamento-detalhes .detalhe-item.atraso {
	display: flex;
	align-items: center;
	gap: 8px;
}

.historico-pagamentos .btn-reabrir-pequeno,
.historico-pagamentos .btn-visualizar-pequeno,
.btn-reabrir-pequeno,
.btn-visualizar-pequeno {
	margin-left: 6px;
	padding: 6px 8px;
	border-radius: 6px;
}

/* Badges de status com cores específicas */
.status-badge.status-vencido {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.status-aberto {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Novo estado visual para EM DIAS (dentro do prazo) */
.status-badge.status-em-dias {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
    color: #0b2e3a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-badge.status-pago {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Respo
nsividade para Cards Dashboard */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-stats p {
        font-size: 2rem;
    }
    
    .value-amount {
        font-size: 1.2rem;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        padding: 0;
    }
    
    .card {
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .card-stats p {
        font-size: 1.8rem;
    }
}