/* CK Data — brand tokens */
:root {
  --ck-gold: #F0A030;
  --ck-navy: #2C3E50;
  --ck-green: #2ECC71;
  --ck-red: #E74C3C;

  /* Sector colors */
  --ck-equities: #5B8DEF;
  --ck-metals: #F0A030;
  --ck-energy: #E25822;
  --ck-fx: #2ECC71;
  --ck-agricultural: #8BC34A;
  --ck-treasuries: #9B59B6;
}

[data-mantine-color-scheme="dark"] {
  --mantine-color-body: #1a1b1e;
}

/* Keep anchors clean inside nav */
a { text-decoration: none; }
a:hover { color: var(--app-dimmed, #9aa1ad) !important; }

/* --- AG Grid: Settlement Board --- */
.ag-grid-products {
    border: 1px solid var(--app-border, #2a2c31);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ag-grid-products .ag-root-wrapper {
    border: none !important;
    background: transparent !important;
}
.ag-grid-products .ag-header {
    border-bottom: 1px solid var(--app-border, #2a2c31) !important;
    background: var(--app-surface-2, #17181b) !important;
}
.ag-grid-products .ag-header-cell,
.ag-grid-products .ag-header-group-cell {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24px;
    text-transform: uppercase;
    color: var(--app-dimmed, #9aa1ad);
}
.ag-grid-products .ag-cell {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    display: flex;
    align-items: center;
    color: var(--app-text, #f5f6f7);
}
.ag-grid-products .ag-row {
    background: var(--app-surface, #121214) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--app-border, #2a2c31) 60%, transparent);
}
.ag-grid-products .ag-row-odd {
    background: var(--app-surface-2, #17181b) !important;
}
.ag-grid-products .ag-row:hover {
    background: color-mix(in srgb, var(--app-hover, #1d1f24) 72%, transparent) !important;
}
.ag-grid-products .ag-value-pos {
    color: #16a34a;
    font-weight: 700;
}
.ag-grid-products .ag-value-neg {
    color: #dc2626;
    font-weight: 700;
}

/* --- Light theme overrides --- */
[data-mantine-color-scheme='light'] {
    --app-bg: #ffffff;
    --app-surface: #ffffff;
    --app-surface-2: #f7f7f8;
    --app-border: #e6e7eb;
    --app-text: #111214;
    --app-dimmed: #6b7280;
    --app-hover: #f1f2f4;
}
/* --- Dark theme overrides --- */
[data-mantine-color-scheme='dark'] {
    --app-bg: #0b0b0c;
    --app-surface: #121214;
    --app-surface-2: #17181b;
    --app-border: #2a2c31;
    --app-text: #f5f6f7;
    --app-dimmed: #9aa1ad;
    --app-hover: #1d1f24;
}
