/* ======================================================
   VARIABLES
====================================================== */
:root {
    --af-primary: #01417B;
    --af-bg: #f5f6f8;
    --af-border: #e5e5e5;
}

/* ======================================================
   BASE
====================================================== */
body {
    background: var(--af-bg);
    overflow-x: hidden;
}

/* ======================================================
   SIDEBAR
====================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid var(--af-border);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform .3s ease;
}

/* Visible */
.sidebar.show {
    transform: translateX(0);
}

/* Links */
.sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--af-primary);
    color: #fff;
}

/* ======================================================
   OVERLAY
====================================================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ======================================================
   BOTONES
====================================================== */
.btn-primary {
    background-color: var(--af-primary) !important;
    border-color: var(--af-primary) !important;
}

/* ======================================================
   charts dashbaords
====================================================== */
.chart-box {
   /* alto fijo */
    margin: 0 auto;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}


/* ======================================================
   DESKTOP
====================================================== */
@media (min-width: 992px) {
    .sidebar {
        position: static;
        transform: none;
    }

    .sidebar-overlay {
        display: none;
    }
}
