﻿
/* ============================================================================
   Dark-mode design-token bridge (UI Themes Phase 1, AB#13436)

   The UI is littered with Figma-exported CSS variables used with a hardcoded
   LIGHT fallback, e.g. color: var(--Neutral-900, #101C2D). Those variables were
   never defined, so the light fallback always won - which is why text stayed
   dark and surfaces stayed white regardless of the selected theme.

   Defining them here (once) in terms of MudBlazor's theme variables makes every
   existing var(--Token, #fallback) call site follow the light/dark palette
   automatically: in light mode these resolve to the same dark-text / white-surface
   look as before; in dark mode they flip. Literal hex values that are NOT wrapped
   in a var() are unaffected and are converted separately.
   ============================================================================ */
:root {
    /* Text (dark neutral tokens -> theme text color) */
    --Neutral-900: var(--mud-palette-text-primary);
    --neutral-900: var(--mud-palette-text-primary);
    --Text-Color-Neutral---900: var(--mud-palette-text-primary);
    --gray-900: var(--mud-palette-text-primary);
    --Neutral-Colors-Black: var(--mud-palette-text-primary);
    --Secondary-900: var(--mud-palette-text-primary);
    --light-text-color-title: var(--mud-palette-text-primary); /* form-field labels */
    --Neutral-700: var(--mud-palette-text-secondary);

    /* Brand */
    --Primary: var(--mud-palette-primary);
    --Text-Color-Neutral---Primary-700: var(--mud-palette-primary);

    /* Surfaces (white tokens -> theme surface) */
    --white: var(--mud-palette-surface);
    --neutral-colors-white: var(--mud-palette-surface);
    --Neutral-White: var(--mud-palette-surface);
    --Other-White: var(--mud-palette-surface);
    --web-bg-clr-01: var(--mud-palette-background);
    --mobile-bg-clr-01: var(--mud-palette-background-gray); /* tinted inset panels, e.g. Advanced Filter */

    /* Lines / borders */
    --Neutral-300: var(--mud-palette-lines-default);
    --Text-Color-Stroke: var(--mud-palette-lines-default);
}

@font-face {
    font-family: "Basier Square Regular";
    src: url("https://db.onlinewebfonts.com/t/ba7f6bf19fc57885cb70cd9b2f630ac3.eot");
    src: url("https://db.onlinewebfonts.com/t/ba7f6bf19fc57885cb70cd9b2f630ac3.eot?#iefix")format("embedded-opentype"), url("https://db.onlinewebfonts.com/t/ba7f6bf19fc57885cb70cd9b2f630ac3.woff2")format("woff2"), url("https://db.onlinewebfonts.com/t/ba7f6bf19fc57885cb70cd9b2f630ac3.woff")format("woff"), url("https://db.onlinewebfonts.com/t/ba7f6bf19fc57885cb70cd9b2f630ac3.ttf")format("truetype"), url("https://db.onlinewebfonts.com/t/ba7f6bf19fc57885cb70cd9b2f630ac3.svg#Basier Square Regular")format("svg");
}

body {
    font-family: "Basier Square Regular";
}

.custom-bordered-button {
    border: 1px solid #1976d2;
    width: 150px;
    max-height: 60px;
}

    .custom-bordered-button:disabled {
        border: 1px solid var(--mud-palette-lines-default) !important;
    }

.col-resize {
    overflow: hidden;
    resize: horizontal;
    min-width: 25px;
    white-space: nowrap;
}


/* Styles for the JavaScript-controlled Resizer Handle */
/* (This div will be dynamically added by JavaScript) */
.resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 3px; /* Width of the draggable area */
    height: 100%;
    cursor: ew-resize; /* Cursor indicating horizontal resizing */
    z-index: 1; /* Ensure it's clickable above cell content */
    background-color: rgba(0, 0, 255, 0); /* Invisible by default */
    /* For debugging, you can make it visible: background-color: rgba(0, 0, 255, 0.2); */
}

    /* Add a hover effect for better UX */
    .resizer:hover {
        background-color: rgba(0, 0, 255, 0.1);
    }

/* Style for when a column is being resized (optional) */
.resizing-column {
    background-color: #f0f8ff; /* Light blue background for the column being resized */
}

.cursor-move, .action-grid {
    padding: 2rem 0.313rem 1rem 0.313rem !important;
    /*overflow: hidden;*/
    white-space: nowrap;
    /*resize: horizontal;*/
    /* max-width: 6rem;*/
    vertical-align: top;
    color: var(--neutral-900, #101C2D) !important;
    font-size: 15px;
    font-style: normal;
    font-weight: 600 !important;
    line-height: 16px !important;
    cursor: default !important;
}

    .cursor-move span {
        max-width: 6rem;
    }

.button-style {
    padding: 0.75rem 2rem;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface) !important;
    text-transform: none;
    white-space: nowrap;
    border-radius: 12px;
    height: 3rem;
    flex: 1 1 0;
}

.calendar-button-style {
    padding: 0.75rem 2rem;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface) !important;
    text-transform: none;
    white-space: nowrap;
    flex: 1 1 0;
    border-radius: 12px;
    height: 2.5rem;
}

.edit-button-style {
    border-radius: 9.088px;
    border: 0.757px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface) !important;
    padding: 9.088px 24.236px;
    text-transform: none;
    white-space: nowrap;
    height: 2.25rem;
}

    .edit-button-style .mud-button-label {
        color: #008ECF;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 15.147px;
    }

.record-text {
    flex: 1 0 0;
    color: var(--Text-Color-Neutral---900, #122033);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.record-count {
    color: var(--Primary, #008ECF);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.record-item {
    gap: 16px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    padding: 3% 6%;
    width: 16.25rem;
    height: 3.25rem;
}

.filter-height {
    height: 8%;
}

.panel-item {
    border-radius: 12px 12px 0px 0px;
    text-transform: none;
    border: 1px solid var(--mud-palette-lines-default);
    font-size: 16px;
    color: var(--Text-Color-Neutral---900, #122033);
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    background: var(--mud-palette-surface);
}

.mud-tab.mud-tab-active.panel-item {
    color: #fff;
    background-color: var(--mud-palette-primary);
    border: 1px solid var(--mud-palette-primary);
}

.panel-group .mud-tooltip-root.mud-tooltip-inline {
    margin-right: 3px;
}

.circle-radius {
    height: 70px;
    width: 70px;
    line-height: 70px;
    border-radius: 50%;
    text-align: center;
    background: #CECECE;
    color: #fff;
    cursor: pointer;
}

.page-heading {
    color: var(--Neutral-900, #101C2D);
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.view-item-header {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    gap: 16px;
    align-items: center;
    background: var(--mud-palette-surface);
}

.view-item-text {
    color: #000;
}

.panel-item-view {
    border-radius: 8px;
    border: 1px solid rgba(221, 228, 238, 0.72);
}

    .panel-item-view div:first-child p, .font-16-blue {
        color: var(--Text-Color-Neutral---Primary-700, #57B5E0);
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
    }

    .panel-item-view div:last-child p, .font-16-black {
        color: var(--Text-Color-Neutral---900, #122033);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

.fund-table th {
    color: var(--Neutral-900, #101C2D) !important;
    font-size: 15px;
    font-style: normal;
    font-weight: 600 !important;
    line-height: 16px !important;
}

.transaction-table td {
    width: 20%;
    overflow-wrap: anywhere;
}

.primary-button {
    border: 1px solid var(--mud-palette-primary) !important;
    background: var(--mud-palette-primary) !important;
    color: #fff !important;
}

.appbar-icon {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
}

.add-image {
    display: flex;
}

.add-icon {
    display: none;
}

.asset-item:hover .add-image {
    display: none;
}

.asset-item:hover .add-icon {
    display: block;
}

a.mud-nav-link.active {
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, var(--mud-palette-surface)) !important;
    color: var(--mud-palette-primary);
    border-radius: 12px;
}

.drawer-navbar {
    border-radius: 8px;
    border: none;
    /* Match the page ground so the rail recedes instead of floating as a lighter
       box (drawer-background is white in light, #10161F in dark) (AB#13436). */
    background: var(--mud-palette-drawer-background);
    display: flex;
    padding: 1% 0% 1% 1%;

    overflow: visible
}

    .drawer-navbar p, .mud-nav-group > .mud-nav-link > .mud-nav-link-text {
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        color: var(--mud-palette-text-secondary);
    }


.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.nav-custom .mud-navmenu::after {
    content: '';
    width: 2px;
    height: 100%;
    position: absolute;
    left: 28px;
    top: 0;
}

.nav-custom .mud-nav-link .mud-nav-link-expand-icon {
    color: var(--mud-palette-text-secondary);
}

.nav-custom .mud-nav-link-text {
    margin-left: 31px !important;
}

.apply-border button.mud-nav-link, .nav-border .mud-nav-link {
    border-radius: 12px;
    border: none;
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, var(--mud-palette-surface)) !important;
}

.icon-class .mud-nav-link {
    padding: 12px 12px 12px 15px;
    border-radius: 12px;
    border: none;
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, var(--mud-palette-surface)) !important;
}

.dropdown-menu * {
    color: var(--mud-palette-primary);
}

.font-36 {
    font-size: 36px;
}


.border-large {
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
}

.border-small {
    border-radius: 8px;
    border: 1px solid rgba(221, 228, 238, 0.72);
    background: var(--mud-palette-surface);
}

.scroll-container {
    direction: rtl;
    overflow-y: auto;
    width: 100%;
}

    .scroll-container::-webkit-scrollbar {
        width: 2px !important;
    }

    .scroll-container::-webkit-scrollbar-track {
        background: rgba(17, 20, 45, 0.25) !important;
    }

    .scroll-container::-webkit-scrollbar-thumb {
        background: rgba(17, 20, 45, 0.25) !important;
    }

.content {
    direction: ltr;
    justify-content: center;
}

.mud-dialog-title h6 {
    font-size: 20px !important;
    color: var(--Text-Color-Neutral---900, #122033);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
}

.fc-button-primary {
    background-color: var(--mud-palette-primary) !important;
    border: 1px solid var(--mud-palette-primary) !important;
}

.popover::before {
    content: "";
    position: absolute;
    top: calc(50% - 11px);
    right: 100%;
    border-width: 11px;
    border-style: solid;
    border-color: transparent var(--mud-palette-lines-default) transparent transparent;
}

.popover::after {
    content: "";
    position: absolute;
    top: calc(50% - 10px);
    right: 100%;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--mud-palette-surface) transparent transparent;
}

.nav-bar .mud-nav-link:hover {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface)) !important;
}

.autocomplete-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mud-autocomplete {
    height: auto;
    overflow: visible;
}

.select2-container .select2-selection--multiple {
    min-height: 55px;
}

.scheduled-button {
    background-color: #E1F6FD !important;
    border: 2px solid var(--Primary, #008ECF);
}

.onhold-button {
    background-color: #ecd6dd !important;
    border: 2px solid #D40040
}

.inprogress-button {
    background-color: rgba(233, 136, 23, 0.22) !important;
    border: 2px solid #E98817;
}

.completed-button {
    background-color: #c9f4e8 !important;
    border: 2px solid #00A677;
}

.select2-container--default .select2-selection--multiple {
    border: solid black 1px;
    outline: 0;
    min-height: 55px !important;
}

.highlighted-button {
    border: 1.714px solid #008ECF !important;
    background: #E1F6FD !important;
}

.button-icon-style {
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    border-radius: 12px;
    height: 3rem;
    width: 3rem;
}

.notification-wedget-grid {
    height: 780px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: var(--neutral-colors-white, #FFF);
}

.notification-wedget-grid-element {
    width: 100%;
    height: 106px;
    border-radius: 10px;
    background: #B4E7FA;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.dashboard-widget-paper {
    height: 7.25rem;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.dashboard-widget-paper-icon {
    width: 4.152rem;
    height: 3.75rem;
}

.dropdown-menu {
    width: 19.25rem;
    justify-content: center;
    height: 3rem;
    color: var(--mud-palette-primary);
    border-radius: 12px;
    border: 1px solid var(--mud-palette-primary);
    overflow: hidden;
}

.mud-md-table .mud-table-cell::before {
    color: var(--neutral-900, #101C2D);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    min-width: 50% !important;
}

.mud-md-table .mud-table-cell {
    justify-content: normal;
}

.location-treeview .mud-treeview-item-content {
    border-radius: 8px;
    border: 1px solid rgba(221, 228, 238, 0.72);
    background: var(--mud-palette-surface);
    margin-top: 10px;
    height: 56px;
    cursor: pointer;
}

.location-treeview > .mud-treeview-item > .mud-treeview-item-content:first-child p {
    font-weight: 600 !important;
}

.asset-treeview .mud-treeview-item {
    border-radius: 8px;
    border: 1px solid rgba(221, 228, 238, 0.72);
    background: var(--mud-palette-surface);
    margin-top: 10px;
    height: 56px;
    display: flex;
    cursor: pointer;
}

.location-treeview .mud-treeview-group {
    border-left: 2px solid rgba(17, 20, 45, 0.25);
    padding-left: 10px
}

.asset-treeview {
    border-left: 2px solid rgba(17, 20, 45, 0.25);
    padding-left: 20px
}

.selected-item > .mud-treeview-item-content, .selected-asset-item {
    border: 1px solid rgba(221, 228, 238, 0.72);
    background: var(--Primary---300, #E1F6FD);
}

.asset-list-icon {
    height: 3rem;
    width: 3rem;
    min-width: 3rem;
}

.asset-list-table td.mud-table-cell {
    padding: 0.5rem !important;
    /*max-width: 0;*/
    word-wrap: break-word;
    position: relative; /* Needed for positioning the resizer handle in JS */
}

.mud-table-root {
    /* Crucial: Do NOT set width: 100% here! */
    /* This allows the table to expand beyond its parent container's width */
    /*width: 100%;*/
    border-spacing: 0;
    table-layout: fixed; /* table-layout: fixed; is essential for explicit column width control */
    border-collapse: collapse;
    /*overflow-x: auto;*/
    min-width: 100%; /* This makes sure the table initially fills its container,*/
}

.asset-list-table th:first-child,
.asset-list-table td:first-child {
    width: 50px; /* keep first column fixed width*/
}

.asset-list-table th.action-grid,
.asset-list-table td.actionheader {
    width: 70px;
}

.asset-list-table td.mud-table-cell .d-flex {
    justify-content: center;
}

.asset-list-table .mud-table-row th.mud-table-cell:first-child {
    padding: 2.25rem 0.313rem 1rem 1.5rem !important;
}

.selected-asset-type {
    border: 1px solid rgba(221, 228, 238, 0.72);
    background: var(--Primary---300, #E1F6FD);
}

.audit-summary-title {
    font-weight: 600;
    display: inline;
}

.icon-box-shadow {
    box-shadow: var(--mud-elevation-8) !important;
    font-weight: 600;
}

.icon-box {
    text-transform: none;
    height: 3rem;
    width: 7rem;
    border: 1px solid var(--mud-palette-divider) !important;
    background-color: var(--mud-palette-surface) !important;
}

.zone-map-area {
    height: 80vh;
    width: 80vw;
    max-width: 100%;
    max-height: 100%
}

    .zone-map-area .mud-dialog-content {
        height: 65vh;
    }

.font-18, .status-button .mud-button-label {
    color: var(--Neutral-Colors-Black, #1E1B39);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.font-28 {
    color: var(--gray-900, #1E212C);
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
}

.font-14 {
    color: var(--Text-Color-Neutral---900, #122033);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px; /* 107.143% */
    letter-spacing: 0.07px;
}

.font-14-bold {
    color: var(--Neutral-900, #101C2D);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.font-16-bold {
    color: var(--Text-Color-Neutral---900, #122033);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 100% */
    letter-spacing: 0.08px;
}

.font-16 {
    color: var(--Neutral-700, #2F3A4C);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.font-20 {
    color: var(--Neutral-900, #101C2D);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.font-20-normal {
    color: var(--Text-Color-Neutral---900, #122033);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.font-21 {
    color: var(--Neutral-900, #101C2D);
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}

.font-20-blue {
    color: #57B5E0;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 15px; /* 75% */
    letter-spacing: 0.4px;
}

.font-12 {
    color: var(--Neutral-900, #101C2D);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.drawer-title {
    color: var(--Neutral-900, #101C2D);
    font-size: 21px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

@media screen and (max-width: 1280px) {
    .record-class {
        padding: 2%;
    }

    .audit-results-drawer {
        width: 45%;
    }

    .mud-table-row {
        position: relative;
        border: 1px solid var(--mud-palette-table-lines);
        margin-bottom: 1.5rem;
        border-radius: 0.5rem;
        display: flex !important;
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
        background: var(--mud-palette-surface);
    }

    .mud-table-cell {
        border-bottom: 1px solid var(--mud-palette-table-lines) !important;
    }

    .mud-md-table .mud-table-cell::before {
        color: var(--neutral-900, #101C2D);
        font-size: 15px;
        font-style: normal;
        font-weight: 600;
        line-height: 32px;
        min-width: 50% !important
    }

    .mud-md-table .mud-table-cell {
        justify-content: normal;
    }

    .asset-list-table td.mud-table-cell {
        max-width: unset;
    }

    .asset-list-table .mud-table-row > .mud-table-cell:first-child {
        padding: 20px !important;
        justify-content: end;
    }

    .audit-summary-title {
        display: block;
    }

    .record-item {
        width: unset !important;
    }

    .asset-logs-summary {
        max-width: inherit !important;
    }

    .asset-list-table th.action-grid,
    .asset-list-table td.actionheader {
        width: auto;
        min-width: unset;
        white-space: nowrap;
    }
}

@media only screen and (min-width: 1280px) {
    .record-class {
        display: flex;
        justify-content: center;
        padding: 1%;
    }

    .record-item {
        width: 100%;
    }

    .action-search .mud-input {
        width: 414px;
    }
}

.highcharts-credits {
    display: none;
}
/* Legend pager text gets no theme color from Highcharts and renders near-black, invisible on the dark theme. Follow the app text color instead. */
.highcharts-legend-navigation {
    fill: var(--mud-palette-text-primary) !important;
}
.highcharts-dashboards-edit-toolbar-row .highcharts-dashboards-edit-toolbar-item:nth-child(2) div {
    display: none;
}
.highcharts-dashboards-edit-toolbar-cell .highcharts-dashboards-edit-toolbar-item:nth-child(2) div {
    display: none;
}

.highcharts-dashboards-wrapper {
    background-color: transparent !important;
}

.selection-header {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

    .selection-header .mud-treeview-item-content {
        min-height: 70px;
    }

    .selection-header .mud-collapse-entered {
        margin-right: 17px;
    }

.selection-highlighted {
    border: 2px dotted #29aae3 !important;
    overflow: hidden;
}

.selection-non-highlighted {
    border: 2px dotted #c7c7cf !important;
    overflow: hidden;
}

.h-12 {
    height: 3rem;
}

.mud-table-cell {
    color: var(--Neutral-900, #101C2D) !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.mud-button-text-primary .mud-button-label {
    color: var(--Primary, #008ECF);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.primary-button .mud-button-label {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
/*MudDialog Design*/
.mud-dialog .mud-dialog-title {
    margin-top: 8px !important;
}

    .mud-dialog .mud-dialog-title .mud-button-close {
        border-radius: 12px;
        border: 1px solid var(--Neutral-300, #CCD4E0);
        background: var(--Neutral-White, #FFF);
        width: 40px;
        height: 40px;
        top: 18px;
        right: 25px;
    }

.drawer-style button.mud-button-root.mud-icon-button.mud-ripple.mud-ripple-icon {
    border-radius: 12px;
    border: 1px solid var(--Neutral-300, #CCD4E0);
    background: var(--Neutral-White, #FFF);
    width: 40px;
    height: 40px;
}

.drawer-style svg.mud-icon-root.mud-svg-icon.mud-icon-size-medium, .mud-dialog svg.mud-icon-root.mud-svg-icon.mud-icon-size-medium {
    fill: #008ECF;
}

.drawer-style .mud-grid-spacing-xs-3 {
    padding: 8px;
}

.drawer-style .mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 13px 12px;
}

.circle-radius-selected {
    color: #ffff;
    border: 1px solid #CCD4E0;
    background: var(--Primary, #008ECF);
}

form {
    width: 100%;
}

.description-box input.mud-input-slot.mud-input-root.mud-input-root-outlined {
    height: 30vh;
}

.calendar-button {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
}

.calendar-button-highlight {
    border-radius: 17.394px;
    background: var(--mud-palette-surface);
}

    .calendar-button-highlight p {
        color: var(--Secondary-900, #424242);
        font-weight: 600;
    }

/* Theme FullCalendar via its own CSS variables so cells, grid lines, the today
   highlight and day-number text follow light/dark (AB#13436). */
.fc {
    --fc-page-bg-color: var(--mud-palette-surface);
    --fc-border-color: var(--mud-palette-lines-default);
    --fc-neutral-bg-color: var(--mud-palette-background-gray);
    --fc-neutral-text-color: var(--mud-palette-text-secondary);
    --fc-today-bg-color: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
}

.fc-daygrid-event-harness a {
    border-radius: 8px;
}

.fc-scroller thead tr {
    border: 1px solid var(--Text-Color-Stroke, #DDE4EE);
    background: var(--web-bg-clr-01, #F6F8F8);
    padding: 20px;
    height: 52px;
    justify-content: center;
    align-items: center;
}

    .fc-scroller thead tr th {
        vertical-align: middle;
    }

.fc-h-event .fc-event-main-frame {
    text-align: center;
    height: 30px;
}

.fc-event-main-frame .fc-event-title {
    overflow: hidden;
    color: #FFFFFF; /* white on the colored status chips, both themes */
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Basier Square Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: -0.183px;
}

.fc-col-header-cell a {
    color: var(--Secondary-900, #424242);
    font-family: "Basier Square Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 170%;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.asset-picker .mud-input-control {
    display: none;
}

/*Map View*/
.mapview {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08) inset;
    width: 100%;
    height: 85vh;
    position: absolute;
}

.mapview-overview-panel {
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    display: flex;
    width: 463px;
    height: 200px;
    position: fixed;
    right: 30px;
    bottom: 30px;
}

.mapview-assetview-paper {
    border-radius: 8px;
    background: #DDE4EE;
    padding: 10px;
    width: 137px;
    height: 62px;
}

.mapview-legend-panel {
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    display: flex;
    width: 463px;
    height: 64px;
    position: fixed;
    right: 30px;
    /*bottom: 238px;*/
    bottom: 30px;
}

.mapview-marker-popup {
    font-family: "Basier Square Regular";
    padding: 12px;
    padding-top: 20px;
    font-size: 16px;
}

.mapview-marker-popup-title {
    font-weight: bold;
    font-size: 18px;
}

.mapview-bg-dot-marker {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mapview-marker-text {
    text-align: center;
    font-size: medium;
    font-weight: 600;
    position: absolute;
    bottom: -25px
}

.mapview-img-marker {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.mapview-drawer.mud-drawer.mud-drawer-temporary.mud-drawer-pos-right.mud-drawer--closed {
    right: -30.125rem;
}

.mapview-drawer .mud-drawer-content {
    position: relative;
    overflow-y: auto;
}
/*Map view end*/
/*Status legend dots*/
.status-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
}

.dot-dark-blue { background-color: #005F95; }
.dot-light-blue { background-color: #008ECF; }
.dot-green { background-color: #00A677; }
.dot-yellow { background-color: #E98817; }
/*Status legend dots end*/
/*Asset Upload*/
.asset-tabs .mud-tabs-toolbar {
    background-color: var(--mud-palette-background-gray);
}

.asset-tabs .mud-tab.mud-tab-active {
    background-color: var(--mud-palette-primary) !important;
    color: #fff;
    border-radius: 12px 12px 0px 0px;
    box-shadow: var(--mud-elevation-2);
}

.asset-tabs .mud-tab {
    background-color: var(--mud-palette-surface);
    border-radius: 12px 12px 0px 0px;
    box-shadow: var(--mud-elevation-2);
}

.asset-tabs .mud-tabs-panels {
    box-shadow: var(--mud-elevation-2);
}

.asset-tabs .mud-icon-button {
    padding: 0;
}

.asset-upload-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.asset-upload {
    border-radius: 10px;
    border: 1.2px dashed var(--mud-palette-primary);
    height: 172px
}

    .asset-upload .mud-input-control-input-container {
        height: 100%;
        width: 100%;
    }

.asset-logs-header {
    height: 65px;
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.asset-logs-td {
    padding: 24px 15px !important;
}

.asset-logs-summary {
    max-width: 270px;
}

.asset-result-dialog .mud-dialog-content {
    padding: 0;
}
/*Asset Upload End*/
/*Asset Upload End*/

.search-box .mud-input-outlined {
    background-color: var(--mud-palette-surface);
}

.tab-styles .mud-tabs-toolbar {
    background-color: var(--mud-palette-background-gray);
}

.tab-styles .mud-tabs-panels {
    background: var(--mud-palette-surface) !important;
    box-shadow: var(--mud-elevation-1);
}

table.fc-scrollgrid-sync-table, table.fc-scrollgrid.fc-scrollgrid-liquid {
    background-color: var(--mud-palette-surface);
}

.fc-event-title-container {
    cursor: pointer;
}

.notification-image-panel {
    border-radius: 12px;
    background: rgba(243, 107, 64, 0.10);
    text-align: center;
    height: 56px;
    width: 56px;
    justify-content: center;
    align-items: center;
    display: flex;
}

    .notification-image-panel img {
        width: 24px;
        height: 24px
    }

#date-range {
    white-space: nowrap;
}

.select-asset .mud-select {
    background: var(--mud-palette-surface) !important;
}

/*DatePicker Starts*/
.mud-picker-datepicker-toolbar {
    color: black !important;
    background: #ffff !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

    .mud-picker-datepicker-toolbar .mud-button-label {
        font-weight: 600 !important;
    }
/*DatePicker Ends*/

.notification-popover:hover {
    background-color: #ffff !important;
    cursor: default;
}

.notification-popover .mud-icon-button:hover {
    background-color: #ffff !important;
}

.notification-content {
    min-width: 32rem;
}

.filter-box {
    height: 73px;
    background-color: #ffff;
    border-radius: var(--Typeface-size-xs, 12px);
    background: var(--white, #FFF);
}

    .filter-box .check-box {
        top: -11px;
    }

    .filter-box .filter-type {
        font-weight: 600;
    }

.mobile-filter {
    bottom: 0;
    position: absolute;
    max-width: 100vw;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

    .mobile-filter .mud-dialog-content {
        padding-left: 0;
        padding-right: 0;
        flex: 1;
        min-height: 0;
        overflow-y: hidden;
    }

    .mobile-filter .mud-dialog-actions {
        flex-shrink: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

media only screen and (min-width: 1100px) {
    .cd-horizontal-timeline::before

{
    content: 'desktop';
}

}

media only screen and (min-width: 768px) {
    .cd-horizontal-timeline .events-content h2

{
    font-size: 7rem;
}

.cd-horizontal-timeline .events-content em {
    font-size: 2rem;
}

.cd-horizontal-timeline .events-content p {
    font-size: 1.8rem;
}
}

.mud-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mud-icon-add-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z'/%3E%3C/svg%3E");
}

.mud-icon-add {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
}

.mud-icon-remove-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f44336'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z'/%3E%3C/svg%3E");
}

.mud-icon-remove {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f44336'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E");
}

.mud-icon-warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff9800'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
}

/* Ensure MudBlazor snackbars appear above the AppBar */
#mud-snackbar-container {
    position: fixed;
    z-index: 10000 !important;
    pointer-events: none;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link-expand-icon {
    fill: var(--mud-palette-primary);
}

.popover {
    width: 260px; /* increase width as needed */
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: var(--mud-palette-surface);
}

/* Sidebar nav rail (AB#13436): the icon SVGs are hardcoded #101C2D (dark),
   correct on light but invisible on a dark rail. Point them at text-primary so
   they flip with the theme (dark in light mode, light in dark mode). Non-selected
   tiles stay transparent so they take the rail's own (themed) background. */
.nav-bar .mud-nav-link .mud-icon-root path:not([fill="none"]),
.drawer-navbar .mud-nav-link .mud-icon-root path:not([fill="none"]) {
    fill: var(--mud-palette-text-primary) !important;
}

/* Each collapsed rail icon is a hrefless Blazor <NavLink> (no OnClick handler),
   and an empty Href with Match="Prefix" matches every route - so MudBlazor tags
   every tile .active permanently. The real selection marker here is .icon-class /
   .nav-border, not .active, so .active must NOT be excluded below: excluding it
   let the generic a.mud-nav-link.active pill (white pre-dark-mode, now a blue
   color-mix fill) paint every tile. Keep only the genuinely-selected tile filled;
   the rest take the plain rail - white in light, themed in dark (AB#13442). */
.nav-bar .mud-nav-link:not(.nav-border):not(.icon-class) {
    background-color: transparent !important;
}

/* Selected icon takes the brand accent */
.mud-nav-link.icon-class .mud-icon-root path:not([fill="none"]),
.mud-nav-link.nav-border .mud-icon-root path:not([fill="none"]) {
    fill: var(--mud-palette-primary) !important;
}

/* Group expand/collapse chevrons (expanded drawer): the broad icon-fill rule
   above and MudBlazor's drawer-icon default both push these to near-white, so
   they read as bright boxes on dark. Keep them a subtle secondary (AB#13436). */
.nav-bar .mud-nav-link .mud-nav-link-expand-icon,
.drawer-navbar .mud-nav-link .mud-nav-link-expand-icon {
    color: var(--mud-palette-text-secondary) !important;
    background: transparent !important;
}

/* Color ONLY the arrow path - never the transparent 24x24 bounding-box path
   (fill="none"), which would otherwise become a visible gray square (AB#13436). */
.nav-bar .mud-nav-link .mud-nav-link-expand-icon path:not([fill="none"]),
.drawer-navbar .mud-nav-link .mud-nav-link-expand-icon path:not([fill="none"]) {
    fill: var(--mud-palette-text-secondary) !important;
}

    /* Enable scrolling inside the drawer */
    .drawer-navbar .mud-drawer-content {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

/* Optional: keep nav menu full height */
.nav-bar {
    min-height: 90%;
}


/*Verification*/

/* Pallet info area */
.pv-pallet-info {
    flex: 1 !important;
}

.pv-pallet-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.pv-pallet-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.pv-pallet-sub {
    font-size: 0.9rem !important;
    color: var(--mud-palette-text-secondary) !important;
    font-weight: 500 !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface)) !important;
    padding: 4px 12px !important;
    border-radius: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.pv-pallet-sub {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.pv-pallet-code {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--mud-palette-surface)) !important;
    padding: 3px 6px !important;
    border-radius: 40px !important;
    font-family: 'SF Mono', 'Menlo', monospace !important;
}

/*info banner */
.info-banner {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
    border: none;
    padding: 4px 4px;
    margin-top: 18px;
    color: var(--mud-palette-text-secondary);
}
/* ----------------------------------------------------------------------------
   Bootstrap surface-utility bridge (AB#13436). Many inputs/cards use the
   Bootstrap .bg-white / .bg-light utility classes, which hardcode a white
   background and would stay white in dark mode. The body-prefixed selector
   beats Bootstrap's .bg-white regardless of stylesheet load order, and is a
   no-op in light mode (surface is white there). .text-white is intentionally
   left alone (it sits on colored/brand backgrounds).
   ---------------------------------------------------------------------------- */
body .bg-white {
    background-color: var(--mud-palette-surface) !important;
}

body .bg-light {
    background-color: var(--mud-palette-background-gray) !important;
}

/* Bootstrap component bridge (AB#13436): some screens are built with Bootstrap
   .card / .form-control rather than MudBlazor. Bootstrap hardcodes these white
   with dark text, so they stay bright in dark mode. Point them at theme tokens
   (no-op in light, correct in dark). Only affects Bootstrap markup - MudBlazor
   uses .mud-card / .mud-input, which these selectors don't touch. */
body .card {
    background-color: var(--mud-palette-surface);
    border-color: var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
}

body .form-control {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
    border-color: var(--mud-palette-lines-default);
}

body .form-control[readonly],
body .form-control:disabled {
    background-color: var(--mud-palette-background-gray) !important;
}

.info-banner-text {
    font-style: italic;
}