/* Layout wrapper */
.spc2 {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  box-sizing: border-box;
  font-family: inherit;
  color: #1f2937;
}

/* Header */
.spc2-head { margin-bottom: 18px; }
.spc2-title { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 700; }
.spc2-sub { margin: 0; color: #6b7280; }

/* Two-column layout like screenshot */
.spc2-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
.spc2-left { min-width: 0; }

/* Sticky summary */
.spc2-right { position: sticky; top: 16px; }
.spc2-summary {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 14px;
  box-sizing: border-box;
}
.spc2-summary__title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.spc2-sico {
  width: 18px; height: 18px;
  background: #f472b6;
  border-radius: 4px;
}
.spc2-summary__h { font-weight: 700; }
.spc2-summary__tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  border-radius: 4px;
}

.spc2-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}
.spc2-summary__row span { color: #6b7280; }
.spc2-summary__row strong { font-weight: 800; }

.spc2-cta {
  display: block;
  margin-top: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  background: linear-gradient(135deg, #0058A9 0%, #5D44C8 50%, #EE4562 100%); !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(238, 69, 98, 0.4) !important;
}
.spc2-cta:hover { opacity: 0.95; }

.spc2-summary__foot {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 12px;
}

/* Cards like screenshot: with subtle border + accent outline */
.spc2-card {
  background: #fff;
  border: 1px solid;
  padding: 30px 15px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(135deg, #0058A9 0%, #5D44C8 50%, #EE4562 100%);
  border-image-slice: 1;
  margin-bottom: 14px;
  box-sizing: border-box;
}
/*.spc2-card--accent { box-shadow: inset 0 0 0 2px #c7d2fe; }*/
.spc2-card--table { padding-bottom: 6px; }
.spc2-card--products { padding-bottom: 18px; }

.spc2-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.spc2-card__h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spc2-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.spc2-ico {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: #e5e7eb;
}
.spc2-ico--pink { background: #fb7185; }
.spc2-ico--blue { background: #60a5fa; }
.spc2-ico--teal { background: #34d399; }
.spc2-ico--gray { background: #9ca3af; }

/* kW/kWh pills */
.spc2-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border-radius: 3px;
  background: linear-gradient(135deg, #0058A9 0%, #5D44C8 50%, #EE4562 100%);
}

.spc2-help {
  margin: 25px 0 20px;
  color: #6b7280;
  font-size: 13px; }

.spc2-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spc2-field { margin: 0; }
.spc2-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #374151; }

.spc2-select,
.spc2-input {
  width: 100%;
  padding: 10px 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}

.spc2-note {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.spc2-note--pink { color: #ef4444; }

.spc2-subhead {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #374151;
}

.spc2-checks {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.spc2-check {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  user-select: none;
}
.spc2-check input { margin: 0; }

/* KPI block (battery) */
.spc2-kpis {
  margin-top: 12px;
  border-top: 1px solid #eef2f7;
  padding-top: 10px;
}
.spc2-kpi {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
.spc2-kpi span { color: #6b7280; font-size: 12px; }
.spc2-kpi strong { font-weight: 800; }

/* Alerts */
.spc2-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.06);
  color: #991b1b;
  font-size: 12px;
  border-radius: 4px;
}
.spc2-alert--info {
  border-color: rgba(59, 130, 246, 0.30);
  background: rgba(59, 130, 246, 0.06);
  color: #1e40af;
}

/* Status */
.spc2-status {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 4px;
  color: #374151;
}
.spc2-status--error {
  border-color: rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.06);
  color: #991b1b;
}

/* Table */
.spc2-tableWrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}
.spc2-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}
.spc2-table th,
.spc2-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  white-space: nowrap;
}
.spc2-table thead th {
  background: #f9fafb;
  font-weight: 800;
}
.spc2-table tfoot td {
  background: #f9fafb;
}

/* Products */
.spc2-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.spc2-products__col h4 {
  margin: 8px 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}
.spc2-prodGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.spc2-prodCard {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-sizing: border-box;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.spc2-prodCard.is-selected {
  border-color: rgba(239, 68, 68, 0.8);
  text-align: center;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
.spc2-prodImg {
  height: 78px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
  margin-bottom: 8px;
}
.spc2-prodImg--bat { height: 64px; }

.spc2-prodTitle { font-weight: 900; font-size: 12px; margin-bottom: 4px; }
.spc2-prodBadge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 999px;
  margin-bottom: 6px;
}
.spc2-prodDesc { font-size: 11px; color: #6b7280; }

/* Responsive */
@media (max-width: 980px) {
  .spc2-layout { grid-template-columns: 1fr; }
  .spc2-right { position: static; }
  .spc2-grid2 { grid-template-columns: 1fr; }
  .spc2-products { grid-template-columns: 1fr; }
  .spc2-prodGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Battery block (match balancering.dk/solplanet style) */
.spc2-batt-summary{
  margin-top:12px;
  padding:12px;
  border:1px solid #dbeafe;
  background:rgba(59,130,246,0.06);
  border-left:4px solid #1d4ed8;
  border-radius:6px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.spc2-batt-summary__item{
  display:flex;
  gap:6px;
  align-items:center;
}
.spc2-batt-summary__item span{
  color:#374151;
  font-size:13px;
}
.spc2-batt-summary__item strong{
  font-weight:800;
  color:#111827;
}
.spc2-batt-effective{
  margin-top:12px;
  border-left:4px solid #1d4ed8;
}
.spc2-batt-effective__top{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.spc2-batt-effective__top strong{
  font-weight:800;
}
.spc2-batt-tag{
  display:inline-block;
  padding:3px 8px;
  background:#facc15;
  color:#111827;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}
.spc2-batt-effective__text{
  margin-top:6px;
  font-size:13px;
  color:#374151;
}


/* Inline computed helpers */
.spc2-mini{margin-top:10px;font-size:14px;line-height:1.4;color:#6b7280;}
.spc2-mini--muted{color:#6b7280;}
