html {
    height: 100%;
}

body {
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    font-size: 11pt;
    line-height: 1.3;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff !important;
}

header {
    position: sticky;
    top: 0px;
    z-index: 1;
}

.content {
    flex: 1 0 auto;
    padding-top: 1.1rem;
}

main {
    /*allow the main content to fill the empty space*/
    flex-grow: 1;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary-color);
}

    a:hover, .btn-link:hover {
        color: var(--primary-hover-color);
    }

.link-style {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

    .link-style:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

.btn-table-sort-by {
    --bs-btn-padding-y: 0.125rem;
    --bs-btn-padding-x: 0.25rem;
    --bs-btn-font-size: 0.4375rem;
    --bs-btn-border-radius: 0.125rem;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: #fff !important;
    transform: none !important;
    border-radius: 0 !important;
}

    .btn-table-sort-by:hover, .btn-table-sort-by:focus, .btn-table-sort-by:active {
        color: #fff !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        transform: none !important;
        text-decoration: none !important;
    }

.btn-table-action {
    --bs-btn-padding-y: 0.1rem;
    --bs-btn-padding-x: 0.2rem;
    --bs-btn-font-size: 0.7rem;
    --bs-btn-border-radius: 0rem;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: #fff !important;
    transform: none !important;
    border-radius: 0 !important;
    margin-right: 5px;
}

    .btn-table-action:hover, .btn-table-action:focus, .btn-table-action:active {
        color: #fff !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        transform: none !important;
        text-decoration: none !important;
    }

.btn-table-sort {
    --bs-btn-padding-y: 0rem;
    --bs-btn-padding-x: 0rem;
    --bs-btn-font-size: 0.7rem;
    --bs-btn-border-radius: 0rem;
    color: var(--primary-color) !important;
    transform: none !important;
    border-radius: 0 !important;
}

    .btn-table-sort:hover, .btn-table-sort:focus, .btn-table-sort:active {
        color: #fff !important;
        background-color: var(--primary-color) !important;
        transform: none !important;
        text-decoration: none !important;
    }

.btn-table-delete {
    --bs-btn-padding-y: 0.1rem;
    --bs-btn-padding-x: 0.2rem;
    --bs-btn-font-size: 0.7rem;
    --bs-btn-border-radius: 0rem;
    color: var(--delete-color) !important;
    border-color: var(--delete-color);
    background-color: #fff !important;
    transform: none !important;
    border-radius: 0 !important;
    margin-right: 5px;
}

    .btn-table-delete:hover, .btn-table-delete:focus, .btn-table-delete:active {
        color: #fff !important;
        background-color: var(--delete-hover-color) !important;
        border-color: var(--delete-hover-color);
        transform: none !important;
        text-decoration: none !important;
    }

.btn-primary {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: none !important;
    margin-right: .5rem;
    border-radius: 0 !important;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        background-color: #fff !important;
        transform: none !important;
        text-decoration: none !important;
    }


.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: #fff !important;
    transform: none !important;
    margin-right: .5rem;
    border-radius: 0 !important;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
        color: #fff !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        transform: none !important;
        text-decoration: none !important;
    }


.btn-outline-gray {
    color: var(#777) !important;
    border-color: var(#777) !important;
    background-color: #fff !important;
    transform: none !important;
    margin-right: .5rem;
    border-radius: 0 !important;
}

    .btn-outline-gray:hover, .btn-outline-gray:focus, .btn-outline-gray:active {
        color: #fff !important;
        background-color: var(#777) !important;
        border-color: var(#777) !important;
        transform: none !important;
        text-decoration: none !important;
    }


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: var(--delete-color);
    font-size: 0.9rem;
    padding-top: 5px;
}



/*Gray Background*/
.bg-black {
    background-color: #000;
}

.bg-gray-1 {
    background-color: #111;
}

.bg-gray-2 {
    background-color: #222;
}

.bg-gray-3 {
    background-color: #333;
}

.bg-gray-4 {
    background-color: #444;
}

.bg-gray-5 {
    background-color: #555;
}

.bg-gray-6 {
    background-color: #666;
}

.bg-gray-7 {
    background-color: #777;
}

.bg-gray-8 {
    background-color: #888;
}

.bg-gray-9 {
    background-color: #999;
}

.bg-gray-a {
    background-color: #aaa;
}

.bg-gray-b {
    background-color: #bbb;
}

.bg-gray-c {
    background-color: #ccc;
}

.bg-gray-d {
    background-color: #ddd;
}

.bg-gray-e {
    background-color: #eee;
}

.bg-white {
    background-color: #fff;
}

.bg-default {
    background-color: #fff;
}

.bg-last-update {
    background-color: #f7f7f7;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-gray {
    border: solid 1px #bbb;
}

.error-level-1 {
    background-color: #ffcccc;
}

.error-level-2 {
    background-color: #ff9999;
}

.error-level-3 {
    background-color: #ff6666;
    color: #fff;
}

    .error-level-3 a {
        color: #fff;
    }

.error-level-4 {
    background-color: #ff3333;
    color: #fff;
}

    .error-level-4 a {
        color: #fff;
    }

.error-level-5 {
    background-color: #ff0000;
    color: #fff;
}

    .error-level-5 a {
        color: #fff;
    }


/*Navigation Login*/
.navbar-expand .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    display: block;
    text-decoration: none;
}


/*Page Header Breadcrumb*/
.page-head-breadcrumb {
    width: 100%;
    background-color: #f8f9fa !important;
    padding: 1rem 1rem 0 0.75rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    border-bottom: 1px solid #dee2e6 !important;
    font-size: 14pt;
    vertical-align: middle;
}

    .page-head-breadcrumb .head {
        flex: 1 1 auto !important;
    }

        .page-head-breadcrumb .head h2 {
            font-size: 1.75rem;
            font-weight: 300 !important;
            font-size: 25.667pt;
            color: #666;
        }

    .page-head-breadcrumb .breadcrumb {
        padding-top: 0.4rem !important;
    }

/*.page-head-breadcrumb-no-margin {
    width: 100%;
    background-color: #f8f9fa !important;
    padding: 1rem 1.5rem 0 1.5rem !important;
    margin-bottom: 0rem !important;
    display: flex !important;
    border-bottom: 1px solid #dee2e6 !important;
    font-size: 14pt;
    vertical-align: middle;
}

    .page-head-breadcrumb-no-margin .head {
        flex: 1 1 auto !important;
    }

        .page-head-breadcrumb-no-margin .head h2 {
            font-size: 1.75rem;
            font-weight: 300 !important;
            font-size: 25.667pt;
            color: #666;
        }*/



/*Table Sticky Header*/
table {
    text-align: left;
    position: relative;
    border-collapse: collapse;
    width: 100%;
}

.table-container {
    /*max-width: fit-content;
    max-height: fit-content;*/
}


.table-fix-header {
}

    .table-fix-header thead {
        padding: 10px;
        text-align: left;
        position: sticky;
        top: 0px;
        height: 40px;
        overflow-x: scroll;
        z-index: 1;
    }

    .table-fix-header th {
        position: sticky;
        top: 0;
        box-shadow: 0 2px 2px -1px rgb(0,0,0, 0.4);
    }


.th-minimal-width {
    white-space: nowrap !important;
    width: 1%;
}

.td-minimal-width {
    white-space: nowrap !important;
    width: 1%;
}

.td-label {
    white-space: nowrap !important;
    width: 1%;
    font-weight: bold;
    padding-right: 10px;
    padding-bottom: 10px;
}

.td-value {
    padding-bottom: 10px;
}

.td-mid-width {
    width: 50%;
}

.td-description {
    background: #f8f8ff !important;
    padding-left: 3rem !important;
}


/* Make the container vertically scrollable and cap the height as desired */
.table-responsive-fixed-header {
    max-height: 600px; /* Lowered for better usability on most screens */
    overflow-y: auto;
    /* border: 1px solid #e0e0e0; Subtle border for clarity */
    border-radius: 4px;
    background: #fff;
}


    /* Enable sticky header */
    .table-responsive-fixed-header thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--bs-body-bg, #fff);
        box-shadow: 0 2px 4px -2px rgba(0,0,0,0.08); /* Slightly more visible divider */
        transition: background 0.2s;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
    }

    /* If you use .table-dark or custom header colors, preserve the header bg */
    .table-responsive-fixed-header thead.table-dark th {
        background: var(--bs-dark, #212529);
        color: var(--bs-light, #f8f9fa);
    }

    .table-responsive-fixed-header thead.table-light th {
        background: var(--bs-light, #f8f9fa);
    }

    .table-responsive-fixed-header th:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: inherit; /*Slightly different to highlight frozen column */
        border-right: 1px solid #e0e0e0;
    }

    /* Optional: freeze the first column, too */
    .table-responsive-fixed-header td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: inherit; /*Slightly different to highlight frozen column */
        border-right: 1px solid #e0e0e0;
    }

    /* Make the top-left header cell sit above the frozen column cells */
    .table-responsive-fixed-header thead th:first-child {
        z-index: 2;
        background: var(--bs-light, #f8f9fa);
    }

/* Responsive: horizontal scroll for wide tables */
@media (max-width: 900px) {
    .table-responsive-fixed-header {
        max-width: 100vw;
        overflow-x: auto;
    }

        .table-responsive-fixed-header table {
            min-width: 600px;
        }
}





/*Alerts*/

.alert {
    margin-top: -1.5rem;
    text-align: center;
    --bs-alert-border-radius: 0;
}


.nav-pills .nav-link.active, .nav.nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 0;
    text-decoration: none !important;
}

    .nav-pills .nav-link.active, .nav.nav-pills .show > .nav-link:hover, .nav-pills .nav-link.active, .nav.nav-pills .show > .nav-link:focus, .nav-pills .nav-link.active, .nav.nav-pills .show > .nav-link :active {
        color: #fff;
        background-color: var(--primary-color);
        border-radius: 0;
        text-decoration: none !important;
    }

.nav-pills .nav-link.disabled {
    color: #6c757d;
}


/*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 {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/*form classes */
.spacing {
    margin-bottom: 1rem !important;
}


/*Card Classes*/
.card-header {
    padding: 0.71429rem 1.07143rem !important;
    background-color: #666;
    color: #fff !important;
    font-size: 1.125rem;
    border-radius: 0 !important;
}

.card-buttons {
    background-color: #fff !important;
    padding: 1rem !important;
    border-radius: 0 !important;
}

.card-buttons-above {
    background-color: #fff !important;
    padding: 1rem .5rem .5rem .5rem !important;
    height: 4rem;
}


.card-header-edit {
    padding: 0.71429rem 1.07143rem !important;
    background-color: #666;
    color: #fff !important;
    font-size: 1.2rem;
    border-radius: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-button {
    margin-left: auto !important;
    background-color: #666 !important;
}

    .card-header-button .btn-outline-primary {
        color: var(--primary-color) !important;
        background-color: #fff !important;
        border-color: var(--primary-color) !important;
        border-radius: 0 !important;
        line-height: 1;
        --bs-btn-padding-y: 0.25rem;
        --bs-btn-padding-x: 0.25rem;
        font-size: 0.875rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .card-header-button .btn-outline-primary:hover, .card-header-button .btn-outline-primary:focus, .card-header-button .btn-outline-primary:active {
            color: #fff !important;
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            transform: none !important;
            text-decoration: none !important;
        }


.card-search {
    padding: 1rem 1rem 1rem 1rem;
}

.card-table {
    padding: 0;
}

.card-item-count {
    padding: .5rem !important;
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    font-size: .875em;
    font-weight: bold;
}

.card-spacing {
    margin-bottom: 1.5rem !important;
    border-radius: 0 !important;
}

.card-form {
    margin-bottom: 1.5rem !important;
    border-radius: 0 !important;
}

.card-form-no-margin {
    margin: 0 0 0 0 !important;
    border-radius: 0 !important;
}

.card-form-top-margin {
    margin: 0 .5rem 0 .5rem !important;
    border-radius: 0 !important;
}

.card-form-side-margin {
    margin: 1rem .5rem 0 .5rem !important;
    border-radius: 0 !important;
}

.card-body {}

    .card-body .title {
        padding: 0.71429rem 1.07143rem !important;
        background-color: #666;
        color: #fff !important;
        font-size: 1.125rem;
        border-radius: 0 !important;
    }


    .card-body .card-subtitle {
        padding: 0 1rem 1rem 0 !important;
        text-transform: uppercase;
        font-size: 1rem;
    }


    .card-body fieldset {}


    .card-body label {
        margin-top: 0.71429rem !important;
        margin-bottom: 0.5rem;
        font-size: 0.85714rem !important;
        color: #555;
        display: inline-block;
        font-weight: 700 !important;
    }

    .card-body .label-select {
        padding: 20%;
        font-size: 0.85714rem !important;
        color: #555;
        display: inline-block;
        font-weight: 700 !important;
    }

    .card-body small {}

    .card-body hr {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }



.card-errors {
    padding: 1.5rem !important;
    color: var(--delete-color);
}

.card-footer {
    padding: 1.5rem !important;
    border-top: 1px solid #dee2e6 !important;
    background-color: #fff;
}

    .card-footer .btn-cancel {
        color: #555 !important;
        background-color: #fff;
        border-color: #eee;
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .card-footer .btn-cancel:hover, .card-footer .btn-cancel:focus, .card-footer .btn-cancel:active {
            color: #555 !important;
            background-color: #eee;
            transform: none !important;
        }

    .card-footer .btn-primary {
        color: #fff !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .card-footer .btn-primary:hover, .card-footer .btn-primary:focus, .card-footer .btn-primary:active {
            color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            background-color: #fff !important;
            transform: none !important;
            text-decoration: none !important;
        }


    .card-footer .btn-outline-primary {
        color: var(--primary-color) !important;
        background-color: #fff !important;
        border-color: var(--primary-color) !important;
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .card-footer .btn-outline-primary:hover, .card-footer .btn-outline-primary:focus, .card-footer .btn-outline-primary:active {
            color: #fff !important;
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            transform: none !important;
            text-decoration: none !important;
        }


    .card-footer .btn-delete {
        color: #fff !important;
        background-color: var(--delete-color);
        border-color: var(--delete-color);
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        float: right;
        border-radius: 0 !important;
    }

        .card-footer .btn-delete:hover, .card-footer .btn-delete:focus, .card-footer .btn-delete:active {
            color: var(--delete-hover-color) !important;
            border-color: var(--delete-hover-color);
            background-color: #fff;
            transform: none !important;
        }


.form-control {
    border-radius: 0 !important;
}

.form-select {
    border-radius: 0 !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        outline: none;
    }

.form-description {
    padding-top: 5px;
}

/*Modal*/
.modal-body label {
    margin-top: 0.71429rem !important;
    margin-bottom: 0.5rem;
    font-size: 0.85714rem !important;
    color: #555;
    display: inline-block;
    font-weight: 700 !important;
}

.modal-footer {
    border-top: 1px solid #dee2e6 !important;
    /*justify-content: flex-start;*/
}

    .modal-footer .btn-primary {
        color: #fff !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .modal-footer .btn-primary:hover, .modal-footer .btn-primary:focus, .modal-footer .btn-primary:active {
            color: var(--primary-color) !important;
            background-color: #fff !important;
            border-color: var(--primary-color) !important;
            transform: none !important;
            text-decoration: none !important;
        }

    .modal-footer .btn-outline-primary {
        color: var(--primary-color) !important;
        background-color: #fff !important;
        border-color: var(--primary-color) !important;
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .modal-footer .btn-outline-primary:hover, .modal-footer .btn-outline-primary:focus, .modal-footer .btn-outline-primary:active {
            color: #fff !important;
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            transform: none !important;
            text-decoration: none !important;
        }

    .modal-footer .btn-delete {
        color: #fff !important;
        background-color: var(--delete-color);
        border-color: var(--delete-color);
        border-radius: 0 !important;
        border-radius: 0 !important;
        line-height: 1;
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        margin-right: .5rem;
        border-radius: 0 !important;
    }

        .modal-footer .btn-delete:hover, .modal-footer .btn-delete:focus, .modal-footer .btn-delete:active {
            color: var(--delete-hover-color) !important;
            border-color: var(--delete-hover-color);
            background-color: #fff;
            transform: none !important;
        }

    .modal-footer .modal-footer-end {
        justify-content: flex-end;
    }

.nav-link {
    color: black;
}

    .nav-link:hover, .nav-link:focus, .nav-link:active {
        color: black;
    }


.list-group {
    border-radius: 0 !important;
}

.list-group-item.active {
    background-color: var(--primary-color) !important;
}


.dashboard {
    display: flex;
}

    .dashboard .left {
        flex: 0 0 auto;
        width: 16.66666667%;
        padding: 15px 15px 15px 30px;
        background-color: #eee;
    }

    .dashboard .main {
        flex: 0 0 auto;
        width: 83.33333333%;
        padding: 15px 15px 15px 30px !important;
        background-color: #fff;
        margin: 0 !important;
    }

        .dashboard .main .title {
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 10px;
            color: var(--primary-color);
            font-size: 1.28571rem !important;
        }

        .dashboard .main .body {
            padding-top: 1.5rem;
        }

            .dashboard .main .body .border {
                border: 1px solid black;
                padding: 0.5rem;
                margin-bottom: 1rem;
            }

.dashboard-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    padding-top: 10px;
    color: var(--primary-color);
    font-size: 1.28571rem !important;
}

/*To Top*/
.to-top { /*The layout for the button will inactive*/
    position: fixed;
    right: 20px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    color: #555;
    outline: none;
    cursor: pointer;
    border: none;
    outline: none;
    opacity: 0;
    transition: all .4s;
}

    .to-top.active { /*button character while active*/
        position: fixed;
        background: #ffffff;
        right: 20px;
        bottom: 25px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
        color: #555;
        pointer-events: auto;
        opacity: 0.9;
        z-index: 1; /*overlap button over footer*/
    }

        .to-top.active:hover {
            background-color: var(--primary-color) !important; /* Change the background color on hover */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a box shadow on hover */
            transform: scale(1.05);
            color: #fff;
            opacity: 0.9 !important;
        }

    .to-top:hover {
        opacity: 0 !important;
    }


.bi { /*icon inside the button*/
    text-decoration: none;
    align-items: center;
    font-size: 24px;
}

.bi-person {
    font-size: 17px;
}

.bi-envelope {
    font-size: 17px;
}

.bi-arrow-up-short {
    font-size: 30px;
    padding-left: 10px;
}



/*Footer*/
footer {
    position: relative;
    background-color: black;
    flex-shrink: 0;
    bottom: 0px;
    width: 100%;
}

.sticky-footer {
    height: 5vh !important;
}

.footer-header {
    color: var(--footer-primary-color);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

    .footer-list li {
        margin: 0 auto;
    }

        .footer-list li:not(:first-child) {
            margin-top: 5px; /* Adjust the margin-top value as per your preference this is to only target the rest li excep the first one */
        }

        .footer-list li a {
            text-decoration: none;
            color: white;
        }

.footer-longer-list {
    list-style: none;
    display: inline-block;
    text-align: left;
    padding: 0;
    margin-right: 20px;
}

    .footer-longer-list li:not(:first-child) {
        margin-top: 5px; /* Adjust the margin-top value as per your preference this is to only target the rest li except the first one */
    }

    .footer-longer-list li a {
        text-decoration: none;
        color: white;
    }

.copyright {
    color: white;
    text-align: left;
}

    .copyright a {
        color: var(--secondary-color);
        text-decoration: none;
    }

/*As soon as the vh is above 100 the footer will stick to the bottom*/
@media screen and (min-height: 100vh) {
    .footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        margin-top: auto;
        height: 100% !important;
    }
}

@media (min-width: 760px) and (max-width: 1200px) {

    .footer-longer-list {
        margin-right: 20px !important;
    }
}


/*ttip*/
#ttip {
    position: relative;
    cursor: pointer;
    /*padding: 10px;*/
}

#ttip-content {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background-color: #575757;
    color: #fff;
    white-space: nowrap;
    border-radius: 2px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
}

    #ttip-content::before { /*deals with arrow*/
        content: "";
        position: absolute;
        left: 50%;
        top: -1.2rem;
        transform: translateX(-50%);
        border: 10px solid;
        border-color: transparent transparent #3b403d transparent;
    }

#ttip:hover #ttip-content {
    top: 100%; /*keeps the tooltip underneath the text*/
    visibility: visible;
    opacity: 1;
}

.ttip-table {
    border-collapse: collapse; /* Merge adjacent cell borders */
    width: 100%;
    border: 0px solid #ffffff; /* Border for the entire table */
    font-size: 12px;
    margin-top: 5px;
    border-spacing: 1px 0; /* Adjust the values as needed */
}

    .ttip-table th {
        border: 0px solid #c41f1f; /* Borders for header cells and data cells */
        padding-left: 8px; /* Add some padding for spacing */
        text-align: left; /* Align text to the left */
        color: rgb(255, 255, 255);
        background-color: #575757; /* Background color for header cells */
    }

    .ttip-table td {
        border: 0px solid #0b9645; /* Borders for header cells and data cells */
        padding: 4px 7px; /* Add some padding for spacing */
        text-align: left; /* Align text to the left */
        color: rgb(255, 255, 255);
        overflow: hidden; /* Hide overflowing text */
        word-wrap: break-word;
        white-space: nowrap; /* Prevent text from wrapping */
    }

    .ttip-table th,
    .ttip-table td {
        overflow: visible;
        white-space: normal;
        vertical-align: top;
        min-width: 150px;
    }

        .ttip-table th .minimal-width,
        .ttip-table td .minimal-width {
            white-space: nowrap !important;
            width: 1%;
        }

.ttip-table-label {
    min-width: 100px !important;
}

.ttip-header {
    color: rgb(255, 255, 255) !important;
    font-size: 12px;
    background-color: #3b403d;
    display: flex; /* Set to flex to enable vertical alignment */
    align-items: center; /* Center vertically within the flex container */
    height: 30px;
    padding: 0 8px; /* Add padding for spacing */
    font-weight: bold;
}

#ttip-left {
    position: relative;
    cursor: pointer;
    /*padding: 10px;*/
}


#ttip-left-content {
    position: absolute;
    right: 10%;
    top: 0;
    transform: translateX(-10%);
    background-color: #575757;
    color: #fff;
    white-space: nowrap;
    border-radius: 2px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
}

    #ttip-left-content::before { /*deals with arrow*/
        content: "";
        position: absolute;
        right: -1.2rem;
        top: 1rem;
        transform: translateY(-50%);
        border: 10px solid;
        border-color: transparent transparent transparent #3b403d;
    }

#ttip-left:hover #ttip-left-content {
    visibility: visible;
    opacity: 1;
}


.p-2 {
    padding: .5rem .5rem !important;
}



/*Sort Icons*/
.table-sorting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.table-no-sorting {
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.pl-1 {
    padding-left: 0.71429rem !important
}

.fa {
    font: normal normal normal 10px/1 FontAwesome;
    font-size: 8pt;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased; /*Renders fonts more smoother*/
}


/*Login Background from appsettings*/
.bg-login {
    background-image: var(--loginbackgroundurl);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 100%;
    min-height: 100vh;
}


/*Spinner*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid var(--primary-color);
    border-bottom: 16px solid var(--primary-color);
    border-left: 16px solid var(--primary-color);
    border-right: 16px solid var(--secondary-color);
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

.loading-fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}