body {
    background-color: #f4f6f9;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

.card-header {
    font-weight: 600;
}

.table-responsive {
    max-height: 480px;
    overflow-y: auto;
}

/* ---- Barra lateral de navegación (submenús) ---- */
.sidebar-nav {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    background: #fff;
    border-radius: .5rem;
    padding: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.sidebar-nav .nav-link {
    text-align: left;
    color: #333;
    border-radius: .375rem;
    padding: .6rem .8rem;
    margin-bottom: .3rem;
}

.sidebar-nav .nav-link i {
    width: 1.3rem;
    display: inline-block;
    text-align: center;
}

.sidebar-nav .nav-link:hover {
    background-color: #eef3fb;
}

.sidebar-nav .nav-link.active {
    font-weight: 600;
}

/* ---- Dashboard: ASN Abiertos (dona) ---- */
.dashboard-donut-card {
    --donut-surface: #fcfcfb;
    --text-primary: #0b0b0b;
    --text-secondary: #52514e;
    --series-creado: #2a78d6;
    --series-transmitido: #eb6834;
    --series-confirmado: #1baf7a;
    --series-validado: #eda100;
    --series-enviado: #e87ba4;
    --series-otro: #008300;
}

.donut-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    flex: 0 0 auto;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.donut-hero {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.donut-hero-label {
    font-size: .8rem;
    color: var(--text-secondary);
    margin-top: .25rem;
}

.donut-slice {
    cursor: pointer;
    transition: opacity .15s ease;
}

.donut-slice:hover,
.donut-slice:focus {
    opacity: .82;
    outline: none;
}

.donut-tooltip {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    background: #0b0b0b;
    color: #fff;
    padding: .4rem .6rem;
    border-radius: 4px;
    font-size: .82rem;
    pointer-events: none;
    white-space: nowrap;
    transform: translate(-50%, -115%);
}

.donut-tooltip .valor {
    font-weight: 700;
}

.donut-tooltip .etiqueta {
    color: #c3c2b7;
    margin-left: .35rem;
}

.donut-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
