.simulation {
    gap: 80px;
}

.simulation h6, p, span {
    font-size: 14px;
    margin-bottom: 0 !important;
}

.simulation span {
    font-size: 12px;
}

.simulation .success-tag {
    text-transform: uppercase;
    background-color: var(--project-color);
    border: none;
    padding: 3px 5px;
    text-align: center;
    border-radius: 2px;
    color: #FFFFFF;
    font-size: 9px;
}

/* =========================================================
   App header (two-row layout + project-color accent)
   ========================================================= */
:root {
  --app-header-height: 118px;
  --app-header-top-height: 58px;
  --app-header-bottom-height: 56px;
  --app-header-accent-height: 4px;
  --app-sidebar-width: 300px;
  --app-logo-column-width: 140px;
  --app-sidebar-rail-width: 60px;
  --app-footer-height: 3.25rem;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pc-header.app-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: var(--app-header-height);
  height: auto !important;
  background: #fff;
  color: #2b3035;
  border-bottom: none;
  box-shadow: none;
}

/* Disable legacy single-line accent under the old header-wrapper */
.pc-header.app-header .header-wrapper::after,
.header-wrapper::after {
  display: none !important;
}

.pc-header.app-header .header-upper,
.pc-header.app-header .header-lower {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.pc-header.app-header .m-header,
.pc-header.app-header .header-lower-gutter,
.pc-header.app-header .header-lower-context {
  flex-shrink: 0;
}

.pc-header.app-header .m-header {
  width: var(--app-logo-column-width);
  height: auto !important;
  min-height: var(--app-header-top-height);
  padding: 8px 20px;
  border-right: 1px solid #e6e9ec;
  background: #fff;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.pc-header.app-header .header-lower-gutter {
  width: var(--app-sidebar-rail-width);
  border-right: 1px solid #e6e9ec;
  background: #f5f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.pc-header.app-header .header-lower-context {
  width: calc(var(--app-sidebar-width) - var(--app-sidebar-rail-width));
  display: flex;
  align-items: center;
  padding: 0 18px;
  overflow: hidden;
  border-right: none;
  background: #f5f7f8;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pc-header.app-header .header-apps-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #4b5563;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.pc-header.app-header .header-apps-btn i {
  font-size: calc(var(--app-header-bottom-height) * 0.3);
  line-height: 1;
}

.pc-header.app-header .header-apps-btn:hover,
.pc-header.app-header .header-apps-btn:focus {
  background: color-mix(in srgb, var(--project-color, #f18a1f) 12%, #fff);
  color: var(--project-color-dark, var(--project-color, #f18a1f));
}

.pc-header.app-header .m-header .pc-h-item {
  min-height: 0;
}

.pc-header.app-header .m-header .b-brand .project-logo,
.pc-header.app-header .m-header .b-brand .logo {
  width: auto;
  max-width: 140px;
  max-height: 36px;
  height: auto;
  object-fit: contain;
}

.pc-header.app-header .header-top-main,
.pc-header.app-header .header-bottom-main {
  flex: 1 1 auto;
  min-width: 0;
}

.pc-header.app-header .header-top-row,
.pc-header.app-header .header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 24px;
  min-width: 0;
  height: 100%;
}

.pc-header.app-header .header-top-row {
  min-height: var(--app-header-top-height);
  background: #fff;
}

.pc-header.app-header .header-accent-bar {
  height: var(--app-header-accent-height);
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--project-color, #f18a1f) 0%,
    var(--project-color-dark, var(--project-color, #c56e14)) 100%
  );
  flex-shrink: 0;
}

.pc-header.app-header .header-bottom-row {
  min-height: var(--app-header-bottom-height);
  background: #f5f7f8;
}

.pc-header.app-header .header-bottom-main {
  background: #f5f7f8;
}

.pc-header.app-header .header-lower {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}

.pc-header.app-header .header-top-left,
.pc-header.app-header .header-bottom-left,
.pc-header.app-header .header-top-right,
.pc-header.app-header .header-bottom-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pc-header.app-header .header-bottom-left {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 8px 0;
}

.pc-header.app-header .header-bottom-row--workspace {
  align-items: stretch;
  justify-content: flex-end;
  padding-left: 12px;
}

.pc-header.app-header .header-bottom-left--workspace {
  display: none;
}

.pc-header.app-header .header-lower--workspace .header-lower-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: #f5f7f8;
  overflow: hidden;
}

.pc-header.app-header .header-lower--workspace .header-lower-gutter {
  border-right: none;
  box-shadow: 4px 0 16px rgba(15, 23, 42, 0.12), 2px 0 6px rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 2;
}

.pc-header.app-header .header-lower--workspace .header-bottom-main {
  flex: 0 0 auto;
}

.pc-header.app-header .op-workspace-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pc-header.app-header .op-workspace-tab {
  position: relative;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.05rem;
  min-width: 200px;
  max-width: 300px;
  padding: 0.55rem 2.25rem 0.7rem 1rem;
  color: #4b5563;
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
  outline: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  z-index: 1;
}

.pc-header.app-header .op-workspace-tab + .op-workspace-tab {
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.12), -2px 0 6px rgba(15, 23, 42, 0.06);
}

.pc-header.app-header .op-workspace-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.pc-header.app-header .op-workspace-tab.is-active {
  background: #fff;
  color: #2b3035;
  z-index: 2;
  box-shadow: 4px 0 16px rgba(15, 23, 42, 0.14), 2px 0 6px rgba(15, 23, 42, 0.08),
    -2px 0 10px rgba(15, 23, 42, 0.06);
}

.pc-header.app-header .op-workspace-tab-module {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #9aa3ad;
  line-height: 1.2;
  white-space: nowrap;
}

.pc-header.app-header .op-workspace-tab-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pc-header.app-header .op-workspace-tab.is-active .op-workspace-tab-title {
  font-weight: 700;
}

.pc-header.app-header .op-workspace-tab-pin {
  position: absolute;
  right: 0.4rem;
  bottom: 0.3rem;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  line-height: 1;
  pointer-events: none;
}

.pc-header.app-header .op-workspace-tab-pin i {
  font-size: 0.75rem;
}

.pc-header.app-header .op-workspace-tab.is-active .op-workspace-tab-pin {
  color: #9aa3ad;
}

.pc-header.app-header .op-workspace-tab-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  appearance: none;
  border: none;
  background: transparent;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border-radius: 3px;
  color: #9aa3ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pc-header.app-header .op-workspace-tab:hover .op-workspace-tab-close,
.pc-header.app-header .op-workspace-tab.is-active .op-workspace-tab-close,
.pc-header.app-header .op-workspace-tab-close:focus {
  opacity: 1;
}

.pc-header.app-header .op-workspace-tab-close:hover {
  color: #2b3035;
  background: #eef1f4;
}

.pc-header.app-header .op-workspace-tab-close i {
  font-size: 0.75rem;
  line-height: 1;
}

[data-pc-theme="dark"] .pc-header.app-header .op-workspace-tab {
  color: #c5ccd6;
}

[data-pc-theme="dark"] .pc-header.app-header .op-workspace-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-pc-theme="dark"] .pc-header.app-header .op-workspace-tab.is-active {
  background: #1e1e1e;
  color: #e8ecf4;
}

[data-pc-theme="dark"] .pc-header.app-header .op-workspace-tab-module {
  color: #9aa3ad;
}

[data-pc-theme="dark"] .pc-header.app-header .op-workspace-tab-close:hover {
  color: #e8ecf4;
  background: rgba(255, 255, 255, 0.08);
}

.pc-header.app-header .header-project-label {
  color: #5a626b;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
  padding-left: 0;
}

.pc-header.app-header .header-project-label:hover {
  color: var(--project-color, #f18a1f);
}

.pc-header.app-header .header-top-right {
  gap: 0.75rem;
}

.pc-header.app-header .header-top-link {
  color: #5a626b;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.pc-header.app-header .header-top-link:hover {
  color: var(--project-color, #f18a1f);
}

.pc-header.app-header .header-top-sep {
  width: 1px;
  height: 18px;
  background: #d5d9de;
  flex-shrink: 0;
}

.pc-header.app-header .header-lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #5a626b;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0;
  border-radius: 0;
  min-width: 0;
  text-align: center;
}

.pc-header.app-header .header-lang-btn::after {
  display: none;
}

.pc-header.app-header .header-lang-btn:hover,
.pc-header.app-header .header-lang-btn:focus {
  border-color: transparent;
  color: var(--project-color, #f18a1f);
}

.pc-header.app-header .header-lang-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  min-width: 4rem;
  padding: 0.25rem 0;
}

.pc-header.app-header .header-lang-dropdown .dropdown-menu.show {
  display: block;
}

.pc-header.app-header .header-lang-dropdown .dropdown-item {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.pc-header.app-header .header-lang-dropdown .dropdown-item.active {
  background: color-mix(in srgb, var(--project-color, #f18a1f) 16%, #fff);
  color: var(--project-color, #f18a1f);
}

.pc-header.app-header .header-section-label {
  color: #9aa3ad;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.pc-header.app-header .header-page-title {
  color: #2b3035;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 560px);
}

.pc-header.app-header .header-page-title .suffix-squared {
  font-size: 0.65em;
}

.pc-header.app-header .header-user-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #1f2933;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.pc-header.app-header .header-user-link::after {
  display: none;
}

.pc-header.app-header .header-user-link .user-avtar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.875rem;
}

.pc-header.app-header .header-user-fullname {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1f2933;
  max-width: 180px;
}

.pc-header.app-header .dropdown-item.theme-mode-option.active {
  font-weight: 600;
  background: color-mix(in srgb, var(--project-color) 14%, transparent);
  color: color-mix(in srgb, var(--project-color) 55%, #1a1d21);
}

/* Keep layout offsets in sync with taller header; sidebar ends above footer */
body .pc-sidebar {
  top: var(--app-header-height) !important;
  bottom: var(--app-footer-height) !important;
  height: auto !important;
}

body .pc-container {
  top: 0 !important;
  margin-top: var(--app-header-height) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: 1 0 auto;
  min-height: calc(100vh - var(--app-header-height) - var(--app-footer-height)) !important;
  /* Clearance for fixed footer pinned to the viewport bottom */
  padding-bottom: var(--app-footer-height) !important;
  position: relative;
  z-index: auto;
}

body .pc-footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Operational Data / Environmental / Charging Infra: full-bleed workspace */
body.op-data-page .pc-sidebar {
  display: none !important;
}

body.op-data-page .pc-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  min-height: calc(100vh - var(--app-header-height) - var(--app-footer-height)) !important;
}

body.op-data-page .pc-container .pc-content {
  padding: 0 !important;
  background: #fff !important;
}

body.op-data-page .pc-footer {
  margin: 0 !important;
}

body.op-data-page .pc-header.app-header .header-lower-gutter {
  border-right: none;
}

body.op-data-page .pc-container > .pc-content > .row {
  margin: 0 !important;
}

body.op-data-page .pc-container > .pc-content > .row > [class*="col-"] {
  padding: 0 !important;
}

body.op-data-page .main-card {
  border: none !important;
  box-shadow: none !important;
  background: #fff !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

body.op-data-page .main-card > .card-body {
  padding: 0 !important;
  background: #fff !important;
}

body .pc-footer {
  margin-top: 0;
  background: transparent;
}

body .pc-footer.app-footer {
  margin: 0 !important;
  padding: 0;
  border: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1020;
  flex-shrink: 0;
  min-height: var(--app-footer-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body .pc-footer.app-footer .app-footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.35;
  filter: grayscale(1);
  object-fit: contain;
  flex-shrink: 0;
}

body .pc-footer.app-footer .app-footer-bar {
  background: #f5f7f8;
  border-top: 1px solid #e6e9ec;
  padding: 0.55rem 0;
}

body .pc-footer.app-footer .footer-wrapper {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body .pc-footer.app-footer .app-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body .pc-footer.app-footer .app-footer-copy {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  margin-left: auto;
  text-align: right;
}

body.op-data-page .pc-footer.app-footer {
  margin: 0 !important;
}

[data-pc-theme="dark"] body .pc-footer.app-footer .app-footer-bar {
  background: #171717;
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-pc-theme="dark"] body .pc-footer.app-footer .app-footer-copy {
  color: #9aa3ad;
}

[data-pc-theme="dark"] body .pc-footer.app-footer .app-footer-logo {
  opacity: 0.55;
  filter: grayscale(1) brightness(1.4);
}

/* Keep the lower contextual panel aligned with the collapsible sidebar. */
@media (min-width: 1025px) {
  body:has(.pc-sidebar.pc-sidebar-hide) .pc-header.app-header .header-lower-gutter {
    width: 60px;
    min-width: 60px;
    padding-left: 8px;
    padding-right: 8px;
  }

  body:has(.pc-sidebar.pc-sidebar-hide) .pc-header.app-header .header-lower-context {
    display: none;
  }
}

@media (max-width: 1024px) {
  .pc-header.app-header .m-header {
    width: var(--app-logo-column-width);
    min-width: var(--app-logo-column-width);
  }

  .pc-header.app-header .header-lower-gutter {
    width: var(--app-sidebar-rail-width);
    min-width: var(--app-sidebar-rail-width);
  }

  .pc-header.app-header .header-lower-context {
    display: none;
  }

  .pc-header.app-header .header-top-row,
  .pc-header.app-header .header-bottom-row {
    padding: 0 12px;
  }

  .pc-header.app-header .header-page-title {
    font-size: 1.05rem;
    max-width: 42vw;
  }

  .pc-header.app-header .header-user-fullname {
    max-width: 110px;
  }
}

@media (max-width: 575.98px) {
  .pc-header.app-header .header-top-link,
  .pc-header.app-header .header-top-sep {
    display: none;
  }

  .pc-header.app-header .header-user-fullname {
    display: none;
  }
}

/* Dark theme */
[data-pc-theme="dark"] .pc-header.app-header,
[data-pc-theme="dark"] .pc-header.app-header .m-header,
[data-pc-theme="dark"] .pc-header.app-header .header-top-row,
[data-pc-theme="dark"] .pc-header.app-header .header-top-main {
  background: #1e1e1e;
  color: #e8ecf4;
}

[data-pc-theme="dark"] .pc-header.app-header .m-header,
[data-pc-theme="dark"] .pc-header.app-header .header-lower-gutter,
[data-pc-theme="dark"] .pc-header.app-header .header-lower-context {
  border-right-color: rgba(255, 255, 255, 0.08);
}

[data-pc-theme="dark"] .pc-header.app-header .header-bottom-row,
[data-pc-theme="dark"] .pc-header.app-header .header-bottom-main,
[data-pc-theme="dark"] .pc-header.app-header .header-lower-gutter,
[data-pc-theme="dark"] .pc-header.app-header .header-lower-context,
[data-pc-theme="dark"] .pc-header.app-header .header-lower-tabs {
  background: #171717;
}

[data-pc-theme="dark"] .pc-header.app-header .header-apps-btn {
  color: #c5ccd6;
}

[data-pc-theme="dark"] .pc-header.app-header .header-apps-btn:hover,
[data-pc-theme="dark"] .pc-header.app-header .header-apps-btn:focus {
  background: color-mix(in srgb, var(--project-color, #5c9ded) 18%, #171717);
  color: #e8ecf4;
}

[data-pc-theme="dark"] .pc-header.app-header .header-project-label,
[data-pc-theme="dark"] .pc-header.app-header .header-top-link,
[data-pc-theme="dark"] .pc-header.app-header .header-user-fullname,
[data-pc-theme="dark"] .pc-header.app-header .header-page-title {
  color: #e8ecf4;
}

[data-pc-theme="dark"] .pc-header.app-header .header-section-label {
  color: #9aa3ad;
}

[data-pc-theme="dark"] .pc-header.app-header .header-lang-btn {
  background: transparent;
  border-color: transparent;
  color: #e8ecf4;
}

[data-pc-theme="dark"] .pc-header.app-header .header-top-sep {
  background: rgba(255, 255, 255, 0.16);
}

[data-pc-theme="dark"] body .pc-footer:not(.app-footer) {
  background: #171717;
}

/* Dark mode: template forces white .pc-content / .main-card; align with [data-pc-theme=dark] preset */
[data-pc-theme="dark"] .pc-container .pc-content {
    background-color: transparent !important;
}

[data-pc-theme="dark"] .main-card {
    background-color: #1e1e1e !important;
    color: var(--bs-body-color, #bdc8f0);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-pc-theme="dark"] .main-card .card-body {
    color: var(--bs-body-color, #bdc8f0);
}

[data-pc-theme="dark"] .main-card a:not(.btn):not(.page-link) {
    color: color-mix(in srgb, var(--project-color, #5c9ded) 70%, #e8ecf4);
}

[data-pc-theme="dark"] .main-card a:not(.btn):not(.page-link):hover {
    color: #f0f4fa;
}

/* Swap header/auth logos when theme is dark */
.theme-logo-dark {
    display: none !important;
}
[data-pc-theme="dark"] .theme-logo-light {
    display: none !important;
}
[data-pc-theme="dark"] .theme-logo-dark {
    display: block !important;
}
