
/* Importar fuente Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/*!
 * Modern Business - Customized for NDM S.A.
 * Copyright 2013-2025 NDM S.A.
 * Licensed under MIT
 */

:root {
    /* Rojos */
    --ndm_red: #ba3337;         /* Rojo principal para botones y destacados */
    --ndm_red_hover: #9e2b2e;   /* Hover de rojo principal */
    --ndm_red_darker: #8B0000;  /* Rojo más oscuro para casos específicos */
    
    /* Grises */
    --ndm_gray: #2c2c2c;       /* Gris principal para fondos oscuros */
    --ndm_gray_dark: #1a1a1a;   /* Gris oscuro para gradientes */
    --ndm_gray_medium: #808080; /* Gris medio para botones e íconos */
    --ndm_gray_light: #e0e0e0;  /* Gris claro para bordes y fondos */
}

body {
    padding-top: 54px;
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

@media (min-width: 992px) {
    body {
        padding-top: 56px;
    }
}

/* Pie de página */
footer.bg-dark {
    background: linear-gradient(to bottom, var(--ndm_gray), #1a1a1a) !important; /* Forzado para asegurar el gris oscuro */
    border-top: 2px solid #444444;
    color: #ffffff;
    padding: 20px 0;
}

footer .container {22:25 14/05/2025
    max-width: 1200px;
}

footer p, footer small {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

footer img {
    transition: opacity 0.3s ease;
}

footer img:hover {
    opacity: 0.8;
}

/* Carrusel */
.carousel-item {
    height: 400px;
    background: no-repeat center center scroll;
    background-size: cover;
    transition: opacity 0.5s ease-in-out;
}

.carousel.fade .carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel.fade .carousel-item.active {
    opacity: 1;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-indicators li {
    background-color: #ffffff;
    opacity: 0.7;
}

.carousel-indicators .active {
    background-color: var(--ndm_red);
    opacity: 1;
}


.table th, .table td {
    border: none;
    padding: 10px;
    border-left: none;
    border-right: none;
}


}

table.table thead, table.dataTable thead {
    background-color: var(--ndm_red);
    color: #fff;
}
.sugerencias {
    background-color: var(--ndm_red);
    color: #fff;
}

table.table th, table.dataTable th {
    padding: 12px;
    text-align: left;
    font-weight: 600;

}

table.table tbody tr, table.dataTable tbody tr {
    transition: background-color 0.2s ease;
}

table.table tbody tr:nth-child(even), table.dataTable tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

table.table tbody tr:hover, table.dataTable tbody tr:hover {
    background-color: #e9f1f8;
}

table.table td, table.dataTable td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

table.table.no-footer, table.dataTable.no-footer {
    border-bottom: 1px solid #e0e0e0;
}

/* Ajustes para DataTables */
.dataTables_wrapper .dataTables_scrollBody {
    background-color: #ffffff;
}

.dataTables_wrapper .dataTables_scrollHeadInner,
.dataTables_wrapper .dataTables_scrollHeadInner table {
    width: 100% !important;
}

/* Tarjetas para móviles */
.product-cards {
    display: none;
    grid-template-columns: 1fr;
    gap: 15px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-height: 250px;
    overflow: hidden;
}

.product-card .image-container {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #333333;
}

.product-card .stock-icon {
    font-size: 1.2em;
}

.product-card .offer-badge {
    background-color: #ffcc00;
    color: #333333;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}

.product-card .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .table-responsive {
        display: none;
    }
    .product-cards {
        display: grid;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .product-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Encabezado de catálogo */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #ffffff;
    padding: 15px;
    gap: 10px;
}

.catalog-header h4 {
    margin: 0;
    font-size: 1.5rem;
}

.catalog-header .user-greeting {
    font-size: 1rem;
    color: #333333;
}

/* Panel de filtros */
.filter-panel {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.filter-panel .row.g-3 {
    align-items: center;
}

.filter-panel .checkboxes-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-panel .buttons-container {
    margin-left: auto;
}

.filter-panel .action-button {
    margin-left: 10px;
}

/* Portfolio items */
.portfolio-item {
    margin-bottom: 30px;
}

/* Botones */
.btn-danger, .action-button {
    background-color: var(--ndm_red);
    border-color: var(--ndm_red);
    color: #fff;
    transition: background-color 0.3s ease;
}
.btn-danger:hover, .action-button:hover {
    background-color: var(--ndm_red_hover);
    border-color: var(--ndm_red_hover);
}
.btn-outline-primary {
    border-color: var(--ndm_red);
    color: var(--ndm_red);
}
.btn-ndm-secondary {
    background-color: var(--ndm_gray_medium);   
    color: #fff;
}


/* Paginación */
.pagination .page-link {
    color: var(--ndm_blue);
}

.pagination .page-item.active .page-link {
    background-color: var(--ndm_blue);
    border-color: var(--ndm_blue);
    color: #ffffff;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .carousel-item {
        height: 250px;
    }

    table.table th, table.table td, table.dataTable th, table.dataTable td {
        padding: 8px;
        font-size: 0.85rem;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-panel .checkboxes-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-panel .buttons-container {
        margin-left: 0;
        margin-top: 10px;
    }

    footer .text-left, footer .text-right {
        text-align: center !important;
    }
}


/* Clase para el color rojo de NDM */
.ndm-red {
    background-color: #C3002F;
    color: white;
}

.ndm-red:hover {
    background-color: #A30028; /* Tono más oscuro para hover */
}


.sugerencias {
  background-color: #C3002F; /* Replace with NDM’s exact red hex code if different */
  padding: 20px; /* Optional: Adds spacing inside the panel */
  border-radius: 8px; /* Optional: Rounds corners for a modern look */
  color: #fff; /* Optional: Sets text color to white for contrast */
}

.sugerencias p,
.sugerencias h6,
.sugerencias .form-control,
.sugerencias .no-editable {
  color: #ba3337; /* Ensures text and select elements are readable */
}

.sugerencias .select-container {
  background-color: #b1b1b1; /* Optional: White background for select boxes to stand out */
  border-radius: 4px; /

/* Optional: Style the select dropdown arrow */
.sugerencias .select-icon {
  color: #C8102E; /* Matches the red theme */
}

.predictive-search {
    position: relative;
}
.predictive-suggestion {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    border: 1px solid #808080;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
    color: #8B0000;
    z-index: 1000;
    display: none;
}
.predictive-suggestion.show {
    display: block;
}

table {
    border-collapse: collapse; /* Evita bordes dobles */
}

th, td {
    border-left: none;  /* Elimina el borde izquierdo */
    border-right: none; /* Elimina el borde derecho */
}



#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
}
#loading-spinner .fa-spinner {
    color: #8B0000; /* Rojo de NDM */
}
#loading-spinner p {
    margin-top: 10px;
    color: #333;
    font-weight: bold;
}

.favorite-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5em;
    cursor: pointer;
    color: #808080;
}


.favorite-btn i.fa-heart-o {
    font-size: 14px; /* Tamaño base */
    color: gray; /* Gris solo contorno */
}

.favorite-btn i.fa-heart {
    font-size: 12px; /* Ligeramente más pequeño */
    color: #C3002F; /* Relleno rojo */
}

.favorite-btn i.fa-heart-o {
    color: #808080; /* Gris para no favoritos, contorno */
}
.favorite-btn i.fa-heart {
    color: #C3002F; /* Rojo para favoritos, relleno */
    font-size: 0.9em; /* Ligeramente más pequeño */
}


.cart-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.cart-btn i {
    transition: color 0.3s;
}
.cart-btn:hover i {
    color: #C3002F;
}

.action-button i {
    font-size: 1.2em; /* Igual a favoritos y carrito en escritorio */
}
@media (max-width: 767.98px) {
    .action-button i {
        font-size: 3.2em; /* Igual a favoritos y carrito en móvil */
    }
}

.cart-input-container {
    display: inline-flex;
    align-items: center;
}
.cart-input-container input {
    width: 60px;
    margin-right: 5px;
}
.cart-input-container .btn-sm {
    padding: 2px 8px;
}
.btn-ndm-primary {
    background-color: #C3002F;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    transition: background-color 0.3s;
}
.btn-ndm-primary:hover {
    background-color: #C3002F; /* Tono más oscuro para hover */
}

.alert-red {
    background-color: #C3002F;
    color: #FFFFFF;
    font-weight: bold;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}






