/* Shared layout for existing list controls; record forms and document papers keep their own layouts. */
body.staff-mode .page :is(.section-heading,.access-heading){align-items:flex-start;gap:20px;margin-bottom:24px}
body.staff-mode .page :is(.section-heading,.access-heading)>div:first-child{min-width:0}
body.staff-mode .page :is(.section-heading,.access-heading) h1{font-size:clamp(24px,2.4vw,32px);line-height:1.25;margin-bottom:8px;overflow-wrap:anywhere}
body.staff-mode .page :is(.section-heading,.access-heading)>div>p{font-size:13px;line-height:1.6;max-width:760px}
body.staff-mode .page :is(.section-heading,.access-heading)>.actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin:0;flex-shrink:0;max-width:48%}
body.staff-mode .page :is(.section-heading,.access-heading)>.actions :is(button,.button){font-size:12px;padding:10px 14px;min-height:38px}
body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:14px;align-items:end;padding:16px;border:1px solid #e0e6d7;border-radius:12px;background:#f3f6ed;margin:16px 0 20px;min-width:0}
body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters)>label{display:block;font-size:12px;font-weight:500;color:#657155;margin:0;min-width:0;width:auto}
body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters) :is(input:not([type=checkbox]):not([type=radio]),select){width:100%;min-width:0;box-sizing:border-box;font-size:13px;margin-top:6px;padding:10px 12px;min-height:40px}
body.staff-mode .page :is(.i-filters,.p-search,.v-search,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters)>label:has(input[type=search]){grid-column:span 2}
body.staff-mode .page :is(.p-search,.v-search,.record-filters)>p{grid-column:1/-1;font-size:12px;color:#758169;margin:0}
body.staff-mode .page :is(.p-check,.i-show-voided,.cw-check){font-size:12px;line-height:1.5}
body.staff-mode .page :is(.p-row,.files-row,.i-row,.v-bill,.attention-row,.task-row) h3{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
body.staff-mode #ws-breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;font-size:12px;line-height:1.4}
body.staff-mode #ws-breadcrumb a{color:#6e795b;text-decoration:none}body.staff-mode #ws-breadcrumb a:hover{color:#a74c24;text-decoration:underline}body.staff-mode #ws-breadcrumb strong{font-weight:600;overflow-wrap:anywhere}
/* Staff help already lives in the profile menu; keep its dialog reachable without covering fields. */
body.staff-mode #ux-help-open{display:none}
@media(max-width:900px){body.staff-mode .page :is(.section-heading,.access-heading){flex-wrap:wrap}body.staff-mode .page :is(.section-heading,.access-heading)>.actions{max-width:none;justify-content:flex-start}}
@media(max-width:600px){body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters)>label:has(input[type=search]){grid-column:1/-1}body.staff-mode .page :is(.section-heading,.access-heading)>.actions{width:100%}body.staff-mode #ws-breadcrumb{gap:5px;font-size:11px}}
@media(max-width:360px){body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters){grid-template-columns:1fr}body.staff-mode .page :is(.i-filters,.p-search,.m-filters,.v-search,.files-filters,.tasks-filters,.attention-filters,.lp-filters,.cw-email-filters,.record-filters)>label{grid-column:auto!important}}
