/* Shared summary hierarchy; each document keeps its own optional sections. */
.document-summary .document-summary-panels > [class*="col-"],
.document-summary .flex-grow-1 { min-width: 0; }
.document-summary .document-summary-panels { align-items: start; }
.document-summary .document-summary-panels .card { width: 100%; }
.document-summary .document-details-list .list-group-item { padding: .8rem 1rem; }
.document-summary .document-details-list small { display: block; font-size: .8rem; }
.document-detail-value { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.document-summary .card-header { font-size: 1rem; }
.document-summary .card-body .d-flex.justify-content-center { flex-wrap: wrap; }
.document-summary .document-details-list h6 { margin-bottom: 0; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.document-summary .document-summary-panels .card .card { border: 0; }
.document-summary .document-summary-panels .card .card > .card-body { padding: 0; }
.document-summary .envelope-details-card { min-width: 0; }
.document-summary table { width: 100% !important; }
.document-summary th, .document-summary td { overflow-wrap: anywhere; }
.document-summary .row > .col-6 { min-width: 0; }

/* The fixed table width prevents manual resizing from creating horizontal scroll. */
table[data-resizable-columns] { width: 100% !important; max-width: 100%; }
table[data-resizable-columns] th, table[data-resizable-columns] td { white-space: normal; overflow-wrap: anywhere; }
table.dt-manual-widths { table-layout: fixed; }
table[data-resizable-columns] thead th { position: relative; }
.dt-column-resize {
    position: absolute; inset-block: 0; inset-inline-end: -4px; width: 9px;
    z-index: 3; cursor: col-resize; touch-action: none;
}
.dt-column-resize:hover, .dt-column-resize:focus-visible {
    background: rgba(13, 110, 253, .25); outline: 2px solid var(--bs-primary);
}
.dt-column-resizing { user-select: none; cursor: col-resize; }
table.report-data-table .report-text { display: block; overflow-wrap: anywhere; white-space: normal; }
table.report-data-table th { white-space: normal; }
@media (max-width: 767.98px) {
    .document-summary .document-summary-panels { row-gap: 1rem; }
    .document-summary .document-summary-panels > [class*="col-"] { width: 100%; }
}
/* Give Responsive readable minimum widths rather than compressing words to letters. */
table.report-data-table th, table.report-data-table td { min-width: 6rem; }
table.report-data-table .report-name, table.report-data-table .report-objective { min-width: 12rem; }
table.report-data-table .dt-select, table.report-data-table td:first-child { min-width: 1.5rem; }
table[data-resizable-columns]:not(.report-data-table) th, table[data-resizable-columns]:not(.report-data-table) td { min-width: 5rem; }

.document-summary .font-monospace { font-family: var(--bs-font-sans-serif) !important; }
.document-audit .document-details-list .flex-grow-1 { min-width: 0; }
.document-audit .document-details-list h6 { overflow-wrap: anywhere; }
[data-signature-preview][aria-busy="true"] { cursor: progress; opacity: .65; }
@media (max-width: 991.98px) {
    .document-audit .card-body { padding: 1rem; }
    .document-audit .card-body.mb-3 { margin-bottom: 0 !important; }
    .document-audit .document-details-list .list-group-item { padding: .8rem 1rem; }
    .document-audit .card-title { margin-bottom: .75rem; }
}
