/* Telefoon-app (≤760 px of geïnstalleerd op het beginscherm): tabbalk onderin, lijsten als kaarten, en alleen wat je
   onderweg nodig hebt. Wat op een telefoon onhandig is (bulk, import, beheer) blijft op de laptop. */
.tabbar { display: none; }

@media (max-width: 760px) {
  body { background: #f3f4f6; }
  /* bovenbalk: compact, onder de statusbalk van de iPhone */
  .top { padding: calc(env(safe-area-inset-top) + 10px) 16px 8px !important; position: sticky; top: 0; z-index: 30; background: rgba(243, 244, 246, .94);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(0, 0, 0, .05); }
  .top h1 { font-size: 21px !important; }
  .menu-btn, .tabbalk, #jobs, #vraag { display: none !important; }
  .zoek-top { margin-left: auto; min-height: 40px; }
  .view { padding: 12px 14px calc(96px + env(safe-area-inset-bottom)) !important; }

  /* tabbalk onderin */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(17, 19, 21, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 50px; color: #9aa1a9;
    text-decoration: none; font: 600 10.5px Inter, sans-serif; background: none; border: 0; position: relative; -webkit-tap-highlight-color: transparent; }
  .tabbar i { width: 24px; height: 24px; display: grid; place-items: center; }
  .tabbar i svg { width: 23px; height: 23px; }
  .tabbar .on { color: #fff; }
  .tabbar .on i { color: #66cc33; }
  .tabbar .tel { position: absolute; top: 2px; left: calc(50% + 6px); background: #66cc33; color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px;
    min-width: 16px; line-height: 16px; display: none; }
  .tabbar .tel.on { display: block; }
  .sel-balk, .bel-vraag { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }

  /* 'Meer'-blad */
  .meer-blad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-radius: 18px 18px 0 0;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 40px rgba(0, 0, 0, .2); animation: blad-in .22s var(--ease) 1; }
  @keyframes blad-in { from { transform: translateY(100%); } }
  .meer-blad .greep { width: 38px; height: 5px; border-radius: 9px; background: #d5d9de; margin: 0 auto 12px; }
  .meer-blad a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #f0f1f3; color: var(--ink); text-decoration: none; font-weight: 600; }
  .meer-blad a i { width: 22px; height: 22px; color: var(--ink2); }
  .meer-blad small { display: block; color: var(--muted); font-weight: 400; }
  .meer-blad .laptop { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
  .meer-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 85; }

  /* lijsten als kaarten: kandidaten, oud-geplaatsten en de matchlijst */
  .kandlijst .card, .matchlijst .card { background: none; border: 0; box-shadow: none; overflow: visible; }
  .kandlijst table, .matchlijst table { display: block; }
  .kandlijst thead, .matchlijst thead { display: none; }
  .kandlijst tbody, .matchlijst tbody { display: flex; flex-direction: column; gap: 10px; }
  .kandlijst tr, .matchlijst tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 14px; align-items: center; }
  .kandlijst td, .matchlijst td { display: block; padding: 0 !important; border: 0 !important; max-width: none !important; }
  .kandlijst td.sel, .matchlijst td.sel { display: none; }
  .kandlijst td:last-child, .matchlijst td:last-child { grid-column: 1 / -1; text-align: left !important; }
  .kandlijst td:last-child .contact-knoppen, .matchlijst td:last-child .contact-knoppen { width: 100%; justify-content: space-between; }
  .kandlijst .tel-knop, .matchlijst .tel-knop { font-size: 15px; padding: 9px 14px; min-height: 42px; flex: 1; justify-content: center; }
  /* matchlijst: score, kandidaat, status en bellen; de uitleg staat in het paneel */
  .matchlijst tr > td:nth-child(2) { grid-row: 1; grid-column: 2; }
  .matchlijst tr > td:nth-child(3) { grid-row: 1; grid-column: 1; }
  .matchlijst tr > td:nth-child(5), .matchlijst tr > td:nth-child(6) { display: none; }
  .matchlijst tr > td:nth-child(4) { font-size: 13px; color: var(--muted); }

  /* bellijst op Vandaag: elke regel een kaart met de belknop over de volle breedte */
  .bellijst, .bellijst tbody { display: block; }
  .bellijst tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 14px; border-top: 1px solid #f0f1f3; }
  .bellijst td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; }
  .bellijst td:last-child { grid-column: 1 / -1; text-align: left !important; }
  .bellijst td:last-child .contact-knoppen { width: 100%; }
  .bellijst .tel-knop { flex: 1; justify-content: center; font-size: 15px; min-height: 42px; }

  /* onderweg overbodig: blijft op de laptop */
  #imp, #cvup, #demo-weg, a[href="#/dubbelen"], #kfilter-kopie, #v-bestand, #v-alert, #v-cx, #t-volg, #t-nieuw, #t-meer, #li, #vs-pub,
  .keuze:has(input[name=vw]), [data-sel-alles], .sel-balk, .pool-tabs a[href="#/finerating/team"], .pool-tabs a[href="#/finerating/uitleg"],
  .bestand .bt:nth-child(2), .bestand .bt:nth-child(3), #view .eisen .muted.small, .cx-uitleg, .palet-voet { display: none !important; }
  .bestand { grid-template-columns: 1fr 1fr !important; }
  .pool-tabs { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
  .zijpaneel { width: 100vw; padding-top: env(safe-area-inset-top); }
  .zp-body { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .modal { align-items: flex-end; }
  .modal-box { border-radius: 18px 18px 0 0 !important; width: 100vw !important; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important; }
  .intake { min-width: 0; }
}

/* geïnstalleerd op het beginscherm: geen browserbalk, dus de statusbalk ligt over de app */
@media (display-mode: standalone) and (max-width: 760px) {
  .top { padding-top: calc(env(safe-area-inset-top) + 6px) !important; }
}
