/* ==========================================================================
   pip.css — Performance Improvement Plan module styling.
   Reuses the shell's fx-* / frame-* classes; adds pip-* specifics only.
   ========================================================================== */

.pip-detail { display: flex; flex-direction: column; gap: 14px; }
.pip-sub { font-size: 12px; color: #7a8291; margin-top: 2px; }
.pip-hint { font-size: 12px; color: #8b93a1; }
.pip-empty { color: #8b93a1; font-style: italic; margin: 6px 0; }

/* ---- status / state pills ---- */
.pip-pill, .pip-state, .pip-out, .pip-cat {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px;
  font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.pip-pill--draft { background: #eceff3; color: #5c6672; }
.pip-pill--active { background: #e2f0ff; color: #1665c0; }
.pip-pill--done { background: #e7f6ec; color: #1c7d3f; }
.pip-out--pass { background: #e7f6ec; color: #1c7d3f; }
.pip-out--fail { background: #fdeaea; color: #b00020; }
.pip-out--ext { background: #fff4e2; color: #a86300; }
.pip-fw { background: #b00020; color: #fff; padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }

.pip-state--not_started { background: #eceff3; color: #6b7480; }
.pip-state--in_progress { background: #e2f0ff; color: #1665c0; }
.pip-state--submitted { background: #efe7fb; color: #6b3fd1; }
.pip-state--verified { background: #e7f6ec; color: #1c7d3f; }
.pip-state--failed { background: #fdeaea; color: #b00020; }

/* ---- verified progress bar ---- */
.pip-bar { height: 6px; background: #eceff3; border-radius: 4px; overflow: hidden; margin-top: 6px; max-width: 220px; }
.pip-bar--lg { max-width: none; height: 9px; margin: 12px 0; }
.pip-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#1c7d3f,#37a45c); border-radius: 4px; }

/* ---- overview ---- */
.pip-ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.pip-ov { display: flex; flex-direction: column; }
.pip-ov-k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #8b93a1; }
.pip-ov-v { font-size: 15px; font-weight: 600; color: #2b333f; }
.pip-trigger { margin-top: 8px; padding-top: 10px; border-top: 1px solid #eef1f5; font-size: 14px; }
.pip-trigger p { margin: 6px 0 0; color: #4a5260; line-height: 1.5; }
.pip-outcome-note { margin-top: 10px; padding: 8px 12px; background: #f7f9fc; border-radius: 8px; font-size: 13px; }

/* ---- deliverables ---- */
.pip-del { border: 1px solid #eaedf2; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.pip-del-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pip-std { font-size: 12px; color: #7a8291; margin-top: 4px; }
.pip-del-state { text-align: right; white-space: nowrap; }
.pip-cat { background: #eef1f5; color: #5c6672; }
.pip-cat--quality { background: #e2f0ff; color: #1665c0; }
.pip-cat--training { background: #efe7fb; color: #6b3fd1; }
.pip-cat--production { background: #fff4e2; color: #a86300; }
.pip-cat--leadership { background: #e7f6ec; color: #1c7d3f; }

.pip-ev { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.pip-ev li { padding: 4px 0; border-bottom: 1px dashed #eef1f5; color: #3d4552; }
.pip-noev { color: #a2a9b5; font-style: italic; }
.pip-ev-kind { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  background: #f2f4f7; color: #7a8291; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.pip-verify-stamp { margin-top: 8px; font-size: 12px; color: #1c7d3f; font-weight: 600; }

.pip-del-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.pip-del-actions input, .pip-del-actions select { padding: 5px 8px; border: 1px solid #d9dee6; border-radius: 7px; font-size: 13px; }
.pip-ev-note { flex: 1 1 240px; }
.pip-btn-fail { color: #b00020; border-color: #f3c9cf; }
.pip-file-btn { font-size: 12px; color: #1665c0; cursor: pointer; padding: 5px 8px; border: 1px dashed #c6d3e6; border-radius: 7px; }
.pip-x { background: none; border: none; color: #b0b7c2; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.pip-x:hover { color: #b00020; }

.pip-add-del { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.pip-add-del input, .pip-add-del select { padding: 6px 9px; border: 1px solid #d9dee6; border-radius: 7px; font-size: 13px; }
.pip-add-del input:first-child { flex: 1 1 260px; }
.pip-due-in { width: 110px; }

/* ---- check-ins ---- */
.pip-ci { border: 1px solid #eaedf2; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.pip-ci-head { display: flex; align-items: center; gap: 8px; }
.pip-ci-status { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; }
.pip-ci-status--pending { background: #fff4e2; color: #a86300; }
.pip-ci-status--completed { background: #e7f6ec; color: #1c7d3f; }
.pip-ci-body { margin-top: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.pip-ci-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pip-ci-form textarea { padding: 7px 9px; border: 1px solid #d9dee6; border-radius: 7px; font-size: 13px; resize: vertical; }

/* ---- sign-offs ---- */
.pip-signrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.pip-sign { background: #f7f9fc; }
.pip-signs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pip-signed { font-size: 12px; color: #1c7d3f; background: #eef8f1; padding: 2px 8px; border-radius: 6px; }

/* ---- forms ---- */
.pip-form { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.pip-form-row { display: flex; gap: 12px; }
.pip-form-row .pip-field { flex: 1; }
.pip-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #4a5260; }
.pip-field input, .pip-field select, .pip-field textarea {
  padding: 8px 10px; border: 1px solid #d9dee6; border-radius: 8px; font-size: 14px; font-weight: 400; }
.pip-field textarea { resize: vertical; }
.pip-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #3d4552; }
.pip-form-actions { margin-top: 6px; }

@media (max-width: 720px) {
  .pip-ov-grid { grid-template-columns: repeat(2, 1fr); }
  .pip-form-row { flex-direction: column; }
}
