/* The admin page «تحلیل رقبا» (views-competitors.js). Only .cmp and .cmp-* are used here. Colours come from the
   app tokens, the row tints are translucent so they read on the dark panel. */
.cmp { display: grid; gap: var(--space-5, 20px); }
.cmp-section { display: grid; gap: 12px; min-width: 0; }
.cmp-h, .cmp-note { width: 100%; }
.cmp-h { font-size: 1.25rem; font-weight: 800; }
.cmp-note { resize: none; overflow: hidden; color: var(--c-text-2); }
.cmp-h2 { margin: 0; font-size: 1.375rem; }
.cmp-h3 { margin: 12px 0 0; font-size: 1.125rem; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: 12px; min-width: 0; }
.cmp-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 8px; vertical-align: top; border-bottom: 1px solid var(--c-border); text-align: right; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table th.cmp-actions, .cmp-table td.cmp-actions { width: 160px; }
.cmp-table td.is-us, .cmp-table th.is-us { background: var(--c-accent-soft); }
.cmp-cell { width: 100%; min-height: 2.4em; box-sizing: border-box; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; font: inherit; line-height: 1.8; resize: none; overflow: hidden; }
.cmp-cell:hover { border-color: var(--c-border-strong); }
.cmp-cell:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 0; background: var(--c-surface-2); }
.cmp-cell--head { font-weight: 800; }
.cmp-colbar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cmp-row--aqua td { background-color: var(--c-accent-soft); }
.cmp-row--green td { background-color: var(--c-ok-soft); }
.cmp-row--amber td { background-color: var(--c-warn-soft); }
.cmp-row--rose td { background-color: var(--c-bad-soft); }
.cmp-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cmp-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-border-strong); padding: 0; cursor: pointer; }
.cmp-swatch.is-on { border-color: var(--c-text); }
.cmp-swatch--none { background: transparent; }
.cmp-swatch--aqua { background: var(--color-primary); }
.cmp-swatch--green { background: var(--color-success); }
.cmp-swatch--amber { background: var(--color-warning); }
.cmp-swatch--rose { background: var(--color-error); }
.cmp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.cmp-controls .field { flex: 1 1 200px; min-width: 0; }
.cmp-pct { display: grid; gap: 4px; }
.cmp-pct input[type=range], .cmp-controls input[type=range] { width: 100%; accent-color: var(--c-accent); }
.cmp-table--market { min-width: 560px; }
.cmp .num { font-variant-numeric: tabular-nums; }
.cmp-mobilebar { display: flex; align-items: center; gap: 8px; justify-content: space-between; }

/* M3 step 15, admin «رقبا»: the scroll box anchors what is positioned inside it (the sr-only labels escaped it and
   widened the whole page to ~1370px on a phone); cells are 48px; each colour dot has a 48px tap area */
.cmp-wrap { position: relative; }
.cmp-cell { min-height: var(--tap, 48px); }
.cmp-swatches { gap: 20px; padding: 10px; }
.cmp-swatch { position: relative; width: 28px; height: 28px; }
.cmp-swatch::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.cmp-pct input[type=range], .cmp-controls input[type=range] { min-height: var(--tap, 48px); }
