/**************************************************************************************************************************************/
/*Custom*/
/**************************************************************************************************************************************/
.td-acciones-btn-1 {
    min-width: 40px;
    width: 40px;
}

.td-acciones-btn-2 {
    min-width: 90px;
    width: 90px;
}

.td-acciones-btn-3 {
    min-width: 135px;
    width: 135px;
}

.td-acciones-btn-4 {
    min-width: 180px;
    width: 180px;
}

.td-acciones-btn-5 {
    min-width: 225px;
    width: 225px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .card-header {
        font-size: 1.1em;
    }
}
@media (max-width: 768px) {
    .some-decorative-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .card {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    input, button, select, textarea {
        font-size: 16px; /* Tamaño adecuado para tocar */
    }
}

/* Reemplaza la imagen interna por fondo del contenedor */
#cloud {
    height: 140px; /* ajusta a lo que necesites */
    margin: 8px 12px;
    background: url('/images/Tyson/tyson-watermark.png') center top / contain no-repeat;
    overflow: visible;
}

    #cloud > span {
        display: none;
    }
/* ocultamos el <img> */


/* ========= PALETA TYSON (claro) ========= */
:root {
    --brand-red: #E12D2D;
    --brand-gold: #C8A24F;
    --brand-charcoal: #1B1B1B;
    --brand-canvas: #F5F1EB;
}

body {
    background: var(--brand-canvas);
    color: #1b1b1b;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ======= LOGO EN HEADER (por si lo usas arriba) ======= */
.brand-logo, .brand-logo-sm {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.brand-logo-sm {
    width: 28px;
    height: 28px;
}

/* ======= CONTENEDOR DEL LOGO EN EL SIDEBAR =======
   Evita cortes: usamos background con contain */
#cloud {
    height: 150px; /* ajusta si quieres más/menos alto */
    margin: 10px 12px 0 12px;
    background: url('/images/Tyson/tyson-watermark.png') center top / contain no-repeat;
    border-radius: 10px;
    overflow: visible;
}

    #cloud > span {
        display: none;
    }
/* ocultamos el <img> interno */

/* ======= SEPARADOR Y BLOQUES ======= */
.barra-lateral hr {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 8px 16px 16px;
}

/* ======= MENÚ LATERAL EN CLARO ======= */
.barra-lateral {
    background: #fff; /* claro */
    border-right: 1px solid #eee;
}

/* Botón grande (Dashboard) – redondeado */
.boton {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 16px;
    padding: 12px 16px;
    color: #fff !important;
    background: #1B1B1B;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

    .boton:hover {
        filter: brightness(.95);
    }

/* Links del menú */
.navegacion .nav-link,
.navegacion .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a5f66;
    font-weight: 600;
    padding: .6rem 1rem;
    border-radius: 10px;
    margin: 6px 12px;
}

    .navegacion .nav-link:hover,
    .navegacion .dropdown-item:hover {
        color: #1b1b1b;
        background: rgba(200,162,79,.14);
    }

/* Iconos grises suaves */
.navegacion i, .ion-icon {
    color: #8c9096;
}

/* Dropdown del menú Catálogos (claro, con sombra) */
.navegacion .dropdown-menu {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    padding: 10px;
    margin-left: 6px; /* pequeño desplazamiento para que no tape el borde */
}

/* Estado activo (si lo marcas desde servidor con 'active') */
.navegacion .dropdown-item.active,
.navegacion .nav-link.active {
    color: #1b1b1b;
    background: rgba(200,162,79,.22);
}

/* Título de grupo (p.ej. “Catálogos”) */
.navegacion .nav-item > .nav-link.dropdown-toggle {
    font-size: 1.05rem;
}

/* ======= CABECERA NEGRA (si tienes navbar arriba) ======= */
.navbar-tyson {
    background: var(--brand-charcoal);
    border-bottom: 3px solid var(--brand-gold);
}

    .navbar-tyson .navbar-brand {
        color: #fff;
        font-family: Oswald, Inter, sans-serif;
        letter-spacing: .3px;
    }

/* ======= TABLE HEAD (reportes) ======= */
table.dataTable thead th {
    background: linear-gradient(180deg,#FDF6EE,#F8EED8);
    color: #1b1b1b;
    font-weight: 600;
    border-bottom: 0;
}

/* la card puede crecer en alto si la pantalla es chica, pero capamos el canvas */
.chart-card {
    /* NO uses h-100 aquí */
    display: flex;
    flex-direction: column;
}

    .chart-card .chart-canvas {
        display: block;
        width: 100% !important;
        height: auto !important; /* <- clave: nada de 100% */
        max-height: 520px; /* tope para que no se “estire” hacia abajo */
    }

@media (min-width: 1400px) {
    .chart-card .chart-canvas {
        max-height: 600px;
    }
}

