* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f6f4;
  color: #1f2937;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: #fff;
  border: 1px solid #d9e2dd;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.login-page .card {
  width: 100%;
  max-width: 420px;
}

h1, h2 {
  margin-top: 0;
}

.subtitle,
.muted {
  color: #6b7280;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}

button,
.btn-secondary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}

button {
  background: #166534;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #14532d;
  color: #fff;
}

.topbar .muted {
  color: #d1fae5;
  margin-left: 8px;
}

header.topbar a.topbar-brand,
header.topbar a.topbar-brand:link,
header.topbar a.topbar-brand:visited,
header.topbar a.topbar-brand:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

header.topbar a.topbar-brand:hover,
header.topbar a.topbar-brand:focus {
  color: #ecfdf5 !important;
  -webkit-text-fill-color: #ecfdf5;
  text-decoration: underline;
}

header.topbar a.topbar-brand:focus-visible {
  outline: 2px solid #bbf7d0;
  outline-offset: 3px;
  border-radius: 4px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

input[type='file'],
input[type='number'] {
  width: auto;
}

label.small {
  font-weight: 500;
}

.small {
  font-size: 0.875rem;
}

.subtle {
  background: #f8fafc;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.alert-critical {
  border-left: 4px solid #b91c1c;
}

.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mono.small,
code.small {
  font-size: 0.8rem;
}

.stat-list li {
  margin-bottom: 6px;
}

/* —— Import por lotes (Afterpay / Boot / ShopPay) —— */
.work-import-progress {
  margin-top: 12px;
}

.work-import-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.work-import-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: #166534;
  transition: width 0.25s ease;
}

/* —— Panel empleados (compacto) —— */
.admin-empleados-main {
  padding-bottom: 24px;
}

.admin-empleados-welcome {
  margin-bottom: 12px;
}

.admin-empleados-welcome h1 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.admin-empleados-welcome__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-refresh-btn {
  cursor: pointer;
  white-space: nowrap;
}

.admin-refresh-btn--primary {
  background: #14532d;
  color: #fff;
  border: 1px solid #14532d;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-refresh-btn--primary:hover {
  background: #166534;
}

.admin-refresh-btn.is-loading,
.admin-refresh-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-pool-strip {
  margin-bottom: 12px;
  padding: 12px 14px;
}

.admin-pool-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-pool-strip__head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.admin-pool-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-pool-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.admin-pool-mini--afterpay {
  border-color: #fed7aa;
  background: #fffbf5;
}

.admin-pool-mini--boot {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.admin-pool-mini--shoppay {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.admin-pool-mini--latinos {
  border-color: #fcd34d;
  background: #fffbeb;
}

.admin-pool-mini--latinos_m {
  border-color: #fdba74;
  background: #fff7ed;
}

.admin-pool-mini--gringos {
  border-color: #93c5fd;
  background: #eff6ff;
}

.admin-pool-mini--gringos_m {
  border-color: #a5b4fc;
  background: #eef2ff;
}

.admin-pool-mini__unassigned {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #14532d;
}

.admin-pool-mini__meta {
  width: 100%;
  font-size: 0.72rem;
  color: #6b7280;
}

.admin-emp-list {
  display: grid;
  gap: 10px;
}

.emp-card {
  margin: 0;
  padding: 10px 12px;
}

.emp-card--inactive {
  opacity: 0.72;
}

.emp-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.emp-card__who h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.emp-card__sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.emp-card__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.emp-card__total {
  text-align: center;
  min-width: 52px;
}

.emp-card__total strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: #14532d;
}

.emp-card__total span {
  font-size: 0.68rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.emp-card__total--pending strong {
  color: #c2410c;
}

.emp-card__total--action strong {
  color: #1d4ed8;
}

.emp-card__sources {
  display: grid;
  gap: 6px;
}

.emp-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
}

.emp-presence__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.emp-presence--online {
  color: #166534;
  background: #dcfce7;
}

.emp-presence--idle {
  color: #a16207;
  background: #fef9c3;
}

.emp-presence--away {
  color: #c2410c;
  background: #ffedd5;
}

.emp-presence--offline {
  color: #4b5563;
  background: #f3f4f6;
}

.emp-presence-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

.emp-presence-panel__item {
  min-width: 0;
}

.emp-presence-panel__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  margin-bottom: 2px;
}

.emp-presence-panel__item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
  word-break: break-word;
}

.emp-presence-panel__item--action strong {
  color: #1d4ed8;
}

@media (max-width: 720px) {
  .emp-presence-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.emp-panel-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.emp-panel-form__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.emp-panel-form__select {
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
}

.emp-panel-form__btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: #14532d;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.emp-panel-form__btn:hover {
  background: #166534;
}

.emp-panel-form__hint {
  flex: 1 1 160px;
  margin: 0;
  line-height: 1.35;
}

.emp-src__panel-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #14532d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 7px;
}

.emp-src--panel-active {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: inset 3px 0 0 #16a34a;
}

.emp-src--not-panel {
  opacity: 0.55;
}

.emp-src {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.emp-src--afterpay {
  border-color: #fed7aa;
  background: #fffbf5;
}

.emp-src--boot {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.emp-src--shoppay {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.emp-src--empty {
  opacity: 0.55;
}

.emp-src__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.emp-src__total {
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 2.2rem;
  color: #111827;
}

.emp-src__muted {
  font-size: 0.78rem;
  color: #9ca3af;
}

.emp-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.82rem;
}

.emp-metric__label {
  color: #6b7280;
  font-size: 0.72rem;
}

.emp-metric--pending strong {
  color: #c2410c;
}

.emp-metric--action strong {
  color: #1d4ed8;
}

.emp-metric--used strong {
  color: #374151;
}

.emp-src__link {
  font-size: 0.72rem;
  margin-left: 2px;
}

.emp-src__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #e5e7eb;
}

.emp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.emp-pill strong {
  font-weight: 700;
}

.emp-pill--buzon { background: #f3f4f6; }
.emp-pill--asistente { background: #e0e7ff; border-color: #c7d2fe; }
.emp-pill--cerro { background: #cffafe; border-color: #a5f3fc; }
.emp-pill--caliente { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.emp-pill--desconectado { background: #ffedd5; border-color: #fed7aa; }
.emp-pill--numero_erroneo { background: #ede9fe; border-color: #ddd6fe; }
.emp-pill--fallo { background: #ffe4e6; border-color: #fecdd3; }
.emp-pill--corona { background: #fef9c3; border-color: #fde68a; }
.emp-pill--no_account { background: #e2e8f0; border-color: #cbd5e1; }

.admin-empleados-foot {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .admin-pool-strip__grid {
    grid-template-columns: 1fr 1fr;
  }

  .emp-card__totals {
    width: 100%;
    justify-content: space-between;
  }
}

/* Compat: tarjetas pool sueltas (otras páginas) */
.admin-pool-card--boot .work-stats-header h2,
.admin-pool-card--afterpay .work-stats-header h2,
.admin-pool-card--shoppay .work-stats-header h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Legacy selectors (si quedan en HTML cacheado) */
.admin-employee-card {
  margin-top: 16px;
}

.admin-employee-total__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #14532d;
}

.fusion-pool-stats {
  margin-top: 16px;
}

.fusion-name-stats {
  padding: 0;
  margin-bottom: 16px;
}

.fusion-name-stats h3 {
  margin: 0;
  font-size: 1.05rem;
}

.fusion-name-stats-note {
  margin: 12px 0 0;
}

.fuse-form {
  gap: 12px;
}

.inline-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.inline-danger select {
  min-width: 200px;
  flex: 1 1 220px;
}

.btn-danger {
  background: #b45309;
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.06);
}

.dashboard-page .dashboard-container {
  max-width: 1180px;
}

.dashboard-welcome {
  margin-bottom: 0;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 12px;
}

.dashboard-tab {
  flex: 1 1 110px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.dashboard-tab:hover {
  background: #fff;
  color: #111827;
}

.dashboard-tab--active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-tab--profiles.dashboard-tab--active {
  border-color: #166534;
  color: #14532d;
}

.dashboard-tab--afterpay.dashboard-tab--active {
  border-color: #b45309;
  color: #9a3412;
}

.dashboard-tab--boot.dashboard-tab--active {
  border-color: #4338ca;
  color: #3730a3;
}

.dashboard-tab--shoppay.dashboard-tab--active {
  border-color: #0f766e;
  color: #115e59;
}

.dashboard-tab--latinos.dashboard-tab--active {
  border-color: #b45309;
  color: #92400e;
}

.dashboard-tab--latinos_m.dashboard-tab--active {
  border-color: #c2410c;
  color: #9a3412;
}

.dashboard-tab--gringos.dashboard-tab--active {
  border-color: #1d4ed8;
  color: #1e40af;
}

.dashboard-tab--gringos_m.dashboard-tab--active {
  border-color: #4338ca;
  color: #3730a3;
}

.dashboard-tab__step {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #e5e7eb;
  color: #6b7280;
}

.dashboard-tab--profiles.dashboard-tab--active .dashboard-tab__step {
  background: #dcfce7;
  color: #166534;
}

.dashboard-tab--afterpay.dashboard-tab--active .dashboard-tab__step {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-tab--boot.dashboard-tab--active .dashboard-tab__step {
  background: #e0e7ff;
  color: #4338ca;
}

.dashboard-tab--shoppay.dashboard-tab--active .dashboard-tab__step {
  background: #ccfbf1;
  color: #0f766e;
}

.dashboard-tab--latinos.dashboard-tab--active .dashboard-tab__step {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-tab--latinos_m.dashboard-tab--active .dashboard-tab__step {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-tab--gringos.dashboard-tab--active .dashboard-tab__step {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard-tab--gringos_m.dashboard-tab--active .dashboard-tab__step {
  background: #e0e7ff;
  color: #4338ca;
}

.dashboard-tab__label {
  flex: 1;
}

.dashboard-tab__count {
  min-width: 2rem;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.dashboard-tab__count--afterpay {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-tab__count--boot {
  background: #e0e7ff;
  color: #4338ca;
}

.dashboard-tab__count--latinos {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-tab__count--latinos_m {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-tab__count--gringos {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard-tab__count--gringos_m {
  background: #e0e7ff;
  color: #4338ca;
}

.dashboard-tab__count--shoppay {
  background: #ccfbf1;
  color: #0f766e;
}

.dashboard-modules {
  margin-top: 16px;
}

.dashboard-panel[hidden] {
  display: none;
}

.card-module {
  position: relative;
  padding-top: 20px;
}

.card-module--afterpay {
  border-top: 4px solid #b45309;
}

.card-module--boot {
  border-top: 4px solid #4338ca;
}

.card-module--shoppay {
  border-top: 4px solid #0f766e;
}

.card-module--latinos {
  border-top: 4px solid #b45309;
}

.card-module--latinos_m {
  border-top: 4px solid #c2410c;
}

.card-module--gringos {
  border-top: 4px solid #1d4ed8;
}

.card-module--gringos_m {
  border-top: 4px solid #4338ca;
}

.card-module--profiles {
  border-top: 4px solid #166534;
}

.card-module-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
}

.card-module-badge--profiles {
  color: #14532d;
  background: #dcfce7;
}

.card-module-badge--boot {
  color: #3730a3;
  background: #e0e7ff;
}

.card-module-badge--shoppay {
  color: #115e59;
  background: #ccfbf1;
}

.card-module-badge--latinos {
  color: #92400e;
  background: #fef3c7;
}

.card-module-badge--latinos_m {
  color: #9a3412;
  background: #ffedd5;
}

.card-module-badge--gringos {
  color: #1e40af;
  background: #dbeafe;
}

.card-module-badge--gringos_m {
  color: #3730a3;
  background: #e0e7ff;
}

.work-source-fieldset {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e2e8e4);
  border-radius: 10px;
  background: #f8faf9;
}

.work-source-fieldset legend {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.work-source-option {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  cursor: pointer;
}

.work-source-option:first-of-type {
  margin-top: 4px;
}

.profile-source-badge {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}

.profile-source-badge--afterpay {
  color: #9a3412;
  background: #ffedd5;
}

.profile-source-badge--boot {
  color: #3730a3;
  background: #e0e7ff;
}

.profile-source-badge--shoppay {
  color: #115e59;
  background: #ccfbf1;
}

.profile-source-badge--latinos {
  color: #92400e;
  background: #fef3c7;
}

.profile-source-badge--latinos_m {
  color: #9a3412;
  background: #ffedd5;
}

.profile-source-badge--gringos {
  color: #1e40af;
  background: #dbeafe;
}

.profile-source-badge--gringos_m {
  color: #3730a3;
  background: #e0e7ff;
}

.empleado-source-summary {
  margin: 10px 0 0;
}

.empleado-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto 16px;
}

.empleado-section-tab {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.empleado-section-tab--afterpay.empleado-section-tab--active {
  border-color: #b45309;
  background: #fff7ed;
  color: #9a3412;
}

.empleado-section-tab--boot.empleado-section-tab--active {
  border-color: #4338ca;
  background: #eef2ff;
  color: #3730a3;
}

.empleado-section-tab--shoppay.empleado-section-tab--active {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #115e59;
}

.empleado-section-tab--latinos.empleado-section-tab--active {
  border-color: #b45309;
  background: #fffbeb;
  color: #92400e;
}

.empleado-section-tab--latinos_m.empleado-section-tab--active {
  border-color: #c2410c;
  background: #fff7ed;
  color: #9a3412;
}

.empleado-section-tab--gringos.empleado-section-tab--active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e40af;
}

.empleado-section-tab--gringos_m.empleado-section-tab--active {
  border-color: #4338ca;
  background: #eef2ff;
  color: #3730a3;
}

.empleado-section-tab__count {
  min-width: 1.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.06);
}

.empleado-section-panel[hidden] {
  display: none;
}

.empleado-section-panel {
  margin-bottom: 28px;
}

.empleado-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto 14px;
}

.empleado-section-heading__title {
  margin: 0;
  font-size: 1.35rem;
}

.empleado-section-stats {
  max-width: 860px;
  margin: 0 auto 16px;
}

.module-lead {
  margin-top: 0;
  margin-bottom: 16px;
}

.afterpay-export-block {
  padding: 14px 16px;
  border: 1px solid var(--border, #e2e8e4);
  border-radius: 10px;
  background: #f8faf9;
}

.afterpay-export-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #1a5c3a);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.afterpay-export-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.afterpay-export-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-afterpay-stats {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.work-stat-chip--highlight {
  background: #fff7ed;
  border-color: #fdba74;
}

.work-stat-chip--highlight .work-stat-value {
  font-size: 1.35rem;
  color: #c2410c;
}

.module-block {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.module-block--danger {
  background: #fef2f2;
  margin-left: -8px;
  margin-right: -8px;
  padding: 16px 12px 12px;
  border-radius: 8px;
  border-top-color: #fecaca;
}

.module-form {
  margin-top: 8px;
}

.module-form-inline {
  margin-top: 10px;
}

.module-details {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed #d1d5db;
}

.module-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #374151;
}

.profile-library-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.profile-library-stat__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #166534;
}

.profile-library-stat__label {
  font-size: 0.9rem;
  color: #166534;
  font-weight: 600;
}

.profile-catalog-details {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.profile-catalog-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #374151;
  list-style: none;
}

.profile-catalog-details summary::-webkit-details-marker {
  display: none;
}

.profile-catalog-details summary::before {
  content: '▸ ';
  color: #166534;
  font-weight: 800;
}

.profile-catalog-details[open] summary::before {
  content: '▾ ';
}

.profile-catalog-details__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.profile-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.profile-catalog-panel {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.profile-catalog-panel h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.profile-catalog-panel__count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #166534;
}

.profile-catalog-preview {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.86rem;
}

.profile-catalog-preview li {
  padding: 3px 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-catalog-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.btn-profiles {
  background: #166534;
}

.small-link-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
}

.module-actions {
  margin: 16px 0 0;
}

.muted-card {
  opacity: 0.92;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.wrap {
  word-break: break-word;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 20px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
  font-size: 0.875rem;
}

.filter-tab.active {
  background: #166534;
  color: #fff;
}

.profile-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-section {
  margin-top: 16px;
}

.profile-section-title {
  margin: 0;
  font-size: 1.15rem;
}

.profile-export {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e2e8e4);
}

.profile-export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.profile-export-row label {
  flex: 1 1 140px;
  max-width: 200px;
}

.profile-export-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.profile-search label {
  flex: 1 1 220px;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.profile-item {
  margin: 0;
}

.profile-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.profile-body,
.empleado-panel-page .profile-work-zone .profile-body {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  max-height: 420px;
  overflow: auto;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.combo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.combo-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d9e2dd;
  border-radius: 10px;
  background: #fff;
}

.combo-item.is-used {
  background: #f3f4f6;
  opacity: 0.88;
}

.combo-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 200px;
}

.combo-text {
  font-size: 1rem;
  word-break: break-all;
}

.combo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.btn-copy-bulk {
  background: #0f766e;
  color: #fff;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-copy-bulk:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-copy {
  background: #14532d;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn-copy:disabled {
  opacity: 0.65;
  cursor: wait;
}

.badge-used {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.used-at {
  font-size: 0.75rem;
}

.section-subtitle {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  color: #14532d;
}

.form-inline-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-inline-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end;
  }
}

.employee-list li {
  margin-bottom: 8px;
}

.profile-work-card {
  margin-bottom: 0;
}

.profile-work-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-work-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
  max-width: 860px;
}

.empleado-panel-pagination .pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #166534;
  font-weight: 700;
  text-decoration: none;
}

.pagination-page:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.pagination-page.is-current {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: #6b7280;
  font-weight: 700;
}

.pagination-summary {
  width: 100%;
  text-align: center;
}

/* —— Panel empleado —— */
.empleado-panel-page .container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.empleado-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.profile-next-bar {
  max-width: 860px;
  margin: 0 auto 16px;
}

.profile-archive-bar {
  max-width: 860px;
  margin: 0 auto 12px;
}

.profile-archive-bar .btn-archive-all {
  display: block;
  width: 100%;
}

.btn-next-pending {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #166534;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-next-pending:hover {
  filter: brightness(1.06);
}

.btn-next-pending:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-pending-hint {
  margin: 8px 0 0;
  text-align: center;
}

.empleado-profiles-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
  position: relative;
}

.empleado-profiles-grid.is-loading::after {
  content: 'Cargando perfil…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  font-weight: 700;
  color: #166534;
}

.profile-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  flex-shrink: 0;
}

.profile-work-header__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.empleado-panel-page .profile-work-card {
  width: 100%;
  margin-bottom: 0;
  padding: 18px 20px;
}

.empleado-panel-page .profile-work-header {
  margin-bottom: 12px;
}

.empleado-panel-page .profile-work-header h2 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.empleado-panel-page .profile-work-zone .profile-body {
  max-height: none;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.empleado-panel-page .profile-note {
  margin-top: 12px;
  padding-top: 12px;
}

.empleado-panel-page .profile-note__input {
  min-height: 64px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.empleado-panel-page .profile-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.empleado-panel-page .profile-actions .action-btn {
  flex: 0 1 auto;
  min-width: 0;
  padding: 7px 10px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.empleado-panel-page .profile-actions .action-btn--copy-all {
  flex: 0 1 auto;
}

.work-stats-card {
  padding: 16px 18px;
}

.work-stats-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.work-stats-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.work-stats-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.work-stats-filter-hint {
  margin: 0 0 10px;
}

.work-stat-chip {
  flex: 1 1 0;
  min-width: 88px;
  padding: 8px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.work-stat-chip--filterable {
  display: block;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.work-stat-chip--filterable:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.work-stat-chip--filterable:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.work-stat-chip--filterable.work-stat-chip--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  background: #eff6ff;
}

.work-stat-chip--pending.work-stat-chip--active {
  border-color: #6b7280;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.25);
  background: #f3f4f6;
}

.work-stat-chip--buzon.work-stat-chip--active {
  border-color: #6b7280;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.28);
  background: #f3f4f6;
}

.work-stat-chip--caliente.work-stat-chip--active {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
  background: #fef2f2;
}

.work-stat-chip--desconectado.work-stat-chip--active {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
  background: #fffbeb;
}

.work-stat-chip--numero_erroneo.work-stat-chip--active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
  background: #f5f3ff;
}

.work-stat-chip--fallo.work-stat-chip--active {
  border-color: #be123c;
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.25);
  background: #fff1f2;
}

.work-stat-chip--corona.work-stat-chip--active {
  border-color: #ca8a04;
  box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.25);
  background: #fefce8;
}

.work-stat-chip--cerro.work-stat-chip--active {
  border-color: #0891b2;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.25);
  background: #ecfeff;
}

.work-stat-chip--asistente.work-stat-chip--active {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
  background: #eef2ff;
}

.work-stat-chip--no_account.work-stat-chip--active {
  border-color: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25);
  background: #f8fafc;
}

.empleado-filter-empty {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
}

.empleado-filter-empty .linkish {
  margin-left: 6px;
  background: none;
  border: 0;
  padding: 0;
  color: #1d4ed8;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.profile-work-card.is-action-filtered-out {
  display: none !important;
}

.work-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
  margin-bottom: 4px;
}

.work-stat-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
}

.work-stat-value small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.work-stats-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.work-stats-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

@media (max-width: 640px) {
  .work-stats-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .work-stat-chip {
    flex: 1 1 calc(33.333% - 8px);
    min-width: calc(33.333% - 8px);
  }
}

.work-stats-bar-fill--pending { background: #9ca3af; }
.work-stats-bar-fill--buzon { background: #6b7280; }
.work-stats-bar-fill--caliente { background: #dc2626; }
.work-stats-bar-fill--desconectado { background: #d97706; }
.work-stats-bar-fill--numero_erroneo { background: #7c3aed; }
.work-stats-bar-fill--fallo { background: #be123c; }
.work-stats-bar-fill--corona { background: #ca8a04; }
.work-stats-bar-fill--cerro { background: #0891b2; }
.work-stats-bar-fill--asistente { background: #4f46e5; }
.work-stats-bar-fill--no_account { background: #64748b; }

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #14532d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.phone-copy-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.phone-copy-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.phone-copy-overlay__inner {
  text-align: center;
  padding: 24px;
  max-width: 100%;
  pointer-events: none;
}

.phone-copy-overlay__label {
  color: #86efac;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.phone-copy-overlay__number {
  color: #fff;
  font-size: clamp(3.5rem, 14vw, 9rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.1;
  word-break: break-word;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.phone-copy-overlay__hint {
  color: #9ca3af;
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin-top: 28px;
  font-weight: 500;
}

.profile-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.profile-note__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.profile-note__input {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  resize: vertical;
  background: #fffbeb;
  color: #1f2937;
}

.profile-note__input:focus {
  outline: none;
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.2);
}

.profile-note__input::placeholder {
  color: #9ca3af;
}

.profile-note__status {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
}

.profile-note__status--error {
  color: #dc2626;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .empleado-profiles-grid {
    max-width: none;
  }

  .empleado-panel-page .profile-actions .action-btn {
    white-space: normal;
  }
}


.empleado-panel-page .profile-body .copy-target {
  display: inline;
  color: #003db8 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  cursor: pointer !important;
  border-radius: 4px;
  padding: 2px 6px !important;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  background: #cce0ff !important;
  border: 1px solid #0066ff !important;
  box-shadow: 0 1px 2px rgba(0, 102, 255, 0.25);
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.empleado-panel-page .profile-body .copy-target--phone {
  color: #0d5c2e !important;
  background: #c8f5d8 !important;
  border-color: #16a34a !important;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.25);
}

.empleado-panel-page .profile-body .copy-target:hover {
  color: #002a80 !important;
  background: #99c7ff !important;
  transform: translateY(-1px);
}

.empleado-panel-page .profile-body .copy-target--phone:hover {
  color: #064e24 !important;
  background: #86efac !important;
}

.empleado-panel-page .profile-body .copy-target:active,
.empleado-panel-page .profile-body .copy-target.is-copied {
  color: #fff !important;
  background: #0066ff !important;
  border-color: #0047b3 !important;
  transform: scale(0.98);
}

.empleado-panel-page .profile-body .copy-target--phone:active,
.empleado-panel-page .profile-body .copy-target--phone.is-copied {
  background: #16a34a !important;
  border-color: #14532d !important;
}

.empleado-panel-page .profile-body .copy-target--both-emails {
  color: #5b21b6 !important;
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  text-decoration: none !important;
  font-size: 0.8em !important;
  margin-left: 6px;
  vertical-align: middle;
}

.empleado-panel-page .profile-body .copy-target--both-emails:hover {
  background: #ddd6fe !important;
  color: #4c1d95 !important;
}

.empleado-panel-page .profile-body .copy-target--both-emails:active,
.empleado-panel-page .profile-body .copy-target--both-emails.is-copied {
  background: #7c3aed !important;
  color: #fff !important;
  border-color: #5b21b6 !important;
}

.action-btn--copy-all {
  background: #0066ff !important;
  color: #fff !important;
  border: 2px solid #0047b3 !important;
  font-weight: 700;
}

.action-btn--copy-all:hover {
  background: #0052cc !important;
}

.action-btn--copy-all.action-btn--flash {
  background: #003d99 !important;
  transform: scale(0.97);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.action-btn__icon {
  font-size: 0.95em;
  line-height: 1;
  flex-shrink: 0;
}

.action-btn__label {
  line-height: 1.2;
}

.action-btn:hover {
  background: #e5e7eb;
}

.action-btn--active {
  color: #fff;
  border-color: transparent;
}

.action-btn--buzon.action-btn--active { background: #6b7280; }
.action-btn--caliente.action-btn--active { background: #dc2626; }
.action-btn--desconectado.action-btn--active { background: #d97706; }
.action-btn--numero_erroneo.action-btn--active { background: #7c3aed; }
.action-btn--fallo.action-btn--active { background: #be123c; }
.action-btn--corona.action-btn--active { background: #ca8a04; }
.action-btn--cerro.action-btn--active { background: #0891b2; }
.action-btn--asistente.action-btn--active { background: #4f46e5; }
.action-btn--no_account.action-btn--active { background: #64748b; }

.profile-work-card {
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid #d9e2dd;
}

.profile-work-card--working {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.profile-work-card--action-buzon { border-left: 5px solid #6b7280; }
.profile-work-card--action-caliente { border-left: 5px solid #dc2626; }
.profile-work-card--action-desconectado { border-left: 5px solid #d97706; }
.profile-work-card--action-numero_erroneo { border-left: 5px solid #7c3aed; }
.profile-work-card--action-fallo { border-left: 5px solid #be123c; }
.profile-work-card--action-corona { border-left: 5px solid #ca8a04; }
.profile-work-card--action-cerro { border-left: 5px solid #0891b2; }
.profile-work-card--action-asistente { border-left: 5px solid #4f46e5; }
.profile-work-card--action-no_account { border-left: 5px solid #64748b; }

.working-pill {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
}

.profile-work-zone {
  cursor: pointer;
  border-radius: 8px;
  transition: outline 0.15s;
}

.profile-work-zone:hover {
  outline: 2px dashed #86efac;
  outline-offset: 2px;
}

.profile-work-card--working .profile-work-zone:hover {
  outline-color: #16a34a;
}

.used-action-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.used-filter-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.used-filter-chip:hover {
  background: #f3f4f6;
}

.used-filter-chip--active {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.used-filter-chip--caliente.used-filter-chip--active { background: #dc2626; border-color: #dc2626; }
.used-filter-chip--buzon.used-filter-chip--active { background: #6b7280; border-color: #6b7280; }
.used-filter-chip--desconectado.used-filter-chip--active { background: #d97706; border-color: #d97706; }
.used-filter-chip--numero_erroneo.used-filter-chip--active { background: #7c3aed; border-color: #7c3aed; }
.used-filter-chip--fallo.used-filter-chip--active { background: #be123c; border-color: #be123c; }
.used-filter-chip--corona.used-filter-chip--active { background: #ca8a04; border-color: #ca8a04; }
.used-filter-chip--cerro.used-filter-chip--active { background: #0891b2; border-color: #0891b2; }
.used-filter-chip--asistente.used-filter-chip--active { background: #4f46e5; border-color: #4f46e5; }
.used-filter-chip--no_account.used-filter-chip--active { background: #64748b; border-color: #64748b; }

.used-profile-card {
  margin-bottom: 16px;
}

.used-profile-card--action-buzon { border-left: 5px solid #6b7280; }
.used-profile-card--action-caliente { border-left: 5px solid #dc2626; }
.used-profile-card--action-desconectado { border-left: 5px solid #d97706; }
.used-profile-card--action-numero_erroneo { border-left: 5px solid #7c3aed; }
.used-profile-card--action-fallo { border-left: 5px solid #be123c; }
.used-profile-card--action-corona { border-left: 5px solid #ca8a04; }
.used-profile-card--action-cerro { border-left: 5px solid #0891b2; }
.used-profile-card--action-asistente { border-left: 5px solid #4f46e5; }
.used-profile-card--action-no_account { border-left: 5px solid #64748b; }

.used-profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.used-profile-header h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.used-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.status-badge--used {
  color: #1e3a8a;
  background: #dbeafe;
}

.used-profile-card--action-buzon .status-badge--used { color: #fff; background: #6b7280; }
.used-profile-card--action-caliente .status-badge--used { color: #fff; background: #dc2626; }
.used-profile-card--action-desconectado .status-badge--used { color: #fff; background: #d97706; }
.used-profile-card--action-numero_erroneo .status-badge--used { color: #fff; background: #7c3aed; }
.used-profile-card--action-fallo .status-badge--used { color: #fff; background: #be123c; }
.used-profile-card--action-corona .status-badge--used { color: #fff; background: #ca8a04; }
.used-profile-card--action-cerro .status-badge--used { color: #fff; background: #0891b2; }
.used-profile-card--action-asistente .status-badge--used { color: #fff; background: #4f46e5; }
.used-profile-card--action-no_account .status-badge--used { color: #fff; background: #64748b; }

.used-profile-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.used-profile-body {
  max-height: 320px;
}

.used-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-badge--original {
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.status-badge--followup {
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.used-profile-card--followup-buzon .status-badge--followup { color: #fff; background: #6b7280; border-color: #6b7280; }
.used-profile-card--followup-caliente .status-badge--followup { color: #fff; background: #dc2626; border-color: #dc2626; }
.used-profile-card--followup-desconectado .status-badge--followup { color: #fff; background: #d97706; border-color: #d97706; }
.used-profile-card--followup-numero_erroneo .status-badge--followup { color: #fff; background: #7c3aed; border-color: #7c3aed; }
.used-profile-card--followup-fallo .status-badge--followup { color: #fff; background: #be123c; border-color: #be123c; }
.used-profile-card--followup-corona .status-badge--followup { color: #fff; background: #ca8a04; border-color: #ca8a04; }
.used-profile-card--followup-cerro .status-badge--followup { color: #fff; background: #0891b2; border-color: #0891b2; }
.used-profile-card--followup-asistente .status-badge--followup { color: #fff; background: #4f46e5; border-color: #4f46e5; }
.used-profile-card--followup-no_account .status-badge--followup { color: #fff; background: #64748b; border-color: #64748b; }

.used-profile-followup {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.used-profile-followup__title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.empleado-usados-page .used-profile-followup .profile-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.empleado-intro-card {
  padding-bottom: 18px;
}

.empleado-intro-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.empleado-intro-head h1 {
  margin-bottom: 6px;
}

.btn-archive-all {
  background: #7c2d12;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(124, 45, 18, 0.25);
}

.btn-archive-all:hover:not(:disabled) {
  background: #9a3412;
}

.btn-archive-all:disabled {
  opacity: 0.65;
  cursor: wait;
}

.empleado-archive-hint {
  margin: 12px 0 0;
  max-width: 52rem;
}

.empleado-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-view-used {
  display: inline-block;
  text-decoration: none;
  background: #1d4ed8 !important;
  color: #fff !important;
  border: 2px solid #1e40af !important;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-view-used:hover {
  background: #1e40af !important;
}

.topnav .btn-view-used {
  padding: 10px 14px;
  font-size: 0.82rem;
}

/* —— Portal móvil (calle) —— */
.movil-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ecfdf5 0%, #f3f4f6 28%, #f9fafb 100%);
  color: #111827;
}

.movil-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: #14532d;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.movil-topbar__brand {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.movil-topbar__sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

.movil-topbar__actions {
  display: flex;
  gap: 8px;
}

.movil-topbar .btn-secondary {
  padding: 8px 12px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.movil-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 12px 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.movil-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.movil-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.movil-pool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.movil-pool-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.movil-pool-chip--afterpay {
  background: #fffbf5;
  border-color: #fed7aa;
}

.movil-pool-chip--boot {
  background: #f8f9ff;
  border-color: #c7d2fe;
}

.movil-pool-chip--shoppay {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.movil-pool-chip strong {
  font-size: 1.6rem;
  line-height: 1.1;
  color: #14532d;
}

.movil-assign-form {
  display: grid;
  gap: 12px;
}

.movil-assign-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.movil-assign-form input,
.movil-assign-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

.movil-source-toggle {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.movil-source-toggle legend {
  padding: 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.movil-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.movil-qty-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.movil-qty-btn {
  padding: 10px 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.movil-assign-submit {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: #166534;
  color: #fff;
  cursor: pointer;
}

.movil-assign-submit:active {
  background: #14532d;
}

.movil-employee-list {
  display: grid;
  gap: 12px;
}

.movil-employee {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.movil-employee--inactive {
  opacity: 0.7;
}

.movil-employee__head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.movil-employee-source {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.movil-employee-source--afterpay {
  border-color: #fed7aa;
  background: #fffbf5;
}

.movil-employee-source--boot {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.movil-employee-source--shoppay {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.movil-employee-source__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.movil-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.movil-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movil-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.movil-action-chip strong {
  font-size: 0.8rem;
}

.movil-login-page .card {
  max-width: 380px;
}

.movil-page .alert,
.movil-page .alert-success {
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .movil-main {
    padding-top: 20px;
  }
}

/* —— Monitor móvil: presencia en vivo —— */
.movil-monitor-page .movil-employee__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.movil-employee__user {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.movil-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.movil-summary__chip {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.movil-summary__chip strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

.movil-summary__chip span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6b7280;
}

.movil-summary__chip--online {
  background: #dcfce7;
  border-color: #86efac;
}

.movil-summary__chip--online strong {
  color: #166534;
}

.movil-summary__chip--idle {
  background: #fef9c3;
  border-color: #fde047;
}

.movil-summary__chip--idle strong {
  color: #a16207;
}

.movil-summary__chip--offline {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.movil-summary__chip--offline strong {
  color: #4b5563;
}

.movil-presence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.movil-presence-grid__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  margin-bottom: 2px;
}

.movil-presence-grid strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.movil-presence-grid__full {
  grid-column: 1 / -1;
}

.movil-presence-grid__action {
  color: #1d4ed8 !important;
}

.movil-employee--online {
  border-color: #86efac;
  background: #f0fdf4;
}

.movil-employee--idle {
  border-color: #fde047;
  background: #fefce8;
}

.movil-employee--away {
  border-color: #fdba74;
  background: #fff7ed;
}

.movil-employee--offline {
  border-color: #e5e7eb;
}

.movil-panel-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 999px;
}

.movil-employee-source--latinos {
  border-color: #fed7aa;
  background: #fffbf5;
}

.movil-employee-source--latinos_m {
  border-color: #fdba74;
  background: #fff7ed;
}

.movil-employee-source--gringos {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.movil-employee-source--gringos_m {
  border-color: #a5b4fc;
  background: #eef2ff;
}

.movil-employee-source__head {
  flex-wrap: wrap;
}

.movil-login-page .subtitle {
  margin-bottom: 18px;
}


