.session-page {
    min-height: calc(95vh - var(--ac-header-height) - var(--ac-footer-height));

    display: flex;
    flex-direction: column;
}

.session-page__content {
    flex: 1 1 auto;
    min-height: 0; /* allows children to size/scroll correctly */
    display: flex;
    flex-direction: column;
}

.session-page__accordion {
    /*flex: 1 1 auto;*/
    /*max-height: calc(95vh - var(--ac-header-height) - var(--ac-footer-height)) !important;*/
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.session__footer {
    flex: 0 0 auto;
    margin-top: auto;
}

.session__footer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session__footer-actions {
    margin-left: auto; /* pushes these buttons to the right */
    display: flex;
    gap: 0.5rem;
}
/* Efforts content should consume remaining space when expanded */
.efforts-pane {
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* If EffortDetails renders something scrollable, this helps it actually scroll within the remaining space */
.efforts-pane :deep(.max-h-480) {
    max-height: none !important;
}

/*Effort Details*/
.treelist-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;

    padding: .5rem .75rem;

    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-bottom: 0;

    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

.treelist-toolbar__spacer {
    flex: 1 1 auto;
}

.treelist-toolbar__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Visually attach the TreeList to the toolbar */
.treelist-with-toolbar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/*Grid highlighting for deleted rows*/
/* Row highlight for items that are pending deletion */
.treelist-row-marked-for-deletion td {
    background-color: #fff3cd !important; /* light amber */
    color: #664d03 !important;
}

/* Optional: make it extra obvious */
.treelist-row-marked-for-deletion td .dxbl-text,
.treelist-row-marked-for-deletion td span {
    text-decoration: line-through;
    opacity: 0.85;
}
.efforts-pane-container,
.efforts-pane {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/*.efforts-pane-container {*/
/*    min-height: 45vh !important;*/
/*}*/