
/* V4.6.2: shared portal layout contract. Keep data wrapping separate from controls. */
.ux461 .portal-shell :is(.button,button,.pill,.ux461-shortcut){word-break:normal;overflow-wrap:normal;hyphens:none}
.ux461 .portal-shell :is(.button,button){min-width:0;max-width:100%;line-height:1.35}
.ux461 .portal-shell :is(.button,button) .ui-icon{flex-shrink:0}
.ux461 .portal-shell :is(.grid-2,.grid-3,.grid-4,.editor-grid,.details-shell,.section-heading,.profile-banner,.profile-title,.form-row,.form-actions,.filter-panel,.form-inline)>*{min-width:0}
.ux461 .portal-shell .editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.ux461 .portal-shell :is(.field,.field input,.field select,.field textarea,.input){min-width:0;max-width:100%}
.ux461 .portal-shell :is(.field select,.field input,.field textarea){box-sizing:border-box}
.ux461 .portal-shell .field select{width:100%;text-overflow:ellipsis}
.ux461 .portal-shell .checkbox-label{overflow-wrap:anywhere;align-items:flex-start}
.ux461 .portal-shell .checkbox-label input{flex:0 0 auto;max-width:none}
.ux461 .portal-shell .profile-stat{align-items:flex-start}
.ux461 .portal-shell .profile-stat dt{flex:0 0 42%;min-width:0;overflow-wrap:anywhere}
.ux461 .portal-shell .profile-stat dd{flex:1;min-width:0;overflow-wrap:anywhere}
.ux461 .portal-shell .account-link{min-width:0;max-width:100%}
.ux461 .portal-shell .account-link>span:last-child{min-width:0;overflow-wrap:anywhere}
.ux461 .portal-shell :is(.avatar-mini,.avatar-large){flex-shrink:0}
.ux461 .portal-shell :is(.panel,.mini-stat,.ticket-body,.support-link,.profile-banner,.account-badge,.card-list,.notice,.empty){min-width:0;overflow-wrap:anywhere}
.ux461 .portal-shell .table-wrap{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.ux461 .portal-shell table{table-layout:auto}
.ux461 .portal-shell td{word-break:normal;overflow-wrap:anywhere;vertical-align:middle}
.ux461 .portal-shell :is(td,th) :is(.button,button,.pill){white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:max-content;max-width:none}
.ux461 .portal-shell td form{min-width:max-content;max-width:100%}
.ux461 .portal-shell td .button{margin-block:2px}
.ux461 .portal-shell .ux461-results table{min-width:650px}
.ux461 .portal-shell .ux461-results td:first-child:not([colspan]){width:36%}
.ux461 .portal-shell .ux461-results :is(th,td):last-child:not([colspan]){width:240px;min-width:240px;white-space:normal}
.ux461 .portal-shell .ux461-results .ux461-row-actions{display:flex;flex-flow:row wrap;justify-content:flex-end;align-items:center;gap:8px;min-width:0}
.ux461 .portal-shell .ux461-results .ux461-row-actions .button{flex:0 0 auto;white-space:nowrap;min-width:104px;min-height:42px;padding:8px 12px;margin:0}
.ux461 .portal-shell .ux461-search>.button{flex:0 0 auto;white-space:nowrap}
.ux461 .portal-shell :is(.form-actions,.filter-panel,.section-heading,.dashboard-header,.pagination,.filter-bar){flex-wrap:wrap}
.ux461 .portal-shell .ux461-history summary,.ux461 .portal-shell .ux461-actions summary{overflow-wrap:normal;word-break:normal}
@media(max-width:1150px){
 .ux461 .portal-shell .editor-grid{grid-template-columns:minmax(0,1fr)}
 .ux461 .portal-shell .ux461-results :is(th,td):last-child:not([colspan]){width:132px;min-width:132px}
 .ux461 .portal-shell .ux461-results .ux461-row-actions{flex-direction:column;align-items:stretch}
 .ux461 .portal-shell .ux461-results .ux461-row-actions .button{width:100%}
}
@media(max-width:830px){
 .ux461 .portal-shell .ux461-results table{min-width:0}
 .ux461 .portal-shell .ux461-results thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .ux461 .portal-shell .ux461-results :is(table,tbody,tr,td){display:block;width:100%!important;min-width:0!important}
 .ux461 .portal-shell .ux461-results tr{padding:10px 0;border-bottom:1px solid #5b4330}
 .ux461 .portal-shell .ux461-results tr:last-child{border-bottom:0}
 .ux461 .portal-shell .ux461-results td{padding:7px 8px!important;border:0}
 .ux461 .portal-shell .ux461-results .ux461-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ux461 .portal-shell .ux461-results .ux461-row-actions .button{min-width:0;min-height:44px;width:100%}
 .ux461 .portal-shell .grid-2,.ux461 .portal-shell .details-shell{grid-template-columns:minmax(0,1fr)}
 .ux461 .portal-shell .profile-stat{flex-wrap:wrap}
 .ux461 .portal-shell .profile-stat :is(dt,dd){flex:1 1 100%;text-align:left}
}
@media(max-width:360px){
 .ux461 .portal-shell .ux461-results .ux461-row-actions{grid-template-columns:minmax(0,1fr)}
 .ux461 .portal-shell .ux461-search>.button{white-space:normal}
 .ux461 .portal-shell .form-actions>.button{width:100%}
}

/* Checkboxes/radios are compact controls, not text fields. Also applies on public/auth forms. */
body :is(.field,.checkbox-label) input:is([type="checkbox"],[type="radio"]){width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;padding:0;flex:0 0 18px;vertical-align:middle;margin:2px 0;accent-color:#d8aa73;cursor:pointer}
body label.field.checkbox-label{display:flex;flex-direction:row;align-items:flex-start;gap:10px}
body label.field:has(>span>input:is([type="checkbox"],[type="radio"]))>span{display:flex;align-items:flex-start;gap:10px;line-height:1.55;overflow-wrap:normal;word-break:normal}
