body {
    background-color: #0a0e1a;
    color: #e0e6f0;
}

.filterPickercls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px;
    background-color: #0d1526;
    border-bottom: 1px solid #1e3254;
    position: sticky;
    top: 0;
    z-index: 10;
}

input {
    width: auto;
}

.common-align {
    display: inline-block;
}

#PurposeSel {
    margin-left: 10px;
}

.btn-outline-primary {
    border-color: #1e3254 !important;
    color: #a0b8d0 !important;
    background-color: #0f1b2d !important;
    font-size: 12px;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: #1a2d45 !important;
    border-color: #00c8a0 !important;
    color: #00c8a0 !important;
}

.btn-primary {
    background-color: #00c8a0 !important;
    border-color: #00c8a0 !important;
    color: #0a0e1a !important;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #00a880 !important;
    border-color: #00a880 !important;
}

.form-control {
    background-color: #0f1b2d !important;
    color: #e0e6f0 !important;
    border: 1px solid #1e3254 !important;
    width: auto;
}

.form-control:focus {
    border-color: #00c8a0 !important;
    box-shadow: 0 0 0 2px rgba(0,200,160,0.2) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

.form-label {
    color: #a0b8d0;
    font-size: 13px;
}

div#corporateAction_wrapper {
    margin-top: 8px;
    overflow-x: auto;
}

.table {
    color: #e0e6f0 !important;
    border-color: #1e3254 !important;
}

.table thead th {
    background-color: #0f1b2d !important;
    color: #00c8a0 !important;
    border-color: #1e3254 !important;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table tbody tr:nth-child(odd) td {
    background-color: #0a0e1a !important;
    color: #e0e6f0 !important;
    border-color: #1e3254 !important;
}

.table tbody tr:nth-child(even) td {
    background-color: #0d1526 !important;
    color: #e0e6f0 !important;
    border-color: #1e3254 !important;
}

.table tbody tr:hover td {
    background-color: #1a2d45 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background-color: #0f1b2d !important;
    color: #e0e6f0 !important;
    border: 1px solid #1e3254 !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #a0b8d0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #a0b8d0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #1a2d45 !important;
    border-color: #1e3254 !important;
    color: #00c8a0 !important;
}

#csvDownload {
    color: #00c8a0;
    font-size: 13px;
}

.disclaimer {
    background-color: #0d1526;
    border: 1px solid #1e3254;
    border-radius: 6px;
    color: #a0b8d0;
    font-size: 12px;
    padding: 10px 14px;
    margin-top: 16px;
}

/* ── Light Theme Overrides ── */
html.light-theme body { background-color: #eef6f3; color: #0f172a; }

html.light-theme .filterPickercls {
    background-color: #ffffff !important;
    border-bottom-color: #c5ddd7 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

html.light-theme .btn-outline-primary {
    border-color: #b8d5cd !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
html.light-theme .btn-outline-primary:hover,
html.light-theme .btn-outline-primary.active {
    background-color: #d5ede7 !important;
    border-color: #007a60 !important;
    color: #007a60 !important;
}

html.light-theme .btn-primary {
    background-color: #007a60 !important;
    border-color: #007a60 !important;
    color: #ffffff !important;
}
html.light-theme .btn-primary:hover {
    background-color: #006050 !important;
    border-color: #006050 !important;
}

html.light-theme .form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #b8d5cd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}
html.light-theme .form-control:focus {
    border-color: #007a60 !important;
    box-shadow: 0 0 0 3px rgba(0,122,96,0.12) !important;
}

html.light-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.5;
}

html.light-theme .form-label { color: #475569; }

html.light-theme div#corporateAction_wrapper { background: #eef6f3; }

html.light-theme .table {
    color: #0f172a !important;
    border-color: #c5ddd7 !important;
}
html.light-theme .table thead th {
    background-color: #e3f2ee !important;
    color: #007a60 !important;
    border-color: #b8d5cd !important;
}
html.light-theme .table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #d5e8e3 !important;
}
html.light-theme .table tbody tr:nth-child(even) td {
    background-color: #f3faf8 !important;
    color: #0f172a !important;
    border-color: #d5e8e3 !important;
}
html.light-theme .table tbody tr:hover td { background-color: #d5ede7 !important; }

html.light-theme .dataTables_wrapper .dataTables_filter input,
html.light-theme .dataTables_wrapper .dataTables_length select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #b8d5cd !important;
}
html.light-theme .dataTables_wrapper .dataTables_info,
html.light-theme .dataTables_wrapper .dataTables_paginate { color: #475569 !important; }
html.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button { color: #475569 !important; }
html.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #d5ede7 !important;
    border-color: #007a60 !important;
    color: #007a60 !important;
}

html.light-theme #csvDownload { color: #007a60; }

html.light-theme .disclaimer {
    background-color: #f3faf8;
    border-color: #c5ddd7;
    color: #475569;
}

/* ── Graphite Theme Overrides ── */
html.graphite-theme body { background-color: #e8eaed; color: #1a1d21; }

html.graphite-theme .filterPickercls {
    background-color: #f5f6f7 !important;
    border-bottom-color: #bcc1c8 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

html.graphite-theme .btn-outline-primary {
    border-color: #b0b6be !important;
    color: #3d4552 !important;
    background-color: #f5f6f7 !important;
}
html.graphite-theme .btn-outline-primary:hover,
html.graphite-theme .btn-outline-primary.active {
    background-color: #d0d4d9 !important;
    border-color: #007a60 !important;
    color: #007a60 !important;
}

html.graphite-theme .btn-primary {
    background-color: #007a60 !important;
    border-color: #007a60 !important;
    color: #ffffff !important;
}
html.graphite-theme .btn-primary:hover {
    background-color: #006050 !important;
    border-color: #006050 !important;
}

html.graphite-theme .form-control {
    background-color: #ffffff !important;
    color: #1a1d21 !important;
    border-color: #b0b6be !important;
}
html.graphite-theme .form-control:focus {
    border-color: #007a60 !important;
    box-shadow: 0 0 0 3px rgba(0,122,96,0.12) !important;
}

html.graphite-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.5;
}

html.graphite-theme .form-label { color: #5a6170; }

html.graphite-theme div#corporateAction_wrapper { background: #e8eaed; }

html.graphite-theme .table {
    color: #1a1d21 !important;
    border-color: #bcc1c8 !important;
}
html.graphite-theme .table thead th {
    background-color: #e2e5e9 !important;
    color: #007a60 !important;
    border-color: #b0b6be !important;
}
html.graphite-theme .table tbody tr:nth-child(odd) td {
    background-color: #f5f6f7 !important;
    color: #1a1d21 !important;
    border-color: #e4e7eb !important;
}
html.graphite-theme .table tbody tr:nth-child(even) td {
    background-color: #eeeff1 !important;
    color: #1a1d21 !important;
    border-color: #e4e7eb !important;
}
html.graphite-theme .table tbody tr:hover td { background-color: #d0d4d9 !important; }

html.graphite-theme .dataTables_wrapper .dataTables_filter input,
html.graphite-theme .dataTables_wrapper .dataTables_length select {
    background-color: #ffffff !important;
    color: #1a1d21 !important;
    border-color: #b0b6be !important;
}
html.graphite-theme .dataTables_wrapper .dataTables_info,
html.graphite-theme .dataTables_wrapper .dataTables_paginate { color: #5a6170 !important; }
html.graphite-theme .dataTables_wrapper .dataTables_paginate .paginate_button { color: #5a6170 !important; }
html.graphite-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html.graphite-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #d0d4d9 !important;
    border-color: #007a60 !important;
    color: #007a60 !important;
}

html.graphite-theme #csvDownload { color: #007a60; }

html.graphite-theme .disclaimer {
    background-color: #eeeff1;
    border-color: #bcc1c8;
    color: #5a6170;
}
