.v2-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.v2-heading p { max-width: 720px; color: #557087; }
.v2-actions { display: grid; gap: .65rem; justify-items: end; }
.v2-action-row { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; justify-content: flex-end; }
.v2-actions .export-button:hover { background: var(--pale); border-color: var(--blue); color: var(--navy); }
.v2-filter { display: grid; grid-template-columns: minmax(260px, 420px) minmax(340px, 1fr) auto; align-items: end; gap: .8rem; margin: 1rem 0 1.5rem; }
.v2-filter fieldset { margin: 0; border: 1px solid var(--line); padding: .4rem .65rem .6rem; }
.v2-filter legend { padding: 0 .3rem; color: var(--navy); font-size: .78rem; font-weight: 750; }
.wp-sl-checkbox-grid { display: grid; grid-template-columns: repeat(7, minmax(45px, 1fr)); gap: .35rem .55rem; }
.wp-sl-checkbox-grid label { color: var(--ink); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.wp-sl-checkbox-grid input { width: auto; margin: 0 .15rem 0 0; accent-color: var(--blue); }
.filter-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.v2-grid { max-height: calc(100vh - 285px); }
.v2-grid table { min-width: 5300px; }
.v2-grid.collapsed table { min-width: 1120px; }
.v2-grid.collapsed th:nth-child(n+9), .v2-grid.collapsed td:nth-child(n+9) { display: none; }
.v2-grid.has-identifiers.collapsed th:nth-child(n+9), .v2-grid.has-identifiers.collapsed td:nth-child(n+9) { display: table-cell; }
.v2-grid.has-identifiers.collapsed th:nth-child(n+10), .v2-grid.has-identifiers.collapsed td:nth-child(n+10) { display: none; }
.v2-grid th, .v2-grid td { min-width: 150px; max-width: 260px; }
.v2-grid th:nth-child(4), .v2-grid .v2-qualified_contact { min-width: 122px; width: 122px; }
.v2-grid .sort-link { color: inherit; text-decoration: none; }
.v2-grid .sort-link:hover { color: var(--red); text-decoration: underline; }
.v2-grid td { padding: .25rem; }
.v2-grid input, .v2-grid select { min-width: 100%; height: 2.25rem; border: 0; padding: .38rem .5rem; background: transparent; font-size: .86rem; }
.v2-grid input:focus, .v2-grid select:focus { outline: 2px solid var(--blue); background: #fff; }
.v2-grid .grid-checkbox { width: 1.1rem; min-width: auto; height: 1.1rem; margin: .35rem .5rem; accent-color: var(--blue); }
.v2-grid .v2-qualified_stakeholder_remarks { min-width: 280px; }
.v2-grid .v2-data_check { min-width: 280px; max-width: 360px; color: #9d251a; font-size: .82rem; white-space: normal; }
.v2-grid .v2-wp_sl_summary { min-width: 190px; color: var(--blue); font-weight: 700; white-space: normal; }
.v2-grid .v2-created_at, .v2-grid .v2-changed_at { min-width: 150px; font-size: .8rem; }
.v2-grid .v2-created_by, .v2-grid .v2-changed_by { min-width: 210px; font-size: .8rem; }
.v2-grid .v2-sticky-action, .v2-grid .v2-sticky-id, .v2-grid .v2-sticky-last-name, .v2-grid .v2-sticky-first-name { position: sticky; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.v2-grid .v2-sticky-action { left: 0; min-width: 58px; width: 58px; padding: .25rem; text-align: center; }
.v2-grid .v2-sticky-id { left: 58px; min-width: 88px; width: 88px; }
.v2-grid .v2-sticky-last-name { left: 58px; min-width: 180px; width: 180px; }
.v2-grid .v2-sticky-first-name { left: 238px; min-width: 180px; width: 180px; }
.v2-grid.has-identifiers .v2-sticky-last-name { left: 146px; }
.v2-grid.has-identifiers .v2-sticky-first-name { left: 326px; }
.v2-grid tbody .v2-sticky-action, .v2-grid tbody .v2-sticky-id, .v2-grid tbody .v2-sticky-last-name, .v2-grid tbody .v2-sticky-first-name { background: #fff; }
.v2-grid tbody tr:nth-child(even) .v2-sticky-action, .v2-grid tbody tr:nth-child(even) .v2-sticky-id, .v2-grid tbody tr:nth-child(even) .v2-sticky-last-name, .v2-grid tbody tr:nth-child(even) .v2-sticky-first-name { background: #fbfdff; }
.v2-grid tbody tr:hover .v2-sticky-action, .v2-grid tbody tr:hover .v2-sticky-id, .v2-grid tbody tr:hover .v2-sticky-last-name, .v2-grid tbody tr:hover .v2-sticky-first-name { background: #f4faff; }
.v2-grid th.v2-sticky-action, .v2-grid th.v2-sticky-id, .v2-grid th.v2-sticky-last-name, .v2-grid th.v2-sticky-first-name { z-index: 5; background: var(--pale); }
.readonly-value { display: block; padding: .45rem .5rem; }
.record-id { display: inline-block; padding: .45rem .2rem .45rem .5rem; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; font-weight: 800; }
.record-view { display: inline-grid; width: 1.85rem; height: 1.85rem; place-items: center; vertical-align: middle; border: 1px solid transparent; border-radius: 50%; color: var(--blue); }
.record-view:hover, .record-view:focus-visible { border-color: var(--blue); background: var(--pale); color: var(--navy); outline: none; }
.record-view svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.detail-heading { margin-bottom: 1.8rem; }
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.detail-card, .history-section { max-width: 1100px; margin-bottom: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); background: #fff; }
.stakeholder-details { grid-template-columns: minmax(200px, 31%) 1fr; gap: 0; border-top: 1px solid var(--line); }
.stakeholder-details dt, .stakeholder-details dd { padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.stakeholder-details dt { background: var(--pale); }
.stakeholder-details dt, .stakeholder-details dt label { font-weight: 600; }
.history-section { display: grid; gap: 1.25rem; }
.remark-form { margin-top: 0; }
.history-entry { padding: 1rem; border-left: 3px solid var(--blue); background: #f7fbff; }
.history-entry + .history-entry { margin-top: -.65rem; }
.history-entry div { display: flex; justify-content: space-between; gap: 1rem; color: var(--navy); font-size: .86rem; }
.history-entry span { color: #557087; }
.history-entry p { margin: .55rem 0 0; }
.preview-note { padding: .7rem .85rem; border-left: 4px solid var(--blue); background: var(--pale); color: var(--navy); font-weight: 650; }
.form-actions .button:disabled, .remark-form .button:disabled { cursor: not-allowed; opacity: .55; }
.editor-card { max-width: 1100px; }
.import-card { max-width: 1100px; }
.import-mapping { grid-template-columns: minmax(220px, 32%) 1fr; gap: 0; border-top: 1px solid var(--line); }
.import-mapping dt, .import-mapping dd { padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.import-mapping dt { background: var(--pale); }
.import-confirm { margin-top: 1rem; }
.import-table { max-height: 430px; }
.editor-details { margin-bottom: 1.25rem; }
.editor-details dt label { display: block; }
.editor-details dd { display: grid; gap: .35rem; }
.editor-details input, .editor-details select, .editor-details textarea { border: 0; padding: 0; background: transparent; }
.editor-details input:focus, .editor-details select:focus, .editor-details textarea:focus { outline: 2px solid rgba(0, 60, 175, .25); outline-offset: 3px; }
.editor-details input[type="checkbox"] { width: auto; justify-self: start; accent-color: var(--blue); }
.editor-details textarea { min-height: 5.5rem; resize: vertical; }
.stakeholder-form .form-actions { display: flex; gap: .65rem; }
.new-row td { background: #f5fbff !important; }
@media (max-width: 820px) { .v2-heading, .detail-heading { align-items: flex-start; flex-direction: column; } .v2-actions { justify-items: start; } .v2-action-row { justify-content: flex-start; } .v2-filter { grid-template-columns: 1fr; } .wp-sl-checkbox-grid { grid-template-columns: repeat(4, 1fr); } .stakeholder-details, .import-mapping { grid-template-columns: 1fr; } .history-entry div { flex-direction: column; gap: .15rem; } }
.site-footer { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid var(--pale); color: #557087; font-size: .82rem; }
.site-footer .site-shell { display: flex; justify-content: space-between; gap: 1rem 2rem; }
@media (max-width: 820px) { .site-footer .site-shell { flex-direction: column; } }
