/* ═══════════════════════════════
   UTILITY
   ═══════════════════════════════ */
.hidden {
  display: none !important;
}

/* ═══════════════════════════════
   GROUPS SUB-TABS
   ═══════════════════════════════ */
.groups-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.groups-subtab {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.groups-subtab:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-hover);
}

.groups-subtab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Groups Filter Bar ── */
.groups-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.groups-filter-btn {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.groups-filter-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.groups-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ═══════════════════════════════
   APPROVE / REJECT BUTTONS
   ═══════════════════════════════ */
.btn-approve {
  background: var(--green-soft);
  color: var(--green);
}

.btn-approve:hover {
  background: var(--green);
  color: #fff;
}

.btn-reject {
  background: var(--rose-soft);
  color: var(--rose);
}

.btn-reject:hover {
  background: var(--rose);
  color: #fff;
}

/* ═══════════════════════════════
   SURVEY ANSWERS
   ═══════════════════════════════ */
.survey-answers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.survey-answer-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  line-height: 1.4;
}

.survey-answer-item strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Coords Paste Input ── */
.coords-paste {
  border-style: dashed !important;
  border-color: var(--primary) !important;
  background: var(--primary-soft) !important;
  transition: all .2s ease !important;
}

.coords-paste::placeholder {
  color: var(--primary) !important;
  opacity: .5;
}

.coords-paste:focus {
  border-style: solid !important;
  background: var(--surface) !important;
}

/* ── Image Mode Tabs ── */
.img-mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.img-mode-tab {
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s ease;
}

.img-mode-tab:hover {
  background: var(--surface);
  color: var(--text);
}

.img-mode-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Upload Dropzone ── */
.img-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
  gap: 2px;
}

.img-upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ── Vista previa genérica (la llena handleImgUpload) ── */
.img-preview-box {
  display: none;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}

.img-preview-box.active {
  display: block;
}

.img-preview-box img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
}

/* Los logos suelen ser PNG con transparencia: fondo claro fijo para verlos. */
.img-preview-box.on-white img {
  background: #fff;
  max-height: 90px;
  padding: 6px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Schedule Picker Grid ── */
.sp-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--bg);
  user-select: none;
  -webkit-user-select: none;
}

.sp-header {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.sp-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, .05));
}

.sp-row:last-child {
  border-bottom: none;
}

.sp-day-label {
  width: 36px;
  min-width: 36px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.sp-cells {
  display: flex;
  flex: 1;
  gap: 1px;
}

.sp-hour-hdr {
  flex: 1;
  min-width: 22px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 0;
}

.sp-cell {
  flex: 1;
  min-width: 22px;
  height: 24px;
  background: var(--surface);
  border-radius: 3px;
  cursor: pointer;
  transition: all .1s ease;
  position: relative;
}

.sp-cell:hover {
  background: var(--primary-soft);
  transform: scale(1.1);
  z-index: 1;
}

.sp-cell.sp-active {
  background: var(--primary);
  box-shadow: 0 0 6px rgba(99, 102, 241, .35);
}

.sp-cell.sp-active:hover {
  background: var(--primary-hover);
}

.sp-copy-btn {
  width: 28px;
  min-width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all .15s ease;
}

.sp-copy-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

