/* cert-discovery.css — Certificate discovery services (/cert-discovery).
   The services list uses the sitewide table kit (table-kit.css owns the card,
   toolbar, table chrome and pagination); this file adds the create wizard
   (centered modal + stepper), target mini-table compact styling, status pills
   and the .ci-modal detail drawer extras. */

/* List cells */
.disc-svc-name { font-weight: 600; color: var(--ink); }
.disc-ports, .disc-sched { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.disc-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 0.7rem/1.3 var(--sans); border: 1px solid transparent; }
.disc-pill-active { color: var(--ink-2); background: var(--surface-2); border-color: var(--line-2); }
.disc-pill-paused { color: var(--ink-4); background: var(--surface-2); }
.disc-pill-error  { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.disc-pill-ok     { color: var(--ok, #0E9F6E); background: color-mix(in srgb, var(--ok, #0E9F6E) 12%, transparent); }
.disc-muted { color: var(--ink-4); }

/* Create wizard — centered modal */
.disc-wiz { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; }
.disc-wiz-backdrop { position: fixed; inset: 0; background: rgba(15,20,30,0.45); }
.disc-wiz-panel { position: relative; z-index: 1; width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.25); max-height: 88vh; overflow-y: auto; }
.disc-wiz-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 12px; }
.disc-wiz-head h2 { margin: 0; font-size: 1.15rem; }
.disc-wiz-sub { margin: 2px 0 0; color: var(--ink-4); font-size: 0.85rem; }

/* Stepper */
.disc-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0 22px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.disc-steps li { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-4); padding: 4px 8px; }
.disc-steps li .disc-step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); font-size: 0.72rem; font-weight: 600; }
.disc-steps li.on { color: var(--ink); font-weight: 600; }
.disc-steps li.on .disc-step-n { background: var(--accent-1, #2563eb); color: #fff; }
.disc-steps li.done .disc-step-n { background: var(--ok, #0E9F6E); color: #fff; }

/* Wizard body */
#disc-wiz-body { padding: 20px 22px 22px; }
.disc-field { margin-bottom: 16px; }
.disc-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.disc-field .disc-hint { font-size: 0.78rem; color: var(--ink-4); margin: 4px 0 0; }
.disc-input, .disc-select { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-1); color: var(--ink); font: inherit; }
.disc-input:focus, .disc-select:focus { outline: none; border-color: var(--accent-line, var(--line-3)); }
.disc-row { display: flex; gap: 10px; }
.disc-row .disc-input { flex: 1; }
.disc-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.disc-actions .disc-spacer { margin-left: auto; }
.disc-err { color: var(--danger); font-size: 0.82rem; margin: 8px 0 0; }

/* Targets mini-table (wizard + drawer). Uses .tk-table for base classes but
   keeps its compact styling; loaded after table-kit.css so these same-
   specificity thead th / tbody td selectors win on cascade order. */
.disc-targets { width: 100%; border-collapse: collapse; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 0.86rem; }
.disc-targets thead th { text-align: left; padding: 8px 12px; background: var(--surface-2); color: var(--ink-3); font: 600 0.66rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: none; }
.disc-targets tbody td { padding: 8px 12px; border-top: 1px solid var(--line); border-bottom: none; color: var(--ink-2); font-size: 0.86rem; }
.disc-targets .disc-t-name { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); }
.disc-t-del { background: none; border: none; color: var(--ink-4); cursor: pointer; font-size: 1rem; line-height: 1; }
.disc-t-del:hover { color: var(--danger); }

/* Drawer tabs */
.disc-drawer-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 16px; }
.disc-drawer-tab { padding: 8px 12px; font-size: 0.86rem; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.disc-drawer-tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent-1, #2563eb); }
.disc-meta-grid { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; font-size: 0.86rem; margin-bottom: 16px; }
.disc-meta-grid dt { color: var(--ink-3); }
.disc-meta-grid dd { margin: 0; color: var(--ink-2); }
