/* 2026-08-29 local-index print compatibility */
      @media print {
        html,
        body {
          background: #fff !important;
        }

        .quick-report-paper {
          background: #fff !important;
        }
      }

/* 2026-08-29 CRETOP company-report PDF import */
.cretop-pdf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 13px 14px;
  border: 1px solid #c7d8ec;
  border-radius: 10px;
  background: #f5f9ff;
}

.cretop-pdf-upload {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: #102a4c;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.cretop-pdf-upload:hover { background: #173c6d; }
.cretop-pdf-upload:focus-visible { outline: 3px solid rgba(36, 119, 191, .28); outline-offset: 2px; }

.cretop-pdf-status {
  color: #52657b;
  font-size: 12px;
  line-height: 1.45;
}

.cretop-pdf-status[data-tone="loading"] { color: #1d5f9d; }
.cretop-pdf-status[data-tone="success"] { color: #14735a; }
.cretop-pdf-status[data-tone="warning"] { color: #9a6700; font-weight: 700; }
.cretop-pdf-status[data-tone="error"] { color: #b42318; font-weight: 700; }

.cretop-pdf-warning[data-tone="warning"] {
  border-color: #e2b93b;
  background: #fff9e8;
  color: #744f00;
}

.cretop-pdf-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cretop-pdf-dialog[hidden] { display: none; }

.cretop-pdf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 38, .62);
  backdrop-filter: blur(3px);
}

.cretop-pdf-dialog > section {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #d8e1eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 20, 38, .28);
}

.cretop-pdf-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e9f0;
}

.cretop-pdf-dialog-head span { color: #b17613; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.cretop-pdf-dialog-head h2 { margin: 4px 0; color: #10233e; font-size: 22px; }
.cretop-pdf-dialog-head p { margin: 0; color: #6b7b8e; font-size: 12px; }
.cretop-pdf-dialog-head > button { width: 34px; height: 34px; border: 1px solid #d8e1eb; border-radius: 9px; background: #fff; color: #465a70; font-size: 23px; cursor: pointer; }

.cretop-pdf-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  overflow: hidden;
}

.cretop-pdf-facts > div { min-width: 0; padding: 12px 14px; border-right: 1px solid #e5eaf0; border-bottom: 1px solid #e5eaf0; }
.cretop-pdf-facts > div:nth-child(3n) { border-right: 0; }
.cretop-pdf-facts > div:nth-last-child(-n + 3) { border-bottom: 0; }
.cretop-pdf-facts strong, .cretop-pdf-facts span { display: block; }
.cretop-pdf-facts strong { margin-bottom: 4px; color: #7b8999; font-size: 10px; }
.cretop-pdf-facts span { overflow: hidden; color: #172b45; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.cretop-pdf-preview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .7fr); gap: 16px; }
.cretop-pdf-preview-grid article { padding: 16px; border: 1px solid #dce4ed; border-radius: 12px; background: #fbfcfe; }
.cretop-pdf-preview-grid h3 { margin: 0 0 12px; color: #172b45; font-size: 14px; }
.cretop-pdf-preview-grid h3 small { margin-left: 6px; color: #7b8999; font-size: 10px; font-weight: 500; }
.cretop-pdf-preview-grid ul { margin: 0; padding-left: 20px; color: #243a56; font-size: 13px; line-height: 1.9; }
.cretop-pdf-preview-grid article > p { margin: 12px 0 0; color: #748397; font-size: 11px; }
.cretop-pdf-table-wrap { overflow-x: auto; }
.cretop-pdf-table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }
.cretop-pdf-table-wrap th, .cretop-pdf-table-wrap td { padding: 8px; border: 1px solid #e1e7ee; text-align: right; white-space: nowrap; }
.cretop-pdf-table-wrap th:first-child, .cretop-pdf-table-wrap td:first-child { text-align: left; }
.cretop-pdf-table-wrap th { background: #edf3fa; color: #53667b; }

.cretop-pdf-warning { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-left: 4px solid #d69b31; border-radius: 8px; background: #fff9ec; color: #70541e; font-size: 12px; line-height: 1.5; }
.cretop-pdf-warning strong { flex: 0 0 auto; }
.cretop-pdf-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.cretop-pdf-dialog-actions button { min-height: 38px; padding: 0 16px; border: 1px solid #cfd9e5; border-radius: 8px; background: #fff; color: #273c56; font: inherit; font-weight: 700; cursor: pointer; }
.cretop-pdf-dialog-actions button.primary { border-color: #102a4c; background: #102a4c; color: #fff; }

@media (max-width: 760px) {
  .cretop-pdf-actions { align-items: stretch; flex-direction: column; }
  .cretop-pdf-preview-grid { grid-template-columns: 1fr; }
  .cretop-pdf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cretop-pdf-facts > div:nth-child(3n) { border-right: 1px solid #e5eaf0; }
  .cretop-pdf-facts > div:nth-child(2n) { border-right: 0; }
  .cretop-pdf-facts > div:nth-last-child(-n + 3) { border-bottom: 1px solid #e5eaf0; }
  .cretop-pdf-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media print {
  .cretop-pdf-actions,
  .cretop-pdf-dialog { display: none !important; }
}

/* 2026-08-29 second-pass interface refinements */
      .stage-heading h1 {
        font-weight: 800;
      }

      .evaluation-type-card > select {
        margin-left: 10px;
      }

      .brand:not(.is-agency-logo) .brand-mark img {
        content: url("../../../assets/myeong-symbol-gold.png");
        object-fit: contain;
        border-radius: 0;
        width: 29px;
        height: 29px;
      }

      .brand span {
        color: #d8bd78;
        letter-spacing: 0.08em;
        font-size: 6.6px;
      }

      .brand.is-agency-logo {
        min-height: 70px;
        margin: -8px 0 14px;
        padding: 10px 12px;
        border: 0;
        border-radius: 12px;
        justify-content: center;
        background: #eef1f4;
      }

      .brand.is-agency-logo .brand-mark {
        width: 100%;
        height: 48px;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .brand.is-agency-logo .brand-mark img {
        content: normal;
        width: min(174px, 100%);
        height: 46px;
        border-radius: 0;
        object-fit: contain;
      }

      .brand.is-ecredible {
        background: #fff;
      }

      .brand.is-ecredible .brand-mark img {
        width: min(184px, 100%);
        height: 42px;
      }

      .quick-report-brand.is-agency-logo > div {
        display: none;
      }

      .quick-report-brand.is-agency-logo > img {
        width: 136px;
        height: 46px;
        border-radius: 0;
        object-fit: contain;
      }

      .quick-report-brand.is-ecredible > img {
        width: 154px;
        height: 42px;
      }

      body:not([data-agency="myeongvalue"]) .report-seal-option,
      body:not([data-agency="myeongvalue"]) .quick-report-signature > img[src$="report-seal.png"] {
        display: none !important;
      }

/* 2026-08-29 let the rating section use remaining print space. */
      @media print {
        .myeong-rating-section {
          break-before: auto !important;
          page-break-before: auto !important;
        }

        .myeong-rating-section > h2,
        .myeong-rating-note {
          break-after: avoid-page !important;
          page-break-after: avoid !important;
        }

        .myeong-rating-layout {
          break-before: avoid-page;
          page-break-before: avoid;
        }

        .myeong-rating-card {
          break-inside: avoid-page !important;
          page-break-inside: avoid !important;
        }
      }

/* 2026-08-29 valuation workspace follow-up */
.workspace-head h1 {
  font-weight: 700;
}

.sticky-summary {
  grid-template-columns:
    minmax(190px, 1.8fr)
    minmax(145px, 1.3fr)
    minmax(105px, .9fr)
    minmax(115px, .95fr)
    minmax(125px, 1.05fr)
    minmax(82px, .7fr)
    minmax(155px, 1.3fr)
    minmax(80px, .65fr)
    minmax(105px, .85fr)
    minmax(220px, 1.75fr)
    minmax(120px, 1fr);
  padding-right: 16px;
  padding-left: 16px;
}

.sticky-summary > div {
  height: auto;
}

.sticky-summary strong {
  white-space: normal;
  text-overflow: clip;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
  overflow: visible;
}

.sticky-summary .value-summary {
  padding-right: 14px;
  padding-left: 14px;
  position: static;
  right: auto;
  box-shadow: none;
}

.sticky-summary .cash-flow-summary strong {
  color: #174d68;
  font-size: 9.5px;
}

.average-profit-chart {
  background-image: none;
}

.average-profit-chart::before,
.average-profit-chart::after {
  content: none;
}

.myeong-profitability-card {
  grid-column: 1 / -1;
}

.myeong-chart-bar.is-company {
  fill: #5578a7;
}

.myeong-chart-bar.is-industry {
  fill: #aeb9c9;
}

.myeong-profitability-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 3px;
  color: #5d6878;
  font-size: 8.5px;
  font-weight: 700;
}

.myeong-profitability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.myeong-profitability-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #aeb9c9;
}

.myeong-profitability-legend i.is-company {
  background: #5578a7;
}

.competitor-import-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.competitor-import-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #d8e2ec;
  border-radius: 9px;
  background: #f8fbfe;
}

.competitor-import-item strong,
.competitor-import-item small {
  display: block;
}

.competitor-import-item strong { color: #1c3853; font-size: 11px; }
.competitor-import-item small { margin-top: 3px; color: #718094; font-size: 9px; }

.competitor-pdf-button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #224d73;
  border-radius: 7px;
  background: #fff;
  color: #224d73;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.competitor-pdf-button:hover { background: #eef5fb; }
.competitor-pdf-button input { display: none; }

.competitor-card-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.competitor-latest-year-field input {
  width: 70px;
}

.competitor-horizontal-table { min-width: 860px; }
.competitor-table-wrap { margin-top: 8px; }
.competitor-horizontal-table th,
.competitor-horizontal-table td {
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 7px !important;
  line-height: 1.2;
}

.competitor-horizontal-table input {
  height: 24px;
  min-height: 0;
  padding: 0 6px;
}

.competitor-horizontal-table .competitor-name-cell { width: 132px; }
.competitor-horizontal-table .competitor-source-cell {
  width: 145px;
  color: #607186;
  font-size: 8.5px;
  line-height: 1.4;
}

.competitor-horizontal-table .competitor-name-cell input[readonly] {
  border-color: #dce4ec;
  background: #f2f5f8;
  color: #435267;
}

/* 업종평균 표: 수치는 우측, 그 외 항목은 가운데 정렬 */
.benchmark-workspace .industry-finance-table th,
.benchmark-workspace .company-financial-table-wrap th,
.benchmark-workspace .horizontal-input-table th,
.benchmark-workspace .related-sales-table th,
.benchmark-workspace .competitor-horizontal-table th,
.benchmark-workspace .market-period-table th,
.benchmark-workspace .average-profit-table th {
  text-align: center;
}

.benchmark-workspace .industry-finance-table td,
.benchmark-workspace .company-financial-table-wrap td,
.benchmark-workspace .competitor-horizontal-table td,
.benchmark-workspace .average-profit-table td {
  text-align: right;
}

.benchmark-workspace .company-financial-table-wrap tbody td:first-child,
.benchmark-workspace .company-financial-table-wrap .average-row td:nth-last-child(-n + 2),
.benchmark-workspace .related-sales-table td:first-child,
.benchmark-workspace .competitor-horizontal-table .competitor-source-cell,
.benchmark-workspace .competitor-horizontal-table .competitor-name-cell,
.benchmark-workspace table input:not([type="number"]) {
  text-align: center;
}

.benchmark-workspace table input[type="number"] {
  text-align: right;
}

.quickvalue-rating-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  grid-auto-flow: row;
  gap: 10px 12px;
  margin-top: 10px;
}

.quickvalue-rating-section:nth-child(1) { grid-column: 1; grid-row: 1; align-self: start; }
.quickvalue-rating-section:nth-child(2) { grid-column: 1; grid-row: 2; align-self: start; }
.quickvalue-rating-section:nth-child(3) { grid-column: 2; grid-row: 1; align-self: start; }
.quickvalue-rating-section:nth-child(4) { grid-column: 2; grid-row: 2; align-self: start; }
.rating-input-card .rating-footnote { margin-top: 8px; }

.report-amount-editor-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.report-amount-editor-card > span,
.report-amount-editor-card > small {
  grid-column: 1 / -1;
}

.report-amount-editor-card > input {
  grid-column: 1;
  min-width: 0;
}

.report-amount-reset-button {
  grid-column: 2;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  background: #f6f9fc;
  color: #24415f;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.report-amount-reset-button:hover {
  border-color: #477ca8;
  background: #edf4fa;
}

/* 다중 평가모형: 기존 화면 밀도를 유지하고 신규 표의 행 높이는 내용에 맡긴다. */
.valuation-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.valuation-purpose-grid label {
  display: grid;
  gap: 6px;
  color: #52657a;
  font-size: 12px;
  font-weight: 700;
}

.valuation-purpose-grid input,
.valuation-purpose-grid select,
.requesting-institution-field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 36px 8px 11px;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  background-color: #fff;
  color: #19324c;
  font: inherit;
  box-shadow: 0 1px 2px rgba(19, 43, 70, .04);
}

.valuation-purpose-grid input:focus,
.valuation-purpose-grid select:focus,
.requesting-institution-field input:focus,
.valuation-method-selector select:focus {
  border-color: #477ca8;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(71, 124, 168, .14);
}

.top-actions .requesting-institution-field {
  min-width: 205px;
  height: 42px;
  padding-top: 4px;
  padding-bottom: 4px;
  grid-template-columns: minmax(185px, 220px);
  grid-template-rows: 12px 18px;
  align-content: center;
  gap: 0;
}

.top-actions .requesting-institution-field input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  box-shadow: none;
}

.top-actions .date-chip {
  height: 42px;
}

.top-actions .requesting-institution-field input:focus {
  border: 0;
  box-shadow: none;
}

.top-actions .requesting-institution-field:focus-within {
  border-color: #477ca8;
  box-shadow: 0 0 0 3px rgba(71, 124, 168, .14);
}
.recovery-reference-note { color: #6a5530; }

.valuation-method-planned-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: #f6f9fc;
  color: #52657a;
  font-size: 12px;
}

.valuation-method-planned-note strong { color: #193a5d; }

.valuation-method-grid {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.42fr);
  gap: 12px;
}

.valuation-method-display,
.valuation-method-grid > .valuation-formula-card { min-height: 142px; }

.valuation-method-selector label {
  display: grid;
  gap: 8px;
  color: #52657a;
  font-size: 12px;
  font-weight: 750;
}

.valuation-method-selector select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 11px;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  background-color: #fff;
  color: #19324c;
  font: inherit;
  font-weight: 700;
}

.valuation-method-grid > .valuation-method-selector { display: none; }
.valuation-method-grid > .valuation-formula-card { grid-column: 2; }
.valuation-formula-list { display: grid; gap: 8px; margin-top: 10px; }
.valuation-formula-list > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid #e0e7ef; border-radius: 8px; background: #f8fafc; }
.valuation-formula-list > div.is-active { border-color: #8daec9; background: #f0f6fb; }
.valuation-formula-list code { color: #334d66; font-family: inherit; font-size: 12px; white-space: normal; }

.preparation-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.sales-growth-auto-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #c8d9e8;
  border-radius: 8px;
  background: #f4f8fc;
  color: #35536e;
  font-size: 11px;
}

.sales-growth-auto-note button { padding: 5px 9px; border: 1px solid #9db6ca; border-radius: 7px; background: #fff; color: #244c6d; cursor: pointer; }
.basic-valuation-method-selector {
  min-height: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

.basic-valuation-method-selector > label {
  grid-template-columns: minmax(120px, .28fr) minmax(260px, 1fr);
  align-items: center;
}

.basic-valuation-method-selector .valuation-method-planned-note {
  margin-top: 10px;
}
.royalty1-financial-heading { margin: 18px 0 9px; color: #19324c; font-size: 14px; }
.royalty1-financial-heading small { color: #6c7e90; font-size: 11px; font-weight: 600; }
.tax-engine-card-in-discount { display: none !important; }

.method1-valuation-workbench .industry-finance-table th,
.method1-valuation-workbench .industry-finance-table td,
.method1-valuation-workbench .tax-calculation-table th,
.method1-valuation-workbench .tax-calculation-table td {
  height: auto !important;
  min-height: 0 !important;
  white-space: normal;
}

.quick-fair-value-section ul {
  margin: 0;
  padding: 12px 18px 12px 32px;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  background: #eef3f8;
  color: #102a56;
  font-size: 10px;
  line-height: 1.55;
  break-inside: avoid-page;
  page-break-inside: avoid;
}

.quick-fair-value-section li + li { margin-top: 3px; }

.quick-disclaimer-group {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.quick-disclaimer-group .quick-disclaimer {
  margin: 0;
}

@media print {
  .quick-fair-value-section ul {
    background-color: #eef2f7 !important;
    box-shadow: inset 0 0 0 1000px #eef2f7 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.pioneering-confirm-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, .55fr);
  gap: 8px;
}

.pioneering-benchmark-grid,
.pioneering-decision-grid,
.method1-investment-fields {
  align-items: start;
}

.method1-investment-grid {
  display: grid;
  gap: 10px;
}

.method1-investment-grid > strong {
  color: #19324c;
  font-size: 14px;
}

.pioneering-decision-grid .valuation-field {
  align-items: start;
}

.pioneering-auto-note {
  border-color: #9fc9bb;
  background: #f2fbf7;
}

.pioneering-auto-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.pioneering-auto-controls label {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.pioneering-auto-controls label > span,
.cretop-pioneering-head small,
.cretop-unit-note {
  color: #667085;
  font-size: 12px;
}

.pioneering-auto-controls select,
.pioneering-auto-controls button {
  min-height: 36px;
}

.cretop-pioneering-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.cretop-pioneering-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cretop-pioneering-head > div {
  display: grid;
  gap: 3px;
}

.cretop-pioneering-head > span {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  color: #12624b;
  background: #e1f4ec;
  font-size: 12px;
  font-weight: 800;
}

.cretop-pioneering-table-wrap {
  overflow-x: auto;
}

.cretop-pioneering-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.cretop-pioneering-table th,
.cretop-pioneering-table td {
  padding: 6px;
  border: 1px solid #d8dee8;
  text-align: center;
}

.cretop-pioneering-table th {
  color: #344054;
  background: #eef2f7;
  font-size: 12px;
  line-height: 1.3;
}

.cretop-pioneering-table input {
  width: 100%;
  min-width: 96px;
}

.cretop-input-error,
.cretop-exclusion-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.cretop-input-error {
  color: #b42318;
}

.cretop-exclusion-note {
  color: #475467;
}

.method1-valuation-workbench .score-matrix-table th,
.method1-valuation-workbench .score-matrix-table td,
.method1-valuation-workbench .quickvalue-rating-table th,
.method1-valuation-workbench .quickvalue-rating-table td,
.method1-investment-grid > *,
.method1-valuation-workbench .utilization-table > div {
  height: auto !important;
  min-height: 0 !important;
}

.method1-valuation-workbench .score-matrix-table th,
.method1-valuation-workbench .score-matrix-table td,
.method1-valuation-workbench .quickvalue-rating-table th,
.method1-valuation-workbench .quickvalue-rating-table td {
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1.35;
  white-space: normal;
}

@media print {
  .method1-valuation-workbench .score-matrix-table tr,
  .method1-valuation-workbench .quickvalue-rating-table tr,
  .method1-pioneering-row .report-table tr {
    height: auto !important;
    min-height: 0 !important;
    break-inside: avoid;
  }
}

@media (max-width: 900px) {
  .competitor-import-grid,
  .quickvalue-rating-sections,
  .valuation-purpose-grid,
  .valuation-method-grid,
  .preparation-period-grid,
  .pioneering-benchmark-grid,
  .pioneering-decision-grid,
  .method1-investment-fields,
  .pioneering-confirm-grid { grid-template-columns: 1fr; }
  .quickvalue-rating-section:nth-child(1),
  .quickvalue-rating-section:nth-child(2),
  .quickvalue-rating-section:nth-child(3),
  .quickvalue-rating-section:nth-child(4) { grid-column: auto; grid-row: auto; }

  .competitor-card-controls {
    align-items: flex-end;
    flex-direction: column;
  }

  .valuation-method-grid > .valuation-formula-card {
    grid-column: 1;
  }

  .basic-valuation-method-selector > label {
    grid-template-columns: 1fr;
  }
}

/* 2026-09-05 valuation overview and tab visibility */
.valuation-summary-grid {
  grid-template-columns: minmax(0, 2.35fr) minmax(280px, .65fr);
  align-items: stretch;
}

.valuation-summary-grid > .compact-value-hero {
  grid-column: 1 / -1;
}

.valuation-summary-grid > .valuation-formula-card {
  grid-column: 1;
}

.valuation-summary-grid > .valuation-check-card {
  grid-column: 2;
}

.valuation-tabs-list {
  display: flex !important;
  flex-wrap: wrap;
  align-content: stretch;
  width: 100%;
  height: auto !important;
  min-height: 48px;
  max-height: none !important;
  overflow: visible !important;
}

.valuation-tabs-list > button {
  flex: 1 1 140px;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .valuation-summary-grid {
    grid-template-columns: 1fr;
  }

  .valuation-summary-grid > .compact-value-hero,
  .valuation-summary-grid > .valuation-formula-card,
  .valuation-summary-grid > .valuation-check-card {
    grid-column: 1;
  }

  .valuation-tabs-list > button {
    flex-basis: calc(50% - 1px);
  }
}
