/* ==========================================
   CSS VARIABLES: LIGHT & DARK MODE
   ========================================== */
:root[data-mantine-color-scheme="dark"] {
    --bg-gradient-start: rgba(8, 8, 8, 0.95);
    --bg-gradient-end: rgba(0, 0, 0, 1);
    --text-primary: #ffffff;
    --text-dimmed: rgba(255, 255, 255, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.10);
    --divider-color: rgba(255, 255, 255, 0.08);
    --radial-glow: rgba(255, 102, 0, 0.06);
    --timeline-fade: #080808;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --timeline-card-bg: rgba(255, 255, 255, 0.02);
    --timeline-card-border: rgba(255, 255, 255, 0.06);
    --timeline-expanded-bg: rgba(255, 255, 255, 0.04);
    --mechanic-bar-bg: rgba(255, 255, 255, 0.1);
    --modal-bg: rgba(18, 18, 18, 1);
    --app-shell-bg: linear-gradient(180deg, #000000 0%, #000000 50%, #0f0500 75%, #4d1c00 90%, #a65300 91%, #FF9933 100%);
    --paper-shadow-custom: var(--card-shadow);
}



:root[data-mantine-color-scheme="light"] {
    --bg-gradient-start: #f4f1eb;
    --bg-gradient-end: #e8e3d9;
    --text-primary: #2d2a26;
    --text-dimmed: #7a756e;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --divider-color: rgba(0, 0, 0, 0.08);
    --radial-glow: rgba(255, 102, 0, 0.12);
    --timeline-fade: #e8e3d9;
    --modal-overlay: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --timeline-card-bg: rgba(255, 255, 255, 0.4);
    --timeline-card-border: rgba(255, 255, 255, 0.8);
    --timeline-expanded-bg: rgba(255, 255, 255, 0.5);
    --mechanic-bar-bg: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(255, 255, 255, 1);
    --app-shell-bg: linear-gradient(180deg, #FFFFFF 0%, #FFF8F2 30%, #FFE6D1 60%, #FFCC99 85%, #FF9933 100%);
    --paper-shadow-custom: rgba(0, 0, 0, 0.15) 0px 20px 40px, rgba(255, 255, 255, 0.6) 0px 2px 4px inset;
}



/* ==========================================
   COMPOSANTS RÉUTILISABLES
   ========================================== */


/* Titre de section en uppercase dans les cards graphiques */
.chart-card-label {
    letter-spacing: 1.5px;
}

/* Layout des 4 cartes graphiques du portfolio (allocation, CCY, issuers, GICS) */
.chart-panel-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-panel-card>div:last-child {
    flex: 1;
    overflow: hidden;
}

/* ── Classe utilitaire — bordure premium dark-mode (même standard que Multipricer) ── */
.turfu-card {
    border: 1px solid light-dark(rgba(0,0,0,0.10), rgba(255,255,255,0.11)) !important;
}


/* ==========================================
   FOND GLOBAL — appliqué sur html + body
   Le gradient light est ici car l'AppShell
   ne couvre pas toujours 100% du viewport
   (scroll, hauteur dynamique).
   ========================================== */
html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

:root[data-mantine-color-scheme="light"] html,
:root[data-mantine-color-scheme="light"] body,
html[data-mantine-color-scheme="light"],
body[data-mantine-color-scheme="light"] {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F2 30%, #FFE6D1 60%, #FFCC99 85%, #FF9933 100%) !important;
    background-attachment: fixed !important;
}

:root[data-mantine-color-scheme="dark"] html,
:root[data-mantine-color-scheme="dark"] body,
html[data-mantine-color-scheme="dark"],
body[data-mantine-color-scheme="dark"] {
    background: linear-gradient(180deg, #000000 0%, #030100 30%, #0a0300 55%, #1a0700 75%, #331200 90%, #662200 100%) !important;
    background-attachment: fixed !important;
}

/* ==========================================
   BASE & BODY
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%) !important;
    background-color: var(--bg-gradient-end) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease;
} */

/* Radial orange glow */
.radial-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, var(--radial-glow) 0%, rgba(255, 102, 0, 0.04) 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   CARDS GRID & BASKET ELEMENTS
   ========================================== */


.btn-trade-buy {
    transition: all 0.2s;
}

.btn-trade-buy:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.btn-trade-sell {
    transition: all 0.2s;
}

.btn-trade-sell:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* ==========================================
   CARDS GRID & SECTION WRAPPERS
   ========================================== */

/* .section-panel → mantine_theme.components.Paper (radius=16, bg, border, padding, shadow) */
/* .section-panel {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 24px;
    background: var(--glass-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.25s;
    margin-bottom: 24px;
} */

/* .info-card → mantine_theme.components.Card (gradient gold, border, shadow, transition) */
/* .info-card {
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    background: linear-gradient(135deg, rgba(195, 146, 79, 0.045) 0%, rgba(255, 255, 255, 0.008) 100%) !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s;
    box-shadow: var(--card-shadow);
} */

/* .info-card.interactive { cursor: pointer; } */

/* .info-card:hover {
    background: linear-gradient(135deg, rgba(195, 146, 79, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border-color: rgba(195, 146, 79, 0.22) !important;
    box-shadow: 0 0 0 1px rgba(195, 146, 79, 0.18), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
} */

/* Hover pour dmc.Card interactives (className="card-interactive") */
.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    background: linear-gradient(135deg, rgba(195, 146, 79, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border-color: rgba(195, 146, 79, 0.22) !important;
    box-shadow: 0 0 0 1px rgba(195, 146, 79, 0.18), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}


/* ==========================================
   EVENT TIMELINE STRIP
   ========================================== */
/* .timeline-strip {
    margin-bottom: 40px;
    position: relative;
} */

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.timeline-title {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.timeline-nav {
    display: flex;
    gap: 6px;
}

/* .nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.disabled {
    border-color: rgba(255, 255, 255, 0.08);
    color: #333;
    cursor: default;
} */

/* .timeline-scroll-container {
    position: relative;
} */

.timeline-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    user-select: none;
}

.timeline-scroll::-webkit-scrollbar {
    display: none;
}

/* ── TIMELINE CARD — supprimé, styles gérés inline via dmc.Accordion props ── */
/* ── BADGE — supprimé, remplacé par dmc.Badge avec couleurs du thème ── */
/* ── ACTIVE-GLOW-LINE — supprimé, inutilisé (composant retiré) ── */

/* .fade-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, var(--timeline-fade), transparent);
    pointer-events: none;
    z-index: 2;
}

.fade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(270deg, var(--timeline-fade), transparent);
    pointer-events: none;
    z-index: 2;
} */

/* Next Obs Section */
.next-obs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
    margin-bottom: 4px;
}


/* asset-card-hover — seule classe CSS pour la carte basket (hover impossible en DMC inline) */
.asset-card-hover:hover {
    border-color: var(--glass-border) !important;
    box-shadow: 0 0 0 1px var(--glass-border), 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.floating-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 10px;
    background: rgba(255, 102, 0, 0.15);
    color: #FF6600;
    border: 1px solid rgba(255, 102, 0, 0.3);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Mechanic bar */
.mechanic-bar {
    height: 6px;
    width: 100%;
    background: var(--mechanic-bar-bg);
    border-radius: 3px;
    position: relative;
}

.mechanic-fill {
    height: 100%;
    border-radius: 3px;
}

.barrier-marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
}

.barrier-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

/* Barrier table */
.barrier-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.barrier-table th {
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.barrier-table td {
    padding: 6px 0;
}

/* ==========================================
   CHART SECTION
   ========================================== */
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

.legend-item.inactive {
    opacity: 0.4;
}

.legend-swatch {
    width: 10px;
    height: 2px;
}

.legend-div {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   PLOTLY CHART — SPIKELINE OVERRIDE
   Forces the x-axis hover spike to render as a hairline
   regardless of Plotly's internal stroke-width attribute.
   ========================================== */
.js-plotly-plot .plotly .spikeline {
    stroke-width: 0.5px !important;
    stroke-opacity: 0.4 !important;
    stroke: rgba(255, 255, 255, 0.5) !important;
}

[data-mantine-color-scheme="light"] .js-plotly-plot .plotly .spikeline {
    stroke: rgba(0, 0, 0, 0.3) !important;
}

/* Rounded corners on the hover tooltip box */
.js-plotly-plot .plotly .hovertext rect {
    rx: 8px;
    ry: 8px;
}

/* Reduce the trace line swatch in x unified hover — path class is .js-line, 30px→12px */
.js-plotly-plot .hoverlayer path.js-line {
    d: path("M5,0h12") !important;
}

/* Close the gap between the shorter swatch and the label text */
.js-plotly-plot .hoverlayer .legendtext {
    transform: translateX(-16px);
}

/* ==========================================
   MODALS — HTML LEGACY (plus utilisé, remplacé par dmc.Modal + mantine_theme.components.Modal)
   ========================================== */
/* .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
} */

/* .modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
    min-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
} */

/* .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
} */

/* .modal-header h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
} */

/* .close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 18px;
    cursor: pointer;
} */

/* .close-btn:hover {
    color: var(--text-primary);
} */

/* .modal-table — base reset (les surcharges V6 en bas du fichier sont actives) */
/* .modal-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    color: var(--text-primary);
} */

/* .modal-table th {
    text-align: left;
    font-weight: 700;
    padding: 8px;
    color: var(--text-dimmed);
    border-bottom: 1px solid var(--divider-color);
} */

/* .modal-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--divider-color);
} */

/* ── status-pill → remplacé par dmc.Badge variants (mantine_theme.components.Badge) ── */
/* .status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
} */
/* .status-paid    { background: rgba(0, 224, 150, 0.15); color: #00E096; } */
/* .status-missed  { background: rgba(255, 51, 68, 0.15);  color: #FF3344; } */
/* .status-pending { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.45); } */
/* .status-called  { background: rgba(255, 215, 0, 0.15);   color: #FFD700; } */

/* Form inputs → mantine_theme.components.TextInput/Select/NumberInput/Textarea */
/* .form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-radius: 6px;
    outline: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
} */

/* .form-input:focus {
    border-color: rgba(255, 102, 0, 0.4);
} */

/* .form-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
} */

/* .btn-action → mantine_theme.components.Button */
/* .btn-action {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
} */

/* .btn-action:hover  { opacity: 0.9; } */
/* .btn-action:disabled { opacity: 0.3; cursor: not-allowed; } */

/* ==========================================
   PAYOFF TREE (popup)
   ========================================== */
.payoff-block {
    margin-bottom: 8px;
}

.payoff-condition {
    font-size: 11px;
    color: var(--text-dimmed);
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--timeline-expanded-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 4px;
}

.payoff-fixed {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
}

.payoff-linear {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
}

/* ── TIMELINE TYPE COLORS & BADGE COLORS V6 — supprimés, gérés inline via DMC ── */

/* ==========================================
   V6 — SCHEDULE MODAL TABLE
   ========================================== */
.modal-table th {
    color: light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)) !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 10px !important;
    border-bottom: 1px solid var(--divider-color);
}

.modal-table td {
    color: light-dark(rgba(0, 0, 0, 0.82), rgba(255, 255, 255, 0.85));
    font-size: 12px;
    vertical-align: middle;
}


/* Badge payoff in schedule table */
.badge-payoff {
    display: inline-block;
    background: rgba(195, 146, 79, 0.15);
    border: 1px solid rgba(195, 146, 79, 0.5);
    color: #c3924f;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    transition: background 0.15s;
}

.badge-payoff:hover {
    background: rgba(195, 146, 79, 0.28);
}


/* Basket accordion: round the hover highlight to match card border-radius */
.basket-card .mantine-Accordion-control {
    border-radius: var(--mantine-radius-md);
}
.basket-card .mantine-Accordion-control:focus-visible {
    outline: none;
}

/* Fixing badge (LB Min / LB Max / Asian) — zoom on hover */
.fixing-badge-btn {
    transition: transform 0.18s ease;
    display: inline-flex;
}
.fixing-badge-btn:hover {
    transform: scale(1.15);
}

/* Payout tree panel in schedule modals */

.payout-tree-panel {
    background: rgba(195, 146, 79, 0.06);
    border: 1px solid rgba(195, 146, 79, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 11px;
}

.payout-tree-panel .tree-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
}

.payout-tree-panel .tree-label {
    color: rgba(255, 255, 255, 0.4);
}

.payout-tree-panel .tree-value {
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #c3924f;
}

/* ==========================================
   GLASS ACTION BUTTONS (Accordion, Pagination)
   ========================================== */
.glass-action-btn,
#tl-container .mantine-Carousel-control {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: light-dark(rgba(255, 255, 255, 0.85), rgba(30, 30, 30, 0.85)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08)) !important;
    box-shadow: 0 1px 3px light-dark(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12)) !important;
    color: var(--mantine-color-dimmed) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    outline: none !important;
}

.glass-action-btn:hover,
.glass-action-btn:focus,
.glass-action-btn:focus-visible,
#tl-container .mantine-Carousel-control:hover {
    transform: scale(1.1) !important;
    border: 1px solid transparent !important;
    outline: none !important;
    box-shadow: 0 3px 8px light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2)) !important;
    color: var(--mantine-color-brand-6) !important;
    background-color: light-dark(rgba(255, 255, 255, 0.98), rgba(18, 18, 18, 0.98)) !important;
}

/* Carousel control hover: keep visible border in brand color */
#tl-container .mantine-Carousel-control:hover {
    border: 1px solid var(--mantine-color-brand-6) !important;
}

/* calendar-tooltip-dropdown background handled by bg= Mantine prop */

/* TagsInput : masque le placeholder dès qu'un tag (pill) est présent */
/* (sélecteur sibling ~ — impossible à exprimer via Mantine styles API) */
.mantine-TagsInput-pill ~ .mantine-TagsInput-inputField::placeholder {
    opacity: 0 !important;
}

/* ── Drawer buttons — remplacent les helpers Python drawer_btn_props() ───────
   Utiliser variant="default" + className="btn-drawer-brand|buy|sell"
   light-dark() nécessite que Mantine ait défini color-scheme sur :root       */

/* ─ Brand (orange brand glass — identique au badge "TO SEND") ─────────────── */
.btn-drawer-brand.mantine-Button-root {
    background: linear-gradient(90deg,
        light-dark(color-mix(in srgb, var(--mantine-color-brand-7) 14%, transparent), color-mix(in srgb, var(--mantine-color-brand-5) 20%, transparent)) 0%,
        light-dark(color-mix(in srgb, var(--mantine-color-brand-7) 10%, transparent), color-mix(in srgb, var(--mantine-color-brand-5) 4%, transparent)) 100%
    ) !important;
    border: 1px solid light-dark(color-mix(in srgb, var(--mantine-color-brand-7) 55%, transparent), color-mix(in srgb, var(--mantine-color-brand-5) 40%, transparent)) !important;
    color: light-dark(var(--mantine-color-brand-8), var(--mantine-color-brand-4)) !important;
}
.btn-drawer-brand.mantine-Button-root:hover {
    background: linear-gradient(90deg,
        light-dark(color-mix(in srgb, var(--mantine-color-brand-7) 22%, transparent), color-mix(in srgb, var(--mantine-color-brand-5) 30%, transparent)) 0%,
        light-dark(color-mix(in srgb, var(--mantine-color-brand-7) 18%, transparent), color-mix(in srgb, var(--mantine-color-brand-5) 12%, transparent)) 100%
    ) !important;
}

/* ─ BUY (glass vert) ─────────────────────────────────────────────────────── */
.btn-drawer-buy.mantine-Button-root {
    background: linear-gradient(135deg, light-dark(rgba(30,160,100,0.18), rgba(30,160,100,0.20)) 0%, light-dark(rgba(30,160,100,0.06), rgba(30,160,100,0.08)) 100%) !important;
    border: 1px solid light-dark(rgba(30,160,100,0.50), rgba(30,160,100,0.45)) !important;
    color: light-dark(#1a7a50, #3dba80) !important;
}
.btn-drawer-buy.mantine-Button-root:hover {
    background: linear-gradient(135deg, light-dark(rgba(30,160,100,0.30), rgba(30,160,100,0.32)) 0%, light-dark(rgba(30,160,100,0.14), rgba(30,160,100,0.16)) 100%) !important;
}

/* ─ SELL (glass rouge) ───────────────────────────────────────────────────── */
.btn-drawer-sell.mantine-Button-root {
    background: linear-gradient(135deg, light-dark(rgba(190,55,55,0.18), rgba(200,60,60,0.20)) 0%, light-dark(rgba(190,55,55,0.06), rgba(200,60,60,0.08)) 100%) !important;
    border: 1px solid light-dark(rgba(190,55,55,0.50), rgba(200,60,60,0.45)) !important;
    color: light-dark(#8b2020, #e05555) !important;
}
.btn-drawer-sell.mantine-Button-root:hover {
    background: linear-gradient(135deg, light-dark(rgba(190,55,55,0.30), rgba(200,60,60,0.32)) 0%, light-dark(rgba(190,55,55,0.14), rgba(200,60,60,0.16)) 100%) !important;
}



/* ── Historical Chart: hide composite _floor_ from hover tooltip ─────────── */
/* _floor_ series has label="" → name span is empty → CSS hides the row       */
#main-chart .recharts-tooltip-item:has(.recharts-tooltip-item-name:empty) {
    display: none !important;
}

/* Chart Tooltip Customization */
.recharts-tooltip-wrapper .recharts-default-tooltip {
    font-size: 11px !important;
    padding: 6px 10px !important;
}
.recharts-tooltip-wrapper .recharts-tooltip-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}
.recharts-tooltip-wrapper .recharts-tooltip-item {
    font-size: 11px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
