﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/*#region common*/
    html, body {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    a, .btn-link {
        color: #0366d6;
    }

    .btn-primary {
        color: #fff;
        background-color: #1b6ec2;
        border-color: #1861ac;
    }

    .top-row {
        height: 3.5rem;
        display: flex;
        align-items: center;
    }

    .layout {
        display: flex;
        flex-direction: row;
    }

    .main {
        flex: 1;
    }

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

    .main .top-row > a, .main .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .main .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content {
        padding-top: 1.1rem;
    }

    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .invalid {
        outline: 1px solid red;
    }

    .validation-message {
        color: red;
    }

    #blazor-error-ui {
        background: lightyellow;
        bottom: 0;
        box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
        display: none;
        left: 0;
        padding: 0.6rem 1.25rem 0.7rem 1.25rem;
        position: fixed;
        width: 100%;
        z-index: 1000;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    @media (max-width: 767.98px) {
        .main .top-row:not(.auth) {
            display: none;
        }

        .main .top-row.auth {
            justify-content: space-between;
        }

        .main .top-row a, .main .top-row .btn-link {
            margin-left: 0;
        }
    }

    @media (min-width: 768px) {

        .sidebar {
            width: 274px;
            height: 100vh;
            position: sticky;
            top: 0;
        }

        .main .top-row {
            position: sticky;
            top: 0;
        }

        .main > div {
            padding-left: 2rem !important;
            padding-right: 1.5rem !important;
        }
    }

.description-area{
    padding:0.75rem;
}

/*#endregion*/
/*#region button/input*/
input {
    border-radius: 10px;
    padding: 0 15px;
    margin: 5px;
    outline: none;
    border: none;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
}

    button {
        color: #fafafa;
        background-color: #4B0082;
        border: none;
        outline: none;
        border-radius: 10px;
        /*min-width: 100px;*/
        padding: 5px 10px;
    }

    button:hover {
        background-color: #876f9e;
    }

    a.btn:hover {
        background-color: #876f9e;
    }
/*#endregion*/

/*#region COMPONENT NavMenu*/
    .sidebar {
        background-image: linear-gradient(180deg, #a2a2d0 5%, #3a0647 70%);
    }

    .sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
    font-size: 1.1rem;
    }

    .sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
    }

    .sidebar .nav-item {
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    }

    .sidebar .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .sidebar .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .sidebar .nav-item a {
        color: #fafafa;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

    .sidebar .nav-item a.active {
        background-color: rgba(255,255,255,0.25);
        color: white;
    }

    .sidebar .nav-item a:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }
    .sidebar .nav-item span.bold {
        font-weight: bold;
        color: #4B0082;
    }
    .sidebar .nav-item span.rotate {
        transform: rotate(180deg);
    }

    .sidebar .nav-item .submenu_padding {
        padding-right: 80px;
    }

    .sidebar .nav-item i.fa-chevron-down {
        font-size: 16px;
        color: #4B0082;
    }
/*#endregion*/

/*#region COMPONENT Header*/
    .header {
        display: flex;
        justify-content: space-between;
        height: 50px;
        background: #a2a2d0;
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
    }

    .header .navitem {
        margin: auto;
        color: #fafafa;
        font-size: 20px;
        cursor: pointer;
        padding: 5px;
    }

    .header .navitem:hover {
        border: solid 0.5px #876f9e;
        box-shadow: 0 1px 20px #876f9e;
    }

    .header .logo {
        background: url(../logo.png) no-repeat;
        background-size: contain;
        width: 40px;
        height: 40px;
        margin: 5px;
        cursor: pointer;
    }

    .header .h-container {
        display: flex;
    }

    .header .h-container > p {
        margin: auto;
        color: #fafafa;
    }

    .header .h-container > button {
        margin: 5px;
    }
/*#endregion*/

/*#region Distribution View*/
    .batch-content {
        padding: 10px 20px;
    }

    .batch-content .content-header {
        display: flex;
        justify-content: space-between;
    }

    .batch-content .content-header > div:first-of-type {
        display: flex;
    }

    .batch-content .content-header > div:first-of-type > div {
        display: flex;
        justify-content: space-between;
    }

    .batch-content .content-header > div:last-of-type {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        font-size: 14px;
    }
/*#endregion*/

/*#region Component ToastQUEUE*/
    .toast-queue {
        position: fixed;
        bottom: 15px;
        right: 15px;
        height: max-content;
        max-width: 250px;
        color: black;
    }

    .toast-queue .toast {
        opacity: 1;
    }

    .toast-queue .toast .toast-header {
        justify-content: space-between;
    }

    .toast-queue .toast .toast-header .toast-close {
        border-radius: 20px;
        color: #FFFFFF;
        background: #007bff;
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
        width: 20px;
        height: 20px;
        padding: 0.5px 4.3px;
        margin: 0 -10px 0 0;
        cursor: pointer;
    }

    .toast-queue .toast .toast-body {
        padding: .75rem;
        word-break: break-word;
    }
/*#endregion*/

/*#region checkbox style*/
.checkbox_header input[type=checkbox] {
    display: none;
}

.checkbox_header label:before {
    border-radius: 3px;
}

.checkbox_header input[type=checkbox]:checked + label:before {
    content: "\2713";
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
    font-size: 15px;
    color: rgba(0, 0, 0, 0.25);
    text-align: center;
    line-height: 15px;
}

.checkbox_header label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    margin-right: 15px;
    padding-top: 5px;
}

    .checkbox_header label:before {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-right: 10px;
        position: absolute;
        left: 0;
        bottom: 1px;
        background-color: #fafafa;
        box-shadow: inset 0px 2px 3px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8);
        margin-bottom: 4px;
    }
/*#endregion*/

/*#region ListContent*/

.list-content {
    padding: 10px 20px;
}

    .list-content .table-extensions {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }

        .list-content .table-extensions > button {
            margin: auto 0 auto 25px;
            padding: 5px 15px;
            box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
            border-radius: 10px;
        }

            .list-content .table-extensions > button:disabled {
                background-color: #876f9e;
            }

        .list-content .table-extensions > input,
        .filterable_select > input{
            box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
            border-radius: 10px;
            padding: 10px 15px;
            margin: 5px;
            min-width: 240px;
            outline: none;
            border: none;
        }

        .list-content .table-extensions > div:first-of-type {
            margin: 0 5px 0 auto;
        }

        .list-content .table-extensions > input:last-of-type {
            margin: 5px auto 5px 5px;
        }

        .list-content .table-extensions > select {
            box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
            border-radius: 10px;
            padding: 13px 15px;
            margin: 5px;
            outline: none;
            border: none;
        }
            .list-content .table-extensions select::-ms-backdrop {
                display:block;
            }
/*#endregion distributions*/

/*#region Сomponent GRID*/

.grid {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-gap: 5px;
    padding: 10px;
    box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.25);
}

    .grid > p {
        text-align: center;
        font-size: 20px;
    }

    .grid div {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        grid-template-rows: auto;
        text-align: center;
        width: 100%
    }

    .grid row {
        display: flex;
    }

    .grid input {
        margin: 5px 0 5px 0;
    }

    .grid > div:first-of-type {
        width: 100%;
        height: 100%;
        background: #C1C1C1;
        min-height: 40px;
        line-height: 40px;
    }

        .grid > div:first-of-type > p {
            cursor: pointer;
            padding: 5px 0 0 0;
        }

    .grid > div > p.sorted.DESC::before {
        content: "▼";
        margin: 0 5px;
        font-size: 18px;
    }

    .grid > div > p.sorted.ASC::before {
        content: "▲";
        margin: 0 5px;
        font-size: 18px;
    }

    .grid p {
        margin: 0;
        word-break: break-all;
    }

    .grid .loader {
        width: 300px;
        height: 300px;
        margin: 5% 30%;
        position: absolute;
    }

.grid div.btn-group-col-2 {
    width: 100px;
    margin-left: 15%;
}

.grid div.btn-group-col-1 {
    width: 50px;
    margin-left: 15%;
}

.grid-nav {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

    .grid-nav > div {
        margin: 10px;
        cursor: pointer;
    }

        .grid-nav > div:first-of-type::before {
            content: "<";
            margin: 0 5px;
            font-size: 18px;
        }

        .grid-nav > div:last-of-type::after {
            content: ">";
            margin: 0 5px;
            font-size: 18px;
        }

.grid .check_all {
    margin-top: -18px;
    width: 14px;
    height: 14px;
}
/*#endregion*/

/*#region Component POPUP*/

.popup-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    z-index: 5;
    background: rgba(0, 0, 0, 0.55);
}

    .popup-background .popup-close {
        grid-column: 2;
        grid-row: 2;
        z-index: 7;
        border-radius: 20px;
        background: #FFFFFF;
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
        width: 30px;
        height: 30px;
        padding: 4px 8px;
        right: 0;
        margin: 0 0 0 auto;
        cursor: pointer;
    }

    .popup-background .popup-content {
        grid-column: 2;
        grid-row: 2;
        z-index: 5;
        background: #FFFFFF;
        max-height: 550px;
        overflow-y: auto;
    }

        .popup-background .popup-content .confirmation-template {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            text-align: center;
        }

            .popup-background .popup-content .confirmation-template div {
                display: flex;
                flex-direction: row;
                justify-content: space-around;
            }

/*#endregion*/


/*#region Rotating Animation*/

@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotating {
    -webkit-animation: rotating 2s linear infinite;
    -moz-animation: rotating 2s linear infinite;
    -ms-animation: rotating 2s linear infinite;
    -o-animation: rotating 2s linear infinite;
    animation: rotating 2s linear infinite;
}

/*#endregion*/




.filterable_select {
    display: block;
}

.filterable_select  .value-list {
    position: absolute;
    width: 800px;
}

.filterable_select  .value-list {
    list-style: none;
    margin-top: 2.6rem;
    box-shadow: 0px 5px 8px 0px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 0;
    transition: .3s ease-in-out;
}
    .filterable_select  .value-list.open {
        max-height: 320px;
        overflow: auto;
    }

.filterable_select li {
    position: relative;
    background-color: #FAFCFD;
    padding: 0.5rem;
    padding-left: 2rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color .3s;
    opacity: 1;
}
    .filterable_select li:hover {
        background-color: #f7f7f7;
    }

    .filterable_select  li.closed {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 0;
    }
.filterable_select input {
    width: 800px;
    padding: 10px 15px;
}
.filterable_select button {
    padding: 10px 15px;
    margin: 5px;
}
    .filterable_select button:disabled {
        background-color: #876f9e;
    }
    .filterable_select ul {
        padding-inline-start: 0px;
        margin-left: 5px;
    }