.fw-light {
    font-weight: 200;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center !important;
}

.align-center {
    align-items: center;
}

.mr-2 {
    margin-right: 0.2em;
}

.default-cursor {
    cursor: default !important;
}

.Dialog-maxContent {
    width: max-content !important;
}

.Dialog {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3) !important;
    z-index: 500;
}

.Dialog__Content {
    width: 980px;
    background-color: #fff;
    border-radius: var(--modal-radius);
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
}

.Dialog__Title {
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.Dialog__Body {
    position: relative;
    min-width: 320px;
    min-height: 280px;
    max-height: 500px;
    padding: 24px 16px;
    margin: 0 16px;
    overflow: auto;
    box-sizing: border-box;
}

.Dialog__Footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    box-shadow: -2px -4px 8px rgba(0, 0, 0, 0.2);
}

.Dialog__Body > .Dialog__Options,
.Tab {
    position: absolute;
    display: flex;
    width: fit-content;
    margin: 8px 0;
    justify-content: flex-start;
    align-items: flex-end;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.19), 2px 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 10;
}

.General__Searcher .Page__Wrapper,
.Page__Viewer .Page__Wrapper {
    margin-top: 24px;
    min-height: 80vh;
    padding: 16px;
    box-shadow: unset;
}

.Tab__Container {
    width: 100%;
    overflow-x: auto;
    padding: 8px 0;
}

.Tab {
    position: relative;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
}

.Dialog__Body > .Dialog__Options .Dialog__Option,
.Tab .Tab__Option {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 4px 4px;
    cursor: pointer;
    background-color: white;
    border-bottom: 3px solid white;
}

.Dialog__Body > .Dialog__Options .Dialog__Option.Active,
.Tab .Tab__Option.Active {
    font-weight: bold;
    border-bottom: 3px solid var(--bgColor);
    color: var(--bgColor);
}

.Dialog__Body > .Dialog__Options .Dialog__Option:last-child,
.Tab .Tab__Option:last-child {
    border-right: none;
}

.Message__Danger {
    color: rgb(255, 115, 0);
}

.telegramLink {
    margin: 8px 0;
}

.Form__Group {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.Col {
    grid-template-columns: 1fr;
}

.Col-2 {
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

.Col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.Form__Input {
    position: relative;
    display: flex;
    min-width: 300px;
    width: 100%;
    margin: 0 0 8px 0;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2px;
    box-sizing: border-box;
    border-radius: var(--input-radius);
}

.Invalid input {
    border: 2px solid red !important;
}

.Invalid input ~ label {
    color: red !important;
}

.Row {
    justify-content: start;
    flex-direction: row;
    align-items: center;
}

.Form__Input label {
    order: 0;
    /* position: absolute; */
    top: 3px;
    padding: 0 8px;
    border-radius: 45%;
    font-weight: 300;
    background-color: #fff;
    z-index: 2;
}

.Row label {
    order: 1 !important;
}

.Row input {
    order: 0 !important;
}

.Form__Input input,
.Form__Input select {
    order: 1;
    bottom: 2px;
    width: 100%;
    height: 40px;
    padding: 0 8px;
    font-size: 12pt;
    border: 1px solid var(--grayDark);
    /* border-radius: var(--input-radius); */
    box-sizing: border-box;
}

.Form__Input input[type="checkbox"],
.Form__Input input[type="radio"] {
    width: 20px !important;
    margin: 4px !important;
    color: var(--bgColor) !important;
    background-color: var(--primary-color) !important;
}

.Form__Input input:focus,
.Form__Input select:focus {
    color: var(--primary-color);
    outline-color: var(--primary-color);
}

.Form__Input input:focus ~ label,
.Form__Input select:focus ~ label {
    color: var(--primary-color) !important;
}

.Card {
    margin-bottom: 8px;
    padding: 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.19);
    border-radius: 4px;
    cursor: pointer;
}

.Card:hover {
    background-color: var(--bgColor);
    color: #fff;
}

button {
    border: unset;
    background-color: unset;
}

.Button {
    width: fit-content;
    height: fit-content;
    margin: 4px 8px;
    padding: 8px 16px;
    color: var(--grayDark);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.19);
    cursor: pointer;
}

.Col-2 .Button {
    width: max-content;
    margin: 0 8px;
}

.Button__primary {
    background-color: var(--bgColor) !important;
    color: #fff;
}

.Button__primary:hover,
.Button__secondary:hover,
.Button__danger:hover,
.Button__success:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
}

.Button__secondary {
    background-color: var(--gray);
    color: #fff !important;
}

.Button__danger {
    background-color: var(--danger);
    color: #fff !important;
}

.Button__success {
    background-color: var(--success);
    color: var(--primary-color) !important;
}

.Button__Disabled {
    background-color: #f8f5f5 !important;
    color: var(--gray) !important;
    box-shadow: unset !important;
    cursor: default;
}

.Hover {
    cursor: pointer !important;
}

.Hover:hover {
    background-color: var(--bgColor);
    color: #fff;
}

.Won {
    background-color: var(--won-color);
    color: #fff;
}

.Lost {
    background-color: var(--lost-color);
    color: #fff;
}

.Defect {
    background-color: var(--defect-color);
}

.Waiting {
    background-color: var(--waiting-color);
}

.Die {
    background-color: var(--die-color);
}

.Processing {
    background-color: var(--processing);
}

.Third {
    background-color: var(--third);
}

.Ready {
    background-color: var(--ready);
}

.Finished {
    background-color: var(--finished);
}

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

.Square {
    width: 10px;
    height: 10px;
    margin: 4px;
    border: 1px solid gray;
}

.Paginator .Representation {
    display: flex;
    font-size: 9pt;
}

.Paginator .Representation > div {
    display: flex;
    align-items: center;
}

.Chart__Container {
    max-width: 620px;
    min-width: 300px;
    height: fit-content;
    margin: 16px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
    box-sizing: border-box;
}

.Chart__Container canvas {
    height: 350px !important;
    width: 400px;
}

/* COMMONS STYLES */
.Page__Container {
    position: relative;
    width: 100%;
    padding: 16px;
    margin-bottom: 64px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.Page__Container .Page__Options {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.Page__Options .Option {
    padding: 8px;
    margin: 8px;
    color: var(--primary-color);
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.19);
    cursor: pointer;
}

.Page__Options .Option:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.Sticky {
    position: fixed;
    top: 100px;
    right: 16px;
    z-index: 100;
}

.Sticky ~ .Page__Wrapper {
    padding-top: 24px;
}

.Sticky .Filter {
    background-color: white;
    border-radius: 8px;
    padding-left: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.19);
}

.Page__Filter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.Filter {
    display: flex;
    align-items: flex-end;
    width: fit-content;
}

.Filter__Submit {
    padding: 2px;
}

.Filter .Button {
    font-size: 1.3em;
    margin: 4px 8px 16px 16px;
}

.Search__Items,
.Files {
    position: relative;
    min-height: 380px;
}

.Search__Viewstyle {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
}

.Search__Viewstyle.Sticky {
    width: 200px;
}

.Search__Viewstyle img {
    margin: 4px;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
    border: 1px solid rgb(212, 210, 210);
}

.Search__Items.List {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Search__Items.List .Search__Item {
    margin-bottom: 24px;
    min-width: 320px;
    width: fit-content;
}

.Search__Items.Grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.Search__Items.Grid .Search__Item {
    flex-direction: column;
    width: 380px;
    height: auto;
}

.Search__Item {
    width: calc(100% - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid var(--borderColor);
    border-radius: 8px;
    cursor: pointer;
}

.Search__Item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
}

.Search__Item img {
    object-fit: contain;
    width: 240px;
    height: 240px;
    margin: 16px;
}

.Search__Item a {
    text-decoration: none;
    color: black;
}

.Search__Item a:visited {
    color: var(--primary-color);
}

.Search__Item .Search__Item--content {
    height: 100%;
}

.Comparatives .Content {
    box-shadow: none !important;
}

.Files__Container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.Files {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 320px;
    max-width: 1800px;
    width: 70vw;
    margin-top: 24px;
}

.Files .Files__Authorize {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.Files .Files__Authorize .GoogleDrive__Button {
    display: flex;
    align-items: center;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
    cursor: pointer;
}

.Files .Files__Authorize .GoogleDrive__Button span {
    padding: 0 8px;
    font-size: 12pt;
}

.File {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
    width: fit-content;
    height: fit-content;
    margin: 8px;
    padding: 16px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
}

.File:hover {
    background-color: var(--bgColor);
    color: #fff !important;
}

.File > div {
    display: flex;
}

.File > img {
    padding: 16px;
}

.File .File--content {
    display: block;
    padding: 0 8px;
    text-decoration: none;
}

.File .File--content .File--title {
    font-size: 12pt;
    margin: 0;
}

.File .File--content .File--description {
    margin: 0;
}

.File__Owner {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.File__Owner img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.File__Owner span {
    font-size: 9pt;
    padding: 0 8px;
}

.ShowMore {
    width: 100%;
    display: flex;
    justify-content: center;
}

.Page__Wrapper {
    position: relative;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
    box-sizing: border-box;
}

.Page__Wrapper .Content {
    display: flex;
    grid-template-columns: 1fr 1fr;
    background-color: #fff;
}

.Link__warehouse .Page__Wrapper {
    box-shadow: none;
}

.Brands {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 300px;
    gap: 16px;
}

.Brands .Brand {
    width: 210px;
    height: fit-content;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.19);
    border-radius: 8px;
    cursor: pointer;
}

.Brands .Brand > img:first-child {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.Brands .Brand:hover {
    scale: 1.01;
}

.Brands .Brand .Actions {
    position: relative;
    bottom: 0;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
}

.Actions img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.Content .Tbl__Scrollable {
    position: relative;
    width: max-content;
    height: max-content;
    overflow-x: scroll;
}

.Page__Wrapper .Paginator {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    width: 100vw;
    margin-top: 16px;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2), -2px -4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    z-index: 10;
}

.Paginator .DateFilters,
.Paginator .Paginator__Controls {
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.Filter select,
.Paginator__Controls input {
    margin: 0 8px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid var(--gray);
}

.Paginator__Controls input {
    width: 50px;
    text-align: center;
}

.Paginator .Paginator__SomeOfLabels {
    display: flex;
    align-items: center;
    font-weight: 100;
    color: var(--grayDark);
    padding: 0 8px;
}

.Paginator .Paginator__Buttons {
    display: flex;
    align-items: center;
}

.Paginator .Paginator__Buttons span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 35px;
    margin: 0 4px;
    text-align: center;
    font-weight: 100;
    font-size: 1.6rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.19);
    border-radius: 8px;
    cursor: pointer;
}

.Paginator__Buttons span:hover {
    background-color: var(--bgColor);
    color: #fff;
}

.Paginator__Buttons .disabled,
.Paginator__Buttons .disabled {
    color: var(--gray) !important;
    box-shadow: unset !important;
    cursor: default !important;
}

.Paginator__Buttons .disabled:hover,
.Paginator__Buttons .disabled:hover {
    background-color: unset !important;
}

.BottomNote {
    position: fixed;
    left: 16px;
    bottom: 16px;
}

@media screen and (max-width: 1024px) {
    .Page__Wrapper .Paginator {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 810px) {
    .Page__Container {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .Chart__Container {
        width: inherit !important;
    }

    .Page__Filter {
        justify-content: center;
    }

    .Filter {
        width: 100%;
    }
}

@media screen and (max-width: 380px), (max-width: 810px) {
    .Page__Container {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .Tab__Container {
        width: calc(100% - 8px);
        padding-bottom: 16px;
    }

    .Tab {
        align-items: center;
    }

    .Tab .Tab__Option {
        width: max-content;
        font-size: 9pt !important;
        font-weight: normal;
    }

    .Chart__Container {
        width: 320px !important;
    }

    .Form__Input {
        width: 200px !important;
        font-size: 10pt;
        box-sizing: border-box;
    }

    .Form__Input input,
    .Form__Input select {
        font-size: 10pt;
    }

    .Search__Viewstyle {
        flex-direction: row;
        align-items: flex-end;
        width: fit-content;
        background-color: white;
        padding: 4px;
        border-radius: 4px;
    }

    .Sticky {
        top: 60px;
        right: 0;
    }

    .Search__Viewstyle.Sticky {
        position: initial;
    }

    .Page__Filter {
        width: 100% !important;
        background-color: white;
        margin: 0;
        box-sizing: border-box;
    }

    .Filter {
        width: calc(100% - 8px);
        padding: 0 !important;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        box-sizing: border-box;
    }

    .Filter .Form__Group {
        margin-bottom: 0;
    }

    .Filter .Form__Input input {
        margin: 0 8px;
    }

    .Filter .Form__Input,
    .Filter__Submit {
        width: calc(100% - 16px) !important;
    }

    .Filter__Submit {
        margin: 4px;
    }

    .Filter .Button {
        margin: 0;
        width: 100%;
    }
}
