/* TradeAnalyzer.Pro — Watchlist & Alerts (Crypto + Markets), extends rsi-pro-page.css */

body.rsi-dark-page.watchlist-alerts-page {
    --rsi-bg: #070b14;
    --rsi-panel: #0d1524;
    --rsi-card: #111a2b;
    --rsi-line: rgba(148, 163, 184, 0.18);
    --rsi-text: #e8eef7;
    --rsi-muted: #94a3b8;
    --rsi-cyan: #38bdf8;
    --rsi-blue: #0ea5e9;
    --rsi-gold: #eab308;
    --rsi-green: #34d399;
    --rsi-red: #f87171;
    --rsi-radius: 16px;
    --rsi-display: "Sora", system-ui, sans-serif;
    --rsi-body: "IBM Plex Sans", system-ui, sans-serif;
    overflow-x: hidden !important;
    font-family: var(--rsi-body) !important;
    color: var(--rsi-text) !important;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(14, 165, 233, 0.15), transparent 55%),
        radial-gradient(900px 500px at 90% 8%, rgba(234, 179, 8, 0.07), transparent 50%),
        var(--rsi-bg) !important;
}

body.rsi-dark-page.watchlist-alerts-page .page-wrap {
    width: min(1180px, calc(100% - 2rem)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 1.5rem 0 3.5rem !important;
}

/* Panels */
body.rsi-dark-page.watchlist-alerts-page .panel {
    position: relative;
    overflow: visible;
    margin-bottom: 1.1rem !important;
    padding: 1.15rem 1.2rem !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(640px 220px at 0% 0%, rgba(14, 165, 233, 0.1), transparent 55%),
        rgba(13, 21, 36, 0.92) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
    z-index: 1;
}

body.rsi-dark-page.watchlist-alerts-page .panel:has(.controls-grid),
body.rsi-dark-page.watchlist-alerts-page .panel:has(.ta-dark-select.is-open),
body.rsi-dark-page.watchlist-alerts-page .panel:has(.wa-symbol-results.is-open) {
    z-index: 60;
}

body.rsi-dark-page.watchlist-alerts-page .panel::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rsi-cyan), var(--rsi-gold), transparent);
    pointer-events: none;
}

body.rsi-dark-page.watchlist-alerts-page .title-line h1,
body.rsi-dark-page.watchlist-alerts-page .title-line h2,
body.rsi-dark-page.watchlist-alerts-page .info-bar h2 {
    font-family: var(--rsi-display) !important;
    color: var(--rsi-text) !important;
    letter-spacing: -0.02em;
    font-weight: 700 !important;
}

body.rsi-dark-page.watchlist-alerts-page .title-line h1 {
    font-size: 1.55rem !important;
}

body.rsi-dark-page.watchlist-alerts-page .title-line h1 i,
body.rsi-dark-page.watchlist-alerts-page .title-line h2 i,
body.rsi-dark-page.watchlist-alerts-page .info-bar h2 i {
    color: var(--rsi-cyan) !important;
    margin-inline-end: 0.4rem;
}

body.rsi-dark-page.watchlist-alerts-page .subtitle,
body.rsi-dark-page.watchlist-alerts-page .tiny,
body.rsi-dark-page.watchlist-alerts-page .countdown,
body.rsi-dark-page.watchlist-alerts-page .empty {
    color: var(--rsi-muted) !important;
    font-family: var(--rsi-body) !important;
}

body.rsi-dark-page.watchlist-alerts-page .subtitle {
    max-width: 78ch;
    margin-top: 0.35rem !important;
    line-height: 1.55;
}

/* Badge */
body.rsi-dark-page.watchlist-alerts-page .badge-soft {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.watchlist-alerts-page .badge-soft.loading {
    background: rgba(234, 179, 8, 0.12) !important;
    color: #fde68a !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
}

body.rsi-dark-page.watchlist-alerts-page .badge-soft.error {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

/* Controls */
body.rsi-dark-page.watchlist-alerts-page .page-wrap .form-label {
    color: var(--rsi-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.rsi-dark-page.watchlist-alerts-page .page-wrap .form-control,
body.rsi-dark-page.watchlist-alerts-page .page-wrap .form-select,
body.rsi-dark-page.watchlist-alerts-page .alert-row input[type="number"],
body.rsi-dark-page.watchlist-alerts-page .alert-row select,
body.rsi-dark-page.watchlist-alerts-page .preset-row select,
body.rsi-dark-page.watchlist-alerts-page .condition-row-modal select,
body.rsi-dark-page.watchlist-alerts-page .condition-row-modal input {
    background: rgba(17, 26, 43, 0.95) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-text) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-family: var(--rsi-body) !important;
}

body.rsi-dark-page.watchlist-alerts-page .page-wrap .form-control:focus,
body.rsi-dark-page.watchlist-alerts-page .page-wrap .form-select:focus,
body.rsi-dark-page.watchlist-alerts-page .alert-row input[type="number"]:focus,
body.rsi-dark-page.watchlist-alerts-page .alert-row select:focus {
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14) !important;
    outline: none !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.watchlist-alerts-page .page-wrap .form-control::placeholder {
    color: rgba(148, 163, 184, 0.75) !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-primary,
body.rsi-dark-page.watchlist-alerts-page #addBtn {
    border-radius: 999px !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    background: rgba(14, 165, 233, 0.18) !important;
    color: #7dd3fc !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-primary:hover,
body.rsi-dark-page.watchlist-alerts-page #addBtn:hover {
    background: rgba(14, 165, 233, 0.28) !important;
    border-color: rgba(56, 189, 248, 0.65) !important;
    color: #bae6fd !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-success,
body.rsi-dark-page.watchlist-alerts-page #saveRulesBtn {
    border-radius: 999px !important;
    border: 1px solid rgba(52, 211, 153, 0.4) !important;
    background: rgba(52, 211, 153, 0.16) !important;
    color: var(--rsi-green) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-outline-primary,
body.rsi-dark-page.watchlist-alerts-page .btn-outline-secondary,
body.rsi-dark-page.watchlist-alerts-page .btn-action {
    border-radius: 999px !important;
    border: 1px solid var(--rsi-line) !important;
    background: rgba(17, 26, 43, 0.9) !important;
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-outline-primary:hover,
body.rsi-dark-page.watchlist-alerts-page .btn-outline-secondary:hover,
body.rsi-dark-page.watchlist-alerts-page .btn-action:hover {
    border-color: rgba(56, 189, 248, 0.38) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-action.primary {
    border-color: rgba(56, 189, 248, 0.45) !important;
    background: rgba(14, 165, 233, 0.18) !important;
    color: #7dd3fc !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-action.danger {
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
    background: rgba(248, 113, 113, 0.08) !important;
}

body.rsi-dark-page.watchlist-alerts-page .btn-action.danger:hover {
    background: rgba(248, 113, 113, 0.16) !important;
}

/* Accordion */
body.rsi-dark-page.watchlist-alerts-page .alert-section-header {
    background: rgba(17, 26, 43, 0.92) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 12px !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-section-header:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    background: rgba(56, 189, 248, 0.06) !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-section-header.active {
    background: rgba(14, 165, 233, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    border-radius: 12px 12px 0 0 !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-section-header h3 {
    color: var(--rsi-text) !important;
    font-family: var(--rsi-display) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-section-header h3 i {
    color: var(--rsi-cyan) !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-section-header .toggle-icon {
    color: var(--rsi-muted) !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-section-body {
    background: rgba(7, 11, 20, 0.55) !important;
    border: 1px solid var(--rsi-line) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-row {
    border-bottom-color: rgba(148, 163, 184, 0.1) !important;
}

body.rsi-dark-page.watchlist-alerts-page .alert-row label {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

/* Info bar / stats */
body.rsi-dark-page.watchlist-alerts-page .info-bar .stats {
    color: var(--rsi-muted) !important;
    font-size: 0.82rem !important;
}

body.rsi-dark-page.watchlist-alerts-page .info-bar .stats strong {
    color: var(--rsi-text) !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.watchlist-alerts-page #statLong {
    color: var(--rsi-green) !important;
}

body.rsi-dark-page.watchlist-alerts-page #statShort {
    color: var(--rsi-red) !important;
}

/* Table */
body.rsi-dark-page.watchlist-alerts-page .table-wrap,
body.rsi-dark-page.watchlist-alerts-page .watchlist-alerts-table-scroll {
    max-height: min(62vh, calc(100vh - 300px));
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(13, 21, 36, 0.96) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 14px !important;
    position: relative;
}

body.rsi-dark-page.watchlist-alerts-page .watchlist-alerts-table-scroll::after {
    content: "← scroll for all columns →";
    display: block;
    text-align: center;
    font-size: 0.68rem;
    color: var(--rsi-muted);
    padding: 0.4rem 0 0.35rem;
    letter-spacing: 0.02em;
    background: rgba(13, 21, 36, 0.96);
    position: sticky;
    left: 0;
    bottom: 0;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable {
    width: max-content !important;
    min-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    color: var(--rsi-text) !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--rsi-text) !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-bg-type: transparent !important;
    --bs-table-bg-state: transparent !important;
    --bs-body-bg: #0d1524 !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable th,
body.rsi-dark-page.watchlist-alerts-page #watchlistTable td {
    display: table-cell !important;
    white-space: nowrap;
    padding: 0.7rem 0.65rem !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
    box-shadow: none !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable thead,
body.rsi-dark-page.watchlist-alerts-page #watchlistTable thead tr {
    background: #111a2b !important;
    background-color: #111a2b !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable thead th,
body.rsi-dark-page.watchlist-alerts-page #watchlistTable > thead > tr > th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: #111a2b !important;
    background-color: #111a2b !important;
    color: #94a3b8 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--rsi-line) !important;
    box-shadow: none !important;
    --bs-table-bg: #111a2b !important;
    --bs-table-bg-state: transparent !important;
    --bs-table-bg-type: transparent !important;
    --bs-table-accent-bg: transparent !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable th:first-child,
body.rsi-dark-page.watchlist-alerts-page #watchlistTable td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35) !important;
    border-right: 1px solid var(--rsi-line) !important;
    min-width: 100px;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable thead th:first-child {
    z-index: 8 !important;
    background: #111a2b !important;
    background-color: #111a2b !important;
    text-align: left !important;
    padding-left: 1rem !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable td:first-child {
    background-color: #0d1524 !important;
    color: var(--rsi-cyan) !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding-left: 1rem !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable tbody tr:nth-child(even) td:not(:first-child) {
    background-color: rgba(17, 26, 43, 0.55) !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable tbody tr:nth-child(even) td:first-child {
    background-color: #111a2b !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable tbody tr:hover td:not(:first-child) {
    background-color: rgba(56, 189, 248, 0.07) !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable tbody tr:hover td:first-child {
    background-color: #152033 !important;
}

body.rsi-dark-page.watchlist-alerts-page #watchlistTable th.sorted .sort-icon {
    color: var(--rsi-cyan) !important;
}

body.rsi-dark-page.watchlist-alerts-page .error-row td {
    background: rgba(248, 113, 113, 0.08) !important;
}

/* Signal pills */
body.rsi-dark-page.watchlist-alerts-page .sig-long {
    background: rgba(52, 211, 153, 0.12) !important;
    color: var(--rsi-green) !important;
    border: 1px solid rgba(52, 211, 153, 0.28) !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 0.25rem 0.65rem !important;
}

body.rsi-dark-page.watchlist-alerts-page .sig-short {
    background: rgba(248, 113, 113, 0.12) !important;
    color: var(--rsi-red) !important;
    border: 1px solid rgba(248, 113, 113, 0.28) !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 0.25rem 0.65rem !important;
}

body.rsi-dark-page.watchlist-alerts-page .sig-neutral {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--rsi-muted) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 0.25rem 0.65rem !important;
}

/* History */
body.rsi-dark-page.watchlist-alerts-page .history-item {
    border-bottom-color: rgba(148, 163, 184, 0.1) !important;
}

body.rsi-dark-page.watchlist-alerts-page .history-item.unread {
    background: rgba(234, 179, 8, 0.08) !important;
}

body.rsi-dark-page.watchlist-alerts-page .history-item .time {
    color: var(--rsi-muted) !important;
}

body.rsi-dark-page.watchlist-alerts-page .history-item .symbol {
    color: var(--rsi-text) !important;
    font-weight: 700 !important;
}

body.rsi-dark-page.watchlist-alerts-page .history-item .message {
    color: var(--rsi-muted) !important;
}

body.rsi-dark-page.watchlist-alerts-page .history-item .ack-btn {
    background: rgba(17, 26, 43, 0.95) !important;
    color: var(--rsi-muted) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 999px !important;
}

body.rsi-dark-page.watchlist-alerts-page .history-item .ack-btn:hover {
    background: rgba(56, 189, 248, 0.1) !important;
    color: var(--rsi-text) !important;
}

/* Modal
   IMPORTANT: #symbolAlertModal uses class "modal-backdrop", which Bootstrap
   styles as opacity:0.5 when .show is set. That makes the whole dialog see-through.
   Force opacity:1 and opaque panel backgrounds. */
body.rsi-dark-page.watchlist-alerts-page #symbolAlertModal.modal-backdrop,
body.rsi-dark-page.watchlist-alerts-page #symbolAlertModal.modal-backdrop.show {
    opacity: 1 !important;
    background: rgba(2, 6, 23, 0.78) !important;
    z-index: 1100 !important;
    align-items: center !important;
    justify-content: center !important;
}

body.rsi-dark-page.watchlist-alerts-page #symbolAlertModal .modal-content,
body.rsi-dark-page.watchlist-alerts-page .modal-content {
    background: #0d1524 !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
}

body.rsi-dark-page.watchlist-alerts-page .modal-header {
    background:
        radial-gradient(520px 180px at 0% 0%, rgba(14, 165, 233, 0.18), transparent 60%),
        #111a2b !important;
    border-bottom: 1px solid var(--rsi-line) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.watchlist-alerts-page .modal-body {
    color: var(--rsi-text) !important;
    background: #0d1524 !important;
}

body.rsi-dark-page.watchlist-alerts-page .modal-footer {
    background: #070b14 !important;
    border-top-color: var(--rsi-line) !important;
}

body.rsi-dark-page.watchlist-alerts-page .preset-row,
body.rsi-dark-page.watchlist-alerts-page .condition-row-modal {
    border-bottom-color: rgba(148, 163, 184, 0.1) !important;
}

body.rsi-dark-page.watchlist-alerts-page .preset-row label,
body.rsi-dark-page.watchlist-alerts-page .modal-body label,
body.rsi-dark-page.watchlist-alerts-page .modal-body strong {
    color: #cbd5e1 !important;
}

body.rsi-dark-page.watchlist-alerts-page .condition-row-modal .remove-cond {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
    border-radius: 999px !important;
}

/* SEO */
body.rsi-dark-page.watchlist-alerts-page .seo-description-section .card {
    background: rgba(13, 21, 36, 0.92) !important;
    border: 1px solid var(--rsi-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26) !important;
    overflow: hidden;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section .card::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rsi-cyan), var(--rsi-gold), transparent);
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section .card-body {
    color: var(--rsi-muted) !important;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section h2,
body.rsi-dark-page.watchlist-alerts-page .seo-description-section h3 {
    font-family: var(--rsi-display) !important;
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section h2 {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 1px solid var(--rsi-line) !important;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section h2::before {
    content: none !important;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section .alert-info {
    background: rgba(17, 26, 43, 0.9) !important;
    border: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
    border-radius: 14px !important;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section .alert-heading {
    color: var(--rsi-text) !important;
}

body.rsi-dark-page.watchlist-alerts-page .seo-description-section a {
    color: var(--rsi-cyan) !important;
}

body.rsi-dark-page.watchlist-alerts-page .footer-simple,
body.rsi-dark-page.watchlist-alerts-page footer.footer-simple {
    background: #070b14 !important;
    background-color: #070b14 !important;
    border-top: 1px solid var(--rsi-line) !important;
    color: var(--rsi-muted) !important;
}

/* Sticky-head clone (if controller injects it) */
body.rsi-dark-page.watchlist-alerts-page .indicator-sticky-head {
    background: #111a2b !important;
    color: #94a3b8 !important;
    border: 1px solid var(--rsi-line) !important;
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

body.rsi-dark-page.watchlist-alerts-page .indicator-sticky-head span {
    color: #94a3b8 !important;
    border-right-color: rgba(148, 163, 184, 0.12) !important;
}

html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page .watchlist-alerts-table-scroll,
html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page #watchlistTable {
    direction: rtl;
}

html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page #watchlistTable th:first-child,
html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page #watchlistTable td:first-child {
    left: auto !important;
    right: 0 !important;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.35) !important;
    border-right: none !important;
    border-left: 1px solid var(--rsi-line) !important;
    text-align: right !important;
}

@media (max-width: 768px) {
    body.rsi-dark-page.watchlist-alerts-page .page-wrap {
        width: min(100%, calc(100% - 1.25rem)) !important;
        padding: 1rem 0 2.5rem !important;
    }

    body.rsi-dark-page.watchlist-alerts-page .controls-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    body.rsi-dark-page.watchlist-alerts-page .wa-symbol-search {
        grid-column: 1 / -1;
    }

    body.rsi-dark-page.watchlist-alerts-page #watchlistTable th:first-child,
    body.rsi-dark-page.watchlist-alerts-page #watchlistTable td:first-child {
        min-width: 88px;
    }
}

/* Dark symbol search console (names only — no native white datalist) */
body.rsi-dark-page.watchlist-alerts-page .wa-symbol-search {
    position: relative;
    z-index: 30;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-search-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-search-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page .wa-symbol-search-field > i {
    left: auto;
    right: 14px;
}

body.rsi-dark-page.watchlist-alerts-page #symbolInput {
    padding-left: 2.35rem !important;
    border-radius: 999px !important;
    background: rgba(7, 11, 20, 0.96) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page #symbolInput {
    padding-left: 0.9rem !important;
    padding-right: 2.35rem !important;
}

body.rsi-dark-page.watchlist-alerts-page #symbolInput:focus {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18) !important;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-clear {
    flex: 0 0 auto;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    font: 600 0.82rem/1 var(--rsi-body, system-ui, sans-serif);
    padding: 0.65rem 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-clear:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-results {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    max-height: min(320px, 48vh);
    overflow: hidden;
    padding: 0.35rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    background: rgba(13, 21, 36, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-results.is-open {
    display: flex;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-results.is-portaled {
    position: fixed !important;
    z-index: 20000 !important;
    right: auto;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-results-scroll {
    overflow-y: auto;
    max-height: min(260px, 40vh);
    overscroll-behavior: contain;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #e2e8f0;
    font: 600 0.9rem var(--rsi-body, system-ui, sans-serif);
    text-align: left;
    cursor: pointer;
}

html[dir="rtl"] body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-item {
    text-align: right;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-item:hover,
body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-item.is-active {
    background: rgba(30, 41, 59, 0.9);
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-item .wa-sym-ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    flex: 0 0 auto;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-item mark {
    background: rgba(56, 189, 248, 0.25);
    color: #e0f2fe;
    border-radius: 3px;
    padding: 0 1px;
}

body.rsi-dark-page.watchlist-alerts-page .wa-symbol-result-count {
    padding: 0.45rem 0.75rem 0.35rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Unified dark custom selects (opaque — no native light OS menus) */
body.rsi-dark-page.watchlist-alerts-page select.ta-dark-select-native,
body.watchlist-alerts-page select.ta-dark-select-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select,
body.watchlist-alerts-page .ta-dark-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    vertical-align: middle;
    z-index: 5;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select.is-open,
body.watchlist-alerts-page .ta-dark-select.is-open {
    z-index: 40;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-btn,
body.watchlist-alerts-page .ta-dark-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: #111a2b;
    color: #e2e8f0;
    font: 600 0.88rem/1.2 system-ui, -apple-system, sans-serif;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-btn:hover,
body.watchlist-alerts-page .ta-dark-select-btn:hover,
body.rsi-dark-page.watchlist-alerts-page .ta-dark-select.is-open .ta-dark-select-btn,
body.watchlist-alerts-page .ta-dark-select.is-open .ta-dark-select-btn {
    border-color: rgba(56, 189, 248, 0.55);
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-label,
body.watchlist-alerts-page .ta-dark-select-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-caret,
body.watchlist-alerts-page .ta-dark-select-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
    flex: 0 0 auto;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-menu,
body.watchlist-alerts-page .ta-dark-select-menu {
    position: fixed;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: min(260px, 45vh);
    overflow: auto;
    padding: 6px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    background: #0d1524;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-menu[hidden],
body.watchlist-alerts-page .ta-dark-select-menu[hidden] {
    display: none !important;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-option,
body.watchlist-alerts-page .ta-dark-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: transparent;
    color: #e2e8f0;
    font: 600 0.88rem/1.2 system-ui, -apple-system, sans-serif;
    text-align: left;
    cursor: pointer;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-option:hover,
body.watchlist-alerts-page .ta-dark-select-option:hover {
    background: rgba(30, 41, 59, 0.95);
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-option.is-selected,
body.watchlist-alerts-page .ta-dark-select-option.is-selected {
    background: #2563eb;
    color: #fff;
}

body.rsi-dark-page.watchlist-alerts-page .ta-dark-select-check,
body.watchlist-alerts-page .ta-dark-select-check {
    width: 1rem;
    flex: 0 0 auto;
    font-size: 0.8rem;
    opacity: 0.95;
}

body.rsi-dark-page.watchlist-alerts-page .alert-row .ta-dark-select,
body.watchlist-alerts-page .alert-row .ta-dark-select {
    width: auto;
    min-width: 120px;
    max-width: 180px;
}

body.rsi-dark-page.watchlist-alerts-page .condition-row-modal .ta-dark-select,
body.watchlist-alerts-page .condition-row-modal .ta-dark-select {
    width: 100%;
    max-width: none;
}

body.rsi-dark-page.watchlist-alerts-page #symbolAlertModal .ta-dark-select-menu,
body.watchlist-alerts-page #symbolAlertModal .ta-dark-select-menu {
    background: #0d1524;
}
