/* ========== ESTILOS GERAIS ========== */
.sgf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sgf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sgf-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 300;
}

.sgf-icon {
    margin-right: 8px;
}

/* ========== TABELAS ========== */
.sgf-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.sgf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sgf-table th {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.sgf-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.sgf-table tr:hover {
    background: #f7fafc;
}

.sgf-table tr:last-child td {
    border-bottom: none;
}

/* ========== BOTÕES ========== */
.sgf-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sgf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sgf-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sgf-btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.sgf-btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.sgf-btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
}

.sgf-btn-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d3748;
}

.sgf-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.sgf-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* ========== STATUS ========== */
.sgf-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sgf-status-ativo, .sgf-status-pago {
    background: #c6f6d5;
    color: #22543d;
}

.sgf-status-inativo, .sgf-status-pendente {
    background: #fed7d7;
    color: #742a2a;
}
/* ========== ESTATÍSTICAS DE VALES ========== */
.sgf-vales-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px;
}

.sgf-vales-stats .sgf-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sgf-vales-stats .sgf-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sgf-vales-stats .sgf-stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sgf-vales-stats .sgf-stat-icon img {
    width: 30px;
    height: 30px;
    
}

.sgf-vales-stats .sgf-stat-info {
    flex: 1;
}

.sgf-vales-stats .sgf-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sgf-vales-stats .sgf-stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cores específicas para cada card de vale */
.sgf-vales-stats .sgf-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.sgf-vales-stats .sgf-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.sgf-vales-stats .sgf-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    .sgf-vales-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sgf-vales-stats .sgf-stat-card {
        padding: 20px;
        gap: 15px;
    }
    
    .sgf-vales-stats .sgf-stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .sgf-vales-stats .sgf-stat-icon img {
        width: 25px;
        height: 25px;
    }
    
    .sgf-vales-stats .sgf-stat-value {
        font-size: 24px;
    }
    
    .sgf-vales-stats .sgf-stat-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sgf-vales-stats .sgf-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .sgf-vales-stats .sgf-stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .sgf-vales-stats .sgf-stat-icon img {
        width: 22px;
        height: 22px;
    }
}
/* ========== MODAIS ========== */
/* ========== MODAIS ========== */
.sgf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 30px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    overflow: auto; /* ADICIONAR */
}

.sgf-modal-content {
    background: white;
    margin: 2% auto; /* ALTERAR de 5% para 2% */
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh; /* ADICIONAR altura máxima */
    overflow-y: auto; /* ADICIONAR scroll vertical */
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: sgfModalSlideIn 0.3s ease;
}

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

.sgf-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.sgf-close:hover {
    color: #e53e3e;
}

/* ========== FORMULÁRIOS ========== */
.sgf-form {
    margin-top: 20px;
}

.sgf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.sgf-full-width {
    grid-column: 1 / -1;
}

.sgf-form-group {
    display: flex;
    flex-direction: column;
}

.sgf-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.sgf-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.sgf-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sgf-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ========== PESQUISA E FILTROS ========== */
.sgf-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sgf-search-box .sgf-input {
    flex: 1;
    min-width: 250px;
}

.sgf-ponto-filters, .sgf-ferias-filters, .sgf-folha-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.sgf-ponto-actions {
    display: flex;
    gap: 12px;
}

.sgf-ponto-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.sgf-ponto-info p {
    margin: 0;
    font-size: 16px;
}

.sgf-ponto-info strong {
    font-weight: 600;
}

/* ========== ESTADOS ========== */
.sgf-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-style: italic;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .sgf-container {
        padding: 15px;
    }
    
    .sgf-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .sgf-header h2 {
        font-size: 1.5em;
    }
    
    .sgf-form-grid {
        grid-template-columns: 1fr;
    }
    
    .sgf-ponto-filters {
        flex-direction: column;
    }
    
    .sgf-ponto-actions {
        flex-direction: column;
    }
    
    .sgf-table-container {
        overflow-x: auto;
    }
    
    .sgf-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .sgf-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sgf-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sgf-ponto-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}