@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /*    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: Inter, sans-serif;
    overflow: auto;
}

input[type="search"] {
    border: 1px solid;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btncommon {
    background-color: var(--Primary);
    color: var(--Light);
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
}

    .btncommon:hover {
        background-color: var(--Darken3);
    }

.custombtn {
    background-color: var(--Primary) !important;
    color: var(--Light);
    border: none;
    padding: 6px 16px;
}

    .custombtn:hover {
        background-color: var(--Darken3) !important;
    }


.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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+PC9kZWZzPjxnIGNsaXAt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ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/*.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 48%;
    position: absolute;
}*/

/*@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}*/
/*shared Spinner*/
.sharedTable-container {
    /*    border: 1px solid red;*/
    position: relative;
}

.spinner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.sharedSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--Primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    z-index: 5001;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

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

.customHtmlTable {
}

.divInline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .table-responsive table {
        width: 100%;
        max-width: none;
    }

.btnHover {
    border: 1px solid #000000;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btnHover {
    position: relative;
}

    .btnHover:hover {
        transform: translateY(-0.20em);
        border-color: black;
        color: #f9682b;
        border: 1px solid #000000;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

        .btnHover:hover::before {
            opacity: 1;
        }

    .btnHover::before {
        width: 100%;
        height: 1em;
        position: absolute;
        left: 0;
        bottom: -1.35em;
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
        opacity: 0;
        /*transition: all 0.65s;*/
        content: "";
    }

/*.tblDarkHeader th {*/
/*color: darkslategrey;*/
/*background-color: #918888 !important;
    font-weight: bold !important;
}*/

/*.tblDarkHeader {
    border: 1px solid gray;
    border-radius: 5px;
}
*/

/*tables*/
.table-container {
    overflow-x: auto;
    /*    overflow-y: hidden; */
    width: 100%;
    padding-bottom: 1px; /* To prevent horizontal scrollbar from hiding the last row */
}

.jQueryDatePicker {
    /*width: 160px;*/
}

.card-body {
    /*overflow-x: auto;*/
    padding: 0;
   /* margin-bottom: 30px;*/
}

table.tableAdd {
    width: 100%;
    line-height: 2;
}

    table.tableAdd tr th {
        text-align: left;
        padding: 10px;
        /*        font-size: 1 rem;
        font-weight: 100;*/
        vertical-align: top;
        /*        background-color: #F1F1F2;
        border-right: 1px solid #E6E7E8;*/
    }

    table.tableAdd tr td {
        padding-left: 10px;
    }

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 800px !important;
    }
}

/*colors*/
:root {
    --Primary: #2887E7;
    --Secondary: #3A6BFF;
    --Dark: #05070D;
    --text-color: #333;
    --Light: #FFFFFF;
    --Darken1: #03153F6;
    --Darken2: #174be6;
    --Darken3: #1442cc;
    --Darken6: #0d2a80;
    --Darken7: #0A2168;
    --Darken8: #08194d;
    --Desaturate7: #747f9b;
    --Desaturate8: #9ba4bc;
    --Desaturate9: #c6ccdc;
    --Desaturate10: #f6f8fc;
    --Brighten1: #1953ff;
    --Brighten6: #8ca9ff;
    --Brighten7: #a3baff;
    --Brighten8: #bacbff;
    --Brighten9: #d1ddff;
    --Brighten10: #e8eeff;
    --Border: #ECEFF1;
    --blueGrey50: #ECEFF1;
    --blueGrey100: #CFD8DC;
    --blueGrey400: #78909C;
    --blueGrey500: #607D8B;
    --blueGrey800: #37474F;
    --blueGrey900: #263238;
    --green600: #43A047;
    --red700: #D32F2F;
}

/* table style */
/*mud table*/
/*.mud-table-container {*/
/* border: 3px solid black !important; */
/*max-height: calc(100vh - 70vh) !important;
    border: 1px solid #eceff1 !important;
    border-radius: 5px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    min-height: 100% !important;
}

.mud-table-cell {
    font-size: 13px;
}

.mud-table-head .mud-table-cell.custom-header {
    white-space: nowrap !important;
    background-color: #E3F2FD !important;
    color: #2887E7 !important;
    padding: 8px !important;
    border: none !important;
    font-weight: bold;
    font-size: 13px;
}

.mud-elevation-1 {
    box-shadow: none !important;
}

.mud-table-head .mud-table-cell.custom-header {
    white-space: nowrap !important;
    background-color: #E3F2FD !important;
    color: #2887E7 !important;
    padding: 8px !important;
    border: none !important;
    font-weight: bold;
    font-size: 13px;
}

.mud-elevation-1 {
    box-shadow: none !important;
}*/

.styled-table {
    width: 100%;
    border-collapse: separate;
    border: 1px solid #e0e0e0;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    border-spacing: 0;
    font-size: 13px;
    text-align: center;
}

.jqueryDataTable {
    white-space: nowrap;
    background-color: #E3F2FD;
    color: #2887E7;
    width: 100%;
}

#sharedTable td {
    padding: 10px;
    border-bottom: 1px solid var(--Border);
}

#sharedTable tbody tr {
    color: var(--blueGrey900);
}

    #sharedTable tbody tr:hover {
        background-color: var(--Border);
    }


/*table.singleRowTable thead th, table.singleRowTable thead td {
    padding: 10px 18px;
    border-bottom: 1px solid #111;
}

table.singleRowTable tbody tr {
    background-color: #ffffff;
}*/
@media (max-width: 480px) {
    #sharedTable {
        min-width: 100%;
    }

        #sharedTable th, #sharedTable td {
            padding: 8px;
            text-align: center;
        }
}

/*table pagination*/
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #2887E7 !important;
    border: 1px solid #B0BEC5 !important;
    border-radius: 8px !important;
    background-color: white !important;
    background: none !important;
}

.dt-buttons {
    display: none;
}

.dataTables_filter {
    display: none;
}

.dataTables_scroll {
    /*max-height: calc(100vh - 40vh) !important;*/
    /*max-height: none !important;*/
    position: relative;
}

.dataTables_scrollBody {
    height: auto !important;
    /*max-height: none !important;*/
    overflow: auto !important;
}

/*cards*/
.cards {
    height: auto;
    border: none;
    margin: 0 10px 20px 0;
    /*padding: 6px;*/
    box-sizing: border-box;
    color: var(--blueGrey800);
    font-size: 13px;
}

    .cards h3 {
        font-size: 15px;
        font-weight: bold;
        margin-bottom: 10px;
        color: var(--blueGrey900);
    }

.card {
    /*border: 1px solid var(--blueGrey100);*/
    border: none;
    padding: 15px;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.field {
    margin-bottom: 15px;
    font-size: 13px;
}

    .field label {
        display: block;
        margin-bottom: 10px;
    }

    .field input {
        width: 100%;
        padding: 8px;
        border: 1px solid var(--blueGrey100);
        box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
        border-radius: 4px;
        font-size: 13px;
    }

    .field select {
        width: 100%;
        padding: 8px;
        border: 1px solid var(--blueGrey100);
        border-radius: 4px;
    }

    .field textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid var(--blueGrey100);
        border-radius: 4px;
    }

.plan-info, .cr-info {
    margin-bottom: 10px;
}

.customtd {
    min-width: 100px;
    max-width: 160px;
    word-wrap: break-word;
    padding: 8px;
}

.document {
    margin-bottom: 20px;
}

.document-input {
    width: 100%;
    border: 1px solid var(--blueGrey100);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    border-radius: 4px;
    padding: 7px 0 0 10px;
}

.custom-file-label {
    display: flex;
    cursor: pointer;
}

    .custom-file-label i {
        font-size: 1rem;
    }

.hint-text {
    margin-top: 10px;
    color: var(--blueGrey500);
}

.action-buttons {
    display: block;
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-weight: bold;
}

.cancel-button {
    padding: 10px 20px;
    border: 1px solid var(--blueGrey100);
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--Light);
    width: 48%;
    margin-bottom: 20px;
}

.apply-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--Primary);
    width: 48%;
    color: var(--Light);
    margin-bottom: 20px;
}

    .apply-button:disabled {
        background-color: #6ba5df;
        cursor: not-allowed;
    }

.client-info {
    padding: 10px;
    background-color: #F5F8FA;
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.create, .report {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--Border);
    border-radius: 5px;
    padding: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.create {
    background-color: var(--Primary);
    color: #fff;
}

    .create:hover {
        background-color: var(--blueGrey100);
    }

.report {
    background-color: var(--Light);
    color: #333;
}

    .report:hover {
        background-color: var(--blueGrey100);
    }

.action {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /*    gap: 80px;*/
    /*    margin-right: 20px;*/
    margin-bottom: 20px;
}
/*dropdown*/
.dropdown {
    position: relative;
    display: inline-block;
    font-size: 13px;
}


.dropdown-checkbox {
    display: none;
}


.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--Desaturate9);
    border-radius: 5px;
    padding: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid var(--Border);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    background-color: white;
    font-size: 13px;
    min-width: min-content;
}


    .dropdown-menu.dropdownMenuRight {
        right: 0;
        left: auto;
    }


    .dropdown-menu.dropdownMenuLeft {
        left: 0;
    }


    .dropdown-menu li {
        padding: 8px;
        white-space: nowrap;
        text-align: left;
        cursor: pointer;
        min-width: min-content;
    }

        .dropdown-menu li:hover {
            background-color: var(--Border);
            color: var(--Primary);
        }


.dropdown-checkbox:checked + .dropdown-toggle + .dropdown-menu {
    display: block;
}

/* Filter Section */
.filter {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-bottom: 20px;
    font-size: 13px;
}

    .filter label {
        font-weight: bold;
        margin-right: 5px;
        font-size: 13px;
    }

.filter-select {
    border: 1px solid var(--Desaturate9);
    border-radius: 5px;
    padding: 5px 10px;
    /*height: 25px;*/
    background-color: var(--Light);
    font-size: 13px;
}

.filter-input {
    border: 1px solid var(--Desaturate9);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    border-radius: 5px;
    padding: 5px 10px;
    background-color: var(--Light);
}

.filter-apply {
    background-color: var(--Primary);
    color: var(--Light);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
}

    .filter-apply:hover {
        background-color: var(--Darken3);
    }

.filter-reset {
    background-color: transparent;
    color: var(--Desaturate7);
    border: none;
    cursor: pointer;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.filter-date {
    border: 1px solid var(--Desaturate9);
    border-radius: 5px;
    padding: 5px 10px;
    /* height: 25px;*/
    background-color: var(--Light);
    font-size: 13px;
}
/*banner: growth&decline */
.maintext {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.customer-info {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.title {
    font-size: 13px;
    font-weight: bold;
}

.growth {
    color: var(--green600);
    font-size: 9.5px;
}

.decline {
    color: var(--red700);
    font-size: 9.5px;
}

.subtext {
    color: var(--blueGrey500);
    font-size: 9.5px;
}

.customer-stat {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: auto;
}

.stat-number {
    font-size: 13px;
    font-weight: bold;
}

.growth-icon {
    width: 1.5rem;
    height: 0.9rem;
    align-self: flex-end;
    margin-top: auto;
}

.decline-icon {
    width: 1.5rem;
    height: 0.9rem;
    align-self: flex-end;
    margin-top: auto;
}
/*canada-map*/
#provinceList .province-data {
    color: #607D8B;
    font-size: 9.5px;
}

    #provinceList .province-data strong {
        color: #000000;
        font-size: 13px;
        font-weight: bold;
    }
/*pie chart label*/
.custom-label {
    position: absolute;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 3px;
    pointer-events: none;
    transform: translate(-45%, -45%);
    white-space: nowrap;
    text-align: center;
}

/*Mud Grid Specific Style*/
.PageContainer {
    padding: 15px;
}

.gridTable table thead tr th {
    background-color: #e2f0fb !important; /* Dark blue-gray (common for headers) */
    color: #007eed !important; /* White text for contrast */
    font-weight: bold !important; /* Bold text */
    text-align: left !important; /* Align text to left (common for tables) */
    border-bottom: 1px solid #ddd !important; /* Optional separator line */
    text-wrap-mode: nowrap !important ;
}

.gridTable table td {
    padding: 8px !important;
}

.gridTable {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.grid-filter-box {
    padding: 16px 16px !important;
    background: #f8f9fa !important; /* Light Gray Background */
    border-radius: 2px !important; /* Rounded Corners */
    margin-bottom: 20px !important;
}

.formtextbox {
    margin-right: 50px !important;
}

.background-color-transparent.mud-input-disabled {
    background-color: transparent !important;
}

    .background-color-transparent.mud-input-disabled .mud-input-root {
        color: var(--mud-palette-text-primary) !important;
    }


.fixed-appbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    height: 64px; /* Default MudAppBar height */
}

@media (max-width: 600px) {
    .fixed-appbar {
        height: 56px;
    }

    .mud-main-content, .content-container {
        height: calc(100vh - 56px); /* mobile header height */
    }
}

.content-container {
    flex: 1 1 auto;
    height: calc(100vh - 64px); /* 64px = header height */
    overflow: auto;
}

@media (max-width: 600px) {
    .mud-main-content, .content-container {
        height: calc(100vh - 56px);
        mobile header height
    }
}

/* Make the entire grid a flexible column layout */
.gridTable {
    display: flex !important;
    padding: 10px !important;
    flex-direction: column !important;
    flex-direction: column;
    height: 60vh; /* Adjust as needed */
}

    /* Allow the table body to grow, but scroll only when needed */
    .gridTable .mud-table-container {
        flex-grow: 1;
        overflow-y: auto; /* Enables scrolling only in table body */
        /*min-height: 200px;*/ /* Ensures table doesn’t collapse */
        max-height: calc(60vh - 60px); /* Adjust based on footer height */
    }

    /* Ensure footer stays fixed at the bottom */
    .gridTable .mud-table-footer {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        padding: 10px 0; /* Prevents overlap */
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for clarity */
    }

.scrollable-div {
    max-height: 79vh; /* 80% of the viewport height (you can adjust this value) */
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    border: 1px solid #ccc; /* Optional: Adds a border for visibility */
    padding: 10px; /* Optional: Adds spacing inside */
    background: #f9f9f9; /* Optional: Background color */
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding-inline-start: 8px !important;
}

.date-range-popover .mud-picker-calendar-container {
    min-width: 600px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.date-range-popover .mud-picker-calendar-content {
    min-width: 280px !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}