.metareportadmin {
  display: flex;
  gap: 16px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.list-pane {
  width: 240px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  overflow-y: auto;

  .list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .list {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      padding: 8px 10px;
      cursor: pointer;
      border-radius: 3px;

      &:hover { background: #f0f0f0; }
      &.active { background: #e3edff; font-weight: 600; }
    }
  }
}

.editor-pane {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;

  label { width: 110px; flex-shrink: 0; font-weight: 600; font-size: 13px; }
  input[type="text"] { flex: 1; padding: 6px 8px; }
}

.block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;

  .block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;

  th, td { border: 1px solid #e5e5e5; padding: 6px 8px; text-align: left; }
  th { background: #fafafa; font-weight: 600; }
  input { width: 100%; border: none; background: transparent; }
  input[type="checkbox"] { width: auto; }

  td.matrix-col, th.matrix-col { text-align: center; }

  td.picklist-cell { padding: 2px 4px; }
  td.readonly-cell { color: #888; font-style: italic; text-align: center; }
}

.aspect-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;

  .aspect-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    background: #fafafa;

    .expand-caret { width: 14px; color: #888; }
    input[type="text"] { flex: 1; padding: 5px 7px; }
    select { padding: 5px; }
    .inline-check { display: flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; }
    input[type="number"] { width: 60px; padding: 5px; }
  }

  .aspect-card-body {
    padding: 12px;

    .tooltip-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 12px;

      input { flex: 1; font-weight: normal; padding: 5px 7px; }
    }

    .options-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;

      h5 { margin: 0; font-size: 13px; }
    }
  }
}

.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.preview-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.empty-hint, .matrix-hint {
  color: #888;
  font-size: 12.5px;
  font-style: italic;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: 3px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
}

.btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.btn-secondary { background: #fff; }
.btn-remove { color: #c62828; border-color: #e0a0a0; }
