/* Scoped dashboard and request-list refinements; inherit Rabar and theme tokens. */
#tab-overview .kpi-grid,.overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#tab-overview .kpi-card,.overview-grid .kpi-card{min-width:0;min-height:118px;padding:18px;text-align:right;display:flex;flex-direction:column;gap:7px;justify-content:space-between}
#tab-overview .kpi-card strong,.overview-grid .kpi-card strong{font-size:28px;line-height:1.2}
#tab-overview .kpi-card span,.overview-grid .kpi-card span{font-size:12px;line-height:1.9}
#tab-overview .kpi-card small,.overview-grid .kpi-card small{font-size:11px;line-height:1.8}
.overview-head{align-items:center}.overview-head p{line-height:1.9;overflow-wrap:anywhere}
.overview-account{display:inline-block;margin-inline-start:10px;padding-inline-start:10px;border-inline-start:1px solid var(--line);font-weight:700;color:var(--text);unicode-bidi:plaintext}
.overview-shortcuts{margin-top:16px;padding:18px}.overview-shortcuts h3{font-size:14px;margin:0 0 12px}
.overview-shortcut-actions{display:flex;gap:10px;flex-wrap:wrap}.overview-shortcut-actions .btn{font-size:12px}
#tab-overview .tech-details{margin-top:16px}
#tab-reporter-overview .reporter-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.overview-intro{margin-bottom:16px;font-size:12px;line-height:1.9}
.overview-recent{margin-top:16px}.overview-recent .section-head{gap:12px;flex-wrap:wrap}.overview-recent h3{font-size:15px}
.overview-recent .section-head p,.overview-recent .section-head .btn{font-size:12px}
.overview-request-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.overview-request-row:last-child{border-bottom:0}.overview-request-row>div{min-width:0}.overview-request-row p{font-size:13px;overflow-wrap:anywhere;margin:0 0 4px}
.overview-request-row small{font-size:11px;color:var(--muted)}.overview-request-row .badge{flex:none;white-space:nowrap}
.overview-empty{font-size:12px;line-height:2;margin:8px 0}
.overview-account-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}
.overview-account-line .note{font-size:12px;line-height:1.9;margin:0}.overview-account-line .btn{font-size:12px}
#tab-reporter-requests .portal-section-head p{font-size:13px;line-height:1.9;margin-bottom:0}
#tab-reporter-requests .request-guide{margin:16px 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.request-guide>summary{font-size:12px;font-weight:700;color:var(--primary);cursor:pointer}.request-guide p{font-size:12px;line-height:2;margin:12px 0 0}
#tab-reporter-requests .portal-request-filters{gap:12px}
#tab-reporter-requests .request-list-hint{font-size:11px;line-height:1.9;margin:8px 0 12px}
#tab-reporter-requests .portal-choice-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;border-radius:0;overflow:visible}
#tab-reporter-requests .portal-choice-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:start;gap:8px;padding:13px 10px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0;min-height:112px;margin:0}
#tab-reporter-requests .portal-choice-row:has(input:checked){background:var(--primary-soft);border-color:var(--primary)}
#tab-reporter-requests .portal-choice-row:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}
#tab-reporter-requests .portal-choice-row input{margin:4px 0 0}.portal-choice-copy small{line-height:1.85}
#tab-reporter-requests .portal-change-badge{padding:3px 6px;font-size:10px}
#tab-reporter-requests .portal-choice-list>.note{grid-column:1/-1;padding:20px;text-align:center;border:1px solid var(--line);border-radius:12px}
#tab-reporter-requests .portal-request-pager{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:12px 0;margin:4px 0 12px}
#portalRequestPage{text-align:center;font-size:11px;line-height:1.9}
@media(max-width:1100px){#tab-overview .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#tab-reporter-requests .portal-choice-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 #tab-reporter-overview .reporter-overview-grid{grid-template-columns:1fr}
 #tab-overview .kpi-card,.overview-grid .kpi-card{padding:16px;min-height:112px}
 .overview-head{gap:12px}.overview-head>div{min-width:0}.overview-account{display:block;margin:3px 0 0;padding:0;border:0}
 .overview-shortcut-actions{display:grid;grid-template-columns:1fr;width:100%}.overview-shortcut-actions .btn{width:100%;white-space:normal}
 .overview-account-line>.btn{width:100%}.overview-request-row{align-items:flex-start;gap:8px}.overview-request-row .badge{font-size:10px}
 #tab-reporter-requests .portal-choice-list{grid-template-columns:1fr}
 #tab-reporter-requests .portal-choice-row{min-height:96px;padding:12px}
 #tab-reporter-requests .portal-request-filters{gap:0}
 body.reporter-session #adminTabs{position:static}
 body.reporter-session #adminTabs .tab-btn[data-tab=password]{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){#tab-reporter-requests *{scroll-behavior:auto!important}}

.overview-head .overview-sso-owner{font-size:12px;line-height:1.9;margin:7px 0 0;overflow-wrap:anywhere;color:var(--muted)}

/* Account-list layout is scoped to avoid affecting employee and survey cards. */
#tab-admins .accounts-guide{margin:0 0 18px;line-height:1.9;font-size:13px}
#tab-admins #adminUsers{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
#tab-admins .account-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;content-visibility:visible;contain-intrinsic-size:none}
#tab-admins .person-head{align-items:flex-start;gap:12px}
#tab-admins .account-identity{display:grid;gap:3px;min-width:0}
#tab-admins .account-identity strong{font-size:16px;line-height:1.8;overflow-wrap:anywhere}
#tab-admins .account-role{font-size:12px;line-height:1.8;color:var(--muted)}
#tab-admins .person-head>.badge{display:inline-flex;align-items:center;align-self:flex-start;flex:none;min-height:26px;padding:2px 10px;line-height:1.7;white-space:nowrap}
#tab-admins .account-username{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;font-size:13px;line-height:1.9;min-width:0}
#tab-admins .account-username>bdi{direction:ltr;unicode-bidi:isolate;font-weight:700;overflow-wrap:anywhere;min-width:0}
#tab-admins .account-details{display:grid;gap:4px;min-width:0}
#tab-admins .account-details>.meta{font-size:13px;line-height:1.9;overflow-wrap:anywhere}
#tab-admins .account-last-login bdi{unicode-bidi:isolate}
#tab-admins .account-warning{font-size:12px;line-height:1.9;padding:8px 10px;margin:0;border-radius:9px}
#tab-admins .admin-person-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px;margin-top:auto;border-top:1px solid var(--line)}
#tab-admins .admin-person-actions>.btn{width:100%;min-width:0;min-height:44px;padding:8px;font-size:12px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
#tab-admins .admin-person-actions>.btn:only-child,#tab-admins .account-access-link{grid-column:1/-1}
@media(max-width:900px){#tab-admins #adminUsers{grid-template-columns:1fr}}
@media(max-width:420px){#tab-admins .account-card{padding:14px}#tab-admins .admin-person-actions{grid-template-columns:1fr}}

/* Compact own-request tracking; manager review controls retain their layout. */
:is(#portalRequests,#portalManagerRequests) .portal-track-row{border-bottom:1px solid var(--line);padding:0;min-width:0}
:is(#portalRequests,#portalManagerRequests) .portal-track-row:last-child{border-bottom:0}
:is(#portalRequests,#portalManagerRequests) .portal-track-row>summary{list-style:none;display:grid;gap:5px;padding:10px 0;min-height:64px;cursor:pointer;border-radius:8px}
:is(#portalRequests,#portalManagerRequests) .portal-track-row>summary::-webkit-details-marker{display:none}
:is(#portalRequests,#portalManagerRequests) .portal-track-row>summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
:is(#portalRequests,#portalManagerRequests) .portal-track-main{display:flex;align-items:center;gap:8px;min-width:0}
:is(#portalRequests,#portalManagerRequests) .portal-track-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.9;font-weight:600}
:is(#portalRequests,#portalManagerRequests) .portal-track-operation,:is(#portalRequests,#portalManagerRequests) .portal-track-status{flex:none;font-size:11px;line-height:1.8;padding:2px 8px;border:1px solid var(--line);border-radius:7px;white-space:nowrap}
:is(#portalRequests,#portalManagerRequests) .portal-track-operation.add{color:var(--primary);background:var(--primary-soft)}
:is(#portalRequests,#portalManagerRequests) .portal-track-operation.remove{color:var(--bad);background:var(--bad-bg)}
:is(#portalRequests,#portalManagerRequests) .portal-track-status.pending,:is(#portalRequests,#portalManagerRequests) .portal-track-status.partial{color:var(--warn);background:var(--warn-bg)}
:is(#portalRequests,#portalManagerRequests) .portal-track-status.approved{color:var(--ok);background:var(--ok-bg)}
:is(#portalRequests,#portalManagerRequests) .portal-track-status.rejected{color:var(--bad);background:var(--bad-bg)}
:is(#portalRequests,#portalManagerRequests) .portal-track-meta{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px;color:var(--muted);font-size:11px;line-height:1.8}
:is(#portalRequests,#portalManagerRequests) .portal-track-toggle{color:var(--primary);white-space:nowrap}
:is(#portalRequests,#portalManagerRequests) .portal-track-hide{display:none}
:is(#portalRequests,#portalManagerRequests) .portal-track-row[open] .portal-track-show{display:none}
:is(#portalRequests,#portalManagerRequests) .portal-track-row[open] .portal-track-hide{display:inline}
:is(#portalRequests,#portalManagerRequests) .portal-track-details{padding:8px 12px 12px;border-inline-start:2px solid var(--line);margin:0 0 12px;min-width:0}
:is(#portalRequests,#portalManagerRequests) .portal-track-details p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 8px}
:is(#portalRequests,#portalManagerRequests) .portal-track-details p:last-child{margin-bottom:0}
:is(#portalRequests,#portalManagerRequests) .portal-track-details .portal-track-resolution-meta{font-size:11px;color:var(--muted)}
@media(max-width:420px){:is(#portalRequests,#portalManagerRequests) .portal-track-main{gap:5px}:is(#portalRequests,#portalManagerRequests) .portal-track-operation,:is(#portalRequests,#portalManagerRequests) .portal-track-status{font-size:10px;padding-inline:6px}:is(#portalRequests,#portalManagerRequests) .portal-track-title{font-size:12px}}

/* Manager review keeps selections and decisions outside expandable summaries. */
#portalManagerRequests .portal-review-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:8px;padding:6px 0;white-space:normal;min-width:0}
#portalManagerRequests .portal-review-row.portal-review-resolved{grid-template-columns:minmax(0,1fr)}
#portalManagerRequests .portal-track-row{border:0}
#portalManagerRequests .portal-review-select{display:flex;justify-content:center;align-items:center;width:44px;min-height:44px;padding:0;margin-top:8px;position:relative}
#portalManagerRequests .portal-review-select>input{width:17px;height:17px;flex:none}
#portalManagerRequests .portal-review-select>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#portalManagerRequests .portal-review-owner{font-weight:600;overflow-wrap:anywhere;min-width:0}
#portalManagerRequests .portal-review-owner>bdi{unicode-bidi:isolate;overflow-wrap:anywhere}
#portalManagerRequests .portal-review-actions{display:flex;gap:6px;align-self:start;padding-top:10px}
#portalManagerRequests .portal-review-actions>.btn{font-size:12px;padding:7px 13px;min-height:44px;line-height:1.8}
#tab-reporters .portal-bulk-bar{padding:10px;gap:8px}
#tab-reporters .portal-bulk-bar>.btn{font-size:12px;line-height:1.8;padding:8px 12px;min-height:44px}
#tab-reporters #portalSelectedCount{font-size:12px;line-height:1.8}
#tab-reporters .portal-review-guide{font-size:12px;line-height:1.9;margin:10px 0}
#tab-reporters .portal-review-guide>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--primary)}
#tab-reporters .portal-review-guide p{margin:4px 0 10px;line-height:1.9}
#tab-reporters .portal-review-filter{max-width:320px;margin:8px 0 12px}
@media(max-width:700px){
 #portalManagerRequests .portal-review-row{grid-template-columns:36px minmax(0,1fr);gap:4px 6px}
 #portalManagerRequests .portal-review-select{width:36px}
 #portalManagerRequests .portal-review-actions{grid-column:2;justify-content:flex-end;padding:0 0 7px}
 #portalManagerRequests .portal-track-meta{gap:3px 8px}
 #portalManagerRequests .portal-review-owner{flex-basis:100%}
 #tab-reporters .portal-bulk-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #tab-reporters .portal-bulk-bar>.btn{width:100%;min-width:0;white-space:normal}
 #tab-reporters #portalSelectedCount{grid-column:1/-1}
 #tab-reporters .portal-review-filter{max-width:none}
}
