/* https://www.joshwcomeau.com/css/custom-css-reset/ */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
    isolation: isolate;
}

/* end reset */

body, html {
    margin: 0;
    height: 100%;
}

h1 {
    margin-top: 12px;
    margin-bottom: 12px;
}

h2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

h3 {
    margin-top: 6px;
    margin-bottom: 6px;
}

p {
    margin-top: 4px;
    margin-bottom: 4px;
}

a.no-effect {
    color: inherit;
    text-decoration: none;
}

.error-message {
    color: var(--dx-color-danger);
    font-weight: bold;
}

.dx-icon {
    font-size: var(--dx-font-size-icon);
}

    .dx-icon.fa {
        width: 1em;
        /* Font Awesome icons are a bit bigger, so we scale them down slightly */
        font-size: calc(var(--dx-font-size-icon) * 0.95);
    }

@view-transition {
    navigation: auto;
}


/* DevExtreme specific CSS */

/* When loading indicator is in the button type 'Default' then the indicator color is the same as
    the button background color. This CSS changes the loading indicator color to the main background color */
.dx-button-default .dx-loadindicator-segment {
    background-color: var(--dx-color-main-bg);
}


