@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --day-schedule-width-adder: 310px;
    --order-scheduler-right-container-adder: 300px;
    --toolbar-header-height: 52px;
    --toolbar-header-background-color: #F5F5F5;
    --scheduler-column-height: 0px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.navmenu-left {
    overflow-x: hidden;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.pb-captcha-error {
    color: var(--mud-palette-error, #dc3545);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}


.toolbar-container {
    width: 100vw;
    min-height: 100vh;
}

.toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--toolbar-header-height);
    padding-left: 20px;
    padding-right: 20px;
    background-color: var(--toolbar-header-background-color);
    gap: 20px;
}

.toolbar-lheader {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
}

.toolbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}

.toolbar-rheader {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.toolbar-notifications-group {
    padding-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    width: 30px;
    height: var(--toolbar-header-height);
    cursor: pointer;
}

    .toolbar-notifications-group:hover {
        /*background-color: rgb(153, 172, 213, 0.2);*/
    }

.toolbar-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
}

.toolbar-notifications-missed {
    position: absolute;
    background-color: #FF0000;
    color: #FFFFFF;
    width: 14px;
    height: 14px;
    font-size: 12px;
    border-radius: 7px;
    text-align: center;
    padding-bottom: 1px;
    right: 0;
    top: 0;
}

.toolbar-areas-switcher {
    /*padding-left: 50px;*/
}

.toolbar-areas-activator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    min-width: 150px;
    height: var(--toolbar-header-height);
}

.toolbar-areas-activator-text {
    border-radius: 8px;
    padding: 6px 6px 6px 12px;
    background-color: rgb(33, 150, 243);
    color: #FFFFFF;
    font-size: 16px;
}

    .toolbar-areas-activator-text:hover, .toolbar-areas-activator-text:active {
        background-color: rgba(33, 150, 243, 0.8);
    }

.toolbar-areas-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 300px;
    overflow-y: auto;
    min-width: 150px;
}


.toolbar-name {
    font-size: 18px;
    font-weight: 600;
}

.toolbar-bell {
    color: #979797;
}

    .toolbar-bell svg {
        font-size: 29px;
    }

.toolbar-dropdown-activator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

    .toolbar-dropdown-activator:hover {
        background-color: rgb(153, 172, 213, 0.2);
        cursor: pointer;
    }

.toolbar-dropdown-profile {
    color: rgb(66, 66, 66) !important;
}

.toolbar-name-and-role {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.toolbar-role {
    font-size: 14px;
    color: rgba(0,0,0,0.55);
    text-align: end;
}

.toolbar-breadcrumbs {
    display: flex;
    font-size: 20px;
    font-weight: 700;
    min-width: 150px;
    color: rgba(0,0,0,0.65);
    background-color: #99ACD5;
    height: var(--toolbar-header-height);
    align-items: center;
    justify-content: center;
    padding: 0 15px 0 15px;
    transform: skew(-15deg);
}

.toolbar-page-name {
    transform: skew(15deg);
    /*color: #FFFFFF;*/
}

.mud-main-content {
    padding-top: 0;
}

.mud-container {
    height: calc(100vh - var(--toolbar-header-height));
    overflow-y: auto;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*add this to avoid flickering*/
.plk-dd-inprogess > * {
    pointer-events: none;
}

/*dropzone style style*/
.plk-dd-dropzone {
    min-height: 50px;
}

/*drag drop styles*/

.plk-dd-spacing {
    height: 10px;
}

.plk-dd-spacing-dragged-over {
    padding: 25px;
}

.plk-dd-dragged-over {
    background-color: lightgray;
    opacity: 0.6;
    animation: blinker 1s linear infinite;
}

    .plk-dd-dragged-over > div {
        background-color: lightgray;
        opacity: 0.6;
        animation: blinker 1s linear infinite;
    }

.plk-dd-dragged-over-denied {
    background-color: red;
    opacity: 0.6;
    animation: blinker 1s linear infinite;
}

.plk-dd-in-transit {
    opacity: 0;
}

    .plk-dd-in-transit > div {
        opacity: 0;
    }

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.blink_me {
    animation: blinker 1s linear infinite;
}

/*for flex demo*/

.plk-flex .plk-dd-spacing {
    width: 20px;
    height: auto;
}

.plk-flex .plk-dd-dragged-over {
    background-color: lightgray;
    opacity: 0.6;
    animation: blinker 1s linear infinite;
}

    .plk-flex .plk-dd-dragged-over > div {
        background-color: lightgray;
        opacity: 0.9;
        animation: blinker 1s linear infinite;
    }

.plk-flex .plk-dd-in-transit {
    background-color: orangered;
}

    .plk-flex .plk-dd-in-transit > div {
        background-color: orangered;
    }

.plk-dd-noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.pb-dropdown-50 {
    width: 50px;
}

.pb-dropdown-75 {
    width: 75px;
}

.pb-dropdown-100 {
    width: 100px;
}


.pb-dropdown-150 {
    width: 150px;
}

.pb-dropdown-225 {
    width: 225px;
}

.pb-dropdown-300 {
    width: 300px;
}

.pb-input-75 {
    width: 75px;
}

.pb-input-100 {
    width: 100px;
}

.pb-input-150 {
    width: 150px;
}

.pb-input-225 {
    width: 225px;
}

.pb-button-150 {
    width: 150px;
}

.pb-button-225 {
    width: 225px;
}

.pb-wrapper {
    word-break: break-all;
}

.pb-time-records-column {
    width: 3% !important;
    font-weight: bold !important;
}

.pb-time-records-first-column {
    position: sticky;
    width: 200px;
    left: 0;
    z-index: 1;
    background-color: white;
}


.pb-print-highlight {
    background-color: #C0D9F8;
    width: 100%;
}

.vertical-align-top th {
    vertical-align: top !important;
}

.vertical-align-top-column {
    vertical-align: top !important;
}

.pb-print-highlight-header {
    background-color: #C0D9F8;
    font-weight: bold !important;
}


.quote-container {
    font-size: 12px !important;
    line-height: 1.2;
}


@media print {
    body {
        width: 100%;
        height: 100%; 
        /*font-size: 12px;*/
    }

    .print-quote-inner-container {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .quote-table {
        font-size: 12px !important;
    }

    .quote-table td {
        font-style: italic !important;
    }

    table {
        table-layout: fixed;
        page-break-inside: auto !important;
        overflow-y: visible;
        width: 100%;
    }

    thead {
        display: table-header-group;
    }

}

.chat-navmenu {
    width: 100% !important;
}

.pb-html-editor-container {
    resize: both;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #dadfe2;
    max-width: 1920px;
    max-height: 1080px;
    min-width: 350px;
    min-height: 350px;
    height: 250px;
    padding-bottom: 1em;
}

.rz-html-editor {
    border-bottom: none !important;
}



/*SCHEDULER */

/* ORDERS */

.order-items-table-description * {
    max-width: 100% !important; /* This targets all child elements */
    width: 100% !important; /* This targets all child elements */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width */
}


.order-grid-address-container {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 2px;
}

.order-grid-address-td {
    padding: 6px 14px 6px 6px !important;
}

.order-grid-date-total-balance {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .order-grid-date-total-balance div {
        text-align: right;
    }

.home-time-records-container {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 50px;
    padding-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
}

.home-time-records-account-container {
    width: 300px;
}

.home-time-records-schedules-container {
    width: 100%;
    align-items: center;
}

.home-time-records-schedules-container,
.home-time-records-account-container {
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: space-between;
}

.home-time-records-dropdown {
}

.home-time-records-button-container {
    max-width: 300px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: center;
}

.home-time-records {
    margin-bottom: 60px;
}

.account-grid-account {
    max-width: 100px;
}


.order-scheduler-right {
    width: calc(100vw - var(--day-schedule-width-adder) - 15px - 300px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-scheduler-estimated-hours {
    padding-top: 20px;
}

.pb-order-detail-scheduler {
}

.pb-day-view-items-new.pb-day-view-items-new-override-scheduler {
    width: calc(100vw - var(--day-schedule-width-adder) - 15px - var( --order-scheduler-right-container-adder ));
}

.toolbar-page-title {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px 10px 5px;
    color: #FFFFFF;
}

.pb-shipment-detail-other-container {
    padding-top: 30px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.pb-shipment-detail-other-schedule {
    border-radius: 4px;
    height: 100%;
    padding: 0.125rem 0.25rem;
    width: 30%;
}

.pb-shipment-detail-other-time-record {
    border-radius: 4px;
    border: dot-dot-dash #0a53be;
    height: 100%;
    padding: 0.125rem 0.25rem;
    width: 50%;
}

.pb-shipment-detail-other-checklist {
    min-width: 200px;
    border-radius: 4px;
    height: 100%;
    padding: 0.125rem 0.25rem;
    width: 20%;
}

.pb-accounts-button {
    font-size: 12px;
}

.pb-order-grid-id-header {
    min-width: 50px;
}

.pb-order-grid-id-footer {
    min-width: 50px;
    max-width: 50px;
}


.pb-order-grid-invoice-header {
    min-width: 50px;
}

.pb-order-grid-invoice-footer {
    min-width: 50px;
    max-width: 50px;
}


.pb-order-grid-status-header {
    min-width: 50px;
}

.pb-order-grid-status-footer {
    min-width: 50px;
    max-width: 50px;
}

.pb-order-grid-desc-header {
    max-width: 50px;
}

.pb-order-grid-desc-footer {
    max-width: 50px;
}

.pb-order-grid-favorite-header {
    min-width: 20px;
}

.pb-order-grid-favorite-footer {
    min-width: 20px;
    max-width: 20px;
}


.formatted-amount {
    text-align: right;
    padding-right: 50px;
}


.print-invoice-items-col1 {
    width: 20%;
}

.print-invoice-items-col2 {
    width: 45%;
}

.print-invoice-items-col3 {
    width: 10%;
}

.print-invoice-items-col4 {
    width: 15%;
}

.print-invoice-items-col5 {
    width: 10%;
}


.print-invoice-summary-col1 {
    width: 70%;
}

.print-invoice-summary-col2 {
    width: 15%;
}

.print-invoice-summary-col3 {
    width: 15%;
}

.fixed-bottom-div {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Adjust as needed to ensure it's above other elements */
}

.outlined-item {
    border: 1px solid #ddd; /* Customize the border as needed */
    border-radius: 4px; /* Optional: Adds rounded corners */
    padding: 8px; /* Optional: Adds some padding */
}

.pb-links {
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.pb-links a {
    display: inline-block; 
    cursor: pointer; 
    text-decoration: none;
    color: blue; 
    position: relative;
    z-index: 1; 
}

.pb-links span {
    margin: 0; 
}

/* Global Search Responsive Styles */

/* Screens below 1500px - start reducing search width */
@media (max-width: 1500px) {
    .toolbar-center {
        flex-grow: 0.8;
    }
}

/* iPad Pro and large tablets */
@media (max-width: 1366px) {
    .toolbar-center {
        flex-grow: 0.7;
    }
    
    .toolbar-page-name {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .toolbar-header {
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .toolbar-lheader {
        gap: 25px;
    }
    
    .toolbar-rheader {
        gap: 12px;
    }
    
    /* Reduce help button size on iPads */
    .toolbar-center .mud-icon-button {
        padding: 6px;
    }
}

/* Screens below 1200px - further reduction */
@media (max-width: 1200px) {
    .toolbar-center {
        flex-grow: 0.6;
    }
    
    .toolbar-page-name {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Tablet landscape - optimize space */
@media (max-width: 1024px) {
    .toolbar-center {
        flex-grow: 0.5;
    }
    
    .toolbar-header {
        gap: 10px;
    }
    
    .toolbar-lheader {
        gap: 20px;
    }
    
    .toolbar-rheader {
        gap: 10px;
    }
}

/* Tablet portrait and below - show search icon instead */
@media (max-width: 960px) {
    .toolbar-center {
        min-width: auto;
        flex-grow: 0;
    }
    
    .toolbar-breadcrumbs {
        flex-grow: 1;
    }
    
    .toolbar-page-name {
        max-width: none;
    }
}

/* Background utility classes */
.pb-background-grey {
    background-color: var(--mud-palette-background-grey);
}

/* Mobile phones */
@media (max-width: 600px) {
    .toolbar-lheader {
        gap: 10px;
    }
    
    .toolbar-rheader {
        gap: 5px;
    }
    
    .toolbar-breadcrumbs {
        display: none;
    }
    
    .toolbar-areas-activator {
        min-width: 100px;
    }
    
    .toolbar-areas-activator-text {
        font-size: 14px;
        padding: 4px 4px 4px 8px;
    }
    
    .toolbar-name {
        font-size: 16px;
    }
    
    .toolbar-role {
        display: none;
    }
}

/* Fix Performance & Achievements tabs hover area - make entire tab header clickable */
.performance-tabs .mud-tab {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.performance-tabs .mud-tab-slider-wrapper {
    height: 100% !important;
}

.performance-tabs .mud-tab-slider-wrapper .mud-tab-slider-content {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.performance-tabs .mud-tab-slider-wrapper .mud-tab-slider-content > button {
    flex: 1 !important;
    height: 100% !important;
    padding: 12px 24px !important;
    justify-content: center !important;
}

.performance-tabs .mud-tab-slider-wrapper .mud-tab-slider-content > button:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
}

.performance-tabs .mud-tab-slider-wrapper .mud-tab-slider-content > button .mud-tab-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
