/**
 * @file
 * Target Status dropdown styles.
 */

/* Target Status Pills */
.target-status-pill-wrapper .language-icon {
  padding-right: 12px;
  position: relative;
  cursor: default; /* Default cursor for pills without dropdowns */
}

/* Only pills with dropdown toggles get extra padding and pointer cursor */
.target-status-pill-wrapper .language-icon:has(.target-status-dropdown-toggle),
.target-status-pill-wrapper .has-dropdown .language-icon {
  padding-right: 28px; /* Extra space for dropdown arrow */
  cursor: pointer; /* Pointer cursor for clickable dropdowns */
}
/* Target Status Pills Layout */
.target-status-pill-wrapper {
  display: block;
  margin-bottom: 4px;
  margin-right: 0px;
  position: relative;
}

.target-status-pill-wrapper:last-child {
  margin-bottom: 0px;
}

.target-status-pill-wrapper .target-status-dropdown-toggle {
  display: inline-block;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotateZ(180deg);
  height: 20px;
  width: 16px;
  background: url("../icons/787878/icon-collapse.svg") no-repeat center;
  background-size: 16px 16px;
  padding: 0;
  margin: 0;
  opacity: 0.8;
  cursor: pointer;
  vertical-align: middle;
}

.target-status-pill-wrapper .target-status-dropdown-toggle:hover {
  opacity: 1;
}

.target-status-pill-wrapper.open .target-status-dropdown-toggle {
  transform: translateY(-50%) rotateZ(0deg);
}

.target-status-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 150px;
  list-style: none;
  margin: 2px 0 0 0;
  padding: 0;
  display: none !important; /* Hidden by default */
}

.target-status-dropdown-menu.show {
  display: block !important; /* Show when class is added */
}

.target-status-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.target-status-dropdown-menu li:last-child {
  border-bottom: none;
}

.target-status-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.target-status-dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #000;
}