@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-badge: #00c501;
    --bg-body: #f9f9f9;
    --bg-card:#fff;
    --bg-filter: #f5f5f5;
    --bg-main-menu: #dbdbdb;
    --bg-left-sidebar: #dbdbdb;
    --bg-modal: rgba(0, 0, 0, 0.4);
    --border-primary: #2c2c2c;
    --text: #222;
    --text-secondary: #666;
    --primary: #0077ff;
    --primary-hover: #1f86ff;
    --shadow: rgb(0 0 0 / 0.1);
}

[dark] {
    --bg: #121212;
    --bg-badge: #009800;
    --bg-body: #111;
    --bg-card:#1e1e1e;
    --bg-filter: #2c2c2c;
    --bg-main-menu: #373737;
    --bg-left-sidebar: #242424;
    --bg-modal: rgba(0, 0, 0, 0.7);
    --border-primary: #e5e5e5;
    --text: #eee;
    --text-secondary: #aaa;
    --primary: #0077ff;
    --primary-hover: #1f86ff;
    --shadow: rgba(0, 0, 0, 0.5);
}

* {
    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-card);
    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: inherit;
    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;
    border-right: 1px solid var(--bg-main-menu);
    background-color: var(--bg);
    /*gap: 1rem;*/
}

section {
    /*padding: 1.5rem;*/
    width: 100%;
    /*height: auto;*/
    display: flex;
    flex-direction: column;
    /*overflow-y: auto;*/
}


.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; /* поверх усього */
}

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