/* ============================================================
 * apd-content.css — Gerenciador de Conteúdo do Aprova Digital
 * Tema midnight, coerente com css/style.css e css/contextual-flows.css
 * ============================================================ */

.apd-lock {
  margin: 24px auto;
  max-width: 520px;
  padding: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.apd-mgr {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px;
  color: var(--text);
}

/* ---------- cabeçalho ---------- */
.apd-mgr-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.apd-mgr-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.apd-mgr-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
}
.apd-mgr-desc p { margin: 0 0 8px; }
.apd-mgr-desc p:last-child { margin-bottom: 0; }
.apd-mgr-desc strong { color: var(--text); }
.apd-mgr-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- sub-abas ---------- */
.apd-subtabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.apd-subtab {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.apd-subtab:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.apd-subtab.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--border);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.apd-subtab-body { min-height: 280px; }

/* ---------- barra de ferramentas / busca ---------- */
.apd-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 12px;
  flex-wrap: wrap;
}
.apd-search {
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.apd-search:focus { border-color: var(--accent); }
.apd-search::placeholder { color: var(--text-secondary); }
.apd-count { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.apd-hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.apd-hint strong { color: var(--text-secondary); }

/* ---------- lista de itens ---------- */
.apd-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apd-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.apd-item:hover { border-color: var(--accent); }
.apd-item-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}
.apd-item-main { flex: 1; min-width: 0; }
.apd-item-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.apd-item-sub {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.apd-item-bodyhint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.apd-item-badges { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.apd-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 99px;
  padding: 3px 10px;
}
.apd-badge.is-idle {
  color: var(--text-secondary);
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.3);
}
.apd-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.apd-btn-sm {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.apd-danger { color: #fca5a5 !important; border-color: rgba(248, 113, 113, 0.4) !important; }
.apd-danger:hover { background: rgba(248, 113, 113, 0.12) !important; }

/* ---------- estado vazio ---------- */
.apd-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  background: rgba(15, 29, 56, 0.6);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.apd-empty-icon { font-size: 32px; margin-bottom: 10px; }
.apd-empty p { margin: 6px 0; font-size: 13px; }
.apd-empty-sub { color: var(--text-secondary); font-size: 12px; }
.apd-empty code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}

/* ---------- editor (modal overlay) ---------- */
.apd-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 9, 20, 0.8);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.apd-editor {
  width: min(640px, 100%);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.apd-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.apd-editor-head h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}
.apd-editor-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.apd-field { display: flex; flex-direction: column; gap: 6px; }
.apd-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.apd-required { color: #f87171; font-style: normal; }
.apd-field-note { font-weight: 400; color: var(--text-secondary); }
.apd-field input[type="text"],
.apd-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.apd-field input[type="text"]:focus,
.apd-field textarea:focus { border-color: var(--accent); }
.apd-preview-wrap {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(11, 23, 48, 0.6);
}
.apd-preview-wrap > summary.apd-preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  user-select: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.apd-preview-wrap > summary.apd-preview-label::-webkit-details-marker { display: none; }
.apd-preview-wrap > summary.apd-preview-label::before {
  content: '▸';
  font-size: 12px;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform 0.15s ease;
}
.apd-preview-wrap[open] > summary.apd-preview-label::before { transform: rotate(90deg); }
.apd-preview-wrap[open] > summary.apd-preview-label { margin-bottom: 8px; }
.apd-preview { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.apd-preview p { margin: 0 0 8px; }
.apd-preview ul { margin: 0 0 8px; padding-left: 20px; }
.apd-preview-empty { color: var(--text-secondary); }
.apd-editor-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ---------- designações ---------- */
.apd-assign {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 16px;
  align-items: start;
}
.apd-assign-procs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.apd-proc {
  appearance: none;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.apd-proc:hover { border-color: var(--accent); }
.apd-proc.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 0 1px var(--accent);
}
.apd-proc-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.apd-proc-count {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}
.apd-assign-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.apd-assign-proc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.45;
}
.apd-assign-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.apd-assign-col-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.apd-assigned-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}
.apd-assigned {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.apd-ord {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #041021;
  background: #38bdf8;
  border-radius: 50%;
}
.apd-assigned-title {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.4;
}
.apd-assigned-btns { display: flex; gap: 2px; flex-shrink: 0; }
.apd-move {
  appearance: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.apd-move:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.apd-move:disabled { opacity: 0.25; cursor: default; }
.apd-move.apd-remove:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.apd-assigned-empty {
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  padding: 18px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.apd-add-row {
  display: flex;
  gap: 8px;
}
.apd-add-select {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  padding: 8px 10px;
  outline: none;
}
.apd-add-select:focus { border-color: var(--accent); }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .apd-assign { grid-template-columns: 1fr; }
  .apd-assign-procs { max-height: 220px; }
  .apd-assign-cols { grid-template-columns: 1fr; }
}

/* ---------- Botões do editor (modal) ---------- */
.apd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text);
  font: 600 13.5px/1 'Inter', sans-serif;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.apd-btn:hover { border-color: var(--accent); }
.apd-btn:active { transform: translateY(1px); }
.apd-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.apd-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.apd-btn.ghost { background: transparent; }
.apd-btn.ghost:hover { background: var(--surface2); }
.apd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.apd-icon-btn:hover { background: var(--surface2); color: var(--text); }

/* ---------- Ações e auxiliares dos modais ---------- */
.apd-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.apd-modal-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.apd-form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, #ef4444 12%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 40%, transparent);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
}
[data-theme="light"] .apd-form-error { color: #b91c1c; }
.apd-field input[type="password"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.apd-field input[type="password"]:focus { border-color: var(--accent); }
.apd-field small { font-weight: 500; color: var(--text-secondary); text-transform: none; letter-spacing: 0; }

/* ============================================================
   Gestão de fluxos (Governança → Fluxos)
   ============================================================ */
/* Vinculação por checkboxes no editor de itens */
.apd-proc-field {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
}
.apd-proc-field > legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 0 6px;
}
.apd-proc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.apd-proc-count {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.apd-proc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.apd-proc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.apd-proc-check:hover { background: var(--surface2); }
/* Vínculo a múltiplos assuntos (nativo, 14/10/2026): caixas de seleção no
   editor de modelos — E-mail, Cotas do SEI e Meus Scriptz. */
.ctx-subjects {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 0;
}
.ctx-subjects > legend {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  padding: 0 6px;
}
.ctx-subject-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}
.ctx-subject-bulk {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.apd-proc-check input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex: none;
  cursor: pointer;
}

/* Modelos por categoria (E-mail / Cotas do SEI) */
.flow-models-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.flow-models-cat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.flow-models-cat-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   Editor de texto rico (toolbar de formatação + links)
   ============================================================ */
.rte {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.rte-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px 8px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.rte-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.rte-btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--border); }
.rte-btn:active { transform: translateY(1px); }
/* Formato ativo no cursor/seleção: indicativo claro e estável. */
.rte-btn.on {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.rte-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
  flex: none;
}
.rte-linkbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.rte-linkbar[hidden] { display: none; }
.rte-link-input {
  flex: 1;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.rte-link-input:focus { border-color: var(--accent); }
.rte-btn-sm { min-height: 32px; padding: 4px 12px; font-size: 12.5px; }
.rte-area {
  min-height: 180px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  word-break: break-word;
}
.rte-area:empty::before {
  content: attr(data-placeholder);
  color: var(--text-secondary);
  opacity: 0.75;
  pointer-events: none;
}
.rte-area a { color: var(--accent); text-decoration: underline; }
.rte-area ul, .rte-area ol { margin: 6px 0; padding-left: 24px; }
.rte-area p { margin: 6px 0; }

/* Visão "Por procedimento" da biblioteca (13/10/2026): alternador + grupos. */
.apd-viewrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 12px;
  flex-wrap: wrap;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.view-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  padding: 7px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.view-toggle button.on {
  background: var(--accent);
  color: #fff;
}
.apd-viewhint {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.proc-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.proc-group > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
}
.proc-group > summary::-webkit-details-marker { display: none; }
.proc-group > summary:hover { background: var(--surface); }
.proc-group .apd-items-list { padding: 8px 12px 12px; }
.apd-item-actions-grouped {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Painel por fluxo (B) ---------- */
.gov-flow-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.gov-flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.gov-flow-card:not(.is-static):hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.gov-flow-card.is-static {
  cursor: default;
}
.gov-flow-card.has-warn {
  border-color: #fdba74;
}
.gov-flow-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}
.gov-flow-card-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.gov-flow-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.gov-flow-card-warn {
  font-size: 12px;
  color: #c2410c;
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- Cabeçalhos recolhíveis ---------- */
.flow-models-cat {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.flow-models-cat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
}
.flow-models-cat-bar .flow-models-cat-head {
  flex: 1;
}
.flow-models-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: left;
}
.flow-models-cat-head:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.flow-models-cat-arrow {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.flow-models-cat-title {
  font-weight: 600;
  flex: 1;
}
.flow-models-cat .apd-items-list {
  padding: 0 14px 14px;
}

/* ---------- Select do filtro ---------- */
.apd-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  cursor: pointer;
}
.apd-viewhint {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin: -6px 0 12px;
}
