﻿/* ===========================
   BASE (lo tuyo, ordenado)
   =========================== */

.contenedor {
    width: 100%;
    text-align: center;
}

    .contenedor label {
        display: inline-block;
        text-align: right;
    }

    /* OJO: el float:right suele romper layouts en móvil.
   Mejor: inline-block sin float. */
    .contenedor input {
        display: inline-block;
        text-align: left;
        float: none;
    }

/* ===========================
   PAGER GridView (lo tuyo)
   =========================== */

.grid_buscar_pager a,
.grid_buscar_pager span {
    display: inline-block;
    min-height: 26px;
    min-width: 28px;
    line-height: 24px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    padding: 0 6px;
    border-radius: 8px;
    margin: 0 2px;
}

.grid_buscar_pager a {
    background-color: #f5f5f5;
    color: #6b7280;
    border: 1px solid #cfd4dc;
}

    .grid_buscar_pager a:hover {
        background: #eef2f7;
        border-color: #b9c2cf;
    }

.grid_buscar_pager span {
    background-color: #A1DCF2;
    color: #000;
    border: 1px solid #3AC0F2;
}

/* ===========================
   LOGIN
   =========================== */

.login-page {
    background-image: url(../dist/img/background_login.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* ===========================
   BOTON DESCARGAR (lo tuyo, mejorado)
   =========================== */

.boton_descargar {
    background-color: #286090;
    color: white;
    height: 40px;
    border-radius: 12px;
    border: none;
    padding: 0 14px;
}

    .boton_descargar:hover {
        box-shadow: 0 12px 16px rgba(0,0,0,0.16), 0 17px 50px rgba(0,0,0,0.12);
        transition: box-shadow .25s ease;
    }

/* ===========================
   ROUND CORNERS (lo tuyo)
   =========================== */

.div_round_corners {
    border-radius: 25px;
}

/* ===========================
   RESPONSIVE (lo tuyo)
   =========================== */

@media only screen and (max-width: 900px) {
    .boton_descargar {
        visibility: hidden;
    }
}

@media only screen and (max-width: 425px) {
    .boton_descargar {
        visibility: hidden;
    }

    #lbl_ventas_efectivo {
        font-size: 25px;
    }
}

/* ==========================================================
   MODERNIZACIÓN AdminLTE SIN ROMPER (esto es lo “nuevo”)
   ========================================================== */

/* Fondo general */
.content-wrapper {
    background: #f5f7fb;
}

/* “Card look” para .box */
.box {
    border-top: 0 !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, .08);
    overflow: hidden;
}

.box-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 14px 16px;
}

.box-title {
    font-weight: 600;
}

/* Espaciado entre secciones */
.row {
    margin-bottom: 14px;
}

/* Tablas más limpias */
.table {
    margin-bottom: 0;
}

    .table > thead > tr > th {
        background: rgba(0,0,0,.02);
        border-bottom: 1px solid rgba(0,0,0,.08) !important;
        font-weight: 600;
    }

.table-bordered {
    border: 0;
}

    .table-bordered > tbody > tr > td,
    .table-bordered > thead > tr > th {
        border: 0 !important;
    }

.table-hover > tbody > tr:hover {
    background: rgba(54, 127, 169, .06);
}

/* Small-box más moderno */
.small-box {
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(18, 38, 63, .10);
    overflow: hidden;
}

    .small-box .inner h3 {
        font-weight: 700;
        letter-spacing: .2px;
    }

    .small-box .small-box-footer {
        background: rgba(0,0,0,.08);
    }

/* Sidebar/header con feeling más “app” */
.main-header .logo,
.main-header .navbar {
    box-shadow: 0 6px 18px rgba(18, 38, 63, .10);
}

.skin-blue .main-header .navbar {
    background-color: #2f3b52;
}

.skin-blue .main-header .logo {
    background-color: #263149;
}

.skin-blue .sidebar-menu > li > a {
    padding: 12px 15px;
}

.skin-blue .sidebar-menu > li.active > a {
    border-left: 0;
    border-radius: 10px;
    margin: 4px 10px;
}

/* SweetAlert más elegante */
.swal2-popup {
    border-radius: 14px !important;
    font-size: 1.6rem !important;
}


/* ===== Submenu (treeview-menu) más moderno ===== */
.sidebar-menu .treeview-menu {
    margin: 6px 10px 10px 10px;
    padding: 8px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
}

    .sidebar-menu .treeview-menu > li {
        margin: 6px 0;
    }

        .sidebar-menu .treeview-menu > li > a {
            padding: 10px 12px !important;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255,255,255,.85) !important;
            background: rgba(255,255,255,.05);
            transition: background .15s ease, transform .15s ease;
        }

            .sidebar-menu .treeview-menu > li > a i {
                width: 18px;
                text-align: center;
                opacity: .95;
            }

            /* hover y active */
            .sidebar-menu .treeview-menu > li > a:hover {
                background: rgba(255,255,255,.12);
                transform: translateX(2px);
            }

        .sidebar-menu .treeview-menu > li.active > a {
            background: rgba(255,255,255,.18);
            font-weight: 600;
        }

/* detalle: que el submenú no se vea tan “indentado” */
.sidebar-menu .treeview-menu {
    padding-left: 10px !important;
}



/* ===========================
   SIDEBAR tipo app
   =========================== */

.skin-blue .main-sidebar {
    background: #1f2a3a; /* más moderno que el azul default */
}

.sidebar {
    padding-bottom: 16px;
}

/* Perfil */
.app-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px;
    margin: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
}

.app-user__avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

    .app-user__avatar img {
        width: 44px;
        height: 44px;
        border-radius: 14px; /* más app que círculo */
        object-fit: cover;
    }

.app-user__status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #1f2a3a;
}

.app-user__meta {
    min-width: 0;
}

.app-user__name {
    font-weight: 700;
    color: rgba(255,255,255,.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user__role {
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

/* Secciones */
.app-menu__section {
    padding: 10px 16px 6px;
    margin-top: 8px;
    color: rgba(255,255,255,.45);
    font-size: 11px;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.app-menu__divider {
    height: 1px;
    background: rgba(255,255,255,.10);
    margin: 10px 14px;
}

/* Items */
.sidebar-menu.app-menu {
    margin: 0;
}

    .sidebar-menu.app-menu > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 6px 10px;
        padding: 11px 12px;
        border-radius: 12px;
        color: rgba(255,255,255,.80);
        background: rgba(255,255,255,.03);
        transition: background .15s ease, transform .15s ease;
    }

        .sidebar-menu.app-menu > li > a i {
            width: 18px;
            text-align: center;
            opacity: .95;
        }

        .sidebar-menu.app-menu > li > a:hover {
            background: rgba(255,255,255,.10);
            transform: translateX(2px);
        }

/* Active */
.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li.menu-open > a {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}

/* Submenu tipo cards */
.sidebar-menu .treeview-menu {
    margin: 6px 10px 10px 10px;
    padding: 8px;
    background: rgba(255,255,255,.05);
    border-radius: 12px;
}

    .sidebar-menu .treeview-menu > li {
        margin: 6px 0;
    }

        .sidebar-menu .treeview-menu > li > a {
            padding: 10px 12px !important;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255,255,255,.82) !important;
            background: rgba(255,255,255,.04);
            transition: background .15s ease, transform .15s ease;
        }

            .sidebar-menu .treeview-menu > li > a:hover {
                background: rgba(255,255,255,.10);
                transform: translateX(2px);
            }

/* Cerrar sesión destacado */
.app-item--danger > a {
    background: rgba(239,68,68,.12) !important;
}

    .app-item--danger > a:hover {
        background: rgba(239,68,68,.18) !important;
    }

/* Ajuste: quita el header clásico de AdminLTE si quedara visible */
.sidebar-menu > li.header {
    display: none;
}


/* ===========================
   SIDEBAR CLARO tipo app
   =========================== */

/* Sidebar fondo claro */
.skin-blue .main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(0,0,0,.08);
}

/* El wrapper interno */
.skin-blue .sidebar {
    background: transparent !important;
}

/* Quitar el header clásico de AdminLTE */
.sidebar-menu > li.header {
    display: none;
}

/* Perfil claro */
.app-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px;
    margin: 10px;
    border-radius: 14px;
    background: #f6f8fc;
    border: 1px solid rgba(0,0,0,.06);
}

.app-user__avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

    .app-user__avatar img {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        object-fit: cover;
        border: 1px solid rgba(0,0,0,.08);
    }

.app-user__status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}

.app-user__name {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user__role {
    font-size: 12px;
    color: #6b7280;
}

/* Secciones */
.app-menu__section {
    padding: 10px 18px 6px;
    margin-top: 6px;
    color: #9aa4b2;
    font-size: 11px;
    letter-spacing: .9px;
    text-transform: uppercase;
}

/* Divisor */
.app-menu__divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 10px 14px;
}

/* Items estilo “botón app” */
.sidebar-menu.app-menu {
    margin: 0;
}

    .sidebar-menu.app-menu > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 6px 10px;
        padding: 11px 12px;
        border-radius: 12px;
        color: #334155 !important;
        background: #ffffff;
        border: 1px solid rgba(0,0,0,.06);
        transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    }

        .sidebar-menu.app-menu > li > a i {
            width: 18px;
            text-align: center;
            color: #64748b;
        }

        /* Hover */
        .sidebar-menu.app-menu > li > a:hover {
            background: #f6f8fc;
            transform: translateX(2px);
            box-shadow: 0 10px 20px rgba(18, 38, 63, .08);
        }

/* Active / abierto */
.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li.menu-open > a {
    background: #eef2ff !important;
    border-color: rgba(99,102,241,.25) !important;
    color: #111827 !important;
    box-shadow: 0 10px 20px rgba(99,102,241,.10);
}

    .skin-blue .sidebar-menu > li.active > a i,
    .skin-blue .sidebar-menu > li.menu-open > a i {
        color: #4f46e5;
    }

/* Submenu como cards */
.sidebar-menu .treeview-menu {
    margin: 6px 10px 10px 10px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
}

    .sidebar-menu .treeview-menu > li {
        margin: 6px 0;
    }

        .sidebar-menu .treeview-menu > li > a {
            padding: 10px 12px !important;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #334155 !important;
            background: #ffffff;
            border: 1px solid rgba(0,0,0,.06);
            transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
        }

            .sidebar-menu .treeview-menu > li > a i {
                width: 18px;
                text-align: center;
                color: #64748b;
            }

            .sidebar-menu .treeview-menu > li > a:hover {
                background: #f6f8fc;
                transform: translateX(2px);
                box-shadow: 0 10px 20px rgba(18, 38, 63, .08);
            }

        /* Submenu activo */
        .sidebar-menu .treeview-menu > li.active > a {
            background: #eef2ff !important;
            border-color: rgba(99,102,241,.25) !important;
            font-weight: 700;
        }

/* “Cerrar sesión” con estilo peligro pero elegante */
.app-item--danger > a {
    background: #fff !important;
    border: 1px solid rgba(239,68,68,.22) !important;
}

    .app-item--danger > a i {
        color: #ef4444 !important;
    }

    .app-item--danger > a:hover {
        background: rgba(239,68,68,.06) !important;
    }

/* Ajustes para que el texto no se vea “aplastado” */
.sidebar-menu li > a > span {
    font-weight: 600;
}

/* Opcional: que el sidebar claro no herede sombras raras */
.main-sidebar, .left-side {
    box-shadow: none !important;
}

/* ===========================
   FIX: quitar "bloque/sombra" detrás del submenu
   =========================== */

/* Quita el fondo oscuro/box del contenedor del submenu */
.skin-blue .sidebar-menu.app-menu .treeview-menu,
.skin-blue .sidebar-menu .treeview-menu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 6px 10px 10px 10px !important; /* conserva el margen bonito */
}

    /* Por si AdminLTE mete pseudo-elementos o estilos raros */
    .skin-blue .sidebar-menu .treeview-menu:before,
    .skin-blue .sidebar-menu .treeview-menu:after {
        content: none !important;
        display: none !important;
    }

    /* Asegura que el "indent" clásico no haga barras oscuras */
    .skin-blue .sidebar-menu .treeview-menu > li > a {
        margin: 6px 0 !important; /* separación entre cards */
    }

/* Opcional: elimina el fondo al hacer hover del contenedor */
.skin-blue .sidebar-menu .treeview.menu-open > a,
.skin-blue .sidebar-menu .treeview > a {
    box-shadow: none !important;
}



/* ===== KPI Cards (estilo moderno) ===== */
.kpi-row {
    margin-bottom: 10px;
}

.kpi-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 12px 14px;
    text-decoration: none !important;
    color: #111;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 25px rgba(20, 30, 60, .06);
    transition: transform .12s ease, box-shadow .12s ease;
    min-height: 112px;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(20, 30, 60, .10);
    }

.kpi-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.kpi-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563; /* gris */
    letter-spacing: .2px;
}

.kpi-card__chev {
    color: #9ca3af;
    font-size: 14px;
}

.kpi-card__value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin: 2px 0 8px 0;
}

.kpi-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kpi-subtext {
    font-size: 12px;
    color: #6b7280;
}

/* badges vs ayer */
.kpi-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.kpi-badge--up {
    background: rgba(16,185,129,.12);
    color: #059669;
    border-color: rgba(16,185,129,.25);
}

.kpi-badge--down {
    background: rgba(239,68,68,.10);
    color: #dc2626;
    border-color: rgba(239,68,68,.25);
}

.kpi-badge--neutral {
    background: rgba(107,114,128,.10);
    color: #374151;
    border-color: rgba(107,114,128,.20);
}
