@charset "UTF-8";
.aa-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.2s;
  filter: brightness(0) opacity(0.75);
}

.aa-logo-on-dark .aa-logo-img,
.app-sidebar .aa-logo-img,
.auth-brand-side .aa-logo-img {
  filter: brightness(0) invert(1);
}

.landing-footer .aa-logo-img {
  filter: brightness(0) invert(1) opacity(0.85);
}

#kt_app_toolbar {
  display: none !important;
}

#kt_app_header_menu {
  display: none !important;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  font-family: "DM Sans", -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2d3436;
  cursor: pointer;
  height: 35px;
  outline: none;
  transition: border-color 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select:hover {
  border-color: #9ca3a8;
}
.lang-select:focus {
  border-color: #5a8bb0;
}
.lang-select option {
  font-family: "DM Sans", -apple-system, sans-serif;
  padding: 4px 8px;
}

.card.card-flush {
  box-shadow: none !important;
  border: 1px solid #ece9e4 !important;
  border-radius: 8px !important;
  transition: box-shadow 0.2s ease;
}
.card.card-flush:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03) !important;
}
.card.card-flush > .card-header {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.card.card-flush .card-title span.fw-bold {
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.card .btn-sm.btn-light {
  background: #f5f3ef !important;
  border-color: #e8e4df !important;
  color: #5a5e64 !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}
.card .btn-sm.btn-primary {
  border-radius: 8px !important;
}
.card .badge {
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.e-grid {
  border: none !important;
  border-radius: 0 !important;
}
.e-grid .e-gridheader {
  border-bottom: 1px solid #ece9e4 !important;
}
.e-grid .e-gridheader th {
  padding: 0.85rem 0.75rem !important;
  background: #faf9f7 !important;
}
.e-grid .e-headercelldiv {
  font-weight: 600 !important;
  color: #9ca3a8 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}
.e-grid .e-gridcontent .e-row {
  border-bottom: 1px solid #ece9e4 !important;
}
.e-grid .e-gridcontent .e-row td {
  padding: 0.85rem 0.75rem !important;
  vertical-align: middle !important;
  color: #4a4e54 !important;
}
.e-grid .e-gridcontent .e-row:hover td {
  background: #f9f7f4 !important;
}
.e-grid .e-pager {
  border: none !important;
  border-top: 1px solid #ece9e4 !important;
  background: #faf9f7 !important;
}
.e-grid .e-pager .e-currentitem {
  background: #6b9ac4 !important;
  border-color: #6b9ac4 !important;
}
.e-grid .e-excelfilter .e-dlg-content {
  border-radius: 8px !important;
}

.e-accumulationchart {
  font-family: "DM Sans", -apple-system, sans-serif !important;
  margin: 0 auto !important;
  display: block !important;
}

.donut-center-wrap {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

[id^=container] text,
.e-chart text,
.e-accumulationchart text {
  font-family: "DM Sans", -apple-system, sans-serif !important;
}

.e-circulargauge {
  font-family: "DM Sans", -apple-system, sans-serif !important;
}

.toolbar-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  display: inline-block;
  animation: toolbar-pulse 1.5s ease-in-out infinite;
}

@keyframes toolbar-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(122, 173, 138, 0.6);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(122, 173, 138, 0);
  }
}
.toolbar-btn-light.e-btn, .toolbar-btn-light.e-dropdown-btn {
  background: #f5f3ef !important;
  border-color: #e8e4df !important;
  color: #5a5e64 !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.toolbar-btn-light.e-btn:hover, .toolbar-btn-light.e-dropdown-btn:hover {
  background: #ece9e4 !important;
}

.toolbar-btn-primary.e-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}

.toolbar-btn-success.e-btn {
  background: #7aad8a !important;
  border-color: #7aad8a !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.toolbar-btn-success.e-btn:hover {
  background: #619d74 !important;
  border-color: #619d74 !important;
}

.e-dropdown-popup ul {
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.e-dropdown-popup .e-item {
  font-size: 0.75rem !important;
  padding: 8px 16px !important;
}
.e-dropdown-popup .e-item:hover {
  background: #f5f3ef !important;
}

.row.g-5.g-xl-10 {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

.text-gray-900 {
  color: #2d3436 !important;
}

.text-gray-800 {
  color: #4a4e54 !important;
}

.text-gray-700 {
  color: #5a5e64 !important;
}

.text-gray-500 {
  color: #9ca3a8 !important;
}

.text-gray-400 {
  color: #b5b0aa !important;
}

.atn-sf.e-btn {
  min-width: 28px !important;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  font-size: 0.8125rem;
  transition: 0.15s;
  margin-right: 3px;
  line-height: 1;
}
.atn-sf.e-btn:hover {
  background: rgba(156, 163, 168, 0.06);
  color: #4a4e54;
}
.atn-sf.e-btn.pri:hover {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border-color: #5a8bb0;
}
.atn-sf.e-btn.dan:hover {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border-color: #c4616e;
}

.ui-pill.e-btn {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  transition: 0.15s;
}
.ui-pill.e-btn:hover, .ui-pill.e-btn.active {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
  background: rgba(90, 139, 176, 0.08) !important;
}
.ui-pill.e-btn.ui-pill-warn:hover, .ui-pill.e-btn.ui-pill-warn.active {
  border-color: #d4a855 !important;
  color: #d4a855 !important;
  background: rgba(212, 168, 85, 0.08) !important;
}
.ui-pill.e-btn.ui-pill-danger:hover, .ui-pill.e-btn.ui-pill-danger.active {
  border-color: #c4616e !important;
  color: #c4616e !important;
  background: rgba(196, 97, 110, 0.08) !important;
}
.ui-pill.e-btn.ui-pill-success:hover, .ui-pill.e-btn.ui-pill-success.active {
  border-color: #7aad8a !important;
  color: #7aad8a !important;
  background: rgba(107, 158, 125, 0.08) !important;
}

.ui-pill-count {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 3px;
}

.toolbar-btn-outline.e-btn {
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
  justify-content: center;
}

.card-body::-webkit-scrollbar {
  width: 4px;
}
.card-body::-webkit-scrollbar-thumb {
  background: #ddd9d4;
  border-radius: 4px;
}

.app-sidebar {
  background: #2d3436 !important;
  border-right: none !important;
}
.app-sidebar .scroll-y::-webkit-scrollbar {
  width: 4px;
}
.app-sidebar .scroll-y::-webkit-scrollbar-track {
  background: transparent;
}
.app-sidebar .scroll-y::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.app-sidebar .menu-section {
  color: #7a7e84 !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
}
.app-sidebar .menu-link {
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin: 1px 0 !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.app-sidebar .menu-title {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #b5b0aa !important;
  transition: color 0.15s ease !important;
}
.app-sidebar .menu-arrow {
  color: #7a7e84 !important;
}
.app-sidebar .menu-item:not(.here) > .menu-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
.app-sidebar .menu-item:not(.here) > .menu-link:hover .menu-title {
  color: #fff !important;
}
.app-sidebar .menu-item.here > .menu-link {
  background: rgba(107, 154, 196, 0.12) !important;
}
.app-sidebar .menu-item.here > .menu-link .menu-title {
  color: #6b9ac4 !important;
  font-weight: 600 !important;
}
.app-sidebar .menu-item.here > .menu-link .menu-emoji {
  filter: none;
}
.app-sidebar .menu-item.here > .menu-link .menu-arrow {
  color: #6b9ac4 !important;
}
.app-sidebar .menu-sub .menu-link {
  padding: 7px 14px 7px 38px !important;
}
.app-sidebar .menu-sub .menu-bullet .bullet-dot {
  width: 5px !important;
  height: 5px !important;
  background-color: #7a7e84 !important;
  border-radius: 50%;
}
.app-sidebar .menu-sub .menu-link.active {
  background: rgba(107, 154, 196, 0.08) !important;
}
.app-sidebar .menu-sub .menu-link.active .menu-title {
  color: #6b9ac4 !important;
  font-weight: 600 !important;
}
.app-sidebar .menu-sub .menu-link.active .bullet-dot {
  background-color: #6b9ac4 !important;
}
.app-sidebar .menu-sub .menu-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.03) !important;
}
.app-sidebar .menu-sub .menu-link:not(.active):hover .menu-title {
  color: #e8e4df !important;
}

.app-sidebar-logo {
  padding: 24px 20px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
}

.sidebar-logo-sub {
  color: #9ca3a8;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.menu-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-size: 0.875rem;
  line-height: 1;
  text-align: center;
}

.app-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  flex-shrink: 0;
}

.sidebar-user-name {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-user-role {
  color: #9ca3a8;
  font-size: 0.75rem;
  font-weight: 400;
}

[data-kt-app-sidebar-minimize=on] .sidebar-logo-icon {
  width: 30px;
  height: 30px;
}
[data-kt-app-sidebar-minimize=on] .sidebar-user-card {
  justify-content: center;
  padding: 10px 4px;
}
[data-kt-app-sidebar-minimize=on] .sidebar-user-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

.symbol .symbol-label {
  font-family: "DM Sans", -apple-system, sans-serif;
}

#kt_header_user_menu_toggle .symbol-label {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-family: "DM Sans", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(90, 139, 176, 0.15);
  transition: background 0.15s, border-color 0.15s;
}
#kt_header_user_menu_toggle .symbol-label:hover {
  background: rgba(90, 139, 176, 0.14);
  border-color: rgba(90, 139, 176, 0.25);
}

.menu.menu-sub-dropdown[data-kt-menu] {
  font-family: "DM Sans", -apple-system, sans-serif;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06), 0 8px 24px rgba(45, 52, 54, 0.08);
  background: #fefefe;
  overflow: hidden;
}
.menu.menu-sub-dropdown[data-kt-menu] .symbol-label.bg-light-primary {
  background: rgba(90, 139, 176, 0.08) !important;
  color: #5a8bb0 !important;
  font-family: "DM Sans", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 8px;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-content {
  padding: 12px !important;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item .menu-link {
  font-size: 0.8125rem;
  color: #4a4e54;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item .menu-link:hover {
  background: #f5f3ef;
  color: #5a8bb0;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item .menu-link i, .menu.menu-sub-dropdown[data-kt-menu] .menu-item .menu-link [class*=ki-] {
  color: #9ca3a8;
  font-size: 0.875rem;
  width: 18px;
  text-align: center;
  transition: color 0.12s;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item .menu-link:hover i, .menu.menu-sub-dropdown[data-kt-menu] .menu-item .menu-link:hover [class*=ki-] {
  color: #5a8bb0;
}
.menu.menu-sub-dropdown[data-kt-menu] .separator {
  border-color: #ece9e4 !important;
  margin: 8px 0 !important;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item:last-child .menu-link {
  color: #c4616e;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item:last-child .menu-link i, .menu.menu-sub-dropdown[data-kt-menu] .menu-item:last-child .menu-link [class*=ki-] {
  color: #c4616e;
}
.menu.menu-sub-dropdown[data-kt-menu] .menu-item:last-child .menu-link:hover {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

#kt_menu_notifications {
  font-family: "DM Sans", -apple-system, sans-serif;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06), 0 8px 24px rgba(45, 52, 54, 0.08);
  background: #fefefe;
  overflow: hidden;
}
#kt_menu_notifications .ntf-header {
  background: #faf9f7;
  padding: 16px 24px 0;
  border-bottom: 1px solid #ece9e4;
}
#kt_menu_notifications .ntf-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
#kt_menu_notifications .ntf-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
  margin: 0;
}
#kt_menu_notifications .ntf-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  font-size: 11px;
  font-weight: 600;
}
#kt_menu_notifications .ntf-tabs {
  gap: 4px;
  border-bottom: none;
}
#kt_menu_notifications .ntf-tabs .nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3a8;
  padding: 8px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  transition: 0.15s;
}
#kt_menu_notifications .ntf-tabs .nav-link:hover {
  color: #5a8bb0;
  border-bottom-color: rgba(90, 139, 176, 0.3);
}
#kt_menu_notifications .ntf-tabs .nav-link.active {
  color: #5a8bb0;
  border-bottom-color: #5a8bb0;
  background: none;
}
#kt_menu_notifications .ntf-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.6);
}
#kt_menu_notifications .ntf-item:last-child {
  border-bottom: none;
}
#kt_menu_notifications .ntf-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  flex-shrink: 0;
  font-size: 0.75rem;
}
#kt_menu_notifications .ntf-icon.ntf-icon-danger {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}
#kt_menu_notifications .ntf-icon.ntf-icon-warning {
  background: rgba(212, 168, 85, 0.08);
  color: #d4a855;
}
#kt_menu_notifications .ntf-icon.ntf-icon-primary {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}
#kt_menu_notifications .ntf-icon.ntf-icon-success {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
}
#kt_menu_notifications .ntf-icon.ntf-icon-info {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}
#kt_menu_notifications .ntf-body {
  flex: 1;
  min-width: 0;
}
#kt_menu_notifications .ntf-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2d3436;
  line-height: 1.4;
}
#kt_menu_notifications .ntf-desc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}
#kt_menu_notifications .ntf-time {
  font-size: 0.6875rem;
  color: #9ca3a8;
  white-space: nowrap;
  flex-shrink: 0;
}
#kt_menu_notifications .ntf-footer {
  padding: 8px 0;
  text-center: center;
  border-top: 1px solid #ece9e4;
}
#kt_menu_notifications .ntf-footer .btn {
  font-family: "DM Sans", -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

#kt_activities {
  font-family: "DM Sans", -apple-system, sans-serif;
  border-left: 1px solid #ece9e4;
}
#kt_activities .card {
  background: #fefefe;
  border: none;
}
#kt_activities #kt_activities_header {
  border-bottom: 1px solid #ece9e4;
  padding: 16px 24px;
  background: #faf9f7;
}
#kt_activities #kt_activities_header .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
  letter-spacing: -0.01em;
}
#kt_activities #kt_activities_header .btn-active-light-primary:hover {
  background: #f5f3ef;
}
#kt_activities .act-filters {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid #ece9e4;
  background: #faf9f7;
  flex-wrap: wrap;
}
#kt_activities .act-filter-btn {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
}
#kt_activities .act-filter-btn:hover, #kt_activities .act-filter-btn.active {
  border-color: #5a8bb0;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
}
#kt_activities .act-filter-btn.act-filter-fault:hover, #kt_activities .act-filter-btn.act-filter-fault.active {
  border-color: #c4616e;
  color: #c4616e;
  background: rgba(196, 97, 110, 0.08);
}
#kt_activities .act-filter-btn.act-filter-warn:hover, #kt_activities .act-filter-btn.act-filter-warn.active {
  border-color: #d4a855;
  color: #d4a855;
  background: rgba(212, 168, 85, 0.08);
}
#kt_activities .act-filter-btn.act-filter-telem:hover, #kt_activities .act-filter-btn.act-filter-telem.active {
  border-color: #8b7fb5;
  color: #8b7fb5;
  background: rgba(139, 127, 181, 0.08);
}
#kt_activities .act-filter-count {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}
#kt_activities .act-timeline {
  padding: 12px 24px;
}
#kt_activities .act-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.6);
}
#kt_activities .act-item:last-child {
  border-bottom: none;
}
#kt_activities .act-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  flex-shrink: 0;
  font-size: 0.875rem;
}
#kt_activities .act-icon.act-icon-fault {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}
#kt_activities .act-icon.act-icon-event {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}
#kt_activities .act-icon.act-icon-device {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
}
#kt_activities .act-icon.act-icon-telemetry {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}
#kt_activities .act-icon.act-icon-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #d4a855;
}
#kt_activities .act-icon.act-icon-scene {
  background: rgba(94, 159, 168, 0.08);
  color: #5e9fa8;
}
#kt_activities .act-icon.act-icon-schedule {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}
#kt_activities .act-body {
  flex: 1;
  min-width: 0;
}
#kt_activities .act-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2d3436;
  line-height: 1.4;
  margin-bottom: 2px;
}
#kt_activities .act-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#kt_activities .act-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#kt_activities .act-tag.act-tag-fault {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}
#kt_activities .act-tag.act-tag-event {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}
#kt_activities .act-tag.act-tag-device {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
}
#kt_activities .act-tag.act-tag-telem {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}
#kt_activities .act-tag.act-tag-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #d4a855;
}
#kt_activities .act-tag.act-tag-scene {
  background: rgba(94, 159, 168, 0.08);
  color: #5e9fa8;
}
#kt_activities .act-tag.act-tag-sched {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}
#kt_activities .act-device-name {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #5a5e64;
}
#kt_activities .act-value {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #5a8bb0;
  font-weight: 500;
}
#kt_activities #kt_activities_footer {
  border-top: 1px solid #ece9e4;
  background: #faf9f7;
  padding: 12px 24px;
}
#kt_activities #kt_activities_footer .btn {
  font-family: "DM Sans", -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a8bb0;
}
#kt_activities #kt_activities_footer .btn:hover {
  background: rgba(90, 139, 176, 0.08);
}

.aa-loader-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aa-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ece9e4;
  border-top-color: #6b9ac4;
  border-radius: 50%;
  animation: aa-spin 0.8s linear infinite;
}

@keyframes aa-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-form-side {
  background: #faf9f7;
  padding: 40px;
}

.auth-brand-side {
  background: linear-gradient(160deg, #2d3436 0%, #3d4446 100%);
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.auth-brand-logo-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.auth-brand-sub {
  color: #9ca3a8;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.auth-brand-features {
  margin-top: 32px;
}
.auth-brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding: 10px 0;
}
.auth-brand-feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.auth-footer-links a {
  color: #9ca3a8;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s ease;
}
.auth-footer-links a:hover {
  color: #2d3436;
}

.auth-signin-form {
  width: 100%;
}
.auth-signin-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}
.auth-signin-subtitle {
  color: #9ca3a8;
  font-size: 0.9rem;
}

.auth-input.e-input-group, .auth-input.e-float-input {
  border-radius: 8px !important;
  border-color: #ece9e4 !important;
  background: #fefefe !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.auth-input.e-input-group input.e-input, .auth-input.e-float-input input.e-input {
  font-size: 0.95rem !important;
  padding: 12px 14px !important;
  color: #2d3436 !important;
}
.auth-input.e-input-group.e-input-focus, .auth-input.e-float-input.e-input-focus {
  border-color: #6b9ac4 !important;
  box-shadow: 0 0 0 3px rgba(107, 154, 196, 0.12) !important;
}
.auth-input .e-float-text {
  color: #9ca3a8 !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}

.auth-submit-btn.e-btn {
  width: 100%;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 12px !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
  background: #2d3436 !important;
  border-color: #2d3436 !important;
  color: #fff !important;
}
.auth-submit-btn.e-btn:hover {
  background: #3d4446 !important;
  border-color: #3d4446 !important;
}

.auth-error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.auth-back-link {
  color: #9ca3a8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-back-link:hover {
  color: #6b9ac4;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ece9e4;
  padding: 0 24px;
}
.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-nav-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.landing-nav-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: #2d3436;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-link {
  color: #5a5e64;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-nav-link:hover {
  color: #2d3436;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-nav-signin-btn.e-btn {
  background: #2d3436 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  padding: 8px 20px !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.landing-nav-signin-btn.e-btn:hover {
  background: #3d4446 !important;
}

.landing-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 8px 32px 8px 14px;
  font-family: "DM Sans", -apple-system, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2d3436;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.landing-lang-select:hover {
  border-color: #9ca3a8;
}
.landing-lang-select:focus {
  border-color: #5a8bb0;
}
.landing-lang-select option {
  font-family: "DM Sans", -apple-system, sans-serif;
  padding: 4px 8px;
}

.landing-hero {
  background: linear-gradient(160deg, #faf9f7 0%, #f0ece6 50%, #e8e4df 100%);
  padding: 100px 24px 80px;
  text-align: center;
}
.landing-hero--img {
  position: relative;
  padding: 140px 24px 120px;
  background: none;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 22, 43, 0.72) 0%, rgba(18, 22, 43, 0.55) 50%, rgba(18, 22, 43, 0.82) 100%);
  z-index: 1;
}
.landing-hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.landing-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}
.landing-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.landing-hero-title--light {
  color: #fff;
}
@media (max-width: 768px) {
  .landing-hero-title {
    font-size: 2.2rem;
  }
}
.landing-hero-accent {
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-hero-subtitle {
  font-size: 1.1rem;
  color: #5a5e64;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}
.landing-hero-subtitle--light {
  color: rgba(255, 255, 255, 0.75);
}
.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.landing-hero-secondary {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.landing-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.landing-hero-cta.e-btn {
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 12px 32px !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.landing-hero-cta.e-btn:hover {
  opacity: 0.9;
}

.landing-showcase {
  padding: 80px 24px;
  background: #fefefe;
}
.landing-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .landing-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .landing-showcase-grid {
    grid-template-columns: 1fr;
  }
}
.landing-showcase-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.landing-showcase-card--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
@media (max-width: 992px) {
  .landing-showcase-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 576px) {
  .landing-showcase-card--large {
    grid-column: span 1;
  }
}
.landing-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.landing-showcase-card:hover img {
  transform: scale(1.05);
}
.landing-showcase-card:hover .landing-showcase-caption {
  opacity: 1;
  transform: translateY(0);
}
.landing-showcase-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 22, 43, 0.88) 0%, rgba(18, 22, 43, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.landing-showcase-caption h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0 6px;
}
.landing-showcase-caption p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.landing-showcase-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

.landing-video {
  padding: 0 24px 80px;
  background: #fefefe;
}
.landing-video-wrapper {
  position: relative;
  border-radius: 9999px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16/7;
}
.landing-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.landing-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 22, 43, 0.7) 0%, rgba(18, 22, 43, 0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-video-content {
  text-align: center;
  max-width: 520px;
  padding: 24px;
}
.landing-video-content h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}
.landing-video-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 24px;
}
.landing-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.landing-video-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b9e7d;
  animation: landing-pulse 1.5s infinite;
}

@keyframes landing-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.landing-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.landing-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3436;
  text-align: center;
  margin-bottom: 8px;
}
.landing-section-subtitle {
  color: #9ca3a8;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.landing-features {
  padding: 80px 24px;
  background: #fefefe;
}
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}

.landing-feature-card {
  background: #faf9f7;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.landing-feature-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
}
.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.landing-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 10px;
}
.landing-feature-desc {
  color: #5a5e64;
  font-size: 0.9rem;
  line-height: 1.65;
}

.landing-stats {
  padding: 60px 24px;
  background: #2d3436;
}
.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .landing-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.landing-stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.landing-stat-label {
  color: #9ca3a8;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.landing-solutions {
  padding: 80px 24px;
  background: #faf9f7;
}
.landing-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .landing-solutions-grid {
    grid-template-columns: 1fr;
  }
}

.landing-solution-card {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.landing-solution-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
}
.landing-solution-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.landing-solution-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 10px;
}
.landing-solution-desc {
  color: #5a5e64;
  font-size: 0.9rem;
  line-height: 1.65;
}

.landing-technology {
  padding: 80px 24px;
  background: #fefefe;
}

.landing-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .landing-tech-grid {
    grid-template-columns: 1fr;
  }
}
.landing-tech-item {
  background: #faf9f7;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 24px;
}
.landing-tech-item p {
  color: #5a5e64;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.landing-tech-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) opacity(0.8);
}
.landing-tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.landing-cta {
  padding: 80px 24px;
  background: linear-gradient(160deg, #2d3436 0%, #3d4446 100%);
  text-align: center;
}
.landing-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.landing-cta-subtitle {
  color: #9ca3a8;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.landing-cta-btn.e-btn {
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 12px 32px !important;
  font-family: "DM Sans", -apple-system, sans-serif !important;
}
.landing-cta-btn.e-btn:hover {
  opacity: 0.9;
}

.landing-contact {
  padding: 80px 24px;
  background: linear-gradient(160deg, #2d3436 0%, #3d4446 100%);
  text-align: center;
}
.landing-contact .landing-section-title {
  color: #fff;
}
.landing-contact .landing-section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.landing-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 36px;
}

.landing-contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s;
}
.landing-contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.landing-contact-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.landing-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3a8;
  margin-bottom: 8px;
}

.landing-contact-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.6;
}
.landing-contact-value a {
  color: #5a8bb0;
  text-decoration: none;
}
.landing-contact-value a:hover {
  text-decoration: underline;
}

.landing-contact-cta {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .landing-contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.landing-footer {
  padding: 40px 24px;
  background: #242829;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-footer-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}
.landing-footer-tagline {
  color: #7a7e84;
  font-size: 0.75rem;
}
.landing-footer-links {
  display: flex;
  gap: 24px;
}
.landing-footer-links a {
  color: #9ca3a8;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-footer-links a:hover {
  color: #fff;
}
.landing-footer-copy {
  color: #7a7e84;
  font-size: 0.75rem;
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .landing-hero-title {
    font-size: 2rem;
  }
  .landing-hero-subtitle {
    font-size: 0.95rem;
  }
  .landing-hero {
    padding: 60px 24px 50px;
  }
  .landing-footer-inner {
    justify-content: center;
    text-align: center;
  }
}
.nf-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #faf9f7;
  padding: 24px;
}

.nf-card {
  text-align: center;
  max-width: 440px;
  width: 100%;
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  padding: 48px 40px 36px;
  box-shadow: none;
}

.nf-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.nf-code {
  font-family: "Space Mono", monospace;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.nf-title {
  font-family: "DM Sans", -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.nf-text {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #9ca3a8;
  margin-bottom: 28px;
}

.nf-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.nf-btn-primary {
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  padding: 9px 24px !important;
  border-radius: 8px !important;
  transition: opacity 0.15s !important;
}
.nf-btn-primary:hover {
  opacity: 0.88 !important;
}

.nf-btn-outline {
  background: transparent !important;
  border: 1px solid #ece9e4 !important;
  color: #5a5e64 !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  padding: 9px 24px !important;
  border-radius: 8px !important;
  transition: 0.15s !important;
}
.nf-btn-outline:hover {
  border-color: #6b9ac4 !important;
  color: #6b9ac4 !important;
  background: rgba(107, 154, 196, 0.04) !important;
}

.nf-footer {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
  letter-spacing: 0.3px;
}

.page-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(107, 154, 196, 0.12), rgba(107, 154, 196, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
}

.bldg-kpi-card {
  position: relative;
  overflow: hidden;
}
.bldg-kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 14px;
}
.bldg-kpi-card.kpi-blue::before {
  background: #5a8bb0;
}
.bldg-kpi-card.kpi-green::before {
  background: #6b9e7d;
}
.bldg-kpi-card.kpi-amber::before {
  background: #d4a855;
}
.bldg-kpi-card.kpi-teal::before {
  background: #5e9fa8;
}
.bldg-kpi-card.kpi-purple::before {
  background: #8b7fb5;
}
.bldg-kpi-card.kpi-red::before {
  background: #c4616e;
}

.bldg-kpi-icon.blue {
  background: rgba(90, 139, 176, 0.08);
}
.bldg-kpi-icon.green {
  background: rgba(107, 158, 125, 0.08);
}
.bldg-kpi-icon.amber {
  background: rgba(212, 168, 85, 0.08);
}
.bldg-kpi-icon.teal {
  background: #e0f9ff;
}
.bldg-kpi-icon.purple {
  background: rgba(139, 127, 181, 0.08);
}
.bldg-kpi-icon.red {
  background: rgba(196, 97, 110, 0.08);
}

.bldg-kpi-trend-up {
  color: #6b9e7d;
}

.bldg-kpi-trend-down {
  color: #c4616e;
}

.bldg-kpi-trend-neutral {
  color: #9ca3a8;
}

.bg-teal {
  background: #e0f9ff !important;
  color: #5e9fa8 !important;
}

.warning-row {
  background: #fffef0 !important;
}
.warning-row:hover td {
  background: #fefceb !important;
}

.card .e-grid {
  border: none !important;
}
.card .e-grid .e-gridheader {
  border-bottom: 1px solid #ece9e4 !important;
}
.card .e-grid .e-headercell {
  font-weight: 600 !important;
  color: #9ca3a8 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.card .e-grid .e-rowcell {
  padding: 0.65rem 0.75rem !important;
  vertical-align: middle !important;
  border-color: #ece9e4 !important;
}
.card .e-grid .e-pager {
  border: none !important;
  border-top: 1px solid #ece9e4 !important;
}
.card .e-grid .e-groupdroparea {
  background: #faf9f7 !important;
  border-bottom: 1px solid #ece9e4 !important;
  font-size: 0.75rem;
}
.card .e-grid .e-groupheadercell {
  background: rgba(90, 139, 176, 0.08) !important;
  border-color: #bee3f5 !important;
  color: #5a8bb0 !important;
  border-radius: 4px;
}
.card .e-grid .e-groupcaption {
  background: #f5f3ef !important;
  font-weight: 600 !important;
}
.card .e-grid .e-summaryrow td {
  background: #f5f3ef !important;
  font-weight: 600 !important;
}

.bldg-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bldg-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 220px;
}

.bldg-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.bldg-search-input .e-input-group {
  height: 30px;
}

.bldg-filter-sel .e-input-group {
  height: 30px;
}

.bldg-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.bldg-cpill.e-btn {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  box-shadow: none !important;
}
.bldg-cpill.e-btn.active {
  background: #f5f3ef !important;
  color: #2d3436 !important;
  border-color: currentColor !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) !important;
}

.bldg-vt-group {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.bldg-vt-btn.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.bldg-vt-btn.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.bldg-vt-sf.e-btn {
  padding: 5px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  border: 1.5px solid transparent !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.bldg-vt-sf.e-btn:hover {
  background: rgba(156, 163, 168, 0.06) !important;
  color: #4a4e54 !important;
}
.bldg-vt-sf.e-btn.active {
  background: rgba(90, 139, 176, 0.08) !important;
  color: #5a8bb0 !important;
  border-color: rgba(90, 139, 176, 0.2) !important;
}

.bldg-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.bldg-page-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(107, 154, 196, 0.12), rgba(107, 154, 196, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
}

.bldg-page-title {
  font-weight: 700;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.bldg-page-bc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.bldg-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bldg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.bldg-card {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.15s;
}
.bldg-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}
.bldg-card.bldg-card-warn {
  border-left: 3px solid #d4a855;
}

.bldg-card-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #ece9e4;
}

.bldg-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bldg-card-info {
  flex: 1;
  min-width: 0;
}

.bldg-card-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bldg-card-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.bldg-card-body {
  padding: 12px 16px;
}

.bldg-card-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 10px;
}

.bldg-card-stats {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid #ece9e4;
  border-radius: 6px;
  overflow: hidden;
}

.bldg-card-stat {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid #ece9e4;
}
.bldg-card-stat:last-child {
  border-right: none;
}

.bldg-card-stat-val {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1;
}

.bldg-card-stat-lbl {
  font-size: 9px;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.bldg-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.bldg-card-area {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.bldg-card-energy {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.bldg-card-energy-val {
  font-family: "Space Mono", monospace;
  font-weight: 600;
  color: #2d3436;
}

.bldg-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px 16px;
  border-top: 1px solid #ece9e4;
  background: #faf9f7;
}

.bldg-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  backdrop-filter: blur(3px);
  animation: bldgFadeIn 0.15s ease;
}

@keyframes bldgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.bldg-detail-panel {
  width: 480px;
  height: 100%;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: bldgSlideIn 0.2s ease;
}

@keyframes bldgSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}
.bldg-dp-hd {
  padding: 18px 22px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.bldg-dp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.bldg-dp-name {
  font-size: 17px;
  font-weight: 700;
  color: #2d3436;
  letter-spacing: -0.2px;
}

.bldg-dp-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.bldg-dp-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bldg-dp-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
}

.bldg-dp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.bldg-dp-body::-webkit-scrollbar {
  width: 4px;
}
.bldg-dp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.bldg-dp-sec-hd {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ece9e4;
}
.bldg-dp-sec-hd:first-child {
  margin-top: 0;
}

.bldg-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.bldg-dp-row:last-child {
  border-bottom: none;
}

.bldg-dp-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.bldg-dp-val {
  font-weight: 700;
  color: #2d3436;
}

.bldg-dp-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.bldg-dp-bar {
  height: 5px;
  background: #f5f3ef;
  border-radius: 3px;
  width: 60px;
  overflow: hidden;
}

.bldg-dp-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.bldg-dp-foot {
  padding: 14px 22px;
  border-top: 1px solid #ece9e4;
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.bldg-dp-main-btn {
  flex: 1;
  justify-content: center;
}

.bldg-dp-del-btn.e-btn {
  color: #c4616e !important;
}
.bldg-dp-del-btn.e-btn:hover {
  background: rgba(196, 97, 110, 0.08) !important;
}

.bldg-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #12162b 0%, #1a2442 50%, #17203b 100%);
}
.bldg-hero .hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 50%, rgba(90, 139, 176, 0.18) 0%, transparent 55%), radial-gradient(ellipse at 75% 10%, rgba(139, 127, 181, 0.14) 0%, transparent 50%);
  pointer-events: none;
}
.bldg-hero .hero-grid-pat {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.bldg-hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 2rem;
}
.bldg-hero .hero-bldg-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.bldg-hero .hero-bldg-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.125rem;
}
.bldg-hero .hero-bldg-model {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Space Mono", monospace;
  margin-bottom: 0.375rem;
}
.bldg-hero .hero-chips {
  display: flex;
  gap: 7px;
  margin-top: 0;
  flex-wrap: wrap;
}
.bldg-hero .hchip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.bldg-hero .hchip-ok {
  background: rgba(107, 158, 125, 0.15);
  color: #6eefae;
  border: 1px solid rgba(107, 158, 125, 0.25);
}
.bldg-hero .hchip-blue {
  background: rgba(90, 139, 176, 0.15);
  color: #9de0ff;
  border: 1px solid rgba(90, 139, 176, 0.25);
}
.bldg-hero .hchip-warn {
  background: rgba(212, 168, 85, 0.15);
  color: #ffd94d;
  border: 1px solid rgba(212, 168, 85, 0.25);
}
.bldg-hero .hchip-gray {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bldg-hero .hero-btn-pri {
  background: #5a8bb0 !important;
  color: #fff !important;
  border: none !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 0.35rem 1rem !important;
}
.bldg-hero .hero-btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
}
.bldg-hero .hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
.bldg-hero .hero-btn-accent {
  background: rgba(107, 158, 125, 0.12) !important;
  color: #99bca6 !important;
  border: 1px solid rgba(107, 158, 125, 0.2) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
}
.bldg-hero .hero-btn-accent:hover {
  background: rgba(107, 158, 125, 0.22) !important;
}
.bldg-hero .hero-stats {
  display: flex;
  gap: 1.75rem;
  flex-shrink: 0;
}
.bldg-hero .hero-stat {
  text-align: center;
}
.bldg-hero .hero-stat-val {
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  font-family: "Space Mono", monospace;
}
.bldg-hero .hero-stat-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.125rem;
}
.bldg-hero .hero-stat-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.hkpi-val-sm {
  font-size: 17px;
}

.hkpi-val-crit {
  color: #c4616e !important;
}

.hk-t-ok {
  color: #6b9e7d;
}

.hk-t-warn {
  color: #d4a855;
}

.hk-t-crit {
  color: #c4616e;
}

.hk-t-muted {
  color: rgba(255, 255, 255, 0.4);
}

.hero-flex-body {
  flex: 1;
}

.hero-sep {
  opacity: 0.3;
}

.e-tab .e-tab-header .e-indicator,
.e-tab .e-tab-header .e-indicator.e-ignore {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

.e-tab .e-tab-header::before, .e-tab .e-tab-header::after,
.e-tab .e-tab-header .e-hscroll-bar::before,
.e-tab .e-tab-header .e-hscroll-bar::after,
.e-tab .e-tab-header .e-toolbar-items::before,
.e-tab .e-tab-header .e-toolbar-items::after {
  display: none !important;
  content: none !important;
}
.e-tab .e-tab-header .e-toolbar-items {
  border: none !important;
  background: transparent !important;
}
.e-tab .e-tab-header .e-toolbar-item {
  border: none !important;
  background: transparent !important;
}

.bldg-tabs.e-tab {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  border: none !important;
}
.bldg-tabs.e-tab .e-tab-header {
  background: #fefefe !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 4px !important;
  margin: 0 28px 20px !important;
  position: sticky;
  top: 58px;
  z-index: 50;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  display: flex !important;
  gap: 2px !important;
}
.bldg-tabs.e-tab .e-tab-header .e-indicator {
  display: none !important;
}
.bldg-tabs.e-tab .e-tab-header::before, .bldg-tabs.e-tab .e-tab-header::after {
  display: none !important;
}
.bldg-tabs.e-tab .e-tab-header .e-hscroll-bar,
.bldg-tabs.e-tab .e-tab-header .e-scroll-nav {
  border: none !important;
}
.bldg-tabs.e-tab .e-tab-header .e-hscroll-bar::before, .bldg-tabs.e-tab .e-tab-header .e-hscroll-bar::after,
.bldg-tabs.e-tab .e-tab-header .e-scroll-nav::before,
.bldg-tabs.e-tab .e-tab-header .e-scroll-nav::after {
  display: none !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-items {
  gap: 2px !important;
  background: transparent !important;
  border: none !important;
  height: auto !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-items::before, .bldg-tabs.e-tab .e-tab-header .e-toolbar-items::after {
  display: none !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-item {
  min-height: auto !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
  padding: 9px 15px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #9ca3a8 !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  transition: 0.15s;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap:hover {
  background: rgba(156, 163, 168, 0.06) !important;
  color: #4a4e54 !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap .e-tab-text {
  font-size: inherit !important;
  font-weight: inherit !important;
}
.bldg-tabs.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
  background: #5a8bb0 !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.bldg-tabs.e-tab .e-content {
  border: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  position: relative !important;
}
.bldg-tabs.e-tab .e-content > .e-item,
.bldg-tabs.e-tab .e-content .e-item.e-view,
.bldg-tabs.e-tab .e-content .e-item.e-active {
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}

.bldg-topbar {
  padding: 0 28px;
  height: 58px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  position: sticky;
  top: 0;
  z-index: 60;
}

.bldg-live-dot {
  width: 7px;
  height: 7px;
  background: #6b9e7d;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.btn-bldg-report {
  background: rgba(212, 168, 85, 0.08) !important;
  color: #d4a855 !important;
  border: 1.5px solid #d4a855 !important;
  font-weight: 600;
}

.btn-hero-accent {
  background: #c4616e;
  color: #fff;
  border-color: #c4616e;
}
.btn-hero-accent:hover {
  background: #bc4b5a;
  border-color: #bc4b5a;
  color: #fff;
}

.hero-btn-ghost.e-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
.hero-btn-ghost.e-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.hero-btn-accent.e-btn {
  background: #c4616e !important;
  color: #fff !important;
  border-color: #c4616e !important;
  font-weight: 600 !important;
}
.hero-btn-accent.e-btn:hover {
  background: #bc4b5a !important;
  border-color: #bc4b5a !important;
}

.bldg-tab-content {
  padding-top: 20px;
}

.bldg-progress-bar {
  height: 8px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.bldg-progress-seg {
  transition: width 0.4s;
}

.bldg-progress-ok {
  background: #6b9e7d;
}

.bldg-progress-warn {
  background: #d4a855;
}

.bldg-progress-crit {
  background: #c4616e;
}

.bldg-stat-box.ok {
  background: rgba(107, 158, 125, 0.08);
}
.bldg-stat-box.crit {
  background: rgba(196, 97, 110, 0.08);
}

.bldg-stat-val {
  font-family: "Space Mono", monospace;
}

.bldg-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.bldg-cat-dot.hvac {
  background: #5a8bb0;
}
.bldg-cat-dot.lighting {
  background: #d4a855;
}
.bldg-cat-dot.sensors {
  background: #8b7fb5;
}
.bldg-cat-dot.access {
  background: #6b9e7d;
}

.mono-val {
  font-family: "Space Mono", monospace;
}

.bldg-alert-box {
  background: rgba(196, 97, 110, 0.08);
  border: 1px solid rgba(196, 97, 110, 0.2);
}

.tl-line {
  width: 1px;
  flex: 1;
  background: #ece9e4;
  margin-top: 4px;
}

.bldg-swatch {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 4px;
}
.bldg-swatch.hvac {
  background: #5a8bb0;
}
.bldg-swatch.lighting {
  background: #6b9e7d;
}
.bldg-swatch.it {
  background: #8b7fb5;
}
.bldg-swatch.other {
  background: #d4a855;
}

.bldg-atn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  margin-right: 3px;
}
.bldg-atn:hover {
  background: #f5f3ef;
}
.bldg-atn.bldg-atn-danger {
  border-color: #c4616e;
  background: rgba(196, 97, 110, 0.08);
}
.bldg-atn.bldg-atn-danger:hover {
  background: rgba(196, 97, 110, 0.14);
}

.bldg-alert-detail {
  background: rgba(212, 168, 85, 0.08);
  border-left: 3px solid #c4616e;
  margin: 4px 0;
}

.e-accordion {
  border: none !important;
}
.e-accordion .e-acrdn-item {
  border: 1px solid #ece9e4 !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
  overflow: hidden;
}
.e-accordion .e-acrdn-item.floor-critical {
  border-left: 3px solid #c4616e !important;
}
.e-accordion .e-acrdn-item.floor-passive {
  opacity: 0.65;
}
.e-accordion .e-acrdn-item .e-acrdn-header {
  background: #fefefe !important;
  border: none !important;
  padding: 0 !important;
}
.e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
  width: 100%;
}
.e-accordion .e-acrdn-item .e-acrdn-header:hover {
  background: #f8faff !important;
}
.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon {
  color: #9ca3a8 !important;
}
.e-accordion .e-acrdn-item.e-expand-state > .e-acrdn-header {
  background: rgba(90, 139, 176, 0.08) !important;
  border-bottom: 1px solid #d8eef9 !important;
}
.e-accordion .e-acrdn-item .e-acrdn-panel {
  border: none !important;
}
.e-accordion .e-acrdn-item .e-acrdn-panel .e-acrdn-content {
  padding: 0 !important;
  background: #f8faff;
}

.floor-hd {
  padding: 13px 17px;
}
.floor-hd .fl-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(90, 139, 176, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.floor-hd .fl-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}
.floor-hd .fl-meta {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 2px;
}
.floor-hd .fl-kpis {
  display: flex;
  gap: 14px;
  align-items: center;
}
.floor-hd .fl-kpi {
  text-align: center;
}
.floor-hd .fl-kpi-val {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1;
}
.floor-hd .fl-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
  font-weight: 600;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.zone-card {
  background: #fefefe;
  border-radius: 8px;
  padding: 12px 13px;
  border: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.15s;
}
.zone-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}
.zone-card .zc-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}
.zone-card .zc-type {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}
.zone-card .zc-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.zone-card .zc-stat {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.info-row .info-label {
  display: block;
  margin-bottom: 3px;
}
.info-row .info-field.e-input-group {
  background: #f9fafb !important;
  border: 1px solid #ece9e4 !important;
  border-radius: 8px !important;
}
.info-row .info-field.e-input-group .e-input {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #2d3436 !important;
  padding: 6px 10px !important;
}
.info-row .info-field.e-input-group.mono .e-input {
  font-family: "Space Mono", monospace !important;
  font-size: 0.75rem !important;
}

.history-stat-list.e-listview,
.active-users-list.e-listview {
  border: none !important;
}
.history-stat-list.e-listview .e-list-item,
.active-users-list.e-listview .e-list-item {
  border: none !important;
  padding: 2px 0 !important;
  background: transparent !important;
  height: auto !important;
  line-height: normal !important;
}
.history-stat-list.e-listview .e-list-item:hover, .history-stat-list.e-listview .e-list-item.e-hover, .history-stat-list.e-listview .e-list-item.e-active,
.active-users-list.e-listview .e-list-item:hover,
.active-users-list.e-listview .e-list-item.e-hover,
.active-users-list.e-listview .e-list-item.e-active {
  background: transparent !important;
}
.history-stat-list.e-listview .e-list-item .e-text-content,
.active-users-list.e-listview .e-list-item .e-text-content {
  padding: 0 !important;
}
.history-stat-list.e-listview .e-list-header,
.active-users-list.e-listview .e-list-header {
  display: none !important;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.info-pair {
  padding: 10px 0;
  border-bottom: 1px solid #ece9e4;
}
.info-pair:nth-last-child(-n+2) {
  border-bottom: none;
}
.info-pair .ip-label {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}
.info-pair .ip-val {
  font-size: 0.75rem;
  color: #2d3436;
  font-weight: 600;
  line-height: 1.4;
}
.info-pair .ip-val.code {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.info-left {
  padding-right: 18px;
}

.info-right {
  padding-left: 18px;
  border-left: 1px solid #ece9e4;
}

.timeline {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.tl-item {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: -4px;
  width: 1.5px;
  background: #ece9e4;
}
.tl-item:last-child::before {
  display: none;
}
.tl-item .tl-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
  z-index: 1;
}
.tl-item .tl-body {
  flex: 1;
}
.tl-item .tl-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  line-height: 1.3;
}
.tl-item .tl-desc {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 2px;
  line-height: 1.4;
}
.tl-item .tl-meta {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  font-size: 0.6875rem;
  color: #9ca3a8;
  flex-wrap: wrap;
}

.access-points-list.e-listview {
  border: none !important;
}
.access-points-list.e-listview .e-list-item {
  border: none !important;
  border-bottom: 1px solid #ece9e4 !important;
  padding: 10px 0 !important;
  background: transparent !important;
  height: auto !important;
  line-height: normal !important;
}
.access-points-list.e-listview .e-list-item:last-child {
  border-bottom: none !important;
}
.access-points-list.e-listview .e-list-item:hover, .access-points-list.e-listview .e-list-item.e-hover, .access-points-list.e-listview .e-list-item.e-active {
  background: #f8faff !important;
}
.access-points-list.e-listview .e-list-item .e-text-content {
  padding: 0 !important;
}
.access-points-list.e-listview .e-list-header {
  display: none !important;
}

.energy-heatmap {
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  gap: 3px;
  font-size: 0.6875rem;
}
.energy-heatmap .hm-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-weight: 600;
  color: #9ca3a8;
}
.energy-heatmap .hm-cell {
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 8px 4px;
  color: #fff;
}
.energy-heatmap .hm-header {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
}

.energy-kpi-card.e-card {
  border: 1px solid #ece9e4 !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.energy-kpi-card.e-card:hover {
  border-color: #dfdad2 !important;
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03) !important;
}
.energy-kpi-card.e-card .e-card-content {
  padding: 0 !important;
}

.stat-card {
  flex: 1;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  padding: 17px 19px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 12px;
}
.stat-card.sc-b::before {
  background: #5a8bb0;
}
.stat-card.sc-g::before {
  background: #6b9e7d;
}
.stat-card.sc-r::before {
  background: #c4616e;
}
.stat-card.sc-w::before {
  background: #d4a855;
}
.stat-card.sc-i::before {
  background: #8b7fb5;
}
.stat-card.sc-t::before {
  background: #5e9fa8;
}
.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  margin-bottom: 9px;
  flex-shrink: 0;
}
.stat-card .stat-icon.si-b {
  background: rgba(90, 139, 176, 0.08);
}
.stat-card .stat-icon.si-g {
  background: rgba(107, 158, 125, 0.08);
}
.stat-card .stat-icon.si-r {
  background: rgba(196, 97, 110, 0.08);
}
.stat-card .stat-icon.si-w {
  background: rgba(212, 168, 85, 0.08);
}
.stat-card .stat-icon.si-i {
  background: rgba(139, 127, 181, 0.08);
}
.stat-card .stat-icon.si-t {
  background: #e0faf5;
}
.stat-card .stat-val {
  font-size: 24px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1.5px;
  line-height: 1;
}
.stat-card .stat-lbl {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 3px;
  font-weight: 500;
}
.stat-card .stat-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 5px;
}
.stat-card .stat-trend.t-up {
  color: #6b9e7d;
}
.stat-card .stat-trend.t-dn {
  color: #c4616e;
}
.stat-card .stat-trend.t-same {
  color: #9ca3a8;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
  transition: 0.15s;
}
.settings-nav-item:hover {
  background: rgba(156, 163, 168, 0.06);
  color: #4a4e54;
}
.settings-nav-item.active {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.settings-nav-btn.e-btn {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 9px 13px !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.settings-nav-btn.e-btn:hover {
  background: rgba(156, 163, 168, 0.06) !important;
  color: #4a4e54 !important;
}
.settings-nav-btn.e-btn.active {
  background: rgba(90, 139, 176, 0.08) !important;
  color: #5a8bb0 !important;
}
.settings-nav-btn.e-btn.settings-nav-danger {
  color: #c4616e !important;
}
.settings-nav-btn.e-btn.settings-nav-danger:hover {
  background: rgba(196, 97, 110, 0.08) !important;
}

.badge.bg-ok {
  background: rgba(107, 158, 125, 0.08) !important;
  color: #6b9e7d !important;
}

.badge.bg-warn {
  background: rgba(212, 168, 85, 0.08) !important;
  color: #c08000 !important;
}

.badge.bg-crit {
  background: rgba(196, 97, 110, 0.08) !important;
  color: #c4616e !important;
}

.badge.bg-pri {
  background: rgba(90, 139, 176, 0.08) !important;
  color: #5a8bb0 !important;
}

.badge.bg-inf {
  background: rgba(139, 127, 181, 0.08) !important;
  color: #8b7fb5 !important;
}

.badge.bg-gray {
  background: rgba(156, 163, 168, 0.06) !important;
  color: #9ca3a8 !important;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.atn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  transition: 0.15s;
  margin-right: 3px;
}
.atn:hover {
  background: rgba(156, 163, 168, 0.06);
  color: #4a4e54;
}
.atn.pri:hover {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border-color: #5a8bb0;
}
.atn.dan:hover {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border-color: #c4616e;
}

.bldg-widget .card-header {
  padding: 12px 18px;
  min-height: auto;
}
.bldg-widget .card-header .card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 0;
}
.bldg-widget .card-header .card-title .badge {
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: middle;
}
.bldg-widget .card-header .card-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bldg-widget .bw-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.bldg-filter-bar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bldg-filter-bar .bldg-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.bldg-filter-bar .bldg-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.bldg-filter-bar .e-input-group {
  height: 30px;
}

.bldg-topbar .bldg-bc-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.75rem;
}

.bldg-topbar .bldg-bc-sep {
  opacity: 0.35;
  color: #9ca3a8;
  font-size: 0.75rem;
}

.bldg-topbar .bldg-bc-cur {
  color: #2d3436;
  font-weight: 700;
  font-size: 0.75rem;
}

.bldg-topbar .bldg-bc-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bldg-ts-badge {
  padding: 5px 13px;
  border-radius: 12px;
  background: #f5f3ef;
  border: 1.5px solid #ece9e4;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 7px;
}

.og-body-split {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.og-body-tree {
  width: 300px;
  flex-shrink: 0;
}

.og-body-main {
  flex: 1;
  min-width: 0;
}

.og-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  backdrop-filter: blur(3px);
  animation: ogFadeIn 0.15s ease;
}

@keyframes ogFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.og-detail-panel {
  width: 480px;
  height: 100%;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ogSlideIn 0.2s ease;
}

@keyframes ogSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}
.og-dp-hdr {
  padding: 18px 22px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.og-dp-av {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  flex-shrink: 0;
  color: #fff;
}

.og-dp-name {
  font-size: 17px;
  font-weight: 700;
  color: #2d3436;
  letter-spacing: -0.2px;
}

.og-dp-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.og-dp-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.og-dp-badge-sm {
  font-size: 10px;
}

.og-dp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.og-dp-body::-webkit-scrollbar {
  width: 4px;
}
.og-dp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.og-dp-sec-hd {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ece9e4;
}

.og-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.og-dp-row:last-child {
  border-bottom: none;
}

.og-dp-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.og-dp-val {
  font-weight: 700;
  color: #2d3436;
}

.og-dp-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.og-dp-sm {
  font-size: 11px;
}

.og-dp-link {
  color: #5a8bb0;
  font-size: 11px;
  cursor: pointer;
}

.og-dp-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.og-dp-kpi {
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
}
.og-dp-kpi.kpi-pri {
  background: rgba(90, 139, 176, 0.08);
}
.og-dp-kpi.kpi-pri .og-dp-kpi-val {
  color: #5a8bb0;
}
.og-dp-kpi.kpi-ok {
  background: rgba(107, 158, 125, 0.08);
}
.og-dp-kpi.kpi-ok .og-dp-kpi-val {
  color: #6b9e7d;
}
.og-dp-kpi.kpi-info {
  background: rgba(139, 127, 181, 0.08);
}
.og-dp-kpi.kpi-info .og-dp-kpi-val {
  color: #8b7fb5;
}
.og-dp-kpi.kpi-warn {
  background: rgba(212, 168, 85, 0.08);
}
.og-dp-kpi.kpi-warn .og-dp-kpi-val {
  color: #d4a855;
}

.og-dp-kpi-val {
  font-size: 18px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1;
}

.og-dp-kpi-lbl {
  font-size: 9px;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.og-dp-bldg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
}
.og-dp-bldg:hover .og-dp-bldg-name {
  color: #5a8bb0;
}
.og-dp-bldg:last-of-type {
  border-bottom: none;
}

.og-dp-bldg-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(90, 139, 176, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.og-dp-bldg-body {
  flex: 1;
}

.og-dp-bldg-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  transition: 0.15s;
}

.og-dp-bldg-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.og-dp-bldg-arrow {
  font-size: 0.75rem;
  color: #5a8bb0;
}

.og-dp-more-link {
  font-size: 0.6875rem;
  color: #5a8bb0;
  font-weight: 700;
  cursor: pointer;
}

.og-dp-foot {
  padding: 14px 22px;
  border-top: 1px solid #ece9e4;
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.og-dp-main-btn {
  flex: 1;
  justify-content: center;
}

.og-dp-del-btn.e-btn {
  color: #c4616e !important;
}
.og-dp-del-btn.e-btn:hover {
  background: rgba(196, 97, 110, 0.08) !important;
}

.og-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.og-card {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
}
.og-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
  transform: translateY(-1px);
}
.og-card.og-card-selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.15);
}
.og-card.og-card-inactive {
  opacity: 0.65;
}

.og-card-band {
  height: 6px;
}

.og-card-body {
  padding: 16px 18px;
}

.og-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.og-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #fff;
  flex-shrink: 0;
}

.og-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  line-height: 1.2;
}

.og-code {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.og-stats {
  display: flex;
  gap: 0;
  padding: 10px 0;
  border-top: 1px solid #ece9e4;
  border-bottom: 1px solid #ece9e4;
  margin-bottom: 12px;
}

.og-stat {
  flex: 1;
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid #ece9e4;
}
.og-stat:last-child {
  border-right: none;
}

.og-stat-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -0.5px;
  line-height: 1;
}

.og-stat-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.og-info-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.75rem;
}

.og-info-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #9ca3a8;
}

.og-info-val {
  color: #4a4e54;
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}

.og-card-footer {
  padding: 10px 18px;
  background: #faf9f7;
  border-top: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.og-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
}

.og-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.og-atn {
  width: 28px !important;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  font-size: 0.8125rem;
  padding: 0 !important;
  min-width: 28px !important;
}
.og-atn:hover {
  background: rgba(156, 163, 168, 0.06) !important;
  color: #4a4e54 !important;
}
.og-atn.og-atn-danger:hover {
  background: rgba(196, 97, 110, 0.08) !important;
  color: #c4616e !important;
  border-color: #c4616e !important;
}

.og-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.og-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 260px;
}

.og-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.og-search-input .e-input-group {
  height: 30px;
}

.og-filter-sel .e-input-group {
  height: 30px;
}

.og-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.og-fc.e-btn {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  box-shadow: none !important;
}
.og-fc.e-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}
.og-fc.e-btn.active {
  background: #f5f3ef !important;
  color: #2d3436 !important;
  border-color: currentColor !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) !important;
}

.og-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.og-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.og-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.og-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.og-tt {
  padding: 6px 12px !important;
  border-radius: 9999px;
  font-size: 0.75rem !important;
  font-weight: 700;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
}
.og-tt:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}
.og-tt.og-tt-active {
  background: #5a8bb0 !important;
  color: #fff !important;
  border-color: #5a8bb0 !important;
}

.og-tt-count {
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
}
.og-tt:not(.og-tt-active) .og-tt-count {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.og-tbl-av {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  flex-shrink: 0;
}

.og-sp-hd {
  padding: 16px 18px;
  border-bottom: 1px solid #ece9e4;
  background: linear-gradient(135deg, #12162b, #1a2442);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.og-sp-hd::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(90, 139, 176, 0.2), transparent 60%);
}

.og-sp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.og-sp-name {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.og-sp-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.og-sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
}

.og-sp-chip-type {
  background: rgba(90, 139, 176, 0.18);
  color: #9de0ff;
  border-color: rgba(90, 139, 176, 0.25);
}

.og-sp-chip-status {
  border-style: solid;
}

.og-sp-sec {
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
}
.og-sp-sec:last-child {
  border-bottom: none;
}

.og-sp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.og-sp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.og-sp-kpi {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.og-sp-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  letter-spacing: -0.5px;
}

.og-sp-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 600;
}

.og-sp-bldg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
}
.og-sp-bldg:hover .og-sp-bldg-name {
  color: #5a8bb0;
}
.og-sp-bldg:last-of-type {
  border-bottom: none;
}

.og-sp-bldg-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(90, 139, 176, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.og-sp-bldg-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  transition: 0.15s;
}

.og-sp-bldg-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.og-tree-hd {
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.og-tree-body {
  padding: 12px 14px;
  max-height: 480px;
  overflow-y: auto;
}

.og-tree-org-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: 0.15s;
}
.og-tree-org-row:hover {
  filter: brightness(0.96);
  box-shadow: 0 0 0 2px rgba(90, 139, 176, 0.15);
}

.og-tree-org-av {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.og-tree-arr {
  font-size: 0.6875rem;
  color: #5a8bb0;
  transition: transform 0.2s;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.og-tree-arr:hover {
  background: rgba(90, 139, 176, 0.1);
}
.og-tree-arr.og-tree-arr-open {
  transform: rotate(0deg);
}
.og-tree-arr:not(.og-tree-arr-open) {
  transform: rotate(-90deg);
}

.og-tree-bldg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
}
.og-tree-bldg:hover span:first-of-type {
  color: #5a8bb0;
}

.og-tree-bldg-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.og-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.og-page-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(107, 154, 196, 0.12), rgba(107, 154, 196, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
}

.og-page-emoji {
  font-size: 22px;
}

.og-page-title {
  font-weight: 700;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.og-page-bc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.og-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.og-stat-val.val-info {
  color: #8b7fb5;
}

.og-stat-val.val-muted {
  color: #9ca3a8;
}

.og-badge-sm {
  font-size: 0.6875rem;
}

.og-info-sm {
  font-size: 0.6875rem;
}

.og-tbl-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.og-tbl-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.og-tbl-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.og-tbl-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.og-tbl-date {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.og-card-clip {
  overflow: hidden;
}

.og-sp-empty {
  text-align: center;
  padding: 36px 18px;
  color: #9ca3a8;
}

.og-sp-empty-icon {
  font-size: 48px;
  opacity: 0.4;
  margin-bottom: 12px;
}

.og-sp-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #4a4e54;
  margin-bottom: 6px;
}

.og-sp-empty-desc {
  font-size: 0.75rem;
  line-height: 1.5;
}

.og-sp-hd-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.og-sp-chips {
  margin-top: 4px;
}

.og-sp-chip-status.active {
  background: rgba(107, 158, 125, 0.18);
  color: #c1d7c9;
  border-color: rgba(107, 158, 125, 0.25);
}
.og-sp-chip-status.inactive {
  background: rgba(156, 163, 168, 0.18);
  color: #ccc;
  border-color: rgba(156, 163, 168, 0.25);
}

.og-sp-kpi.kpi-pri {
  background: rgba(90, 139, 176, 0.08);
}
.og-sp-kpi.kpi-pri .og-sp-kpi-val {
  color: #5a8bb0;
}
.og-sp-kpi.kpi-ok {
  background: rgba(107, 158, 125, 0.08);
}
.og-sp-kpi.kpi-ok .og-sp-kpi-val {
  color: #6b9e7d;
}
.og-sp-kpi.kpi-info {
  background: rgba(139, 127, 181, 0.08);
}
.og-sp-kpi.kpi-info .og-sp-kpi-val {
  color: #8b7fb5;
}
.og-sp-kpi.kpi-warn {
  background: rgba(212, 168, 85, 0.08);
}
.og-sp-kpi.kpi-warn .og-sp-kpi-val {
  color: #d4a855;
}

.og-sp-link {
  color: #5a8bb0;
  font-size: 0.6875rem;
}

.og-sp-alert-text {
  color: #c4616e;
}

.og-sp-arrow {
  font-size: 0.75rem;
  color: #5a8bb0;
}

.og-sp-more-link {
  font-size: 0.6875rem;
  color: #5a8bb0;
  font-weight: 700;
  cursor: pointer;
}

.og-sp-badge-sm {
  font-size: 10px;
}

.og-sp-btn-full {
  width: 100%;
  justify-content: center;
}

.og-sp-btn-center {
  justify-content: center;
}

.og-sp-btn-success {
  justify-content: center;
  color: #6b9e7d !important;
  border-color: #6b9e7d !important;
}

.og-sp-btn-danger {
  justify-content: center;
  color: #c4616e !important;
  border-color: #c4616e !important;
}

.og-sp-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.og-sp-bldg-body {
  flex: 1;
}

.og-tree-wrap {
  margin: -16px;
}

.og-tree-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.og-tree-subtitle {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.og-tree-node {
  margin-bottom: 10px;
}

.og-tree-org-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  flex: 1;
}

.og-tree-bldg-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4e54;
  flex: 1;
}

.og-tree-children {
  padding-left: 18px;
}

.og-tree-more {
  font-size: 0.6875rem;
  color: #5a8bb0;
  cursor: pointer;
  padding: 4px 0 4px 30px;
  font-weight: 600;
}

.og-kpi-strip {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.og-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 140px;
  background: #fefefe;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.og-kpi:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.og-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}
.og-kpi-icon.ki-b {
  background: rgba(90, 139, 176, 0.08);
}
.og-kpi-icon.ki-g {
  background: rgba(107, 158, 125, 0.08);
}
.og-kpi-icon.ki-i {
  background: rgba(139, 127, 181, 0.08);
}
.og-kpi-icon.ki-w {
  background: rgba(212, 168, 85, 0.08);
}
.og-kpi-icon.ki-o {
  background: rgba(245, 129, 63, 0.14);
}

.og-kpi-body {
  display: flex;
  flex-direction: column;
}

.og-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.og-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-top: 2px;
}

.og-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 4px;
}

.og-kb-pri {
  border-bottom-color: #5a8bb0;
}

.og-kb-ok {
  border-bottom-color: #6b9e7d;
}

.og-kb-info {
  border-bottom-color: #8b7fb5;
}

.og-kb-warn {
  border-bottom-color: #d4a855;
}

.og-kb-accent {
  border-bottom-color: #d48a5a;
}

.og-kv-ok {
  color: #6b9e7d;
}

.og-det-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #12162b 0%, #1a2442 50%, #0f1224 100%);
}
.og-det-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(90, 139, 176, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.og-det-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(122, 173, 138, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.og-det-hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem;
}

.og-det-hero-body {
  flex: 1;
}

.og-det-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.og-det-hero-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.125rem;
}

.og-det-hero-model {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Space Mono", monospace;
  margin-bottom: 0.375rem;
}

.og-det-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.og-det-chip-online {
  background: rgba(122, 173, 138, 0.15);
  color: #7aad8a;
  border-color: rgba(122, 173, 138, 0.25);
}

.og-det-chip-type {
  background: rgba(90, 139, 176, 0.15);
  color: #8eafc9;
  border-color: rgba(90, 139, 176, 0.25);
}

.og-det-chip-sla {
  background: rgba(139, 127, 181, 0.15);
  color: #c6c0da;
  border-color: rgba(139, 127, 181, 0.25);
}

.og-det-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.og-det-hero-btn-pri {
  background: #5a8bb0 !important;
  color: #fff !important;
  border: none !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 0.35rem 1rem !important;
}

.og-det-hero-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
}
.og-det-hero-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.og-det-hero-btn-dan {
  background: rgba(196, 97, 110, 0.12) !important;
  color: #d999a1 !important;
  border: 1px solid rgba(196, 97, 110, 0.2) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
}
.og-det-hero-btn-dan:hover {
  background: rgba(196, 97, 110, 0.22) !important;
}

.og-det-hero-stats {
  display: flex;
  gap: 1.75rem;
  flex-shrink: 0;
}

.og-det-hero-stat {
  text-align: center;
}

.og-det-hero-stat-val {
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  font-family: "Space Mono", monospace;
}

.og-det-hero-stat-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.125rem;
}

.og-det-sv-pri {
  color: #8eafc9 !important;
}

.og-det-sv-ok {
  color: #7aad8a !important;
}

.og-det-sv-info {
  color: #a89fc8 !important;
}

.og-det-grad-blue {
  background: linear-gradient(135deg, #5a8bb0, #426b8a);
}

.og-det-grad-green {
  background: linear-gradient(135deg, #7aad8a, #5d976f);
}

.og-det-grad-purple {
  background: linear-gradient(135deg, #8b7fb5, #695a9c);
}

.og-det-grad-orange {
  background: linear-gradient(135deg, #c98a5a, #b5703b);
}

.og-det-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid #ece9e4;
  padding-bottom: 0;
}

.og-det-tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3a8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.og-det-tab:hover {
  color: #2d3436;
}
.og-det-tab-active {
  color: #5a8bb0;
  border-bottom-color: #5a8bb0;
  font-weight: 600;
}

.og-det-tab-icon {
  font-size: 14px;
}

.og-det-tab-badge {
  margin-left: 0.25rem;
}

.og-det-g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.og-det-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.5);
  font-size: 0.75rem;
}
.og-det-drow:last-child {
  border-bottom: none;
}

.og-det-drow-lbl {
  color: #9ca3a8;
  font-size: 12px;
}

.og-det-drow-val {
  color: #2d3436;
  font-weight: 500;
  font-size: 12.5px;
}

.og-det-drow-val.mono, .mono {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.og-det-notes {
  color: #5a5e64;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
}

.og-det-mkpi-row {
  display: flex;
  gap: 1.5rem;
}

.og-det-mkpi {
  text-align: center;
}

.og-det-mkpi-val {
  font-weight: 700;
  font-size: 1.125rem;
  font-family: "Space Mono", monospace;
  color: #2d3436;
}

.og-det-mkpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 0.125rem;
}

.og-det-mkpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.og-det-bldg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
}

.og-det-bldg-card {
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fefefe;
  transition: box-shadow 0.15s;
  cursor: pointer;
}
.og-det-bldg-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.og-det-bldg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #f5f3ef;
  border-bottom: 1px solid #ece9e4;
}

.og-det-bldg-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(90, 139, 176, 0.08);
  flex-shrink: 0;
}

.og-det-bldg-card-name {
  font-weight: 700;
  font-size: 13px;
  color: #2d3436;
}

.og-det-bldg-card-addr {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.og-det-bldg-card-body {
  padding: 1rem 1.25rem;
}

.og-det-bldg-stats {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.og-det-bldg-stat {
  text-align: center;
}

.og-det-bldg-stat-val {
  font-weight: 700;
  font-size: 1rem;
  color: #2d3436;
  font-family: "Space Mono", monospace;
}

.og-det-bldg-stat-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.og-det-bldg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(236, 233, 228, 0.5);
}

.og-det-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.og-det-user-card {
  padding: 1.25rem;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  background: #fefefe;
  transition: box-shadow 0.15s;
}
.og-det-user-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.og-det-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.og-det-user-name {
  font-weight: 600;
  font-size: 13px;
  color: #2d3436;
}

.og-det-user-email {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.og-det-user-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(236, 233, 228, 0.5);
}

.og-det-user-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.og-det-user-meta-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.og-det-user-meta-val {
  font-size: 0.6875rem;
  color: #2d3436;
  font-weight: 500;
}

.og-det-tenant-table {
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.og-det-tenant-thead {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.8fr 0.6fr 0.6fr 1fr 0.8fr;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f5f3ef;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.og-det-tenant-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.8fr 0.6fr 0.6fr 1fr 0.8fr;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(236, 233, 228, 0.5);
  font-size: 0.75rem;
  color: #2d3436;
  align-items: center;
}
.og-det-tenant-row:last-child {
  border-bottom: none;
}
.og-det-tenant-row:hover {
  background: rgba(90, 139, 176, 0.02);
}

.og-det-tenant-name {
  font-weight: 600;
  color: #2d3436;
}

.og-det-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.og-det-activity-item {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border: 1px solid #ece9e4;
  border-radius: 0.625rem;
  background: #fefefe;
  transition: box-shadow 0.15s;
}
.og-det-activity-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.og-det-activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.og-det-activity-body {
  flex: 1;
}

.og-det-activity-title {
  font-weight: 600;
  font-size: 12.5px;
  color: #2d3436;
  margin-bottom: 0.25rem;
}

.og-det-activity-desc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.og-det-activity-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.og-det-activity-time {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.og-det-activity-user {
  font-size: 0.6875rem;
  color: #2d3436;
  font-weight: 500;
}

.og-det-energy-kpi-row {
  display: flex;
  gap: 1.5rem;
}

.og-det-energy-kpi {
  flex: 1;
  padding: 1.25rem;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  background: #fefefe;
  text-align: center;
}

.og-det-energy-kpi-val {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Space Mono", monospace;
}

.og-det-energy-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 0.25rem;
}

.og-det-energy-table {
  font-size: 0.75rem;
}

.og-det-energy-thead {
  display: grid;
  grid-template-columns: 1fr repeat(5, 1fr);
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 2px solid #ece9e4;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.og-det-energy-trow {
  display: grid;
  grid-template-columns: 1fr repeat(5, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.5);
  align-items: center;
  font-size: 12.5px;
}
.og-det-energy-trow:last-child {
  border-bottom: none;
}

.og-det-chart-placeholder {
  height: 180px;
  background: #f5f3ef;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3a8;
  font-size: 12px;
}

.og-det-coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  background: #fefefe;
}

.og-det-coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.og-det-coming-soon-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #2d3436;
  margin-bottom: 0.5rem;
}

.og-det-coming-soon-text {
  font-size: 0.75rem;
  color: #9ca3a8;
  max-width: 400px;
  margin: 0 auto;
}

.tn-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 260px;
}

.tn-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.tn-search-input .e-input-group {
  height: 30px;
}

.tn-filter-sel .e-input-group {
  height: 30px;
}

.tn-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.tn-chip-sf.e-btn {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  box-shadow: none !important;
}
.tn-chip-sf.e-btn:hover, .tn-chip-sf.e-btn.active {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
  background: rgba(90, 139, 176, 0.08) !important;
}
.tn-chip-sf.e-btn.tn-chip-warn:hover, .tn-chip-sf.e-btn.tn-chip-warn.active {
  border-color: #d4a855 !important;
  color: #d4a855 !important;
  background: rgba(212, 168, 85, 0.08) !important;
}
.tn-chip-sf.e-btn.tn-chip-expired:hover, .tn-chip-sf.e-btn.tn-chip-expired.active {
  border-color: #c4616e !important;
  color: #c4616e !important;
  background: rgba(196, 97, 110, 0.08) !important;
}

.tn-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.tn-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.tn-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.tn-type-tab-sf.e-btn {
  padding: 6px 13px !important;
  border-radius: 9999px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  box-shadow: none !important;
}
.tn-type-tab-sf.e-btn:hover, .tn-type-tab-sf.e-btn:focus {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
  outline: none !important;
}
.tn-type-tab-sf.e-btn.active {
  background: #5a8bb0 !important;
  color: #fff !important;
  border-color: #5a8bb0 !important;
}
.tn-type-tab-sf.e-btn .tn-type-cnt {
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
}
.tn-type-tab-sf.e-btn:not(.active) .tn-type-cnt {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.tn-atn-dan:hover {
  color: #c4616e !important;
}

.tn-body-full {
  flex: 1;
  min-height: 0;
}

.tn-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  backdrop-filter: blur(3px);
  animation: tnFadeIn 0.15s ease;
}

@keyframes tnFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tn-detail-panel {
  width: 480px;
  height: 100%;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tnSlideIn 0.2s ease;
}

@keyframes tnSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}
.tn-dp-hd {
  padding: 18px 22px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.tn-dp-av {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.tn-dp-name {
  font-size: 17px;
  font-weight: 700;
  color: #2d3436;
  letter-spacing: -0.2px;
}

.tn-dp-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.tn-dp-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tn-dp-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
  background: #f5f3ef;
  color: #9ca3a8;
}

.tn-dp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.tn-dp-body::-webkit-scrollbar {
  width: 4px;
}
.tn-dp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.tn-dp-sec-hd {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ece9e4;
}

.tn-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.tn-dp-row:last-child {
  border-bottom: none;
}

.tn-dp-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.tn-dp-val {
  font-weight: 700;
  color: #2d3436;
}

.tn-dp-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.tn-dp-sm {
  font-size: 11px;
}

.tn-dp-lease-dates {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-bottom: 6px;
}

.tn-dp-lease-bar {
  height: 6px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.tn-dp-lease-fill {
  height: 100%;
  border-radius: 3px;
}

.tn-dp-lease-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
}

.tn-dp-lease-remain {
  color: #9ca3a8;
}

.tn-dp-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.tn-dp-kpi {
  background: #f5f3ef;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.tn-dp-kpi-val {
  font-size: 18px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1;
}

.tn-dp-kpi-lbl {
  font-size: 9px;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.tn-dp-zones {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tn-dp-zone-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.tn-dp-expiry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
}
.tn-dp-expiry-item:last-of-type {
  border-bottom: none;
}

.tn-dp-expiry-av {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.tn-dp-expiry-info {
  flex: 1;
  min-width: 0;
}

.tn-dp-expiry-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.tn-dp-expiry-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.tn-dp-expiry-right {
  text-align: right;
  flex-shrink: 0;
}

.tn-dp-expiry-days {
  font-size: 0.75rem;
  font-weight: 700;
}

.tn-dp-expiry-date {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.tn-dp-rev-item {
  margin-bottom: 10px;
}

.tn-dp-rev-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.tn-dp-rev-org {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
}

.tn-dp-rev-amt {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.tn-dp-rev-bar {
  height: 5px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
}

.tn-dp-rev-fill {
  height: 100%;
  border-radius: 3px;
}

.tn-dp-rev-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  border-top: 2px solid #ece9e4;
  margin-top: 4px;
}

.tn-dp-rev-total-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
}

.tn-dp-rev-total-val {
  font-size: 15px;
  font-weight: 700;
  color: #7aad8a;
  font-family: "Space Mono", monospace;
}

.tn-dp-foot {
  padding: 14px 22px;
  border-top: 1px solid #ece9e4;
  display: flex;
  gap: 9px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.tn-dp-main-btn {
  flex: 1;
  justify-content: center;
}

.tn-dp-del-btn.e-btn {
  color: #c4616e !important;
}
.tn-dp-del-btn.e-btn:hover {
  background: rgba(196, 97, 110, 0.08) !important;
}

.td-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #12162b 0%, #1a2442 50%, #0f1224 100%);
}
.td-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(90, 139, 176, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.td-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(122, 173, 138, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.td-hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem;
}

.td-hero-body {
  flex: 1;
}

.td-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.td-hero-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.125rem;
}

.td-hero-model {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Space Mono", monospace;
  margin-bottom: 0.375rem;
}

.td-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.td-chip-active {
  background: rgba(122, 173, 138, 0.15);
  color: #7aad8a;
  border-color: rgba(122, 173, 138, 0.25);
}

.td-chip-type {
  background: rgba(90, 139, 176, 0.15);
  color: #8eafc9;
  border-color: rgba(90, 139, 176, 0.25);
}

.td-chip-iso {
  background: rgba(139, 127, 181, 0.15);
  color: #c6c0da;
  border-color: rgba(139, 127, 181, 0.25);
}

.td-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.td-hero-btn-pri {
  background: #5a8bb0 !important;
  color: #fff !important;
  border: none !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 0.35rem 1rem !important;
}

.td-hero-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
}
.td-hero-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.td-hero-btn-dan {
  background: rgba(196, 97, 110, 0.12) !important;
  color: #d999a1 !important;
  border: 1px solid rgba(196, 97, 110, 0.2) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
}
.td-hero-btn-dan:hover {
  background: rgba(196, 97, 110, 0.22) !important;
}

.td-hero-stats {
  display: flex;
  gap: 1.75rem;
  flex-shrink: 0;
}

.td-hero-stat {
  text-align: center;
}

.td-hero-stat-val {
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  font-family: "Space Mono", monospace;
}

.td-hero-stat-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.125rem;
}

.td-sv-pri {
  color: #8eafc9 !important;
}

.td-sv-ok {
  color: #7aad8a !important;
}

.td-sv-info {
  color: #a89fc8 !important;
}

.td-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid #ece9e4;
  padding-bottom: 0;
}

.td-tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3a8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.td-tab:hover {
  color: #2d3436;
}
.td-tab-active {
  color: #5a8bb0;
  border-bottom-color: #5a8bb0;
  font-weight: 600;
}

.td-tab-icon {
  font-size: 14px;
}

.td-tab-badge {
  margin-left: 0.25rem;
}

.td-g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.td-g2-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.td-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
}

.td-kpi-4 {
  grid-template-columns: repeat(4, 1fr);
}

.td-mkpi {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  text-align: center;
  transition: box-shadow 0.15s;
}
.td-mkpi:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.td-mkpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.td-mkpi-val {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Space Mono", monospace;
}

.td-mkpi-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 0.125rem;
}

.td-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.5);
  font-size: 0.75rem;
}
.td-drow:last-child {
  border-bottom: none;
}

.td-drow-lbl {
  color: #9ca3a8;
  font-size: 12px;
}

.td-drow-val {
  color: #2d3436;
  font-weight: 500;
  font-size: 12.5px;
}

.td-drow-val.mono, .td-drow .mono {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.td-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f3ef;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
}

.td-contact-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.td-usage-bar {
  height: 6px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
}

.td-usage-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.td-iso-tag {
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid;
}

.td-matrix {
  width: 100%;
  border-collapse: collapse;
}
.td-matrix th {
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ece9e4;
  text-align: center;
}
.td-matrix td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(236, 233, 228, 0.5);
  text-align: center;
  font-size: 0.75rem;
}
.td-matrix tr:last-child td {
  border-bottom: none;
}
.td-matrix tr:hover {
  background: rgba(90, 139, 176, 0.02);
}

.td-ac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.td-ac-yes {
  background: rgba(122, 173, 138, 0.12);
  color: #7aad8a;
  border: 1.5px solid rgba(122, 173, 138, 0.25);
}

.td-ac-no {
  background: #f5f3ef;
  color: #9ca3a8;
  border: 1.5px solid #ece9e4;
}

.td-role-card {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid;
}

.td-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.td-user-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.td-user-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.td-user-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.td-role-tag {
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid transparent;
}

.td-mfa-tag {
  font-size: 10px;
  font-weight: 700;
  color: #7aad8a;
  background: rgba(107, 158, 125, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1.5px solid rgba(122, 173, 138, 0.35);
}

.td-api-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  transition: box-shadow 0.15s;
}
.td-api-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.td-api-key-val {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3a8;
  background: #f5f3ef;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  cursor: pointer;
}

.td-scope-tag {
  background: #f5f3ef;
  color: #9ca3a8;
  border: 1.5px solid #ece9e4;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.td-event-tag {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
  border: 1.5px solid rgba(139, 127, 181, 0.3);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.td-tog {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.td-tog::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.td-tog-on {
  background: #7aad8a;
}
.td-tog-on::after {
  left: 18px;
}

.td-tog-off {
  background: #e8e4df;
}
.td-tog-off::after {
  left: 2px;
}

.td-scope-ref-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f3ef;
  border: 1.5px solid #ece9e4;
}

.td-scope-ref-tag {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1.5px solid;
  flex-shrink: 0;
}

.td-act-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  align-items: flex-start;
  transition: box-shadow 0.15s;
}
.td-act-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.td-act-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.td-act-ts {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
  margin-top: 2px;
}

.td-act-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1.5px solid;
}

.td-cat-pill {
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid;
}

.dev-page {
  padding: 0 24px 24px;
}

.dev-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.dev-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dev-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.dev-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.dev-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dev-topbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.dev-alert-banner {
  background: rgba(196, 97, 110, 0.08);
  border: 1px solid #fcd6e0;
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c0213c;
  margin-bottom: 16px;
}

.dev-alert-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.dev-alert-text {
  font-weight: 700;
}

.dev-alert-link {
  text-decoration: underline;
  cursor: pointer;
}

.dev-alert-close {
  margin-left: auto;
}

.dev-kpi-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.dev-kpi {
  flex: 1;
  min-width: 150px;
  background: #faf9f7;
  border-radius: 8px;
  padding: 11px 14px;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s;
}
.dev-kpi:hover {
  border-color: rgba(90, 139, 176, 0.25);
  border-bottom-color: inherit;
}

.dev-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}
.dev-kpi-icon.ki-b {
  background: rgba(90, 139, 176, 0.08);
}
.dev-kpi-icon.ki-g {
  background: rgba(107, 158, 125, 0.08);
}
.dev-kpi-icon.ki-r {
  background: rgba(196, 97, 110, 0.08);
}
.dev-kpi-icon.ki-w {
  background: rgba(212, 168, 85, 0.08);
}
.dev-kpi-icon.ki-i {
  background: rgba(139, 127, 181, 0.08);
}
.dev-kpi-icon.ki-t {
  background: #e0faf5;
}

.dev-kpi-body {
  flex: 1;
  min-width: 0;
}

.dev-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.dev-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 500;
}

.dev-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 2px;
}
.dev-kpi-trend.t-up {
  color: #7aad8a;
}
.dev-kpi-trend.t-dn {
  color: #c4616e;
}
.dev-kpi-trend.t-eq {
  color: #9ca3a8;
}

.dev-fc.e-btn {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  box-shadow: none !important;
}
.dev-fc.e-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}
.dev-fc.e-btn.active {
  background: #f5f3ef !important;
  color: #2d3436 !important;
  border-color: currentColor !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) !important;
}

.dev-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.dev-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 260px;
}

.dev-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.dev-search-input .e-input-group {
  height: 30px;
}

.dev-filter-sel .e-input-group {
  height: 30px;
}

.dev-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.dev-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.dev-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.dev-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.dev-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.dev-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dev-type-tab {
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dev-type-tab:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}
.dev-type-tab.active {
  background: #5a8bb0;
  color: #fff;
  border-color: #5a8bb0;
}
.dev-type-tab.active .dev-tab-cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.dev-tab-cnt {
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.dev-type-tabs-wrap {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.dev-split-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.dev-split-main {
  flex: 1;
  min-width: 0;
}

.dev-split-side {
  flex: 0 0 294px;
  position: sticky;
  top: 78px;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dev-card {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
}
.dev-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
  transform: translateY(-1px);
}
.dev-card.selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.14);
}
.dev-card.fault {
  border-color: #c4616e;
}
.dev-card.offline {
  opacity: 0.72;
}
.dev-card.maintenance {
  border-color: #d4a855;
}

.dev-card-top {
  padding: 13px 14px 10px;
  border-bottom: 1px solid #ece9e4;
}

.dev-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dev-card-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dev-card-body {
  padding: 10px 14px;
}

.dev-card-cat-badge {
  font-size: 0.6875rem;
  padding: 1px 6px;
}

.dev-card-addr-fault {
  color: #c4616e;
}

.dev-card-meta-fault {
  color: #c4616e;
  font-weight: 700;
  font-size: 0.6875rem;
}

.dev-card-meta-maint {
  color: #d4a855;
  font-weight: 700;
  font-size: 0.6875rem;
}

.dev-load-more {
  text-align: center;
  padding: 16px 0;
}

.dev-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dev-card-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #4a4e54;
  line-height: 1.3;
  margin-bottom: 3px;
}

.dev-card-location {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 5px;
}

.dev-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.dev-card-status-text {
  font-size: 0.6875rem;
  font-weight: 700;
}

.dev-card-bottom {
  padding: 10px 14px;
}

.dev-card-reading-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.dev-card-reading {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #4a4e54;
  letter-spacing: -1px;
  line-height: 1;
}

.dev-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.proto-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.3px;
}
.proto-badge.proto-knx {
  background: #1a1e3a;
  color: #8ba4ff;
}
.proto-badge.proto-bac {
  background: #0d3320;
  color: #6aeaaa;
}
.proto-badge.proto-mod {
  background: #3a2000;
  color: #ffd06a;
}
.proto-badge.proto-ip {
  background: #001f3a;
  color: #6aceff;
}
.proto-badge.proto-ana {
  background: #2a0020;
  color: #ff9de8;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sb {
  width: 3px;
  border-radius: 1px;
  background: #ece9e4;
}
.sb.on {
  background: #7aad8a;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.status-dot.sd-online {
  background: #7aad8a;
  box-shadow: 0 0 0 2px rgba(107, 158, 125, 0.25);
}
.status-dot.sd-offline {
  background: #9ca3a8;
}
.status-dot.sd-fault {
  background: #c4616e;
  box-shadow: 0 0 0 2px rgba(196, 97, 110, 0.25);
  animation: dev-blink 1.4s infinite;
}
.status-dot.sd-maint {
  background: #d4a855;
}

@keyframes dev-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.dev-topology-wrap {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  box-shadow: none;
  overflow: hidden;
}

.dev-topo-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
}

.dev-topo-hd-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-topo-hd-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.dev-topo-hd-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-topo-body {
  padding: 18px;
}

.dev-topo-gw-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.dev-topo-gw-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

.dev-topo-gw-status-text {
  font-size: 0.75rem;
  color: #6aeaaa;
  font-weight: 700;
}

.dev-topo-lines {
  display: flex;
  gap: 16px;
}

.dev-topo-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-topo-node-dot {
  margin-left: auto;
}

.dev-topo-more {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-style: italic;
  padding-left: 8px;
}

.dev-topo-canvas {
  min-height: 500px;
  background: #fafbfd;
}

.dev-topo-gw {
  background: linear-gradient(135deg, #181c32, #2d3561);
  border-radius: 8px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.dev-topo-gw-icon {
  font-size: 24px;
}

.dev-topo-gw-lbl {
  font-weight: 700;
  font-size: 0.8125rem;
}

.dev-topo-gw-sub {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Space Mono", monospace;
}

.dev-topo-line {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 14px;
}

.dev-topo-line-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-topo-line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dev-topo-line-range {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.dev-topo-node {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: 0.15s;
  min-width: 140px;
}
.dev-topo-node:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}
.dev-topo-node.fault-node {
  border-color: #c4616e;
  background: #fff8f8;
}
.dev-topo-node.maint-node {
  border-color: #d4a855;
  background: #fffbf0;
}

.dev-topo-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.dev-topo-node-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a4e54;
  line-height: 1.2;
}

.dev-topo-node-addr {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.dev-side-panel {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 16px;
}

.dev-sp-hd-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.dev-sp-hd-info {
  flex: 1;
}

.dev-sp-chips {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.dev-sp-chip-proto {
  font-family: "Space Mono", monospace;
}

.dev-sp-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #12162b, #1a2442);
  position: relative;
  overflow: hidden;
}
.dev-sp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(90, 139, 176, 0.22), transparent 60%);
}

.dev-sp-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dev-sp-name {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.dev-sp-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  margin-top: 3px;
}

.dev-sp-chip {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.dev-sp-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  z-index: 2;
  transition: 0.15s;
}
.dev-sp-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dev-sp-sec {
  padding: 11px 18px;
  border-bottom: 1px solid #ece9e4;
}
.dev-sp-sec:last-child {
  border-bottom: none;
}

.dev-sp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.dev-sp-reading {
  font-size: 32px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #4a4e54;
  letter-spacing: -2px;
  line-height: 1;
}

.dev-sp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid #ece9e4;
}
.dev-sp-row:last-child {
  border-bottom: none;
}

.dev-sp-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.dev-sp-val {
  font-weight: 700;
  color: #4a4e54;
  text-align: right;
  font-size: 0.75rem;
}
.dev-sp-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.dev-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  padding: 2px 0;
}

.dev-spark-bar {
  flex: 1;
  border-radius: 4px;
  background: #5a8bb0;
  opacity: 0.7;
  transition: 0.2s;
  min-width: 4px;
}
.dev-spark-bar.active {
  background: #5a8bb0;
  opacity: 1;
}

.dev-sp-sec-reading {
  background: #fafbfd;
}

.dev-sp-reading-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 4px;
}

.dev-sp-sparkline-wrap {
  margin-top: 12px;
}

.dev-sp-sparkline-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-bottom: 4px;
}

.dev-sp-sparkline-range {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.dev-sp-val-addr {
  color: #5a8bb0;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.dev-sp-fw-badge {
  font-size: 0.6875rem;
}

.dev-sp-ga-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-sp-ga-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.dev-sp-ga-addr {
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.dev-sp-ga-desc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  flex: 1;
  margin: 0 8px;
}

.dev-sp-ga-dpt {
  display: inline-flex;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 0.6875rem;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.dev-sp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-sp-action-main {
  width: 100%;
  justify-content: center;
}

.dev-sp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dev-sp-empty {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  box-shadow: none;
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 16px;
}

.dev-sp-empty-icon {
  font-size: 46px;
  opacity: 0.3;
  margin-bottom: 12px;
}

.dev-sp-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  margin-bottom: 4px;
}

.dev-sp-empty-text {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dev-faults-panel {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  box-shadow: none;
  overflow: hidden;
}

.dev-fp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.dev-fp-hd-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-fp-hd-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}

.dev-fp-hd-cnt {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  font-size: 0.6875rem;
  font-weight: 700;
}

.dev-fp-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-fp-footer {
  padding: 12px 16px;
  border-top: 1px solid #ece9e4;
}

.dev-fp-btn {
  width: 100%;
  justify-content: center;
}

.dev-fault-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 6px;
  background: rgba(196, 97, 110, 0.08);
  border: 1px solid #fcd6e0;
}

.dev-fault-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.dev-fault-info {
  flex: 1;
  min-width: 0;
}

.dev-fault-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #c4616e;
}

.dev-fault-error {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.dev-fault-arrow {
  color: #5a8bb0;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.fault-row {
  background: rgba(196, 97, 110, 0.08) !important;
}

.selected-row {
  background: rgba(0, 158, 247, 0.08) !important;
  border-left: 3px solid #5a8bb0 !important;
}

.toolbar-btn-danger {
  background: rgba(196, 97, 110, 0.08) !important;
  color: #c4616e !important;
  border-color: #fcd6e0 !important;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cat-card {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
  position: relative;
}
.cat-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
  transform: translateY(-1px);
}
.cat-card.selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.14);
}

.cat-banner {
  height: 6px;
  width: 100%;
}

.cat-icon-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cat-count-badge {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.cat-count-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cat-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #4a4e54;
  margin-bottom: 4px;
}

.cat-desc {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.5;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cat-usage-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(156, 163, 168, 0.06);
  overflow: hidden;
  margin-top: 5px;
}

.cat-usage-fill {
  height: 100%;
  border-radius: 4px;
  transition: 0.5s;
}

.cat-stats {
  display: flex;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid #ece9e4;
  margin-top: 10px;
}

.cat-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-stat-val {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #4a4e54;
}

.cat-stat-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cat-tbl-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.cat-sp-stat-box {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
}

.cat-sp-stat-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.cat-sp-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.cat-sp-section {
  padding: 11px 18px;
  border-bottom: 1px solid #ece9e4;
}
.cat-sp-section:last-child {
  border-bottom: none;
}

.cat-sp-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.cat-type-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #fafbfd;
  border: 1px solid #ece9e4;
  margin-bottom: 5px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
}
.cat-type-pill:hover {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
}

.cat-type-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.cat-type-pill-icon.ki-b {
  background: rgba(90, 139, 176, 0.08);
}
.cat-type-pill-icon.ki-g {
  background: rgba(107, 158, 125, 0.08);
}
.cat-type-pill-icon.ki-r {
  background: rgba(196, 97, 110, 0.08);
}
.cat-type-pill-icon.ki-w {
  background: rgba(212, 168, 85, 0.08);
}
.cat-type-pill-icon.ki-i {
  background: rgba(139, 127, 181, 0.08);
}
.cat-type-pill-icon.ki-t {
  background: #e0faf5;
}
.cat-type-pill-icon.ki-o {
  background: #fff3ec;
}
.cat-type-pill-icon.ki-gray {
  background: rgba(156, 163, 168, 0.06);
}

.cat-type-pill-name {
  font-weight: 700;
  color: #4a4e54;
}

.cat-type-pill-body {
  flex: 1;
  min-width: 0;
}

.cat-type-pill-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.cat-type-pill-count {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
}

.cat-body {
  padding: 16px 18px;
}

.cat-count-col {
  text-align: right;
}

.cat-proto-row {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cat-usage-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 3px;
  font-family: "Space Mono", monospace;
}

.cat-stat-ok {
  color: #7aad8a;
}

.cat-stat-danger {
  color: #c4616e;
}

.cat-sp {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 14px;
}

.cat-sp-hd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cat-sp-code {
  font-family: "Space Mono", monospace;
}

.cat-sp-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.cat-sp-badge-devices {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(107, 158, 125, 0.15);
  color: #6aeaaa;
  border: 1px solid rgba(107, 158, 125, 0.25);
}

.cat-sp-badge-types {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(100, 116, 255, 0.2);
  color: #8ba4ff;
  border: 1px solid rgba(100, 116, 255, 0.3);
  font-family: "Space Mono", monospace;
}

.cat-sp-stats-section {
  background: #fafbfd;
  padding: 11px 18px;
  border-bottom: 1px solid #ece9e4;
}

.cat-sp-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-sp-desc {
  font-size: 0.75rem;
  color: #5a5e64;
  line-height: 1.7;
}

.cat-sp-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cat-sp-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cat-sp-empty {
  text-align: center;
  padding: 44px 20px;
}

.cat-sp-empty-icon {
  font-size: 46px;
  opacity: 0.25;
  margin-bottom: 10px;
}

.cat-sp-empty-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  margin-bottom: 5px;
}

.cat-sp-empty-text {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.cat-distribution-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  padding: 16px 18px;
}

.cat-dist-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.cat-dist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
}

.cat-dist-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cat-dist-label {
  font-weight: 600;
}

.cat-dist-muted {
  color: #9ca3a8;
}

.cat-dist-count {
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
}

.cat-dist-bar {
  height: 7px;
}

.grp-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.grp-list-col {
  width: 400px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}

.grp-main-col {
  flex: 1;
  min-width: 0;
}

.grp-side-col {
  width: 296px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
}

.grp-list-panel {
  border-radius: 8px;
  overflow: hidden;
}

.grp-items-container {
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}
.grp-items-container::-webkit-scrollbar {
  width: 4px;
}
.grp-items-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.grp-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.grp-item:hover {
  background: #fafbfd;
}
.grp-item.selected {
  background: rgba(90, 139, 176, 0.08);
  border-left: 3px solid #5a8bb0;
}
.grp-item.has-fault .grp-item-name {
  color: #c4616e;
}

.grp-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.grp-item-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #4a4e54;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grp-item-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grp-item-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.grp-item-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.gi-stat-val {
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.gi-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.grp-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  position: absolute;
  right: 10px;
  top: 10px;
}
.grp-item:hover .grp-item-actions {
  opacity: 1;
}

.ga-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  border: 1px solid rgba(90, 139, 176, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
}
.ga-btn:hover {
  background: #e0efff;
}

.type-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.tp-zone {
  background: rgba(90, 139, 176, 0.12);
  color: #5a8bb0;
}

.tp-floor {
  background: rgba(139, 127, 181, 0.12);
  color: #8b7fb5;
}

.tp-cat {
  background: rgba(212, 168, 85, 0.12);
  color: #c08000;
}

.tp-sched {
  background: rgba(0, 201, 167, 0.12);
  color: #00c9a7;
}

.tp-tenant {
  background: rgba(245, 129, 63, 0.12);
  color: #f5813f;
}

.tp-manual {
  background: rgba(161, 165, 183, 0.12);
  color: #9ca3a8;
}

.badge.bg-ok {
  background: rgba(107, 158, 125, 0.08) !important;
  color: #6b9e7d !important;
}
.badge.bg-warn {
  background: rgba(212, 168, 85, 0.08) !important;
  color: #c08000 !important;
}
.badge.bg-crit {
  background: rgba(196, 97, 110, 0.08) !important;
  color: #c4616e !important;
}
.badge.bg-pri {
  background: #eef6ff !important;
  color: #5a8bb0 !important;
}
.badge.bg-inf {
  background: rgba(139, 127, 181, 0.08) !important;
  color: #8b7fb5 !important;
}
.badge.bg-teal {
  background: #e0faf5 !important;
  color: #00c9a7 !important;
}
.badge.bg-gray {
  background: rgba(156, 163, 168, 0.06) !important;
  color: #9ca3a8 !important;
}

.grp-header-bar {
  border-radius: 8px;
}

.grp-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 24px;
  flex-shrink: 0;
}

.grp-header-name {
  font-size: 1rem;
  font-weight: 700;
  color: #4a4e54;
  letter-spacing: -0.3px;
}

.grp-header-stats {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ece9e4;
}

.grp-stat-box {
  background: #fafbfd;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 9px 14px;
  text-align: center;
  flex: 1;
}

.grp-stat-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.grp-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.grp-cmd-panel {
  border-radius: 8px;
  border: 1px solid rgba(90, 139, 176, 0.15);
  background: linear-gradient(135deg, #fafcff, #f5f8ff);
}

.grp-cmd-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #4a4e54;
  margin-bottom: 12px;
}

.grp-cmd-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a4e54;
  min-width: 100px;
}

.grp-cmd-slider {
  accent-color: #5a8bb0;
  height: 6px;
}

.grp-cmd-slider-val {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.8125rem;
  min-width: 45px;
}

.grp-cmd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.grp-cmd-btn {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a4e54;
  cursor: pointer;
  transition: 0.15s;
}
.grp-cmd-btn:hover {
  border-color: #5a8bb0;
  background: #f8fbff;
  transform: translateY(-1px);
}
.grp-cmd-btn.cmd-on {
  border-color: rgba(107, 158, 125, 0.4);
  background: #f5fff8;
  color: #6b9e7d;
}
.grp-cmd-btn.cmd-off {
  border-color: rgba(196, 97, 110, 0.3);
  background: #fff9fa;
  color: #c4616e;
}
.grp-cmd-btn.cmd-warm {
  border-color: rgba(212, 168, 85, 0.35);
  background: #fffdf5;
  color: #c08000;
}

.grp-cmd-btn-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.grp-cmd-btn-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 400;
  margin-top: 2px;
}

.grp-cmd-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.grp-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(156, 163, 168, 0.06);
  font-size: 0.75rem;
}
.grp-log-row:last-child {
  border-bottom: none;
}

.grp-log-time {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #9ca3a8;
  min-width: 65px;
  flex-shrink: 0;
}

.grp-log-action {
  flex: 1;
  color: #4a4e54;
}

.grp-log-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.grp-log-badge.log-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
}
.grp-log-badge.log-crit {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}
.grp-log-badge.log-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}
.grp-log-badge.log-pri {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}
.grp-log-badge.log-gray {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.grp-dev-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.grp-sp-section {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}
.grp-sp-section:last-child {
  border-bottom: none;
}

.grp-sp-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.grp-sp-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(156, 163, 168, 0.06);
  font-size: 0.75rem;
}
.grp-sp-drow:last-child {
  border-bottom: none;
}

.grp-sp-drow-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.grp-sp-drow-val {
  color: #4a4e54;
  font-weight: 600;
  text-align: right;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #6b9e7d;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-anim 1.5s infinite;
}

@keyframes pulse-anim {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.grp-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.grp-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grp-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.grp-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.grp-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.grp-topbar-link {
  color: #5a8bb0;
  cursor: pointer;
}
.grp-topbar-link:hover {
  text-decoration: underline;
}

.grp-topbar-sep {
  color: #9ca3a8;
}

.grp-topbar-cur {
  color: #2d3436;
  font-weight: 700;
}

.grp-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.grp-topbar-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7aad8a;
}

.grp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  display: inline-block;
  animation: grp-livepulse 1.4s infinite;
}

@keyframes grp-livepulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
.grp-kpi-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.grp-kpi {
  flex: 1;
  min-width: 165px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.grp-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.grp-kpi-body {
  flex: 1;
  min-width: 0;
}

.grp-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #2d3436;
}

.grp-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-top: 3px;
}

.grp-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

.grp-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.grp-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.grp-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.grp-search-input .e-input-group {
  height: 30px;
}

.grp-filter-sel .e-input-group {
  height: 30px;
}

.grp-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.grp-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.grp-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.grp-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.grp-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.grp-list-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.grp-list-hd-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.grp-list-hd-count {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-left: 6px;
}

.grp-list-hd-actions {
  display: flex;
  gap: 6px;
}

.grp-item-body {
  flex: 1;
  min-width: 0;
}

.grp-item-last-cmd {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 6px;
}

.grp-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.grp-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grp-header-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.grp-header-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.grp-header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.grp-cmd-body {
  padding: 14px 16px;
}

.grp-cmd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.grp-cmd-highlight {
  color: #5a8bb0;
}

.grp-cmd-footer-info {
  font-size: 0.75rem;
  color: #5a5e64;
}

.grp-cmd-footer-actions {
  display: flex;
  gap: 6px;
}

.grp-main-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
}

.grp-empty-icon {
  font-size: 48px;
  opacity: 0.18;
  margin-bottom: 12px;
}

.grp-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  margin-bottom: 6px;
}

.grp-empty-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.7;
}

.grp-devices-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
}

.grp-devices-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.grp-devices-hd-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.grp-devices-hd-count {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-left: 6px;
}

.grp-devices-hd-actions {
  display: flex;
  gap: 6px;
}

.grp-dev-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.grp-dev-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grp-dev-type {
  font-size: 0.75rem;
  color: #5a5e64;
}

.grp-dev-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.grp-dev-val {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.grp-dev-val-fault {
  color: #c4616e !important;
}

.grp-dev-checkbox {
  accent-color: #5a8bb0;
}

.grp-dev-actions-cell {
  display: flex;
  gap: 5px;
}

.grp-devices-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: #9ca3a8;
  border-top: 1px solid #ece9e4;
}

.grp-devices-load-more {
  color: #5a8bb0;
  cursor: pointer;
  font-weight: 700;
}
.grp-devices-load-more:hover {
  text-decoration: underline;
}

.grp-sp {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  margin-bottom: 12px;
  overflow: hidden;
}

.grp-sp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.grp-sp-hd-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.grp-sp-body {
  padding: 12px 16px;
}

.grp-sp-rule {
  font-size: 0.75rem;
  color: #5a5e64;
  padding: 5px 0;
  border-bottom: 1px solid rgba(156, 163, 168, 0.06);
}
.grp-sp-rule:last-child {
  border-bottom: none;
}

.grp-sp-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}

.grp-sp-action-main {
  width: 100%;
}

.grp-dist-item {
  margin-bottom: 10px;
}

.grp-dist-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.grp-dist-name {
  font-weight: 600;
  color: #5a5e64;
}

.grp-dist-count {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

/* ══════════════════════════════════════════════════════
   DEVICE DETAILS PAGE — /devices/details
   ══════════════════════════════════════════════════════ */
/* ── Hero ── */
.dd-hero {
  background: linear-gradient(135deg, #0f1229 0%, #192244 50%, #0d2040 100%);
  border-radius: 8px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.dd-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 139, 176, 0.18), transparent 70%);
  pointer-events: none;
}
.dd-hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 120px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 92, 246, 0.12), transparent 70%);
  pointer-events: none;
}

.dd-hero-inner {
  position: relative;
  z-index: 1;
}

.dd-hero-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  flex-shrink: 0;
}

.dd-hero-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.dd-hero-model {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 8px;
}

.dd-hero-chip {
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}
.dd-hero-chip.dh-chip-online {
  background: rgba(122, 173, 138, 0.15);
  color: #6aeaaa;
  border-color: rgba(122, 173, 138, 0.3);
}
.dd-hero-chip.dh-chip-knx {
  background: rgba(100, 116, 255, 0.2);
  color: #8ba4ff;
  border-color: rgba(100, 116, 255, 0.35);
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.dd-hero-stats {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  align-self: flex-start;
  flex-shrink: 0;
}

.dd-hero-stat {
  padding: 12px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.dd-hero-stat:last-child {
  border-right: none;
}

.dd-hero-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}

.dd-hero-stat-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dh-sv-ok {
  color: #6b9e7d;
}

.dh-sv-warn {
  color: #d4a855;
}

.dh-sv-info {
  color: #c0b9d7;
}

.dd-hero-body {
  flex: 1;
}

.dh-status-dot {
  width: 7px;
  height: 7px;
  margin-right: 4px;
  display: inline-block;
}

/* Hero buttons */
.dd-hero-btn, .dd-hero-btn-dan, .dd-hero-btn-pri {
  padding: 7px 13px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.84) !important;
}
.dd-hero-btn:hover, .dd-hero-btn-dan:hover, .dd-hero-btn-pri:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.dd-hero-btn-pri {
  background: #5a8bb0 !important;
  border-color: #5a8bb0 !important;
  color: #fff !important;
}

.dd-hero-btn-dan {
  background: rgba(196, 97, 110, 0.2) !important;
  border-color: rgba(196, 97, 110, 0.4) !important;
  color: #ff8faa !important;
}

/* ── Tab Bar ── */
.dd-tab-bar {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  padding: 4px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.dd-tab-bar::-webkit-scrollbar {
  height: 3px;
}
.dd-tab-bar::-webkit-scrollbar-thumb {
  background: #ece9e4;
  border-radius: 4px;
}

.dd-tab {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #9ca3a8;
  white-space: nowrap;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dd-tab:hover {
  background: rgba(156, 163, 168, 0.06);
  color: #4a4e54;
}
.dd-tab.active {
  background: #5a8bb0;
  color: #fff;
}

.dd-tab-badge {
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
}
.dd-tab:not(.active) .dd-tab-badge {
  background: #ece9e4;
  color: #9ca3a8;
}

/* ── 2-Column Grid ── */
.dd-g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Data Rows ── */
.dd-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.dd-drow:last-child {
  border-bottom: none;
}

.dd-drow-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.dd-drow-val {
  font-weight: 700;
  color: #4a4e54;
  font-size: 0.75rem;
  text-align: right;
}
.dd-drow-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

/* ── Rules ── */
.dd-rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fafbfd;
  border: 1px solid #ece9e4;
  margin-bottom: 7px;
  transition: 0.15s;
}
.dd-rule-row:hover {
  border-color: #5a8bb0;
}
.dd-rule-row:last-child {
  margin-bottom: 0;
}

.dd-rule-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* ── Signal Bars ── */
.dd-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.dd-sbar {
  width: 3px;
  border-radius: 1px;
}

/* ── Mini KPIs ── */
.dd-mkpi {
  background: #fafbfd;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 13px 14px;
  text-align: center;
}

.dd-mkpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.dd-mkpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dd-mkpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  letter-spacing: -1px;
  line-height: 1;
}

.dd-mkpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dd-mkpi-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 4px;
}
.dd-mkpi-trend.t-up {
  color: #7aad8a;
}
.dd-mkpi-trend.t-dn {
  color: #c4616e;
}
.dd-mkpi-trend.t-eq {
  color: #9ca3a8;
}

/* ── KNX Param Blocks ── */
.dd-knx-blk {
  background: #fafbfd;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 13px 15px;
  margin-bottom: 10px;
}
.dd-knx-blk:last-child {
  margin-bottom: 0;
}

.dd-knx-blk-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #4a4e54;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dd-kf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.dd-kf:last-child {
  border-bottom: none;
}

.dd-kf-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.dd-kf-val {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #4a4e54;
  font-size: 0.75rem;
}

/* ── GA Table ── */
.dd-ga-addr {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.8125rem;
}

.dd-dpt {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.dd-fc {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 1px;
  display: inline-flex;
}
.dd-fc.dd-fc-c {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}
.dd-fc.dd-fc-r {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}
.dd-fc.dd-fc-w {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}
.dd-fc.dd-fc-t {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}
.dd-fc.dd-fc-u {
  background: #fff3ec;
  color: #f5813f;
}

/* ── Maintenance ── */
.dd-maint-banner {
  background: rgba(212, 168, 85, 0.08);
  border: 1px solid #ffeaa0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dd-cbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
}
.dd-cbox:last-child {
  border-bottom: none;
}

/* ── Timeline ── */
.dd-timeline {
  display: flex;
  flex-direction: column;
}

.dd-tl-item {
  display: flex;
  gap: 13px;
  padding-bottom: 18px;
}
.dd-tl-item:last-child {
  padding-bottom: 0;
}
.dd-tl-item:last-child .dd-tl-line {
  display: none;
}

.dd-tl-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
}

.dd-tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.dd-tl-line {
  flex: 1;
  width: 2px;
  background: #ece9e4;
  margin: 3px 0;
}

.dd-tl-body {
  flex: 1;
}

.dd-tl-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #4a4e54;
}

.dd-tl-date {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.dd-tl-note {
  font-size: 0.75rem;
  color: #4a4e54;
  margin-top: 6px;
  background: #fafbfd;
  border-left: 3px solid #ece9e4;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
}

/* ── Firmware ── */
.dd-fw-box {
  flex: 1;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 14px 16px;
}
.dd-fw-box.dd-fw-cur {
  border-color: #7aad8a;
  background: #f0fff8;
}

.dd-fw-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.dd-fw-ver {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  letter-spacing: -1px;
}

.dd-release-notes {
  background: #f8faff;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.8;
}

/* ── Log ── */
.dd-log-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
  align-items: flex-start;
}
.dd-log-row:last-child {
  border-bottom: none;
}
.dd-log-row.dd-log-highlight {
  background: #fffbf0;
  padding: 9px 8px;
  border-radius: 6px;
  margin: 0 -8px;
}

.dd-log-time {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  flex-shrink: 0;
  width: 80px;
  padding-top: 1px;
}

.dd-log-user {
  flex-shrink: 0;
  width: 110px;
  font-weight: 600;
  color: #4a4e54;
  padding-top: 1px;
}

.dd-log-action {
  flex: 1;
  color: #4a4e54;
  line-height: 1.5;
}

.dd-log-type {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Chart Placeholder ── */
.dd-chart-placeholder {
  border: 1.5px dashed #ece9e4;
}

/* ── Toolbar button warning variant ── */
.toolbar-btn-warning {
  background: rgba(212, 168, 85, 0.08) !important;
  color: #c08000 !important;
  border: 1px solid #ffeaa0 !important;
}
.toolbar-btn-warning:hover {
  background: #ffeaa0 !important;
}

/* ── Toolbar button danger variant ── */
.toolbar-btn-danger {
  background: rgba(196, 97, 110, 0.08) !important;
  color: #c4616e !important;
  border: 1px solid #fcd6e0 !important;
}
.toolbar-btn-danger:hover {
  background: #fcd6e0 !important;
}

/* ════════════════════════════════════════════════
   DEVICE TYPES PAGE — /devices/types
   ════════════════════════════════════════════════ */
/* ── Page & Topbar ── */
.dt-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.dt-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dt-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dt-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.dt-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.dt-topbar-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
}

.dt-topbar-sep {
  color: #9ca3a8;
}

.dt-topbar-cur {
  color: #2d3436;
  font-weight: 700;
}

.dt-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── KPI Strip ── */
.dt-kpi-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.dt-kpi-strip::-webkit-scrollbar {
  height: 3px;
}
.dt-kpi-strip::-webkit-scrollbar-thumb {
  background: #ece9e4;
  border-radius: 4px;
}

.dt-kpi {
  min-width: 150px;
  flex: 1;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2.5px solid transparent;
  transition: 0.15s;
}
.dt-kpi:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.dt-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.dt-kpi-body {
  flex: 1;
  min-width: 0;
}

.dt-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1.15;
}

.dt-kpi-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.dt-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Toolbar (matches em-toolbar) ── */
.dt-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.dt-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.dt-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.dt-search-input .e-input-group {
  height: 30px;
}

.dt-filter-sel .e-input-group {
  height: 30px;
}

.dt-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.dt-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.dt-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.dt-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.dt-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* ── Split Layout ── */
.dt-split {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.dt-split-main {
  flex: 1;
  min-width: 0;
}

.dt-split-side {
  flex: 0 0 296px;
  position: sticky;
  top: 78px;
}

/* ── Category Tabs ── */
.dt-cat-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.dt-cat-tabs::-webkit-scrollbar {
  height: 3px;
}
.dt-cat-tabs::-webkit-scrollbar-thumb {
  background: #ece9e4;
  border-radius: 4px;
}

.dt-ct {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s;
}
.dt-ct:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}
.dt-ct.dt-ct-active {
  background: #5a8bb0;
  border-color: #5a8bb0;
  color: #fff;
}
.dt-ct.dt-ct-active .dt-ct-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.dt-ct-count {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ece9e4;
  color: #9ca3a8;
}

/* ── View Toggle ── */
.dt-vt {
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}
.dt-vt.dt-vt-active {
  background: #fefefe;
  color: #5a8bb0;
  box-shadow: none;
}

/* ── Table View ── */
.dt-table-wrap {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.dt-table-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
}

.dt-table-hd-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-table-hd-right {
  display: flex;
  gap: 6px;
}

.dt-table-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.dt-table-count {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dt-table-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-table-name {
  font-weight: 700;
  color: #2d3436;
}

.dt-table-id {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.dt-table-cat-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.dt-table-proto-wrap {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.dt-table-dpt {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #8b7fb5;
}

.dt-table-mfr {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dt-table-dev-count {
  font-weight: 700;
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
}

/* ── Card Grid ── */
.dt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dt-card {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.2s;
  padding: 16px 18px;
}
.dt-card:hover {
  border-color: #5a8bb0;
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}
.dt-card.dt-card-sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.13);
}

/* ── Card View Internals ── */
.dt-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dt-card-count-wrap {
  text-align: right;
}

.dt-card-count {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.dt-card-count-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dt-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.3;
  margin-bottom: 2px;
}

.dt-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dt-card-badges {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dt-card-stats {
  display: flex;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid #ece9e4;
}

.dt-card-stat {
  min-width: 0;
}

.dt-card-stat-val {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
}

.dt-card-stat-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dt-card-stat-ok {
  color: #7aad8a;
}

.dt-card-stat-crit {
  color: #c4616e;
}

.dt-card-stat-warn {
  color: #d4a855;
}

.dt-card-stat-muted {
  color: #9ca3a8;
}

/* ── Type card icon ── */
.dt-tc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── Protocol Badges ── */
.dt-proto {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.3px;
  display: inline-flex;
  margin: 1px;
}

.dt-p-knx {
  background: #1a1e3a;
  color: #8ba4ff;
}

.dt-p-bac {
  background: #0d3320;
  color: #6aeaaa;
}

.dt-p-mod {
  background: #3a2000;
  color: #ffd06a;
}

.dt-p-ip {
  background: #001f3a;
  color: #6aceff;
}

.dt-p-dali {
  background: #1a2a00;
  color: #b5ff6a;
}

/* ── DPT Badge ── */
.dt-dpt-b {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
  display: inline-flex;
  margin: 1px;
}

/* ── Action Buttons ── */
.dt-atn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  transition: 0.15s;
  margin-left: 2px;
}
.dt-atn.dt-atn-pri:hover {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border-color: #5a8bb0;
}
.dt-atn.dt-atn-dan:hover {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border-color: #c4616e;
}

/* ── Action Buttons (SfButton version) ── */
.dt-atn-sf.e-btn {
  min-width: 28px !important;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  font-size: 0.8125rem;
  transition: 0.15s;
  margin-left: 2px;
  line-height: 1;
}
.dt-atn-sf.e-btn.dt-atn-pri:hover {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border-color: #5a8bb0;
}
.dt-atn-sf.e-btn.dt-atn-dan:hover {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border-color: #c4616e;
}

/* ── View Toggle (SfButton version) ── */
.dt-vt-sf.e-btn {
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
}
.dt-vt-sf.e-btn.dt-vt-active {
  background: #fefefe;
  color: #5a8bb0;
}

/* ── Side Panel ── */
.dt-sp-hd {
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1733, #162248);
}

.dt-sp-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  transition: 0.15s;
}
.dt-sp-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.dt-sp-stat-box {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

.dt-sp-stat-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.dt-sp-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.dt-sp-sec {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}
.dt-sp-sec:last-child {
  border-bottom: none;
}

.dt-sp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.dt-sp-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.dt-sp-drow:last-child {
  border-bottom: none;
}

.dt-sp-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
  flex-shrink: 0;
  padding-right: 8px;
}

.dt-sp-dr-val {
  font-weight: 700;
  color: #2d3436;
  font-size: 0.75rem;
  text-align: right;
}
.dt-sp-dr-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

/* ── COM Object Rows ── */
.dt-co-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.dt-co-row:last-child {
  border-bottom: none;
}

.dt-co-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(156, 163, 168, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  flex-shrink: 0;
  font-family: "Space Mono", monospace;
}

.dt-co-name {
  flex: 1;
  font-weight: 600;
  color: #2d3436;
}

.dt-co-dir {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.dt-co-s {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.dt-co-r {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.dt-co-sr {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

/* ── Manufacturer Chips ── */
.dt-mfr-chip {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fafbfd;
  border: 1px solid #ece9e4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px;
}

/* ── Side Panel (no SfCard) ── */
.dt-sp-panel {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.dt-sp-empty {
  background: #fefefe;
  border: 1.5px dashed #ece9e4;
  border-radius: 8px;
  text-align: center;
  padding: 36px 20px;
}

.dt-sp-empty-icon {
  font-size: 44px;
  opacity: 0.22;
  margin-bottom: 10px;
}

.dt-sp-empty-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 4px;
}

.dt-sp-empty-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dt-sp-hd-content {
  position: relative;
  z-index: 1;
}

.dt-sp-hd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dt-sp-hd-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.25rem;
}

.dt-sp-hd-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.dt-sp-hd-id {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  margin-top: 2px;
}

.dt-sp-hd-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.dt-sp-hd-chip {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
}

.dt-sp-chip-ok {
  background: rgba(107, 158, 125, 0.15);
  color: #6aeaaa;
  border: 1px solid rgba(107, 158, 125, 0.25);
}

.dt-sp-stats-wrap {
  padding: 10px 14px;
  background: #fafbfd;
  border-bottom: 1px solid #ece9e4;
}

.dt-sp-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.dt-sp-mfr-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dt-sp-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dt-sp-action-main {
  width: 100%;
}

.dt-sp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* ── Top Usage Panel ── */
.dt-tu-panel {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.dt-tu-hd {
  padding: 12px 14px;
  border-bottom: 1px solid #ece9e4;
}

.dt-tu-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.dt-tu-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dt-tu-item {
  font-size: 0.75rem;
}

.dt-tu-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dt-tu-name {
  font-weight: 600;
  color: #2d3436;
}

.dt-tu-count {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #9ca3a8;
}

/* ── Usage Bar ── */
.dt-usage-bar {
  height: 5px;
  border-radius: 4px;
  background: rgba(156, 163, 168, 0.06);
  overflow: hidden;
}

.dt-usage-fill {
  height: 100%;
  border-radius: 4px;
}

.dp-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
}

.dp-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-topbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.dp-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
}

.dp-topbar-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dp-topbar-right {
  display: flex;
  gap: 8px;
}

.dp-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  overflow-x: auto;
  flex-shrink: 0;
}

.dp-kpi {
  flex: 1;
  min-width: 140px;
  background: #faf9f7;
  border-radius: 8px;
  padding: 11px 14px;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s;
}
.dp-kpi:hover {
  border-color: rgba(90, 139, 176, 0.25);
  border-bottom-color: inherit;
}

.dp-kpi-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
}

.dp-kpi-body {
  flex: 1;
  min-width: 0;
}

.dp-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.dp-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 500;
}

.dp-cp-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 8px 4px;
}

.dp-dlp-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.dp-dlp-cnt {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-left: 6px;
}

.dp-dlp-toggle {
  margin-left: auto;
}

.dp-dc-name-el {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 400;
}

.dp-badge-inuse {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.dp-badge-unused {
  display: inline-flex;
  align-items: center;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.dp-badge-unit {
  display: inline-flex;
  align-items: center;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.dp-list-empty {
  text-align: center;
  padding: 30px;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.dp-empty-icon {
  font-size: 56px;
  opacity: 0.14;
  margin-bottom: 16px;
}

.dp-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  margin-bottom: 6px;
}

.dp-empty-text {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.9;
  max-width: 320px;
}

.dp-dd-hd-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
}

.dp-dd-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 5px 13px;
  margin-bottom: 10px;
}

.dp-dd-id-icon {
  font-size: 1rem;
}

.dp-dd-id-text {
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.dp-bits-chip-sm {
  font-size: 0.75rem;
}

.dp-dd-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}

.dp-dd-name-el {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.dp-dd-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.dp-dd-meta-val {
  color: rgba(255, 255, 255, 0.8);
}

.dp-dd-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dp-dd-badges .dp-badge-inuse {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
  font-size: 0.6875rem;
}

.dp-badge-domain {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.dp-dd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-shrink: 0;
  min-width: 220px;
}

.dp-desc-el {
  font-size: 0.75rem;
  color: #5a5e64;
  line-height: 1.8;
  margin-bottom: 8px;
}

.dp-desc-en {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.7;
  font-style: italic;
}

.dp-dc-wrap-first {
  margin-top: 16px;
}

.dp-dc-wrap-last {
  margin-bottom: 24px;
}

.dp-legend {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dp-legend-label {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.dp-legend-box {
  font-size: 0.6875rem !important;
  padding: 2px 7px !important;
  height: auto !important;
  width: auto !important;
  border-radius: 4px !important;
}

.dp-formula {
  margin-top: 10px;
  background: #f8faff;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #8b7fb5;
}

.dp-enc-val {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #5a8bb0;
}

.dp-enc-bin {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.dp-enc-hex {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.dp-enc-desc {
  font-size: 0.75rem;
  color: #5a5e64;
}

.dp-ga-empty {
  padding: 14px;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dp-app-hints {
  font-size: 0.75rem;
  color: #5a5e64;
  line-height: 1.8;
  padding: 4px 0;
}

.dp-related-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.dp-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.dp-related-chip:hover {
  background: rgba(80, 129, 166, 0.08);
}

.dp-tri-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  border-top: 1px solid #ece9e4;
}

.dp-cat-panel {
  width: 260px;
  background: #fefefe;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.dp-cp-hd {
  padding: 11px 12px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.dp-cp-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.dp-cp-body::-webkit-scrollbar {
  width: 4px;
}
.dp-cp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.dp-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  margin-bottom: 2px;
}
.dp-cat-item:hover {
  background: rgba(156, 163, 168, 0.06);
}
.dp-cat-item.active {
  background: rgba(90, 139, 176, 0.08);
  border-left: 3px solid #5a8bb0;
}
.dp-cat-item.active .dp-ci-name {
  color: #5a8bb0;
  font-weight: 700;
}

.dp-ci-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dp-ci-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4e54;
  flex: 1;
}

.dp-ci-cnt {
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.dp-ci-cnt.active {
  background: #5a8bb0;
  color: #fff;
}

.dp-list-panel {
  width: 380px;
  background: #f5f8fe;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.dp-dlp-hd {
  padding: 11px 14px;
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dp-dlp-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.dp-dlp-body::-webkit-scrollbar {
  width: 4px;
}
.dp-dlp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.dp-dpt-card {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
}
.dp-dpt-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}
.dp-dpt-card.selected {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.1);
}

.dp-dc-id {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5a8bb0;
  margin-bottom: 3px;
}

.dp-dc-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  margin-bottom: 4px;
}

.dp-dc-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.dp-dc-chips {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.dp-bits-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1e1e2d;
  color: #8ba4ff;
  border-radius: 6px;
  padding: 3px 9px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.dp-detail {
  flex: 1;
  background: #f5f8fe;
  overflow-y: auto;
}
.dp-detail::-webkit-scrollbar {
  width: 6px;
}
.dp-detail::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.dp-dd-hd {
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1733, #162248);
}

.dp-hd-kpi {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dp-hd-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.dp-hd-kpi-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.dp-dc-wrap {
  margin: 14px 20px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.dp-dc-sec {
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
}
.dp-dc-sec:last-child {
  border-bottom: none;
}

.dp-dc-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.dp-bit-diagram {
  display: flex;
  gap: 2px;
  font-family: "Space Mono", monospace;
  overflow-x: auto;
  padding: 4px 0;
}

.dp-bit-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 28px;
}

.dp-bit-idx {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
}

.dp-bit-box {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid;
}

.dp-bit-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  text-align: center;
  max-width: 28px;
  word-break: break-all;
}

.dp-bit-1 {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border-color: #b3dff9;
}

.dp-bit-0 {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  border-color: #e0e3ef;
}

.dp-bit-s {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border-color: #fcd6e0;
}

.dp-bit-f {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
  border-color: #d8c6ff;
}

.dp-bit-m {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
  border-color: #b3f0ce;
}

.dp-bit-u {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
  border-color: #ffe880;
}

.dp-bit-x {
  background: rgba(156, 163, 168, 0.06);
  color: #cdd0db;
  border-color: #e6e9f0;
}

.dp-enc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.dp-enc-table thead th {
  padding: 7px 10px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #ece9e4;
}
.dp-enc-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #ece9e4;
  vertical-align: middle;
}
.dp-enc-table tbody tr:last-child td {
  border-bottom: none;
}
.dp-enc-table tbody tr:hover {
  background: #f8faff;
}

.dp-ga-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.dp-ga-row:last-child {
  border-bottom: none;
}

.dp-ga-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
  font-weight: 700;
  width: 56px;
  flex-shrink: 0;
}

.dp-ga-name {
  flex: 1;
  font-weight: 600;
  color: #2d3436;
}

.gk-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.gk-tree-panel {
  width: 320px;
  background: #fefefe;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.gk-tp-hd {
  padding: 11px 14px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.gk-tp-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.gk-tp-body::-webkit-scrollbar {
  width: 4px;
}
.gk-tp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.gk-t-main {
  margin-bottom: 3px;
}

.gk-t-main-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}
.gk-t-main-hd:hover {
  background: rgba(156, 163, 168, 0.06);
}

.gk-t-toggle {
  font-size: 0.6875rem;
  color: #9ca3a8;
  transition: transform 0.15s;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.gk-t-toggle.open {
  transform: rotate(90deg);
}

.gk-t-main-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #fff;
}

.gk-t-main-cnt {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 8px;
  padding: 1px 6px;
}

.gk-t-mid {
  padding-left: 28px;
  margin-bottom: 1px;
}

.gk-t-mid-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4e54;
}
.gk-t-mid-hd:hover {
  background: rgba(156, 163, 168, 0.06);
}

.gk-t-mid-icon {
  font-size: 0.75rem;
}

.gk-t-ga {
  padding-left: 52px;
  margin-bottom: 1px;
}

.gk-t-ga-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
}
.gk-t-ga-row:hover {
  background: rgba(156, 163, 168, 0.06);
}
.gk-t-ga-row.selected {
  background: rgba(90, 139, 176, 0.08);
}
.gk-t-ga-row.selected .gk-t-ga-name {
  color: #5a8bb0;
  font-weight: 700;
}

.gk-t-ga-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  min-width: 44px;
}

.gk-t-ga-name {
  flex: 1;
  color: #4a4e54;
  font-weight: 500;
}

.gk-t-ga-dpt {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.gk-t-ga-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gk-main-content {
  flex: 1;
  overflow-y: auto;
  background: #f5f8fe;
}
.gk-main-content::-webkit-scrollbar {
  width: 6px;
}
.gk-main-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.gk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.gk-ga-detail-hd {
  background: linear-gradient(135deg, #0b1733 0%, #1a2a5e 100%);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.gk-ga-addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.gk-ga-detail-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.gk-ga-detail-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.gk-flag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 2px;
}

.gk-flag-c {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.gk-flag-r {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
}

.gk-flag-w {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.gk-flag-t {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.gk-flag-u {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.gk-flag-i {
  background: #e0faf5;
  color: #00c9a7;
}

.gk-val-meta-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 20px;
}

.gk-val-widget {
  background: linear-gradient(135deg, #0b1733, #1a2a5e);
  border-radius: 8px;
  padding: 18px 20px;
  text-align: center;
}

.gk-vw-val {
  font-size: 36px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.gk-vw-unit {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.gk-vw-time {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  font-family: "Space Mono", monospace;
}

.gk-ds {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  margin: 16px 20px;
  overflow: hidden;
}

.gk-ds-hd {
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gk-ds-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gk-ds-body {
  padding: 14px 18px;
}

.gk-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.gk-drow:last-child {
  border-bottom: none;
}

.gk-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.gk-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.gk-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.gk-dev-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.gk-dev-link:last-child {
  border-bottom: none;
}

.gk-dev-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.gk-dev-link-role {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.gk-role-s {
  background: rgba(107, 158, 125, 0.08);
  color: #6b9e7d;
}

.gk-role-r {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.gk-role-sr {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.gk-gm-header {
  display: flex;
  gap: 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #ece9e4;
  margin-bottom: 4px;
}
.gk-gm-header span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
}

.gk-gm-row {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.75rem;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-family: "Space Mono", monospace;
}
.gk-gm-row:last-child {
  border-bottom: none;
}

.gk-gm-time {
  width: 76px;
  color: #9ca3a8;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.gk-gm-addr {
  width: 52px;
  color: #5a8bb0;
  font-weight: 700;
  flex-shrink: 0;
}

.gk-gm-dir {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.gk-gm-val {
  width: 90px;
  font-weight: 700;
  color: #2d3436;
  flex-shrink: 0;
}

.gk-gm-dpt {
  width: 64px;
  color: #9ca3a8;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.gk-gm-src {
  flex: 1;
  color: #9ca3a8;
  font-size: 0.6875rem;
  font-family: "DM Sans", sans-serif;
}

.gk-gm-dir-w {
  color: #c4616e;
}

.gk-gm-dir-r {
  color: #7aad8a;
}

.gk-gm-dir-resp {
  color: #d4a855;
}

.gk-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  display: inline-block;
  animation: gk-lp 1.6s infinite;
}

@keyframes gk-lp {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
/* ===================================================================
   KNX GROUP ADDRESSES — gk-* prefix
   =================================================================== */
.gk-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #faf9f7;
}

/* --- Topbar --- */
.gk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
}

.gk-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gk-topbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.gk-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
}

.gk-topbar-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.gk-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gk-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.gk-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  display: inline-block;
  animation: gk-lp 1.6s infinite;
}

@keyframes gk-lp {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
/* --- KPI Strip --- */
.gk-kpi-strip {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  overflow-x: auto;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.gk-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 130px;
  background: #faf9f7;
  border-radius: 8px;
  padding: 11px 14px;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gk-kpi:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.gk-kpi-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.gk-kpi-body {
  display: flex;
  flex-direction: column;
}

.gk-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.gk-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

/* --- Three-panel Layout --- */
.gk-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* --- Tree Panel --- */
.gk-tree-panel {
  width: 320px;
  background: #fefefe;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.gk-tp-hd {
  padding: 11px 14px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.gk-tp-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.gk-tp-body::-webkit-scrollbar {
  width: 4px;
}
.gk-tp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

/* --- Tree Nodes --- */
.gk-t-main {
  margin-bottom: 3px;
}

.gk-t-main-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}
.gk-t-main-hd:hover {
  background: rgba(156, 163, 168, 0.06);
}

.gk-t-toggle {
  font-size: 0.6875rem;
  color: #9ca3a8;
  transition: transform 0.15s;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.gk-t-toggle.open {
  transform: rotate(90deg);
}

.gk-t-main-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #fff;
}

.gk-t-main-cnt {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 8px;
  padding: 1px 6px;
}

.gk-t-mid {
  padding-left: 28px;
  margin-bottom: 1px;
}

.gk-t-mid-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a5e64;
}
.gk-t-mid-hd:hover {
  background: rgba(156, 163, 168, 0.06);
}

.gk-t-mid-icon {
  font-size: 0.75rem;
}

.gk-t-ga {
  padding-left: 52px;
  margin-bottom: 1px;
}

.gk-t-ga-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.75rem;
}
.gk-t-ga-row:hover {
  background: rgba(156, 163, 168, 0.06);
}
.gk-t-ga-row.selected {
  background: rgba(90, 139, 176, 0.06);
}
.gk-t-ga-row.selected .gk-t-ga-name {
  color: #5a8bb0;
  font-weight: 700;
}

.gk-t-ga-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  min-width: 44px;
}

.gk-t-ga-name {
  flex: 1;
  color: #5a5e64;
  font-weight: 500;
}

.gk-t-ga-dpt {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.gk-t-ga-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Main Content Panel --- */
.gk-main-content {
  flex: 1;
  overflow-y: auto;
  background: #faf9f7;
}
.gk-main-content::-webkit-scrollbar {
  width: 6px;
}
.gk-main-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

/* --- Empty State --- */
.gk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  text-align: center;
}

.gk-empty-icon {
  font-size: 56px;
  opacity: 0.15;
  margin-bottom: 16px;
}

.gk-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  margin-bottom: 6px;
}

.gk-empty-text {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.8;
  max-width: 320px;
}

/* --- GA Detail Header --- */
.gk-ga-detail-hd {
  background: linear-gradient(135deg, #0b1733 0%, #1a2a5e 100%);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.gk-ga-hd-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
}

.gk-ga-addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.gk-ga-detail-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.gk-ga-detail-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.gk-ga-flags-row {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.gk-ga-hd-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.gk-hd-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.gk-hd-btn-danger {
  background: rgba(196, 97, 110, 0.2) !important;
  color: #ff8faa !important;
  border-color: rgba(196, 97, 110, 0.3) !important;
}

/* --- Flag Pills --- */
.gk-flag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 2px;
  display: inline-block;
}

.gk-flag-c {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.gk-flag-r {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.gk-flag-w {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.gk-flag-t {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.gk-flag-u {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.gk-flag-i {
  background: #e0faf5;
  color: #00c9a7;
}

.gk-flag-neutral {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.gk-flag-dim {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

/* --- Value + Metadata Grid --- */
.gk-val-meta-grid {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  align-items: flex-start;
}

.gk-val-widget {
  background: linear-gradient(135deg, #0b1733, #1a2a5e);
  border-radius: 8px;
  padding: 18px 20px;
  text-align: center;
  min-width: 180px;
}

.gk-vw-val {
  font-size: 36px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.gk-vw-unit {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.gk-vw-time {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  font-family: "Space Mono", monospace;
}

.gk-vw-actions {
  margin-top: 12px;
  display: flex;
  gap: 7px;
  justify-content: center;
}

.gk-vw-btn-read {
  background: rgba(90, 139, 176, 0.3) !important;
  color: #6aceff !important;
  border: none !important;
}

.gk-vw-btn-write {
  background: rgba(122, 173, 138, 0.3) !important;
  color: #6aeaaa !important;
  border: none !important;
}

/* --- Detail Sections --- */
.gk-ds {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  margin: 16px 20px;
  overflow: hidden;
}
.gk-ds.gk-ds-inline {
  margin: 0;
  flex: 1;
}

.gk-ds-hd {
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gk-ds-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gk-ds-badge {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.gk-ds-body {
  padding: 14px 18px;
}

/* --- Detail Rows --- */
.gk-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.gk-drow:last-child {
  border-bottom: none;
}

.gk-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.gk-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.gk-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.gk-desc-text {
  font-size: 0.75rem;
  color: #5a5e64;
  line-height: 1.75;
}

/* --- Linked Device Rows --- */
.gk-dev-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.gk-dev-link:last-child {
  border-bottom: none;
}

.gk-dev-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.gk-dev-link-info {
  flex: 1;
}

.gk-dev-link-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}

.gk-dev-link-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-family: "Space Mono", monospace;
}

.gk-dev-link-role {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.gk-role-s {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.gk-role-r {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.gk-role-sr {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

/* --- Group Monitor --- */
.gk-gm-header {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 0 8px;
  border-bottom: 1px solid #ece9e4;
}

.gk-gm-col-time {
  width: 76px;
}

.gk-gm-col-addr {
  width: 52px;
}

.gk-gm-col-dir {
  width: 22px;
}

.gk-gm-col-val {
  width: 90px;
}

.gk-gm-col-dpt {
  width: 64px;
}

.gk-gm-col-src {
  flex: 1;
}

.gk-gm-row {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-family: "Space Mono", monospace;
}
.gk-gm-row:last-child {
  border-bottom: none;
}

.gk-gm-time {
  width: 76px;
  color: #9ca3a8;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.gk-gm-addr {
  width: 52px;
  color: #5a8bb0;
  font-weight: 700;
  flex-shrink: 0;
}

.gk-gm-dir {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.gk-gm-dir-w {
  color: #c4616e;
}

.gk-gm-dir-r {
  color: #7aad8a;
}

.gk-gm-dir-resp {
  color: #d4a855;
}

.gk-gm-val {
  width: 90px;
  font-weight: 700;
  color: #2d3436;
  flex-shrink: 0;
}

.gk-gm-dpt {
  width: 64px;
  color: #9ca3a8;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.gk-gm-src {
  flex: 1;
  color: #9ca3a8;
  font-size: 0.6875rem;
  font-family: "DM Sans", -apple-system, sans-serif;
}

.tl-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
}

.tl-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-topbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.tl-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
}

.tl-topbar-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.tl-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-kpi-strip {
  display: flex;
  gap: 10px;
  padding: 12px 24px;
  overflow-x: auto;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.tl-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 120px;
  background: #faf9f7;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tl-kpi:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.tl-kpi-icon {
  font-size: 1rem;
  line-height: 1;
}

.tl-kpi-body {
  display: flex;
  flex-direction: column;
}

.tl-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.tl-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.tl-dp-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  margin-bottom: 3px;
}

.tl-dp-subtitle {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.tl-dp-empty {
  padding: 40px 20px;
  text-align: center;
  opacity: 0.5;
}

.tl-dp-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.tl-dp-empty-text {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.tl-dp-val-wrap {
  padding: 12px 16px 0;
}

.tl-dp-comment {
  font-size: 0.75rem;
  color: #5a5e64;
  line-height: 1.75;
}

.tl-dp-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tl-dp-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tl-live-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.tl-val-decoded {
  color: #5a8bb0;
}

.tl-body-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.tl-filter-bar {
  padding: 10px 16px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tl-flt-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #9ca3a8;
}

.tl-monitor-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b1220;
}

.tl-live-ind {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-live-dot.on {
  background: #c4616e;
  animation: tl-livepulse 1s infinite;
}
.tl-live-dot.paused {
  background: #9ca3a8;
}

@keyframes tl-livepulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(196, 97, 110, 0.5);
  }
  70% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(196, 97, 110, 0);
  }
}
.tl-monitor-header {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1428;
  flex-shrink: 0;
}

.tl-mh-col {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(161, 165, 183, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: "Space Mono", monospace;
}

.tl-monitor-body {
  flex: 1;
  overflow-y: auto;
  font-family: "Space Mono", monospace;
}
.tl-monitor-body::-webkit-scrollbar {
  width: 6px;
}
.tl-monitor-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.tl-tg-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.75rem;
}
.tl-tg-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.tl-tg-row.selected {
  background: rgba(90, 139, 176, 0.12);
  border-left: 3px solid #5a8bb0;
}

.tl-c-time {
  width: 84px;
  color: rgba(161, 165, 183, 0.7);
  flex-shrink: 0;
  font-size: 0.6875rem;
}

.tl-c-src {
  width: 58px;
  color: #6aceff;
  flex-shrink: 0;
  font-weight: 700;
}

.tl-c-dir {
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.tl-c-ga {
  width: 56px;
  color: #b39dff;
  flex-shrink: 0;
  font-weight: 700;
}

.tl-c-svc {
  width: 58px;
  flex-shrink: 0;
}

.tl-c-len {
  width: 30px;
  text-align: right;
  color: rgba(161, 165, 183, 0.45);
  flex-shrink: 0;
  font-size: 0.6875rem;
}

.tl-c-data {
  width: 120px;
  flex-shrink: 0;
}

.tl-c-val {
  flex: 1;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
}

.tl-c-dpt {
  width: 64px;
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #b39dff;
}

.tl-c-note {
  flex: 1;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  color: rgba(161, 165, 183, 0.55);
}

.tl-dir-w {
  color: #c4616e;
  font-weight: 700;
}

.tl-dir-r {
  color: #6b9e7d;
  font-weight: 700;
}

.tl-dir-resp {
  color: #d4a855;
}

.tl-svc-w {
  color: #c4616e;
  font-size: 0.6875rem;
  font-weight: 700;
}

.tl-svc-r {
  color: #6b9e7d;
  font-size: 0.6875rem;
  font-weight: 700;
}

.tl-svc-ind {
  color: #8b7fb5;
  font-size: 0.6875rem;
  font-weight: 700;
}

.tl-svc-ack {
  color: rgba(161, 165, 183, 0.5);
  font-size: 0.6875rem;
}

.tl-hex-byte {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  color: rgba(161, 165, 183, 0.7);
  font-size: 0.6875rem;
}

.tl-hx-hi {
  color: #6aceff;
}

.tl-hx-hn {
  color: #6aeaaa;
}

.tl-hx-hv {
  color: #ffd55a;
}

.tl-decode-panel {
  width: 320px;
  background: #fefefe;
  border-left: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.tl-dp-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
  flex-shrink: 0;
}

.tl-dp-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.tl-dp-body::-webkit-scrollbar {
  width: 4px;
}
.tl-dp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.tl-dp-sec {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}
.tl-dp-sec:last-child {
  border-bottom: none;
}

.tl-dp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 9px;
}

.tl-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.tl-drow:last-child {
  border-bottom: none;
}

.tl-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.tl-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.tl-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.tl-val-big {
  background: linear-gradient(135deg, #0b1733, #1a2a5e);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.tl-val-num {
  font-size: 32px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.tl-val-unit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

.tl-val-time {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
  font-family: "Space Mono", monospace;
}

.tl-hex-breakdown {
  background: #0b1220;
  border-radius: 8px;
  padding: 11px 13px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.tl-hb-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tl-hb-row:last-child {
  border-bottom: none;
}

.tl-hb-offset {
  width: 36px;
  color: rgba(161, 165, 183, 0.35);
  font-size: 0.6875rem;
  flex-shrink: 0;
  padding-top: 1px;
}

.tl-hb-bytes {
  flex: 1;
  color: #6aceff;
}

.tl-hb-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  color: rgba(161, 165, 183, 0.6);
}

.ia-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ia-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
}

.ia-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ia-topbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b9ac4, #8b7fb5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.ia-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
}

.ia-topbar-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.ia-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ia-kpi-strip {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  overflow-x: auto;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.ia-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 130px;
  background: #faf9f7;
  border-radius: 8px;
  padding: 11px 14px;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ia-kpi:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.ia-kpi-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.ia-kpi-body {
  display: flex;
  flex-direction: column;
}

.ia-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.ia-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.ia-badge-mfr {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.ia-badge-obj {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.ia-badge-fw {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.ia-mp-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  flex: 1;
}

.ia-mp-cnt {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-right: 8px;
}

.ia-mp-empty {
  text-align: center;
  padding: 30px;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.ia-dc-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ia-empty-icon {
  font-size: 56px;
  opacity: 0.13;
  margin-bottom: 16px;
}

.ia-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  margin-bottom: 6px;
}

.ia-empty-text {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.9;
  max-width: 320px;
}

.ia-prog-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
}

.ia-prog-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-top: 2px;
}

.ia-dd-hd-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
}

.ia-dd-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.ia-dd-model {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.ia-dd-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ia-dd-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.ia-seg-dot {
  color: rgba(255, 255, 255, 0.35);
}

.ia-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ia-breakdown-cell {
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid transparent;
}

.ia-breakdown-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.ia-breakdown-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.ia-cell-area {
  background: rgba(90, 139, 176, 0.08);
  border-color: #b3dff9;
}
.ia-cell-area .ia-breakdown-val {
  color: #5a8bb0;
}
.ia-cell-area .ia-breakdown-label {
  color: #5a8bb0;
}

.ia-cell-line {
  background: rgba(107, 158, 125, 0.08);
  border-color: #b3f0ce;
}
.ia-cell-line .ia-breakdown-val {
  color: #7aad8a;
}
.ia-cell-line .ia-breakdown-label {
  color: #7aad8a;
}

.ia-cell-device {
  background: rgba(212, 168, 85, 0.08);
  border-color: #ffe880;
}
.ia-cell-device .ia-breakdown-val {
  color: #c08000;
}
.ia-cell-device .ia-breakdown-label {
  color: #c08000;
}

.ia-conflict-row {
  background: rgba(196, 97, 110, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
}

.ia-desc-text {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.7;
  padding-top: 6px;
  border-top: 1px solid #ece9e4;
}

.ia-hex-explain {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.8;
}

.ia-tri {
  display: flex;
  gap: 0;
  height: calc(100vh - 280px);
  min-height: 520px;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fefefe;
}

.ia-left-panel {
  width: 280px;
  min-width: 280px;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  background: #fafbfc;
}

.ia-lp-hd {
  padding: 12px 14px;
  border-bottom: 1px solid #ece9e4;
}

.ia-lp-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.ia-tn-area {
  margin-bottom: 2px;
}

.ia-tn-area-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  transition: background 0.15s;
}
.ia-tn-area-hd:hover {
  background: rgba(90, 139, 176, 0.04);
}
.ia-tn-area-hd.sel {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.ia-tn-area-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ia-tn-area-cnt {
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  padding: 2px 7px;
  border-radius: 8px;
}
.ia-tn-area-cnt.sel {
  background: rgba(90, 139, 176, 0.12);
  color: #5a8bb0;
}

.ia-tn-tog {
  font-size: 8px;
  width: 14px;
  text-align: center;
  color: #9ca3a8;
  transition: transform 0.2s;
}
.ia-tn-tog.op {
  transform: rotate(90deg);
}

.ia-tn-line {
  margin-left: 12px;
}

.ia-tn-line-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4e54;
  transition: background 0.15s;
}
.ia-tn-line-hd:hover {
  background: rgba(90, 139, 176, 0.04);
}
.ia-tn-line-hd.sel {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-weight: 700;
}

.ia-tn-line-icon {
  font-size: 0.8125rem;
}

.ia-tn-dev {
  margin-left: 28px;
}

.ia-tn-dev-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.15s;
}
.ia-tn-dev-row:hover {
  background: rgba(90, 139, 176, 0.04);
}
.ia-tn-dev-row.sel {
  background: rgba(90, 139, 176, 0.1);
  border-left: 2px solid #5a8bb0;
}

.ia-tn-dev-ia {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #5a8bb0;
  width: 46px;
  flex-shrink: 0;
}

.ia-tn-dev-name {
  flex: 1;
  font-size: 0.75rem;
  color: #4a4e54;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-tn-dev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ia-mid-panel {
  width: 400px;
  min-width: 360px;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
}

.ia-mp-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.ia-mp-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ia-dev-card {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ia-dev-card:hover {
  border-color: rgba(90, 139, 176, 0.3);
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}
.ia-dev-card.selected {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.02);
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}

.ia-dc-ia {
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #5a8bb0;
  margin-bottom: 4px;
}

.ia-dc-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 2px;
}

.ia-dc-model {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.ia-dc-status {
  position: absolute;
  top: 12px;
  right: 14px;
}

.ia-conflict-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #c4616e;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 0 10px 0 8px;
  letter-spacing: 0.5px;
  animation: ia-conflict-blink 1.5s ease-in-out infinite;
}

@keyframes ia-conflict-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.ia-badge-ok {
  background: rgba(122, 173, 138, 0.12);
  color: #7aad8a;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.ia-badge-warn {
  background: rgba(212, 168, 85, 0.12);
  color: #c49232;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.ia-badge-crit {
  background: rgba(196, 97, 110, 0.12);
  color: #c4616e;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.ia-right-panel {
  flex: 1;
  overflow-y: auto;
  background: #fafbfc;
}

.ia-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}

.ia-prog-mode-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #d00000, #e53935);
  border-radius: 0;
}

.ia-prog-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff1744;
  box-shadow: 0 0 8px #ff1744;
  flex-shrink: 0;
  animation: ia-prog-glow 1s ease-in-out infinite;
}

@keyframes ia-prog-glow {
  0%, 100% {
    box-shadow: 0 0 6px #ff1744;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 16px #ff1744, 0 0 28px rgba(255, 23, 68, 0.4);
    opacity: 0.7;
  }
}
.ia-dd-hd {
  background: linear-gradient(135deg, #1b1e3b 0%, #2d325a 100%);
  padding: 20px 22px;
  color: #fff;
}

.ia-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 5px 14px;
  margin-bottom: 10px;
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
}

.ia-seg {
  letter-spacing: 1px;
}

.ia-area-clr {
  color: #6aceff;
}

.ia-line-clr {
  color: #6b9e7d;
}

.ia-dev-clr {
  color: #d4a855;
}

.ia-ds {
  margin: 0 18px 14px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.ia-ds-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  background: #fafbfc;
}

.ia-ds-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.ia-ds-body {
  padding: 14px 16px;
}

.ia-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.ia-drow:last-child {
  border-bottom: none;
}

.ia-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.ia-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.ia-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.ia-obj-header {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ia-obj-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.6);
  font-size: 0.75rem;
}
.ia-obj-row:last-child {
  border-bottom: none;
}
.ia-obj-row:hover {
  background: rgba(90, 139, 176, 0.02);
}

.ia-obj-num {
  width: 34px;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  flex-shrink: 0;
}

.ia-obj-name {
  flex: 1;
  font-weight: 600;
  color: #2d3436;
}

.ia-obj-dpt {
  width: 64px;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #5a8bb0;
  font-weight: 700;
  flex-shrink: 0;
}

.ia-obj-flags {
  width: 80px;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.ia-flag-bit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}

.ia-obj-ga {
  width: 52px;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #5a8bb0;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

.ia-hex-view {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0b1220;
  border-radius: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.ia-hex-offset {
  color: rgba(161, 165, 183, 0.35);
  font-size: 0.6875rem;
  width: 36px;
  flex-shrink: 0;
}

.ia-hex-byte {
  color: rgba(255, 255, 255, 0.5);
  padding: 2px 4px;
}
.ia-hex-byte.hi {
  color: #6aceff;
  font-weight: 700;
}
.ia-hex-byte.hn {
  color: #ffc107;
  font-weight: 700;
}

.ia-hex-ascii {
  color: rgba(161, 165, 183, 0.45);
  font-size: 0.6875rem;
  margin-left: 8px;
}

.ia-kpi-b {
  border-bottom-color: #5a8bb0;
}

.ia-kpi-g {
  border-bottom-color: #7aad8a;
}

.ia-kpi-w {
  border-bottom-color: #d4a855;
}

.ia-kpi-r {
  border-bottom-color: #c4616e;
}

.ia-kpi-i {
  border-bottom-color: #00c9a7;
}

.ia-kpi-t {
  border-bottom-color: #8b7fb5;
}

.kd-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
}

.kd-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 12px 28px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.kd-kpi {
  flex: 1;
  background: #f5f8fe;
  border-radius: 8px;
  padding: 10px 13px;
  border: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
}
.kd-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 10px;
}

.kd-kpi-b::before {
  background: #5a8bb0;
}

.kd-kpi-g::before {
  background: #7aad8a;
}

.kd-kpi-w::before {
  background: #d4a855;
}

.kd-kpi-r::before {
  background: #c4616e;
}

.kd-kpi-i::before {
  background: #8b7fb5;
}

.kd-kpi-t::before {
  background: #00c9a7;
}

.kd-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.kd-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 500;
}

.kd-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.kd-list-col {
  width: 440px;
  background: #f5f8fe;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.kd-lc-toolbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.kd-lc-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.kd-lc-body::-webkit-scrollbar {
  width: 4px;
}
.kd-lc-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.kd-dl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s;
  margin-bottom: 4px;
  background: #fefefe;
  box-shadow: none;
}
.kd-dl-row:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}
.kd-dl-row.selected {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.1);
}

.kd-dl-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.kd-dl-ia {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #5a8bb0;
}

.kd-dl-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.kd-dl-model {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.kd-dl-objs {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.kd-dl-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kd-detail-col {
  flex: 1;
  background: #f5f8fe;
  overflow-y: auto;
}
.kd-detail-col::-webkit-scrollbar {
  width: 6px;
}
.kd-detail-col::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.kd-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.kd-dh {
  background: linear-gradient(135deg, #0b1733, #1a2a5e);
  padding: 20px 24px;
  flex-shrink: 0;
}

.kd-dh-ia {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.kd-dh-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}

.kd-dh-model {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.kd-tabs {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  padding: 0 22px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.kd-tab {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: 0.15s;
  white-space: nowrap;
}
.kd-tab:hover {
  color: #2d3436;
}
.kd-tab.active {
  color: #5a8bb0;
  border-color: #5a8bb0;
}

.kd-obj-table-wrap {
  overflow-x: auto;
}

.kd-obj-table {
  width: 100%;
  border-collapse: collapse;
}
.kd-obj-table thead th {
  padding: 8px 14px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #ece9e4;
  background: #fefefe;
  position: sticky;
  top: 41px;
  z-index: 5;
}
.kd-obj-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #ece9e4;
  vertical-align: middle;
  font-size: 0.75rem;
}
.kd-obj-table tbody tr {
  cursor: pointer;
  transition: 0.15s;
}
.kd-obj-table tbody tr:hover {
  background: #f8faff;
}
.kd-obj-table tbody tr.sel-obj {
  background: rgba(90, 139, 176, 0.08);
}
.kd-obj-table tbody tr:last-child td {
  border-bottom: none;
}

.kd-obj-num {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #9ca3a8;
  text-align: center;
  width: 36px;
}

.kd-obj-name-cell {
  font-weight: 600;
  color: #2d3436;
}

.kd-obj-dpt-chip {
  display: inline-flex;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border-radius: 4px;
  padding: 1px 7px;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
}

.kd-flag-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  margin: 1px;
}

.kd-ga-link {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #8b7fb5;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(139, 127, 181, 0.3);
}
.kd-ga-link:hover {
  color: #5a8bb0;
}

.kd-ga-role {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.kd-role-s {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.kd-role-r {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.kd-role-sr {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.kd-role-n {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.kd-obj-detail {
  background: #fefefe;
  border: 1px solid #5a8bb0;
  border-radius: 8px;
  margin: 0 20px 14px;
  padding: 13px 16px;
  animation: fadeIn 0.15s ease;
}

.kd-od-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.kd-od-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.kd-od-close {
  margin-left: auto;
  cursor: pointer;
  color: #9ca3a8;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
}
.kd-od-close:hover {
  color: #c4616e;
}

.kd-ga-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.kd-ga-card:last-child {
  border-bottom: none;
}

.kd-ga-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #8b7fb5;
  font-weight: 700;
  width: 56px;
  flex-shrink: 0;
}

.kd-ga-name-txt {
  flex: 1;
  font-weight: 600;
  color: #2d3436;
}

.kd-param-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.kd-param-row:last-child {
  border-bottom: none;
}

.kd-pname {
  width: 220px;
  color: #9ca3a8;
  font-weight: 500;
  flex-shrink: 0;
  padding-right: 12px;
  line-height: 1.5;
}

.kd-pval {
  flex: 1;
  font-weight: 700;
  color: #2d3436;
}

.kd-pval-danger {
  color: #c4616e;
  font-weight: 700;
}

.kd-ds {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  margin: 14px 20px;
  overflow: hidden;
}

.kd-ds-hd {
  padding: 11px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kd-ds-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.kd-ds-body {
  padding: 13px 18px;
}

.kd-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.kd-drow:last-child {
  border-bottom: none;
}

.kd-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.kd-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.kd-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.kt-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
}

.kt-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 14px 28px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.kt-kpi {
  flex: 1;
  background: #f5f8fe;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
}
.kt-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 10px;
}

.kt-kpi-i::before {
  background: #8b7fb5;
}

.kt-kpi-b::before {
  background: #5a8bb0;
}

.kt-kpi-g::before {
  background: #7aad8a;
}

.kt-kpi-w::before {
  background: #d4a855;
}

.kt-kpi-icon {
  font-size: 0.875rem;
  margin-bottom: 5px;
}

.kt-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.kt-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 500;
}

.kt-content-area {
  flex: 1;
  display: flex;
  gap: 0;
  overflow: hidden;
  min-height: 0;
}

.kt-topo-canvas {
  flex: 1;
  overflow: auto;
  background: #f5f8fe;
  position: relative;
  padding: 24px;
}
.kt-topo-canvas::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.kt-topo-canvas::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.kt-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kt-zoom-btn.e-btn {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  color: #2d3436;
  background: transparent;
  border: none;
}
.kt-zoom-btn.e-btn:hover {
  background: #f5f3ef;
}

.kt-zoom-level {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  min-width: 38px;
  text-align: center;
  user-select: none;
}

.kt-diag-wrap {
  min-width: 800px;
  min-height: 600px;
  position: relative;
}

.kt-backbone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 0 32px;
}

.kt-backbone-bar {
  height: 8px;
  border-radius: 4px;
  width: 100%;
  position: relative;
  background: linear-gradient(90deg, #0b1733 0%, #5a8bb0 20%, #5a8bb0 80%, #0b1733 100%);
  box-shadow: 0 0 18px rgba(90, 139, 176, 0.4);
}
.kt-backbone-bar::before {
  content: "KNX IP Backbone";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #5a8bb0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  font-family: "Space Mono", monospace;
}

.kt-ip-router-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fefefe;
  border: 2px solid #5a8bb0;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 0 0 4px rgba(90, 139, 176, 0.15), 0 2px 14px rgba(0, 0, 0, 0.058);
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  z-index: 10;
}
.kt-ip-router-node:hover {
  box-shadow: 0 0 0 6px rgba(90, 139, 176, 0.2), 0 2px 14px rgba(0, 0, 0, 0.058);
}
.kt-ip-router-node.active {
  background: rgba(90, 139, 176, 0.08);
}

.kt-area-section {
  margin-bottom: 28px;
}

.kt-area-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  box-shadow: none;
  cursor: pointer;
  transition: 0.15s;
}
.kt-area-hd:hover {
  border-color: #5a8bb0;
}
.kt-area-hd.active {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.1);
}

.kt-area-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kt-area-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  flex: 1;
}

.kt-area-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.kt-coupler-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(139, 127, 181, 0.08);
  border: 1px solid #d8c6ff;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #8b7fb5;
  margin-left: auto;
}

.kt-lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding-left: 28px;
  position: relative;
}
.kt-lines-grid::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 24px;
  width: 2px;
  background: #ece9e4;
}

.kt-line-card {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
}
.kt-line-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.kt-line-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}
.kt-line-card.active {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.kt-line-ok::before {
  background: #7aad8a;
}

.kt-line-warn::before {
  background: #d4a855;
}

.kt-line-err::before {
  background: #c4616e;
}

.kt-lc-hd {
  padding: 10px 12px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kt-lc-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
}

.kt-lc-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  flex: 1;
}

.kt-lc-body {
  padding: 10px 12px;
}

.kt-lc-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 6px;
}

.kt-lc-stat-val {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.75rem;
}

.kt-bus-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(156, 163, 168, 0.06);
  overflow: hidden;
  margin: 6px 0;
}

.kt-bus-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.kt-pbar {
  height: 5px;
  border-radius: 4px;
  background: rgba(156, 163, 168, 0.06);
  overflow: hidden;
  margin-top: 3px;
}

.kt-pbar-fill {
  height: 100%;
  border-radius: 4px;
}

.kt-side-col {
  width: 320px;
  background: #fefefe;
  border-left: 1px solid #ece9e4;
  overflow-y: auto;
  flex-shrink: 0;
}
.kt-side-col::-webkit-scrollbar {
  width: 4px;
}
.kt-side-col::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.kt-sp-hd {
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kt-sp-sec {
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
}
.kt-sp-sec:last-child {
  border-bottom: none;
}

.kt-sp-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 9px;
}

.kt-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.kt-drow:last-child {
  border-bottom: none;
}

.kt-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.kt-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.kt-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.kt-util-ring {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.kt-util-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.kt-util-pct {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  line-height: 1;
}

.kt-util-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
}

.kt-rt-row {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
}
.kt-rt-row:last-child {
  border-bottom: none;
}

.kt-rt-range {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #5a8bb0;
  width: 72px;
  flex-shrink: 0;
}

.kt-rt-action {
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.kt-rt-pass {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.kt-rt-block {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.kt-rt-route {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.kt-rt-desc {
  flex: 1;
  color: #9ca3a8;
}

.kt-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  display: inline-block;
  animation: kt-lpulse 1.6s infinite;
}

@keyframes kt-lpulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   TENANTS PAGE  (tn-*)
   ═══════════════════════════════════════════════════════════════════════════ */
.tn-kpi-strip {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.tn-kpi {
  flex: 1;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  padding: 17px 18px;
  position: relative;
  overflow: hidden;
}
.tn-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 12px;
}
.tn-kpi.kpi-b::before {
  background: #5a8bb0;
}
.tn-kpi.kpi-g::before {
  background: #7aad8a;
}
.tn-kpi.kpi-w::before {
  background: #d4a855;
}
.tn-kpi.kpi-r::before {
  background: #c4616e;
}
.tn-kpi.kpi-i::before {
  background: #8b7fb5;
}
.tn-kpi.kpi-t::before {
  background: #00c9a7;
}

.tn-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  margin-bottom: 9px;
}
.tn-kpi-icon.ki-b {
  background: rgba(90, 139, 176, 0.08);
}
.tn-kpi-icon.ki-g {
  background: rgba(107, 158, 125, 0.08);
}
.tn-kpi-icon.ki-w {
  background: rgba(212, 168, 85, 0.08);
}
.tn-kpi-icon.ki-i {
  background: rgba(139, 127, 181, 0.08);
}
.tn-kpi-icon.ki-t {
  background: #e0faf5;
}
.tn-kpi-icon.ki-r {
  background: rgba(196, 97, 110, 0.08);
}

.tn-kpi-val {
  font-size: 24px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1.5px;
  line-height: 1;
}

.tn-kpi-lbl {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 3px;
  font-weight: 500;
}

.tn-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 5px;
}

.tn-kv-ok {
  color: #6b9e7d;
}

.tn-kv-warn {
  color: #d4a855;
}

.t-up {
  color: #7aad8a;
}

.t-dn {
  color: #c4616e;
}

.t-eq {
  color: #9ca3a8;
}

.tn-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tn-toolbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tn-type-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tn-type-tab {
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tn-type-tab:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}
.tn-type-tab.active {
  background: #5a8bb0;
  color: #fff;
  border-color: #5a8bb0;
}

.tn-type-cnt {
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
}
.tn-type-tab:not(.active) .tn-type-cnt {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.tn-body-wrap {
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.tn-main-area {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.tn-bottom-panels {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.tn-bottom-panels > * {
  flex: 1;
  min-width: 0;
}

.tn-dp {
  width: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid transparent;
  background: #fefefe;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tn-dp.open {
  width: 380px;
  border-left-color: #ece9e4;
}

.tn-dp-scroll {
  flex: 1;
  overflow-y: auto;
}
.tn-dp-scroll::-webkit-scrollbar {
  width: 4px;
}
.tn-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.tn-dp-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  z-index: 3;
  transition: 0.15s;
}
.tn-dp-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tn-dp-empty {
  text-align: center;
  padding: 36px 18px;
  color: #9ca3a8;
  min-width: 380px;
}

.tn-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.tn-card {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}
.tn-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
  transform: translateY(-1px);
}
.tn-card.selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.15);
}
.tn-card.tn-expiring {
  border-color: #d4a855;
}
.tn-card.tn-critical {
  border-color: #c4616e;
  box-shadow: 0 0 0 2px rgba(196, 97, 110, 0.1);
}

.tn-card-band {
  height: 5px;
  flex-shrink: 0;
}

.tn-card-body {
  padding: 15px 17px;
  flex: 1;
}

.tn-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tn-card-av {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: "Space Mono", monospace;
  color: #fff;
  flex-shrink: 0;
}

.tn-card-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  line-height: 1.2;
}

.tn-card-org {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tn-card-bldg {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #5a8bb0;
  margin-top: 3px;
}

.tn-lease-wrap {
  margin-bottom: 10px;
}

.tn-lease-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #9ca3a8;
}

.tn-lease-bar {
  height: 5px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.tn-lease-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

.tn-stats {
  display: flex;
  border-top: 1px solid #ece9e4;
  border-bottom: 1px solid #ece9e4;
  padding: 8px 0;
  margin-bottom: 10px;
}

.tn-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid #ece9e4;
}
.tn-stat:last-child {
  border-right: none;
}

.tn-sv {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1;
}
.tn-sv.tn-sv-money {
  font-size: 0.75rem;
  color: #7aad8a;
}

.tn-sl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tn-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
}

.tn-il {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9ca3a8;
}

.tn-il-v {
  color: #4a4e54;
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}

.tn-card-footer {
  padding: 9px 17px;
  background: #fafbfd;
  border-top: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.badge.bg-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.badge.bg-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.badge.bg-crit {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.badge.bg-pri {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.badge.bg-inf {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.badge.bg-gray {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.badge.bg-teal {
  background: #e0faf5;
  color: #00c9a7;
}

.tn-side-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 14px;
}

.tn-sp-hd {
  padding: 16px 18px;
  background: linear-gradient(135deg, #12162b, #1a2442);
  position: relative;
  overflow: hidden;
}
.tn-sp-hd::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(90, 139, 176, 0.22), transparent 60%);
}

.tn-sp-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  z-index: 2;
  transition: 0.15s;
}
.tn-sp-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tn-sp-sec {
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
}
.tn-sp-sec:last-child {
  border-bottom: none;
}

.tn-sp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 9px;
}

.tn-sp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid #ece9e4;
}
.tn-sp-row:last-child {
  border-bottom: none;
}

.tn-sp-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.tn-sp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
  font-size: 0.75rem;
}
.tn-sp-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.tn-sp-kgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tn-sp-kpi {
  padding: 9px;
  border-radius: 8px;
  text-align: center;
}

.tn-sp-kval {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  letter-spacing: -0.5px;
}

.tn-sp-klbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 600;
}

.tn-sp-lease-bar {
  height: 8px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 7px;
}

.tn-sp-lease-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

.tn-zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 2px;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  border: 1px solid #c8e4f7;
}

.tn-expiry-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 14px;
}

.tn-expiry-hd {
  padding: 12px 17px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tn-expiry-body {
  padding: 10px 17px;
}

.tn-expiry-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #ece9e4;
}
.tn-expiry-item:last-child {
  border-bottom: none;
}

.tn-exp-av {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  flex-shrink: 0;
}

.tn-expiry-footer {
  padding: 10px 17px;
  border-top: 1px solid #ece9e4;
  background: #fafbfd;
}

.tn-revenue-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  margin-top: 14px;
}

.tn-revenue-hd {
  padding: 12px 17px;
  border-bottom: 1px solid #ece9e4;
}

.tn-revenue-body {
  padding: 14px 17px;
}

.tn-rev-item {
  margin-bottom: 9px;
}

.tn-rev-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tn-rev-bar {
  height: 5px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.tn-rev-fill {
  height: 100%;
  border-radius: 4px;
}

.tn-rev-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ece9e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tn-rev-total-lbl {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 600;
}

.tn-rev-total-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #7aad8a;
}

.tn-empty-state {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  text-align: center;
  padding: 44px 20px;
  margin-bottom: 14px;
}

.tn-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.tn-page-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tn-page-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tn-page-emoji {
  font-size: 18px;
}

.tn-page-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
  margin: 0;
}

.tn-page-crumb {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.tn-page-crumb-active {
  color: #2d3436;
  font-weight: 700;
}

.tn-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tn-sv.val-pri {
  color: #5a8bb0;
}

.tn-sv.val-info {
  color: #8b7fb5;
}

.tn-il-sm {
  font-size: 0.6875rem;
}

.tn-card-footer-date {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.tn-card-body-flex {
  flex: 1;
  min-width: 0;
}

.tn-card-badge-start {
  flex-shrink: 0;
  align-self: flex-start;
}

.tn-atn {
  min-width: 28px !important;
  padding: 4px !important;
}

.tn-tbl-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tn-tbl-av {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  flex-shrink: 0;
}

.tn-tbl-name {
  font-weight: 700;
  color: #2d3436;
}

.tn-tbl-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.tn-tbl-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.tn-tbl-bms {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #6b9e7d;
}

.tn-tbl-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.tn-side-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.tn-side-empty-title {
  font-weight: 700;
  color: #2d3436;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.tn-side-empty-desc {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.tn-side-hd-dark {
  background: linear-gradient(135deg, #16191a, #212728);
}

.tn-side-kpi-val.val-pri {
  color: #5a8bb0;
}
.tn-side-kpi-val.val-info {
  color: #8b7fb5;
}
.tn-side-kpi-val.val-warn {
  color: #d4a855;
}

.tn-side-row-sm {
  font-size: 0.6875rem;
}

.tn-side-fin-val.val-ok {
  color: #6b9e7d;
}

.tn-side-lease-my {
  margin: 8px 0;
}

.tn-side-lease-pct {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
}

.tn-side-lease-remain {
  color: #9ca3a8;
}

.tn-side-btn-full {
  width: 100%;
  margin-bottom: 6px;
}

.tn-side-btn-row {
  display: flex;
  gap: 6px;
}

.tn-side-btn-row-mt {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.tn-side-btn-flex {
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TELEMETRY EVENTS — te-* prefix
═══════════════════════════════════════════════════════════════ */
.te-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.te-topbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 0 22px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}

.te-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.te-bc-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
}

.te-bc-sep {
  opacity: 0.35;
}

.te-bc-cur {
  color: #2d3436;
  font-weight: 700;
}

.te-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.te-stream-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
  border: 1px solid #b2dfc5;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}
.te-stream-pill.paused {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
  border-color: #ffe69c;
}

.te-stream-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  animation: teLivePulse 1.5s infinite;
}
.te-stream-pill.paused .te-stream-dot {
  background: #d4a855;
  animation: none;
}

@keyframes teLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 158, 125, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.te-rate-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(156, 163, 168, 0.06);
  border: 1px solid #ece9e4;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
}
.te-rate-badge span {
  font-family: "Space Mono", monospace;
}

.te-kpi-strip {
  display: flex;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.te-kpi {
  flex: 1;
  padding: 10px 14px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
}
.te-kpi:last-child {
  border-right: none;
}
.te-kpi:hover {
  background: #f8faff;
}
.te-kpi::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--te-kc);
}

.te-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.te-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1.1;
  letter-spacing: -1px;
}

.te-kpi-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.te-toolbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.te-ev-pills {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.te-evpill {
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s;
  white-space: nowrap;
}
.te-evpill:hover:not(.active) {
  opacity: 0.8;
}

.te-scroll-tog {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  transition: 0.15s;
  margin-left: auto;
}
.te-scroll-tog.on {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
  border-color: #b2dfc5;
}

.te-clear-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #f9c4d2;
  transition: 0.15s;
}
.te-clear-btn:hover {
  background: #fde8ed;
}

.te-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.te-stream-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.te-ts-cell {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #2d3436;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.te-ts-ms {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.te-ev-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.te-sev-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
}

.te-sev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.te-dev-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.te-dev-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.te-dev-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  white-space: nowrap;
}

.te-dev-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.te-ga-badge {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(156, 163, 168, 0.06);
  color: #8b7fb5;
  white-space: nowrap;
  border: 1px solid #e8e8f0;
}

.te-floor-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.te-zone-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-left: 5px;
}

.te-val-cell {
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.te-payload-preview {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-detail-panel {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-left: 1px solid transparent;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.te-detail-panel.open {
  width: 360px;
  border-left-color: #ece9e4;
}

.te-dp-inner {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.te-dp-inner::-webkit-scrollbar {
  width: 4px;
}
.te-dp-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}

.te-dp-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.te-dp-hd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.te-dp-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.te-dp-evid {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-family: "Space Mono", monospace;
}

.te-dp-close {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: 0.15s;
}
.te-dp-close:hover {
  background: rgba(156, 163, 168, 0.06);
}

.te-dp-banner {
  margin: 12px 16px 0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid;
}

.te-dp-banner-ic {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.te-dp-banner-type {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
}

.te-dp-banner-sub {
  font-size: 0.75rem;
  margin-top: 3px;
  line-height: 1.5;
  opacity: 0.8;
}

.te-dp-sec {
  padding: 10px 16px;
  border-bottom: 1px solid #ece9e4;
}

.te-dp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.te-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 0.75rem;
  gap: 8px;
}

.te-dp-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
  width: 100px;
}

.te-dp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
  word-break: break-all;
}
.te-dp-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.te-payload-box {
  background: #181c32;
  border-radius: 8px;
  padding: 11px 13px;
  overflow-x: auto;
  margin-top: 2px;
}
.te-payload-box::-webkit-scrollbar {
  height: 3px;
}
.te-payload-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.te-payload-line {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.75;
  white-space: pre;
  color: #e2e8f0;
}

.te-pl-key {
  color: #7dd3fc;
}

.te-pl-str {
  color: #a5f3fc;
}

.te-pl-num {
  color: #fcd34d;
}

.te-pl-bool {
  color: #fb923c;
}

.te-etl-item {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.15s;
}
.te-etl-item:hover {
  background: #f8fafe;
}
.te-etl-item:last-child {
  border-bottom: none;
}

.te-etl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.te-etl-body {
  flex: 1;
  min-width: 0;
}

.te-etl-type {
  font-size: 0.75rem;
  font-weight: 700;
}

.te-etl-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
  font-family: "Space Mono", monospace;
}

.te-etl-time {
  font-size: 0.6875rem;
  color: #9ca3a8;
  white-space: nowrap;
  margin-left: auto;
  font-family: "Space Mono", monospace;
}

.te-dp-acts {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.te-dp-act-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  font-family: "DM Sans", -apple-system, sans-serif;
  color: #4a4e54;
}
.te-dp-act-btn:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
}

.te-stats-sidebar {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-right: 1px solid transparent;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.te-stats-sidebar.open {
  width: 240px;
  border-right-color: #ece9e4;
}

.te-ss-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}
.te-ss-scroll::-webkit-scrollbar {
  width: 4px;
}
.te-ss-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}

.te-ss-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  margin-top: 12px;
}
.te-ss-title:first-child {
  margin-top: 0;
}

.te-ss-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid #ece9e4;
}
.te-ss-row:last-child {
  border-bottom: none;
}

.te-ss-lbl {
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.te-ss-val {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}

.te-freq-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.15s;
}
.te-freq-row:hover {
  background: #f8fafe;
  margin: 0 -4px;
  padding: 4px;
}
.te-freq-row:last-child {
  border-bottom: none;
}

.te-freq-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.te-freq-name {
  font-weight: 700;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.te-freq-cnt {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.te-freq-bar {
  height: 4px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.te-freq-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
}

.te-stream-wrap .e-grid {
  border: none;
}
.te-stream-wrap .e-grid .e-gridheader {
  background: #fafbfe;
}
.te-stream-wrap .e-grid .e-headercell {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.te-stream-wrap .e-grid .e-rowcell {
  padding: 8px 12px;
  vertical-align: middle;
}
.te-stream-wrap .e-grid .e-row:hover .e-rowcell {
  background: #f7fbff;
}
.te-stream-wrap .e-grid .e-row.e-altrow .e-rowcell {
  background: transparent;
}

/* ===================================================================
   TELEMETRY LIVE DATA — lv-* prefix
   =================================================================== */
.lv-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
  background: #faf9f7;
}

/* --- Topbar --- */
.lv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
}

.lv-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
}

.lv-bc-link {
  color: #5a8bb0;
  cursor: pointer;
  font-weight: 600;
}
.lv-bc-link:hover {
  text-decoration: underline;
}

.lv-bc-sep {
  opacity: 0.35;
  margin: 0 2px;
}

.lv-bc-cur {
  font-weight: 700;
  color: #2d3436;
}

.lv-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lv-rate-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a5e64;
  background: rgba(156, 163, 168, 0.06);
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 4px 10px;
}
.lv-rate-badge span:first-child {
  color: #5a8bb0;
  font-size: 0.6875rem;
}

.lv-conn-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.lv-conn-pill.live {
  background: rgba(107, 158, 125, 0.08);
  color: #1b8b4f;
}
.lv-conn-pill.live .lv-conn-dot {
  background: #6b9e7d;
  animation: lv-pulse 1.5s infinite;
}
.lv-conn-pill.paused {
  background: rgba(212, 168, 85, 0.08);
  color: #b87c00;
}
.lv-conn-pill.paused .lv-conn-dot {
  background: #d4a855;
}

.lv-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

@keyframes lv-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 158, 125, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(107, 158, 125, 0);
  }
}
/* --- Alert Banner --- */
.lv-alert-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 22px;
  background: rgba(196, 97, 110, 0.08);
  border-bottom: 2px solid rgba(196, 97, 110, 0.13);
}
.lv-alert-banner.show {
  display: flex;
}

.lv-alert-icon {
  font-size: 1rem;
  animation: lv-shake 0.4s ease-in-out infinite alternate;
}

@keyframes lv-shake {
  0% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(3deg);
  }
}
.lv-alert-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c4616e;
}

.lv-alert-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.lv-ab-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  cursor: pointer;
  transition: all 0.15s;
}
.lv-ab-chip:hover {
  background: #c4616e;
  color: #fff;
}

/* --- KPI Strip --- */
.lv-kpi-strip {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  overflow-x: auto;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
}

.lv-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.lv-kpi.lv-kpi-b {
  border-bottom-color: #5a8bb0;
}
.lv-kpi.lv-kpi-g {
  border-bottom-color: #7aad8a;
}
.lv-kpi.lv-kpi-r {
  border-bottom-color: #c4616e;
}
.lv-kpi.lv-kpi-w {
  border-bottom-color: #d4a855;
}
.lv-kpi.lv-kpi-t {
  border-bottom-color: #00c9a7;
}
.lv-kpi.lv-kpi-i {
  border-bottom-color: #8b7fb5;
}
.lv-kpi.lv-kpi-o {
  border-bottom-color: #f5813f;
}

.lv-kpi-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.lv-kpi-body {
  display: flex;
  flex-direction: column;
}

.lv-kpi-label {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lv-kpi-value {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.2;
}

.lv-kpi-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

/* --- Filter Bar --- */
.lv-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-wrap: wrap;
}

.lv-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lv-search-icon {
  position: absolute;
  left: 8px;
  font-size: 0.8125rem;
  z-index: 1;
  pointer-events: none;
}

.lv-search-input {
  padding-left: 28px !important;
  width: 200px;
  font-size: 0.75rem;
}

.lv-dropdown {
  font-size: 0.75rem;
}

.lv-type-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.lv-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(156, 163, 168, 0.06);
  color: #5a5e64;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lv-pill:hover {
  background: #e8ecf4;
}
.lv-pill.on {
  background: #5a8bb0;
  color: #fff;
  border-color: #5a8bb0;
}

.lv-vt-wrap {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.lv-vt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #9ca3a8;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.lv-vt:hover {
  background: rgba(156, 163, 168, 0.06);
  color: #2d3436;
}
.lv-vt.on {
  background: #5a8bb0;
  color: #fff;
}

/* --- Body Layout --- */
.lv-body-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.lv-sensor-pane {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

/* --- No Results --- */
.lv-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3a8;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Floor Headers --- */
.lv-floor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}
.lv-floor-header:first-child {
  margin-top: 0;
}

.lv-floor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lv-floor-count {
  font-weight: 500;
  color: #9ca3a8;
  font-size: 0.75rem;
}

.lv-floor-alert {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #c4616e;
  background: rgba(196, 97, 110, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* --- Sensor Grid (grid + compact) --- */
.lv-sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.lv-sensor-grid.compact-view {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 7px;
}
.lv-sensor-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* --- Sensor Card --- */
.lv-sc {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.lv-sc:hover {
  border-color: #5a8bb0;
  transform: translateY(-1px);
  box-shadow: none;
}
.lv-sc.selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 2px rgba(90, 139, 176, 0.15);
}
.lv-sc.alert {
  border-color: #c4616e;
  box-shadow: 0 0 0 1px rgba(196, 97, 110, 0.12);
}
.lv-sc.warn {
  border-color: #d4a855;
  box-shadow: 0 0 0 1px rgba(212, 168, 85, 0.12);
}
.lv-sc.offline {
  opacity: 0.5;
  border-style: dashed;
}

.lv-sc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.lv-sc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.lv-sc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lv-sc-value {
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.lv-sc-unit {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 2px;
}

.lv-sc-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-sc-loc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 6px;
}

.lv-sc-spark {
  margin: 4px 0;
}

.lv-sc-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.lv-sc-ga {
  font-family: "Space Mono", monospace;
}

.lv-sc-age {
  font-family: "Space Mono", monospace;
}

/* --- List View Row --- */
.lv-sl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.lv-sl:hover {
  border-color: #5a8bb0;
  background: #f9fbff;
}
.lv-sl.alert {
  border-left: 3px solid #c4616e;
}
.lv-sl.warn {
  border-left: 3px solid #d4a855;
}
.lv-sl.offline {
  opacity: 0.5;
  border-style: dashed;
}

.lv-sl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lv-sl-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.lv-sl-info {
  flex: 1;
  min-width: 0;
}

.lv-sl-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-sl-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.lv-sl-ga {
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
}

.lv-sl-spark {
  flex-shrink: 0;
}

.lv-sl-value {
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: right;
  min-width: 70px;
}

.lv-sl-unit {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 2px;
}

/* --- Heatmap View --- */
.lv-hm-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.lv-hm-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.lv-hm-gradient {
  width: 120px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4285f4, #6b9e7d, #d4a855, #f5813f, #c4616e);
}

.lv-hm-legend-low,
.lv-hm-legend-high {
  font-weight: 600;
  font-size: 0.6875rem;
}

.lv-hm-floor-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin: 16px 0 8px;
}
.lv-hm-floor-header:first-of-type {
  margin-top: 0;
}

.lv-hm-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.lv-hm-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.lv-hm-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.lv-hm-room {
  position: relative;
  min-height: 72px;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lv-hm-room:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.06);
}
.lv-hm-room.alert {
  animation: lv-alertPulse 1.2s infinite;
}

@keyframes lv-alertPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 97, 110, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(196, 97, 110, 0);
  }
}
.lv-hm-zone {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
}

.lv-hm-val {
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lv-hm-unit {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 2px;
}

.lv-hm-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.lv-hm-status-dot.alert {
  background: #fefefe;
  animation: lv-pulse 1.5s infinite;
}

.lv-hm-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-top: 8px;
}

/* --- Gauge View --- */
.lv-gauge-type-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}
.lv-gauge-type-header:first-child {
  margin-top: 0;
}

.lv-gauge-type-icon {
  font-size: 1rem;
}

.lv-gauge-type-label {
  font-weight: 700;
}

.lv-gauge-type-count {
  font-weight: 500;
  color: #9ca3a8;
  font-size: 0.75rem;
}

.lv-gauge-range {
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
  background: rgba(156, 163, 168, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.lv-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.lv-gauge-card {
  position: relative;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.lv-gauge-card:hover {
  border-color: #5a8bb0;
  transform: translateY(-1px);
  box-shadow: none;
}
.lv-gauge-card.alert {
  border-color: #c4616e;
  box-shadow: 0 0 0 1px rgba(196, 97, 110, 0.12);
}
.lv-gauge-card.warn {
  border-color: #d4a855;
}
.lv-gauge-card.offline {
  opacity: 0.5;
  border-style: dashed;
}

.lv-gauge-svg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.lv-gauge-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-gauge-loc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 4px;
}

.lv-gauge-spark {
  display: flex;
  justify-content: center;
}

.lv-gauge-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* --- Grouped View --- */
.lv-grp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d3436;
}

.lv-grp-floor-legend {
  display: flex;
  gap: 8px;
}

.lv-grp-fl-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5a5e64;
}

.lv-grp-fl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.lv-grp-section {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.lv-grp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.lv-grp-section-header:hover {
  background: #f9fbff;
}

.lv-grp-collapse-icon {
  font-size: 0.6875rem;
  color: #9ca3a8;
  width: 14px;
  text-align: center;
}

.lv-grp-type-icon {
  font-size: 1rem;
}

.lv-grp-type-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.lv-grp-type-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3a8;
}

.lv-grp-alert-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #c4616e;
  background: rgba(196, 97, 110, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.lv-grp-warn-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #b87c00;
  background: rgba(212, 168, 85, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.lv-grp-section-body {
  padding: 0 14px 14px;
}

.lv-grp-sparkline-wrap {
  margin-bottom: 6px;
}

.lv-grp-spark-hint {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 10px;
}

.lv-grp-ranked {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lv-grp-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.lv-grp-rank-num {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  width: 22px;
  text-align: right;
}

.lv-grp-rank-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lv-grp-rank-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-grp-rank-floor {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3a8;
  width: 24px;
  text-align: center;
}

.lv-grp-rank-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.lv-grp-rank-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.lv-grp-rank-value {
  font-family: "Space Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

/* --- Right Panel --- */
.lv-right-panel {
  width: 280px;
  flex-shrink: 0;
  background: #fefefe;
  border-left: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lv-rp-tabs {
  display: flex;
  border-bottom: 1px solid #ece9e4;
}

.lv-rp-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.lv-rp-tab:hover {
  color: #2d3436;
}
.lv-rp-tab.on {
  color: #5a8bb0;
  border-bottom-color: #5a8bb0;
}

.lv-rp-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

/* --- Event Feed --- */
.lv-ev-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.lv-ev-item:hover {
  background: #f9fbff;
}

.lv-ev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.lv-ev-body {
  flex: 1;
  min-width: 0;
}

.lv-ev-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-ev-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.lv-ev-val {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #2d3436;
  margin-left: 4px;
}

.lv-ev-time {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Stats Panel --- */
.lv-stat-section {
  margin-bottom: 14px;
}

.lv-stat-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ece9e4;
}

.lv-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.75rem;
}

.lv-stat-label {
  color: #9ca3a8;
  font-weight: 500;
}

.lv-stat-value {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #2d3436;
}

/* --- Type Status Bars --- */
.lv-type-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.75rem;
}

.lv-type-bar-icon {
  font-size: 0.8125rem;
  width: 18px;
  text-align: center;
}

.lv-type-bar-label {
  font-weight: 600;
  color: #2d3436;
  min-width: 60px;
}

.lv-type-bar-count {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  width: 20px;
  text-align: right;
}

.lv-type-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.lv-type-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.oc-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.oc-topbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.oc-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.oc-bc-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
}

.oc-bc-sep {
  opacity: 0.35;
}

.oc-bc-cur {
  color: #2d3436;
  font-weight: 700;
}

.oc-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.oc-bld-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(156, 163, 168, 0.06);
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 4px 12px;
}

.oc-bld-cnt {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
}

.oc-bld-cap {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.oc-bld-pct {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}

.oc-live-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
  border: 1px solid #b2dfc5;
  cursor: pointer;
  transition: 0.3s;
}
.oc-live-chip.paused {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
  border-color: #ffe69c;
}

.oc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  animation: ocDotPulse 1.4s infinite;
}
.oc-live-chip.paused .oc-live-dot {
  background: #d4a855;
  animation: none;
}

@keyframes ocDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 158, 125, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.oc-kpi-strip {
  display: flex;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.oc-kpi {
  flex: 1;
  padding: 9px 14px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
}
.oc-kpi:last-child {
  border-right: none;
}
.oc-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--oc-kc, #5a8bb0);
}

.oc-kpi-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3a8;
  margin-bottom: 3px;
}

.oc-kpi-val {
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  transition: 0.2s;
}

.oc-kpi-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.oc-toolbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.oc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.oc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.oc-fl-pills {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex-shrink: 0;
}

.oc-fl-pills::-webkit-scrollbar {
  display: none;
}

.oc-fp {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  white-space: nowrap;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.oc-fp:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}
.oc-fp.on {
  background: #5a8bb0;
  color: #fff;
  border-color: #5a8bb0;
}

.oc-fp-cnt {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.1);
}
.oc-fp.on .oc-fp-cnt {
  background: rgba(255, 255, 255, 0.22);
}

.oc-leg {
  display: flex;
  gap: 7px;
  align-items: center;
}

.oc-ol {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.oc-ol-sw {
  width: 10px;
  height: 10px;
  border-radius: 4px;
}

.oc-view-grp {
  display: flex;
  gap: 2px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 6px;
  padding: 2px;
}

.oc-vb {
  width: 28px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #9ca3a8;
  transition: 0.15s;
}
.oc-vb.on {
  background: #fefefe;
  color: #2d3436;
  box-shadow: none;
}

.oc-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.oc-left-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.oc-plan-view {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #f0f4f8;
  position: relative;
}
.oc-plan-view::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.oc-plan-view::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.oc-plan-canvas {
  position: relative;
  margin: 20px auto;
  user-select: none;
}

.oc-floor-label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  pointer-events: none;
  background: rgba(240, 244, 248, 0.85);
  padding: 2px 8px;
  border-radius: 8px;
}

.oc-room {
  position: absolute;
  border-radius: 8px;
  border: 1px solid;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  overflow: hidden;
}
.oc-room:hover {
  transform: scale(1.012);
  z-index: 10;
}
.oc-room.sel {
  box-shadow: 0 0 0 3px #5a8bb0;
  border-color: #5a8bb0 !important;
  z-index: 20;
}

.oc-room-inner {
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.oc-room-name {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 2;
  position: relative;
}

.oc-room-count {
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  position: relative;
}

.oc-room-pct {
  font-size: 0.6875rem;
  font-weight: 700;
  opacity: 0.75;
  z-index: 2;
  position: relative;
}

.oc-room-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 0 0 0 8px;
  transition: width 0.6s;
}

.oc-list-view {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oc-list-view::-webkit-scrollbar {
  width: 5px;
}
.oc-list-view::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.oc-list-fl-hd {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ece9e4;
  margin-bottom: 4px;
}

.oc-room-row {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: 0.15s;
}
.oc-room-row:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}
.oc-room-row.sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.oc-rr-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.oc-rr-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  white-space: nowrap;
}

.oc-rr-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.oc-rr-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.oc-rr-bar-track {
  height: 6px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.oc-rr-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
}

.oc-rr-cnt {
  text-align: right;
  flex-shrink: 0;
  min-width: 70px;
}

.oc-rr-big {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.oc-rr-badge {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
}

.oc-dp {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-left: 1px solid transparent;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.oc-dp.open {
  width: 320px;
  border-left-color: #ece9e4;
}

.oc-dp-hd {
  padding: 11px 14px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.oc-dp-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: 0.15s;
}
.oc-dp-close:hover {
  background: rgba(156, 163, 168, 0.06);
}

.oc-dp-scroll {
  flex: 1;
  overflow-y: auto;
}
.oc-dp-scroll::-webkit-scrollbar {
  width: 4px;
}
.oc-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}

.oc-dp-sec {
  padding: 10px 14px;
  border-bottom: 1px solid #ece9e4;
}

.oc-dp-sec-ttl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 7px;
}

.oc-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.75rem;
}

.oc-dp-lbl {
  color: #9ca3a8;
}

.oc-dp-val {
  font-weight: 700;
  color: #2d3436;
}

.oc-hour-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 44px;
  padding: 0 2px;
}

.oc-hb {
  flex: 1;
  border-radius: 4px 2px 0 0;
  min-height: 2px;
  transition: height 0.35s, background 0.3s;
  cursor: pointer;
}
.oc-hb:hover {
  filter: brightness(0.85);
}
.oc-hb.cur {
  outline: 2px solid #5a8bb0;
  outline-offset: 1px;
}

/* ── Alert Banner ── */
.fl-alert-banner {
  background: linear-gradient(135deg, #2d0a12, #3d0f1b);
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 24px rgba(196, 97, 110, 0.2);
  border: 1px solid rgba(196, 97, 110, 0.3);
}

.fl-alert-icon {
  font-size: 28px;
  flex-shrink: 0;
  animation: fl-shake 2s ease infinite;
}

@keyframes fl-shake {
  0%, 100% {
    transform: rotate(0);
  }
  10%, 30% {
    transform: rotate(-4deg);
  }
  20%, 40% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(0);
  }
}
.fl-alert-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.fl-alert-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ── Live Pulse (danger) ── */
.pulse-danger {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4616e;
  display: inline-block;
  animation: fl-livepulse 1.4s infinite;
}

@keyframes fl-livepulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
/* ── Layout ── */
.fl-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.fl-main-col {
  flex: 1;
  min-width: 0;
}

.fl-side-col {
  flex: 0 0 296px;
  position: sticky;
  top: 78px;
}

/* ── Status Tabs ── */
.fl-status-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.fl-st {
  padding: 11px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #9ca3a8;
  border-right: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: 0.15s;
  white-space: nowrap;
}
.fl-st:last-child {
  border-right: none;
}
.fl-st:hover {
  background: #f8faff;
}
.fl-st.fl-st-active {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}
.fl-st.fl-st-active .fl-st-cnt {
  background: #5a8bb0;
  color: #fff;
}

.fl-st-cnt {
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* ── Severity Badges ── */
.fl-sev-crit {
  background: #c4616e;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.fl-sev-high {
  background: #d4a855;
  color: #2d3436;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.fl-sev-med {
  background: #5a8bb0;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.fl-sev-low {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* ── Event Card ── */
.fl-ev-card {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
}
.fl-ev-card:hover {
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
  transform: translateY(-1px);
}
.fl-ev-card.fl-ev-selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}
.fl-ev-card.fl-ev-crit {
  border-left: 4px solid #c4616e;
}
.fl-ev-card.fl-ev-high {
  border-left: 4px solid #d4a855;
}
.fl-ev-card.fl-ev-med {
  border-left: 4px solid #5a8bb0;
}
.fl-ev-card.fl-ev-low {
  border-left: 4px solid #9ca3a8;
}
.fl-ev-card.fl-ev-resolved {
  border-left: 4px solid #7aad8a;
  opacity: 0.85;
}

.fl-ev-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #c4616e;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  animation: fl-newbadge 2s ease infinite;
}

@keyframes fl-newbadge {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.fl-ev-body {
  padding: 13px 16px;
}

.fl-ev-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.fl-ev-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  line-height: 1.3;
  margin-bottom: 3px;
}

.fl-ev-device {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-bottom: 6px;
}

.fl-ev-meta {
  display: flex;
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid #ece9e4;
  flex-wrap: wrap;
}

.fl-em-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fl-em-val {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.fl-em-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

/* ── Detail Panel ── */
.fl-detail-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fl-detail-stat-val {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.fl-detail-stat-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.fl-detail-sec {
  padding: 13px 16px;
  border-bottom: 1px solid #ece9e4;
}
.fl-detail-sec:last-child {
  border-bottom: none;
}

.fl-detail-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

/* ── Timeline ── */
.fl-tl-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.fl-tl-item:last-child {
  border-bottom: none;
}

.fl-tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Bar Chart (sidebar) ── */
.fl-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.fl-bar-lbl {
  width: 90px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-bar-track {
  flex: 1;
  height: 7px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.fl-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.fl-bar-val {
  width: 30px;
  text-align: right;
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
}

.fl-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.fl-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fl-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fde8ec, #f9d0d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.fl-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.fl-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.fl-topbar-link {
  color: #5a8bb0;
  cursor: pointer;
}
.fl-topbar-link:hover {
  text-decoration: underline;
}

.fl-topbar-sep {
  color: #9ca3a8;
}

.fl-topbar-cur {
  color: #2d3436;
  font-weight: 700;
}

.fl-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.fl-topbar-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c4616e;
}

.fl-pulse-danger {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4616e;
  display: inline-block;
  animation: fl-livepulse 1.4s infinite;
}

.fl-kpi-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.fl-kpi-card {
  flex: 1;
  min-width: 165px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fl-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.fl-kpi-body {
  flex: 1;
  min-width: 0;
}

.fl-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #2d3436;
}

.fl-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-top: 3px;
}

.fl-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

.fl-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.fl-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.fl-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.fl-search-input .e-input-group {
  height: 30px;
}

.fl-filter-sel .e-input-group {
  height: 30px;
}

.fl-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.fl-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.fl-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.fl-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.fl-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.fl-alert-content {
  flex: 1;
  min-width: 0;
}

.fl-alert-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  font-weight: 700;
  flex-shrink: 0;
}
.fl-alert-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.fl-ev-empty {
  text-align: center;
  padding: 50px 20px;
  color: #9ca3a8;
  font-size: 0.8125rem;
}

.fl-ev-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.fl-ev-main {
  flex: 1;
  min-width: 0;
}

.fl-ev-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.fl-ev-tag-wrap {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.fl-ev-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}

.fl-em-val-danger {
  color: #c4616e;
}

.fl-em-val-ok {
  color: #7aad8a;
}

.fl-em-val-warn {
  color: #d4a855;
}

.fl-em-val-muted {
  color: #9ca3a8;
}

.fl-detail-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 16px;
}

.fl-detail-hd {
  padding: 16px 18px;
  position: relative;
}

.fl-detail-hd-inner {
  position: relative;
  z-index: 1;
}

.fl-detail-hd-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fl-detail-hd-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 24px;
  flex-shrink: 0;
}

.fl-detail-hd-info {
  flex: 1;
  min-width: 0;
}

.fl-detail-hd-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.3;
  max-width: 500px;
}

.fl-detail-hd-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  margin-top: 3px;
}

.fl-detail-hd-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fl-detail-hd-status {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.fl-detail-hd-tag {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.fl-detail-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}

.fl-dsv-danger {
  color: #ff8faa;
}

.fl-dsv-ok {
  color: #6aeaaa;
}

.fl-dsv-warn {
  color: #ffd55a;
}

.fl-detail-close {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}
.fl-detail-close:hover {
  color: #fff;
}

.fl-detail-drow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
  gap: 8px;
}
.fl-detail-drow:last-child {
  border-bottom: none;
}

.fl-detail-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
  flex-shrink: 0;
}

.fl-detail-dr-val {
  font-weight: 700;
  color: #2d3436;
  font-size: 0.75rem;
  text-align: right;
}

.fl-detail-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.fl-detail-dr-primary {
  color: #5a8bb0;
}

.fl-detail-dr-ok {
  color: #7aad8a;
}

.fl-detail-desc {
  font-size: 0.75rem;
  color: #4a4e54;
  line-height: 1.75;
}

.fl-detail-affected {
  font-size: 0.75rem;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  color: #4a4e54;
}
.fl-detail-affected:last-child {
  border-bottom: none;
}

.fl-tl-content {
  flex: 1;
}

.fl-tl-time {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.fl-tl-text {
  font-size: 0.75rem;
  color: #4a4e54;
  margin-top: 1px;
}

.fl-detail-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.fl-detail-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-detail-action-main {
  width: 100%;
}

.fl-detail-resolved-msg {
  text-align: center;
  padding: 10px;
  background: rgba(107, 158, 125, 0.08);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  color: #7aad8a;
}

.fl-cat-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.fl-cat-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.fl-hm-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.fl-hm-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.fl-hm-row {
  display: flex;
  gap: 4px;
  padding: 0 2px;
  margin-bottom: 4px;
}

.fl-hm-row-label {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
  width: 22px;
  text-align: center;
  padding-top: 2px;
  flex-shrink: 0;
}

.fl-hm-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  flex: 1;
  gap: 3px;
}

.fl-hm-hour {
  font-size: 8px;
  color: #9ca3a8;
  text-align: center;
}

.fl-hm-cell {
  height: 18px;
  border-radius: 4px;
}

.fl-hm-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.fl-hm-legend-cells {
  display: flex;
  gap: 3px;
}

.fl-hm-legend-cell {
  width: 16px;
  height: 8px;
  border-radius: 4px;
}

.fl-td-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.fl-td-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.fl-td-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-td-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.fl-td-name {
  font-weight: 700;
}

.fl-td-count {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.fl-sla-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.fl-sla-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.fl-sla-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fl-sla-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.fl-sla-label {
  font-weight: 600;
}

.fl-sla-value {
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.fl-sla-bar {
  height: 7px;
}

.fl-sla-note {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.ih-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.ih-main-col {
  flex: 1;
  min-width: 0;
}

.ih-side-col {
  flex: 0 0 296px;
  position: sticky;
  top: 78px;
}

.ih-vt {
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.ih-vt-active {
  background: #fefefe;
  color: #5a8bb0;
  box-shadow: none;
}

.ih-vt-sf.e-btn {
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
}
.ih-vt-sf.e-btn.ih-vt-active {
  background: #fefefe;
  color: #5a8bb0;
}

.ih-year-group {
  margin-bottom: 28px;
}

.ih-year-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ih-year-label {
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
  font-family: "Space Mono", monospace;
}

.ih-year-line {
  flex: 1;
  height: 1.5px;
  background: #ece9e4;
}

.ih-ys {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fefefe;
  border: 1px solid #ece9e4;
}

.ih-ir {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  position: relative;
}

.ih-ir-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.ih-ir-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #5a8bb0;
}

.ih-ir-line {
  width: 2px;
  flex: 1;
  background: #ece9e4;
  margin-top: 4px;
}

.ih-ir-card {
  flex: 1;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.15s;
  margin-bottom: 2px;
}
.ih-ir-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}

.ih-ir-selected {
  border-color: #5a8bb0 !important;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12) !important;
}

.ih-ir-body {
  padding: 14px 16px;
}

.ih-ir-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ih-ir-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  line-height: 1.3;
  margin-bottom: 3px;
}

.ih-ir-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-bottom: 6px;
}

.ih-ir-meta {
  display: flex;
  gap: 16px;
  padding-top: 9px;
  border-top: 1px solid #ece9e4;
  flex-wrap: wrap;
}

.ih-im-val {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
}

.ih-im-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.ih-tp {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
}

.ih-tp-install {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.ih-tp-fw {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.ih-tp-replace {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.ih-tp-commission {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.ih-tp-decommission {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.ih-tp-config {
  background: #e0faf5;
  color: #00c9a7;
}

.ih-inst-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ih-sp-hd {
  padding: 14px 16px;
  background: linear-gradient(135deg, #0b1733, #162248);
  position: relative;
}

.ih-sp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.ih-drow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
  gap: 8px;
}
.ih-drow:last-child {
  border-bottom: none;
}

.ih-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
  flex-shrink: 0;
}

.ih-dr-val {
  font-weight: 700;
  color: #2d3436;
  font-size: 0.75rem;
  text-align: right;
}

.ih-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.ih-bd-pri, .ih-bd-gray, .ih-bd-teal, .ih-bd-warn, .ih-bd-ok, .ih-bd-inf {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.ih-bd-inf {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.ih-bd-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.ih-bd-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.ih-bd-teal {
  background: #e0faf5;
  color: #00c9a7;
}

.ih-bd-gray {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.ih-table-grid {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.ih-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ih-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.ih-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ih-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ih-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.ih-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.ih-topbar-link {
  color: #5a8bb0;
  cursor: pointer;
}
.ih-topbar-link:hover {
  text-decoration: underline;
}

.ih-topbar-sep {
  color: #9ca3a8;
}

.ih-topbar-cur {
  color: #2d3436;
  font-weight: 700;
}

.ih-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ih-kpi-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.ih-kpi {
  flex: 1;
  min-width: 165px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ih-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ih-kpi-body {
  flex: 1;
  min-width: 0;
}

.ih-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #2d3436;
}

.ih-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-top: 3px;
}

.ih-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

.ih-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.ih-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.ih-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.ih-search-input .e-input-group {
  height: 30px;
}

.ih-filter-sel .e-input-group {
  height: 30px;
}

.ih-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.ih-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.ih-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.ih-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.ih-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.ih-year-stats {
  display: flex;
  gap: 8px;
}

.ih-ys-primary {
  color: #5a8bb0;
}

.ih-ys-ok {
  color: #7aad8a;
}

.ih-ys-fw {
  color: #8b7fb5;
}

.ih-ir-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ih-ir-main {
  flex: 1;
  min-width: 0;
}

.ih-ir-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ih-ir-date {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
}

.ih-ir-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ih-tag {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
}

.ih-tag-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.ih-tag-muted {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.ih-tag-fw {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.ih-tag-company {
  background: #fff3ec;
  color: #f5813f;
}

.ih-ir-installer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ih-ir-inst-name {
  font-size: 0.6875rem;
  color: #9ca3a8;
  text-align: right;
  max-width: 90px;
}

.ih-tbl-dev-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ih-tbl-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ih-tbl-dev-name {
  font-weight: 700;
  color: #2d3436;
  font-size: 0.75rem;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ih-tbl-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  white-space: nowrap;
}

.ih-tbl-inst-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ih-inst-av-sm {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.6875rem !important;
}

.ih-tbl-inst-name {
  font-size: 0.75rem;
}

.ih-tbl-addr {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a8bb0;
}

.ih-tbl-serial {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.ih-tbl-fw {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.ih-tbl-action {
  font-size: 0.8125rem;
  cursor: pointer;
  color: #5a8bb0;
}

.ih-sp-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
  margin-bottom: 12px;
}

.ih-sp-empty {
  text-align: center;
  padding: 36px 18px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  margin-bottom: 12px;
}

.ih-sp-empty-icon {
  font-size: 48px;
  opacity: 0.18;
  margin-bottom: 12px;
}

.ih-sp-empty-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  margin-bottom: 5px;
}

.ih-sp-empty-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.7;
}

.ih-sp-hd-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ih-sp-hd-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ih-sp-hd-info {
  flex: 1;
  min-width: 0;
}

.ih-sp-hd-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.3;
  max-width: 220px;
}

.ih-sp-hd-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  margin-top: 2px;
}

.ih-sp-hd-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.ih-sp-hd-bldg {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.ih-sp-section {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
}
.ih-sp-section:last-child {
  border-bottom: none;
}

.ih-sp-notes {
  font-size: 0.75rem;
  color: #4a4e54;
  line-height: 1.75;
}

.ih-sp-cl-item {
  display: flex;
  gap: 7px;
  padding: 4px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid #ece9e4;
}
.ih-sp-cl-item:last-child {
  border-bottom: none;
}

.ih-sp-cl-check {
  color: #7aad8a;
}

.ih-sp-hist-item {
  font-size: 0.75rem;
  padding: 4px 0;
  color: #9ca3a8;
  border-bottom: 1px solid #ece9e4;
}
.ih-sp-hist-item:last-child {
  border-bottom: none;
}

.ih-sp-inst-val {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ih-sp-loc-val {
  text-align: right;
  font-size: 0.75rem;
}

.ih-sp-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 16px;
}

.ih-sp-action-main {
  width: 100%;
}

.ih-sp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ih-ms-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.ih-ms-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.ih-ms-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ih-ms-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.ih-ms-label {
  font-weight: 600;
}

.ih-ms-count {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.ih-tb-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.ih-tb-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.ih-tb-body {
  display: flex;
  flex-direction: column;
}

.mf-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.mf-left-col {
  flex: 0 0 320px;
}

.mf-right-col {
  flex: 1;
  min-width: 0;
}

.mf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
}
.mf-item:last-child {
  border-bottom: none;
}
.mf-item:hover {
  background: #f8faff;
}

.mf-item-selected {
  background: rgba(90, 139, 176, 0.08) !important;
  border-left: 3px solid #5a8bb0;
}
.mf-item-selected .mf-name {
  color: #5a8bb0;
}

.mf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  right: 14px;
  top: 14px;
}

.mf-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  font-family: "Space Mono", monospace;
  border: 1px solid #ece9e4;
}

.mf-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  line-height: 1.2;
  margin-bottom: 2px;
}

.mf-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.mf-proto {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  display: inline-flex;
  margin: 1px;
}

.mf-p-knx {
  background: #1a1e3a;
  color: #8ba4ff;
}

.mf-p-ip {
  background: #001f3a;
  color: #6aceff;
}

.mf-p-bac {
  background: #0d3320;
  color: #6aeaaa;
}

.mf-p-mod {
  background: #3a2000;
  color: #ffd06a;
}

.mf-p-dali {
  background: #1a2a00;
  color: #a0d060;
}

.mf-dh {
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.mf-dh-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: "Space Mono", monospace;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.mf-dh-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.mf-cert {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid;
}

.mf-cert-knx {
  background: rgba(90, 139, 176, 0.15);
  color: #6aceff;
  border-color: rgba(90, 139, 176, 0.3);
}

.mf-cert-iso {
  background: rgba(107, 158, 125, 0.15);
  color: #6aeaaa;
  border-color: rgba(107, 158, 125, 0.3);
}

.mf-cert-ce {
  background: rgba(212, 168, 85, 0.15);
  color: #ffd55a;
  border-color: rgba(212, 168, 85, 0.3);
}

.mf-cert-bacnet {
  background: rgba(139, 127, 181, 0.15);
  color: #b39dff;
  border-color: rgba(139, 127, 181, 0.3);
}

.mf-cert-dali {
  background: rgba(0, 201, 167, 0.15);
  color: #5af0da;
  border-color: rgba(0, 201, 167, 0.3);
}

.mf-cert-ul {
  background: rgba(245, 129, 63, 0.15);
  color: #ffb07a;
  border-color: rgba(245, 129, 63, 0.3);
}

.mf-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #ece9e4;
}

.mf-stat-box {
  background: #f8faff;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
  border: 1px solid #ece9e4;
}

.mf-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
  letter-spacing: -0.5px;
}

.mf-stat-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.mf-tabs {
  display: flex;
  border-bottom: 2px solid #ece9e4;
  padding: 0 24px;
}

.mf-tab {
  padding: 11px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: 0.15s;
  white-space: nowrap;
}
.mf-tab:hover {
  color: #4a4e54;
}

.mf-tab-active {
  color: #5a8bb0 !important;
  border-bottom-color: #5a8bb0 !important;
}

.mf-product-grid {
  border-radius: 8px;
  overflow: hidden;
}

.mf-warr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.mf-warr-row:last-child {
  border-bottom: none;
}

.mf-wbar {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: rgba(156, 163, 168, 0.06);
  overflow: hidden;
}

.mf-wbar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.mf-contract-box {
  padding: 14px;
  background: #f8faff;
  border-radius: 8px;
  border: 1px solid #ece9e4;
}

.mf-contact-card {
  background: #f8faff;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #ece9e4;
  margin-bottom: 10px;
}
.mf-contact-card:last-child {
  margin-bottom: 0;
}

.mf-doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8faff;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.15s;
}
.mf-doc-card:hover {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
}

.mf-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.mf-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mf-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.mf-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.mf-topbar-link {
  color: #5a8bb0;
  cursor: pointer;
}
.mf-topbar-link:hover {
  text-decoration: underline;
}

.mf-topbar-sep {
  color: #9ca3a8;
}

.mf-topbar-cur {
  color: #2d3436;
  font-weight: 700;
}

.mf-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mf-kpi-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.mf-kpi {
  flex: 1;
  min-width: 165px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  border-bottom: 2.5px solid transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mf-kpi-body {
  flex: 1;
  min-width: 0;
}

.mf-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #2d3436;
}

.mf-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-top: 3px;
}

.mf-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

.mf-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.mf-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.mf-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.mf-search-input .e-input-group {
  height: 30px;
}

.mf-filter-sel .e-input-group {
  height: 30px;
}

.mf-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.mf-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.mf-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.mf-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.mf-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.mf-list-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
}

.mf-list-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.mf-list-hd-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.mf-list-hd-count {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-left: 6px;
}

.mf-item-body {
  flex: 1;
  min-width: 0;
}

.mf-item-protos {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.mf-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.mf-item-dev-count {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
}

.mf-item-dev-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  text-transform: uppercase;
  font-weight: 700;
}

.mf-badge-fw {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.mf-detail-panel {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
  overflow: hidden;
}

.mf-detail-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #ece9e4;
}

.mf-detail-empty-icon {
  font-size: 48px;
  opacity: 0.18;
  margin-bottom: 12px;
}

.mf-detail-empty-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #2d3436;
  margin-bottom: 6px;
}

.mf-detail-empty-sub {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.7;
}

.mf-dh-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.mf-dh-info {
  flex: 1;
  min-width: 0;
}

.mf-dh-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  margin-top: 4px;
}

.mf-dh-protos {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mf-dh-count-wrap {
  text-align: center;
  flex-shrink: 0;
}

.mf-dh-count {
  font-size: 28px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #fff;
  line-height: 1;
}

.mf-dh-count-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.mf-dh-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 12px 0;
}

.mf-dh-certs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mf-stat-primary {
  color: #5a8bb0;
}

.mf-stat-ok {
  color: #7aad8a;
}

.mf-stat-warn {
  color: #d4a855;
}

.mf-stat-fw {
  color: #8b7fb5;
}

.mf-stat-muted {
  color: #9ca3a8;
}

.mf-tab-content {
  padding: 16px 24px;
}

.mf-tab-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mf-tab-hd-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
}

.mf-grid-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}

.mf-grid-mono-muted {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.mf-grid-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a5e64;
}

.mf-grid-count {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.mf-grid-muted {
  font-size: 0.75rem;
  color: #9ca3a8;
}

.mf-warr-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.mf-warr-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.mf-warr-model {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  min-width: 90px;
  flex-shrink: 0;
}

.mf-warr-bar-wrap {
  flex: 1;
  min-width: 0;
}

.mf-warr-bar-hd {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-bottom: 4px;
}

.mf-contract-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 10px;
}

.mf-contact-name {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
  margin-bottom: 2px;
}

.mf-contact-role {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin-bottom: 8px;
}

.mf-contact-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.mf-contact-icon {
  flex-shrink: 0;
}

.mf-contact-phone {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #5a5e64;
}

.mf-contact-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.mf-link {
  color: #5a8bb0;
  cursor: pointer;
}
.mf-link:hover {
  text-decoration: underline;
}

.mf-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mf-doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(156, 163, 168, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mf-doc-icon-knx {
  background: #1a1e3a;
  color: #8ba4ff;
}

.mf-doc-icon-pdf {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.mf-doc-info {
  flex: 1;
  min-width: 0;
}

.mf-doc-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
}

.mf-doc-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.mf-doc-download {
  font-size: 1rem;
  color: #5a8bb0;
  cursor: pointer;
  flex-shrink: 0;
}

.mn-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mn-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 10px;
}

.mn-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mn-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mn-topbar-title {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  line-height: 1;
}

.mn-topbar-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.mn-topbar-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
}

.mn-topbar-sep {
  color: #9ca3a8;
}

.mn-topbar-cur {
  color: #2d3436;
  font-weight: 700;
}

.mn-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mn-kpi-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.mn-kpi-strip::-webkit-scrollbar {
  height: 3px;
}
.mn-kpi-strip::-webkit-scrollbar-thumb {
  background: #ece9e4;
  border-radius: 4px;
}

.mn-kpi {
  min-width: 150px;
  flex: 1;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2.5px solid transparent;
  transition: 0.15s;
}
.mn-kpi:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.mn-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
  flex-shrink: 0;
}

.mn-kpi-body {
  flex: 1;
  min-width: 0;
}

.mn-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  line-height: 1.15;
}

.mn-kpi-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.mn-kpi-trend {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

.mn-toolbar {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.mn-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 240px;
}

.mn-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.mn-search-input .e-input-group {
  height: 30px;
}

.mn-filter-sel .e-input-group {
  height: 30px;
}

.mn-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #ece9e4;
  flex-shrink: 0;
}

.mn-toolbar-count {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  white-space: nowrap;
}

.mn-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.mn-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px !important;
  font-size: 13px !important;
  color: #9ca3a8 !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
  box-shadow: none !important;
}
.mn-vb.e-btn.active {
  background: #fefefe !important;
  color: #2d3436 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

.mn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mn-list-empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.8125rem;
  color: #9ca3a8;
  background: #fefefe;
  border-radius: 8px;
  border: 1.5px dashed #ece9e4;
}

.mn-tc-left {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mn-tc-info {
  flex: 1;
  min-width: 0;
}

.mn-tc-prio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.mn-tc-prio-text {
  font-size: 0.6875rem;
  font-weight: 700;
}

.mn-tc-type {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
}

.mn-tc-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.mn-tc-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mn-tc-tech-name {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-align: center;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mn-tc-progress {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ece9e4;
}

.mn-sp {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.mn-sp-hd {
  padding: 12px 14px;
  border-bottom: 1px solid #ece9e4;
}

.mn-sp-hd-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.mn-sp-body {
  padding: 14px;
}

.mn-tech-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mn-tech-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mn-tech-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mn-tech-info {
  flex: 1;
  min-width: 0;
}

.mn-tech-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.mn-tech-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.mn-tech-pct {
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.mn-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}

.mn-cost-total {
  font-weight: 700;
  padding-top: 7px;
  margin-top: 4px;
  border-top: 1px solid #ece9e4;
}

.mn-cost-lbl {
  font-size: 0.75rem;
  color: #5a5e64;
}

.mn-cost-val {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
}

.mn-cost-budget {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece9e4;
}

.mn-cost-budget-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 600;
  margin-bottom: 6px;
}

.mn-cal-panel {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.mn-cal-hd-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mn-cal-nav-group {
  display: inline-flex;
  gap: 4px;
}

.mn-dp-hd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mn-dp-hd-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.mn-dp-hd-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.mn-dp-hd-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mn-dp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.mn-dp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(236, 233, 228, 0.5);
}
.mn-dp-row:last-child {
  border-bottom: 0;
}

.mn-dp-row-lbl {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-weight: 600;
}

.mn-dp-row-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.mn-dp-row-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

.mn-dp-tech-val {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mn-tech-av-sm {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.mn-dp-desc {
  font-size: 0.75rem;
  color: #5a5e64;
  line-height: 1.55;
}

.mn-dp-cl-count {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #5a8bb0;
  margin-left: 4px;
}

.mn-dp-cl-bar {
  margin-bottom: 8px;
}

.mn-cl-text {
  font-size: 0.75rem;
  color: #2d3436;
}

.mn-cl-done {
  text-decoration: line-through;
  color: #9ca3a8;
}

.mn-dp-action-main {
  width: 100%;
}

.mn-dp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mn-dp-action-btn {
  width: 100%;
}

.mn-dp-completed-msg {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #7aad8a;
  padding: 8px;
  background: rgba(107, 158, 125, 0.08);
  border-radius: 8px;
}

.mn-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.mn-main-col {
  min-width: 0;
}

.mn-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 78px;
}

.mn-vt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
}
.mn-vt:hover {
  background: #f5f8fe;
  color: #4a4e54;
}

.mn-vt-active {
  background: #5a8bb0;
  color: #fff;
}
.mn-vt-active:hover {
  background: #5a8bb0;
  color: #fff;
}

.mn-vt-sf.e-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
}
.mn-vt-sf.e-btn:hover {
  background: #f5f8fe;
  color: #4a4e54;
}
.mn-vt-sf.e-btn.mn-vt-active {
  background: #5a8bb0;
  color: #fff;
}
.mn-vt-sf.e-btn.mn-vt-active:hover {
  background: #5a8bb0;
  color: #fff;
}

.mn-status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mn-st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3a8;
  background: #f5f8fe;
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
}
.mn-st:hover {
  background: #e8f0fe;
  color: #4a4e54;
}

.mn-st-active {
  background: #5a8bb0;
  color: #fff;
}
.mn-st-active:hover {
  background: #5a8bb0;
  color: #fff;
}
.mn-st-active .mn-st-cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.mn-st-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  background: rgba(0, 0, 0, 0.06);
  color: #9ca3a8;
}

.mn-tc {
  background: #fefefe;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.15s;
  overflow: hidden;
}
.mn-tc:hover {
  border-color: rgba(90, 139, 176, 0.35);
  box-shadow: none;
}

.mn-tc-selected {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.mn-tc-overdue {
  border-left: 3px solid #c4616e;
}

.mn-tc-inprogress {
  border-left: 3px solid #5a8bb0;
}

.mn-tc-planned {
  border-left: 3px solid #d4a855;
}

.mn-tc-completed {
  border-left: 3px solid #7aad8a;
  opacity: 0.7;
}

.mn-tc-body {
  padding: 14px 16px;
}

.mn-tc-top {
  display: flex;
  gap: 12px;
}

.mn-tc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mn-tc-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.3;
  margin-bottom: 2px;
}

.mn-tc-device {
  font-size: 0.75rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
  margin-bottom: 4px;
}

.mn-tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece9e4;
}

.mn-tm-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mn-tm-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.mn-tm-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mn-prio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mn-prio-crit {
  background: #c4616e;
}

.mn-prio-high {
  background: #d4a855;
}

.mn-prio-med {
  background: #5a8bb0;
}

.mn-prio-low {
  background: #9ca3a8;
}

.mn-tech-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mn-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.mn-badge-crit {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.mn-badge-pri {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.mn-badge-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.mn-badge-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.mn-badge-gray {
  background: #f5f8fe;
  color: #9ca3a8;
}

.mn-cal-wrap {
  padding: 4px;
}

.mn-cal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.mn-cal-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d3436;
}

.mn-cal-nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #9ca3a8;
  transition: 0.15s;
}
.mn-cal-nav:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}

.mn-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.mn-cal-dh {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 0;
}

.mn-cal-day {
  min-height: 72px;
  padding: 6px;
  border: 1px solid #ece9e4;
  border-radius: 6px;
  position: relative;
}

.mn-cal-other {
  background: #fafbfd;
}

.mn-cal-today {
  background: rgba(90, 139, 176, 0.08);
  border-color: #5a8bb0;
}
.mn-cal-today .mn-cal-dn {
  color: #5a8bb0;
  font-weight: 700;
}

.mn-cal-dn {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 4px;
}

.mn-ctd {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mn-ctd-over {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.mn-ctd-prog {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.mn-ctd-plan {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.mn-ctd-done {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.mn-tl-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
}

.mn-tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.mn-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mn-tl-line {
  width: 2px;
  flex: 1;
  background: #ece9e4;
  margin-top: 4px;
}

.mn-tl-content {
  flex: 1;
  min-width: 0;
}

.mn-tl-date {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.mn-tl-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.3;
}

.mn-tl-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.mn-dp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 28, 50, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
}

.mn-dp {
  width: 380px;
  height: calc(100vh - 28px);
  background: #fefefe;
  border-radius: 8px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: mnSlideIn 0.2s ease;
}

@keyframes mnSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}
.mn-dp-hd {
  padding: 16px 18px;
  background: linear-gradient(135deg, #0b1733, #162248);
  position: relative;
  flex-shrink: 0;
  border-radius: 8px 14px 0 0;
}

.mn-dp-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  transition: 0.15s;
}
.mn-dp-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mn-dp-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mn-dp-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.mn-dp-stats {
  padding: 13px 16px;
  border-bottom: 1px solid #ece9e4;
  background: #fafbfd;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}

.mn-dp-stat-box {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.mn-dp-stat-val {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #2d3436;
}

.mn-dp-stat-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.mn-dp-section {
  padding: 13px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.mn-dp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.mn-cl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
}

.mn-cl-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
  cursor: pointer;
  transition: 0.15s;
}

.mn-cl-checked {
  background: #5a8bb0;
  border-color: #5a8bb0;
  color: #fff;
}

.mn-dp-actions {
  padding: 13px 16px;
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tp-page-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 58px);
}

.tp-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  display: inline-block;
  animation: tpPulse 2s infinite;
}

@keyframes tpPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.tp-tree-panel {
  width: 280px;
  background: #fefefe;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.tp-tree-header {
  padding: 12px 14px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.tp-tree-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 6px;
  padding: 7px 10px;
  border: 1px solid #ece9e4;
}

.tp-tree-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}
.tp-tree-scroll::-webkit-scrollbar {
  width: 4px;
}
.tp-tree-scroll::-webkit-scrollbar-thumb {
  background: #ece9e4;
  border-radius: 4px;
}

.tp-tree-section-label {
  padding: 5px 9px 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tp-tn-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.15s;
  user-select: none;
}
.tp-tn-row:hover {
  background: rgba(156, 163, 168, 0.06);
}

.tp-tn-selected {
  background: rgba(90, 139, 176, 0.08);
  border-left: 2.5px solid #5a8bb0;
}
.tp-tn-selected .tp-tn-name {
  color: #5a8bb0;
}

.tp-tn-toggle {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: #9ca3a8;
  flex-shrink: 0;
  transition: 0.2s;
}

.tp-tn-toggle-open {
  transform: rotate(90deg);
}

.tp-tn-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.tp-tn-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4e54;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-tn-count {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
}

.tp-tn-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tp-ts-ok {
  background: #7aad8a;
}

.tp-ts-fault {
  background: #c4616e;
  animation: tpBlink 1.4s infinite;
}

.tp-ts-off {
  background: #9ca3a8;
}

.tp-ts-warn {
  background: #d4a855;
}

@keyframes tpBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.tp-canvas-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f0f4fc;
}

.tp-canvas-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d0d9ef 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.tp-canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.tp-grab {
  cursor: grab;
}

.tp-grabbing {
  cursor: grabbing !important;
}

.tp-svg-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

[data-tp-node]:hover {
  filter: brightness(0.95) drop-shadow(0 0 6px rgba(0, 158, 247, 0.25));
}

.tp-canvas-kpis {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.tp-ck {
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ece9e4;
}

.tp-ck-icon {
  font-size: 1rem;
}

.tp-ck-val {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
  letter-spacing: -0.5px;
}

.tp-ck-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tp-canvas-filters {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.tp-cf-btn {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4a4e54;
  transition: 0.15s;
}
.tp-cf-btn:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}

.tp-cf-active {
  background: #5a8bb0;
  border-color: #5a8bb0;
  color: #fff;
}
.tp-cf-active:hover {
  background: #5a8bb0;
  color: #fff;
}

.tp-legend {
  position: absolute;
  bottom: 80px;
  left: 14px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: none;
  padding: 11px 14px;
  z-index: 10;
  border: 1px solid #ece9e4;
}

.tp-leg-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 7px;
}

.tp-leg-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a4e54;
  margin-bottom: 4px;
}
.tp-leg-row:last-child {
  margin-bottom: 0;
}

.tp-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tp-leg-sq {
  width: 14px;
  height: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tp-canvas-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 10;
  border: 1px solid #ece9e4;
}

.tp-cc-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  background: transparent;
  color: #4a4e54;
  transition: 0.15s;
}
.tp-cc-btn:hover {
  background: rgba(156, 163, 168, 0.06);
}

.tp-cc-active {
  background: #5a8bb0;
  color: #fff;
}
.tp-cc-active:hover {
  background: #5a8bb0;
}

.tp-cc-sep {
  width: 1px;
  background: #ece9e4;
  margin: 4px 0;
}

.tp-zoom-display {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.tp-detail-panel {
  width: 296px;
  background: #fefefe;
  border-left: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}
.tp-detail-panel::-webkit-scrollbar {
  width: 4px;
}
.tp-detail-panel::-webkit-scrollbar-thumb {
  background: #ece9e4;
  border-radius: 4px;
}

.tp-dp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 30px 20px;
  text-align: center;
}

.tp-dp-hd {
  padding: 16px;
  border-bottom: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.tp-dp-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.tp-dp-sec {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}
.tp-dp-sec:last-child {
  border-bottom: none;
}

.tp-dp-sec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tp-chip-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.tp-chip-crit {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.tp-chip-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #c08000;
}

.tp-chip-pri {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.tp-chip-gray {
  background: rgba(156, 163, 168, 0.06);
  color: #9ca3a8;
}

.tp-chip-inf {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.tp-chip-teal {
  background: #e0faf5;
  color: #00c9a7;
}

.tp-dev-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.15s;
}
.tp-dev-mini:hover {
  background: #f8faff;
  margin: 0 -4px;
  padding: 6px 4px;
  border-radius: 4px;
}
.tp-dev-mini:last-child {
  border-bottom: none;
}

.av-grad-pri {
  background: linear-gradient(135deg, #5a8bb0, #7465a6);
}

.av-grad-ok {
  background: linear-gradient(135deg, #6b9e7d, #5da89a);
}

.av-grad-warn {
  background: linear-gradient(135deg, #d4a855, #c47a3a);
}

.av-grad-info {
  background: linear-gradient(135deg, #8b7fb5, #a66ad0);
}

.av-grad-crit {
  background: linear-gradient(135deg, #c4616e, #d48a6b);
}

.av-grad-teal {
  background: linear-gradient(135deg, #5da89a, #5a8bb0);
}

.av-grad-dark {
  background: linear-gradient(135deg, #2d3436, #4a4d52);
}

.av-grad-muted {
  background: linear-gradient(135deg, #9ca3a8, #7a7e85);
}

.band-grad-pri {
  background: linear-gradient(90deg, #5a8bb0, #7465a6);
}

.band-grad-ok {
  background: linear-gradient(90deg, #6b9e7d, #5da89a);
}

.band-grad-warn {
  background: linear-gradient(90deg, #d4a855, #c47a3a);
}

.band-grad-info {
  background: linear-gradient(90deg, #8b7fb5, #a66ad0);
}

.band-grad-crit {
  background: linear-gradient(90deg, #c4616e, #d48a6b);
}

.band-grad-teal {
  background: linear-gradient(90deg, #5da89a, #5a8bb0);
}

.band-grad-dark {
  background: linear-gradient(90deg, #2d3436, #4a4d52);
}

.band-grad-muted {
  background: linear-gradient(90deg, #9ca3a8, #7a7e85);
}

.sch-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sch-topbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 0 22px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}

.sch-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ca3a8;
}

.sch-bc-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
}

.sch-bc-sep {
  opacity: 0.35;
}

.sch-bc-cur {
  color: #2d3436;
  font-weight: 700;
}

.sch-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sch-next-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 12px;
  background: #f5f3ef;
  border: 1.5px solid #ece9e4;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
}

.sch-next-pill strong {
  color: #5a8bb0;
  font-family: "Space Mono", monospace;
}

.sch-cat-tabs {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 0 22px;
  display: flex;
  gap: 0;
  flex-shrink: 0;
  overflow-x: auto;
}

.sch-cat-tabs::-webkit-scrollbar {
  display: none;
}

.sch-ctab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  transition: 0.14s;
  white-space: nowrap;
  flex-shrink: 0;
}

.sch-ctab:hover {
  color: #2d3436;
}

.sch-ctab.on {
  border-bottom-color: #5a8bb0;
  color: #5a8bb0;
}

.sch-ctab-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.sch-ctab-cnt {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.sch-toolbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sch-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sch-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sch-filter-info {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.sch-view-grp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
}

.sch-vb-btn.e-btn {
  min-width: 28px;
  width: 28px;
  height: 24px;
  padding: 0;
  border-radius: 5px;
  font-size: 13px;
  color: #9ca3a8;
  background: transparent;
  border: none;
  transition: 0.12s;
}

.sch-vb-btn.e-btn:hover {
  color: #2d3436;
}

.sch-vb-btn.e-btn.e-active {
  background: #fefefe;
  color: #2d3436;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sch-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.sch-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.sch-main-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sch-main-scroll::-webkit-scrollbar {
  width: 6px;
}

.sch-main-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.sch-empty {
  text-align: center;
  padding: 48px;
  color: #9ca3a8;
}

.sch-empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.sch-empty-title {
  font-weight: 700;
  font-size: 14px;
  color: #2d3436;
}

.sch-empty-sub {
  font-size: 12px;
  margin-top: 4px;
}

.sch-empty-link {
  color: #5a8bb0;
  cursor: pointer;
  font-weight: 700;
}

.sch-cat-group {
  margin-bottom: 16px;
}

.sch-cat-group-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.sch-cat-group-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.sch-cat-group-cnt {
  font-size: 10px;
  color: #9ca3a8;
}

.sch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.sch-card {
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  padding: 0;
  cursor: pointer;
  transition: 0.14s;
  overflow: hidden;
  position: relative;
}

.sch-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 2px 12px rgba(90, 139, 176, 0.08);
  transform: translateY(-1px);
}

.sch-card.sel {
  border-color: #5a8bb0 !important;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.1) !important;
}

.sch-card.inactive {
  opacity: 0.58;
}

.sch-card-stripe {
  height: 4px;
  border-radius: 12px 12px 0 0;
}

.sch-card-body {
  padding: 13px 14px;
}

.sch-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sch-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sch-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 2px;
}

.sch-card-meta {
  font-size: 10.5px;
  color: #9ca3a8;
}

.sch-switch.e-switch-wrapper .e-switch-on {
  background: #7aad8a;
}

.sch-switch.e-switch-wrapper .e-switch-off {
  background: #ece9e4;
}

.sch-switch.e-switch-wrapper .e-switch-handle {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sch-time-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sch-tpill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: #f5f3ef;
  color: #2d3436;
  border: 1.5px solid #ece9e4;
}

.sch-tpill-muted {
  font-size: 10px;
  color: #9ca3a8;
}

.sch-day-dots {
  display: flex;
  gap: 3px;
}

.sch-dd {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid #ece9e4;
  color: #9ca3a8;
  transition: 0.12s;
}

.sch-dd.on {
  color: #fefefe;
  border-color: transparent;
}

.sch-target-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.sch-ttag {
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  background: #f5f3ef;
  color: #9ca3a8;
  border: 1px solid #ece9e4;
}

.sch-next-run {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ece9e4;
}

.sch-next-run strong {
  color: #2d3436;
  font-weight: 700;
}

.sch-exec-cnt {
  margin-left: auto;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #9ca3a8;
}

.sch-conflict-badge {
  position: absolute;
  top: 14px;
  right: 50px;
  background: #c4616e;
  color: #fefefe;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}

.sch-day-pip-row {
  display: flex;
  gap: 2px;
}

.sch-day-pip {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.sch-timeline-card {
  overflow: hidden;
}

.sch-tl-hd {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sch-tl-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3436;
}

.sch-tl-hint {
  font-size: 11px;
  color: #9ca3a8;
}

.sch-tl-hour-axis {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid #ece9e4;
}

.sch-tl-label-col {
  border-right: 1px solid #ece9e4;
}

.sch-tl-hour-labels {
  position: relative;
  height: 24px;
}

.sch-tl-hour-lbl {
  position: absolute;
  transform: translateX(-50%);
  font-size: 8.5px;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
  top: 4px;
}

.sch-tl-days {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-bottom: 1px solid #ece9e4;
}

.sch-tl-day-hd {
  padding: 7px 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  border-right: 1px solid #ece9e4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sch-tl-day-hd.today {
  color: #5a8bb0;
  background: #f5f3ef;
}

.sch-tl-day-hd:last-child {
  border-right: none;
}

.sch-tl-rows {
  max-height: 420px;
  overflow-y: auto;
}

.sch-tl-rows::-webkit-scrollbar {
  width: 4px;
}

.sch-tl-rows::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.sch-tl-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-bottom: 1px solid #ece9e4;
}

.sch-tl-row:last-child {
  border-bottom: none;
}

.sch-tl-row-lbl {
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #9ca3a8;
  border-right: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
}

.sch-tl-row-name {
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sch-tl-cell {
  border-right: 1px solid #ece9e4;
  position: relative;
  height: 38px;
  overflow: hidden;
}

.sch-tl-cell:last-child {
  border-right: none;
}

.sch-tl-cell.today {
  background: #f5f3ef;
}

.sch-tl-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: 0.13s;
  min-width: 4px;
}

.sch-tl-block:hover {
  filter: brightness(0.88);
  z-index: 5;
}

.sch-tl-block-inner {
  padding: 0 6px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fefefe;
  width: 100%;
}

.sch-now-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #c4616e;
  pointer-events: none;
  z-index: 10;
}

.sch-now-marker::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4616e;
}

.sch-dp {
  width: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border-left: 1px solid transparent;
  background: #fefefe;
  display: flex;
  flex-direction: column;
}

.sch-dp.open {
  width: 380px;
  border-left-color: #ece9e4;
}

.sch-dp-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sch-dp-title {
  font-weight: 700;
  font-size: 13px;
  color: #2d3436;
}

.sch-dp-sub {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.sch-dp-close-btn.e-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 7px;
  border: 1.5px solid #ece9e4;
  font-size: 12px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  color: #9ca3a8;
  transition: 0.12s;
}

.sch-dp-close-btn.e-btn:hover {
  background: #f5f3ef;
  color: #2d3436;
}

.sch-dp-scroll {
  flex: 1;
  overflow-y: auto;
}

.sch-dp-scroll::-webkit-scrollbar {
  width: 4px;
}

.sch-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.sch-dp-banner {
  padding: 14px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sch-dp-banner-name {
  font-weight: 700;
  font-size: 14px;
  color: #2d3436;
}

.sch-dp-banner-desc {
  font-size: 11.5px;
  color: #9ca3a8;
  margin-top: 3px;
  line-height: 1.5;
}

.sch-dp-banner-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.sch-dp-badge {
  padding: 3px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.sch-dp-badge-muted {
  background: #f5f3ef;
  color: #9ca3a8;
}

.sch-dp-badge-danger {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border: 1px solid rgba(196, 97, 110, 0.25);
}

.sch-dp-sec {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
}

.sch-dp-sec-ttl {
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sch-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
}

.sch-dp-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
}

.sch-dp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
}

.sch-dp-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.sch-mini-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.sch-mini-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.sch-mini-day-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
}

.sch-mini-day-bar {
  width: 100%;
  background: #f5f3ef;
  border-radius: 4px;
  position: relative;
  height: 40px;
  overflow: hidden;
}

.sch-mini-day-fill {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 3px;
  transition: top 0.4s, height 0.4s;
}

.sch-mini-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
  margin-top: 3px;
}

.sch-dp-time-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sch-dp-duration {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 4px;
}

.sch-dp-duration strong {
  color: #2d3436;
}

.sch-conflict-warn {
  background: rgba(196, 97, 110, 0.08);
  border: 1.5px solid rgba(196, 97, 110, 0.25);
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sch-conflict-warn-ic {
  font-size: 18px;
  flex-shrink: 0;
}

.sch-cmd-builder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.sch-cmd-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: #faf9f7;
  border-radius: 9px;
  border: 1px solid #ece9e4;
}

.sch-cmd-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.sch-cmd-lbl {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

.sch-cmd-val {
  font-family: "Space Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #5a8bb0;
}

.sch-dp-actions {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sch-btn-danger {
  background: rgba(196, 97, 110, 0.08) !important;
  color: #c4616e !important;
  border-color: rgba(196, 97, 110, 0.25) !important;
}

.sch-btn-danger:hover {
  background: rgba(196, 97, 110, 0.12) !important;
}

.sch-form {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sch-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sch-form-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sch-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sch-form-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.sch-form-save.e-btn {
  width: 100%;
}

.sch-day-checks {
  display: flex;
  gap: 4px;
}

.sch-day-cb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1.5px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
  cursor: pointer;
  transition: 0.15s;
  background: #fefefe;
  user-select: none;
}

.sch-day-cb:hover {
  border-color: #ece9e4;
}

.sch-day-cb.on {
  color: #fefefe;
  border-color: transparent;
}

.sch-log-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sch-log-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f5f3ef;
}

.sch-log-row:last-child {
  border-bottom: none;
}

.sch-log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sch-log-dot.success {
  background: #7aad8a;
}

.sch-log-dot.fail {
  background: #c4616e;
}

.sch-log-body {
  flex: 1;
  min-width: 0;
}

.sch-log-time {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #2d3436;
}

.sch-log-msg {
  font-size: 10px;
  color: #9ca3a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sch-log-status {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sch-log-row .sch-log-status {
  color: #7aad8a;
}

.sch-log-row:has(.sch-log-dot.fail) .sch-log-status {
  color: #c4616e;
}

.sch-confirm-dialog .e-dlg-header {
  font-size: 14px;
  font-weight: 700;
  color: #c4616e;
}

.sch-confirm-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.sch-confirm-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.sch-confirm-body > div:last-child {
  font-size: 12.5px;
  color: #2d3436;
  line-height: 1.5;
}

.sch-clear-btn.e-btn {
  font-size: 10.5px;
  color: #c4616e;
  border: 1px solid rgba(196, 97, 110, 0.25);
  background: rgba(196, 97, 110, 0.08);
  border-radius: 5px;
  padding: 2px 8px;
  height: 26px;
}

.sch-clear-btn.e-btn:hover {
  background: rgba(196, 97, 110, 0.12);
}

.sch-clear-btn.e-btn .e-btn-icon {
  font-size: 10px;
  margin-right: 2px;
}

.jb-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

.jb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  border-bottom: 1px solid #ece9e4;
}

.jb-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jb-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jb-worker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Space Mono", monospace;
  color: #5a5e64;
  background: #f5f3ef;
  border: 1px solid #ece9e4;
  border-radius: 16px;
  padding: 4px 12px;
}

.jb-pulse-dot {
  width: 8px;
  height: 8px;
  background: #7aad8a;
  border-radius: 50%;
  animation: jbPulse 2s ease-in-out infinite;
}

@keyframes jbPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}
.jb-kpi-strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ece9e4;
  overflow-x: auto;
  scrollbar-width: none;
}

.jb-kpi-strip::-webkit-scrollbar {
  display: none;
}

.jb-kpi {
  flex: 1;
  min-width: 110px;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #ece9e4;
  transition: background 0.15s;
}

.jb-kpi:last-child {
  border-right: none;
  cursor: default;
}

.jb-kpi:hover {
  background: #faf9f7;
}

.jb-kpi-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.jb-kpi-val {
  font-family: "Space Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.jb-kpi-sub {
  font-size: 9.5px;
  color: #b5b0aa;
  margin-top: 2px;
}

.jb-running-strip {
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
}

.jb-rs-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  cursor: pointer;
  user-select: none;
}

.jb-rs-hd:hover {
  background: #faf9f7;
}

.jb-rs-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d3436;
}

.jb-rs-count {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
}

.jb-rs-chevron {
  margin-left: auto;
  font-size: 14px;
  color: #9ca3a8;
  transition: transform 0.2s;
}

.jb-rs-chevron.open {
  transform: rotate(180deg);
}

.jb-rs-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 20px 12px;
}

.jb-rchip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #faf9f7;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.jb-rc-bar {
  width: 4px;
  flex-shrink: 0;
}

.jb-rc-body {
  flex: 1;
  padding: 8px 12px;
  min-width: 0;
}

.jb-rc-name {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.jb-rc-meta {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
}

.jb-rc-prog {
  height: 4px;
  background: #ece9e4;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.jb-rc-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.jb-rc-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  gap: 2px;
  flex-shrink: 0;
}

.jb-rc-pct {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.jb-rc-eta {
  font-size: 9.5px;
  color: #9ca3a8;
}

.jb-rc-stop.e-btn {
  color: #c4616e;
  font-size: 10px;
  padding: 2px 4px;
}

.jb-rc-stop.e-btn:hover {
  background: rgba(196, 97, 110, 0.08);
}

.jb-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid;
  white-space: nowrap;
}

.jb-status-dot-anim {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: jbPulse 1.5s ease-in-out infinite;
}

.jb-retry-badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  opacity: 0.7;
  margin-left: 2px;
}

.jb-type-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.jb-prio-badge {
  font-size: 9px;
  font-weight: 700;
  color: #fefefe;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  font-family: "Space Mono", monospace;
}

.jb-id-tag {
  font-family: "Space Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
}

.jb-tag {
  font-size: 9.5px;
  font-weight: 600;
  color: #9ca3a8;
  background: #f5f3ef;
  padding: 1px 6px;
  border-radius: 3px;
}

.jb-queue-grid.e-grid {
  border: none;
  background: transparent;
}

.jb-queue-grid .e-gridheader {
  background: #faf9f7;
  border-bottom: 1px solid #ece9e4;
}

.jb-queue-grid .e-gridheader .e-headercell {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border-right: none;
}

.jb-queue-grid .e-row {
  border-bottom: 1px solid #f5f3ef;
  cursor: pointer;
  transition: background 0.1s;
}

.jb-queue-grid .e-row:hover {
  background: #faf9f7;
}

.jb-queue-grid .e-rowcell {
  font-size: 12px;
  color: #4a4e54;
  padding: 10px 12px;
  border-right: none;
}

.jb-queue-grid .e-pager {
  background: #faf9f7;
  border-top: 1px solid #ece9e4;
}

.jb-play-btn.e-btn {
  color: #7aad8a;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.jb-play-btn.e-btn:hover {
  background: rgba(107, 158, 125, 0.08);
}

.jb-cron-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  padding: 0;
}

.jb-cron-card {
  position: relative;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jb-cron-card:hover {
  border-color: #ece9e4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.jb-cron-card.sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.jb-cc-stripe {
  height: 4px;
}

.jb-cc-body {
  padding: 12px 14px;
}

.jb-cc-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.jb-cc-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 2px;
}

.jb-cc-meta {
  font-size: 10.5px;
  color: #9ca3a8;
}

.jb-cron-fields {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.jb-cfield {
  flex: 1;
  text-align: center;
  background: #faf9f7;
  border: 1px solid #ece9e4;
  border-radius: 4px;
  padding: 4px 2px;
}

.jb-cf-val {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.jb-cf-lbl {
  font-size: 8px;
  font-weight: 600;
  color: #b5b0aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jb-cron-pill {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.jb-cron-label {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-bottom: 8px;
}

.jb-next-runs {
  margin-bottom: 8px;
}

.jb-nr-title {
  font-size: 9px;
  font-weight: 600;
  color: #b5b0aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.jb-nr-item {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #5a5e64;
}

.jb-cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f5f3ef;
}

.jb-hist-section {
  margin-bottom: 16px;
}

.jb-hist-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  margin-bottom: 4px;
}

.jb-hist-hd > span:first-child {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.jb-hist-counts {
  font-size: 11px;
  font-weight: 600;
}

.jb-hist-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-hrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}

.jb-hrow:hover {
  background: #faf9f7;
}

.jb-hrow.sel {
  background: rgba(90, 139, 176, 0.08);
}

.jb-hrow-bar {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.jb-exit-badge {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.jb-exit-badge.ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.jb-exit-badge.fail {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.jb-status-pills {
  display: flex;
  gap: 4px;
  align-items: center;
}

.jb-spill {
  font-size: 10.5px;
  font-weight: 600;
  color: #9ca3a8;
  padding: 3px 10px;
  border: 1px solid #ece9e4;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.jb-spill:hover {
  border-color: #ece9e4;
  color: #5a5e64;
}

.jb-spill.on {
  background: rgba(90, 139, 176, 0.08);
  border-color: #5a8bb0;
  color: #5a8bb0;
}

.jb-spill-cnt {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  margin-left: 3px;
  opacity: 0.7;
}

.jb-cron-builder {
  display: flex;
  gap: 6px;
}

.jb-cb-field {
  flex: 1;
  text-align: center;
}

.jb-cb-inp.e-textbox {
  text-align: center;
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.jb-cb-lbl {
  font-size: 8.5px;
  font-weight: 600;
  color: #b5b0aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.jb-cron-preview {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 6px;
  text-align: center;
}

.jb-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jb-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.jb-step-num {
  width: 20px;
  height: 20px;
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jb-step-name {
  font-size: 12px;
  font-weight: 600;
  color: #4a4e54;
}

.jb-dp-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.jb-error-box {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #c4616e;
  background: rgba(196, 97, 110, 0.08);
  border: 1px solid rgba(196, 97, 110, 0.25);
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.5;
}

.sch-log-dot.warn {
  background: #d4a855;
}

.sch-search.e-textbox {
  font-size: 12px;
}

.hol-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #faf9f7;
}

.hol-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
  flex-shrink: 0;
}

.hol-topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hol-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hol-year-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f5f3ef;
  border: 1px solid #ece9e4;
  border-radius: 18px;
  padding: 4px 14px;
  font-size: 12.5px;
  color: #4a4e54;
  font-weight: 500;
}

.hol-right-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hol-stat-strip {
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
  flex-shrink: 0;
  overflow-x: auto;
}

.hol-stat {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  background: #faf9f7;
  transition: border-color 0.2s;
}

.hol-stat:hover {
  border-color: var(--hsc, #ece9e4);
}

.hol-stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.hol-stat-val {
  font-family: "Space Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.hol-stat-sub {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.hol-cal-panel {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.hol-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #ece9e4;
}

.hol-nav-btn.e-btn {
  min-width: 28px !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  font-size: 16px !important;
  color: #5a8bb0 !important;
  border-radius: 6px !important;
}

.hol-nav-btn.e-btn:hover {
  background: rgba(90, 139, 176, 0.08) !important;
}

.hol-cal-month {
  font-size: 14px;
  font-weight: 700;
  color: #2d3436;
}

.hol-cal-year {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #9ca3a8;
}

.hol-cal-grid-wrap {
  padding: 8px 12px;
}

.hol-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.hol-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  padding: 4px 0;
}

.hol-dow-we {
  color: rgba(196, 97, 110, 0.7);
}

.hol-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.hol-day {
  position: relative;
  min-height: 32px;
  padding: 2px 3px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  overflow: hidden;
}

.hol-day:hover {
  background: rgba(90, 139, 176, 0.08);
}

.hol-day-other {
  opacity: 0.3;
  pointer-events: none;
}

.hol-day-num {
  font-size: 10.5px;
  font-weight: 600;
  color: #4a4e54;
  text-align: center;
}

.hol-day-num.today {
  background: #5a8bb0;
  color: #fefefe;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 10px;
}

.hol-day-we .hol-day-num {
  color: rgba(196, 97, 110, 0.7);
}

.hol-day-sel {
  outline: 2px solid #5a8bb0;
  outline-offset: 1px;
  border-radius: 4px;
}

.hol-day-dots {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 1px;
}

.hol-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.hol-day-exc {
  font-size: 7.5px;
  font-weight: 600;
  padding: 1px 3px;
  border-radius: 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  line-height: 1.3;
}

.hol-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 14px;
  border-top: 1px solid #ece9e4;
  border-bottom: 1px solid #ece9e4;
}

.hol-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #4a4e54;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hol-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hol-upcoming {
  padding: 10px 14px;
  flex: 1;
  overflow-y: auto;
}

.hol-up-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.hol-up-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f5f3ef;
  cursor: pointer;
  transition: background 0.15s;
}

.hol-up-item:hover {
  background: #faf9f7;
}

.hol-up-date {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #5a8bb0;
  min-width: 38px;
}

.hol-up-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hol-up-name {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: #2d3436;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hol-up-days {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 34px;
  text-align: right;
}

.hol-month-group {
  margin-bottom: 16px;
}

.hol-group-hd {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  padding: 0 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hol-group-cnt {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  border-radius: 8px;
  padding: 1px 7px;
}

.hol-exc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.hol-exc-card {
  display: flex;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  background: #fefefe;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hol-exc-card:hover {
  border-color: #ece9e4;
  box-shadow: 0 1px 4px rgba(45, 52, 54, 0.05);
}

.hol-exc-card.sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 2px rgba(90, 139, 176, 0.15);
}

.hol-exc-card.past {
  opacity: 0.6;
}

.hol-exc-stripe {
  width: 4px;
  flex-shrink: 0;
}

.hol-exc-body {
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hol-exc-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hol-exc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hol-exc-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hol-exc-date {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 1px;
}

.hol-exc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hol-exc-desc {
  font-size: 11.5px;
  color: #9ca3a8;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hol-exc-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  width: fit-content;
}

.hol-scope-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.hol-scope-chip {
  font-size: 10px;
  font-weight: 600;
  color: #4a4e54;
  background: #f5f3ef;
  border: 1px solid #ece9e4;
  border-radius: 4px;
  padding: 1px 6px;
}

.hol-aff-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #9ca3a8;
  border-top: 1px solid #f5f3ef;
  padding-top: 6px;
  margin-top: 2px;
}

.hol-aff-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
}

.hol-aff-names {
  font-size: 10px;
  color: #9ca3a8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hol-exc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hol-exc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.15s;
  margin-bottom: 4px;
}

.hol-exc-row:hover {
  border-color: #ece9e4;
  box-shadow: 0 1px 3px rgba(45, 52, 54, 0.04);
}

.hol-exc-row.sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 2px rgba(90, 139, 176, 0.12);
}

.hol-exc-row.past {
  opacity: 0.55;
}

.hol-exc-row-bar {
  width: 3px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}

.hol-exc-row-date {
  min-width: 70px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.hol-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px;
}

.hol-mini-month {
  border: 1px solid #ece9e4;
  border-radius: 8px;
  background: #fefefe;
  padding: 10px 10px 8px;
}

.hol-mm-title {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hol-mm-badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  border-radius: 8px;
  padding: 1px 6px;
}

.hol-mm-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 2px;
}

.hol-mm-dow-lbl {
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  padding: 2px 0;
}

.hol-mm-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.hol-mm-day {
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: #4a4e54;
  padding: 3px 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.hol-mm-day:hover {
  background: rgba(90, 139, 176, 0.08);
}

.hol-mm-day.today {
  background: #5a8bb0;
  color: #fefefe;
  border-radius: 50%;
}

.hol-mm-day.weekend {
  color: rgba(196, 97, 110, 0.6);
}

.hol-mm-day.has-exc {
  font-weight: 700;
  border-radius: 3px;
}

.hol-ov-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f5f3ef;
}

.hol-ov-row:last-child {
  border-bottom: none;
}

.hol-ov-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ov-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #faf9f7;
}

.ov-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
  flex-shrink: 0;
}

.ov-topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ov-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 12px;
  background: rgba(90, 139, 176, 0.08);
  border: 1px solid rgba(90, 139, 176, 0.25);
  font-size: 11.5px;
  font-weight: 700;
  color: #5a8bb0;
}

.ov-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a8bb0;
  animation: ov-pulse 0.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes ov-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(90, 139, 176, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
}
.ov-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.ov-ab {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
  overflow: hidden;
}

.ov-ab-hd {
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}

.ov-ab-hd:hover {
  background: #faf9f7;
}

.ov-ab-blink-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a8bb0;
  animation: ov-blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes ov-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.ov-ab-hd-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d3436;
}

.ov-ab-hd-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #5a8bb0;
}

.ov-ab-chevron {
  font-size: 10px;
  color: #9ca3a8;
  transition: transform 0.2s;
}

.ov-ab-chevron.open {
  transform: rotate(180deg);
}

.ov-ab-scroll {
  display: flex;
  gap: 8px;
  padding: 8px 18px;
  overflow-x: auto;
}

.ov-ab-scroll::-webkit-scrollbar {
  height: 4px;
}

.ov-ab-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.ov-aoc {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: box-shadow 0.13s, transform 0.13s;
  min-width: 220px;
}

.ov-aoc:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.ov-aoc.sel {
  outline: 2px solid #5a8bb0;
  outline-offset: 1px;
}

.ov-aoc-color {
  width: 6px;
  flex-shrink: 0;
}

.ov-aoc-body {
  padding: 7px 11px;
  flex: 1;
}

.ov-aoc-name {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.ov-aoc-meta {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 1px;
}

.ov-aoc-right {
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.ov-aoc-time {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ov-aoc-rem {
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ov-aoc-prog {
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.08);
  margin-top: 4px;
  overflow: hidden;
}

.ov-aoc-prog-fill {
  height: 100%;
  border-radius: 2px;
}

.ov-kpi-strip {
  display: flex;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.ov-kpi {
  flex: 1;
  padding: 9px 16px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.12s;
}

.ov-kpi:last-child {
  border-right: none;
}

.ov-kpi:hover {
  background: #faf9f7;
}

.ov-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--okc, #5a8bb0);
}

.ov-kpi.active-kpi {
  background: rgba(90, 139, 176, 0.08);
  border-bottom: 2px solid #5a8bb0;
}

.ov-kpi-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3a8;
  margin-bottom: 3px;
}

.ov-kpi-val {
  font-family: "Space Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.ov-kpi-sub {
  font-size: 9.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.ov-group-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 4px 0 2px;
}

.ov-group-label {
  font-size: 11px;
  font-weight: 700;
  color: #2d3436;
}

.ov-group-cnt {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 7px;
  background: #f5f3ef;
  color: #9ca3a8;
  font-weight: 700;
}

.ov-group-line {
  flex: 1;
  height: 1px;
  background: #ece9e4;
  display: block;
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ov-card {
  background: #fefefe;
  border-radius: 10px;
  border: 1px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
  position: relative;
}

.ov-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 4px 18px rgba(90, 139, 176, 0.08);
  transform: translateY(-1px);
}

.ov-card.sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.ov-card.expired {
  opacity: 0.5;
}

.ov-card.active-card {
  border-color: #5a8bb0 !important;
  box-shadow: 0 0 0 2px rgba(90, 139, 176, 0.15) !important;
}

.ov-stripe {
  height: 4px;
  border-radius: 10px 10px 0 0;
}

.ov-body {
  padding: 12px 14px;
}

.ov-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}

.ov-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ov-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-sched-name {
  font-size: 10.5px;
  color: #9ca3a8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.ov-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid transparent;
}

.ov-status-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.ov-status-dot-sm.blink {
  animation: ov-blink 1.2s ease-in-out infinite;
}

.ov-approval-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.ov-time-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  padding: 7px 10px;
  background: #faf9f7;
  border-radius: 8px;
  border: 1px solid #ece9e4;
}

.ov-time-label {
  font-size: 9px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ov-time-val {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.ov-time-arrow {
  color: #9ca3a8;
  font-size: 11px;
}

.ov-dur {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  color: #9ca3a8;
}

.ov-prog-track {
  height: 5px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 3px;
}

.ov-prog-fill {
  height: 100%;
  border-radius: 3px;
}

.ov-act-diffs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ece9e4;
}

.ov-ao-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.ov-ao-orig {
  color: #9ca3a8;
  text-decoration: line-through;
  flex: 1;
}

.ov-ao-arrow {
  color: #9ca3a8;
  font-size: 10px;
}

.ov-ao-new {
  color: #2d3436;
  font-weight: 700;
  flex: 1;
}

.ov-ao-delta {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
  flex-shrink: 0;
}

.ov-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ece9e4;
  font-size: 10.5px;
  color: #9ca3a8;
}

.ov-creator-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a8bb0, #8b7fb5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fefefe;
  flex-shrink: 0;
}

.ov-floor-chip {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f5f3ef;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
}

.ov-table-wrap {
  background: #fefefe;
  border-radius: 10px;
  border: 1px solid #ece9e4;
  overflow: hidden;
}

.ov-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.ov-thead th {
  padding: 7px 12px;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #faf9f7;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  text-align: left;
}

.ov-trow {
  border-bottom: 1px solid #f5f3ef;
  cursor: pointer;
  transition: background 0.08s;
}

.ov-trow:hover {
  background: #faf9f7;
}

.ov-trow.sel {
  background: rgba(90, 139, 176, 0.08);
  border-left: 3px solid #5a8bb0;
}

.ov-trow.expired-row {
  opacity: 0.5;
}

.ov-trow td {
  padding: 9px 12px;
  vertical-align: middle;
}

.ov-tbl-action-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: #9ca3a8;
  transition: border-color 0.12s;
}

.ov-tbl-action-btn:hover {
  border-color: #5a8bb0;
}

.ov-gantt-card {
  background: #fefefe;
  border-radius: 10px;
  border: 1px solid #ece9e4;
  overflow: hidden;
}

.ov-gantt-hd {
  padding: 10px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ov-gantt-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3436;
}

.ov-gantt-legend {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ov-gantt-leg-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #4a4e54;
}

.ov-gantt-leg-bar {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.ov-day-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov-dnav-btn.e-btn {
  min-width: 26px !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  font-size: 12px !important;
  border-radius: 7px !important;
  border: 1px solid #ece9e4 !important;
  color: #9ca3a8 !important;
}

.ov-dnav-btn.e-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}

.ov-dnav-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  min-width: 120px;
  text-align: center;
}

.ov-gantt-axis {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid #ece9e4;
  background: #faf9f7;
}

.ov-gantt-axis-lbl {
  padding: 4px 10px;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  border-right: 1px solid #ece9e4;
}

.ov-gantt-axis-hours {
  display: flex;
  position: relative;
  overflow: hidden;
}

.ov-gantt-hour-tick {
  flex: 2;
  padding: 4px 0 3px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
  border-right: 1px solid #ece9e4;
}

.ov-gantt-hour-tick:last-child {
  border-right: none;
}

.ov-gantt-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid #ece9e4;
  min-height: 44px;
}

.ov-gantt-row:last-child {
  border-bottom: none;
}

.ov-gantt-row-lbl {
  padding: 6px 10px;
  border-right: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #faf9f7;
  overflow: hidden;
}

.ov-grl-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.ov-grl-text {
  font-size: 11px;
  font-weight: 700;
  color: #2d3436;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-grl-sub {
  font-size: 9.5px;
  color: #9ca3a8;
}

.ov-gantt-cells {
  position: relative;
  overflow: hidden;
}

.ov-gantt-bg-hours {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.ov-gantt-bg-hour {
  flex: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
}

.ov-gantt-bg-hour:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.ov-g-sched {
  position: absolute;
  top: 7px;
  height: 12px;
  border-radius: 4px;
  opacity: 0.35;
  pointer-events: none;
}

.ov-g-override {
  position: absolute;
  top: 22px;
  height: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.13s, transform 0.13s;
  z-index: 5;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ov-g-override:hover {
  filter: brightness(0.88);
  z-index: 10;
  transform: scaleY(1.15);
}

.ov-g-override.sel {
  filter: brightness(0.85);
  outline: 2px solid #fefefe;
  z-index: 15;
}

.ov-g-override-label {
  padding: 0 5px;
  font-size: 8.5px;
  font-weight: 700;
  color: #fefefe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-gantt-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c4616e;
  z-index: 20;
  pointer-events: none;
}

.ov-gantt-now::before {
  content: "NOW";
  position: absolute;
  top: -1px;
  left: 3px;
  font-size: 8px;
  font-weight: 700;
  color: #c4616e;
  font-family: "Space Mono", monospace;
  white-space: nowrap;
}

.ov-dp-hero {
  padding: 13px 16px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.ov-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-top: 4px;
}

.ov-comp-table thead th {
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #ece9e4;
  text-align: left;
}

.ov-comp-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #ece9e4;
  vertical-align: middle;
}

.ov-comp-table tr:last-child td {
  border-bottom: none;
}

.ov-comp-orig {
  color: #9ca3a8;
  text-decoration: line-through;
  font-size: 11px;
}

.ov-comp-new {
  font-weight: 700;
  color: #2d3436;
}

.ov-comp-delta {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.ov-appr-step {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
}

.ov-appr-step:last-child {
  border-bottom: none;
}

.ov-appr-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 700;
}

.ov-appr-body {
  flex: 1;
}

.ov-appr-who {
  font-weight: 700;
  font-size: 12px;
  color: #2d3436;
}

.ov-appr-ts {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #9ca3a8;
}

.ov-appr-note {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 2px;
  line-height: 1.4;
}

:root {
  --font-mono: "Space Mono", monospace;
  --dark: $dark;
  --muted: $muted-status;
}

.bg-ok {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-pri {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-teal {
  background: rgba(94, 159, 168, 0.08);
  color: #5e9fa8;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-warn {
  background: rgba(212, 168, 85, 0.08);
  color: #d4a855;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-info {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-danger {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-gray {
  background: #f5f3ef;
  color: #9ca3a8;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-muted {
  background: #f5f3ef;
  color: #9ca3a8;
  font-size: 10.5px;
  font-weight: 700;
}

.bg-purple {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
  font-size: 10.5px;
  font-weight: 700;
}

.sc-badge-sm {
  font-size: 10px;
  padding: 2px 7px;
}

.sc-page-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #faf9f7;
  border: 1.5px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-page-emoji {
  font-size: 20px;
}

.sc-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sc-main {
  flex: 1;
  min-width: 0;
}

.sc-aside {
  width: 310px;
  flex-shrink: 0;
}

.sc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sc-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.sc-pill {
  border-radius: 8px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border: 1px solid #ece9e4 !important;
  background: #fefefe !important;
  color: #9ca3a8 !important;
  transition: 0.15s;
}

.sc-pill:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}

.sc-pill-active {
  background: #5a8bb0 !important;
  color: #fefefe !important;
  border-color: #5a8bb0 !important;
}

.sc-pill-count {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 3px;
}

.sc-view-toggle {
  display: flex;
  gap: 2px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 6px;
  padding: 3px;
}

.sc-vt {
  border-radius: 6px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  font-size: 15px !important;
  color: #9ca3a8 !important;
}

.sc-vt-active {
  background: #fefefe !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: #2d3436 !important;
}

.sc-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sc-kpi {
  background: #fefefe;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1.5px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: 0.15s;
}

.sc-kpi:hover {
  border-color: #5a8bb0;
}

.sc-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
}

.sc-bdr-blue::before {
  background: #5a8bb0;
}

.sc-bdr-green::before {
  background: #7aad8a;
}

.sc-bdr-orange::before {
  background: #c98a5a;
}

.sc-bdr-teal::before {
  background: #5e9fa8;
}

.sc-bdr-purple::before {
  background: #8b7fb5;
}

.sc-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sc-kbg-blue {
  background: rgba(90, 139, 176, 0.08);
}

.sc-kbg-green {
  background: rgba(107, 158, 125, 0.08);
}

.sc-kbg-orange {
  background: rgba(212, 168, 85, 0.08);
}

.sc-kbg-teal {
  background: rgba(94, 159, 168, 0.08);
}

.sc-kbg-purple {
  background: rgba(139, 127, 181, 0.08);
}

.sc-kpi-body {
  flex: 1;
}

.sc-kpi-val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -1px;
  line-height: 1;
}

.sc-val-blue {
  color: #5a8bb0;
}

.sc-val-green {
  color: #7aad8a;
}

.sc-val-orange {
  color: #c98a5a;
}

.sc-val-teal {
  color: #5e9fa8;
}

.sc-val-purple {
  color: #8b7fb5;
}

.sc-kpi-lbl {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 3px;
  font-weight: 500;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sc-card {
  background: #fefefe;
  border-radius: 14px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.18s;
}

.sc-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 6px 24px rgba(90, 139, 176, 0.1);
  transform: translateY(-2px);
}

.sc-card-selected {
  border-color: #5a8bb0;
  box-shadow: 0 4px 20px rgba(90, 139, 176, 0.12);
}

.sc-card-disabled {
  opacity: 0.6;
}

.sc-band {
  height: 96px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sc-band-icon {
  font-size: 38px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.sc-band-blue {
  background: linear-gradient(135deg, rgba(90, 139, 176, 0.08) 0%, rgba(78, 126, 163, 0.08) 100%);
}

.sc-band-green {
  background: linear-gradient(135deg, rgba(107, 158, 125, 0.08) 0%, rgba(95, 145, 112, 0.08) 100%);
}

.sc-band-orange {
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.08) 0%, rgba(207, 158, 65, 0.08) 100%);
}

.sc-band-teal {
  background: linear-gradient(135deg, rgba(94, 159, 168, 0.08) 0%, rgba(83, 145, 154, 0.08) 100%);
}

.sc-band-purple {
  background: linear-gradient(135deg, rgba(139, 127, 181, 0.08) 0%, rgba(124, 111, 172, 0.08) 100%);
}

.sc-band-red {
  background: linear-gradient(135deg, rgba(196, 97, 110, 0.08) 0%, rgba(189, 78, 93, 0.08) 100%);
}

.sc-band-gray {
  background: linear-gradient(135deg, #f5f3ef 0%, #efece6 100%);
}

.sc-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  position: absolute;
  top: 10px;
  right: 10px;
  animation: sc-pulse-anim 2s infinite;
}

@keyframes sc-pulse-anim {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(122, 173, 138, 0.5);
  }
  70% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(122, 173, 138, 0);
  }
}
.sc-body {
  padding: 14px 16px;
}

.sc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  margin-bottom: 3px;
}

.sc-name {
  font-weight: 700;
  font-size: 14px;
  color: #2d3436;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.sc-desc {
  font-size: 11.5px;
  color: #9ca3a8;
  line-height: 1.6;
  margin-bottom: 10px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sc-schedule {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ca3a8;
  margin-bottom: 8px;
}

.sc-pbar {
  height: 4px;
  border-radius: 2px;
  background: #f5f3ef;
  overflow: hidden;
  margin-bottom: 10px;
}

.sc-pbar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #ece9e4;
}

.sc-trigger-time {
  font-size: 11px;
  color: #9ca3a8;
}

.sc-trigger-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3a8;
  background: #faf9f7;
  padding: 2px 7px;
  border-radius: 6px;
}

.sc-trigger-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.18s;
  color: #fefefe;
}

.sc-trigger-btn:active {
  transform: scale(0.92);
}

.sc-trigger-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sc-tb-blue {
  background: #5a8bb0;
}

.sc-tb-green {
  background: #7aad8a;
}

.sc-tb-orange {
  background: #c98a5a;
}

.sc-tb-teal {
  background: #5e9fa8;
}

.sc-tb-purple {
  background: #8b7fb5;
}

.sc-tb-red {
  background: #c4616e;
}

.sc-tb-gray {
  background: #bbb;
}

.sc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-row {
  background: #fefefe;
  border-radius: 11px;
  border: 1.5px solid #ece9e4;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: 0.15s;
}

.sc-row:hover {
  border-color: #5a8bb0;
  box-shadow: 0 2px 12px rgba(90, 139, 176, 0.07);
}

.sc-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sc-ibg-blue {
  background: rgba(90, 139, 176, 0.08);
}

.sc-ibg-green {
  background: rgba(107, 158, 125, 0.08);
}

.sc-ibg-orange {
  background: rgba(212, 168, 85, 0.08);
}

.sc-ibg-teal {
  background: rgba(94, 159, 168, 0.08);
}

.sc-ibg-purple {
  background: rgba(139, 127, 181, 0.08);
}

.sc-ibg-red {
  background: rgba(196, 97, 110, 0.08);
}

.sc-ibg-gray {
  background: #f5f3ef;
}

.sc-row-body {
  flex: 1;
  min-width: 0;
}

.sc-row-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 100px;
}

.sc-row-last {
  font-size: 11px;
  color: #9ca3a8;
  text-align: right;
}

.sc-row-cnt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #5a8bb0;
  text-align: right;
}

.sc-feed {
  background: #fefefe;
  border-radius: 12px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
}

.sc-feed-hd {
  padding: 14px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-feed-title {
  font-weight: 700;
  font-size: 13px;
  color: #2d3436;
}

.sc-feed-link {
  font-size: 11px;
  font-weight: 700;
  color: #5a8bb0;
  text-decoration: none;
}

.sc-feed-link:hover {
  text-decoration: underline;
}

.sc-feed-body {
  padding: 8px 14px;
  max-height: 500px;
  overflow-y: auto;
}

.sc-feed-body::-webkit-scrollbar {
  width: 4px;
}

.sc-feed-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.sc-act {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #ece9e4;
}

.sc-act:last-child {
  border-bottom: none;
}

.sc-act-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.sc-dot-ok {
  background: #7aad8a;
}

.sc-dot-fail {
  background: #c4616e;
}

.sc-act-info {
  flex: 1;
  min-width: 0;
}

.sc-act-name {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
  margin-bottom: 2px;
}

.sc-act-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3a8;
}

.sc-act-badge {
  font-size: 9.5px;
  padding: 1px 6px;
}

.sc-act-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9ca3a8;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.sd-body {
  display: flex;
  gap: 20px;
  padding: 14px 28px;
}

.sd-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sd-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sd-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(90, 139, 176, 0.08) 0%, rgba(78, 126, 163, 0.08) 50%, rgba(87, 151, 160, 0.08) 100%);
  border-radius: 16px;
  padding: 28px 24px 22px;
  overflow: hidden;
}

.sd-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 10px, #000 10px, #000 10.5px);
}

.sd-hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5a8bb0, #5e9fa8, #7aad8a);
}

.sd-hero-actions {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd-hero-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  font-weight: 700;
  color: #7aad8a;
}

.sd-hero-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  animation: sc-pulse-anim 2s infinite;
}

.sd-hero-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #5a8bb0;
  opacity: 0.7;
}

.sd-hero-icon {
  font-size: 42px;
  margin: 6px 0;
}

.sd-hero-name {
  font-size: 20px;
  font-weight: 700;
  color: #2d3436;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.sd-hero-desc {
  font-size: 12px;
  color: #9ca3a8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.sd-hero-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sd-hero-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  font-weight: 700;
  color: #5a8bb0;
  white-space: nowrap;
}

.sd-sec {
  background: #fefefe;
  border-radius: 14px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
}

.sd-sec-hd {
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sd-sec-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd-sec-badge {
  font-size: 10px;
  padding: 2px 7px;
}

.sd-sec-body {
  padding: 14px 18px;
}

.sd-add-step {
  border: 1.5px dashed #ece9e4;
  background: transparent;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #5a8bb0;
  cursor: pointer;
  transition: 0.13s;
  font-family: var(--font-mono);
}

.sd-add-step:hover {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
}

.sd-step-cols {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid #ece9e4;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.sd-step-col-drag {
  width: 20px;
}

.sd-step-col-num {
  width: 28px;
}

.sd-step-col-device {
  flex: 1.5;
}

.sd-step-col-name {
  flex: 1;
}

.sd-step-col-val {
  width: 80px;
}

.sd-step-col-delay {
  width: 50px;
}

.sd-step-col-del {
  width: 24px;
}

.sd-step-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sd-step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
  transition: 0.12s;
}

.sd-step-row:last-child {
  border-bottom: none;
}

.sd-step-row:hover {
  background: #faf9f7;
}

.sd-step-drag {
  cursor: grab;
  color: #ccc;
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.sd-step-num {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: #fefefe;
}

.sd-sn-orange {
  background: #c98a5a;
}

.sd-sn-teal {
  background: #5e9fa8;
}

.sd-sn-blue {
  background: #5a8bb0;
}

.sd-sn-gray {
  background: #9ca3a8;
}

.sd-sn-purple {
  background: #8b7fb5;
}

.sd-step-content {
  flex: 1.5;
  min-width: 0;
}

.sd-step-device {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sd-step-ga {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #5a8bb0;
}

.sd-dpt-badge {
  font-size: 9px;
  padding: 1px 5px;
}

.sd-step-name {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.sd-step-val {
  width: 80px;
}

.sd-step-val-display {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  background: #faf9f7;
  border-radius: 6px;
  padding: 3px 8px;
}

.sd-delay-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #8b7fb5;
  background: rgba(139, 127, 181, 0.08);
  border: 1px solid rgba(139, 127, 181, 0.25);
  border-radius: 5px;
  padding: 2px 7px;
  width: 50px;
  text-align: center;
}

.sd-delay-none {
  color: #ccc;
  background: transparent;
  border-color: transparent;
}

.sd-step-del {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.12s;
  font-size: 12px;
}

.sd-step-del:hover {
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
}

.sd-sched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sd-sched-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sd-sched-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-family: var(--font-mono);
}

.sd-sched-val {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
}

.sd-day-chips {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.sd-day-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  transition: 0.13s;
  font-family: var(--font-mono);
}

.sd-day-active {
  background: #5a8bb0;
  color: #fefefe;
  border-color: #5a8bb0;
}

.sd-trig-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ece9e4;
}

.sd-trig-row:last-child {
  border-bottom: none;
}

.sd-trig-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.sd-trig-body {
  flex: 1;
  min-width: 0;
}

.sd-trig-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3436;
}

.sd-trig-desc {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 1px;
}

.sd-trig-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
  flex-shrink: 0;
}

.sd-trig-toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fefefe;
  top: 2px;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sd-trig-on {
  background: #7aad8a;
}

.sd-trig-on::after {
  left: 18px;
}

.sd-trig-off {
  background: #ccc;
}

.sd-trig-off::after {
  left: 2px;
}

.sd-ga-hd {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  background: #faf9f7;
  border-bottom: 1px solid #ece9e4;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.sd-ga-col-ga {
  width: 90px;
}

.sd-ga-col-name {
  flex: 1;
}

.sd-ga-col-dpt {
  width: 70px;
}

.sd-ga-col-val {
  width: 80px;
  text-align: right;
}

.sd-ga-row {
  display: flex;
  align-items: center;
  padding: 7px 18px;
  border-bottom: 1px solid #ece9e4;
  font-size: 12px;
}

.sd-ga-row:last-child {
  border-bottom: none;
}

.sd-gb-ga {
  width: 90px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5a8bb0;
  font-weight: 700;
}

.sd-gb-name {
  flex: 1;
  color: #2d3436;
  font-weight: 600;
}

.sd-gb-dpt {
  width: 70px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #9ca3a8;
}

.sd-gb-val {
  width: 80px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #2d3436;
}

.sd-rc-sec {
  padding: 16px 18px;
  border-bottom: 1px solid #ece9e4;
  background: #fefefe;
  border: 1.5px solid #ece9e4;
  border-radius: 12px;
  margin-bottom: 12px;
}

.sd-rc-title {
  font-size: 9px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.sd-drow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 12px;
}

.sd-drow:last-child {
  border-bottom: none;
}

.sd-dr-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
  font-size: 11px;
}

.sd-dr-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
  font-size: 12px;
}

.sd-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.sd-stat-box {
  padding: 10px;
  border-radius: 9px;
  text-align: center;
}

.sd-stat-box-ok {
  background: rgba(107, 158, 125, 0.08);
}

.sd-stat-box-warn {
  background: rgba(196, 97, 110, 0.08);
}

.sd-stat-val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

.sd-stat-box-ok .sd-stat-val {
  color: #7aad8a;
}

.sd-stat-box-warn .sd-stat-val {
  color: #c4616e;
}

.sd-stat-lbl {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
}

.sd-stat-bar {
  height: 5px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sd-stat-bar-fill {
  height: 100%;
  background: #7aad8a;
  border-radius: 3px;
  transition: 0.5s;
}

.sd-hist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #ece9e4;
}

.sd-hist-item:last-child {
  border-bottom: none;
}

.sd-hist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sd-dot-ok {
  background: #7aad8a;
}

.sd-dot-fail {
  background: #c4616e;
}

.sd-hist-body {
  flex: 1;
  min-width: 0;
}

.sd-hist-name {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.sd-hist-meta {
  font-size: 10.5px;
  color: #9ca3a8;
}

.sd-hist-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9ca3a8;
  white-space: nowrap;
  flex-shrink: 0;
}

.sd-action-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: 1.5px solid #ece9e4;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.13s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.sd-action-primary {
  background: #5a8bb0;
  color: #fefefe;
  border-color: #5a8bb0;
  margin-bottom: 8px;
}

.sd-action-primary:hover {
  background: #497698;
}

.sd-action-light {
  background: #fefefe;
  color: #2d3436;
}

.sd-action-light:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}

.sd-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.sd-action-link {
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #5a8bb0;
  text-decoration: none;
  cursor: pointer;
}

.sd-action-link:hover {
  text-decoration: underline;
}

.sa-body-wrap {
  display: flex;
  gap: 0;
  padding: 0 28px;
  align-items: flex-start;
}

.sa-left-col {
  flex: 1;
  min-width: 0;
}

.sa-mono {
  font-family: var(--font-mono);
}

.sa-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px 28px;
}

.sa-kpi {
  background: #fefefe;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1.5px solid #ece9e4;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.sa-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

.sa-bdr-blue::before {
  background: #5a8bb0;
}

.sa-bdr-green::before {
  background: #7aad8a;
}

.sa-bdr-red::before {
  background: #c4616e;
}

.sa-bdr-teal::before {
  background: #5e9fa8;
}

.sa-bdr-purple::before {
  background: #8b7fb5;
}

.sa-bdr-orange::before {
  background: #c98a5a;
}

.sa-kpi-icon {
  font-size: 16px;
  margin-bottom: 4px;
}

.sa-kpi-val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -1px;
  line-height: 1;
}

.sa-val-blue {
  color: #5a8bb0;
}

.sa-val-green {
  color: #7aad8a;
}

.sa-val-red {
  color: #c4616e;
}

.sa-val-teal {
  color: #5e9fa8;
}

.sa-val-purple {
  color: #8b7fb5;
}

.sa-val-orange {
  color: #c98a5a;
}

.sa-kpi-lbl {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 3px;
  font-weight: 500;
}

.sa-kpi-sub {
  font-size: 9.5px;
  color: #bbb;
  margin-top: 1px;
}

.sa-chart-panel {
  display: flex;
  gap: 20px;
  background: #fefefe;
  border-radius: 12px;
  border: 1.5px solid #ece9e4;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.sa-chart-wrap {
  flex: 1;
}

.sa-chart-title {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.sa-bar-area {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 52px;
}

.sa-bar-col {
  display: flex;
  flex-direction: column-reverse;
  flex: 1;
  gap: 1px;
}

.sa-bar-seg {
  border-radius: 2px;
  min-width: 0;
  transition: height 0.3s ease;
}

.sa-bar-x {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 8px;
  color: #9ca3a8;
  font-family: var(--font-mono);
}

.sa-chart-legend {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.sa-leg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3a8;
}

.sa-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sa-leg-val {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}

.sa-suc-bar {
  height: 5px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.sa-suc-fill {
  height: 100%;
  background: #7aad8a;
  border-radius: 3px;
  transition: 0.5s;
}

.sa-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #faf9f7;
  border-radius: 10px;
  border: 1px solid #ece9e4;
}

.sa-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fefefe;
  border: 1.5px solid #ece9e4;
  border-radius: 8px;
  padding: 6px 10px;
  width: 220px;
}

.sa-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: #2d3436;
  width: 100%;
  font-family: var(--font-mono);
}

.sa-search-input::placeholder {
  color: #9ca3a8;
}

.sa-f-select {
  border: 1.5px solid #ece9e4;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  background: #fefefe;
  color: #2d3436;
  outline: none;
  cursor: pointer;
}

.sa-f-select:focus {
  border-color: #5a8bb0;
}

.sa-filter-chip {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(196, 97, 110, 0.08);
  color: #c4616e;
  border: 1px solid rgba(196, 97, 110, 0.25);
  cursor: pointer;
  transition: 0.12s;
}

.sa-filter-chip:hover {
  background: #c4616e;
  color: #fefefe;
}

.sa-f-count {
  font-size: 11px;
  color: #9ca3a8;
  white-space: nowrap;
}

.sa-table-outer {
  margin-bottom: 16px;
}

.sa-tbl-card {
  background: #fefefe;
  border-radius: 12px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
}

.sa-tbl-hd {
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-tbl-title {
  font-weight: 700;
  font-size: 13px;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-tbl-hd-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-pp-sel {
  border: 1.5px solid #ece9e4;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: #fefefe;
  color: #2d3436;
  outline: none;
  cursor: pointer;
}

.sa-tbl {
  width: 100%;
  border-collapse: collapse;
}

.sa-tbl thead th {
  padding: 8px 14px;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  background: #faf9f7;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  font-family: var(--font-mono);
  cursor: pointer;
  user-select: none;
  transition: 0.12s;
}

.sa-tbl thead th:hover {
  color: #5a8bb0;
}

.sa-sort-asc::after {
  content: " ↑";
  color: #5a8bb0;
}

.sa-sort-desc::after {
  content: " ↓";
  color: #5a8bb0;
}

.sa-tbl tbody tr {
  border-bottom: 1px solid #f5f3ef;
  cursor: pointer;
  transition: 0.1s;
}

.sa-tbl tbody tr:last-child {
  border-bottom: none;
}

.sa-tbl tbody tr:hover {
  background: #f5f3ef;
}

.sa-sel-row {
  background: rgba(90, 139, 176, 0.08) !important;
}

.sa-tbl tbody td {
  padding: 8px 14px;
  vertical-align: middle;
  font-size: 12px;
}

.sa-sc-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-sc-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sa-sc-name {
  font-weight: 700;
  font-size: 12px;
  color: #2d3436;
}

.sa-sc-bld {
  font-size: 10px;
  color: #9ca3a8;
  font-family: var(--font-mono);
}

.sa-src-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: #f5f3ef;
  color: #9ca3a8;
}

.sa-st {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sa-st-ok {
  color: #7aad8a;
}

.sa-st-fail {
  color: #c4616e;
}

.sa-st-part {
  color: #d4a855;
}

.sa-dur-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: #faf9f7;
  border-radius: 5px;
  padding: 2px 6px;
  color: #2d3436;
  display: inline-block;
}

.sa-steps-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-s-pbar {
  width: 44px;
  height: 4px;
  background: #f5f3ef;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.sa-s-pbar-fill {
  height: 100%;
  border-radius: 2px;
}

.sa-s-frac {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9ca3a8;
  white-space: nowrap;
}

.sa-row-arrow {
  color: #ccc;
  font-size: 16px;
  transition: 0.12s;
}

.sa-tbl tbody tr:hover .sa-row-arrow {
  color: #5a8bb0;
  transform: translateX(2px);
}

.sa-pagination {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ece9e4;
}

.sa-pg-info {
  font-size: 11.5px;
  color: #9ca3a8;
  font-family: var(--font-mono);
}

.sa-pg-btns {
  display: flex;
  gap: 4px;
}

.sa-pg-btn {
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  cursor: pointer;
  font-weight: 700;
  color: #2d3436;
  transition: 0.12s;
  padding: 0 6px;
  font-family: var(--font-mono);
}

.sa-pg-btn:hover:not(:disabled) {
  border-color: #5a8bb0;
  color: #5a8bb0;
}

.sa-pg-on {
  background: #5a8bb0;
  border-color: #5a8bb0;
  color: #fefefe;
}

.sa-pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sa-detail-panel {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.22s ease;
}

.sa-dp-open {
  width: 360px;
  border-left: 1px solid #ece9e4;
}

.sa-dp-inner {
  width: 360px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fefefe;
}

.sa-dp-hd {
  padding: 14px 18px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.sa-dp-scroll {
  flex: 1;
  overflow-y: auto;
}

.sa-dp-scroll::-webkit-scrollbar {
  width: 4px;
}

.sa-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.sa-dp-sec {
  padding: 13px 18px;
  border-bottom: 1px solid #ece9e4;
}

.sa-dp-sec:last-child {
  border-bottom: none;
}

.sa-dp-sec-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 9px;
  font-family: var(--font-mono);
}

.sa-dp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 12px;
}

.sa-dp-row:last-child {
  border-bottom: none;
}

.sa-dp-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
  font-size: 11.5px;
}

.sa-dp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
  font-size: 12px;
  max-width: 180px;
  word-break: break-word;
}

.sa-dp-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
}

.sa-trace-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 12px;
}

.sa-trace-row:last-child {
  border-bottom: none;
}

.sa-trace-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sa-trace-n {
  font-weight: 700;
  color: #2d3436;
  font-size: 11.5px;
}

.sa-trace-ga {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5a8bb0;
}

.sa-trace-dur {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #9ca3a8;
  white-space: nowrap;
  flex-shrink: 0;
}

.ru-body-wrap {
  display: flex;
  gap: 0;
  padding: 0 28px 28px 28px;
  min-height: 0;
}

.ru-main-col {
  flex: 1;
  min-width: 0;
}

.ru-scroll-area {
  overflow-y: auto;
  max-height: calc(100vh - 340px);
  padding-right: 4px;
}

.ru-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 16px 28px 6px 28px;
  flex-wrap: wrap;
}

.ru-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fefefe;
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 160px;
  flex: 1;
  border: 1px solid #ece9e4;
  border-bottom: 3px solid transparent;
  transition: 0.18s;
}

.ru-kpi:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.ru-kpi-blue {
  border-bottom-color: #5a8bb0;
}

.ru-kpi-green {
  border-bottom-color: #7aad8a;
}

.ru-kpi-orange {
  border-bottom-color: #d4a855;
}

.ru-kpi-red {
  border-bottom-color: #c4616e;
}

.ru-kpi-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ru-kpi-val {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.ru-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #2d3436;
}

.ru-kpi-sub {
  font-size: 10px;
  color: #9ca3a8;
}

.ru-cv-pri {
  color: #5a8bb0;
}

.ru-cv-ok {
  color: #7aad8a;
}

.ru-cv-warn {
  color: #d4a855;
}

.ru-cv-danger {
  color: #c4616e;
}

.ru-cv-info {
  color: #8b7fb5;
}

.ru-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  flex-wrap: wrap;
}

.ru-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 0 10px;
  min-width: 200px;
}

.ru-search-input {
  border: none;
  outline: none;
  font-size: 12px;
  background: transparent;
  flex: 1;
  padding: 6px 0;
  color: #2d3436;
}

.ru-f-sel {
  font-size: 12px;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fefefe;
  color: #2d3436;
  min-width: 160px;
}

.ru-cpill {
  font-size: 0.6875rem;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  font-weight: 700;
  transition: 0.15s;
  user-select: none;
}

.ru-cpill:hover {
  background: #f5f3ef;
}

.ru-cpill-all {
  background: #5a8bb0;
  color: #fefefe;
  border-color: #5a8bb0;
}

.ru-cpill-sel {
  background: #5a8bb0;
  color: #fefefe;
  border-color: #5a8bb0;
}

.ru-vt-wrap {
  display: flex;
  gap: 2px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 6px;
  padding: 3px;
  margin-left: auto;
}

.ru-vt-btn {
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: 0.15s;
  color: #9ca3a8;
}

.ru-vt-on {
  background: #fefefe;
  color: #2d3436;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ru-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.ru-card {
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  overflow: hidden;
  transition: 0.18s;
}

.ru-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.ru-card-inactive {
  opacity: 0.55;
}

.ru-card-hd {
  position: relative;
  padding: 14px 16px 12px;
  color: #fefefe;
  overflow: hidden;
  min-height: 90px;
}

.ru-card-hd-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(255, 255, 255, 0.04) 10px, rgba(255, 255, 255, 0.04) 20px);
  pointer-events: none;
}

.ru-card-num {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.ru-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.ru-card-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ru-card-pill {
  font-size: 9.5px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.ru-prio-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.ru-card-body {
  padding: 14px 16px;
}

.ru-ifthen {
  margin-bottom: 12px;
}

.ru-ift-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ru-ift-lbl {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.ru-lbl-if {
  background: rgba(90, 139, 176, 0.08);
  color: #5a8bb0;
}

.ru-lbl-and {
  background: rgba(139, 127, 181, 0.08);
  color: #8b7fb5;
}

.ru-lbl-then {
  background: rgba(107, 158, 125, 0.08);
  color: #7aad8a;
}

.ru-ift-text {
  font-size: 11.5px;
  color: #2d3436;
  line-height: 1.5;
}

.ru-ift-conn {
  width: 1px;
  height: 10px;
  background: #ece9e4;
  margin-left: 16px;
}

.ru-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid #ece9e4;
  padding-top: 10px;
}

.ru-stat-row {
  display: flex;
  gap: 20px;
}

.ru-stat-val {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.ru-stat-lbl {
  font-size: 9.5px;
  color: #9ca3a8;
}

.ru-mono {
  font-family: var(--font-mono);
}

.ru-card-btns {
  display: flex;
  gap: 3px;
}

.ru-card-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: 0.15s;
  color: #9ca3a8;
}

.ru-card-btn:hover {
  background: #f5f3ef;
  color: #2d3436;
}

.ru-btn-run {
  color: #7aad8a;
  border-color: rgba(122, 173, 138, 0.25);
}

.ru-btn-run:hover {
  background: rgba(107, 158, 125, 0.08);
}

.ru-btn-run:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ru-card-toggle {
  width: 32px;
  height: 18px;
  border-radius: 10px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 12px;
  transition: 0.2s;
}

.ru-tog-on {
  background: rgba(255, 255, 255, 0.35);
}

.ru-tog-on::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fefefe;
  transition: 0.2s;
}

.ru-tog-off {
  background: rgba(0, 0, 0, 0.15);
}

.ru-tog-off::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fefefe;
  transition: 0.2s;
}

.ru-tog {
  width: 32px;
  height: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
  position: relative;
}

.ru-rules-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ru-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fefefe;
  border-radius: 10px;
  border: 1px solid #ece9e4;
  padding: 10px 14px;
  transition: 0.15s;
}

.ru-row:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ru-row-inactive {
  opacity: 0.55;
}

.ru-rr-bar {
  width: 3px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ru-rr-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ru-rr-body {
  flex: 1;
  min-width: 0;
}

.ru-rr-num {
  font-size: 9.5px;
  color: #9ca3a8;
  font-family: var(--font-mono);
  font-weight: 600;
}

.ru-rr-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 2px;
}

.ru-rr-cond {
  font-size: 11px;
  color: #9ca3a8;
  line-height: 1.4;
  margin-bottom: 4px;
}

.ru-rr-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ru-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.ru-rr-meta {
  text-align: right;
  flex-shrink: 0;
}

.ru-rr-last {
  font-size: 11px;
  color: #2d3436;
  font-weight: 600;
}

.ru-rr-count {
  font-size: 10px;
  color: #9ca3a8;
}

.ru-right-panel {
  width: 320px;
  flex-shrink: 0;
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 340px);
}

.ru-rp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #ece9e4;
}

.ru-rp-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ru-rp-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.ru-exec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #ece9e4;
}

.ru-exec-item:last-child {
  border-bottom: none;
}

.ru-exec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.ru-exec-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.3;
}

.ru-exec-meta {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ru-exec-time {
  font-size: 10px;
  color: #9ca3a8;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.ru-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  position: relative;
}

.ru-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #7aad8a;
  animation: ru-pulse-anim 2s infinite;
}

@keyframes ru-pulse-anim {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}
.ru-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #9ca3a8;
}

.ru-rp-history-btn.e-btn {
  background: rgba(90, 139, 176, 0.08) !important;
  color: #5a8bb0 !important;
  border: none !important;
  font-size: 10px !important;
  padding: 1px 8px !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  border-radius: 4px !important;
}

.ru-rp-history-btn.e-btn:hover {
  background: rgba(90, 139, 176, 0.15) !important;
}

.ru-detail-panel {
  width: 320px;
  flex-shrink: 0;
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  margin-left: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}

.ru-dp-hd {
  padding: 16px;
  border-radius: 12px 12px 0 0;
  position: relative;
  color: #fefefe;
}

.ru-dp-hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ru-dp-num {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
  font-family: var(--font-mono, "Space Mono", monospace);
}

.ru-dp-close.e-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fefefe !important;
  border: none !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  font-size: 13px !important;
}

.ru-dp-close.e-btn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

.ru-dp-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ru-dp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ru-dp-body {
  padding: 14px 16px;
  flex: 1;
}

.ru-dp-section {
  margin-bottom: 16px;
}

.ru-dp-sec-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ru-dp-desc {
  font-size: 12.5px;
  color: #5a5e64;
  line-height: 1.5;
}

.ru-dp-logic {
  background: #faf9f7;
  border-radius: 8px;
  padding: 10px 12px;
}

.ru-dp-stats {
  display: flex;
  gap: 12px;
}

.ru-dp-stat {
  flex: 1;
  background: #faf9f7;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.ru-dp-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 2px;
}

.ru-dp-stat-lbl {
  font-size: 10px;
  color: #9ca3a8;
}

.ru-dp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.ru-dp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid #ece9e4;
}

.ru-dp-footer .e-btn {
  font-size: 11px !important;
}

:root {
  --rx-success: #7aad8a;
  --rx-danger: #c4616e;
  --rx-warning: #d4a855;
  --rx-primary: #5a8bb0;
  --rx-info: #8b7fb5;
  --rx-teal: #6ba5a0;
}

.rx-body-wrap {
  display: flex;
  gap: 0;
  padding: 0 28px 28px 28px;
  min-height: 0;
  overflow: hidden;
}

.rx-kpi-strip {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.rx-kpi {
  flex: 1;
  padding: 13px 18px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.12s;
}

.rx-kpi:last-child {
  border-right: none;
}

.rx-kpi:hover {
  background: #f8fafb;
}

.rx-kpi::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.rx-kpi-blue::before {
  background: #5a8bb0;
}

.rx-kpi-green::before {
  background: #7aad8a;
}

.rx-kpi-red::before {
  background: #c4616e;
}

.rx-kpi-orange::before {
  background: #d4a855;
}

.rx-kpi-teal::before {
  background: var(--rx-teal);
}

.rx-kpi-info::before {
  background: #8b7fb5;
}

.rx-kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rx-kpi-icon {
  font-size: 16px;
  line-height: 1;
}

.rx-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.rx-kpi-val {
  font-size: 24px;
  font-weight: 800;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1.5px;
  line-height: 1;
}

.rx-kpi-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 3px;
}

.rx-cv-pri {
  color: #5a8bb0;
}

.rx-cv-ok {
  color: #7aad8a;
}

.rx-cv-warn {
  color: #d4a855;
}

.rx-cv-danger {
  color: #c4616e;
}

.rx-cv-info {
  color: #8b7fb5;
}

.rx-cv-teal {
  color: var(--rx-teal);
}

.rx-chart-band {
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  padding: 12px 24px;
  flex-shrink: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rx-chart-wrap {
  flex: 1;
}

.rx-chart-title {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rx-chart-inner {
  position: relative;
  height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.rx-bar-wrap {
  flex: 1;
  height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
}

.rx-bar-wrap:hover .rx-bar-ok {
  filter: brightness(1.1);
}

.rx-bar-wrap:hover .rx-bar-fail {
  filter: brightness(1.1);
}

.rx-bar-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}

.rx-bar-ok {
  background: #7aad8a;
  transition: 0.2s;
}

.rx-bar-fail {
  background: #c4616e;
  transition: 0.2s;
}

.rx-bar-skip {
  background: #d4a855;
  transition: 0.2s;
}

.rx-x-axis {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.rx-x-lbl {
  flex: 1;
  text-align: center;
  font-size: 8.5px;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
  overflow: hidden;
}

.rx-chart-legend {
  flex-shrink: 0;
  background: #f8f9fa;
  border: 1.5px solid #ece9e4;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 170px;
}

.rx-cl-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 11.5px;
}

.rx-cl-row:last-child {
  margin-bottom: 0;
}

.rx-cl-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rx-cl-lbl {
  flex: 1;
  color: #9ca3a8;
}

.rx-cl-val {
  font-family: "Space Mono", monospace;
  font-weight: 800;
  font-size: 12px;
  color: #2d3436;
}

.rx-cl-divider {
  height: 1px;
  background: #ece9e4;
  margin: 6px 0;
}

.rx-cl-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
}

.rx-cl-rate-lbl {
  color: #9ca3a8;
  font-size: 0.6875rem;
}

.rx-cl-rate-val {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: #7aad8a;
}

.rx-cl-rate-bar {
  height: 4px;
  background: #f1f3f5;
  border-radius: 2px;
  overflow: hidden;
}

.rx-cl-rate-fill {
  height: 100%;
  border-radius: 2px;
  background: #7aad8a;
  transition: 0.6s;
}

.rx-filter-bar {
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.rx-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #ece9e4;
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  min-width: 230px;
}

.rx-search-input.e-textbox {
  border: none !important;
  font-size: 12.5px !important;
  background: transparent !important;
}

.rx-f-date.e-datepicker {
  min-width: 130px;
}

.rx-f-sel.e-ddl {
  min-width: 150px;
}

.rx-f-clear.e-btn {
  background: #f9e8eb !important;
  color: #c4616e !important;
  border: 1.5px solid #f0b8c0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.rx-f-clear.e-btn:hover {
  background: #f5d5db !important;
}

.rx-f-count {
  font-size: 11.5px;
  color: #9ca3a8;
  margin-left: auto;
  white-space: nowrap;
}

.rx-table-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.rx-table-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}

.rx-table-scroll::-webkit-scrollbar {
  width: 6px;
}

.rx-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.rx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.rx-table thead {
  position: sticky;
  top: 0;
  z-index: 20;
}

.rx-table thead th {
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #fafbfb;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: 0.12s;
}

.rx-table thead th:hover {
  color: #5a8bb0;
}

.rx-sort-asc::after {
  content: " ↑";
}

.rx-sort-desc::after {
  content: " ↓";
}

.rx-table tbody tr {
  border-bottom: 1px solid #f5f7fa;
  cursor: pointer;
  transition: 0.1s;
}

.rx-table tbody tr:last-child {
  border-bottom: none;
}

.rx-table tbody tr:hover {
  background: #f5f9ff;
}

.rx-sel-row {
  background: #e8f0f6 !important;
  border-left: 3px solid #5a8bb0;
}

.rx-sel-row td:first-child {
  padding-left: 10px;
}

.rx-table tbody td {
  padding: 9px 13px;
  vertical-align: middle;
}

.rx-ts-cell {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #2d3436;
  white-space: nowrap;
}

.rx-rule-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rx-rule-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.rx-rule-name {
  font-weight: 800;
  font-size: 12.5px;
  color: #2d3436;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rx-rule-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
  font-family: "Space Mono", monospace;
}

.rx-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rx-bg-ok {
  background: #e6f0ea;
  color: #7aad8a;
}

.rx-bg-fail {
  background: #f5e4e7;
  color: #c4616e;
}

.rx-bg-skip {
  background: #f5efe0;
  color: #c08000;
}

.rx-src-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  background: #f5f4f1;
  color: #2d3436;
}

.rx-dur-pill {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.rx-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.rx-mini-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rx-mp-bar {
  width: 44px;
  height: 4px;
  background: #f1f3f5;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.rx-mp-fill {
  height: 100%;
  border-radius: 2px;
}

.rx-mp-txt {
  font-size: 0.6875rem;
  font-family: "Space Mono", monospace;
  white-space: nowrap;
}

.rx-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #ece9e4;
  background: #fff;
  flex-shrink: 0;
}

.rx-pg-info {
  font-size: 11.5px;
  color: #9ca3a8;
}

.rx-pg-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rx-pg-btn.e-btn {
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2d3436 !important;
}

.rx-pg-btn.e-btn:hover:not(:disabled) {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}

.rx-pg-cur.e-btn {
  background: #5a8bb0 !important;
  color: #fff !important;
  border-color: #5a8bb0 !important;
}

.rx-pg-btn.e-btn:disabled {
  opacity: 0.35;
}

.rx-pg-ellipsis {
  padding: 0 4px;
  color: #9ca3a8;
  font-size: 12px;
}

.rx-per-page.e-ddl {
  min-width: 100px;
}

.rx-detail-panel {
  width: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border-left: 0 solid #ece9e4;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.rx-dp-open {
  width: 340px;
  border-left-width: 1px;
}

.rx-dp-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

.rx-dp-scroll::-webkit-scrollbar {
  width: 4px;
}

.rx-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.rx-dp-hd {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.rx-dp-hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rx-dp-rule {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rx-dp-rule-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rx-dp-rule-name {
  font-weight: 800;
  font-size: 13px;
  color: #2d3436;
  line-height: 1.3;
}

.rx-dp-rule-id {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #9ca3a8;
}

.rx-dp-close.e-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 7px !important;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
  color: #2d3436 !important;
  padding: 0 !important;
  font-size: 12px !important;
}

.rx-dp-close.e-btn:hover {
  background: #f5f4f1 !important;
}

.rx-dp-banner {
  margin: 12px 16px;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rx-banner-ok {
  background: #e6f0ea;
  border: 1.5px solid #b2dfc5;
}

.rx-banner-fail {
  background: #f5e4e7;
  border: 1.5px solid #f0b8c0;
}

.rx-banner-skip {
  background: #f5efe0;
  border: 1.5px solid #e6d9a8;
}

.rx-dp-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.rx-dp-banner-status {
  font-weight: 800;
  font-size: 13px;
}

.rx-dp-banner-detail {
  font-size: 11.5px;
  margin-top: 2px;
  opacity: 0.8;
}

.rx-dp-sec {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.rx-dp-sec-title {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 9px;
}

.rx-dp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  gap: 6px;
}

.rx-dp-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
  width: 110px;
}

.rx-dp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
  word-break: break-all;
}

.rx-cond-trace {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rx-ct-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f8f9fa;
  border: 1px solid #ece9e4;
}

.rx-ct-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.rx-ct-body {
  flex: 1;
  min-width: 0;
}

.rx-ct-cond {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.4;
}

.rx-ct-measured {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
  font-family: "Space Mono", monospace;
}

.rx-ct-result {
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}

.rx-act-trace {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rx-at-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid #ece9e4;
}

.rx-at-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid transparent;
}

.rx-at-body {
  flex: 1;
  min-width: 0;
}

.rx-at-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #2d3436;
}

.rx-at-meta {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rx-at-dur {
  font-family: "Space Mono", monospace;
  font-size: 10px;
}

.rx-at-ga {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  background: #f5f4f1;
  padding: 1px 5px;
  border-radius: 4px;
  color: #8b7fb5;
}

.rx-dp-acts {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rx-dp-act-btn.e-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 14px !important;
  border-radius: 9px !important;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2d3436 !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.rx-dp-act-btn.e-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
  background: #f0f7ff !important;
}

:root {
  --al-success: #7aad8a;
  --al-danger: #c4616e;
  --al-warning: #d4a855;
  --al-primary: #5a8bb0;
  --al-info: #8b7fb5;
  --al-teal: #6ba5a0;
  --al-orange: #d4855a;
}

.al-body-wrap {
  display: flex;
  gap: 0;
  padding: 0 28px 28px 28px;
  min-height: 0;
  overflow: hidden;
}

.al-vt-wrap {
  display: flex;
  gap: 3px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 6px;
  padding: 3px;
}

.al-vt-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.13s;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.al-vt-on {
  background: #fff;
  color: #2d3436;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
}

.al-kpi-strip {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.al-kpi {
  flex: 1;
  padding: 13px 18px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.12s;
}

.al-kpi:last-child {
  border-right: none;
}

.al-kpi:hover {
  background: #f8fafb;
}

.al-kpi::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.al-kpi-blue::before {
  background: #5a8bb0;
}

.al-kpi-green::before {
  background: #7aad8a;
}

.al-kpi-red::before {
  background: #c4616e;
}

.al-kpi-warn::before {
  background: #d4a855;
}

.al-kpi-teal::before {
  background: var(--al-teal);
}

.al-kpi-info::before {
  background: #8b7fb5;
}

.al-kpi-orange::before {
  background: var(--al-orange);
}

.al-kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.al-kpi-icon {
  font-size: 16px;
  line-height: 1;
}

.al-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.al-kpi-val {
  font-size: 22px;
  font-weight: 800;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.al-kpi-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 3px;
}

.al-chart-band {
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  padding: 11px 24px;
  flex-shrink: 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.al-chart-wrap {
  flex: 1;
}

.al-chart-title {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.al-chart-inner {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 52px;
}

.al-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.al-bar-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}

.al-bar-create {
  background: var(--al-success);
}

.al-bar-update {
  background: var(--al-info);
}

.al-bar-toggle {
  background: var(--al-warning);
}

.al-bar-delete {
  background: var(--al-danger);
}

.al-bar-clone {
  background: var(--al-teal);
}

.al-x-axis {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.al-x-lbl {
  flex: 1;
  text-align: center;
  font-size: 8.5px;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.al-chart-legend {
  flex-shrink: 0;
  min-width: 200px;
  background: #f8f9fc;
  border: 1.5px solid #ece9e4;
  border-radius: 10px;
  padding: 10px 14px;
}

.al-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 11.5px;
  cursor: pointer;
  border-radius: 5px;
  padding: 2px 4px;
  transition: 0.12s;
}

.al-legend-row:last-child {
  margin-bottom: 0;
}

.al-legend-row:hover {
  background: #fff;
}

.al-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.al-legend-lbl {
  flex: 1;
  color: #9ca3a8;
}

.al-legend-val {
  font-family: "Space Mono", monospace;
  font-weight: 800;
  font-size: 12px;
  color: #2d3436;
}

.al-filter-bar {
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.al-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #ece9e4;
  border-radius: 8px;
  padding: 6px 11px;
  background: #fff;
  width: 240px;
}

.al-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.al-search-input .e-input {
  border: none !important;
  padding: 0 !important;
  font-size: 12.5px !important;
}

.al-f-date {
  width: 130px;
}

.al-f-date .e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 8px !important;
  height: 33px;
}

.al-f-sel {
  width: 150px;
}

.al-f-sel .e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 8px !important;
  height: 33px;
}

.al-f-clear {
  background: #fff5f8 !important;
  color: #c4616e !important;
  border: 1.5px solid #f0b8c0 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}
.al-f-clear:hover {
  background: #fde8ed !important;
}

.al-f-count {
  font-size: 11.5px;
  color: #9ca3a8;
  margin-left: auto;
}

.al-table-pane {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.al-table-scroll {
  flex: 1;
  overflow-y: auto;
}
.al-table-scroll::-webkit-scrollbar {
  width: 6px;
}
.al-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.al-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.al-table thead {
  position: sticky;
  top: 0;
  z-index: 20;
}

.al-table thead th {
  padding: 8px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #fafbfe;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: 0.12s;
}
.al-table thead th:hover {
  color: #5a8bb0;
}

.al-sort-asc::after {
  content: " ↑";
}

.al-sort-desc::after {
  content: " ↓";
}

.al-table tbody tr {
  border-bottom: 1px solid #f5f7fc;
  cursor: pointer;
  transition: 0.1s;
}

.al-table tbody tr:hover {
  background: #f5f9ff;
}

.al-sel-row {
  background: #e8f7ff !important;
  border-left: 3px solid #5a8bb0;
}

.al-sel-row td:first-child {
  padding-left: 9px;
}

.al-table tbody td {
  padding: 9px 12px;
  vertical-align: middle;
}

.al-ts-cell {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #2d3436;
  white-space: nowrap;
}

.al-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.al-act-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.al-actor-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.al-actor-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.al-actor-name {
  font-weight: 700;
  font-size: 12px;
  color: #2d3436;
}

.al-actor-role {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.al-target-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.al-target-name {
  font-weight: 700;
  font-size: 12px;
  color: #2d3436;
}

.al-target-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.al-cat-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  background: #f4f6fb;
  color: #9ca3a8;
}

.al-diff-preview {
  font-size: 0.6875rem;
  color: #9ca3a8;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-diff-chg {
  color: #5a8bb0;
  font-weight: 700;
}

.al-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-top: 1px solid #ece9e4;
  background: #fff;
  flex-shrink: 0;
}

.al-pg-info {
  font-size: 11.5px;
  color: #9ca3a8;
}

.al-pg-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.al-pg-btn {
  min-width: 30px;
  height: 30px;
  border-radius: 7px !important;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2d3436 !important;
}
.al-pg-btn:hover:not(:disabled) {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}

.al-pg-cur {
  background: #5a8bb0 !important;
  color: #fff !important;
  border-color: #5a8bb0 !important;
}

.al-pg-ellipsis {
  padding: 0 4px;
  color: #9ca3a8;
  font-size: 12px;
}

.al-per-page {
  width: 100px;
}

.al-per-page .e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 7px !important;
  height: 30px;
}

.al-timeline-wrap {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.al-tl-day-hd {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0 6px;
  border-top: 1px solid #ece9e4;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.al-tl-day-hd:first-child {
  border-top: none;
  margin-top: 0;
}

.al-tl-day-badge {
  background: #f4f6fb;
  color: #9ca3a8;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.al-tl-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  transition: 0.12s;
  margin-bottom: 1px;
  position: relative;
}
.al-tl-item:hover {
  background: #f5f9ff;
}

.al-tl-line-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
}

.al-tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ece9e4;
}

.al-tl-connector {
  flex: 1;
  width: 2px;
  background: #ece9e4;
  min-height: 6px;
}

.al-tl-body {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}

.al-tl-row1 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.al-tl-type {
  font-size: 11px;
  font-weight: 800;
}

.al-tl-target {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
}

.al-tl-ts {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #9ca3a8;
  margin-left: auto;
  white-space: nowrap;
}

.al-tl-desc {
  font-size: 12px;
  color: #9ca3a8;
  line-height: 1.5;
}

.al-tl-chg {
  color: #5a8bb0;
  font-weight: 700;
}

.al-tl-actor {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3a8;
}

.al-tl-actor-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.al-detail-panel {
  width: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border-left: 0 solid #ece9e4;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.al-dp-open {
  width: 360px;
  border-left-width: 1px;
}

.al-dp-hd {
  padding: 13px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.al-dp-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.al-dp-hd-title {
  font-weight: 800;
  font-size: 13px;
  color: #2d3436;
}

.al-dp-hd-id {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 2px;
  font-family: "Space Mono", monospace;
}

.al-dp-close {
  width: 26px !important;
  height: 26px;
  border-radius: 7px !important;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
}
.al-dp-close:hover {
  background: #f4f6fb !important;
}

.al-dp-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}
.al-dp-scroll::-webkit-scrollbar {
  width: 4px;
}
.al-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.al-dp-banner {
  margin: 12px 16px 0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: center;
}

.al-dp-banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.al-dp-banner-type {
  font-weight: 800;
  font-size: 14px;
}

.al-dp-banner-sub {
  font-size: 11.5px;
  margin-top: 2px;
  opacity: 0.75;
}

.al-dp-sec {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
}

.al-dp-sec-title {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.al-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 12px;
  gap: 6px;
}

.al-dp-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
  width: 100px;
}

.al-dp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
  word-break: break-all;
}

.al-diff-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.al-diff-row {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ece9e4;
}

.al-diff-field {
  padding: 5px 10px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  background: #f8f9fc;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #ece9e4;
}

.al-diff-vals {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.al-diff-before {
  padding: 7px 10px;
  background: #fff5f8;
  border-right: 1px solid #ece9e4;
}

.al-diff-after {
  padding: 7px 10px;
  background: #e8fff3;
}

.al-diff-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.al-diff-label.before {
  color: #c4616e;
}

.al-diff-label.after {
  color: #7aad8a;
}

.al-diff-text {
  font-size: 12px;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.4;
}

.al-diff-text.before {
  color: #a50d2e;
}

.al-diff-text.after {
  color: #2d8b5a;
}

.al-diff-full {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.al-diff-full.new {
  background: #e8fff3;
  color: #2d8b5a;
}

.al-diff-full.del {
  background: #fff5f8;
  color: #a50d2e;
  text-decoration: line-through;
}

.al-dp-reason {
  font-size: 12.5px;
  color: #2d3436;
  line-height: 1.65;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 10px 12px;
}

.al-dp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.al-dp-meta-item {
  background: #f8f9fc;
  border-radius: 8px;
  padding: 8px 10px;
}

.al-dp-meta-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.al-dp-meta-val {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.al-dp-acts {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.al-dp-act-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 9px 14px !important;
  border-radius: 9px !important;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #2d3436 !important;
  width: 100%;
}
.al-dp-act-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
  background: #f0f7ff !important;
}

.al-dp-restore:hover {
  border-color: #d4a855 !important;
  color: #c08000 !important;
  background: #fff8dd !important;
}

.rc-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px;
}
.rc-body-scroll::-webkit-scrollbar {
  width: 6px;
}
.rc-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.rc-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.rc-kpi {
  flex: 1;
  background: #f5f3ef;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1.5px solid #ece9e4;
  position: relative;
  overflow: hidden;
  transition: 0.15s;
}

.rc-kpi:hover {
  border-color: #5a8bb0;
}

.rc-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

.rc-kpi-blue::before {
  background: #5a8bb0;
}

.rc-kpi-green::before {
  background: #7aad8a;
}

.rc-kpi-teal::before {
  background: #6ba5a0;
}

.rc-kpi-orange::before {
  background: #d4855a;
}

.rc-kpi-icon {
  font-size: 15px;
  margin-bottom: 4px;
}

.rc-kpi-val {
  font-size: 22px;
  font-weight: 800;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.rc-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 500;
}

.rc-kpi-sub {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
}

.rc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.rc-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #ece9e4;
  border-radius: 8px;
  padding: 6px 12px;
  background: #fff;
  width: 260px;
}

.rc-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.rc-search-input .e-input {
  border: none !important;
  padding: 0 !important;
  font-size: 12.5px !important;
}

.rc-f-count {
  font-size: 11.5px;
  color: #9ca3a8;
}

.rc-vt-wrap {
  display: flex;
  gap: 3px;
  background: rgba(156, 163, 168, 0.06);
  border-radius: 6px;
  padding: 3px;
}

.rc-vt-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: 0.13s;
}

.rc-vt-on {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
}

.rc-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rc-bg-ok {
  background: #e6f0ea;
  color: #7aad8a;
}

.rc-bg-warn {
  background: #f5efe0;
  color: #c08000;
}

.rc-bg-pri {
  background: #e8f7ff;
  color: #5a8bb0;
}

.rc-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.rc-card {
  background: #fefefe;
  border-radius: 16px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.18s;
  position: relative;
}

.rc-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 8px 28px rgba(90, 139, 176, 0.1);
  transform: translateY(-2px);
}

.rc-cc-hero {
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}

.rc-cc-pat {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 0 14px);
  pointer-events: none;
}

.rc-cc-glow {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
  pointer-events: none;
}

.rc-cc-acts {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: 0.15s;
}

.rc-card:hover .rc-cc-acts {
  opacity: 1;
}

.rc-cc-abtn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  transition: 0.13s;
}

.rc-cc-abtn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.rc-cc-del:hover {
  background: #c4616e !important;
}

.rc-cc-abtn-sf.e-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22) !important;
  border: none !important;
  color: #fff !important;
  font-size: 13px;
  padding: 0;
}
.rc-cc-abtn-sf.e-btn:hover {
  background: rgba(255, 255, 255, 0.38) !important;
}

.rc-cc-del-sf.e-btn:hover {
  background: #c4616e !important;
}

.rc-cc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.rc-cc-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.3px;
}

.rc-cc-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  padding-right: 70px;
}

.rc-cc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ece9e4;
}

.rc-cc-st {
  padding: 12px 14px;
  border-right: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rc-cc-st:last-child {
  border-right: none;
}

.rc-cc-sv {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: #2d3436;
}

.rc-cc-sl {
  font-size: 9.5px;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.rc-cc-progress {
  padding: 10px 14px;
  border-top: 1px solid #ece9e4;
}

.rc-cc-prog-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  font-weight: 600;
}

.rc-cc-prog-val {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.rc-pbar {
  height: 5px;
  background: #f1f3f9;
  border-radius: 3px;
  overflow: hidden;
}

.rc-pbar-fill {
  height: 100%;
  border-radius: 3px;
  transition: 0.6s;
}

.rc-cc-footer {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ece9e4;
}

.rc-cc-code {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  background: #f4f6fb;
  padding: 2px 8px;
  border-radius: 5px;
  color: #8b7fb5;
}

.rc-cat-table {
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.058);
  overflow: hidden;
}

.rc-ct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #ece9e4;
}

.rc-ct-title {
  font-size: 13px;
  font-weight: 700;
  color: #2d3436;
}

.rc-table {
  width: 100%;
  border-collapse: collapse;
}

.rc-table thead th {
  padding: 9px 14px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: left;
  background: #fafbfe;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.rc-table tbody tr {
  border-bottom: 1px solid #ece9e4;
  cursor: pointer;
  transition: 0.12s;
}

.rc-table tbody tr:last-child {
  border-bottom: none;
}

.rc-table tbody tr:hover {
  background: #f5f9ff;
}

.rc-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
}

.rc-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.rc-row-name {
  font-weight: 800;
  font-size: 13px;
  color: #2d3436;
}

.rc-row-desc {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 1px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-ibar-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.rc-ibar {
  width: 60px;
  height: 4px;
  background: #f1f3f9;
  border-radius: 2px;
  overflow: hidden;
}

.rc-ibar-fill {
  height: 100%;
  border-radius: 2px;
}

.rc-row-acts {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: 0.13s;
}

.rc-table tbody tr:hover .rc-row-acts {
  opacity: 1;
}

.rc-row-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.5px solid #ece9e4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: 0.13s;
  color: #9ca3a8;
}
.rc-row-btn:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
  background: #f0f7ff;
}

.rc-del-btn:hover {
  border-color: #c4616e !important;
  color: #c4616e !important;
  background: #fff5f8 !important;
}

.rc-row-btn-sf.e-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  border: 1.5px solid #ece9e4 !important;
  background: #fff !important;
  padding: 0;
  font-size: 12px;
  color: #9ca3a8 !important;
  transition: 0.13s;
}
.rc-row-btn-sf.e-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
  background: #f0f7ff !important;
}

.rc-del-btn-sf.e-btn:hover {
  border-color: #c4616e !important;
  color: #c4616e !important;
  background: #fff5f8 !important;
}

.rc-modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, 0.58);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: rcFadeIn 0.18s ease;
}

.rc-modal-box {
  background: #fff;
  border-radius: 18px;
  width: 580px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22);
  animation: rcBoxIn 0.22s ease;
}

.rc-modal-sm {
  max-width: 440px;
}

@keyframes rcFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rcBoxIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rc-m-hd {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.rc-m-title {
  font-size: 17px;
  font-weight: 800;
  color: #2d3436;
}

.rc-m-sub {
  font-size: 12px;
  color: #9ca3a8;
  margin-top: 2px;
}

.rc-m-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.rc-m-body::-webkit-scrollbar {
  width: 4px;
}
.rc-m-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.rc-m-ft {
  padding: 14px 24px;
  border-top: 1px solid #ece9e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.rc-m-info {
  font-size: 11.5px;
  color: #9ca3a8;
}

.rc-m-prev {
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  min-height: 88px;
}

.rc-m-prev-pat {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 0 14px);
  pointer-events: none;
}

.rc-m-prev-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.rc-m-prev-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.rc-fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.rc-fl-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.rc-fl-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #2d3436;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rc-req {
  color: #c4616e;
}

.rc-fl-ctrl .e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 8px !important;
}

.rc-fl-ctrl .e-input:focus ~ .e-input-group {
  border-color: #5a8bb0 !important;
}

.rc-fl-hint {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 1px;
}

.rc-icon-picker {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rc-ip-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 2px solid #ece9e4;
  background: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.13s;
}
.rc-ip-btn:hover {
  border-color: #5a8bb0;
  transform: scale(1.1);
}

.rc-ip-sel {
  border-color: #5a8bb0;
  background: #e8f7ff;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.1);
}

.rc-color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rc-cp-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.rc-cp-btn:hover {
  transform: scale(1.12);
}

.rc-cp-sel {
  outline: 3px solid currentColor;
  outline-offset: 2px;
  transform: scale(1.1);
}

.rc-conf-box {
  background: #fff5f8;
  border: 1.5px solid #f0b8c0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.rc-conf-title {
  font-weight: 800;
  color: #c4616e;
  font-size: 13px;
  margin-bottom: 5px;
}

.rc-conf-body {
  font-size: 12.5px;
  color: #2d3436;
  line-height: 1.65;
}

.rc-conf-code {
  font-family: "Space Mono", monospace;
  background: #f4f6fb;
  padding: 1px 5px;
  border-radius: 4px;
}

.rc-conf-info {
  font-size: 12.5px;
  color: #2d3436;
  line-height: 1.75;
  background: #f8f9fc;
  border-radius: 9px;
  padding: 12px 14px;
}

.rt-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.rt-filter-col {
  width: 220px;
  background: #fefefe;
  border-right: 1px solid #ece9e4;
  padding: 14px;
  overflow-y: auto;
  flex-shrink: 0;
}

.rt-fc-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9ca3a8;
  margin-bottom: 8px;
  margin-top: 14px;
}
.rt-fc-label:first-child {
  margin-top: 0;
}

.rt-fc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3436;
  transition: 0.12s;
  margin-bottom: 2px;
}
.rt-fc-item:hover {
  background: #f5f3ef;
}
.rt-fc-item.rt-fc-active {
  background: #e0eef7;
  color: #5a8bb0;
}

.rt-fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rt-fc-cnt {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
}

.rt-main-col {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}
.rt-main-col::-webkit-scrollbar {
  width: 6px;
}
.rt-main-col::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.rt-searchrow {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
  align-items: center;
}

.rt-searchbox {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fefefe;
  border: 1.5px solid #ece9e4;
  border-radius: 8px;
  padding: 7px 12px;
  flex: 1;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.058);
}

.rt-search-input .e-input {
  border: none !important;
  background: transparent !important;
}

.rt-sort-sel {
  min-width: 170px;
}

.rt-cnt-label {
  font-size: 11.5px;
  color: #9ca3a8;
  white-space: nowrap;
}

.rt-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 14px 28px;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
}

.rt-kpi {
  flex: 1;
  background: #f5f3ef;
  border-radius: 10px;
  padding: 11px 14px;
  border: 1.5px solid #ece9e4;
  position: relative;
  overflow: hidden;
}
.rt-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
}

.rt-kpi-blue::before {
  background: #5a8bb0;
}

.rt-kpi-green::before {
  background: #7aad8a;
}

.rt-kpi-info::before {
  background: #8b7bb5;
}

.rt-kpi-teal::before {
  background: #00c9a7;
}

.rt-kpi-orange::before {
  background: #f5813f;
}

.rt-kpi-val {
  font-size: 20px;
  font-weight: 800;
  font-family: "Space Mono", monospace;
  color: #2d3436;
  letter-spacing: -1px;
  line-height: 1;
}

.rt-kpi-lbl {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
  font-weight: 500;
}

.rt-tmpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.rt-card {
  background: #fefefe;
  border-radius: 14px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
  transition: 0.18s;
  position: relative;
  cursor: pointer;
  animation: rtCardIn 0.18s ease both;
}
.rt-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 6px 24px rgba(90, 139, 176, 0.1);
  transform: translateY(-2px);
}

@keyframes rtCardIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rt-card-accent {
  height: 5px;
}

.rt-card-top {
  padding: 16px 18px 12px;
}

.rt-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
}

.rt-badge-gray {
  background: #f4f6fb;
  color: #7e8299;
}

.rt-badge-info {
  background: #f3eeff;
  color: #8b7bb5;
}

.rt-card-name {
  font-weight: 800;
  font-size: 15px;
  color: #2d3436;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.rt-card-desc {
  font-size: 0.75rem;
  color: #9ca3a8;
  line-height: 1.7;
  min-height: 52px;
}

.rt-ifthen-preview {
  margin: 12px 18px;
  background: #f8f9fe;
  border-radius: 9px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
}

.rt-itp-hd {
  padding: 6px 10px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #ece9e4;
}

.rt-itp-if {
  color: #5a8bb0;
  background: #e8f1f8;
}

.rt-itp-then {
  color: #7aad8a;
  background: #ecf5ef;
}

.rt-itp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: #2d3436;
  border-bottom: 1px solid #ece9e4;
}
.rt-itp-row:last-child {
  border-bottom: none;
}

.rt-itp-icon {
  flex-shrink: 0;
  font-size: 13px;
}

.rt-itp-txt {
  flex: 1;
}

.rt-itp-val {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #2d3436;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.rt-card-footer {
  padding: 10px 18px;
  border-top: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rt-card-uses {
  font-size: 11px;
  color: #9ca3a8;
}
.rt-card-uses strong {
  font-weight: 700;
  color: #2d3436;
  font-family: "Space Mono", monospace;
}

.rt-card-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.rt-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  backdrop-filter: blur(3px);
  animation: rtFadeIn 0.15s ease;
}

@keyframes rtFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.rt-detail-panel {
  width: 480px;
  height: 100%;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rtSlideIn 0.2s ease;
}

@keyframes rtSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}
.rt-dp-hd {
  padding: 18px 22px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.rt-dp-cat {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.rt-dp-name {
  font-size: 18px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 4px;
}

.rt-dp-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rt-dp-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.rt-dp-body::-webkit-scrollbar {
  width: 4px;
}
.rt-dp-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.rt-dp-desc {
  font-size: 12.5px;
  color: #9ca3a8;
  line-height: 1.7;
  margin-bottom: 4px;
}

.rt-sec-hd {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ece9e4;
}

.rt-ifthen-full {
  margin-bottom: 8px;
}

.rt-if-block {
  background: #e8f1f8;
  border: 1.5px solid #c9deee;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.rt-then-block {
  background: #ecf5ef;
  border: 1.5px solid #d1e7d8;
  border-radius: 10px;
  padding: 12px 14px;
}

.rt-block-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.rt-block-lbl-if {
  color: #5a8bb0;
}

.rt-block-lbl-then {
  color: #7aad8a;
}

.rt-block-arrow {
  text-align: center;
  font-size: 18px;
  color: #9ca3a8;
  margin: 6px 0;
}

.rt-cond-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12.5px;
}
.rt-cond-row:last-child {
  border-bottom: none;
}

.rt-cond-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.rt-cond-txt {
  flex: 1;
  color: #2d3436;
}

.rt-cond-val {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.07);
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.rt-cond-val-action {
  background: #d1e7d8;
  color: #4a7758;
}

.rt-drow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 0.75rem;
}
.rt-drow:last-child {
  border-bottom: none;
}

.rt-dr-lbl {
  color: #9ca3a8;
  font-weight: 500;
}

.rt-dr-val {
  font-weight: 700;
  color: #2d3436;
}

.rt-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #5a8bb0;
}

.rt-dp-foot {
  padding: 14px 22px;
  border-top: 1px solid #ece9e4;
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.rt-dp-use-btn {
  flex: 1;
  justify-content: center;
}

.rt-dp-del-btn.e-btn {
  color: #c4616e !important;
}
.rt-dp-del-btn.e-btn:hover {
  background: #fff5f8 !important;
}

.rt-modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, 0.58);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: rtFadeIn 0.18s ease;
}

.rt-modal-box {
  background: #fff;
  border-radius: 18px;
  width: 640px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22);
  animation: rtBoxIn 0.22s ease;
}

.rt-modal-sm {
  width: 440px;
}

@keyframes rtBoxIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rt-m-hd {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.rt-m-title {
  font-size: 17px;
  font-weight: 800;
  color: #2d3436;
}

.rt-m-sub {
  font-size: 12px;
  color: #9ca3a8;
  margin-top: 2px;
}

.rt-m-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.rt-m-body::-webkit-scrollbar {
  width: 4px;
}
.rt-m-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.rt-m-ft {
  padding: 14px 24px;
  border-top: 1px solid #ece9e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.rt-m-info {
  font-size: 11.5px;
  color: #9ca3a8;
}

.rt-m-prev {
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  min-height: 88px;
}

.rt-m-prev-pat {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 0 14px);
  pointer-events: none;
}

.rt-m-prev-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.rt-m-prev-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.rt-fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.rt-fl-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.rt-fl-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #2d3436;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rt-fl-req {
  color: #c4616e;
}

.rt-fl-ctrl .e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 8px !important;
}

.rt-icon-picker {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rt-ip-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 2px solid #ece9e4;
  background: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.13s;
}
.rt-ip-btn:hover {
  border-color: #5a8bb0;
  transform: scale(1.1);
}

.rt-ip-sel {
  border-color: #5a8bb0;
  background: #e0eef7;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.1);
}

.rt-color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rt-cp-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.rt-cp-btn:hover {
  transform: scale(1.12);
}

.rt-cp-sel {
  outline: 3px solid currentColor;
  outline-offset: 2px;
  transform: scale(1.1);
}

.rt-cond-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.rt-cond-icon-in {
  max-width: 56px;
}

.rt-cond-val-in {
  max-width: 110px;
}

.rt-rm-btn.e-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  padding: 0;
  color: #c4616e !important;
  font-size: 14px;
}
.rt-rm-btn.e-btn:hover {
  background: #fff5f8 !important;
}

.rt-add-row-btn.e-btn {
  color: #5a8bb0 !important;
  font-weight: 700;
  margin-bottom: 8px;
}
.rt-add-row-btn.e-btn:hover {
  background: #e0eef7 !important;
}

.rt-param-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.rt-param-idx {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
  width: 22px;
  flex-shrink: 0;
  text-align: right;
}

.rt-conf-box {
  background: #fff5f8;
  border: 1.5px solid #f0b8c0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.rt-conf-title {
  font-weight: 800;
  color: #c4616e;
  font-size: 13px;
  margin-bottom: 5px;
}

.rt-conf-body {
  font-size: 12.5px;
  color: #2d3436;
  line-height: 1.65;
}

.rt-conf-code {
  font-family: "Space Mono", monospace;
  background: #f4f6fb;
  padding: 1px 5px;
  border-radius: 4px;
}

.rt-conf-info {
  font-size: 12.5px;
  color: #2d3436;
  line-height: 1.75;
  background: #f8f9fc;
  border-radius: 9px;
  padding: 12px 14px;
}

:root {
  --ea-pri: #5a8bb0;
  --ea-ok: #7aad8a;
  --ea-warn: #d4a855;
  --ea-danger: #c4616e;
  --ea-info: #8b7fb5;
}

.ea-body-area {
  padding: 0 28px 28px 28px;
  min-height: 0;
}

.ea-three-col {
  display: flex;
  gap: 14px;
  min-height: calc(100vh - 340px);
}

.ea-center-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ea-center-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}

.ea-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ea-kpi-strip {
  display: flex;
  gap: 12px;
  padding: 16px 28px 6px 28px;
  flex-wrap: wrap;
}

.ea-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fefefe;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 140px;
  flex: 1;
  border: 1px solid #ece9e4;
  border-bottom: 3px solid var(--kc, #5a8bb0);
  transition: 0.18s;
}

.ea-kpi:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.ea-kpi-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
}

.ea-kpi-val {
  font-size: 18px;
  font-weight: 900;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.ea-kpi-sub {
  font-size: 10px;
  color: #9ca3a8;
}

.ea-kpi-delta {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
}

.ea-delta-up {
  background: rgba(122, 173, 138, 0.12);
  color: #7aad8a;
}

.ea-delta-dn {
  background: rgba(196, 97, 110, 0.12);
  color: #c4616e;
}

.ea-kv-pri {
  color: #5a8bb0;
}

.ea-kv-ok {
  color: #7aad8a;
}

.ea-kv-warn {
  color: #d4a855;
}

.ea-kv-info {
  color: #8b7fb5;
}

.ea-kv-danger {
  color: #c4616e;
}

.ea-cv-pri {
  color: #5a8bb0;
}

.ea-cv-ok {
  color: #7aad8a;
}

.ea-cv-warn {
  color: #d4a855;
}

.ea-cv-danger {
  color: #c4616e;
}

.ea-cv-info {
  color: #8b7fb5;
}

.ea-cv-muted {
  color: #9ca3a8;
}

.ea-cv-orange {
  color: #d4a855;
}

.ea-mono {
  font-family: "Space Mono", monospace;
}

.ea-fw8 {
  font-weight: 800;
}

.ea-card {
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  overflow: hidden;
  transition: 0.18s;
}

.ea-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ea-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #f5f4f1;
}

.ea-card-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2d3436;
}

.ea-lib-panel {
  width: 280px;
  flex-shrink: 0;
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 340px);
}

.ea-lib-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2d3436;
  border-bottom: 1px solid #f5f4f1;
}

.ea-lib-count {
  background: #5a8bb0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

.ea-lib-search {
  padding: 10px 12px 6px;
}

.ea-lib-search-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ea-lib-search-icon {
  font-size: 12px;
  color: #9ca3a8;
}

.ea-lib-search-input {
  font-size: 0.6875rem !important;
}

.ea-lib-cats {
  display: flex;
  gap: 4px;
  padding: 6px 12px 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f5f4f1;
}

.ea-lcat {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  font-weight: 600;
  transition: 0.15s;
  user-select: none;
}

.ea-lcat:hover {
  background: #f5f3ef;
}

.ea-lcat-on {
  background: #5a8bb0;
  color: #fff;
  border-color: #5a8bb0;
}

.ea-lib-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
}

.ea-ritem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
  border: 1px solid transparent;
}

.ea-ritem:hover {
  background: #f5f3ef;
}

.ea-ri-sel {
  background: rgba(90, 139, 176, 0.06);
  border-color: rgba(90, 139, 176, 0.2);
}

.ea-ri-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.ea-ri-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.ea-ri-name {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.3;
}

.ea-ri-meta {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
}

.ea-ri-gen {
  color: #d4a855;
  font-weight: 600;
}

.ea-ri-ago {
  font-size: 9.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.ea-insights-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ea-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fefefe;
  border-radius: 10px;
  border: 1px solid #ece9e4;
  padding: 14px 16px;
}

.ea-ins-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ea-ins-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ea-ins-val {
  font-size: 16px;
  font-weight: 900;
  font-family: "Space Mono", monospace;
}

.ea-ins-sub {
  font-size: 10px;
  color: #9ca3a8;
}

.ea-chart-wrap {
  padding: 16px 18px 8px;
}

.ea-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding: 0 4px;
  border-bottom: 1px solid #ece9e4;
}

.ea-chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: 0.3s;
}

.ea-bar-norm {
  background: rgba(90, 139, 176, 0.45);
}

.ea-bar-warn {
  background: rgba(212, 168, 85, 0.6);
}

.ea-bar-cur {
  background: #5a8bb0;
}

.ea-chart-x {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 9px;
  color: #9ca3a8;
  font-weight: 600;
}

.ea-chart-legend {
  display: flex;
  gap: 16px;
  padding: 10px 18px 14px;
  font-size: 10px;
  color: #9ca3a8;
}

.ea-cl-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ea-cl-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.ea-cld-pri {
  background: #5a8bb0;
}

.ea-cld-ok {
  background: #7aad8a;
}

.ea-cld-prev {
  background: rgba(90, 139, 176, 0.25);
}

.ea-chart-year {
  font-size: 10px;
  color: #9ca3a8;
  font-weight: 600;
}

.ea-comp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}
.ea-comp-tbl th {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-bottom: 1px solid #ece9e4;
  text-align: left;
}
.ea-comp-tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid #f5f4f1;
}

.ea-comp-period {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2d3436;
}

.ea-dbar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ea-dbar-track {
  flex: 1;
  height: 6px;
  background: #f5f3ef;
  border-radius: 3px;
  overflow: hidden;
}

.ea-dbar-fill {
  height: 100%;
  border-radius: 3px;
  transition: 0.3s;
}

.ea-fill-pri {
  background: #5a8bb0;
}

.ea-zone-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ea-zb-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ea-zb-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2d3436;
  min-width: 100px;
}

.ea-zb-track {
  flex: 1;
  height: 8px;
  background: #f5f3ef;
  border-radius: 4px;
  overflow: hidden;
}

.ea-zb-fill {
  height: 100%;
  border-radius: 4px;
  transition: 0.3s;
}

.ea-zb-val {
  font-size: 0.6875rem;
  font-weight: 800;
  min-width: 35px;
  text-align: right;
  font-family: "Space Mono", monospace;
}

.ea-zb-kwh {
  font-size: 10px;
  color: #9ca3a8;
  min-width: 35px;
  text-align: right;
  font-family: "Space Mono", monospace;
}

.ea-recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f4f1;
  cursor: pointer;
  transition: 0.15s;
}

.ea-recent-row:hover {
  background: #f5f3ef;
}

.ea-recent-row:last-child {
  border-bottom: none;
}

.ea-row-arrow {
  color: #9ca3a8;
  font-size: 16px;
  font-weight: 300;
}

.ea-link {
  font-size: 11px;
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
}

.ea-link:hover {
  text-decoration: underline;
}

.ea-detail-panel {
  width: 320px;
  flex-shrink: 0;
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 340px);
}

.ea-dp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f5f4f1;
}

.ea-dp-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2d3436;
  flex: 1;
  min-width: 0;
}

.ea-dp-close-btn.e-btn {
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
}

.ea-dp-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.ea-dp-sec {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f4f1;
}

.ea-dp-ttl {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ea-dp-hero {
  padding: 14px 16px;
}

.ea-dp-hero-name {
  font-size: 14px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 4px;
}

.ea-dp-hero-desc {
  font-size: 11px;
  color: #9ca3a8;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ea-dp-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ea-badge {
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.ea-badge-light {
  background: #f5f3ef;
  color: #2d3436;
}

.ea-badge-gen {
  background: rgba(212, 168, 85, 0.15);
  color: #d4a855;
}

.ea-badge-ready {
  background: rgba(122, 173, 138, 0.15);
  color: #7aad8a;
}

.ea-dp-stats {
  display: flex;
}

.ea-dp-stat {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
}

.ea-dp-stat-lbl {
  font-size: 10px;
  color: #9ca3a8;
  font-weight: 600;
  margin-bottom: 2px;
}

.ea-dp-stat-val {
  font-size: 16px;
  font-weight: 900;
  font-family: "Space Mono", monospace;
}

.ea-dp-stat-unit {
  font-size: 11px;
  font-weight: 600;
}

.ea-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}

.ea-mini-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: 0.3s;
}

.ea-mini-x {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 9px;
  color: #9ca3a8;
}

.ea-dp-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ea-dp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ea-dp-lbl {
  font-size: 11px;
  color: #9ca3a8;
}

.ea-dp-val {
  font-size: 11px;
  font-weight: 700;
  color: #2d3436;
}

.ea-dp-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ea-met-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f5f3ef;
  color: #2d3436;
  font-weight: 600;
}

.ea-dp-actions {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ea-dp-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ea-dp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #9ca3a8;
  text-align: center;
}

.ea-dp-empty-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 6px;
}

.ea-dp-empty-desc {
  font-size: 0.6875rem;
  line-height: 1.5;
}

.ea-rtype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ea-rtype-card {
  background: #f5f3ef;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.18s;
}

.ea-rtype-card:hover {
  border-color: rgba(90, 139, 176, 0.3);
}

.ea-rtype-sel {
  border-color: #5a8bb0;
  background: rgba(90, 139, 176, 0.06);
}

.ea-rtype-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.ea-rtype-name {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 2px;
}

.ea-rtype-desc {
  font-size: 10px;
  color: #9ca3a8;
}

.ea-form-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2d3436;
}

.ea-form-r2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ea-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ea-metric-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ea-mchk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

.ea-mchk:hover {
  background: #f5f3ef;
}

.ea-mchk-on {
  background: rgba(90, 139, 176, 0.06);
}

.ea-fmt-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ea-sched-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f4f1;
}

.ea-sched-row:last-child {
  border-bottom: none;
}

.ea-sched-name {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2d3436;
}

.ea-sched-meta {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
}

.ea-sched-recp {
  font-size: 10px;
  color: #5a8bb0;
  margin-top: 2px;
}

.ea-sched-fmt {
  font-size: 10px;
  font-weight: 700;
  color: #2d3436;
}

.ea-sched-status {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.ea-sched-on {
  color: #7aad8a;
}

.ea-sched-off {
  color: #9ca3a8;
}

.ea-tog {
  width: 32px;
  height: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
  position: relative;
}

.ea-tog-on {
  background: rgba(122, 173, 138, 0.35);
}

.ea-tog-on::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7aad8a;
  transition: 0.2s;
}

.ea-tog-off {
  background: rgba(0, 0, 0, 0.15);
}

.ea-tog-off::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}

.ea-next-exec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f5f3ef;
  border-radius: 8px;
}

.em-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.em-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 0;
  gap: 10px;
}

.em-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.em-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.em-bc-link {
  color: #5a8bb0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.em-bc-sep {
  opacity: 0.35;
  color: #9ca3a8;
}

.em-bc-cur {
  color: #2d3436;
  font-weight: 700;
}

.em-ts-badge {
  padding: 5px 13px;
  border-radius: 12px;
  background: #f5f3ef;
  border: 1.5px solid #ece9e4;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  gap: 7px;
}

.em-ts-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7aad8a;
  animation: blink 2s ease-in-out infinite;
  display: inline-block;
}

.em-kpi-strip {
  display: flex;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.em-kpi {
  flex: 1;
  padding: 9px 16px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.1s;
}
.em-kpi:last-child {
  border-right: none;
}
.em-kpi:hover {
  background: #f8faff;
}
.em-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--em-kc);
}

.em-kpi-lbl {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3a8;
  margin-bottom: 3px;
}

.em-kpi-val {
  font-family: "Space Mono", monospace;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.em-kpi-sub {
  font-size: 9.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.em-toolbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.em-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 220px;
}

.em-search-icon {
  color: #9ca3a8;
  font-size: 12px;
}

.em-filter-sel .e-input-group {
  height: 30px;
}

.em-cat-pills {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.em-cpill.e-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
}
.em-cpill.e-btn.active {
  background: var(--em-pill-bg, #f5f3ef);
  color: var(--em-pill-c, #2d3436);
  border-color: currentColor;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.em-vgrp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.em-vb.e-btn {
  width: 28px;
  height: 24px;
  border-radius: 5px;
  font-size: 13px;
  color: #9ca3a8;
  background: transparent;
  padding: 0;
  min-width: unset;
}
.em-vb.e-btn.active {
  background: #fefefe;
  color: #2d3436;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.em-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.em-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.em-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.em-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.em-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.em-cat-section {
  margin-bottom: 6px;
}

.em-cat-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.em-cat-name {
  font-weight: 800;
  font-size: 12px;
  color: #2d3436;
}

.em-cat-count {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 7px;
  font-weight: 800;
}

.em-cat-divider {
  flex: 1;
  height: 1px;
  background: #ece9e4;
}

.em-cat-stats {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.em-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.em-mc {
  background: #fefefe;
  border-radius: 12px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
  cursor: pointer;
  transition: 0.14s;
  position: relative;
}
.em-mc:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}
.em-mc.sel {
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.14);
}
.em-mc.offline {
  opacity: 0.55;
}
.em-mc.warn {
  border-color: #ffe69c;
}
.em-mc.crit {
  border-color: #f9c4d2;
}

.em-mc-stripe {
  height: 3px;
}

.em-mc-body {
  padding: 12px 13px;
}

.em-mc-hd {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
}

.em-mc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.em-mc-name {
  font-weight: 800;
  font-size: 13px;
  color: #2d3436;
  line-height: 1.2;
}

.em-mc-id {
  font-family: "Space Mono", monospace;
  font-size: 9.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.em-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.em-status-dot.blink {
  animation: blink 0.8s ease-in-out infinite;
}

.em-dtype-badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 800;
}

.em-lv-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0;
}

.em-lv-val {
  font-family: "Space Mono", monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}

.em-lv-unit {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3a8;
}

.em-thresh-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.em-thresh-chip {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  font-family: "Space Mono", monospace;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  gap: 3px;
}

.em-src-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.em-src-badge {
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.em-mc-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #ece9e4;
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.em-mc-sep {
  opacity: 0.35;
}

.em-tog-btn.e-btn {
  min-width: 22px;
  width: 22px;
  height: 18px;
  padding: 0;
  font-size: 10px;
  border-radius: 9px;
  border: none;
}
.em-tog-btn.e-btn.on {
  color: #7aad8a;
}
.em-tog-btn.e-btn:not(.on) {
  color: #d1d5db;
}

.em-empty {
  background: #fefefe;
  border-radius: 12px;
  border: 1.5px solid #ece9e4;
  padding: 48px;
  text-align: center;
  color: #9ca3a8;
}

.em-empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.em-empty-title {
  font-weight: 700;
  font-size: 14px;
  color: #2d3436;
}

.em-empty-link {
  color: #5a8bb0;
  cursor: pointer;
  font-weight: 700;
  margin-top: 4px;
  font-size: 12px;
}

.em-table-wrap {
  background: #fefefe;
  border-radius: 13px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
}

.em-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
.em-table thead th {
  padding: 7px 13px;
  font-size: 9.5px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafbfe;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.em-table thead th:hover {
  color: #5a8bb0;
}

.em-tr {
  border-bottom: 1px solid #f4f6fb;
  cursor: pointer;
  transition: background 0.07s;
}
.em-tr:hover {
  background: #f7fbff;
}
.em-tr.sel {
  background: #e8f7ff;
  border-left: 3px solid #5a8bb0;
}
.em-tr:last-child {
  border-bottom: none;
}
.em-tr td {
  padding: 8px 13px;
  vertical-align: middle;
}

.em-tr-name {
  font-weight: 800;
  font-size: 12.5px;
  color: #2d3436;
}

.em-tr-id {
  font-family: "Space Mono", monospace;
  font-size: 9.5px;
  color: #9ca3a8;
}

.em-tr-cat {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
}

.em-tr-val {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 800;
}

.em-tr-unit {
  font-size: 9.5px;
  color: #9ca3a8;
}

.em-tr-ga {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: #9ca3a8;
  margin-top: 2px;
}

.em-tr-mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #9ca3a8;
}

.em-agg-badge {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f8f9fc;
  color: #9ca3a8;
  font-weight: 700;
}

.em-tr-arrow {
  color: #9ca3a8;
  font-size: 14px;
}

.em-dp {
  width: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border-left: 1px solid transparent;
  background: #fefefe;
  display: flex;
  flex-direction: column;
}
.em-dp.open {
  width: 400px;
  border-left-color: #ece9e4;
}

.em-dp-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.em-dp-title {
  font-weight: 800;
  font-size: 13px;
  color: #2d3436;
}

.em-dp-id {
  font-family: "Space Mono", monospace;
  font-size: 9.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.em-dp-close.e-btn {
  width: 26px;
  height: 26px;
  min-width: unset;
  border-radius: 7px;
  border: 1.5px solid #ece9e4;
  font-size: 12px;
  padding: 0;
}
.em-dp-close.e-btn:hover {
  background: #f5f3ef;
}

.em-dp-scroll {
  flex: 1;
  overflow-y: auto;
}
.em-dp-scroll::-webkit-scrollbar {
  width: 4px;
}
.em-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.em-dp-sec {
  padding: 10px 16px;
  border-bottom: 1px solid #ece9e4;
}

.em-dp-ttl {
  font-size: 9.5px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.em-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 12px;
  gap: 12px;
}

.em-dp-lbl {
  color: #9ca3a8;
  flex-shrink: 0;
  min-width: 90px;
}

.em-dp-val {
  font-weight: 700;
  color: #2d3436;
  text-align: right;
}
.em-dp-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.em-dp-hero {
  padding: 13px 16px;
  border-bottom: 1px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.em-dp-hero-name {
  font-size: 14px;
  font-weight: 800;
  color: #2d3436;
}

.em-dp-hero-desc {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 3px;
  line-height: 1.5;
}

.em-dp-badge {
  padding: 2px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  white-space: nowrap;
}

.em-dp-live {
  background: #0f1117;
  border-radius: 10px;
  padding: 12px;
}

.em-dp-live-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 6px;
}

.em-dp-live-val {
  font-family: "Space Mono", monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.em-dp-live-unit {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  margin-left: 6px;
}

.em-dp-live-sub {
  font-size: 10px;
  color: #4b5563;
  font-family: "Space Mono", monospace;
  margin-top: 4px;
}

.em-dp-thresh-editor {
  background: #f8f9fc;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
  padding: 11px 13px;
  margin-top: 4px;
}

.em-te-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.em-te-track {
  height: 8px;
  border-radius: 4px;
  position: relative;
  margin: 14px 4px 8px;
  background: linear-gradient(to right, #7239ea 0%, #7aad8a 25%, #7aad8a 65%, #d4a855 80%, #c4616e 100%);
}

.em-te-labels {
  display: flex;
  justify-content: space-between;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  margin-top: 4px;
}

.em-tag {
  background: #f5f3ef;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 3px;
}

.em-dq-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 12px;
}
.em-dq-row:last-child {
  border-bottom: none;
}

.em-dq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.em-dq-label {
  flex: 1;
  font-weight: 600;
  color: #2d3436;
}

.em-dq-val {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.em-dp-actions {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.em-dp-act-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.em-act-btn.e-btn {
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.em-act-btn.e-btn:hover {
  border-color: #5a8bb0;
  color: #5a8bb0;
}

.em-act-danger.e-btn:hover {
  border-color: #c4616e;
  color: #c4616e;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.ec-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ec-topbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 0 22px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}

.ec-bc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #9ca3a8;
}

.ec-bc-link {
  color: #5a8bb0;
  cursor: pointer;
  font-weight: 600;
}

.ec-bc-sep {
  opacity: 0.35;
}

.ec-bc-cur {
  color: #2d3436;
  font-weight: 700;
}

.ec-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ec-period-tabs {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 9px;
  padding: 3px;
}

.ec-ptab.e-btn {
  padding: 4px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3a8;
  background: transparent;
  border: none;
}
.ec-ptab.e-btn.on {
  background: #fefefe;
  color: #2d3436;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ec-date-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f3ef;
  border-radius: 9px;
  padding: 3px;
}

.ec-nav-btn.e-btn {
  min-width: 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1.5px solid #ece9e4;
  background: #fefefe;
  color: #9ca3a8;
  font-size: 12px;
}
.ec-nav-btn.e-btn:hover {
  border-color: #5a8bb0;
}

.ec-date-lbl {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  min-width: 110px;
  text-align: center;
}

.ec-export-btn.e-btn {
  font-size: 11.5px;
}

.ec-report-btn.e-btn {
  font-size: 11.5px;
}

.ec-kpi-strip {
  display: flex;
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
}

.ec-kpi {
  flex: 1;
  padding: 10px 16px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.1s;
}
.ec-kpi:last-child {
  border-right: none;
}
.ec-kpi:hover {
  background: #f8faff;
}
.ec-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ec-kc);
}

.ec-kpi-icon {
  font-size: 18px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
}

.ec-kpi-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3a8;
  margin-bottom: 3px;
}

.ec-kpi-val {
  font-family: "Space Mono", monospace;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
}
.ec-kpi-val sup {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 700;
  vertical-align: top;
  margin-top: 4px;
  display: inline-block;
}

.ec-kpi-sub {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-kpi-delta {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
}
.ec-kpi-delta.delta-up {
  background: #fff5f8;
  color: #c4616e;
}
.ec-kpi-delta.delta-dn {
  background: #e8fff3;
  color: #7aad8a;
}

.ec-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ec-scroll::-webkit-scrollbar {
  width: 6px;
}
.ec-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.ec-card {
  background: #fefefe;
  border-radius: 13px;
  border: 1.5px solid #ece9e4;
  overflow: hidden;
}

.ec-card-hd {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ec-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ec-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ec-row-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  align-items: stretch;
}

.ec-row-2-3 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}

.ec-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ec-gauge-wrap {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ec-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  animation: ec-blink 1.4s ease-in-out infinite;
  display: inline-block;
}

.ec-gauge-ts {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  color: #9ca3a8;
}

.ec-gauge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.ec-gauge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.ec-gauge-status-dot.blink {
  animation: ec-blink 1s ease-in-out infinite;
}

.ec-phases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.ec-phase {
  background: #f5f3ef;
  border-radius: 9px;
  padding: 9px 10px;
  border: 1.5px solid #ece9e4;
  text-align: center;
}

.ec-phase-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3a8;
  margin-bottom: 4px;
}

.ec-phase-val {
  font-family: "Space Mono", monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ec-phase-unit {
  font-size: 9.5px;
  color: #9ca3a8;
}

.ec-chart-card {
  display: flex;
  flex-direction: column;
}

.ec-chart-wrap {
  padding: 10px 16px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-chart-period {
  color: #5a8bb0;
}

.ec-chart-toggle {
  display: flex;
  gap: 3px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
}

.ec-ct-btn.e-btn {
  padding: 3px 10px;
  border-radius: 5px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
  background: transparent;
  border: none;
}
.ec-ct-btn.e-btn.on {
  background: #fefefe;
  color: #2d3436;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ec-chart-area {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 260px;
}

.ec-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 6px 22px 0;
  width: 42px;
  flex-shrink: 0;
}

.ec-y-lbl {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-align: right;
  line-height: 1;
}

.ec-chart-grid {
  flex: 1;
  position: relative;
  border-left: 1px solid #ece9e4;
  border-bottom: 1px solid #ece9e4;
}

.ec-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #f1f3f9;
}
.ec-grid-line:nth-child(1) {
  top: 0;
}
.ec-grid-line:nth-child(2) {
  top: 25%;
}
.ec-grid-line:nth-child(3) {
  top: 50%;
}
.ec-grid-line:nth-child(4) {
  top: 75%;
}
.ec-grid-line:nth-child(5) {
  top: 100%;
  display: none;
}

.ec-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.ec-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
}
.ec-bar-group:hover .ec-bar-cur {
  filter: brightness(0.88);
}
.ec-bar-group:hover .ec-bar-tip {
  opacity: 1;
  transform: translateY(-2px);
}

.ec-bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.ec-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.6s ease, filter 0.15s;
  max-width: 32px;
  position: relative;
}

.ec-bar-prev {
  background: #f5f3ef;
  border: 1px solid #ece9e4;
  border-bottom: none;
}

.ec-bar-cur {
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.ec-bar-tip {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  color: #2d3436;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  pointer-events: none;
}

.ec-bar-lbl {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  margin-top: 6px;
  white-space: nowrap;
}

.ec-chart-legend {
  display: flex;
  gap: 14px;
  padding: 6px 16px 12px;
  flex-wrap: wrap;
  border-top: 1px solid #ece9e4;
  margin-top: 4px;
}

.ec-cl-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3a8;
}

.ec-cl-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ec-cl-now-dot {
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: #c4616e;
  flex-shrink: 0;
}

.ec-ztable {
  width: 100%;
  border-collapse: collapse;
}
.ec-ztable th {
  padding: 7px 14px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafbfe;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  text-align: left;
}

.ec-zrow {
  border-bottom: 1px solid #f4f6fb;
  cursor: pointer;
  transition: background 0.07s;
}
.ec-zrow:hover {
  background: #f7fbff;
}
.ec-zrow:last-child {
  border-bottom: none;
}
.ec-zrow td {
  padding: 9px 14px;
  vertical-align: middle;
}

.ec-zone-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ec-zone-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ec-zone-name {
  font-weight: 800;
  font-size: 12.5px;
  color: #2d3436;
}

.ec-zone-floor {
  font-size: 10px;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.ec-zone-sys {
  font-size: 11px;
  color: #9ca3a8;
}

.ec-zone-kwh {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.ec-zone-unit {
  font-size: 10px;
  color: #9ca3a8;
}

.ec-zone-total {
  font-size: 11px;
  color: #9ca3a8;
  font-family: "Space Mono", monospace;
}

.ec-ibar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ec-ibar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #f1f3f9;
  overflow: hidden;
}

.ec-ibar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.ec-ibar-pct {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  min-width: 36px;
}

.ec-zone-m2 {
  font-family: "Space Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #9ca3a8;
}

.ec-zone-cost {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: #7aad8a;
}

.ec-zone-delta {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 7px;
}

.ec-zone-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.ec-comp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
}

.ec-comp-card {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
}

.ec-cc-per {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

.ec-cc-val {
  font-family: "Space Mono", monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.ec-cc-unit {
  font-size: 11px;
  font-weight: 500;
}

.ec-cc-delta {
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-target-wrap {
  padding: 14px 16px;
}

.ec-tg-label {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.ec-tg-bar {
  height: 14px;
  border-radius: 7px;
  background: #f1f3f9;
  overflow: hidden;
  position: relative;
  margin: 8px 0;
}

.ec-tg-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 1s ease;
  position: relative;
}
.ec-tg-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.ec-tg-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2d3436;
  left: 76.9%;
}

.ec-tg-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: #9ca3a8;
}

.ec-co2-card {
  display: flex;
  flex-direction: column;
}

.ec-co2-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ec-rating-badge {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 900;
  width: 30px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-co2-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.ec-co2-stat {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #ece9e4;
  text-align: center;
}

.ec-co2-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.ec-co2-stat-val {
  font-family: "Space Mono", monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.ec-co2-stat-unit {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.ec-co2-stat-sub {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 2px;
}

.ec-co2-rating {
  font-size: 28px;
  letter-spacing: 0;
}

.ec-co2-sec-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.ec-co2-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ec-co2-mix {
  padding: 10px 12px;
  border: 1.5px solid #ece9e4;
  border-radius: 10px;
}

.ec-mix-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ec-mix-seg {
  transition: width 0.8s ease;
}
.ec-mix-seg:first-child {
  border-radius: 6px 0 0 6px;
}
.ec-mix-seg:last-child {
  border-radius: 0 6px 6px 0;
}

.ec-mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.ec-mix-leg-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #2d3436;
}

.ec-mix-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ec-mix-pct {
  font-family: "Space Mono", monospace;
  font-weight: 800;
  color: #9ca3a8;
}

.ec-co2-trend {
  padding: 10px 12px;
  border: 1.5px solid #ece9e4;
  border-radius: 10px;
}

.ec-co2-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.ec-co2-tbar-grp {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
}
.ec-co2-tbar-grp:hover .ec-co2-tbar-tip {
  opacity: 1;
}

.ec-co2-tbar {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.6s ease;
  position: relative;
  opacity: 0.75;
}

.ec-co2-tbar-cur {
  border: 1.5px dashed #7239ea;
  background: transparent !important;
  opacity: 0.5;
}

.ec-co2-tbar-tip {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  color: #2d3436;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.ec-co2-tbar-lbl {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  margin-top: 4px;
}

.ec-co2-tbar-lbl-cur {
  color: #7239ea;
  font-weight: 800;
}

.ec-co2-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #ece9e4;
  margin-bottom: 6px;
  transition: background 0.1s;
  cursor: pointer;
}
.ec-co2-tip:last-child {
  margin-bottom: 0;
}
.ec-co2-tip:hover {
  background: #f7fbff;
}

.ec-co2-tip-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.ec-co2-tip-text {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: #2d3436;
}

.ec-co2-tip-impact {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  color: #7aad8a;
  white-space: nowrap;
  padding: 2px 8px;
  background: #e8fff3;
  border-radius: 6px;
}

.ec-heatmap-wrap {
  padding: 12px 16px 14px;
}

.ec-hm-grid {
  display: grid;
  grid-template-columns: 40px repeat(24, 1fr);
  gap: 2px;
}

.ec-hm-cell {
  height: 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.1s, filter 0.1s;
}
.ec-hm-cell:hover {
  transform: scale(1.3);
  z-index: 10;
  filter: brightness(0.85);
}

.ec-hm-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-family: "Space Mono", monospace;
}

.ec-hm-hlbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
}

.ec-hm-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 2px;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
}

.ec-hm-scale {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(to right, #e0faf5, #009ef7, #f97316, #f1416c);
}

.ec-cost-wrap {
  padding: 16px;
}

.ec-cost-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ec-cost-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ec-cost-sq {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ec-cost-label {
  flex: 0 0 80px;
  font-weight: 600;
  color: #2d3436;
}

.ec-cost-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #f1f3f9;
  overflow: hidden;
}

.ec-cost-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.ec-cost-pct {
  font-family: "Space Mono", monospace;
  font-size: 11.5px;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
}

.ec-cost-val {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #9ca3a8;
  min-width: 48px;
  text-align: right;
}

.ec-cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #ece9e4;
  font-size: 11px;
  font-weight: 800;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ec-cost-total-val {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 800;
  color: #2d3436;
}

.ec-tariff-section {
  border-top: 1px solid #ece9e4;
}

.ec-tariff-hd {
  padding: 10px 16px 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3a8;
}

.ec-tariff-strip {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0;
  padding: 12px 16px 0;
}

.ec-tariff-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 6px 2px 0;
  font-family: "Space Mono", monospace;
}

.ec-tariff-hours {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  height: 24px;
}

.ec-tariff-block {
  border-radius: 3px;
  margin: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: filter 0.12s;
}
.ec-tariff-block:hover {
  filter: brightness(0.85);
}
.ec-tariff-block.now {
  outline: 2px solid #2d3436;
}

.ec-tariff-legend {
  display: flex;
  gap: 12px;
  padding: 4px 16px 12px;
  font-size: 10px;
  font-weight: 700;
}

.ec-tl-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9ca3a8;
}

.ec-tl-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.ec-crud-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.ec-crud-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-crud-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ec-crud-lbl {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ca3a8;
}

.ec-del-body {
  text-align: center;
  padding: 16px 0;
}

.ec-del-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.ec-del-msg {
  font-size: 14px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 6px;
}

.ec-del-warn {
  font-size: 12px;
  color: #c4616e;
  font-weight: 600;
}

@keyframes ec-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.dq-score-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 14px;
  border: 2px solid;
  transition: 0.4s;
}

.dq-pill-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(var(--dq-col) calc(var(--dq-pct) * 1%), #f1f3f9 calc(var(--dq-pct) * 1%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dq-pill-ring::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: inherit;
  background-image: none;
  background-color: #fefefe;
}

.dq-pill-lbl {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.75;
  color: #9ca3a8;
}

.dq-pill-val {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.dq-pill-sep {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
}

.dq-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.dq-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.dq-main-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dq-main-scroll::-webkit-scrollbar {
  width: 6px;
}
.dq-main-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.dq-dim-strip {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  flex-shrink: 0;
}

.dq-dim {
  flex: 1;
  padding: 10px 16px;
  border-right: 1px solid #ece9e4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.12s;
}
.dq-dim:last-child {
  border-right: none;
}
.dq-dim:hover {
  background: #f5f3ef;
}
.dq-dim::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dq-dc);
}

.dq-dim-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3a8;
  margin-bottom: 5px;
}

.dq-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dq-dim-gauge {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--dq-gc) calc(var(--dq-gp) * 1%), #f1f3f9 calc(var(--dq-gp) * 1%));
}
.dq-dim-gauge::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fefefe;
}

.dq-dim-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.dq-dim-info {
  flex: 1;
}

.dq-dim-score {
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
}

.dq-dim-issues {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 2px;
}
.dq-dim-issues strong {
  color: #c4616e;
}

.dq-dim-desc {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.dq-toolbar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.dq-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #ece9e4;
  border-radius: 8px;
  padding: 4px 10px;
  background: #fefefe;
  width: 200px;
}

.dq-search-input.e-input-group {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.dq-search-input.e-input-group input {
  font-size: 0.75rem;
  font-family: "DM Sans", -apple-system, sans-serif;
}

.dq-filter-sel.e-ddl.e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 8px !important;
  height: 30px;
  min-width: 140px;
}
.dq-filter-sel.e-ddl.e-input-group:focus-within {
  border-color: #5a8bb0 !important;
}

.dq-issue-pills {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.dq-ipill {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: 0.12s;
  white-space: nowrap;
}
.dq-ipill.dq-ipill-on {
  border-color: currentColor;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.dq-ipill-cnt {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  opacity: 0.7;
  margin-left: 3px;
}

.dq-view-grp {
  display: flex;
  gap: 2px;
  background: #f5f3ef;
  border-radius: 7px;
  padding: 2px;
  margin-left: auto;
}

.dq-vb {
  width: 28px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #9ca3a8;
  transition: 0.12s;
}
.dq-vb.dq-vb-on {
  background: #fefefe;
  color: #2d3436;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dq-summary-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dq-sum-card {
  flex: 1;
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 16px;
  box-shadow: none;
  text-align: center;
}

.dq-sum-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.dq-sum-val {
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.dq-sum-sub {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 4px;
}

.dq-matrix-card {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  border-radius: 14px;
  overflow: hidden;
}
.dq-matrix-card:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.dq-matrix-hd {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dq-matrix-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3436;
}

.dq-matrix-legend {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dq-leg-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #9ca3a8;
  font-weight: 600;
}

.dq-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dq-matrix-grid {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 4px;
}

.dq-floor-hd {
  grid-column: 1/-1;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 2px 2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dq-floor-hd::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ece9e4;
}

.dq-floor-cnt {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  opacity: 0.6;
}

.dq-sc {
  border-radius: 7px;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 3px;
  font-size: 8.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  position: relative;
  min-width: 0;
  overflow: hidden;
  animation: dqCellIn 0.3s ease both;
}
.dq-sc:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.dq-sc.dq-sc-sel {
  box-shadow: 0 0 0 2.5px #5a8bb0;
  border-color: #5a8bb0;
  z-index: 15;
}

.dq-sc-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4616e;
}

.dq-sc-icon {
  font-size: 13px;
  line-height: 1;
  margin-bottom: 2px;
}

.dq-sc-score {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.dq-sc-id {
  font-size: 7.5px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  margin-top: 1px;
}

.dq-issue-table {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  border-radius: 14px;
  overflow: hidden;
}
.dq-issue-table:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.dq-table {
  width: 100%;
  border-collapse: collapse;
}

.dq-tbl-hd th {
  padding: 7px 12px;
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f5f3ef;
  border-bottom: 2px solid #ece9e4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.dq-tbl-hd th:hover {
  color: #5a8bb0;
}

.dq-tbl-row {
  border-bottom: 1px solid #f4f6fb;
  cursor: pointer;
  transition: background 0.08s;
}
.dq-tbl-row:hover {
  background: #f9f7f4;
}
.dq-tbl-row.dq-tbl-sel {
  background: #e8f7ff;
  border-left: 3px solid #5a8bb0;
}
.dq-tbl-row td {
  padding: 8px 12px;
  vertical-align: middle;
}

.dq-dev-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dq-dev-ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.dq-dev-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: #2d3436;
  white-space: nowrap;
}

.dq-dev-ia {
  font-family: "Space Mono", monospace;
  font-size: 9.5px;
  color: #9ca3a8;
  margin-top: 1px;
}

.dq-score-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dq-score-mini {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
}

.dq-dim-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.dq-dim-bar {
  width: 4px;
  border-radius: 2px;
  transition: height 0.4s;
}

.dq-issue-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  white-space: nowrap;
  margin-bottom: 2px;
}

.dq-mono {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.dq-timeline-card {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  border-radius: 14px;
  overflow: hidden;
}
.dq-timeline-card:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.dq-tl-item {
  display: flex;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #ece9e4;
  font-size: 11.5px;
  cursor: pointer;
  transition: 0.1s;
}
.dq-tl-item:hover {
  background: #f5f3ef;
}
.dq-tl-item:last-child {
  border-bottom: none;
}

.dq-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  width: 32px;
}

.dq-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #fefefe;
  box-shadow: 0 0 0 1.5px currentColor;
}

.dq-tl-line {
  flex: 1;
  width: 1px;
  background: #ece9e4;
  margin: 2px 0;
}

.dq-tl-body {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.dq-tl-head {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: space-between;
  margin-bottom: 3px;
}

.dq-tl-floor {
  font-size: 9px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dq-tl-acked {
  font-size: 10px;
  font-weight: 700;
  color: #7aad8a;
}

.dq-tl-ts {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #9ca3a8;
  white-space: nowrap;
}

.dq-tl-msg {
  color: #9ca3a8;
  line-height: 1.5;
  font-size: 0.6875rem;
}

.dq-tl-device {
  font-weight: 700;
  color: #2d3436;
}

.dq-dp {
  width: 360px;
  border-left: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  animation: dqDpIn 0.22s ease;
}

.dq-dp-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dq-dp-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.dq-dp-sub {
  font-size: 10.5px;
  color: #9ca3a8;
  margin-top: 2px;
}

.dq-dp-scroll {
  flex: 1;
  overflow-y: auto;
}
.dq-dp-scroll::-webkit-scrollbar {
  width: 4px;
}
.dq-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.dq-dp-hero {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dq-dp-hero-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--dq-col) calc(var(--dq-pct) * 1%), #f1f3f9 calc(var(--dq-pct) * 1%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dq-dp-hero-ring::after {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: inherit;
  background-image: none;
  background-color: inherit;
}

.dq-dp-hero-val {
  position: absolute;
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
}

.dq-dp-hero-grade {
  font-weight: 700;
  font-size: 0.875rem;
}

.dq-dp-hero-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 2px;
}

.dq-ack-btn.e-btn {
  margin-top: 6px;
  background: rgba(122, 173, 138, 0.1) !important;
  color: #7aad8a !important;
  border: 1.5px solid rgba(122, 173, 138, 0.3) !important;
  font-weight: 700 !important;
  font-size: 0.6875rem !important;
  border-radius: 6px !important;
}

.dq-dp-sec {
  padding: 10px 16px;
  border-bottom: 1px solid #ece9e4;
}

.dq-dp-sec-ttl {
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dq-dp-dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.dq-dp-dim-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  width: 100px;
  flex-shrink: 0;
}

.dq-dp-dim-track {
  flex: 1;
  height: 8px;
  background: #f1f3f9;
  border-radius: 4px;
  overflow: hidden;
}

.dq-dp-dim-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s;
}

.dq-dp-dim-val {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

.dq-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.75rem;
}

.dq-dp-lbl {
  color: #9ca3a8;
}

.dq-dp-val {
  font-weight: 700;
  color: #2d3436;
}

.dq-rec-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1.5px solid;
  margin-bottom: 5px;
  font-size: 11.5px;
}

.dq-rec-ic {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.3;
}

.dq-dp-action-btn.e-btn {
  justify-content: flex-start !important;
  background: #f5f3ef !important;
  color: #2d3436 !important;
  border: 1px solid #ece9e4 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
.dq-dp-action-btn.e-btn:hover {
  background: #e8e4df !important;
}

@keyframes dqCellIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes dqDpIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.env-ieq-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid;
  transition: 0.4s;
}

.env-ieq-lbl {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.env-ieq-val {
  font-size: 15px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  line-height: 1;
}

.env-ieq-grade {
  font-size: 0.6875rem;
  font-weight: 700;
}

.env-filter-bar {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.env-filter-sel.e-ddl.e-input-group {
  border: 1.5px solid #ece9e4 !important;
  border-radius: 8px !important;
  height: 30px;
  min-width: 140px;
}
.env-filter-sel.e-ddl.e-input-group:focus-within {
  border-color: #5a8bb0 !important;
}

.env-metric-tabs {
  background: #fefefe;
  border-bottom: 1px solid #ece9e4;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  overflow-x: auto;
}
.env-metric-tabs::-webkit-scrollbar {
  display: none;
}

.env-mtab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3a8;
  transition: 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.env-mtab:hover {
  color: #2d3436;
}
.env-mtab.env-mtab-on {
  border-bottom-color: #5a8bb0;
  color: #5a8bb0;
}

.env-mtab-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.env-mtab-val {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  padding: 1px 7px;
  border-radius: 8px;
  font-weight: 700;
}

.env-mtab-badge {
  background: #c4616e;
  color: #fff;
  border-radius: 20px;
  padding: 0 5px;
  font-size: 9.5px;
  font-weight: 700;
}

.env-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.env-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.env-body-scroll::-webkit-scrollbar {
  width: 6px;
}
.env-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.env-overview-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

.env-ov-card {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 14px 14px 12px;
  box-shadow: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.15s;
  position: relative;
  overflow: hidden;
}
.env-ov-card:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}
.env-ov-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 4px 18px rgba(90, 139, 176, 0.1);
  transform: translateY(-1px);
}
.env-ov-card.env-ov-active {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.env-ov-lbl {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #9ca3a8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.env-ov-val {
  font-family: "Space Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  transition: color 0.3s;
}

.env-ov-unit {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
  margin-left: 2px;
}

.env-ov-sub {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.env-ov-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
}

.env-ov-bar {
  height: 4px;
  background: #f1f3f9;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 7px;
}

.env-ov-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s;
}

.env-floor-block {
  background: #fefefe;
  border: 1px solid #ece9e4;
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  border-radius: 14px;
  overflow: hidden;
  animation: envCardIn 0.18s ease both;
}
.env-floor-block:hover {
  box-shadow: 0 1px 2px rgba(45, 52, 54, 0.03);
}

.env-floor-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: 0.12s;
  border-bottom: 1px solid transparent;
}
.env-floor-hd:hover {
  background: #f5f3ef;
}
.env-floor-hd.env-floor-hd-open {
  border-bottom-color: #ece9e4;
}

.env-floor-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d3436;
  min-width: 100px;
}

.env-floor-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.env-floor-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: 0.15s;
  cursor: pointer;
}
.env-floor-chip:hover {
  filter: brightness(0.95);
}

.env-floor-chip-val {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
}

.env-floor-chip-alert {
  background: #c4616e;
  color: #fff;
  border-radius: 10px;
  padding: 0 4px;
  font-size: 9px;
}

.env-floor-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.env-fl-alert {
  background: #fff5f8;
  color: #c4616e;
  padding: 2px 9px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid #f9c4d2;
}

.env-fl-warn {
  background: #fff8dd;
  color: #c08000;
  padding: 2px 9px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid #ffe69c;
}

.env-floor-arrow {
  color: #9ca3a8;
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.env-floor-arrow.env-floor-arrow-open {
  transform: rotate(180deg);
}

.env-floor-body {
  padding: 10px 16px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.env-zone-card {
  background: #f5f3ef;
  border-radius: 11px;
  border: 1.5px solid #ece9e4;
  padding: 12px 14px;
  transition: 0.15s;
  cursor: pointer;
  animation: envCardIn 0.15s ease both;
}
.env-zone-card:hover {
  background: #fefefe;
  border-color: #5a8bb0;
  box-shadow: 0 3px 14px rgba(90, 139, 176, 0.08);
}
.env-zone-card.env-zc-alert {
  border-color: #c4616e !important;
  background: #fff8f9 !important;
}
.env-zone-card.env-zc-warn {
  border-color: #d4a855 !important;
  background: #fffdf0 !important;
}
.env-zone-card.env-zc-sel {
  border-color: #5a8bb0;
  box-shadow: 0 0 0 3px rgba(90, 139, 176, 0.12);
}

.env-zone-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.env-zone-name {
  font-weight: 700;
  font-size: 12.5px;
  color: #2d3436;
}

.env-zone-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.env-zone-dot.env-dot-ok {
  background: #7aad8a;
}
.env-zone-dot.env-dot-warn {
  background: #d4a855;
}
.env-zone-dot.env-dot-alert {
  background: #c4616e;
}

.env-ieq-score {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid;
}

.env-zone-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.env-zm {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 6px;
  border-radius: 9px;
  transition: 0.15s;
  cursor: pointer;
}
.env-zm:hover {
  background: rgba(0, 0, 0, 0.04);
}

.env-zm-icon {
  font-size: 16px;
  margin-bottom: 3px;
}

.env-zm-val {
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s;
}

.env-zm-unit {
  font-size: 9px;
  color: #9ca3a8;
  margin-top: 1px;
}

.env-zm-lbl {
  font-size: 9px;
  color: #9ca3a8;
  margin-top: 1px;
  font-weight: 600;
}

.env-dp {
  width: 380px;
  border-left: 1px solid #ece9e4;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  animation: envDpIn 0.22s ease;
}

.env-dp-hd {
  padding: 13px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.env-dp-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #2d3436;
}

.env-dp-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 1px;
}

.env-dp-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}
.env-dp-scroll::-webkit-scrollbar {
  width: 4px;
}
.env-dp-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
}

.env-dp-msw {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
  flex-wrap: wrap;
}

.env-dp-msw-tab {
  padding: 4px 9px;
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.13s;
  border: 1.5px solid transparent;
}
.env-dp-msw-tab.env-dp-msw-on {
  border-color: currentColor;
}

.env-dp-gauge {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #ece9e4;
}

.env-dp-gauge-arc {
  width: 140px;
  height: 80px;
  position: relative;
  border-radius: 140px 140px 0 0;
  overflow: hidden;
  background: #f1f3f9;
}
.env-dp-gauge-arc::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--env-gc);
  clip-path: polygon(0% 100%, 0% calc(100% - var(--env-gp) * 1%), 100% calc(100% - var(--env-gp) * 1%), 100% 100%);
}
.env-dp-gauge-arc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 60px;
  background: #fefefe;
  border-radius: 120px 120px 0 0;
}

.env-dp-gauge-val {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1;
}

.env-dp-gauge-unit {
  font-family: "Space Mono", monospace;
  font-size: 0.6875rem;
  color: #9ca3a8;
  margin-top: 4px;
}

.env-dp-comfort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.env-dp-comfort-item {
  background: #f5f3ef;
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: 0.13s;
}
.env-dp-comfort-item.env-dp-ci-sel {
  background: #fefefe;
}

.env-dp-ci-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.env-dp-ci-val {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.env-dp-ci-status {
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.env-dp-ci-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.env-dp-thresh {
  padding: 12px 16px;
  border-bottom: 1px solid #ece9e4;
}

.env-thresh-bar {
  position: relative;
  height: 18px;
  background: #f1f3f9;
  border-radius: 9px;
  overflow: visible;
  margin-top: 10px;
  margin-bottom: 4px;
}

.env-thresh-ok {
  position: absolute;
  height: 100%;
  border-radius: 4px;
}

.env-thresh-needle {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 26px;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.4s;
}

.env-thresh-min {
  position: absolute;
  bottom: -18px;
  font-size: 9.5px;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
}

.env-thresh-max {
  position: absolute;
  bottom: -18px;
  right: 0;
  font-size: 9.5px;
  font-family: "Space Mono", monospace;
  color: #9ca3a8;
}

.env-dp-sec {
  padding: 11px 16px;
  border-bottom: 1px solid #ece9e4;
}

.env-dp-sec-title {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.env-dp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.75rem;
}

.env-dp-lbl {
  color: #9ca3a8;
}

.env-dp-val {
  font-weight: 700;
  color: #2d3436;
}

.env-dp-cmp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #ece9e4;
}

.env-dp-cmp-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d3436;
  min-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.env-dp-cmp-bar {
  flex: 1;
  height: 6px;
  background: #f1f3f9;
  border-radius: 3px;
  overflow: hidden;
}

.env-dp-cmp-val {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

.env-dp-action-btn.e-btn {
  justify-content: flex-start !important;
  background: #fefefe !important;
  color: #2d3436 !important;
  border: 1.5px solid #ece9e4 !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  padding: 9px 14px !important;
}
.env-dp-action-btn.e-btn:hover {
  border-color: #5a8bb0 !important;
  color: #5a8bb0 !important;
}

@keyframes envCardIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes envDpIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.crud-dialog .e-dlg-header-content,
.crud-delete-dialog .e-dlg-header-content {
  border-bottom: 1px solid #ece9e4;
  padding: 14px 20px;
}

.crud-dialog .e-dlg-content,
.crud-delete-dialog .e-dlg-content {
  padding: 0 !important;
}

.crud-dialog .e-footer-content,
.crud-delete-dialog .e-footer-content {
  border-top: 1px solid #ece9e4;
  padding: 12px 20px !important;
}

.crud-dlg-hd {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crud-dlg-icon {
  font-size: 18px;
}

.crud-dlg-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d3436;
}

.crud-dlg-hd-danger .crud-dlg-title {
  color: #c4616e;
}

.crud-dlg-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crud-dlg-row {
  display: flex;
  gap: 14px;
}

.crud-dlg-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crud-dlg-field-full {
  flex: 1 1 100%;
}

.crud-dlg-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3a8;
  letter-spacing: 0.3px;
}

.crud-dlg-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.crud-del-body {
  padding: 20px;
  text-align: center;
}
.crud-del-body p {
  font-size: 0.75rem;
  color: #9ca3a8;
  margin: 0 0 10px;
}

.crud-del-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d3436;
  padding: 10px;
  background: #f5f3ef;
  border-radius: 6px;
  margin-bottom: 10px;
}

.crud-del-warn {
  font-size: 0.6875rem;
  color: #c4616e !important;
  font-weight: 600;
}

.crud-dialog,
.crud-delete-dialog {
  border-radius: 8px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}
.crud-dialog .e-dlg-overlay,
.crud-delete-dialog .e-dlg-overlay {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.crud-dialog .e-btn.e-danger,
.crud-delete-dialog .e-btn.e-danger {
  background: #c4616e;
  color: #fff;
  border: none;
}
.crud-dialog .e-btn.e-danger:hover,
.crud-delete-dialog .e-btn.e-danger:hover {
  background: #bc4b5a;
}

.dw-grid.e-grid {
  border: none !important;
}

.dw-grid .e-headercelldiv {
  font-weight: 600 !important;
  color: #9ca3a8 !important;
  font-size: 0.925rem;
}

.dw-grid .e-gridheader {
  border-bottom: 1px solid #ece9e4 !important;
}

.dw-grid .e-gridheader th {
  padding: 0.75rem 0.75rem !important;
}

.dw-grid .e-gridcontent .e-row {
  border-bottom: 1px solid #ece9e4 !important;
}

.dw-grid .e-gridcontent .e-row td {
  padding: 0.75rem 0.75rem !important;
  vertical-align: middle !important;
}

.dw-grid .e-pager {
  border: none !important;
}

.dw-row-critical {
  background: #f8f2f0 !important;
  border-left: 4px solid #cf7171 !important;
}

.dw-row-highlight {
  background: #f8f2f0 !important;
}

.dw-row-offline {
  background: #f8f2f0 !important;
}

.dw-row-fault {
  background: #f7f4ec !important;
}

.dw-kpi {
  position: relative;
  overflow: hidden;
}

.dw-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
}

.dw-kpi-n::before {
  background: #9ca3a8;
}

.dw-kpi-g::before {
  background: #7fb685;
}

.dw-kpi-r::before {
  background: #cf7171;
}

.dw-kpi-w::before {
  background: #d4a853;
}

.dw-kpi-b::before {
  background: #6b9ac4;
}

.dw-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.dw-kpi-icon-n {
  background: #f5f3ef;
}

.dw-kpi-icon-g {
  background: rgba(107, 158, 125, 0.08);
}

.dw-kpi-icon-r {
  background: rgba(196, 97, 110, 0.08);
}

.dw-kpi-icon-w {
  background: rgba(212, 168, 85, 0.08);
}

.dw-kpi-icon-b {
  background: rgba(90, 139, 176, 0.08);
}

.dw-kpi-val {
  font-size: 28px;
  font-weight: 800;
  font-family: "Space Mono", monospace;
  letter-spacing: -1.5px;
  line-height: 1;
}

.dw-kpi-lbl {
  font-size: 11px;
  color: #9ca3a8;
  margin-top: 3px;
  font-weight: 500;
}

.dw-kpi-sub {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.dw-sev-red {
  background: linear-gradient(135deg, #cf7171, #b56060);
}

.dw-sev-orange {
  background: linear-gradient(135deg, #c98a5a, #b57a4a);
}

.dw-sev-yellow {
  background: linear-gradient(135deg, #d4a853, #c9974a);
}

.dw-sev-blue {
  background: linear-gradient(135deg, #6b9ac4, #4a7ba0);
}

.dw-sev-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.dw-sev-critical {
  background: #cf7171;
}

.dw-sev-high {
  background: #c98a5a;
}

.dw-sev-medium {
  background: #d4a853;
  color: #2d3436;
}

.dw-sev-low {
  background: #6b9ac4;
}

.dw-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dw-s-on {
  background: rgba(107, 158, 125, 0.08);
  color: #7fb685;
}

.dw-s-off {
  background: rgba(196, 97, 110, 0.08);
  color: #cf7171;
}

.dw-s-fault {
  background: rgba(212, 168, 85, 0.08);
  color: #b59340;
}

.dw-s-maint {
  background: rgba(90, 139, 176, 0.08);
  color: #6b9ac4;
}

.dw-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dw-sig-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 14px;
}

.dw-sig-bar {
  width: 3.5px;
  border-radius: 1px;
  background: #ddd9d4;
}

.dw-sig-full {
  background: #7fb685;
}

.dw-sig-warn {
  background: #d4a853;
}

.dw-tree.e-treeview .e-list-item .e-fullrow {
  border-radius: 6px;
  transition: background 0.1s ease;
}

.dw-tree.e-treeview .e-list-item .e-fullrow:hover {
  background: #f5f3ef !important;
}

.dw-tree.e-treeview .e-list-item.e-active > .e-fullrow {
  background: rgba(90, 139, 176, 0.08) !important;
}

.dw-tree.e-treeview .e-text-content {
  padding: 3px 0 !important;
}

.dw-tree.e-treeview .e-list-text {
  font-size: 12px !important;
  color: #5a5e64 !important;
  width: 100%;
}

.dw-tree.e-treeview .e-icon-collapsible,
.dw-tree.e-treeview .e-icon-expandable {
  color: #9ca3a8 !important;
  font-size: 10px !important;
}

.dw-tree.e-treeview .e-ul {
  padding-left: 16px !important;
}

.dw-tree-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.dw-tree-lbl {
  flex: 1;
  color: #5a5e64;
  font-weight: 500;
  font-size: 12px;
}

.dw-tree-device {
  font-family: "Space Mono", monospace;
  font-size: 11px;
}

.dw-tree-badge {
  font-size: 10px;
  color: #9ca3a8;
  background: #ece9e4;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: auto;
}

.dw-badge-online {
  background: rgba(107, 158, 125, 0.08);
  color: #7fb685;
}

.dw-badge-offline {
  background: rgba(196, 97, 110, 0.08);
  color: #cf7171;
}

.dw-badge-fault {
  background: rgba(212, 168, 85, 0.08);
  color: #b59340;
}

.dw-st-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dw-st-on {
  background: #7fb685;
}

.dw-st-off {
  background: #cf7171;
}

.dw-st-fault {
  background: #d4a853;
}

.dw-sparkline {
  width: 100%;
  height: 36px;
}

.dw-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7aad8a;
  animation: dw-pulse 2s infinite;
}

.dw-pulse-red {
  background: #c4616e;
}

@keyframes dw-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
.dw-widget {
  background: #fefefe;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  overflow: hidden;
}

.dw-widget-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
}

.dw-widget-title {
  font-size: 13px;
  font-weight: 800;
  color: #2d3436;
}

.dw-widget-sub {
  font-size: 0.6875rem;
  color: #9ca3a8;
}

.dw-widget-body {
  padding: 0 18px 18px;
}

.dw-view-all {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #5a8bb0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.dw-view-all:hover {
  color: #467191;
  gap: 6px;
}

.dw-nav-btn {
  font-size: 11px;
  font-weight: 700;
  color: #5a8bb0;
  background: rgba(90, 139, 176, 0.08);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.dw-nav-btn:hover {
  background: rgba(80, 129, 166, 0.08);
  color: #497698;
}

.dw-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #ece9e4;
  background: #fefefe;
  text-decoration: none;
  transition: 0.18s;
  min-width: 170px;
  flex: 1;
}
.dw-quick-card:hover {
  border-color: #5a8bb0;
  box-shadow: 0 4px 16px rgba(90, 139, 176, 0.1);
  transform: translateY(-1px);
}

.dw-qc-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.dw-qc-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #2d3436;
  line-height: 1.2;
}

.dw-qc-sub {
  font-size: 10px;
  color: #9ca3a8;
  margin-top: 1px;
}