/*================================================================================
  Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  Version: 2.0
  Author: PIXINVENT
  Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(138, 182, 123, 0.1), transparent 30%),
    linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
}

.auth-page--login {
  background: #e7ece8 url('/svg/banner.jpg') center center / cover no-repeat;
}

.auth-page .auth-shell {
  width: min(100%, 32rem);
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 3rem) 0;
}

.auth-page .auth-shell--register {
  width: min(100%, 46rem);
}

.auth-page .auth-card {
  width: 100%;
  border: 1px solid #e4e8ee;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(18, 24, 18, 0.08);
  overflow: hidden;
}

.auth-page--login .auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.auth-page .auth-card .card-header {
  padding: 1.2rem 1.35rem 1rem;
}

.auth-page .auth-card .card-body {
  padding: 1.2rem 1.35rem 1.35rem;
}

.auth-page .card-title {
  color: #1f2937;
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
  font-weight: 800;
}

.auth-page .form-control,
.auth-page .form-select,
.auth-page .input-group,
.auth-page form,
.auth-page .d-grid {
  width: 100%;
  min-width: 0;
}

.auth-page .form-control,
.auth-page .form-select,
.auth-page .input-group-text {
  min-height: 46px;
}

.auth-page .input-group {
  flex-wrap: nowrap;
}

.auth-page .input-group > .form-control {
  min-width: 0;
}

.auth-page .btn {
  white-space: nowrap;
}

.auth-page .auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modeling-page {
  --mp-green: #8ab67b;
  --mp-green-deep: #709962;
  --mp-green-soft: rgba(138, 182, 123, 0.12);
  --mp-gold: #c89b35;
  --mp-gold-deep: #9b7214;
  --mp-ink: #111612;
  --mp-text: #2d342e;
  --mp-muted: #586259;
  --mp-line: #dde5dc;
  --mp-line-strong: #cfd8cf;
  --mp-panel: #ffffff;
  --mp-panel-soft: #f8faf7;
  --mp-page: #f4f6f2;
  --mp-shadow: 0 16px 42px rgba(18, 24, 18, 0.08);
  --mp-shadow-hover: 0 24px 56px rgba(18, 24, 18, 0.12);
  background:
    radial-gradient(circle at top left, rgba(138, 182, 123, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(138, 182, 123, 0.08), transparent 24%),
    linear-gradient(180deg, #f8faf7 0%, var(--mp-page) 100%);
  color: var(--mp-text);
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
}

.modeling-page-input,
.modeling-page-output {
  background: #e7ece8 url('/svg/Hexa-2.png') center center / cover no-repeat fixed;
}

.modeling-page .content-body {
  position: relative;
}

.modeling-page h1,
.modeling-page h2,
.modeling-page h3,
.modeling-page h4,
.modeling-page h5,
.modeling-page h6,
.modeling-page .h1,
.modeling-page .h2,
.modeling-page .h3,
.modeling-page .h4,
.modeling-page .h5,
.modeling-page .h6 {
  color: var(--mp-ink);
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
  letter-spacing: -0.03em;
}

.modeling-page .text-muted {
  color: var(--mp-muted) !important;
}

.modeling-page .card {
  position: relative;
  border: 1px solid var(--mp-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 249, 0.96) 100%);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.modeling-page .card .card-header,
.modeling-page .card .card-body {
  position: relative;
  background: transparent;
}

.modeling-page .card .card-header {
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(221, 229, 220, 0.8);
}

.modeling-page .card .card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.modeling-page .card-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
}

.modeling-page hr {
  margin: 1.1rem 0;
  border-color: rgba(221, 229, 220, 0.92);
}

.modeling-page .form-label {
  margin-bottom: 0.5rem;
  color: var(--mp-muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.modeling-page .form-control,
.modeling-page .form-select {
  min-height: 48px;
  border: 1px solid var(--mp-line);
  border-radius: 14px;
  background: #fbfcfa;
  color: var(--mp-ink);
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modeling-page .form-control::placeholder,
.modeling-page .form-select::placeholder {
  color: #98a198;
  font-weight: 500;
}

.modeling-page .form-control:focus,
.modeling-page .form-select:focus {
  border-color: rgba(138, 182, 123, 0.86);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(138, 182, 123, 0.18);
}

.modeling-page .form-control:disabled,
.modeling-page .form-select:disabled {
  border-color: #e3e9e2;
  background: #f2f5f1;
  color: #7e8780;
  opacity: 1;
}

.modeling-page-input .field-interaction-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(138, 182, 123, 0.28);
  border-radius: 999px;
  background: rgba(138, 182, 123, 0.12);
  color: var(--mp-green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.modeling-page-input .field-interaction-note::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #95c286 0%, #76a667 100%);
  box-shadow: 0 0 0 4px rgba(138, 182, 123, 0.15);
}

.modeling-page-input .form-control:not(:disabled),
.modeling-page-input .form-select:not(:disabled) {
  border: 1.5px solid rgba(138, 182, 123, 0.65);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(138, 182, 123, 0.12),
    0 10px 24px rgba(138, 182, 123, 0.08);
}

.modeling-page-input .form-control:not(:disabled):hover,
.modeling-page-input .form-select:not(:disabled):hover {
  border-color: rgba(112, 153, 98, 0.82);
  background: linear-gradient(180deg, #ffffff 0%, #fbfef9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(138, 182, 123, 0.18),
    0 16px 30px rgba(138, 182, 123, 0.12);
}

.modeling-page-input .form-control:not(:disabled):focus,
.modeling-page-input .form-select:not(:disabled):focus {
  border-color: rgba(112, 153, 98, 0.92);
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(138, 182, 123, 0.22),
    0 18px 34px rgba(138, 182, 123, 0.14);
}

.modeling-page-input .form-select:not(:disabled) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 3.6rem;
  background-color: #fff;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #f6fbf4 100%),
    radial-gradient(circle at center, rgba(138, 182, 123, 0.28) 0 62%, rgba(138, 182, 123, 0.1) 63%, transparent 66%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23627f58' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3' d='M4 6.25 8 10l4-3.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, right 1.05rem center, right 1.05rem center;
  background-size: 100% 100%, 1.9rem 1.9rem, 1rem;
}

.modeling-page-input .form-select:not(:disabled):hover {
  background-color: #fff;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #fbfef9 100%),
    radial-gradient(circle at center, rgba(138, 182, 123, 0.34) 0 62%, rgba(138, 182, 123, 0.14) 63%, transparent 66%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235b764f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3' d='M4 6.25 8 10l4-3.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, right 1.05rem center, right 1.05rem center;
  background-size: 100% 100%, 1.9rem 1.9rem, 1rem;
}

.modeling-page-input .form-select:not(:disabled):focus {
  background-color: #fff;
  background-image:
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%),
    radial-gradient(circle at center, rgba(138, 182, 123, 0.38) 0 62%, rgba(138, 182, 123, 0.16) 63%, transparent 66%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23566f4a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3' d='M4 6.25 8 10l4-3.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, right 1.05rem center, right 1.05rem center;
  background-size: 100% 100%, 1.9rem 1.9rem, 1rem;
}

.modeling-page-input .form-control:disabled,
.modeling-page-input .form-select:disabled {
  border-style: dashed;
  background: linear-gradient(180deg, #f3f6f2 0%, #edf2ec 100%);
  box-shadow: none;
}

.modeling-page-input .form-label {
  color: #445244;
}

.modeling-page-input .text-muted {
  color: #6b756c !important;
}

.modeling-page input[type='number'],
.modeling-page .compare-value-main {
  font-variant-numeric: tabular-nums;
}

.modeling-page .form-check {
  margin-bottom: 0.85rem;
}

.modeling-page .system-model-choice-row .form-check {
  margin-bottom: 0;
  min-height: 56px;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.modeling-page .system-model-choice-row .form-check-input {
  margin-top: 0.1rem;
}

.modeling-page .form-check-label {
  color: var(--mp-text);
  font-weight: 700;
}

.modeling-page .form-check-input {
  border-color: var(--mp-line-strong);
  box-shadow: none !important;
}

.modeling-page .form-check-input:checked {
  background-color: var(--mp-green);
  border-color: var(--mp-green);
}

.modeling-page .form-check-input:focus {
  border-color: var(--mp-green);
}

.modeling-page .form-switch {
  padding-left: 3rem;
}

.modeling-page .form-switch .form-check-input {
  width: 2.3rem;
  height: 1.25rem;
  margin-left: -3rem;
  border-radius: 999px;
  background-color: #e4e9e2;
}

.modeling-page .form-switch .form-check-input:checked {
  background-color: var(--mp-green);
  border-color: var(--mp-green);
}

.modeling-page .form-switch .form-check-input:not(:checked) {
  background-color: #e4e9e2;
}

.modeling-page .btn {
  border-radius: 999px;
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modeling-page .btn-sm {
  min-height: 36px;
  padding: 0.52rem 0.95rem;
}

.modeling-page .btn-lg {
  min-height: 52px;
}

.modeling-page .btn-success {
  border-color: var(--mp-green);
  background: linear-gradient(180deg, #95c286 0%, #7aa96c 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(138, 182, 123, 0.28);
}

.modeling-page .btn-success:hover,
.modeling-page .btn-success:focus {
  border-color: var(--mp-green-deep);
  background: linear-gradient(180deg, #8cbb7e 0%, #6f9a61 100%);
  color: #fff;
}

.modeling-page .btn-outline-primary {
  border-color: var(--mp-line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--mp-ink);
}

.modeling-page .btn-outline-primary:hover,
.modeling-page .btn-outline-primary:focus {
  border-color: rgba(73, 26, 117, 0.65);
  background: var(--mp-green-soft);
  color: var(--mp-green-deep);
}

.modeling-page .btn-outline-danger {
  border-color: rgba(214, 91, 91, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: #b24444;
}

.modeling-page .btn-outline-danger:hover,
.modeling-page .btn-outline-danger:focus {
  border-color: rgba(214, 91, 91, 0.35);
  background: rgba(214, 91, 91, 0.08);
  color: #9b3232;
}

.modeling-page .btn:disabled {
  box-shadow: none;
}

.modeling-page .table-responsive {
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.modeling-page .table {
  margin-bottom: 0;
  color: var(--mp-text);
}

.modeling-page .table.table-bordered> :not(caption)>*>* {
  border-color: var(--mp-line);
}

.modeling-page .table thead th {
  padding: 0.92rem 1rem;
  border-bottom-width: 1px;
  background: linear-gradient(180deg, #f7faf6 0%, #f2f6f1 100%);
  color: var(--mp-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.modeling-page .table tbody td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  background: transparent;
}

.modeling-page .table tbody tr:hover td {
  background: rgba(138, 182, 123, 0.05);
}

.modeling-chart {
  height: 340px;
  min-height: 340px;
}

.modeling-metric-card {
  border-width: 1px !important;
  border-style: solid;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fafcf9 100%);
  box-shadow: none;
}

.modeling-metric-card .card-body {
  padding: 1rem 1.05rem !important;
}

.modeling-metric-card h6 {
  margin-bottom: 0.45rem !important;
  color: var(--mp-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.modeling-metric-card h3 {
  color: var(--mp-ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* .modeling-metric-card.border-success {
  border-color: rgba(138, 182, 123, 0.22) !important;
}

.modeling-metric-card.border-info {
  border-color: rgba(74, 110, 138, 0.22) !important;
}

.modeling-metric-card.border-warning {
  border-color: rgba(189, 138, 64, 0.22) !important;
}

.modeling-metric-card--gold {
  border-color: rgba(200, 155, 53, 0.26) !important;
} */

.modeling-page .text-success {
  color: var(--mp-green-deep) !important;
}

.modeling-page .text-info {
  color: #3c6788 !important;
}

.modeling-page .text-warning {
  color: #9b6b28 !important;
}

.modeling-page .text-gold {
  color: var(--mp-gold-deep) !important;
}

#validation-box ul {
  margin-bottom: 0;
  padding-left: 1rem;
}

.result-kpi-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.result-kpi-item {
  min-width: 0;
}

.result-kpi-item--full {
  grid-column: 1 / -1;
}

.result-kpi-stack .card:last-child {
  margin-bottom: 0;
}

.benefits-summary-card {
  overflow: visible !important;
  z-index: 3;
}

.benefits-summary-header {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.customer-summary-card .card-header {
  border-bottom: 1px solid rgba(221, 229, 220, 0.78);
}

.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.customer-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 72px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(221, 229, 220, 0.94);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 245, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.customer-summary-label {
  color: var(--mp-green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customer-summary-value {
  color: var(--mp-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-summary-value.is-empty {
  color: #7d867d;
}

.summary-info-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.summary-info-popover__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid rgba(138, 182, 123, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f1 100%);
  color: var(--mp-green-deep);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(18, 24, 18, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.summary-info-popover__trigger:hover,
.summary-info-popover__trigger:focus {
  border-color: rgba(138, 182, 123, 0.7);
  box-shadow: 0 12px 22px rgba(18, 24, 18, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.summary-info-popover__panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  width: min(320px, calc(100vw - 2.5rem));
  padding: 0.95rem 1rem;
  border: 1px solid rgba(221, 229, 220, 0.96);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.98) 100%);
  box-shadow: 0 24px 56px rgba(18, 24, 18, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.summary-info-popover__panel::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 0.85rem;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 1px solid rgba(221, 229, 220, 0.96);
  border-left: 1px solid rgba(221, 229, 220, 0.96);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.summary-info-popover:hover .summary-info-popover__panel,
.summary-info-popover:focus-within .summary-info-popover__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.summary-info-popover__title {
  margin-bottom: 0.75rem;
  color: var(--mp-ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.summary-info-popover__item+.summary-info-popover__item {
  margin-top: 0.68rem;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(221, 229, 220, 0.82);
}

.summary-info-popover__item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--mp-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-info-popover__item span {
  display: block;
  color: var(--mp-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.system-spec-panel {
  padding: 1rem;
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf7 100%);
}

.system-spec-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.system-spec-panel__eyebrow {
  color: var(--mp-green-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.system-spec-panel__title {
  margin-top: 0.15rem;
  color: var(--mp-ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.system-spec-panel__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.system-spec-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: var(--mp-green-soft);
  color: var(--mp-green-deep);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.system-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.system-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(221, 229, 220, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.system-spec-label {
  color: var(--mp-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: none;
}

.system-spec-value {
  color: var(--mp-ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.system-topology {
  position: relative;
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8faf7 100%);
  overflow: hidden;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topology-svg {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 420px);
}

.topology-export-image {
  display: block;
  width: 100%;
  height: auto;
}

.topology-svg .wire {
  stroke: #8e9890;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.topology-svg .node-label {
  fill: #394139;
  font-size: 15px;
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  user-select: none;
}

.topology-off {
  opacity: 0.2;
}

.chart-card-fullscreen .card-body {
  padding-top: 1rem;
}

.chart-card-fullscreen:fullscreen,
.chart-card-fullscreen:-webkit-full-screen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1rem;
  border-radius: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.chart-card-fullscreen:fullscreen .card-header,
.chart-card-fullscreen:-webkit-full-screen .card-header {
  flex: 0 0 auto;
}

.chart-card-fullscreen:fullscreen .card-body,
.chart-card-fullscreen:-webkit-full-screen .card-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.chart-card-fullscreen:fullscreen .modeling-chart,
.chart-card-fullscreen:-webkit-full-screen .modeling-chart {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0;
}

.highcharts-title,
.highcharts-subtitle,
.highcharts-axis-title text,
.highcharts-axis-labels text,
.highcharts-legend-item text,
.highcharts-data-label text {
  font-family: 'Manrope', 'Avenir Next', 'Helvetica Neue', sans-serif !important;
}

.compare-card {
  border: 1px solid var(--mp-line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--mp-shadow);
}

.compare-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(221, 229, 220, 0.88);
}

.compare-card__subtitle {
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.compare-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compare-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--mp-green-soft);
  color: var(--mp-green-deep);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.compare-table-wrap {
  margin-top: 0.15rem;
  overflow: visible;
}

.compare-table {
  border-collapse: separate;
  border-spacing: 0 0.7rem;
}

.compare-table thead th {
  border: 0;
  padding: 0 0.85rem 0.18rem;
  color: var(--mp-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.compare-table thead th:not(:first-child) {
  text-align: center;
}

.compare-table tbody td {
  border: 0;
  padding: 0.95rem 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #fafcf9 100%);
  vertical-align: middle;
  border-top: 1px solid var(--mp-line);
  border-bottom: 1px solid var(--mp-line);
  background-clip: padding-box;
}

.compare-table tbody td:first-child {
  border-left: 1px solid var(--mp-line);
  border-top-left-radius: 0.95rem;
  border-bottom-left-radius: 0.95rem;
}

.compare-table tbody td:last-child {
  border-right: 1px solid var(--mp-line);
  border-top-right-radius: 0.95rem;
  border-bottom-right-radius: 0.95rem;
}

.compare-table__metric {
  min-width: 160px;
}

.compare-table__value {
  width: 18%;
  white-space: nowrap;
  text-align: center;
}

.compare-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.compare-metric-title {
  color: var(--mp-ink);
  font-weight: 700;
  line-height: 1.2;
}

.compare-metric-unit {
  color: #7a847b;
  font-size: 0.82rem;
  font-weight: 700;
}

.compare-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  min-width: 118px;
  margin: 0 auto;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.compare-value small {
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.82;
}

.compare-value-main {
  font-size: 0.98rem;
}

.compare-value--base {
  background: rgba(69, 78, 69, 0.1);
  color: #465046;
}

.compare-value--bess {
  background: var(--mp-green-soft);
  color: var(--mp-green-deep);
}

.compare-value--positive {
  background: rgba(138, 182, 123, 0.16);
  color: var(--mp-green-deep);
}

.compare-value--negative {
  background: rgba(208, 90, 90, 0.12);
  color: #b33f3f;
}

.compare-value--neutral {
  background: #f2f5f1;
  color: var(--mp-muted);
}

.compare-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  margin: 0 auto;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: #f5f7f4;
  color: #a2aba3;
  font-weight: 800;
}

.modeling-page small,
.modeling-page .small {
  font-size: 0.84rem;
  line-height: 1.45;
}

.modeling-page .config-export-card-note {
  color: var(--mp-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.modeling-page .config-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.modeling-page .config-export-panel {
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 247, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.modeling-page .config-export-panel--full {
  grid-column: 1 / -1;
}

.modeling-page .config-export-panel__title {
  margin-bottom: 0.85rem;
  color: var(--mp-ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.modeling-page .config-export-list {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.modeling-page .config-export-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modeling-page .config-export-list-row dt {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.modeling-page .config-export-list-row dd {
  margin: 0;
  color: var(--mp-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.modeling-page .config-export-section .table-responsive {
  overflow: visible;
}

.modeling-page .config-export-table {
  margin-bottom: 0;
}

.modeling-page .config-export-table thead th {
  border-bottom-color: var(--mp-line);
  color: var(--mp-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.modeling-page .config-export-table tbody td {
  border-color: rgba(221, 229, 220, 0.82);
  color: var(--mp-text);
  font-weight: 600;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.modeling-page p,
.modeling-page li,
.modeling-page td,
.modeling-page th,
.modeling-page label,
.modeling-page input,
.modeling-page select,
.modeling-page button {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (hover: hover) {
  .modeling-page .card:hover {
    border-color: rgba(138, 182, 123, 0.32);
    box-shadow: var(--mp-shadow-hover);
    transform: translateY(-1px);
  }

  .modeling-page .btn:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 576px) {
  .auth-page {
    padding: 0.7rem;
  }

  .auth-page .auth-shell {
    width: 100%;
    padding: 0;
  }

  .auth-page .auth-card .card-header {
    padding: 1rem 1rem 0.85rem;
  }

  .auth-page .auth-card .card-body {
    padding: 1rem;
  }

  .auth-page .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .modeling-page .container {
    max-width: 100%;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .modeling-page .card {
    border-radius: 20px;
  }

  .modeling-page .card .card-header {
    padding: 0.9rem 0.85rem 0.78rem;
  }

  .modeling-page .card .card-body {
    padding: 0.9rem 0.85rem;
  }

  .modeling-chart {
    height: 280px;
    min-height: 280px;
  }

  .system-spec-panel__header {
    flex-direction: column;
  }

  .system-spec-panel__chips {
    justify-content: flex-start;
  }

  .system-spec-grid {
    grid-template-columns: 1fr;
  }

  .system-model-choice-row .form-check {
    min-height: 64px;
    padding: 0.75rem 0.7rem 0.75rem 2.2rem;
  }

  .system-model-choice-row .form-check-label {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .result-kpi-stack {
    grid-template-columns: 1fr;
  }

  .result-kpi-item--full {
    grid-column: auto;
  }

  .customer-summary-grid {
    grid-template-columns: 1fr;
  }

  .config-export-grid {
    grid-template-columns: 1fr;
  }

  .config-export-panel--full {
    grid-column: auto;
  }

  .summary-info-popover__panel {
    left: -0.5rem;
    width: min(300px, calc(100vw - 2rem));
  }

  .topology-svg {
    height: 280px;
  }

  .topology-svg .node-label {
    font-size: 13px;
  }

  .compare-card__header {
    flex-direction: column;
  }

  .compare-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }

  .compare-table {
    border-spacing: 0 0.5rem;
  }

  .compare-table thead th {
    font-size: 0.78rem;
    padding: 0 0.6rem 0.18rem;
  }

  .compare-table thead th:not(:first-child) {
    text-align: center;
  }

  .compare-table tbody td {
    padding: 0.8rem 0.6rem;
  }

  .compare-table__metric {
    min-width: 150px;
  }

  .compare-value,
  .compare-dash {
    min-width: 104px;
    padding: 0.45rem 0.65rem;
  }

  .compare-value-main {
    font-size: 0.94rem;
  }
}

.export-render-mode .compare-card {
  box-shadow: none;
}

.export-render-mode .summary-info-popover {
  display: none !important;
}

.export-render-mode .compare-table-wrap {
  overflow: visible !important;
}
