
/* Complete ZAR dark palette — fixes DataTables, navigation and mixed white rows */
body.zar-theme-dark .main-sidebar,
body.zar-theme-dark aside.side-bar,
body.zar-theme-dark #side-bar,
body.zar-theme-dark .sidebar,
body.zar-theme-dark .sidebar-menu,
body.zar-theme-dark .sidebar-menu > li,
body.zar-theme-dark .sidebar-menu > li > .treeview-menu,
body.zar-theme-dark .content,
body.zar-theme-dark .content-wrapper,
body.zar-theme-dark .dataTables_wrapper,
body.zar-theme-dark .dataTables_scroll,
body.zar-theme-dark .dataTables_scrollBody,
body.zar-theme-dark table.dataTable,
body.zar-theme-dark table.dataTable tbody,
body.zar-theme-dark .box-body {
  background: #080d14 !important;
  color: #f1f5f9 !important;
}
body.zar-theme-dark #side-bar a,
body.zar-theme-dark #side-bar a span,
body.zar-theme-dark #side-bar a i,
body.zar-theme-dark #side-bar button {
  color:#dbe5f1 !important;
  opacity:1 !important;
}
body.zar-theme-dark #side-bar .tw-bg-gray-50,
body.zar-theme-dark #side-bar .tw-bg-gray-100,
body.zar-theme-dark #side-bar .tw-bg-gray-200,
body.zar-theme-dark #side-bar ul,
body.zar-theme-dark #side-bar nav {
  background:#101923 !important;
  color:#dbe5f1 !important;
}
body.zar-theme-dark #side-bar li,
body.zar-theme-dark #side-bar li * { color:#dbe5f1 !important; opacity:1 !important; }
body.zar-theme-dark #side-bar a:hover,
body.zar-theme-dark #side-bar a.tw-bg-gray-200,
body.zar-theme-dark #side-bar a.tw-bg-gray-100 {
  background:#1a2635 !important; color:#fff !important;
}
body.zar-theme-dark #side-bar { border-color:#334155 !important; }
body.zar-theme-dark .sidebar-menu > li > a,
body.zar-theme-dark .sidebar-menu .treeview-menu > li > a {
  color: #dbe5f1 !important;
  background: transparent !important;
}
body.zar-theme-dark .sidebar-menu > li.active > a,
body.zar-theme-dark .sidebar-menu li.active > .treeview-menu,
body.zar-theme-dark .sidebar-menu .treeview-menu > li.active > a,
body.zar-theme-dark .sidebar-menu a:hover {
  background: #172231 !important;
  color: #ffffff !important;
}
body.zar-theme-dark table.dataTable thead th,
body.zar-theme-dark table.dataTable tfoot th,
body.zar-theme-dark .table > thead > tr > th {
  background: #172231 !important;
  color: #ffffff !important;
  border-color: #3b4a5c !important;
}
body.zar-theme-dark table.dataTable tbody tr,
body.zar-theme-dark table.dataTable tbody tr.odd,
body.zar-theme-dark .table-striped > tbody > tr:nth-of-type(odd) {
  background: #0e1621 !important;
  color: #f8fafc !important;
}
body.zar-theme-dark table.dataTable tbody tr.even,
body.zar-theme-dark .table-striped > tbody > tr:nth-of-type(even) {
  background: #121d2a !important;
  color: #f8fafc !important;
}
body.zar-theme-dark table.dataTable tbody tr:hover,
body.zar-theme-dark .table-hover > tbody > tr:hover {
  background: #1c2a3a !important;
}
body.zar-theme-dark table.dataTable tbody td,
body.zar-theme-dark .table > tbody > tr > td,
body.zar-theme-dark .table > tfoot > tr > td {
  background: transparent !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
body.zar-theme-dark table.dataTable tbody td a { color: #62c4ff !important; }
body.zar-theme-dark .dataTables_info,
body.zar-theme-dark .dataTables_length,
body.zar-theme-dark .dataTables_filter,
body.zar-theme-dark .pagination > li > a,
body.zar-theme-dark .pagination > li > span { color: #dbe5f1 !important; }
body.zar-theme-dark .pagination > li > a,
body.zar-theme-dark .pagination > li > span {
  background: #111b27 !important; border-color: #334155 !important;
}
body.zar-theme-dark .pagination > .active > a,
body.zar-theme-dark .pagination > .active > span { background: #2563eb !important; color:#fff !important; }
body.zar-theme-dark .btn-default,
body.zar-theme-dark .dt-button {
  background: #182332 !important; color: #f8fafc !important; border-color: #475569 !important;
}
body.zar-theme-dark .box-header,
body.zar-theme-dark .nav-tabs-custom > .nav-tabs,
body.zar-theme-dark .nav-tabs-custom > .tab-content {
  background: #101923 !important; color:#f8fafc !important;
}
body.zar-theme-dark .select2-container--default .select2-selection--single,
body.zar-theme-dark .select2-container--default .select2-selection--multiple,
body.zar-theme-dark .dataTables_filter input,
body.zar-theme-dark .dataTables_length select {
  background:#0b121b !important; color:#f8fafc !important; border-color:#475569 !important;
}

body.zar-theme-light .main-sidebar,
body.zar-theme-light aside.side-bar,
body.zar-theme-light #side-bar,
body.zar-theme-light .sidebar,
body.zar-theme-light .sidebar-menu,
body.zar-theme-light .content,
body.zar-theme-light .content-wrapper,
body.zar-theme-light .dataTables_wrapper,
body.zar-theme-light table.dataTable tbody tr,
body.zar-theme-light table.dataTable tbody td {
  background:#f7f9fc !important; color:#172033 !important;
}

#zar-final-theme-switch,#zar-day-night-switch,#zar-theme-toggle{display:none!important}
#zar-server-theme-switch{position:fixed;right:18px;bottom:84px;z-index:10070;width:46px;height:46px;border:1px solid #475569;border-radius:50%;background:#0f1722;color:#fff!important;box-shadow:0 10px 30px rgba(0,0,0,.3);display:grid;place-items:center;font-size:19px;text-decoration:none!important}
body.zar-theme-light #zar-server-theme-switch{background:#fff;color:#172033!important;border-color:#cbd5e1}
@media(max-width:575px){#zar-server-theme-switch{right:12px;bottom:70px;width:42px;height:42px}}
