    .table-wrap { overflow: auto; }
    .pivot-tbl { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
    .pivot-tbl th, .pivot-tbl td { padding: 4px 8px; border: 1px solid #ddd; white-space: nowrap; }
    .pivot-tbl th { position: sticky; top: 0; background: #f1f1f1; z-index: 1; }
    .pivot-tbl td { text-align: right; }
    .pivot-tbl td:first-child { text-align: left; font-weight: 500; min-width: 160px; }
    .pivot-tbl tr.total-row { font-weight: 700; border-top: 2px solid #333; background: #f0f4ff; }
    .section-title { font-weight: 600; margin-top: 32px; }
    .filters { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
    .filters label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 2px; }
    .filters select { min-width: 180px; padding: 4px 8px; }
    .detail-tbl { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
    .detail-tbl th, .detail-tbl td { padding: 4px 8px; border: 1px solid #ddd; white-space: nowrap; }
    .detail-tbl th { position: sticky; top: 0; background: #f1f1f1; z-index: 1; }
    .detail-tbl td { text-align: right; }
    .detail-tbl td:nth-child(1), .detail-tbl td:nth-child(2),
    .detail-tbl td:nth-child(3), .detail-tbl td:nth-child(5) { text-align: left; }
    .manual-overrides-tbl td:nth-child(4),
    .manual-overrides-tbl td:nth-child(7),
    .manual-overrides-tbl td:nth-child(8) { text-align: left; }
    .manual-overrides-tbl td:nth-child(5),
    .manual-overrides-tbl td:nth-child(6) { text-align: right; }
    .commodity-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
    .commodity-tabs button { padding: 10px 32px; border: 2px solid #333; background: #f5f5f5; cursor: pointer;
                             font-size: 1rem; border-radius: 8px; font-weight: 600; }
    .commodity-tabs button.active { background: #333; color: #fff; }
    .commodity-section { display: none; }
    .commodity-section.active { display: block; }
    .tabs { display: flex; gap: 0; margin-top: 8px; border-bottom: 2px solid #ddd; }
    .tabs button { padding: 8px 18px; border: none; background: #f0f0f0; cursor: pointer;
                   font-size: 0.85rem; border-radius: 4px 4px 0 0; margin-right: 2px; }
    .tabs button.active { background: #fff; border: 2px solid #ddd; border-bottom: 2px solid #fff;
                          margin-bottom: -2px; font-weight: bold; }
    .tab-content { display: none; }
    .tab-content.active { display: block; }

    .download-btn { padding: 6px 16px; border: 1px solid #333; border-radius: 4px; background: #f5f5f5;
                    cursor: pointer; font-size: 0.85rem; font-weight: 600; }
    .download-btn:hover { background: #e0e0e0; }
    .neg { color: #d1242f; }
    .pos { color: #1a7f37; }
    .bushel-note { display: block; color: #666; font-size: 0.72rem; font-weight: 500; }
    .pivot-tbl th[class^="quarter-pair-q"],
    .pivot-tbl td[class^="quarter-pair-q"] {
      border-left: 2px solid #111;
      border-right: 2px solid #111;
    }
    .pivot-tbl th[class^="quarter-pair-q"] { border-top: 2px solid #111; }
    .pivot-tbl tr:last-child td[class^="quarter-pair-q"] { border-bottom: 2px solid #111; }
    .pivot-tbl th.year-pair-total, .pivot-tbl td.year-pair-total {
      border: 2px solid #111;
      font-weight: 700;
    }
