/* Daily Report page – professional dark theme (Markets & Crypto) */

body.rsi-dark-page #contentArea.page-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 18px 40px;
    background: transparent !important;
}

body.rsi-dark-page .dr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: #141b26;
    border: 1px solid #2a3544;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.rsi-dark-page .dr-controls .status {
    font-size: 0.9rem;
    color: #94a3b8;
}

body.rsi-dark-page .dr-controls .actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

body.rsi-dark-page .btn-range {
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    border: 1px solid #2a3544;
    background: #1a2332;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.rsi-dark-page .btn-range:hover {
    background: #243044;
    color: #e2e8f0;
}

body.rsi-dark-page .btn-range.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

body.rsi-dark-page .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

body.rsi-dark-page .kpi-card {
    background: #141b26;
    border: 1px solid #2a3544;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.rsi-dark-page .kpi-card h4 {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    font-weight: 700;
}

body.rsi-dark-page .kpi-card .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

body.rsi-dark-page .kpi-card .sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

body.rsi-dark-page .dr-section {
    background: #141b26;
    border-radius: 14px;
    border: 1px solid #2a3544;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.rsi-dark-page .dr-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #f8fafc;
    font-weight: 800;
}

body.rsi-dark-page .dr-section h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
}

body.rsi-dark-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

body.rsi-dark-page .summary-pill {
    background: #0c1219;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #2a3544;
}

body.rsi-dark-page .summary-pill .label {
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.rsi-dark-page .summary-pill .value {
    font-weight: 700;
    margin-top: 4px;
    color: #f1f5f9;
}

body.rsi-dark-page .table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.rsi-dark-page .table-tools input,
body.rsi-dark-page .table-tools select {
    border-radius: 8px;
    border: 1px solid #2a3544;
    padding: 6px 10px;
    font-size: 0.9rem;
    background: #0c1219;
    color: #e2e8f0;
}

body.rsi-dark-page .table-tools input::placeholder {
    color: #64748b;
}

body.rsi-dark-page .table-tools input:focus,
body.rsi-dark-page .table-tools select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.rsi-dark-page .muted {
    color: #64748b !important;
}

body.rsi-dark-page .badge-soft {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

body.rsi-dark-page .pnl-pos {
    color: #34d399 !important;
    font-weight: 700;
}

body.rsi-dark-page .pnl-neg {
    color: #f87171 !important;
    font-weight: 700;
}

body.rsi-dark-page .warn {
    color: #fbbf24 !important;
    font-weight: 600;
}

body.rsi-dark-page .pill-long {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

body.rsi-dark-page .pill-short {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

body.rsi-dark-page .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.rsi-dark-page .range-label {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
}

body.rsi-dark-page .note {
    font-size: 0.85rem;
    color: #64748b;
}

body.rsi-dark-page .dr-trustpilot-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 18px 0;
}

/* Bootstrap table overrides */
body.rsi-dark-page .table {
    color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.08);
    border-color: #2a3544;
}

body.rsi-dark-page .table thead th {
    background: #1a2332 !important;
    color: #94a3b8 !important;
    border-color: #2a3544 !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

body.rsi-dark-page .table td,
body.rsi-dark-page .table th {
    border-color: #2a3544 !important;
    vertical-align: middle;
}

body.rsi-dark-page .small-table td,
body.rsi-dark-page .small-table th {
    font-size: 0.85rem;
    padding: 6px 8px;
}

body.rsi-dark-page .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #3b82f6;
}

body.rsi-dark-page .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #60a5fa;
}

body.rsi-dark-page #alertList {
    padding-left: 1.2rem;
    color: #94a3b8;
}

body.rsi-dark-page #alertList li {
    margin-bottom: 6px;
}

/* ── Readable table & metric text (Bootstrap striped + premium-seo fixes) ── */
body.rsi-dark-page #contentArea .page-header {
    background: #141b26 !important;
    border: 1px solid #2a3544 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

body.rsi-dark-page #contentArea .page-header h1 {
    color: #f8fafc !important;
}

body.rsi-dark-page #contentArea .page-header .lead {
    color: #94a3b8 !important;
}

body.rsi-dark-page #contentArea .table {
    --bs-table-color: #e2e8f0;
    --bs-table-striped-color: #e2e8f0;
    --bs-table-active-color: #e2e8f0;
    --bs-table-hover-color: #f1f5f9;
    color: #e2e8f0 !important;
}

body.rsi-dark-page #contentArea .table > :not(caption) > * > * {
    color: #e2e8f0 !important;
}

body.rsi-dark-page #contentArea .table thead th {
    color: #94a3b8 !important;
    background: #1a2332 !important;
}

body.rsi-dark-page #contentArea .table tbody th {
    color: #94a3b8 !important;
    font-weight: 600;
    background: transparent !important;
}

body.rsi-dark-page #contentArea .table tbody td {
    color: #e2e8f0 !important;
}

body.rsi-dark-page #contentArea .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #e2e8f0 !important;
    --bs-table-color-type: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

body.rsi-dark-page #contentArea .table-striped > tbody > tr:nth-of-type(even) > * {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

body.rsi-dark-page #contentArea .table tbody tr:hover > * {
    color: #f1f5f9 !important;
    background-color: rgba(59, 130, 246, 0.08) !important;
}

body.rsi-dark-page #contentArea .table td.pnl-pos,
body.rsi-dark-page #contentArea .table .pnl-pos {
    color: #34d399 !important;
}

body.rsi-dark-page #contentArea .table td.pnl-neg,
body.rsi-dark-page #contentArea .table .pnl-neg {
    color: #f87171 !important;
}

body.rsi-dark-page #contentArea .table a,
body.rsi-dark-page #contentArea .table .symbol-link {
    color: #93c5fd !important;
}

body.rsi-dark-page #contentArea .dr-section .muted {
    color: #94a3b8 !important;
}

body.rsi-dark-page #contentArea #aggReport .table th,
body.rsi-dark-page #contentArea #rollupTable .table th {
    color: #94a3b8 !important;
}

body.rsi-dark-page #contentArea #aggReport .table td,
body.rsi-dark-page #contentArea #rollupTable .table td {
    color: #e2e8f0 !important;
}

body.rsi-dark-page #contentArea .kpi-card .sub {
    color: #94a3b8 !important;
}

body.rsi-dark-page #contentArea .summary-pill .value:not(.pnl-pos):not(.pnl-neg) {
    color: #f1f5f9 !important;
}
