.smart-form input:enabled,
.smart-form textarea:enabled,
.smart-form select:enabled,
.smart-form .select2:enabled{
	background: rgba(235, 235, 255, 0.9) !important;
							 /*255*/
}

.smart-form input:disabled,
.smart-form textarea:disabled,
.smart-form select:disabled{
	background: rgba(100, 100, 100, 0.2) !important;

}

.smart-form input:focus,
.smart-form textarea:focus,
.smart-form select:focus {
    outline: none !important;;
    border-color: #9ecaed !important;;
    box-shadow: 0 0 10px #9ecaed !important;;
}

.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 50%;
    height: 50%;
    z-index: 9999;
    background: url('../img/pageLoader.gif') 50% 50% no-repeat rgb(249,249,249);
    opacity: .8;
}

.float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#0C9;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    box-shadow: 2px 2px 3px #999;
}

.my-float{
    margin-top:17px;
}

/* ========================================
   ESTILOS GLOBALES PARA FILTROS FLEXBOX
   ======================================== */

/* Contenedor principal de filtros */
.filtros-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Filas de filtros usando flexbox */
.filtros-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.filtros-row:last-child {
    margin-bottom: 0;
}

/* Items individuales de filtro */
.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Permite que los items se encojan */
}

/* Tamaños específicos para cada filtro */
.filtro-item.xsmall { flex: 0 0 80px; }
.filtro-item.small { flex: 0 0 120px; }
.filtro-item.medium { flex: 0 0 180px; }
.filtro-item.large { flex: 0 0 250px; }
.filtro-item.xlarge { flex: 1 1 300px; min-width: 250px; }
.filtro-item.xxlarge { flex: 1 1 400px; min-width: 300px; }

/* Labels de filtros */
.filtro-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs de filtros */
.filtro-input {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #fff;
}

.filtro-input:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filtro-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Selects de filtros */
.filtro-select {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.filtro-select:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Contenedor de acciones */
.filtro-acciones {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botones de filtros */
.btn-filtro {
    height: 38px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-filtro:hover {
    text-decoration: none;
}

/* Variantes de botones */
.btn-filtro.primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-filtro.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.btn-filtro.secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-filtro.secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
    color: #fff;
}

.btn-filtro.success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-filtro.success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    color: #fff;
}

.btn-filtro.warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-filtro.warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-filtro.danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-filtro.danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

.btn-filtro.info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.btn-filtro.info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: #fff;
}

/* Estado deshabilitado */
.btn-filtro:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .filtros-container {
        padding: 15px;
    }
    
    .filtros-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filtro-item {
        flex: 1 1 auto !important;
        min-width: auto !important;
    }
    
    .filtro-acciones {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Responsividad para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .filtros-container {
        padding: 18px;
    }
    
    .filtros-row {
        gap: 12px;
    }
    
    .filtro-item.xlarge,
    .filtro-item.xxlarge {
        flex: 1 1 200px;
        min-width: 200px;
    }
}

/* Estilos para labels cuando hay errores */
.filtro-item.has-error .filtro-label {
    color: #dc3545;
}

.filtro-item.has-error .filtro-input,
.filtro-item.has-error .filtro-select {
    border-color: #dc3545;
}

/* Estilos para indicar campos requeridos */
.filtro-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Mejoras para accesibilidad */
.filtro-input:focus,
.filtro-select:focus,
.btn-filtro:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Hover states para mejor UX */
.filtro-input:hover:not(:focus) {
    border-color: #adb5bd;
}

.filtro-select:hover:not(:focus) {
    border-color: #adb5bd;
}
