.request-home{margin-top:28px}.request-home [data-go]{display:inline-flex;align-items:center;gap:10px}
.request-summary{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 24px}.request-summary button{flex:1;min-width:180px;display:flex;align-items:center;gap:14px;text-align:left;background:rgba(250,244,231,.95)}.request-summary strong{font-size:26px;color:#77501d;font-variant-numeric:tabular-nums}.request-home .request-summary{margin-bottom:0}
.requests-panel .filters{align-items:end;gap:14px}.requests-panel .filters input,.requests-panel .filters select{max-width:none}.request-search-field{flex:1;min-width:180px}.request-visibility{font-size:13px;line-height:1.5;margin-bottom:20px}
.table-wrap.requests-table{border:2px solid #181a1c;border-radius:12px;background:rgba(249,244,233,.96);scrollbar-gutter:auto}.requests-table>table{min-width:850px!important}.requests-table th,.requests-table td{font-size:13px;padding:14px 12px;vertical-align:middle}.requests-table th:nth-child(1){width:110px}.requests-table th:nth-child(2){width:27%}.requests-table th:nth-child(4){width:22%}.requests-table th:nth-child(6){width:110px}.requests-table small,.request-dialog td small{display:block;line-height:1.5;margin-top:5px}.request-person{display:block;margin:6px 0}.request-person small{color:#57636a;margin-top:2px}.request-open{max-width:100%;text-align:left;font-weight:650;line-height:1.45;white-space:normal;overflow-wrap:anywhere;padding:8px 10px;background:#f6ecd9}
.request-state{border:1px solid;white-space:normal;line-height:1.4}.request-state.pending{background:#fff0b5;color:#624600;border-color:#aa7c13}.request-state.approved{background:#d8efde;color:#215735;border-color:#438458}.request-state.rejected{background:#f8d9d5;color:#8b2a21;border-color:#b34c41}.request-state.cancelled{background:#e4e7e9;color:#424d55;border-color:#89939a}.request-pagination{justify-content:flex-end;margin-top:20px;font-size:13px}
dialog.request-dialog{width:min(860px,94vw)}.request-dialog .field{margin-bottom:18px}.request-dialog .request-meta{margin:14px 0}.request-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;padding:18px;border:1px solid #9b9589;border-radius:8px;background:#fffcf4;margin:20px 0 26px}.request-history-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.request-choices{max-height:280px;margin-bottom:20px;border:1px solid #8f8b80;border-radius:8px}.request-choices table{min-width:0!important}.request-choices thead{position:sticky;top:0;background:#f6ecd9}.request-choices td{width:190px}.request-choices select{font-size:13px;min-width:0}.request-choices [hidden]{display:none}.request-approve{background:#cce8d3!important;color:#1d512d!important}.request-reject{background:#f5d5cf!important;color:#862c22!important}.request-dialog .panel-heading h2{overflow-wrap:anywhere}.request-dialog .panel-heading button{flex-shrink:0}
.access-module button{margin-top:7px}.access-module .request-global{font-size:11px;display:flex;align-items:center;gap:6px;line-height:1.4;margin-top:8px}.access-module .request-global input{flex:none;width:16px;min-height:16px}
.access-module>label:not(.request-global){display:flex;flex-direction:column;gap:7px;min-width:0}.access-module>label>span{display:block;font-size:12px;line-height:1.3;font-weight:600;min-height:32px}.access-matrix td:has(.access-module){vertical-align:top}
@media(max-width:600px){.request-summary{gap:8px}.request-summary button{min-width:100%;padding:12px}.requests-panel{padding:16px}.request-dialog .request-description{padding:14px}.request-dialog .actions{gap:10px}.request-dialog .actions button{flex:1}.request-choices th,.request-choices td{padding:10px 7px}.request-choices td{width:145px}}
.request-photos{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.request-photos a{display:grid;gap:6px;max-width:200px}.request-photos img{width:180px;height:140px;object-fit:cover;border-radius:10px}.request-state.completed{background:#d8eee2;color:#19583d}
.request-completion-photos{margin:8px 0 0}.request-completion-photos a{max-width:140px;font-size:12px;overflow-wrap:anywhere}.request-completion-photos img{width:120px;height:96px}

.request-progress{margin:24px 0;padding:18px;border:1px solid #b3c3c6;border-radius:12px;background:#f3f7f6}.request-update-strip{display:flex;gap:12px;overflow-x:auto;padding:4px 0 14px;scrollbar-gutter:stable}.request-update-strip article{flex:0 0 285px;max-width:85vw;border:1px solid #bbc8ca;border-radius:10px;padding:14px;background:#fffdf7}.request-update-strip article strong{display:block;margin-top:10px}.request-update-strip article p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.request-update-strip small{color:#536b72}.request-full-history{margin:20px 0}.request-full-history summary{cursor:pointer;font-size:17px;font-weight:650;padding:14px 0}.request-stage{background:#e5edf0;color:#304952}.request-progress form{margin-top:14px}.request-progress button{background:#e0ebe7}.request-dialog button[value=completed]{background:#226e4b;color:white;border-color:#226e4b}

.request-history-button{background:#deeee5;color:#235a3e;border-color:#86ac96}

/* Keep SCI participants inside their own scroll area and actions below the form. */
#modal:has(#request-create) .request-choices{max-height:min(280px,45dvh);overflow:auto!important}
body dialog#modal:has(#request-create) form>.actions:last-child{position:static;bottom:auto;z-index:auto;margin-top:24px}
