@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-MediumItalic.ttf");
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-BoldItalic.ttf");
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-Light.ttf");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "SourceSans3";
    src: url("../fonts/SourceSans3/SourceSans3-ExtraLight.ttf");
    font-weight: 200;
    font-style: normal;
}

:root {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 400;
    font-size: 12pt;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    color-scheme: light dark;


    @media (max-width: 523px) {
        font-size: 14pt;
    }

}

@media (prefers-color-scheme: light) {
    :root {
    }
}

[light] {
    /*--bg: #fbfbfb;*/
    --bg: rgb(251, 250, 249);
    --bg-badge: #00c501;
    --bg-body: #f9f9f9;
    --bg-card: #fff;
    --bg-filter: #f5f5f5;
    --bg-header: rgb(246, 248, 250);
    --bg-main-menu: #f9f9f9;
    --bg-left-sidebar: #dbdbdb;
    --bg-modal: rgba(0, 0, 0, 0.4);
    --border-primary: rgb(228, 229, 232);
    --danger: #f44336;
    --hover: brightness(1.2);
    --text: #222;
    --text-secondary: #666;
    /*--primary: #264b5d;*/
    --primary: #2c5d77;
    --primary-10: rgba(44, 93, 119, .1);
    --primary-20: rgba(44, 93, 119, .2);
    --primary-50: rgba(44, 93, 119, .5);
    --primary-90: rgba(44, 93, 119, .9);
    --primary-hover: #1f86ff;
    --shadow: rgb(0 0 0 / 0.1);
    --shadow-menu: rgba(209, 217, 224, 0.5) 0px 0px 0px 1px, rgba(37, 41, 46, 0.04) 0px 6px 12px -3px, rgba(37, 41, 46, 0.12) 0px 6px 18px 0px;
    --shadow-inner: inset 0 0 0 2px var(--primary);
    --shadow-inner-disabled: inset 0 0 0 2px var(--primary-20);
    --shadow-inner-90: inset 0 0 0 2px var(--primary-90);
}

[dark] {
    --bg: #151b23;
    --bg-badge: #009800;
    --bg-body: #111;
    --bg-card: rgb(33, 40, 48);
    --bg-filter: rgb(36, 42, 62);
    --bg-header: rgb(21, 27, 35);
    --bg-main-menu: rgb(42, 49, 60);
    --bg-left-sidebar: #242424;
    --bg-modal: rgba(0, 0, 0, 0.7);
    --border-primary: rgb(42, 49, 60);
    --danger: #f44336;
    --hover: brightness(0.8);
    --text: #eee;
    --text-secondary: #aaa;
    --primary: rgba(121, 174, 200, 1);
    --primary-10: rgba(121, 174, 200, .1);
    --primary-20: rgba(121, 174, 200, .2);
    --primary-50: rgba(121, 174, 200, .5);
    --primary-90: rgba(121, 174, 200, .9);
    --primary-hover: #1f86ff;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-menu: rgb(61, 68, 77) 0px 0px 0px 1px, rgba(1, 4, 9, 0.4) 0px 6px 12px -3px, rgba(1, 4, 9, 0.4) 0px 6px 18px 0px;
    --shadow-inner: inset 0 0 0 2px var(--primary);
    --shadow-inner-90: inset 0 0 0 2px var(--primary-90);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100vw;
    height: 100vh;
}

body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    background-color: var(--bg);
    color: var(--text);
    font-size: 12pt;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    margin: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    font-size: inherit;
    cursor: pointer;
}


ul {
    list-style: none;
}

.l_window {
    max-width: 1440px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    display: flex;
    flex: 1;
}

main {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spacer-05 {
    width: 100%;
    height: .5rem;
}

.spacer-1 {
    width: 100%;
    height: 1rem;
}

.spacer-2 {
    width: 100%;
    height: 2rem;
}

.spacer-3 {
    width: 100%;
    height: 3rem;
}

section {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: row;
    /*overflow-y: auto;*/
    /*border: 1px solid crimson;*/
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.breadcrumbs {
    margin-top: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-modal); /* напівпрозорий чорний фон */
    display: none;
    /*align-items: center;*/
    /*justify-content: center;*/
    /*z-index: 10; !* поверх усього *!*/
}

.modal.visible-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* поверх усього */
}

.breadcrumbs {

    a {
        color: var(--primary);
    }
}

button {
    /*padding: 1rem;*/
    height: 3rem;
    outline: none;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;

    &.primary {
        background: var(--primary);
        color: var(--bg);

        &:hover {
            background: var(--primary-90);
        }

        &:disabled {
            background: var(--primary-50);

            &:hover {
                background: var(--primary-50);
            }
        }

        a {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }


    &.secondary {
        background: var(--primary-10);
        box-shadow: var(--shadow-inner);
        color: var(--primary);
        transition: all 0.2s;

        &:focus,
        &:hover {
            box-shadow: var(--shadow-inner-90);
            background: var(--primary-20);
        }

        &:disabled {
            box-shadow: var(--shadow-inner-disabled);
            color: var(--primary-50);

            &:hover {
                background: var(--primary-10);
            }
        }
    }

    &.danger {
        background: var(--danger);
        color: white;
    }
}


/* Responsive */
/*@media (max-width: 600px) {*/
/*    header,*/
/*    main,*/
/*    .filters {*/
/*        padding: 1rem;*/
/*    }*/
/*}*/