/* css/documents.css — new file, add alongside your existing styles.css / admin.css */

.documents-panel { padding: 4px 0; }

.documents-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  cursor: pointer;
}
.documents-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.documents-dropzone {
  border: 2px dashed var(--color-line);
  border-radius: 10px;
  padding: 14px 16px 10px;
  transition: border-color 0.15s, background 0.15s;
}
.documents-dropzone-active {
  border-color: var(--color-teal, #2a9d8f);
  background: rgba(42, 157, 143, 0.06);
}

.documents-upload-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.documents-category-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.documents-category-label-inline {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.documents-upload-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.documents-hint {
  font-size: 12.5px;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.documents-status {
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 10px;
}
.documents-status.success { color: var(--color-green); }
.documents-status.error   { color: var(--color-red); }

.documents-list { margin-top: 8px; }

.documents-category { margin-bottom: 18px; }

.documents-category-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.documents-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-line);
  margin-bottom: 6px;
}

.documents-row-name {
  font-size: 14px;
  font-weight: 600;
}

.documents-row-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.documents-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.documents-icon-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
}
.documents-icon-btn:hover { opacity: 1; background: rgba(0,0,0,0.05); }
.documents-delete-btn:hover { color: var(--color-red); }

.documents-empty {
  font-size: 14px;
  color: var(--color-muted);
  padding: 16px 0;
}

/* AI Review panel */
.ai-review-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--color-line);
  background: #fbfbfa;
}

.ai-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-review-title {
  font-size: 13.5px;
  font-weight: 700;
}

.ai-review-select-controls {
  display: flex;
  gap: 10px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-teal, #2a9d8f);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.ai-review-prompt {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--color-border, #ddd);
  padding: 9px 10px;
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
}

.ai-review-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ai-review-result {
  margin-top: 6px;
}

.ai-review-result-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px;
}

.ai-review-result-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.ai-review-result-text {
  font-size: 13.5px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.ai-review-history {
  margin-top: 12px;
  border-top: 1px solid var(--color-line);
  padding-top: 10px;
}

.ai-review-history-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.ai-review-history-item {
  font-size: 13px;
  margin-bottom: 6px;
}

.ai-review-history-item summary {
  cursor: pointer;
  color: var(--color-muted);
}

.ai-review-history-prompt {
  font-size: 13px;
  margin: 8px 0 6px;
}

/* AI Overview & Talking Points (intake tab) */
.ai-section {
  background: #fbfbfa;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.ai-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-section-header h3 {
  margin: 0;
  font-size: 15px;
}

.ai-generate-btn {
  background: var(--color-teal, #2a9d8f);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ai-generate-btn:disabled { opacity: 0.6; cursor: default; }

.ai-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0 0 10px;
}

.ai-subheading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin: 14px 0 6px;
}

.ai-overview-text {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ai-talking-points {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
}

.ai-goal-suggestion {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.ai-goal-suggestion .goal-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-goal-suggestion .goal-row {
  color: var(--color-muted);
  margin-bottom: 2px;
}

.ai-goal-suggestion .goal-rationale {
  margin-top: 6px;
  font-style: italic;
}

.ai-disclaimer {
  font-size: 11.5px;
  color: var(--color-muted);
  margin: 12px 0 0;
  font-style: italic;
}

/* Practitioner Intelligence Engine */
.pg-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}
.pg-block:first-child { margin-top: 12px; padding-top: 0; border-top: none; }

.pg-block-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.pg-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}
.pg-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}
.pg-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 2px;
}
.pg-summary-text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.pg-card {
  background: #fbfbfa;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.pg-card-title {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.pg-card-positive { border-left: 3px solid #2e9e5b; }
.pg-card-hedged { border-left: 3px solid #c98a1f; font-style: italic; }
.pg-context { font-style: normal; color: var(--color-muted); font-size: 12.5px; margin-top: 4px; }

.pg-row { margin-bottom: 4px; line-height: 1.5; }
.pg-row b { color: var(--color-navy); }

.pg-subhead {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-muted);
  margin: 10px 0 5px;
}

.pg-question-list {
  margin: 0 0 6px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
}

.pg-watchfors { background: #fdf7ee; border-radius: 8px; padding: 14px; border-top: none; margin-top: 14px; }
.pg-final-summary { background: #eef4fa; border-radius: 8px; padding: 14px; border-top: none; margin-top: 14px; }

/* Executive Brief + Roadmap */
.pg-brief {
  background: linear-gradient(135deg, #0E2A47, #16273B);
  color: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 0 !important;
  border-top: none !important;
}
.pg-brief .pg-block-title { color: #fff; }
.pg-brief .pg-label { color: #B9CDE0; }
.pg-brief .pg-value { color: #fff; }
.pg-brief .pg-summary-text { color: #E4ECF5; }
.pg-brief-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #9FC4EE;
  margin-left: 8px;
}
.pg-roadmap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pg-roadmap-item {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.pg-roadmap-label {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

.pg-donotassume {
  background: #fff7e6;
  border-radius: 8px;
  padding: 12px 16px;
  border-top: none;
  margin-top: 14px;
}

.pg-divider-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin: 18px 0 4px;
}

.pg-block-note {
  font-size: 12px;
  color: var(--color-muted);
  font-style: italic;
  margin: -4px 0 10px;
}

/* Confidence badges */
.pg-confidence {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-left: 6px;
  vertical-align: middle;
}
.pg-conf-high { background: #dff0e4; color: #1e7a45; }
.pg-conf-moderate { background: #fdf0d8; color: #a5690f; }
.pg-conf-explore { background: #eef0f2; color: #5a6472; }

/* Findings / Interpretation / Response rows */
.pg-fir {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  padding-left: 2px;
}
.pg-fir-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  margin-bottom: 1px;
}

/* Tab navigation for the three layers */
.pg-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 4px;
  border-bottom: 2px solid var(--color-line);
}
.pg-tab-btn {
  background: none;
  border: none;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.pg-tab-btn.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-teal, #2E6FB3);
}
.pg-tab-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}
.pg-tab-content { display: none; padding-top: 6px; }
.pg-tab-content.active { display: block; }

/* One Thing */
.pg-onething {
  background: #fff9e8;
  border: 1px solid #f0dba0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
}
.pg-onething-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-navy);
}

/* Category tag on top-3 dashboard priorities */
.pg-category-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: #eef0f2;
  color: #4b5768;
  margin-left: 4px;
  text-transform: uppercase;
}

/* Coaching Readiness Indicators */
.pg-readiness-row {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}
.pg-readiness-row:last-child { border-bottom: none; margin-bottom: 0; }
.pg-readiness-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 5px;
}
.pg-readiness-num { color: var(--color-muted); font-weight: 600; }
.pg-readiness-track {
  height: 7px;
  background: #e7ebef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.pg-readiness-fill { height: 100%; border-radius: 4px; }
.pg-readiness-expl { font-size: 13px; }
.pg-readiness-why { font-size: 12.5px; color: var(--color-muted); }

/* Reference layer */
.pg-ref-details {
  font-size: 13px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 8px 12px;
}
.pg-ref-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
  padding: 4px 0;
}
.pg-ref-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12.5px;
}
.pg-ref-table tr { border-bottom: 1px solid #f0f1f3; }
.pg-ref-key {
  padding: 5px 8px 5px 0;
  color: var(--color-muted);
  width: 40%;
  vertical-align: top;
  font-weight: 600;
}
.pg-ref-val {
  padding: 5px 0;
  word-break: break-word;
}
