.validation-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: #f2f5f1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.section-intro .loss-heading {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.06;
}

.loss-heading span {
  display: block;
  position: relative;
  padding-left: .65em;
}

.loss-heading span::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green);
}

.loss-heading span + span {
  margin-top: .14em;
}

.date-limit {
  display: block;
  margin-top: 10px;
  color: #9fb2aa;
  font-size: 10px;
}

.loss-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.loss-totals > div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.loss-totals > div:nth-child(3n) {
  border-right: 0;
}

.loss-totals > div:nth-child(-n+3) {
  border-bottom: 1px solid var(--line);
}

.loss-totals span,
.loss-totals small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.loss-totals span {
  min-height: 28px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.loss-totals strong {
  display: block;
  margin: 8px 0 3px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.loss-total-accent {
  background: var(--green-dark);
  color: white;
}

.loss-total-accent span,
.loss-total-accent small {
  color: #c2d5cd;
}

.loss-percentage {
  display: block;
  margin: 1px 0 4px;
  color: #f2aa58;
  font-size: 15px;
  font-weight: 800;
}

.loss-closure-estimate {
  background: #fff8ed;
}

.loss-closure-estimate strong {
  color: #a74718;
}

.fose-deductions-total {
  background: #f1f7f3;
}

.fose-deductions-total strong {
  color: var(--green-dark);
}

.market-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.money-input {
  position: relative;
  display: block;
  margin-top: 7px;
}

.money-input input {
  width: 100%;
  margin-top: 0;
  padding-right: 76px;
}

.money-input > span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .03em;
  pointer-events: none;
}

.loss-estimation-note {
  margin: 0;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  background: #f2f5f1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.loss-estimation-note.active {
  border-left: 4px solid var(--orange);
  background: #fff8ed;
  color: #6d481e;
  font-weight: 650;
}

.loss-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.upload-options-single {
  grid-template-columns: 1fr;
}

.upload-options-single input[readonly] {
  cursor: default;
  background: #f2f5f1;
  color: var(--green-dark);
  font-weight: 700;
}

.monthly-curtailment-loss-row {
  background: rgba(255, 146, 43, .08);
}

.monthly-curtailment-loss-row td:first-child strong {
  color: var(--orange);
}

.upload-file-meta,
.upload-economic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-file-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-file-meta input[readonly] {
  cursor: default;
  background: #f2f5f1;
  color: var(--green-dark);
  font-weight: 700;
}

.upload-economic-fieldset {
  margin: 14px 0 12px;
  padding: 14px 16px 12px;
  border: 1px solid #d9e1dc;
  border-radius: 10px;
  background: #fbfcf9;
}

.upload-economic-fieldset legend {
  padding: 0 7px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.upload-economic-fieldset > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.upload-economic-fieldset .upload-options {
  margin: 11px 0 7px;
}

.upload-economic-fieldset .money-input {
  margin-top: 7px;
}

.upload-decimal-hint {
  padding: 0;
}

.analysis-required-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-required-fields input[readonly] {
  cursor: default;
  background: #f2f5f1;
  color: var(--green-dark);
  font-weight: 700;
}

.required-mark {
  color: #c7561c;
}

.deddie-instructions {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  background: #fff8ed;
  color: #43564f;
}

.deddie-instructions h3 {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.deddie-instructions p,
.deddie-instructions ol {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.deddie-instructions ol {
  margin-top: 6px;
  padding-left: 20px;
}

.csv-import-section .upload-options {
  margin: 12px 0;
}

.csv-import-section .validation-note {
  margin: 8px 0 12px;
  line-height: 1.4;
}

.upload-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: #edf6f0;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.45;
}

.upload-message.error {
  border-left-color: #c7561c;
  background: #fff0e8;
  color: #7d3420;
}

.csv-import-section .wide {
  padding: 12px 15px;
}

.deddie-instructions a {
  color: #b94f16;
  font-weight: 750;
}

.report-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-filter-grid input[readonly] {
  cursor: default;
  background: #f2f5f1;
  color: var(--green-dark);
  font-weight: 700;
}

.locked-economic-fields .loss-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.locked-economic-fields .loss-actions button {
  flex: 0 1 190px;
}

.locked-economic-note {
  margin: 0;
  padding: 0 25px 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.loss-period-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 25px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f5f7f3, #eef3ed);
}

.loss-period-banner > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.loss-period-values {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 15px;
}

.loss-period-values div {
  display: grid;
  gap: 4px;
}

.loss-period-values small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.loss-period-values strong {
  color: #8a9691;
  font-size: 12px;
}

.loss-period-values i {
  color: #9ba7a2;
  font-size: 15px;
  font-style: normal;
}

.loss-period-banner.ready {
  background: linear-gradient(135deg, #e8f3ec, #f5f8f2);
}

.loss-period-banner.ready .loss-period-values strong {
  color: var(--green-dark);
}

.greek-decimal-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.csv-import-section,
.market-calendar,
.metrics,
.panel,
.split {
  isolation: isolate;
}

.csv-import-section + .market-calendar {
  margin-top: 0;
}

.summary-note {
  margin: 0;
  padding: 11px 28px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
  color: var(--muted);
  font-size: 11px;
}

.article-133-sos {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid #e8a36f;
  border-left: 6px solid #c7561c;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff3e6, #fffdf8 58%, #eef6ef);
  box-shadow: 0 18px 42px rgba(111, 55, 20, .12);
}

.article-133-badge {
  align-self: start;
  padding: 7px 9px;
  border-radius: 7px;
  background: #c7561c;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.article-133-body .kicker {
  margin: 1px 0 6px;
}

.article-133-body h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 400;
}

.article-133-summary {
  max-width: 980px;
  margin: 12px 0;
  color: #344d44;
  font-size: 13px;
  line-height: 1.65;
}

.article-133-sos details {
  margin-top: 12px;
  border-top: 1px solid rgba(199, 86, 28, .2);
}

.article-133-sos summary {
  padding: 13px 0 5px;
  color: #a74718;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.article-133-text {
  margin-top: 10px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  color: #354a43;
  font-size: 12px;
  line-height: 1.7;
}

.article-133-text h3,
.article-133-text h4 {
  margin: 0 0 10px;
  color: var(--green-dark);
}

.article-133-text h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.article-133-text h4 {
  font-size: 13px;
  line-height: 1.5;
}

.article-133-text blockquote {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 3px solid #c7561c;
  background: #fff7ed;
}

.article-133-source {
  display: inline-block;
  margin-top: 12px;
  color: #a74718;
  font-size: 11px;
  font-weight: 800;
}

.monthly-totals-primary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.monthly-totals-primary > div {
  min-width: 0;
}

.monthly-totals-primary span {
  min-height: 30px;
}

.monthly-totals-primary small {
  display: block;
  margin: 5px 0 0;
  line-height: 1.4;
}

.fose-compensation-total {
  background: #f4f8f5;
}

.differential-energy-total {
  background: #fff8ed;
}

.differential-compensation-total {
  background: var(--green-dark);
  color: #fff;
}

.differential-compensation-total span,
.differential-compensation-total small {
  color: #c2d5cd;
}

.total-compensation-total {
  background: #f5ead0;
}

.total-compensation-total strong {
  color: #9b4b20;
}

.production-rate-strip {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}

.production-rate-strip p {
  margin: 0;
  color: #83918b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.production-rate-strip > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.production-rate-strip span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.production-rate-strip strong {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.production-rate-strip small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.month-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-detail-table th,
.month-detail-table td {
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: left;
}

.month-detail-table th:nth-child(1) { width: 170px; }
.month-detail-table th:nth-child(2) { width: 210px; }

.quarter-analysis-date {
  margin: 7px 0 0;
  color: #c7561c;
  font-size: 13px;
  font-weight: 800;
}

.quarter-matrix-wrap {
  overflow: visible;
}

.quarter-matrix {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.quarter-column {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.quarter-column:last-child {
  border-right: 0;
}

.quarter-column-header,
.quarter-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid #ebede9;
}

.quarter-column-header {
  background: #f8faf7;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quarter-column-header span:last-child {
  text-align: right;
}

.quarter-time {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.quarter-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.quarter-price {
  font-size: 12px;
  white-space: nowrap;
}

.quarter-item.differential-adjustment-excluded {
  background: #fff3ef;
  box-shadow: inset 3px 0 0 var(--red);
}

.quarter-item.differential-adjustment-excluded .quarter-price {
  color: var(--red);
  font-weight: 800;
}

.quarter-support-status {
  display: block;
  margin-top: 2px;
  color: #a52f2b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.differential-exclusion-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.differential-exclusion-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--red);
}

.quarter-matrix-empty {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 1100px) {
  .quarter-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quarter-column:nth-child(4n) { border-right: 0; }
}

.losses-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#curtailments {
  scroll-margin-top: 96px;
}

.curtailments-section {
  margin: 10px 0 72px;
  padding: 48px;
  border-radius: 8px;
  background: #0d211b;
  color: white;
  box-shadow: var(--shadow);
}

.curtailments-heading {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 34px;
}

.curtailments-heading .eyebrow {
  color: var(--lime);
}

.curtailments-title-block {
  min-width: 0;
}

.curtailments-context {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: -5px 0 18px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.curtailments-context span {
  display: inline-flex;
  gap: 6px;
}

.curtailments-context strong {
  color: #f2aa58;
  font-size: inherit;
}

.curtailments-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.curtailments-heading > p {
  margin: 0;
  color: #b9c8c2;
  font-size: 13px;
  line-height: 1.75;
}

.curtailments-layout {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.curtailment-calendar-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  background: rgba(255,255,255,.07);
}

.curtailment-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.curtailment-card-heading .kicker {
  margin-bottom: 5px;
  color: var(--lime);
}

.curtailment-card-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.curtailment-card-heading > strong {
  color: #c6d4cf;
  font-size: 11px;
  text-align: right;
}

.curtailment-weekdays,
.curtailment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.curtailment-weekdays {
  margin-bottom: 6px;
  color: #91a49d;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.curtailment-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  color: #edf4f1;
  font-size: 12px;
}

.curtailment-day:hover:not(:disabled) {
  border-color: var(--lime);
  background: rgba(215,243,95,.12);
}

.curtailment-day:disabled {
  cursor: default;
  opacity: .2;
}

.curtailment-day-empty {
  border-color: transparent;
  background: transparent;
}

.curtailment-day-alert {
  border-color: #ef716d;
  background: #d84b47;
  color: white;
  box-shadow: 0 0 0 3px rgba(216,75,71,.13);
  font-weight: 850;
}

.curtailment-day-alert small {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 7px;
  font-weight: 800;
}

.curtailment-day-selected {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.curtailment-calendar-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 46px 12px;
  color: #aebfb8;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.curtailment-calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #b8c8c2;
  font-size: 10px;
}

.curtailment-calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--red);
}

.curtailment-chart-panel {
  margin: 0;
  min-width: 0;
  color: var(--ink);
}

.curtailment-panel-heading {
  align-items: flex-start;
}

.curtailment-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.curtailment-key {
  display: inline-block;
  width: 14px;
  height: 8px;
  margin-right: 5px;
  border-radius: 1px;
}

.curtailment-key.production { background: var(--green); }
.curtailment-key.estimate-negative { border: 1px dashed var(--red); background: transparent; }
.curtailment-key.estimate-positive { border: 1px dashed var(--orange); background: transparent; }
.curtailment-key.dam { height: 2px; background: var(--ink); vertical-align: middle; }

.curtailment-chart-wrap {
  position: relative;
  height: 390px;
  padding: 20px 10px 6px;
  border-bottom: 1px solid var(--line);
}

.curtailment-chart-wrap canvas {
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.curtailment-tooltip {
  position: absolute;
  z-index: 3;
  width: 235px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  background: rgba(13,33,27,.96);
  color: white;
  box-shadow: 0 12px 30px rgba(13,33,27,.2);
  pointer-events: none;
}

.curtailment-tooltip strong,
.curtailment-tooltip span {
  display: block;
}

.curtailment-tooltip strong { margin-bottom: 4px; font-size: 12px; }
.curtailment-tooltip span { color: #c9d6d1; font-size: 10px; line-height: 1.45; }

.curtailment-day-totals,
.curtailment-focus {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.curtailment-day-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.curtailment-focus { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.curtailment-day-totals > div,
.curtailment-focus > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.curtailment-day-totals > div:last-child,
.curtailment-focus > div:last-child { border-right: 0; }

.curtailment-day-totals span,
.curtailment-focus span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.curtailment-day-totals strong {
  display: inline-block;
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.curtailment-day-totals small { margin-left: 4px; color: var(--muted); font-size: 10px; }

.curtailment-focus {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f8faf7;
}

.curtailment-focus strong {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.curtailment-status {
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.print-report-meta {
  display: none;
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  body {
    background: white;
    color: #10251f;
  }

  body * {
    visibility: hidden;
  }

  body > header,
  body > footer {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  body.print-loss-report main > *,
  body.print-production-report main > *,
  body.print-market-report main > * {
    display: none !important;
  }

  body.print-loss-report main > #negative {
    display: block !important;
  }

  body.print-loss-report #negative,
  body.print-loss-report #negative * {
    visibility: visible;
  }

  body.print-loss-report #negative {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  body.print-loss-report #negative .section-intro {
    margin-bottom: 18px;
  }

  body.print-loss-report #negative .section-intro h2 {
    font-size: 28px;
  }

  body.print-loss-report #negative .section-intro > p:last-child,
  body.print-loss-report #negative .loss-period-banner,
  body.print-loss-report #negative .filter-grid,
  body.print-loss-report #negative .greek-decimal-hint,
  body.print-loss-report #negative .locked-economic-note,
  body.print-loss-report #negative .hint {
    display: none;
  }

  body.print-loss-report #negative .panel {
    border: 0;
    box-shadow: none;
  }

  body.print-loss-report .print-report-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #cfd6d1;
    border-bottom: 0;
  }

  body.print-loss-report .print-report-meta > div {
    padding: 10px 12px;
    border-right: 1px solid #cfd6d1;
    border-bottom: 1px solid #cfd6d1;
  }

  body.print-loss-report .print-report-meta > div:nth-child(2n) {
    border-right: 0;
  }

  body.print-loss-report .print-report-meta > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  body.print-loss-report .print-report-meta span,
  body.print-loss-report .print-report-meta strong {
    display: block;
  }

  body.print-loss-report .print-report-meta span {
    color: #65756f;
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  body.print-loss-report .print-report-meta strong {
    margin-top: 5px;
    font-size: 12px;
  }

  body.print-loss-report #negative .loss-totals {
    break-inside: avoid;
  }

  body.print-loss-report #negative .table-wrap {
    max-height: none;
    overflow: visible;
  }

  body.print-loss-report #negative table {
    font-size: 8px;
  }

  body.print-loss-report #negative th {
    position: static;
  }

  body.print-loss-report #negative thead {
    display: table-header-group;
  }

  body.print-loss-report #negative th,
  body.print-loss-report #negative td {
    padding: 5px 7px;
  }

  body.print-loss-report #negative .day-link {
    padding: 0;
    color: inherit;
  }

  body.print-production-report main > #production {
    display: block !important;
  }

  body.print-production-report #production,
  body.print-production-report #production * {
    visibility: visible;
  }

  body.print-production-report #production {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  body.print-production-report #production .panel-heading {
    padding: 0 0 14px;
  }

  body.print-production-report #production .month-actions,
  body.print-production-report #production .summary-note {
    display: none !important;
  }

  body.print-production-report #production .table-wrap {
    max-height: none;
    overflow: visible;
  }

  body.print-production-report #production table {
    font-size: 8px;
  }

  body.print-production-report #production thead {
    display: table-header-group;
  }

  body.print-production-report #production th {
    position: static;
  }

  body.print-production-report #production th,
  body.print-production-report #production td {
    padding: 4px 7px;
    text-align: left;
  }

  body.print-production-report #production tr {
    break-inside: avoid;
  }

  body.print-market-report main > #marketMetrics {
    display: grid !important;
  }

  body.print-market-report main > #marketChart,
  body.print-market-report main > #quarterAnalysis {
    display: block !important;
  }

  body.print-market-report #marketMetrics,
  body.print-market-report #marketMetrics *,
  body.print-market-report #marketChart,
  body.print-market-report #marketChart *,
  body.print-market-report #quarterAnalysis,
  body.print-market-report #quarterAnalysis * {
    visibility: visible;
  }

  body.print-market-report #marketMetrics {
    margin: 0 0 12px;
    break-inside: avoid;
  }

  body.print-market-report #marketChart,
  body.print-market-report #quarterAnalysis {
    margin: 0 0 14px;
    border: 1px solid #cfd6d1;
    box-shadow: none;
    break-inside: avoid;
  }

  body.print-market-report .panel-heading {
    padding: 14px 16px;
  }

  body.print-market-report [data-print-market],
  body.print-market-report #downloadCsv {
    display: none !important;
  }

  body.print-market-report .chart-wrap {
    height: 290px;
    padding: 10px 14px;
  }

  body.print-market-report .quarter-matrix-wrap {
    max-height: none;
    overflow: visible;
  }

  body.print-market-report .quarter-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.print-market-report .quarter-column {
    break-inside: avoid;
  }
}

@media (max-width: 700px) {
  .article-133-sos { grid-template-columns: 1fr; padding: 18px; }
  .article-133-badge { justify-self: start; }
  .article-133-text { padding: 14px; }
  .loss-period-banner { align-items: flex-start; flex-direction: column; }
  .loss-period-values { width: 100%; }
  .loss-totals { grid-template-columns: 1fr; }
  .loss-totals > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .loss-totals > div:last-child { border-bottom: 0; }
  .market-panel-actions { align-items: flex-start; flex-wrap: wrap; }
  .analysis-required-fields,
  .report-filter-grid { grid-template-columns: 1fr; }
  .upload-file-meta,
  .upload-economic-grid { grid-template-columns: 1fr; }
  .quarter-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quarter-column:nth-child(2n) { border-right: 0; }
  .monthly-totals-primary { grid-template-columns: 1fr; }
  .monthly-totals-primary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .monthly-totals-primary > div:last-child { border-bottom: 0; }
  .production-rate-strip { grid-template-columns: 1fr; gap: 10px; padding: 15px 20px; }
  .production-rate-strip > div { padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .month-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .curtailments-section { margin-left: -16px; margin-right: -16px; padding: 32px 16px; border-radius: 0; }
  .curtailments-heading { grid-template-columns: 1fr; gap: 18px; }
  .curtailments-layout { grid-template-columns: 1fr; }
  .curtailment-calendar-card { padding: 18px; }
  .curtailment-panel-heading { align-items: flex-start; }
  .curtailment-legend { justify-content: flex-start; }
  .curtailment-chart-wrap { height: 330px; padding-left: 2px; padding-right: 2px; }
  .curtailment-focus { grid-template-columns: 1fr; }
  .curtailment-focus > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .curtailment-focus > div:last-child { border-bottom: 0; }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .loss-totals { grid-template-columns: repeat(2, 1fr); }
  .loss-totals > div { border-bottom: 1px solid var(--line); }
  .loss-totals > div:nth-child(2n) { border-right: 0; }
  .loss-totals > div:nth-last-child(-n+2) { border-bottom: 0; }
  .monthly-totals-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monthly-totals-primary > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .monthly-totals-primary > div:nth-child(2n) { border-right: 0; }
  .monthly-totals-primary > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .production-rate-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-rate-strip > p { grid-column: 1 / -1; }
  .production-rate-strip > div:first-of-type { padding-left: 0; border-left: 0; }
  .curtailments-heading { grid-template-columns: .85fr 1.15fr; gap: 32px; }
  .curtailments-layout { grid-template-columns: 1fr; }
  .curtailment-calendar-card { max-width: 430px; }
}

@media (max-width: 420px) {
  .loss-period-values { grid-template-columns: 1fr; gap: 8px; }
  .loss-period-values i { display: none; }
  .quarter-matrix { grid-template-columns: 1fr; }
  .quarter-column { border-right: 0; }
  .curtailment-card-heading { align-items: flex-start; flex-direction: column; }
  .curtailment-card-heading > strong { text-align: left; }
  .curtailment-day-totals { grid-template-columns: 1fr; }
  .curtailment-day-totals > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .curtailment-day-totals > div:last-child { border-bottom: 0; }
}
