/* Aasperu | Financiero - Uniformizacion aprobada del Administrativo | 2026-10-21 | v15
 * Exclusivamente interfaz: panel financiero y comprobantes de compras.
 * Menus SVG nativos de NavegacionPlataforma.php; no requiere librerias externas.
 */
@media screen {
  /* PANEL PRINCIPAL: barra lateral que coincide con el Administrativo aprobado. */
  html body.aasperu-finance:not(.compras){padding-left:220px!important;min-height:100vh!important;display:flex!important;flex-direction:column!important;background:#f5f3f1!important}
  html body.aasperu-finance:not(.compras)>header.finance-header{
    position:fixed!important;inset:0 auto 0 0!important;z-index:100!important;
    width:220px!important;max-width:220px!important;box-sizing:border-box!important;
    padding:14px 11px 13px!important;margin:0!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    gap:0!important;background:linear-gradient(160deg,#90001f,#790018 46%,#530011 100%)!important;
    border:0!important;border-right:1px solid rgba(208,166,84,.45)!important;border-radius:0!important;
    box-shadow:2px 0 8px rgba(55,0,20,.12)!important;
    overflow-y:auto!important;overflow-x:hidden!important;color:#fff!important;
  }
  html body.aasperu-finance:not(.compras) .finance-identity{
    width:100%!important;display:block!important;text-align:center!important;
    padding:0 4px 15px!important;margin:0 0 13px!important;
    border:0!important;border-bottom:1px solid rgba(255,255,255,.22)!important;box-sizing:border-box!important;
  }
  html body.aasperu-finance:not(.compras) .finance-identity img{display:block!important;width:186px!important;max-width:100%!important;height:auto!important;object-fit:contain!important;margin:0 auto 12px!important}
  html body.aasperu-finance:not(.compras) .finance-identity>div{padding:0!important;margin:0!important;border:0!important;display:block!important}
  html body.aasperu-finance:not(.compras) .finance-identity .finance-system-title{display:block!important;font-size:11px!important;line-height:1.4!important;font-weight:700!important;text-transform:uppercase!important;color:#f2e3cb!important;letter-spacing:.3px!important;margin:0 0 5px!important}
  html body.aasperu-finance:not(.compras) .finance-identity .finance-legal-name{display:block!important;font-size:10px!important;line-height:1.5!important;color:#fff!important;margin:0!important}
  html body.aasperu-finance:not(.compras) .finance-identity small{display:block!important;font-size:9px!important;line-height:1.5!important;color:#ead7d9!important;margin:2px 0 0!important}
  html body.aasperu-finance:not(.compras)>main{box-sizing:border-box!important;max-width:none!important;width:100%!important;min-width:0!important;margin:0 auto!important;flex:1 0 auto!important}
  /* No alterar las tarjetas, tablas ni calculos. Se conserva el pie financiero original. */
  html body.aasperu-finance:not(.compras) main>.finance-footer{width:100%!important;max-width:none!important;align-self:stretch!important;box-sizing:border-box!important}

  /* Titulo discreto de seccion como el Administrativo aprobado. */
  html body.aasperu-finance:not(.compras) .finance-header nav[aria-label="Navegación principal"]::before,
  html body.compras-with-sidebar .compras-sidebar nav[aria-label="Navegación principal"]::before{
    content:'NAVEGACIÓN'!important;display:block!important;align-self:stretch!important;
    margin:0 0 5px!important;padding:3px 8px!important;color:#e4b7c2!important;
    font:500 9px/1.5 Roboto,Arial,sans-serif!important;letter-spacing:1px!important;
  }
  /* NAVEGACION COMUN - SVG pequeno, estado activo y submenus. */
  html body.aasperu-finance:not(.compras) .finance-header nav[aria-label="Navegación principal"],
  html body.compras-with-sidebar .compras-sidebar nav[aria-label="Navegación principal"]{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;gap:3px!important;width:100%!important;margin:0!important;text-align:left!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav[aria-label="Navegación principal"]>a,
  html body.aasperu-finance:not(.compras) .finance-header nav[aria-label="Navegación principal"]>details>summary,
  html body.compras-with-sidebar .compras-sidebar nav[aria-label="Navegación principal"]>a,
  html body.compras-with-sidebar .compras-sidebar nav[aria-label="Navegación principal"]>details>summary{
    display:flex!important;box-sizing:border-box!important;align-items:center!important;justify-content:flex-start!important;
    flex-wrap:nowrap!important;gap:10px!important;width:100%!important;min-height:35px!important;
    padding:8px 10px!important;margin:0!important;background:transparent!important;
    border:1px solid transparent!important;border-radius:5px!important;box-shadow:none!important;
    color:#fff!important;font:600 11px/1.35 Roboto,Arial,sans-serif!important;
    white-space:normal!important;text-decoration:none!important;cursor:pointer!important;text-align:left!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav[aria-label="Navegación principal"]>details,
  html body.compras-with-sidebar .compras-sidebar nav[aria-label="Navegación principal"]>details{
    display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav[aria-label="Navegación principal"]>details>summary,
  html body.compras-with-sidebar .compras-sidebar nav[aria-label="Navegación principal"]>details>summary{
    list-style:none!important;list-style-type:none!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav summary::-webkit-details-marker,
  html body.compras-with-sidebar .compras-sidebar nav summary::-webkit-details-marker{display:none!important}
  html body.aasperu-finance:not(.compras) .finance-header nav details>summary::after,
  html body.compras-with-sidebar .compras-sidebar nav details>summary::after{
    content:'›'!important;display:block!important;margin-left:auto!important;line-height:1!important;
    color:#f1c6d0!important;font:700 16px/1 Arial,sans-serif!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav details[open]>summary::after,
  html body.compras-with-sidebar .compras-sidebar nav details[open]>summary::after{content:'⌄'!important}
  html body.aasperu-finance:not(.compras) .finance-header nav>details[open]>summary,
  html body.aasperu-finance:not(.compras) .finance-header nav>a[aria-current="page"],
  html body.aasperu-finance:not(.compras) .finance-header nav>a:hover,
  html body.compras-with-sidebar .compras-sidebar nav>details[open]>summary,
  html body.compras-with-sidebar .compras-sidebar nav>a[aria-current="page"],
  html body.compras-with-sidebar .compras-sidebar nav>a:hover{
    background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.07)!important;color:#fff!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav details>a,
  html body.compras-with-sidebar .compras-sidebar nav details>a{
    box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:8px!important;width:calc(100% - 23px)!important;min-height:28px!important;
    margin:1px 0 1px 23px!important;padding:6px 6px 6px 9px!important;
    background:transparent!important;border:0!important;border-left:1px solid rgba(237,198,207,.45)!important;
    border-radius:0 5px 5px 0!important;color:#fff!important;text-align:left!important;
    font:500 10.5px/1.4 Roboto,Arial,sans-serif!important;text-decoration:none!important;white-space:normal!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav details:not([open])>a,
  html body.compras-with-sidebar .compras-sidebar nav details:not([open])>a{display:none!important}
  html body.aasperu-finance:not(.compras) .finance-header nav details>a[aria-current="page"],
  html body.aasperu-finance:not(.compras) .finance-header nav details>a:hover,
  html body.compras-with-sidebar .compras-sidebar nav details>a[aria-current="page"],
  html body.compras-with-sidebar .compras-sidebar nav details>a:hover{
    background:rgba(255,255,255,.15)!important;color:#fff!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav svg.aas-menu-icono,
  html body.compras-with-sidebar .compras-sidebar nav svg.aas-menu-icono{
    display:block!important;visibility:visible!important;opacity:1!important;box-sizing:content-box!important;
    position:static!important;flex:0 0 15px!important;width:15px!important;min-width:15px!important;
    max-width:15px!important;height:15px!important;max-height:15px!important;
    margin:0!important;padding:0!important;color:#fff!important;stroke:currentColor!important;
    fill:none!important;vertical-align:middle!important;transform:none!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav details>a svg.aas-menu-icono,
  html body.compras-with-sidebar .compras-sidebar nav details>a svg.aas-menu-icono{
    flex-basis:13px!important;width:13px!important;min-width:13px!important;max-width:13px!important;
    height:13px!important;max-height:13px!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav svg.aas-menu-icono *,
  html body.compras-with-sidebar .compras-sidebar nav svg.aas-menu-icono *{
    stroke:currentColor!important;fill:none!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav{flex:1 1 auto!important}
  html body.aasperu-finance:not(.compras) .finance-header nav form{
    width:100%!important;display:block!important;margin-top:auto!important;padding-top:15px!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav form button{
    box-sizing:border-box!important;width:100%!important;min-height:32px!important;
    margin:0!important;background:rgba(255,255,255,.12)!important;
    color:#fff!important;border:1px solid rgba(255,255,255,.32)!important;border-radius:5px!important;
    font:600 11px Roboto,Arial,sans-serif!important;
  }
  html body.aasperu-finance:not(.compras) .finance-header nav a:focus-visible,
  html body.aasperu-finance:not(.compras) .finance-header nav summary:focus-visible,
  html body.compras-with-sidebar .compras-sidebar nav a:focus-visible,
  html body.compras-with-sidebar .compras-sidebar nav summary:focus-visible{
    outline:2px solid #e5c17d!important;outline-offset:1px!important;
  }

  /* COMPROBANTES DE COMPRAS: misma barra lateral, sin tocar tablas ni acciones. */
  html body.compras-with-sidebar .compras-sidebar{
    width:220px!important;max-width:220px!important;box-sizing:border-box!important;
    background:linear-gradient(160deg,#90001f,#790018 46%,#530011 100%)!important;
    border:0!important;border-right:1px solid rgba(208,166,84,.45)!important;
    padding:14px 11px!important;gap:0!important;color:#fff!important;overflow-x:hidden!important;
  }
  html body.compras-with-sidebar .compras-sidebar-brand{
    background:transparent!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.22)!important;
    border-radius:0!important;padding:0 4px 14px!important;margin:0 0 12px!important;text-align:center!important;
  }
  html body.compras-with-sidebar .compras-sidebar-brand img{
    display:block!important;width:185px!important;max-width:100%!important;height:auto!important;object-fit:contain!important;margin:0 auto 10px!important;
  }
  html body.compras-with-sidebar .compras-sidebar-brand img{
    filter:brightness(0) saturate(100%) invert(77%) sepia(31%) saturate(619%) hue-rotate(353deg) brightness(93%) contrast(89%)!important;
  }
  html body.compras-with-sidebar .compras-sidebar-brand strong{display:block!important;color:#fff!important;font:700 10px/1.5 Roboto,Arial,sans-serif!important}
  html body.compras-with-sidebar .compras-sidebar-brand small{display:block!important;color:#ead7d9!important;font:400 9px/1.5 Roboto,Arial,sans-serif!important}
  html body.compras-with-sidebar .compras-sidebar-profile{
    display:block!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.22)!important;
    margin:0 0 12px!important;padding:0 7px 13px!important;color:#fff!important;
  }
  html body.compras-with-sidebar .compras-sidebar-profile strong{display:block!important;color:#fff!important;font:600 11px/1.5 Roboto,Arial,sans-serif!important}
  html body.compras-with-sidebar .compras-sidebar-profile small{display:block!important;color:#f5d7dc!important;font:400 10px/1.5 Roboto,Arial,sans-serif!important}
  html body.compras-with-sidebar>main{
    box-sizing:border-box!important;width:calc(100% - 220px)!important;margin-left:220px!important;
    margin-right:0!important;max-width:none!important;
  }
  html body.compras-with-sidebar .compras-sidebar .compras-sidebar-return{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.26)!important}
  /* Pie financiero original: solo ancho, sin cambiar contenido ni disposición de contactos. */
  html body.compras-with-sidebar main>.finance-footer{width:100%!important;max-width:none!important;box-sizing:border-box!important}
}
@media screen and (max-width:800px){
  html body.aasperu-finance:not(.compras){padding-left:0!important}
  html body.aasperu-finance:not(.compras)>header.finance-header{display:none!important;width:min(260px,85vw)!important;max-width:85vw!important;top:53px!important;bottom:0!important}
  html body.aasperu-finance.plataforma-menu-open:not(.compras)>header.finance-header{display:flex!important}
  html body.compras-with-sidebar .compras-sidebar{position:relative!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important}
  html body.compras-with-sidebar>main{margin-left:0!important;width:100%!important}
  html body.compras.compras-menu-collapsed .compras-sidebar{display:none!important}
}
@media print{
  html body.aasperu-finance:not(.compras){padding-left:0!important}
  html body.aasperu-finance:not(.compras)>header.finance-header,
  html body.compras .compras-sidebar{display:none!important}
  html body.compras-with-sidebar>main{margin-left:0!important;width:100%!important}
}
