/* Onderhoud om de zoveel tijd (js/onderhoud.js, onderhoud.html). Gebruikt
   de balken en pillen van de tankmeter (ui.css, .tank-*). */
.oh-kaart[hidden] { display: none; }
.oh-inhoud { display: flex; flex-direction: column; gap: 14px; }
.oh-groot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.oh-groot strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--alp-text-primary); }
.oh-groot span { color: var(--alp-text-secondary); font-size: 0.9rem; }
.oh-tip { margin: 0; padding: 10px 14px; border-radius: var(--alp-radius-md); background: var(--alp-brand-tint); color: var(--alp-brand-tekst); font-size: 0.88rem; }
.oh-tip.is-grijs { background: var(--alp-surface-muted); color: var(--alp-text-secondary); }
.oh-tip a { color: inherit; font-weight: 600; }
.oh-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 12px; border-top: 1px solid var(--alp-outline); font-size: 0.85rem; color: var(--alp-text-secondary); }
.oh-meta strong { color: var(--alp-text-primary); font-weight: 600; }
.oh-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-knoppen:empty { display: none; }
.oh-knoppen button { width: auto; min-height: 36px; padding: 6px 14px; font-size: 0.85rem; }
.oh-leeg { margin: 0; color: var(--alp-text-secondary); font-size: 0.9rem; }
.oh-geschiedenis[hidden] { display: none; }
.oh-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.oh-lijst li { display: grid; grid-template-columns: 90px 1fr 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--alp-outline); font-size: 0.85rem; }
.oh-lijst li:last-child { border-bottom: 0; }
.oh-lijst a { font-weight: 600; color: var(--alp-brand-tekst); }
.oh-lijst span { color: var(--alp-text-secondary); }

/* Formulier */
.oh-form { display: flex; flex-direction: column; gap: 14px; }
.oh-volg { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: var(--alp-text-primary); }
.oh-volg input, .oh-vel input[type='checkbox'] { width: 18px; height: 18px; margin: 0; accent-color: var(--alp-brand-primary); flex-shrink: 0; }
.oh-velden { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; min-width: 0; }
.oh-velden:disabled { opacity: 0.6; }
.oh-vel { display: grid; grid-template-columns: 24px minmax(0, 1fr) 150px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--alp-outline); }
.oh-vel-tekst { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--alp-text-primary); }
.oh-vel-tekst small { font-size: 0.78rem; color: var(--alp-text-secondary); }
.oh-getal { display: flex; align-items: center; gap: 6px; }
.oh-getal input { width: 100%; text-align: end; font-variant-numeric: tabular-nums; }
.oh-getal em { min-width: 28px; font-style: normal; font-size: 0.82rem; color: var(--alp-text-secondary); }
.oh-twee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 12px; }
.oh-twee textarea { border: 1px solid var(--alp-outline); border-radius: var(--alp-radius-md); padding: 8px 10px; background: var(--alp-surface); color: var(--alp-text-primary); }
.oh-velden .oh-twee { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.oh-twee textarea { width: 100%; resize: vertical; font: inherit; }
.oh-uit { margin-inline-end: auto; }
@media (max-width: 720px) {
    .oh-twee, .oh-velden .oh-twee { grid-template-columns: minmax(0, 1fr); }
    .oh-vel { grid-template-columns: 24px minmax(0, 1fr) 120px; }
    .oh-lijst li { grid-template-columns: 80px 1fr auto; }
    .oh-lijst li span:nth-of-type(2) { display: none; }
}

/* Pagina Onderhoud (onderhoud.html) */
.ohp-kop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ohp-kop h1 { margin: 0; }
.ohp-kop p { margin: 4px 0 0; color: var(--alp-text-secondary); }
.ohp-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ohp-filters select { width: auto; min-width: 180px; }
.ohp-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ohp-tegel { padding: 14px 16px; border: 1px solid var(--alp-outline); border-radius: var(--alp-radius-md); background: var(--alp-surface); }
.ohp-tegel span { display: block; font-size: 0.8rem; color: var(--alp-text-secondary); }
.ohp-tegel strong { display: block; margin-top: 4px; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--alp-text-primary); }
.ohp-tegel.is-rood strong { color: var(--alp-status-blokkade-tekst); }
.ohp-tegel.is-oranje strong { color: var(--alp-status-aandacht-tekst); }
.ohp-tabel { width: 100%; border-collapse: collapse; }
.ohp-tabel th { text-align: start; font-size: 0.78rem; font-weight: 500; color: var(--alp-text-secondary); padding: 10px 12px; border-bottom: 1px solid var(--alp-outline); white-space: nowrap; }
.ohp-tabel td { padding: 10px 12px; border-bottom: 1px solid var(--alp-outline); font-size: 0.88rem; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ohp-tabel td .bh-knop, .ohp-tabel td .bh-knop-rustig { margin: 2px 0; }
.ohp-tabel td small { display: block; color: var(--alp-text-secondary); font-size: 0.78rem; }
.ohp-tabel tr:last-child td { border-bottom: 0; }
.ohp-tabel a { color: var(--alp-text-primary); font-weight: 600; text-decoration: none; }
.ohp-tabel a:hover { text-decoration: underline; }
.ohp-tabel .tank-balk { width: 120px; }
.ohp-tabel input { width: 100px; text-align: end; }
.ohp-tabel input.ohp-kort { width: 70px; }
.ohp-tabel textarea { width: 100%; min-width: 220px; font: inherit; }
.ohp-wikkel { overflow-x: auto; margin: 0 -20px; }
.ohp-blok { padding: 16px 20px; }
.ohp-tabel th:first-child, .ohp-tabel td:first-child { padding-inline-start: 20px; }
.ohp-tabel th:last-child, .ohp-tabel td:last-child { padding-inline-end: 20px; }
.ohp-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.ohp-tabs button { width: auto; }
.ohp-leeg { padding: 24px; text-align: center; color: var(--alp-text-secondary); }
.ohp-noot { margin: 12px 0 0; font-size: 0.82rem; color: var(--alp-text-secondary); }
@media (max-width: 720px) {
    .ohp-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ohp-verberg-gsm { display: none; }
}

/* Onderhoud per pomp (Yunus 1-12-2026): "eerst" bij de pomp die de datum bepaalt */
.oh-eerst { display: inline-flex; align-items: center; margin-inline-start: 6px; min-height: 20px; padding: 0 8px; border-radius: var(--alp-radius-pill); font-size: 0.7rem; font-weight: 600; vertical-align: 1px; background: var(--alp-status-aandacht-bg); color: var(--alp-status-aandacht-tekst); }
.oh-pomp-rij .tank-naam strong { white-space: nowrap; }
/* balken van tijd, zeep- en spoelpomp even lang */
@media (min-width: 721px) {
    .oh-kaart .tank-rij { grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) minmax(72px, 230px); }
    .oh-kaart .tank-cijfer { min-width: 0; }
}
