/* Cloud-first visual layer; permissions and records remain server-owned. */
:root { --canvas:#f5f7fb; --radius:16px; --radius-sm:9px; --radius-lg:20px; }
.content { padding:28px 32px 52px; }
.panel { border-color:#e5ebf4; box-shadow:0 4px 20px #203c7010; }
.hero { background:linear-gradient(135deg,#1e3a8a,#2264e5,#6366f1); color:#fff; border:none; border-radius:20px; }
.metric-card { position:relative; overflow:hidden; border:1px solid #e5ebf4; }
.metric-card::after { content:""; position:absolute; bottom:0; left:22px; right:22px; height:3px; border-radius:3px; background:var(--blue); opacity:.6; }
.metric-card:nth-child(4n+2)::after { background:var(--green); }
.metric-card:nth-child(4n+3)::after { background:var(--purple); }
.metric-card:nth-child(4n+4)::after { background:var(--orange); }
.panel-header { padding:20px 22px; }
.panel-header h3 { font-size:16px; }
.panel-body { padding:20px 22px; }
.list-item { gap:16px; align-items:flex-start; }
.list-item>div:first-child { min-width:0; flex:1; }
.list-item small,.list-item p,.history-copy,.timeline-body p { white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; line-height:1.75; max-height:none; -webkit-line-clamp:unset; }
.list-item .action-row { flex:0 0 auto; }
.history-panel,.basic-information-panel { margin-top:18px; }
.identity-head { align-items:flex-start; }
.identity-head>.status-pill { align-self:flex-start; flex-shrink:0; }
.history-panel .timeline-body { width:100%; min-width:0; }
.history-copy { margin:8px 0 0; color:var(--muted); }
.candidate-list-controls { position:sticky; top:76px; z-index:7; background:var(--canvas); padding:10px 0; }
.candidate-list-controls .toolbar { margin:0; }
.candidate-results-strip { padding-top:12px; }
.candidate-table-wrap { max-height:calc(100vh - 290px); overflow:auto; overscroll-behavior:contain; }
.candidate-table-wrap thead { position:sticky; top:0; z-index:2; background:#f3f6fc; }
.candidate-table-wrap th { background:#f3f6fc; }
.candidate-table-wrap table { min-width:1080px; }
.table-wrap:not(.candidate-table-wrap) td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; line-height:1.65; }
.table-wrap:not(.candidate-table-wrap) td:last-child { min-width:150px; }
.risk-table td,.blacklist-table td { white-space:pre-wrap !important; text-overflow:clip !important; overflow-wrap:anywhere; max-height:none; }
.blacklist-table td:nth-child(4) { min-width:320px; max-width:600px; }
.blacklist-table td:last-child,.blacklist-table th:last-child { position:sticky; right:0; background:#fff; box-shadow:-4px 0 8px #203c7010; }
.risk-table td:nth-child(2) { min-width:280px; }
.table-wrap .risk-table { min-width:1900px; }
.risk-table th,.risk-table td { min-width:100px; }
.risk-table td:nth-child(2) { min-width:160px; }
.risk-table td:nth-child(3) { min-width:300px; max-width:420px; }
.risk-table td:nth-child(10) { min-width:220px; }
.risk-table td:nth-child(11) { min-width:240px; }
.risk-table td:nth-child(12) { min-width:180px; }
.risk-table td:last-child,.risk-table th:last-child { position:sticky; right:0; background:#fff; box-shadow:-4px 0 8px #203c7010; }
.risk-original-preview { margin:0 0 10px; white-space:pre-wrap; }
.risk-original-full { white-space:normal; }
.risk-original-full summary { cursor:pointer; color:var(--blue); padding:8px 0; }
.risk-original-full .d-pre { margin-top:10px; white-space:pre-wrap; overflow-wrap:anywhere; }
.authorization-roles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.authorization-roles label { display:flex; align-items:center; gap:8px; padding:10px; background:#f4f7fc; border-radius:10px; }
.authorization-roles input { width:18px; min-height:18px; margin:0; }
.employee-scopes { flex-wrap:wrap; }
.employee-scopes .active { background:var(--blue); color:white; }
.account-state { white-space:nowrap; }
.notice-info { background:var(--blue-soft); padding:14px 18px; border-radius:12px; line-height:1.7; color:#254b82; }
/* Modal scrolling has no page topbar; its filters must not inherit top:76px. */
.modal-body .toolbar { position:static; top:auto; }
.blacklist-profile .panel { margin-bottom:18px; }
.blacklist-profile .list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 20px; }
.blacklist-profile .list-item strong { display:block; }
.blacklist-profile .list-item:nth-child(n+6) { grid-column:1/-1; }
.blacklist-profile .timeline p { white-space:pre-wrap; overflow-wrap:anywhere; }
.blacklist-profile .photo-tile { height:240px; }
@media(max-width:1000px) {
  .content { padding:18px; }
  .list-item { flex-wrap:wrap; }
  .list-item .action-row { width:100%; }
}
@media(max-width:760px) {
  .blacklist-profile .list { grid-template-columns:1fr; }
  .content { padding:12px 12px 90px; }
  .panel-header,.panel-body { padding:16px; }
  .candidate-list-controls { position:relative; top:auto; }
  .authorization-roles { grid-template-columns:1fr; }
  .blacklist-table td:nth-child(4) { min-width:240px; }
}

/* Blacklist: candidate-style compact list and cards; evidence stays visible. */
.block-table-wrap{border:1px solid var(--border);border-radius:16px;background:#fff}
.block-management-table{table-layout:fixed;width:100%;min-width:0!important}
.block-management-table th:nth-child(1){width:19%}.block-management-table th:nth-child(2){width:18%}.block-management-table th:nth-child(3){width:29%}.block-management-table th:nth-child(4){width:20%}.block-management-table th:nth-child(5){width:14%}
.block-management-table td,.block-management-table th{white-space:normal!important;overflow-wrap:anywhere;vertical-align:top;padding:16px 12px!important}
.block-management-table small,.block-card small{display:block;color:#71819a;line-height:1.65;margin-top:6px}
.block-actions{display:flex;flex-wrap:wrap;gap:8px}.block-actions button{padding:7px 10px;font-size:13px;white-space:normal}
.block-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:18px}
.block-card{padding:22px;display:flex;flex-direction:column;gap:16px;overflow-wrap:anywhere}.block-card .block-actions{margin-top:auto}
.blacklist-profile .detail-hero:has(>div:only-child){display:block}.blacklist-profile .detail-hero>div{min-width:0}
.block-management-table .status-pill{white-space:normal;margin-top:5px}
@media(max-width:900px){.block-management-table td,.block-management-table th{padding:12px 8px!important}.block-actions{flex-direction:column}.block-actions button{width:100%}}

/* V4 person work: responsibility/activity alongside issues/next steps. */
.d-person-work-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.d-person-work-grid>div{min-width:0}#page-back{white-space:nowrap;flex-shrink:0}@media(max-width:1100px){.d-person-work-grid{grid-template-columns:minmax(0,1fr)}}

/* The approved V4 head is a plain page heading, not a promotional banner. */
.content .d-hero{background:none;color:#17345c;border:0;border-radius:0;box-shadow:none;padding:0;margin:0 0 22px;flex-wrap:wrap;align-items:flex-start}
.content .d-hero h1{font-size:28px;margin:8px 0 10px;line-height:1.35}
.content .d-hero p{color:#8395b1;line-height:1.7}
.content .d-hero small{color:#417ef2}
.content .d-hero .soft-btn{background:#fff;border:1px solid #dfe7f3;color:#17345c}
.content .d-hero .primary-btn{background:#2264e5;color:#fff;border-color:#2264e5}
.content .d-hero-stats>div{border-color:#dfe7f3}

.d-event>small,.d-event>strong{display:block}.d-event>strong{margin-top:6px}
