/* ==============================================================================
   ASIN DETAIL PAGE
   ============================================================================== */

/* #page-asin: fixed overlay, same approach as #page-engine. Router positions it below .top-header. */
#page-asin {
    position: fixed;
    top: 52px; /* fallback: 8px outer margin + 44px header min-height */
    left: 80px;
    right: 8px;
    bottom: 8px;
    border-radius: 0 0 12px 12px;
    display: none; /* router sets to flex when active */
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-main);
    background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 100;
}

/* Hero section */
.asin-hero {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.asin-hero-img-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.asin-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.asin-hero-info {
    flex: 1;
    min-width: 0;
}
.asin-hero-asin {
    font-size: 13px;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.asin-hero-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
}
.asin-hero-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.asin-hero-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.asin-hero-score {
    /* inherits .score-badge-inline */
    font-size: 14px;
    padding: 4px 12px;
    min-width: 48px;
}
.asin-hero-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.asin-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.asin-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.14s;
    white-space: nowrap;
}
.asin-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Tabs bar — sticky within #page-asin's own scroll container (top:0 works because
   #page-asin is the scroll container, main-content overflow:hidden is bypassed) */
.asin-tabs-bar {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-main);
    flex-shrink: 0;
}

/* Tab panes */
.asin-tab-pane {
    padding: 20px 28px;
}

/* Overview grid */
.asin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.asin-ov-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.asin-ov-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.asin-ov-body { min-width: 0; }
.asin-ov-label { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.asin-ov-val { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Score bars */
.asin-scores-wrap { max-width: 560px; }
.asin-score-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.asin-score-bar-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); min-width: 140px; flex-shrink: 0; }
.asin-score-bar-track { flex: 1; height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; }
.asin-score-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.asin-score-bar-val { font-size: 13px; font-weight: 700; min-width: 32px; text-align: right; flex-shrink: 0; }

/* Keepa chart */
.asin-keepa-wrap {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}
.asin-keepa-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
}
.asin-keepa-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.asin-keepa-range-btns {
    display: flex;
    gap: 4px;
}
.keepa-range-btn {
    padding: 5px 12px;
    border-radius: 7px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s;
}
.keepa-range-btn:hover { background: var(--bg-hover); color: var(--text-secondary); }
.keepa-range-btn.active { background: #2e2e2e; color: #ffffff; border-color: #2e2e2e; }
[data-theme="dark"] .keepa-range-btn.active { background: #3a3a3a; border-color: #444444; color: #ffffff; }

.asin-keepa-chart-wrap {
    height: 380px;
    padding: 12px 16px 8px;
    position: relative;
}
.asin-keepa-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.asin-keepa-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--border-light);
}
.keepa-stat {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border-right: 1px solid var(--border-light);
}
.keepa-stat:last-child { border-right: none; }
.keepa-stat-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.keepa-stat-val { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* ── Hero ASIN row with copy button ─────────────────────────── */
.asin-hero-asin-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.asin-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.14s;
    flex-shrink: 0;
}
.asin-copy-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ROI badge in hero */
.asin-hero-roi {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}

/* Action buttons refinement */
.asin-action-btn.primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}
.asin-action-btn.primary:hover {
    background: #333;
    border-color: #333;
}
[data-theme="dark"] .asin-action-btn.primary {
    background: #2e2e2e;
    border-color: #3a3a3a;
    color: #d0d0d0;
}
[data-theme="dark"] .asin-action-btn.primary:hover {
    background: #3a3a3a;
    color: #f0f0f0;
}

/* ── Metrics strip (scrollable horizontal cards) ────────────── */
.asin-metrics-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 10px;
    margin-bottom: 16px;
    scrollbar-width: none;
    flex-shrink: 0;
}
.asin-metrics-strip::-webkit-scrollbar { display: none; }
.asin-metric-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    min-width: 130px;
    flex-shrink: 0;
    transition: border-color 0.14s;
}
.asin-metric-card.positive {
    border-color: rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.04);
}
.asin-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.asin-metric-body { min-width: 0; }
.asin-metric-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.asin-metric-val { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }

/* ── Two-column detail grid ─────────────────────────────────── */
.asin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 860px) { .asin-detail-grid { grid-template-columns: 1fr; } }

.asin-detail-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}
.asin-detail-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}
.asin-detail-card-header i { font-size: 15px; color: var(--text-muted); }

/* Score bars inside detail card */
.asin-scores-wrap { padding: 12px 16px; }
.asin-score-bar-row { margin-bottom: 14px; }
.asin-score-bar-row:last-child { margin-bottom: 4px; }

/* Info list inside detail card */
.asin-info-list { padding: 6px 0; }
.asin-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.asin-info-row:last-child { border-bottom: none; }
.asin-info-label { color: var(--text-muted); font-weight: 500; }
.asin-info-val { color: var(--text-primary); font-weight: 600; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Alerts / Warnings panel ────────────────────────────────── */
.asin-alerts-panel {
    margin-bottom: 16px;
}

.asin-alert-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1.5px solid transparent;
}

.asin-alert-tier.tier-elite  { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.3);  }
.asin-alert-tier.tier-good   { background: rgba(37,99,235,0.08);   border-color: rgba(37,99,235,0.3);   }
.asin-alert-tier.tier-fair   { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.3);  }
.asin-alert-tier.tier-weak   { background: rgba(220,38,38,0.08);   border-color: rgba(220,38,38,0.3);   }

.asin-alert-tier-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tier-elite .asin-alert-tier-badge  { background: #059669; color: #fff; }
.tier-good  .asin-alert-tier-badge  { background: #2563eb; color: #fff; }
.tier-fair  .asin-alert-tier-badge  { background: #d97706; color: #fff; }
.tier-weak  .asin-alert-tier-badge  { background: #dc2626; color: #fff; }

.asin-alert-tier-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.asin-alert-tier-score {
    margin-left: auto;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.tier-elite .asin-alert-tier-score  { color: #059669; }
.tier-good  .asin-alert-tier-score  { color: #2563eb; }
.tier-fair  .asin-alert-tier-score  { color: #d97706; }
.tier-weak  .asin-alert-tier-score  { color: #dc2626; }

.asin-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asin-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
}

.asin-alert-item.type-error    { background: rgba(220,38,38,0.06);  border-color: rgba(220,38,38,0.2);  }
.asin-alert-item.type-warning  { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); }
.asin-alert-item.type-positive { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.2); }
.asin-alert-item.type-info     { background: rgba(37,99,235,0.06);  border-color: rgba(37,99,235,0.2);  }

.asin-alert-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.type-error    .asin-alert-icon { color: #dc2626; }
.type-warning  .asin-alert-icon { color: #d97706; }
.type-positive .asin-alert-icon { color: #059669; }
.type-info     .asin-alert-icon { color: #2563eb; }

.asin-alert-text { flex: 1; line-height: 1.4; color: var(--text-secondary); }
.asin-alert-text strong { color: var(--text-primary); font-weight: 700; }

/* Empty state */
.asin-empty-state {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}
.asin-empty-state i { font-size: 32px; display: block; margin-bottom: 8px; }
.asin-empty-state p { font-size: 13px; }

/* ── Calculator tab embed card ──────────────────────────────────────────────── */
.asin-calc-embed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.asin-calc-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
}

.asin-calc-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.asin-calc-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.asin-calc-card-info { min-width: 0; }

.asin-calc-card-asin {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.asin-calc-card-title {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.asin-calc-card-metrics {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.asin-calc-metric {
    flex: 1;
    padding: 12px 16px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.asin-calc-metric:last-child { border-right: none; }

.asin-calc-m-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.asin-calc-m-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.asin-calc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.asin-calc-card-hint {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.asin-calc-reopen-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.14s;
    flex-shrink: 0;
}

.asin-calc-reopen-btn:hover { background: #333; }

[data-theme="dark"] .asin-calc-reopen-btn {
    background: #2e2e2e;
    color: #d0d0d0;
    border-color: #3a3a3a;
}

/* ==============================================================================
   INVENTORY ACTIONS DROPDOWN
   ============================================================================== */

.inventory-actions-btn {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

td[data-column="actions"] {
    position: relative;
    overflow: visible !important;
}

.actions-wrapper {
    position: relative;
    display: inline-block;
}

.inventory-actions-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.inventory-actions-dropdown {
    position: fixed !important; 
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.inventory-actions-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.inventory-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.inventory-action-item:last-child {
    border-bottom: none;
}

.inventory-action-item:hover {
    background: var(--bg-hover);
}

.inventory-action-item.destructive:hover {
    background: rgba(239, 68, 68, 0.05);
}

.inventory-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.inventory-action-icon.primary {
    background: rgba(107, 119, 140, 0.1);
    color: var(--text-secondary);
}
[data-theme="dark"] .inventory-action-icon.primary {
    background: rgba(255,255,255,0.06);
    color: #999999;
}

.inventory-action-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.inventory-action-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.inventory-action-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.inventory-action-content {
    flex: 1;
    min-width: 0;
}

.inventory-action-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.inventory-action-item.destructive .inventory-action-label {
    color: #ef4444;
}

.inventory-action-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.inventory-action-badge {
    padding: 3px 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}
#page-inventory {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.table-container {
    margin-bottom: 0 !important;
    padding-bottom: 20px;
}


/* Profit and ROI columns */
td[data-column="profit"],
td[data-column="roi"] {
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.profit-value,
.roi-value {
    display: inline-block;
    min-width: 60px;
}



/* ==============================================================================
   LISTS ACTIONS DROPDOWN
   ============================================================================== */

.list-actions-btn {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.list-actions-btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.list-actions-dropdown {
    position: fixed !important;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.list-actions-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.list-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.list-action-item:last-child {
    border-bottom: none;
}

.list-action-item:hover {
    background: var(--bg-hover);
}

.list-action-item.destructive:hover {
    background: rgba(239, 68, 68, 0.05);
}

.list-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.list-action-icon.primary {
    background: rgba(107, 119, 140, 0.1);
    color: var(--text-secondary);
}
[data-theme="dark"] .list-action-icon.primary {
    background: rgba(255,255,255,0.06);
    color: #999999;
}

.list-action-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.list-action-content {
    flex: 1;
}

.list-action-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.list-action-item.destructive .list-action-label {
    color: #ef4444;
}

/* ==============================================================================
   TRACKED ROW — LED keyboard amber pulse wave
   ============================================================================== */

/* LED wave — bright spot chases clockwise around all 4 borders (top→right→bottom→left) */
@keyframes borderWave {
    0%    { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.9),  inset -2px 0 0 0 rgba(245,158,11,0.12), inset 0 -2px 0 0 rgba(245,158,11,0.12), inset 2px 0 0 0 rgba(245,158,11,0.22); }
    12.5% { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.48), inset -2px 0 0 0 rgba(245,158,11,0.52), inset 0 -2px 0 0 rgba(245,158,11,0.12), inset 2px 0 0 0 rgba(245,158,11,0.12); }
    25%   { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.12), inset -2px 0 0 0 rgba(245,158,11,0.9),  inset 0 -2px 0 0 rgba(245,158,11,0.22), inset 2px 0 0 0 rgba(245,158,11,0.12); }
    37.5% { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.12), inset -2px 0 0 0 rgba(245,158,11,0.48), inset 0 -2px 0 0 rgba(245,158,11,0.52), inset 2px 0 0 0 rgba(245,158,11,0.12); }
    50%   { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.12), inset -2px 0 0 0 rgba(245,158,11,0.12), inset 0 -2px 0 0 rgba(245,158,11,0.9),  inset 2px 0 0 0 rgba(245,158,11,0.22); }
    62.5% { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.12), inset -2px 0 0 0 rgba(245,158,11,0.12), inset 0 -2px 0 0 rgba(245,158,11,0.48), inset 2px 0 0 0 rgba(245,158,11,0.52); }
    75%   { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.22), inset -2px 0 0 0 rgba(245,158,11,0.12), inset 0 -2px 0 0 rgba(245,158,11,0.12), inset 2px 0 0 0 rgba(245,158,11,0.9);  }
    87.5% { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.52), inset -2px 0 0 0 rgba(245,158,11,0.12), inset 0 -2px 0 0 rgba(245,158,11,0.12), inset 2px 0 0 0 rgba(245,158,11,0.48); }
    100%  { box-shadow: inset 0 2px 0 0 rgba(245,158,11,0.9),  inset -2px 0 0 0 rgba(245,158,11,0.12), inset 0 -2px 0 0 rgba(245,158,11,0.12), inset 2px 0 0 0 rgba(245,158,11,0.22); }
}

tr.tracked-row {
    animation: borderWave 3.5s linear infinite;
}

/* ==============================================================================
   SELECTED ROW — all 4 borders highlighted
   ============================================================================== */

tr.selected-row {
    box-shadow: inset 0 0 0 2px #1c1c1e;
    background: rgba(0,0,0,0.03) !important;
}

[data-theme="dark"] tr.selected-row {
    box-shadow: inset 0 0 0 2px var(--primary);
    background: rgba(249,115,22,0.04) !important;
}


.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noUi-target {
    width: 100%;
    background: var(--bg-secondary);
    height: 6px;
    border: none;
}

.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .noUi-horizontal .noUi-handle {
    background: #f0f0f0;
    border-color: #242424;
}

.filter-chip,
#chipFiltersSection {
    display: none !important;
}

@media (max-width: 768px) {
    .unified-filter-panel > div:first-child {
        grid-template-columns: 1fr;
    }
}