/* ============================================
   FUMISOFT FREE - Sistema de Estilos Completo
   ============================================ */

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
    /* Colores principales */
    --primary-color: #1e40af;
    --primary-hover: #1e3a8a;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Textos y fondos */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Variables Fumi (para registro) */
    --fumi-primary: #667eea;
    --fumi-secondary: #764ba2;
    --fumi-success: #10b981;
    --fumi-danger: #ef4444;
    --fumi-warning: #f59e0b;
    --fumi-info: #3b82f6;
    --fumi-text: #1f2937;
    --fumi-text-muted: #6b7280;
    --fumi-border: #e5e7eb;
    --fumi-bg-light: #f9fafb;
    --fumi-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========================================
   RESET Y BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   ESTILOS DE LOGIN
   ============================================ */

body.login-free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Panel Izquierdo - Branding */
.login-left-panel {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.branding-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-free {
    max-width: 150px;
    height: auto;
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.branding-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.features-list {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--success-color);
}

.feature-item span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Panel Derecho - Formulario Login */
.login-right-panel {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Formulario Login */
.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    font-size: 1rem;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Opciones del Formulario Login */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Bot�n de Login */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-login i {
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(5px);
}

/* Divider y Registro */
.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Footer y Alertas Login */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.alert i {
    font-size: 1.2rem;
}

/* Responsive Login */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .login-left-panel {
        flex: 0 0 auto;
        padding: 40px 30px;
    }

    .branding-title {
        font-size: 2rem;
    }

    .features-list {
        display: none;
    }

    .login-right-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    body.login-free {
        padding: 10px;
    }

    .login-card {
        padding: 0;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ============================================
   ESTILOS DE REGISTRO
   ============================================ */

.fumi-login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fumi-login-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
}

/* Header Registro */
.fumi-login-header {
    background: var(--fumi-gradient);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.fumi-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.fumi-login-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.fumi-login-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

/* Body Registro */
.fumi-login-body {
    padding: 40px 30px;
}

.fumi-section-title {
    color: var(--fumi-primary);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 25px 0;
}

/* Formularios Registro */
.fumi-form-group {
    margin-bottom: 25px;
}

.fumi-label {
    display: block;
    margin-bottom: 8px;
    color: var(--fumi-text);
    font-weight: 500;
    font-size: 14px;
}

.fumi-label .required {
    color: var(--fumi-danger);
    margin-left: 3px;
}

.fumi-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--fumi-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.fumi-input:focus {
    outline: none;
    border-color: var(--fumi-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fumi-input::placeholder {
    color: #9ca3af;
}

.fumi-input:disabled {
    background: var(--fumi-bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.fumi-input.is-valid {
    border-color: var(--fumi-success);
}

.fumi-input.is-invalid {
    border-color: var(--fumi-danger);
}

.fumi-help-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--fumi-text-muted);
}

.fumi-help-text.text-success {
    color: var(--fumi-success);
}

.fumi-help-text.text-danger {
    color: var(--fumi-danger);
}

/* Botones Registro */
.fumi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

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

.fumi-btn-primary {
    background: var(--fumi-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.fumi-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.fumi-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.fumi-btn-secondary {
    background: #6c757d;
    color: white;
}

.fumi-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.fumi-btn-success {
    background: var(--fumi-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.fumi-btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.fumi-btn-link {
    background: transparent;
    color: var(--fumi-primary);
    box-shadow: none;
}

.fumi-btn-link:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.1);
}

/* Alertas Registro */
.fumi-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.fumi-alert i {
    font-size: 18px;
    margin-top: 2px;
}

.fumi-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--fumi-success);
}

.fumi-alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--fumi-danger);
}

.fumi-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--fumi-warning);
}

.fumi-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--fumi-info);
}

/* Links */
.fumi-link {
    color: var(--fumi-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.fumi-link:hover {
    color: var(--fumi-secondary);
    text-decoration: underline;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fumi-border);
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background: var(--fumi-gradient);
    transition: width 0.3s ease;
    z-index: 1;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--fumi-border);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--fumi-text-muted);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--fumi-gradient);
    border-color: var(--fumi-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step.completed .step-circle {
    background: var(--fumi-success);
    border-color: var(--fumi-success);
    color: white;
}

.step-circle .step-number {
    display: block;
}

.step-circle .step-check {
    display: none;
}

.step.completed .step-circle .step-number {
    display: none;
}

.step.completed .step-circle .step-check {
    display: block;
}

.step-title {
    font-size: 12px;
    color: var(--fumi-text-muted);
    font-weight: 500;
}

.step.active .step-title {
    color: var(--fumi-primary);
    font-weight: 600;
}

.step.completed .step-title {
    color: var(--fumi-success);
}

/* Form Sections */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeInSection 0.3s ease;
}

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

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .fumi-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Input Group con Validaci�n */
.input-group {
    position: relative;
}

.input-group-addon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.validation-icon {
    display: none;
    font-size: 16px;
}

.validation-icon.show {
    display: inline-block;
}

/* Domain Preview */
.domain-preview {
    margin-top: 10px;
    padding: 12px;
    background: var(--fumi-bg-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--fumi-primary);
    display: none;
    font-weight: 500;
}

.domain-preview.show {
    display: block;
}

.domain-preview i {
    margin-right: 8px;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
    height: 4px;
    background: var(--fumi-border);
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--fumi-danger);
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--fumi-warning);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--fumi-success);
}

/* Password Requirements */
.password-requirements {
    margin-top: 10px;
    font-size: 12px;
    color: var(--fumi-text-muted);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.password-requirements li {
    padding: 3px 0;
}

.password-requirements li.valid {
    color: var(--fumi-success);
}

.password-requirements li i {
    width: 16px;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    padding: 15px;
    background: var(--fumi-bg-light);
    border-radius: 8px;
    border: 1px solid var(--fumi-border);
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin: 0;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.5;
}

/* Navigation Buttons */
.btn-group-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn-nav {
    flex: 1;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--fumi-border);
    font-size: 14px;
    color: var(--fumi-text-muted);
}

.login-link a {
    color: var(--fumi-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--fumi-secondary);
    text-decoration: underline;
}

/* Summary Box */
.summary-box {
    background: var(--fumi-bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--fumi-border);
}

.summary-box h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.summary-box p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--fumi-text);
}

.summary-box strong {
    color: var(--fumi-text);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .fumi-login-body {
        padding: 25px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .fumi-form-group {
        margin-bottom: 25px;
    }
    
    .step-title {
        font-size: 10px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .btn-group-navigation {
        flex-direction: column;
    }
    
    .btn-nav {
        width: 100%;
    }
    
    .fumi-login-title {
        font-size: 24px;
    }
    
    .fumi-section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .fumi-login-header {
        padding: 30px 20px;
    }
    
    .fumi-logo {
        max-width: 150px;
    }
    
    .fumi-login-title {
        font-size: 20px;
    }
}

/* ============================================
   ESTILOS PARA PANTALLAS PRINCIPALES FREE
   (main_free.php y list_free.php)
   ============================================ */

/* Body para pantallas principales */
body.main-free-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Contenedores principales */
.main-container-free {
    padding: 20px;
    max-width: 98%;
    width: 98%;
    margin: 0 auto;
}

/* Header panel */
.header-panel-free {
    background: white;
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section-free {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section-free img {
    height: 50px;
    border-radius: 8px;
}

.company-info-free h2 {
    margin: 0;
    color: #244a78;
    font-size: 24px;
    font-weight: 600;
}

.company-info-free p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.user-info-free {
    text-align: right;
}

.user-info-free .user-name {
    color: #244a78;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.user-actions-free {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.user-actions-free a {
    text-decoration: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-actions-free a.btn-password {
    background-color: #5cb85c;
}

.user-actions-free a.btn-password:hover {
    background-color: #4cae4c;
}

.user-actions-free a.btn-logout {
    background-color: #d9534f;
}

.user-actions-free a.btn-logout:hover {
    background-color: #c9302c;
}

/* Módulos en grid */
.modules-container-free {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.module-panel-free {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.module-header-free {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.module-icon-free {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.module-title-free {
    font-size: 20px;
    font-weight: 600;
    color: #244a78;
    margin: 0;
}

.module-buttons-free {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-btn-free {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.module-btn-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.module-btn-free i {
    font-size: 18px;
}

/* Header bar para listados */
.header-bar-free {
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-title-free {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title-free h1 {
    margin: 0;
    color: #244a78;
    font-size: 26px;
    font-weight: 600;
}

.icon-wrapper-free {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.header-actions-free {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Content panel */
.content-panel-free {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Filter section */
.filter-section-free {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filter-toggle-free {
    cursor: pointer;
    color: #667eea;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    user-select: none;
}

.filter-toggle-free:hover {
    color: #764ba2;
}

.filter-toggle-free i {
    transition: transform 0.3s;
}

.filter-toggle-free.collapsed i {
    transform: rotate(0deg);
}

.filter-toggle-free:not(.collapsed) i {
    transform: rotate(90deg);
}

/* Badges de estado para listados */
.badge-status-free {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-status-free.pagada {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

.badge-status-free.pendiente {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    color: white;
}

.badge-status-free.anulada {
    background: linear-gradient(135deg, #ef5350 0%, #e57373 100%);
    color: white;
}

/* Iconos Verifactu */
.verifactu-icon-free {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.verifactu-icon-free.enviado {
    background: #d4edda;
    color: #155724;
}

.verifactu-icon-free.pendiente {
    background: #fff3cd;
    color: #856404;
}

.verifactu-icon-free.error {
    background: #f8d7da;
    color: #721c24;
}

.btn-action-free.btn-nuevo {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

/* Botones de acción en tablas */
.btn-action-free {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-action-free.btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-action-free.btn-edit:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.btn-action-free.btn-pdf {
    background: #dc3545;
}

.btn-action-free.btn-pdf:hover {
    transform: scale(1.05);
    background: #c82333;
}

.btn-action-free.btn-email {
    background: #17a2b8;
}

.btn-action-free.btn-email:hover {
    transform: scale(1.05);
    background: #138496;
}

/* Totales */
.totales-section-free {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
}

.totales-section-free strong {
    color: #244a78;
}

/* DataTables personalizados para free */
.dataTable_wrapper-free {
    margin-top: 20px;
}

table.dataTable-free {
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

table.dataTable-free thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

table.dataTable-free thead th {
    color: white !important;
    font-weight: 600;
    border: none !important;
    padding: 15px 10px !important;
}

table.dataTable-free tbody tr {
    transition: all 0.2s;
}

table.dataTable-free tbody tr:hover {
    background-color: #f8f9ff !important;
    transform: scale(1.01);
}

table.dataTable-free tbody td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
}

/* Responsive para pantallas free */
@media (max-width: 768px) {
    .header-panel-free,
    .header-bar-free {
        flex-direction: column;
        text-align: center;
    }

    .user-info-free {
        text-align: center;
        margin-top: 15px;
    }

    .user-actions-free,
    .header-actions-free {
        justify-content: center;
        width: 100%;
        flex-direction: column;
    }

    .modules-container-free {
        grid-template-columns: 1fr;
    }

    .header-title-free h1 {
        font-size: 20px;
    }

    .main-container-free {
        padding: 10px;
    }

    .content-panel-free {
        padding: 15px;
    }
}

/* Para ocultar botones como la edición de cliente en facturas si no hay cliente seleccionado */
.btn-hidden-free {
    display: none !important;
}

/* ============================================
   ESTILOS PARA EDICIÓN DE FACTURAS FREE
   ============================================ */

/* Form sections para edición */
.form-section-edit-free {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.form-section-edit-free h3 {
    color: #244a78;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Panels colapsables para facturas */
.panel-collapsible-free {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-header-collapsible-free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s;
}

.panel-header-collapsible-free:hover {
    opacity: 0.9;
}

.panel-header-collapsible-free i {
    transition: transform 0.3s;
}

.panel-header-collapsible-free.collapsed i {
    transform: rotate(-90deg);
}

.panel-body-collapsible-free {
    padding: 20px;
}

/* Tabla de líneas de factura */
.tabla-lineas-edit-free {
    width: 100%;
    margin-top: 20px;
}

.tabla-lineas-edit-free table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.tabla-lineas-edit-free thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tabla-lineas-edit-free thead th {
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
}

.tabla-lineas-edit-free tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s;
}

.tabla-lineas-edit-free tbody tr:hover {
    background-color: #f8f9ff;
}

.tabla-lineas-edit-free tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    font-size: 13px;
}

.tabla-lineas-edit-free tfoot {
    background: #f8f9fa;
    font-weight: 600;
}

.tabla-lineas-edit-free tfoot td {
    padding: 12px 8px;
    border-top: 2px solid #667eea;
}

/* Botones específicos para edición */
.btn-group-edit-free {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-edit-factura-free {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 14px;
    min-width: 140px;
}

.btn-edit-factura-free i {
    font-size: 18px;
}

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

.btn-edit-factura-free.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-edit-factura-free.btn-pay {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

.btn-edit-factura-free.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

.btn-edit-factura-free.btn-print {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    color: white;
}

.btn-edit-factura-free.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
}

.btn-edit-factura-free.btn-delete {
    background: linear-gradient(135deg, #ef5350 0%, #e57373 100%);
    color: white;
}

.btn-edit-factura-free.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

/* Input groups mejorados */
.input-group-free {
    display: flex;
    align-items: stretch;
}

.input-group-free .form-control-free {
    border-radius: 6px 0 0 6px;
}

.input-group-free .input-group-btn-free {
    display: flex;
}

.input-group-free .input-group-btn-free button,
.input-group-free .input-group-btn-free a {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

/* Alertas de estado de factura */
.alert-factura-free {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
}

.alert-factura-free.cobrada {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15) 0%, rgba(0, 230, 118, 0.15) 100%);
    border-left: 4px solid #00c853;
    color: #155724;
}

.alert-factura-free.anulada {
    background: linear-gradient(135deg, rgba(239, 83, 80, 0.15) 0%, rgba(229, 115, 115, 0.15) 100%);
    border-left: 4px solid #ef5350;
    color: #721c24;
}

/* Panel de nueva línea */
.panel-nueva-linea-free {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 2px dashed #667eea;
}

.panel-nueva-linea-free h4 {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Totales en footer de tabla */
.totales-footer-free {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.total-item-free {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-item-free .label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.total-item-free .value {
    font-size: 18px;
    font-weight: 700;
    color: #244a78;
}

/* Cobros parciales */
.cobros-section-free {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.cobros-section-free h5 {
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cobro-item-free {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #00c853;
}

.cobro-item-free .fecha {
    font-weight: 600;
    color: #244a78;
}

.cobro-item-free .importe {
    font-weight: 700;
    color: #00c853;
    font-size: 16px;
}

/* Responsive para edición */
@media (max-width: 768px) {
    .btn-group-edit-free {
        flex-direction: column;
    }

    .btn-edit-factura-free {
        width: 100%;
    }

    .totales-footer-free {
        flex-direction: column;
    }

    .tabla-lineas-edit-free {
        overflow-x: auto;
    }

    .tabla-lineas-edit-free table {
        min-width: 800px;
    }
}

/* ========================================
   GESTIÓN DE CLIENTES - ESTILOS ESPECÍFICOS
   ======================================== */

/* Sistema de Pestañas Mejorado */
.tabs-container-free {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 0;
    overflow-x: auto;
}

.tab-item-free {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-item-free i {
    font-size: 16px;
}

.tab-item-free:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-item-free.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-content-free {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content-free.active {
    display: block;
}

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

/* Barra de Acciones */
.actions-bar-free {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box-free {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box-free i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box-free input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* Tabla de Clientes */
.table-wrapper-free {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cliente-nombre-free {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cliente-nombre-free i {
    color: #667eea;
    font-size: 18px;
}

.link-telefono-free,
.link-email-free {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.link-telefono-free:hover,
.link-email-free:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Botones de Acción en Tabla */
.action-buttons-free {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-mini-free {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-mini-free.btn-edit {
    background: #667eea;
    color: white;
}

.btn-mini-free.btn-edit:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.btn-mini-free.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-mini-free.btn-delete:hover {
    background: #ee5a6f;
    transform: scale(1.1);
}

/* Controles de DataTable */
.table-controls-free {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e7ff;
}

.table-footer-free {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e7ff;
}

/* Formulario de Edición */
.form-section-free {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title-free {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #244a78;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ff;
}

.section-title-free i {
    color: #667eea;
}

.form-grid-free {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.form-group-free {
    grid-column: span 1;
}

.form-group-free.col-span-2 {
    grid-column: span 2;
}

.form-group-free.col-span-3 {
    grid-column: span 3;
}

.form-group-free.col-span-4 {
    grid-column: span 4;
}

.form-group-free label {
    display: block;
    font-weight: 600;
    color: #244a78;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group-free label .required {
    color: #ff6b6b;
    margin-left: 3px;
}

.form-control-free {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e7ff;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.form-control-free::placeholder {
    color: #adb5bd;
}

textarea.form-control-free {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-help-free {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Checkboxes para formularios */
.checkbox-group-free {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.checkbox-label-free {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.checkbox-label-free input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label-free span {
    font-size: 14px;
    color: #374151;
}

/* Botones de Formulario */
.form-actions-free {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid #e0e7ff;
    margin-top: 25px;
}

.btn-form-free {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-form-free i {
    font-size: 16px;
}

.btn-form-free.btn-cancelar {
    background: #6c757d;
    color: white;
}

.btn-form-free.btn-cancelar:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

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

.btn-form-free.btn-guardar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Panel de Estadísticas */
.stats-grid-free {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.stat-card-free {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card-free:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-icon-free {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.stat-info-free h3 {
    font-size: 32px;
    font-weight: 700;
    color: #244a78;
    margin: 0 0 5px 0;
}

.stat-info-free p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-grid-free {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group-free.col-span-3,
    .form-group-free.col-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .tabs-container-free {
        overflow-x: auto;
    }
    
    .tab-item-free span {
        display: none;
    }
    
    .tab-item-free {
        padding: 12px 16px;
    }
    
    .actions-bar-free {
        flex-direction: column;
    }
    
    .search-box-free {
        max-width: 100%;
    }
    
    .form-grid-free {
        grid-template-columns: 1fr;
    }
    
    .form-group-free,
    .form-group-free.col-span-2,
    .form-group-free.col-span-3,
    .form-group-free.col-span-4 {
        grid-column: span 1;
    }
    
    .form-actions-free {
        flex-direction: column-reverse;
    }
    
    .btn-form-free {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid-free {
        grid-template-columns: 1fr;
    }
}

/* Animación para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
```

### 6. **Actualizar main_free.php**: Añadir el nuevo grupo de Maestros/Mantenimientos

Busca en `application/views/main_free.php` donde están los módulos y añade:
```php
<!-- Después del módulo de Facturación, añadir: -->

<!-- Módulo: Maestros -->
<div class="module-group-free">
    <h2 class="module-group-title-free">
        <i class="fas fa-database"></i>
        Maestros
    </h2>
    <div class="modules-container-free">
        
        <a href="<?php echo base_url() ?>Clientes_free/fListar" class="module-card-free">
            <div class="module-icon-free" style="background: linear-gradient(135deg, #00c853 0%, #00e676 100%);">
                <i class="fas fa-users"></i>
            </div>
            <div class="module-info-free">
                <h3>Clientes</h3>
                <p>Gestión de clientes</p>
            </div>
            <div class="module-arrow-free">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>

        <!-- Placeholder para futuros mantenimientos -->
        <div class="module-card-free disabled">
            <div class="module-icon-free" style="background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);">
                <i class="fas fa-box"></i>
            </div>
            <div class="module-info-free">
                <h3>Artículos</h3>
                <p>Próximamente</p>
            </div>
        </div>

    </div>
</div>
```

También añade este CSS en `fumisoft_free.css`:
```css
/* Módulo deshabilitado */
.module-card-free.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.module-group-free {
    margin-bottom: 40px;
}

.module-group-title-free {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #244a78;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ff;
}

.module-group-title-free i {
    color: #667eea;
}

/* ========================================
   AGRUPACIÓN DE MÓDULOS
   ======================================== */

.modules-section-free {
    padding: 20px 0;
}

.module-group-free {
    margin-bottom: 50px;
}

.module-group-title-free {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #244a78;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e0e7ff;
}

.module-group-title-free i {
    color: #667eea;
    font-size: 26px;
}

/* Módulos deshabilitados */
.module-card-free.module-disabled-free {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.module-card-free.module-disabled-free::after {
    content: "PRÓXIMAMENTE";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd93d;
    color: #244a78;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.module-card-free.module-disabled-free:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive para grupos de módulos */
@media (max-width: 768px) {
    .module-group-free {
        margin-bottom: 35px;
    }
    
    .module-group-title-free {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .module-group-title-free i {
        font-size: 22px;
    }
}

/* ========================================
   GESTIÓN DE ARTÍCULOS - ESTILOS ESPECÍFICOS
   ======================================== */

/* Código de artículo */
.articulo-codigo-free {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #244a78;
}

.articulo-codigo-free i {
    color: #667eea;
}

/* Descripción de artículo */
.articulo-descripcion-free {
    line-height: 1.5;
}

.articulo-descripcion-free small {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    font-size: 11px;
}

/* Input group para precios */
.input-group-free {
    display: flex;
    align-items: stretch;
}

.input-group-free .form-control-free {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-addon-free {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8f9fa;
    border: 2px solid #e0e7ff;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #667eea;
}

/* Checkbox personalizado */
.checkbox-container-free {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.checkbox-container-free input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark-free {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #e0e7ff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container-free:hover input ~ .checkmark-free {
    background-color: #f0f4ff;
}

.checkbox-container-free input:checked ~ .checkmark-free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkmark-free:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container-free input:checked ~ .checkmark-free:after {
    display: block;
}

.checkbox-label-free {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #244a78;
}

.checkbox-label-free i {
    color: #667eea;
}

/* Ayuda en formularios */
.form-help-free {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Notificaciones flotantes */
.notificacion-free {
    position: fixed;
    top: 20px;
    right: -350px;
    min-width: 300px;
    padding: 15px 20px;
    background: #00c853;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: right 0.3s ease;
    z-index: 10000;
}

.notificacion-free.show {
    right: 20px;
}

.notificacion-free i {
    font-size: 20px;
}

/* Alineación de texto en tablas */
.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

/* Responsive para artículos */
@media (max-width: 768px) {
    .articulo-descripcion-free small {
        display: block;
        margin-top: 8px;
    }
    
    .form-grid-free {
        grid-template-columns: 1fr;
    }
    
    .form-group-free.col-span-2,
    .form-group-free.col-span-3,
    .form-group-free.col-span-4 {
        grid-column: span 1;
    }
    
    .input-group-free {
        flex-direction: column;
    }
    
    .input-group-free .form-control-free {
        border-radius: 8px;
        border-right: 2px solid #e0e7ff;
    }
    
    .input-addon-free {
        border-radius: 8px;
        border-left: 2px solid #e0e7ff;
        border-top: none;
        justify-content: center;
        padding: 8px;
    }
}

/* ========================================
   MÓDULOS BLOQUEADOS
   ======================================== */

.module-locked-free {
    position: relative;
    min-height: 200px;
}

.module-locked-free .form-section-free {
    opacity: 0.3;
    filter: blur(2px);
    pointer-events: none;
}

.module-lock-overlay-free {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    padding: 30px 40px;
    pointer-events: all;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid #e0e7ff;
    min-width: 350px;
}

.module-lock-overlay-free i.fa-lock {
    font-size: 56px;
    color: #667eea;
    margin-bottom: 20px;
    animation: pulse-lock 2s infinite;
}

@keyframes pulse-lock {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.module-lock-overlay-free p {
    font-size: 17px;
    color: #244a78;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.module-lock-overlay-free strong {
    color: #667eea;
    font-weight: 700;
}

.btn-unlock-module-free {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-unlock-module-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

.btn-unlock-module-free i {
    font-size: 18px;
}

/* ============================================
   MODALES GENÉRICOS FREE
   ============================================ */

/* Header del modal */
.modal-header-free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 6px 6px 0 0;
}

.modal-header-free .close {
    color: white;
    opacity: 0.8;
    font-size: 28px;
    font-weight: 300;
}

.modal-header-free .close:hover {
    opacity: 1;
}

.modal-header-free .modal-title {
    font-size: 20px;
    font-weight: 600;
}

/* Body del modal */
.modal-body-free {
    padding: 30px;
}

/* Footer del modal */
.modal-footer-free {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
}

/* Form groups en modal */
.form-group-modal {
    margin-bottom: 20px;
}

/* Labels en modal */
.form-label-modal {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label-modal.label-importe {
    color: #667eea;
    font-size: 15px;
}

/* Inputs y selects en modal */
.form-control-modal {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e7ff;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.3s ease;
}

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

.form-control-modal::placeholder {
    color: #9ca3af;
}

/* Textarea en modal */
textarea.form-control-modal {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Input de importe total */
.input-importe-total {
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    background: #f8f9fa;
    color: #667eea;
}

/* Wrapper de autocomplete */
.autocomplete-wrapper {
    position: relative;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e7ff;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f8f9ff;
}

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

.autocomplete-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.autocomplete-item small {
    color: #6c757d;
    font-size: 13px;
}

/* Botones del modal */
.btn-modal-cancelar {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
}

.btn-modal-guardar {
    padding: 10px 25px;
    font-size: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-modal-guardar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-body-free {
        padding: 20px;
    }
    
    .form-control-modal {
        font-size: 16px; /* Evitar zoom en iOS */
    }
}

/* ============================================
   BOTONES VERIFACTU FREE
   ============================================ */

.btn-doc.btn-verifactu {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    color: white;
}

.btn-doc.btn-verifactu:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
}

.btn-doc.btn-verifactu-success {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
}

.btn-doc.btn-verifactu-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

/* ========================================
   OVERRIDE PARA FILTROS - Usar estilos FREE
   ======================================== */

.divfiltro .form-control,
.divfiltro .form-control-jor {
    padding: 10px 15px !important;
    border: 2px solid #e0e7ff !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.divfiltro .form-control:focus,
.divfiltro .form-control-jor:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.divfiltro label {
    font-weight: 600 !important;
    color: #244a78 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.divfiltro .col-jor {
    margin-bottom: 15px;
}

/* Estilo para el módulo de exportaciones */
.modulo-exportaciones {
    margin-bottom: 20px;
}

.modulo-exportaciones .btn-group {
    margin-bottom: 0;
}

.modulo-exportaciones .btn {
    margin-right: 5px;
}

.modulo-exportaciones .alert {
    font-size: 13px;
}

/* Badge de límites en pantalla principal */
.limite-badge-main {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 11px;
    color: #6c757d;
    font-weight: 400;
}

.limite-badge-main i {
    font-size: 10px;
    opacity: 0.7;
}

.limite-badge-main span.limite-warning {
    color: #dc3545;
    font-weight: 600;
}

/* Badges de estado de facturas */
.badge-free {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.badge-cobrada {
    background: #10b981;
    color: white;
}

.badge-cobrada:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.badge-vencida {
    background: #ef4444;
    color: white;
}

.badge-vencida:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.badge-pendiente {
    background: #3b82f6;
    color: white;
}

.badge-pendiente:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Clases para filas de tabla según estado */
.tr-cobrada {
    background-color: #f0fdf4 !important;
}

.tr-vencida {
    background-color: #fef2f2 !important;
}

/* Modal personalizado para free */
#formModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#formModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 1rem 1.5rem;
}

#formModal .modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

#formModal .modal-header .close:hover {
    opacity: 1;
}

#formModal .modal-title {
    font-weight: 600;
    font-size: 1.125rem;
}

#formModal .modal-body {
    padding: 1.5rem;
}

#formModal .form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
}

#formModal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#formModal .modal-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#formModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#formModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.4);
}

#formModal .btn-secondary {
    background: #6b7280;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
}

#formModal .btn-secondary:hover {
    background: #4b5563;
}

/* Iconos en la columna de estado */
.far.fa-envelope,
.far.fa-envelope-open,
.fas.fa-fire-alt {
    font-size: 1.1em;
    vertical-align: middle;
}

/* ============================================
   BOTONES PEQUEÑOS PARA ACCIONES (solo iconos)
   ============================================ */

.btn-action-small-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: none;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-small-free.btn-print {
    background: #dc3545;
}

.btn-action-small-free.btn-print:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-action-small-free.btn-send {
    background: #17a2b8;
}

.btn-action-small-free.btn-send:hover {
    background: #138496;
    transform: scale(1.1);
}

/* ============================================
   FACTURAS DE ABONO - ESTILOS ESPECÍFICOS
   ============================================ */

.numero-abono-free {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    border-color: #e53935;
}

.numero-abono-free:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-color: #c62828;
    transform: translateY(-1px);
}

/* Destacar totales negativos en rojo */
.total-row-free strong[style*="color: #ef5350"] {
    font-size: 1.1em;
}

/* Estilos para clientes inactivos */
.cliente-inactivo {
    background-color: #f9f9f9 !important;
    opacity: 0.7;
}

.cliente-inactivo td {
    color: #999 !important;
}

/* Badges de estado */
.badge-success-free {
    background-color: #5cb85c;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.badge-danger-free {
    background-color: #d9534f;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Botón de reactivar */
.btn-success-free {
    background-color: #5cb85c !important;
    color: white !important;
}

.btn-success-free:hover {
    background-color: #4cae4c !important;
}

/* Info bar para contador */
.info-bar-free {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item-free {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
}

.info-item-free i {
    color: #007bff;
    font-size: 18px;
}

.info-item-free strong {
    color: #007bff;
    font-weight: 600;
}

/* ============================================
   EXPORTACIONES - CARDS
   ============================================ */

.export-card-free {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.export-card-free:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.export-header {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.export-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.export-header h3 {
    margin: 0;
    color: #244a78;
    font-size: 20px;
    font-weight: 600;
}

.export-body {
    padding: 25px;
}

.export-body p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.export-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.export-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-features li i {
    color: #00c853;
    font-size: 16px;
}

.export-footer {
    padding: 0 25px 25px 25px;
}

.btn-export {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-export i {
    font-size: 16px;
}

/* ============================================
   DASHBOARD DE AUSENCIAS
   ============================================ */

.panel-ausencias-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.panel-header-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
}

.panel-header-dashboard h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-body-dashboard {
    padding: 20px;
}

/* No hay datos */
.no-data-dashboard {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.no-data-dashboard i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-data-dashboard p {
    margin: 0;
    font-size: 14px;
}

/* Lista de próximas ausencias */
.lista-ausencias-dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ausencia-item-dashboard {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.ausencia-item-dashboard:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.ausencia-fecha {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.ausencia-fecha i {
    color: #667eea;
}

.ausencia-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ausencia-info strong {
    color: #244a78;
    font-size: 14px;
}

.badge-tipo-small {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-tipo-small.tipo-vacaciones {
    background: #dbeafe;
    color: #1e40af;
}

.badge-tipo-small.tipo-baja-médica,
.badge-tipo-small.tipo-baja-medica {
    background: #fee2e2;
    color: #991b1b;
}

.badge-tipo-small.tipo-permiso {
    background: #fef3c7;
    color: #92400e;
}

.badge-tipo-small.tipo-asuntos-propios {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-tipo-small.tipo-otros {
    background: #e5e7eb;
    color: #374151;
}

.ausencia-dias {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Lista de tipos */
.lista-tipos-dashboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tipo-item-dashboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tipo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tipo-nombre {
    font-weight: 600;
    color: #244a78;
    font-size: 14px;
}

.tipo-cantidad {
    font-size: 12px;
    color: #6c757d;
}

.tipo-dias {
    font-weight: 700;
    color: #667eea;
    font-size: 13px;
}

.tipo-barra {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barra-progreso {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.barra-relleno {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.barra-vacaciones {
    background: #3788d8;
}

.barra-baja-médica,
.barra-baja-medica {
    background: #dc3545;
}

.barra-permiso {
    background: #ffc107;
}

.barra-asuntos-propios {
    background: #6f42c1;
}

.barra-otros {
    background: #6c757d;
}

.tipo-porcentaje {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    min-width: 45px;
    text-align: right;
}

/* Tabla de ausencias del mes */
.tabla-ausencias-dashboard {
    width: 100%;
    border-collapse: collapse;
}

.tabla-ausencias-dashboard thead {
    background: #f8f9fa;
}

.tabla-ausencias-dashboard th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
}

.tabla-ausencias-dashboard td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #1f2937;
}

.tabla-ausencias-dashboard tbody tr:hover {
    background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .ausencia-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   LOADER GLOBAL FREE
   ============================================ */

.blockUI.blockMsg {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.loader-free {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 250px;
}

.loader-free .spinner-free {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #e0e7ff;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin-free 1s linear infinite;
}

@keyframes spin-free {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-free h4 {
    margin: 0;
    color: #244a78;
    font-size: 16px;
    font-weight: 600;
}

.loader-free p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

/* Overlay del loader */
.blockUI.blockOverlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
    cursor: wait !important;
}