.sales-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  min-height: 330px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e2dfcc;
  border-radius: 24px;
  background: #2d2d29;
  color: #fff;
  box-shadow: var(--shadow-panel);
}
.sales-intro-copy { padding: clamp(30px, 4.5vw, 62px); align-self: center; }
.sales-intro-label {
  display: inline-block;
  margin-bottom: 18px;
  color: #e7d991;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.sales-intro h2 { max-width: 570px; margin-bottom: 14px; font-size: clamp(27px, 3vw, 43px); line-height: 1.22; letter-spacing: -1.4px; }
.sales-intro p { max-width: 560px; margin-bottom: 28px; color: #d5d4ca; font-size: 14px; line-height: 1.85; }
.sales-intro dl { display: flex; gap: 10px; margin: 0; }
.sales-intro dl div { min-width: 104px; padding: 10px 13px; border: 1px solid #ffffff1f; border-radius: 12px; background: #ffffff0a; }
.sales-intro dt { margin-bottom: 3px; color: #aaa99f; font-size: 10px; }
.sales-intro dd { margin: 0; font-size: 12px; font-weight: 650; }
.sales-intro img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: 62% center; }

.sales-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.sales-calculator, .sales-result { min-height: 430px; }
.sales-calculator-body { padding: 2px 22px 24px; }
.sales-calculator .field { margin-bottom: 16px; }
.sales-calculator .field input, .sales-calculator .field select { min-height: 48px; background: #faf9f2; }
.sales-metered-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.sales-metered-field[hidden] { display: none; }
.sales-metered-field .btn { margin-bottom: 18px; }
.sales-night-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #e2dfcf;
  border-radius: 14px;
  background: #faf8ec;
  cursor: pointer;
}
.sales-night-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; }
.sales-night-choice span, .sales-night-choice small { display: block; }
.sales-night-choice strong { color: #3f3e37; font-size: 13px; }
.sales-night-choice small { margin-top: 3px; font-size: 11px; }

.sales-result {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid #393935;
  border-radius: 20px;
  background: #2d2d29;
  color: #fff;
  box-shadow: var(--shadow-panel);
}
.sales-result-kicker { margin-bottom: 18px; color: #e7d991; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
.sales-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.sales-total>span { color: #d7c96f; font-size: 22px; }
.sales-total strong { font-size: clamp(42px, 5vw, 66px); font-weight: 520; line-height: 1; letter-spacing: -2.5px; }
.sales-total small { color: #aaa99f; }
.sales-result>p { color: #c9c8be; line-height: 1.75; }
.sales-breakdown { display: grid; gap: 0; margin: 20px 0; border-top: 1px solid #ffffff17; }
.sales-breakdown div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #ffffff17; }
.sales-breakdown dt { color: #aaa99f; }
.sales-breakdown dd { margin: 0; text-align: right; font-weight: 650; }
.sales-settlement-note { margin-bottom: 24px; font-size: 12px; }
.sales-result .btn { align-self: flex-start; margin-top: auto; background: #f1e29c; border-color: #f1e29c; color: #292927; }
.sales-result-error { border-color: #e3beb7; background: #fff8f6; color: #7f2f29; }
.sales-result-error .sales-result-kicker { color: #a43530; }
.sales-result-error h2 { font-size: 25px; }
.sales-result-error>p { color: #7f2f29; }
.sales-result-custom h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 44px); }
.sales-custom-note { margin: 10px 0 22px; padding: 13px 15px; border: 1px solid #eadc9e55; border-radius: 12px; background: #eadc9e12; color: #eee2a9; }

.sales-reference { overflow: hidden; }
.main .sales-table-scroll { max-height: 620px; overflow: auto; }
.sales-table { min-width: 790px; }
.sales-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sales-table th:first-child { position: sticky; left: 0; z-index: 1; white-space: nowrap; }
.sales-table thead th { position: sticky; top: 0; z-index: 2; }
.sales-table thead th:first-child { z-index: 3; }
.sales-table td strong, .sales-table td small { display: block; }
.sales-table td small { margin-top: 3px; font-size: 10px; }
.sales-custom-cell { color: #80622c; font-size: 11px; font-weight: 650; }
.sales-table-note { padding: 14px 22px; border-top: 1px solid #eceadf; background: #fffdf4; color: #706b55; font-size: 11px; }

@media (max-width: 900px) {
  .sales-intro { grid-template-columns: 1fr; }
  .sales-intro-copy { padding: 34px; }
  .sales-intro img { height: 270px; min-height: 0; }
  .sales-workspace { grid-template-columns: 1fr; }
  .sales-calculator, .sales-result { min-height: auto; }
}
@media (max-width: 560px) {
  .sales-intro { border-radius: 18px; }
  .sales-intro-copy { padding: 26px 22px; }
  .sales-intro h2 { font-size: 28px; }
  .sales-intro dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sales-intro dl div { min-width: 0; padding: 9px; }
  .sales-intro img { height: 210px; }
  .sales-metered-field { grid-template-columns: 1fr; }
  .sales-metered-field .btn { width: 100%; margin: -5px 0 18px; }
  .sales-result { padding: 25px 21px; }
  .sales-total strong { font-size: 43px; }
  .sales-breakdown div { align-items: baseline; }
  .sales-reference .panel-head { padding: 18px 18px 14px; }
}
@media (max-width: 760px) {
  .main .sales-table-scroll { max-height: 540px; overflow: auto; }
  .main .table-scroll.sales-table-scroll table { display: table; width: 790px; }
  .main .table-scroll.sales-table-scroll thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .main .table-scroll.sales-table-scroll tbody { display: table-row-group; }
  .main .table-scroll.sales-table-scroll tbody tr { display: table-row; padding: 0; border: 0; }
  .main .table-scroll.sales-table-scroll tbody th, .main .table-scroll.sales-table-scroll tbody td {
    display: table-cell;
    width: auto;
    padding: 13px 16px;
    border-bottom: 1px solid #eeeee5;
    text-align: left;
    white-space: nowrap;
  }
  .main .table-scroll.sales-table-scroll tbody td::before { content: none; }
  .main .table-scroll.sales-table-scroll td > * { min-width: initial; grid-column: auto; }
}
