.br-workspace { max-width:1200px; margin-inline:auto; }
.br-workspace .panel-body { min-width:0; }
.br-workspace label { display:grid; gap:.4rem; min-width:0; }
.br-workspace input,.br-workspace select,.br-workspace textarea { width:100%; min-width:0; box-sizing:border-box; }
.br-filter,.br-edit { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:1rem; margin-block:1rem; align-items:end; }
.br-filter { grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; }
.br-filter .button { min-height:44px; }
.br-table-scroll { overflow-x:auto; max-width:100%; }
.br-table { width:100%; min-width:680px; border-collapse:collapse; text-align:left; }
.br-table th,.br-table td { padding:.75rem; border-bottom:1px solid var(--border,#8885); vertical-align:top; overflow-wrap:anywhere; }
.br-table small { display:block; margin-top:.3rem; }
.br-alert,.br-note { padding:1rem; margin-block:1rem; border:1px solid var(--border,#8885); border-radius:12px; }
.br-alert { border-inline-start:4px solid var(--warning,#d69832); }
.br-note-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.br-pagination { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-block:1rem; flex-wrap:wrap; }
.br-incident-form,.br-settings form,.br-alert form { display:grid; gap:.75rem; margin-block:1rem; }
.br-facts { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,3fr); gap:.6rem 1rem; }
.br-facts dd { margin:0; overflow-wrap:anywhere; }
.br-edit .br-checkbox { display:flex; align-items:center; }
.br-checkbox input { width:auto; }
.br-edit p { grid-column:1/-1; }
.br-workspace summary { cursor:pointer; padding-block:.8rem; }
.br-sort-controls { display:grid; grid-template-columns:minmax(0,22rem) minmax(9rem,11rem); align-items:end; gap:.75rem; margin-block:1rem; }
.br-sort-controls select { min-height:44px; }
.br-table th { overflow-wrap:normal; word-break:normal; }
.br-sort-controls select:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.br-table th:nth-child(1) { width:26%; }
.br-table th:nth-child(2) { width:27%; }
.br-table th:nth-child(3) { width:23%; }
@media(max-width:700px) {
  .br-sort-controls { grid-template-columns:1fr; }
  .br-table { min-width:0; }
  .br-table thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .br-table,.br-table tbody,.br-table tr,.br-table td { display:block; width:auto; }
  .br-table tr { border:1px solid var(--border,#8885); border-radius:10px; margin-bottom:1rem; padding:.5rem; }
  .br-table td::before { content:attr(data-label); display:block; font-weight:700; margin-bottom:.35rem; }
  .br-table td:last-child { border-bottom:0; }
  .br-table td:last-child .button { margin-inline-start:.75rem; }
}
@media(max-width:600px) { .br-filter { grid-template-columns:1fr; } .br-facts { grid-template-columns:1fr; gap:.2rem; } .br-facts dd { margin-bottom:.7rem; } .br-table { font-size:.85rem; } .br-table th,.br-table td { padding:.5rem; } }

.br-sections,.pg-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
.br-sections .button[aria-pressed="true"] { outline:2px solid currentColor; outline-offset:2px; }
.pg-toolbar .br-filter { flex:1 1 300px; grid-template-columns:minmax(0,1fr) auto; }
.pg-fields { min-width:0; border:0; margin:0; padding:0; display:grid; gap:.85rem; }
.pg-fields legend { padding-block:1rem; font-weight:700; }
.pg-fields .br-edit { margin:0; }
.pg-reasons { border:1px solid var(--border,#8885); border-radius:10px; padding-inline:.8rem; }
.pg-reasons summary { min-height:44px; box-sizing:border-box; }
.pg-reasons .br-checkbox,.pg-fields>.br-checkbox { display:flex; align-items:center; min-height:44px; gap:.65rem; }
.pg-fields .br-checkbox input { width:20px; height:20px; flex-shrink:0; }
.pg-records { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:1rem; }
.pg-records .br-note { margin:0; overflow-wrap:anywhere; }
.pg-fields input,.pg-fields select,.pg-fields textarea { font-size:1rem; }
@media(max-width:400px) { .pg-toolbar .br-filter { grid-template-columns:1fr; } }
