/* === ESTILOS REUTILIZABLES === */

/* Botones */
.btn_mc_1 {
    background: #ca4f07;
    border-color: #ca4f07;
    color: white;
}

.btn_mc_mini_volver {
    background: #d71111fd;
    border-color: #d71111fd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px;
    margin: 3px;
}

.btn_mc_mini_agregar {
    background: #ffffff;
    border-color: #ffffff;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px 11px 6px 11px;
    margin: 3px;
}

.btn_mc_max_agregar {
    background-color: #15222B;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn_mc_max_agregar:hover {
    background-color: #ca4f07;
}

.btn_tbl_mini_agregar {
    background: #ff9800;
    border-color: #ff9800;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 3px;
    margin: 2px;
}

.btn_mc_mini_mostrar {
    background: #0073fffd;
    border-color: #0073fffd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px;
    margin: 3px;
}

.btn_tbl_mini_mostrar {
    background: #0073fffd;
    border-color: #0073fffd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 3px;
    margin: 2px;
}

.btn_tbl_mini_expande {
    background: #13e40ffd;
    border-color: #13e40ffd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 3px;
    margin: 2px;
}

.btn_mc_mini_editar {
    background: #ebdc13d7;
    border-color: #ebdc13d7;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px;
    margin: 3px;
}

.btn_tbl_mini_editar {
    background: #ebdc13d7;
    border-color: #ebdc13d7;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 3px;
    margin: 1px;
}

.btn_mc_mini_borrar {
    background: #d71111fd;
    border-color: #d71111fd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px;
    margin: 3px;
}

.btn_tbl_mini_borrar {
    background: #d71111fd;
    border-color: #d71111fd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 3px;
    margin: 2px;
}

.btn_mc_mini_imprimir {
    background: #314350;
    border-color: #314350;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px;
    margin: 3px;
}

.btn_tbl_mini_imprimir {
    background: #15222B;
    border-color: #15222B;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 3px;
    margin: 2px;
}

.btn_mc_mini_file {
    background: #080808fd;
    border-color: #080808fd;
    color: white;
    text-decoration: none;
    border-radius: 15%;
    padding: 6px;
    margin: 3px;
}

.datosFooter {
    background: #213443;
    border-color: #213443;
    color: white;
    padding: 1px;
    margin: 1px;
    display: inline;
}

/* Fondos Modal */
.fondo {
    background-color: rgba(102, 89, 89, 0.509);
}

.fondoborrar {
    background-color: rgba(231, 16, 16, 0.219);
}

.HeaderFondo {
    background-color: #15222B;
}

.TextoCiro {
    color: #ecf1eec6;
    font-size: 11px;
}

.LineaTituloP {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.LineaTituloP2 {
    background-color: #ffffffc6;
    color: rgb(32, 25, 99);
    font-size: 15px;
    opacity: 0.81;
    padding: 17px;
    border-radius: 5px;
    margin-top: 11px;
}

.LineaTituloA {
    background-color: #3b8bf4e8;
    font-size: 15px;
    color: rgb(98, 170, 5);
    opacity: 0.81;
}

.formCiro {
    background-color: orange;
    color: dimgrey;
    margin: 3px;
    border-radius: 3px;
}

.fondoInput {
    background-color: #ffca99;
    border-radius: 3px;
    border: solid #ff6961 0.5px;
    font-size: 13px;
}

.inputcss {
    background-color: #ffca99;
    border-radius: 3px;
    border: solid #ff6961 0.5px;
    font-size: 13px;
    box-sizing: border-box;
}

.tablacss {
    width: 100%;
    border-collapse: collapse;
}

.tabla2css {
    /*ancho fijo para formularios*/
    table-layout: fixed;
    width: 1150px;
}

.ciro-table-header {
    background-color: #f8f9fa;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.labelcss {
    font-size: 11px;
    color: #696a6c;
    text-align: center;
}

.modalcss {
    background-color: #ffe4e1;
}

.headermodalcss {
    background-color: #15222B !important;
    color: #ffffeb;
    font-size: 11px;
    opacity: 0.91;
    padding: 7px;
    border-radius: 5px;
    margin: 5px;
}

.ciro-input{
    background-color: #e9ecef; 
    border: 1px solid #ced4da;
}

.ciro-select{
    background-color: #e9ecef; 
    border: 1px solid #ced4da;
}

/*====VALIDACION DE INPUT POR HTML  */
input:invalid {
    border: 2px solid rgb(255, 255, 255);
}

input:valid {
    border: 2px solid rgb(15, 78, 15);
}

/* Nuevos recomendados por IA */
h2 {
    font-size: 1.4rem;
}

.btn-action {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #212529;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.toggle-filtros {
    color: #0d6efd;
    text-decoration: none;
}

.toggle-filtros:hover {
    text-decoration: underline;
}

.table thead {
    background-color: #15222B;
}

.table-hover tbody tr:hover {
    background-color: #eef3f8;
}

.card {
    border-radius: 12px;
}

input,
select {
    font-size: 0.9rem;
}

.custom-label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: #121416;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

/* === ESTILOS ESPECÍFICOS PARA ESTA PÁGINA === */

/* Asegurar que el main ocupe el espacio restante para que el footer se muestre al final */
#main {
    min-height: calc(100vh - 120px); /* Ajusta según la altura de tu header y footer */
}

/* Tabla responsive */
.table-responsive {
    overflow-x: auto;
}

/* Modal styles */
.modal-header.bg-primary {
    background-color: #15222B !important;
}

/* Ajustes para los botones de acción en la tabla */
.btn-action {
    background: #4CAF50;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 5px;
}

.btn-action:hover {
    background-color: #388E3C;
    transform: translateY(-1px);
}

.btn-action.delete {
    background: #F44336;
}

.btn-action.delete:hover {
    background-color: #D32F2F;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    filter: brightness(0) invert(1);
}

/*alertas inventario */
/* Estilos para alertas de stock */
.table-danger {
    background-color: #f8d7da !important;
    border-left: 4px solid #dc3545;
}

.table-warning {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

/* Iconos de estado */
.bi-exclamation-triangle-fill {
    color: #dc3545;
}

.bi-exclamation-circle-fill {
    color: #ffc107;
}

.bi-check-circle-fill {
    color: #198754;
}


/*======DASHBOARD=====*/
/* Estilos para el Dashboard */
.dashboard .card {
    border: none;
    border-radius: 10px;
}

.dashboard .card-header {
    border-radius: 10px 10px 0 0 !important;
    border-bottom: 2px solid #15222B;
}

.card-hover {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(21, 34, 43, 0.15);
    border-color: #15222B;
}

/* Colores para estados de stock */
.stock-critico {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.stock-bajo {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.stock-normal {
    background-color: #d1edf1;
    border-left: 4px solid #17a2b8;
}

/* Badges personalizados */
.badge-critico {
    background-color: #dc3545;
    color: white;
}

.badge-bajo {
    background-color: #ffc107;
    color: #212529;
}

/* Animaciones */
@keyframes pulse-alert {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.pulse-alert {
    animation: pulse-alert 2s infinite;
}


/*AYUDA */
/* === ESTILOS ESPECÍFICOS PARA AYUDA === */

.help-section {
    margin-bottom: 2rem;
}

.help-card {
    border-left: 4px solid #15222B;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.list-group-item.active {
    background-color: #15222B;
    border-color: #15222B;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #15222B;
}

/* Navegación de ayuda */
.help-nav {
    position: sticky;
    top: 20px;
}

/* Iconos de ayuda */
.help-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .help-nav {
        position: static;
        margin-bottom: 20px;
    }
}