/**
 * Feuille de route — Traitement des leads (page styles, v1.9.0)
 * Prefix: fdr-  ·  Reuses .card / .table-container / .sales-summary-* from
 * the shared stylesheets; only what is specific to this page lives here.
 */

/* ---- Header / doc reminder ---- */

.fdr-rule-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff4ec, #ffe9dd);
    border: 1px solid #f5c9a8;
    margin-bottom: 12px;
}

.fdr-rule-banner strong { color: #c2410c; }

.fdr-rule-5min {
    flex-shrink: 0;
    text-align: center;
    color: #ea580c;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.1;
}

.fdr-rule-5min small {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

.fdr-reflexes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
}

.fdr-reflexes li {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 12px;
    color: #334155;
}

.fdr-data-note, .fdr-cadence-note, .fdr-queue-trunc {
    font-size: 0.78rem;
    color: #64748b;
    margin: 8px 2px 0;
}

.fdr-note-warn { color: #b45309; font-weight: 600; }

/* ---- Controls row ---- */

.fdr-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.fdr-day-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fdr-day-nav button {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    cursor: pointer;
    color: #334155;
}

.fdr-day-nav button:hover { background: #f1f5f9; }

.fdr-day-label {
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
    margin-left: 4px;
}

/* ---- KPI chips (extends .sales-summary-item look) ---- */

.fdr-kpi-target {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}

.fdr-kpi-alert .sales-summary-value { color: #dc2626; }
.fdr-kpi-alert { outline: 2px solid #fecaca; border-radius: 8px; }

/* ---- Cells & badges ---- */

.fdr-vendor-cell { font-weight: 600; white-space: nowrap; }
.fdr-phone-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }

.fdr-ok  { color: #15803d; font-weight: 600; }
.fdr-mid { color: #b45309; font-weight: 600; }
.fdr-low { color: #dc2626; font-weight: 700; }
.fdr-muted { color: #64748b; } /* was #64748b — 2.6:1, below AA (audit 02/09) */

.fdr-target-hint {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 400;
    margin-left: 1px;
}

.fdr-attempts { display: flex; flex-direction: column; gap: 3px; min-width: 90px; }

.fdr-bar {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
}

.fdr-bar-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #f97316, #16a34a);
}

.fdr-total-row td {
    font-weight: 700;
    border-top: 2px solid #cbd5e1;
    background: #f8fafc;
}

/* ---- Cadence queue ---- */

.fdr-queue-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.fdr-tile {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.fdr-tile-value { font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.fdr-tile-label { font-size: 0.75rem; color: #64748b; margin-top: 2px; }

.fdr-tile-frais { background: #fff7ed; border-color: #fdba74; }
.fdr-tile-frais .fdr-tile-value { color: #ea580c; }
.fdr-tile-due { background: #fefce8; border-color: #fde047; }
.fdr-tile-due .fdr-tile-value { color: #a16207; }
.fdr-tile-late { background: #fef2f2; border-color: #fca5a5; }
.fdr-tile-late .fdr-tile-value { color: #dc2626; }

.fdr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.fdr-badge-frais { background: #ffedd5; color: #c2410c; }
.fdr-badge-due   { background: #fef9c3; color: #a16207; }
.fdr-badge-late  { background: #fee2e2; color: #b91c1c; }

.fdr-frais-cell { color: #ea580c; font-weight: 800; }
.fdr-row-frais td { background: #fffbf5; }

/* ---- Week board ---- */

.fdr-week-selected td { background: #eff6ff; }
.fdr-week-future td { color: #cbd5e1; }
#fdrWeekBody tr[data-day] { cursor: pointer; }
#fdrWeekBody tr[data-day]:hover td { background: #f1f5f9; }

@media (max-width: 768px) {
    .fdr-rule-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .fdr-controls { align-items: stretch; flex-direction: column; }
}

/* ---- v1.1.0 additions ---- */

.fdr-chart-box { height: 260px; }

.fdr-reco-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fdr-reco {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.45;
}

.fdr-reco-icon { flex-shrink: 0; }
.fdr-reco-sev0 { background: #fef2f2; border-color: #fca5a5; }
.fdr-reco-sev1 { background: #fff7ed; border-color: #fdba74; }
.fdr-reco-sev2 { background: #fefce8; border-color: #fde047; }
.fdr-reco-sev4, .fdr-reco-ok { background: #f0fdf4; border-color: #bbf7d0; }

.fdr-queue-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fdr-queue-filters input[type="search"] { min-width: 190px; }

.fdr-phone-cell a { color: inherit; text-decoration: none; border-bottom: 1px dotted #64748b; }
.fdr-phone-cell a:hover { color: #4f46e5; border-bottom-color: #4f46e5; }

/* Sortable headers (mirrors the tables.css convention) */
#fdrScoreTable th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
#fdrScoreTable th[data-sort]:hover { background: #f1f5f9; }
#fdrScoreTable th .sort-icon::after { content: '↕'; opacity: 0.35; font-size: 0.7rem; margin-left: 3px; }
#fdrScoreTable th.sort-asc .sort-icon::after { content: '↑'; opacity: 1; }
#fdrScoreTable th.sort-desc .sort-icon::after { content: '↓'; opacity: 1; }

@media (max-width: 768px) {
    .fdr-queue-filters { flex-direction: column; align-items: stretch; }
    .fdr-chart-box { height: 220px; }
}

/* ---- v1.1.1: industry benchmarks line in the rule banner ---- */
.fdr-benchmarks {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: #7c4a21;
    line-height: 1.5;
    cursor: help;
}

/* ---- v1.2.0: Moyenne / conseiller row + wider table ---- */
.fdr-avg-row td {
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    border-top: 1px dashed #cbd5e1;
    font-variant-numeric: tabular-nums;
}

/* ---- v1.3.0 : sélecteur de période + garde-fou de couverture ---- */

.fdr-period-modes {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.fdr-period-btn {
    border: 0;
    border-right: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.fdr-period-btn:last-child { border-right: 0; }
.fdr-period-btn:hover { background: #f1f5f9; }

.fdr-period-btn.active {
    background: #1d4ed8;
    color: #fff;
}

.fdr-custom-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fdr-range-readout {
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Le garde-fou : période demandée hors des appels chargés. Volontairement
   voyant — il remplace des chiffres, il ne les annote pas. */
.fdr-coverage-warn {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #7c2d12;
    font-size: 0.86rem;
}

.fdr-coverage-warn strong { color: #9a3412; }
.fdr-coverage-warn p { margin: 6px 0; }

.fdr-coverage-warn button {
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: #ea580c;
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
}

.fdr-coverage-warn button:hover { background: #c2410c; }
.fdr-coverage-warn button:disabled { background: #fdba74; cursor: default; }

#fdrFunnelPeriod:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .fdr-period-modes { width: 100%; }
    .fdr-period-btn { flex: 1; padding: 8px 6px; }
    .fdr-custom-range { flex-wrap: wrap; }
}

/* ---- v1.4.0 : préréglages + filtres de la file d'appels ---- */

.fdr-queue-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 6px;
}

.fdr-preset-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
}

.fdr-preset-btn:hover { background: #f1f5f9; }

.fdr-preset-btn.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.fdr-preset-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 2px 8px;
}

.fdr-queue-filters-row2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.fdr-queue-filters-row2 .filter-label {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 0 4px;
}

.fdr-queue-filters-row2 .filter-input { min-width: 150px; }

.fdr-queue-summary {
    font-size: 0.78rem;
    color: #64748b;
    margin: 8px 2px 0;
}

.fdr-queue-reset {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.fdr-queue-reset:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

/* Les tuiles de la cadence sont des raccourcis vers la file. */
.fdr-tile-clickable { cursor: pointer; }
.fdr-tile-clickable:hover { outline: 2px solid #bfdbfe; }
.fdr-tile-clickable:focus-visible { outline: 2px solid #1d4ed8; }

@media (max-width: 768px) {
    .fdr-queue-filters-row2 { flex-direction: column; align-items: stretch; }
    .fdr-queue-filters-row2 .filter-input { min-width: 0; width: 100%; }
}

/* ---- v1.5.0 : signaux hors appel (tags, notes, doublons) ---- */

.fdr-signal-cell { max-width: 260px; }

.fdr-tag {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    white-space: nowrap;
}

/* Le numéro est mort : rappeler ne peut rien donner. */
.fdr-tag-dead { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
/* Le prospect a donné sa réponse. */
.fdr-tag-refusal { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
/* Joignabilité seulement — il FAUT rappeler. */
.fdr-tag-retry { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.fdr-tag-note { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.fdr-tag-dup { background: #fff7ed; border-color: #fdba74; color: #9a3412; }

.fdr-badge-tagout {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.fdr-tile-tagout .fdr-tile-value { color: #b91c1c; }

/* ---- v1.6.0 : compteurs de signaux cliquables (tableau par conseiller) ---- */
/* Même contrat que les tuiles de cadence : ce qui est cliquable le montre, et
   reste atteignable au clavier. Un compteur à 0 n'est PAS cliquable (tabindex
   -1 côté JS) — ouvrir une liste vide serait un faux affordance. */
.fdr-sig-cell[role="button"] {
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.fdr-sig-cell[role="button"]:hover,
.fdr-sig-cell[role="button"]:focus-visible {
    background: rgba(99, 102, 241, .10);
    outline: 2px solid rgba(99, 102, 241, .55);
    outline-offset: -2px;
    border-radius: 4px;
}
.fdr-sig-cell.fdr-muted { cursor: default; text-decoration: none; }
.fdr-tag-act { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }

/* ================================================================== *
 * v1.7.0 — passe UX/lisibilité
 * ================================================================== */

/* --- Colonne d'identité collante sur les tableaux larges ---
   Le scoreboard fait 13 colonnes, la cadence 12, la file 8. À 1280 px moins
   la barre latérale, ils défilent horizontalement — et la colonne
   « Conseiller » partait avec, laissant lire une ligne anonyme. Fond opaque
   obligatoire, sinon les teintes de .fdr-total-row / .fdr-avg-row passent au
   travers de la cellule collante. */
.table-container th:first-child,
.table-container td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--card-bg, #fff);
}
.table-container thead th:first-child { z-index: 3; }
.table-container tr:nth-child(even) td:first-child { background: var(--row-alt, #fafafa); }
.fdr-total-row td:first-child,
.fdr-avg-row td:first-child { background: inherit; }
/* Le bord droit remplace l'ombre : il dit « la colonne est figée, ça défile ». */
.table-container th:first-child::after,
.table-container td:first-child::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: var(--border, #e5e7eb);
}

/* --- La file d'appels défile dans son propre conteneur ---
   QUEUE_MAX_ROWS = 120 : sans hauteur maximale la carte fabriquait ~5 400 px
   et les en-têtes disparaissaient après quatre lignes. Même recette que
   .rdv-scroll du portail vendeur, qui l'avait déjà résolu. */
.fdr-queue-scroll {
    max-height: 540px;
    overflow-y: auto;
}
.fdr-queue-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--card-bg, #fff);
    box-shadow: inset 0 -1px 0 var(--border, #e5e7eb);
}

/* --- Mobile : la cellule Traitement doit pouvoir revenir à la ligne ---
   responsive.css impose `white-space: nowrap` à tous les td sous 768 px, ce
   qui annulait le max-width de .fdr-signal-cell : trois tags + une note +
   Doublon donnaient une cellule insécable d'environ 600 px, sur l'appareil
   où le défilement horizontal coûte le plus cher. */
@media (max-width: 768px) {
    #fdrQueueBody .fdr-signal-cell,
    .fdr-signal-cell { white-space: normal; }
    .fdr-queue-scroll { max-height: 60vh; }
}

/* v1.7.1 — la 5e tuile est un compteur, pas un bouton. Cinq tuiles
   identiques dont quatre cliquables piègent la souris ET le clavier ; on
   marque donc celle qui ne l'est pas au lieu de la laisser se faire passer
   pour un bouton mort. */
.fdr-tile-readonly { opacity: .82; cursor: default; }
.fdr-tile-readonly .fdr-tile-label::after { content: ' (compteur)'; opacity: .7; font-size: .92em; }

/* ================================================================== *
 * v1.9.0 — état de chargement + fiche détaillée par conseiller
 * ================================================================== */

/* ---- Chargement : jamais de « 0 » avant l'arrivée des données ---- */
.fdr-spinner {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    border: 2px solid rgba(79, 70, 229, 0.25);
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: fdr-spin 0.8s linear infinite;
    vertical-align: -0.1em;
}
@keyframes fdr-spin { to { transform: rotate(360deg); } }
.fdr-loading-cell { color: #64748b; text-align: center; padding: 18px 12px !important; }
#page-feuille-route.fdr-loading .sales-summary-value,
#page-feuille-route.fdr-loading .fdr-kpi-target { color: #64748b; }
@media (prefers-reduced-motion: reduce) { .fdr-spinner { animation-duration: 2.4s; } }

/* ---- Lignes cliquables ---- */
.fdr-row-link { cursor: pointer; }
.fdr-row-link:hover td { background: #f5f3ff; }
.fdr-row-link:hover .fdr-vendor-cell,
.fdr-row-link:focus-visible .fdr-vendor-cell { background: #ede9fe; }
.fdr-row-link:focus-visible { outline: 2px solid #4F46E5; outline-offset: -2px; }
.fdr-drill { color: #4F46E5; font-weight: 700; margin-left: 2px; transition: transform .15s ease; display: inline-block; }
.fdr-row-link:hover .fdr-drill { transform: translateX(3px); }
.fdr-vendor-link { cursor: pointer; color: #4338CA; text-decoration: underline dotted; text-underline-offset: 3px; }
.fdr-vendor-link:hover, .fdr-vendor-link:focus-visible { color: #312E81; outline: none; background: #ede9fe; }

/* ---- Fiche conseiller (modal) ---- */
body.fdr-modal-open { overflow: hidden; }
#fdrSellerModal { padding: 16px; }
#fdrSellerModal .modal.fdr-seller-modal { max-width: 1240px; max-height: calc(100vh - 32px); }
.fdr-sm-header { gap: 12px; }
.fdr-sm-avatar {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff; font-weight: 800; letter-spacing: .5px;
}
.fdr-sm-titles #fdrSellerName { font-size: 1.15rem; font-weight: 700; }
.fdr-sm-sub { font-size: .8rem; color: #64748b; font-weight: 500; }
.fdr-sm-actions { display: flex; align-items: center; gap: 6px; }
.fdr-sm-nav {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff;
    font-size: 1.2rem; line-height: 1; cursor: pointer; color: #334155;
}
.fdr-sm-nav:hover, .fdr-sm-nav:focus-visible { background: #f1f5f9; outline: 2px solid #c7d2fe; }
.fdr-sm-tabs {
    display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 85px; background: #fff; z-index: 9;
}
.fdr-sm-tabs [role="tab"] {
    border: none; background: none; padding: 12px 14px; cursor: pointer; font-weight: 600; color: #64748b;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.fdr-sm-tabs [role="tab"].active { color: #4338CA; border-bottom-color: #4F46E5; }
.fdr-sm-tabs [role="tab"]:focus-visible { outline: 2px solid #c7d2fe; border-radius: 6px 6px 0 0; }
.fdr-sm-body { padding: 18px 24px 24px; }

.fdr-sm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.fdr-sm-tile {
    border: 1px solid #e2e8f0; border-left: 4px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.fdr-sm-tile.fdr-sm-ok { border-left-color: #10B981; }
.fdr-sm-tile.fdr-sm-mid { border-left-color: #F59E0B; }
.fdr-sm-tile.fdr-sm-low { border-left-color: #EF4444; background: #fff7f7; }
.fdr-sm-tile-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 700; }
.fdr-sm-tile-value { font-size: 1.55rem; font-weight: 800; color: #0f172a; line-height: 1.2; margin: 2px 0; }
.fdr-sm-of { font-size: .85rem; color: #64748b; font-weight: 600; }
.fdr-sm-tile-sub { font-size: .75rem; color: #475569; line-height: 1.35; }
.fdr-sm-tile-sub .fdr-bar { display: block; margin: 4px 0; }

.fdr-sm-charts { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; margin-bottom: 14px; }
.fdr-sm-charts.fdr-sm-charts-1 { grid-template-columns: 1fr; }
.fdr-sm-chart { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.fdr-sm-chart h4 { margin: 0 0 6px; font-size: .85rem; color: #334155; }
.fdr-sm-canvas { position: relative; height: 240px; }

.fdr-sm-section { border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 10px; background: #fff; }
.fdr-sm-section > summary {
    cursor: pointer; padding: 10px 14px; font-weight: 700; color: #1e293b; list-style: none;
    display: flex; align-items: center; gap: 8px;
}
.fdr-sm-section > summary::-webkit-details-marker { display: none; }
.fdr-sm-section > summary::before { content: '▸'; color: #4F46E5; transition: transform .15s ease; }
.fdr-sm-section[open] > summary::before { transform: rotate(90deg); }
.fdr-sm-count { background: #eef2ff; color: #4338CA; border-radius: 999px; padding: 1px 9px; font-size: .78rem; }
.fdr-sm-table-wrap { max-height: 380px; overflow: auto; border-top: 1px solid #f1f5f9; }
.fdr-sm-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fdr-sm-table th {
    position: sticky; top: 0; background: #f8fafc; z-index: 1; text-align: left; padding: 8px 10px;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #475569; white-space: nowrap;
}
.fdr-sm-table td { padding: 7px 10px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.fdr-sm-table tbody tr:hover td { background: #fafaff; }
.fdr-sm-trunc { margin: 6px 14px 10px; font-size: .78rem; }

.fdr-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #f1f5f9; color: #475569; white-space: nowrap; }
.fdr-chip-ok { background: #dcfce7; color: #166534; }
.fdr-chip-mid { background: #fef3c7; color: #92400e; }
.fdr-chip-low { background: #fee2e2; color: #991b1b; }
.fdr-chip-info { background: #e0e7ff; color: #3730a3; }

@media (max-width: 1023px) {
    .fdr-sm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fdr-sm-charts { grid-template-columns: 1fr; }
    .fdr-sm-tabs { top: 77px; padding: 0 12px; overflow-x: auto; }
    .fdr-sm-body { padding: 14px 12px 18px; }
    #fdrSellerModal { padding: 0; }
    #fdrSellerModal .modal.fdr-seller-modal { max-height: 100vh; border-radius: 0; }
    .fdr-sm-table td { white-space: normal; }
}
