/* ============================================================
   SUPER ADMIN DASHBOARD - super_admin_ prefix, font: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.super_admin_body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #626262;
  -webkit-font-smoothing: antialiased;
}

.super_admin_img {
  max-width: 100%;
  display: block;
}

.super_admin_button {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

/* ---- Layout ---- */
#super_admin_dashboard_layout {
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.super_admin_dashboard_container {
  width: 100%;
  display: flex;
  background-color: #ffffff;
  position: relative;
  box-sizing: border-box;
}

/* ---- Sidebar ---- */
.super_admin_sidebar {
  width: 250px;
  flex-shrink: 0;
  padding: 18px 30px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-sizing: border-box;
  overflow-x: hidden;
}

.super_admin_sidebar_content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.super_admin_brand_logo {
  width: 200px;
  height: auto;
  margin-bottom: 37px;
}

.super_admin_nav_item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.super_admin_nav_text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #33378c;
}

.super_admin_states_dropdown {
  background-color: #ffffff;
  margin-top: 10px;
  display: block;
}

.super_admin_state_item {
  padding: 7px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #000000;
  cursor: pointer;
  margin-bottom: 5px;
  transition: background-color 0.2s ease;
  border-radius: 20px;
}

.super_admin_state_item:hover {
  background-color: #f3f4f6;
}

.super_admin_state_item.selected {
  background-color: #33378c;
  color: #ffffff;
  font-weight: 500;
}

.super_admin_state_item_disabled {
  color: #b0b0b0;
  cursor: not-allowed;
  pointer-events: none;
}

.super_admin_sidebar_footer {
  margin-bottom: 20px;
  margin-top: 25px;
}

.super_admin_footer_logo {
  width: 112px;
  height: auto;
  display: none;
  margin-bottom: 14px;
}

.super_admin_copyright {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* ---- Main Content ---- */
.super_admin_main_content {
  flex-grow: 1;
  background-color: #ecfaf2;
  border-radius: 16px;
  padding: 30px 30px;
  margin: 18px 18px 18px 0;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ---- Header ---- */
.super_admin_header_section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

/* ---- User Dropdown ---- */
.super_admin_user_dropdown {
  position: relative;
}

.super_admin_user_trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.super_admin_user_details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.super_admin_user_name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #626262;
  text-align: right;
}

.super_admin_user_role {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #979797;
  text-align: right;
}

.super_admin_user_avatar {
  width: 32px;
  height: 32px;
  background-color: #0EA15D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.super_admin_dropdown_menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 6px;
  min-width: 170px;
  z-index: 1000;
  background: transparent;
}

.super_admin_dropdown_inner {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.super_admin_dropdown_menu.super_admin_open {
  display: block;
}

.super_admin_user_dropdown:hover .super_admin_dropdown_menu {
  display: block;
}

.super_admin_dropdown_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.super_admin_dropdown_item:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.super_admin_dropdown_settings {
  color: #626262;
  border-bottom: 1px solid #f0f0f0;
}

.super_admin_dropdown_logout {
  color: #dc2626;
}

.super_admin_dropdown_logout:hover {
  background-color: #fff5f5;
  color: red;
}

/* ---- Stats Grid (4 cards) ---- */
.super_admin_stats_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.super_admin_stat_card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 15px 16px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.super_admin_stat_title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #626262;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.4;
}

.super_admin_stat_value {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.super_admin_green_text {
  color: #0ea15d;
}

/* ---- Registry Card ---- */
.super_admin_registry_card {
  background-color: #ffffff;
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.super_admin_registry_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px;
}

.super_admin_registry_title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0ea15d;
  margin: 0 0 6px 0;
}

.super_admin_registry_subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #626262;
  margin: 0;
}

.super_admin_registry_actions {
  display: flex;
  gap: 12px;
}

.super_admin_action_btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  background-color: #f3f4f6;

    color: #d1d5db;

    cursor: not-allowed;

    pointer-events: none;

    opacity: 0.6;
}

/* ---- Data Table ---- */
.super_admin_table_container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.super_admin_data_table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background-color: #ffffff;
  margin: 0;
  border-spacing: 0;
}

.super_admin_data_table thead {
  background-color: rgba(241, 241, 241, 0.6);
}

.super_admin_table_header {
  height: 49px;
}

.super_admin_table_header th {
  padding: 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #626262;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.super_admin_table_header th:first-child {
  text-align: left;
  padding-left: 25px;
}

.super_admin_table_row {
  border-bottom: 1px solid rgba(241, 241, 241, 0.8);
}

.super_admin_table_row:last-child {
  border-bottom: none;
}

.super_admin_table_row td {
  padding: 16px 10px;
  vertical-align: middle;
}

/* ---- Columns ---- */
.super_admin_col_building {
  padding-left: 25px;
  min-width: 160px;
}

.super_admin_col_count  { min-width: 120px; }
.super_admin_col_status { min-width: 110px; }
.super_admin_col_load   { min-width: 130px; }

.super_admin_col_action {
  padding-right: 25px;
  min-width: 110px;
}

.super_admin_center {
  text-align: center;
}

/* ---- Building Info ---- */
.super_admin_building_info {
  margin-left: 10px;
}

.super_admin_building_name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #626262;
}

.super_admin_row_value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111827;
  font-weight: 400;
}

/* ---- Status Badges ---- */
.super_admin_status_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  min-width: 80px;
  white-space: nowrap;
}

.super_admin_status_approved {
  background-color: #dcfce7;
  color: #166534;
}

.super_admin_status_process {
  background-color: #fef3c7;
  color: #92400e;
}

.super_admin_status_rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

/* ---- Action Link ---- */
.super_admin_view_details {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid #2563eb;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.super_admin_view_details:hover {
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

.super_admin_view_details_disabled {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #d1d5db;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .super_admin_stats_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .super_admin_dashboard_container {
    flex-direction: column;
  }

  .super_admin_sidebar {
    width: 100%;
    padding: 20px;
  }

  .super_admin_main_content {
    margin: 0;
    border-radius: 0;
    padding: 24px 20px;
  }

  .super_admin_stats_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .super_admin_stats_grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .super_admin_main_content {
    padding: 20px 15px;
  }
}

/* ---- Cursor helpers ---- */
.bee_to_gbpn,
.bee_dash_state_to_bss_dash {
  cursor: pointer;
}

/* ---- Table/Map View Toggle Buttons ---- */
.super_admin_view_btn {
  background: #ffffff;
  color: #626262;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.super_admin_view_btn.super_admin_view_active {
  background: #00803E;
  color: #ffffff;
  border-color: #00803E;
}

.super_admin_view_btn:hover:not(.super_admin_view_active) {
  background: #f0f0f0;
}

/* ---- Map Container ---- */
.super_admin_map_container {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

#super_admin_india_map {
  width: 100%;
  height: 100%;
}