/* Shared action buttons + status badges — use across all admin screens */

.actionBtn {
  border-radius: var(--btn-radius);
  font-family: var(--brand-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  min-width: 76px;
  height: var(--btn-height);
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease,
    opacity 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
  box-shadow: var(--btn-shadow);
}

.actionBtn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

.actionBtn:active:not(:disabled) {
  opacity: 1;
  transform: translateY(0);
  box-shadow: var(--btn-shadow);
}

.actionBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Destructive — outlined red (canonical Delete) */
.danger {
  border: 1px solid var(--status-danger-border);
  background: #fff;
  color: var(--status-danger);
}

.danger:hover:not(:disabled) {
  background: var(--status-danger-bg);
  border-color: var(--status-danger);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.2);
}

.dangerMuted {
  border: 1px dashed var(--status-danger-border);
  background: #fff;
  color: var(--status-danger);
  min-width: 118px;
  font-size: 12px;
  opacity: 0.95;
  filter: grayscale(0.12);
}

.dangerMuted:hover:not(:disabled) {
  background: var(--status-danger-bg);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.16);
}

/* Active status toggle */
.success {
  border: 1px solid var(--status-success);
  background: var(--status-success-bg);
  color: var(--status-success);
}

.success:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
}

/* Inactive / deactivate toggle — not the same as Delete */
.warning {
  border: 1px solid var(--status-warning);
  background: var(--status-warning-bg);
  color: #9a3412;
}

.warning:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.22);
}

.primary {
  border: 1px solid var(--brand-primary-deep);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 3px 8px rgba(29, 66, 138, 0.22);
}

.primary:hover:not(:disabled) {
  box-shadow: 0 6px 14px rgba(29, 66, 138, 0.3);
}

.primaryOutline {
  border: 1px solid var(--brand-primary);
  background: #fff;
  color: var(--brand-primary);
}

.primaryOutline:hover:not(:disabled) {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(29, 66, 138, 0.18);
}

.ghost {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}

.ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Filled solid variants — same radius + shared lift animation */
.pillDanger {
  min-width: 92px;
  border: 1px solid #b82318;
  background: linear-gradient(180deg, #e85a4f 0%, #da291c 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(218, 41, 28, 0.28);
}

.pillDanger:hover:not(:disabled) {
  box-shadow: 0 6px 14px rgba(218, 41, 28, 0.36);
}

.pillSuccess {
  min-width: 96px;
  border: 1px solid #15803d;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.pillSuccess:hover:not(:disabled) {
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.32);
}

.pillPrimary {
  min-width: 110px;
  border: 1px solid var(--brand-primary-deep);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 3px 8px rgba(29, 66, 138, 0.22);
}

.pillPrimary:hover:not(:disabled) {
  box-shadow: 0 6px 14px rgba(29, 66, 138, 0.3);
}

.pillPrimaryOutline {
  min-width: 96px;
  border: 1px solid var(--brand-primary);
  background: #fff;
  color: var(--brand-primary);
}

.pillPrimaryOutline:hover:not(:disabled) {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(29, 66, 138, 0.18);
}

/* Status badges stay pill-shaped (labels, not buttons) */
.statusBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--brand-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 100%;
}

.statusStack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 4px 0;
  box-sizing: border-box;
}

.scheduleCell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 100%;
  padding: 4px 0;
  box-sizing: border-box;
  font-family: var(--brand-font);
}

.schedulePrimary {
  font-size: 13px;
  font-weight: 500;
  color: #171717;
  line-height: 1.25;
}

.scheduleSecondary {
  font-size: 12px;
  font-weight: 400;
  color: #968c83;
  line-height: 1.25;
}

.tone_success {
  color: var(--status-success);
  background: var(--status-success-bg);
  border-color: rgba(22, 163, 74, 0.28);
}

.tone_warning {
  color: #9a3412;
  background: var(--status-warning-bg);
  border-color: rgba(217, 119, 6, 0.3);
}

.tone_info {
  color: var(--status-info);
  background: var(--status-info-bg);
  border-color: rgba(29, 66, 138, 0.28);
}

.tone_danger {
  color: var(--status-danger);
  background: var(--status-danger-bg);
  border-color: rgba(218, 41, 28, 0.28);
}

.tone_neutral {
  color: #475569;
  background: var(--status-neutral-bg);
  border-color: rgba(148, 140, 131, 0.35);
}

.tone_flagged {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 11px;
}

.tableActionCell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 6px 8px;
  box-sizing: border-box;
}

.rowActionsTrigger {
  color: var(--brand-primary, #1d428a) !important;
  border: 1px solid rgba(29, 66, 138, 0.2) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  width: 34px !important;
  height: 34px !important;
}

.rowActionsTrigger:hover {
  background: rgba(29, 66, 138, 0.08) !important;
}

.rowActionsMenu {
  min-width: 180px;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(29, 66, 138, 0.16) !important;
  border: 1px solid rgba(29, 66, 138, 0.12);
}

.rowActionsMenu :global(.MuiMenuItem-root) {
  font-family: var(--brand-font);
  font-size: 14px;
  min-height: 40px;
}

.rowActionDanger {
  color: var(--status-danger, #da291c) !important;
}

.rowActionSuccess {
  color: var(--status-success, #16a34a) !important;
}

.rowActionWarning {
  color: #b45309 !important;
}
