/* Independent fixed trusteeship registration; rental financial controls stay shared. */
.trust-registration-overlay{z-index:2000}
.trust-registration-overlay .contract-wizard{max-width:1100px}
.trust-registration-overlay [hidden]{display:none!important}
.trust-registration-overlay .contract-wizard-form{display:block}
.trust-registration-overlay .contract-wizard-form>section>label{margin:14px 0}
.trust-registration-overlay .contract-plan-field{min-width:0}
.trust-registration-overlay .contract-plan-field>span{font-size:var(--ui-font-13, 13px)}
.trust-registration-overlay .contract-plan-field textarea{width:100%;box-sizing:border-box}
.trust-registration-overlay .contract-wizard-summary dd{white-space:pre-wrap;overflow-wrap:anywhere}
.trust-registration-overlay .contract-wizard-status{font-size:var(--ui-font-13, 13px);line-height:1.6;max-width:100%;overflow-wrap:anywhere}
.trust-registration-drop{display:flex;flex-direction:column;gap:8px;padding:22px;margin-top:20px;border:1px dashed #9baec2;border-radius:12px;background:#f7fafc;color:#294b69;cursor:pointer;font-size:var(--ui-font-13, 13px);line-height:1.6}
.trust-registration-drop:focus-visible,.trust-registration-drop.dragover{outline:3px solid #3484bd;outline-offset:2px}
.trust-registration-note{font-size:var(--ui-font-12, 12px);line-height:1.7;color:#667085}
.trust-registration-files{display:grid;gap:10px;margin-top:12px}
.trust-registration-file{padding:12px;border:1px solid #dfe7ef;border-radius:10px;min-width:0}
.trust-registration-file strong,.trust-registration-file p{display:block;font-size:var(--ui-font-12, 12px);line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
.trust-registration-file .contract-lane-actions{display:flex;gap:8px;flex-wrap:wrap}
.trust-registration-overlay .contract-wizard>footer{flex-wrap:wrap;gap:10px}
.trust-registration-overlay .contract-wizard-actions{flex-wrap:wrap}
/* Horizontal scrolling keeps all historical columns and actions accessible. */
.trust-table-shell{overflow-x:auto;max-width:100%}
.trust-table-shell .trust-table{table-layout:auto;min-width:1540px!important}
.trust-table-shell .trust-table th,.trust-table-shell .trust-table td{width:auto!important}
.trust-table-shell .trust-table th:last-child,.trust-table-shell .trust-table td:last-child{width:350px!important;min-width:350px!important}
.trust-table-shell .trust-table tbody td:last-child .contract-lane-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-start}
.trust-table-shell .trust-table tbody td:last-child .contract-lane-actions>.btn{margin:0;white-space:nowrap;flex:0 0 auto}
.trust-table .record-vehicle-jump{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
@media(max-width:768px){
 .trust-registration-overlay{padding:10px}
 .trust-registration-overlay .contract-wizard{max-height:calc(100dvh - 20px)}
 .trust-registration-overlay .contract-wizard>header{padding:16px}
 .trust-registration-overlay .contract-wizard h2{font-size:var(--ui-font-20, 20px)}
 .trust-registration-overlay .contract-wizard-body{padding:16px}
 .trust-registration-overlay .contract-wizard-actions{width:100%;justify-content:flex-end}
 .trust-registration-overlay .contract-wizard>footer{padding:12px 16px}
 .trust-registration-overlay .contract-wizard-steps{overflow-x:auto;flex-shrink:0}
 .trust-table-shell .trust-table{display:table;width:100%}
 .trust-table-shell .trust-table thead{position:static;display:table-header-group;width:auto;height:auto;margin:0;clip:auto;overflow:visible;white-space:normal}
 .trust-table-shell .trust-table tbody{display:table-row-group;width:auto}
 .trust-table-shell .trust-table tbody tr{display:table-row;margin:0;padding:0;border-radius:0;box-shadow:none}
 .trust-table-shell .trust-table tbody td{display:table-cell;padding:12px 14px!important;vertical-align:middle;border-bottom:1px solid #e4e7ec}
 .trust-table-shell .trust-table tbody td::before{display:none}
}

/* HX183: A file-list surfaces; six-step registration and historical table geometry stay intact. */
@media screen {
 .trust-registration-overlay .contract-plan-field:not(.has-error)>span{color:var(--hx-ui-muted,#48636e);font-weight:600}
 .trust-registration-drop{background:var(--hx-ui-soft,#f2f7f5);border-color:var(--hx-ui-line,#b8cec6);color:var(--hx-ui-accent,#176d70)}
 .trust-registration-file{background:var(--hx-ui-surface,#fff);border-color:var(--hx-ui-line,#dbe6e2)}
 .trust-registration-note{color:var(--hx-ui-muted,#48636e)}
 .trust-registration-drop:focus-visible,.trust-registration-drop.dragover{outline-color:var(--hx-ui-focus,#187b82)}
 .trust-registration-overlay :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--hx-ui-focus,#187b82);outline-offset:2px}
}
@media screen and (prefers-reduced-motion:reduce){.trust-registration-drop,.trust-registration-file{transition:none}}
@media screen and (forced-colors:active){.trust-registration-drop,.trust-registration-file{background:Canvas;color:CanvasText;border-color:CanvasText}.trust-registration-drop.dragover{outline:2px solid Highlight}}
