﻿body {
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 100px); /* Limita la altura del modal para permitir el scroll */
    overflow-y: auto; /* Agrega scroll vertical */
}

.ori-contenedor-principal {
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ori-body {
    overflow-x: auto;
}

.small-grid .rz-datatable {
    font-size: 10px !important;
}

.ori-cargando {
    position: fixed; /* Fija el elemento respecto a la ventana */
    top: 50%; /* Centra verticalmente */
    left: 50%; /* Centra horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta el elemento al centro real */
    z-index: 9999; /* Asegura que esté sobre otros elementos */
    background-color: rgba(255, 255, 255, 0.8); /* (Opcional) Fondo semitransparente para resaltar */
    padding: 20px; /* (Opcional) Añade algo de espacio alrededor del contenido */
    border-radius: 8px;
}

.logo-orion {
    width: 110px; /* Ajusta el tamaño según sea necesario */
    height: auto;
}

/* Fondo translúcido para la pantalla de carga */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegura que esté en el frente */
}

/* Caja de carga con sombra y bordes redondeados */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
}

/* Estilo y animación del icono de carga */
.loading-icon {
    width: 50px;
    height: 50px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #FE5810; /* Cambia el color aquí */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Animación de rotación */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-custom:disabled {
    background-color: var(--bs-app-theme-disabled) !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/*Estilo de Check inicio*/
/* Contenedor del toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    /* Ocultar el checkbox original */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/*Inicio Estilo del slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px; /* Bordes redondeados */
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%; /* Circular */
    }

/* Cuando el checkbox está activo */
input:checked + .slider {
    background-color: #FF3100;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Estilo para el texto */
.switch-label {
    margin-left: 10px;
    vertical-align: middle;
}
/*Fin Estilo del slider*/

/*Tema Orion*/
.bg-gradient-orange {
    background-color: #FF3100 !important;
    background-image: linear-gradient(to bottom,#f7b14b,#FE5810) !important
}

.theme-orange {
    --bs-app-theme: #FF3100 !important;
    --bs-app-theme-rgb: 245,156,26;
    --bs-app-theme-color: #FFFFFF;
    --bs-app-theme-color-rgb: 255,255,255;
    --bs-app-theme-hover: #FE5810 !important;
    --bs-app-theme-hover-border-color: #FE5810 !important;
    --bs-app-theme-hover-color: #FFFFFF;
    --bs-app-theme-active: #FE5810 !important;
    --bs-app-theme-active-border-color: #FE5810 !important;
    --bs-app-theme-active-color: #FFFFFF;
    --bs-app-theme-disabled: #403B38;
    --bs-app-theme-disabled-border-color: #403B38;
    --bs-app-theme-disabled-color: #FFFFFF
}

.btn-theme {
    --bs-btn-bg: #FE5810 !important;
    --bs-border-color: #FE5810 !important;
}

/*Fin Tema Orion*/

/* Inicio Estilo de tabs*/
.orion-tab {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}
/*Fin Estilo de tabs*/

.menu-submenu {
    display: none; /* Los submenús estarán ocultos por defecto */
}

    .menu-submenu.active {
        display: block; /* Se mostrarán cuando se haga clic en el menú principal */
    }

/*Estilo defs bievenida*/
.bienvenida-card {
    background-color: #fff;
    /*max-width: 80%;*/
    border-radius: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    /*font-family: sfLight;*/
    font-weight: 300;
    color: #666;
    font-size: 1.875rem;
    letter-spacing: -.031rem;
    line-height: 2.238rem;
    margin-bottom: 2rem;
}

.icono-avion {
    display: flex;
    /*align-items: flex-end;*/
    height: 8.5rem;
    width: 21.063rem;
    margin-right: 1.875rem;
    z-index: 0;
}

/*Estilos personalizados Grid*/
.rz-grid-table {
    width: unset;
}

.rz-column-title {
    text-transform: none !important;
}

.rz-group-header {
    background-color: #ffffff !important;
}

.rz-button.rz-success.rz-shade-default {
    border-radius: 25px !important;
}

.rz-datatable {
    background-color: #f7f9fc; /* Color de fondo claro */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    padding: 10px; /* Espacio interior */
}

.rz-datatable-header {
    font-weight: bold;
    color: #333; /* Color de encabezado */
    background-color: #eef2f7; /* Fondo más claro para encabezado */
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.rz-datatable .rz-column-title {
    color: #f8fafb; /* Color de títulos de columnas */
    font-size: 14px;
    font-weight: 600;
}

.rz-datatable-row {
    transition: background-color 0.3s; /* Suaviza el cambio de color */
}

    .rz-datatable-row:hover {
        background-color: #e2e8f0; /* Fondo de la fila al pasar el ratón */
    }

.rz-cell {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.table-striped {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .table-striped th {
        background-color: #f8f9fa;
        color: #333;
        font-weight: bold;
        text-align: center;
        padding: 12px;
        font-size: 13px;
    }

    .table-striped td {
        padding: 12px;
        /*text-align: center;*/
        border-bottom: 1px solid #e9ecef;
        font-size: 13px;
    }

    .table-striped tr:hover {
        background-color: #f1f3f5;
    }

.rz-my-1 {
    margin-top: 4px;
    margin-bottom: 4px;
}

.rz-ms-1 {
    margin-left: 4px;
}

.rz-button-warning {
    background-color: #ffd966;
    color: #333;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

    .rz-button-warning:hover {
        background-color: #ffbf00;
    }

.rz-button-danger {
    background-color: #f28b82;
    color: white;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

    .rz-button-danger:hover {
        background-color: #e57373;
    }

.rz-paginator {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    font-size: 13px;
}

.rz-page-link {
    padding: 8px 12px;
    margin: 0 4px;
    color: #007bff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .rz-page-link:hover {
        background-color: #e2e6ea;
        color: #0056b3;
    }

.rz-page-link-active {
    background-color: #007bff;
    color: white;
}

.rz-datatable-tbody > tr {
    height: 32px; /* o menos, como 28px */
}

.rz-cell-data {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 13px; /* También reduce tamaño de fuente si quieres filas más compactas */
}

.wrap-text-cell {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3; /* Opcional: mejora la legibilidad */
}

.wrap-text {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    vertical-align: middle;
}

.wrap-text-table td {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.custom-row-height td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 1.2 !important;
    font-size: 13px; /* opcional */
}

.table-cell-edited {
    position: relative;
}

    .table-cell-edited::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-top: 10px solid red;
        border-left: 10px solid transparent;
    }

.custom-grid .rz-numeric-input {
    font-size: 12px !important;
    height: 22px !important;
    padding: 2px !important;
}

/* Letra más pequeña para todo el grid */
.small-grid,
.small-grid .rz-cell,
.small-grid .rz-column-title,
.small-grid .rz-header-cell {
    font-size: 10px;
}

/* Menor altura para las filas */
.custom-row-height .rz-cell {
    padding: 4px 8px;
    line-height: 1.2;
}

/* Menor altura para el header */
.custom-row-height .rz-header-cell {
    padding: 4px 8px;
    line-height: 1.2;
}

/* Compactar también los inputs (como RadzenNumeric) */
.small-grid .rz-input,
.small-grid .rz-spinner {
    font-size: 12px;
    height: 28px;
    padding: 2px 6px;
}

.rz-column-title .rz-column-title-content {
    font-size: 12px !important;
    padding: 2px 6px;
}

.rz-cell-data {
    font-size: 12px !important;
    height: 28px;
    padding: 2px 6px;
}

.rz-text-body1 {
    font-size: 12px !important;
    height: 28px;
    padding: 2px 6px;
}

.rz-columna-total {
    text-align: right;
    font-size:12px;
}

.rz-columna-valor {
    text-align: right;
}

.btn-action {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #fff !important;
    transition: background-color 0.3s ease !important;
}

.btn-edit {
    background-color: #ffc107 !important;
}

    .btn-edit:hover {
        background-color: #e0a800 !important;
    }

.btn-delete {
    background-color: #dc3545 !important;
}

    .btn-delete:hover {
        background-color: #c82333 !important;
    }

.rz-button {
    border-radius: 25px !important;
}

.rz-custom-header {
    width: 100% !important;
}

/*Estilos select*/
.custom-dropdown .rz-dropdown {
    font-family: 'Arial', sans-serif; /* Cambia 'Arial' por la fuente que prefieras */
    font-size: 14px; /* Ajusta el tamaño de fuente según tu preferencia */
    color: #333; /* Cambia el color del texto si es necesario */
}

.custom-dropdown .rz-dropdown-item {
    font-family: 'Arial', sans-serif; /* Cambia la fuente de los elementos */
    font-size: 14px;
    color: #333;
}

.zxing-button .start {
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background-color: #0d6efd !important;
}

.zxing-button .stop {
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background-color: #dc3545 !important;
}

.table-cell-edited {
    position: relative;
}

.table-cell-edited::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 10px solid #20cb5d;
    border-left: 10px solid transparent;
}

/* inicio Modal personalizado*/
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    z-index: 1040; /* Controla la superposición */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor del modal */
.custom-modal {
    background: #fff;
    border-radius: 8px;
    width: 950px; /* Ajusta según tus necesidades */
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Encabezado del modal */
.custom-modal-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .custom-modal-header h4 {
        margin: 0;
        font-size: 18px;
    }

    .custom-modal-header .btn-close {
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }

/* Cuerpo del modal */
.custom-modal-body {
    padding: 15px;
}

/* Pie del modal */
.custom-modal-footer {
    padding: 10px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* fin Modal personalizado*/
