
/* ----------- TIPOGRAFÍA ----------- */
h1, .h1 {
    font-size: 28px;
    line-height: 1.5;
    font-weight: 600; /* Semi-bold */
    letter-spacing: -0.5px; /* Ajuste para modernizar */
    color: var(--neutral-dark);
}

h2, .h2 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600; /* Semi-bold */
    letter-spacing: -0.3px;
    color: var(--neutral-dark);
}

h3, .h3 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600; /* Semi-bold */
    letter-spacing: -0.2px;
    color: var(--neutral-dark);
}

h4, .h4 {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600; /* Semi-bold */
    letter-spacing: -0.1px;
    color: var(--neutral-dark);
}

p, .paragraph {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400; /* Regular */
    letter-spacing: normal;
    color: var(--neutral-dark);
}

/* ----------- ESTILOS GENERALES ----------- */
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background-color: var(--bg-secondary); 
    font-family: "Lato", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--neutral-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* IMPORTANTE: Esta regla debe estar al FINAL del archivo global.css */
html body.app-body, 
body.d-flex.justify-content-center.align-items-center.min-vh-100.app-body,
.app-body {
    background: #ecf2f7 !important;
    background-color: #ecf2f7  !important;
    background-image: none !important;
}

/* ----------- CONTENEDORES ----------- */
.container {
    max-width: 1200px;
    padding: 0 24px;    
}

.card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-small);
    border: none;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-body {
    padding: 1rem;
}

/* ----------- FORMULARIOS ----------- */
.form-container { 
    background-color: var(--bg-secondary); 
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    padding: 2rem;
    margin: 2rem auto;
    width: 90%;
    /* height: 95vh !important; */
    max-width:1200px; /*750px; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premanifest-form-container { 
    background-color:  var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    padding: 2rem;
    margin: 2rem auto;
    width: 75% !important;
    max-width: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-form-container { 
    background-color:  var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    padding: 2rem;
    margin: 2rem auto;
    width: 75% !important;
    height: 95vh !important;
    max-width: none !important;
    max-height: 70% !important ;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(92, 99, 105, 0.3);
}

.form {
    width: 100%;
}

.form-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.form-title {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-subtitle {
    color: var(--neutral-medium);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Grupos de formulario */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Etiquetas */
.label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-dark);
}

/* Campos de entrada */
.input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 8px 16px 8px 40px; /* Ajustado para iconos */
    font-size: 13px;
    color: var(--neutral-dark);
    background-color: var(--bg-secondary);
    border: 1px solid #dee2e6; /* Borde visible pero sutil */
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

/* INPUT TYPE DATE - Padding adicional si es necesario */
.input[type="date"] {
    padding-left: 52px !important; /* ← Extra para inputs tipo date */
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.2 !important;
}

.input:focus {
    outline: none;
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 94, 111, 0.2);
}

.input-icon-wrapper {
    position: relative;
}

.input:focus + .input-icon {
    color: var(--primary-color);
}

/* Ajustes para el icono */
.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-medium);
    font-size: 13px;
    z-index: 10;
    pointer-events: none; /* Permite hacer clic a través del icono */
}

/* Color de icono al enfocar el campo */
.input-icon-wrapper:focus-within .input-icon {
    color: var(--primary-color) !important;
}

/* Placeholder */
::placeholder {
    color: var(--neutral-medium);
    opacity: 0.7;
}

/* Toggle de estado mejorado */
.status-toggle {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 4px;
    width: fit-content;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-small);
}

.status-option {
    position: relative;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
}

.status-option.active {
    color: white;
}

.status-highlight {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 0;
}

.hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Botones de acción del formulario */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ----------- BOTONES ----------- */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: #004A58 !important; /* Versión más oscura del primary */
    border-color: #004A58 !important;
}

.btn-action.edit:hover {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 94, 111, 0.3) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #00BFBE; /* Versión más oscura del secondary */
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--neutral-medium);
    border: 1px solid var(--neutral-medium);
}

.btn-outline-secondary:hover {
    background-color: var(--neutral-medium);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* =================== SELECT2 =================== */
/* Ajustes específicos para Select2 */
.form-floating .select2-container {
    width: 100% !important;
}

/* Contenedor principal */
.select2-container {
    display: block !important;
    width: 100% !important;
    height: 38px !important;
}

/* Ajuste específico para el contenedor Select2 dentro de input-icon-wrapper */
.input-icon-wrapper .select2-container {
    width: 100% !important;
}

/* Corrección del ancho y padding del elemento Select2 */
.select2-selection {
    width: 100% !important;
    height: 48px !important;
    padding-left: 40px !important; /* Alineado con el icono */
    background-color: var(--bg-secondary) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: var(--border-radius-md) !important;
}

/* Ajuste para alinear el texto del select2 con el estilo regular del input */
.select2-selection__rendered {
    padding-left: 5px !important;
    line-height: 35px !important;
    text-align: left !important;
    color: var(--neutral-dark) !important;
    font-size: 13px !important;
}

/* Centrar verticalmente el texto en selects dentro de input-icon-wrapper */
.input-icon-wrapper .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Opciones en el dropdown */
.select2-container--bootstrap-5 .select2-results__option {
    font-size: 13px !important;  /* ⬅️ AGREGAR ESTO */
    padding: 8px 12px !important;
    line-height: 1.4;
}
/* Campo de búsqueda dentro del dropdown */
.select2-container--bootstrap-5 .select2-dropdown .select2-search__field {
    font-size: 13px !important;  /* ⬅️ AGREGAR ESTO */
    padding: 6px 8px !important;
}

/* Placeholder en el control */
.select2-container--bootstrap-5 .select2-selection--single::after {
    font-size: 13px !important;  /* ⬅️ AGREGAR ESTO */
}

/* Ajuste para la flecha del desplegable */
.select2-selection__arrow {
    height: 48px !important;
    right: 8px !important;
}

/* Corrige el aspecto visual para que coincida con los inputs */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #dee2e6 !important;
    border-radius: var(--border-radius-md) !important;
}

/* Elimina estilos conflictivos para los elementos select2 */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 38px !important;
    height: 38px !important;
}

/* Ajustes específicos para el dropdown y opciones */
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: var(--border-radius-md) !important;
}

/* Estilos para el focus y hover */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 94, 111, 0.25) !important;
    background-color: var(--bg-primary) !important;
}



/* Ajustes para select2 dentro de un modal */
#regaloModal .select2-modal + .select2-container {
    z-index: 1056 !important; /* Mayor que el z-index del modal (1055) */
}
  
/* Iconos dentro de los campos en la etiqueta */
.form-floating > label i {
margin-right: 0.5rem;
}

/* Ajustes para campos con valor */
.form-floating.is-filled > .form-control {
padding-top: 1.625rem;
padding-bottom: 0.625rem;
}

/* Ajustes específicos para inputs flotantes del login */
.login-floating > .form-control {
    height: 62px;
    padding: 3.8rem 0.9rem 0.1rem 0.9rem;
}

.login-floating > label {
    padding: 1.2rem 0.9rem;
    font-size: 1rem;
}

.login-floating > .form-control:focus ~ label,
.login-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.8rem) translateX(0.1rem) !important;
    font-size: 0.9rem;
}

/* Texto del input en login */
.login-input-text {
    font-size: 1rem;
    line-height: 1.2;
}

/* Estilos para campos de comentarios más altos */
.form-floating-textarea .form-control {
height: auto;
min-height: 100px;
}

/* Ajustes para campos monetarios */
.form-floating.money-field {
margin-bottom: 1rem;
}

.form-floating.money-field .form-control {
height: calc(3.25rem + 2px);
padding: 1.4rem 0.75rem 0.4rem 0.75rem;
}

.form-floating.money-field > label {
padding: 1.4rem 0.75rem 0.4rem 0.75rem;
}

  /* Ajustes para el aspecto al deshabilitar el control */
.form-floating.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-floating.disabled:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* ----------- ALERTAS ----------- */
.alert {
    border-radius: var(--border-radius-md);
    border: none;
    display: flex;
    padding: 1rem;
}

.alert-danger {
    background-color: var(--bg-inactive);
    color: var(--state-inactive);
}

.alert-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.alert-content {
    flex: 1;
}

.alert-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ----------- TABLAS PARA VISTAS CON LIST PARA ACCESO A DATOS ----------- */
/* Estilos básicos de tabla */
.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-primary, white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative; /* Esencial para posicionar correctamente elementos sticky */
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin-bottom: 0;
   /*min-width: 1200px; Garantiza scroll horizontal en pantallas pequeñas */
}

/* Para tablas con muchas columnas */
.table-wide {
    min-width: 1200px;
}

/* Estilos para encabezados */
.table th {
    text-align: left;
    font-weight: 600;
    color: #495057;
    padding: 14px 16px;
    background-color: #F8F9FA;
    border-bottom: 2px solid #E9ECEF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.table th:first-child {
    border-top-left-radius: 8px;
}

.table th:last-child {
    border-top-right-radius: 8px;
}

/* Estilos para celdas */
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #E9ECEF;
    vertical-align: middle;
    font-size: 14px;
    color: #212529;
    line-height: 1.5;
}

.table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.table tr:hover {
    background-color: #F8F9FA;
    transition: background-color 0.3s ease;
}

/* COLUMNA FIJA - versión mejorada */
.sticky-column {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    right: 0 !important; /* Crucial para fijar en el lado derecho */
    min-width: 100px !important; 
    background-color: white !important;
    z-index: 10 !important; /* Mayor que otros elementos para superponer */
    box-shadow: -8px 0 8px -5px rgba(0,0,0,0.1) !important;
}

/* Encabezado de columna fija */
thead th.sticky-column {
    background-color: #F8F9FA !important;
    z-index: 11 !important; /* Mayor que las celdas normales */
}

/* Estilo para filas al pasar sobre la columna fija */
.table tr:hover td.sticky-column {
    background-color: #F8F9FA !important;
}

/* Efecto de gradiente en el borde izquierdo */
.sticky-column::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none; /* Permite hacer clic a través */
}

/* Estilos para la barra de desplazamiento */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#processedSalesTableBody tr.table-active td {
    background-color: #47637a !important;
    color: #ffffff;
}


/* ================== Status Badges ================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-badge.active {
    background-color: var(--bg-active);
    color: var(--state-active);
}

.status-badge.active::before {
    background-color: var(--state-active);
}

.status-badge.inactive {
    background-color: var(--bg-inactive);
    color: var(--state-inactive);
}

.status-badge.inactive::before {
    background-color: var(--state-inactive);
}

.status-badge.pending {
    background-color: var(--bg-pending);
    color: var(--state-pending);
}

.status-badge.pending::before {
    background-color: var(--state-pending);
}

.status-badge.onsale {
    background-color: var(--bg-info);
    color: var(--state-info);
}

.status-badge.onsale::before {
    background-color: var(--state-info);
}

/* Estilos para estados de venta */
.status-badge.status-venta-1 {
    background-color: var(--bg-active);
    color: var(--state-active);
}

.status-badge.status-venta-1::before {
    background-color: var(--state-active);
}

.status-badge.status-venta-2 {
    background-color: var(--bg-pending);
    color: var(--state-pending);
}

.status-badge.status-venta-2::before {
    background-color: var(--state-pending);
}

.status-badge.status-venta-3 {
    background-color: var(--bg-active);
    color: var(--state-active);
}

.status-badge.status-venta-3::before {
    background-color: var(--state-active);
}

/* ----------- PAGINACIÓN ----------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-medium);
    background-color: var(--bg-primary);
    border: 1px solid #E9ECEF;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
}

.pagination a:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.pagination a.active {
    color: var(--bg-primary);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ----------- BOTONES DE ACCIÓN EN TABLAS ----------- */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--primary-color);
    background-color: rgba(0, 94, 111, 0.1);
    border: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 94, 111, 0.3);
}

/* estilos del botón de edición */
.btn-action.edit {
    color: var(--primary-color) !important;
    background-color: rgba(0, 94, 111, 0.1) !important;
}

.btn-action.edit:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 94, 111, 0.3) !important;
}

.btn-action.delete {
    color: #DC3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.btn-action.delete:hover {
    background-color: #DC3545;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-action.view {
    color: #17A2B8;
    background-color: rgba(23, 162, 184, 0.1);
}

.btn-action.view:hover {
    background-color: #17A2B8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.btn-action i {
    font-size: 16px;
}
/* En tablas que puedan tener múltiples acciones */
.actions-column {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 768px) {
    .form-container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .table-container {
        padding: 1rem;
    }
    
    .table th, .table td {
        padding: 12px;
    }
    
    h1, .h1 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .status-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* ----------- UTILIDADES ----------- */
.text-center {
    text-align: center !important;
}

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

.mt-3 { margin-top: var(--spacing-md) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }





/* Collection Form Layout */
.collection-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.collection-sidebar {
    flex: 0 0 250px;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--sidebar-bg, #2c3e50);
}

.collection-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 2rem 3rem;
}

.collection-container {
    max-width: 100%;
}

.collection-header {
    margin-bottom: 2rem;
}

.collection-header h1 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-heading {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.collection-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}


/* Reducir tamaño de campos */
.form-control {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8125rem !important;
    height: auto !important;
    min-height: 32px;
}

/* ----------- LOGIN ----------- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #ecf2f7;
}

.login-container .card {
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-medium);
}

.login-container .card-header {
    text-align: center;
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 2rem 1rem 1rem;
}

.login-container .logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: .5rem;
}

.login-alert {
    display: none !important;
    margin-bottom: 1rem;
}

.btn-login {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.login-floating > .login-input-text {
    height: 58px !important;
    padding: 1.5rem 0.9rem 0.1rem 0.9rem !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

.login-floating > label {
    padding: 1.2rem 0.9rem;
    font-size: 1rem;
}

.login-floating > .login-input-text:focus ~ label,
.login-floating > .login-input-text:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.8rem) translateX(0.1rem);
    font-size: 0.9rem;
}

.contract-canceled .form-control,
.contract-canceled .form-control:disabled,
.contract-canceled .form-control[readonly],
.contract-canceled .form-control:read-only {
    color: #c0392b;
}

/* Reducir tamaño de labels */
.form-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 600;
}

.label {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 600;
}

/* Alinear inputs de cliente al mismo nivel visual */
.client-row {
    align-items: flex-end;
}

.client-row .form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.client-row .form-group .input-icon-wrapper {
    margin-top: auto;
}


/* Reducir padding de cards */
.card-body {
    padding: 1rem !important;
}

/* Reducir títulos de sección */
.section-heading {
    font-size: 1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
}

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

.section-title i {
    margin-right: 0.5rem;
}

.section-title:first-of-type {
    margin-top: 0;
}

/* Reducir heading principal */
h1 {
    font-size: 1.5rem !important;
}

/* Reducir espaciado entre filas */
.row {
    --bs-gutter-x: 0.5rem !important;
}


/* ========== PANEL DESLIZABLE DE COMENTARIOS ========== */

/* Panel deslizable */
.comments-slide-panel {
    position: fixed;
    right: -33.333%;
    top: 0;
    width: 33.333%;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: right 0.3s ease;
}

.comments-slide-panel.active {
    right: 0;
}

/* Panel deslizable para addendums (lado izquierdo) */
.addendums-slide-panel {
    position: fixed;
    left: -33.333%;
    top: 0;
    width: 33.333%;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: left 0.3s ease;
}

.addendums-slide-panel.active {
    left: 0;
}

/* Header del panel */
.comments-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--primary), #004A58);
    color: white;
}

.comments-panel-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.btn-close-panel {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-panel:hover {
    transform: scale(1.1);
}

/* Contenido de comentarios */
.comments-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;  /* ✅ REDUCIDO de 1rem a 0.5rem */
}

.comments-summary {
    margin: 0.5rem 0.75rem 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary);
}

.comments-summary-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
}

.comments-summary-text {
    font-size: 0.8rem;
    color: var(--neutral-medium);
    line-height: 1.4;
}

.comments-summary.is-loading .comments-summary-text {
    color: var(--neutral-medium);
}

/* Estilos para comentarios individuales */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;  /* ✅ REDUCIDO de 1rem a 0.6rem */
    padding: 0.75rem;  /* ✅ REDUCIDO de 1rem a 0.75rem */
}

.comment-item {
    background-color: var(--bg-secondary);
    padding: 0.75rem;  /* ✅ REDUCIDO de 1rem a 0.75rem */
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary);
    transition: all 0.2s ease;
}

.comment-item:hover {
    box-shadow: var(--shadow-small);
    transform: translateX(2px);
}

.comment-item.expanded {
    max-height: none;
    height: auto;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;  /* ✅ REDUCIDO de 0.5rem a 0.4rem */
    gap: 0.5rem;  /* ✅ AGREGAR para mejor distribución */
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8rem;  /* ✅ REDUCIDO de 0.9rem a 0.8rem */
    white-space: nowrap;  /* ✅ AGREGAR para evitar quiebre de línea */
}

.comment-date {
    font-size: 0.7rem;  /* ✅ REDUCIDO de 0.75rem a 0.7rem */
    color: var(--neutral-medium);
    white-space: nowrap;  /* ✅ AGREGAR */
    flex-shrink: 0;  /* ✅ AGREGAR */
}

.comment-text {
    font-size: 0.8rem;
    color: var(--neutral-dark);
    line-height: 1.5;
    word-wrap: break-word;
    max-height: 5.6em;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    margin: 0;
    padding: 0;
}

.comment-text p {
    font-size: 0.75rem;
    margin: 0.4rem 0;  /* Espacio entre párrafos */
    padding: 0;
}

.comment-text p:first-child {
    margin-top: 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-text.collapsed::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, var(--bg-secondary));
    padding-left: 1rem;
}

.comment-text.expanded {
    max-height: none;
    overflow: visible;
}

.comment-toggle-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.2rem 0.5rem;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-toggle-btn:hover {
    background-color: rgba(0, 94, 111, 0.1);
}

.comment-toggle-btn i {
    font-size: 0.6rem;
}

/* Footer del panel */
.comments-panel-footer {
    padding: 1rem;  /* ✅ REDUCIDO de 1.5rem a 1rem */
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
}

/* Estado colapsado */
.comments-panel-footer.comments-input-collapsed {
    padding: 0.75rem;  /* ✅ REDUCIDO de 1rem a 0.75rem */
}

/* Botón para expandir */
#expandCommentFormBtn {
    width: 100%;
    padding: 0.6rem 0.75rem;  /* ✅ REDUCIDO de 0.75rem 1rem */
    font-weight: 500;
    font-size: 0.85rem;  /* ✅ AGREGAR para texto más pequeño */
}

#expandCommentFormBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 94, 111, 0.2);
}

/* Contenedor del formulario */
#commentFormContainer {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Cuando está colapsado */
#commentFormContainer.collapsed {
    animation: slideUp 0.3s ease;
    display: none !important;
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

.comment-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;  /* ✅ REDUCIDO de 0.5rem a 0.4rem */
}

.comment-input-group .form-label {
    font-size: 0.8rem;  /* ✅ REDUCIDO de 0.85rem a 0.8rem */
    margin-bottom: 0.3rem;  /* ✅ REDUCIDO de 0.5rem a 0.3rem */
    font-weight: 500;  /* ✅ AGREGAR para mayor claridad */
}

.comment-input-group .form-control {
    font-size: 0.8rem;  /* ✅ REDUCIDO a 0.8rem */
    padding: 0.35rem 0.6rem;  /* ✅ REDUCIDO de 0.4rem 0.75rem */
    border-radius: 4px;  /* ✅ REDUCIDO de var(--border-radius-md) */
}

.comment-input-group .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 94, 111, 0.25);  /* ✅ REDUCIDO de 0.25rem */
}

.comment-textarea {
    resize: vertical;
    min-height: 250px !important;  /* ✅ REDUCIDO de 80px a 70px */
    font-size: 0.75rem;  /* ✅ REDUCIDO a 0.8rem */
    font-family: var(--font-main);
    padding: 0.35rem 0.6rem;  /* ✅ REDUCIDO */
}

.comment-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 94, 111, 0.25);
}

.comment-category {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.2rem 0.5rem;  /* ✅ CAMBIAR de 0.25rem 0.75rem a 0.2rem 0.5rem */
    background-color: rgba(0, 94, 111, 0.1);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.65rem;  /* ✅ CAMBIAR de 0.75rem a 0.65rem */
    font-weight: 500;
}

.comment-category i {
    font-size: 0.6rem;  /* ✅ AGREGAR para que el icono sea proporcional */
}

#addCommentBtn {
    height: auto;
    padding: 0.5rem 0.75rem;  /* ✅ REDUCIDO de 0.75rem 1rem */
    font-size: 0.8rem;  /* ✅ AGREGAR */
    font-weight: 500;  /* ✅ AGREGAR */
}

/* Botones auxiliares */
.comment-input-group .btn-outline-secondary {
    font-size: 0.75rem;  /* ✅ REDUCIDO a 0.75rem */
    padding: 0.35rem 0.6rem;  /* ✅ REDUCIDO */
}

.comment-input-group .btn-link {
    font-size: 0.7rem;  /* ✅ REDUCIDO a 0.7rem */
    padding: 0.2rem 0.4rem;  /* ✅ REDUCIDO */
}

/* Overlay para el panel */
.comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1040;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.comments-overlay.active {
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* Estado vacío */
.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;  /* ✅ REDUCIDO de 2rem 1rem */
    color: var(--neutral-medium);
    text-align: center;
}

.comments-empty i {
    font-size: 2rem;  /* ✅ REDUCIDO de 2.5rem */
    opacity: 0.5;
    margin-bottom: 0.75rem;  /* ✅ REDUCIDO de 1rem */
}

.comments-empty p {
    font-size: 0.8rem;  /* ✅ REDUCIDO de 0.9rem */
    margin: 0;
}

/* Animación de carga */
.comment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;  /* ✅ REDUCIDO de 2rem */
    color: var(--neutral-medium);
    font-size: 0.8rem;  /* ✅ AGREGAR */
}

.comment-loading i {
    margin-right: 0.4rem;  /* ✅ REDUCIDO de 0.5rem */
}

/* Responsivo */
@media (max-width: 1200px) {
    .comments-slide-panel {
        width: 40%;
        right: -40%;
    }
}

@media (max-width: 768px) {
    .comments-slide-panel {
        width: 100%;
        right: -100%;
    }
    
    /* ✅ AGREGAR ajustes responsive */
    .comment-item {
        padding: 0.6rem;
    }
    
    .comment-author {
        font-size: 0.75rem;
    }
    
    .comment-text {
        font-size: 0.75rem;
    }
}


.client-contact-table-wrapper {
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    max-height: 220px;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

.client-contact-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neutral-medium);
    background-color: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.client-contact-table td {
    vertical-align: middle;
}

.client-contact-table .form-control-sm {
    font-size: 0.8rem;
    padding: 0.2rem 0.45rem;
}

.client-contact-tabs .tab-content {
    position: static;
}

.client-contact-tabs .tab-pane {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
}

.client-contact-capture {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.client-contact-text {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--neutral-dark);
}

.client-contact-badge {
    font-size: 0.7rem;
}

.client-edit-modal .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.client-edit-modal .client-contact-capture {
    margin-bottom: 0.75rem;
}

.client-edit-modal .client-contact-table-wrapper {
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e7edf2;
    max-height: none;
    min-height: 240px;
}

.client-edit-modal .client-contact-table {
    margin-bottom: 0;
}

.client-edit-modal .client-contact-table thead th {
    background-color: #f6f9fb;
    color: var(--neutral-medium);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.client-edit-modal .client-contact-table tbody td {
    border-top: 1px solid #edf2f6;
}

.client-edit-modal .client-contact-table tbody tr:first-child td {
    border-top: none;
}

.documents-table td,
.documents-table th {
    font-size: 0.75rem;
}

.documents-table .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.documents-table {
    table-layout: fixed;
    width: 100%;
}

.documents-table td {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.documents-modal .modal-body {
    flex: 1;
    overflow-y: auto;
}

.documents-modal .modal-dialog {
    max-width: 1100px;
    width: 92vw;
    height: 80vh;
}

.documents-modal .modal-content {
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.documents-modal .client-contact-table-wrapper {
    max-height: 55vh;
}

.table.compact-table td,
.table.compact-table th,
.table.tour-report-table td,
.table.tour-report-table th {
    font-size: 0.72rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.column-picker {
    background-color: #f8f9fa;
    border: 1px solid #e6edf2;
}

.report-layout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: auto;
}

.report-layout.is-tall {
    height: auto;
}

.column-panel.is-hidden {
    display: none;
}

.report-table-wrapper.is-full {
    flex: 1 1 100%;
}

.column-panel {
    width: 260px;
    background: #ffffff;
    border: 1px solid #e6edf2;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-small);
    padding: 1rem;
    transition: width 0.25s ease, padding 0.25s ease;
    max-height: 65vh;
    overflow-y: auto;
}

.sidebar-column-panel {
    flex: 1 1 auto;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-column-panel .column-picker-grid {
    flex: 1 1 auto;
    overflow-y: auto;
}

.report-layout.is-tall .column-panel {
    max-height: 75vh;
}

.column-panel.is-collapsed {
    width: 56px;
    padding: 0.75rem 0.5rem;
}

.column-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.column-panel.is-collapsed .column-panel-header h6,
.column-panel.is-collapsed .column-panel-header small,
.column-panel.is-collapsed .column-panel-actions,
.column-panel.is-collapsed .column-picker-grid {
    display: none;
}

.column-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.column-toggle-btn {
    width: 150px;
    justify-content: center;
}

.report-table-wrapper {
    flex: 1;
    min-width: 0;
    transition: flex 0.25s ease;
    height: 65vh;
}

.report-layout.is-tall .report-table-wrapper {
    height: 75vh;
}

.report-table-wrapper.is-expanded {
    flex: 1 1 100%;
}

.report-table-wrapper .table-responsive {
    max-height: 65vh;
    overflow: auto;
}

.report-layout.is-tall .report-table-wrapper .table-responsive {
    max-height: 75vh;
}

.report-filter-card.is-collapsed .card-body {
    display: none;
}

.report-filter-card.is-collapsed {
    padding-bottom: 0;
}

.report-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e6edf2;
}

.report-filter-card.is-collapsed .report-filter-header {
    border-bottom: none;
}

.report-table-wrapper .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.column-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.35rem 0.75rem;
}

.column-picker-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.column-section-title {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: #6b7785;
    margin-top: 0.5rem;
}

.column-section-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #e6edf2;
    margin: 0.5rem 0;
}

.column-panel .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.column-panel .form-check-input:checked::after {
    background-color: var(--primary) !important;
}

.column-panel .form-check-input {
    accent-color: var(--primary) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 14px;
    height: 14px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    background-color: #fff;
    background-image: none !important;
    box-shadow: none !important;
    position: relative;
}

.column-panel .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.column-panel .form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}






/* ========== ESTILOS MEJORADOS PARA MODALES EN COLLECTIONS ========== */

/* Contenedor del modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header del modal */
.modal-header {
    background: linear-gradient(135deg, var(--primary), #004A58);
    color: white;
    border: none;
    padding: 1rem;  /* ✅ CAMBIAR de 1.5rem a 1rem 1.5rem */
    border-radius: 12px 12px 0 0;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1rem;  /* ✅ CAMBIAR de 1.1rem a 1rem */
    margin: 0;
    display: flex;
    align-items: center;
}

.modal-header .btn-close-white {
    opacity: 0.8;
    transition: opacity 0.2s ease;
    width: 24px;  /* ✅ AGREGAR para hacer el botón más pequeño */
    height: 24px;  /* ✅ AGREGAR */
}

.modal-header .btn-close-white:hover {
    opacity: 1;
}
/* Body del modal */
.modal-body {
    padding: 2rem;
    background-color: #ffffff;
}

/* Footer del modal */
.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
}

/* Labels en modales */
.modal-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.modal-form-label i {
    color: var(--primary);
    font-size: 0.95rem;
}

/* Inputs y selects en modales */
.modal-form-control {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.modal-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 94, 111, 0.15);
    background-color: #ffffff;
}

.modal-form-control::placeholder {
    color: var(--neutral-medium);
    opacity: 0.7;
}

/* Textarea en modales */
.modal-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: var(--font-main);
}

/* Select2 en modales - Mejorado */
.modal-select-large + .select2-container {
    width: 100% !important;
}

.select2-dropdown .select2-search__field {
    font-size: 0.9rem;
}

.select2-dropdown .select2-results__option {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 94, 111, 0.15);
}

/* Botones en modales */
.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary), #004A58);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #004A58, #003340);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 94, 111, 0.3);
}

.modal-btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 94, 111, 0.25);
}

.modal-btn-secondary {
    border: 1px solid #dee2e6;
    color: var(--neutral-dark);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--neutral-dark);
}

/* Preview de clasificación */
.status-preview-box {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status-preview-box > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#statusPreviewColor {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

#statusPreviewText {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-top: 0.25rem;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1rem !important;
    }

    .modal-form-label {
        font-size: 0.85rem;
    }

    .modal-form-control {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}
