/* Inboxvana: telefonie (belknop, nummers in het klantpaneel, telefoongesprekken in de tijdlijn, terugbelverzoeken en de instellingen).
   Alleen kleuren, maten en lettertypen uit stijl.css, zodat licht en donker vanzelf kloppen. */

/* ---------- Menu en gesprekskop ---------- */

a.menu-item { text-decoration: none; color: var(--inkt); }
.tel-menu-link > .icoon { color: var(--groen-tekst); }
.tel-menu-laden { display: flex; align-items: center; gap: 8px; margin: 6px 10px; font-size: 13px; color: var(--inkt-3); }
.tel-belknop--nummer { color: var(--groen-tekst); }
.tel-kop { white-space: nowrap; }

/* ---------- Klantpaneel ---------- */

.tel-klant .klant-sectie-titel .icoon { color: var(--inkt-3); }
.tel-klant-laden { padding: 4px 0; }
.tel-nummers { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; min-width: 0; }
.tel-nummer {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  padding: 4px 4px 4px 6px; border-radius: 12px;
  background: var(--oppervlak); box-shadow: inset 0 0 0 1px var(--lijn);
}
.tel-nummer-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 2px 6px 2px 2px; border-radius: 9px;
  color: var(--inkt); text-decoration: none;
}
.tel-nummer-link:hover .tel-nummer-waarde { color: var(--merk-tekst); text-decoration: underline; text-underline-offset: 2px; }
.tel-nummer-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tel-nummer-icoon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--groen-zacht); color: var(--groen-tekst);
}
.tel-nummer-tekst { min-width: 0; display: grid; }
.tel-nummer-waarde { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-nummer-bron { font-size: 12px; color: var(--inkt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-nummer-acties { flex: none; display: flex; align-items: center; }
.tel-nummer-knop { width: 36px; height: 36px; }
.tel-nummer-form { padding: 10px; border-radius: 12px; background: var(--oppervlak); box-shadow: inset 0 0 0 1px var(--lijn); }
.tel-klant-acties { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Dialogen ---------- */

.tel-dialoog .segment-veld { margin: 0; }
/* Keuzes in de dialogen over de volle breedte, even breed; op een smal scherm mag een keuze over twee regels. */
.tel-dialoog .segment { justify-self: stretch; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tel-dialoog .segment-optie { justify-content: center; padding: 4px 8px; white-space: normal; text-align: center; line-height: 1.2; }
.tel-duur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tel-dialoog-hint { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.tel-dialoog-hint .icoon { flex: none; margin-top: 2px; }
.tel-dialoog select.invoer { appearance: auto; }

/* ---------- Kaart in de tijdlijn ---------- */

.tel-kaart {
  display: grid; gap: 10px; min-width: 0;
  padding: 12px 16px 14px; border-radius: 16px;
  background: var(--oppervlak); box-shadow: inset 0 0 0 1px var(--lijn-sterk), var(--schaduw-1);
}
.tel-kaart--uit { background: var(--uit-vlak); box-shadow: inset 0 0 0 1px var(--uit-rand); }
.tel-kaart-kop { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.tel-kaart-icoon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--groen-zacht); color: var(--groen-tekst);
}
.tel-kaart--uit .tel-kaart-icoon { background: var(--merk-zacht); color: var(--merk-tekst); }
.tel-kaart--in.tel-kaart--gemist .tel-kaart-icoon { background: var(--rood-zacht); color: var(--rood); }
.tel-kaart--in.tel-kaart--voicemail .tel-kaart-icoon { background: var(--amber-zacht); color: var(--amber); }
.tel-kaart--uit.tel-kaart--gemist .tel-kaart-icoon, .tel-kaart--uit.tel-kaart--voicemail .tel-kaart-icoon { background: var(--oppervlak-3); color: var(--inkt-3); }
.tel-kaart-titels { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tel-kaart-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 14px; line-height: 1.35; }
.tel-kaart-titel strong { font-weight: 650; }
.tel-kaart--in.tel-kaart--gemist .tel-kaart-titel strong { color: var(--rood); }
.tel-kaart-duur {
  padding: 1px 7px; border-radius: 999px; background: var(--oppervlak-3); color: var(--inkt-2);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tel-kaart-sub { margin: 0; font-size: 12.5px; color: var(--inkt-3); overflow-wrap: anywhere; }
.tel-kaart-notitie {
  margin: 0 0 0 46px; padding: 8px 12px; border-radius: 10px;
  background: var(--notitie); box-shadow: inset 0 0 0 1px var(--notitie-rand); color: var(--notitie-inkt);
  font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
.tel-samenvatting {
  display: grid; gap: 6px; margin-left: 46px; padding: 10px 12px; border-radius: 12px;
  background: var(--merk-zachter); box-shadow: inset 0 0 0 1px var(--merk-rand-zacht);
}
.tel-samenvatting-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: 12.5px; font-weight: 650; color: var(--merk-tekst); }
.tel-samenvatting-uitleg { font-weight: 500; color: var(--inkt-3); }
.tel-samenvatting-punten { display: grid; gap: 4px; margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--inkt); }
.tel-samenvatting-punten strong { font-weight: 650; }
.tel-kaart-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 0 46px; font-size: 13px; color: var(--inkt-3); }
.tel-kaart-status .link-knop { margin: 0; }
.tel-opname { display: grid; gap: 6px; margin-left: 46px; min-width: 0; }
.tel-speler { display: block; width: 100%; max-width: 460px; height: 40px; }
.tel-opname-fout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; max-width: 460px;
  padding: 9px 12px; border-radius: 12px; background: var(--oppervlak-2); box-shadow: inset 0 0 0 1px var(--lijn);
  font-size: 13px; line-height: 1.45; color: var(--inkt-2);
}
.tel-opname-fout > .icoon { flex: none; color: var(--amber); }
.tel-opname-fout > span { flex: 1 1 200px; min-width: 0; }
.tel-opname-fout .link-knop { margin: 0; }
.tel-opname-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12.5px; color: var(--inkt-3); }
.tel-opname-acties .link-knop { margin: 0; }
.tel-opname-bewaard { display: inline-flex; align-items: center; gap: 5px; }
.tel-transcript { margin-left: 46px; min-width: 0; }
.tel-transcript-knop { margin: 0; display: inline-flex; align-items: center; gap: 5px; }
.tel-transcript-laden { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; color: var(--inkt-3); }
.tel-transcript-regels {
  list-style: none; display: grid; gap: 6px; margin: 6px 0 0; padding: 10px 12px; border-radius: 12px;
  max-height: 320px; overflow-y: auto; background: var(--oppervlak-2); box-shadow: inset 0 0 0 1px var(--lijn);
  font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere;
}
.tel-transcript-regels li { display: grid; grid-template-columns: minmax(0, 96px) minmax(0, 1fr); gap: 10px; }
.tel-spreker { font-weight: 650; color: var(--inkt-2); }
.tel-kaart-via { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 0 46px; font-size: 12px; line-height: 1.45; color: var(--inkt-3); }
.tel-kaart-via .icoon { flex: none; margin-top: 1px; }
.tel-regel > .icoon { color: var(--groen-tekst); }
.tel-regel.gebeurtenis--zacht > .icoon { color: var(--inkt-4); }

/* ---------- Boven de opsteller: terugbellen ---------- */

.terugbel-lijst { flex: none; display: grid; gap: 8px; margin: 0 14px 10px; }
.terugbel-balk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0;
  padding: 10px 12px; border-radius: 14px;
  background: var(--groen-zacht); color: var(--groen-inkt);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--groen) 22%, transparent);
  font-size: 13px; line-height: 1.45;
  animation: opkomen 160ms var(--zacht);
}
.terugbel-balk--gepland { background: var(--merk-zachter); color: var(--inkt-2); box-shadow: inset 0 0 0 1px var(--merk-rand-zacht); }
.terugbel-balk--laat { background: var(--rood-zacht); color: var(--rood-inkt); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rood) 26%, transparent); }
.terugbel-balk-icoon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--oppervlak); color: var(--groen-tekst);
}
.terugbel-balk--gepland .terugbel-balk-icoon { color: var(--merk-tekst); }
.terugbel-balk--laat .terugbel-balk-icoon { color: var(--rood); }
.terugbel-balk-tekst { flex: 1 1 260px; min-width: 0; display: grid; gap: 1px; }
.terugbel-balk-tekst strong { font-weight: 650; color: inherit; }
.terugbel-balk-nummer { font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.85; }
.terugbel-balk-meta { opacity: 0.9; }
.terugbel-balk-reden { color: var(--inkt); overflow-wrap: anywhere; }
.terugbel-balk-acties { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
.terugbel-balk-acties .knop { text-decoration: none; }
.terugbel-meer { width: 32px; height: 32px; }

/* ---------- Lijst en zijbalk ---------- */

.kanaal-teken--telefoon { background: var(--groen-tekst); color: var(--oppervlak); }
.rij-terugbel {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px;
  background: var(--groen-zacht); color: var(--groen-tekst); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.rij-terugbel--gepland { background: var(--merk-zacht); color: var(--merk-tekst); }
.rij-terugbel--laat { background: var(--rood-zacht); color: var(--rood); }
.lijst-telefoon { flex: none; margin-left: auto; color: var(--inkt-2); }
.lijst-telefoon + .lijst-bel { margin-left: 0; }

/* ---------- Wachtende klanten ---------- */

.tel-wacht-lijst { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.tel-wacht-rij {
  display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1.2fr) minmax(0, 2fr) auto; align-items: center; gap: 6px 14px;
  min-width: 0; padding: 12px 14px; border-radius: 14px;
  background: var(--oppervlak); box-shadow: inset 0 0 0 1px var(--lijn-sterk), var(--schaduw-1);
  color: var(--inkt); text-decoration: none; font-size: 13.5px;
  transition: box-shadow var(--snel), background-color var(--snel);
}
.tel-wacht-rij:hover { box-shadow: inset 0 0 0 1px var(--lijn-hover), var(--schaduw-1); }
.tel-wacht-rij:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tel-wacht-rij--laat { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rood) 35%, transparent), var(--schaduw-1); }
.tel-wacht-status { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--groen-tekst); }
.tel-wacht-status > .icoon { flex: none; align-self: flex-start; margin-top: 2px; }
.tel-wacht-wanneer { display: grid; min-width: 0; }
.tel-wacht-sinds { font-size: 12.5px; font-weight: 500; color: var(--inkt-3); font-variant-numeric: tabular-nums; }
.tel-wacht-status--laat { color: var(--rood); }
.tel-wacht-status--gepland { color: var(--merk-tekst); }
.tel-wacht-klant { min-width: 0; display: grid; }
.tel-wacht-klant strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-wacht-klant span { font-size: 12.5px; color: var(--inkt-3); font-variant-numeric: tabular-nums; }
.tel-wacht-reden { min-width: 0; color: var(--inkt-2); overflow-wrap: anywhere; }
.tel-wacht-wie { font-size: 12.5px; font-weight: 600; color: var(--inkt-3); white-space: nowrap; }
.tel-wacht + .wacht-cijfers, .tel-wacht + .leeg, .tel-wacht + .wacht-groep { margin-top: 18px; }

/* ---------- Instellingen ---------- */

.tel-functies { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.tel-functies li { display: flex; align-items: flex-start; gap: 12px; }
.tel-functies li div { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.5; color: var(--inkt-2); }
.tel-functies strong { font-size: 14px; color: var(--inkt); }
.tel-functie-icoon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: var(--groen-zacht); color: var(--groen-tekst);
}
.tel-instellingen { gap: 18px; }
.tel-select { max-width: 220px; appearance: auto; }
.tel-aankondiging { margin-top: 4px; }
.tel-aanbieders { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.tel-aanbieder {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 14px 16px; border-radius: 16px;
  background: var(--oppervlak); box-shadow: inset 0 0 0 1px var(--lijn-sterk), var(--schaduw-1);
  color: var(--inkt); text-decoration: none;
  transition: box-shadow var(--snel);
}
.tel-aanbieder:hover { box-shadow: inset 0 0 0 1px var(--lijn-hover), var(--schaduw-2); }
.tel-aanbieder:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tel-aanbieder--uit { opacity: 0.55; cursor: not-allowed; }
.tel-aanbieder-tekst { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; color: var(--inkt-2); }
.tel-aanbieder-tekst strong { font-size: 15px; color: var(--inkt); }
.tel-aanbieder-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tel-geheim-veld { display: grid; gap: 8px; }
.tel-toestellen { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.tel-toestel { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 12px; }
.tel-toestel-naam { min-width: 0; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tel-status-tekst { font-size: 13.5px; color: var(--inkt-2); }
.tel-status-fout { color: var(--rood); }
.mb-status--wacht { color: var(--amber); }
.tel-doc-kop { margin: 6px 0 0; font-size: 13px; font-weight: 650; color: var(--inkt-2); }
.tel-velden { display: grid; gap: 0; margin: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--lijn); }
.tel-veld { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 12px; padding: 8px 12px; font-size: 13px; line-height: 1.45; }
.tel-veld + .tel-veld { border-top: 1px solid var(--lijn); }
.tel-veld dt code { font-size: 12.5px; color: var(--inkt); overflow-wrap: anywhere; }
.tel-veld dd { margin: 0; color: var(--inkt-2); }

/* ---------- Telefoon (smal scherm) ---------- */

@media (max-width: 760px) {
  .tel-kaart { padding: 12px 12px 14px; }
  .tel-kaart-notitie, .tel-samenvatting, .tel-kaart-status, .tel-opname, .tel-transcript, .tel-kaart-via { margin-left: 0; }
  .tel-transcript-regels li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .terugbel-lijst { margin: 0 10px 8px; }
  .terugbel-balk-tekst { flex-basis: calc(100% - 42px); }
  .terugbel-balk-acties { width: 100%; }
  .terugbel-balk-acties .knop:first-child { flex: 1; justify-content: center; }
  .tel-wacht-rij { grid-template-columns: minmax(0, 1fr) auto; }
  .tel-wacht-status { grid-column: 1 / -1; }
  .tel-wacht-reden { grid-column: 1 / -1; }
  .tel-veld { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tel-toestel { grid-template-columns: minmax(0, 1fr) 110px; }
}

@media (max-width: 360px) {
  .tel-nummer-bron { white-space: normal; }
  .tel-duur { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
