@import '_content/SSSharedComponents/SSSharedComponents.bundle.scp.css';

/* _content/YESTasking/Components/Embedded/IndividualTaskingLayout.razor.rz.scp.css */

/* === DESKTOP / DEFAULT === */
.tasks-grid-wrapper[b-td7p2h597a] {
    --top-offset: 150px;
    height: calc(100dvh - var(--top-offset));
    overflow: hidden;
    box-sizing: border-box;
    padding: 0.5rem;
}

.paper-panel[b-td7p2h597a] {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

/* THE MAIN RAIL 
   This is now the ONLY container allowed to have a vertical scrollbar.
*/
.panel-scroll.horisontal[b-td7p2h597a] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: block; /* Changed to block to allow natural height calculation */
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden;
    min-height: 0;
}

/* LABELS SECTION 
   Set to block so it stretches the parent container rather than 
   trying to scroll internally.
*/
.labels[b-td7p2h597a] {
    display: block;
    flex: none;
    height: auto;
}

    /* INTERNAL LABEL CONTAINERS
   We force these to be visible so that the main rail (above) 
   detects the total height and provides a single, smooth scrollbar.
*/
    .panel-scroll-labels.horisontal-labels[b-td7p2h597a],
    .labels .panel-scroll[b-td7p2h597a] {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        height: auto !important;
        padding-right: 0px !important;
    }

.add-block[b-td7p2h597a] {
    border-bottom: 1px solid #ddd;
    color: var(--bs-secondary);
    cursor: pointer;
}

    .add-block:hover[b-td7p2h597a] {
        background: var(--bs-secondary) !important;
        color: white !important;
        border-top-left-radius: 8px !important;
        border-top-right-radius: 8px !important;
    }

.no-x-scroll[b-td7p2h597a] {
    overflow-x: hidden;
    overflow-y: auto;
}

/* === MOBILE OVERRIDES === */
@media (max-width: 960px) {
    .tasks-grid-wrapper[b-td7p2h597a] {
        height: auto !important;
        min-height: calc(100dvh - var(--top-offset)) !important;
        overflow: visible !important;
        padding-bottom: 1rem !important;
    }

    .labels .panel-scroll[b-td7p2h597a] {
        max-height: none !important;
        overflow-y: visible !important;
    }
}
.paper-panel[b-td7p2h597a] {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* This keeps the 'box' a fixed size */
    border-radius: 12px;
}

/* This targets the scrollable area in both the left and middle panels */
.panel-scroll.all[b-td7p2h597a],
.panel-scroll.horisontal[b-td7p2h597a] {
    flex: 1 1 auto; /* Fill available space */
    min-height: 0; /* IMPORTANT: This prevents the div from expanding the parent */
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Ensure images and large content inside the middle don't break the layout */
.no-x-scroll[b-td7p2h597a] {
    max-width: 100%;
    overflow-x: hidden;
}
/* _content/YESTasking/Components/Embedded/TaskingNavigationItem.razor.rz.scp.css */
.task-nav-item[b-sqwulrh86n] {
    padding: 0.5rem;
    cursor: pointer;
}

    .task-nav-item:hover[b-sqwulrh86n] {
        background-color: #F1F4FD;
        transition: background-color 200ms ease-in;
    }

    .task-nav-item.active[b-sqwulrh86n] {
        background: #F1F4FD;
    }
/* _content/YESTasking/Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-he6ujd56ws] {
    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[b-he6ujd56ws] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
