/* ProcessPro new-design tokens used by Sentinel. */
:root {
  --navy: #061b56;
  --navy-2: #0a2b79;
  --blue: #0b56d6;
  --green: #53c90a;
  --green-dark: #45b006;
  --green-soft: #eef9e9;
  --text: #09214a;
  --muted: #68758a;
  --line: #dfe5ee;
  --line-soft: #edf1f5;
  --panel: #ffffff;
  --soft: #f7f9fc;
  --page: #f2f5f9;
  --danger: #d84b56;
  --amber: #e6a52e;
  --purple: #7659cb;
  --shadow: 0 8px 24px rgba(15, 35, 80, .10);
  --radius: .7rem;
  --app-panel: #ffffff;
  --app-soft: #f7f9fc;
  --app-text: #09214a;
  --app-muted: #68758a;
  --app-line: #dfe5ee;
  --background: #ffffff;
  --foreground: #09214a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, select, textarea, input { font: inherit; }
.pp-button {
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  color: var(--app-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.pp-button:hover { background: var(--app-soft); }
.pp-button-primary {
  border-color: #4bb909;
  background: linear-gradient(#5bd512, #47b908);
  color: #fff;
}
.pp-button-primary:hover { background: linear-gradient(#67e21b, #4fc50a); color: #fff; }
.pp-button:disabled, .pp-button.is-busy {
  opacity: .62;
  cursor: wait;
  pointer-events: none;
}
.pp-button-danger {
  border-color: #f2c7cb;
  background: #fff3f4;
  color: #b53b46;
}
.pp-field { display: grid; gap: 6px; }
.pp-field > span { color: #52677e; font-size: 12px; font-weight: 800; }
.pp-field input, .pp-field textarea, .pp-field select {
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--app-text);
  font-size: 13px;
}
.pp-field textarea { min-height: 280px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.pp-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-instance-tag {
  min-height: 27px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf6e8;
  color: #4b842f;
  font-size: 11px;
  font-weight: 800;
}
.pp-chart { width: 100%; height: 240px; }
.pp-chart-wrap { padding: 16px; }
.pp-pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 10px;
  background: #0f1b33;
  color: #d7e4f5;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.pp-link { color: #0b56d6; font-weight: 800; }
.pp-error-table td { white-space: normal; }
.pp-month-select { min-width: 180px; }
.pp-spinner {
  width: 15px;
  height: 15px;
  display: none;
  animation: pp-spin .7s linear infinite;
}
.pp-button.is-busy .pp-spinner { display: block; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-toaster {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.pp-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 10px;
  padding: 12px 12px 12px 13px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: #fff;
  color: var(--app-text);
  box-shadow: 0 10px 30px rgba(15, 35, 80, .14);
  animation: pp-toast-in .18s ease;
}
.pp-toast > svg { width: 18px; height: 18px; margin-top: 1px; }
.pp-toast p { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-toast strong { font-size: 13px; font-weight: 800; line-height: 1.3; }
.pp-toast small { color: var(--app-muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
.pp-toast button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--app-muted);
  cursor: pointer;
}
.pp-toast button:hover { background: var(--app-soft); color: var(--app-text); }
.pp-toast.success { background: #ecfdf3; border-color: #aaefc6; }
.pp-toast.success > svg { color: #079455; }
.pp-toast.success strong { color: #067647; }
.pp-toast.error { background: #fef3f2; border-color: #fecdca; }
.pp-toast.error > svg { color: #d92d20; }
.pp-toast.error strong { color: #b42318; }
.pp-toast.loading, .pp-toast.info { background: #fff; }
.pp-toast.loading > svg, .pp-toast.info > svg { color: #0b56d6; }
.pp-toast.loading > svg { animation: pp-spin .7s linear infinite; }
@keyframes pp-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.pp-error-toolbar {
  flex-wrap: wrap;
  gap: 10px;
}
.pp-error-toolbar .pp-field { min-width: 140px; }
.pp-error-toolbar .pp-row-count { margin-left: 0; }
.pp-sort {
  color: inherit;
  text-decoration: none;
  letter-spacing: inherit;
  text-transform: inherit;
  font: inherit;
}
.pp-sort:hover { color: var(--app-text); }
.pp-sort.active { color: #3f8a20; }
.pp-error-table time { color: var(--app-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
