.ei-yearend {max-width:960px;margin:2rem auto;overflow-wrap:anywhere}
.ei-yearend form>label {display:block;margin:1rem 0}
.ei-yearend input:not([type=checkbox]),.ei-yearend select,.ei-yearend textarea {display:block;box-sizing:border-box;width:100%;max-width:100%;font:inherit;padding:.7rem;border:1px solid #7a7a7a;border-radius:.3rem;background:#fff;color:#252525}
.ei-yearend input[type=checkbox] {width:1.25rem;height:1.25rem;vertical-align:middle;accent-color:#164f4c}
.ei-ye-product {border:1px solid #b2c6c4;border-radius:.4rem;padding:.15rem .7rem .4rem;margin:.4rem 0;min-width:0}
.ei-ye-product legend {font-weight:700;padding:0 .4rem;max-width:100%}
.ei-ye-product legend label {cursor:pointer}
.ei-ye-choices[hidden] {display:none}
.ei-ye-variant {display:grid;grid-template-columns:minmax(0,1fr) 6rem;gap:.7rem;align-items:center;padding:.3rem 0;border-bottom:1px solid #d7e3e2}
.ei-ye-variant small {display:block;font-size:.9rem;margin-top:.25rem}
.ei-ye-total {font-size:1.35rem;font-weight:700;padding:1rem;background:#e2efed;border-radius:.5rem}
.ei-ye-privacy {line-height:1.6}
.ei-yearend button {min-height:48px;padding:.8rem 1.3rem;background:#164f4c;color:#fff;border:0;border-radius:.3rem;font:inherit;cursor:pointer}
.ei-yearend :focus-visible {outline:3px solid #a74d16;outline-offset:3px}
.ei-ye-admin-variant,.ei-ye-slot {display:flex;gap:1rem;align-items:end;flex-wrap:wrap;padding:.7rem 0;border-bottom:1px solid #ddd}
.ei-ye-admin-variant .ei-field {flex:1;min-width:140px}
.ei-ye-order-list>p {background:#fff;padding:1rem;border:1px solid #ddd}
.ei-ye-admin-group {margin:1.5rem 0;border-top:3px solid #1c6964;padding-top:.5rem}
.ei-ye-admin-group>h3 {font-size:1.25rem;color:#164f4c;margin:.5rem 0}
.ei-ye-person-settings[hidden],.ei-ye-format-settings[hidden] {display:none}
.ei-ye-buche-row {display:grid;grid-template-columns:1fr 1fr 6rem;gap:.5rem;align-items:end;border-bottom:1px solid #d7e3e2;padding:.6rem 0}
.ei-ye-buche-row label {min-width:0}
.ei-yearend .ei-ye-add-buche,.ei-yearend .ei-ye-remove-buche {background:#fff;color:#164f4c;border:1px solid #799d99;font-size:.9rem;min-height:36px;padding:.4rem .6rem}
.ei-yearend .ei-ye-remove-buche {grid-column:3;font-size:.8rem}
.ei-yearend .ei-ye-add-buche {margin-top:.5rem}
.ei-ye-person-price {margin:.3rem 0!important}
.ei-yearend h3 {margin:1rem 0 .4rem}
.ei-ye-variant input {padding:.4rem!important}
@media(max-width:600px){.ei-yearend .ei-contact-fields{grid-template-columns:1fr}.ei-ye-variant{grid-template-columns:minmax(0,1fr) 5rem;gap:.5rem}.ei-yearend{margin:1rem 0}.ei-yearend button{width:100%}.ei-ye-buche-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ei-ye-buche-row label:nth-child(3){grid-column:1}.ei-yearend .ei-ye-remove-buche{grid-column:2}.ei-ye-product legend{font-size:.95rem}}

/* Eigen scrollruimte boven de totaalbalk: velden en knoppen komen nooit erachter. */
html.ei-ye-docked {overflow:hidden;--ei-ye-total-height:56px}
html.ei-ye-docked body {height:calc(100dvh - var(--ei-ye-total-height) - var(--wp-admin--admin-bar--height,0px));overflow-y:auto;box-sizing:border-box}
.ei-ye-docked .ei-ye-floating-total {position:fixed;z-index:100;inset:auto 0 0;margin:0!important;border-radius:0;text-align:center;padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom));font-size:1.1rem;font-weight:700;background:#e2efed;box-shadow:0 -1px 6px #0002;box-sizing:border-box}

.ei-ye-floating-total[hidden],.ei-ye-field-error[hidden] {display:none}
.ei-ye-total>p {margin:.2rem 0}
.ei-ye-total .ei-ye-payment {font-size:1rem;font-weight:400}
.ei-yearend [aria-invalid=true] {border:2px solid #a52820!important;background:#fff7f6!important}
.ei-ye-field-error {display:block;color:#94231c;font-size:.9rem;font-weight:600;margin:.3rem 0;line-height:1.4}

.ei-ye-brochure {max-width:960px;margin:2rem auto}
.ei-ye-brochure-pages {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.ei-ye-brochure-pages img {display:block;width:100%;height:auto}
.ei-ye-brochure-pages a:focus-visible {outline:3px solid #a74d16;outline-offset:4px}
.ei-ye-brochure-admin .ei-photo-before,.ei-ye-brochure-admin .ei-photo-after {display:none}
@media(max-width:600px){.ei-ye-brochure-pages{grid-template-columns:1fr}}

/* Compact bestelbeheer: tabellen blijven op kleine schermen horizontaal bereikbaar. */
.ei-orders-filters,.ei-orders-fields,.ei-orders-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.ei-orders-filters .ei-field{margin:0}.ei-orders-filters input[name=s]{min-width:260px}
.ei-orders-scroll{overflow-x:auto}.ei-order-lines{min-width:1000px}
.ei-order-lines .ei-field{margin:0}.ei-order-lines .ei-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ei-order-lines input{width:100%;min-width:65px}.ei-order-lines td:nth-child(4),.ei-order-lines td:nth-child(5){width:100px}
.ei-order-lines small{display:block}.ei-mail-text{white-space:pre-wrap;overflow-wrap:anywhere}
.ei-admin textarea[name=body],.ei-admin textarea[name=template]{width:100%;max-width:950px;min-height:420px}
.ei-orders-actions .submit{margin:0;padding:0}.ei-orders-actions{margin-bottom:24px}
.ei-admin .ei-form fieldset{min-width:0}
.ei-admin .ei-orders-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.ei-admin .ei-orders-fields .ei-field{min-width:0;margin:8px 0}
.ei-admin .ei-orders-fields input,.ei-admin .ei-orders-fields select{width:100%;min-width:0;max-width:100%}
.ei-admin .ei-order-lines input[type=checkbox]{width:16px;min-width:16px}
.ei-admin .ei-order-lines .ei-field{min-width:0}
/* 09A: compacte filters en duidelijke mailstatus. */
.ei-orders-admin{max-width:1600px}
.ei-orders-filters{gap:12px;align-items:end}
.ei-orders-filters>label{display:flex;flex-direction:column;gap:6px;flex:0 1 145px;min-width:0;margin:0;font-weight:600}
.ei-orders-filters>label:has([name=edition]){flex-basis:150px}
.ei-orders-filters>label:has([name=s]){flex:1 1 220px}
.ei-orders-filters>label:has([name=origin_channel]),.ei-orders-filters>label:has([name=dir]){flex-basis:115px}
.ei-orders-filters input,.ei-orders-filters select{box-sizing:border-box;width:100%;min-width:0!important;max-width:100%;height:40px;font-size:14px;font-weight:400}
.ei-orders-filters .button{height:40px;line-height:38px}
.ei-admin .ei-orders-add{grid-template-columns:minmax(0,1fr) 90px;align-items:end}
.ei-orders-add label{display:flex;flex-direction:column;gap:6px}
.ei-orders-add input,.ei-orders-add select{height:40px}
.ei-order-dot{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:middle;margin-right:4px}
.ei-order-dot-red{background:#c62828}.ei-order-dot-orange{background:#c66a00}.ei-order-dot-green{background:#21843b}.ei-order-dot-grey{background:#777}
#ei-order-confirmation{scroll-margin-top:55px}
.ei-ye-success{background:#e9f6ed;border:2px solid #24813c;border-radius:5px;color:#164b26;padding:20px;margin:20px 0;scroll-margin-top:100px}
.ei-ye-success:focus{outline:3px solid #24813c;outline-offset:3px}
@media(max-width:700px){.ei-orders-filters>label{flex:1 1 140px}.ei-orders-filters>label:has([name=s]){flex-basis:100%}}

.ei-admin .ei-orders-add .ei-field{max-width:none}
.ei-order-success{background:#e9f6ed;border-left:4px solid #24813c;padding:8px 16px;color:#164b26;margin:16px 0}
