/* WallClub Portal Admin - CSS Consolidado */

/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
    --primary-color: #65C97A;
    --primary-dark: #4CAF50;
    --secondary-color: #f8f9fa;
    --text-dark: #2c3e50;
    --border-color: #e9ecef;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== ESTILOS GLOBAIS ===== */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar-brand {
    font-weight: 600;
    color: white !important;
}

/* ===== SIDEBAR ===== */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--sidebar-bg);
    padding: 0;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-left: 4px solid var(--primary-dark);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 100px;
    height: auto;
}

.page-title {
    font-size: 1.5rem;
    margin-left: 20px;
    color: var(--primary-color);
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== ALERTAS ===== */
.alert {
    border: none;
    border-radius: 8px;
}

/* Alerta permanente - não desaparece */
.alert-dismissible-false {
    animation: none !important;
    transition: none !important;
}

.alert-dismissible-false .btn-close {
    display: none !important;
}

/* Box informativo azul personalizado */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-left: 4px solid #1976d2;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #0d47a1;
    font-size: 0.95rem;
}

.info-box i {
    color: #1976d2;
    margin-right: 0.5rem;
}

/* ===== LAYOUT ===== */
.page-header-compact {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.page-header-compact h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.filters-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filters-form .form-group {
    flex: 0 0 auto;
    min-width: 150px;
}

.filters-form .form-group label {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.filters-form .form-group input,
.filters-form .form-group select {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    background: white;
    padding: 20px;
    margin-bottom: 20px;
}

.loja-info-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.form-section {
    flex: 1;
    min-width: 300px;
}

.table-section {
    flex: 2;
    min-width: 600px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

/* ===== BOTÕES ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Botões padronizados coloridos */
.btn-colorido {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Estilos da tabela */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 8px 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Tabela compacta para muitas colunas */
.compact-table {
    font-size: 12px; /* Reduzido de 13px para 12px */
}

.compact-table th, 
.compact-table td {
    padding: 6px 4px; /* Reduzido de 8px 5px para 6px 4px */
    white-space: nowrap; /* Evita quebra de linha */
}

/* Para colunas com conteúdo longo */
.compact-table .col-truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ajustes para botões na tabela */
.compact-table .btn-danger {
    padding: 2px 5px;
    font-size: 10px;
    white-space: nowrap;
    min-width: 50px;
    max-width: 60px;
}

/* Ajustes para cabeçalhos da tabela */
.compact-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    padding: 4px 2px;
}

/* Ajustes para células da tabela */
.compact-table td {
    max-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    font-size: 11px;
    padding: 4px 2px;
}

/* Estilos para tabela de transações */
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.compact-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}
.compact-table th, .compact-table td {
    padding: 15px 20px;
    border: 1px solid #ddd;
    white-space: nowrap;
}
.compact-table th {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 18px;
    font-weight: bold;
}
.compact-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.compact-table tr:hover {
    background-color: #f1f1f1;
}

/* Estilos para paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active):not(.disabled) {
    background-color: #ddd;
}

.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
    border: 1px solid #ddd;
    cursor: default;
}

.search-bar {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.search-btn {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Estilos adicionais para tabela responsiva */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

.compact-table {
    table-layout: fixed;
    width: 100%;
    font-size: 11px;
}

.compact-table th, 
.compact-table td {
    padding: 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 0;
    white-space: normal;
}

/* Novo estilo para o menu de navegação */
.nav-menu {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 90px;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-menu a:hover {
    background-color: #f1f1f1;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.nav-menu a.active {
    background-color: #4a6da7;
    color: white;
    border-color: #4a6da7;
}

.nav-menu a i {
    margin-right: 8px;
    font-size: 14px;
}

/* Media queries adicionais */
@media (max-width: 992px) {
    .compact-table {
        font-size: 10px;
    }
    
    .compact-table th, 
    .compact-table td {
        padding: 3px 2px;
    }
    
    .form-section {
        flex: 0.4 !important;
    }
    
    .table-section {
        flex: 1.6 !important;
    }
    
    .nav-menu {
        padding: 8px;
        gap: 6px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .btn-danger {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* ===== AUTENTICAÇÃO ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.auth-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.auth-body {
    padding: 30px;
}

.wallclub-logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(101, 201, 122, 0.25);
}

/* Estilos para Dashboard de Indicadores */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.chart-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin-bottom: 15px;
    height: 300px; /* Altura fixa para todos os gráficos */
    overflow: hidden; /* Previne conteúdo de sair do container */
}

.full-width {
    width: 100%;
}

.half-width {
    width: calc(50% - 8px); /* Ajustado para considerar o gap */
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}

.stat-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 12px;
    width: calc(33.33% - 10px);
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.stat-card p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Estilos para o filtro compacto */
.compact-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.compact-filter .form-group {
    margin-bottom: 0;
    flex: 1;
}

.compact-filter label {
    font-size: 11px;
    margin-bottom: 2px;
}

.compact-filter select,
.compact-filter input {
    padding: 4px 6px;
    font-size: 11px;
    height: 28px;
}

.compact-filter .btn {
    padding: 4px 10px;
    font-size: 11px;
    height: 28px;
    margin-top: 18px;
}

/* Ajuste para container principal */
.dashboard-card {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden; /* Previne conteúdo de sair do container */
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding: 0.5rem;
        flex-direction: column;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .half-width {
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .compact-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compact-filter .btn {
        margin-top: 5px;
    }
}

/* ===== DASHBOARD ESPECÍFICO ===== */
.stats-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    min-height: 150px;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 201, 122, 0.15);
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.stats-icon {
    font-size: 3.5rem;
    opacity: 0.8;
}

.stats-card-hoje { border-left-color: #28a745; }
.stats-card-mes { border-left-color: #007bff; }
.stats-card-valor-hoje { border-left-color: #ffc107; }
.stats-card-valor-mes { border-left-color: #17a2b8; }

.welcome-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #65C97A;
}

/* ===== LISTA DE USUÁRIOS ===== */
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #65C97A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    border-color: #65C97A;
    color: #65C97A;
    text-decoration: none;
}

.filter-btn.active {
    background: #65C97A;
    border-color: #65C97A;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(101, 201, 122, 0.1);
}

/* Forçar alinhamento vertical em todas as células da tabela */
.table td {
    vertical-align: middle !important;
}

.table th {
    vertical-align: middle !important;
}

/* Melhorar alinhamento dos botões pequenos na tabela */
.table td .btn-sm {
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== PARÂMETROS ===== */
.loja-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.loja-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.loja-card .card-footer {
    margin-top: auto;
}

.loja-card:hover {
    border-color: #65C97A;
    box-shadow: 0 4px 12px rgba(101, 201, 122, 0.15);
    transform: translateY(-2px);
}

.loja-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loja-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.modalidade-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-right: 0.25rem;
}

.wall-s {
    background-color: #e3f2fd;
    color: #1976d2;
}

.wall-n {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.search-box {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.search-box:focus {
    border-color: #65C97A;
    box-shadow: 0 0 0 0.2rem rgba(101, 201, 122, 0.25);
}


/* ===== IMPORTAÇÃO DE PARÂMETROS ===== */
.upload-area {
    border: 2px dashed #65C97A;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.upload-btn {
    background: #65C97A;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #4CAF50;
}

/* ===== GESTÃO ADMIN - BASE TRANSAÇÕES ===== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.results-summary {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info {
    font-weight: 600;
    color: #333;
}

.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    background: #65C97A;
    color: white;
    padding: 12px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
    min-width: 150px;
}

.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    min-width: 150px;
}

.data-table tr:hover {
    background: #f5f5f5;
}

.data-table tr:nth-child(even) {
    background: #fafafa;
}

.data-table tr:nth-child(even):hover {
    background: #f0f0f0;
}

.monetary {
    text-align: right;
    font-weight: 600;
    color: #2E7D32;
}

.percentage {
    text-align: right;
    color: #1976D2;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-total {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #65C97A;
    color: white;
    border-color: #65C97A;
}

.pagination .current {
    background: #65C97A;
    color: white;
    border-color: #65C97A;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ===== IMPORTAÇÃO DETALHES ===== */
.importacao-header {
    background: linear-gradient(135deg, #65C97A 0%, #4CAF50 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.status-card {
    border-left: 4px solid;
}

.status-sucesso {
    border-left-color: #28a745;
}

.status-erro {
    border-left-color: #dc3545;
}

.status-processando {
    border-left-color: #ffc107;
}

.relatorio-erros {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content h6 {
    margin-bottom: 5px;
}

/* ===== PAGAMENTOS LIST ===== */
.parametros-header {
    background: linear-gradient(135deg, #65C97A 0%, #4CAF50 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.search-box {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.search-box:focus {
    border-color: #65C97A;
    box-shadow: 0 0 0 0.2rem rgba(101, 201, 122, 0.25);
}

.pagamento-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
}

.pagamento-card:hover {
    border-color: #65C97A;
    box-shadow: 0 4px 12px rgba(101, 201, 122, 0.15);
    transform: translateY(-2px);
}

.pagamento-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pagamento-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.valor-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-right: 0.25rem;
    background-color: #e8f5e8;
    color: #2e7d32;
}

.btn-edit {
    background: #65C97A;
    border-color: #65C97A;
    color: white;
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    border-radius: 6px;
}

.btn-edit:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.btn-delete {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    border-radius: 6px;
}

.btn-delete:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.stats-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #65C97A;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== PARÂMETROS IMPORTAR ===== */
.upload-btn {
    background: #5CB85C;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #4CAF50;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* ===== TERMINAIS LIST ===== */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.btn-terminal {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.editable-date {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.editable-date:hover {
    background-color: #f8f9fa;
}

.date-input {
    width: 120px;
    font-size: 0.875rem;
}

.table thead th {
    font-size: 0.75rem;
}

/* ===== RELATÓRIO PRODUÇÃO E RECEITA (RPR) ===== */
.dashboard-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

.card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-header {
    background: none;
    color: #2c3e50;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.metric-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.metric-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin: 12px 0;
    line-height: 1.2;
    color: #2c3e50;
    text-align: center;
}

.metric-value.large {
    font-size: 24px;
}

.metric-value.medium {
    font-size: 20px;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
    min-height: 140px;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #65C97A 0%, #4CAF50 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.stats-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stats-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}
