.roster-toolbar{margin-bottom:12px}.roster-inline{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}.roster-inline label{margin:0;min-width:120px}.roster-inline input,.roster-inline select{width:220px}.roster-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;margin-bottom:12px}.roster-fields label{margin:0;min-width:0}.roster-category-options>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.roster-check{display:inline-flex;align-items:center;gap:6px;margin:0 8px 0 0}.roster-check input,.roster-list input[type=checkbox],.roster-scroll input[type=checkbox]{width:auto;margin:0}.roster-list{width:100%}.roster-list td{vertical-align:middle;overflow-wrap:anywhere}.roster-list td:first-child{white-space:nowrap}.roster-list td small{display:block;color:var(--muted)}.roster-scroll{max-height:60vh;overflow:auto}.roster-scroll th{position:sticky;top:0;background:var(--surface,#fff);z-index:1}.roster-dialog{width:min(850px,95vw);max-height:90vh;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink)}.roster-dialog::backdrop{background:#0006}.roster-match{padding:15px;border:1px solid var(--line);margin:12px 0}.roster-match>.roster-check{display:flex;margin:6px 0}@media(max-width:900px){.roster-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.roster-category-row [hidden]{display:none}

.roster-export-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;margin:12px 0}.roster-export-order{overflow-wrap:anywhere;margin:12px 0}@media(max-width:700px){.roster-export-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.roster-category-tabs{display:flex;gap:10px;overflow-x:auto;white-space:nowrap;margin:0 0 12px;padding-bottom:6px}.roster-category-tabs a{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:6px 10px;color:var(--ink);background:var(--surface,#fff)}.roster-category-tabs a[aria-current=page]{background:var(--primary);border-color:var(--primary);color:#fff}.roster-category-tabs small{font-size:12px}

.roster-header-stack{display:inline-flex;flex-direction:column;white-space:nowrap;line-height:1.35;vertical-align:middle}

.admin-main:has(.roster-page-heading){margin-top:10px}.roster-page-heading{align-items:flex-start}.roster-page-heading h1{font-size:26px;margin:0}

.roster-category-maintenance{max-height:45vh;overflow:auto;margin-top:12px}.roster-category-maintenance form{display:grid;grid-template-columns:80px minmax(0,1fr) auto auto;gap:10px;align-items:center;margin-bottom:10px}.roster-category-kind{font-size:13px;white-space:nowrap}.roster-row-actions{display:flex;gap:10px;align-items:center;white-space:nowrap}.roster-row-actions button{font-size:13px;padding:3px 0}.roster-selection-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.roster-category-maintenance .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.roster-title-form{display:flex;align-items:center;gap:10px}.roster-title-form h1{margin:0;min-width:0}.roster-title-form h1 input{font:inherit;font-weight:inherit;width:min(650px,55vw);border-color:transparent;background:transparent;padding:0}.roster-title-form h1 input:focus{border-color:var(--line)}.roster-list-toolbar,.roster-search-form,.roster-list-operations{display:flex;align-items:center;gap:10px}.roster-list-toolbar{margin-bottom:12px;flex-wrap:wrap}.roster-search-form label{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}.roster-search-form input{width:200px}.roster-source-label select{width:240px}.roster-list-operations{margin-left:auto;flex-wrap:nowrap}.roster-list-operations .roster-selection-actions{margin:0;flex-wrap:nowrap}.roster-list-operations .registration-selection-actions{flex-wrap:nowrap}.registration-filter-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.registration-filter-toolbar .filter-bar{margin:0;flex:1;min-width:0}.registration-selection-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.registration-filter-toolbar .filter-bar input{width:220px}.registration-filter-toolbar .filter-bar select{width:180px}.roster-search-form select[name=status]{width:130px}
@media(min-width:1200px){.roster-list-toolbar{flex-wrap:nowrap}.roster-search-form input{width:160px}.roster-source-label select{width:220px}.roster-list-operations button,.roster-list-operations .button{font-size:13px;padding:6px 8px}.roster-list-toolbar>span{white-space:nowrap}}

.registration-selection-actions{margin:0}.registration-filter-toolbar .filter-bar{flex:0 1 auto}

.roster-bank-fields{margin-top:12px}.roster-person-photo{margin-top:12px}.roster-photo-controls,.roster-photo-controls form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.roster-photo-controls img{width:90px;height:90px;object-fit:cover;border-radius:6px}.roster-photo-controls input[type=file]{max-width:280px}.roster-row-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}

.roster-bank-grid{grid-template-columns:minmax(0,10fr) minmax(0,20fr) minmax(0,15fr) minmax(0,10fr) minmax(0,20fr) minmax(0,25fr);gap:10px}.roster-bank-grid label{min-width:0}.roster-bank-grid input{width:100%;min-width:0}@media(max-width:800px){.roster-bank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Personnel editor: visible widths measured in full-width Chinese characters. */
.roster-profile-fields{display:flex;flex-wrap:wrap;align-items:flex-start}
.roster-profile-fields .roster-profile-row>[data-profile-field]{flex:0 0 auto;width:calc(var(--profile-field-chars,16)*1em + var(--control-padding)*2 + 2px);max-width:100%;min-width:0}
.roster-profile-fields .roster-profile-row>[data-profile-field="name"]{--profile-field-chars:12}
.roster-profile-fields .roster-profile-row>[data-profile-field="organization"]{--profile-field-chars:14}
.roster-profile-fields .roster-profile-row>[data-profile-field="job_title"]{--profile-field-chars:8}
.roster-profile-fields .roster-profile-row>[data-profile-field="email"]{--profile-field-chars:14}
.roster-profile-fields .roster-profile-row>[data-profile-field="phone"],.roster-profile-fields .roster-profile-row>[data-profile-field="birthday"],.roster-profile-fields .roster-profile-row>[data-profile-field="national_id"]{--profile-field-chars:6}
.roster-profile-fields .roster-profile-row>[data-profile-field="expertise"],.roster-profile-fields .roster-profile-row>[data-profile-field="address"]{--profile-field-chars:28}

.roster-profile-fields .roster-profile-row>[data-profile-field="birth_date"]{--profile-field-chars:11}

.signin-field-picker{grid-column:span 2;margin:0;padding:6px 10px;border:1px solid var(--border,#b9bec8);min-width:0}.signin-field-picker legend{padding:0 4px;font-weight:600}.signin-field-picker .roster-export-fields{display:flex;flex-wrap:wrap;gap:6px 12px}.signin-field-picker .roster-check{display:flex;align-items:center;gap:4px;margin:0}@media(max-width:700px){.signin-field-picker{grid-column:1/-1}}

.roster-fields.roster-profile-fields{display:block}.roster-profile-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 16px}.roster-profile-row+.roster-profile-row{margin-top:10px}.roster-profile-fields .roster-profile-row>[data-profile-field="telephone"]{width:calc(16ch + var(--control-padding)*2 + 2px)}

.roster-profile-fields .roster-profile-row>[data-profile-field=indigenous_name],.roster-profile-fields .roster-profile-row>[data-profile-field=ethnicity]{--profile-field-chars:12}.roster-profile-fields .roster-profile-row>[data-profile-field=gender]{--profile-field-chars:7}.roster-profile-fields .roster-profile-row>[data-profile-field=organization_address]{--profile-field-chars:24}.roster-profile-fields .roster-profile-row>[data-profile-field=organization_phone]{--profile-field-chars:14}.roster-profile-fields select{width:100%;min-width:0}

.roster-display-dialog{width:min(740px,95vw)}.roster-display-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;margin:12px 0}.roster-display-options .roster-check{margin:0;min-width:0;overflow-wrap:anywhere}.roster-display-options small{display:inline-flex;justify-content:center;align-items:center;background:var(--primary);color:#fff;border-radius:50%;min-width:20px;height:20px;font-size:12px}.roster-display-options small:empty{display:none}@media(max-width:600px){.roster-display-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

#registration-roster-import select{width:100%}.roster-import-mapping td{overflow-wrap:anywhere;white-space:pre-wrap}.roster-import-mapping{min-width:300px}
.roster-registration-toolbar{flex-wrap:wrap}.roster-registration-toolbar .roster-search-form{flex-wrap:wrap;max-width:100%;min-width:0}.roster-registration-toolbar .roster-search-form label{max-width:100%;min-width:0}.roster-registration-toolbar .roster-source-label select{min-width:0;flex:1}.roster-registration-toolbar .roster-list-operations,.roster-registration-toolbar .registration-selection-actions{flex-wrap:wrap;max-width:100%}
