/* ==========================================================================
   TEXFLOW ERP — Reset / base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.011em;
}

h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
h4 { font-size: 13px; }

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
    color: var(--blue);
    text-decoration: none;
}
a:hover { color: var(--blue-dark); }

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

table { border-collapse: collapse; border-spacing: 0; width: 100%; }

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

button { cursor: pointer; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Numeric alignment for all ERP figures */
.num,
td.num,
th.num {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Focus visibility — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
label:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* 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: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--r) 0;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}
