/* PlateScout: eigen resultaat op de toolpagina's (public/css/ps-tool-result.css).
   Hoort bij public/js/ps-tool-result.js. Eigen ptr-* namespace, px-maten.
   Tokens (--card, --radius, --shadow, --border, --text*) komen uit tools.css. */
.ptr { margin: 0 0 28px; scroll-margin-top: 70px; min-width: 0; }
.ptr[hidden] { display: none; }
.ptr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ptr-ico { display: inline-flex; flex-shrink: 0; }
.ptr-ico svg { display: block; }

/* Laad- en foutmelding */
.ptr-msg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--card, #fff); border-radius: var(--radius, 20px); box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,.06)); padding: 20px 24px; color: #3f7523; }
.ptr-msg-text { flex: 1 1 200px; min-width: 0; }
.ptr-msg-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text, #1d1d1f); line-height: 1.4; }
.ptr-msg-sub { margin: 2px 0 0; font-size: 14px; color: var(--text-secondary, #5f6368); line-height: 1.5; }
.ptr-msg--error { color: #b42318; background: #fef3f2; box-shadow: none; border: 1px solid rgba(180,35,24,.2); }
.ptr-msg--error .ptr-msg-title { color: #b42318; }
.ptr-spinner { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 3px solid #eaf4e3; border-top-color: #4c8c2b; animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ptr-spinner { animation-duration: 2.4s; }
}

/* Kaart */
.ptr-card { background: var(--card, #fff); border-radius: var(--radius, 20px); box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,.06)); padding: 28px 32px 26px; min-width: 0; }
.ptr-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border, rgba(0,0,0,.06)); }
.ptr-render { margin-left: auto; width: 160px; height: auto; filter: drop-shadow(0 8px 12px rgba(18,39,27,.15)); }
@media (max-width: 520px) { .ptr-head:has(.ptr-render) { position: relative; padding-right: 0; } .ptr-render { position: absolute; right: 0; top: -4px; width: 116px; } .ptr-head:has(.ptr-render) .ptr-model { max-width: calc(100% - 124px); } }
.ptr-plate { display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; border: 1.5px solid rgba(0,0,0,.18); background: linear-gradient(170deg,#fad931,#f0c800); color: #1a1a1a; }
.ptr-plate-nl { background: linear-gradient(180deg,#0044aa,#003399); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; padding: 0 6px; }
.ptr-plate-txt { padding: 5px 10px; font-size: 16px; font-weight: 800; letter-spacing: 1.5px; }
.ptr-model { font-size: 17px; font-weight: 700; color: var(--text, #1d1d1f); min-width: 0; overflow-wrap: anywhere; }

/* Hoofdantwoord */
.ptr-answer { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; margin-bottom: 20px; min-width: 0; }
.ptr-answer .ptr-ico { margin-top: 2px; }
.ptr-answer-text { min-width: 0; flex: 1 1 auto; }
.ptr-status { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.ptr-big { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--text, #1d1d1f); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ptr-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary, #5f6368); }
.ptr-answer--ok { background: #eaf4e3; color: #3f7523; }
.ptr-answer--ok .ptr-status { background: #4c8c2b; color: #fff; }
.ptr-answer--ok .ptr-big { color: #2f5e18; }
.ptr-answer--warn { background: #fff7ed; color: #b45309; }
.ptr-answer--warn .ptr-status { background: #b45309; color: #fff; }
.ptr-answer--bad { background: #fef3f2; color: #b42318; }
.ptr-answer--bad .ptr-status { background: #b42318; color: #fff; }
.ptr-answer--unknown { background: #f2f3f4; color: #5f6368; }
.ptr-answer--unknown .ptr-status { background: #5f6368; color: #fff; }

/* Tekst */
.ptr-h3 { font-size: 17px; font-weight: 700; color: var(--text, #1d1d1f); margin: 26px 0 10px; }
.ptr-text { font-size: 15px; line-height: 1.6; color: var(--text-secondary, #5f6368); margin: 0 0 12px; }
.ptr-note { font-size: 13px; line-height: 1.6; color: var(--text-secondary, #5f6368); margin: 12px 0 0; }
.ptr-text a, .ptr-note a, .ptr-list a { color: #3f7523; font-weight: 600; }
.ptr-list { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--text-secondary, #5f6368); }
.ptr-list li + li { margin-top: 6px; }
.ptr-list strong { color: var(--text, #1d1d1f); }

/* Gegevenstabel met lichtgroene labelkolom */
.ptr-dl { margin: 0; border: 1px solid var(--border, rgba(0,0,0,.06)); border-radius: 12px; overflow: hidden; }
.ptr-dl-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.ptr-dl-row + .ptr-dl-row { border-top: 1px solid var(--border, rgba(0,0,0,.06)); }
.ptr-dl dt { background: #f3f8ef; color: #2f5e18; font-size: 14px; font-weight: 700; padding: 11px 14px; min-width: 0; overflow-wrap: anywhere; }
.ptr-dl dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--text, #1d1d1f); padding: 11px 14px; min-width: 0; overflow-wrap: anywhere; }

/* Tabel met donkergroene kop; scrollt binnen het eigen kader */
.ptr-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border, rgba(0,0,0,.06)); }
.ptr-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.ptr-table thead th { background: #2f5e18; color: #fff; text-align: left; font-weight: 700; padding: 11px 14px; font-size: 13px; white-space: nowrap; }
.ptr-table td { padding: 11px 14px; color: var(--text, #1d1d1f); line-height: 1.5; vertical-align: top; }
.ptr-table tbody tr + tr td { border-top: 1px solid var(--border, rgba(0,0,0,.06)); }
.ptr-table tbody tr.ptr-row-sel td { background: #eaf4e3; color: #2f5e18; font-weight: 800; }
.ptr-cell-list { margin: 0; padding-left: 18px; }
.ptr-cell-list li + li { margin-top: 4px; }

/* Statuspil in tabellen */
.ptr-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ptr-pill--ok { background: #eaf4e3; color: #2f5e18; }
.ptr-pill--bad { background: #fef3f2; color: #b42318; }
.ptr-pill--unknown { background: #f2f3f4; color: #5f6368; }

/* Keuzelijst (provincie) */
.ptr-field { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; background: #f3f8ef; border-radius: 12px; }
.ptr-field label { font-size: 14px; font-weight: 700; color: #2f5e18; }
.ptr-select { flex: 1 1 200px; min-width: 0; max-width: 320px; padding: 10px 12px; border: 1px solid rgba(47,94,24,.25); border-radius: 10px; background: #fff; font-family: inherit; font-size: 15px; color: var(--text, #1d1d1f); }
.ptr-select:focus-visible { outline: 2px solid #3f7523; outline-offset: 1px; }

/* Losse items (terugroepacties) en kaders */
.ptr-item { padding: 14px 16px; border-radius: 12px; background: #f7f7f8; margin-bottom: 10px; min-width: 0; }
.ptr-item .ptr-text { margin: 6px 0 0; }
.ptr-item .ptr-note { margin-top: 6px; }
.ptr-item-head { display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; font-size: 14px; color: var(--text, #1d1d1f); }
.ptr-item-head span { color: var(--text-secondary, #5f6368); }
.ptr-callout { margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; background: #f3f8ef; border-left: 4px solid #4c8c2b; min-width: 0; }
.ptr-callout-title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #2f5e18; }
.ptr-callout .ptr-text { margin: 0; }
.ptr-details { margin-top: 10px; }
.ptr-details summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #3f7523; }
.ptr-details summary:focus-visible { outline: 2px solid #3f7523; outline-offset: 2px; border-radius: 4px; }
.ptr-details .ptr-list { margin-top: 10px; }

/* Knoppen */
.ptr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ptr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 11px; background: #3f7523; border: 1.5px solid #3f7523; color: #fff; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ptr-btn:hover { background: #2f5e18; border-color: #2f5e18; color: #fff; }
.ptr-btn:focus-visible { outline: 2px solid #2f5e18; outline-offset: 2px; }
.ptr-btn--ghost { background: #fff; color: #3f7523; }
.ptr-btn--ghost:hover { background: #f3f8ef; color: #2f5e18; border-color: #2f5e18; }
.ptr-msg .ptr-btn { flex: 0 0 auto; }
.ptr-more { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary, #5f6368); }
.ptr-source { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border, rgba(0,0,0,.06)); font-size: 12px; color: var(--text-tertiary, #6e6e73); }

@media (max-width: 600px) {
  .ptr-card { padding: 20px 16px 20px; }
  .ptr-answer { padding: 16px; gap: 12px; }
  .ptr-big { font-size: 20px; }
  .ptr-dl-row { grid-template-columns: minmax(0, 1fr); }
  .ptr-dl dt { padding-bottom: 6px; }
  .ptr-dl dd { padding-top: 8px; }
  .ptr-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ptr-select { max-width: none; flex-basis: 100%; }
  .ptr-msg { padding: 16px; }
}
