:root {
    interpolate-size: allow-keywords;
    --duration: 225ms;
    --cubic-transition: cubic-bezier(0.4, 0, 0.2, 1);
    --light-blue-rgb: rgba(57, 175, 209, 0.75);
    --menu-dark: 40, 43, 47;
    --blue-dark: 235, 248, 255;
    --blue-dark-bg: 10, 132, 255;
    --blue-light: 1, 136, 255;
    --blue-light-bg: 229, 243, 255;
    --dark-blue-dark: 191, 234, 253;
    --dark-blue-dark-bg: 43, 78, 91;
    --dark-blue-light: 0, 97, 124;
    --dark-blue-light-bg: 219, 242, 254;
    --gray-dark: 18, 18, 18;
    --green-dark: 154, 230, 180;
    --green-dark-bg: 34, 84, 61;
    --green-light: 39, 103, 73;
    --green-light-bg: 198, 246, 213;
    --grey-dark-bg: 158, 158, 158;
    --grey-light: 89,94,107;
    --grey-light-bg: 228,229,233;
    --orange-dark: 246, 173, 85;
    --orange-dark-bg: 123, 52, 30;
    --orange-light: 191, 54, 12;
    --orange-light-bg: 255, 239, 214;
    --pink-dark: 255, 184, 204;
    --pink-dark-bg: 90, 68, 77;
    --pink-light: 190, 55, 109;
    --pink-light-bg: 254, 236, 240;
    --purple-dark: 216, 193, 249;
    --purple-dark-bg: 77, 72, 93;
    --purple-light: 95, 48, 195;
    --purple-light-bg: 245, 238, 254;
    --red-dark: 254, 178, 178;
    --red-dark-bg: 116, 42, 42;
    --red-light: 255, 59, 48;
}

a {
    transition: all var(--duration) var(--cubic-transition);
    font-weight: 600;
}

/* =====================================================
   Import Fonts and Icons
   ===================================================== */
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* =====================================================
   Validation Styles
   ===================================================== */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
    font-size: 10px;
}

/* =====================================================
   Blazor Error UI Styles
   ===================================================== */
#blazor-error-ui {
    z-index: 1000;
    position: fixed;
    bottom: 0;
    left: 0;
    display: none;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    background: lightyellow;
}

    #blazor-error-ui .dismiss {
        position: absolute;
        top: 0.5rem;
        right: 0.75rem;
        cursor: pointer;
    }

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    background: url(data:image/svg+xml;base64,...);
    color: white;
}

/* =====================================================
   Control and Dropdown Styles
   ===================================================== */
.control-wrapper {
    margin: 0 auto;
    max-width: 250px;
    padding: 50px 0px 0px;
}

.drop-down-list-label {
    margin-bottom: 6px;
    font-size: 14px;
}

/* =====================================================
   Data Table and Action Buttons
   ===================================================== */
.datatable-action-button-activated {
    display: block;
}

.datatable-action-button-deactivated {
    display: none;
}

.action-icon-disabled {
    display: none;
}

.action-icon-disabled {
    display: none;
}

.view-action {
    font-weight: bold;
}

/* =====================================================
   Spinner Styles
   ===================================================== */
/* (A) Full Screen Wrapper */
#spinner {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    transition: opacity 0.2s;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
}

    /* (B) Center Loading Spinner */
    #spinner img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%);
    }

/* (C) Show & Hide */
#spinner {
    visibility: hidden;
    opacity: 0;
}

    #spinner.show {
        opacity: 1;
        visibility: visible;
    }

/* =====================================================
   Access Denied Styles (Commented Out)
   ===================================================== */
/* Access denied styles */
/*@import url("https://fonts.googleapis.com/css?family=Lato");
* {
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
}

.access-denied {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100vh;*/
/* background: linear-gradient(to bottom right, #EEE, #AAA); */
/*}

.lock {
    animation: dip 1s;
    animation-delay: 1.5s;
    border-radius: 5px;
    width: 55px;
    height: 45px;
    background-color: #333;
}

    .lock::before, .lock::after {
        content: "";
        position: absolute;
        left: calc(50% - 12.5px);
        border-left: 5px solid #333;
        width: 15px;
        height: 20px;
    }

    .lock::before {
        top: -30px;
        animation: lock 2s, spin 2s;
        border: 5px solid #333;
        border-bottom-color: transparent;
        border-radius: 15px 15px 0 0;
        height: 30px;
    }

    .lock::after {
        top: -10px;
        animation: spin 2s;
        border-right: 5px solid transparent;
    }

@keyframes lock {
    0% {
        top: -45px;
    }

    65% {
        top: -45px;
    }

    100% {
        top: -30px;
    }
}

@keyframes spin {
    0% {
        left: calc(50% - 30px);
        transform: scaleX(-1);
    }

    65% {
        left: calc(50% - 12.5px);
        transform: scaleX(1);
    }
}

@keyframes dip {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}*/
/* Access denied styles */

/* =====================================================
   Data Input Styles
   ===================================================== */
.data-input {
    padding-bottom: 1em;
}

    .data-input label {
        padding-bottom: 0.5em;
    }

    .data-input input[type="date"] {
        display: grid;
        grid-template-columns: auto;
        cursor: pointer;
    }

        .data-input input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            padding-left: 0.2rem;
        }

.required {
    color: rgb(var(--red-light));
}

.input-list-items {
    position: absolute;
    z-index: 1050;
    animation-duration: var(--duration);
    animation-fill-mode: both;
    animation-timing-function: var(--cubic-transition);
    animation-name: fadeInDown;
    width: 100%;
    max-height: 300px;
    background: red;
}

    .input-list-items .input-list-items-overlay {
        position: absolute;
        z-index: 1049;
        width: 100%;
        padding-bottom: 1rem;
    }

        .input-list-items .input-list-items-overlay .input-list-search {
            margin-top: 0.1rem;
        }

        .input-list-items .input-list-items-overlay .input-list-scrollspy {
            position: relative;
            overflow: auto;
            margin-top: 0.0rem;
            height: 400px;
        }

            .input-list-items .input-list-items-overlay .input-list-scrollspy .input-list-item {
                transition: all var(--duration) var(--cubic-transition);
                cursor: pointer;
            }

                .input-list-items .input-list-items-overlay .input-list-scrollspy .input-list-item:hover {
                    background: var(--ct-list-group-action-hover-bg);
                    color: var(--ct-list-group-action-hover-color);
                }

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Login and Center Screen Styles
   ===================================================== */
.login-error {
    text-align: center;
    color: red;
}

.center-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    height: 200px;
}

/* =====================================================
   HTTP Error Styles
   ===================================================== */
/* General Box Sizing */
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Body */
body {
    margin: 0;
    padding: 0;
}

/* HTTP Error Page Styles */
#http-error {
    position: relative;
    height: 100vh;
}

    #http-error .http-error {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
    }

.http-error {
    max-width: 520px;
    width: 100%;
    line-height: 1.4;
    text-align: center;
}

    .http-error .http-error-page {
        position: relative;
        height: 240px;
    }

        .http-error .http-error-page h1 {
            position: absolute;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%,-50%);
            -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
            margin: 0;
            margin-left: -20px;
            font-size: 252px;
            font-family: montserrat, sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -40px;
            color: #262626;
        }

            .http-error .http-error-page h1 > span {
                text-shadow: -8px 0 0 #fff;
            }

        .http-error .http-error-page h3 {
            position: relative;
            margin: 0;
            padding-left: 6px;
            font-size: 16px;
            font-family: cabin, sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: #262626;
        }

    .http-error h2 {
        margin-top: 0;
        margin-bottom: 25px;
        font-size: 20px;
        font-family: cabin, sans-serif;
        font-weight: 400;
        text-transform: uppercase;
        color: #000;
    }

/* Responsive HTTP Error Styles */
@media only screen and (max-width:767px) {
    .http-error .http-error-page {
        height: 200px;
    }

        .http-error .http-error-page h1 {
            font-size: 200px;
        }
}

@media only screen and (max-width:480px) {
    .http-error .http-error-page {
        height: 162px;
    }

        .http-error .http-error-page h1 {
            height: 150px;
            font-size: 162px;
            line-height: 162px;
        }

    .http-error h2 {
        font-size: 16px;
    }
}

/* HTTP Status Image */
.http-status-image {
    content: url("/images/http-status.svg");
    display: inline-block;
    height: 120px;
}

/* =====================================================
   Menu and Display Styles
   ===================================================== */
.menu-option-disabled {
    pointer-events: none;
}

.display-carriage-returns {
    white-space: pre-line;
}

/* =====================================================
   Logo and Image Styles
   ===================================================== */
/*
    logo.png should be W206 x H51
    logo-small.png should be W64 x 50

    Comment out the following lines in app-saas.css & app-saas.min.css to avoid the logo size being wrong.

        --ct-logo-lg-height: 22px;
        --ct-logo-sm-height: 22px;

    Alternatively use these styles:

        .logo img {
            height: 50px;
        }

        *.logo-sm img {
            width: 35px;
        }

        .sign-in-logo img {
            height: 80px;
        }
*/

/*img {
    object-fit: contain;
    display: block;
    max-width: 100%;
    height: auto;
}*/

.logo a,
.logo-topbar a,
.sign-in-logo a,
.navbar-logo-large a,
.navbar-logo-small a,
.leftside-logo-large a,
.leftside-logo-small a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Control the container constraints */
.sign-in-logo,
.navbar-logo-large,
.navbar-logo-small,
.leftside-logo-large,
.leftside-logo-small {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: auto;
    height: auto;
    overflow: hidden; /* Ensures no overflow within boundaries */
}

    /* Control the max width and height of large logos */
    .sign-in-logo img,
    .navbar-logo-large img,
    .leftside-logo-large img {
        max-width: 204px;
        max-height: 51px;
        width: 100%; /* Allows responsive scaling */
        height: auto;
        object-fit: contain; /* Maintains aspect ratio within container */
    }

    /* Control the max width and height of small logos */
    .navbar-logo-small img,
    .leftside-logo-small img {
        max-width: 100%; /* Allows responsive width within the container */
        max-height: 51px;
        width: auto;
        height: auto;
        object-fit: contain; /* Ensures aspect ratio is maintained */
    }

/* Handle responsiveness of small logos within narrow containers */
@media (max-width: 768px) {
    .navbar-logo-small img,
    .leftside-logo-small img {
        max-width: 80%; /* Shrinks width proportionally on smaller screens */
    }
}

/* Control the overflow of the .logo-sm container */
.logo-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Avoids overflow issues for small logos */
    max-height: 51px; /* Keeps logos within a max height boundary */
}

.text-area {
    resize: none;
}

.error-reference {
    font-weight: bold;
}

.processing-text.with-overlay {
    color: white;
}

/* =====================================================
   Content and Layout Styles
   ===================================================== */
/* Style the header */
/*.header {
    padding: 10px 16px;
    background: #555;
    color: #f1f1f1;
}*/

/* Sticky Header */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

    /* Content Padding when Sticky Header is Active */
    .sticky + .content {
        padding-top: 102px;
    }

/* Page content */

.content-page {
    min-height: unset;
    /*height: calc(100dvh - var(--ct-topbar-height) - 30px);*/ /* Content-page dynamic viewport height - appbar height - appbar margin-bottom */
}

html[data-sidenav-size=condensed]:not([data-layout=topnav]) .wrapper .content-page {
    min-height: unset;
}

/* =====================================================
   Upload Status Styles
   ===================================================== */
.upload-success {
    font-size: 30px;
    font-weight: bold;
    color: green;
}

.document-upload-error {
    font-size: 12px;
    color: red;
}

/* =====================================================
   Invoice Totals Styles
   ===================================================== */
.invoice-totals {
    float: right;
    width: fit-content;
    padding: 0 10px 0 30px;
}

    .invoice-totals .data-display {
        float: right;
        display: block;
    }

        .invoice-totals .data-display .label {
            margin-right: 30px;
        }

/* =====================================================
   Button Styles
   ===================================================== */
.download-button {
    margin-left: 1px;
    border: none;
    background: #0acf97 !important;
}

    .download-button:hover {
        background: #0bac7e !important;
    }

.close-button {
    border: none;
    background: #de804d !important;
}

    .close-button:hover {
        background: #ca703f !important;
    }

.returns-button {
    border: none;
    background: #de9c4d;
}

    .returns-button:hover {
        border: none;
        background: #b27226;
    }

    .returns-button:active {
        border: none;
        background: #b27226;
    }

.accept-quote-button {
    border: none;
    background: #0acf97;
}

    .accept-quote-button:hover {
        border: none;
        background: #0bac7e;
    }

    .accept-quote-button:disabled {
        border: none;
        background: #a6c2b2;
    }

.reject-quote-button {
    border: none;
    background: #fa5c7c;
}

    .reject-quote-button:hover {
        border: none;
        background: #b4455c;
    }

button i.mdi {
    font-size: initial;
}

.modify-button {
    border: none;
    background: #38adcf;
}

    .modify-button:hover {
        border: none;
        background: #287c95;
    }

    .modify-button:active {
        border: solid 1px #b27226;
        background: #b27226;
    }

.save-button {
    border: none;
    background: #0acf97;
}

    .save-button:hover {
        border: none;
        background: #0bac7e;
    }

.cancel-button {
    border: none;
    background: #fa5c7c;
}

    .cancel-button:hover {
        border: none;
        background: #b4455c;
    }

/* =====================================================
   Badge Styles
   ===================================================== */
.badge {
    font-size: inherit;
}

.badge-red {
    background-color: rgba(255, 59, 48, 0.1);
    color: rgba(255, 59, 48, 1);
}

.badge-green {
    /*    background: #37b92d;
    color: #fff;*/
    background: rgb(198, 246, 213);
    color: rgb(39, 103, 73);
}

.badge-blue {
    background-color: rgb(229, 243, 255);
    color: rgb(1, 136, 255);
}

.badge-grey {
    /*    background: #6c757d;*/
    /*    color: #fff;*/
    background-color: rgb(228,229,233);
    color: rgb(89,94,107);
}

.badge-orange {
    /*    background: #ffc35a;
    color: #fff;*/
    background-color: rgb(255, 239, 214);
    color: rgb(191, 54, 12);
}

.badge-dark-blue {
    /*    background: #1f10e0;
    color: #fff;*/
    background-color: rgb(219, 242, 254);
    color: rgb(0, 97, 124);
}

.badge-purple {
    /*    background: #ba13d4;
    color: #fff;*/
    background-color: rgb(245, 238, 254);
    color: rgb(95, 48, 195);
}

.badge-pink {
    /*    background: #f242a3;
    color: #fff;*/
    background-color: rgb(254, 236, 240);
    color: rgb(190, 55, 109);
}

/* =====================================================
   Miscellaneous Styles
   ===================================================== */
.row {
    --ct-gutter-x: 20px;
}

.bottom-controls {
    margin-left: 10px;
    max-width: 45%;
}

.split-col {
    float: left;
    width: 45%;
}

.page-numbers-grid {
    margin-inline: auto;
    width: 200px;
}

    .page-numbers-grid .input-group {
        justify-content: center;
        gap: 0.75rem;
        font-size: 1rem;
    }

.float-end {
    margin-right: 10px;
}

.sortable {
    cursor: pointer;
}

.non-sortable:before {
    content: "\00a0 \00a0 \00a0 \00a0 ";
}

.page-number {
    cursor: unset;
}

.processing-title {
    border: none !important;
    border: solid 0px #fff;
}

    .processing-title:focus-visible {
        border: none !important;
        outline: none;
    }

.modal-content {
    border-radius: 10px;
}

/* Custom Loader Animation */
.custom-loader {
    animation: b2 1s infinite linear;
    margin: 15px;
    width: 35px;
    height: 30px;
    --c: linear-gradient(#38adcf 0 0);
    background: var(--c) 0% 100%, var(--c) 50% 100%, var(--c) 100% 100%;
    background-size: 9px 100%;
    background-repeat: no-repeat;
}

@keyframes b2 {
    20% {
        background-size: 9px 60%, 9px 100%, 9px 100%;
    }

    40% {
        background-size: 9px 80%, 9px 60%, 9px 100%;
    }

    60% {
        background-size: 9px 100%, 9px 80%, 9px 60%;
    }

    80% {
        background-size: 9px 100%, 9px 100%, 9px 80%;
    }
}

.page-nav-disabled {
    display: block;
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.kpi-value {
    margin-top: 1em !important;
    margin-bottom: 1em !important;
    font-weight: 600;
    color: #797778;
}

.four-square-dash {
    padding-bottom: 10px;
}

.square-item {
    height: 45.3%;
    padding: 3px;
}

.kpi-title {
    padding-top: 5px;
    font-weight: 700;
    color: #38adcf;
}

.top-right-icon-float {
    position: absolute;
    top: 10px;
    right: 10px;
}

.reply-button-area {
    margin-top: 10px;
}

.error-area {
    position: absolute;
    top: 0px;
    left: 0px;
    width: -webkit-fill-available;
    width: -moz-available;
    height: 100%;
    padding: 30% 0%;
    background: #dcdcdc;
    text-align: center;
}

.d-none {
    display: inline-block !important;
}

/* =====================================================
   Media Queries and Responsive Styles
   ===================================================== */
@media (prefers-color-scheme: dark) {
    html[data-theme=light] .badge-red {
        background-color: rgba(255, 59, 48, 0.1);
        color: rgba(255, 59, 48, 1);
    }

    html[data-theme=light] .badge-green {
        background: rgb(198, 246, 213);
        color: rgb(39, 103, 73);
    }

    html[data-theme=light] .badge-blue {
        background-color: rgb(229, 243, 255);
        color: rgb(1, 136, 255);
    }

    html[data-theme=light].badge-grey {
        background-color: rgb(228,229,233);
        color: rgb(89,94,107);
    }

    html[data-theme=light] .badge-orange {
        background-color: rgb(255, 239, 214);
        color: rgb(191, 54, 12);
    }

    html[data-theme=light] .badge-dark-blue {
        background-color: rgb(219, 242, 254);
        color: rgb(0, 97, 124);
    }

    html[data-theme=light] .badge-purple {
        background-color: rgb(245, 238, 254);
        color: rgb(95, 48, 195);
    }

    html[data-theme=light] .badge-pink {
        background-color: rgb(254, 236, 240);
        color: rgb(190, 55, 109);
    }

    html[data-theme=dark] .badge-red {
        background-color: rgb(116, 42, 42);
        color: rgb(254, 178, 178);
    }

    .badge-green {
        background-color: rgb(34, 84, 61);
        color: rgb(154, 230, 180);
    }

    .badge-blue {
        background-color: rgba(10, 132, 255, 0.5;
        color: rgb(235, 248, 255);
    }

    .badge-grey {
        background-color: #9e9e9e;
        color: #121212;
    }

    .badge-orange {
        background-color: #ffcc80 !important;
        background-color: rgb(123, 52, 30);
        color: rgb(246, 173, 85);
    }

    .badge-dark-blue {
        background-color: rgb(43, 78, 91) !important;
        color: rgb(191, 234, 253) !important;
    }

    .badge-purple {
        background-color: rgb(77, 72, 93) !important;
        color: rgb(216, 193, 249) !important;
    }

    .badge-pink {
        background-color: rgb(90, 68, 77) !important;
        color: rgb(255, 184, 204) !important;
    }
}

@media only screen and (max-width: 992px) {
    .content,
    .content-page {
        padding: 0;
    }
}

@media only screen and (max-width: 778px) {
    /*    .sortable {
            display: none;
        }*/
    .small-icon {
        position: inherit;
        font-size: x-large !important;
    }

    .vertical td {
        width: 50%;
    }
}

@media only screen and (max-width: 750px) {
    .report-section .report-item {
        width: -webkit-fill-available;
        width: -moz-available;
    }
}

@media only screen and (max-width: 600px) {
    .align-middle.d-none.d-lg-inline-block {
        display: none !important;
    }

    .gap-3 {
        gap: 0.5rem !important;
    }

    .account-user-avatar {
        display: none !important;
    }
}

@media only screen and (max-width: 410px) {
    .navbar-custom .topbar {
        --ct-gutter-x: 54px !important;
    }
}

@media only screen and (max-width: 400px) {
    .kpi-icon {
        display: none;
    }
}

@media only screen and (max-width: 360px) {
    .vertical .label {
        display: none;
    }
}

/* =====================================================
   Components Reconnect Modal
   ===================================================== */
#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: block;
    }

/* =====================================================
   Preformatted Text Styles
   ===================================================== */
pre {
    font-size: var(--ct-body-font-size);
    font-family: var(--ct-body-font-family);
    font-weight: var(--ct-body-font-weight);
}

.btn-primary {
    border: none;
    color: #fff !important;
}

.data-grid-header {
    --ct-table-bg: #fff;
}

.order-page-top-bar {
    margin-left: 0px;
}

    .order-page-top-bar .data-display {
        float: left;
        margin-right: 5px;
        min-width: 15%;
    }

.mb-3 {
    margin-bottom: 0px !important;
    color: #38adcf;
}

.datagrid-width {
    margin: 0px;
    width: -webkit-fill-available;
}

.content-top-controls {
    padding: 0px 0px 20px 0px;
    z-index: 1;
}

.data-grid-paging {
    float: left;
    padding: 8px;
    font-size: large;
    color: #6c757d;
}

.btn-outline-secondary {
    border: none;
}