/* Focused governance views, aligned with the dashboard's shared component system. */
.ch-workspace {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ch-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.ch-org {
  position: sticky;
  top: 96px;
  padding: 18px 12px;
}
.ch-org .kicker,
.ch-org h2,
.ch-org p {
  margin-left: 8px;
  margin-right: 8px;
}
.ch-org h2 {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 17px;
}
.ch-org nav {
  display: grid;
  gap: 5px;
}
.ch-org nav button {
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted, #627188);
  padding: 11px 10px;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.ch-org nav button:hover,
.ch-org nav button.active {
  background: #eaf2ff;
  color: #1755ac;
}
.ch-org nav button.active {
  font-weight: 700;
}
.ch-org p {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 20px;
}
.ch-rolebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted, #667085);
  font-size: 12px;
}
.ch-rolebar > span {
  font-weight: 650;
}
.ch-rolebar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-rolebar select {
  background: #fff;
  border: 1px solid var(--line, #dce3eb);
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--ink, #25334a);
  font: inherit;
}
.ch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  background: #e9eef5;
  border-radius: 9px;
  width: fit-content;
}
.ch-tabs button {
  border: 0;
  background: transparent;
  padding: 10px 15px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  color: var(--muted, #637188);
  cursor: pointer;
}
.ch-tabs button.active {
  background: #fff;
  color: #225abe;
  box-shadow: 0 1px 4px #25334a14;
  font-weight: 700;
}
.ch-filters {
  background: #fff;
  border: 1px solid var(--line, #e0e6ee);
  border-radius: 11px;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.ch-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ch-filter-grid .field {
  min-width: 0;
}
.ch-filter-grid .field > span {
  font-size: 11px;
  color: var(--muted, #617089);
}
.ch-filter-grid input,
.ch-filter-grid select {
  min-width: 0;
  width: 100%;
  font-size: 12px;
  padding: 9px 10px;
}
.ch-advanced summary {
  cursor: pointer;
  font-size: 12px;
  color: #305f9e;
  list-style-position: inside;
}
.ch-advanced[open] summary {
  margin-bottom: 15px;
}
.ch-advanced .ch-filter-grid {
  padding-top: 4px;
}
.ch-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ch-actions .btn {
  white-space: nowrap;
}
.ch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ch-stats > div {
  background: #fff;
  border: 1px solid var(--line, #e0e6ee);
  border-radius: 10px;
  padding: 15px 18px;
  display: grid;
  gap: 9px;
}
.ch-stats span {
  font-size: 11px;
  color: var(--muted, #68768b);
}
.ch-stats strong {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1px;
}
.ch-table {
  font-size: 12px;
}
.ch-table th {
  white-space: nowrap;
}
.ch-table td {
  max-width: 280px;
  min-width: 110px;
  vertical-align: top;
}
.ch-table td:first-child strong {
  display: block;
  line-height: 1.5;
  min-width: 170px;
}
.ch-table input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}
.ch-evidence {
  display: block;
  min-width: 115px;
  line-height: 1.8;
  color: var(--muted, #617089);
  font-size: 11px;
}
.ch-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ch-bars {
  padding: 4px 20px 23px;
  display: grid;
  gap: 16px;
}
.ch-bars button {
  border: 0;
  background: none;
  text-align: left;
  display: grid;
  grid-template-columns: 115px minmax(30px, 1fr) 25px;
  align-items: center;
  gap: 10px;
  color: var(--ink, #24334a);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.ch-bars i {
  height: 9px;
  position: relative;
  background: #edf2f8;
  border-radius: 10px;
  overflow: hidden;
}
.ch-bars i:before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: #5682df;
  border-radius: 10px;
}
.ch-bars b {
  font-variant-numeric: tabular-nums;
}
.ch-coverage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 20px 20px;
}
.ch-coverage button {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 16px;
  background: #f9fbfe;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.ch-coverage button > div {
  display: grid;
  gap: 6px;
}
.ch-coverage strong {
  font-size: 12px;
}
.ch-coverage span,
.ch-coverage small {
  font-size: 11px;
  color: #60718a;
}
.ch-coverage progress {
  width: 100%;
  height: 8px;
  accent-color: #4876d6;
  margin: 12px 0;
  display: block;
}
.ch-inset {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 12px;
  line-height: 1.7;
}
.ch-case h2 {
  font-size: 23px;
  line-height: 1.45;
  margin: 8px 0 16px;
}
.ch-case h3 {
  font-size: 14px;
  margin-top: 26px;
}
.ch-case-evidence {
  border: 1px solid #e1e8f2;
  background: #f7f9fc;
  border-radius: 9px;
  padding: 0 16px 12px;
  margin: 18px 0;
}
.ch-case-evidence h3 {
  margin-top: 16px;
}
.ch-case-evidence p {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.ch-timeline {
  padding-left: 18px;
  display: grid;
  gap: 18px;
  font-size: 13px;
}
.ch-timeline li {
  padding-left: 7px;
}
.ch-timeline small {
  display: block;
  color: #68788e;
  font-size: 11px;
  margin-top: 5px;
}
.ch-timeline p {
  color: #60718a;
  font-size: 12px;
  margin: 6px 0;
}
.ch-form-error:empty {
  display: none;
}
.ch-form-error {
  padding: 10px 12px;
  color: #a71f32;
  background: #fff0f2;
  border-radius: 6px;
  font-size: 12px;
}
button:focus-visible,
[data-ch-role]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
@media (max-width: 1250px) {
  .ch-workspace {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .ch-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ch-charts {
    grid-template-columns: 1fr;
  }
  .ch-coverage {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 950px) {
  .ch-workspace {
    grid-template-columns: 1fr;
  }
  .ch-org {
    position: static;
    padding: 12px;
  }
  .ch-org h2,
  .ch-org .kicker,
  .ch-org p {
    display: none;
  }
  .ch-org nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  .ch-org nav button {
    padding: 8px;
    font-size: 11px;
  }
  .ch-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ch-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .ch-filter-grid {
    grid-template-columns: 1fr;
  }
  .ch-rolebar {
    align-items: flex-start;
    flex-direction: column;
  }
  .ch-tabs {
    width: 100%;
  }
  .ch-tabs button {
    flex: 1;
    font-size: 11px;
    padding: 9px;
  }
  .ch-stats > div {
    padding: 12px;
  }
  .ch-table td {
    min-width: 120px;
  }
  .ch-main .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .ch-bars {
    padding: 3px 13px 20px;
  }
  .ch-bars button {
    grid-template-columns: 98px minmax(20px, 1fr) 18px;
  }
}
.ch-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ch-table td:first-child {
  min-width: 240px;
}
.ch-table td:last-child:has([data-action]) {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -7px 0 10px -10px #21354f66;
  min-width: 108px;
  z-index: 1;
}
.ch-table td .btn {
  overflow-wrap: normal;
}
.ch-table th:last-child {
  position: sticky;
  right: 0;
  background: #f8f9fb;
  z-index: 2;
}
.ch-table tbody tr:hover td:last-child:has([data-action]) {
  background: #fbfcfd;
}
.ch-table td:first-child:has(input[type='checkbox']) {
  min-width: 44px;
  width: 44px;
}
