/* JEAuditFlow 4.7 Helix-style item review workbench. */
.helix-review-workbench {
  margin: 16px 0 22px;
  border: 1px solid var(--border, #d7dee8);
  background: var(--panel, #ffffff);
  overflow: hidden;
}
.helix-review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #d7dee8);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.helix-review-toolbar h2 { margin: 3px 0 5px; font-size: 19px; }
.helix-review-toolbar p { max-width: 760px; margin: 0; color: var(--muted, #667085); font-size: 12px; line-height: 1.55; }
.helix-review-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.helix-review-toolbar-actions b { margin-left: 3px; font-size: 11px; }
.helix-review-boundary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 20px;
  color: #4f6175;
  background: #f2f6fa;
  font-size: 11px;
}
.helix-review-boundary span { display: inline-flex; align-items: center; gap: 6px; }
.helix-review-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #d7dee8);
  background: #fff;
}
.helix-review-filters .searchbox { flex: 1 1 320px; }
.helix-review-count { color: var(--muted, #667085); font-size: 12px; white-space: nowrap; }
.helix-review-shell {
  display: grid;
  grid-template-columns: minmax(210px, 23%) minmax(300px, 35%) minmax(360px, 42%);
  min-height: 520px;
}
.helix-review-tree,
.helix-review-list,
.helix-review-editor-pane { min-width: 0; background: #fff; }
.helix-review-tree { border-right: 1px solid var(--border, #d7dee8); }
.helix-review-list { border-right: 1px solid var(--border, #d7dee8); background: #fbfcfe; }
.helix-review-tree > header,
.helix-review-list > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 56px;
  padding: 14px;
  border-bottom: 1px solid var(--border, #d7dee8);
}
.helix-review-tree > header strong,
.helix-review-list > header strong { display: block; font-size: 13px; }
.helix-review-tree > header small,
.helix-review-list > header span { color: var(--muted, #667085); font-size: 11px; }
.helix-review-tree-scroll,
.helix-review-list-scroll { max-height: 670px; overflow: auto; }
.helix-review-tree-group { border-bottom: 1px solid #edf1f5; }
.helix-review-tree-group summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #344054;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}
.helix-review-tree-group summary::-webkit-details-marker { display: none; }
.helix-review-tree-group summary span { color: #527597; }
.helix-review-tree-group summary b { margin-left: auto; color: #8492a4; font-size: 11px; }
.helix-review-tree-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  width: 100%;
  padding: 9px 12px 9px 29px;
  border: 0;
  border-top: 1px solid #f0f3f6;
  background: transparent;
  color: #344054;
  text-align: left;
  cursor: pointer;
}
.helix-review-tree-item:hover,
.helix-review-tree-item.active { background: #eaf3fb; }
.helix-review-tree-code { color: #587087; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.helix-review-tree-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.helix-review-tree-item small,
.helix-review-tree-item em { grid-column: 2; overflow: hidden; color: #8793a1; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.helix-review-tree-item em { color: #5d7288; }
.helix-review-title { font-weight: 800 !important; color: #17212b !important; }
.helix-review-list-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 76px;
  gap: 10px;
  width: 100%;
  min-height: 84px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e9eef3;
  background: transparent;
  color: #344054;
  text-align: left;
  cursor: pointer;
}
.helix-review-list-row:hover,
.helix-review-list-row.active { background: #edf5fc; }
.helix-review-list-type { color: #527597; font-size: 10px; line-height: 1.35; }
.helix-review-list-row strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.helix-review-list-row p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: #667085; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.helix-review-list-row > small { overflow: hidden; color: #8793a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.helix-review-editor-pane { padding: 0; }
.helix-review-editor { min-width: 0; }
.helix-review-editor > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border, #d7dee8);
  background: #f9fbfd;
}
.helix-review-editor > header h3 { margin: 4px 0 5px; font-size: 16px; }
.helix-review-editor > header p { max-width: 580px; margin: 0; color: #667085; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.helix-editor-actions { display: flex; flex: 0 0 auto; gap: 7px; align-items: flex-start; }
.helix-reference-notice { margin: 14px 18px 0; padding: 11px 13px; border-left: 3px solid #8c6a2d; background: #fff8e8; color: #6d551d; font-size: 11px; line-height: 1.45; }
.helix-reference-notice p { margin: 4px 0 0; }
.helix-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 0; }
.helix-editor-grid label { display: grid; gap: 5px; color: #526173; font-size: 11px; }
.helix-editor-grid label.full { grid-column: 1 / -1; }
.helix-editor-grid input,
.helix-editor-grid select,
.helix-editor-grid textarea { width: 100%; border: 1px solid #cfd8e3; border-radius: 4px; background: #fff; color: #17212b; font: inherit; }
.helix-editor-grid input,
.helix-editor-grid select { min-height: 34px; padding: 7px 8px; }
.helix-editor-grid textarea { min-height: 100px; padding: 8px; line-height: 1.5; resize: vertical; }
.helix-review-extra-details { margin: 14px 18px 0; padding-top: 12px; border-top: 1px solid #e1e7ee; }
.helix-review-extra-details > header { display: flex; justify-content: space-between; margin-bottom: 9px; color: #526173; font-size: 11px; }
.helix-review-extra-details > header span { color: #8793a1; }
.helix-review-extra-details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.helix-review-extra-details label { display: grid; min-width: 0; gap: 5px; color: #526173; font-size: 10px; }
.helix-review-extra-details input,
.helix-review-extra-details textarea { width: 100%; min-height: 34px; border: 1px solid #cfd8e3; border-radius: 4px; padding: 7px 8px; background: #fff; color: #17212b; font: inherit; }
.helix-review-extra-details textarea { min-height: 78px; resize: vertical; }
.helix-review-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 18px; }
.helix-review-meta div { min-width: 0; padding: 9px 10px; border: 1px solid #e1e7ee; background: #fafbfd; }
.helix-review-meta dt { color: #8793a1; font-size: 10px; }
.helix-review-meta dd { margin: 3px 0 0; overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.helix-review-table-editor { margin: 0 18px 18px; border: 1px solid #d7dee8; }
.helix-review-table-editor > header { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #d7dee8; background: #f7f9fb; }
.helix-review-table-editor h3 { margin: 3px 0; font-size: 13px; }
.helix-review-table-editor p { margin: 0; color: #667085; font-size: 11px; }
.helix-table-actions { display: flex; align-items: flex-start; gap: 6px; }
.helix-table-scroll { max-height: 360px; overflow: auto; }
.helix-review-table-editor table { min-width: 680px; width: 100%; border-collapse: collapse; table-layout: fixed; }
.helix-review-table-editor th,
.helix-review-table-editor td { padding: 6px; border: 1px solid #e1e7ee; vertical-align: top; }
.helix-review-table-editor th { background: #edf2f7; color: #445468; font-size: 10px; text-align: left; }
.helix-review-table-editor td textarea { width: 100%; min-height: 42px; border: 1px solid #d7dee8; padding: 5px; color: #344054; font: 11px/1.4 inherit; resize: vertical; }
.helix-table-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 10px; border-top: 1px solid #d7dee8; background: #f7f9fb; color: #667085; font-size: 11px; }
.helix-table-pagination .action-icon:disabled { opacity: .4; cursor: not-allowed; }
.helix-review-empty { display: grid; place-items: center; min-height: 420px; padding: 36px; color: #667085; text-align: center; }
.helix-review-empty > span { color: #7390aa; }
.helix-review-empty h3 { margin: 10px 0 4px; color: #344054; font-size: 15px; }
.helix-review-empty p { max-width: 260px; margin: 0; font-size: 12px; line-height: 1.5; }
[data-theme="dark"] .helix-review-workbench,
[data-theme="dark"] .helix-review-tree,
[data-theme="dark"] .helix-review-list,
[data-theme="dark"] .helix-review-editor-pane,
[data-theme="dark"] .helix-review-filters,
[data-theme="dark"] .helix-review-toolbar,
[data-theme="dark"] .helix-review-editor > header { background: #161b22; border-color: #3d444d; color: #e6edf3; }
[data-theme="dark"] .helix-review-boundary { background: #21262d; color: #aab7c4; }
[data-theme="dark"] .helix-review-tree-group,
[data-theme="dark"] .helix-review-tree-item,
[data-theme="dark"] .helix-review-list-row,
[data-theme="dark"] .helix-review-tree,
[data-theme="dark"] .helix-review-list { border-color: #3d444d; }
[data-theme="dark"] .helix-review-tree-group summary,
[data-theme="dark"] .helix-review-tree-item,
[data-theme="dark"] .helix-review-list-row,
[data-theme="dark"] .helix-review-editor h3,
[data-theme="dark"] .helix-review-title { color: #e6edf3 !important; }
[data-theme="dark"] .helix-review-tree-item:hover,
[data-theme="dark"] .helix-review-tree-item.active,
[data-theme="dark"] .helix-review-list-row:hover,
[data-theme="dark"] .helix-review-list-row.active { background: #203247; }
[data-theme="dark"] .helix-review-editor-grid input,
[data-theme="dark"] .helix-review-editor-grid select,
[data-theme="dark"] .helix-review-editor-grid textarea,
[data-theme="dark"] .helix-editor-grid input,
[data-theme="dark"] .helix-editor-grid select,
[data-theme="dark"] .helix-editor-grid textarea,
[data-theme="dark"] .helix-review-table-editor td textarea { background: #0d1117; color: #e6edf3; border-color: #586575; }
[data-theme="dark"] .helix-review-extra-details { border-color: #3d444d; }
[data-theme="dark"] .helix-review-extra-details input,
[data-theme="dark"] .helix-review-extra-details textarea { background: #0d1117; color: #e6edf3; border-color: #586575; }
@media (max-width: 1180px) {
  .helix-review-shell { grid-template-columns: minmax(190px, 25%) minmax(280px, 75%); }
  .helix-review-editor-pane { grid-column: 1 / -1; border-top: 1px solid var(--border, #d7dee8); }
}
@media (max-width: 720px) {
  .helix-review-toolbar { flex-direction: column; }
  .helix-review-toolbar-actions { justify-content: flex-start; }
  .helix-review-boundary { align-items: flex-start; flex-direction: column; }
  .helix-review-shell { display: block; }
  .helix-review-tree,
  .helix-review-list { border-right: 0; border-bottom: 1px solid var(--border, #d7dee8); }
  .helix-review-tree-scroll,
  .helix-review-list-scroll { max-height: 330px; }
  .helix-review-list-row { grid-template-columns: 78px minmax(0, 1fr); }
  .helix-review-list-row > small { grid-column: 2; }
  .helix-editor-grid { grid-template-columns: 1fr; }
  .helix-editor-grid label.full { grid-column: auto; }
  .helix-review-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .helix-review-extra-details > div { grid-template-columns: 1fr; }
  .helix-review-editor > header { flex-direction: column; }
}
