/**
 * Modo TPV limpio para Castillo Reparaciones.
 * Este fichero se carga automáticamente en el controlador TPVneo.
 * Solo actúa cuando la URL contiene ?fullscreen=1.
 * @author Codilogic <https://codilogic.com>
 */
html.castillo-tpv-fullscreen,
html.castillo-tpv-fullscreen body {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Ocultar navegación superior y lateral de FacturaScripts. */
html.castillo-tpv-fullscreen body > nav,
html.castillo-tpv-fullscreen body > header,
html.castillo-tpv-fullscreen body > aside,
html.castillo-tpv-fullscreen aside.left-sidebar,
html.castillo-tpv-fullscreen .navbar,
html.castillo-tpv-fullscreen .navbar-expand,
html.castillo-tpv-fullscreen .navbar-expand-lg,
html.castillo-tpv-fullscreen .sidebar,
html.castillo-tpv-fullscreen .main-sidebar,
html.castillo-tpv-fullscreen .sidebar-wrapper,
html.castillo-tpv-fullscreen .offcanvas,
html.castillo-tpv-fullscreen #sidebar,
html.castillo-tpv-fullscreen #sidebarMenu,
html.castillo-tpv-fullscreen #navbar,
html.castillo-tpv-fullscreen #header {
    display: none !important;
}

/* Eliminar huecos que deja el sidebar/layout estándar. */
html.castillo-tpv-fullscreen main,
html.castillo-tpv-fullscreen #main,
html.castillo-tpv-fullscreen #content,
html.castillo-tpv-fullscreen .main-content,
html.castillo-tpv-fullscreen .content,
html.castillo-tpv-fullscreen .content-wrapper,
html.castillo-tpv-fullscreen .container-fluid,
html.castillo-tpv-fullscreen #main-wrapper,
html.castillo-tpv-fullscreen .page-wrapper,
html.castillo-tpv-fullscreen .wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

html.castillo-tpv-fullscreen .castillo-fullscreen-button {
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 2147483647;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

html.castillo-tpv-fullscreen:fullscreen .castillo-fullscreen-button,
html.castillo-tpv-fullscreen body:fullscreen .castillo-fullscreen-button {
    display: none !important;
}

/* Selectores confirmados en FacturaScripts 2026 / TPVneo 4.x */
html.castillo-tpv-fullscreen #main-wrapper > aside.left-sidebar,
html.castillo-tpv-fullscreen #main-wrapper aside.left-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}
html.castillo-tpv-fullscreen #main-wrapper .page-wrapper {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
