/* Custom navigation and dropdown styles */

/* Header/nav specific */
.pc-header .space-icon {
  color: #616161; /* requested text color */
  font-size: 2.5em;
  display: flex;
  align-items: center;
  margin: 0 19px;
}

.pc-header .space-label,
.pc-header .dropdown-space-text {
  color: #616161 !important; /* requested text color */
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

/* Make the dropdown look like a dropdown: caret + border */
.pc-header .dropdown-toggle.dropdown-space-text {
  position: relative;
  text-align: left;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #fff; /* keep background (not forced blue) */
  padding-right: 2rem;
}

.pc-header .dropdown-toggle.dropdown-space-text::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #616161; /* caret color */
  transform: translateY(-50%);
}

/* Dropdown menu sizing and visibility */
.pc-header .pc-mega-dmenu {
  max-width: fit-content;
  width: auto;
  min-width: 340px; /* widened */
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
  margin-top: 10px; /* moved from inline */
}

/* Add separation between "Elige tu espacio" label and dropdown */
.pc-header .space-label + .pc-mega-menu .dropdown-space-text,
.pc-header .space-label ~ .pc-mega-menu .dropdown-space-text {
  margin-left: 12px;
}

/* Fix typo "max-widht" if present inline elsewhere by relying on this file */

/* Dropdown item text overflow handling */
.dropdown-item.dropdown-spaces {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 10px; /* moved from inline */
}

.dropdown-item.dropdown-spaces span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
  display: inline-block;
}


/* Ensure checkbox aligns nicely */
.dropdown-item.dropdown-spaces .form-check-input {
  margin-left: 8px;
}

/* Header logo spacing (was inline on img) */
.pc-header .logo.logo-lg {
  margin-left: 65px;
}

/* User section: icon and greeting */
.pc-header .ti-user {
  font-size: 1.5em;
  margin-bottom: 0.1em;
  color: #616161 !important;
}

.pc-header .greeting-text {
  font-size: 1em;
  color: #616161;
}
