/* Shell del panel de administrador (navbar + sidebar). Todo queda scopeado a
   isAdminArea (rutas /admin*) para no afectar el resto de roles. */

.admin-topbar {
  display: flex;
  align-items: center;
  padding: .6rem 1.25rem;
  position: sticky;
  top: 0;
}

.admin-topbar .nav-item.dropdown {
  position: relative;
}

.admin-topbar .dropdown-menu {
  position: absolute !important;
  top: 100%;
  right: 0;
  left: auto;
  margin-top: .25rem;
}

.bg-ebiodark-admin {
  background-color: var(--ebiocolornav);
}

.admin-sidebar-toggle-btn {
  font-size: 1.2rem;
  padding: .25rem .6rem;
  margin-right: .5rem;
}

.admin-sidebar-toggle-btn:hover,
.admin-sidebar-toggle-btn:focus {
  color: #fff;
}

.admin-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background-color: #e6553f;
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  min-width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  text-align: center;
  padding: 0 .2rem;
}

#adminNotifDropdownMenuLink {
  position: relative;
}

.admin-user-name {
  font-size: .85rem;
  line-height: 1.1;
}

.admin-user-role {
  font-size: .7rem;
  opacity: .8;
  line-height: 1.1;
}

.admin-layout-wrapper.is-admin {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 56px);
  width: 100%;
}

.admin-sidebar {
  flex: 0 0 260px;
  width: 260px;
  background-color: #ffffff;
  border-right: 1px solid #eef0f2;
  padding: 1.1rem .75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: margin-left .2s ease;
}

.admin-layout-wrapper.is-admin.admin-sidebar-collapsed .admin-sidebar {
  margin-left: -260px;
}

.admin-layout-wrapper.is-admin #sectorBase {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .85rem;
  margin-bottom: .2rem;
  border-radius: .5rem;
  color: #52596b;
  font-size: .95rem;
  text-decoration: none;
}

.admin-sidebar-item i {
  width: 1.1rem;
  text-align: center;
  color: var(--ebiocolornav);
}

.admin-sidebar-item:hover {
  background-color: #f2f6fb;
  color: var(--ebiocolornav);
  text-decoration: none;
}

.admin-sidebar-item.active {
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  font-weight: 600;
}

.admin-sidebar-group {
  margin-top: 1rem;
}

.admin-sidebar-heading {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa1b1;
  padding: 0 .85rem;
  margin-bottom: .35rem;
}

.admin-sidebar-help {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid #eef0f2;
  text-align: center;
}

.admin-sidebar-help i {
  font-size: 1.3rem;
  color: var(--ebiocolornav);
  margin-bottom: .35rem;
  display: block;
}

.admin-sidebar-footer {
  text-align: center;
  padding-top: 1rem;
}

.admin-sidebar-footer-logo {
  height: 18px;
  opacity: .85;
  margin-bottom: .2rem;
}

.admin-page-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c313a;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eef0f2;
}

.admin-home-welcome {
  min-height: calc(100vh - 300px);
}

.admin-home-welcome-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

@media (max-width: 767px) {
  .admin-layout-wrapper.is-admin {
    flex-direction: column;
  }

  .admin-sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 5;
    width: 260px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, .08);
    margin-left: 0;
  }

  .admin-layout-wrapper.is-admin.admin-sidebar-collapsed .admin-sidebar {
    margin-left: -260px;
  }

  .admin-layout-wrapper.is-admin #sectorBase {
    width: 100%;
  }
}
