/**
 * SERVANA - Componentes
 * Botones, Cards, Badges, Alerts, Headers
 */

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-minimal:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

/* ========== CARDS ========== */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-100);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.card-body {
    margin-bottom: 15px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: #2e7d32;
}

.badge-warning {
    background: var(--warning-light);
    color: #f57c00;
}

.badge-danger {
    background: var(--danger-light);
    color: #c62828;
}

.badge-info {
    background: var(--info-light);
    color: #1565c0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ========== ALERTS ========== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: var(--success-light);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: var(--danger-light);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: var(--warning-light);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: var(--info-light);
    color: #004085;
    border: 1px solid #b8daff;
}

/* ========== HEADERS DE PÁGINA ========== */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--gray-600);
}

.minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.minimal-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== GRIDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

/* ========== INFO BOX ========== */
.info-box {
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    padding: 15px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
}

/* ========== SECCIÓN ========== */
.section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-100);
}

.section-header i {
    font-size: 18px;
    color: var(--primary);
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}



/* ========== PLANS GRID (Instalaciones) ========== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.plan-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    text-align: center;
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.plan-card.selected {
    border-color: var(--primary);
    background: var(--gray-50);
}

.plan-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary);
}

.plan-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 5px;
}

/* ========== HORARIO GRID (Instalaciones) ========== */
.horario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.horario-card {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.horario-card:hover {
    border-color: var(--primary);
}

.horario-card.selected {
    border-color: var(--primary);
    background: var(--gray-50);
}

.horario-card i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.horario-card .time {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.horario-card .label {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 3px;
}

/* ========== COST SUMMARY (Instalaciones) ========== */
.cost-summary {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 20px;
    color: var(--white);
}

.cost-summary h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.cost-row.total {
    font-weight: 700;
    font-size: 20px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.3);
    border-bottom: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .horario-grid {
        grid-template-columns: 1fr;
    }
}




/* ========== COLLECTIONS - Row Status Colors ========== */
.row-status-ok { background-color: #ffffff !important; }
.row-status-warning { background-color: #fff9e6 !important; }
.row-status-critical { background-color: #ffe6e6 !important; }
.row-status-danger { background-color: #ffcccc !important; }
.row-status-suspended { background-color: #f0f0f0 !important; }

/* ========== COLLECTIONS - Stat Card Variants ========== */
.stat-card.success { border-left: 4px solid #4CAF50; }
.stat-card.warning { border-left: 4px solid #FF9800; }
.stat-card.critical { border-left: 4px solid #FF5722; }
.stat-card.suspended { border-left: 4px solid #9E9E9E; }

/* ========== COLLECTIONS - Filters Row ========== */
.filters-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

/* ========== COLLECTIONS - Table ========== */
.collections-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.collections-table table {
    width: 100%;
    border-collapse: collapse;
}

.collections-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collections-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.collections-table tbody tr {
    transition: all 0.2s;
}

.collections-table tbody tr:hover {
    background-color: var(--gray-50) !important;
    transform: scale(1.01);
}

/* ========== COLLECTIONS - Action Buttons ========== */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn.whatsapp { border-color: #25D366; color: #25D366; }
.action-btn.whatsapp:hover { background: #25D366; color: var(--white); }

.action-btn.promise { border-color: #2196F3; color: #2196F3; }
.action-btn.promise:hover { background: #2196F3; color: var(--white); }

.action-btn.enable { border-color: #4CAF50; color: #4CAF50; }
.action-btn.enable:hover { background: #4CAF50; color: var(--white); }

.action-btn.suspend { border-color: #F44336; color: #F44336; }
.action-btn.suspend:hover { background: #F44336; color: var(--white); }

.action-btn.payment { border-color: #FF9800; color: #FF9800; }
.action-btn.payment:hover { background: #FF9800; color: var(--white); }

.action-btn.debt { border-color: #9C27B0; color: #9C27B0; }
.action-btn.debt:hover { background: #9C27B0; color: var(--white); }

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: 1fr;
    }
}





/* ========== IMAGE UPLOAD AREA ========== */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--gray-50);
    position: relative;
    min-height: 300px;
}

.image-upload-area:hover {
    border-color: var(--info);
    background: var(--info-light);
}

.image-upload-area.drag-over {
    border-color: var(--success);
    background: var(--success-light);
}

.image-preview {
    display: none;
    margin-top: 15px;
    max-width: 100%;
}

.image-preview.show {
    display: block;
}

.image-preview img {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.remove-image {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    z-index: 10;
    font-size: 18px;
}

.remove-image:hover {
    background: var(--danger-dark);
}

.upload-icon {
    font-size: 64px;
    color: var(--gray-500);
    margin-bottom: 15px;
}

.field-required {
    color: var(--danger);
    display: none;
}

.field-required.show {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}





/* ========== DEBT ADD - Two Column Layout ========== */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* ========== INSTALLMENT PREVIEW ========== */
.installment-preview {
    background: var(--gray-50);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: none;
}

.installment-preview.show {
    display: block;
}

.installment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border-left: 4px solid var(--info);
}

.installment-number {
    font-weight: 600;
    color: var(--primary);
    flex: 1;
}

.installment-due {
    font-size: 12px;
    color: var(--gray-600);
    margin-left: 10px;
}

.installment-amount {
    font-weight: 700;
    color: var(--info);
    font-size: 16px;
    margin-left: 15px;
}

.total-summary {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    border-radius: var(--radius-lg);
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
}

.customer-info {
    background: var(--info-light);
    padding: 15px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    display: none;
}

.customer-info.show {
    display: block;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: var(--gray-600);
    font-weight: 600;
}

.info-value {
    color: var(--primary);
    font-weight: 700;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
}

.preview-subtitle {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: -10px;
    margin-bottom: 15px;
    font-style: italic;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}






/* ========== PAYMENT DISTRIBUTION STYLES ========== */

.payment-distribution-section {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.payment-distribution-section:last-child {
    border-bottom: none;
}

.distribution-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.distribution-item {
    background: var(--gray-50);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.distribution-item:hover {
    border-color: var(--info);
    box-shadow: var(--shadow);
}

.distribution-item:last-child {
    margin-bottom: 0;
}

.info-box {
    background: var(--info-light);
    padding: 12px;
    border-radius: var(--radius);
    border-left: 4px solid var(--info);
    font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .distribution-item {
        padding: 12px;
    }
    
    .distribution-title {
        font-size: 14px;
    }
}

















/* ========================================================================
   TICKETS CREATE - VERSIÓN LIMPIA Y ELEGANTE
   ========================================================================
   INSTRUCCIONES:
   1. Abre: C:\xampp\htdocs\assets\css\3-components.css
   2. Ve al FINAL del archivo
   3. Copia y pega TODO este bloque
   ======================================================================== */

/* ========== DROPDOWN DE BÚSQUEDA ========== */
.customer-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.customer-result-item {
    padding: 15px 18px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background-color 0.15s;
    background: var(--white);
}

.customer-result-item:hover {
    background-color: var(--gray-50);
}

.customer-result-item:last-child {
    border-bottom: none;
}

.customer-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.customer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-600);
}

.customer-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-detail i {
    font-size: 12px;
    color: var(--gray-400);
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
}

/* Scrollbar limpio */
.customer-results::-webkit-scrollbar {
    width: 6px;
}

.customer-results::-webkit-scrollbar-track {
    background: var(--gray-50);
}

.customer-results::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.customer-results::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ========== CUSTOMER INFO (CLIENTE SELECCIONADO) ========== */
.customer-info {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    display: none;
}

.customer-info.show {
    display: block;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--info);
    font-size: 14px;
}

.info-value {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
}

/* ========== BOTÓN ICONO ========== */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
    .customer-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .customer-result-item {
        padding: 12px 15px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .info-value {
        text-align: left;
    }
}


















/* ========================================================================
   CUSTOMER VIEW - AGREGAR AL FINAL DE 3-components.css
   ========================================================================
   Componentes específicos para la vista de cliente
   IMPORTANTE: Usa nombres ÚNICOS para evitar conflictos
   ======================================================================== */

/* ========== INFO GRID (Customer View) ========== */
.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.customer-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customer-info-item.full-width {
    grid-column: 1 / -1;
}

.customer-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-info-label i {
    color: var(--info);
    font-size: 14px;
    width: 16px;
}

.customer-info-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* ========== STAT ITEMS (Customer View) ========== */
.customer-stat-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.customer-stat-item:last-child {
    border-bottom: none;
}

.customer-stat-label {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.customer-stat-value.text-success {
    color: var(--success);
}

.customer-stat-value.text-danger {
    color: var(--danger);
}

/* ========== CUSTOMER ACTIONS (Sidebar) ========== */
.customer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.customer-action-btn:hover {
    border-color: var(--info);
    background: var(--gray-50);
    transform: translateX(5px);
}

.customer-action-btn i {
    font-size: 18px;
    color: var(--info);
    width: 24px;
    text-align: center;
}

/* ========== INFO LIST (Customer View) ========== */
.customer-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.customer-info-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.customer-info-list-item > i {
    font-size: 16px;
    color: var(--info);
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.customer-info-list-label {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.customer-info-list-value {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .customer-info-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-info-item.full-width {
        grid-column: 1;
    }
    
    .customer-stat-value {
        font-size: 20px;
    }
    
    .customer-action-btn {
        padding: 12px;
    }
}






/* ========================================================================
   REPORTS - AGREGAR AL FINAL DE 3-components.css
   ========================================================================
   Sistema de reportes con tabs y filtros
   IMPORTANTE: Usa nombres ÚNICOS para evitar conflictos
   ======================================================================== */

/* ========== TABS ========== */
.report-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gray-200);
}

.report-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-tab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.report-tab.active {
    color: var(--info);
    border-bottom-color: var(--info);
    background: var(--info-light);
}

.report-tab i {
    font-size: 16px;
}

/* ========== QUICK FILTERS ========== */
.report-quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-quick-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-quick-btn:hover {
    border-color: var(--info);
    background: var(--gray-50);
}

.filter-quick-btn.active {
    background: var(--info);
    border-color: var(--info);
    color: var(--white);
}

/* ========== ADVANCED FILTERS ========== */
.report-advanced-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ========== METHOD LIST (Ingresos por método) ========== */
.report-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--gray-50);
    border-left: 4px solid var(--info);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.report-method-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.report-method-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.report-method-name i {
    font-size: 10px;
}

.report-method-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.report-method-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.report-method-percent {
    font-size: 14px;
    color: var(--gray-600);
}

.report-method-count {
    font-size: 12px;
    color: var(--gray-500);
    padding: 4px 10px;
    background: var(--white);
    border-radius: var(--radius);
}

/* ========== WEEKDAY LIST (Días que más se cobra) ========== */
.report-weekday-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-weekday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.report-weekday-item:first-child {
    background: var(--warning-light);
    border-color: var(--warning);
    border-left: 4px solid var(--warning);
}

.report-weekday-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.report-weekday-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* ========== TAB CONTENT ========== */
.report-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .report-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .report-tab {
        width: 100%;
        justify-content: center;
    }
    
    .report-quick-filters {
        flex-direction: column;
    }
    
    .filter-quick-btn {
        width: 100%;
        text-align: center;
    }
    
    .report-method-stats {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    .report-weekday-item {
        flex-direction: column;
        gap: 8px;
    }
}



















/* ========================================
   SUB-ACCOUNTS - COMPONENTES ESPECÍFICOS
   ======================================== */

/* Caja de código de empresa */
.sub-account-code-box {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.sub-account-code-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sub-account-code-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.sub-account-code-info {
    font-size: 12px;
    color: var(--gray-600);
}

/* Email preview */
.sub-account-email-preview {
    background: var(--info-light);
    border: 1px solid var(--info);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-700);
    display: none;
}

.sub-account-email-preview.show {
    display: block;
}

.sub-account-email-preview strong {
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* Información de áreas */
.sub-account-areas-info {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 12px;
}

.sub-account-areas-info strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.sub-account-areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Badges de áreas */
.sub-account-area-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid;
}

.sub-account-area-badge.area-atencion {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
}

.sub-account-area-badge.area-noc {
    background: #e3f2fd;
    border-color: #42a5f5;
    color: #1565c0;
}

.sub-account-area-badge.area-externa {
    background: #fff3e0;
    border-color: #ffb74d;
    color: #ef6c00;
}

.sub-account-area-badge.area-cobranza {
    background: #f3e5f5;
    border-color: #ba68c8;
    color: #7b1fa2;
}

.sub-account-area-badge.area-admin {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Form group full width (para textarea de notas) */
.form-group-full {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .sub-account-code-value {
        font-size: 22px;
    }
    
    .sub-account-areas-list {
        flex-direction: column;
    }
}























/* ========================================
   INFRASTRUCTURE - ZONES, TOWERS, BOXES
   ======================================== */

/* Grid de cards de infraestructura */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Card base de infraestructura */
.infrastructure-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.infrastructure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gray-800) 100%);
}

.infrastructure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Header del card */
.infrastructure-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.infrastructure-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

/* Descripción (solo zones) */
.infrastructure-card-description {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
    min-height: 40px;
}

/* Estadísticas (solo zones) */
.infrastructure-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.infrastructure-stat {
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: center;
}

.infrastructure-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.infrastructure-stat-label {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.infrastructure-stat-label i {
    font-size: 12px;
}

/* Información (towers y boxes) */
.infrastructure-card-info {
    margin: 15px 0;
}

.infrastructure-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.4;
}

.infrastructure-info-item i {
    color: var(--primary);
    width: 20px;
    flex-shrink: 0;
    font-size: 14px;
}

.infrastructure-info-item span {
    word-break: break-word;
}

/* Indicador de puertos (boxes) */
.infrastructure-ports {
    margin: 20px 0;
}

.infrastructure-ports-bar {
    width: 100%;
    height: 30px;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.infrastructure-ports-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32 0%, #4caf50 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 12px;
}

.infrastructure-ports-label {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
}

.infrastructure-ports-label strong {
    color: var(--primary);
}

/* Acciones del card */
.infrastructure-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* Variantes de card por tipo */
.infrastructure-card-tower::before {
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
}

.infrastructure-card-box::before {
    background: linear-gradient(90deg, #388e3c 0%, #66bb6a 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
    
    .infrastructure-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .infrastructure-card-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1400px) {
    .infrastructure-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}
























/* ========================================
   AUTHENTICATION - LOGIN & REGISTER
   ======================================== */

/* Body de autenticación */
.auth-body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

/* Container principal */
.auth-container {
    width: 100%;
    max-width: 450px;
}

/* Card principal */
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Branding */
.auth-brand {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: white !important;
}

.auth-brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.auth-brand-icon i {
    font-size: 40px;
    color: white !important;
}

.auth-brand h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    color: white !important;
}

.auth-brand p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: white !important;
}

/* Header del formulario */
.auth-header {
    text-align: center !important;
    padding: 30px 30px 20px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
    text-align: center !important;
}

.auth-header p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
    text-align: center !important;
}

/* Alertas */
.auth-card .alert {
    margin: 0 30px 20px;
    border-radius: var(--radius);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulario */
.auth-form {
    padding: 0 30px 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.auth-form label i {
    font-size: 14px;
    color: var(--primary);
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
    outline: none;
}

.auth-form .form-control::placeholder {
    color: var(--gray-400);
}

/* Hint de email */
.auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.4;
}

.auth-hint i {
    color: var(--primary);
}

/* Botón block */
.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Footer del card */
.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid var(--gray-100);
}

.auth-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: var(--gray-900);
    text-decoration: underline;
}

/* Copyright */
.auth-copyright {
    text-align: center;
    margin-top: 20px;
}

.auth-copyright p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Grid para form-group (register) */
.auth-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Required asterisk */
.auth-form .required {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        border-radius: var(--radius);
    }
    
    .auth-brand {
        padding: 30px 20px 20px;
    }
    
    .auth-brand-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-brand-icon i {
        font-size: 30px;
    }
    
    .auth-brand h1 {
        font-size: 26px;
    }
    
    .auth-header {
        padding: 20px 20px 15px;
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
    
    .auth-form {
        padding: 0 20px 20px;
    }
    
    .auth-card .alert {
        margin: 0 20px 15px;
    }
    
    .auth-footer {
        padding: 15px 20px 20px;
    }
    
    .auth-form .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Estados del input según tipo de usuario (login) */
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus {
    animation: pulseInput 0.5s ease;
}

@keyframes pulseInput {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

/* Mejora visual para selects */
.auth-form select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    appearance: none;
}

.auth-form select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}















/* ========================================
   IMPORT SYSTEM - CSV IMPORT
   ======================================== */

/* Instrucciones de importación */
.import-instructions {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.import-instructions h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-instructions ol {
    margin: 0 0 20px 25px;
    padding: 0;
}

.import-instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.import-download {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

/* Formato del CSV */
.import-format {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
}

.import-format h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-format code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--danger);
}

/* Formulario de importación */
.import-form {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 25px;
}

/* Estadísticas de importación */
.import-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.import-stat {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.import-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.import-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.import-stat-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.import-stat-success {
    border-color: #22c55e;
}

.import-stat-success .import-stat-value {
    color: #22c55e;
}

.import-stat-error {
    border-color: #ef4444;
}

.import-stat-error .import-stat-value {
    color: #ef4444;
}

/* Filas con error */
.import-row-error {
    background: #fef2f2 !important;
}

.import-row-error td {
    border-left: 3px solid #ef4444;
}

/* Errores inline */
.import-errors {
    margin-top: 8px;
}

.import-error-item {
    font-size: 12px;
    color: #ef4444;
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.import-error-item i {
    font-size: 11px;
}

/* Formulario de confirmación */
.import-confirm-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .import-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .import-stat {
        padding: 15px;
    }
    
    .import-stat-value {
        font-size: 28px;
    }
    
    .import-instructions {
        padding: 15px;
    }
}

/* Table container con scroll */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.table-container .table {
    margin: 0;
    min-width: 800px;
}

/* Centrar texto */
.text-center {
    text-align: center;
}





















/* ========================================
   IMPORT TABS SYSTEM
   ======================================== */

/* Container de tabs */
.import-tabs-container {
    margin-bottom: 25px;
}

/* Navigation de tabs */
.import-tabs {
    display: flex;
    gap: 5px;
    background: var(--gray-100);
    padding: 5px;
    border-radius: var(--radius);
    overflow-x: auto;
    scrollbar-width: thin;
}

.import-tabs::-webkit-scrollbar {
    height: 4px;
}

.import-tabs::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.import-tabs::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

/* Tab individual */
.import-tab {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.import-tab i {
    font-size: 16px;
}

.import-tab:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.import-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.import-tab.active i {
    color: var(--primary);
}

/* Content area */
.import-tabs-content {
    position: relative;
    min-height: 400px;
}

/* Tab panel */
.import-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.import-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder cuando no existe el archivo */
.import-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.import-placeholder-icon {
    width: 100px;
    height: 100px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.import-placeholder-icon i {
    font-size: 48px;
    color: var(--gray-400);
}

.import-placeholder h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0 0 10px 0;
}

.import-placeholder p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 10px 0;
}

.import-placeholder-file {
    margin-top: 20px;
}

.import-placeholder-file code {
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .import-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .import-tab {
        flex: 0 0 auto;
        min-width: 120px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .import-tab span {
        display: none;
    }
    
    .import-tab i {
        font-size: 18px;
    }
    
    .import-tab.active span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .import-tabs {
        padding: 3px;
        gap: 3px;
    }
    
    .import-tab {
        min-width: 60px;
        padding: 10px;
    }
}

















/* ============================================
   PLANTILLAS DE WHATSAPP - SETTINGS EMPRESA
   ============================================ */

/* Template Section */
.template-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.template-section:last-child {
    margin-bottom: 0;
}

/* Template Header */
.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.template-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Template Textarea */
.template-textarea {
    width: 100%;
    min-height: 250px;
    resize: vertical;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s ease;
}

.template-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Template Variables */
.template-variables {
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.template-variables strong {
    display: block;
    margin-bottom: 12px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.template-variables strong i {
    margin-right: 6px;
    color: #9ca3af;
}

.variables-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variable-btn {
    padding: 8px 14px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-family: 'Courier New', Monaco, monospace;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.variable-btn:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variable-btn:active {
    transform: translateY(0);
}

/* Form Grid para campos de empresa */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .template-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .template-textarea {
        min-height: 200px;
        font-size: 13px;
    }
    
    .variable-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .template-section {
        padding: 15px;
    }
    
    .template-variables {
        padding: 12px;
    }
    
    .variables-grid {
        gap: 6px;
    }
}

/* ========================================================================
   CUSTOMERS - VERSIÓN PROFESIONAL Y MINIMALISTA
   ========================================================================
   Colores sutiles, spacing mejorado, diseño limpio
   INSTRUCCIÓN: REEMPLAZAR el CSS anterior de customers
   ======================================================================== */

/* ========== PAGE HEADER CON ACTIONS ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.page-description {
    font-size: 14px;
    color: var(--gray-600);
    margin: 8px 0 0 0;
}

/* ========== CUSTOMERS TABLE CONTAINER ========== */
.customers-table-container {
    overflow-x: auto;
    margin: 0;
    border-radius: var(--radius);
}

.customers-table-container::-webkit-scrollbar {
    height: 8px;
}

.customers-table-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.customers-table-container::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.customers-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ========== CUSTOMERS TABLE - SPACING MEJORADO ========== */
.customers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.customers-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gray-800) 100%);
}

.customers-table th {
    color: var(--white);
    padding: 18px 15px; /* ✅ Más padding (antes: 15px 12px) */
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.customers-table td {
    padding: 18px 15px; /* ✅ Más padding (antes: 15px 12px) */
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    vertical-align: middle; /* ✅ Centrado vertical */
}

.customers-table tbody tr {
    transition: all 0.2s ease;
}

.customers-table tbody tr:hover {
    background-color: var(--gray-50);
}

.customers-table .actions-col {
    min-width: 320px; /* ✅ Más espacio para acciones */
}

/* ========== CUSTOMER CODE ========== */
.customer-code {
    font-family: 'Courier New', Monaco, monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    background: var(--gray-50);
    padding: 6px 10px; /* ✅ Más padding */
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}

/* ========== CUSTOMER NAME CELL ========== */
.customer-name-cell {
    display: flex;
    flex-direction: column;
    gap: 6px; /* ✅ Más gap (antes: 4px) */
}

.customer-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    line-height: 1.4;
}

.customer-phone {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-phone i {
    font-size: 11px;
    color: var(--gray-400);
}

/* ========== INSTALLATION TYPE - PROFESIONAL ========== */
.installation-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--gray-50); /* ✅ Fondo gris suave */
    border: 1px solid var(--gray-200); /* ✅ Border sutil */
}

.installation-type i {
    font-size: 13px;
    color: var(--gray-600); /* ✅ Icono gris */
}

/* Variantes sutiles por tipo */
.type-antenna {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.type-fiber {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.type-satellite {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

/* ========== PLAN CELL ========== */
.plan-cell {
    display: flex;
    flex-direction: column;
    gap: 6px; /* ✅ Más gap */
}

.plan-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.plan-speed {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-speed i {
    font-size: 11px;
    color: var(--gray-500); /* ✅ Más sutil */
}

/* ========== IP ADDRESS ========== */
.ip-address {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 13px;
    color: var(--gray-700);
    background: var(--gray-50);
    padding: 6px 10px; /* ✅ Más padding */
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}

/* ========== CUSTOMER ACTIONS GRID ========== */
.customer-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* ✅ Más gap (antes: 6px) */
}

/* ========== CUSTOMER ACTION BUTTONS - PROFESIONAL Y MINIMALISTA ========== */
.customer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px; /* ✅ Más padding horizontal */
    border: 1px solid var(--gray-300); /* ✅ Border más visible */
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700); /* ✅ Texto gris oscuro */
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.customer-action-btn:hover {
    background: var(--gray-50); /* ✅ Hover sutil */
    border-color: var(--gray-400);
    transform: translateY(-1px); /* ✅ Menos movimiento (antes: -2px) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* ✅ Sombra más sutil */
}

.customer-action-btn i {
    font-size: 13px;
    color: var(--gray-600); /* ✅ Icono gris */
}

/* Variantes SUTILES por tipo de acción */
.customer-action-btn.view {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.customer-action-btn.view:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.customer-action-btn.view:hover i {
    color: var(--primary);
}

.customer-action-btn.whatsapp {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.customer-action-btn.whatsapp:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

.customer-action-btn.whatsapp:hover i {
    color: #25D366; /* ✅ Verde WhatsApp solo en hover */
}

.customer-action-btn.call {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.customer-action-btn.call:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

.customer-action-btn.call:hover i {
    color: var(--gray-800);
}

.customer-action-btn.ping {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.customer-action-btn.ping:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

.customer-action-btn.ping:hover i {
    color: var(--gray-800);
}

.customer-action-btn.stats {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.customer-action-btn.stats:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

.customer-action-btn.stats:hover i {
    color: var(--gray-800);
}

/* ========== TEXT UTILITIES ========== */
.text-muted {
    color: var(--gray-500);
    font-size: 13px;
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
    /* Page header stack */
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .page-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    /* Tabla responsive con data-labels */
    .customers-table {
        min-width: 100%;
    }
    
    .customers-table thead {
        display: none;
    }
    
    .customers-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        padding: 18px; /* ✅ Más padding */
        background: var(--white);
    }
    
    .customers-table tbody tr:hover {
        box-shadow: var(--shadow-md);
    }
    
    .customers-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0; /* ✅ Más padding vertical */
        border-bottom: 1px solid var(--gray-100);
        text-align: right;
    }
    
    .customers-table td:last-child {
        border-bottom: none;
    }
    
    .customers-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-700);
        text-align: left;
        flex: 1;
    }
    
    .customers-table td[data-label="Acciones"] {
        flex-direction: column;
        align-items: stretch;
    }
    
    .customers-table td[data-label="Acciones"]::before {
        margin-bottom: 12px; /* ✅ Más espacio */
    }
    
    /* Customer name cell en mobile */
    .customer-name-cell {
        flex: 1;
        text-align: right;
    }
    
    /* Plan cell en mobile */
    .plan-cell {
        flex: 1;
        align-items: flex-end;
    }
    
    /* Actions grid en mobile */
    .customer-actions-grid {
        width: 100%;
        flex-direction: column;
        gap: 10px; /* ✅ Más gap en móvil */
    }
    
    .customer-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 14px; /* ✅ Más padding en móvil */
    }
}

@media (max-width: 480px) {
    .customer-action-btn span {
        display: inline;
    }
    
    .customers-table td {
        font-size: 13px;
    }
    
    .customers-table tbody tr {
        padding: 15px;
    }
}




























/* =====================================================
   CUSTOMERS - ACCORDION RESPONSIVE
   ===================================================== */

/* Desktop: Tabla normal (sin accordion) */
@media (min-width: 769px) {
    .customer-row-header {
        display: none !important;
    }
    
    .customer-row-content {
        display: table-cell !important;
    }
}

/* Mobile: Accordion */
@media (max-width: 768px) {
    .customers-table-container {
        overflow-x: visible;
        border-radius: 8px;
    }
    
    .customers-table {
        display: block;
        border: none;
    }
    
    .customers-table thead {
        display: none;
    }
    
    .customers-table tbody {
        display: block;
    }
    
    /* Cada fila es un card con accordion */
    .customers-table tbody tr.customer-row {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        background: var(--white);
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    /* Header del accordion (siempre visible) */
    .customer-row-header {
        display: table-cell !important;
        padding: 0 !important;
        border: none !important;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .customer-row-header-content {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: var(--gray-50);
        transition: background 0.2s ease;
    }
    
    .customer-row-header:active .customer-row-header-content {
        background: var(--gray-100);
    }
    
    /* Icono toggle */
    .toggle-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray-600);
        transition: transform 0.3s ease;
    }
    
    .toggle-icon i {
        font-size: 14px;
    }
    
    /* Info en header */
    .customer-row-header-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .customer-code-mobile {
        font-size: 13px;
        font-weight: 600;
        color: var(--gray-800);
        font-family: 'Courier New', monospace;
    }
    
    .customer-name-mobile {
        font-size: 14px;
        color: var(--gray-700);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Badge en header */
    .badge-mobile {
        flex-shrink: 0;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Contenido del accordion (colapsable) */
    .customer-row-content {
        display: block !important;
        padding: 12px 16px !important;
        border: none !important;
        border-top: 1px solid var(--gray-200) !important;
        background: var(--white);
    }
    
    .customer-row-content::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--gray-600);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Estado colapsado (por defecto) */
    .customer-row.collapsed .customer-row-content {
        display: none !important;
    }
    
    .customer-row.collapsed .toggle-icon {
        transform: rotate(0deg);
    }
    
    /* Estado expandido */
    .customer-row:not(.collapsed) .toggle-icon {
        transform: rotate(180deg);
    }
    
    /* Ajustes para elementos dentro de las celdas */
    .customer-row-content .customer-name-cell,
    .customer-row-content .plan-cell {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .customer-row-content .customer-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 4px;
    }
    
    .customer-row-content .customer-action-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .customer-row-content .customer-action-btn span {
        display: inline;
    }
    
    /* Animación suave */
    .customer-row {
        transition: box-shadow 0.2s ease;
    }
    
    .customer-row:not(.collapsed) {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Ocultar elementos no necesarios en móvil */
    .customer-row-content .customer-code {
        display: none;
    }
}

/* Tablet: Mantener diseño móvil */
@media (min-width: 481px) and (max-width: 768px) {
    .customer-row-header-content {
        padding: 16px 18px;
    }
    
    .customer-row-content {
        padding: 14px 18px !important;
    }
    
    .customer-row-content .customer-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}




















/**
 * SERVANA - Sync MikroTik Components
 * Estilos específicos para la página de sincronización
 * INSTRUCCIONES: Agregar al FINAL de 3-components.css
 */

/* ========================================
   SYNC MIKROTIK - ROUTER SECTIONS
   ======================================== */

/* Router Section Container */
.sync-router-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    overflow: hidden;
}

/* Router Header con gradiente púrpura */
.sync-router-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Router Info */
.sync-router-info {
    flex: 1;
    min-width: 0;
}

.sync-router-name {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.sync-router-ip {
    font-size: 13px;
    opacity: 0.9;
}

/* Router Actions */
.sync-router-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sync-router-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   SYNC STATUS BADGES
   ======================================== */

.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sync-status-synced {
    background: var(--success-light);
    color: #155724;
}

.sync-status-pending {
    background: var(--warning-light);
    color: #856404;
}

/* ========================================
   SYNC IP ADDRESS
   ======================================== */

.sync-ip-address {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 13px;
    color: var(--gray-700);
    background: var(--gray-50);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ========================================
   SYNC STAT CARDS - COLOR VARIANTS
   ======================================== */

.stat-sync-total {
    border-left: 4px solid #3b82f6;
}

.stat-sync-ready {
    border-left: 4px solid #10b981;
}

.stat-sync-synced {
    border-left: 4px solid #22c55e;
}

.stat-sync-pending {
    border-left: 4px solid #f39c12;
}

/* ========================================
   SYNC PROGRESS OVERLAY
   ======================================== */

.sync-progress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.sync-progress-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.sync-progress-content h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--primary);
}

.sync-progress-content p {
    margin: 0 0 20px 0;
    color: var(--gray-600);
    font-size: 14px;
}

.sync-progress-bar {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 5px;
    overflow: hidden;
}

.sync-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    width: 0%;
    transition: width 0.3s ease;
}

.sync-progress-details {
    margin-top: 15px;
    font-size: 12px;
    color: var(--gray-600);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .sync-router-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .sync-router-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .sync-progress-content {
        width: 95%;
        padding: 20px;
    }
}









/* =====================================================
   PAYMENT PROMISES - Clases específicas
   Agregar al final de 3-components.css SI NO EXISTEN
   ===================================================== */

/* Customer Info (tabla de promesas) */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.customer-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.customer-meta i {
    font-size: 11px;
}

.customer-meta .separator {
    margin: 0 4px;
    color: var(--border-color);
}

/* Text Utilities (si no existen) */
.text-monospace {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.text-bold {
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-warning {
    color: #f57c00;
}

.text-danger {
    color: #d32f2f;
}

.text-success {
    color: #388e3c;
}

.text-info {
    color: #1976d2;
}

/* Empty State (tabla sin datos) */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Form Row (si no existe) */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.form-row .form-group label {
    display: block;
    margin-bottom: 6px;
}

/* Stat Card con Iconos (mejorado) */
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card .stat-details {
    flex: 1;
}

/* Responsive para Form Row */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}

/* =====================================================
   VERIFICAR QUE EXISTAN ESTAS CLASES BASE
   ===================================================== */

/*
CLASES QUE DEBEN EXISTIR EN 3-components.css:

✅ .page-header
✅ .page-title
✅ .page-subtitle
✅ .page-actions
✅ .stats-grid
✅ .stat-card
✅ .stat-value
✅ .stat-label
✅ .card
✅ .card-body
✅ .table-container
✅ .table
✅ .form-group
✅ .form-control
✅ .btn
✅ .btn-primary
✅ .btn-secondary
✅ .btn-success
✅ .btn-sm
✅ .badge
✅ .badge-success
✅ .badge-danger
✅ .badge-warning
✅ .badge-info
✅ .badge-secondary
✅ .alert
✅ .alert-success
✅ .alert-danger

Si alguna NO existe, agregarla desde el sistema base de SERVANA.
*/

















