:root {
  --ac-primary: #6C15A3;
  --ac-primary-hover: #571185;
  --ac-dark: #1f2937;
  --ac-bg: #f6f7fb;
  --ac-surface: #ffffff;
  --ac-border: #e5e7eb;
  --ac-muted: #6b7280;
  --ac-radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ac-bg);
  color: var(--ac-dark);
}

/* ===== Topbar ===== */

.topbar {
  background: var(--ac-surface);
  border-bottom: 1px solid var(--ac-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ac-dark);
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--ac-dark);
  font-weight: 600;
  margin-left: 18px;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ac-primary);
}

/* ===== Layout ===== */

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--ac-border);
  background: var(--ac-surface);
  color: var(--ac-dark);
}

.btn-primary {
  background: var(--ac-primary);
  border-color: var(--ac-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ac-primary-hover);
  border-color: var(--ac-primary-hover);
}

/* ===== Tables ===== */

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid var(--ac-border);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ac-muted);
  letter-spacing: 0.05em;
}

tbody tr:hover {
  background: rgba(108,21,163,0.05);
}

td .btn {
  padding: 6px 12px;
  font-size: 13px;
}

/* ===== Forms ===== */

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-muted);
  display: block;
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ac-border);
  font-size: 14px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--ac-primary);
  box-shadow: 0 0 0 3px rgba(108,21,163,0.15);
}

F

/* Job Posts list typography */
.job-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.job-company {
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-muted);
}

/* ===== Utilities ===== */

.muted {
  color: var(--ac-muted);
  font-size: 14px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spacer {
  height: 14px;
}

/* Used by pretty_datetime_es */
.time {
  font-size: 12px;
  font-weight: 500;
  color: var(--ac-muted);
}

.td-actions {
  text-align: center;
  white-space: nowrap;
}

.td-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--ac-muted);
}

/* Table data refinement */

/* Name column stronger */
td:nth-child(1) {
  font-weight: 600;
  font-size: 14px;
  color: var(--ac-dark);
}

/* Status */
td:nth-child(2) {
  font-size: 13px;
}

/* HQ */
td:nth-child(3) {
  font-size: 14px;
}

/*
.badge-active {
  background: #e6f4ea;
  color: #137333;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

 Status badges */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-active {
  background: #e6f4ea;
  color: #137333;
}

.badge-inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.pres-wrap { position: relative; }

.dd-box {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: none;
  z-index: 80;
}

.dd-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dd-item:hover { background: rgba(108,21,163,0.05); }

.dd-label { font-weight: 600; font-size: 13px; }
.dd-hint  { font-size: 12px; color: var(--ac-muted); white-space: nowrap; }

.dd-empty { padding: 10px 12px; color: var(--ac-muted); font-size: 13px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ac-border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.chip small { font-weight: 600; color: var(--ac-muted); }

.chip form { display:inline; margin:0; }
.chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ac-muted);
  font-weight: 700;
}

/* Chip animations */
.chip {
  transition: transform 180ms ease, opacity 180ms ease;
}
.chip.is-enter {
  opacity: 0;
  transform: translateY(6px);
}
.chip.is-enter.is-enter-active {
  opacity: 1;
  transform: translateY(0);
}
.chip.is-leave {
  opacity: 1;
  transform: scale(1);
}
.chip.is-leave.is-leave-active {
  opacity: 0;
  transform: scale(0.98);
}

.form-actions {
  align-items: center;
  margin-top: 24px;
  gap: 10px;
}

.form-notice {
  margin-right: auto;          /* empuja los botones a la derecha */
  font-size: 13px;
  color: var(--ac-muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.form-notice.success {
  color: #0f5132;
  background: rgba(15, 81, 50, 0.08);
  border-color: rgba(15, 81, 50, 0.18);
}

.form-notice.info {
  color: #1f2937;
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.12);
}

.form-notice.error {
  color: #842029;
  background: rgba(132, 32, 41, 0.08);
  border-color: rgba(132, 32, 41, 0.18);
}

/* ======================================================
   ALERTS (Depurado + compatible con clases actuales)
   - Mantiene: .alert, .alert-success, .alert-close
   - Nuevo opcional: .alert--success, .alert--error, .alert--warning, .alert--info
   - Nuevo opcional: .alert__body, .alert__icon, .alert__close
   - Si usted decide renderizar su propio icono (.alert__icon), agregue también la clase
     .alert--with-icon para ocultar el icono automático ::before.
   ====================================================== */

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 16px;
  margin: 18px 0;

  border-radius: 10px;
  border: 1px solid transparent;

  font-size: 14px;
  line-height: 1.4;
}

/* Grupo izquierda (icono + texto). Úselo si quiere evitar estilos inline */
.alert__body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Icono (BEM) */
.alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Botón cerrar (BEM) */
.alert__close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;

  opacity: 0.55;
  padding: 0 4px;
  line-height: 1;

  transition: opacity 0.2s ease;
}
.alert__close:hover { opacity: 1; }

/* Compatibilidad: tu HTML actual usa .alert-close */
.alert-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;

  opacity: 0.55;
  padding: 0 4px;
  line-height: 1;

  transition: opacity 0.2s ease;
}
.alert-close:hover { opacity: 1; }

/* ================================
   Variantes
   ================================ */

/* SUCCESS (nuevo) */
.alert--success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #065f46;
}

/* ERROR (nuevo) */
.alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

/* WARNING (nuevo) */
.alert--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

/* INFO (nuevo) */
.alert--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

/* Compatibilidad: tu HTML actual usa .alert-success (sin --) */
.alert-success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #065f46;
}

/* ================================
   Icono automático (si NO se define .alert__icon)
   ================================ */

.alert--success::before,
.alert-success::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Si usted renderiza su propio icono con .alert__icon, use .alert--with-icon */
.alert--with-icon::before { content: none; display: none; }

/* Colores para icono BEM (cuando usted lo use) */
.alert--success .alert__icon,
.alert-success .alert__icon { background: #10b981; color: #fff; }

.alert--error .alert__icon { background: #ef4444; color: #fff; }
.alert--warning .alert__icon { background: #f59e0b; color: #fff; }
.alert--info .alert__icon { background: #3b82f6; color: #fff; }

.btn-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  min-width:36px;
}

.btn-icon svg {
  display:block;
}

/* Estado visual cuando se copia */
.btn-icon.is-copied {
  background-color: #16a34a; /* verde */
  color: #fff;
  border-color: #16a34a;
}

/* Tooltip flotante */
.copy-toast {
  position: fixed;
  top: 84px;
  right: 24px;
  background: #1f2937;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}
