/*
 * sdlc.css — SAFe Big Picture layout for the Automated SAFe SDLC Platform
 * Self-hosted. No external CDN references (CSP: default-src 'self').
 */

/* ── Reset / base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.sdlc-body {
  margin: 0;
  padding: 0;
  background: #dde2e8;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────── */
.sdlc-header { background: #1a2a3a; flex-shrink: 0; }

.sdlc-agility-bar {
  background: #0e6655;
  padding: 5px 20px;
  display: flex;
  align-items: center;
}

.sdlc-agility-arrows-left,
.sdlc-agility-arrows-right { color: #76d7c4; font-size: 1rem; letter-spacing: -1px; flex-shrink: 0; }

.sdlc-agility-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}

.sdlc-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.sdlc-system-title { color: #fff; font-size: 1.15rem; font-weight: 600; }
.sdlc-brd-ref      { color: #7fb3d3; font-size: 0.7rem; margin-top: 1px; }

/* ── API status pill ─────────────────────────────────────────────── */
.sdlc-api-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sdlc-api-pill-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.sdlc-api-online  { background: #1e8449; color: #fff; }
.sdlc-api-online  .sdlc-api-pill-dot { background: #a9dfbf; }
.sdlc-api-offline { background: #c0392b; color: #fff; }
.sdlc-api-offline .sdlc-api-pill-dot { background: #f1948a; }
.sdlc-api-error   { background: #b7770d; color: #fff; }
.sdlc-api-error   .sdlc-api-pill-dot { background: #fad7a0; }

/* ── Main content row (bands + right column) ─────────────────────── */
.sdlc-content-row {
  flex: 1;
  display: flex;
  gap: 7px;
  padding: 10px 12px 6px;
}

/* ── Bands stack ─────────────────────────────────────────────────── */
.sdlc-bands {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* ── Individual band ─────────────────────────────────────────────── */
.sdlc-band {
  display: grid;
  grid-template-columns: 148px 1fr 58px;
  min-height: 112px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Organizational Agility — purple */
.sdlc-band-org-agility                       { background: #f3eef9; border: 1px solid #c39bd3; }
.sdlc-band-org-agility .sdlc-band-competency { background: #6c3483; }
.sdlc-band-org-agility .sdlc-band-label-col  { background: #512e5f; color: #d2b4de; }
.sdlc-band-org-agility .sdlc-flow-title      { color: #512e5f; }
.sdlc-band-org-agility .sdlc-concept         { border-top-color: #9b59b6; }

/* Lean Portfolio Management — dark green */
.sdlc-band-lean-portfolio                       { background: #eaf8f2; border: 1px solid #a9dfbf; }
.sdlc-band-lean-portfolio .sdlc-band-competency { background: #1e6b3c; }
.sdlc-band-lean-portfolio .sdlc-band-label-col  { background: #145a32; color: #a9dfbf; }
.sdlc-band-lean-portfolio .sdlc-flow-title      { color: #145a32; }
.sdlc-band-lean-portfolio .sdlc-concept         { border-top-color: #27ae60; }

/* Enterprise Solution Delivery — teal */
.sdlc-band-enterprise-solution                       { background: #e8f8f5; border: 1px solid #a2d9ce; }
.sdlc-band-enterprise-solution .sdlc-band-competency { background: #0e6655; }
.sdlc-band-enterprise-solution .sdlc-band-label-col  { background: #0b5345; color: #a2d9ce; }
.sdlc-band-enterprise-solution .sdlc-flow-title      { color: #0b5345; }
.sdlc-band-enterprise-solution .sdlc-concept         { border-top-color: #17a589; }

/* Agile Product Delivery — dark blue */
.sdlc-band-agile-product                       { background: #eaf3fb; border: 1px solid #a9cce3; }
.sdlc-band-agile-product .sdlc-band-competency { background: #154360; }
.sdlc-band-agile-product .sdlc-band-label-col  { background: #0d2d43; color: #a9cce3; }
.sdlc-band-agile-product .sdlc-flow-title      { color: #0d2d43; }
.sdlc-band-agile-product .sdlc-concept         { border-top-color: #2471a3; }

/* Team and Technical Agility — medium blue */
.sdlc-band-team-technical                       { background: #e8f4f9; border: 1px solid #a2c4d0; }
.sdlc-band-team-technical .sdlc-band-competency { background: #1a4f72; }
.sdlc-band-team-technical .sdlc-band-label-col  { background: #154360; color: #aed6f1; }
.sdlc-band-team-technical .sdlc-flow-title      { color: #154360; }
.sdlc-band-team-technical .sdlc-concept         { border-top-color: #2980b9; }

/* ── Left competency column ──────────────────────────────────────── */
.sdlc-band-competency {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  gap: 7px;
  color: #fff;
  text-align: center;
}
.sdlc-competency-icon  { font-size: 1.6rem; line-height: 1; }
.sdlc-competency-label { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.35; color: rgba(255,255,255,0.9); }

/* ── Centre flow area ────────────────────────────────────────────── */
.sdlc-band-flow {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.sdlc-flow-title { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }

.sdlc-flow-stages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sdlc-flow-arrow { color: #aab7b8; font-size: 0.95rem; flex-shrink: 0; line-height: 1; user-select: none; }

/* ── Concept boxes ───────────────────────────────────────────────── */
.sdlc-concept {
  background: #fff;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 0.71rem;
  font-weight: 600;
  color: #1c2833;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border-top: 3px solid #ccc;
  line-height: 1.3;
}
.sdlc-concept-sub { font-size: 0.58rem; font-weight: 400; color: #626567; display: block; margin-top: 1px; }

/* Big Data callout — dashed box style */
.sdlc-concept-callout {
  background: #fdfefe;
  border: 2px dashed #aab7b8;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5d6d7e;
  white-space: nowrap;
}

/* ── Continuous Delivery Pipeline group ─────────────────────────── */
.sdlc-cdp-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(21,67,96,0.07);
  border-radius: 5px;
  padding: 5px 8px;
  flex-wrap: wrap;
}
.sdlc-cdp-label {
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #154360;
  white-space: nowrap;
  margin-right: 2px;
  flex-shrink: 0;
}

/* ── Right SAFe level label (vertical text) ──────────────────────── */
.sdlc-band-label-col {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: rotate(180deg);
  padding: 10px 4px;
}

/* ── Right column panel ──────────────────────────────────────────── */
.sdlc-right-column {
  width: 112px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sdlc-right-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sdlc-right-heading {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 2px 0 4px;
  border-bottom: 1px solid #eaecee;
  margin-bottom: 2px;
}

.sdlc-right-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #2c3e50;
  padding: 3px 4px;
  border-radius: 3px;
  line-height: 1.2;
}
.sdlc-right-item:hover { background: #f2f3f4; }

.sdlc-right-icon { font-size: 0.95rem; flex-shrink: 0; line-height: 1; }

/* Right column section accent colours */
.sdlc-right-portfolio  .sdlc-right-heading { color: #1e6b3c; }
.sdlc-right-large-sol  .sdlc-right-heading { color: #0e6655; }
.sdlc-right-essential  .sdlc-right-heading { color: #154360; }
.sdlc-right-team       .sdlc-right-heading { color: #1a4f72; }

/* ── Lean-Agile Leadership — full-width bottom bar ───────────────── */
.sdlc-leadership-bar {
  background: #1a2a3a;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 12px 8px;
}
.sdlc-leadership-label {
  color: #f0b27a;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 10px;
  border-right: 1px solid #2e4057;
}
.sdlc-leadership-icon { font-size: 1.1rem; flex-shrink: 0; }
.sdlc-leadership-items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.sdlc-leadership-item {
  font-size: 0.67rem;
  font-weight: 600;
  color: #d5d8dc;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sdlc-leadership-item-icon { font-size: 0.9rem; }
.sdlc-leadership-sep { color: #4a6278; font-size: 0.9rem; }

/* ── Traceability chain footer ───────────────────────────────────── */
.sdlc-trace-bar {
  background: #1a2a3a;
  color: #7fb3d3;
  font-size: 0.67rem;
  padding: 6px 20px;
  text-align: center;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.sdlc-trace-bar .t-label { color: #a9cce3; font-weight: 600; }
.sdlc-trace-bar .t-arrow { color: #5dade2; margin: 0 5px; font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sdlc-right-column { display: none; }
}
@media (max-width: 700px) {
  .sdlc-band { grid-template-columns: 1fr; }
  .sdlc-band-label-col { writing-mode: horizontal-tb; transform: none; padding: 6px 12px; justify-content: flex-start; letter-spacing: 2px; }
  .sdlc-flow-stages { flex-wrap: wrap; }
  .sdlc-concept { white-space: normal; }
}
