:root[data-mo-theme="dark"] {
  color-scheme: dark;
}

:root[data-mo-theme="light"] {
  color-scheme: light;
  color: #172033 !important;
  background: #edf2f7 !important;
}

#mo-theme-toggle {
  position: fixed;
  z-index: 65;
  top: 15px;
  right: 72px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: #aeb7ca;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

#mo-theme-toggle:hover {
  color: #ffffff;
  border-color: rgba(126, 141, 255, 0.48);
  background: rgba(126, 141, 255, 0.17);
  box-shadow: 0 10px 28px rgba(68, 87, 210, 0.2);
  transform: translateY(-1px);
}

#mo-theme-toggle:focus-visible {
  outline: none;
  border-color: rgba(126, 141, 255, 0.78);
  box-shadow:
    0 0 0 4px rgba(126, 141, 255, 0.14),
    0 10px 28px rgba(68, 87, 210, 0.2);
}

#mo-theme-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

body:has(.login-page) #mo-theme-toggle {
  z-index: 1000;
  right: 18px;
}

html[data-mo-theme="light"] #mo-theme-toggle {
  color: #526079;
  border-color: rgba(71, 85, 105, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(71, 85, 105, 0.14);
}

html[data-mo-theme="light"] #mo-theme-toggle:hover {
  color: #3348c5;
  border-color: rgba(79, 70, 229, 0.34);
  background: #ffffff;
}

/* Main page */

html[data-mo-theme="light"] body {
  color: #172033 !important;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(79, 70, 229, 0.08),
      transparent 32%
    ),
    #edf2f7 !important;
}

html[data-mo-theme="light"] .app-shell,
html[data-mo-theme="light"] .workspace,
html[data-mo-theme="light"] .loading-screen {
  color: #172033 !important;
}

html[data-mo-theme="light"] .topbar {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(250, 252, 255, 0.92) !important;
  box-shadow: 0 8px 30px rgba(71, 85, 105, 0.08);
}

html[data-mo-theme="light"] .sidebar {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(247, 250, 253, 0.95) !important;
  box-shadow: 8px 0 28px rgba(71, 85, 105, 0.07);
}

html[data-mo-theme="light"] .brand strong,
html[data-mo-theme="light"] .user-button strong,
html[data-mo-theme="light"] .sidebar-status strong,
html[data-mo-theme="light"] .workspace-head h1,
html[data-mo-theme="light"] .table-title strong,
html[data-mo-theme="light"] .metric-card > strong,
html[data-mo-theme="light"] .empty-panel h2,
html[data-mo-theme="light"] .modal-card h2 {
  color: #172033 !important;
}

html[data-mo-theme="light"] .brand span,
html[data-mo-theme="light"] .user-button span,
html[data-mo-theme="light"] .sidebar-status span,
html[data-mo-theme="light"] .workspace-head p,
html[data-mo-theme="light"] .login-heading p,
html[data-mo-theme="light"] .empty-panel p,
html[data-mo-theme="light"] .metric-card > span,
html[data-mo-theme="light"] .metric-card small,
html[data-mo-theme="light"] .table-footer,
html[data-mo-theme="light"] .no-rows,
html[data-mo-theme="light"] .table-loading {
  color: #66738b !important;
}

html[data-mo-theme="light"] .eyebrow,
html[data-mo-theme="light"] .nav-label {
  color: #66738b !important;
}

/* Search and controls */

html[data-mo-theme="light"] .global-search,
html[data-mo-theme="light"] .input-shell {
  color: #5c6880 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 5px 18px rgba(71, 85, 105, 0.06);
}

html[data-mo-theme="light"] .global-search input,
html[data-mo-theme="light"] .input-shell input {
  color: #172033 !important;
  background: transparent !important;
}

html[data-mo-theme="light"] input::placeholder,
html[data-mo-theme="light"] textarea::placeholder {
  color: #8995a9 !important;
}

html[data-mo-theme="light"] .global-search kbd,
html[data-mo-theme="light"] .count,
html[data-mo-theme="light"] .table-title > span {
  color: #66738b !important;
  border-color: rgba(71, 85, 105, 0.12) !important;
  background: rgba(71, 85, 105, 0.07) !important;
}

html[data-mo-theme="light"] .icon-button,
html[data-mo-theme="light"] .menu-toggle,
html[data-mo-theme="light"] .secondary-button,
html[data-mo-theme="light"] .user-button,
html[data-mo-theme="light"] .row-action-button {
  color: #526079 !important;
  border-color: rgba(71, 85, 105, 0.15) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

html[data-mo-theme="light"] .icon-button:hover,
html[data-mo-theme="light"] .menu-toggle:hover,
html[data-mo-theme="light"] .secondary-button:hover,
html[data-mo-theme="light"] .user-button:hover {
  color: #3348c5 !important;
  border-color: rgba(79, 70, 229, 0.28) !important;
  background: #ffffff !important;
}

/* Sidebar */

html[data-mo-theme="light"] .nav-item {
  color: #5e6b82 !important;
}

html[data-mo-theme="light"] .nav-item:hover,
html[data-mo-theme="light"] .nav-item.active {
  color: #273a9b !important;
  background: rgba(79, 70, 229, 0.09) !important;
}

html[data-mo-theme="light"] .nav-item.active {
  box-shadow: inset 2px 0 #596cff !important;
}

html[data-mo-theme="light"] .sidebar-status {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

/* Cards and panels */

html[data-mo-theme="light"] .metric-card,
html[data-mo-theme="light"] .panel,
html[data-mo-theme="light"] .table-panel,
html[data-mo-theme="light"] .empty-panel {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.14) !important;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(246, 249, 253, 0.96)
    ) !important;
  box-shadow:
    0 15px 38px rgba(71, 85, 105, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.9) !important;
}

html[data-mo-theme="light"] .brand-mark,
html[data-mo-theme="light"] .brand-icon,
html[data-mo-theme="light"] .metric-icon,
html[data-mo-theme="light"] .empty-icon {
  color: #5267db !important;
  border-color: rgba(79, 70, 229, 0.18) !important;
  background:
    linear-gradient(
      145deg,
      rgba(99, 102, 241, 0.14),
      rgba(139, 92, 246, 0.06)
    ) !important;
}

/* Tables */

html[data-mo-theme="light"] .table-toolbar,
html[data-mo-theme="light"] .table-footer {
  border-color: rgba(71, 85, 105, 0.12) !important;
  background: rgba(250, 252, 255, 0.72) !important;
}

html[data-mo-theme="light"] body #root
.table-panel .table-scroll table thead tr > th,
html[data-mo-theme="light"] body
.table-panel .table-scroll table thead tr > th,
html[data-mo-theme="light"] body
.table-scroll table thead th {
  color: #59667d !important;
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: #f3f6fa !important;
  background-clip: padding-box !important;
  box-shadow: 0 1px 0 rgba(71, 85, 105, 0.13) !important;
}

html[data-mo-theme="light"] .table-scroll tbody td {
  color: #1e293b !important;
  border-color: rgba(71, 85, 105, 0.1) !important;
  background: rgba(255, 255, 255, 0.84) !important;
}

html[data-mo-theme="light"] .table-scroll tbody tr:hover td {
  background: #f0f3ff !important;
}

html[data-mo-theme="light"] .row-number {
  color: #768399 !important;
}

html[data-mo-theme="light"] .cell-input,
html[data-mo-theme="light"] .cell-select {
  color: #1e293b !important;
  background: transparent !important;
}

html[data-mo-theme="light"] .cell-input:focus,
html[data-mo-theme="light"] .cell-select:focus {
  color: #172033 !important;
  border-color: rgba(79, 70, 229, 0.44) !important;
  background: rgba(79, 70, 229, 0.055) !important;
}

html[data-mo-theme="light"] .cell-select option,
html[data-mo-theme="light"] select option {
  color: #1e293b !important;
  background: #ffffff !important;
}

html[data-mo-theme="light"] .cell-select.status-online,
html[data-mo-theme="light"] .status-online {
  color: #15803d !important;
  background-color: #dcfce7 !important;
}

html[data-mo-theme="light"] .cell-select.status-offline,
html[data-mo-theme="light"] .status-offline {
  color: #be123c !important;
  background-color: #ffe4e6 !important;
}

html[data-mo-theme="light"] .cell-select.status-maintenance,
html[data-mo-theme="light"] .status-maintenance {
  color: #a16207 !important;
  background-color: #fef3c7 !important;
}

/* Menus */

html[data-mo-theme="light"] .actions-menu,
html[data-mo-theme="light"] #mo-data-main-dropdown,
html[data-mo-theme="light"] .mo-column-menu,
html[data-mo-theme="light"] .mo-actions-data-children {
  color: #1e293b !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 22px 65px rgba(71, 85, 105, 0.2) !important;
}

html[data-mo-theme="light"] .actions-menu button,
html[data-mo-theme="light"] #mo-data-main-dropdown button,
html[data-mo-theme="light"] .mo-column-menu button {
  color: #273449 !important;
}

html[data-mo-theme="light"] .actions-menu button:hover,
html[data-mo-theme="light"] #mo-data-main-dropdown button:hover,
html[data-mo-theme="light"] .mo-column-menu button:hover {
  background: rgba(79, 70, 229, 0.08) !important;
}

html[data-mo-theme="light"] .actions-menu small {
  color: #778399 !important;
}

/* Native modals */

html[data-mo-theme="light"] .modal-backdrop {
  background: rgba(31, 41, 55, 0.35) !important;
}

html[data-mo-theme="light"] .modal-card {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(244, 247, 251, 0.99)
    ) !important;
  box-shadow: 0 30px 90px rgba(71, 85, 105, 0.3) !important;
}

html[data-mo-theme="light"] .modal-card header {
  border-color: rgba(71, 85, 105, 0.12) !important;
}

html[data-mo-theme="light"] label {
  color: #4d5b72 !important;
}

html[data-mo-theme="light"] .plain-input,
html[data-mo-theme="light"] .modal-form select,
html[data-mo-theme="light"] .modal-form textarea {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.17) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

/* Login */

html[data-mo-theme="light"] .login-page {
  color: #172033 !important;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(79, 70, 229, 0.11),
      transparent 34%
    ),
    #edf2f7 !important;
}

html[data-mo-theme="light"] .background-grid {
  opacity: 0.35 !important;
  background-image:
    linear-gradient(
      rgba(71, 85, 105, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(71, 85, 105, 0.08) 1px,
      transparent 1px
    ) !important;
}

html[data-mo-theme="light"] .login-card {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.15) !important;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(244, 247, 251, 0.92)
    ) !important;
  box-shadow:
    0 30px 90px rgba(71, 85, 105, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.9) !important;
}

html[data-mo-theme="light"] .login-heading h1 {
  color: #172033 !important;
}

html[data-mo-theme="light"] .secure-line {
  color: #69768c !important;
}

html[data-mo-theme="light"] .secure-line span {
  background: rgba(71, 85, 105, 0.15) !important;
}

/* Main columns feature */

html[data-mo-theme="light"] .mo-main-columns-button,
html[data-mo-theme="light"] .mo-main-columns-expand,
html[data-mo-theme="light"] .mo-main-columns-close,
html[data-mo-theme="light"] .mo-main-columns-tools button,
html[data-mo-theme="light"] .mo-main-columns-cancel {
  color: #526079 !important;
  border-color: rgba(71, 85, 105, 0.17) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

html[data-mo-theme="light"] .mo-main-columns-summary {
  color: #66738b !important;
  background: rgba(71, 85, 105, 0.07) !important;
}

html[data-mo-theme="light"] .mo-main-columns-backdrop {
  background: rgba(31, 41, 55, 0.34) !important;
}

html[data-mo-theme="light"] .mo-main-columns-dialog {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(99, 102, 241, 0.12),
      transparent 38%
    ),
    #ffffff !important;
  box-shadow: 0 35px 110px rgba(71, 85, 105, 0.3) !important;
}

html[data-mo-theme="light"] .mo-main-columns-header h3,
html[data-mo-theme="light"] .mo-main-columns-name {
  color: #172033 !important;
}

html[data-mo-theme="light"] .mo-main-columns-header p {
  color: #6d798f !important;
}

html[data-mo-theme="light"] .mo-main-columns-option {
  color: #273449 !important;
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(247, 249, 252, 0.94) !important;
}

html[data-mo-theme="light"]
.mo-main-columns-option:has(input:checked) {
  border-color: rgba(79, 70, 229, 0.3) !important;
  background: rgba(79, 70, 229, 0.08) !important;
}

html[data-mo-theme="light"] .mo-main-columns-number {
  color: #66738b !important;
  background: rgba(71, 85, 105, 0.07) !important;
}

/* Find and replace */

html[data-mo-theme="light"] #mo-find-replace-backdrop {
  background: rgba(31, 41, 55, 0.36) !important;
}

html[data-mo-theme="light"]
#mo-find-replace-backdrop [role="dialog"],
html[data-mo-theme="light"]
#mo-find-replace-backdrop section {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: #ffffff !important;
  box-shadow: 0 30px 90px rgba(71, 85, 105, 0.3) !important;
}

html[data-mo-theme="light"]
#mo-find-replace-backdrop input,
html[data-mo-theme="light"]
#mo-find-replace-backdrop textarea,
html[data-mo-theme="light"]
#mo-find-replace-backdrop select,
html[data-mo-theme="light"]
#mo-find-replace-backdrop #mo-fr-column {
  color-scheme: light !important;
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.18) !important;
  background: #ffffff !important;
}

html[data-mo-theme="light"]
#mo-find-replace-backdrop option {
  color: #172033 !important;
  background: #ffffff !important;
}

/* Sharing confirmation */

html[data-mo-theme="light"] .mo-sharing-confirm-backdrop {
  background: rgba(31, 41, 55, 0.34) !important;
}

html[data-mo-theme="light"] .mo-sharing-confirm-modal {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: #ffffff !important;
  box-shadow: 0 30px 90px rgba(71, 85, 105, 0.3) !important;
}

/* Administration */

html[data-mo-theme="light"] .mo-admin-root,
html[data-mo-theme="light"] .mo-admin-page,
html[data-mo-theme="light"] .mo-admin-content {
  color: #172033 !important;
}

html[data-mo-theme="light"] .mo-admin-table-wrap,
html[data-mo-theme="light"] .mo-admin-shared-section,
html[data-mo-theme="light"] .mo-admin-shared-table-row,
html[data-mo-theme="light"] .mo-admin-dialog,
html[data-mo-theme="light"] .mo-admin-modal {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.15) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

html[data-mo-theme="light"] .mo-admin-table th {
  color: #526079 !important;
  border-color: rgba(71, 85, 105, 0.12) !important;
  background: #f1f5f9 !important;
}

html[data-mo-theme="light"] .mo-admin-table td {
  color: #273449 !important;
  border-color: rgba(71, 85, 105, 0.1) !important;
  background: #ffffff !important;
}

html[data-mo-theme="light"] .mo-admin-dialog input,
html[data-mo-theme="light"] .mo-admin-dialog select,
html[data-mo-theme="light"] .mo-admin-dialog textarea {
  color: #172033 !important;
  border-color: rgba(71, 85, 105, 0.18) !important;
  background: #ffffff !important;
}

/* Scrollbars */

html[data-mo-theme="light"] * {
  scrollbar-color:
    rgba(100, 116, 139, 0.38)
    rgba(226, 232, 240, 0.5);
}

html[data-mo-theme="light"] *::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.5);
}

html[data-mo-theme="light"] *::-webkit-scrollbar-thumb {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(100, 116, 139, 0.38);
}

@media (max-width: 780px) {
  #mo-theme-toggle {
    right: 64px;
  }

  body:has(.login-page) #mo-theme-toggle {
    right: 14px;
  }
}

/* MagicOps Light Mode Color Fix Start */

html[data-mo-theme="light"] body {
  color: #182233 !important;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(79, 70, 229, 0.06),
      transparent 32%
    ),
    #eef2f7 !important;
}

html[data-mo-theme="light"] .table-panel,
html[data-mo-theme="light"] .panel,
html[data-mo-theme="light"] .metric-card,
html[data-mo-theme="light"] .empty-panel,
html[data-mo-theme="light"] .modal-card,
html[data-mo-theme="light"] .login-card {
  border-color: rgba(71, 85, 105, 0.16) !important;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.995),
      rgba(246, 249, 253, 0.985)
    ) !important;
  box-shadow:
    0 16px 38px rgba(71, 85, 105, 0.09),
    inset 0 1px rgba(255, 255, 255, 0.92) !important;
}

html[data-mo-theme="light"] .table-toolbar,
html[data-mo-theme="light"] .table-footer {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(249, 251, 254, 0.96) !important;
}

html[data-mo-theme="light"] .table-title strong,
html[data-mo-theme="light"] .workspace-head h1,
html[data-mo-theme="light"] .brand strong,
html[data-mo-theme="light"] .user-button strong,
html[data-mo-theme="light"] .sidebar-status strong,
html[data-mo-theme="light"] .metric-card > strong,
html[data-mo-theme="light"] .empty-panel h2,
html[data-mo-theme="light"] .modal-card h2 {
  color: #182233 !important;
}

html[data-mo-theme="light"] .table-title > span,
html[data-mo-theme="light"] .brand span,
html[data-mo-theme="light"] .user-button span,
html[data-mo-theme="light"] .sidebar-status span,
html[data-mo-theme="light"] .workspace-head p,
html[data-mo-theme="light"] .metric-card > span,
html[data-mo-theme="light"] .metric-card small,
html[data-mo-theme="light"] .table-footer,
html[data-mo-theme="light"] .no-rows,
html[data-mo-theme="light"] .table-loading,
html[data-mo-theme="light"] .eyebrow,
html[data-mo-theme="light"] .nav-label {
  color: #66748b !important;
  opacity: 1 !important;
}

html[data-mo-theme="light"] .global-search,
html[data-mo-theme="light"] .input-shell,
html[data-mo-theme="light"] .plain-input,
html[data-mo-theme="light"] .modal-form select,
html[data-mo-theme="light"] .modal-form textarea,
html[data-mo-theme="light"] .table-toolbar select,
html[data-mo-theme="light"] .table-toolbar input {
  color: #182233 !important;
  border-color: rgba(71, 85, 105, 0.18) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

html[data-mo-theme="light"] .global-search input,
html[data-mo-theme="light"] .input-shell input,
html[data-mo-theme="light"] .plain-input,
html[data-mo-theme="light"] input,
html[data-mo-theme="light"] textarea,
html[data-mo-theme="light"] select {
  color: #182233 !important;
}

html[data-mo-theme="light"] input::placeholder,
html[data-mo-theme="light"] textarea::placeholder {
  color: #8a96a9 !important;
  opacity: 1 !important;
}

html[data-mo-theme="light"] .count,
html[data-mo-theme="light"] .global-search kbd {
  color: #66748b !important;
  border-color: rgba(71, 85, 105, 0.12) !important;
  background: rgba(71, 85, 105, 0.07) !important;
}

html[data-mo-theme="light"] body #root .table-panel .table-scroll table thead tr > th,
html[data-mo-theme="light"] body .table-panel .table-scroll table thead tr > th,
html[data-mo-theme="light"] body .table-scroll table thead th,
html[data-mo-theme="light"] .table-scroll thead th {
  color: #55647a !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: #f2f5fa !important;
  box-shadow: 0 1px 0 rgba(71, 85, 105, 0.15) !important;
}

html[data-mo-theme="light"] .table-scroll tbody td {
  color: #1f2937 !important;
  border-color: rgba(71, 85, 105, 0.11) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

html[data-mo-theme="light"] .table-scroll tbody tr:hover td {
  background: #f4f7ff !important;
}

html[data-mo-theme="light"] .table-scroll tbody td,
html[data-mo-theme="light"] .table-scroll tbody td span,
html[data-mo-theme="light"] .table-scroll tbody td div,
html[data-mo-theme="light"] .table-scroll tbody td p,
html[data-mo-theme="light"] .table-scroll tbody td small,
html[data-mo-theme="light"] .table-scroll tbody td strong,
html[data-mo-theme="light"] .table-scroll tbody td a,
html[data-mo-theme="light"] .table-scroll tbody td button,
html[data-mo-theme="light"] .table-scroll tbody td .cell-input,
html[data-mo-theme="light"] .table-scroll tbody td .cell-select {
  opacity: 1 !important;
}

html[data-mo-theme="light"] .table-scroll tbody td span,
html[data-mo-theme="light"] .table-scroll tbody td div,
html[data-mo-theme="light"] .table-scroll tbody td p,
html[data-mo-theme="light"] .table-scroll tbody td small,
html[data-mo-theme="light"] .table-scroll tbody td strong,
html[data-mo-theme="light"] .table-scroll tbody td a,
html[data-mo-theme="light"] .table-scroll tbody td .cell-input,
html[data-mo-theme="light"] .table-scroll tbody td .cell-select {
  color: inherit !important;
}

html[data-mo-theme="light"] .row-number {
  color: #6f7c91 !important;
}

html[data-mo-theme="light"] .cell-input:focus,
html[data-mo-theme="light"] .cell-select:focus {
  color: #182233 !important;
  border-color: rgba(79, 70, 229, 0.42) !important;
  background: rgba(79, 70, 229, 0.05) !important;
}

html[data-mo-theme="light"] .cell-select option,
html[data-mo-theme="light"] select option {
  color: #182233 !important;
  background: #ffffff !important;
}

html[data-mo-theme="light"] .status-online,
html[data-mo-theme="light"] .cell-select.status-online,
html[data-mo-theme="light"] .table-scroll tbody td .status-online {
  color: #157a3f !important;
  background-color: #dcfce7 !important;
  border-color: rgba(21, 128, 61, 0.32) !important;
}

html[data-mo-theme="light"] .status-offline,
html[data-mo-theme="light"] .cell-select.status-offline,
html[data-mo-theme="light"] .table-scroll tbody td .status-offline {
  color: #be123c !important;
  background-color: #ffe4e6 !important;
  border-color: rgba(190, 24, 93, 0.28) !important;
}

html[data-mo-theme="light"] .status-maintenance,
html[data-mo-theme="light"] .cell-select.status-maintenance,
html[data-mo-theme="light"] .table-scroll tbody td .status-maintenance {
  color: #a16207 !important;
  background-color: #fef3c7 !important;
  border-color: rgba(161, 98, 7, 0.28) !important;
}

html[data-mo-theme="light"] .actions-menu,
html[data-mo-theme="light"] #mo-data-main-dropdown,
html[data-mo-theme="light"] .mo-column-menu,
html[data-mo-theme="light"] .mo-actions-data-children,
html[data-mo-theme="light"] .mo-main-columns-dialog,
html[data-mo-theme="light"] .mo-sharing-confirm-modal,
html[data-mo-theme="light"] .mo-admin-dialog,
html[data-mo-theme="light"] .mo-admin-modal {
  color: #182233 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 22px 65px rgba(71, 85, 105, 0.18) !important;
}

html[data-mo-theme="light"] .actions-menu button,
html[data-mo-theme="light"] #mo-data-main-dropdown button,
html[data-mo-theme="light"] .mo-column-menu button,
html[data-mo-theme="light"] .icon-button,
html[data-mo-theme="light"] .menu-toggle,
html[data-mo-theme="light"] .secondary-button,
html[data-mo-theme="light"] .user-button,
html[data-mo-theme="light"] .row-action-button,
html[data-mo-theme="light"] .mo-main-columns-button,
html[data-mo-theme="light"] .mo-main-columns-expand,
html[data-mo-theme="light"] .mo-main-columns-close,
html[data-mo-theme="light"] .mo-main-columns-tools button,
html[data-mo-theme="light"] .mo-main-columns-cancel {
  color: #526079 !important;
  border-color: rgba(71, 85, 105, 0.16) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html[data-mo-theme="light"] .actions-menu button:hover,
html[data-mo-theme="light"] #mo-data-main-dropdown button:hover,
html[data-mo-theme="light"] .mo-column-menu button:hover,
html[data-mo-theme="light"] .icon-button:hover,
html[data-mo-theme="light"] .menu-toggle:hover,
html[data-mo-theme="light"] .secondary-button:hover,
html[data-mo-theme="light"] .user-button:hover,
html[data-mo-theme="light"] .mo-main-columns-button:hover,
html[data-mo-theme="light"] .mo-main-columns-expand:hover:not(:disabled) {
  color: #3348c5 !important;
  border-color: rgba(79, 70, 229, 0.34) !important;
  background: #ffffff !important;
}

html[data-mo-theme="light"] .mo-main-columns-summary {
  color: #66748b !important;
  background: rgba(71, 85, 105, 0.07) !important;
}

html[data-mo-theme="light"] .sidebar {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(247, 250, 253, 0.96) !important;
}

html[data-mo-theme="light"] .topbar {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(250, 252, 255, 0.93) !important;
}

html[data-mo-theme="light"] .nav-item {
  color: #5f6d84 !important;
}

html[data-mo-theme="light"] .nav-item:hover,
html[data-mo-theme="light"] .nav-item.active {
  color: #273a9b !important;
  background: rgba(79, 70, 229, 0.09) !important;
}

html[data-mo-theme="light"] .sidebar-status {
  border-color: rgba(71, 85, 105, 0.13) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

/* MagicOps Light Mode Color Fix End */

/* MagicOps Topbar Layout Fix Start */

/* Remove the unnecessary manual Refresh button. */
body:has(.app-shell)
.workspace-actions
> .secondary-button:first-child {
  display: none !important;
}

/*
 * Reserve a dedicated position after Logout so the theme
 * button never covers the username or role.
 */
body:has(.app-shell) .topbar-actions {
  padding-right: 49px !important;
}

body:has(.app-shell) #mo-theme-toggle {
  top: 15px !important;
  right: 22px !important;
  margin: 0 !important;
  transform: none !important;
}

body:has(.app-shell) #mo-theme-toggle:hover {
  transform: translateY(-1px) !important;
}

@media (max-width: 780px) {
  body:has(.app-shell) .topbar-actions {
    padding-right: 48px !important;
  }

  body:has(.app-shell) #mo-theme-toggle {
    right: 14px !important;
  }
}

/* MagicOps Topbar Layout Fix End */
