/* ==========================================================================
   NEXUS EDGE — FRONTEND BASE BRIDGE

   Camada mínima carregada pelo AppAsset.

   Regras visuais do frontend pertencem exclusivamente aos arquivos fe-*.
   Este arquivo não deve conter componentes, páginas, cores de tema, cards,
   gauges, sidebar, formulários, grids ou regras específicas de módulos.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

main,
header,
footer,
nav,
aside,
section,
article {
    min-width: 0;
}

img,
picture,
svg,
canvas,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
[role="button"],
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

/* Mantém conteúdo acessível para leitores de tela sem interferir no layout. */
.fe-sr-only,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Compatibilidade estrutural para mensagens de validação do Yii. */
.help-block,
.invalid-feedback {
    display: block;
}

.has-error .help-block,
.is-invalid ~ .invalid-feedback {
    visibility: visible;
}

/* Evita que tabelas e blocos de código forcem largura no shell. */
.table-responsive,
pre,
code {
    max-width: 100%;
}

pre {
    overflow: auto;
}
