/* İade Zarar Analizi: Melontik-compatible presentation, layout only. */
body.return-loss-melontik-ui .return-loss-panel {
  --return-peach: #ffe4dd;
  --return-line: #ffcabc;
  --return-soft-line: #ffe0d8;
  --return-coral: #ff7855;
  --return-red: #ff0000;
  --return-green: #00a83b;
  --return-dark: #26120d;
  overflow: hidden;
  border-radius: 12px;
}

body.return-loss-melontik-ui .return-loss-panel .return-report-wrap {
  height: auto !important;
  min-height: 128px !important;
  max-height: 100vh !important;
  overflow: auto !important;
  scrollbar-gutter: stable;
}

body.return-loss-melontik-ui .return-report-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  color: var(--return-dark);
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
}

body.return-loss-melontik-ui .return-report-table :is(th, td) { min-width: 0 !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(1) { width: 12.66% !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(2) { width: 12.66% !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(3) { width: 12.66% !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(4) { width: 14.54% !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(5) { width: 15.51% !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(6) { width: 12.72% !important; }
body.return-loss-melontik-ui .return-report-table :is(th, td):nth-child(7) { width: 18.98% !important; }

body.return-loss-melontik-ui .return-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  box-sizing: border-box;
  height: 46px !important;
  padding: 0 12px 0 24px !important;
  border-right: 1px solid var(--return-line);
  border-bottom: 1px solid #ffb8a6;
  background: var(--return-peach) !important;
  color: var(--return-dark) !important;
  font-size: 14.08px !important;
  font-weight: 600 !important;
  line-height: 18px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

body.return-loss-melontik-ui .return-report-table :is(th, td):last-child { border-right: 0; }

body.return-loss-melontik-ui .return-report-table thead th > button:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 30px);
  min-height: 28px;
  padding: 0 4px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

body.return-loss-melontik-ui .return-report-table .column-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--return-coral);
  vertical-align: middle;
  cursor: pointer;
}

body.return-loss-melontik-ui .return-report-table .column-filter-button:is(:hover, :focus-visible) {
  background: #fff5f2;
  color: #a53c27;
  outline: none;
}

body.return-loss-melontik-ui .return-report-table tbody tr { height: 32px !important; }

body.return-loss-melontik-ui .return-report-table tbody td {
  box-sizing: border-box;
  height: 32px !important;
  padding: 7px 24px !important;
  border-right: 1px solid var(--return-soft-line);
  border-bottom: 1px solid var(--return-soft-line);
  background: #fff !important;
  color: var(--return-dark);
  font-size: 12.8px !important;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

body.return-loss-melontik-ui .return-report-table tbody tr:hover td { background: #fff8f6 !important; }
body.return-loss-melontik-ui .return-report-table tbody td:nth-child(1) { color: var(--return-coral) !important; }
body.return-loss-melontik-ui .return-report-table tbody :is(td:nth-child(3), td:nth-child(4), td:nth-child(5), td:nth-child(7)) { color: var(--return-red) !important; }
body.return-loss-melontik-ui .return-report-table tbody td:nth-child(6) { color: var(--return-green) !important; }

body.return-loss-melontik-ui .return-loss-panel .commission-footer {
  border-top: 1px solid var(--return-line);
  background: #fff7f4;
  color: #4f352f;
  font-size: 10px;
  line-height: 14px;
}

body.return-loss-melontik-ui .return-loss-panel.live-panel-fullscreen .return-report-wrap {
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 auto !important;
}

@media (max-width: 900px) {
  body.return-loss-melontik-ui .return-report-table thead th { font-size: 12px !important; }
}
