:root {
  --dm-bg: #f3f6fb;
  --dm-surface: #ffffff;
  --dm-border: #e6ebf2;
  --dm-text: #111827;
  --dm-muted: #6b7280;
  --dm-primary: #1d4ed8;
  --dm-primary-soft: #dbeafe;
  --dm-success: #10b981;
  --dm-warning: #f59e0b;
  --dm-danger: #ef4444;
  --dm-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* User profile theme palette mapping */
body.dmon-shell.dm-theme-dark,
body.dmon-shell.dm-theme-black {
  --dm-primary: #0ea5e9;
  --dm-primary-soft: #0f172a;
}
body.dmon-shell.dm-theme-blue,
body.dmon-shell.dm-theme-blue-light {
  --dm-primary: #1d4ed8;
  --dm-primary-soft: #dbeafe;
}
body.dmon-shell.dm-theme-purple,
body.dmon-shell.dm-theme-purple-light {
  --dm-primary: #7c3aed;
  --dm-primary-soft: #ede9fe;
}
body.dmon-shell.dm-theme-green,
body.dmon-shell.dm-theme-green-light {
  --dm-primary: #059669;
  --dm-primary-soft: #d1fae5;
}
body.dmon-shell.dm-theme-red,
body.dmon-shell.dm-theme-red-light {
  --dm-primary: #dc2626;
  --dm-primary-soft: #fee2e2;
}
body.dmon-shell.dm-theme-yellow,
body.dmon-shell.dm-theme-yellow-light {
  --dm-primary: #b45309;
  --dm-primary-soft: #fef3c7;
}

body.dmon-shell {
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--dm-bg);
  color: var(--dm-text);
}

body.dmon-shell.layout-boxed .wrapper {
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.12);
  background: var(--dm-bg);
}

.dmon-shell .content-wrapper,
.dmon-shell .right-side {
  background: var(--dm-bg);
}

/* Right-side theme toggle (content area only) */
body.dmon-shell.dm-right-dark .content-wrapper,
body.dmon-shell.dm-right-dark .right-side {
  --dm-right-bg: #0b1220;
  --dm-right-surface: #0f172a;
  --dm-right-border: #1f2937;
  --dm-right-text: #e5e7eb;
  --dm-right-muted: #94a3b8;
  background: var(--dm-right-bg);
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper h1,
body.dmon-shell.dm-right-dark .content-wrapper h2,
body.dmon-shell.dm-right-dark .content-wrapper h3,
body.dmon-shell.dm-right-dark .content-wrapper h4,
body.dmon-shell.dm-right-dark .content-wrapper h5,
body.dmon-shell.dm-right-dark .content-wrapper h6,
body.dmon-shell.dm-right-dark .content-wrapper .content-header,
body.dmon-shell.dm-right-dark .content-wrapper .content-header small {
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .box,
body.dmon-shell.dm-right-dark .content-wrapper .box .box-header,
body.dmon-shell.dm-right-dark .content-wrapper .box .box-footer {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--dm-right-border);
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .box {
  box-shadow: none;
}

/* Top-right icon color accents */
.dmon-shell .navbar-custom-menu .fa-server { color: #22c55e; }
.dmon-shell .navbar-custom-menu .fa-globe { color: #38bdf8; }
.dmon-shell .navbar-custom-menu .fa-check { color: #16a34a; }
.dmon-shell .navbar-custom-menu .fa-search { color: #f59e0b; }
.dmon-shell .navbar-custom-menu .fa-refresh { color: #60a5fa; }
.dmon-shell .navbar-custom-menu .fa-star { color: #facc15; }

body.dmon-shell.dm-right-dark .content-wrapper .dm-mini-gauge-wrap {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 8px 6px;
}

body.dmon-shell.dm-right-dark .content-wrapper .box .box-title,
body.dmon-shell.dm-right-dark .content-wrapper .box .box-header .box-title {
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .table,
body.dmon-shell.dm-right-dark .content-wrapper .table th,
body.dmon-shell.dm-right-dark .content-wrapper .table td {
  color: var(--dm-right-text);
  border-color: var(--dm-right-border);
}

body.dmon-shell.dm-right-dark .content-wrapper .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(148, 163, 184, 0.06);
}

body.dmon-shell.dm-right-dark .content-wrapper .form-control,
body.dmon-shell.dm-right-dark .content-wrapper .select2-container--default .select2-selection--single,
body.dmon-shell.dm-right-dark .content-wrapper .select2-container--default .select2-selection--multiple {
  background: #0b1324;
  border-color: var(--dm-right-border);
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .input-group-addon,
body.dmon-shell.dm-right-dark .content-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .dataTables_wrapper .dataTables_filter input,
body.dmon-shell.dm-right-dark .content-wrapper .dataTables_wrapper .dataTables_length select {
  background: #0b1324;
  border-color: var(--dm-right-border);
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .pagination > li > a,
body.dmon-shell.dm-right-dark .content-wrapper .pagination > li > span {
  background: #0b1324;
  border-color: var(--dm-right-border);
  color: var(--dm-right-text);
}

body.dmon-shell.dm-right-dark .content-wrapper .pagination > .active > a,
body.dmon-shell.dm-right-dark .content-wrapper .pagination > .active > span {
  background: var(--dm-primary);
  border-color: var(--dm-primary);
  color: #fff;
}

/* Keep sidebar sizing unchanged, make only content area denser. */
.dmon-shell .right-side {
  font-size: 14px;
}

.dmon-shell .main-header .logo,
.dmon-shell .main-header .navbar {
  background: #ffffff;
  color: var(--dm-text);
  border-bottom: 1px solid var(--dm-border);
}

.dmon-shell .main-header .logo {
  border-right: 1px solid var(--dm-border);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dmon-shell .main-header .logo .logo-lg {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dmon-shell .main-header .navbar {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.dmon-shell .main-header .navbar .sidebar-toggle {
  color: #475569;
}

.dmon-shell .main-header .navbar .sidebar-toggle:hover {
  color: var(--dm-primary);
  background: transparent;
}

.dmon-shell .main-sidebar,
.dmon-shell .left-side {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.dmon-shell .sidebar-menu > li.header {
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 11px;
}

.dmon-shell .sidebar-menu > li > a {
  color: #cbd5e1;
  border-left: 3px solid transparent;
}

.dmon-shell .sidebar-menu > li > a:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
  border-left-color: #60a5fa;
}

.dmon-shell .sidebar-menu > li.active > a,
.dmon-shell .sidebar-menu > li.menu-open > a {
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
  border-left-color: #60a5fa;
}

.dmon-shell .sidebar-menu .treeview-menu > li > a {
  color: #a5b4c8;
}

/* Submenu dot — replaces the old double-chevron icon */
.dmon-shell .dm-submenu-dot {
  font-size: 5px;
  vertical-align: middle;
  opacity: 0.45;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

.dmon-shell .sidebar-menu .treeview-menu > li.active > a,
.dmon-shell .sidebar-menu .treeview-menu > li > a:hover {
  color: #fff;
}

.dmon-shell .user-panel {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dmon-shell .user-panel > .info > p {
  color: #f8fafc;
  font-weight: 700;
}

.dmon-shell .user-panel > .info > a {
  color: #cbd5e1;
}

.dmon-shell .sidebar-form input.form-control {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.dmon-shell .sidebar-form .btn {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.dmon-shell .content-header {
  padding: 0 18px;
  margin: 0;
}

.dmon-shell .content-header h1 {
  display: none;
}

.dmon-shell .content {
  padding: 14px 18px 18px 18px;
}

.dmon-shell .dm-page-action {
  display: flex;
  justify-content: flex-end;
  margin: 10px 18px 0 18px;
}

.dmon-shell .box {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 14px;
  box-shadow: var(--dm-shadow);
}

.dmon-shell .box .box-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dm-border);
}

.dmon-shell .box .box-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.dmon-shell .box .box-body {
  padding: 14px;
}

.dmon-shell .box .box-footer {
  border-top: 1px solid var(--dm-border);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.dmon-shell .box-tools .btn-box-tool {
  color: #64748b;
}

.dmon-shell .box-tools .btn-box-tool:hover {
  color: var(--dm-primary);
}

.dmon-shell .main-footer {
  background: transparent;
  border-top: 0;
  color: #64748b;
}

.dmon-shell .content-header > .breadcrumb {
  display: none;
}

.dmon-shell .content-header .dm-page-head {
  display: flex;
  justify-content: flex-end;
}

.dmon-shell .content-header > .breadcrumb > li,
.dmon-shell .content-header > .breadcrumb > li > a {
  color: #64748b;
}

.dmon-shell .content-header > .breadcrumb > .active {
  color: #0f172a;
}

.dmon-shell .dm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.dmon-shell .dm-kpi-grid.dm-kpi-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmon-shell .dm-kpi-card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  min-height: 120px;
  box-shadow: var(--dm-shadow);
}

.dmon-shell .dm-dashboard-top {
  margin-bottom: 14px;
}

.dmon-shell .dm-dashboard-mid {
  margin-bottom: 14px;
}

.dmon-shell .dm-dashboard-mid .box {
  margin-bottom: 14px;
}

.dmon-shell .dm-right-pane {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.dmon-shell .dm-right-pane .box {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: var(--dm-shadow);
}

.dmon-shell .dm-right-pane .box .box-title,
.dmon-shell .dm-right-pane .dm-overview-text {
  color: #0f172a;
}

.dmon-shell .dm-dashboard-mid .dm-infra-capacity {
  min-height: 240px;
}

.dmon-shell .dm-dashboard-mid .dm-overview-notifications {
  min-height: 180px;
}

.dmon-shell .dm-overview-notifications {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

.dmon-shell .dm-overview-notifications .box-title,
.dmon-shell .dm-overview-notifications .dm-overview-text,
.dmon-shell .dm-overview-notifications .dm-notification-list a,
.dmon-shell .dm-overview-notifications .dm-notification-list strong,
.dmon-shell .dm-overview-notifications .dm-notification-list li,
.dmon-shell .dm-overview-notifications .dm-notification-list small {
  color: #0f172a;
}

.dmon-shell .dm-dashboard-mid .dm-infra-capacity .box-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.dmon-shell .dm-dashboard-mid .dm-overview-notifications .box-body {
  min-height: 120px;
}

.dmon-shell .dm-notifications-menu .dm-nav-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
}
.dmon-shell .dm-overview-stack {
  display: grid;
  gap: 14px;
  grid-auto-rows: minmax(180px, auto);
}

.dmon-shell .dm-overview-card .box-body {
  display: flex;
  align-items: center;
}

.dmon-shell .dm-overview-card {
  min-height: 170px;
}

.dmon-shell .dm-overview-text {
  font-size: 15px;
  margin: 0;
  color: var(--dm-text);
}

body.dmon-shell.dm-right-dark .dm-overview-text {
  color: var(--dm-right-text);
}

.dmon-shell .dm-notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dmon-shell .dm-notification-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dmon-shell .dm-notification-list a {
  color: var(--dm-right-text);
}

.dmon-shell .dm-notification-list small {
  color: rgba(226, 232, 240, 0.7);
}

body.dmon-shell.dm-right-dark .dm-notification-list a,
body.dmon-shell.dm-right-dark .dm-notification-list strong {
  color: #f8fafc;
}

body.dmon-shell.dm-right-dark .dm-notification-list li {
  color: #e2e8f0;
}

.dmon-shell .dm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-right: 6px;
}

.dmon-shell .dm-status-open {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dmon-shell .dm-status-resolved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Pulsing status dot for overview cards */
.dmon-shell .dm-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dmon-shell .dm-status-dot-ok {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.dmon-shell .dm-status-dot-alert {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  animation: dm-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes dm-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08); }
}

.dmon-shell .dm-kpi-label {
  font-size: 13px;
  color: var(--dm-muted);
  margin-bottom: 4px;
  display: block;
}

.dmon-shell .dm-kpi-value {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  margin: 4px 0 10px;
}

.dmon-shell .dm-kpi-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--dm-primary);
}

.dmon-shell .dm-kpi-sub {
  font-size: 12px;
  color: var(--dm-muted);
}

.dmon-shell .dm-kpi-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 24px;
  opacity: 0.15;
}

.dmon-shell .dm-kpi-servers .dm-kpi-value,
.dmon-shell .dm-kpi-servers .dm-kpi-icon { color: var(--dm-success); }
.dmon-shell .dm-kpi-websites .dm-kpi-value,
.dmon-shell .dm-kpi-websites .dm-kpi-icon { color: var(--dm-primary); }
.dmon-shell .dm-kpi-checks .dm-kpi-value,
.dmon-shell .dm-kpi-checks .dm-kpi-icon { color: #14b8a6; }
.dmon-shell .dm-kpi-notify .dm-kpi-value,
.dmon-shell .dm-kpi-notify .dm-kpi-icon { color: var(--dm-warning); }

.dmon-shell .dm-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.dmon-shell .dm-widget {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--dm-shadow);
}

.dmon-shell .dm-widget h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.dmon-shell .dm-health-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dmon-shell .dm-health-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--dm-border);
  font-size: 13px;
}

.dmon-shell .dm-health-list li:last-child { border-bottom: 0; }

.dmon-shell .dm-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.dmon-shell .dm-dot.green { background: var(--dm-success); }
.dmon-shell .dm-dot.amber { background: var(--dm-warning); }
.dmon-shell .dm-dot.red { background: var(--dm-danger); }

.dmon-shell .dm-priority {
  border: 1px solid var(--dm-border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.dmon-shell .dm-priority strong {
  display: block;
  font-size: 13px;
}

.dmon-shell .dm-priority span {
  color: var(--dm-muted);
  font-size: 12px;
}

.dmon-shell .dm-priority a {
  color: var(--dm-primary);
  font-weight: 700;
}

.dmon-shell .dm-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dmon-shell .dm-page-head h1 {
  margin: 0;
}

.dmon-shell .content-header h1.pull-left {
  float: none !important;
  display: inline-block;
}

.dmon-shell .content-header .pull-right {
  float: right !important;
}

.dmon-shell .content-header > div[style*="clear:both"] {
  clear: none !important;
  display: none !important;
}

.dmon-shell .dm-page-head .btn {
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}

.dmon-shell .dm-data-table-card .box-body {
  padding: 12px;
}

.dmon-shell .dm-data-table-card table.dataTable {
  width: 100% !important;
}

.dmon-shell .dm-alert-log-table {
  table-layout: fixed;
}

.dmon-shell .dm-alert-log-table th,
.dmon-shell .dm-alert-log-table td {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.dmon-shell .dm-alert-log-table th:nth-child(1),
.dmon-shell .dm-alert-log-table td:nth-child(1) { width: 52px; }
.dmon-shell .dm-alert-log-table th:nth-child(2),
.dmon-shell .dm-alert-log-table td:nth-child(2) { width: 150px; }
.dmon-shell .dm-alert-log-table th:nth-child(3),
.dmon-shell .dm-alert-log-table td:nth-child(3) { width: 140px; }
.dmon-shell .dm-alert-log-table th:nth-child(4),
.dmon-shell .dm-alert-log-table td:nth-child(4) { width: 42%; }
.dmon-shell .dm-alert-log-table th:nth-child(5),
.dmon-shell .dm-alert-log-table td:nth-child(5) { width: 24%; }
.dmon-shell .dm-alert-log-table th:nth-child(6),
.dmon-shell .dm-alert-log-table td:nth-child(6) { width: 110px; }

.dmon-shell .dm-alert-cards {
  display: flex;
  flex-wrap: wrap;
  margin-left: -7px;
  margin-right: -7px;
}

.dmon-shell .dm-alert-card-col {
  padding-left: 7px;
  padding-right: 7px;
  margin-bottom: 14px;
  width: 25%;
}

/* BS5 stat card inside alert-card-col */
.dmon-shell .dm-alert-card-col .card {
  border-radius: 12px !important;
  min-height: 90px;
}

/* Tab content panel border matches nav-tabs bottom border */
.dmon-shell .tab-content.border {
  border-color: #dee2e6 !important;
}
body.dmon-shell.dm-right-dark .tab-content.border {
  border-color: var(--dm-border) !important;
  background: var(--dm-surface) !important;
}
body.dmon-shell.dm-right-dark .dm-alert-card-col .card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border) !important;
}

.dmon-shell .dm-asset-tree {
  margin: 0;
}

.dmon-shell .dm-asset-server {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--dm-border);
}

.dmon-shell .dm-asset-server:last-child {
  border-bottom: 0;
}

.dmon-shell .dm-asset-server-title {
  font-size: 15px;
}

.dmon-shell .dm-asset-empty {
  padding-left: 22px;
  margin-top: 4px;
}

.dmon-shell .dm-asset-websites {
  padding-left: 22px;
}

.dmon-shell .dm-asset-website {
  margin: 9px 0;
}

.dmon-shell .dm-asset-meta,
.dmon-shell .dm-asset-domain {
  padding-left: 18px;
  font-size: 12px;
}

.dmon-shell .dm-asset-unlinked li {
  margin-bottom: 8px;
}

.dmon-shell .dm-asset-map-grid {
  display: flex;
  flex-wrap: wrap;
}

.dmon-shell .dm-asset-map-grid > [class*='col-'] {
  margin-bottom: 18px;
}

.dmon-shell .dm-asset-server-card {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 18px;
  box-shadow: var(--dm-shadow);
  padding: 10px;
  margin-bottom: 10px;
}

.dmon-shell .dm-asset-server-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.dmon-shell .dm-asset-server-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.dmon-shell .dm-asset-server-title i {
  font-size: 22px;
  color: var(--dm-primary);
}

.dmon-shell .dm-asset-server-name {
  line-height: 1.1;
}

.dmon-shell .dm-asset-server-sub {
  color: var(--dm-muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.dmon-shell .dm-asset-site-grid {
  margin-left: -10px;
  margin-right: -10px;
}

.dmon-shell .dm-asset-site-grid > [class*='col-'] {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 12px;
}

.dmon-shell .dm-asset-site-grid > .col-sm-6 {
  width: 50%;
}

@media (max-width: 991px) {
  .dmon-shell .dm-asset-site-grid > .col-sm-6 {
    width: 100%;
  }
}

.dmon-shell .dm-asset-site-card,
.dmon-shell .dm-side-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--dm-border);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: 10px;
  height: 100%;
}

.dmon-shell .dm-asset-site-card {
  max-width: 100%;
}

.dmon-shell .dm-asset-site-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dmon-shell .dm-asset-site-name-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.dmon-shell .dm-asset-site-name,
.dmon-shell .dm-side-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.dmon-shell .dm-asset-site-name i,
.dmon-shell .dm-side-card-title i {
  margin-right: 6px;
}

.dmon-shell .dm-asset-site-url,
.dmon-shell .dm-side-card-sub {
  color: var(--dm-muted);
  font-size: 12px;
  margin-top: 2px;
  word-break: break-word;
}

.dmon-shell .dm-asset-site-chip {
  flex: 0 0 auto;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dmon-shell .dm-asset-expiry-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.dmon-shell .dm-asset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.dmon-shell .dm-asset-badges-two {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.dmon-shell .dm-asset-badges-two .dm-asset-badge {
  width: auto;
  justify-content: flex-start;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .dmon-shell .dm-asset-badges-two {
    flex-direction: column;
  }
}

.dmon-shell .dm-asset-badges-compact {
  margin-bottom: 0;
}

.dmon-shell .dm-side-card-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.dmon-shell .dm-side-card-inline .dm-asset-domain-pill-sm {
  flex: 0 0 auto;
}

.dmon-shell .dm-side-card-inline .label,
.dmon-shell .dm-side-card-inline .dm-asset-domain-pill-sm {
  flex: 0 0 auto;
}

.dmon-shell .dm-check-presets {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.dmon-shell .dm-check-presets-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dmon-shell .dm-check-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dmon-shell .dm-check-preset {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dmon-shell .dm-check-preset:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.dmon-shell .dm-asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.dmon-shell .dm-asset-badge-hosting { background: #e0f2fe; color: #075985; }
.dmon-shell .dm-asset-badge-dns { background: #fef3c7; color: #92400e; }
.dmon-shell .dm-asset-badge-email { background: #ede9fe; color: #6d28d9; }
.dmon-shell .dm-asset-badge-location { background: #dcfce7; color: #166534; }
.dmon-shell .dm-asset-badge-domain { background: #f3f4f6; color: #374151; }

.dmon-shell .dm-asset-domain-card {
  padding-top: 12px;
}

.dmon-shell .dm-asset-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
}

.dmon-shell .dm-asset-domain-pill i {
  color: #1d4ed8;
}

.dmon-shell .dm-asset-domain-pill-sm {
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 0;
}

.dmon-shell .dm-asset-domain-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dmon-shell .dm-asset-domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--dm-muted);
  margin-bottom: 8px;
}

.dmon-shell .dm-asset-domain-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dmon-shell .dm-asset-empty-card {
  background: #f8fafc;
  border: 1px dashed var(--dm-border);
  border-radius: 14px;
  color: var(--dm-muted);
  padding: 14px 16px;
  font-size: 13px;
}

.dmon-shell .dm-side-stack .box {
  border-radius: 18px;
  box-shadow: var(--dm-shadow);
  border: 1px solid var(--dm-border);
}

.dmon-shell .dm-side-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dmon-shell .dm-side-card {
  padding: 10px 12px;
}

.dmon-shell .dm-side-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.dmon-shell .dm-side-card-title .label,
.dmon-shell .dm-side-card-title .dm-asset-domain-pill-sm {
  flex: 0 0 auto;
}

.dmon-shell .dm-provider-coverage li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: #334155;
}

.dmon-shell .dm-provider-coverage li i {
  margin-top: 2px;
}

.dmon-shell .btn {
  border-radius: 10px;
  font-weight: 600;
}

.dmon-shell .btn-primary {
  background-color: var(--dm-primary);
  border-color: var(--dm-primary);
}

.dmon-shell .btn-primary:hover,
.dmon-shell .btn-primary:focus {
  background-color: #1e40af;
  border-color: #1e40af;
}

.dmon-shell .btn-default {
  background: #fff;
  border-color: var(--dm-border);
  color: #334155;
}

.dmon-shell .form-control,
/* Select2 dropdown must always render above Bootstrap modals (z-index 1055) */
.select2-container {
  z-index: 9999 !important;
}
.select2-dropdown {
  z-index: 9999 !important;
}

.dmon-shell .select2-container--default .select2-selection--single,
.dmon-shell .select2-container--default .select2-selection--multiple {
  border-radius: 10px !important;
  border-color: var(--dm-border) !important;
  box-shadow: none !important;
}

.dmon-shell .form-control:focus,
.dmon-shell .select2-container--default.select2-container--open .select2-selection--single,
.dmon-shell .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

.dmon-shell .table {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 14px;
}

.dmon-shell .table > thead > tr > th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  border-bottom: 1px solid var(--dm-border);
}

.dmon-shell .table > tbody > tr > td {
  border-top: 1px solid var(--dm-border);
}

.dmon-shell .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fbfdff;
}

.dmon-shell .table-hover > tbody > tr:hover {
  background-color: #eff6ff;
}

.dmon-shell .nav-tabs-custom {
  border-radius: 14px;
  border: 1px solid var(--dm-border);
  box-shadow: var(--dm-shadow);
  overflow: hidden;
}

.dmon-shell .nav-tabs-custom > .nav-tabs {
  background: #f8fafc;
}

.dmon-shell .nav-tabs-custom > .nav-tabs > li.active {
  border-top-color: var(--dm-primary);
}

.dmon-shell .nav-tabs-custom > .nav-tabs > li > a {
  color: #334155;
  font-weight: 600;
}

.dmon-shell .nav-tabs-custom > .nav-tabs > li.active > a {
  color: var(--dm-primary);
}

.dmon-shell .modal-content {
  border-radius: 14px;
  border: 1px solid var(--dm-border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.dmon-shell .modal-header {
  border-bottom: 1px solid var(--dm-border);
}

.dmon-shell .modal-footer {
  border-top: 1px solid var(--dm-border);
}

.dmon-shell .alert {
  border-radius: 10px;
  border: 0;
}

.dmon-shell .callout {
  border-radius: 10px;
}

.dmon-shell .small-box {
  border-radius: 14px;
  box-shadow: var(--dm-shadow);
}

.dmon-shell .small-box .icon {
  opacity: 0.2;
}

.dmon-shell .small-box > .small-box-footer {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.dmon-shell .pagination > li > a,
.dmon-shell .pagination > li > span {
  border-radius: 8px !important;
  margin: 0 2px;
  border-color: var(--dm-border);
  color: #334155;
}

.dmon-shell .pagination > .active > a,
.dmon-shell .pagination > .active > span {
  background: var(--dm-primary);
  border-color: var(--dm-primary);
}

.dmon-shell .dt-buttons .btn-default {
  border-radius: 8px;
  border-color: var(--dm-border);
  background: #fff;
}

.dmon-shell .label {
  border-radius: 999px;
  padding: 0.35em 0.7em;
}

.dmon-shell .info-box {
  border-radius: 14px;
  box-shadow: var(--dm-shadow);
  border: 1px solid var(--dm-border);
}

.dmon-shell .info-box-icon {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.dmon-shell .content .row:last-child .col-md-12:last-child .box:last-child,
.dmon-shell .content .row:last-child .col-xs-12:last-child .box:last-child {
  margin-bottom: 4px;
}

.dmon-shell .sidebar {
  position: relative;
  padding-bottom: 86px;
}

.dmon-shell .dm-sidebar-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(2px);
}

.dmon-shell .dm-sidebar-profile {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 6px 8px;
}

.dmon-shell .dm-sidebar-profile:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.45);
}

.dmon-shell .dm-profile-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.2);
  color: #bfdbfe;
}

.dmon-shell .dm-profile-arrow {
  margin-left: auto;
  opacity: 0.8;
}

.dmon-shell .dm-sidebar-signout {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.dmon-shell .dm-sidebar-signout:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.45);
}

.dmon-shell .navbar-custom-menu .dropdown-menu.dm-force-open {
  display: block !important;
}

.dmon-shell .dm-top-notifications {
  margin-bottom: 14px;
}

.dmon-shell .dm-infra-capacity {
  margin-bottom: 14px;
}

.dmon-shell .dm-capacity-item {
  border: 1px solid var(--dm-border);
  border-radius: 10px;
  padding: 10px;
  background: #f9fbff;
  margin-bottom: 8px;
}

.dmon-shell .dm-capacity-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
}

.dmon-shell .dm-capacity-head strong {
  font-size: 13px;
  color: #0f172a;
}

.dmon-shell .dm-capacity-item .progress {
  height: 20px;
  margin-bottom: 0;
  background: #e5e7eb;
  border-radius: 999px;
}

.dmon-shell .dm-capacity-item .progress-bar {
  line-height: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.dmon-shell .dm-server-gauge-box {
  margin-bottom: 14px;
}

.dmon-shell .dm-server-gauge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.dmon-shell .dm-server-gauge-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: center;
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 12px;
  background: #f9fbff;
}

.dmon-shell .dm-server-gauge-head {
  margin-bottom: 0;
  padding-right: 12px;
}

.dmon-shell .dm-mini-gauges {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  padding: 6px 0;
}

.dmon-shell .dm-mini-gauge {
  flex: 0 0 clamp(150px, 14vw, 220px);
  text-align: center;
}

/* Dynamic sizing for infra gauges based on count. */
.dmon-shell .dm-mini-gauges-dynamic[data-count="2"] .dm-mini-gauge {
  flex: 0 0 clamp(180px, 18vw, 260px);
}
.dmon-shell .dm-mini-gauges-dynamic[data-count="3"] .dm-mini-gauge {
  flex: 0 0 clamp(160px, 14vw, 220px);
}
.dmon-shell .dm-mini-gauges-dynamic[data-count="4"] .dm-mini-gauge {
  flex: 0 0 clamp(140px, 12vw, 200px);
}
.dmon-shell .dm-mini-gauges-dynamic[data-count="5"] .dm-mini-gauge {
  flex: 0 0 clamp(120px, 10vw, 180px);
}

/* Server gauges always fixed size (three gauges). */
.dmon-shell .dm-mini-gauges-fixed .dm-mini-gauge {
  flex: 0 0 clamp(110px, 10vw, 150px);
}

.dmon-shell .dm-mini-gauge-canvas {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  /* aspect-ratio keeps height proportional so canvas looks correct on all screen sizes */
  aspect-ratio: 5 / 3;
  height: auto;
  overflow: visible;
}

.dmon-shell .dm-mini-gauge-canvas canvas {
  /* JS sets the exact pixel dimensions; CSS just fills the container */
  width: 100% !important;
  height: 100% !important;
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.dmon-shell #dm-autorefresh-dropdown.dm-open > .dropdown-menu,
.dmon-shell .navbar-custom-menu .dropdown-menu.dm-force-open {
  display: block !important;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 2000;
}

.dmon-shell .dm-mini-gauge-value {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  color: #1e293b;
}

.dmon-shell .dm-mini-gauge-label {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.dmon-shell .dm-mini-gauge-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}

.dmon-shell .dm-overview-card .box-body {
  min-height: 84px;
  display: flex;
  align-items: center;
}

.dmon-shell .dm-overview-text {
  font-size: 15px;
  margin: 0;
  color: var(--dm-text);
}

body.dmon-shell.dm-right-dark .dm-overview-text {
  color: var(--dm-right-text);
}

.dmon-shell .dm-server-gauge-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.dmon-shell .dm-server-gauge-meta,
.dmon-shell .dm-server-gauge-fields {
  color: var(--dm-muted);
  font-size: 12px;
  line-height: 1.35;
}

.dmon-shell .dm-semi-stack {
  width: 180px;
  height: 102px;
  margin: 6px auto 8px auto;
  position: relative;
}

.dmon-shell .dm-semi-layer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  overflow: hidden;
}

.dmon-shell .dm-semi-layer-1 { width: 180px; height: 90px; }
.dmon-shell .dm-semi-layer-2 { width: 152px; height: 76px; }
.dmon-shell .dm-semi-layer-3 { width: 124px; height: 62px; }

.dmon-shell .dm-semi-ring {
  width: 100%;
  height: 200%;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    from 180deg,
    var(--ring-color) calc((var(--pct) * 1%) * 0.5),
    #d9e1ec 0
  );
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.dmon-shell .dm-semi-ring::after {
  content: "";
  position: absolute;
  inset: var(--ring-thickness);
  border-radius: 50%;
  background: #f9fbff;
}

.dmon-shell .dm-semi-center {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.dmon-shell .dm-gauge-legend {
  display: none;
}

.dmon-shell .dm-gauge-legend span {
  white-space: nowrap;
}

.dmon-shell .dm-gauge-legend i {
  margin-right: 4px;
}

.dmon-shell .dm-top-notifications .table-responsive {
  max-height: 430px;
  overflow-y: auto;
}

.dmon-shell .dm-docker-table-wrap {
  max-height: 520px;
  overflow-y: auto;
}

.dmon-shell .dm-click-row {
  cursor: pointer;
}

@media (max-width: 1199px) {
  .dmon-shell .dm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmon-shell .dm-dashboard-grid { grid-template-columns: 1fr; }
  .dmon-shell .dm-alert-card-col { width: 50%; }
}

@media (max-width: 767px) {
  .dmon-shell .content-header {
    padding: 12px 12px 4px 12px;
  }

  .dmon-shell .content {
    padding: 10px 12px 12px 12px;
  }

  .dmon-shell .content-header > .breadcrumb {
    display: none;
  }

  .dmon-shell .dm-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dmon-shell .dm-kpi-grid { grid-template-columns: 1fr; }
  .dmon-shell .dm-alert-card-col { width: 100%; }
  .dmon-shell .dm-server-gauge-card { grid-template-columns: 1fr; }
  .dmon-shell .dm-server-gauge-head { padding-right: 0; margin-bottom: 8px; }
  .dmon-shell .dm-mini-gauges { flex-wrap: wrap; overflow-x: visible; }
  .dmon-shell .dm-semi-stack { width: 160px; height: 92px; }
  .dmon-shell .dm-semi-layer-1 { width: 160px; height: 80px; }
  .dmon-shell .dm-semi-layer-2 { width: 134px; height: 67px; }
  .dmon-shell .dm-semi-layer-3 { width: 108px; height: 54px; }
  .dmon-shell .dm-semi-center { font-size: 20px; }
  .dmon-shell .dm-gauge-legend { grid-template-columns: 1fr; text-align: left; }
  .dmon-shell .dm-mini-gauge-canvas { max-width: 100%; }
  .dmon-shell .dm-mini-gauges-fixed .dm-mini-gauge { flex: 0 0 clamp(90px, 28vw, 140px); }

  .dmon-shell .sidebar {
    padding-bottom: 76px;
  }

  .dmon-shell .dm-sidebar-profile span {
    font-size: 12px;
  }
}
