/* Compact language actions share the Settings typography and auth anchors. */
.amd-language-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 8px;color:#555;font:400 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.amd-language-options{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.amd-language-control .amd-language-option{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:28px;margin:0;padding:4px 7px;border:0;border-radius:4px;background:transparent;color:#777;font:500 12px/20px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.2px;cursor:pointer;box-shadow:none}
.amd-language-control .amd-language-option:hover{background:#f3f3f3;color:#222}
.amd-language-control .amd-language-option[aria-pressed="true"]{background:#922d2c;color:#fff;font-weight:700}
.amd-language-control .amd-language-option:focus-visible{outline:2px solid #777;outline-offset:2px}
.amd-language-entry{justify-content:center;margin:24px auto 0;padding:0}
.amd-language-entry .amd-language-caption{display:none}
.auth-page main.auth-layout{flex-direction:column;align-items:center;justify-content:flex-start}
.auth-page .amd-language-entry{position:static;margin-top:26px}
html[lang="de"] .sign-in-invitation{white-space:nowrap;flex-wrap:nowrap;gap:0 4px}
@media(max-width:800px){.amd-language-control .amd-language-option{min-width:44px;min-height:44px}.amd-language-entry{margin-top:20px}}

/* Localized text must stay inside its column, including cloned headers. */
html[lang="de"] :is(.data-table,.financial-table,.invoice-table,.interest-periods-table,.ppl-table) th{white-space:normal;overflow-wrap:anywhere;hyphens:auto}
html[lang="de"] .case-register-table :is(.case-type-cell,.case-status-cell,.case-claim-cell){white-space:normal;overflow-wrap:anywhere;hyphens:auto}
html[lang="de"] .case-register-table :is(th,td):nth-child(4){white-space:normal;overflow-wrap:anywhere;hyphens:auto}
html[lang="de"] .case-register-table .register-sort-button{white-space:normal;overflow-wrap:anywhere;text-align:inherit}
html[lang="de"] .employment-table :is(td,.cell-caption){white-space:normal;overflow-wrap:anywhere}
html[lang="de"] .employment-table th{hyphens:auto}
html[lang="de"] :is(.facts-row,.company-facts,.facts-list) dt{overflow-wrap:anywhere;hyphens:auto;min-width:0}
html[lang="de"] .financial-section>summary{flex-wrap:wrap}
html[lang="de"] .financial-section>summary>span{min-width:0;overflow-wrap:anywhere;flex:1 1 180px}
html[lang="de"] .financial-section>summary>strong{margin-left:auto}
@media screen{
 html[lang="de"] .case-register-table{min-width:1138px}
 html[lang="de"] .case-register-table .case-summary-cell{min-width:240px}
 html[lang="de"] .case-register-table .case-type-cell{width:108px;min-width:108px;max-width:108px}
 html[lang="de"] .case-register-table :is(th,td):nth-child(4){width:112px;min-width:112px;max-width:112px}
 html[lang="de"] .case-register-table .case-status-cell{width:148px;min-width:148px;max-width:148px}
 html[lang="de"] .case-register-table .case-claim-cell{width:110px;min-width:110px;max-width:110px;position:static}
 html[lang="de"] .case-register-table .case-loss-cell{width:140px;min-width:140px;max-width:140px}
}
/* Dialog actions may wrap; original text and controls remain fully available. */
.ppl-dialog :is(.ppl-primary-actions,.ppl-link-actions,.ppl-destructive-actions,.ppl-connection-heading){flex-wrap:wrap}
.ppl-dialog :is(.ppl-dialog-heading h2,.ppl-options legend,.ppl-check>span){min-width:0;overflow-wrap:anywhere}
.ppl-dialog .ppl-button{max-width:100%;white-space:normal}
@media(max-width:600px){
 html .case-register-table :is(th,td):nth-child(2){width:180px;min-width:180px;max-width:180px}
 html .case-register-table td:nth-child(2) .party-link{width:100%}
 html .case-register-table .case-claim-cell{position:static}
 html .data-room-document-list .document-item{grid-template-columns:minmax(0,1fr)}
 html .data-room-document-list .document-actions,html .profile-evidence-grid .document-actions{flex-wrap:wrap;justify-content:flex-start}
 .workspace .calculation-field,.workspace .profile-field,.workspace .company-field{min-width:0;overflow-wrap:anywhere}
}
/* Print uses the full page instead of a horizontally scrolling screen table. */
@media print{
 .table-wrap,.employment-table-wrap,.invoice-table-wrap,.financial-table-wrap,.ppl-list{width:100%!important;max-width:100%!important;overflow:visible!important}
 .case-register-table,.employment-table,.financial-table,.invoice-table,.interest-periods-table,.ppl-table{width:100%!important;min-width:0!important;table-layout:fixed}
 .case-register-table :is(th,td),.employment-table :is(th,td),.invoice-table :is(th,td),.interest-periods-table :is(th,td),.ppl-table :is(th,td){min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere}
 .case-register-table .row-number{width:4%!important}
 .case-register-table :is(th,td):nth-child(2){width:17%!important}
 .case-register-table .case-type-cell{width:8%!important}
 .case-register-table :is(th,td):nth-child(4){width:9%!important}
 .case-register-table .case-status-cell{width:12%!important}
 .case-register-table .case-summary-cell{width:30%!important}
 .case-register-table .case-loss-cell{width:10%!important}
 .case-register-table .case-claim-cell{width:10%!important}
 html .case-register-table td:nth-child(2) .party-link{width:100%}
 .employment-table :is(th,td):first-child{width:18%!important}
 .employment-table th:nth-child(2){width:16%!important}
 .employment-table th:nth-child(3){width:10%!important}
 .employment-table th:nth-child(4),.employment-table td.period-cell{width:12%!important}
 .employment-table th:nth-child(5){width:11%!important}
 .employment-table th:nth-child(6){width:12%!important}
 .employment-table th:nth-child(7){width:9%!important}
 .employment-table th:nth-child(8){width:12%!important}
 .invoice-table>thead>tr>th:nth-child(1){width:20%!important}
 .invoice-table>thead>tr>th:nth-child(2){width:11%!important}
 .invoice-table>thead>tr>th:nth-child(3){width:14%!important}
 .invoice-table>thead>tr>th:nth-child(4){width:10%!important}
 .invoice-table>thead>tr>th:nth-child(5){width:45%!important}
 .invoice-table>thead>tr>th:nth-child(6),.invoice-table>tbody>tr>td:nth-child(6),.invoice-editor-row{display:none!important}
 .invoice-interest-periods[open]{min-width:0!important}
 .profile-notes-form,.profile-editor,.calculation-editor,.invoice-add{display:none!important}
 .notes-print{display:block!important;white-space:pre-wrap;overflow-wrap:anywhere}
}

html[lang="de"] :is(.detail-grid dt,.employment-summary dt,.financial-metric>span,.financial-metric>small){min-width:0;overflow-wrap:anywhere;hyphens:auto}
@media(max-width:600px){
 .workspace .detail-grid,.financial-summary .financial-metrics{grid-template-columns:minmax(0,1fr)}
 .financial-summary .financial-metric>strong{white-space:nowrap;overflow-wrap:normal}
 .workspace .employment-summary>div{grid-template-columns:minmax(0,1fr)}
}

html[lang="de"] #main-content :is(h1,h2,h3){min-width:0;overflow-wrap:anywhere;hyphens:auto}

/* Horizontal scrolling belongs to table/navigation wrappers, not the entire page. */
@media(max-width:600px){html{overflow-x:clip}}

@media print{.case-register-table .register-sort-button{max-width:100%;white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}}
