/* Sticky Header */
.navbar {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    z-index: 1020;
    /* Above other content */

    .nav-item {
        /* margin-left: 10px; */
        /* margin-right: 10px; */
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-item.active {
        background-color: #1e90ff80 !important;
        color: #ffffff;

        .active {
            background-color: #1e90ff80 !important;
            color: #ffffff;
        }
    }
}

/* Sticky Footer */
footer {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 1020;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper {
    flex: 1;
}

#page-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    /* Enable scrolling for content area */
}

/* Sidebar Dropdown Arrow Rotation */
.sidebar-dropdown-toggle .material-icons {
    transition: transform 0.2s;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}

.dropdown-menu {
    .dropdown-label {
        display: block;
        width: 100%;
        padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
        clear: both;
        font-weight: 400;
        color: var(--bs-dropdown-link-color);
        text-align: inherit;
        text-decoration: none;
        white-space: nowrap;
        background-color: transparent;
        border: 0;
        border-radius: var(--bs-dropdown-item-border-radius, 0);
    }
}

/* Auto-complete */
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: #1e90ff !important;
    color: #ffffff;
}

.required::after {
    content: " *";
    color: red;
}

table tbody tr {

    td:first-child,
    th:first-child {
        /* border-left: #dee2e6 1px solid; */
        border-left: rgba(0, 0, 0, 0.12) 1px solid;
    }

    td,
    th {
        /* border-right: #dee2e6 1px solid; */
        border-right: rgba(0, 0, 0, 0.12) 1px solid;
    }
}

.modal .modal-dialog {
    width: 600;

    .modal-content {

        .modal-header {
            padding: 10px;
        }

        .modal-body {
            dl {
                display: flex;
                flex-direction: row;
                margin: 0;
                height: 44px;

                dt {
                    width: 20%;
                    text-align: left;
                    padding: 2px;
                    line-height: 20px;
                }

                dd {
                    width: 80%;
                    padding: 2px;
                    line-height: 20x;
                }


                dt {
                    width: 175px;
                }

                dd {
                    width: calc(100% - 175px);

                    input,
                    textarea,
                    select {
                        width: 100%;
                    }

                    .form-control {
                        padding: .25rem .75rem;
                    }
                }
            }

            dl.row2 {
                height: 75px;
            }
        }

        .modal-footer {
            padding: 10px;
        }
    }
}

.btn.btn-round {
    border-radius: 20px;
}

.btn.btn-sm.btn-round {
    border-radius: 17px;
}


.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn:not(.btn-shadow):not(.shadow):not(.shadow-sm):not(.shadow-lg):not(.shadow-xs) {
    box-shadow: none;
}

.btn.btn-outline:not(.btn-outline-dashed) {
    border: 1px solid var(--bs-gray-300);
}

.btn.btn-text-gray-700 {
    color: var(--bs-text-gray-700);
}

.btn.btn-flex {
    display: inline-flex;
    align-items: center;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.bg-state-light {
    cursor: pointer;
}

.swal2-actions {
    column-gap: 10px;

    button {
        width: 100px;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;

    .spinner-border {
        position: absolute;
        width: 7.5rem;
        height: 7.5rem;
        top: calc(50% - 3.75rem);
        left: calc(50% - 3.75rem);
    }

    .btn {
        position: absolute;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }
}

.show {
    display: block;
}

.hide {
    display: none;
}