:root {
    interpolate-size: allow-keywords;
    --media: if(media(1px <=width < 768px): "mobile"; else: "desktop"; );

    --light-bg: ghostwhite;
    --light-color: darkslategray;
    --light-code: tomato;

    --clr-link: darkblue;
    --clr-accent: darkcyan;

    --dark-bg: darkslategray;
    --dark-color: ghostwhite;
    --dark-code: gold;

    --mobile-max-width: 767px;
    --desktop-min-width: 768px;

    --outline-color-success: green;
    --outline-color-error: red;
    --outline-color-warning: orange;

    --warning_text_color: red;

    --record_archived_bgcolor: lightcoral;
    --record_future_bgcolor: lightblue;
}

.theme_lite {
    --required-field-indicator-font-size: large;
    --my-bgcolor: #eee;
    /* --my-bgcolor: #f4f5f0; */
    --my-thead-bgcolor: #dbd7d7;
    --my-tr-bgcolor-odd: #ebe7e7;
    --my-tr-bgcolor-even: inherit;
    --my-tr-bgcolor-hover: lightyellow;
    --my-grid-line-color: lightgray;
    --my-error-color: red;
    --sql-statements-pane-bgcolor: #d2e2e2;
}


.theme_dark {
    color-scheme: dark;
}

.theme_lite {
    color-scheme: light;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html {
    position: relative;
    scroll-snap-type: y mandatory;
}

html,
body {
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.appx_body {

    /* color scheme is always light for body header and body footer */
    >header {
        color-scheme: light;
    }

    >footer {
        color-scheme: light;
        color: black;
    }

    margin: 0;
    position: relative;
    background-color: var(--my-bgcolor);

    a {
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }

    a.disabled {
        pointer-events: none;
        color: gray;
    }
}

.appx_body.iframe_child_page {
    padding: 2px;
}

#appx_body_main {
    padding-top: 1px;
}

.maxWidth_100vw {
    max-width: calc(var(--vw100, 1vw) * 100);
}