﻿.fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.2s;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.validation-message {
    color: var(--danger);
    font-size: 0.8rem;
}

/*Table*/
th:has(span.bb-detail-view-icon), td:has(span.bb-detail-view-icon) {
    min-width: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    font-size: 1.5rem;
}

th[role="button"] {
    text-align: center !important;
}

th:not([role="button"]) > span, td > span, td > input {
    display: inline-block;
    width: 100%;
    text-align: center;
}

td {
    padding: 2px !important;
}

    td > input[type='checkbox'] {
        margin-top: 7px;
    }

    td > input {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        background-color: white;
        border: none;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

        td > input:focus {
            border-color: #80bdff;
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(38, 143, 255, 0.25);
        }

        td > input:disabled {
            background-color: transparent;
        }

td {
    padding: 0 !important;
}

    td > input {
        border: none;
        background: none;
    }

        td > input[type='checkbox'] {
            margin-top: 7px;
        }

@media (max-width: 500px) {
    td > input {
        margin-top: 5px;
    }
}
/*End Table*/

p {
    text-align: justify;
}

.box-shadow-dark {
    box-shadow: var(--shadow-dark) !important;
}

.text-shadow-dark {
    text-shadow: var(--shadow-dark) !important;
}

.box-shadow-light {
    box-shadow: var(--shadow-light) !important;
}

.text-shadow-light {
    text-shadow: var(--shadow-light) !important;
}

.btn-refresh {
    position: fixed;
    bottom: 30px;
    right: 10px;
    height: 40px;
    width: 40px;
    padding: .2rem 0 0 0;
}

.btn-level1 {
    width: 100%;
    margin-top: 20px;
    font-size: var(--font-level1);
    font-weight: bold;
    box-shadow: var(--shadow-dark);
}

.page-item:last-child .page-link {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.page-item:first-child .page-link {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.bb-callout {
    border-left: 0 !important;
    border-right: 0.5rem solid;
}

.table {
    --bb-table-selected-row-color: var(--select-c);
    --bb-table-selected-row-background-color: var(--select-bc);
    --bb-table-selected-row-hover-color: var(--select-c);
    --bb-table-selected-row-hover-background-color: var(--select-bc);
}

.row.driver :nth-child(even) {
    background-color: var(--color-even);
}

.row.driver :nth-child(odd) {
    background-color: var(--color-odd);
}

/*Navbar*/
.navbar {
    padding: 0;
    z-index: 4;
}

    .navbar + .offcanvas .offcanvas-body {
        padding: 0;
    }

    .navbar .dropdown-menu {
        width: max-content;
    }

.dropdown-menu .nav-item:first-child .nav-link:hover {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dropdown-menu .nav-item:last-child .nav-link:hover {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.dropdown-menu .nav-link, .accordion-body .nav-link {
    border-radius: 0;
    width: 100%;
    text-align: right;
}

    .dropdown-menu .nav-link:hover, .accordion-body .nav-link:hover {
        color: var(--light) !important;
        background: var(--color-level3);
    }

.nav-link.active, .accordion-button.active {
    color: var(--danger) !important;
    font-weight: bold;
}
/*End Navbar*/

/*Modal*/
.blazored-modal {
    width: 100vw;
}

.modal-class {
    padding: 30px 10px;
    color: var(--light);
    width: 100vw;
    word-break: break-word;
}

    .modal-class.danger {
        background-color: rgba(220, 53, 69, 0.7);
        /*background-color: var(--danger);*/
    }

    .modal-class.success {
        background-color: rgba(25, 135, 84, 0.7);
        /*background-color: var(--success);*/
    }

.blazored-toast-message, .blazored-modal-message {
    direction: rtl !important;
    text-align: justify-all !important;
    font-size: var(--color-level3) !important;
}
/*End Modal*/

/*Accordion*/
.accordion-button, .accordion-button:not(.collapsed) {
    font-weight: bold;
    color: var(--light);
}

    .accordion-button.level1 {
        background-color: var(--color-level1);
        font-size: var(--font-level1);
    }

    .accordion-button.level2 {
        background-color: var(--color-level2);
        font-size: var(--font-level2);
    }

    .accordion-button.level3 {
        background-color: var(--color-level3);
        font-size: var(--font-level3);
    }

.accordion {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item:not(:first-of-type) {
    border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

.accordion-item > .accordion-header, .accordion-button {
    border-radius: var(--bs-accordion-inner-border-radius);
}

.accordion-body {
    background-color: var(--light);
}
/*End Accordion*/

/*Login*/
.login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--light);
}

.user-card {
    width: 340px;
    max-width: 100%;
    margin: auto;
    background: var(--color-level0);
    position: relative;
    border-radius: 5px;
    padding: 10px;
    padding-top: 90px;
    margin-top: 100px;
    margin-bottom: 20px;
}

.brand-logo {
    position: absolute;
    height: 170px;
    width: 170px;
    top: -85px;
    right: calc(50% - 85px);
    border-radius: 50%;
    padding: 2px 2px 1px 1px;
    text-align: center;
    background: var(--light);
}

.user-card a {
    text-decoration: none;
    color: var(--warning);
}
/*End Login*/

/*Product*/
.product {
    display: flex;
    flex-flow: wrap;
    row-gap: 10px;
    padding: 5px 0;
    justify-content: space-evenly;
    font-family: 'Times New Roman', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--light);
}

.product-item-view {
    /*height: 52px;*/
    width: calc(100% - 10px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: var(--light);
    color: var(--dark);
    border-radius: var(--product-item-radius);
    border: 2px solid var(--color-level3);
    box-shadow: var(--shadow-dark);
}

.product-item {
    height: 100px;
    width: calc(50% - 10px);
    background: var(--light);
    color: var(--dark);
    border-radius: var(--product-item-radius);
    border: 2px solid var(--color-level3);
    box-shadow: var(--shadow-dark);
}

.product-item-header {
    height: 50%;
    border-bottom: 1px solid var(--color-level3);
    padding-top: 5px;
    display: flex;
    text-align: center;
    line-height: var(--font-level1);
}

.product-img {
    width: 48px;
}

.product-detail {
    width: calc(100% - 48px);
    font-size: 0.8rem !important;
}

.product-item-footer {
    width: 100%;
    height: 50%;
    display: flex;
    font-size: var(--font-level2);
}

.product-action {
    width: 50%;
    height: 100%;
    border-left: 1px solid var(--color-level3);
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    border-bottom-right-radius: var(--product-item-radius);
    color: var(--dark);
}

    .product-action > button {
        font-size: 1.7rem;
    }

.product-count {
    width: 50%;
    border-bottom-left-radius: var(--product-item-radius);
    text-align: center;
    color: var(--light);
}

.product-count-pending {
    position: relative;
}

    .product-count-pending > div {
        width: 100%;
        text-align: center;
    }

    .product-count-pending > button {
        position: absolute;
        top: 0;
        left: 0;
        text-shadow: var(--shadow-dark);
        font-size: var(--font-level2);
    }
/*End Product*/

/*Grid*/
.MyGrid {
    background: var(--color-level1);
    color: var(--light);
    border: var(--bs-border-width) solid var(--bs-border-color);
}

th:has(span.bb-detail-view-icon), td:has(span.bb-detail-view-icon) {
    font-size: 1rem;
}

.grid-toolbar {
    display: flex;
    padding: 5px 5px 5px 25px !important;
    justify-content: space-between !important;
}

.grid-toolbar-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: auto;
}

.grid-toolbar-action {
    display: flex;
    gap: 10px;
}

    .grid-toolbar-action button {
        padding-bottom: 0 !important;
    }

.grid-action-column {
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
    padding: 5px 5px 0 5px;
}

    .grid-action-column > button {
        border: none;
        padding: 0;
        background: none;
        color: var(--dark) !important;
    }

.MyGrid > .table-responsive {
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}

.MyGrid > div:not(.table-responsive):not(.grid-toolbar) {
    margin: 0;
    padding: 5px 5px 0 5px;
    flex-flow: wrap;
    justify-content: space-evenly !important;
    height: 50px;
}

.MyGrid .table-responsive table thead div button span {
    width: 20px;
}

.MyGrid > div > nav > ul > li > a > span > .bi-chevron-double-right::before {
    content: "\f27f";
}

.MyGrid > div > nav > ul > li > a > span > .bi-chevron-right::before {
    content: "\f284";
}

.MyGrid > div > nav > ul > li > a > span > .bi-chevron-double-left::before {
    content: "\f280";
}

.MyGrid > div > nav > ul > li > a > span > .bi-chevron-left::before {
    content: "\f285";
}

.table-responsive table input:not([type=checkbox]),
.table-responsive table select {
    min-width: 100px;
}

@media (max-width: 500px) {
    .MyGrid > div:not(.table-responsive):not(.grid-toolbar) {
        height: 100px;
        padding-top: 0;
    }
}
/*End Grid*/

/*BreadCrumb*/
.breadcrumb {
    --bs-breadcrumb-divider: '';
    --bs-breadcrumb-item-active-color: var(--gray-500);
}

    .breadcrumb a {
        color: var(--light);
        text-decoration: none;
    }

        .breadcrumb a::after {
            content: '';
            display: inline-block;
            border-bottom: 2px solid var(--light);
            border-right: 2px solid var(--light);
            height: 8px;
            width: 8px;
            transform: rotate(135deg);
        }
/*End BreadCrumb*/

.rotate-90 {
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .rotate-md-0 {
        transform: rotate(0deg);
    }
}
