.process-management-launcher {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(228, 30, 38, 0.92), rgba(145, 18, 28, 0.92));
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-management-launcher.is-visible {
  display: inline-flex;
}

.process-management-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
}

.process-management-launcher__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
}

.process-management-launcher__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.process-management-launcher__title {
  font-size: 14px;
  font-weight: 700;
}

.process-management-launcher__subtitle {
  font-size: 11px;
  opacity: 0.84;
}

.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  background: rgba(5, 10, 18, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pm-overlay.is-open {
  display: block;
}

.pm-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(1440px, calc(100vw - 40px));
  height: min(88vh, 920px);
  z-index: 1002;
  display: none;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(228, 30, 38, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(8, 145, 178, 0.16), transparent 28%),
    rgba(248, 250, 252, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.pm-modal.is-open {
  display: block;
  animation: pmModalIn 0.22s ease forwards;
}

@keyframes pmModalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pm-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pm-header {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px 16px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0.98));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pm-header h2 {
  font-size: 28px;
  color: #0f172a;
  margin-bottom: 6px;
}

.pm-header p {
  color: #475569;
  font-size: 14px;
}

.pm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-badge {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 13px;
}

.pm-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.pm-btn {
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-btn:hover {
  transform: translateY(-1px);
}

.pm-btn--soft {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.pm-btn--brand {
  background: linear-gradient(135deg, #e41e26, #b5121c);
  color: #fff;
  box-shadow: 0 12px 28px rgba(228, 30, 38, 0.26);
}

.pm-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
}

.pm-meta-row {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px 12px;
  background: rgba(248, 250, 252, 0.98);
  color: #64748b;
  font-size: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pm-meta-row strong {
  color: #0f172a;
}

.pm-meta-row #pm-status-text {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 18px;
}

.pm-meta-row #pm-status-text.is-loading {
  color: #0f766e;
}

.pm-loading-inline,
.pm-loading-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pm-loading-state {
  justify-content: center;
  width: 100%;
  min-height: 92px;
  color: #0f766e;
  font-weight: 700;
}

.pm-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 118, 110, 0.16);
  border-top-color: #0f766e;
  border-radius: 999px;
  animation: pmSpin 0.8s linear infinite;
}

@keyframes pmSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pm-table-wrap {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 0 18px 20px;
  background: rgba(248, 250, 252, 1);
}

.pm-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: fixed;
}

.pm-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  background: rgba(248, 250, 252, 1);
  box-shadow: 0 10px 18px rgba(241, 245, 249, 0.96);
  white-space: normal;
}

.pm-table thead th.pm-action-header {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 96px;
  min-width: 96px;
  text-align: center;
}

.pm-table tbody td {
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.92);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.pm-loading-cell {
  padding: 0;
  text-align: center;
}

.pm-table tbody td:first-child {
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.pm-table tbody td:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.pm-alt-input {
  width: 100%;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  outline: none;
}

.pm-alt-input:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.pm-status-cell {
  position: relative;
}

.pm-status-chip {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pm-status-chip:hover,
.pm-status-cell.is-open .pm-status-chip {
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.pm-status-cell.is-yes .pm-status-chip {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.08));
  color: #047857;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.1);
}

.pm-status-caret {
  font-size: 11px;
  opacity: 0.7;
}

.pm-status-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  min-width: 124px;
  padding: 8px;
  display: grid;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pm-status-cell.is-open .pm-status-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pm-status-option {
  min-height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pm-status-option.is-active {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.pm-row-action {
  min-height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  font-weight: 700;
  cursor: pointer;
}

.pm-action-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  text-align: center;
  vertical-align: middle;
  min-width: 96px;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: -10px 0 18px rgba(241, 245, 249, 0.96);
}

.pm-footnote {
  padding: 0 28px 20px;
  color: #64748b;
  font-size: 12px;
}

.pm-footnote strong {
  color: #0f172a;
}

@media (max-width: 900px) {
  .pm-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .pm-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-header-actions {
    flex-wrap: wrap;
  }

  .pm-meta-row {
    flex-direction: column;
  }

  .pm-table {
    min-width: 1120px;
    table-layout: auto;
  }
}

@media (max-width: 768px) {
  .process-management-launcher {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }
}
