.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: 55%;
    position: fixed;
    z-index: 99;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}



/*smaller RichEditor PageLayout Dropdown List*/
html > body > dxbl-popup-root > dxbl-popup-cell > dxbl-dropdown > dxbl-dropdown-dialog > div > ul > li > dxbl-toolbar-menu-item > button > svg {
    max-width: 40px;
    max-height: 50px;
}

.dx-blazor-context-menu-item.dropdown-item .dx-blazor-context-menu-item-icon {
    max-width: 40px;
    max-height: 50px;
}


/*FOR FILEBROWSER*/
.file-box {
    height: 220px;
}


.drop-zone {
    border: 2px dashed #0087F7;
    border-radius: 5px;
    height: auto;
}

.drop-zone-hover {
    border: 2px solid;
    height: auto;
}


/*FOR Grid Header Buttons (like "New" and "Show Filter Row"), this will make it stand out a little*/

.dxbs-toolbar.dxbs-ta-nib .dxbs-ta-ag > .btn:not(:hover):not(:active):not(.active), .dxbs-toolbar .dxbs-toolbar-btn.btn.dxbs-ta-nib:not(:hover):not(:active):not(.active), .dxbs-toolbar .dxbs-toolbar-btn > .btn.dxbs-ta-nib:not(:hover):not(:active):not(.active), .dxbs-toolbar .dxbs-toolbar-btn.btn.dxbs-ta-nib:not(.active):disabled, .dxbs-toolbar .dxbs-toolbar-btn > .btn.dxbs-ta-nib:not(.active):disabled {
    color: var(--primary) !important;
}

.dxbs-toolbar.dxbs-ta-nib .dxbs-ta-ag > .btn:not(:hover):not(:active):not(.active), .dxbs-toolbar .dxbs-toolbar-btn.btn.dxbs-ta-nib:not(:hover):not(:active):not(.active), .dxbs-toolbar .dxbs-toolbar-btn > .btn.dxbs-ta-nib:not(:hover):not(:active):not(.active), .dxbs-toolbar .dxbs-toolbar-btn.btn.dxbs-ta-nib:not(.active):disabled, .dxbs-toolbar .dxbs-toolbar-btn > .btn.dxbs-ta-nib:not(.active):disabled {
    background: var(--light) !important;
}

@font-face {
    font-family: 'Kbzipadeedoodah-YG3j';
    src: url(../fonts/Kbzipadeedoodah-YG3j.ttf) format('truetype');
}

@font-face {
    font-family: 'Lucida Handwriting';
    src: url(../fonts/lhandw-webfont.woff2) format('woff2'), 
        url(../fonts/lhandw-webfont.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}


.tag-dropdown-style {
    padding-left: 0.5em;
    border-radius: 0.3em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    color: #fff !important;
}

.tag-column-style {
    border-radius: 0.3em;
    padding: .3em;
    margin: .2em;
    color: #fff !important;
    text-align: center;
    -webkit-column-break-inside:avoid
}

.tag-holder{
    columns:3;
    column-gap:.1em;
}

#labor-section {
overflow: hidden;
transition: max-height 0.9s ease-in-out;
max-height: auto;
}

#labor-section.expanded {
    max-height: auto;
}

#labor-section.collapsed {
    max-height: 0;
}

#materials-section {
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
    max-height: auto;
}

#materials-section.expanded {
    max-height: auto;
}

#materials-section.collapsed {
    max-height: 0;
}

#equipment-section {
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
    max-height: auto;
}

#equipment-section.expanded {
    max-height: auto;
}

#equipment-section.collapsed {
    max-height: 0;
}

#subcontractor-section {
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
    max-height: auto;
}

#subcontractor-section.expanded {
    max-height: auto;
}

#subcontractor-section.collapsed {
    max-height: 0;
}

#fee-section {
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
    max-height: auto;
}

#fee-section.expanded {
    max-height: auto;
}

#fee-section.collapsed {
    max-height: 0;
}

#travel-section {
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
    max-height: auto;
}

#travel-section.expanded {
    max-height: auto;
}

#travel-section.collapsed {
    max-height: 0;
}

#supply-section {
overflow: hidden;
transition: max-height 0.9s ease-in-out;
max-height: auto;
}

#supply-section.expanded {
    max-height: auto;
}

#supply-section.collapsed {
    max-height: 0;
}

#truck-section {
    overflow: hidden;
    transition: max-height 0.9s ease-in-out;
    max-height: auto;
}

#truck-section.expanded {
    max-height: auto;
}

#truck-section.collapsed {
    max-height: 0;
}

.grid-size {
    max-height: 400px;
    height: 400px;
}

.steam-popup-editform {
    min-width:1200px;
    width:80%;
}
.steam-popup-editform-wide {
    min-width: 1500px;
    width: 80%;
}
.demo-banner {
    font-size: 36px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: bold;
    border-radius: 10px;
    color: white;
    background-color: #ee3241;
    font-family: Calibri;
}

/*Makes the arrow icons next to the expand grouped grid rows bigger*/
.dx-image-size-14px {
    height: 26px !important;
    width: 26px !important;
}

/* Enhance table readability and reduce space */
.manage-table {
    --bs-table-bg: var(--bs-body-bg); /* Use theme body background */
    --bs-table-color: var(--bs-body-color); /* Use theme text color */
    font-size: 0.875rem; /* Slightly smaller font for compactness */
    border-collapse: collapse; /* Remove gaps between cells */
    margin-bottom: 0px !important;
    padding-right:15px;
}



/* Improve cell padding and alignment */
.manage-table td {
    padding: 0.4rem 0.6rem; /* Reduced padding for compactness */
    vertical-align: middle; /* Center text vertically */
    text-align: left; /* Consistent left alignment */
    border-bottom: 1px solid var(--bs-border-color); /* Subtle border for separation */
}

.bold{
    font-weight:600;
}

.treeview-icon-small {
    font-size: 0.6rem !important; /* Adjust to preferred size */
    vertical-align: middle; /* Helps align the icon better */
}

.dxbl-nav-expand-btn-custom{
    padding-right:0px !important;
}

.dx-mention {
    color: var(--bs-primary) !important;
}

.ss-notification-listbox {
    height: calc(100vh - 285px) !important; /* Header, tabs and Footer heights - not ideal */
}

.sidebar-content {
    height: calc(100vh - 225px) !important; /* Header, tabs and Footer heights - not ideal */
}

.ss-notification-listbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    background-color: #f9fafb;
}

    .ss-notification-listbox li:hover {
        background-color: var(--bs-body-bg) !important;
    }

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

    .notification-item:hover {
        transform: translateY(-2px);
        box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
    }



.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-title {
    font-size: 13px;
    color: #111827;
}

.notification-timestamp {
    font-size: 11px;
    color: grey;
}

.notification-subtitle {
    font-size: 11px;
    color: grey;
    font-style: italic;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
}

.notification-body {
    font-size: 12.5px;
    color: #111827;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.notification-actions {
    width: 100%;
}

.notification-badge {
    position: absolute;
    top: .25rem;
    right: .25rem;
    background-color: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.labor-summary {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    width: fit-content;
}

.labor-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 2px 0;
}

.labor-label {
    font-weight: 600;
    color: #555;
}

.labor-value {
    font-weight: 500;
}


/* Module: File Browser */
.ss-filebrowser-container > .ss-filebrowser-toolbar {
    border-radius: 6px;
    height: 50px;
    margin: 20px 15px 20px 15px;
    padding: .5rem .5rem;
}

.ss-filebrowser-custom-drop-zone {
    border: none !important;
    margin: 0px 15px 15px 15px;
    min-height: 250px;
}

.ss-filebrowser-file-box {
    display: flex;
    justify-content: center;
}

.ss-filebrowser-file-draggable {
    cursor: grab;
    user-select: none;
}

    .ss-filebrowser-file-draggable:hover .ss-filebrowser-file-item,
    .ss-filebrowser-file-draggable.ss-filebrowser-file-list-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .ss-filebrowser-file-draggable:active {
        cursor: grabbing;
    }

.ss-filebrowser-current-drag .ss-filebrowser-file-item,
.ss-filebrowser-current-drag.ss-filebrowser-file-list-item {
    background-color: rgba(13, 110, 253, 0.08);
    border: 2px solid rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ss-filebrowser-drag-active .ss-filebrowser-folder .ss-filebrowser-file-item,
.ss-filebrowser-drag-active .ss-filebrowser-folder.ss-filebrowser-file-list-item {
    background-color: rgba(25, 135, 84, 0.08);
    border: 2px dashed rgba(25, 135, 84, 0.55);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.ss-filebrowser-folder-drop-target .ss-filebrowser-file-item,
.ss-filebrowser-folder-drop-target.ss-filebrowser-file-list-item {
    background-color: rgba(25, 135, 84, 0.16);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.55), 0 10px 24px rgba(25, 135, 84, 0.24);
    transform: translateY(-3px) scale(1.03);
}

.ss-filebrowser-move-up-drop-target {
    align-items: center;
    background-color: rgba(13, 110, 253, 0.06);
    border: 2px dashed rgba(13, 110, 253, 0.45);
    border-radius: 6px;
    color: #0d6efd;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    margin: 0 15px;
    max-height: 0;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 18px;
    pointer-events: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, margin 0.15s ease, max-height 0.15s ease, min-height 0.15s ease, opacity 0.15s ease, padding 0.15s ease, transform 0.15s ease;
}

    .ss-filebrowser-move-up-drop-target i,
    .ss-filebrowser-move-up-drop-target span {
        pointer-events: none;
    }

.ss-filebrowser-drag-active .ss-filebrowser-move-up-drop-target {
    margin: 0 15px 12px 15px;
    max-height: 90px;
    min-height: 64px;
    opacity: 1;
    padding: 16px 18px;
    pointer-events: auto;
}

.ss-filebrowser-move-up-drop-target-active {
    background-color: rgba(25, 135, 84, 0.16);
    border-color: rgba(25, 135, 84, 0.85);
    color: #146c43;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.22);
    transform: translateY(-1px);
}

@media (pointer: coarse) {
    .ss-filebrowser-file-draggable {
        cursor: pointer;
    }

    .ss-filebrowser-current-drag .ss-filebrowser-file-item,
    .ss-filebrowser-current-drag.ss-filebrowser-file-list-item,
    .ss-filebrowser-drag-active .ss-filebrowser-folder .ss-filebrowser-file-item,
    .ss-filebrowser-drag-active .ss-filebrowser-folder.ss-filebrowser-file-list-item {
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

    .ss-filebrowser-drag-active .ss-filebrowser-move-up-drop-target {
        max-height: 0;
        min-height: 0;
        opacity: 0;
        padding: 0 18px;
        pointer-events: none;
    }
}

.ss-filebrowser-file-field {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-auto-rows: auto;
    grid-template-columns: repeat(auto-fill, 110px);
    justify-content: start;
}

.ss-filebrowser-file-icon-container {
    align-items: center;
    border-radius: 12px;
    display: flex;
    font-size: 36px;
    height: 72px;
    justify-content: center;
    transition: all 0.15s ease;
    width: 72px;
}

    .ss-filebrowser-file-icon-container .file-thumb {
        height: 72px;
        pointer-events: none;
        width: 72px;
    }

.ss-filebrowser-file-item {
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    padding: 8px;
    text-align: center;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .ss-filebrowser-file-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

.ss-filebrowser-file-label {
    align-items: center;
    font-size: 13px;
    line-height: 1.3;
    max-width: 100px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ss-filebrowser-file-list-item {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    padding: 10px 14px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    .ss-filebrowser-file-list-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
        transform: translateX(2px);
    }

    .ss-filebrowser-file-list-item i {
        font-size: 18px;
        margin-right: 14px;
        text-align: center;
        width: 22px;
    }

.ss-filebrowser-file-list-name {
    font-size: 14px;
}

.ss-filebrowser-file-list-view {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}

.ss-filebrowser-no-files-content {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 150px;
    padding: 2rem;
    text-align: center;
    width: auto !important;
}

.ss-filebrowser-search-input {
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .ss-filebrowser-file-field {
        gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .ss-filebrowser-file-icon-container {
        font-size: 26px;
        height: 56px;
        width: 56px;
    }

    .ss-filebrowser-file-label {
        font-size: 12px;
        max-width: 80px;
    }
}

.file-thumb {
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.file-icon-fallback {
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
}

.time-entry-list {
    margin-top: 10px;
}

.time-entry-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}

    .time-entry-row:last-child {
        border-bottom: none;
    }

.time-entry-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-entry-content {
    flex: 1;
}

.time-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.time-entry-name {
    font-weight: 600;
}

.time-entry-hours {
    font-weight: 600;
    color: #0d6efd;
}

.time-entry-times {
    color: #6c757d;
    font-size: .9rem;
}

.time-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.time-summary-card {
    flex: 1;
    min-width: 150px;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    padding: .75rem 1rem;
    background: #fff;
}

.time-summary-label {
    font-size: .8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .25rem;
}

.time-summary-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
}

.time-summary-card.total {
    background: #f8f9fa;
    border-color: #ced4da;
}

.time-summary-card.total .time-summary-value {
    color: #0d6efd;
}

.comment-list {
    margin-top: 10px;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.comment-row:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-content {
    flex: 1;
}

.comment-header {
    margin-bottom: 6px;
}

.comment-name {
    font-weight: 600;
    color: var(--bs-body-color);
    line-height: 1.2;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--bs-body-color);
    margin-top: 2px;
}

.comment-equipment {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 2px;
    word-break: break-word;
}

.comment-text {
    color: var(--bs-body-color);
    white-space: pre-wrap;
    word-break: break-word;
}