/* ==========================================================================
   COMMODITY REPORT PAGE — extends the site theme (/style.css variables & components)
   ========================================================================== */

.cr-section {
  padding: 5.75rem 0 4rem;
  background: var(--neutral-100);
}

.cr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--neutral-500);
  margin-bottom: 0.75rem;
}

.cr-breadcrumb a {
  color: var(--neutral-500);
}

.cr-breadcrumb a:hover {
  color: var(--primary-main);
}

.cr-breadcrumb i {
  font-size: 0.65rem;
}

.cr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
}

.cr-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--neutral-800);
  margin: 0;
}

/* ---------- Controls ---------- */
.cr-controls {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
}

.cr-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  color: var(--primary-main);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cr-field:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.18);
}

.cr-field input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  color: var(--neutral-800);
  min-width: 0;
}

.cr-field-search {
  flex: 1 1 276px;
  min-width: 276px;
}

.cr-field-search input {
  width: 100%;
}

.cr-spacer {
  flex: 1 1 0;
}

.cr-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neutral-600);
  cursor: pointer;
  user-select: none;
}

.cr-check input {
  accent-color: var(--primary-main);
  width: 1rem;
  height: 1rem;
}

.cr-tabs {
  display: inline-flex;
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.25rem;
}

.cr-tab {
  border: 0;
  background: transparent;
  color: var(--primary-main);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.cr-tab.active {
  background: var(--primary-main);
  color: var(--neutral-0);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

.cr-reports {
  margin: 0;
}

.cr-btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
}

/* ---------- Status notice ---------- */
.cr-notice {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff8e8;
  border: 1px solid rgba(212, 154, 55, 0.45);
  color: #7a5412;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cr-notice i {
  margin-top: 0.2rem;
  color: var(--accent-gold);
}

/* ---------- Metrics ---------- */
.cr-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
}

.cr-metric {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-left: 4px solid var(--primary-main);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem 1rem;
}

.cr-updated {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: var(--neutral-500);
}

.cr-metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.cr-metric-label i {
  color: var(--accent-gold);
  font-size: 1rem;
}

.cr-metric-value {
  margin-top: 0.1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-main);
}

.cr-metric-value.small {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 0.55rem;
}

/* ---------- Loading / error / empty ---------- */
.cr-state {
  margin-top: 1.25rem;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--neutral-600);
}

.cr-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.cr-state p {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.cr-state .cr-state-icon {
  font-size: 2.2rem;
  color: var(--accent-amber);
  margin-bottom: 0.9rem;
}

.cr-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 4px solid var(--primary-subtle);
  border-top-color: var(--primary-main);
  animation: cr-spin 0.9s linear infinite;
}

@keyframes cr-spin {
  to { transform: rotate(360deg); }
}

.cr-hidden {
  display: none !important;
}

/* ---------- Full-page live-refresh loader ---------- */
body.cr-locked {
  overflow: hidden;
}

.cr-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050; /* above navbar, WhatsApp and scroll-to-top buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 42, 29, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}

.cr-ov-card {
  width: 100%;
  max-width: 440px;
  background: var(--neutral-0);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.75rem 1.6rem;
  text-align: center;
  border-top: 4px solid var(--accent-gold);
}

.cr-ov-art {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.1rem;
}

.cr-ov-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.cr-ov-track,
.cr-ov-arc {
  fill: none;
  stroke-width: 7;
}

.cr-ov-track {
  stroke: var(--primary-subtle);
}

.cr-ov-arc {
  stroke: var(--primary-main);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.8s ease;
}

.cr-ov-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--accent-gold);
  animation: cr-sway 2.4s ease-in-out infinite;
  transform-origin: 50% 80%;
}

@keyframes cr-sway {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

.cr-ov-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0;
  animation: cr-orbit 3s linear infinite;
}

.cr-ov-dot.d2 { animation-delay: -1s; background: var(--primary-light); }
.cr-ov-dot.d3 { animation-delay: -2s; }

@keyframes cr-orbit {
  0%   { transform: rotate(0deg) translateX(52px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: rotate(360deg) translateX(52px) rotate(-360deg); opacity: 0; }
}

.cr-ov-title {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--primary-dark);
}

.cr-ov-step {
  min-height: 1.5em;
  margin: 0 0 1rem;
  color: var(--primary-medium);
  font-weight: 600;
}

.cr-ov-steps {
  list-style: none;
  margin: 0 auto 1rem;
  padding: 0;
  max-width: 320px;
  text-align: left;
  font-size: 0.88rem;
}

.cr-ov-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.28rem 0;
  color: var(--neutral-400);
  transition: color 0.3s ease;
}

.cr-ov-steps li i {
  width: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
}

.cr-ov-steps li.active {
  color: var(--primary-main);
  font-weight: 700;
}

.cr-ov-steps li.active i {
  color: var(--accent-gold);
  animation: cr-pulse 1s ease-in-out infinite;
}

.cr-ov-steps li.done {
  color: var(--neutral-600);
}

.cr-ov-steps li.done i {
  color: var(--primary-light);
}

@keyframes cr-pulse {
  50% { transform: scale(1.35); }
}

.cr-ov-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--primary-subtle);
  overflow: hidden;
}

.cr-ov-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-gold));
  transition: width 0.8s ease;
}

.cr-ov-hint {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--neutral-500, var(--neutral-600));
}

.cr-ov-actions {
  margin-top: 1.1rem;
}

.cr-overlay.is-error .cr-ov-card {
  border-top-color: var(--accent-amber);
}

.cr-overlay.is-error .cr-ov-icon {
  animation: none;
  color: var(--accent-amber);
}

.cr-overlay.is-error .cr-ov-arc,
.cr-overlay.is-error .cr-ov-dot {
  display: none;
}

.cr-overlay.is-done .cr-ov-icon {
  animation: none;
  color: var(--primary-main);
}

@media (prefers-reduced-motion: reduce) {
  .cr-ov-icon,
  .cr-ov-dot,
  .cr-ov-steps li.active i {
    animation: none;
  }
  .cr-ov-dot { display: none; }
}

/* ---------- Best Mandi Finder ---------- */
.cr-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(64, 145, 108, 0.14);
  color: var(--primary-main);
}

.cr-pill.muted {
  background: var(--neutral-200);
  color: var(--neutral-600);
}

.cr-empty-note {
  margin: 0;
  color: var(--neutral-500);
  font-style: italic;
  font-size: 0.9rem;
}

.cr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--neutral-0);
}

.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.cr-table th {
  background: var(--primary-main);
  color: var(--neutral-0);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 0.9rem;
  white-space: nowrap;
}

.cr-table td {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--neutral-200);
  color: var(--neutral-700);
}

.cr-table tbody tr:nth-child(even) td {
  background: var(--neutral-100);
}

.cr-table tbody tr:hover td {
  background: var(--primary-subtle);
}

.cr-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cr-table td.market {
  font-weight: 700;
  color: var(--primary-dark);
}

.cr-table td.modal {
  font-weight: 800;
  color: var(--primary-main);
}

.cr-en {
  font-weight: 500;
  font-size: 0.8em;
  color: var(--neutral-500);
  margin-left: 0.25rem;
}

/* Top paying markets strip */
.cr-top {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(100deg, #1b4332 0%, #3a4a1d 55%, #7a6414 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cr-top.cr-hidden {
  display: none;
}

.cr-top-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.cr-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cr-top-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 0.25rem 1rem;
  color: #ffffff;
  transition: background var(--transition-fast);
}

.cr-top-card:first-child {
  border-left: 0;
}

.cr-top-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cr-top-card:focus-visible,
.cr-item:focus-visible,
.cr-cat:focus-visible {
  outline: 3px solid rgba(64, 145, 108, 0.45);
  outline-offset: 2px;
}

.cr-top-crop {
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cr-top-market {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
}

.cr-top-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.cr-top-price {
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
}

.cr-top-price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.cr-lb small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neutral-500);
}

.cr-top-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Split panel */
.cr-split {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: 1.25rem;
  align-items: start;
}

.cr-pane {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.cr-left {
  padding: 1rem;
  position: sticky;
  top: 5.5rem;
}

.cr-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cr-cat {
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100);
  color: var(--neutral-600);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cr-cat:hover {
  border-color: var(--primary-light);
  color: var(--primary-main);
}

.cr-cat.active {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: var(--neutral-0);
}

.cr-left-count {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--neutral-500);
}

.cr-left-list {
  display: grid;
  gap: 0.4rem;
  max-height: max(280px, min(640px, calc(100vh - 16rem)));
  overflow-y: auto;
  padding: 0.15rem 0.25rem 0.15rem 0.1rem;
  overscroll-behavior: contain;
}

.cr-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--neutral-0);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cr-item:hover {
  border-color: var(--primary-light);
}

.cr-item.sel {
  border-color: var(--primary-main);
  background: var(--primary-subtle);
}

.cr-item-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.cr-item-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.75rem;
  font-size: 0.8rem;
  color: var(--neutral-600);
}

.cr-item-range {
  font-weight: 700;
  color: var(--primary-main);
}

.cr-item-muted {
  color: var(--neutral-400);
  font-style: italic;
}

.cr-state-sm {
  margin: 0;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

/* Right panel */
.cr-right {
  padding: 1.1rem 1.25rem 1.25rem;
}

.cr-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
}

.cr-detail-head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--primary-dark);
}

.cr-detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cr-detail-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--neutral-500);
}

.cr-lb {
  min-width: 520px;
}

.cr-lb th.num {
  text-align: right;
}

.cr-lb td.num,
.cr-lb th {
  white-space: nowrap;
}

.cr-lb th.rk,
.cr-lb td.rk {
  width: 3.6rem;
}

.cr-lb td.nm {
  font-weight: 700;
  color: var(--primary-dark);
}

.cr-variety {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--neutral-500);
}

.cr-lb td.rng {
  color: var(--neutral-500);
  font-size: 0.84rem;
}

.cr-rank {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--neutral-600);
  background: var(--neutral-200);
}

.cr-rank.top {
  color: #7a5412;
  background: rgba(212, 154, 55, 0.28);
}

.cr-lb td.arr {
  min-width: 9rem;
}

.cr-arr-n {
  display: block;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-700);
}

.cr-bar {
  display: block;
  height: 6px;
  margin-top: 0.3rem;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cr-bar i {
  display: block;
  height: 100%;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

/* Keep the floating install banner clear of the footer text */
.footer {
  padding-bottom: 7rem;
}

@media (max-width: 1024px) {
  .cr-top {
    grid-template-columns: 1fr;
  }
  .cr-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 0;
  }
  .cr-top-card:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .cr-split {
    grid-template-columns: 1fr;
  }
  /* Leaderboard rows become stacked blocks so every value is visible without sideways scrolling */
  .cr-table.cr-lb {
    min-width: 0;
  }
  .cr-lb thead {
    display: none;
  }
  .cr-lb,
  .cr-lb tbody {
    display: block;
  }
  .cr-lb tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'rk nm modal'
      'rk rng rng'
      'rk arr arr';
    column-gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border-top: 1px solid var(--neutral-200);
  }
  .cr-lb tr:first-child {
    border-top: 0;
  }
  .cr-lb tbody tr:nth-child(even) {
    background: var(--neutral-100);
  }
  .cr-lb tbody tr:nth-child(even) td,
  .cr-lb tbody tr:hover td {
    background: transparent;
  }
  .cr-lb td {
    border: 0;
    padding: 0.1rem 0;
    min-width: 0;
  }
  .cr-lb td.rk {
    grid-area: rk;
    width: auto;
  }
  .cr-lb td.nm {
    grid-area: nm;
  }
  .cr-lb td.modal {
    grid-area: modal;
    text-align: right;
  }
  .cr-lb td.rng {
    grid-area: rng;
    text-align: left;
  }
  .cr-lb td.arr {
    grid-area: arr;
    min-width: 0;
  }
  .cr-lb td.arr .cr-arr-n {
    display: inline;
  }
  .cr-lb td.arr .cr-bar {
    margin-top: 0.25rem;
  }
  .cr-left {
    position: static;
  }
  .cr-left-list {
    max-height: 320px;
  }
  .cr-right {
    padding: 0.9rem;
  }
  .cr-detail-head h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .cr-top {
    padding: 0.9rem 1rem;
  }
  .cr-top-card {
    padding: 0.2rem 0.6rem;
  }
  .cr-top-market {
    font-size: 0.76rem;
  }
  .cr-top-price {
    font-size: 1.05rem;
  }
}

/* ---------- JSON viewer ---------- */
.cr-json {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-dark);
}

.cr-json-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--primary-dark);
  color: var(--neutral-300);
  padding: 0.7rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.cr-json pre {
  margin: 0;
  max-height: 640px;
  overflow: auto;
  background: var(--neutral-900);
  color: #b7e4c7;
  padding: 1.1rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

.cr-source {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--neutral-500);
  text-align: center;
}

.cr-source a {
  color: var(--primary-medium);
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cr-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cr-section {
    padding: 5.5rem 0 3.5rem;
  }
  .cr-controls {
    padding: 0.9rem;
  }
  .cr-field,
  .cr-field-search {
    flex: 1 1 100%;
    min-width: 0;
  }
  .cr-spacer {
    display: none;
  }
  .cr-tabs {
    width: 100%;
  }
  .cr-tab {
    flex: 1;
    justify-content: center;
  }
  .cr-reports .cr-tab {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .cr-metric-value {
    font-size: 1.5rem;
  }
}
