@import 'report.css';

/* Detail mode — appeal panel IDs */
.report-layout.detail-mode #appeal-form-panel {
  display: none;
}

.report-layout.detail-mode #appeal-detail-panel {
  display: flex;
}

/* Appeal accent overrides */
.appeal-item.active {
  border-left-color: #a78bfa;
}

.appeal-notice {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
}

.appeal-notice .svg-icon {
  color: #a78bfa;
}

.appeal-toast {
  background: linear-gradient(135deg, #7c5cbf, #5b3d99);
}

.appeal-detail__field a,
.report-detail__field a.appeal-link {
  color: #a78bfa;
}

.appeal-form textarea.input-field--sm {
  min-height: 100px;
}

.appeal-header .btn-accent {
  background: linear-gradient(135deg, #7c5cbf, #5b3d99);
}

.appeal-header .btn-accent:hover {
  filter: brightness(1.08);
}

.appeal-status--approved {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-vibrant);
}

.appeal-status--denied {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.appeal-item__type {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group--full {
  grid-column: 1 / -1;
}

/* ── Staff dropdown ── */
.staff-dropdown {
  position: relative;
}

.staff-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  min-height: 36px;
  background: var(--color-dark-black);
  border: 1px solid rgba(31, 122, 92, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-off-white);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: left;
}

.staff-dropdown__trigger:hover,
.staff-dropdown.is-open .staff-dropdown__trigger {
  border-color: rgba(167, 139, 250, 0.4);
}

.staff-dropdown__value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.staff-dropdown__placeholder {
  color: var(--color-sage);
  font-size: 0.8125rem;
}

.staff-dropdown__chevron {
  width: 14px;
  height: 14px;
  color: var(--color-sage);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.staff-dropdown.is-open .staff-dropdown__chevron {
  transform: rotate(180deg);
}

.staff-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-dark-green);
  border: 1px solid rgba(31, 122, 92, 0.25);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  max-height: 180px;
  overflow-y: auto;
  padding: 3px;
}

.staff-dropdown__rank {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  padding: 6px 8px 2px;
  margin: 0;
  opacity: 0.7;
}

.staff-dropdown__option {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--color-off-white);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.staff-dropdown__option:hover {
  background: rgba(31, 122, 92, 0.15);
}

.staff-dropdown__option.is-active {
  background: rgba(167, 139, 250, 0.15);
}

.staff-dropdown__head {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
  background: var(--color-dark-black);
  border: 1px solid rgba(31, 122, 92, 0.2);
}

.staff-dropdown__head--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-sage);
  background: rgba(160, 179, 170, 0.1);
}

.staff-dropdown__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-detail img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  image-rendering: pixelated;
}
