/* Cross-platform layout safety. Dashboard colours, typography and component language stay intact. */
html,body{max-width:100%;overflow-x:hidden}.app-shell,.main-area,.dash-body{min-width:0}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{min-width:620px}.dash-head .right{min-width:0}.profile-caption{min-width:0}.profile-caption strong,.profile-caption small{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.create-layout{min-width:0}.inventory-grid,.kpi-grid,.dash-two,.info-window-grid,.offer-grid{min-width:0}.modal{max-width:calc(100vw - 28px);max-height:calc(100vh - 28px);overflow:auto}.invoice-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.invoice-template-card{display:flex;flex-direction:column;gap:5px;cursor:pointer;min-width:0}.invoice-template-card input{position:absolute;opacity:0;pointer-events:none}.invoice-template-card .template-mini{display:block;min-height:86px;padding:10px;border:1px solid #d9e8f6;border-top:4px solid var(--template-accent);border-radius:10px;background:var(--template-bg);color:var(--template-accent);overflow:hidden}.invoice-template-card .template-mini b,.invoice-template-card .template-mini small{display:block;font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-template-card .template-mini i,.invoice-template-card .template-mini em{display:block;height:4px;width:62%;margin-top:10px;background:var(--template-accent);opacity:.28}.invoice-template-card .template-mini em{width:42%;margin-top:6px}.invoice-template-card>strong{font-size:.72rem;color:#315d89;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-template-card>small{font-size:.64rem;color:#8299b0}.invoice-template-card.selected .template-mini{box-shadow:0 0 0 2px var(--template-accent)}.recipient-results{display:grid;gap:6px;margin-top:-5px}.recipient-option{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:9px 11px;border:1px solid #d7e7f7;border-radius:9px;background:#f8fbff;text-align:left;color:#315d89}.recipient-option:hover,.recipient-option.selected{border-color:#1264cf;background:#edf6ff}.recipient-option small{font-size:.68rem;color:#7890a8}.selected-recipient{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-left:3px solid #3c966c;background:#effaf4;color:#315d89;font-size:.78rem}.selected-recipient span{font-size:.7rem;color:#7890a8}.template-heading{display:flex;justify-content:space-between;align-items:center;margin:15px 0 9px;font-size:.85rem;color:#315d89}.demo-control-card,.staff-identity-card,.staff-row{display:flex;align-items:center;gap:20px}.demo-control-card{justify-content:space-between}.staff-identity-card{padding:20px}.staff-identity-card .profile-large{flex:0 0 76px}.staff-list{display:grid;gap:12px}.staff-row{padding:14px 0;border-bottom:1px solid #e1edf8;align-items:flex-start}.staff-row:last-child{border-bottom:0}.staff-row-main{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.staff-row-main>small{color:#7890a8;font-size:.75rem}.staff-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.permission-fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px;border:1px solid #d9e8f6;border-radius:10px}.permission-fieldset label{font-size:.8rem;color:#315d89}@media(max-width:900px){.invoice-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.demo-control-card,.staff-identity-card{align-items:flex-start;flex-direction:column}.demo-control-card .form-inline{width:100%}.demo-control-card .form-inline .btn{width:100%}}@media(max-width:700px){.dash-head{gap:8px}.dash-head>.wordmark{display:none}.dash-head .right{margin-left:auto}.profile-caption{display:none}.profile-trigger{padding:5px}.data-table{min-width:560px}.invoice-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-row{flex-wrap:wrap}.staff-row-actions{width:100%;justify-content:flex-start}.permission-fieldset{grid-template-columns:1fr}.staff-identity-card{padding:15px}.staff-identity-card .profile-large{width:64px;height:64px}.create-layout{grid-template-columns:1fr}.cart{order:2}}@media(max-width:430px){.invoice-template-grid{grid-template-columns:1fr 1fr;gap:7px}.invoice-template-card .template-mini{min-height:74px;padding:8px}.invoice-template-card>strong{font-size:.66rem}.dash-intro{align-items:flex-start;gap:12px}.dash-intro h1{font-size:1.5rem}.btn{max-width:100%}}
/* Merchant invoice workspace: centre live bill preview and guest-email fields. */
.workspace-kicker{font-size:.68rem;letter-spacing:.16em;font-weight:850;color:#1674e1;margin-bottom:10px}.workspace-intro{margin:9px 0 24px;color:#6886a9;line-height:1.55}.workspace-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.workspace-choice{min-width:0;display:flex;align-items:center;gap:14px;text-align:left;padding:18px 15px;border:1px solid #cfe3f7;border-radius:18px;background:#fff;color:#173f78;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.workspace-choice:hover,.workspace-choice:focus-visible{transform:translateY(-3px);border-color:#438fe7;box-shadow:0 14px 28px rgba(24,105,187,.16);outline:none}.workspace-merchant{background:linear-gradient(145deg,#f1f8ff,#fff)}.workspace-user{background:linear-gradient(145deg,#fffdf4,#fff)}.workspace-icon,.workspace-avatar{flex:0 0 58px;width:58px;height:58px;display:grid;place-items:center;border-radius:17px}.workspace-icon{color:#126bd7;background:#e5f3ff;border:1px solid #bdddfa}.workspace-icon svg{width:36px;height:36px}.workspace-avatar{overflow:hidden;background:linear-gradient(140deg,#d9ebff,#f6d78a);border:1px solid #e8ca78}.workspace-avatar img{width:100%;height:100%;object-fit:cover}.workspace-choice-body{min-width:0;display:grid;gap:4px;flex:1}.workspace-choice-body strong{font-size:1rem;color:#164983}.workspace-choice-body small{color:#3676b7;font-size:.72rem;font-weight:750}.workspace-choice-body b{font-size:.83rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-choice-body em{font-style:normal;color:#7893af;font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-arrow{font-size:1.4rem;color:#2677d2}.workspace-note{margin:21px 0 0;padding-top:15px;border-top:1px solid #d9e8f8;color:#7893af;font-size:.74rem;line-height:1.5}.modal:has(.workspace-choice-grid){width:min(720px,100%)}
@media(max-width:600px){.workspace-choice-grid{grid-template-columns:1fr;gap:11px}.workspace-choice{padding:14px 12px}.workspace-icon,.workspace-avatar{flex-basis:50px;width:50px;height:50px}.workspace-icon svg{width:31px;height:31px}.workspace-note{margin-top:16px}}
.create-layout:has(.invoice-live-preview){grid-template-columns:minmax(250px,1.05fr) minmax(260px,.82fr) minmax(300px,.95fr);align-items:start}
.invoice-live-preview{min-width:0;position:sticky;top:18px}.invoice-preview-sheet{background:#fff;border:1px solid #d7e7f8;border-top:4px solid var(--preview-accent,#1264cf);border-radius:12px;padding:16px;box-shadow:0 10px 24px rgba(30,89,145,.08)}
.invoice-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid #e6eff8;color:var(--preview-accent,#1264cf)}.invoice-preview-head div{display:grid;gap:4px}.invoice-preview-brand{flex:0 0 34px!important;width:34px;height:34px;display:grid!important;place-items:center!important}.invoice-preview-brand img{width:32px;height:32px;display:block;object-fit:contain}.invoice-preview-head small,.invoice-preview-recipient small,.invoice-preview-recipient span,.invoice-preview-lines small{display:block;color:#7890aa;font-size:.72rem}.invoice-preview-recipient{display:grid;gap:4px;padding:14px 0}.invoice-preview-recipient small{letter-spacing:.08em;font-weight:800;color:var(--preview-accent,#1264cf)}.invoice-preview-lines{display:grid;gap:8px;min-height:56px}.invoice-preview-lines>div,.invoice-preview-total{display:flex;justify-content:space-between;gap:12px}.invoice-preview-lines span{min-width:0}.invoice-preview-lines small{margin-top:2px}.invoice-preview-total{border-top:1px solid #e6eff8;padding-top:10px;margin-top:12px}.invoice-preview-total.grand{font-size:1.08rem;color:var(--preview-accent,#1264cf);font-weight:800}.invoice-preview-note{display:block;color:#7890aa;line-height:1.4;margin-top:15px}.guest-recipient-box{margin:12px 0;padding:12px;border:1px solid #d7e7f8;border-radius:12px;background:#f8fbff}.guest-fields{padding-top:10px}.guest-toggle{font-size:.9rem}
@media(max-width:1180px){.create-layout:has(.invoice-live-preview){grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)}.invoice-live-preview{grid-column:1/-1;position:static;order:2}.create-layout:has(.invoice-live-preview)>.cart{order:3}}
@media(max-width:700px){.create-layout:has(.invoice-live-preview){grid-template-columns:1fr}.invoice-live-preview{grid-column:auto}.invoice-preview-head{display:block}.invoice-preview-head b{display:block;margin-top:8px}}
.email-delivery-status{margin:9px 0 0;padding:9px 11px;border-radius:9px;font-size:.76rem;line-height:1.35}.email-delivery-status.sent{background:#effaf4;color:#24704e}.email-delivery-status.pending{background:#fff7df;color:#8a6200}
.invoice-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-template-card .template-mini{min-height:92px}
@media(max-width:700px){.invoice-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Invoice picker v2: render a bounded result set even for 1000+ catalogue
   records, keep cards internally aligned, and prevent overflow. */
.create-layout:has(.catalogue-search-row){grid-template-columns:minmax(0,1.12fr) minmax(280px,.86fr) minmax(310px,.94fr);align-items:start}
.create-layout:has(.catalogue-search-row)>.glass-panel{min-width:0}
.catalogue-search-row{margin-bottom:7px}.catalogue-search-row input{min-width:0}.catalogue-result-note{font-size:.72rem;color:#7890aa;margin:0 0 12px}
.create-layout:has(.catalogue-search-row) .inventory-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;max-height:690px;overflow:auto;padding:2px}
.create-layout:has(.catalogue-search-row) .item-card{display:flex;flex-direction:column;min-height:250px;overflow:hidden}
.create-layout:has(.catalogue-search-row) .item-card h3{min-height:2.4em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.create-layout:has(.catalogue-search-row) .item-card .stock{min-height:2.2em;overflow-wrap:anywhere}
.create-layout:has(.catalogue-search-row) .item-card .qty{margin-top:auto}
.create-layout:has(.catalogue-search-row) .item-card .btn-block{margin-top:4px;white-space:normal;min-height:40px}
.create-layout:has(.catalogue-search-row) .cart,.create-layout:has(.catalogue-search-row) .invoice-live-preview{position:sticky;top:92px}
@media(max-width:1280px){.create-layout:has(.catalogue-search-row){grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)}.create-layout:has(.catalogue-search-row)>.invoice-live-preview{grid-column:1/-1;grid-row:2;position:static}.create-layout:has(.catalogue-search-row)>.cart{grid-column:2;grid-row:1}}
@media(max-width:760px){.create-layout:has(.catalogue-search-row){grid-template-columns:1fr}.create-layout:has(.catalogue-search-row)>.invoice-live-preview,.create-layout:has(.catalogue-search-row)>.cart{grid-column:auto;grid-row:auto;position:static}.create-layout:has(.catalogue-search-row) .inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.create-layout:has(.catalogue-search-row) .item-card{min-height:244px}.catalogue-search-row{align-items:stretch}.catalogue-search-row input{flex-basis:100%}.catalogue-search-row button{flex:1}}
@media(max-width:430px){.create-layout:has(.catalogue-search-row) .inventory-grid{grid-template-columns:1fr}.create-layout:has(.catalogue-search-row) .item-card{min-height:0}.create-layout:has(.catalogue-search-row) .item-card h3{min-height:0}.invoice-preview-head{gap:8px}.invoice-preview-head b{font-size:.88rem}}
.public-wordmark .public-mark img{width:23px;height:23px;display:block;object-fit:contain}.sidebar .public-wordmark .public-mark img,.dash-head .public-wordmark .public-mark img{width:20px;height:20px}@media(max-width:600px){.public-wordmark .public-mark img{width:19px;height:19px}}
/* Final logo visibility lock. This file loads last so responsive utility rules cannot shrink the approved mark into a tiny icon. */
.public-wordmark .public-mark{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible;flex-shrink:0}
.public-wordmark .public-mark img{width:100%!important;height:100%!important;display:block;object-fit:contain}
.locked-site-head .container{min-height:88px}.locked-site-head .container>.public-wordmark .public-mark{width:58px;height:58px;flex-basis:58px}.locked-site-head .container>.public-wordmark strong,.locked-site-head .container>.public-wordmark b{font-size:1.82rem}
.sidebar .public-wordmark .public-mark{width:44px;height:44px;flex-basis:44px}.sidebar .public-wordmark strong,.sidebar .public-wordmark b{font-size:1.45rem}.dash-head>.public-wordmark .public-mark{width:44px;height:44px;flex-basis:44px}.dash-head>.public-wordmark strong,.dash-head>.public-wordmark b{font-size:1.45rem}.dash-head>.public-wordmark .public-text{display:flex!important}
.auth-nav .auth-brand img{width:58px!important;height:58px!important;border-radius:0!important}
@media(max-width:900px){.locked-site-head .container{min-height:76px}.locked-site-head .container>.public-wordmark .public-mark{width:48px;height:48px;flex-basis:48px}.locked-site-head .container>.public-wordmark strong,.locked-site-head .container>.public-wordmark b{font-size:1.55rem}.sidebar .public-wordmark .public-mark,.dash-head>.public-wordmark .public-mark{width:38px;height:38px;flex-basis:38px}.sidebar .public-wordmark strong,.sidebar .public-wordmark b,.dash-head>.public-wordmark strong,.dash-head>.public-wordmark b{font-size:1.14rem}}
@media(max-width:600px){.locked-site-head .container{min-height:66px}.locked-site-head .container>.public-wordmark .public-mark{width:38px;height:38px;flex-basis:38px}.locked-site-head .container>.public-wordmark strong,.locked-site-head .container>.public-wordmark b{font-size:1.22rem}.auth-nav .auth-brand img{width:42px!important;height:42px!important}.auth-nav .auth-brand span{font-size:1.35rem}.sidebar .public-wordmark .public-mark,.dash-head>.public-wordmark .public-mark{width:30px;height:30px;flex-basis:30px}.sidebar .public-wordmark strong,.sidebar .public-wordmark b,.dash-head>.public-wordmark strong,.dash-head>.public-wordmark b{font-size:.82rem}.dash-head>.public-wordmark{gap:5px}}
@media(max-width:380px){.locked-site-head .container>.public-wordmark .public-mark{width:34px;height:34px;flex-basis:34px}.locked-site-head .container>.public-wordmark strong,.locked-site-head .container>.public-wordmark b{font-size:1.05rem}.auth-nav .auth-brand img{width:38px!important;height:38px!important}.auth-nav .auth-brand span{font-size:1.18rem}}

/* Approved final horizontal logo: render the supplied wordmark as one asset. */
.public-wordmark.full-brand{display:block;width:clamp(185px,20vw,285px);max-width:100%;flex:0 1 285px;min-width:0;line-height:0}
.public-wordmark.full-brand .full-brand-logo{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.locked-site-head .container>.public-wordmark.full-brand{width:clamp(200px,22vw,300px);flex-basis:300px}
.sidebar>.public-wordmark.full-brand{width:min(220px,100%);flex-basis:220px;margin-right:10px}
.dash-head>.public-wordmark.full-brand{width:clamp(170px,19vw,240px);flex-basis:240px;margin-right:16px}
.auth-nav .auth-brand.full-brand{display:block;width:clamp(190px,25vw,315px);max-width:42vw;line-height:0}
.auth-nav .auth-brand.full-brand .auth-full-logo{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.auth-nav .auth-brand.full-brand>span{display:none}
@media(max-width:900px){.locked-site-head .container>.public-wordmark.full-brand{width:clamp(180px,26vw,250px);flex-basis:250px}.sidebar>.public-wordmark.full-brand{width:min(190px,100%);flex-basis:190px}.dash-head>.public-wordmark.full-brand{width:clamp(150px,22vw,200px);flex-basis:200px}.auth-nav .auth-brand.full-brand{width:clamp(180px,31vw,250px)}}
@media(max-width:600px){.locked-site-head .container>.public-wordmark.full-brand{width:clamp(165px,48vw,220px);flex-basis:220px}.sidebar>.public-wordmark.full-brand{width:min(175px,100%);flex-basis:175px}.dash-head>.public-wordmark.full-brand{width:clamp(140px,42vw,180px);flex-basis:180px;margin-right:5px}.auth-nav .auth-brand.full-brand{width:clamp(165px,52vw,220px);max-width:58vw}}
@media(max-width:380px){.locked-site-head .container>.public-wordmark.full-brand{width:165px;flex-basis:165px}.sidebar>.public-wordmark.full-brand{width:155px;flex-basis:155px}.dash-head>.public-wordmark.full-brand{width:135px;flex-basis:135px}.auth-nav .auth-brand.full-brand{width:155px}}
.invoice-preview-brand{flex:0 1 clamp(120px,42%,175px)!important;width:clamp(120px,42%,175px)!important;height:auto!important;display:block!important;min-width:0}
.invoice-preview-brand img{display:block;width:100%!important;height:auto!important;max-width:100%;object-fit:contain}
@media(max-width:430px){.invoice-preview-brand{flex-basis:125px!important;width:125px!important}}
