/* AI-procedure (12/09/2026): paginakop met status, tabs, kaarten, keuzes, intakeprofielen als rijen en een volledige
   bewerkpagina per profiel met een voorbeeldgesprek. site.css maakt elke knop wit: de kleuren van eigen knoppen staan
   hier expliciet. */
.aip { display: flex; flex-direction: column; gap: 16px; }
/* Het intakeblok blijft op zijn plaats en wordt per tab verborgen: [hidden] moet winnen van display:flex. */
.aip [hidden] { display: none !important; }
.aip .aip-terug { align-self: flex-start; padding: 0; border: 0; background: none; color: #2563eb; font-family: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.aip-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.aip-kop h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 26px; }
.aip-kop p { margin: 6px 0 0; color: #64748b; font-size: 13.5px; }
.aip-acties { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aip-onopgeslagen { color: #b45309; font-size: 13px; font-weight: 700; }
.aip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.aip-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aip-kleef { position: sticky; top: 16px; }
.aip-kaart { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 22px; border: 1px solid #e3e8f0; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.aip-kaart-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aip-kaart-kop h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.aip-kaart-kop small { color: #64748b; font-size: 12.5px; }
.aip-stap { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12.5px; font-weight: 800; }
.aip-uitleg { margin: 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.aip-label { color: #334155; font-size: 13px; font-weight: 600; }
.aip-velden { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.aip-velden .vol { grid-column: 1 / -1; }
.aip-veld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aip-veld > label { display: flex; justify-content: space-between; gap: 8px; color: #334155; font-size: 13px; font-weight: 600; }
.aip-veld > label small { color: #94a3b8; font-weight: 400; }
.aip input[type=text], .aip select, .aip textarea { width: 100%; min-height: 40px; box-sizing: border-box; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #0f172a; font-family: inherit; font-size: 14px; }
.aip textarea { min-height: 64px; resize: vertical; }
.aip input:disabled, .aip select:disabled, .aip textarea:disabled { background: #f8fafc; color: #64748b; }
.aip-blok { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aip-blok-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aip-blok-kop b, .aip-blok > b { font-size: 14px; }
.aip-scheiding { height: 1px; background: #eef2f7; }

/* Alle / Kiezen en de chips voor kanalen en talen. */
.aip .aip-segment { display: inline-flex; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 10px; }
.aip .aip-segment button { padding: 6px 14px; border: 0; background: #fff; color: #475569; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.aip .aip-segment button.aan { background: #2563eb; color: #fff; }
.aip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aip .aip-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.aip .aip-chip.aan { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.aip .aip-chip.aan::before { content: "✓"; font-weight: 800; }
.aip .aip-chip:disabled { cursor: default; }

/* Schakelaar in een regel. */
.aip-regel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #e3e8f0; border-radius: 12px; cursor: pointer; }
.aip-regel b { display: block; font-size: 14px; }
.aip-regel small { display: block; color: #64748b; font-size: 12.5px; }
.aip-schakel { position: relative; flex: none; width: 36px; height: 21px; }
.aip-schakel input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.aip-schakel span { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; pointer-events: none; transition: background .15s; }
.aip-schakel span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .15s; }
.aip-schakel input:checked + span { background: #2563eb; }
.aip-schakel input:checked + span::after { left: 18px; }
.aip-schakel input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: 2px; }
.aip-schakel input:disabled { cursor: default; }

/* Zekerheid en wat er dan gebeurt. */
.aip-schuif { display: flex; align-items: center; gap: 16px; }
.aip-schuif input[type=range] { flex: 1; margin: 0; accent-color: #2563eb; }
.aip-schuif-waarde { min-width: 110px; color: #1d4ed8; font-weight: 700; text-align: right; }
.aip-schuif-labels { display: flex; justify-content: space-between; padding-right: 126px; color: #94a3b8; font-size: 12px; }
.aip-keuzes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aip .aip-keuze { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; color: #0f172a; font-family: inherit; text-align: left; cursor: pointer; }
.aip .aip-keuze:hover:not(:disabled) { border-color: #93c5fd; }
.aip .aip-keuze.aan { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.aip .aip-keuze:disabled { cursor: default; }
.aip-keuze-icoon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #eef2ff; color: #4338ca; }
.aip-keuze b { display: block; font-size: 13.5px; }
.aip-keuze small { display: block; margin-top: 2px; color: #64748b; font-size: 12px; line-height: 1.35; }

/* Rijen: intakeprofielen, tools en gesprekken. */
.aip-rijen { display: flex; flex-direction: column; gap: 8px; }
.aip-rij { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; }
.aip-rij.uit { background: #f8fafc; }
.aip-rij.uit .aip-rij-tekst { opacity: .6; }
.aip-nr { flex: none; width: 20px; color: #94a3b8; font-size: 13px; font-weight: 700; text-align: center; }
.aip-letter { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: #eef2ff; color: #4338ca; font-size: 17px; font-weight: 800; }
.aip-rij-tekst { flex: 1; min-width: 0; }
.aip-rij-tekst b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.aip-rij-tekst small { display: block; margin-top: 2px; overflow: hidden; color: #64748b; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.aip-knoppen { display: flex; align-items: center; flex: none; }
.aip-onder { margin: 0; color: #64748b; font-size: 12.5px; }
.aip-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; }
.aip-status .v { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 800; }
.aip-status b { display: block; color: #166534; font-size: 14px; }
.aip-status small { display: block; color: #15803d; font-size: 12.5px; }
.aip-status.let-op { border-color: #fde68a; background: #fffbeb; }
.aip-status.let-op .v { background: #f59e0b; }
.aip-status.let-op b { color: #92400e; }
.aip-status.let-op small { color: #b45309; }
.aip-details { border: 1px solid #e3e8f0; border-radius: 10px; }
.aip-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; color: #334155; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.aip-details > summary::-webkit-details-marker { display: none; }
.aip-details > summary small { color: #64748b; font-weight: 400; }
.aip-details > div { padding: 0 12px 8px; }
.aip-lijst-klein > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.aip-lijst-klein > div:last-child { border-bottom: 0; }
.aip-lijst-klein a { color: #2563eb; font-weight: 600; text-decoration: none; }
.aip-lijst-klein small { display: block; color: #64748b; font-size: 11.5px; }
.aip-tijd { color: #64748b; white-space: nowrap; }
.aip-kanaal { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #eef2f7; color: #475569; font-size: 11px; font-weight: 700; }
.aip-link { color: #2563eb; font-size: 13px; font-weight: 600; text-decoration: none; }
.aip-fouten { padding: 10px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 13px; }
.aip-fouten ul { margin: 6px 0 0; padding-left: 18px; }

/* Een intakeprofiel bewerken (12/09/2026): voortgang in de kop, compacte basis, zinnen met Enter, "Test een zin",
   leesbare vraag- en regelrijen die je in de rij bewerkt, fouten bij het veld en een voorbeeld per scenario. */
.aip-voortgang { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.aip-bol { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 12.5px; }
.aip-bol::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.aip-bol.klaar::before { background: #22c55e; }
.aip-bol.rood { color: #b91c1c; }
.aip-bol.rood::before { background: #ef4444; }
.aip-melding { margin: 0; padding: 9px 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1e3a8a; font-size: 13px; }
.aip-kaart.fout { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(239, 68, 68, .08); }
.aip-stap.klaar { background: #22c55e; }
.aip-stap.rood { background: #ef4444; }
.aip-basis { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.aip-schakel-rij { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 25px; padding: 8px 12px; border: 1px solid #e3e8f0; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.aip-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.aip-zin { display: flex; align-items: center; gap: 6px; }
.aip-zin input { flex: 1; }
.aip input.aip-zin-nieuw { border-style: dashed; }
.aip-foutje { display: block; margin-top: 2px; color: #b91c1c; font-size: 12.5px; font-weight: 600; }
.aip-test { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid #e3e8f0; border-radius: 12px; background: #f8fafc; }
.aip-test > b { font-size: 13.5px; }
.aip-test-rij { display: flex; align-items: center; gap: 8px; }
.aip-test-rij input { flex: 1; }
.aip-uitslag { padding: 9px 12px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 13.5px; }
.aip-uitslag.botst { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.aip-leeg { margin: 0; padding: 16px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; font-size: 13px; text-align: center; }
.aip-vraag { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; }
.aip-vraag.als { border-left: 3px solid #f59e0b; }
.aip-vraag.rood, .aip-beslis.rood { border-color: #ef4444; background: #fff7f7; }
.aip-bewerk { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aip-voorwaarde { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aip-voorwaarde > span { color: #92400e; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.aip .aip-voorwaarde select, .aip .aip-voorwaarde input[type=text] { width: auto; flex: 1 1 150px; }
.aip-regeltje { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.aip-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; }
.aip-tag.als { background: #fef3c7; color: #92400e; }
.aip-tag.leeg { background: #fee2e2; color: #b91c1c; }
.aip-gebruik { color: #64748b; font-size: 12px; }
.aip-beslis { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; }
.aip-beslis.actief { border-color: #93c5fd; background: #eff6ff; }
.aip-beslis.anders { border-style: dashed; background: #f8fafc; }
.aip-beslis.anders.actief { border-color: #93c5fd; background: #eff6ff; }
.aip-zinbouw { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aip-als-dan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.aip-als-dan em { font-style: normal; font-weight: 700; }
.aip-tekst { color: #64748b; font-size: 12.5px; font-style: italic; }
.aip-uitkomst { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eef2f7; color: #475569; font-size: 12.5px; font-weight: 700; }
.aip-uitkomst.afspraak { background: #dcfce7; color: #166534; }
.aip-uitkomst.terugbellen { background: #fef3c7; color: #92400e; }
.aip .aip-linkknop { padding: 4px 6px; border: 0; background: none; color: #2563eb; font-family: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.aip-waarschuwing { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 13px; }
.aip-tips { margin: 0; padding-left: 18px; color: #64748b; font-size: 13px; line-height: 1.6; }
.aip-zinbouw-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aip-zinbouw-rij > b { font-size: 14px; }
.aip .aip-zinbouw-rij select, .aip .aip-zinbouw-rij input[type=text] { width: auto; min-width: 130px; flex: 1 1 130px; }
.aip-pijl { color: #94a3b8; }
.aip-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: #f1f5f9; }
.aip-bel { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.aip-bel.klant { align-self: flex-end; border-bottom-right-radius: 4px; background: #2563eb; color: #fff; }
.aip-bel.klant.voorbeeldantwoord { background: #dbeafe; color: #1e3a8a; font-style: italic; }
.aip-bel.ai { align-self: flex-start; border: 1px solid #e3e8f0; border-bottom-left-radius: 4px; background: #fff; }
.aip-bel-label { color: #94a3b8; font-size: 11px; }
.aip-bel-label.rechts { align-self: flex-end; }
.aip-kiem { align-self: center; padding: 6px 9px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: #64748b; font-size: 11.5px; text-align: center; }

@media (max-width: 1100px) {
    .aip-grid { grid-template-columns: 1fr; }
    .aip-kleef { position: static; }
}

@media (max-width: 760px) {
    .aip-velden, .aip-twee, .aip-keuzes, .aip-basis { grid-template-columns: 1fr; }
    .aip-schakel-rij { margin-top: 0; }
    .aip-vraag, .aip-beslis { grid-template-columns: 20px minmax(0, 1fr); }
    .aip-vraag > .aip-knoppen, .aip-beslis > .aip-knoppen { grid-column: 2; flex-wrap: wrap; }
    .aip-schuif-labels { padding-right: 0; }
    .aip-rij { flex-wrap: wrap; }
}
