
html{
  --primary: #009688;
  --scrollbar-track-color:#E4E4E4;
  --scrollbar-thumb-color:rgba(0,0,0,0.5);
  --scrollbar-thumb-hover-color:rgba(0,0,0,0.7);
}

html [data-theme="dark"] {
  --primary: #009688;
  --scrollbar-track-color:#111;
  --scrollbar-thumb-color:rgba(70,70,70,0.5);
  --scrollbar-thumb-hover-color:rgba(70,70,70,0.7);
}


[data-theme="dark"] {
  background-color: #1F1F1F !important;
}


[data-theme="dark"] .form-control:focus{
  background-color: #262626;
}
[data-theme="dark"] .form-control:disabled, [data-theme="dark"]  .form-control[readonly] {
  background-color: #423e3e !important;
  color: #c2c2c2;
}

[data-theme="dark"] .form-control.datepicker-here:disabled, [data-theme="dark"] .form-control.datepicker-here[readonly] {
  background-color: #262e33 !important;
  color: #fff;
}

[data-theme="dark"] .form-control.datepicker-here1:disabled, [data-theme="dark"] .form-control.datepicker-here1[readonly] {
  background-color: #262e33 !important;
  color: #fff;
}

[data-theme="dark"] .form-control.datepicker-heres:disabled, [data-theme="dark"] .form-control.datepicker-heres[readonly] {
  background-color: #262e33 !important;
  color: #fff;
}

[data-theme="dark"] .form-control{
  background-color: #262626;
/*  background-color: #1c1b1b;*/
}
[data-theme="dark"] .form-control{
  border: 2px #1c1b1b solid;
}
[data-theme="dark"] .form-control:-webkit-autofill,
[data-theme="dark"] .form-control:-webkit-autofill:hover,
[data-theme="dark"] .form-control:-webkit-autofill:focus,
[data-theme="dark"] .form-control:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .form-control:-webkit-autofill{
    -webkit-text-fill-color: #fff !important;
}

[data-theme="dark"] .input-group-text {
  border: 2px #1c1b1b solid;
}

[data-theme="dark"] .select2-selection__rendered, 
[data-theme="dark"] .select2-selection, 
[data-theme="dark"] .select2-selection--single, 
[data-theme="dark"] .select2, 
[data-theme="dark"] .select2-container, 
[data-theme="dark"] .select2-container--default{
  color: #fff;
}

[data-theme="dark"] .table-info,
[data-theme="dark"] .table-info > th,
[data-theme="dark"] .table-info > td {
  background-color: #80e0ed;
}

[data-theme="dark"] .table-primary,
[data-theme="dark"] .table-primary > th,
[data-theme="dark"] .table-primary > td {
  color: black;
}

[data-theme="dark"] .table-secondary,
[data-theme="dark"] .table-secondary > th,
[data-theme="dark"] .table-secondary > td {
  color: white;
}

[data-theme="dark"] .table-info,
[data-theme="dark"] .table-info > th,
[data-theme="dark"] .table-info > td {
  color: black;
}

[data-theme="dark"] .table-success,
[data-theme="dark"] .table-success > th,
[data-theme="dark"] .table-success > td {
  color: black;
}

[data-theme="dark"] .table-warning,
[data-theme="dark"] .table-warning > th,
[data-theme="dark"] .table-warning > td {
  color: black;
}

[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #423e3e !important;
}
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #423e3e !important;
}
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple:hover {
  border-color: var(--input-disable);
}
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search--inline,
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search__field{
  background-color: #423e3e !important;
}
[data-theme="dark"] .select2-search--inline,
[data-theme="dark"] .select2-search__field,
[data-theme="dark"] .select2-search,

[data-theme="dark"] .select2-choice,
[data-theme="dark"] .select2-results, 
[data-theme="dark"] .select2-results__options, 
[data-theme="dark"] .selection .select2-selection .select2-selection--single, 
[data-theme="dark"] .select2 .select2-container .select2-container--default, 
[data-theme="dark"] .select2-container, 
[data-theme="dark"] .select2-container--default, 
[data-theme="dark"] .select2-container--below, 
[data-theme="dark"] .select2-container--open,
[data-theme="dark"] .select2-hidden-accessible,
[data-theme="dark"] .select2-container,
[data-theme="dark"] .select2-container--default,
[data-theme="dark"] .selection,
[data-theme="dark"] .select2-selection,
[data-theme="dark"] .select2-selection--multiple {
  background-color: #262626 !important;
  border-radius: 10px;
  color: #fff;
}
[data-theme="dark"] span.select2-selection--multiple , [data-theme="dark"] span.select2-selection--single {
  border: 2px #1c1b1b solid;
  color: #fff;
  border-radius: 10px;
}
[data-theme="dark"] .select2-selection__rendered {
  color: #fff !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #918e8e !important;
}

[data-theme="dark"] .select2-dropdown, [data-theme="dark"] .select2-dropdown--above {
  border: 2px #009688 solid;
  background-color: #009688 !important;
}

[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable div,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable p,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable span,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable font,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable li {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] div {
  color: #fff;
}

[data-theme="dark"] .summernote{
  /*background-color: red;*/
}

[data-theme="dark"] .alert-info {
  color: var(--black);
}

[data-theme="dark"] a {
  color: #02b3a2;
}
[data-theme="dark"] a.app-nav__change_log {
  color: var(--label-warning);
}
[data-theme="dark"] a:hover {
  color: #02d9c4;
}

[data-theme="dark"] .badge  {
  color: #fff;
}
[data-theme="dark"] .alert-warning {
  color: #856404;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-info,
[data-theme="dark"] .btn-warning,
[data-theme="dark"] .btn-success,
[data-theme="dark"] .btn-danger{
  color: #fff;
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-info:hover,
[data-theme="dark"] .btn-warning:hover,
[data-theme="dark"] .btn-success:hover,
[data-theme="dark"] .btn-danger:hover{
  color: #fff;
}

[data-theme="dark"] .btn-light , [data-theme="dark"] .btn-light:hover {
  color: #333;
}

[data-theme="dark"] .btn-default {
  color: #333;
}

[data-theme="dark"] .btn-default:hover {
  color: #000;
}

[data-theme="dark"] .app-notification {
  background-color: #333;
}

[data-theme="dark"] .dropdown-item_footer {
  background-color: #444;
}

[data-theme="dark"] .btn-warning {
  color: #111;
}

[data-theme="dark"] .page-item, [data-theme="dark"] .page-link {
  color: #009688;
  background-color: #333;
  border-color: #222;
}

[data-theme="dark"] .page-item.disabled .page-link {
  background-color: #333;
  border-color: #222;
}

[data-theme="dark"] main {
  background-color: #1F1F1F !important;
}
/**/


[data-theme="dark"] .treeview-menu{
  background-color: #2c3033 !important;
}

[data-theme="dark"] .treeview-item, [data-theme="dark"] .treeview-item:hover  {
  color: #fff;
}

[data-theme="dark"] .app-menu__item, [data-theme="dark"] .app-menu__item:hover  {
  color: #fff;
}

[data-theme="dark"] .table-bordered, [data-theme="dark"] .table-bordered td, [data-theme="dark"] .table-bordered th {
  border-color: #444;
}

[data-theme="dark"] .table td {
 border-top: 1px solid #222;
}

[data-theme="dark"] .card {
 background-color: #333;
}

[data-theme="dark"] .border{
  border-color: #444 !important;
}

[data-theme="dark"] .border-light{
  border-color: #444 !important;
}

[data-theme="dark"] .app-header__logo, [data-theme="dark"] .app-header__logo:hover, [data-theme="dark"] .app-nav__item , [data-theme="dark"] .app-nav__item:hover, [data-theme="dark"] .app-sidebar__toggle, [data-theme="dark"] .app-sidebar__toggle:hover {
  color: #fff;
}

/* Bill / report header logo — keep original brand colors in dark mode */
[data-theme="dark"] .meter-bill-header__logo {
  filter: none;
  opacity: 1;
}

[data-theme="dark"] .app-sidebar, [data-theme="dark"] .app-sidebar1 {
  background-color: #1f2224 !important;
}

[data-theme="dark"] .nav-link.active {
  border-color: #444 #444 #333;
  background-color: #333 !important;
  color: #fff;
}

[data-theme="dark"] hr {
  border: 1px solid #222;
}

[data-theme="dark"] .nav-tabs {
  border-bottom: 1px solid #444;
}

[data-theme="dark"] .app-title {
  background-color: #333 !important;
}

[data-theme="dark"] .widget-small {
  color: #fff;
  background-color: #333 !important;
}

[data-theme="dark"] .tile {
  background-color: #333 !important;
}

/* Corrective New Workorder upload drop-zones (image/video/attachment) */
[data-theme="dark"] .upload-drop-zone {
  background-color: #262626 !important;
  border-color: #4a4a4a !important;
}
[data-theme="dark"] .upload-drop-zone:hover,
[data-theme="dark"] .upload-drop-zone.drag-over {
  background-color: #2a3338 !important;
  border-color: #009688 !important;
}
[data-theme="dark"] .upload-drop-zone .upload-drop-placeholder i {
  color: #17a2b8 !important;
}
[data-theme="dark"] .upload-drop-zone .upload-drop-placeholder p {
  color: #17a2b8 !important;
}

/* Corrective/Preventive dashboard trend chart — “No data” and other text inside .dash-chart-wrap */
[data-theme="dark"] .dash-chart-wrap {
  color: #e2e8f0;
}

[data-theme="dark"] .dash-chart-wrap .text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] #preview_vid .attachment-square {
  border-color: #4a4a4a !important;
  background: #252525 !important;
}
[data-theme="dark"] #preview_vid .attachment-square:hover {
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.22) !important;
}
[data-theme="dark"] .wrap-login100 {
  background-color: #333 !important;
}
[data-theme="dark"] .container-login100::before {
  background-color: rgba(0,0,0,0.97);
}
[data-theme="dark"] .modal-content, [data-theme="dark"] .swal2-popup, [data-theme="dark"] .dropdown-menu {
  background-color: #333 !important;
}
[data-theme="dark"] .progress {
  background-color: #1C1C1C !important;
}
[data-theme="dark"] .dropdown-item, [data-theme="dark"] .button-indecator {
  color: #fff;
}
[data-theme="dark"] .dropdown-item:hover {
  background-color: #444 !important;
  color: #fff;
}
[data-theme="dark"] .dropdown-item.active:hover {
  background-color: #009688 !important;
}

[data-theme="dark"] .toggle input[type="checkbox"]  {
  background-color: white !important;
}


[data-theme="dark"] .bg-light {
  background-color: #444 !important;
}

[data-theme="dark"] .bg-white {
  background-color: #000 !important;
}

[data-theme="dark"] .bg-black {
  background-color: #eee !important;
}

[data-theme="dark"] .fc-mon,
[data-theme="dark"] .fc-tue,
[data-theme="dark"] .fc-wed,
[data-theme="dark"] .fc-thu,
[data-theme="dark"] .fc-fri,
[data-theme="dark"] .fc-sun,
[data-theme="dark"] .fc-sat
{ background-color:#1E1E1E; }

[data-theme="dark"] .fc-today { 
    background: #27736a !important;
     }
[data-theme="dark"] .fc-day-number{ color: #fff; }

[data-theme="dark"] .datepicker,[data-theme="dark"] .datepicker--pointer{
    background: #333 !important;
}

[data-theme="dark"] .datepicker--cell.-selected-, [data-theme="dark"] .datepicker--cell.-selected-.-current-
{
background:#5cc4ef;
color:#fff;
}


[data-theme="dark"] .datepicker, [data-theme="dark"] .datepicker-inline .datepicker
{
  border:1px solid #1c1b1b;
}
[data-theme="dark"] .datepicker--cell.-in-range-
{
  color:#bfbfbf;
}
[data-theme="dark"] .datepicker--pointer
{
  background:#1c1b1b;
  border-top:1px solid #1c1b1b;
  border-right:1px solid #1c1b1b;
}
[data-theme="dark"] .datepicker--nav
{
  border-bottom:1px solid #1c1b1b;
}
[data-theme="dark"] .datepicker--buttons, [data-theme="dark"] .datepicker--time
{
  border-top:1px solid #1c1b1b;
}

[data-theme="dark"] .datepicker--nav-action:hover,[data-theme="dark"] .datepicker--nav-title:hover,[data-theme="dark"] .datepicker--button:hover,
[data-theme="dark"] .datepicker--cell-day.-other-month-:hover,[data-theme="dark"] .datepicker--cell-year.-other-decade-:hover, 
[data-theme="dark"] .datepicker--cell.-focus-
{
background:#777
}

[data-theme="dark"] .datepicker--time-current-hours,[data-theme="dark"] .datepicker--time-current-minutes, [data-theme="dark"] .datepicker--time-current-ampm
{
color:#fff !important;
}

[data-theme="dark"] .fc-center h2 {
color:#fff !important;
}

[data-theme="dark"] .table-danger,
[data-theme="dark"] .table-danger > th,
[data-theme="dark"] .table-danger > td {
  background-color: #823c42;
}
[data-theme="dark"] .table-hover .table-danger:hover > td,
[data-theme="dark"] .table-hover .table-danger:hover > th {
  background-color: #7d5256;
}

[data-theme="dark"] .swal2-title, [data-theme="dark"] .text-dark{
color:#fff !important;
}

/* Login Page */

[data-theme="dark"] .login100-form-btn{
  color:#fff;
}
[data-theme="dark"] .login100-form-btn::before {
  background-color: #28a745;
}

[data-theme="dark"] .input100 {
  background: #262626;
}

[data-theme="dark"] .input100:-webkit-autofill,
[data-theme="dark"] .input100:-webkit-autofill:hover,
[data-theme="dark"] .input100:-webkit-autofill:focus,
[data-theme="dark"] .input100:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .input100:-webkit-autofill{
    -webkit-text-fill-color: #fff !important;
}


@media print {

  /* Always print as light mode when dark theme is active */
  [data-theme="dark"] {
    background-color: #fff !important;
    color: #000 !important;
    color-scheme: light !important;
  }
  [data-theme="dark"] body,
  [data-theme="dark"] main,
  [data-theme="dark"] .app-content,
  [data-theme="dark"] .container,
  [data-theme="dark"] .tile,
  [data-theme="dark"] .card,
  [data-theme="dark"] .row,
  [data-theme="dark"] .table,
  [data-theme="dark"] .modal-content {
    background-color: #fff !important;
    color: #000 !important;
  }
  [data-theme="dark"] a {
    color: #000 !important;
  }
  [data-theme="dark"] hr {
    border: .8px solid rgba(0, 0, 0, 0.1) !important;
  }
  [data-theme="dark"] div {
    color: #000;
  }
  [data-theme="dark"] .border {
    border: 1px solid var(--table-line) !important;
  }
  [data-theme="dark"] .table td {
    border-top: 1px solid var(--table-line);
    background-color: #fff !important;
    color: #000 !important;
  }
  [data-theme="dark"] .table th {
    color: inherit;
  }

  /* Meter bill / report — force light print (overrides page dark styles) */
  [data-theme="dark"] .meter-bill-header__logo {
    filter: none !important;
    opacity: 1 !important;
  }
  [data-theme="dark"] .meter-bill-header,
  [data-theme="dark"] .meter-bill-kpi,
  [data-theme="dark"] .meter-bill-kpi--highlight,
  [data-theme="dark"] .meter-bill-source__box,
  [data-theme="dark"] .meter-bill-source__ledger,
  [data-theme="dark"] .meter-bill-source__footer,
  [data-theme="dark"] .meter-bill-total-row,
  [data-theme="dark"] .meter-bill-total-row > td,
  [data-theme="dark"] .meter-bill-total-cell,
  [data-theme="dark"] table[id^="bill_table_"],
  [data-theme="dark"] table[id^="bill_table_"] tbody td {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  [data-theme="dark"] .meter-bill-header {
    background: linear-gradient(135deg, rgba(0, 105, 92, 0.06) 0%, rgba(255, 255, 255, 0.98) 60%) !important;
    border-color: rgba(0, 105, 92, 0.14) !important;
    box-shadow: none !important;
  }
  [data-theme="dark"] .meter-bill-header__label,
  [data-theme="dark"] .meter-bill-header__meta,
  [data-theme="dark"] .meter-bill-kpi small,
  [data-theme="dark"] .meter-bill-kpi__sep,
  [data-theme="dark"] .meter-bill-kpi__date,
  [data-theme="dark"] .meter-bill-kpi__unit,
  [data-theme="dark"] .meter-bill-source__amount--prev,
  [data-theme="dark"] .meter-bill-source__unit,
  [data-theme="dark"] .meter-bill-source__amount-arrow,
  [data-theme="dark"] .meter-bill-source__footer-label,
  [data-theme="dark"] .meter-bill-ack__field {
    color: #6b7c8f !important;
  }
  [data-theme="dark"] .meter-bill-header__amount,
  [data-theme="dark"] .meter-bill-kpi strong,
  [data-theme="dark"] .meter-bill-kpi--highlight strong,
  [data-theme="dark"] .meter-bill-total-amount,
  [data-theme="dark"] .meter-bill-total-row .meter-bill-total-amount,
  [data-theme="dark"] .meter-bill-total-cell .meter-bill-total-amount,
  [data-theme="dark"] table[id^="bill_table_"] .meter-bill-total-amount,
  [data-theme="dark"] .meter-bill-source__op,
  [data-theme="dark"] .meter-bill-source__footer-value,
  [data-theme="dark"] .meter-bill-source__amounts--footer .meter-bill-source__amount--curr {
    color: #00695c !important;
  }
  [data-theme="dark"] .meter-bill-kpi {
    background: #f8fafb !important;
    border-color: #e8edf3 !important;
  }
  [data-theme="dark"] .meter-bill-kpi--highlight {
    background: rgba(0, 105, 92, 0.06) !important;
    border-color: rgba(0, 105, 92, 0.22) !important;
  }
  [data-theme="dark"] .meter-bill-readings__title,
  [data-theme="dark"] .meter-bill-readings__title a,
  [data-theme="dark"] .meter-bill-source__meter,
  [data-theme="dark"] .meter-bill-source__meter a,
  [data-theme="dark"] .meter-bill-source__amount,
  [data-theme="dark"] .meter-bill-source__line,
  [data-theme="dark"] .meter-bill-total-row,
  [data-theme="dark"] .meter-bill-total-row strong,
  [data-theme="dark"] .meter-bill-total-cell,
  [data-theme="dark"] .meter-bill-total-cell strong {
    color: #212529 !important;
  }
  [data-theme="dark"] .meter-bill-source__box,
  [data-theme="dark"] .meter-bill-source__ledger {
    background: #fff !important;
    border-color: #ccc !important;
  }
  [data-theme="dark"] .meter-bill-source__line {
    border-bottom-color: #dee2e6 !important;
  }
  [data-theme="dark"] .meter-bill-source__dots,
  [data-theme="dark"] .meter-bill-ack__sign-space,
  [data-theme="dark"] .meter-bill-ack__line {
    border-bottom-color: #999 !important;
  }
  [data-theme="dark"] .meter-bill-source__footer {
    background: #f8f9fa !important;
    border-top-color: #dee2e6 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  [data-theme="dark"] .meter-bill-total-row,
  [data-theme="dark"] .meter-bill-total-row > td,
  [data-theme="dark"] .meter-bill-total-cell,
  [data-theme="dark"] table[id^="bill_table_"] tbody tr.meter-bill-total-row > td,
  [data-theme="dark"] table[id^="bill_table_"] tbody td.meter-bill-total-cell {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  [data-theme="dark"] table[id^="bill_table_"] {
    color: #212529 !important;
  }
  [data-theme="dark"] table[id^="bill_table_"] tbody td {
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
  }
  [data-theme="dark"] .meter-bill-source__box-head,
  [data-theme="dark"] table[id^="bill_table_"] thead,
  [data-theme="dark"] table[id^="bill_table_"] thead th {
    background: #018779 !important;
    background-color: #018779 !important;
    color: #fff !important;
  }
  [data-theme="dark"] .meter-bill-source__box-title {
    color: #fff !important;
  }
  [data-theme="dark"] .meter-bill-source__box-meta {
    color: rgba(255, 255, 255, 0.88) !important;
  }
  [data-theme="dark"] .meter-bill-section-divider {
    border-top-color: #dee2e6 !important;
  }

  [data-theme="dark"] .form-control:focus{
    background-color: white;
    color: black;
  }
  [data-theme="dark"] .form-control:disabled, [data-theme="dark"]  .form-control[readonly] {
    background-color: #eeeeee !important;
    color: #263331;
  }

  [data-theme="dark"] .form-control.datepicker-here:disabled, [data-theme="dark"] .form-control.datepicker-here[readonly] {
    background-color: #e6f7f4 !important;
    color: black !important;
  }

  [data-theme="dark"] .form-control.datepicker-here1:disabled, [data-theme="dark"] .form-control.datepicker-here1[readonly] {
    background-color: #e6f7f4 !important;
    color: black !important;
  }

  [data-theme="dark"] .form-control.datepicker-heres:disabled, [data-theme="dark"] .form-control.datepicker-heres[readonly] {
    background-color: #e6f7f4 !important;
    color: black !important;
  }

  [data-theme="dark"] .form-control{
    background-color: white;
  }
  [data-theme="dark"] .form-control{
    border: 2px #ced4da solid;
  }

[data-theme="dark"] .select2-selection__rendered, 
[data-theme="dark"] .select2-selection, 
[data-theme="dark"] .select2-selection--single, 
[data-theme="dark"] .select2, 
[data-theme="dark"] .select2-container, 
[data-theme="dark"] .select2-container--default{
  color: black !important;
}

[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #e6f7f4 !important;
}
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #e6f7f4 !important;
}
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple:hover {
  border-color: var(--input-disable);
}
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search--inline,
[data-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple .select2-search__field{
  background-color: #e6f7f4 !important;
}
[data-theme="dark"] .select2-search--inline,
[data-theme="dark"] .select2-search__field,
[data-theme="dark"] .select2-search,

[data-theme="dark"] .select2-choice,
[data-theme="dark"] .select2-results, 
[data-theme="dark"] .select2-results__options, 
[data-theme="dark"] .selection .select2-selection .select2-selection--single, 
[data-theme="dark"] .select2 .select2-container .select2-container--default, 
[data-theme="dark"] .select2-container, 
[data-theme="dark"] .select2-container--default, 
[data-theme="dark"] .select2-container--below, 
[data-theme="dark"] .select2-container--open,
[data-theme="dark"] .select2-hidden-accessible,
[data-theme="dark"] .select2-container,
[data-theme="dark"] .select2-container--default,
[data-theme="dark"] .selection,
[data-theme="dark"] .select2-selection,
[data-theme="dark"] .select2-selection--multiple {
  background-color: white !important;
  color: black !important;
}
[data-theme="dark"] span.select2-selection--multiple , [data-theme="dark"] span.select2-selection--single {
  color: black !important;
  border: 2px #ced4da solid;
}
[data-theme="dark"] .select2-selection__rendered {
  color: black !important;
}

[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #918e8e !important;
  color: black !important;
}

[data-theme="dark"] .select2-dropdown, [data-theme="dark"] .select2-dropdown--above {
  border: 2px #009688 solid;
  background-color: #009688 !important;
  color: black !important;
}

[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable div,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable p,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable span,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable font,
[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable li {
  color: rgba(255, 255, 255, 0.92);
}

}

/* OEE production DataTable (OEE_Product_Production_Datatable) — light scoped rules beat [data-theme="dark"] div; force readable text */
[data-theme="dark"] .oee-date-asset-cell .oee-date,
[data-theme="dark"] .oee-time-value,
[data-theme="dark"] .oee-speed-value {
  color: #f3f4f6 !important;
}
[data-theme="dark"] .oee-qty-value:not(.oee-value-good):not(.oee-value-reject) {
  color: #f3f4f6 !important;
}

/* Finance Costing */
[data-theme="dark"] .edit-cost-card {
  border-left: 4px solid #009688 !important;
}
[data-theme="dark"] .edit-cost-card-header {
  border-bottom: 1px solid #444 !important;
}
[data-theme="dark"] .edit-cost-handle {
  color: #adb5bd !important;
  cursor: default !important;
}
[data-theme="dark"] .edit-cost-card .edit-cost-label,
[data-theme="dark"] .edit-cost-card .text-muted {
  color: #adb5bd !important;
}
[data-theme="dark"] .edit-cost-label-icon {
  color: #009688 !important;
}
[data-theme="dark"] .edit-cost-readonly,
[data-theme="dark"] .edit-cost-desc-others,
[data-theme="dark"] .edit-cost-select,
[data-theme="dark"] .edit-cost-desc {
  color: #e8e8e8 !important;
  background-color: #2a2a2a !important;
  border: 1px solid #444 !important;
}
[data-theme="dark"] .edit-cost-desc-text {
  color: #ffffff;
}
[data-theme="dark"] .view-cost-readonly-field {
  background-color: #2a2a2a !important;
  color: #e8e8e8 !important;
  border-color: #444 !important;
}

[data-theme="dark"] .cost-type-custom-hint {
  color: #adb5bd !important;
}
[data-theme="dark"] .cost-type-custom-hint__icon {
  color: #009688 !important;
}
[data-theme="dark"] a.cost-type-settings-link {
  color: #4db6ac !important;
}
[data-theme="dark"] a.cost-type-settings-link:hover {
  color: #80cbc4 !important;
}
[data-theme="dark"] .cost-type-key {
  color: #e8e8e8 !important;
  background-color: #3a3a3a !important;
  border-color: #555 !important;
}