/* ========================================
   HOLY CONTABILIDADE - RESET CSS
   Versão: 1.0
   Autor: DataNove Tecnologia

   Remove inconsistências entre navegadores
   e reseta estilos padrão
======================================== */

/* ========================================
   BOX MODEL UNIVERSAL
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   RESET DE ELEMENTOS
======================================== */

/* Remove estilos de listas */
ul,
ol {
    list-style: none;
}

/* Remove decoração de links */
a {
    text-decoration: none;
    color: inherit;
}

/* Remove borda padrão de imagens */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Remove estilos de botões */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Remove outline padrão (mas mantém acessibilidade) */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mantém outline para acessibilidade via teclado */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Remove estilos de inputs e formulários */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: none;
}

/* Remove aparência padrão de inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Remove spinner de inputs numéricos */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Remove X de inputs de busca no Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

/* Reset de select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Remove seta padrão do select no IE */
select::-ms-expand {
    display: none;
}

/* Reset de fieldset */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Reset de legend */
legend {
    padding: 0;
}

/* Remove estilos de tabelas */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset de th e td */
th,
td {
    padding: 0;
    text-align: left;
}

/* Reset de citações */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* Reset de hr */
hr {
    border: none;
    height: 1px;
    background: currentColor;
    margin: 0;
}

/* Reset de abbr */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* Reset de code, kbd, samp, pre */
code,
kbd,
samp,
pre {
    font-family: monospace;
    font-size: inherit;
}

/* Reset de small */
small {
    font-size: 80%;
}

/* Reset de sub e sup */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* ========================================
   NORMALIZE
======================================== */

/* Previne ajustes automáticos de font size no iOS */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Remove delay de tap no mobile */
a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Melhora renderização de fontes */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Previne overflow horizontal */
body {
    overflow-x: hidden;
}

/* Remove espaçamento extra em imagens no IE */
img {
    border-style: none;
}

/* Ajusta altura de line em SVG */
svg:not(:root) {
    overflow: hidden;
}

/* ========================================
   ACESSIBILIDADE
======================================== */

/* Esconde visualmente mas mantém para screen readers */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Remove animações para quem prefere reduzir movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   IMPRESSÃO
======================================== */
@media print {
    /* Remove cores de fundo ao imprimir */
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Melhor contraste para links */
    a,
    a:visited {
        text-decoration: underline;
    }

    /* Mostra URLs após links */
    a[href]::after {
        content: " (" attr(href) ")";
    }

    /* Previne quebra de página em elementos */
    img,
    tr,
    page {
        page-break-inside: avoid;
    }

    /* Adiciona quebra antes de h2, h3 */
    h2,
    h3 {
        page-break-after: avoid;
    }
}
