/* Make clicks pass-through */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #29d;

  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;
}

/* Fancy blur effect */
#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #29d, 0 0 5px #29d;
  opacity: 1.0;

  -webkit-transform: rotate(3deg) translate(0px, -4px);
      -ms-transform: rotate(3deg) translate(0px, -4px);
          transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;

  border: solid 2px transparent;
  border-top-color: #29d;
  border-left-color: #29d;
  border-radius: 50%;

  -webkit-animation: nprogress-spinner 400ms linear infinite;
          animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
  overflow: hidden;
  position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
  position: absolute;
}

@-webkit-keyframes nprogress-spinner {
  0%   { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes nprogress-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.image-gallery-icon {
  color: #fff;
  transition: all 0.2s ease-out;
  appearance: none;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  outline: none;
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 2px 2px #1a1a1a);
}
@media (min-width: 768px) {
  .image-gallery-icon:hover {
    color: #337ab7;
  }
  .image-gallery-icon:hover .image-gallery-svg {
    transform: scale(1.1);
  }
}
.image-gallery-icon:focus {
  outline: 2px solid #337ab7;
}
.image-gallery-using-mouse .image-gallery-icon:focus {
  outline: none;
}
.image-gallery-fullscreen-button,
.image-gallery-play-button {
  bottom: 0;
  padding: 20px;
}
.image-gallery-fullscreen-button .image-gallery-svg,
.image-gallery-play-button .image-gallery-svg {
  height: 36px;
  width: 36px;
}
@media (max-width: 768px) {
  .image-gallery-fullscreen-button,
  .image-gallery-play-button {
    padding: 15px;
  }
  .image-gallery-fullscreen-button .image-gallery-svg,
  .image-gallery-play-button .image-gallery-svg {
    height: 24px;
    width: 24px;
  }
}
@media (max-width: 480px) {
  .image-gallery-fullscreen-button,
  .image-gallery-play-button {
    padding: 10px;
  }
  .image-gallery-fullscreen-button .image-gallery-svg,
  .image-gallery-play-button .image-gallery-svg {
    height: 16px;
    width: 16px;
  }
}
.image-gallery-fullscreen-button {
  right: 0;
}
.image-gallery-play-button {
  left: 0;
}
.image-gallery-left-nav,
.image-gallery-right-nav {
  padding: 50px 10px;
  top: 50%;
  transform: translateY(-50%);
}
.image-gallery-left-nav .image-gallery-svg,
.image-gallery-right-nav .image-gallery-svg {
  height: 120px;
  width: 60px;
}
@media (max-width: 768px) {
  .image-gallery-left-nav .image-gallery-svg,
  .image-gallery-right-nav .image-gallery-svg {
    height: 72px;
    width: 36px;
  }
}
@media (max-width: 480px) {
  .image-gallery-left-nav .image-gallery-svg,
  .image-gallery-right-nav .image-gallery-svg {
    height: 48px;
    width: 24px;
  }
}
.image-gallery-left-nav[disabled],
.image-gallery-right-nav[disabled] {
  cursor: disabled;
  opacity: 0.6;
  pointer-events: none;
}
.image-gallery-left-nav {
  left: 0;
}
.image-gallery-right-nav {
  right: 0;
}
.image-gallery {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.image-gallery.fullscreen-modal {
  background: #000;
  bottom: 0;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 5;
}
.image-gallery.fullscreen-modal .image-gallery-content {
  top: 50%;
  transform: translateY(-50%);
}
.image-gallery-content {
  position: relative;
  line-height: 0;
  top: 0;
}
.image-gallery-content.fullscreen {
  background: #000;
}
.image-gallery-content .image-gallery-slide .image-gallery-image {
  max-height: calc(100vh - 80px);
}
.image-gallery-content.left .image-gallery-slide .image-gallery-image,
.image-gallery-content.right .image-gallery-slide .image-gallery-image {
  max-height: 100vh;
}
.image-gallery-slide-wrapper {
  position: relative;
}
.image-gallery-slide-wrapper.left,
.image-gallery-slide-wrapper.right {
  display: inline-block;
  width: calc(100% - 110px);
}
@media (max-width: 768px) {
  .image-gallery-slide-wrapper.left,
  .image-gallery-slide-wrapper.right {
    width: calc(100% - 87px);
  }
}
.image-gallery-slide-wrapper.image-gallery-rtl {
  direction: rtl;
}
.image-gallery-slides {
  line-height: 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  text-align: center;
}
.image-gallery-slide {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.image-gallery-slide.center {
  position: relative;
}
.image-gallery-slide .image-gallery-image {
  width: 100%;
  object-fit: contain;
}
.image-gallery-slide .image-gallery-description {
  background: rgba(0, 0, 0, 0.4);
  bottom: 70px;
  color: #fff;
  left: 0;
  line-height: 1;
  padding: 10px 20px;
  position: absolute;
  white-space: normal;
}
@media (max-width: 768px) {
  .image-gallery-slide .image-gallery-description {
    bottom: 45px;
    font-size: 0.8em;
    padding: 8px 15px;
  }
}
.image-gallery-bullets {
  bottom: 20px;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  width: 80%;
  z-index: 4;
}
.image-gallery-bullets .image-gallery-bullets-container {
  margin: 0;
  padding: 0;
  text-align: center;
}
.image-gallery-bullets .image-gallery-bullet {
  appearance: none;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 0 #1a1a1a;
  cursor: pointer;
  display: inline-block;
  margin: 0 5px;
  outline: none;
  padding: 5px;
  transition: background 0.2s ease-out;
}
@media (max-width: 768px) {
  .image-gallery-bullets .image-gallery-bullet {
    margin: 0 3px;
    padding: 3px;
  }
}
@media (max-width: 480px) {
  .image-gallery-bullets .image-gallery-bullet {
    padding: 2.7px;
  }
}
.image-gallery-bullets .image-gallery-bullet:focus,
.image-gallery-bullets .image-gallery-bullet:hover {
  background: #337ab7;
  transform: scale(1.1);
}
.image-gallery-bullets .image-gallery-bullet.active {
  background: #fff;
}
.image-gallery-thumbnails-wrapper {
  position: relative;
}
.image-gallery-thumbnails-wrapper.thumbnails-wrapper-rtl {
  direction: rtl;
}
.image-gallery-thumbnails-wrapper.left,
.image-gallery-thumbnails-wrapper.right {
  display: inline-block;
  vertical-align: top;
  width: 100px;
}
@media (max-width: 768px) {
  .image-gallery-thumbnails-wrapper.left,
  .image-gallery-thumbnails-wrapper.right {
    width: 81px;
  }
}
.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails,
.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails {
  height: 100%;
  width: 100%;
  left: 0;
  padding: 0;
  position: absolute;
  top: 0;
}
.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails .image-gallery-thumbnail,
.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails .image-gallery-thumbnail {
  display: block;
  margin-right: 0;
  padding: 0;
}
.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails .image-gallery-thumbnail + .image-gallery-thumbnail,
.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails .image-gallery-thumbnail + .image-gallery-thumbnail {
  margin-left: 0;
  margin-top: 2px;
}
.image-gallery-thumbnails-wrapper.left,
.image-gallery-thumbnails-wrapper.right {
  margin: 0 5px;
}
@media (max-width: 768px) {
  .image-gallery-thumbnails-wrapper.left,
  .image-gallery-thumbnails-wrapper.right {
    margin: 0 3px;
  }
}
.image-gallery-thumbnails {
  overflow: hidden;
  padding: 5px 0;
}
@media (max-width: 768px) {
  .image-gallery-thumbnails {
    padding: 3px 0;
  }
}
.image-gallery-thumbnails .image-gallery-thumbnails-container {
  cursor: pointer;
  text-align: center;
  transition: transform 0.45s ease-out;
  white-space: nowrap;
}
.image-gallery-thumbnail {
  display: inline-block;
  border: 4px solid transparent;
  transition: border 0.3s ease-out;
  width: 100px;
  background: transparent;
  padding: 0;
}
@media (max-width: 768px) {
  .image-gallery-thumbnail {
    border: 3px solid transparent;
    width: 81px;
  }
}
.image-gallery-thumbnail + .image-gallery-thumbnail {
  margin-left: 2px;
}
.image-gallery-thumbnail .image-gallery-thumbnail-inner {
  position: relative;
}
.image-gallery-thumbnail .image-gallery-thumbnail-image {
  vertical-align: middle;
  width: 100%;
  line-height: 0;
}
.image-gallery-thumbnail.active,
.image-gallery-thumbnail:hover,
.image-gallery-thumbnail:focus {
  outline: none;
  border: 4px solid #337ab7;
}
@media (max-width: 768px) {
  .image-gallery-thumbnail.active,
  .image-gallery-thumbnail:hover,
  .image-gallery-thumbnail:focus {
    border: 3px solid #337ab7;
  }
}
.image-gallery-thumbnail-label {
  box-sizing: border-box;
  color: white;
  font-size: 1em;
  left: 0;
  line-height: 1em;
  padding: 5%;
  position: absolute;
  top: 50%;
  text-shadow: 1px 1px 0 black;
  transform: translateY(-50%);
  white-space: normal;
  width: 100%;
}
@media (max-width: 768px) {
  .image-gallery-thumbnail-label {
    font-size: 0.8em;
    line-height: 0.8em;
  }
}
.image-gallery-index {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  line-height: 1;
  padding: 10px 20px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 4;
}
@media (max-width: 768px) {
  .image-gallery-index {
    font-size: 0.8em;
    padding: 5px 10px;
  }
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
    Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  line-height: 1.6;
  font-size: 18px;
}

* {
  box-sizing: border-box;
}

a {
  color: #0070f3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

#nprogress .bar {
  background: #29d !important;
}

.gm-style {
  font-family: 'Inter';
  font: inherit;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.ttf');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  color: #545454;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Medium.ttf');
  font-style: medium;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Bold.ttf');
  font-style: bold;
  font-weight: 700;
  font-display: swap;
}

.highcharts-credits {
  display: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #babac0;
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a5;
}

.ant-modal-header {
  white-space: pre;
}

/* ==========================================================================
   ULTIMATE COMPLETE DARK MODE SYSTEM - ALL PAGES, TABS, DRAWERS & MODALS
   ========================================================================== */

/* 1. Base, Body & Layout Wrapper */
html.dark-mode,
html.dark-mode body,
body.dark-mode {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

body.dark-mode #__next,
body.dark-mode main,
body.dark-mode .ant-layout,
body.dark-mode .ant-layout-content,
body.dark-mode #body-solar-wrapper {
  background-color: #0f172a !important;
}

/* 2. Topbar (Navbar) */
body.dark-mode .solar-navbar,
body.dark-mode div[class*="solar-navbar"],
body.dark-mode header {
  background-color: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .solar-navbar span,
body.dark-mode .solar-navbar div,
body.dark-mode .solar-navbar p,
body.dark-mode .solar-navbar h1,
body.dark-mode .solar-navbar h2,
body.dark-mode .solar-navbar h3 {
  color: #f8fafc !important;
}

/* 3. Left Main Sidebar & SubSidebar (Plant Management, Site SubMenu) */
body.dark-mode .solar-sidebar,
body.dark-mode .solar-sidebar > div,
body.dark-mode .solar-subsidebar,
body.dark-mode .solar-subsidebar > div,
body.dark-mode aside,
body.dark-mode .ant-layout-sider,
body.dark-mode .ant-layout-sider-children,
body.dark-mode .ant-menu,
body.dark-mode .ant-menu-inline,
body.dark-mode .ant-menu-sub {
  background-color: #0b1120 !important;
  border-color: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-mode .solar-sidebar div,
body.dark-mode .solar-sidebar span,
body.dark-mode .solar-subsidebar div,
body.dark-mode .solar-subsidebar span,
body.dark-mode [class*="PlantDetailWrapper"],
body.dark-mode [class*="PlantName"],
body.dark-mode [class*="PlantTime"] {
  color: #cbd5e1 !important;
}

body.dark-mode [class*="PlantDetailWrapper"] {
  background-color: #0b1120 !important;
  border-bottom: 1px solid #1e293b !important;
}

body.dark-mode .ant-menu-item,
body.dark-mode .ant-menu-submenu-title {
  color: #94a3b8 !important;
}

body.dark-mode .ant-menu-item-selected {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
  border-right: 3px solid #38bdf8 !important;
}

body.dark-mode .ant-menu-item:hover,
body.dark-mode .ant-menu-submenu-title:hover {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

body.dark-mode .ant-menu-inline .ant-menu-item::after {
  border-right-color: #38bdf8 !important;
}

body.dark-mode .solar-sidebar .resize-control,
body.dark-mode .resize-control {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .solar-sidebar .resize-control:hover,
body.dark-mode .resize-control:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* 4. ALL CARDS: CardBody, Dashboard Cards, Site Overview Cards, KPI Cards, Settings Cards */
body.dark-mode .solar-card-body,
body.dark-mode div[class*="solar-card-body"],
body.dark-mode .react-grid-item > div,
body.dark-mode .react-grid-layout > div > div,
body.dark-mode .header-drag-drop,
body.dark-mode [class*="SiteWrapper"],
body.dark-mode [class*="BoxShadow"],
body.dark-mode [class*="OverviewInsight"],
body.dark-mode [class*="StatusInsight"],
body.dark-mode [class*="OperationInsight"],
body.dark-mode [class*="ProductionInsight"],
body.dark-mode [class*="InvertersChart"],
body.dark-mode [class*="OperationInfo"],
body.dark-mode [class*="ItemSiteBodyWrapper"],
body.dark-mode [class*="CardContainer"],
body.dark-mode .ant-card {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25) !important;
}

/* Header of Cards */
body.dark-mode .header-drag-drop,
body.dark-mode .header-drag-drop > div,
body.dark-mode [class*="ItemSiteBodyHeader"] {
  background-color: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
}

body.dark-mode .header-drag-drop *,
body.dark-mode [class*="ItemSiteBodyTitle"] {
  color: #f8fafc !important;
}

/* Text & Data Values inside Cards */
body.dark-mode .solar-card-body [color],
body.dark-mode [color="#262626"],
body.dark-mode [color="#000000"],
body.dark-mode [color="grays.9"] {
  color: #f8fafc !important;
}

body.dark-mode .solar-card-body [color="#545454"],
body.dark-mode [color="#545454"],
body.dark-mode [color="#8c8c8c"],
body.dark-mode [color="#8C8C8C"],
body.dark-mode [color="grays.8"] {
  color: #cbd5e1 !important;
}

/* Ant Design Dividers */
body.dark-mode .ant-divider,
body.dark-mode .ant-divider-vertical {
  border-color: #334155 !important;
  background-color: #334155 !important;
}

/* 5. ALL DRAWERS across the system (Settings, Plants, Sites, Roles, Users, Widget, Alarm) */
body.dark-mode .ant-drawer-content,
body.dark-mode .ant-drawer-wrapper-body {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

body.dark-mode .ant-drawer-header {
  background-color: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .ant-drawer-title {
  color: #f8fafc !important;
}

body.dark-mode .ant-drawer-close {
  color: #94a3b8 !important;
}

body.dark-mode .ant-drawer-close:hover {
  color: #38bdf8 !important;
}

body.dark-mode .ant-drawer-body {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
}

body.dark-mode .ant-drawer-footer {
  background-color: #1e293b !important;
  border-top: 1px solid #334155 !important;
}

/* 6. ALL MODALS & Popups */
body.dark-mode .ant-modal-content,
body.dark-mode .ant-modal-header {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.dark-mode .ant-modal-title {
  color: #f8fafc !important;
}

body.dark-mode .ant-modal-close {
  color: #94a3b8 !important;
}

body.dark-mode .ant-modal-close:hover {
  color: #38bdf8 !important;
}

body.dark-mode .ant-modal-body {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-mode .ant-modal-footer {
  background-color: #1e293b !important;
  border-top: 1px solid #334155 !important;
}

body.dark-mode .solar-modal-chart {
  background-color: #1e293b !important;
}

/* 7. FORM INPUTS, TEXTAREAS & CONTROLS */
body.dark-mode .ant-input,
body.dark-mode .ant-input-affix-wrapper,
body.dark-mode .ant-input-number,
body.dark-mode .ant-input-password {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

body.dark-mode .ant-input::placeholder,
body.dark-mode .ant-input-password input::placeholder {
  color: #64748b !important;
}

body.dark-mode .ant-input:focus,
body.dark-mode .ant-input-affix-wrapper-focused,
body.dark-mode .ant-input-number-focused {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

body.dark-mode .ant-input-number-handler-wrap {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

body.dark-mode .ant-input-number-handler {
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

body.dark-mode .ant-form-item-label > label {
  color: #cbd5e1 !important;
}

body.dark-mode .ant-checkbox-inner {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

body.dark-mode .ant-checkbox-checked .ant-checkbox-inner {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}

body.dark-mode .ant-radio-inner {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

body.dark-mode .ant-radio-checked .ant-radio-inner {
  border-color: #0284c7 !important;
}

body.dark-mode .ant-switch {
  background-color: #475569 !important;
}

body.dark-mode .ant-switch-checked {
  background-color: #0284c7 !important;
}

/* 8. TABS (Profile, Site Settings, Settings tabs) */
body.dark-mode .ant-tabs,
body.dark-mode .ant-tabs-nav {
  color: #94a3b8 !important;
}

body.dark-mode .ant-tabs-nav::before {
  border-bottom-color: #334155 !important;
}

body.dark-mode .ant-tabs-tab {
  color: #94a3b8 !important;
}

body.dark-mode .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #38bdf8 !important;
}

body.dark-mode .ant-tabs-ink-bar {
  background-color: #38bdf8 !important;
}

/* 9. COLLAPSE / ACCORDIONS (Roles, Permissions) */
body.dark-mode .ant-collapse {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .ant-collapse-item {
  border-bottom-color: #334155 !important;
}

body.dark-mode .ant-collapse-header {
  color: #f8fafc !important;
  background-color: #0f172a !important;
}

body.dark-mode .ant-collapse-content {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
  border-top-color: #334155 !important;
}

/* 10. PAGINATION (Tables on all tabs) */
body.dark-mode .ant-pagination-item {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

body.dark-mode .ant-pagination-item a {
  color: #cbd5e1 !important;
}

body.dark-mode .ant-pagination-item-active {
  border-color: #38bdf8 !important;
  background-color: #334155 !important;
}

body.dark-mode .ant-pagination-item-active a {
  color: #38bdf8 !important;
}

body.dark-mode .ant-pagination-prev .ant-pagination-item-link,
body.dark-mode .ant-pagination-next .ant-pagination-item-link {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,
body.dark-mode .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {
  color: #94a3b8 !important;
}

body.dark-mode .ant-pagination-total-text {
  color: #94a3b8 !important;
}

/* 11. BUTTONS */
body.dark-mode .ant-btn:not(.ant-btn-primary):not(.dark-mode-toggle-btn) {
  background-color: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

body.dark-mode .ant-btn:not(.ant-btn-primary):not(.dark-mode-toggle-btn):hover {
  background-color: #475569 !important;
  border-color: #64748b !important;
  color: #38bdf8 !important;
}

/* 12. TABLES */
body.dark-mode .ant-table,
body.dark-mode .ant-table-container,
body.dark-mode .ant-table-content {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode .ant-table-thead > tr > th {
  background-color: #0f172a !important;
  border-bottom: 1px solid #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .ant-table-tbody > tr > td {
  background-color: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .ant-table-tbody > tr:hover > td,
body.dark-mode .ant-table-tbody > tr.active-row > td {
  background-color: #273549 !important;
}

body.dark-mode .ant-table-cell-fix-left,
body.dark-mode .ant-table-cell-fix-right {
  background-color: #1e293b !important;
}

body.dark-mode .ant-empty-description {
  color: #94a3b8 !important;
}

/* 13. HIGHCHARTS */
body.dark-mode .highcharts-container,
body.dark-mode .highcharts-root {
  background: transparent !important;
  background-color: transparent !important;
}

body.dark-mode .highcharts-background,
body.dark-mode rect.highcharts-background {
  fill: transparent !important;
}

body.dark-mode .highcharts-plot-background {
  fill: transparent !important;
}

body.dark-mode .highcharts-grid-line {
  stroke: #334155 !important;
}

body.dark-mode .highcharts-axis-line {
  stroke: #475569 !important;
}

body.dark-mode .highcharts-axis-labels text {
  fill: #94a3b8 !important;
}

body.dark-mode .highcharts-legend-item text {
  fill: #cbd5e1 !important;
}

body.dark-mode .highcharts-title text {
  fill: #f8fafc !important;
}

/* 14. MAP LEAFLET */
body.dark-mode .leaflet-tile-pane {
  filter: brightness(0.8) invert(1) contrast(1.15) hue-rotate(200deg) saturate(0.65) !important;
}

body.dark-mode .leaflet-container {
  background-color: #0b1120 !important;
}

body.dark-mode .leaflet-popup-content-wrapper,
body.dark-mode .leaflet-popup-tip {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .leaflet-popup-content * {
  color: #f8fafc !important;
}

body.dark-mode .leaflet-bar a {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-bottom: 1px solid #334155 !important;
}

/* 15. SELECT & DROPDOWNS & DATEPICKERS */
body.dark-mode .ant-select:not(.ant-select-customize-input) .ant-select-selector {
  background-color: #1e293b !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important;
  border-radius: 8px !important;
}

body.dark-mode .ant-select-arrow {
  color: #38bdf8 !important;
}

body.dark-mode .ant-select-dropdown,
body.dark-mode .ant-picker-dropdown,
body.dark-mode .ant-picker-panel-container,
body.dark-mode .ant-dropdown-menu {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .ant-select-item,
body.dark-mode .ant-dropdown-menu-item {
  color: #cbd5e1 !important;
}

body.dark-mode .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}

body.dark-mode .ant-select-item-option-active:not(.ant-select-item-option-disabled),
body.dark-mode .ant-dropdown-menu-item:hover {
  background-color: #273549 !important;
  color: #38bdf8 !important;
}

body.dark-mode .ant-picker-header {
  color: #f8fafc !important;
  border-bottom: 1px solid #334155 !important;
}

body.dark-mode .ant-picker-header button {
  color: #94a3b8 !important;
}

body.dark-mode .ant-picker-content th {
  color: #64748b !important;
}

body.dark-mode .ant-picker-cell {
  color: #94a3b8 !important;
}

body.dark-mode .ant-picker-cell-in-view {
  color: #f1f5f9 !important;
}

body.dark-mode .ant-picker-cell-in-range {
  background-color: rgba(56, 189, 248, 0.15) !important;
}

body.dark-mode .ant-picker-cell-selected .ant-picker-cell-inner {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* 16. THEME TOGGLE BUTTON */
.dark-mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 12px;
  flex-shrink: 0;
}

.dark-mode-toggle-btn:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

body.dark-mode .dark-mode-toggle-btn {
  background-color: #1e293b;
  border-color: #475569;
  color: #facc15;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle-btn:hover {
  background-color: #273549;
  border-color: #64748b;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
}

.dark-mode-toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark-mode-toggle-btn:active .dark-mode-toggle-icon {
  transform: rotate(360deg) scale(0.9);
}

.highcharts-exporting-group {
  display: none !important;
}

.react-grid-layout {
  position: relative;
  transition: height 200ms ease;
}
.react-grid-item {
  transition: all 200ms ease;
  transition-property: left, top;
}
.react-grid-item img {
  pointer-events: none;
  user-select: none;  
}
.react-grid-item.cssTransforms {
  transition-property: transform;
}
.react-grid-item.resizing {
  z-index: 1;
  will-change: width, height;
}

.react-grid-item.react-draggable-dragging {
  transition: none;
  z-index: 3;
  will-change: transform;
}

.react-grid-item.dropping {
  visibility: hidden;
}

.react-grid-item.react-grid-placeholder {
  background: red;
  opacity: 0.2;
  transition-duration: 100ms;
  z-index: 2;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.react-grid-item > .react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
}

.react-grid-item > .react-resizable-handle::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.react-resizable-hide > .react-resizable-handle {
  display: none;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-w,
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-n,
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}

.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}
.react-grid-item.react-grid-placeholder {
  background: #2c4bee;
  opacity: 0.2;
  transition-duration: 100ms;
  z-index: 2;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  border-radius: 10px;
}
#placeholder-dropitem {
  height: 100px;
  width: 94%;
  bottom: 16px;
  left: 3%;
  right: 10px;
  position: absolute;
  background-color: white;
  z-index: 9999;
}
#placeholder-dropitem-dragover {
  height: 100px;
  width: 94%;
  bottom: 16px;
  left: 3%;
  right: 10px;
  position: absolute;
  background-color: pink;
  z-index: 9999;
}
.drag-wrapper {
  height: 100% !important;
}

.daterange-wrapper .ant-picker-input {
  display: none !important;
}
.daterange-wrapper .ant-picker.ant-picker-large {
  width: 0px !important;
  padding: 0px;
  border: 0 !important;
  height: 0px !important;
}
.daterange-wrapper .ant-picker-suffix {
  display: none;
}
.daterange-wrapper .ant-picker-range-separator {
  display: none;
}
.datepicker-custom-dropdown .ant-picker-panel {
  display: flex !important;
  flex-direction: row-reverse !important;
}
.datepicker-custom-dropdown .ant-picker-panel .ant-picker-footer {
  width: 156px !important;
  min-width: unset !important;
  border: unset !important;
}
.datepicker-custom-dropdown .ant-picker-panel-container {
  border-radius: 10px !important;
}
.datepicker-custom-dropdown .ant-picker-month-panel .ant-picker-cell-inner {
  width: 80px;
}
.daterange-dropdown-classname {
  right: 8px !important;
  left: unset !important;
  top: 42px !important;
}

/*
 * react-circular-progressbar styles
 * All of the styles in this file are configurable!
 */

.CircularProgressbar {
  /*
   * This fixes an issue where the CircularProgressbar svg has
   * 0 width inside a "display: flex" container, and thus not visible.
   */
  width: 100%;
  /*
   * This fixes a centering issue with CircularProgressbarWithChildren:
   * https://github.com/kevinsqi/react-circular-progressbar/issues/94
   */
  vertical-align: middle;
}

.CircularProgressbar .CircularProgressbar-path {
  stroke: #3e98c7;
  stroke-linecap: round;
  -webkit-transition: stroke-dashoffset 0.5s ease 0s;
  transition: stroke-dashoffset 0.5s ease 0s;
}

.CircularProgressbar .CircularProgressbar-trail {
  stroke: #d6d6d6;
  /* Used when trail is not full diameter, i.e. when props.circleRatio is set */
  stroke-linecap: round;
}

.CircularProgressbar .CircularProgressbar-text {
  fill: #3e98c7;
  font-size: 20px;
  dominant-baseline: middle;
  text-anchor: middle;
}

.CircularProgressbar .CircularProgressbar-background {
  fill: #d6d6d6;
}

/*
 * Sample background styles. Use these with e.g.:
 *
 *   <CircularProgressbar
 *     className="CircularProgressbar-inverted"
 *     background
 *     percentage={50}
 *   />
 */
.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-background {
  fill: #3e98c7;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-text {
  fill: #fff;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-path {
  stroke: #fff;
}

.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-trail {
  stroke: transparent;
}

.progress {
  width: 2px;
  position: relative;
  height: 24px;
  border-radius: 4px;
  margin: 4px 0px;
  display: flex;
  margin-left: 17px;
}
.progress .color {
  position: absolute;
  background-color: #608eff;
  width: 2px;
  border-radius: 4px;
  height: 24px;
  display: flex;
}
.progress .none-color {
  position: absolute;
  background-color: #d9d9d9;
  width: 2px;
  border-radius: 4px;
  height: 24px;
  display: flex;
}
@keyframes progres {
  0% {
    height: 0px;
  }
  25% {
    height: 6px;
  }
  50% {
    height: 12px;
  }
  75% {
    height: 18px;
  }
  100% {
    height: 24px;
  }
}

.react-tel-input {
  position: relative;
  width: 200px;
}
.react-tel-input .ad {
  background-position: -16px 0;
}
.react-tel-input .ae {
  background-position: -32px 0;
}
.react-tel-input .af {
  background-position: -48px 0;
}
.react-tel-input .ag {
  background-position: -64px 0;
}
.react-tel-input .ai {
  background-position: -80px 0;
}
.react-tel-input .al {
  background-position: -96px 0;
}
.react-tel-input .am {
  background-position: -112px 0;
}
.react-tel-input .ao {
  background-position: -128px 0;
}
.react-tel-input .ar {
  background-position: -144px 0;
}
.react-tel-input .as {
  background-position: -160px 0;
}
.react-tel-input .at {
  background-position: -176px 0;
}
.react-tel-input .au {
  background-position: -192px 0;
}
.react-tel-input .aw {
  background-position: -208px 0;
}
.react-tel-input .az {
  background-position: -224px 0;
}
.react-tel-input .ba {
  background-position: -240px 0;
}
.react-tel-input .bb {
  background-position: 0 -11px;
}
.react-tel-input .bd {
  background-position: -16px -11px;
}
.react-tel-input .be {
  background-position: -32px -11px;
}
.react-tel-input .bf {
  background-position: -48px -11px;
}
.react-tel-input .bg {
  background-position: -64px -11px;
}
.react-tel-input .bh {
  background-position: -80px -11px;
}
.react-tel-input .bi {
  background-position: -96px -11px;
}
.react-tel-input .bj {
  background-position: -112px -11px;
}
.react-tel-input .bm {
  background-position: -128px -11px;
}
.react-tel-input .bn {
  background-position: -144px -11px;
}
.react-tel-input .bo {
  background-position: -160px -11px;
}
.react-tel-input .br {
  background-position: -176px -11px;
}
.react-tel-input .bs {
  background-position: -192px -11px;
}
.react-tel-input .bt {
  background-position: -208px -11px;
}
.react-tel-input .bw {
  background-position: -224px -11px;
}
.react-tel-input .by {
  background-position: -240px -11px;
}
.react-tel-input .bz {
  background-position: 0 -22px;
}
.react-tel-input .ca {
  background-position: -16px -22px;
}
.react-tel-input .cd {
  background-position: -32px -22px;
}
.react-tel-input .cf {
  background-position: -48px -22px;
}
.react-tel-input .cg {
  background-position: -64px -22px;
}
.react-tel-input .ch {
  background-position: -80px -22px;
}
.react-tel-input .ci {
  background-position: -96px -22px;
}
.react-tel-input .ck {
  background-position: -112px -22px;
}
.react-tel-input .cl {
  background-position: -128px -22px;
}
.react-tel-input .cm {
  background-position: -144px -22px;
}
.react-tel-input .cn {
  background-position: -160px -22px;
}
.react-tel-input .co {
  background-position: -176px -22px;
}
.react-tel-input .cr {
  background-position: -192px -22px;
}
.react-tel-input .cu {
  background-position: -208px -22px;
}
.react-tel-input .cv {
  background-position: -224px -22px;
}
.react-tel-input .cw {
  background-position: -240px -22px;
}
.react-tel-input .cy {
  background-position: 0 -33px;
}
.react-tel-input .cz {
  background-position: -16px -33px;
}
.react-tel-input .de {
  background-position: -32px -33px;
}
.react-tel-input .dj {
  background-position: -48px -33px;
}
.react-tel-input .dk {
  background-position: -64px -33px;
}
.react-tel-input .dm {
  background-position: -80px -33px;
}
.react-tel-input .do {
  background-position: -96px -33px;
}
.react-tel-input .dz {
  background-position: -112px -33px;
}
.react-tel-input .ec {
  background-position: -128px -33px;
}
.react-tel-input .ee {
  background-position: -144px -33px;
}
.react-tel-input .eg {
  background-position: -160px -33px;
}
.react-tel-input .er {
  background-position: -176px -33px;
}
.react-tel-input .es {
  background-position: -192px -33px;
}
.react-tel-input .et {
  background-position: -208px -33px;
}
.react-tel-input .fi {
  background-position: -224px -33px;
}
.react-tel-input .fj {
  background-position: -240px -33px;
}
.react-tel-input .fk {
  background-position: 0 -44px;
}
.react-tel-input .fm {
  background-position: -16px -44px;
}
.react-tel-input .fo {
  background-position: -32px -44px;
}
.react-tel-input .fr,
.react-tel-input .bl,
.react-tel-input .mf {
  background-position: -48px -44px;
}
.react-tel-input .ga {
  background-position: -64px -44px;
}
.react-tel-input .gb {
  background-position: -80px -44px;
}
.react-tel-input .gd {
  background-position: -96px -44px;
}
.react-tel-input .ge {
  background-position: -112px -44px;
}
.react-tel-input .gf {
  background-position: -128px -44px;
}
.react-tel-input .gh {
  background-position: -144px -44px;
}
.react-tel-input .gi {
  background-position: -160px -44px;
}
.react-tel-input .gl {
  background-position: -176px -44px;
}
.react-tel-input .gm {
  background-position: -192px -44px;
}
.react-tel-input .gn {
  background-position: -208px -44px;
}
.react-tel-input .gp {
  background-position: -224px -44px;
}
.react-tel-input .gq {
  background-position: -240px -44px;
}
.react-tel-input .gr {
  background-position: 0 -55px;
}
.react-tel-input .gt {
  background-position: -16px -55px;
}
.react-tel-input .gu {
  background-position: -32px -55px;
}
.react-tel-input .gw {
  background-position: -48px -55px;
}
.react-tel-input .gy {
  background-position: -64px -55px;
}
.react-tel-input .hk {
  background-position: -80px -55px;
}
.react-tel-input .hn {
  background-position: -96px -55px;
}
.react-tel-input .hr {
  background-position: -112px -55px;
}
.react-tel-input .ht {
  background-position: -128px -55px;
}
.react-tel-input .hu {
  background-position: -144px -55px;
}
.react-tel-input .id {
  background-position: -160px -55px;
}
.react-tel-input .ie {
  background-position: -176px -55px;
}
.react-tel-input .il {
  background-position: -192px -55px;
}
.react-tel-input .in {
  background-position: -208px -55px;
}
.react-tel-input .io {
  background-position: -224px -55px;
}
.react-tel-input .iq {
  background-position: -240px -55px;
}
.react-tel-input .ir {
  background-position: 0 -66px;
}
.react-tel-input .is {
  background-position: -16px -66px;
}
.react-tel-input .it {
  background-position: -32px -66px;
}
.react-tel-input .jm {
  background-position: -48px -66px;
}
.react-tel-input .jo {
  background-position: -64px -66px;
}
.react-tel-input .jp {
  background-position: -80px -66px;
}
.react-tel-input .ke {
  background-position: -96px -66px;
}
.react-tel-input .kg {
  background-position: -112px -66px;
}
.react-tel-input .kh {
  background-position: -128px -66px;
}
.react-tel-input .ki {
  background-position: -144px -66px;
}
.react-tel-input .km {
  background-position: -160px -66px;
}
.react-tel-input .kn {
  background-position: -176px -66px;
}
.react-tel-input .kp {
  background-position: -192px -66px;
}
.react-tel-input .kr {
  background-position: -208px -66px;
}
.react-tel-input .kw {
  background-position: -224px -66px;
}
.react-tel-input .ky {
  background-position: -240px -66px;
}
.react-tel-input .kz {
  background-position: 0 -77px;
}
.react-tel-input .la {
  background-position: -16px -77px;
}
.react-tel-input .lb {
  background-position: -32px -77px;
}
.react-tel-input .lc {
  background-position: -48px -77px;
}
.react-tel-input .li {
  background-position: -64px -77px;
}
.react-tel-input .lk {
  background-position: -80px -77px;
}
.react-tel-input .lr {
  background-position: -96px -77px;
}
.react-tel-input .ls {
  background-position: -112px -77px;
}
.react-tel-input .lt {
  background-position: -128px -77px;
}
.react-tel-input .lu {
  background-position: -144px -77px;
}
.react-tel-input .lv {
  background-position: -160px -77px;
}
.react-tel-input .ly {
  background-position: -176px -77px;
}
.react-tel-input .ma {
  background-position: -192px -77px;
}
.react-tel-input .mc {
  background-position: -208px -77px;
}
.react-tel-input .md {
  background-position: -224px -77px;
}
.react-tel-input .me {
  background-position: -112px -154px;
  height: 12px;
}
.react-tel-input .mg {
  background-position: 0 -88px;
}
.react-tel-input .mh {
  background-position: -16px -88px;
}
.react-tel-input .mk {
  background-position: -32px -88px;
}
.react-tel-input .ml {
  background-position: -48px -88px;
}
.react-tel-input .mm {
  background-position: -64px -88px;
}
.react-tel-input .mn {
  background-position: -80px -88px;
}
.react-tel-input .mo {
  background-position: -96px -88px;
}
.react-tel-input .mp {
  background-position: -112px -88px;
}
.react-tel-input .mq {
  background-position: -128px -88px;
}
.react-tel-input .mr {
  background-position: -144px -88px;
}
.react-tel-input .ms {
  background-position: -160px -88px;
}
.react-tel-input .mt {
  background-position: -176px -88px;
}
.react-tel-input .mu {
  background-position: -192px -88px;
}
.react-tel-input .mv {
  background-position: -208px -88px;
}
.react-tel-input .mw {
  background-position: -224px -88px;
}
.react-tel-input .mx {
  background-position: -240px -88px;
}
.react-tel-input .my {
  background-position: 0 -99px;
}
.react-tel-input .mz {
  background-position: -16px -99px;
}
.react-tel-input .na {
  background-position: -32px -99px;
}
.react-tel-input .nc {
  background-position: -48px -99px;
}
.react-tel-input .ne {
  background-position: -64px -99px;
}
.react-tel-input .nf {
  background-position: -80px -99px;
}
.react-tel-input .ng {
  background-position: -96px -99px;
}
.react-tel-input .ni {
  background-position: -112px -99px;
}
.react-tel-input .nl,
.react-tel-input .bq {
  background-position: -128px -99px;
}
.react-tel-input .no {
  background-position: -144px -99px;
}
.react-tel-input .np {
  background-position: -160px -99px;
}
.react-tel-input .nr {
  background-position: -176px -99px;
}
.react-tel-input .nu {
  background-position: -192px -99px;
}
.react-tel-input .nz {
  background-position: -208px -99px;
}
.react-tel-input .om {
  background-position: -224px -99px;
}
.react-tel-input .pa {
  background-position: -240px -99px;
}
.react-tel-input .pe {
  background-position: 0 -110px;
}
.react-tel-input .pf {
  background-position: -16px -110px;
}
.react-tel-input .pg {
  background-position: -32px -110px;
}
.react-tel-input .ph {
  background-position: -48px -110px;
}
.react-tel-input .pk {
  background-position: -64px -110px;
}
.react-tel-input .pl {
  background-position: -80px -110px;
}
.react-tel-input .pm {
  background-position: -96px -110px;
}
.react-tel-input .pr {
  background-position: -112px -110px;
}
.react-tel-input .ps {
  background-position: -128px -110px;
}
.react-tel-input .pt {
  background-position: -144px -110px;
}
.react-tel-input .pw {
  background-position: -160px -110px;
}
.react-tel-input .py {
  background-position: -176px -110px;
}
.react-tel-input .qa {
  background-position: -192px -110px;
}
.react-tel-input .re {
  background-position: -208px -110px;
}
.react-tel-input .ro {
  background-position: -224px -110px;
}
.react-tel-input .rs {
  background-position: -240px -110px;
}
.react-tel-input .ru {
  background-position: 0 -121px;
}
.react-tel-input .rw {
  background-position: -16px -121px;
}
.react-tel-input .sa {
  background-position: -32px -121px;
}
.react-tel-input .sb {
  background-position: -48px -121px;
}
.react-tel-input .sc {
  background-position: -64px -121px;
}
.react-tel-input .sd {
  background-position: -80px -121px;
}
.react-tel-input .se {
  background-position: -96px -121px;
}
.react-tel-input .sg {
  background-position: -112px -121px;
}
.react-tel-input .sh {
  background-position: -128px -121px;
}
.react-tel-input .si {
  background-position: -144px -121px;
}
.react-tel-input .sk {
  background-position: -160px -121px;
}
.react-tel-input .sl {
  background-position: -176px -121px;
}
.react-tel-input .sm {
  background-position: -192px -121px;
}
.react-tel-input .sn {
  background-position: -208px -121px;
}
.react-tel-input .so {
  background-position: -224px -121px;
}
.react-tel-input .sr {
  background-position: -240px -121px;
}
.react-tel-input .ss {
  background-position: 0 -132px;
}
.react-tel-input .st {
  background-position: -16px -132px;
}
.react-tel-input .sv {
  background-position: -32px -132px;
}
.react-tel-input .sx {
  background-position: -48px -132px;
}
.react-tel-input .sy {
  background-position: -64px -132px;
}
.react-tel-input .sz {
  background-position: -80px -132px;
}
.react-tel-input .tc {
  background-position: -96px -132px;
}
.react-tel-input .td {
  background-position: -112px -132px;
}
.react-tel-input .tg {
  background-position: -128px -132px;
}
.react-tel-input .th {
  background-position: -144px -132px;
}
.react-tel-input .tj {
  background-position: -160px -132px;
}
.react-tel-input .tk {
  background-position: -176px -132px;
}
.react-tel-input .tl {
  background-position: -192px -132px;
}
.react-tel-input .tm {
  background-position: -208px -132px;
}
.react-tel-input .tn {
  background-position: -224px -132px;
}
.react-tel-input .to {
  background-position: -240px -132px;
}
.react-tel-input .tr {
  background-position: 0 -143px;
}
.react-tel-input .tt {
  background-position: -16px -143px;
}
.react-tel-input .tv {
  background-position: -32px -143px;
}
.react-tel-input .tw {
  background-position: -48px -143px;
}
.react-tel-input .tz {
  background-position: -64px -143px;
}
.react-tel-input .ua {
  background-position: -80px -143px;
}
.react-tel-input .ug {
  background-position: -96px -143px;
}
.react-tel-input .us {
  background-position: -112px -143px;
}
.react-tel-input .uy {
  background-position: -128px -143px;
}
.react-tel-input .uz {
  background-position: -144px -143px;
}
.react-tel-input .va {
  background-position: -160px -143px;
}
.react-tel-input .vc {
  background-position: -176px -143px;
}
.react-tel-input .ve {
  background-position: -192px -143px;
}
.react-tel-input .vg {
  background-position: -208px -143px;
}
.react-tel-input .vi {
  background-position: -224px -143px;
}
.react-tel-input .vn {
  background-position: -240px -143px;
}
.react-tel-input .vu {
  background-position: 0 -154px;
}
.react-tel-input .wf {
  background-position: -16px -154px;
}
.react-tel-input .ws {
  background-position: -32px -154px;
}
.react-tel-input .ye {
  background-position: -48px -154px;
}
.react-tel-input .za {
  background-position: -64px -154px;
}
.react-tel-input .zm {
  background-position: -80px -154px;
}
.react-tel-input .zw {
  background-position: -96px -154px;
}
.react-tel-input * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.react-tel-input .hide {
  display: none;
}
.react-tel-input .v-hide {
  visibility: hidden;
}
.react-tel-input input[type='text'],
.react-tel-input input[type='tel'] {
  position: relative;
  z-index: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 44px;
  margin-left: 0;
  background: #ffffff;
  border: 1px solid #cacaca;
  border-radius: 3px;
  box-shadow: 0 1px 2px #e3e3e3 inset;
  line-height: 25px;
  height: 28px;
  width: 100%;
}
.react-tel-input input[type='text']:focus,
.react-tel-input input[type='tel']:focus {
  border-color: #42bdff;
  border-left-color: #cacaca;
}
.react-tel-input input[type='text'].invalid-number,
.react-tel-input input[type='tel'].invalid-number {
  border: 1px solid #d79f9f;
  background-color: #faf0f0;
  border-left-color: #cacaca;
}
.react-tel-input input[type='text'].invalid-number:focus,
.react-tel-input input[type='tel'].invalid-number:focus {
  border: 1px solid #d79f9f;
  border-left-color: #cacaca;
  background-color: #faf0f0;
}
.react-tel-input .flag-dropdown {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 0;
  background-color: #eaeaea;
  border: 1px solid #cacaca;
  border-radius: 3px 0 0 3px;
}

.react-tel-input .flag-dropdown {
  outline: 0px solid transparent;
}

.react-tel-input .flag-dropdown.open-dropdown {
  background: #fff;
  border-bottom: 0;
  border-radius: 3px 0 0 0;
}
.react-tel-input .flag-dropdown.open-dropdown .selected-flag {
  background: #fff;
  border-radius: 3px 0 0 0;
}
.react-tel-input .flag-dropdown:hover {
  cursor: pointer;
}
.react-tel-input .flag-dropdown:hover .selected-flag {
  background-color: #fff;
}
.react-tel-input input[disabled] + .flag-dropdown:hover {
  cursor: default;
}
.react-tel-input input[disabled] + .flag-dropdown:hover .selected-flag {
  background-color: transparent;
}
.react-tel-input .selected-flag {
  z-index: 13;
  position: relative;
  width: 38px;
  height: 26px;
  padding: 0 0 0 8px;
  border-radius: 3px 0 0 3px;
}
.react-tel-input .selected-flag .flag {
  position: absolute;
  top: 50%;
  margin-top: -5px;
  width: 16px;
  height: 11px;
}
.react-tel-input .selected-flag .arrow {
  position: relative;
  top: 50%;
  margin-top: -2px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #555;
}
.react-tel-input .selected-flag .arrow.up {
  border-top: none;
  border-bottom: 4px solid #555;
}
.react-tel-input .country-list {
  list-style: none;
  position: absolute;
  z-index: 20;
  padding: 0;
  margin: -1px 0 0 -1px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  background-color: white;
  border: 1px solid #ccc;
  width: 400px;
  /* max-height: 200px; */
  overflow-y: scroll;
  border-radius: 0 0 3px 3px;
  top: 26px;
}
.react-tel-input .country-list .flag {
  display: inline-block;
  margin-right: 6px;
  margin-top: 2px;
  width: 16px;
  height: 11px;
}
.react-tel-input .country-list .divider {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #ccc;
}
.react-tel-input .country-list .country {
  padding: 5px 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.react-tel-input .country-list .country .dial-code {
  color: #999;
}
.react-tel-input .country-list .country:hover {
  background-color: #e8f7fe;
}
.react-tel-input .country-list .country.highlight {
  background-color: #c7e2f1;
}
.react-tel-input .country-list .country-name {
  margin-right: 6px;
}



/* ==========================================================================
   ANALYZE TAB & SUBMENU DARK MODE FIXES
   ========================================================================== */

/* 1. Analyze Sub-Sub-Sidebar (Column 3) */
body.dark-mode .analyze-menu-container,
body.dark-mode div[width="238px"],
body.dark-mode div[style*="width: 238px"],
body.dark-mode div[style*="width:238px"] {
  background-color: #0b1120 !important;
  border-right: 1px solid #1e293b !important;
}

body.dark-mode .analyze-menu-title,
body.dark-mode div[width="238px"] [color="#262626"],
body.dark-mode div[style*="width: 238px"] [color="#262626"] {
  color: #f8fafc !important;
}

/* 2. Analyze Section Header Banners ("Các chỉ số hiệu suất chính", "Biến tần", "Cảm biến") */
body.dark-mode .analyze-section-header,
body.dark-mode div[width="238px"] div[height="28px"],
body.dark-mode div[style*="width: 238px"] div[style*="height: 28px"],
body.dark-mode div[style*="width: 238px"] div[style*="height:28px"],
body.dark-mode div[width="238px"] div[bg="#f5f5f5"],
body.dark-mode div[width="238px"] div[style*="rgb(245, 245, 245)"],
body.dark-mode div[style*="background-color: rgb(245, 245, 245)"],
body.dark-mode div[style*="background-color: #f5f5f5"],
body.dark-mode div[pl="32px"][height="28px"],
body.dark-mode div[pl="32px"] {
  background-color: #1e293b !important;
  border-top: 1px solid #334155 !important;
  border-bottom: 1px solid #334155 !important;
}

body.dark-mode .analyze-section-title,
body.dark-mode .analyze-section-header *,
body.dark-mode div[width="238px"] div[height="28px"] *,
body.dark-mode div[style*="width: 238px"] div[style*="height: 28px"] *,
body.dark-mode div[pl="32px"][height="28px"] *,
body.dark-mode div[pl="32px"] * {
  color: #94a3b8 !important;
  font-weight: 700 !important;
}

/* 3. Analyze Menu items */
body.dark-mode .analyze-menu-container .ant-menu,
body.dark-mode div[width="238px"] .ant-menu,
body.dark-mode div[style*="width: 238px"] .ant-menu {
  background-color: #0b1120 !important;
  border-right: none !important;
}

body.dark-mode .analyze-menu-container .ant-menu-item,
body.dark-mode div[width="238px"] .ant-menu-item,
body.dark-mode div[style*="width: 238px"] .ant-menu-item {
  color: #94a3b8 !important;
  border-radius: 6px !important;
  margin: 4px 8px !important;
  background-color: transparent !important;
  transition: all 0.2s ease !important;
}

body.dark-mode .analyze-menu-container .ant-menu-item:hover,
body.dark-mode div[width="238px"] .ant-menu-item:hover,
body.dark-mode div[style*="width: 238px"] .ant-menu-item:hover {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.08) !important;
}

body.dark-mode .analyze-menu-container .ant-menu-item-selected,
body.dark-mode div[width="238px"] .ant-menu-item-selected,
body.dark-mode div[style*="width: 238px"] .ant-menu-item-selected {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid #0284c7 !important;
  font-weight: 600 !important;
}

body.dark-mode .analyze-menu-container .ant-menu-item-selected *,
body.dark-mode div[width="238px"] .ant-menu-item-selected *,
body.dark-mode div[style*="width: 238px"] .ant-menu-item-selected * {
  color: #38bdf8 !important;
}

/* 4. DatePicker Calendar Circle Icon Button */
body.dark-mode .datepicker-circle-btn,
body.dark-mode div[style*="border-radius: 22px"],
body.dark-mode div[style*="border-radius:22px"],
body.dark-mode div[width="44px"][height="44px"] {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .datepicker-circle-btn svg,
body.dark-mode div[style*="border-radius: 22px"] svg,
body.dark-mode div[style*="border-radius:22px"] svg,
body.dark-mode div[width="44px"][height="44px"] svg {
  color: #38bdf8 !important;
  stroke: #38bdf8 !important;
}

/* 5. DatePicker Mode Label ("Hàng ngày", "Hàng tuần", ...) */
body.dark-mode .datepicker-label-text,
body.dark-mode .datepicker-mode-label,
body.dark-mode .datepicker-wrapper text,
body.dark-mode .datepicker-wrapper span,
body.dark-mode .datepicker-wrapper [color="#000"],
body.dark-mode .datepicker-wrapper [color="#000000"],
body.dark-mode .datepicker-wrapper div[color="#000"] {
  color: #f8fafc !important;
}

/* 6. DatePicker Custom Dropdown */
body.dark-mode .datepicker-custom-dropdown,
body.dark-mode .ant-picker-dropdown {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-panel-container,
body.dark-mode .ant-picker-panel-container {
  background-color: #1e293b !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-panel,
body.dark-mode .ant-picker-panel {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-header,
body.dark-mode .ant-picker-header {
  color: #f8fafc !important;
  border-bottom: 1px solid #334155 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-header button,
body.dark-mode .ant-picker-header button {
  color: #94a3b8 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-header button:hover,
body.dark-mode .ant-picker-header button:hover {
  color: #38bdf8 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-content th,
body.dark-mode .ant-picker-content th {
  color: #64748b !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-cell,
body.dark-mode .ant-picker-cell {
  color: #64748b !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-cell-in-view,
body.dark-mode .ant-picker-cell-in-view {
  color: #cbd5e1 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end) .ant-picker-cell-inner,
body.dark-mode .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-cell-selected .ant-picker-cell-inner,
body.dark-mode .ant-picker-cell-selected .ant-picker-cell-inner {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-picker-footer,
body.dark-mode .ant-picker-footer {
  border-top: 1px solid #334155 !important;
  background-color: #1e293b !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-menu,
body.dark-mode .ant-picker-footer .ant-menu {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-menu-item,
body.dark-mode .ant-picker-footer .ant-menu-item {
  color: #cbd5e1 !important;
}

body.dark-mode .datepicker-custom-dropdown .ant-menu-item-selected,
body.dark-mode .ant-picker-footer .ant-menu-item-selected {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}

/* 7. Action buttons (Expand, Download, etc.) in HeaderCard */
body.dark-mode #button-analyze-chart .ant-btn {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

body.dark-mode #button-analyze-chart .ant-btn:hover {
  background-color: #334155 !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

body.dark-mode #button-analyze-chart .ant-btn svg {
  color: #94a3b8 !important;
}

body.dark-mode #button-analyze-chart .ant-btn:hover svg {
  color: #38bdf8 !important;
}

body.dark-mode #button-analyze-chart .ant-dropdown-menu {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
}

body.dark-mode #button-analyze-chart .ant-dropdown-menu-item {
  color: #cbd5e1 !important;
}

body.dark-mode #button-analyze-chart .ant-dropdown-menu-item:hover {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}

/* 8. Universal Border & Background overrides */
body.dark-mode div[style*="background-color: rgb(245, 245, 245)"],
body.dark-mode div[style*="background-color: #f5f5f5"],
body.dark-mode div[style*="background-color: #f0f5ff"] {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode div[style*="border-right: 1px solid #f5f5f5"],
body.dark-mode div[style*="border-right: 1px solid rgb(245, 245, 245)"] {
  border-right: 1px solid #1e293b !important;
}

body.dark-mode div[style*="border-bottom: 1px solid #f5f5f5"],
body.dark-mode div[style*="border-bottom: 1px solid rgb(245, 245, 245)"] {
  border-bottom: 1px solid #1e293b !important;
}
