/* Splash de boot do ERP — cobre o flash de layout até a sessão e o menu estarem prontos. */
html.eq-booting {
    background: #060b14;
}
html.eq-booting.eq-boot-mask,
html.eq-booting.eq-boot-mask body {
    overflow: hidden;
}

html.eq-booting.eq-boot-mask body > *:not(#eqBootLoader) {
    visibility: hidden !important;
    pointer-events: none !important;
}
html.eq-booting #eqBootLoader {
    visibility: visible !important;
    pointer-events: auto !important;
}
html.eq-booting.eq-boot-mask #telaPainel {
    visibility: hidden !important;
    pointer-events: none !important;
}

html.eq-menu-encolhido #sidebarAdmin,
html.eq-menu-encolhido #telaPainel > aside,
html.eq-menu-encolhido #telaDashboard > aside,
html.eq-menu-encolhido #telaOrcamento > aside,
html.eq-menu-encolhido #telaPedido > aside,
html.eq-menu-encolhido #telaNfe > aside,
html.eq-menu-encolhido #telaPdv > aside,
html.eq-menu-encolhido #telaProposta > aside,
html.eq-menu-encolhido #telaSaidas > aside,
html.eq-menu-encolhido #telaCompras > aside {
    width: var(--sidebar-w-col, 60px) !important;
}
html.eq-menu-encolhido aside .txt-menu,
html.eq-menu-encolhido aside .eq-nav-filho,
html.eq-menu-encolhido aside .eq-nav-seta,
html.eq-menu-encolhido aside .eq-nav-filhos,
html.eq-menu-encolhido aside .btn-sair-admin span,
html.eq-menu-encolhido aside #razaoSocialSidebar,
html.eq-menu-encolhido aside #cnpjSidebar,
html.eq-menu-encolhido aside .empresa-info-badge,
html.eq-menu-encolhido aside .logo-area img {
    display: none !important;
}

.eq-boot-loader {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #060b14;
    color: #e2e8f0;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

html.eq-boot-ready .eq-boot-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.eq-boot-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(43, 92, 146, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 92, 146, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
    animation: eqBootGrid 14s linear infinite;
}

@keyframes eqBootGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 42px 42px, 42px 42px; }
}

.eq-boot-card {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    text-align: center;
    padding: 36px 28px 30px;
    border-radius: 16px;
    border: 1px solid rgba(43, 92, 146, 0.35);
    background: rgba(8, 14, 26, 0.82);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.eq-boot-ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 2px solid rgba(43, 92, 146, 0.25);
    display: grid;
    place-items: center;
    position: relative;
}

.eq-boot-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--eq-boot-accent-2, #2b5c92);
    border-right-color: rgba(43, 92, 146, 0.35);
    animation: eqBootSpin 1.1s linear infinite;
}

.eq-boot-ring i {
    font-size: 1.55rem;
    color: #93c5fd;
    animation: eqBootPulse 1.6s ease-in-out infinite;
}

@keyframes eqBootSpin { to { transform: rotate(360deg); } }
@keyframes eqBootPulse {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

.eq-boot-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.eq-boot-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.eq-boot-msg {
    font-size: 0.86rem;
    color: #94a3b8;
    min-height: 1.25rem;
    margin-bottom: 18px;
}

.eq-boot-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 14px;
}

.eq-boot-bar {
    height: 100%;
    width: 12%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--eq-boot-accent-2, #2b5c92), #60a5fa);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
    transition: width 0.35s ease;
}

.eq-boot-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eq-boot-meta strong {
    color: #cbd5e1;
    font-weight: 600;
}

@media print {
    .eq-boot-loader { display: none !important; }
    html.eq-booting, html.eq-booting body { overflow: visible; }
}
