/**
 * Reset CSS - Admin SEAP
 * 
 * Reset y normalización de estilos base del navegador
 * Basado en modern-normalize y custom resets
 */

/* ============================================
   BOX SIZING
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================
   DOCUMENT
   ============================================ */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================
   SECTIONS
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

p {
    margin: 0;
}

/* ============================================
   GROUPING
   ============================================ */

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

abbr[title] {
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* ============================================
   TABLES
   ============================================ */

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

/* ============================================
   FORMS
   ============================================ */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button,
select {
    text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
    appearance: button;
    background-color: transparent;
    background-image: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    appearance: textfield;
    outline-offset: -2px;
}

/* ============================================
   INTERACTIVE
   ============================================ */

summary {
    display: list-item;
}

/* ============================================
   LISTS
   ============================================ */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ============================================
   MEDIA
   ============================================ */

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: inherit;
    text-decoration: inherit;
}

/* ============================================
   MISC
   ============================================ */

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible polyfill */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--seap-primary, #F00064);
    outline-offset: 2px;
}

/* ============================================
   SCROLLBARS (WebKit)
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background-color: rgba(240, 0, 100, 0.2);
    color: inherit;
}