﻿@import "variables.css";
@import "typography.css";
@import "dark-theme.css";

/*common styling*/
a, .btn-link {
    color: var(--primary);
}

body {
    background-color: var(--body-bg);
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button {
    display: none;
}
/*common styling*/

/*blazor*/
#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;
    }

.blazor-error-boundary {
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }
/*blazor*/

.breadcrumb-item + .breadcrumb-item::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='grey'/%3E%3C/svg%3E");
    position: relative;
    top: -1px;
    transform: scale(1);
}

.btn-close {
    transition: transform 0.2s ease-in-out;
}

    .btn-close:hover {
        background-color: var(--body-bg);
        border-radius: 50%;
        transform: rotate(90deg);
    }

.btn-icon {
    background-color: var(--bg-light);
    border: none;
    color: var(--text);
    outline: none;
}

    .btn-icon:hover {
        background-color: #f0f0f0;
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.calendar {
    background-color: white;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(7,40px);
    width: fit-content;
}

    .calendar .day {
        border-radius: 56px;
        box-sizing: border-box;
        padding: 8px;
        text-align: center;
    }

        .calendar .day.active {
            background-color: #0094ff;
            color: white;
        }

        .calendar .day.disabled {
            color: #808080ff;
        }

        .calendar .day:not(.disabled):hover {
            background-color: #0094ff5b;
            color: white;
        }

    .calendar .week {
        box-sizing: border-box;
        padding: 8px;
        text-align: center;
    }

.calendar-wrapper {
    width: fit-content;
}

.card.active {
    box-shadow: 0 0 0 0.25rem rgb(13, 110, 253, 0.25);
}

.context-menu {
    border-radius: .5rem;
    color: var(--text);
    font-size: 1rem;
    margin: 0;
    min-width: 10rem;
    padding: 0;
}

    .context-menu .context-menu-item {
        background-color: transparent;
        border: 0;
        clear: both;
        color: #212529;
        display: block;
        font-weight: 400;
        padding: 0.25rem 1rem;
        text-align: inherit;
        text-decoration: none;
        white-space: nowrap;
        width: 100%;
    }

        .context-menu .context-menu-item:hover {
            background-color: var(--context-menu-hover);
        }

    .context-menu ul {
        border-radius: 8px;
        margin: 0;
        padding: 0.5rem 0;
        width: 100%;
    }

.dropdown-toggle::after {
    border: 0;
    content: none;
}

.draggable:active {
    cursor: grabbing;
}

.dragging {
    cursor: grabbing;
}

.dropzone {
    padding: 10px;
    list-style: none;
    width: 350px;
    box-sizing: border-box;
}

.list-group-item small span:first-child::before {
    content: '' !important;
    padding: 0;
}

.list-group-item small span::before {
    content: '•' !important;
    padding: 0 .25rem;
}

.login-center {
    width: 100%;
    height: 100vh;
}

    .login-center .login-center-content {
        position: relative;
        top: 50%;
        left: 50%;
        float: left;
        padding: 20px;
        transform: translate(-50%, -50%);
    }


.loading-progress {
    display: block;
    height: 6rem;
    position: relative;
    width: 6rem;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform: rotate(-90deg);
        transform-origin: 50% 50%;
    }

        .loading-progress circle:last-child {
            stroke: var(--primary);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8) 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%,-50%);
    width: fit-content;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.nav-underline .nav-link {
    color: var(--secondary);
}

    .nav-underline .nav-link.active, .nav-pills .show > .nav-link {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

    .nav-underline .nav-link .badge {
        color: white;
    }

    .nav-underline .nav-link.active .badge {
        color: white;
    }

#notfound {
    position: relative;
    height: 100vh;
}

    #notfound .notfound-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url("../img/bg.jpg");
        background-size: cover;
    }

        #notfound .notfound-bg:after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: #f2f2f2;
        }

    #notfound .notfound {
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

.notfound {
    max-width: 910px;
    width: 100%;
    line-height: 1.4;
    text-align: center;
}

    .notfound .notfound-404 {
        position: relative;
        height: 200px;
    }

        .notfound .notfound-404 h1 {
            position: absolute;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            font-size: 220px;
            font-weight: 900;
            margin: 0px;
            color: #000;
            text-transform: uppercase;
            letter-spacing: 10px;
        }

    .notfound h2 {
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        color: #000;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .notfound .home-btn, .notfound .contact-btn {
        display: inline-block;
        font-weight: 700;
        text-decoration: none;
        background-color: transparent;
        border: 2px solid transparent;
        text-transform: uppercase;
        padding: 13px 25px;
        font-size: 18px;
        border-radius: 40px;
        margin: 7px;
        -webkit-transition: 0.2s all;
        transition: 0.2s all;
    }

        .notfound .home-btn:hover, .notfound .contact-btn:hover {
            opacity: 0.9;
        }

    .notfound .home-btn {
        color: #ffffff;
        background: #0000bc;
    }

    .notfound .contact-btn {
        border: 2px solid #000;
        color: #000;
    }

.notfound-social {
    margin-top: 25px;
}

    .notfound-social > a {
        display: inline-block;
        height: 40px;
        line-height: 40px;
        width: 40px;
        font-size: 18px;
        color: #000;
        margin: 0px 6px;
        -webkit-transition: 0.2s all;
        transition: 0.2s all;
    }

        .notfound-social > a:hover {
            color: #ffffff;
            background-color: #0000bc;
            border-radius: 50%;
        }

@media only screen and (max-width: 767px) {
    .notfound .notfound-404 h1 {
        font-size: 182px;
    }
}

@media only screen and (max-width: 480px) {
    .notfound .notfound-404 {
        height: 146px;
    }

        .notfound .notfound-404 h1 {
            font-size: 146px;
        }

    .notfound h2 {
        font-size: 16px;
    }

    .notfound .home-btn, .notfound .contact-btn {
        font-size: 14px;
    }
}

.page-name-title > .option {
    display: none;
    margin-left: 8px;
    margin-right: 8px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.page-name-title:hover > .option {
    display: inline-block;
}

.radio-card {
    display: none;
}

    .radio-card + label {
        display: inline;
        padding: 16px;
    }

        .radio-card + label > .card {
            border: #eaeaea solid 2px;
        }

    .radio-card:checked + label > .card {
        border: var(--primary) solid 2px;
    }

.search-select-group {
    --input-padding-y: .25rem;
    --input-padding-x: .75rem;
    border-radius: 4px;
    height: 58px;
    margin-bottom: 1rem;
    position: relative;
}

    .search-select-group > input,
    .search-select-group > label {
        padding: var(--input-padding-y) var(--input-padding-x);
    }

    .search-select-group > label {
        border: transparent solid 1px;
        border-radius: 0.25rem;
        display: block;
        font-size: .875rem;
        left: 0;
        margin-bottom: 0;
        position: absolute;
        top: 0;
        transition: all 0.1s ease-in-out;
        color: var(--text);
        opacity: .65;
    }

    .search-select-group input[type="text"]::-webkit-input-placeholder,
    .search-select-group input[type="text"]::-moz-placeholder,
    .search-select-group input[type="text"]::placeholder {
        color: transparent;
    }

    .search-select-group input[type="text"]:not(:placeholder-shown) ~ label {
        color: #2196F3;
        font-size: .875rem;
    }

.search-select-label {
    height: 56px;
}

.table th, .table td {
    padding: 16px 16px;
    vertical-align: middle;
}

    .table td:last-child:has(.row-option) {
        width: 56px;
    }

.table-responsive .dropdown, .table-responsive .btn-group, .table-responsive .btn-group-vertical {
    position: static;
}

.top-menu {
    height: 64px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bs-success);
}

.invalid {
    outline: 1px solid var(--bs-danger);
}

.validation-message {
    font-size: .875rem;
    line-height: 1.3;
    margin-top: .25rem;
    color: var(--bs-danger);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(4rem);
    }

    0% {
        opacity: 0;
        transform: translateY(4rem);
    }

    100% {
        opacity: 1;
        transform: translateY(3rem);
    }
}

@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
        position: static !important;
    }
}

@media (min-width: 768px) {
    .table-responsive {
        overflow: inherit;
    }
}
