/* ============================================================
   NIMBUS MODERN CSS - Sistema de Estilos Unificado
   ============================================================
   Este archivo contiene todos los estilos modernos compartidos
   entre las vistas del proyecto Nimbus Web.
   
   Última actualización: 2025
   ============================================================ */

/* ========== VARIABLES CSS ========== */
:root {
    /* Colores principales */
    --nimbus-primary: #667eea;
    --nimbus-primary-dark: #764ba2;
    --nimbus-primary-rgb: 102, 126, 234;
    --nimbus-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Colores de estado */
    --nimbus-success: #28a745;
    --nimbus-success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --nimbus-warning: #ffc107;
    --nimbus-danger: #dc3545;
    --nimbus-danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --nimbus-info: #17a2b8;
    
    /* Grises */
    --nimbus-gray-100: #f8f9fa;
    --nimbus-gray-200: #e9ecef;
    --nimbus-gray-300: #dee2e6;
    --nimbus-gray-400: #ced4da;
    --nimbus-gray-500: #adb5bd;
    --nimbus-gray-600: #6c757d;
    --nimbus-gray-700: #495057;
    --nimbus-gray-800: #343a40;
    --nimbus-gray-900: #212529;
    
    /* Gradientes para fondos */
    --nimbus-gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* Bordes y sombras */
    --nimbus-border-color: #e0e0e0;
    --nimbus-border-radius: 12px;
    --nimbus-border-radius-sm: 8px;
    --nimbus-border-radius-lg: 16px;
    --nimbus-border-radius-pill: 20px;
    
    --nimbus-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --nimbus-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --nimbus-shadow-lg: 0 4px 15px rgba(102, 126, 234, 0.3);
    --nimbus-shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Transiciones */
    --nimbus-transition: all 0.3s ease;
    --nimbus-transition-fast: all 0.2s ease;
}

/* ========== BASE PAGE CONTAINER ========== */
.nimbus-page {
    min-height: calc(100vh - 200px);
    padding-bottom: 40px;
}

/* ========== PAGE HEADER ========== */
.nimbus-page .page-header,
.nimbus-header {
    background: var(--nimbus-gradient);
    border-radius: var(--nimbus-border-radius);
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: var(--nimbus-shadow-lg);
    color: white;
}

.nimbus-page .page-header h3,
.nimbus-header h3 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.nimbus-page .page-header .subtitle,
.nimbus-header .subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.nimbus-page .page-header .btn-outline-light,
.nimbus-header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.nimbus-page .page-header .btn-outline-light:hover,
.nimbus-header .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón principal en header (blanco) */
.nimbus-page .btn-header-primary {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--nimbus-border-radius-sm);
    background: white;
    color: var(--nimbus-primary);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--nimbus-transition);
}

.nimbus-page .btn-header-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--nimbus-gray-100);
    color: #5a67d8;
}

/* Botón success en header */
.nimbus-page .btn-header-success {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--nimbus-border-radius-sm);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: var(--nimbus-transition);
}

.nimbus-page .btn-header-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Preview folio badge en header */
.nimbus-page .preview-folio,
.nimbus-page .folio-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--nimbus-border-radius-sm);
    font-weight: bold;
    color: white;
    display: inline-block;
}

.nimbus-page .folio-grande {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
}

/* ========== FILTROS CARD ========== */
.nimbus-page .filtros-card {
    background: #ffffff;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--nimbus-shadow);
    border: none;
}

.nimbus-page .filtros-card label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--nimbus-gray-700);
    margin-bottom: 5px;
}

.nimbus-page .filtros-card .form-control {
    border-radius: var(--nimbus-border-radius-sm);
    border: 1px solid var(--nimbus-border-color);
    transition: var(--nimbus-transition);
}

.nimbus-page .filtros-card .form-control:focus {
    border-color: var(--nimbus-primary);
    box-shadow: 0 0 0 3px rgba(var(--nimbus-primary-rgb), 0.1);
}

.nimbus-page .filtros-card .btn {
    border-radius: var(--nimbus-border-radius-sm);
    padding: 10px 20px;
    font-weight: 500;
}

.nimbus-page .filtros-card .input-group-text {
    border-radius: 0 var(--nimbus-border-radius-sm) var(--nimbus-border-radius-sm) 0;
    border: 1px solid var(--nimbus-border-color);
    border-left: none;
    background: var(--nimbus-gray-100);
}

/* ========== TABLA CARD ========== */
.nimbus-page .tabla-card {
    background: #ffffff;
    border-radius: var(--nimbus-border-radius);
    box-shadow: var(--nimbus-shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.nimbus-page .tabla-card-header {
    background: var(--nimbus-gradient-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--nimbus-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nimbus-page .tabla-card-header h5 {
    margin: 0;
    font-size: 1em;
    color: var(--nimbus-gray-700);
    font-weight: 600;
}

.nimbus-page .tabla-card-header i {
    color: var(--nimbus-primary);
    margin-right: 8px;
}

.nimbus-page .tabla-card-body {
    padding: 0;
}

/* ========== TABLAS ========== */
.nimbus-page .nimbus-table {
    margin-bottom: 0;
    font-size: 14px;
}

.nimbus-page .nimbus-table th {
    background: var(--nimbus-gradient-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nimbus-gray-700);
    border-top: none;
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nimbus-page .nimbus-table td {
    vertical-align: middle;
    padding: 12px 15px;
    font-size: 14px;
}

/* UUIDs y RFCs más legibles */
.nimbus-page .nimbus-table .uuid-text {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.nimbus-page .nimbus-table td[style*="font-weight: bold"] {
    font-size: 14px;
}

.nimbus-page .nimbus-table tbody tr {
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .nimbus-table tbody tr:hover {
    background-color: var(--nimbus-gray-100);
}

/* Tabla en modal (más compacta) */
.nimbus-page .table-modal {
    margin-bottom: 0;
    font-size: 13px;
}

.nimbus-page .table-modal th {
    background: var(--nimbus-gradient-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nimbus-gray-700);
    border-top: none;
    padding: 12px 15px;
}

.nimbus-page .table-modal td {
    vertical-align: middle;
    padding: 12px 15px;
}

/* ========== RESUMEN CARDS (para dashboards) ========== */
.nimbus-page .resumen-section {
    margin-bottom: 25px;
}

.nimbus-page .resumen-card {
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: var(--nimbus-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nimbus-page .resumen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nimbus-page .resumen-card h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.nimbus-page .resumen-card p {
    margin: 8px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== SECTION CARDS (para formularios) ========== */
.nimbus-page .section-card {
    background: #ffffff;
    border-radius: var(--nimbus-border-radius);
    box-shadow: var(--nimbus-shadow);
    margin-bottom: 20px;
    border: none;
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.nimbus-page .section-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Mantener overflow hidden solo en el header para bordes redondeados */
.nimbus-page .section-card-header {
    background: var(--nimbus-gradient-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--nimbus-gray-200);
    cursor: pointer;
    transition: var(--nimbus-transition-fast);
    border-radius: var(--nimbus-border-radius) var(--nimbus-border-radius) 0 0;
}

.nimbus-page .section-card-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.nimbus-page .section-card-header h5 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--nimbus-gray-700);
}

.nimbus-page .section-card-header i {
    color: var(--nimbus-primary);
    margin-right: 10px;
}

.nimbus-page .section-card-body {
    padding: 20px;
}

/* ========== SECTION HEADERS (dentro de modales/formularios) ========== */
.nimbus-page .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--nimbus-gray-200);
}

.nimbus-page .section-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--nimbus-gray-700);
}

.nimbus-page .section-header i {
    color: var(--nimbus-primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ========== BADGES DE ESTATUS ========== */
.nimbus-page .badge-pendiente {
    background-color: var(--nimbus-warning);
    color: var(--nimbus-gray-900);
    padding: 6px 12px;
    border-radius: var(--nimbus-border-radius-pill);
    font-size: 0.85em;
    font-weight: 500;
}

.nimbus-page .badge-parcial {
    background-color: var(--nimbus-info);
    color: white;
    padding: 6px 12px;
    border-radius: var(--nimbus-border-radius-pill);
    font-size: 0.85em;
    font-weight: 500;
}

.nimbus-page .badge-pagado,
.nimbus-page .badge-completado {
    background-color: var(--nimbus-success);
    color: white;
    padding: 6px 12px;
    border-radius: var(--nimbus-border-radius-pill);
    font-size: 0.85em;
    font-weight: 500;
}

.nimbus-page .badge-cancelado {
    background-color: var(--nimbus-danger);
    color: white;
    padding: 6px 12px;
    border-radius: var(--nimbus-border-radius-pill);
    font-size: 0.85em;
    font-weight: 500;
}

.nimbus-page .estatus-badge,
.nimbus-page .estatus-badge-lg {
    padding: 6px 14px;
    border-radius: var(--nimbus-border-radius-sm);
    font-weight: 600;
    font-size: 0.85em;
}

.nimbus-page .estatus-badge-lg {
    padding: 8px 20px;
    font-size: 1em;
    display: inline-block;
    margin-top: 8px;
}

/* ========== DROPDOWN DE ACCIONES ========== */
.nimbus-page .dropdown-menu {
    min-width: 160px;
    border-radius: var(--nimbus-border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px 0;
}

.nimbus-page .dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .dropdown-item:hover {
    background-color: var(--nimbus-gray-100);
}

.nimbus-page .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.nimbus-page .dropdown-divider {
    margin: 5px 0;
}

/* ========== EMPTY STATE ========== */
.nimbus-page .empty-state {
    padding: 60px 20px;
    text-align: center;
}

.nimbus-page .empty-state i {
    font-size: 4em;
    color: var(--nimbus-gray-300);
    margin-bottom: 20px;
}

.nimbus-page .empty-state p {
    color: var(--nimbus-gray-600);
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* ========== MODAL MODERNIZADO ========== */
.nimbus-page .modal-content {
    border-radius: var(--nimbus-border-radius);
    overflow: hidden;
    border: none;
    box-shadow: var(--nimbus-shadow-xl);
}

.nimbus-page .modal-header {
    background: var(--nimbus-gradient);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.nimbus-page .modal-header .modal-title {
    font-weight: 600;
    color: white;
}

.nimbus-page .modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.nimbus-page .modal-header .close:hover {
    opacity: 1;
}

.nimbus-page .modal-body {
    padding: 25px;
}

.nimbus-page .modal-footer {
    border-top: 1px solid var(--nimbus-gray-200);
    padding: 15px 25px 20px;
    background: var(--nimbus-gray-100);
}

.nimbus-page .modal-footer .btn {
    border-radius: var(--nimbus-border-radius-sm);
    padding: 10px 20px;
    font-weight: 500;
}

/* ========== FORM STYLES ========== */
.nimbus-page .form-group {
    margin-bottom: 1.25rem;
}

.nimbus-page .modal-body label,
.nimbus-page .section-card-body label {
    font-weight: 600;
    color: var(--nimbus-gray-700);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nimbus-page .modal-body .form-control,
.nimbus-page .section-card-body .form-control {
    border-radius: var(--nimbus-border-radius-sm);
    border: 1px solid var(--nimbus-border-color);
    padding: 10px 15px;
    transition: var(--nimbus-transition);
    height: auto;
}

.nimbus-page .modal-body .form-control:focus,
.nimbus-page .section-card-body .form-control:focus {
    border-color: var(--nimbus-primary);
    box-shadow: 0 0 0 3px rgba(var(--nimbus-primary-rgb), 0.1);
}

.nimbus-page .modal-body select.form-control,
.nimbus-page .section-card-body select.form-control {
    padding-right: 35px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* ========== TABS MODERNIZADOS ========== */
.nimbus-page .nav-tabs {
    border-bottom: 2px solid var(--nimbus-gray-200);
    padding: 0 20px;
    background: var(--nimbus-gray-100);
}

.nimbus-page .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--nimbus-gray-600);
    font-weight: 500;
    padding: 15px 20px;
    margin-bottom: -2px;
    transition: var(--nimbus-transition);
}

.nimbus-page .nav-tabs .nav-link:hover {
    color: var(--nimbus-primary);
    border-color: transparent;
}

.nimbus-page .nav-tabs .nav-link.active {
    color: var(--nimbus-primary);
    background: transparent;
    border-bottom-color: var(--nimbus-primary);
}

.nimbus-page .tab-content {
    padding: 25px;
    min-height: 400px;
}

/* ========== BOTONES DE ACCIÓN ========== */
.nimbus-page .btn-action {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .btn-action:hover {
    transform: translateY(-1px);
}

.nimbus-page .btn-guardar,
.nimbus-page .btn-primary-gradient {
    background: var(--nimbus-gradient);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--nimbus-border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--nimbus-transition);
}

.nimbus-page .btn-guardar:hover:not(:disabled),
.nimbus-page .btn-primary-gradient:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--nimbus-primary-rgb), 0.4);
    color: white;
}

.nimbus-page .btn-guardar:disabled,
.nimbus-page .btn-primary-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== TOTAL BOX ========== */
.nimbus-page .total-box {
    background: var(--nimbus-gradient);
    color: white;
    padding: 15px 20px;
    border-radius: var(--nimbus-border-radius-sm);
    font-size: 1.2em;
    font-weight: 600;
    text-align: right;
}

/* ========== SALDO CARD ========== */
.nimbus-page .saldo-card {
    background: var(--nimbus-success-gradient);
    color: white;
    border-radius: var(--nimbus-border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.nimbus-page .saldo-card.sin-saldo {
    background: var(--nimbus-danger-gradient);
}

.nimbus-page .saldo-card .saldo-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.nimbus-page .saldo-card .saldo-valor {
    font-size: 2rem;
    font-weight: 700;
}

.nimbus-page .saldo-card .saldo-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* ========== ALERT SIN SALDO ========== */
.nimbus-page .alert-sin-saldo {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    border-radius: var(--nimbus-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.nimbus-page .alert-sin-saldo .alert-icon {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.nimbus-page .alert-sin-saldo h5 {
    color: #c53030;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.nimbus-page .alert-sin-saldo p {
    color: #742a2a;
    margin-bottom: 1rem;
}

.nimbus-page .alert-sin-saldo .btn-recargar {
    background: var(--nimbus-gradient);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--nimbus-border-radius-sm);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--nimbus-transition);
}

.nimbus-page .alert-sin-saldo .btn-recargar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--nimbus-primary-rgb), 0.4);
    color: white;
    text-decoration: none;
}

/* ========== DROPZONE ========== */
.nimbus-page .dropzone {
    border: 2px dashed #cbd5e0;
    border-radius: var(--nimbus-border-radius);
    padding: 2rem;
    background: #f7fafc;
    transition: var(--nimbus-transition);
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nimbus-page .dropzone:hover {
    border-color: var(--nimbus-primary);
    background: #f0f4ff;
}

.nimbus-page .dropzone.dragover {
    border-color: var(--nimbus-primary);
    background: #e8edff;
    transform: scale(1.02);
}

.nimbus-page .dropzone.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.nimbus-page .dropzone .drop-icon {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.nimbus-page .dropzone:hover .drop-icon {
    color: var(--nimbus-primary);
}

.nimbus-page .dropzone p {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.nimbus-page .dropzone small {
    color: #a0aec0;
}

.nimbus-page .dropzone .badge-file {
    background: var(--nimbus-gradient);
    color: white;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--nimbus-border-radius-pill);
}

/* ========== LIST GROUP PARA DATOS ========== */
.nimbus-page .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 12px 15px;
}

.nimbus-page .list-group-item:first-child {
    border-top: none;
    border-radius: var(--nimbus-border-radius-sm) var(--nimbus-border-radius-sm) 0 0;
}

.nimbus-page .list-group-item:last-child {
    border-radius: 0 0 var(--nimbus-border-radius-sm) var(--nimbus-border-radius-sm);
}

/* ========== EMAIL CHIPS ========== */
.nimbus-page .email-chip {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    max-width: 100%;
    word-break: break-all;
    margin: 4px;
}

.nimbus-page .email-chip-delete {
    margin-left: 6px;
    width: 18px;
    height: 18px;
    background-color: var(--nimbus-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .email-chip-delete:hover {
    background-color: var(--nimbus-danger);
}

/* ========== INFO BAR ========== */
.nimbus-page .info-bar {
    background: #ffffff;
    border-radius: var(--nimbus-border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: var(--nimbus-shadow);
    border-left: 4px solid var(--nimbus-primary);
}

.nimbus-page .info-bar small {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7em;
}

/* ========== DIRTY INDICATOR ========== */
.nimbus-page .dirty-indicator {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
}

/* ========== LOADING / OVERLAY ========== */
.nimbus-page .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.nimbus-page .loading-container {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.nimbus-page .loading-container .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
}

.nimbus-page .spinner-container {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    color: var(--nimbus-primary);
}

.nimbus-page .spinner-container span {
    margin-left: 0.5rem;
    font-weight: 500;
}

/* ========== ALERTS PERSONALIZADOS ========== */
.nimbus-page .alert {
    border-radius: var(--nimbus-border-radius-sm);
    border: none;
}

/* ========== TEXT HELPERS ========== */
.nimbus-page .text-truncate-150 {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nimbus-page .text-truncate-200 {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nimbus-page .text-truncate-250 {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.whatsapp-icon {
    line-height: 1;
}

/* ========== OPENPAY ========== */
.openpay-logo {
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ========== DATEPICKER ========== */
.datepicker-dropdown {
    z-index: 1051 !important;
}

/* ========== BOOTCOMPLETE AUTOCOMPLETE ========== */
.bootcomplete-list {
    z-index: 1060 !important;
    position: absolute !important;
    background: #ffffff;
    border: none;
    border-radius: var(--nimbus-border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
}

.bootcomplete-list .list-group-item {
    border: none;
    border-bottom: 1px solid var(--nimbus-gray-200);
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--nimbus-transition-fast);
}

.bootcomplete-list .list-group-item:last-child {
    border-bottom: none;
}

.bootcomplete-list .list-group-item:hover,
.bootcomplete-list .list-group-item.active {
    background-color: var(--nimbus-gray-100);
    color: var(--nimbus-primary);
}

/* ========== CARD GENÉRICA ========== */
.nimbus-page .card {
    border: none;
    border-radius: var(--nimbus-border-radius);
    box-shadow: var(--nimbus-shadow);
    transition: var(--nimbus-transition);
}

.nimbus-page .card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nimbus-page .card-header {
    background: var(--nimbus-gray-100);
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: var(--nimbus-border-radius) var(--nimbus-border-radius) 0 0 !important;
}

.nimbus-page .card-header i {
    margin-right: 0.5rem;
    color: var(--nimbus-primary);
}

/* ========== STICKY SIDEBAR (Panel lateral fijo) ========== */
.nimbus-page .sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 100;
}

@media (max-width: 991.98px) {
    .nimbus-page .sticky-sidebar {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
}

/* ========== CLASES ESPECÍFICAS DE VISTAS ========== */

/* Alert seleccionar empresa (Clientes) */
.nimbus-page .alert-seleccionar {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: var(--nimbus-border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 25px;
}

.nimbus-page .alert-seleccionar i {
    font-size: 3em;
    color: #ffc107;
    margin-bottom: 15px;
}

.nimbus-page .alert-seleccionar h5 {
    color: #856404;
    font-weight: 600;
    margin-bottom: 10px;
}

.nimbus-page .alert-seleccionar p {
    color: #856404;
    margin: 0;
}

/* Botón MercadoLibre (Empresa) */
.nimbus-page .btn-ml-autorizar {
    background: linear-gradient(135deg, #ffe600 0%, #f5d000 100%);
    border: none;
    color: #333;
    font-weight: 600;
    transition: var(--nimbus-transition);
}

.nimbus-page .btn-ml-autorizar:hover:not(:disabled) {
    background: linear-gradient(135deg, #f5d000 0%, #e6c200 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.4);
    color: #333;
}

.nimbus-page .btn-ml-autorizar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Text truncate 180 (Venta) */
.nimbus-page .text-truncate-180 {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* UUID Container (Venta) */
.nimbus-page .uuid-container {
    max-width: 260px;
    overflow: hidden;
}

.nimbus-page .uuid-text {
    font-size: 0.75em;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--nimbus-gray-600);
    cursor: pointer;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .uuid-text:hover {
    color: var(--nimbus-primary);
}

/* Pagination Card (Venta) */
.nimbus-page .pagination-card {
    background: #ffffff;
    border-radius: var(--nimbus-border-radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: var(--nimbus-shadow);
}

.nimbus-page .pagination-card .pagination {
    margin: 0;
}

.nimbus-page .pagination-card .page-link {
    border-radius: var(--nimbus-border-radius-sm);
    margin: 0 2px;
    border: 1px solid var(--nimbus-gray-300);
    color: var(--nimbus-gray-700);
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .pagination-card .page-link:hover {
    background-color: var(--nimbus-primary);
    border-color: var(--nimbus-primary);
    color: white;
}

.nimbus-page .pagination-card .page-item.active .page-link {
    background-color: var(--nimbus-primary);
    border-color: var(--nimbus-primary);
}

/* Footer Spacer */
.nimbus-page .footer-spacer {
    height: 40px;
}

/* Input Group Cliente (Venta Nueva) */
.nimbus-page .input-group-cliente {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.nimbus-page .input-group-cliente .form-group {
    flex: 1;
    margin-bottom: 0;
}

.nimbus-page .btn-nuevo-cliente {
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Email Chips Container */
.nimbus-page .email-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--nimbus-border-color);
    border-radius: var(--nimbus-border-radius-sm);
    background: white;
    min-height: 42px;
    align-items: center;
}

.nimbus-page .email-chips-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 150px;
    padding: 4px 8px;
    font-size: 0.9em;
}

.nimbus-page .email-chips-input:focus {
    outline: none;
}

.nimbus-page .email-add-btn {
    padding: 4px 10px;
}

/* Required Field Label */
.nimbus-page .required-field::after {
    content: " *";
    color: var(--nimbus-danger);
}

/* Concepto Form */
.nimbus-page .concepto-form {
    background: var(--nimbus-gray-100);
    border-radius: var(--nimbus-border-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px dashed var(--nimbus-gray-300);
}

/* Conceptos Table */
.nimbus-page .conceptos-table {
    margin-top: 20px;
    font-size: 13px;
}

.nimbus-page .conceptos-table th {
    background: var(--nimbus-gradient-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nimbus-gray-700);
    border-top: none;
    padding: 10px 12px;
}

.nimbus-page .conceptos-table td {
    vertical-align: middle;
    padding: 10px 12px;
}

/* Totales Card */
.nimbus-page .totales-card {
    background: var(--nimbus-gradient-light);
    border-radius: var(--nimbus-border-radius-sm);
    padding: 20px;
    border: 1px solid var(--nimbus-gray-200);
}

/* Totales Table */
.nimbus-page .totales-table {
    font-size: 0.95em;
}

.nimbus-page .totales-table td {
    padding: 8px 12px;
    border: none;
}

.nimbus-page .totales-table .total-row {
    background: var(--nimbus-gradient);
    color: white;
    font-size: 1.2em;
    font-weight: 700;
}

.nimbus-page .totales-table .total-row td {
    border-radius: var(--nimbus-border-radius-sm);
}

/* Actions Card */
.nimbus-page .actions-card {
    background: #ffffff;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--nimbus-shadow);
    border-top: 3px solid var(--nimbus-primary);
}

/* CFDI Info Card (Venta Editar/Detalle) */
.nimbus-page .cfdi-info {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.nimbus-page .cfdi-info h5 {
    color: #155724;
    margin-bottom: 8px;
}

.nimbus-page .cfdi-info p {
    color: #155724;
    margin: 0;
}

.nimbus-page .cfdi-info code {
    background-color: rgba(21, 87, 36, 0.1);
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* CFDI Card (Venta Detalle) */
.nimbus-page .cfdi-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
}

.nimbus-page .cfdi-card.factura-cancelada {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.15);
}

.nimbus-page .cfdi-card.venta-cancelada {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.15);
}

.nimbus-page .uuid-display {
    font-family: 'Consolas', monospace;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: var(--nimbus-border-radius-sm);
    font-size: 0.9em;
    word-break: break-all;
}

/* Cotización Origen Card */
.nimbus-page .cotizacion-origen {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(21, 101, 192, 0.15);
}

/* Dato Label/Valor (para mostrar información) */
.nimbus-page .dato-label {
    font-size: 0.8em;
    color: var(--nimbus-gray-600);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nimbus-page .dato-valor {
    font-weight: 600;
    font-size: 1em;
    color: var(--nimbus-gray-900);
}

/* Acciones Card (Detalle) */
.nimbus-page .acciones-card {
    background: #ffffff;
    border: none;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    box-shadow: var(--nimbus-shadow);
}

.nimbus-page .acciones-card h5 {
    margin-bottom: 15px;
    color: var(--nimbus-gray-700);
}

.nimbus-page .btn-accion-grande {
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: var(--nimbus-border-radius-sm);
    font-weight: 500;
    transition: var(--nimbus-transition);
}

.nimbus-page .btn-accion-grande:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nimbus-page .btn-accion-grande:disabled {
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Info Lateral Card */
.nimbus-page .info-lateral-card {
    background: var(--nimbus-gray-100);
    border-radius: var(--nimbus-border-radius);
    padding: 15px;
    margin-top: 15px;
}

/* Historial Observaciones */
.nimbus-page .historial-observaciones {
    background-color: var(--nimbus-gray-100);
    border-radius: var(--nimbus-border-radius-sm);
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9em;
    border: 1px solid var(--nimbus-gray-200);
}

/* Email Chip Readonly */
.nimbus-page .email-chip-readonly {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    margin: 2px;
    word-break: break-all;
}

/* ========== BITÁCORA / TIMELINE ========== */
.nimbus-page .bitacora-card {
    background-color: #ffffff;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    box-shadow: var(--nimbus-shadow);
}

.nimbus-page .bitacora-timeline {
    max-height: 500px;
    overflow-y: auto;
}

.nimbus-page .bitacora-item {
    border-left: 3px solid var(--nimbus-gray-300);
    padding-left: 20px;
    margin-left: 10px;
    padding-bottom: 20px;
    position: relative;
    transition: var(--nimbus-transition);
}

.nimbus-page .bitacora-item:last-child {
    padding-bottom: 0;
}

.nimbus-page .bitacora-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--nimbus-gray-600);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--nimbus-gray-600);
}

.nimbus-page .bitacora-item.evento-creacion::before {
    background-color: #007bff;
    box-shadow: 0 0 0 2px #007bff;
}

.nimbus-page .bitacora-item.evento-actualizacion::before {
    background-color: #17a2b8;
    box-shadow: 0 0 0 2px #17a2b8;
}

.nimbus-page .bitacora-item.evento-facturacion::before {
    background-color: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.nimbus-page .bitacora-item.evento-error::before {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px #dc3545;
}

.nimbus-page .bitacora-item.evento-cancelacion::before {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px #dc3545;
}

.nimbus-page .bitacora-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px 16px;
    background: var(--nimbus-gray-100);
    border-radius: var(--nimbus-border-radius-sm);
    border: 1px solid var(--nimbus-gray-200);
    transition: var(--nimbus-transition-fast);
}

.nimbus-page .bitacora-header:hover {
    background: var(--nimbus-gray-200);
}

.nimbus-page .bitacora-header.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #e3f2fd;
}

.nimbus-page .evento-error .bitacora-header {
    background: #fff5f5;
    border-color: #fed7d7;
}

.nimbus-page .evento-error .bitacora-header:hover {
    background: #fff1f1;
}

.nimbus-page .evento-error .bitacora-header.expanded {
    background: #ffe5e5;
}

.nimbus-page .bitacora-fecha {
    font-size: 0.75em;
    color: var(--nimbus-gray-600);
}

.nimbus-page .bitacora-mensaje {
    font-weight: 600;
    margin-top: 4px;
    font-size: 0.95em;
}

.nimbus-page .bitacora-usuario {
    font-size: 0.8em;
    color: var(--nimbus-info);
    margin-top: 3px;
}

.nimbus-page .bitacora-details {
    background: #fff;
    border: 1px solid var(--nimbus-gray-200);
    border-top: none;
    border-radius: 0 0 var(--nimbus-border-radius-sm) var(--nimbus-border-radius-sm);
    padding: 15px;
    font-size: 0.85em;
}

.nimbus-page .bitacora-detail-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px dashed var(--nimbus-gray-200);
}

.nimbus-page .bitacora-detail-row:last-child {
    border-bottom: none;
}

.nimbus-page .bitacora-detail-label {
    width: 140px;
    font-weight: 600;
    color: var(--nimbus-gray-700);
    flex-shrink: 0;
}

.nimbus-page .bitacora-detail-value {
    flex: 1;
    word-break: break-word;
}

.nimbus-page .bitacora-empty {
    text-align: center;
    color: var(--nimbus-gray-600);
    padding: 30px;
}

/* Badges de cambio (bitácora) */
.nimbus-page .badge-cambio {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin: 2px;
}

.nimbus-page .badge-anterior {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: line-through;
}

.nimbus-page .badge-nuevo {
    background: #dcfce7;
    color: #166534;
}

.nimbus-page .badge-serie {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Consolas', monospace;
}

/* Error Facturación Box */
.nimbus-page .error-facturacion-box {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.nimbus-page .error-facturacion-item {
    padding: 8px 12px;
    margin: 6px 0;
    background: #ffffff;
    border-left: 3px solid #f56565;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
}

.nimbus-page .error-facturacion-item:first-child {
    margin-top: 0;
}

.nimbus-page .error-facturacion-item:last-child {
    margin-bottom: 0;
}

/* Observación Box */
.nimbus-page .observacion-box {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 10px;
    margin-top: 8px;
    font-style: italic;
    color: #4a5568;
}

/* ========== COTIZACIÓN DETALLE ========== */

/* Alert vencimiento */
.nimbus-page .alert-vencimiento {
    border-radius: var(--nimbus-border-radius);
    margin-bottom: 20px;
}

/* Venta asociada card */
.nimbus-page .venta-asociada-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: var(--nimbus-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
}

.nimbus-page .venta-asociada-card h5 {
    color: #155724;
    margin-bottom: 8px;
}

.nimbus-page .venta-asociada-card p {
    color: #155724;
    margin: 0;
}

/* Email display chips (solo lectura) */
.nimbus-page .email-display-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.nimbus-page .email-display-chip {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    word-break: break-all;
}

.nimbus-page .email-display-chip i {
    margin-right: 6px;
    font-size: 10px;
}

/* Bitácora badges específicos de cotización */
.nimbus-page .bitacora-venta-badge {
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Consolas', monospace;
}

.nimbus-page .bitacora-cliente-badge {
    background: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: 6px;
    font-style: italic;
    display: inline-block;
}

.nimbus-page .badge-enlace-publico {
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 8px;
}

/* ========== COTIZACIÓN PÚBLICA (Ver.cshtml) ========== */
/* Estilos para la vista pública sin Layout */

.cotizacion-publica-page {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.cotizacion-publica-page .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cotizacion-publica-page .cotizacion-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cotizacion-publica-page .header-cotizacion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.cotizacion-publica-page .header-cotizacion h1 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.cotizacion-publica-page .header-cotizacion .folio {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.cotizacion-publica-page .estatus-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-block;
}

.cotizacion-publica-page .alerta-vencida,
.cotizacion-publica-page .alerta-info,
.cotizacion-publica-page .alerta-success {
    padding: 15px 25px;
    margin: 0;
    border-radius: 0;
}

.cotizacion-publica-page .alerta-vencida {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.cotizacion-publica-page .alerta-info {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
    border-left: 4px solid #007bff;
}

.cotizacion-publica-page .alerta-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.cotizacion-publica-page .info-section {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.cotizacion-publica-page .info-section h4 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.cotizacion-publica-page .info-section h4 i {
    color: #667eea;
    margin-right: 10px;
}

.cotizacion-publica-page .info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.cotizacion-publica-page .info-row:last-child {
    border-bottom: none;
}

.cotizacion-publica-page .info-label {
    width: 140px;
    font-weight: 600;
    color: #6c757d;
    flex-shrink: 0;
}

.cotizacion-publica-page .info-value {
    flex: 1;
    color: #212529;
}

.cotizacion-publica-page .email-chips-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cotizacion-publica-page .email-chip-public {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
}

.cotizacion-publica-page .email-chip-public i {
    margin-right: 6px;
    font-size: 10px;
}

.cotizacion-publica-page .conceptos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cotizacion-publica-page .conceptos-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cotizacion-publica-page .conceptos-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.cotizacion-publica-page .conceptos-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cotizacion-publica-page .totales-section {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cotizacion-publica-page .totales-table {
    width: 300px;
    margin-left: auto;
    font-size: 14px;
}

.cotizacion-publica-page .totales-table td {
    padding: 8px 15px;
}

.cotizacion-publica-page .totales-table .total-final {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2em;
    font-weight: 700;
}

.cotizacion-publica-page .totales-table .total-final td {
    padding: 12px 15px;
}

.cotizacion-publica-page .totales-table .total-final td:first-child {
    border-radius: 8px 0 0 8px;
}

.cotizacion-publica-page .totales-table .total-final td:last-child {
    border-radius: 0 8px 8px 0;
}

.cotizacion-publica-page .acciones-section {
    padding: 30px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.cotizacion-publica-page .acciones-section h4 {
    color: #495057;
    font-weight: 600;
}

.cotizacion-publica-page .btn-accion {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    margin: 10px;
    transition: all 0.3s ease;
}

.cotizacion-publica-page .btn-accion:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cotizacion-publica-page .footer-publico {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 0.85em;
    border-top: 1px solid #eee;
}

.cotizacion-publica-page .footer-publico p {
    margin: 5px 0;
}

/* Modal en vista pública */
.cotizacion-publica-page .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.cotizacion-publica-page .modal-header {
    border-bottom: none;
    padding: 20px 25px;
}

.cotizacion-publica-page .modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.cotizacion-publica-page .modal-body {
    padding: 20px 25px;
}

.cotizacion-publica-page .modal-footer {
    border-top: none;
    padding: 15px 25px 20px;
}

.cotizacion-publica-page .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.cotizacion-publica-page .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========== CFDUPLOAD ========== */

/* Loading skeleton */
.nimbus-page .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--nimbus-border-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.nimbus-page .skeleton-saldo {
    height: 80px;
    margin-bottom: 1.5rem;
}

/* Estado badge (SAT) */
.nimbus-page .estado-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--nimbus-border-radius-pill);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nimbus-page .page-header {
        padding: 15px 20px;
    }
    
    .nimbus-page .page-header h3 {
        font-size: 1.25rem;
    }
    
    .nimbus-page .filtros-card {
        padding: 15px;
    }
    
    .nimbus-page .resumen-card {
        margin-bottom: 15px;
    }
    
    .nimbus-page .resumen-card h3 {
        font-size: 24px;
    }
}
