/* Platform-admin shares the Pfotenkur brand system end-to-end. Its distinct
   "you're in operator territory" cue is the INK top bar (§01: a dark --pk-ink
   bar with a green level label — see the ui::TopBar `ink` variant), NOT a
   separate body palette. So the body no longer pins slate/amber; it inherits
   the brand teal/green like the product portals (amber stays only as the
   semantic warning colour). Only admin-only components live below. */

.code-token { word-break: break-all; }

/* Standalone search box (not in a <form>) — mirrors the shared
   form-input look from web.css. */
/* Field look (border/bg/focus/placeholder) comes from the central §A1 rule in
   web.css; this only adds the search box's layout. Top margin so it doesn't
   cling to the "new practice" button above it. */
.admin-search { width: 100%; margin: 1rem 0; }
.admin-search.no-margin { margin: 0; }

/* The platform-admin nav now uses the shared ink TopBar (ui::TopBar `ink`
   variant) — its bar, brand lockup, nav buttons and LocalePicker are styled
   in crates/ui/style/web.css, so no bespoke nav styling lives here anymore. */

/* Horizontal-scroll wrapper so wide tables stay within their card on
   narrow viewports instead of overflowing the widget boundary. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-scroll .job-table {
    min-width: 40rem;
}

/* ===== Jobs table ===== */
.job-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.job-table th,
.job-table td {
    text-align: left;
    padding: 0.4rem 0.5rem;
}
.job-table tbody tr {
    border-top: 1px solid var(--border);
}

.job-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--pk-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}
.job-status-succeeded { background: var(--pk-pill-ok-bg);      color: var(--pk-pill-ok-text); }
.job-status-failed    { background: var(--pk-pill-danger-bg);  color: var(--pk-pill-danger-text); }
.job-status-running   { background: var(--pk-pill-warn-bg);    color: var(--pk-pill-warn-text); }
.job-status-queued    { background: var(--pk-pill-neutral-bg); color: var(--pk-pill-neutral-text); }
/* §02: 6px colour dot (matching the pill text) instead of mono-caps. */
.job-status::before,
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* ===== Job-detail page ===== */
.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}
.kv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.kv-table th,
.kv-table td {
    padding: 0.3rem 0.5rem;
    text-align: left;
}
.kv-table th {
    width: 12rem;
    color: var(--muted);
    font-weight: 500;
}
.job-detail-payload {
    white-space: pre-wrap;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85rem;
    margin: 0;
}

/* Rollen-Pille in der Konten-Liste (Admin/Master) — war nie definiert,
   die Badges renderten als nackter Text. */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--pk-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--pk-accent-soft);
    color: var(--pk-accent-deep);
}
