body.category-profitability-enhanced .category-profit-panel {
  --category-coral: #ff7855;
  --category-peach: #ffe4dd;
  --category-line: #ffd0c5;
  --category-green: #00a83b;
  --category-red: #e1192d;
  overflow: hidden;
}

body.category-profitability-enhanced .category-report-wrap {
  position: relative;
  max-height: min(100vh, 720px);
  min-height: 132px;
  overflow: auto;
  scrollbar-gutter: stable;
}

body.category-profitability-enhanced .category-report-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 12.8px;
}

body.category-profitability-enhanced .category-report-table th {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 12px 0 24px !important;
  background: var(--category-peach) !important;
  border-right: 1px solid var(--category-line);
  border-bottom: 1px solid #ffc3b5;
  color: #1a0c09;
  text-align: left;
  vertical-align: middle;
}

body.category-profitability-enhanced .category-report-table th:first-child {
  left: 0;
  z-index: 10;
  border-bottom-left-radius: 9px;
}

body.category-profitability-enhanced .category-report-table th:last-child {
  border-right: 0;
  border-bottom-right-radius: 9px;
}

body.category-profitability-enhanced .category-report-table th > button:first-child {
  min-width: 0;
  padding: 0;
  color: #1a0c09;
  font-size: 14.08px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

body.category-profitability-enhanced .category-report-table .column-filter-button {
  width: 28px;
  height: 28px;
  margin-left: 6px;
  color: var(--category-coral);
}

body.category-profitability-enhanced .category-report-table tbody tr {
  height: 43px !important;
}

body.category-profitability-enhanced .category-report-table tbody td {
  height: 43px !important;
  padding: 7px 24px !important;
  background: #fff;
  border-right: 1px solid var(--category-line);
  border-bottom: 1px solid var(--category-line);
  color: #45312b;
  font-size: 12.8px !important;
  font-weight: 500;
  line-height: 16px;
  vertical-align: middle;
}

body.category-profitability-enhanced .category-report-table thead tr {
  height: 46px !important;
}

body.category-profitability-enhanced .category-report-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
}

body.category-profitability-enhanced .category-report-table tbody tr:hover td {
  background: #fff9f7;
}

body.category-profitability-enhanced .category-report-table td.category-sales {
  color: var(--category-coral) !important;
  font-weight: 600;
}

body.category-profitability-enhanced .category-report-table td.category-positive {
  color: var(--category-green) !important;
  font-weight: 600;
}

body.category-profitability-enhanced .category-report-table td.category-negative {
  color: var(--category-red) !important;
  font-weight: 700;
}

body.category-profitability-enhanced .category-report-table td.category-neutral {
  color: #6f625d !important;
  font-weight: 600;
}

body.category-profitability-enhanced .category-report-table .category-empty {
  position: static !important;
  height: 92px;
  color: #766963 !important;
  text-align: center;
}

body.category-profitability-enhanced .category-profit-panel .commission-footer {
  padding: 10px 22px 12px;
  font-size: 11px;
  line-height: 15px;
}

.category-download-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 15, 14, .66);
  backdrop-filter: blur(2px);
}

.category-download-modal {
  position: relative;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px 38px 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 10, 7, .35);
  color: #1a0c09;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
}

.category-download-modal h2 {
  margin: 0 42px 24px 0;
  font-size: 21px;
  line-height: 1.3;
}

.category-download-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #26120d;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}

.category-download-fields {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 14px;
}

.category-download-fields label {
  display: grid;
  gap: 7px;
  color: #6c5148;
  font-size: 12px;
  font-weight: 600;
}

.category-download-fields input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #f0b9ab;
  border-radius: 8px;
  background: #fffaf8;
  color: #1a0c09;
  font: 500 12px Poppins, sans-serif;
}

.category-download-create {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 44px;
  margin: 24px auto 0;
  border: 0;
  border-radius: 9px;
  background: #00bf00;
  color: #332711;
  font: 600 13px Poppins, sans-serif;
  cursor: pointer;
}

.category-download-note {
  margin: 18px 0 0;
  color: #8c4d40;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .category-download-modal { padding: 28px 20px 24px; }
  .category-download-fields { grid-template-columns: 1fr; }
}
