.mail-protocol-table { min-width: 1080px; table-layout: fixed; }
.mail-protocol-table th, .mail-protocol-table td { overflow-wrap: anywhere; vertical-align: top; }
.mail-protocol-table th:nth-child(1) { width: 15%; }
.mail-protocol-table th:nth-child(2) { width: 11%; }
.mail-protocol-table th:nth-child(3) { width: 19%; }
.mail-protocol-table th:nth-child(4) { width: 15%; }
.mail-protocol-table th:nth-child(5) { width: 17%; }
.mail-protocol-table th:nth-child(6) { width: 11%; }
.mail-protocol-table th:nth-child(7) { width: 12%; }
.mail-protocol-table .actions { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.mail-protocol-table .btn, .mail-protocol-table button { max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
.mail-protocol-table .mail-error-detail { margin-top: .4rem; }
.mail-delete { min-width: 0; max-width: 100%; }
.mail-delete summary { list-style: none; }
.mail-delete summary::-webkit-details-marker { display: none; }
.mail-delete[open] summary { margin-bottom: .5rem; }
.mail-delete .mail-delete-confirm { display: flex; align-items: flex-start; gap: .5rem; font-size: 13px; font-weight: 400; }
.mail-delete-confirm input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.mail-delete-confirm span { min-width: 0; }
.invoice-table-wrap { max-width: 100%; overflow-x: auto; }
.invoice-list-table, .invoice-error-table { display: table; width: 100%; table-layout: fixed; }
/* Fit the invoice list inside its card; a fixed minimum clips the action column. */
.invoice-list-table { min-width: 0; table-layout: auto; }
.invoice-error-table { min-width: 760px; }
.invoice-list-table th, .invoice-list-table td,
.invoice-error-table th, .invoice-error-table td { overflow-wrap: anywhere; white-space: normal; }
.invoice-list-table th:nth-child(1) { width: 8%; }
.invoice-list-table th:nth-child(2) { width: 6%; }
.invoice-list-table th:nth-child(3) { width: 7%; }
.invoice-list-table th:nth-child(4) { width: 17%; }
.invoice-list-table th:nth-child(5) { width: 9%; }
.invoice-list-table th:nth-child(6) { width: 9%; }
.invoice-list-table th:nth-child(7) { width: 10%; }
.invoice-list-table th:nth-child(8) { width: 14%; }
.invoice-list-table th:nth-child(9) { width: 10%; }
.invoice-list-table th:nth-child(10) { width: 10%; }
.invoice-error-table th:nth-child(1) { width: 19%; }
.invoice-error-table th:nth-child(2) { width: 19%; }
.invoice-error-table th:nth-child(3) { width: 14%; }
.invoice-error-table th:nth-child(4) { width: 29%; }
.invoice-error-table th:nth-child(5) { width: 19%; }
.invoice-list-table .actions, .invoice-error-table .actions { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.invoice-list-table .btn, .invoice-error-table .btn,
.invoice-list-table .status { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; box-sizing: border-box; }
@media print {
  .mail-protocol-table { min-width: 0; }
  .mail-protocol-table th:nth-child(1) { width: 17%; }
  .mail-protocol-table th:nth-child(2) { width: 12%; }
  .mail-protocol-table th:nth-child(3) { width: 22%; }
  .mail-protocol-table th:nth-child(4) { width: 18%; }
  .mail-protocol-table th:nth-child(5) { width: 19%; }
  .mail-protocol-table th:nth-child(6) { width: 12%; }
}

.invoice-list-table th { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.invoice-list-table td:nth-child(8), .invoice-list-table th:nth-child(8) { text-align: center; }
.invoice-list-table .status { display: inline-block; text-align: center; line-height: 1.4; overflow-wrap: normal; word-break: normal; hyphens: auto; }

/* Keep borders inside the action column, including at larger browser text sizes. */
.invoice-list-table td:last-child .actions { width: 100%; max-width: 100%; box-sizing: border-box; }
.invoice-list-table td:last-child .actions > .btn { display: block; width: 100%; max-width: 100%; padding: 6px 8px; text-align: center; box-sizing: border-box; }

/* Let the content reserve enough space for complete labels and action buttons. */
.invoice-list-table th, .invoice-list-table td { padding-left: 6px; padding-right: 6px; }
.invoice-list-table th:nth-child(-n+3),
.invoice-list-table td:first-child,
.invoice-list-table td:nth-child(3),
.invoice-list-table td:nth-child(9) { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.invoice-list-table td:nth-child(4) { hyphens: auto; }
.invoice-list-table td:nth-child(5),
.invoice-list-table td:nth-child(6),
.invoice-list-table td:last-child .actions > .btn { white-space: nowrap; overflow-wrap: normal; }
