/* UH Zaken – kleur volgt het platform via --uhz-accent (UH Core). */
.uhz { --uhz-accent: #e06400; --uhz-on: #fff; --uhz-ink: var(--uhz-accent-ink, #a84d00); --uhz-text: #1f2a30; --uhz-mut: #5b6770; --uhz-line: #dfe5ea; --uhz-soft: #f4f6f8; color: var(--uhz-text); font-size: 16px; line-height: 1.5; max-width: 980px; }
.uhz h2 { margin: 0 0 6px; font-size: 26px; }
.uhz h3 { margin: 0 0 10px; font-size: 18px; }
.uhz-fine { margin: 0 0 12px; color: var(--uhz-mut); font-size: 15px; }
.uhz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.uhz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.uhz-card { background: #fff; border: 1px solid var(--uhz-line); border-radius: 14px; padding: 18px; margin: 0 0 14px; }
.uhz-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.uhz-badge { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--uhz-soft); color: var(--uhz-mut); white-space: nowrap; }
.uhz-badge.is-open { background: #e7f6ec; color: #1d6b3a; }
.uhz-flags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.uhz-flags li { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--uhz-line); color: var(--uhz-mut); text-decoration: line-through; }
.uhz-flags li.is-on { color: var(--uhz-ink); border-color: currentColor; text-decoration: none; }
.uhz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin: 0 0 12px; }
.uhz-field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.uhz-input { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #c9d2da; border-radius: 9px; background: #fff; color: inherit; }
.uhz-input:focus { outline: 2px solid var(--uhz-accent); outline-offset: 1px; }
.uhz-hours { display: grid; gap: 8px; }
.uhz-day { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px 14px; align-items: center; }
.uhz-slot { display: flex; align-items: center; gap: 6px; }
.uhz-slot .uhz-input { width: auto; min-width: 0; flex: 1; }
.uhz-check { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.uhz-actions { margin: 4px 0 18px; }
.uhz-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--uhz-accent); background: var(--uhz-accent); color: var(--uhz-on); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.uhz-btn.is-alt { background: #fff; color: var(--uhz-text); border-color: var(--uhz-line); }
.uhz a.uhz-btn, .uhz a.uhz-btn:hover, .uhz a.uhz-btn:visited { color: var(--uhz-on); text-decoration: none; }
.uhz a.uhz-btn.is-alt, .uhz a.uhz-btn.is-alt:hover, .uhz a.uhz-btn.is-alt:visited { color: var(--uhz-text); }
.uhz-btn:focus-visible { outline: 2px solid var(--uhz-text); outline-offset: 2px; }
.uhz-link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--uhz-mut); }
.uhz-link.is-danger { color: #b3261e; }
.uhz-note { padding: 10px 14px; border-radius: 10px; background: var(--uhz-soft); }
.uhz-note.is-ok { background: #e7f6ec; color: #1d6b3a; }
.uhz-note.is-error { background: #fdecea; color: #8c1d18; }
.uhz-crumb { margin: 0 0 8px; }
.uhz--admin { max-width: 1000px; margin-top: 12px; }
@media (max-width: 600px) { .uhz-day { grid-template-columns: 1fr; } }

.uhz-times { border: 1px solid #e3e8ec; border-radius: 10px; padding: 8px 12px; margin: 8px 0; background: #fff; }
.uhz-times > summary { cursor: pointer; }
.uhz-times .uhz-hours { margin-top: 8px; }

.uhz-dept { display: grid; grid-template-columns: minmax(160px, 1.4fr) auto auto minmax(120px, 1fr) minmax(120px, 1fr) 40px; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid #eef1f4; }
.uhz-dept .uhz-check { padding-bottom: 10px; white-space: nowrap; }
.uhz-times--dept { background: #f8fafb; }
@media (max-width: 760px) { .uhz-dept { grid-template-columns: 1fr 1fr; } .uhz-dept .uhz-field:first-child { grid-column: 1 / -1; } }

.uhz-dept[hidden] { display: none; }
.uhz-dept__del { width: 38px; height: 38px; border: 1px solid #e3e8ec; border-radius: 10px; background: #fff; color: #8c1d18; font-size: 20px; line-height: 1; cursor: pointer; align-self: end; margin-bottom: 2px; }
.uhz-dept__del:hover { background: #fdecea; }
[data-uhz-dept-add] { margin-top: 10px; }
.uhz-depts { border-top: 1px solid var(--uhz-line); padding-top: 10px; margin: 0 0 14px; }
.uhz-depts__h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--uhz-mut); margin: 0 0 6px; }
.uhz-depts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.uhz-depts li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.uhz-depts strong { margin-right: auto; font-weight: 600; }
.uhz-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4c9d0; flex: none; }
.uhz-dot.is-open { background: #3ba55c; }
.uhz-mini { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--uhz-line); color: var(--uhz-mut); text-decoration: line-through; }
.uhz-mini.is-on { color: var(--uhz-ink); border-color: currentColor; text-decoration: none; }
/* Foto's en logo (portaal) */
.uhz-media { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.uhz-media__l { font-weight: 700; font-size: 14px; }
.uhz-media img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid #e2e7eb; }
.uhz-media .uhz-input { width: 100%; }
.uhz-pics { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.uhz-pic { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.uhz-pic img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid #e2e7eb; }
.uhz-pic span { display: inline-flex; align-items: center; gap: 4px; }

/* Tegels, iconen en kaarten (overzicht en formulier) */
.uhz-i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.uhz h3 { display: flex; align-items: center; gap: 10px; }
.uhz h3 .uhz-i { color: var(--uhz-accent); }
.uhz-card { scroll-margin-top: 80px; }
.uhz-jump { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.uhz-jt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--uhz-line); color: var(--uhz-text) !important; text-decoration: none !important; transition: transform .12s, box-shadow .12s; }
.uhz-jt:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 30, 40, .08); }
.uhz-jt .uhz-i { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--uhz-soft); color: var(--uhz-mut); }
.uhz-jt.is-on .uhz-i { background: color-mix(in srgb, var(--uhz-accent) 13%, #fff); color: var(--uhz-accent); }
.uhz-jt span { display: grid; min-width: 0; line-height: 1.25; }
.uhz-jt strong { font-size: 15px; }
.uhz-jt small { color: var(--uhz-mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uhz-actions.is-sticky { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; margin: 4px -8px 18px; padding: 10px 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-top: 1px solid var(--uhz-line); border-radius: 0 0 12px 12px; }
.uhz-actions.is-sticky .uhz-btn { min-width: 160px; padding: 12px 22px; }
.uhz-card.is-loc { padding: 0 0 18px; overflow: hidden; display: flex; flex-direction: column; }
.uhz-card.is-loc > *:not(.uhz-cover) { margin-left: 18px; margin-right: 18px; }
.uhz-card.is-loc > .uhz-btn { align-self: flex-start; margin-top: auto; }
.uhz-cover { position: relative; display: block; height: 110px; margin: 0 0 30px; background: linear-gradient(135deg, var(--uhz-accent), #2a2f35) center / cover no-repeat; }
.uhz-cover img, .uhz-cover b { position: absolute; left: 18px; bottom: -24px; width: 56px; height: 56px; border-radius: 14px; border: 3px solid #fff; background: #fff; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.uhz-cover b { display: grid; place-items: center; font-size: 24px; color: var(--uhz-accent); }
@media (max-width: 900px) {
	.uhb-main .uhz-actions.is-sticky { bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
	.uhz-jump { grid-template-columns: 1fr 1fr; gap: 8px; }
	.uhz-jt { padding: 10px; gap: 9px; }
	.uhz-jt .uhz-i { width: 32px; height: 32px; padding: 7px; }
	.uhz-actions.is-sticky { padding-right: 66px; }
	.uhz-actions.is-sticky .uhz-btn { flex: 1; }
}

/* Maximum aantal locaties */
.uhz-limit { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--uhz-soft); color: var(--uhz-mut); font-size: 14px; font-weight: 600; }
.uhz-limit.is-full { background: #fff4e0; color: #8a5300; }
.uhz-head .uhz-note { margin: 10px 0 0; }
.uhz-off { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #6b4100; font-size: 14px; }
.uhz-off form { display: inline; margin-left: 6px; }
.uhz-card.is-loc:has(.uhz-off) .uhz-cover { filter: grayscale(1) opacity(.6); }

/* Huisstijlkleuren */
.uhz-colors{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:8px 0 12px}
.uhz-colors[hidden]{display:none}
.uhz-color{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--uhz-line);border-radius:12px;background:#fff;cursor:pointer}
.uhz-color input{width:52px;height:52px;padding:0;border:0;border-radius:12px;background:none;cursor:pointer}
.uhz-color span{display:grid;line-height:1.3}.uhz-color small{color:var(--uhz-mut);font-size:13px}.uhz-color code{font-size:13px;color:var(--uhz-mut)}
.uhz-swatch{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:18px;border-radius:14px;background:#fff;border:1px solid var(--uhz-line);overflow:hidden}
.uhz-swatch__btn{padding:10px 16px;border-radius:10px;background:var(--c1);color:#fff;font-weight:700}
.uhz-swatch__alt{padding:8px 14px;border-radius:10px;border:2px solid var(--c1);color:var(--c1);font-weight:700}
.uhz-swatch i{position:absolute;left:0;right:0;bottom:0;height:6px;background:var(--c2)}

/* Tijden: per dag open/dicht, één blok, tweede blok op verzoek */
.uhz-hgrid { display: grid; gap: 0; }
.uhz-hgrid .uhz-day { grid-template-columns: 120px 120px 1fr; gap: 10px 16px; padding: 8px 0; border-bottom: 1px solid #eef1f4; }
.uhz-hgrid .uhz-day:last-of-type { border-bottom: 0; }
.uhz-open { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--uhz-mut); }
.uhz-open input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uhz-sw { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #cfd6dc; flex: none; transition: background .15s; }
.uhz-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.uhz-open input:checked + .uhz-sw { background: #2e9d5b; }
.uhz-open input:checked + .uhz-sw::after { left: 19px; }
.uhz-open input:focus-visible + .uhz-sw { outline: 2px solid var(--uhz-accent); outline-offset: 2px; }
.uhz-open input:checked ~ .uhz-open__t { color: var(--uhz-text); font-weight: 600; }
.uhz-blocks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.uhz-hgrid .uhz-slot .uhz-input { flex: none; width: 132px; padding: 7px 9px; }
.uhz-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--uhz-mut); cursor: pointer; padding: 2px 6px; }
.uhz-add2 { border: 1px dashed #c9d2da; background: none; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--uhz-mut); cursor: pointer; display: none; }
.uhz-copy { justify-self: start; margin-top: 10px; font-size: 14px; display: none; }
.uhz-js .uhz-copy { display: inline; }
.uhz-js .uhz-day.is-shut .uhz-blocks { visibility: hidden; }
.uhz-js .uhz-day .uhz-slot.is-2 { display: none; }
.uhz-js .uhz-day.has-2 .uhz-slot.is-2 { display: flex; }
.uhz-js .uhz-day:not(.has-2):not(.is-shut) .uhz-add2 { display: inline-block; }
@media (max-width: 600px) { .uhz-hgrid .uhz-day { grid-template-columns: 1fr auto; } .uhz-blocks { grid-column: 1 / -1; } .uhz-hgrid .uhz-slot .uhz-input { width: 100px; } }

/* Scherm Tijden: tabbladen */
.uhz-ttabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.uhz-ttabs button { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid #c9d2da; background: #fff; color: inherit; cursor: pointer; }
.uhz-ttabs button.is-on { background: var(--uhz-accent); border-color: var(--uhz-accent); color: var(--uhz-on); }
.uhz-js .uhz-tpane[hidden] { display: none; }
