@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('font-awesome/font/css/font-awesome.css');


html, body {
    font-family: 'Segoe UI', Tahoma, Verdana, Geneva, Tahoma, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.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;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #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: 0.9rem;
        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: #d7d7d7;
            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;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.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) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/* loading spinner start*/

#wrapper {
    width: 100%;
    max-width: 725px;
    margin: 0px auto;
}

.loadingmsg {
    font-family: verdana;
    font-weight: bold;
    text-align: center;
    left: 52%;
    font-size: 16px;
}

.gears {
    width: 48%;
    position: absolute;
}

    .gears:first-child {
        margin-right: 3%;
    }

.gears-container {
    width: 150px;
    height: 150px;
    padding: 5%;
    position: relative;
    margin: 0px auto;
}

.gear-rotate {
    font-size: 24px;
    width: 2em;
    height: 2em;
    top: 50%;
    left: 50%;
    margin-top: -1em;
    margin-left: -1em;
    background: #00B0CA;
    position: absolute;
    border-radius: 1em;
    -webkit-animation: 1s gear-rotate linear infinite;
    -moz-animation: 1s gear-rotate linear infinite;
    animation: 1s gear-rotate linear infinite;
}

.gear-rotate-left {
    margin-top: -2.2em;
    top: 50%;
    width: 2em;
    height: 2em;
    background: #00B0CA;
    position: absolute;
    border-radius: 1em;
    -webkit-animation: 1s gear-rotate-left linear infinite;
    -moz-animation: 1s gear-rotate-left linear infinite;
    animation: 1s gear-rotate-left linear infinite;
}

    .gear-rotate::before, .gear-rotate-left::before {
        width: 2.8em;
        height: 2.8em;
        background: -webkit-linear-gradient(0deg,transparent 39%,#00B0CA 39%,#00B0CA 61%, transparent 61%), -webkit-linear-gradient(60deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%), -webkit-linear-gradient(120deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%);
        background: -moz-linear-gradient(0deg,transparent 39%,#00B0CA 39%,#00B0CA 61%, transparent 61%), -moz-linear-gradient(60deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%), -moz-linear-gradient(120deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%);
        background: -o-linear-gradient(0deg,transparent 39%,#00B0CA 39%,#00B0CA 61%, transparent 61%), -o-linear-gradient(60deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%), -o-linear-gradient(120deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%);
        background: -ms-linear-gradient(0deg,transparent 39%,#00B0CA 39%,#00B0CA 61%, transparent 61%),-ms-linear-gradient(60deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%),-ms-linear-gradient(120deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%);
        background: linear-gradient(0deg,transparent 39%,#00B0CA 39%,#00B0CA 61%, transparent 61%), linear-gradient(60deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%), linear-gradient(120deg,transparent 42%,#00B0CA 42%,#00B0CA 58%, transparent 58%);
        position: absolute;
        content: "";
        top: -.4em;
        left: -.4em;
        border-radius: 1.4em;
    }

    .gear-rotate::after, .gear-rotate-left::after {
        width: 1em;
        height: 1em;
        background: #FFFFFF;
        position: absolute;
        content: "";
        top: .5em;
        left: .5em;
        border-radius: .5em;
    }


@-webkit-keyframes gear-rotate {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(-180deg);
    }
}

@-moz-keyframes gear-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-180deg);
    }
}

@keyframes gear-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-180deg);
    }
}

@-webkit-keyframes gear-rotate-left {
    0% {
        -webkit-transform: rotate(30deg);
    }

    100% {
        -webkit-transform: rotate(210deg);
    }
}

@-moz-keyframes gear-rotate-left {
    0% {
        -webkit-transform: rotate(30deg);
    }

    100% {
        -webkit-transform: rotate(210deg);
    }
}

@keyframes gear-rotate-left {
    0% {
        -webkit-transform: rotate(30deg);
    }

    100% {
        -webkit-transform: rotate(210deg);
    }
}

/* loading spinner end*/

/* autofit grid start*/

.autofit-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(100px, 1fr));
}

/* autofit grid end*/

/* ui style start */

.ui {
    background-color: #ffffff;
    width: 100%;
    min-width: 1312px;
    border-style: groove;
    border-width: 2px;
    border-color: darkgrey;
    padding: 5px;
    margin-bottom: 5px;
    z-index: -2;
}

.ui-cell {
    overflow: hidden;
    display: table-cell;
    margin: 0px;
    padding: 0px;
}

.container {
    display: block;
    position: relative;
    margin: 0px;
    padding: 0px;
    text-align: center;
}

.fix-50px {
    width: 50px
}

.fix-75px {
    width: 75px
}

.fix-100 {
    width: 100px
}

.fix-125 {
    width: 125px
}

.fix-150 {
    width: 150px
}

.fix-175 {
    width: 175px
}

.fix-200 {
    width: 200px
}

.fix-250 {
    width: 250px
}

.fix-300 {
    width: 300px
}

.max-150 {
    max-width: 150px;
}

.max-200 {
    max-width: 200px;
}

.max-250 {
    max-width: 250px;
}

.max-300 {
    max-width: 300px;
}

ul {
    list-style-type: none;
}

/* ui style end */

/* pagination start*/

.pagination {
    display: inline-block;
}

    .pagination a {
        color: black;
        float: left;
        padding: 8px 16px;
        text-decoration: none;
    }

        .pagination a.active {
            background-color: #4CAF50;
            color: white;
            border-radius: 5px;
        }

        .pagination a:hover:not(.active) {
            background-color: #ddd;
            border-radius: 5px;
        }

/* pagination end*/

/* label style start */

.normal-label {
    min-width: fit-content;
    text-align: center;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

.costum-label {
    max-width: 100%;
    text-align: center;
    font-weight: bold;
    margin: 0;
    padding: 3px 0px 3px 0px;
}

/* label style end */

/* datepicker style start*/

[type="date"] { background: #fff url(../images/calendar.png) 97% 50% no-repeat; }
[type="date"]::-webkit-inner-spin-button {display: none; }
[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; }

.datepicker {
    width: 150px;
    border: 1px solid #6F6F6F;
    border-radius: 5px;
    background-color: #fff;
    padding: 0;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
}

/* datepicker style end*/

/* checkbox style start */
input[type="checkbox"] {
    height: 1.25em;
    width: 1.25em;
}

/* checkbox style end */

/* select style start */

select {
    min-width: 150px;
    width: fit-content;
    border: 1px solid #6F6F6F;
    border-radius: 5px;
    padding: 3px 0px 3px 0px;
    cursor: pointer;
    line-height: 1.1;
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
    display: grid;
    grid-template-areas: "select";
}

    select::after, .long-select::after, .full-select::after {
        content: "";
        width: 0.8em;
        height: 0.5em;
        background-color: var(--select-arrow);
        clip-path: polygon(100% 0%, 0 0%, 50% 100%);
        grid-area: select;
    }

.select:disabled, .select[disabled], .long-select:disabled, .long-select[disabled], .full-select:disabled, .full-select[disabled] {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}

/* select style end */

/* button style start */

button-span {
    position: relative;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    float: left;
}

.costum-button {
    min-width: fit-content;
    max-width: 100%;
    color: black;
    padding: 1px 4px 5px 4px;
    border: 1px solid #6F6F6F;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    align-content: center;
    vertical-align: central;
    background-color: #c4c4c4;
    box-shadow: inset 0 -0.6em 0 -0.35em rgba(111,111,111,1);
}

    .costum-button.active {
        background-color: #00B0CA;
        color: white;
        border-radius: 5px;
    }

    .costum-button:hover:not(.active) {
        background-color: #00B0CA;
        border-radius: 6px;
        box-shadow: inset 0 -0.6em 0 -0.35em rgba(0,139,159,1);
    }

    .costum-buttonbutton:disabled, .costum-button[disabled], .costum-button:hover:disabled {
        border: 1px solid #999999;
        background-color: #cccccc;
        color: #666666;
        box-shadow: inset 0 -0.6em 0 -0.35em rgba(111,111,111,1);
    }

.cell-button {
    width: 50px;
    color: black;
    padding: 1px 1px;
    border: 1px solid #6F6F6F;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    align-content: center;
    vertical-align: central;
    background-color: #c4c4c4;
    box-shadow: inset 0 -0.6em 0 -0.35em rgba(111,111,111,1);
}

    .cell-button.active {
        background-color: #00B0CA;
        color: white;
        border-radius: 5px;
    }

    .cell-button:hover:not(.active) {
        background-color: #00B0CA;
        border-radius: 6px;
        box-shadow: inset 0 -0.6em 0 -0.35em rgba(0,139,159,1);
    }

    .cell-button:disabled, .cell-button[disabled], .cell-button:hover:disabled {
        border: 1px solid #999999;
        background-color: #cccccc;
        color: #666666;
        box-shadow: inset 0 -0.6em 0 -0.35em rgba(111,111,111,1);
    }

.cell-icon {
    line-height: unset;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    width: 100%;
    height: 100%;
    padding-bottom: 3px;
    font-size: 1.25em
}

.cell-checkbox {
    background-color: transparent;
    box-shadow: none;
    max-width: 25px;
    width: 1.25em;
    height: 1.25em;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

/* button style end */

/* input style start */

input {
    width: 150px;
    min-width: 15ch;
    max-width: 30ch;
    border: 1px solid #6F6F6F;
    border-radius: 5px;
    padding: 3px 0 3px 0;
    cursor: pointer;
    line-height: 1.1;
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
    display: grid;
}

input::-webkit-calendar-picker-indicator {
        opacity: 100;
    }

.boldoption {
    font-weight: bold;
}

/* input style end */

/* custom style table elements start*/

.centered-th {
    text-align: center;
    vertical-align: middle;
}

.centered-td {
    text-align: center;
    vertical-align: middle;
}

.centered-tr {
    text-align: center;
    vertical-align: middle;
}

    .centered-tr th {
        text-align: center;
        vertical-align: middle;
    }

    .centered-tr td {
        text-align: center;
        vertical-align: middle;
    }


/* custom style table elements end*/


/* modal-table style start */

.modal-body {
    padding: 5px;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
}

    .modal-table td:first-child {
        background: #BCBCBC;
        border: 1px solid black;
        color: #fff;
    }

    .modal-table td {
        background: #FFFFFF;
        border: 1px solid black;
        color: #000;
    }

        .modal-table td:first-child, .modal-table th:first-child {
            white-space: nowrap;
        }

        .modal-table td:last-child, .modal-table th:last-child {
            width: 100%;
        }

/* login and login management */

.center-container {
    display: flex;
    justify-content: center;
}

/* login and login management end */

/* datatable layout */

.data-table {
    width: 100%;
    table-layout: fixed;
}

    .data-table td:last-child, .data-table th:last-child {
        width: 100%;
    }

.column-fit {
    width: fit-content;
}

.column-auto {
    width: auto;
}

.column-five {
    width: 5%;
}

.column-ten {
    width: 10%;
}

.column-twenty {
    width: 20%;
}

/* form table/cell*/
.form-table {
    margin-bottom: 0.1rem;
    line-height: normal;
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    max-width:750px;
}

.form-cell {
    line-height: normal;
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    width: 150px;
}

/* form table/cell*/
.form-table-borderless {
    margin-bottom: 0.1rem;
    line-height: normal;
    border: 1px solid transparent;
    border-collapse: collapse;
    text-align: center;
    max-width: 750px;
}

.form-cell-borderless {
    line-height: normal;
    border: 1px solid transparent;
    border-collapse: collapse;
    text-align: center;
    width: 150px;
}

/* custom select dropdown */

.select-container {
    position: relative;
    display: inline-block;
    width: 150px;
    min-width: 15ch;
    max-width: 30ch;
    border: 1px solid #6F6F6F;
    border-radius: 5px;
    padding: 3px 0 3px 0;
    cursor: pointer;
    line-height: normal;
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
}

.select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 0px 2px 0px 2px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

    .select-btn .btn-text {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        background-color: transparent;
    }

    .select-btn .arrow-dwn {
        float: right;
        display: flex;
        height: 18px;
        width: 18px;
        font-size: 10px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        background-color: transparent;
    }

    .select-btn.open .arrow-dwn {
        transform: rotate(-180deg);
    }

.list-items {
    min-width: 100%;
    width: max-content;
    position: absolute;
    margin-top: 12px;
    border-radius: 8px;
    padding: 0px;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.select-btn.open ~ .list-items {
    display: block;
}

.list-items .item {
    display: flex;
    align-items: center;
    list-style: none;
    height: 35px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0px 6px;
}

    .list-items .item:hover {
        background-color: #e7edfe;
    }

.item .item-text {
    text-wrap: avoid;
    color: #333;
}

.item .checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    margin-right: 12px;
    border: 1.5px solid #c0c0c0;
    transition: all 0.3s ease-in-out;
}

.item.checked .checkbox {
    background-color: #4070f4;
    border-color: #4070f4;
}

.checkbox .check-icon {
    color: #fff;
    font-size: 11px;
    transform: scale(0);
    transition: all 0.2s ease-in-out;
}

.item.checked .check-icon {
    transform: scale(1);
}



