/* Winkeliersbeheer Reigerhof – eenvoudige, duidelijke opmaak in de huisstijl */
:root {
  --navy: #002e86; --blue: #0443a1; --orange: #ff9302; --ink: #0f1d3a; --muted: #55617d;
  --line: #dde5f0; --bg: #f4f7fb; --sky: #eaf3fc; --ok: #12823b; --err: #b42318; --warn: #b35c00;
  --r: 12px; --shadow: 0 1px 2px rgba(15,29,58,.06), 0 6px 20px rgba(15,29,58,.06);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; margin-top: 1.4em; }
code { background: var(--sky); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
[hidden] { display: none !important; }
.bh-muted { color: var(--muted); font-size: .94rem; }

.bh-top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px clamp(14px, 3vw, 28px); flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.bh-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.bh-brand img { width: 34px; }
.bh-brand small { display: block; font-weight: 400; font-size: .78rem; opacity: .8; }
.bh-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.bh-nav a { color: #fff; text-decoration: none; padding: .45em .8em; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.bh-nav a:hover, .bh-nav a.is-active { background: rgba(255,255,255,.14); }
.bh-main { max-width: 1100px; margin: 0 auto; padding: clamp(16px, 4vw, 36px) clamp(12px, 3vw, 24px) 100px; }
.bh-foot { text-align: center; color: var(--muted); font-size: .88rem; padding: 0 16px 28px; }

.bh-flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: #e6f6ec; color: #0b5d2a; border: 1px solid #b7e2c5; }
.bh-flash--error { background: #fdecea; color: #8a1c13; border-color: #f4c2bd; }
.bh-flash--warn { background: #fff4e5; color: #7a4100; border-color: #ffd699; }

.bh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .65em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 700 .95rem/1.1 inherit; text-decoration: none; cursor: pointer; }
.bh-btn:hover { border-color: var(--blue); }
.bh-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.bh-btn--primary:hover { background: var(--navy); }
.bh-btn--small { padding: .45em .85em; font-size: .86rem; }
.bh-btn--block { width: 100%; }
.bh-btn--warn { color: var(--warn); border-color: #ffd699; }
.bh-btn--danger { color: #fff; background: var(--err); border-color: var(--err); }
.bh-btn--link { border: 0; background: none; color: var(--err); text-decoration: underline; padding: .45em .2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.bh-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .93rem; color: var(--navy); margin-bottom: 12px; }
.bh-form label small { font-weight: 400; color: var(--muted); }
.bh-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .bh-form select, .bh-form textarea {
  width: 100%; padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; min-height: 44px; }
.bh-form textarea { min-height: 200px; resize: vertical; line-height: 1.55; }
.bh-form input:focus, .bh-form select:focus, .bh-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4,67,161,.12); }
.bh-check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; color: var(--ink) !important; }
.bh-check input { width: 20px; height: 20px; }
.bh-radios { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.bh-radios label { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); margin: 0; padding: 6px 0; }
.bh-radios input { width: 20px; height: 20px; }
.bh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bh-grid--extra { grid-template-columns: 2fr 1fr 2fr 1fr 2fr 1fr; }
.bh-span2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .bh-grid, .bh-grid--3 { grid-template-columns: 1fr; } .bh-grid--extra { grid-template-columns: 1.6fr 1fr; } }

/* inloggen */
.bh-login { min-height: 80vh; display: grid; place-items: center; }
.bh-login__card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: clamp(24px, 5vw, 40px); box-shadow: 0 20px 60px rgba(0,46,134,.15); text-align: center; }
.bh-login__card .bh-form { text-align: left; margin-top: 18px; }
.bh-login__logo { width: 120px; margin: -10px auto 10px; display: block; }
.bh-login__links { margin: 16px 0 0; font-size: .94rem; }

/* kop */
.bh-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.bh-head > div:nth-child(2), .bh-head > div:first-child:not(.bh-head__logo) { flex: 1; min-width: 220px; }
.bh-head h1 { margin: 0; }
.bh-head__logo { width: 84px; height: 84px; background: #fff; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.bh-head__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.bh-head__logo span { font-weight: 800; font-size: 1.6rem; color: var(--blue); }
.bh-crumb { margin: 0 0 4px; font-size: .9rem; }
.bh-badge { display: inline-block; padding: .15em .6em; border-radius: 999px; background: #eee; font-size: .82rem; font-weight: 700; }
.bh-badge--ok { background: #e6f6ec; color: var(--ok); }

.bh-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; position: sticky; top: 58px; z-index: 5; background: var(--bg); padding: 8px 0; }
.bh-tabs a { padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--navy); }
.bh-tabs a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.bh-tabs--plain { position: static; }

.bh-panel { background: #fff; border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; box-shadow: var(--shadow); scroll-margin-top: 120px; }
.bh-narrow { max-width: 520px; }
.bh-count { text-align: right; margin: 4px 0 0; }

/* openingstijden */
.bh-hours-list { display: grid; gap: 6px; margin-bottom: 8px; }
.bh-hours { display: grid; grid-template-columns: 110px 150px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bh-hours__day { font-weight: 700; color: var(--navy); }
.bh-hours select { min-height: 40px !important; }
.bh-hours__times { display: flex; align-items: center; gap: 8px; }
.bh-hours__times input { width: 130px !important; }
@media (max-width: 600px) {
  .bh-hours { grid-template-columns: 1fr 1fr; }
  .bh-hours__times, .bh-hours__text { grid-column: 1 / -1; }
  .bh-hours__times input { width: 100% !important; }
}
[data-zondag] { padding: 4px 0 8px; }

/* opslaan-balk */
.bh-savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 12px clamp(14px, 3vw, 22px); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -8px 24px rgba(15,29,58,.08); margin-bottom: 18px; z-index: 6; }
.bh-savebar .is-dirty { color: var(--warn); font-weight: 700; }

/* foto's */
.bh-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.bh-photo { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; }
.bh-photo h3 { margin: 0 0 8px; }
.bh-photo__img { aspect-ratio: 4 / 3; background: var(--bg); border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .9rem; }
.bh-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.bh-photo__img.is-logo img { object-fit: contain; padding: 10px; background: #fff; }
.bh-photo .bh-muted { flex: 1; margin: 8px 0; font-size: .86rem; }
.bh-file { position: relative; margin: 0 0 10px !important; }
.bh-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bh-file span { display: block; padding: .6em .8em; border: 1.5px dashed var(--line); border-radius: 10px; text-align: center; font-weight: 600; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-photo__btns { display: flex; justify-content: space-between; align-items: center; }

/* beheerder */
.bh-filter { width: 100%; max-width: 380px; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; margin-bottom: 14px; }
.bh-cards { display: grid; gap: 10px; }
.bh-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.bh-card__logo { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.bh-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.bh-card h3 { margin: 0 0 2px; }
.bh-card p { margin: 0 0 6px; }
.bh-card__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 330px; }
.bh-card__actions form { margin: 0; }
.bh-inline label { flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.bh-inline select { max-width: 320px; min-height: 38px !important; padding: .35em .6em !important; }
.bh-todo { color: var(--warn); font-size: .86rem; font-weight: 600; }
@media (max-width: 760px) { .bh-card { grid-template-columns: 52px 1fr; } .bh-card__actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } .bh-card__logo { width: 52px; height: 52px; } }
.bh-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bh-table th, .bh-table td { text-align: left; padding: .5em; border-bottom: 1px solid var(--line); vertical-align: top; }
.bh-dialog { border: 0; border-radius: 18px; padding: clamp(18px, 4vw, 32px); width: min(720px, calc(100% - 24px)); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.bh-dialog::backdrop { background: rgba(0, 30, 80, .45); }
.bh-dialog__btns { display: flex; justify-content: flex-end; gap: 10px; margin: 10px 0 0; }
@media (max-width: 760px) {
  .bh-top { position: static; }
  .bh-tabs { position: static; }
  .bh-nav { margin-left: 0; width: 100%; }
  .bh-savebar { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
}
