:root {
    --bmcd-theme-primary: #4A4A4A;
    --mud-palette-primary: var(--bmcd-theme-primary) !important;
    --mud-palette-primary-darken: var(--bmcd-theme-primary) !important;
    --mud-palette-drawer-icon: #FFFFFF!important;
}

html, body {
    font-family: Roboto, sans-serif;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #fbfbfb;
}

html {
    overflow-y: auto;
}

h1:focus {
    outline: none;
}

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

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

.btn-small-text {
    font-size: .85rem !important;
}

.mud-card-content {
    padding: 0 16px !important;
}

.pointer {
    cursor: pointer;
}

.unauthorized .mud-paper {
    padding: 25px;
}

#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: 5000;
    color: black;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.bmcd-primary {
    background-color: var(--bmcd-theme-primary) !important;
    color: white;
}

.btn-bmcd-primary-color {
    color: var(--bmcd-theme-primary) !important;
}

.btn-bmcd-primary, .btn-bmcd-primary:not(:disabled) {
    color: white !important;
    background-color: var(--bmcd-theme-primary);
}

.btn-bmcd-primary-text.mdc-button:not(:disabled) {
    color: var(--bmcd-theme-primary);
}

.btn-bmcd-primary-outline, .btn-bmcd-primary-outline:not(:disabled) {
    color: var(--bmcd-theme-primary);
}

.page {
    width: 100%;
    padding-top: 68px;
    height: 100%;
}

.body-container {
    position: absolute;
    top: 80px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 24px;
}

.inner-content {
    padding: 35px 24px;
}


.page-header {
    padding-left: 24px;
    padding-right: 24px;
    margin: 0;
}

.nav-btn {
    margin-right: 15px;
}

.nav-image {
    height: 50px !important;
}

.nav-span {
    vertical-align: top;
    margin-top: 12px;
    display: inline-block;
    font-family: Roboto, sans-serif !important;
    font-size: 1.25rem !important;
}

.nav-titles.mud-button:hover, .nav-titles.mud-button:focus-visible {
    background-color: transparent;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.environment-banner {
    top: 30px;
    left: -3.5em;
    width: 15em;
    z-index: 99999 !important;
    opacity: .75;
    overflow: hidden;
    position: fixed;
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    white-space: nowrap;
    pointer-events: none;
    background-color: rgba(170, 0, 0, .75);
    font-family: var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
}

.environment-banner span {
    color: #fff;
    margin-top: 1px;
    margin-bottom: 1px;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 50px;
    padding-right: 50px;
    text-align: center;
    font-weight: 400;
    text-shadow: 0 0 5px #444;
    pointer-events: none;
    text-decoration: none;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
.projects-table, .people-table{
    width: 100%;
    height: 85vh;
}

.text-box-large {
    height: 56px;
    border-color: rgb(0 0 0 / 60%);
}

.k-input-lg, .k-picker-lg {
    line-height: 1.1876em;
}

.k-autocomplete.k-input-lg {
    line-height: 1.5em;
}

.k-picker-lg .k-input-inner {
    padding: 18.5px 16px;
}

.k-dropdownlist.k-picker-lg .k-input-button {
    padding: 4px 18px;
}

.k-picker-outline:hover {
    background-color: transparent;
    color: rgb(66, 66, 66);
}

.k-button:hover::before, .k-button.k-hover::before, .k-button:focus::before, .k-button.k-focus::before {
    opacity: 0;
}

.k-input:focus-within {
    border-color: var(--bmcd-theme-primary);
}

.k-input-solid, .k-picker-solid {
    border-bottom-right-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    border-width: 1px;
    border-top-color: rgba(0, 0, 0, 0.6) !important;
}

.k-list-item.k-selected, .k-selected.k-list-optionlabel, .k-list-item:hover, .k-selected.k-list-optionlabel:hover {
    color: var(--bmcd-theme-primary);
}

.mud-telerik-label {
    width: 100%;
}

.mud-telerik-label.k-floating-label-container.k-state-empty > .k-label, .mud-telerik-label.k-floating-label-container.k-empty > .k-label {
    top: 40px;
    left: 16px;
    transform: scale(1);
    pointer-events: none;
}

.mud-telerik-label.k-floating-label-container > .k-label, .mud-telerik-label.k-floating-label-container.k-state-focused > .k-label, .mud-telerik-label.k-floating-label-container.k-focus > .k-label {
    top: 8px;
    left: 14px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: white;
    transform: scale(0.75);
    z-index: 2;
    font-size: 1.1rem;
}

.mud-telerik-label .k-floating-label-container::after {
    background-color: var(--ekpc-theme-primary);
}

.mud-telerik-label.k-empty .k-label {
    color: var(--mud-palette-text-primary);
}

.mud-telerik-label .k-label {
    color: rgb(66, 66, 66);
}

.mud-telerik-label.k-empty.k-focus .k-label {
    color: var(--ekpc-theme-primary);
}

.k-floating-label-container.k-focus > .k-floating-label {
    color: var(--ekpc-theme-primary) !important;
}

.k-floating-label-container.k-empty > .k-floating-label {
    top: 40px;
}

.k-floating-label-container > .k-floating-label, .k-floating-label-container.k-focus > .k-floating-label {
    top: var(--kendo-floating-label-focus-offset-y, 0px);
}

.page-body-container {
    margin-top: 10px;
}

.dialog-success .mud-dialog-content, .dialog-error .mud-dialog-content {
    padding-bottom: 35px;
    padding-top: 2px;
}

.dialog-success .mud-icon-root, .dialog-error .mud-icon-root {
    float: left;
    margin-top: -4px;
    margin-right: 8px;
}

.dialog-success {
    color: #188018;
}

.dialog-error {
    color: #bc1717;
}

.container-edit-risks {
    max-height: 70vh;
    overflow-y: scroll;
    padding-top: 0px;
    padding-bottom: 35px;
}

.container-edit-project, .container-edit-groups {
    max-height: 70vh;
    padding-top: 15px;
    min-height: 100px;
}

.container-edit-project .mud-paper, .container-edit-groups .mud-paper {
    padding: 24px;
    margin-top: 20px;
}

/* Override Telerik Primary Color */
.k-button-solid-primary {
    background-color: #B4D786 !important;
    border-color: #B4D786 !important;
}

.k-button-solid-primary:hover {
    background-color: rgba(180, 215, 134, 0.8) !important; /* Same semi-transparent color on hover */
    transition: all 0.2s ease-in-out !important; /* Smooth transition */
}

/* Specifically target grid command buttons */
.k-grid .k-button-solid-primary {
    background-color: #B4D786 !important;
    border-color: #B4D786 !important;
    color: black !important;
}

.k-grid .k-button-solid-primary:hover {
    background-color: rgba(180, 215, 134, 0.8) !important;
    color: black !important;
    transition: all 0.2s ease-in-out !important;
}

/* Sticky headers for TelerikGrid */
.assets-table .k-grid-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background-color: rgba(180, 215, 134, 0.6) !important;
    backdrop-filter: blur(5px) !important;
}

.assets-table .k-grid-header .k-header {
    position: sticky !important;
    top: 0 !important;
    background-color: rgba(180, 215, 134, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}

/* Ensure grid container allows sticky positioning */
.assets-table {
    position: relative !important;
    height: 400px !important; /* Set a fixed height for scrolling */
    overflow: auto !important;
}

/* Optional: Add shadow to sticky header for better visual separation */
.assets-table .k-grid-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.update-button {
    border: solid 1px rgba(180, 215, 134, 0.8) !important;
    
}

.cancel-button {
    margin-top: 5px;
    border: solid 1px rgba(180, 215, 134, 0.8) !important;
    
}

.k-multiselect {
    height: 56px !important; /* match DropDownList large size */
    box-sizing: border-box;
}

.roles-table {
    position: relative !important;
    height: 400px !important; /* Set a fixed height for scrolling */
    overflow: auto !important;
    margin-left: 25px;
    margin-top: 10px;
   
}

.wrap-column {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: unset;
}

.k-grid-content{
    overflow-x: auto !important;
}




