.voucher-toolbar,.voucher-actions,.voucher-tabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.voucher-toolbar{justify-content:space-between}.voucher-tabs [aria-pressed=true]{background:var(--ge-selected)!important;color:var(--petrol)!important}.voucher-search{display:flex;gap:10px;margin-bottom:20px;max-width:720px}.voucher-search input{flex:1;min-width:0}.voucher-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:18px;align-items:stretch}.voucher-grid .voucher-order,.voucher-grid .voucher-shop{display:flex;flex-direction:column;padding:22px;min-width:0;overflow-wrap:anywhere}.voucher-grid header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.voucher-grid h2{font-size:20px;line-height:1.4;margin:0 0 10px}.voucher-grid p{margin:0 0 16px}.voucher-grid footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:22px}.voucher-balance{font-size:28px;line-height:1.4}.voucher-notice{padding:16px 18px;background:var(--paper);border:1px solid var(--line);border-radius:12px;line-height:1.6}.voucher-product-row{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;text-align:left;background:none;color:var(--ink);padding:14px 0;border-top:1px solid var(--line);font-size:14px}.voucher-product-row small{display:block;color:var(--muted)}.voucher-check{display:flex!important;align-items:flex-start;gap:10px;margin:12px 0}.voucher-check input{width:20px!important;min-height:20px!important;flex:0 0 20px;margin:3px 0 0}.voucher-detail-head{margin-bottom:20px}.voucher-detail-head h3{font-size:30px;margin:14px 0}.voucher-code{display:block;font-size:14px;line-height:1.7;overflow-wrap:anywhere;background:var(--paper);padding:14px;border-radius:10px}.voucher-history{display:grid;gap:0}.voucher-history article{border-top:1px solid var(--line);padding:16px 0}.voucher-history article>div{display:flex;justify-content:space-between;gap:12px}.voucher-history p{margin:8px 0}.voucher-history small{display:block;color:var(--muted)}.voucher-detail h3{margin-top:20px}.voucher-detail .toolbar{justify-content:flex-start}.voucher-detail .badge{white-space:normal}@media(max-width:600px){.voucher-toolbar{align-items:stretch}.voucher-actions{width:100%}.voucher-actions button{flex:1}.voucher-grid{grid-template-columns:minmax(0,1fr)}.voucher-history article>div{flex-wrap:wrap}.voucher-detail .toolbar button{flex:1 1 150px}.voucher-grid footer button{flex:1 1 130px}}

.voucher-template-sample{border:1px solid var(--line);border-radius:16px;padding:24px;overflow-wrap:anywhere}.voucher-template-sample pre{white-space:pre-wrap;font:inherit}.voucher-template-sample code{display:block;margin:20px 0}.voucher-template-sample h3{font-size:24px}.voucher-template-sample .voucher-mandatory{font-size:12px;opacity:.8}

/* Voucher editor: explicit field rhythm and checkbox rows override generic labels. */
body.ge-app #editor .voucher-shop-form{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0}
body.ge-app #editor .voucher-shop-form label:not(.voucher-check){display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;align-content:start;margin:0!important;min-width:0}
body.ge-app #editor .voucher-shop-form :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0!important}
body.ge-app #editor .voucher-shop-form .form-grid{gap:16px;margin:0;min-width:0}
body.ge-app #editor .voucher-shop-form fieldset{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;margin:0;padding:20px;border:1px solid var(--line);border-radius:12px}
body.ge-app #editor .voucher-shop-form legend{max-width:100%;padding:0 6px;margin:0 0 8px;font-weight:600;line-height:1.5}
body.ge-app #editor .voucher-shop-form p{margin:0;line-height:1.6}
body.ge-app #editor .voucher-check{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:44px;width:100%;min-width:0;margin:0!important;text-align:left!important}
body.ge-app #editor .voucher-check input[type=checkbox]{box-sizing:border-box;display:block;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;flex:0 0 22px!important;padding:0!important;margin:0!important;align-self:center}
body.ge-app #editor .voucher-check>span{display:block;flex:1;min-width:0;line-height:1.5}
body.ge-app #editor:has(.voucher-shop-form) .dialog-body>.required-fields-note{margin:0 0 20px}
body.ge-app #editor .voucher-shop-form select{padding-right:46px!important;background-position:right 18px center!important}
@media(max-width:700px){body.ge-app #editor .voucher-shop-form fieldset{padding:16px}body.ge-app #editor .voucher-shop-form .form-grid{grid-template-columns:minmax(0,1fr)!important}}
body.ge-app #editor select[name=voucher_preview_kind]{max-width:100%;padding-right:46px!important;background-position:right 18px center!important}

.voucher-camera{margin:16px 0}.voucher-camera video{display:block;width:100%;max-height:320px;object-fit:cover;border-radius:12px;background:#111;margin:12px 0}.voucher-camera video[hidden],.voucher-camera canvas[hidden]{display:none}.voucher-camera p{font-size:14px;line-height:1.5;color:var(--muted)}

/* PDF layout choices keep their own rhythm inside the shared template editor. */
body.ge-app #editor .voucher-layout-picker{min-width:0;margin:0 0 24px;padding:0;border:0}
body.ge-app #editor .voucher-layout-picker legend{font-size:16px;font-weight:700;margin-bottom:12px;padding:0}
body.ge-app #editor .voucher-layout-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
body.ge-app #editor button.voucher-layout-choice{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;padding:12px;border:2px solid var(--line);border-radius:12px;color:var(--ink);background:var(--panel);text-align:left;line-height:1.4;font-weight:400;white-space:normal}
body.ge-app #editor button.voucher-layout-choice[aria-pressed=true]{border-color:var(--petrol);box-shadow:0 0 0 1px var(--petrol);background:var(--ge-selected)}
body.ge-app #editor .voucher-layout-choice>span:last-child{font-size:12px;color:var(--muted)}
body.ge-app #editor .voucher-layout-mini{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:130px;gap:4px;padding:12px;background:#faf8f3;color:#142e45;border-radius:4px;overflow:hidden;font-family:Georgia,serif}
body.ge-app #editor .voucher-layout-mini b{font-size:18px;z-index:1}.voucher-layout-mini em{font-size:16px;font-style:normal}.voucher-layout-mini small{font-size:18px;line-height:1;color:#172b2a}
body.ge-app #editor .mini-photo{padding-top:48px}.mini-photo i{position:absolute;inset:0 0 auto;height:40px;background:linear-gradient(125deg,#bda789,#eee4d1 50%,#67755b)}
body.ge-app #editor .mini-classic{border:5px double #315548;background:#faf7ee;color:#315548;border-radius:0}
body.ge-app #editor .mini-minimal{align-items:flex-start;border-top:5px solid #174c4f;background:#fff;color:#174c4f;font-family:Arial,sans-serif}.mini-minimal small{align-self:flex-end}
body.ge-app #editor .mini-standard{border-top:4px solid #174c4f;background:#f4f7f4;color:#174c4f;font-family:Arial,sans-serif}
body.ge-app #editor .voucher-pdf-preview{padding:0;overflow:hidden;background:#e6eae7}
body.ge-app #editor .voucher-pdf-preview iframe{display:block;width:100%;height:850px;max-height:76vh;border:0}
@media(max-width:360px){body.ge-app #editor .voucher-layout-gallery{gap:8px}body.ge-app #editor button.voucher-layout-choice{padding:8px}body.ge-app #editor .voucher-layout-mini b{font-size:14px}body.ge-app #editor .voucher-layout-mini{height:112px}}

body.ge-app #editor .voucher-template-image{margin:18px 0;min-width:0;padding:16px}
body.ge-app #editor .voucher-template-image>legend{max-width:100%}
body.ge-app #editor .voucher-template-image .media-upload-zone{width:100%;margin:0}
body.ge-app #editor .voucher-image-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.ge-app #editor .voucher-image-actions button{min-height:44px;white-space:normal}
body.ge-app #editor .voucher-template-image [data-voucher-image-preview]{max-height:180px;max-width:100%;width:auto;object-fit:contain;border-radius:8px;background:repeating-conic-gradient(#e6e9e6 0 25%,#fff 0 50%) 0/16px 16px;padding:8px}
body.ge-app #editor .voucher-template-image [hidden]{display:none!important}
body.ge-app #editor .voucher-image-status{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body.ge-app #editor .voucher-template-image [data-voucher-image-status].has-error{color:var(--coral);min-height:0}
body.ge-app #editor .voucher-template-image small{line-height:1.5}
