/* Rechenzentrum-Planer — /planer/ */

/*
 * Joomla template gives #content60 float:left + narrow width. With sidebar hidden,
 * the main column can collapse, overlap the slideshow, or hide hero/workspace.
 */
.planer-page-wrap #cbody {
  display: block;
  overflow: auto;
  zoom: 1;
}

.planer-page-wrap #cbody::after {
  content: '';
  display: table;
  clear: both;
}

.planer-page-wrap #content60 {
  float: none !important;
  display: block !important;
  width: min(1580px, 100%) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  clear: both;
  box-sizing: border-box;
}

.planer-page-wrap #content {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both;
  box-sizing: border-box;
}

.planer-page h2 {
  margin-top: 0;
  color: #1a3a5c;
}

.planer-root {
  font-size: 14px;
  line-height: 1.45;
  color: #2c3e50;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
  position: relative;
  z-index: 1;
}

.planer-hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8f 55%, #1a5f4a 100%);
  color: #fff;
  padding: 1.25rem 1.5rem 1.4rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.planer-hero h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #fff;
}

.planer-hero-lead {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
  max-width: 52em;
}

.planer-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
}

.planer-dash-k {
  min-width: 120px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

.planer-dash-k span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.planer-dash-k strong {
  color: #0f172a;
  font-size: 1rem;
}

.planer-dash-k.planer-dash-wide {
  flex: 1 1 100%;
  min-width: 240px;
}

.planer-dash-rack-heat-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #0f172a;
}

.planer-dash-rack-heat-name {
  color: #64748b;
}

.planer-summary-thermal {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
}

.planer-details {
  margin-bottom: 1rem;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 0.5rem 1rem 1rem;
  background: #fff;
}

.planer-details summary {
  cursor: pointer;
  font-weight: bold;
  color: #1a3a5c;
  padding: 0.35rem 0;
}

.planer-fieldset {
  border: none;
  border-top: 1px solid #eee;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
}

.planer-fieldset legend {
  font-weight: bold;
  color: #334155;
  padding: 0 0.25rem;
}

.planer-locality label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 1rem 0.35rem 0;
  flex-wrap: wrap;
}

.planer-locality input[type="number"],
.planer-locality select {
  max-width: 10rem;
}

.planer-pv-string-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0;
  align-items: center;
}

.planer-workspace {
  clear: both;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: visible;
  border: 1px solid #1e293b;
}

.planer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: #1a1a2e;
  color: #e2e8f0;
}

.planer-toolbar-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.planer-workspace-inner {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 0;
  min-height: 420px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .planer-workspace-inner {
    grid-template-columns: 1fr;
  }
}

.planer-room-sidebar {
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
  padding: 0.5rem 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: #334155;
  overflow: auto;
  max-height: min(88vh, 800px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.planer-sidebar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
}

.planer-sidebar-tab {
  padding: 0.35rem 0.5rem;
  font-size: 0.74rem;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
}

.planer-sidebar-tab:hover,
.planer-sidebar-tab:focus {
  background: #cbd5e1;
  outline: none;
}

.planer-sidebar-tab.is-active {
  background: #fff;
  border-color: #cbd5e1;
  color: #1e293b;
  font-weight: 600;
}

.planer-tabpanel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-top: 0.35rem;
}

.planer-tabpanel[hidden] {
  display: none !important;
}

.planer-tabpanel.is-active:not([hidden]) {
  display: block;
}

.planer-sidebar-h {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.82rem;
  color: #1a3a5c;
}

.planer-sidebar-h:first-child {
  margin-top: 0;
}

.planer-net-lead {
  font-size: 0.82rem;
  color: #475569;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.planer-net-block {
  margin-bottom: 0.75rem;
}

.planer-net-block-title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #1e293b;
}

.planer-net-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: #334155;
}

.planer-net-edge {
  margin-bottom: 0.25rem;
}

.planer-net-edge-meta {
  display: block;
}

.planer-net-edge-cable {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
}

.planer-rooms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.planer-rooms-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.35;
}

.planer-room-sidebar [hidden] {
  display: none !important;
}

.planer-sidebar-empty {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.planer-cables-list {
  font-size: 0.76rem;
  line-height: 1.4;
}

.planer-cable-row {
  padding: 0.4rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.planer-cable-row strong {
  display: block;
  color: #1e293b;
  font-size: 0.78rem;
}

.planer-cable-meta {
  color: #64748b;
  font-size: 0.72rem;
}

.planer-btn-icon {
  flex-shrink: 0;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.planer-btn-icon:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.planer-palette {
  background: transparent;
  padding: 0.25rem 0 0;
  font-size: 0.88rem;
}

.planer-networks-panel {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
}

.planer-networks-block {
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.planer-networks-block h5 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #1a3a5c;
}

.planer-h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
  color: #1a3a5c;
}

.planer-h3:first-child {
  margin-top: 0;
}

.planer-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
}

.planer-place-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.planer-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #5a8fc7;
  background: #5a8fc7;
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
}

.planer-btn:hover,
.planer-btn:focus {
  background: #4a7fb7;
}

.planer-btn.is-active {
  box-shadow: 0 0 0 2px #1a3a5c;
}

.planer-btn:disabled,
.planer-btn.is-gated {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.planer-btn-secondary {
  background: #fff;
  color: #1a3a5c;
}

.planer-btn-small {
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
}

.planer-btn-danger {
  background: #c0392b;
  border-color: #a93226;
}

.planer-canvas-hint {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: #0f172a;
  border-bottom: 1px solid rgba(71, 85, 105, 0.65);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.planer-canvas-wrap {
  background: #16213e;
  min-height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.planer-canvas-wrap canvas {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  height: auto;
  vertical-align: top;
}

.planer-object-inspector {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  max-width: min(300px, calc(100% - 20px));
  padding: 0.75rem 0.85rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  font-size: 0.86rem;
  color: #1e293b;
}

.planer-object-inspector[hidden],
.planer-object-inspector[hidden="hidden"] {
  display: none !important;
}

.planer-inspector-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 0.25rem;
}

.planer-inspector-title {
  margin: 0 1.5rem 0.35rem 0;
  font-size: 0.95rem;
  color: #1a3a5c;
  padding-right: 0.5rem;
}

.planer-inspector-sub {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.planer-inspector-section {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
}

.planer-inspector-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.planer-inspector-h5 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: #334155;
}

.planer-inspector-h5-sub {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
}

.planer-inspector-radio-row {
  margin-bottom: 0.35rem;
}

.planer-inspector-lbl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0;
  font-size: 0.82rem;
}

.planer-inspector-lbl select,
.planer-inspector-lbl input[type="number"] {
  max-width: 11rem;
}

.planer-inspector-note {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.planer-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.planer-inline-label {
  font-weight: 600;
  color: #334155;
}

.planer-dependent-block input:disabled,
.planer-dependent-block select:disabled,
.planer-dependent-block button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.planer-dependent-block {
  transition: opacity 0.15s ease;
}

.planer-rack-section,
.planer-summary-section {
  margin: 1.25rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.planer-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1a3a5c;
}

.planer-rack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1rem 1.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .planer-rack-layout {
    grid-template-columns: 1fr;
  }
}

.planer-rack-layout-main {
  min-width: 0;
}

.planer-rack-store-panel {
  position: sticky;
  top: 4.5rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  max-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 960px) {
  .planer-rack-store-panel {
    position: static;
    max-height: none;
  }
}

.planer-store-heading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #1a3a5c;
}

.planer-store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.planer-store-filter {
  padding: 0.28rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.planer-store-filter.is-active {
  border-color: #5a8fc7;
  background: #e8f0fb;
  color: #1a3a5c;
  font-weight: 600;
}

.planer-store-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 120px;
  padding-right: 2px;
}

.planer-store-card {
  padding: 0.5rem 0.6rem;
  background: linear-gradient(180deg, #eef2ff 0%, #e8edff 100%);
  border: 1px solid #a5b4fc;
  border-radius: 6px;
  cursor: grab;
  font-size: 0.8rem;
  color: #312e81;
}

.planer-store-card-title {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.planer-store-meta {
  font-size: 0.72rem;
  color: #5b21b6;
  opacity: 0.95;
}

.planer-store-card:active {
  cursor: grabbing;
}

.planer-racks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.planer-rack-empty {
  color: #94a3b8;
  font-style: italic;
}

.planer-rack-block {
  flex: 1 1 340px;
  max-width: 100%;
  min-width: 280px;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem;
  background: #1e293b;
  color: #e2e8f0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.planer-rack-block.planer-rack-block--selected {
  border-color: rgba(94, 234, 212, 0.7);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.35);
  background: #172554;
}

.planer-rack-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.planer-rack-title {
  margin: 0;
  font-size: 1rem;
  color: #94a3b8;
  flex: 1 1 auto;
}

.planer-rack-viewbar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.planer-rack-view-btn {
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #cbd5e1;
  cursor: pointer;
}

.planer-rack-view-btn.is-active {
  border-color: #5a8fc7;
  background: #1e3a5f;
  color: #fff;
}

.planer-rack-portstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.planer-rack-portstrip--enclosure {
  border-color: rgba(94, 234, 212, 0.25);
}

.planer-rack-mod-if-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  margin-bottom: 3px;
}

.planer-rack-mod-if-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 3px;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
}

.planer-rack-mod-if-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 0.78rem;
  padding: 0 2px;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #e2e8f0;
}

.planer-rack-mod-if-icon--ethernet {
  background: rgba(59, 130, 246, 0.45);
}

.planer-rack-mod-if-icon--modbus {
  background: rgba(234, 179, 8, 0.45);
}

.planer-rack-mod-if-icon--can {
  background: rgba(168, 85, 247, 0.4);
}

.planer-rack-mod-if-icon--customrj45 {
  background: rgba(100, 116, 139, 0.5);
}

.planer-rack-mod-if-icon--power1ph {
  background: rgba(251, 191, 36, 0.4);
}

.planer-rack-mod-if-icon--power3phsync,
.planer-rack-mod-if-icon--power3phindep {
  background: rgba(239, 68, 68, 0.38);
}

.planer-rack-cell--drop-preview {
  outline: 2px solid rgba(94, 234, 212, 0.85);
  outline-offset: -2px;
  background: rgba(94, 234, 212, 0.14);
}

.planer-rack-cell--drop-preview-invalid {
  outline: 2px solid rgba(248, 113, 113, 0.9);
  outline-offset: -2px;
  background: rgba(248, 113, 113, 0.12);
}

.planer-rack-port-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.planer-rack-port-dot.is-connected {
  background: #22c55e;
}

.planer-rack-port-dot.is-free {
  background: #64748b;
}

.planer-rack-port-dot--shell {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55);
}

.planer-rack-module-optwrap {
  margin-top: 4px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.planer-rack-module-optlbl {
  color: #94a3b8;
}

.planer-rack-module-opt {
  max-width: 11rem;
  font-size: 0.75rem;
}

.planer-rack-face {
  border-radius: 4px;
  overflow: hidden;
}

.planer-rack--rear .planer-rack-face {
  transform: scaleX(-1);
}

.planer-rack--rear .planer-rack-u-label,
.planer-rack--rear .planer-rack-module,
.planer-rack--rear .planer-rack-slot {
  transform: scaleX(-1);
}

.planer-rack-grid {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  width: 100%;
  min-height: 120px;
  max-height: none;
  overflow: visible;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #0f172a;
}

.planer-rack-cell {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  box-sizing: border-box;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
  overflow: hidden;
  min-height: 0;
}

.planer-rack-cell-empty .planer-rack-slot {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 2px;
  margin: 2px 0;
  box-sizing: border-box;
}

.planer-rack-u-label {
  flex: 0 0 2.75rem;
  font-size: 0.62rem;
  color: #64748b;
  padding: 4px 2px;
  line-height: 1.2;
  align-self: center;
}

.planer-rack-module {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  margin: 2px 4px 2px 0;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.planer-rack-module-name {
  font-weight: 600;
}

.planer-rack-module-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.planer-rack-module-titleline {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.planer-rack-module-remove {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  margin: -2px -2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planer-rack-module-remove:hover {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.planer-rack-module-remove:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.85);
  outline-offset: 1px;
}

.planer-rack-module-u {
  font-size: 0.65rem;
  opacity: 0.9;
  font-weight: 600;
}

.planer-rack-module-stats {
  font-size: 0.62rem;
  opacity: 0.92;
  line-height: 1.3;
  font-weight: 500;
}

.mod-kind-server {
  background: #2563eb;
  color: #fff;
}

.mod-kind-inverter {
  background: #16a34a;
  color: #fff;
}

.mod-kind-battery {
  background: #ca8a04;
  color: #1a1a1a;
}

.mod-kind-ups {
  background: #dc2626;
  color: #fff;
}

.mod-kind-router {
  background: #0d9488;
  color: #fff;
}

.mod-kind-ac {
  background: #0369a1;
  color: #fff;
}

.mod-kind-powerstation {
  background: #b45309;
  color: #fff;
}

.mod-kind-pdusplit {
  background: #6b21a8;
  color: #fff;
}

.mod-kind-switch {
  background: #4338ca;
  color: #fff;
}

/* Power-Station: drag handle (select steals native drag on the tile) */
.planer-rack-module--grip {
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
}

.planer-rack-module-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.planer-rack-module-grip {
  flex: 0 0 1.35rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2px 0 -2px -4px;
  padding: 2px 0;
  border-radius: 4px 0 0 4px;
  cursor: grab;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.12em;
  user-select: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.18);
}

.planer-rack-module-grip:active {
  cursor: grabbing;
}

.planer-rack-module[draggable="true"] {
  cursor: grab;
}

.planer-rack-module[draggable="true"]:active {
  cursor: grabbing;
}

.planer-rack-module.is-dragging {
  opacity: 0.45;
}

.planer-rack-summary {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 100%;
}

.planer-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.planer-summary-table th,
.planer-summary-table td {
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.planer-summary-table thead {
  background: #f1f5f9;
}

.planer-summary-total td {
  font-weight: bold;
  background: #f8fafc;
}

.planer-summary-rack-h {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.95rem;
  color: #1a3a5c;
}

.planer-summary-energy-h {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: #1a3a5c;
  border-top: 2px solid #e2e8f0;
  padding-top: 1rem;
}

.planer-summary-grand {
  margin: 1rem 0 0.25rem;
  padding: 0.65rem 0.85rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: right;
}

.planer-summary-energy-rack {
  margin: 0.75rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.85rem 0.65rem;
  background: #fff;
}

.planer-summary-energy-rack > summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.25rem 0;
}
.planer-pv-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.planer-summary-table--energy {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.planer-summary-table--energy th,
.planer-summary-table--energy td {
  padding: 0.3rem 0.45rem;
  white-space: nowrap;
}

.planer-summary-energy-meta {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

.planer-summary-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.planer-summary-kv td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.planer-summary-kv td:first-child {
  color: #475569;
  width: 45%;
}

.planer-summary-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

.planer-util-slider-row {
  margin: 0.5rem 0 0.85rem;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.planer-util-slider-label {
  display: block;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.planer-util-slider-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.planer-util-slider-controls input[type='range'] {
  flex: 1;
  min-width: 140px;
  max-width: 360px;
}
.planer-util-slider-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0c4a6e;
  min-width: 3.5rem;
}
.planer-util-slider-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.planer-util-slider-row--disabled {
  opacity: 0.78;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.planer-util-slider-row--disabled .planer-util-slider-label {
  color: #64748b;
}

.planer-util-slider-row--disabled .planer-util-slider-value {
  color: #94a3b8;
}

.planer-util-slider-row--disabled input[type='range'] {
  cursor: not-allowed;
}

.planer-summary-pv-meta {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.planer-pv-region-label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.88rem;
  color: #334155;
}

.planer-pv-region-label select {
  display: block;
  margin-top: 0.25rem;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
}

.planer-pv-region-hint {
  margin: 0.25rem 0 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.planer-balance-scale {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.planer-balance-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.planer-balance-track {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #38bdf8 0%, #e2e8f0 50%, #a78bfa 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.planer-balance-needle {
  position: absolute;
  top: -4px;
  width: 4px;
  margin-left: -2px;
  height: 18px;
  border-radius: 2px;
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: left 0.25s ease;
}

.planer-balance-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
}

.planer-balance-suggestion {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
}
.planer-balance-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.planer-balance-col--pv { text-align: left; }
.planer-balance-col--bat { text-align: right; }
.planer-balance-col-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.planer-balance-col-current {
  color: #64748b;
}
.planer-balance-col-target {
  color: #1e40af;
}

.planer-summary-perspective-h {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.88rem;
  color: #1a3a5c;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
}

.planer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
  padding: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.planer-save-name-wrap input {
  width: 12rem;
}

.planer-load-select {
  min-width: 12rem;
  padding: 0.35rem;
}

.planer-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1e293b;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-size: 0.9rem;
  max-width: 90vw;
}

.planer-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.planer-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.planer-modal.is-open {
  display: flex;
}

.planer-modal-inner {
  background: #fff;
  border-radius: 10px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 1.25rem 1.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.planer-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.planer-mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.planer-mp-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.65rem;
  font-size: 0.82rem;
}

.planer-mp-card strong {
  display: block;
  color: #1a3a5c;
  margin-bottom: 0.25rem;
}

.planer-mp-meta {
  color: #64748b;
  font-size: 0.75rem;
}

.planer-mp-card--pickable {
  cursor: pointer;
}

.planer-mp-card--pickable:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.planer-mp-empty,
.planer-mp-error {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.planer-mp-error {
  color: #b91c1c;
}

/* ── Energy summary visualizations (bars, cards) ───────────────── */
/* PV/Batterie vs. Empfehlung — gleiche Karte wie in der Gesamt-Energiebilanz */
.planer-locality-balance {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.planer-locality-balance-inner .planer-eviz-card--bat {
  margin: 0;
}

.planer-eviz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.1rem;
}

.planer-eviz-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.planer-eviz-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.planer-pv-goal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.55rem;
}

.planer-pv-goal-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planer-pv-goal-btn {
  font: inherit;
  font-size: 0.74rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.planer-pv-goal-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.planer-pv-goal-btn.is-active {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
  font-weight: 600;
}

/* Zielwahl direkt unter „Gesamt-Energiebilanz …“ */
.planer-bilanz-heading {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.planer-bilanz-goal {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.planer-bilanz-goal-lead {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.planer-bilanz-goal-hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

.planer-pv-goal-row--bilanz {
  margin-bottom: 0;
}

.planer-locality-balance-lead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.planer-eviz-desc {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.45;
}

.planer-eviz-card--pies {
  grid-column: 1 / -1;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 45%);
}

.planer-eviz-desc--pies {
  margin-bottom: 0.75rem;
}

.planer-pie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: start;
}

.planer-pie-fig {
  margin: 0;
  padding: 0.5rem 0.55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.planer-pie-cap {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.planer-pie-chart {
  display: flex;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.planer-pie-svg {
  width: 118px;
  height: 118px;
  max-width: 100%;
}

.planer-pie-empty {
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 1.2rem;
}

.planer-pie-leg {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.45;
}

.planer-pie-leg li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  margin: 0.22rem 0;
}

.planer-pie-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.18em;
}

.planer-pie-leg-label {
  flex: 1 1 6rem;
  min-width: 0;
}

.planer-pie-leg-val {
  color: #0f172a;
}

.planer-pie-leg-pct {
  color: #64748b;
  font-size: 0.68rem;
}

.planer-eviz-bar--track {
  height: 14px;
  border-radius: 8px;
  background: #e2e8f0;
  overflow: hidden;
}

.planer-eviz-fill--green {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.35s ease;
}

.planer-eviz-stats {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  font-size: 0.78rem;
}

.planer-eviz-stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.planer-eviz-stats li:last-child {
  border-bottom: none;
}

.planer-eviz-stats strong {
  color: #14532d;
}

.planer-eviz-bar--heatrow {
  display: flex;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.planer-eviz-heatseg {
  min-width: 2px;
  transition: width 0.35s ease;
}

.planer-eviz-heatseg--it {
  background: linear-gradient(180deg, #fb923c, #ea580c);
}

.planer-eviz-heatseg--extra {
  background: repeating-linear-gradient(
    -45deg,
    #fecaca,
    #fecaca 4px,
    #fca5a5 4px,
    #fca5a5 8px
  );
}

.planer-eviz-heatseg--ac {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.planer-eviz-legend--heat {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  font-size: 0.74rem;
  color: #475569;
}

.planer-eviz-legend--heat li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.planer-eviz-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.planer-eviz-dot--it {
  background: #ea580c;
}

.planer-eviz-dot--extra {
  background: #f87171;
}

.planer-eviz-dot--ac {
  background: #0284c7;
}

.planer-eviz-card--bat .planer-util-slider-row--readonly {
  margin-top: 0.5rem;
}

.planer-eviz-card--bat .planer-util-slider-row--readonly:first-of-type {
  margin-top: 0.35rem;
}

.planer-eviz-ratio-slider:disabled {
  opacity: 1;
  cursor: default;
}

.planer-eviz-ratio-slider--pv:disabled {
  accent-color: #16a34a;
}

.planer-eviz-ratio-slider--bat:disabled {
  accent-color: #4f46e5;
}

.planer-util-slider-value--readonly {
  font-size: 0.78rem;
  min-width: 9rem;
  text-align: right;
  color: #334155;
  font-weight: 600;
}

.planer-eviz-rg-zones {
  margin: 0.4rem 0 0.35rem;
}

.planer-eviz-battrack--ratio {
  height: 10px;
}

.planer-eviz-battrack--markers {
  position: relative;
}

.planer-eviz-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.planer-eviz-marker--rec {
  width: 0;
  border-left: 2px dashed #15803d;
  background: transparent;
  margin-left: -1px;
  box-shadow: none;
}

.planer-eviz-marker--ist {
  background: #0f172a;
}

.planer-eviz-marker--pv {
  background: #15803d;
}

.planer-eviz-marker--bat {
  background: #4f46e5;
}

.planer-util-slider-controls--markonly {
  justify-content: flex-end;
}

.planer-hp-calc-details {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid #fed7aa;
  font-size: 0.88rem;
}

.planer-hp-calc-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.planer-hp-calc-summary::-webkit-details-marker {
  display: none;
}

.planer-hp-info-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.planer-hp-calc-body {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #422006;
  line-height: 1.5;
}

.planer-hp-calc-body code {
  font-size: 0.76rem;
  background: #fef3c7;
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
}

.planer-hp-calc-lead {
  margin: 0 0 0.5rem;
}

.planer-hp-calc-ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.planer-hp-calc-ol li {
  margin-bottom: 0.35rem;
}

.planer-hp-calc-note {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: #78716c;
  font-style: italic;
}

.planer-eviz-ratio-meta {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.72rem;
  color: #64748b;
}

.planer-eviz-pv-string-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.74rem;
  color: #334155;
  line-height: 1.45;
}

.planer-eviz-pv-string-list li {
  padding: 0.2rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.planer-eviz-pv-string-list li:last-child {
  border-bottom: none;
}

.planer-eviz-pv-str-idx {
  color: #64748b;
  font-size: 0.68rem;
  margin-right: 0.25rem;
}

.planer-eviz-pv-string-empty {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}

.planer-eviz-batwrap {
  margin-top: 0.35rem;
}

.planer-eviz-batlabels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.planer-eviz-battrack {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #fecaca 0%, #bbf7d0 50%, #fde68a 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.planer-eviz-batneedle {
  position: absolute;
  top: -3px;
  width: 6px;
  margin-left: -3px;
  height: 18px;
  border-radius: 3px;
  background: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: left 0.3s ease;
}

.planer-eviz-batmeta {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: #475569;
}

.planer-eviz-stats--outage strong {
  color: #1e3a8a;
}

.planer-eviz-outage-li--avg {
  align-items: flex-start;
}

.planer-eviz-outage-li-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.28rem;
  max-width: min(100%, 20rem);
}

.planer-eviz-outage-gap {
  font-size: 0.72rem;
  font-weight: normal;
  color: #64748b;
  line-height: 1.4;
}

.planer-eviz-card--hp {
  border-color: #fdba74;
  background: linear-gradient(145deg, #fffbeb 0%, #fff 55%);
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .planer-eviz-card--hp {
    grid-column: span 2;
  }
}

.planer-hp-line--in-card {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #78350f;
}

.planer-hp-meters--compact {
  margin-top: 0.25rem;
}

.planer-hp-panel {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 55%);
  border: 1px solid #fed7aa;
  border-radius: 10px;
}

.planer-hp-heading {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: #9a3412;
}

.planer-hp-line,
.planer-hp-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.planer-hp-meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.planer-hp-meter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #431407;
  margin-bottom: 0.25rem;
}

.planer-hp-meter-track {
  height: 10px;
  border-radius: 6px;
  background: #ffedd5;
  overflow: hidden;
}

.planer-hp-meter-fill--util {
  height: 100%;
  background: linear-gradient(90deg, #fb923c, #ea580c);
  border-radius: 6px;
}

.planer-hp-meter-fill--cop {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #059669);
  border-radius: 6px;
}

.planer-hp-meter-val {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: #78350f;
}

.planer-hp-off {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.75rem 0;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.planer-balance-compact {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.planer-balance-compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.8rem;
  color: #334155;
}

.planer-balance-compact-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.planer-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.planer-sum-card {
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.planer-sum-card--grid {
  border-top: 3px solid #64748b;
}

.planer-sum-card--house {
  border-top: 3px solid #0ea5e9;
}

.planer-sum-card--dc {
  border-top: 3px solid #22c55e;
}

.planer-sum-card--server {
  border-top: 3px solid #8b5cf6;
}

.planer-sum-card--thermal {
  border-top: 3px solid #f97316;
}

.planer-sum-card-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.planer-sum-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.76rem;
}

.planer-sum-card-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
}

.planer-sum-card-list li:last-child {
  border-bottom: none;
}

.planer-sum-card-list span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.planer-sum-card-list strong {
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
}
