/* PBC Flag Button */

.flag-button {
    padding: 1px 6px;
    min-width: 50px !important;
}

.flag-button .mud-button-label .mud-button-icon-start {
    margin-inline-end: 5px;
}

/* PBC Discussion Tab */

.discussion-tab {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 16px;
    padding-bottom: 8px;
}

.discussion-tab .mud-input-control {
    margin-top: 0 !important;
}

.discussion-tab .message-box {
    border-top: 1px solid var(--color-neutral-light);
}

.reply-expandable.mud-expand-panel.mud-panel-expanded {
    margin: 0 0;
}

.reply-expandable.mud-expand-panel {
    margin: 0 0;
    box-shadow: none;
}

.reply-expandable .mud-expand-panel-header {
    padding: 4px 16px !important;
    min-height: 0 !important;
}

.reply-expandable .mud-input-control {
    margin-top: 0;
}

.reply-expandable .mud-input > textarea.mud-input-root-outlined {
    margin: 16px 14px;
}

.reply-expandable {
    background-color: var(--color-neutral-very-light);
    box-shadow: none;
    border-bottom: 1px solid var(--color-neutral-light) !important;
    border-top: 1px solid var(--color-neutral-light) !important;
}

/* PBC Right Panel Line View */

.line-view-panel .mud-icon-button {
    padding: 0 !important;
}

.line-view-panel .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none !important;
}

.line-view-panel .mud-table-body .mud-table-row:first-child .mud-table-cell {
    border-top: 1px solid var(--mud-palette-table-lines);
}

.line-view-panel .new-crowe-card.mud-expand-panel {
    margin-bottom: 0 !important;
}

.line-view-panel .new-crowe-card.mud-expand-panel.mud-panel-expanded {
    margin-bottom: 0.5rem !important;
}

.subgroup-scroll-container {
    max-height: 65vh;
    overflow-y: auto;
    padding: 8px 16px 16px 0;
}

/* PBC Overview */

.pbc-line-status-cell {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .pbc-line-status-cell {
        white-space: normal;
    }
}

.pbc-number-cell {
    padding-left: 40px!important;
}

/* PBC Structure View */
.pbc-group-stack {
    overflow: auto;
    padding: 10px;
    max-width: 100%;
}

.duplicate-warning li > :first-child {
    margin-right: 0.5rem;
}

.external-auditor-icon {
    margin-bottom: 4px;
}

.external-auditor-icon-tooltip {
    max-width: 15rem!important;
}

/* PBC Access Management */

.pbc-subgroup-link-table .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none !important;
}
