.admin-topbar .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-button.is-active,
.admin-button.admin-button-dark.is-active {
  background-color: #1f2937;
  color: #ffffff;
}

.admin-employees-week-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-employee-week {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.94rem;
}

.admin-employee-item {
  margin-bottom: 1rem;
}

/* Small icon button for Nuevo empleado */
.small-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #8cc63f, #6ea82b);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(110, 168, 43, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.small-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(110, 168, 43, 0.28);
}
.small-icon-btn:focus-visible {
  outline: 3px solid rgba(140, 198, 63, 0.65);
  outline-offset: 3px;
}
.small-icon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.small-icon-btn .btn-icon svg {
  width: 16px;
  height: 16px;
}
.small-icon-btn .btn-text {
  line-height: 1;
}

.employees-page .admin-action-button,
.employees-page .admin-button,
.employees-page .auth-cta {
  cursor: pointer;
}

.employees-page .admin-action-button:hover,
.employees-page .admin-button:hover,
.employees-page .auth-cta:hover {
  transform: translateY(-1px);
}

.employees-page .admin-action-button:disabled,
.employees-page .admin-button:disabled,
.employees-page .auth-cta:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.employees-page .admin-action-primary {
  background: linear-gradient(135deg, #8cc63f, #72ad2d);
  border-color: rgba(114, 173, 45, 0.75);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(114, 173, 45, 0.18);
}

.employees-page .admin-action-light {
  background: #ffffff;
  border-color: rgba(11, 42, 107, 0.14);
  color: #0b2a6b;
}

.employees-page .admin-action-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-employees-tools {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr auto;
  padding: 0.95rem;
  border: 1px solid rgba(11, 42, 107, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.88);
}

.admin-search-box {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 480px;
}

.admin-search-box input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border: 1px solid rgba(11, 42, 107, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #0b2a6b;
  font-size: 0.96rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-search-box input:focus {
  border-color: #8cc63f;
  box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.12);
}

.admin-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  font-size: 1rem;
}

.admin-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
}

.admin-filter-chip,
.admin-employee-filter-chip {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(11, 42, 107, 0.12);
  background: #fff;
  color: #0b2a6b;
  border-radius: 999px;
  font-size: 0.88rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-filter-chip:hover,
.admin-filter-chip.is-active,
.admin-employee-filter-chip:hover,
.admin-employee-filter-chip.is-active {
  transform: translateY(-1px);
  background: rgba(140, 198, 63, 0.14);
  border-color: rgba(140, 198, 63, 0.3);
}

.admin-employees-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.summary-card {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 42, 107, 0.07);
  border: 1px solid rgba(11, 42, 107, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 198, 63, 0.28);
  box-shadow: 0 18px 34px rgba(11, 42, 107, 0.09);
}

.summary-card span {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
}

.summary-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.55rem;
  color: #0b2a6b;
}

.admin-table-panel {
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 42, 107, 0.1);
  box-shadow: 0 18px 42px rgba(11, 42, 107, 0.06);
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-employees-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-employees-table th,
.admin-employees-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(11, 42, 107, 0.08);
  vertical-align: middle;
}

.admin-employees-table thead th {
  color: #0b2a6b;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-employees-table tbody tr {
  transition: background 180ms ease;
}

.admin-employees-table tbody tr:hover {
  background: rgba(140, 198, 63, 0.05);
}

.admin-employees-table td {
  color: #334155;
  font-size: 0.95rem;
}

.admin-employee-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-employee-actions-cell button {
  min-width: 110px;
}

.employees-page .admin-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.58rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(11, 42, 107, 0.14);
  background: #ffffff;
  color: #0b2a6b;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(11, 42, 107, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.employees-page .admin-action-button:hover {
  border-color: rgba(140, 198, 63, 0.42);
  box-shadow: 0 12px 24px rgba(11, 42, 107, 0.1);
}

.employees-page .admin-orders-header {
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(11, 42, 107, 0.08);
}

.employees-page .admin-employees-card {
  border: 1px solid rgba(11, 42, 107, 0.08);
  box-shadow: 0 20px 54px rgba(11, 42, 107, 0.07);
}

.employees-page .progress-wrap {
  height: 12px;
  border-radius: 999px;
  background: rgba(11, 42, 107, 0.08);
  overflow: hidden;
}

.employees-page .progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cc63f, #0b2a6b);
}

.employees-page .progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  color: #475569;
  font-weight: 800;
  font-size: 0.9rem;
}

.admin-badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.admin-badge-muted {
  background: rgba(107, 114, 128, 0.12);
  color: #374151;
}

.admin-badge-admin {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.admin-badge-empleado {
  background: rgba(14, 165, 233, 0.12);
  color: #0c4a6e;
}

.admin-empty-state {
  padding: 2rem;
  color: #475569;
  text-align: center;
  font-size: 0.97rem;
}

.admin-panel-copy {
  margin-top: 0.35rem;
  color: #475569;
  max-width: 620px;
}

@media (max-width: 860px) {
  .admin-employees-tools {
    grid-template-columns: 1fr;
  }

  .admin-filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-employees-table {
    min-width: 620px;
  }
}
