/* ── SQEP & Skills Matrix ──────────────────────────────────────────────
   Uses the shared .assess-drawer/.assess-panel/.assess-topbar shell from
   styles.css (see plant-db.css for the same pattern) — only tool-specific
   layout lives here. */

.sqs-panel { overflow: hidden; }
.sqs-main { flex: 1; overflow-y: auto; padding: 18px 22px 32px; background: #f7f9fc; }

.sqs-loading, .sqs-empty { padding: 24px; color: #5a6b7d; text-align: center; }
.sqs-empty-cell { padding: 18px !important; text-align: center; color: #8a99a8; }

/* Dashboard strip */
.sqs-dashboard {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.sqs-metric {
    flex: 1 1 150px; background: #fff; border: 1px solid #e2e9f1; border-radius: 8px;
    padding: 12px 14px; text-align: center;
}
.sqs-metric-val { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 700; color: #142132; }
.sqs-metric-lbl { font-size: .72rem; color: #6b7c8d; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.sqs-metric--warn .sqs-metric-val { color: #b7791f; }
.sqs-metric--bad  .sqs-metric-val { color: #c0392b; }

/* Tabs */
.sqs-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e9f1; margin-bottom: 16px; }
.sqs-tab {
    background: none; border: none; padding: 10px 16px; font-size: .92rem; font-weight: 600;
    color: #5a6b7d; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.sqs-tab:hover { color: #142132; }
.sqs-tab--active { color: #1a5fb4; border-bottom-color: #1a5fb4; }

/* Staff roster */
.sqs-staff-add {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    background: #fff; border: 1px solid #e2e9f1; border-radius: 8px; padding: 12px; margin-bottom: 14px;
}
.sqs-input {
    padding: 8px 10px; border: 1px solid #d3dce5; border-radius: 6px; font-size: .88rem;
    flex: 1 1 160px; min-width: 0;
}
.sqs-staff-list { display: flex; flex-direction: column; gap: 8px; }
.sqs-staff-card {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e2e9f1; border-radius: 8px; padding: 12px 14px; flex-wrap: wrap;
}
.sqs-staff-name { font-weight: 700; color: #142132; }
.sqs-staff-role { font-size: .82rem; color: #5a6b7d; }
.sqs-staff-counts { font-size: .76rem; color: #8a99a8; margin-top: 2px; }
.sqs-staff-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Buttons */
.sqs-btn {
    background: #eef3f9; border: 1px solid #d3dce5; border-radius: 6px; padding: 8px 14px;
    font-size: .85rem; font-weight: 600; color: #142132; cursor: pointer;
}
.sqs-btn:hover { background: #e2ecf7; }
.sqs-btn-primary { background: #1a5fb4; border-color: #1a5fb4; color: #fff; }
.sqs-btn-primary:hover { background: #164e97; }
.sqs-btn-sm { padding: 5px 10px; font-size: .76rem; }
.sqs-btn-danger { color: #c0392b; }
.sqs-icon-btn { background: none; border: none; color: #b0bcc8; cursor: pointer; font-size: .9rem; }
.sqs-icon-btn:hover { color: #c0392b; }

/* Tables */
.sqs-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e9f1; border-radius: 8px; }
.sqs-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.sqs-table th {
    text-align: left; padding: 9px 10px; background: #142132; color: #fff;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.sqs-table td { padding: 6px 8px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.sqs-table tr:last-child td { border-bottom: none; }
.sqs-cell-input {
    width: 100%; border: 1px solid transparent; background: transparent; padding: 5px 6px;
    border-radius: 4px; font-size: .84rem; font-family: inherit;
}
.sqs-cell-input:hover, .sqs-cell-input:focus { border-color: #d3dce5; background: #f7f9fc; }
.sqs-cell-narrow { width: 110px; }
.sqs-center { text-align: center; }
.sqs-stage-cell { display: flex; gap: 6px; white-space: nowrap; }
.sqs-stage-cell label { font-size: .74rem; display: flex; align-items: center; gap: 2px; color: #5a6b7d; }

.sqs-add-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.sqs-add-row .sqs-input { flex: 0 0 220px; }

/* Status badges */
.sqs-status {
    display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: .72rem; font-weight: 700;
    white-space: nowrap;
}
.sqs-status-none     { background: #eef1f4; color: #6b7c8d; }
.sqs-status-progress { background: #e3edfb; color: #1a5fb4; }
.sqs-status-ok       { background: #e5f6ec; color: #1e824c; }
.sqs-status-warn     { background: #fdf3e0; color: #b7791f; }
.sqs-status-bad      { background: #fce9e7; color: #c0392b; }

/* Capability gap analysis */
.sqs-gap-section { margin-top: 22px; }
.sqs-gap-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: #142132; }
.sqs-gap-row td { background: #fdf3e0; }

@media (max-width: 700px) {
  .sqs-staff-add, .sqs-add-row { flex-direction: column; align-items: stretch; }
  .sqs-add-row .sqs-input { flex: 1 1 auto; }
}

/* Quick-add-from-role shortcuts on the SQEP Register / Skills Matrix tabs
   (added after live testing: the equivalent buttons only lived on the
   Staff Roster tab, one tab away, and the empty-state text mentioning
   "+ Suggested SQEP" wasn't actually clickable there). */
.sqs-shortcuts {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e2e9f1; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 12px;
}
.sqs-shortcuts-lbl { font-size: .78rem; font-weight: 700; color: #5a6b7d; margin-right: 2px; }

/* Inline banner (replaces native alert() for informational feedback) */
.sqs-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px;
    font-size: .86rem; font-weight: 600;
}
.sqs-banner-success { background: #e5f6ec; color: #1e824c; border: 1px solid #b9e5cb; }
.sqs-banner-info     { background: #e3edfb; color: #1a5fb4; border: 1px solid #bcd6f5; }
.sqs-banner-error    { background: #fce9e7; color: #c0392b; border: 1px solid #f3c1ba; }
.sqs-banner-close {
    background: none; border: none; cursor: pointer; font-size: .8rem;
    color: inherit; opacity: .7; flex-shrink: 0;
}
.sqs-banner-close:hover { opacity: 1; }

/* Download button */
.sqs-btn-download { margin-left: auto; }
