/* Documents page modal body (MSWE-178) */

.documents-card-details {
    padding-top: 0;
}

.documents-table-container {
    width: 100%;
    overflow-x: auto;
}

/* Fixed layout: Title takes the rest. Download and Date shrink with the card. */
.documents-table.demo-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

.documents-table th,
.documents-table td {
    min-width: 0;
}

.documents-table th:nth-child(1) {
    width: auto;
    text-align: center;
}

.documents-table .documents-col-title {
    width: auto;
    text-align: left;
    overflow-wrap: break-word;
}

/* 14% of the card: wide enough for the header word, and it can shrink to the icon. */
.documents-table th:nth-child(2),
.documents-table .documents-col-download {
    width: 14%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

/* Date text may split on spaces (for example "26 Sep" / "2026") as the column narrows. */
.documents-table th:nth-child(3),
.documents-table .documents-col-date {
    width: 20%;
    white-space: normal;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
}

.documents-table .documents-download-btn {
    max-width: 100%;
    box-sizing: border-box;
}

.documents-download-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.documents-empty {
    margin: 8px 0 0;
}

.documents-empty-cell {
    text-align: center;
    color: #6b7280;
    padding: 20px 12px !important;
}
