/* EUROBOX Workspace 3.0 — isolated design system. No global WordPress theme selectors. */
:root{color-scheme:light}
html[data-ebx-staff-theme=dark]{color-scheme:dark;background:#0f1928}
html[data-ebx-staff-theme=dark] body.ebx-staff-document{background:#0f1928!important;color:#edf5ff}
body.ebx-staff-document{margin:0!important;background:#f5f7fb!important;color:#1d2d45;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;line-height:1.5}
body.ebx-staff-document *{box-sizing:border-box}
body.ebx-staff-document button,body.ebx-staff-document input,body.ebx-staff-document select,body.ebx-staff-document textarea{font:inherit}
.ebx-staff-shell{--bg:#f5f7fb;--panel:#fff;--panel2:#f9fbfe;--text:#1d2d45;--muted:#66778c;--border:#dfe6f0;--sidebar:#fff;--blue:#00a9e9;--blue-strong:#0977b4;--tint:#e8f6ff;--focus:#73d4ff;--shadow:0 12px 40px rgba(21,42,69,.045);color:var(--text);background:var(--bg);min-height:100vh;font:400 14px/1.55 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
.ebx-staff-shell[data-theme=dark],html[data-ebx-staff-theme=dark] .ebx-staff-shell{--bg:#0f1928;--panel:#1b293c;--panel2:#152338;--text:#edf5ff;--muted:#a6b9cd;--border:#32455e;--sidebar:#162439;--blue:#36b7ef;--blue-strong:#71d2fa;--tint:#123e5b;--focus:#83dfff;--shadow:0 16px 44px rgba(0,0,0,.13)}
.ebx-staff-shell a{color:var(--blue-strong);text-decoration:none}.ebx-staff-shell a:hover{text-decoration:none}
.ebx-staff-shell :is(h1,h2,h3,h4,p){margin-top:0}.ebx-staff-shell :is(h1,h2,h3){color:var(--text);letter-spacing:-.025em;font-weight:740;line-height:1.25}
.ebx-staff-shell h1{font-size:30px;margin:0 0 8px}.ebx-staff-shell h2{font-size:18px;margin:0 0 10px}.ebx-staff-shell h3{font-size:16px}
.ebx-staff-shell :focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.ebx-staff-shell .ebx-icon{display:inline-block;flex:none;width:19px;height:19px;vertical-align:middle}
.ebx-staff-skip{position:absolute;left:-9999px;top:8px;z-index:1000}.ebx-staff-skip:focus{left:16px;padding:8px;background:#fff}
/* Header */
.ebx-staff-header{height:80px;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 clamp(18px,3.2vw,52px);position:relative;z-index:20}
.ebx-staff-header-start,.ebx-staff-header-right{display:flex;align-items:center;gap:18px;min-width:0}
.ebx-staff-brand{display:inline-flex;align-items:center;flex:none}
.ebx-staff-brand .ebx-brand-pair{display:inline-flex;align-items:center}
.ebx-staff-brand .ebx-brand-image{display:block;width:205px;height:auto;max-height:51px;object-fit:contain}
.ebx-staff-brand .ebx-brand-dark{display:none}
.ebx-staff-shell[data-theme=dark] .ebx-staff-brand .ebx-brand-light,html[data-ebx-staff-theme=dark] .ebx-staff-brand .ebx-brand-light{display:none}
.ebx-staff-shell[data-theme=dark] .ebx-staff-brand .ebx-brand-dark,html[data-ebx-staff-theme=dark] .ebx-staff-brand .ebx-brand-dark{display:block}
.ebx-staff-workspace-label{font-size:10px;font-weight:800;letter-spacing:.16em;border-left:1px solid var(--border);color:var(--muted);padding-left:18px;white-space:nowrap}
.ebx-staff-env{background:var(--tint);border:1px solid var(--border);padding:5px 9px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.09em;color:var(--blue-strong)}
.ebx-staff-user{display:flex;align-items:center;gap:10px;padding-left:16px;border-left:1px solid var(--border)}
.ebx-staff-avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:var(--tint);font-size:16px;font-weight:800;color:var(--blue-strong)}
.ebx-staff-user-info{display:flex;flex-direction:column;line-height:1.3;min-width:0}.ebx-staff-user-info strong{color:var(--text);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}.ebx-staff-user-info small{font-size:11px;color:var(--muted);margin-top:3px}
.ebx-staff-shell button.ebx-staff-theme-toggle,.ebx-staff-shell button.ebx-staff-nav-toggle{display:grid;place-items:center;flex:none;padding:0;width:39px;height:39px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--muted);cursor:pointer;min-height:0}
.ebx-staff-shell button.ebx-staff-nav-toggle{display:none}
/* Layout and navigation */
.ebx-staff-layout{display:grid;grid-template-columns:244px minmax(0,1fr);gap:0;min-height:calc(100vh - 80px)}
.ebx-staff-aside{background:var(--sidebar);border-right:1px solid var(--border);min-height:100%;padding:26px 14px;display:flex;flex-direction:column;gap:22px}
.ebx-staff-nav-label{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin:0 12px 11px}
.ebx-staff-nav-second{margin-top:25px}
.ebx-staff-links{display:flex;flex-direction:column;gap:4px}
.ebx-staff-links>a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;font-size:13px;min-height:44px;color:var(--muted);font-weight:650;transition:background .12s}
.ebx-staff-links>a .ebx-icon{width:18px;height:18px}.ebx-staff-links>a:hover{background:var(--panel2);color:var(--text)}
.ebx-staff-links>a.is-active{background:var(--tint);color:var(--blue-strong);font-weight:750}
.ebx-staff-aside-bottom{border-top:1px solid var(--border);margin-top:auto;padding:18px 10px 0;display:flex;flex-direction:column;gap:13px;color:var(--muted);font-size:11px}
.ebx-staff-aside-bottom a{font-size:13px;font-weight:650;display:flex;gap:9px;align-items:center;color:var(--muted)}
.ebx-staff-mobile-backdrop{display:none}
.ebx-staff-main{max-width:1600px;min-width:0;width:100%;padding:27px clamp(20px,3vw,48px) 25px;margin:0 auto}
.ebx-staff-breadcrumb{display:flex;align-items:center;gap:8px;font-weight:800;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 19px}
.ebx-staff-breadcrumb .ebx-icon{width:13px;height:13px;transform:rotate(-90deg)}.ebx-staff-breadcrumb strong{color:var(--blue-strong)}
.ebx-staff-heading{margin-bottom:24px}.ebx-staff-heading p{color:var(--muted);margin:0;max-width:820px;font-size:14px}
/* Overview */
.ebx-staff-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 24px}
.ebx-staff-metric{min-width:0;background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;padding:20px 21px}
.ebx-staff-metric>span{display:block;font-weight:650;color:var(--muted);font-size:12px;line-height:1.4}
.ebx-staff-metric>strong{display:block;font-size:31px;line-height:1.2;margin:13px 0 8px;font-weight:780;letter-spacing:-.045em;color:var(--text)}
.ebx-staff-metric>small{color:var(--muted);font-size:11px}
.ebx-staff-overview-cols{display:grid;grid-template-columns:1.14fr 1fr;gap:19px;align-items:start}
.ebx-staff-panel{background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:15px;padding:21px;min-width:0}
.ebx-staff-panel-heading{margin-bottom:18px}.ebx-staff-panel-heading h2{font-size:17px;margin:0 0 4px}.ebx-staff-panel-heading p{font-size:12px;color:var(--muted);margin:0}
.ebx-staff-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ebx-staff-quick>a{display:flex;align-items:center;gap:10px;min-width:0;padding:14px 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel2);color:var(--text)}
.ebx-staff-quick>a>.ebx-icon{width:19px;height:19px;color:var(--blue-strong)}.ebx-staff-quick>a>span:nth-child(2){min-width:0;display:flex;flex:1;flex-direction:column}.ebx-staff-quick>a strong{font-size:12px;font-weight:750;line-height:1.25}.ebx-staff-quick>a small{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.3}.ebx-staff-quick-arrow{color:var(--muted);font-size:17px}
.ebx-staff-recent-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px;border-top:1px solid var(--border);color:var(--text)!important}
.ebx-staff-recent-row>span:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}
.ebx-staff-recent-row strong{font-weight:750;font-size:13px}.ebx-staff-recent-row small{font-size:11px;color:var(--muted)}
.ebx-staff-empty{color:var(--muted);font-size:13px;padding:16px 0}
.ebx-staff-note{padding:12px 16px;border-radius:10px;border:1px solid var(--border);background:var(--panel2);color:var(--muted);font-size:12px;margin:20px 0;line-height:1.55}
/* Tables, filters, badges */
.ebx-staff-search{display:flex;gap:10px;margin:0 0 18px}.ebx-staff-shell input:not([type=checkbox]),.ebx-staff-shell select,.ebx-staff-shell textarea{width:100%;max-width:100%;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:10px 12px;min-height:42px;outline-offset:2px;font-size:13px}
.ebx-staff-shell input::placeholder,.ebx-staff-shell textarea::placeholder{color:var(--muted)}.ebx-staff-search input{flex:1;min-width:0}
.ebx-staff-shell button:not(.ebx-staff-nav-toggle):not(.ebx-staff-theme-toggle){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border-radius:9px;padding:9px 14px;border:1px solid var(--blue);background:var(--blue);color:#082940;font-weight:750;font-size:12px;cursor:pointer;white-space:nowrap}
.ebx-staff-shell button:disabled{opacity:.55;cursor:not-allowed}
.ebx-staff-shell .ebx-staff-outline,.ebx-staff-shell .ebx-team-muted{background:var(--panel)!important;color:var(--blue-strong)!important;border:1px solid var(--border)!important}
.ebx-staff-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:13px;background:var(--panel)}
.ebx-staff-table-wrap table{border-collapse:collapse;width:100%;min-width:700px;text-align:left;color:var(--text);font-size:13px;table-layout:auto}
.ebx-staff-table-wrap :is(th,td){padding:14px 15px;border-bottom:1px solid var(--border);vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.ebx-staff-table-wrap thead th{font-size:11px;letter-spacing:.035em;font-weight:750;color:var(--muted);background:var(--panel2);white-space:nowrap}
.ebx-staff-table-wrap tbody tr:hover{background:var(--panel2)}.ebx-staff-table-wrap tbody tr:last-child td{border-bottom:0}
.ebx-staff-table-wrap td>strong{font-weight:750}.ebx-staff-table-wrap td small{color:var(--muted)}
.ebx-staff-status{display:inline-flex;align-items:center;max-width:100%;border-radius:100px;background:var(--tint);border:1px solid var(--border);color:var(--blue-strong);font-size:11px;font-weight:750;padding:4px 10px;line-height:1.4;white-space:nowrap}
.ebx-staff-actions{min-width:218px}.ebx-staff-actions>.ebx-staff-outline{margin:0 0 7px!important}
.ebx-staff-inline-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.ebx-staff-inline-status select{width:150px;min-height:37px;padding:7px}.ebx-staff-inline-status button{min-height:37px!important}
.ebx-staff-inline-status [role=status],.ebx-staff-ticket-actions [role=status]{color:var(--blue-strong);font-size:12px;flex-basis:100%}
.ebx-staff-shell [role=status].is-error{color:#d43c4f!important}
/* Customers */
.ebx-staff-client-card{padding:23px;background:var(--panel);border:1px solid var(--border);border-radius:14px;margin-bottom:22px}
.ebx-staff-client-top{display:flex;justify-content:space-between;gap:14px;align-items:start}.ebx-staff-client-top h2{margin:0}.ebx-staff-client-top p{font-size:12px;color:var(--muted);margin:5px 0}
.ebx-staff-client-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0}.ebx-staff-client-card dl>div{min-width:0}.ebx-staff-client-card dt{color:var(--muted);font-size:11px}.ebx-staff-client-card dd{margin:4px 0;font-weight:650;overflow-wrap:anywhere}
.ebx-staff-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin-bottom:15px}.ebx-staff-editor label{display:grid;gap:5px;font-size:12px;font-weight:750}.ebx-staff-editor button{justify-self:start}
.ebx-staff-client-history{margin:16px 0;padding:15px 0;border-block:1px solid var(--border)}.ebx-staff-client-history h3{margin-bottom:10px}.ebx-staff-count{color:var(--muted);font-size:11px}
.ebx-staff-client-requests>div{display:flex;flex-wrap:wrap;gap:15px;padding:10px 0;border-top:1px solid var(--border)}.ebx-staff-client-requests>div span{color:var(--muted)}.ebx-staff-notice{padding:13px;background:var(--tint);border-radius:10px;color:var(--blue-strong)}
/* Dialog and support */
.ebx-staff-dialog{width:min(680px,calc(100vw - 24px));max-height:84dvh;overflow:auto;border:1px solid var(--border);border-radius:17px;padding:22px;background:var(--panel);color:var(--text);box-shadow:0 20px 80px rgba(0,0,0,.3)}
.ebx-staff-dialog::backdrop{background:rgba(6,16,29,.65)}.ebx-staff-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:16px}
.ebx-staff-preview-items{padding-left:22px}.ebx-staff-preview-items li{padding:11px 0;border-bottom:1px solid var(--border);display:flex;gap:12px;flex-wrap:wrap}.ebx-staff-preview-items li strong{min-width:100px;flex:1}.ebx-staff-preview-items :is(li span,li small){color:var(--muted)}
.ebx-staff-ticket{padding:19px;border:1px solid var(--border);background:var(--panel);border-radius:13px;margin-bottom:14px}.ebx-staff-ticket-title{display:flex;justify-content:space-between;align-items:start;gap:12px}.ebx-staff-ticket .ebx-staff-muted{font-size:12px;color:var(--muted)}.ebx-staff-ticket label{display:block;font-weight:750;font-size:12px;margin:12px 0 6px}.ebx-staff-ticket textarea{min-height:100px}.ebx-staff-ticket-actions{margin:10px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
/* Employee management and accordions */
.ebx-staff-team>p{color:var(--muted)}.ebx-staff-team>h1{margin:0 0 6px}
.ebx-team-create{background:var(--panel);border:1px solid var(--border);padding:17px;border-radius:13px;margin:0 0 19px}.ebx-team-create>summary{cursor:pointer;font-weight:750;color:var(--blue-strong)}
.ebx-team-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;align-items:end}.ebx-team-create-form>label,.ebx-team-action-body label{display:grid;gap:5px;font-size:12px;font-weight:750;color:var(--text)}
.ebx-team-create-form small{font-size:11px;font-weight:450;color:var(--muted)}.ebx-team-create-form button{justify-self:start}
.ebx-team-check{display:flex!important;align-items:center;gap:9px;font-weight:550!important}.ebx-team-check input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:18px;flex:none}
.ebx-team-actions summary{cursor:pointer;color:var(--blue-strong);font-weight:750}.ebx-team-action-body{display:grid;gap:12px;margin-top:13px}.ebx-team-action-body form{display:flex;gap:9px;flex-wrap:wrap;align-items:end}.ebx-team-action-body form label{flex:1;min-width:130px}
.ebx-staff-locked{margin:12vh auto;padding:30px;max-width:440px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:16px;text-align:center}
.ebx-staff-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--border);margin-top:35px;padding-top:18px;color:var(--muted);font-size:11px}
/* Dark theme affects only this Workspace, not the customer portal */
.ebx-staff-shell[data-theme=dark] :is(input,select,textarea),html[data-ebx-staff-theme=dark] .ebx-staff-shell :is(input,select,textarea){color-scheme:dark}
/* Responsive: operation table scrolls in own area; no page overflow */
@media(max-width:1280px){.ebx-staff-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-staff-overview-cols{grid-template-columns:1fr}.ebx-staff-quick{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.ebx-staff-header{height:70px;padding:0 17px}.ebx-staff-brand .ebx-brand-image{width:160px}.ebx-staff-workspace-label{display:none}.ebx-staff-shell button.ebx-staff-nav-toggle{display:grid}.ebx-staff-layout{display:block;min-height:calc(100vh - 70px)}.ebx-staff-aside{position:fixed;z-index:50;left:0;top:70px;bottom:0;width:min(300px,calc(100vw - 54px));transform:translateX(-104%);transition:transform .17s;box-shadow:10px 0 35px rgba(0,0,0,.13);overflow-y:auto}.ebx-staff-shell.is-nav-open .ebx-staff-aside{transform:translateX(0)}.ebx-staff-shell.is-nav-open .ebx-staff-mobile-backdrop{display:block;position:fixed;inset:70px 0 0;z-index:40;background:rgba(5,15,25,.48)}.ebx-staff-main{padding:22px 20px 26px}.ebx-staff-env{display:none}}
@media(max-width:570px){.ebx-staff-header-start,.ebx-staff-header-right{gap:9px}.ebx-staff-brand .ebx-brand-image{width:132px}.ebx-staff-user{padding-left:0;border:0}.ebx-staff-user-info{display:none}.ebx-staff-avatar{width:35px;height:35px}.ebx-staff-main{padding:20px 14px 25px}.ebx-staff-shell h1{font-size:25px}.ebx-staff-stats{gap:9px}.ebx-staff-metric{padding:15px}.ebx-staff-metric strong{font-size:26px;margin:8px 0}.ebx-staff-overview-cols{gap:12px}.ebx-staff-panel{padding:16px}.ebx-staff-quick{grid-template-columns:1fr}.ebx-staff-search{flex-direction:column}.ebx-staff-search button{align-self:start}.ebx-staff-client-card dl,.ebx-staff-editor,.ebx-team-create-form{grid-template-columns:1fr}.ebx-staff-footer{flex-direction:column;align-items:flex-start}.ebx-staff-dialog{padding:15px}.ebx-staff-table-wrap table{min-width:650px}}
@media(prefers-reduced-motion:reduce){.ebx-staff-aside{transition:none}}

.ebx-staff-locked .ebx-brand-pair{display:block;margin:0 auto 18px;max-width:205px}.ebx-staff-locked .ebx-brand-image{max-width:205px;height:auto}.ebx-staff-locked .ebx-brand-dark{display:none}.ebx-staff-locked a{display:inline-flex;padding:11px 16px;background:var(--blue);color:#09283b!important;border-radius:9px;font-weight:750}.ebx-staff-locked h2{margin:12px 0 9px}

/* Beta 1.4: client request navigation and owner analytics (isolated to Workspace) */
.ebx-staff-active-filter{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 13px;padding:10px 15px;border:1px solid var(--border);background:var(--tint);border-radius:11px;font-size:13px}
.ebx-staff-active-filter>a,.ebx-staff-link-all{font-weight:750;color:var(--blue-strong)}
.ebx-staff-client-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.ebx-staff-client-history-toolbar h3{margin:0}
.ebx-staff-client-requests>a.ebx-staff-client-request-link,.ebx-staff-client-requests>.ebx-staff-client-request-static{display:grid;grid-template-columns:minmax(106px,1.2fr) minmax(76px,.9fr) minmax(105px,1fr) 24px;gap:13px;align-items:center;padding:12px 10px;min-width:0;border-top:1px solid var(--border);color:var(--text);border-radius:7px;text-decoration:none}
.ebx-staff-client-requests>a.ebx-staff-client-request-link:hover{background:var(--panel2);color:var(--text)}
.ebx-staff-client-requests>a.ebx-staff-client-request-link:focus-visible{outline:3px solid var(--focus);outline-offset:0}
.ebx-staff-client-requests>a.ebx-staff-client-request-link strong,.ebx-staff-client-requests>.ebx-staff-client-request-static strong{font-size:13px;overflow-wrap:anywhere}
.ebx-staff-client-requests>a.ebx-staff-client-request-link .ebx-staff-status,.ebx-staff-client-requests>.ebx-staff-client-request-static .ebx-staff-status{justify-self:start;color:var(--blue-strong);white-space:normal}
.ebx-staff-row-chevron{font-size:19px;justify-self:end;color:var(--blue-strong)!important}
.ebx-staff-analytics-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.ebx-staff-analytics-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.ebx-staff-analytic-row+.ebx-staff-analytic-row{margin-top:20px}
.ebx-staff-analytic-row>div:first-child,.ebx-staff-analytic-status{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text);font-size:13px}
.ebx-staff-analytic-row strong,.ebx-staff-analytic-status strong{font-size:16px;font-weight:780;tab-size:4;color:var(--text)}
.ebx-staff-bar{height:8px;background:var(--panel2);border:1px solid var(--border);border-radius:99px;overflow:hidden;margin-top:8px}
.ebx-staff-bar span{display:block;background:var(--blue);height:100%;border-radius:99px;min-width:0}
.ebx-staff-analytic-status{padding:10px 0;border-top:1px solid var(--border)}
@media(max-width:1200px){.ebx-staff-analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-staff-analytics-panels{grid-template-columns:1fr}}
@media(max-width:570px){.ebx-staff-client-requests>a.ebx-staff-client-request-link,.ebx-staff-client-requests>.ebx-staff-client-request-static{grid-template-columns:minmax(80px,1fr) auto 24px;gap:7px;padding:13px 6px}.ebx-staff-client-request-link>.ebx-staff-status,.ebx-staff-client-request-static>.ebx-staff-status{grid-column:1 / 3;grid-row:2}.ebx-staff-row-chevron{grid-column:3;grid-row:1 / 3}.ebx-staff-analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 3.0 beta 1.5: aligned branding, stable queue and non-intrusive feedback */
.ebx-staff-header-start{align-items:center;height:100%;gap:16px}
.ebx-staff-brand{height:100%;display:flex;align-items:center;justify-content:center;line-height:1}
.ebx-staff-brand .ebx-brand-pair{height:100%;display:flex;align-items:center;justify-content:center;line-height:0}
.ebx-staff-brand .ebx-brand-image{width:205px;height:auto;max-height:48px;object-fit:contain;object-position:center}
.ebx-staff-workspace-label{align-self:center;display:flex;align-items:center;line-height:1;min-height:30px;padding-left:16px;margin:0}
.ebx-staff-actions{min-width:300px}
.ebx-staff-actions>.ebx-staff-outline{margin:0 0 7px!important}
.ebx-staff-inline-status{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
.ebx-staff-inline-status select{flex:1 1 150px;min-width:140px;width:auto!important}
.ebx-staff-inline-status button{flex:none}
.ebx-staff-inline-status [role=status]{display:none!important}
.ebx-staff-toast{position:fixed;bottom:24px;right:24px;z-index:10010;max-width:min(380px,calc(100vw - 32px));padding:13px 17px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-left:4px solid var(--blue);border-radius:11px;box-shadow:0 13px 40px rgba(0,0,0,.22);font-size:13px;font-weight:650;line-height:1.5;pointer-events:none}
.ebx-staff-toast[hidden]{display:none!important}
.ebx-staff-toast.is-error{border-left-color:#ef5a67}
.ebx-staff-search{align-items:center;flex-wrap:wrap}
.ebx-staff-filter-label{flex:0 1 170px;min-width:145px}
.ebx-staff-filter-label select{width:100%;margin:0}
.ebx-staff-count-summary{font-size:12px;color:var(--muted);margin:0 0 10px}
.ebx-staff-reset-filters{font-weight:700;min-height:38px;display:inline-flex;align-items:center;padding:8px}
.ebx-staff-table-wrap td.ebx-staff-actions{vertical-align:middle}
@media(max-width:850px){.ebx-staff-brand .ebx-brand-pair{max-width:165px}.ebx-staff-brand .ebx-brand-image{width:160px}}
@media(max-width:570px){.ebx-staff-header-start{gap:8px}.ebx-staff-brand .ebx-brand-image{width:132px}.ebx-staff-filter-label{flex:1 1 calc(50% - 6px)}.ebx-staff-toast{bottom:16px;right:16px}}

.ebx-staff-customer-link{font-weight:650;text-decoration:none;color:var(--blue-strong)!important}.ebx-staff-customer-link:hover{text-decoration:underline}

/* EUROBOX 3.0 beta 1.6 — a consistent queue toolbar and separate preview column.
   Rules are strictly scoped to Staff Workspace to protect customer forms. */
.ebx-staff-shell .screen-reader-text{position:fixed!important;left:0!important;top:0!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ebx-staff-search{display:grid;grid-template-columns:minmax(190px,1fr) minmax(155px,185px) minmax(155px,185px) auto auto;gap:10px;align-items:center;flex-wrap:unset}
.ebx-staff-shell .ebx-staff-search>input,.ebx-staff-shell .ebx-staff-search>.ebx-staff-filter-label,.ebx-staff-shell .ebx-staff-search>button,.ebx-staff-shell .ebx-staff-search>.ebx-staff-reset-filters{margin:0;height:44px;min-height:44px;box-sizing:border-box}
.ebx-staff-search .ebx-staff-filter-label{min-width:0;width:100%;display:block;flex:none}
.ebx-staff-shell .ebx-staff-search input,.ebx-staff-shell .ebx-staff-search select{height:44px;min-height:44px;width:100%;line-height:22px;font-size:13px;padding:10px 36px 10px 12px}
.ebx-staff-shell .ebx-staff-search input{padding-right:12px}
.ebx-staff-search>.ebx-staff-reset-filters{justify-content:center;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--blue-strong);font-size:12px;padding:10px 14px;white-space:nowrap;text-decoration:none}
.ebx-staff-search>.ebx-staff-reset-filters:hover{background:var(--panel2)}
.ebx-staff-shell .ebx-staff-search>button{padding:10px 18px}
.ebx-staff-shell .ebx-staff-search select,.ebx-staff-shell .ebx-staff-inline-status select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394abc3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:18px;padding-right:36px}
.ebx-staff-queue-table{min-width:1010px;table-layout:fixed!important}
.ebx-staff-queue-table th:nth-child(1){width:122px}
.ebx-staff-queue-table th:nth-child(2){width:175px}
.ebx-staff-queue-table th:nth-child(3){width:104px}
.ebx-staff-queue-table th:nth-child(4){width:138px}
.ebx-staff-queue-table th:nth-child(5){width:111px}
.ebx-staff-queue-table th:nth-child(6){width:65px}
.ebx-staff-queue-table th:nth-child(7){width:300px}
.ebx-staff-queue-table :is(th,td){padding:12px 11px!important;vertical-align:middle;overflow-wrap:normal}
.ebx-staff-queue-table th.ebx-staff-preview-th,.ebx-staff-queue-table td.ebx-staff-preview-cell{text-align:center}
.ebx-staff-preview-th svg{display:inline-block;width:17px;height:17px;color:var(--muted);vertical-align:middle}
.ebx-staff-queue-table td.ebx-staff-preview-cell{width:65px}
.ebx-staff-shell button.ebx-staff-eye{width:42px;height:42px;min-width:42px;min-height:42px;padding:0!important;margin:0!important;border:1px solid var(--border)!important;background:var(--panel)!important;color:var(--blue-strong)!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.ebx-staff-eye svg{display:block;flex:none;width:19px;height:19px}
.ebx-staff-shell button.ebx-staff-eye:hover{background:var(--tint)!important;border-color:var(--blue)!important}
.ebx-staff-queue-table td.ebx-staff-actions{min-width:0;width:300px;vertical-align:middle;padding-left:8px!important}
.ebx-staff-queue-table .ebx-staff-inline-status{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;width:100%;min-width:0}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-inline-status select{flex:1 1 0;min-width:0;width:100%!important;height:42px!important;min-height:42px!important;padding:9px 34px 9px 12px;line-height:22px;font-size:13px}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-inline-status button{flex:0 0 auto;height:42px!important;min-height:42px!important;padding:10px 13px;font-size:12px}
@media(max-width:1100px){.ebx-staff-search{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-staff-search>input{grid-column:1/-1}}
@media(max-width:570px){.ebx-staff-search{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ebx-staff-search>input{grid-column:1/-1}.ebx-staff-filter-label{min-width:0!important}.ebx-staff-search>button,.ebx-staff-search>.ebx-staff-reset-filters{width:100%;justify-content:center}}

/* 3.0 beta 1.7: manager buyout desk (scoped entirely to Staff Workspace) */
.ebx-buyout-back{display:inline-flex;margin-bottom:16px;font-size:13px;font-weight:700}
.ebx-buyout-search{align-items:center}.ebx-buyout-reset{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:9px;border:1px solid var(--border);font-weight:700;white-space:nowrap}
.ebx-buyout-queue table{min-width:760px}.ebx-buyout-open{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:8px;background:var(--tint);font-size:12px;font-weight:750;white-space:nowrap}
.ebx-buyout-workspace{display:flex;flex-direction:column;gap:16px}.ebx-buyout-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.ebx-buyout-heading h1{margin-bottom:5px}.ebx-buyout-heading p{margin:0;color:var(--muted);font-size:12px}.ebx-buyout-state{padding:6px 12px;background:var(--tint);border-radius:50px;color:var(--blue-strong);font-size:12px;font-weight:800}
.ebx-buyout-workspace>.ebx-staff-note{margin:0}.ebx-buyout-context{display:flex;gap:15px;flex-wrap:wrap;padding:0 2px;color:var(--muted);font-size:12px}.ebx-buyout-context strong{color:var(--text)}
.ebx-buyout-section-title{margin:5px 0 0!important;font-size:17px!important}.ebx-buyout-shop{padding:0;overflow:hidden}.ebx-buyout-shop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:16px 20px}.ebx-buyout-shop-heading h3{margin:0}.ebx-buyout-shop-heading span{color:var(--muted);font-size:12px}
.ebx-buyout-items{display:grid;grid-template-columns:1fr}.ebx-buyout-item{padding:16px 20px;border-bottom:1px solid var(--border)}.ebx-buyout-item-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.ebx-buyout-item-title strong{font-size:14px;overflow-wrap:anywhere}.ebx-buyout-item-title span{font-size:12px;color:var(--muted);white-space:nowrap}.ebx-buyout-item>a{font-size:12px;font-weight:700}.ebx-buyout-muted{font-size:11px;color:var(--muted);margin:6px 0 0!important}
.ebx-buyout-item-fields{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) minmax(200px,1.2fr);gap:12px;margin-top:13px}.ebx-buyout-workspace label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}.ebx-buyout-workspace label output{display:block;padding:10px 0;font-size:13px;color:var(--text);font-weight:700}.ebx-buyout-fee{display:grid;grid-template-columns:minmax(110px,1fr) 115px;gap:8px;align-items:start}.ebx-buyout-fee .ebx-buyout-custom{display:flex;flex-direction:row;gap:4px;align-items:center}.ebx-buyout-fee .ebx-buyout-custom input{min-width:0;padding:10px 8px}
.ebx-buyout-shop-footer{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,.6fr) minmax(200px,1.3fr) minmax(150px,.8fr);gap:12px;padding:18px 20px}.ebx-buyout-shop>.ebx-buyout-muted{padding:0 20px 15px}.ebx-buyout-fx>p{font-size:12px;color:var(--muted)}.ebx-buyout-fx-row{display:grid;grid-template-columns:50px 1fr 1fr 1.2fr;align-items:end;gap:12px;margin:13px 0}.ebx-buyout-fx-row>strong{padding-bottom:11px}.ebx-buyout-payment{max-width:330px;margin-top:16px}
.ebx-buyout-save-bar{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.ebx-buyout-save-bar span{font-size:12px;color:var(--muted)}.ebx-buyout-totals{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.ebx-buyout-totals>div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);padding:10px 0}.ebx-buyout-totals dt{font-size:12px;color:var(--muted)}.ebx-buyout-totals dd{margin:0;font-size:13px;font-weight:750;color:var(--text);white-space:nowrap}.ebx-buyout-totals .is-total{grid-column:1/-1;border-top:2px solid var(--border);border-bottom:0;margin-top:8px;padding-top:16px}.ebx-buyout-totals .is-total dd{font-size:22px;color:var(--blue-strong)}
.ebx-buyout-alert{padding:12px;background:var(--panel2);border:1px solid var(--border);border-radius:9px;color:var(--muted)}.ebx-buyout-success{color:var(--blue-strong);font-weight:750}.ebx-buyout-verify{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.ebx-buyout-verify label{padding:13px;border:1px solid var(--border);border-radius:10px}.ebx-buyout-verify label span{font-weight:450;color:var(--text)}.ebx-buyout-check{flex-direction:row!important;align-items:center;gap:9px!important;margin:16px 0}.ebx-buyout-check input{width:18px;height:18px;flex:none}.ebx-buyout-confirm{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.ebx-buyout-confirm label{flex:1;min-width:220px}.ebx-buyout-grand-total{font-size:27px;font-weight:850;color:var(--blue-strong)}
.ebx-buyout-history ol{margin:0;padding-left:22px}.ebx-buyout-history li{padding:9px 0;border-bottom:1px solid var(--border);font-size:12px}.ebx-buyout-history li:last-child{border:0}.ebx-buyout-history li span{display:block;color:var(--muted);margin-top:3px}.ebx-buyout-item .ebx-private-attachments{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:10px 0 0}.ebx-buyout-item .ebx-private-attachments a{display:block;padding:6px 9px;background:var(--tint);border-radius:7px;font-size:11px}
@media(max-width:1200px){.ebx-buyout-item-fields,.ebx-buyout-shop-footer{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-buyout-fx-row{grid-template-columns:55px 1fr 1fr}.ebx-buyout-fx-row label:last-child{grid-column:2/-1}}
@media(max-width:650px){.ebx-buyout-search{display:grid;grid-template-columns:1fr 1fr}.ebx-buyout-search>input:not([type=hidden]){grid-column:1/-1}.ebx-buyout-search button,.ebx-buyout-reset{min-width:0;justify-self:stretch}.ebx-buyout-item-fields,.ebx-buyout-shop-footer,.ebx-buyout-totals,.ebx-buyout-verify{grid-template-columns:1fr}.ebx-buyout-fx-row{grid-template-columns:1fr}.ebx-buyout-fx-row label:last-child{grid-column:auto}.ebx-buyout-fx-row>strong{padding:0}.ebx-buyout-item,.ebx-buyout-shop-heading{padding-left:14px;padding-right:14px}.ebx-buyout-shop-footer{padding:14px}.ebx-buyout-totals .is-total{grid-column:1}}
.ebx-buyout-workspace .ebx-buyout-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}.ebx-buyout-field>span{display:block}.ebx-buyout-fee>.ebx-buyout-custom{font-size:11px}

/* Beta 1.8: shared controls and spacing for ALL Workspace sections. */
.ebx-staff-shell{--ebx-control-height:44px}
.ebx-staff-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box!important;min-height:var(--ebx-control-height)!important;font-size:13px!important;border-radius:9px!important;margin:0}
.ebx-staff-shell select{height:var(--ebx-control-height)!important;min-height:var(--ebx-control-height)!important;padding:0 37px 0 12px!important;line-height:normal!important;appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394abc3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:18px!important}
.ebx-staff-shell button:not(.ebx-staff-nav-toggle):not(.ebx-staff-theme-toggle):not(.ebx-staff-eye):not([data-ebx-staff-close-dialog]){min-height:var(--ebx-control-height)!important;height:var(--ebx-control-height);padding:0 16px!important;line-height:1.3!important}
.ebx-staff-shell .ebx-team-create,.ebx-staff-shell .ebx-staff-table-wrap,.ebx-staff-shell .ebx-staff-note{margin-top:14px;margin-bottom:16px}
.ebx-staff-team>.ebx-staff-table-wrap{margin-top:20px}
.ebx-staff-shell .ebx-team-action-body{gap:16px}
.ebx-staff-shell .ebx-team-action-body form{gap:12px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-team-action-body form:last-child{padding-bottom:0;border:0}
.ebx-staff-shell .ebx-team-action-body form.ebx-team-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px}
.ebx-team-profile-form>label{min-width:0!important}
.ebx-team-profile-form>button{justify-self:start}
.ebx-staff-shell .ebx-staff-calculate,.ebx-staff-shell .ebx-buyout-open,.ebx-staff-shell .ebx-buyout-reset{display:inline-flex;align-items:center;justify-content:center;min-height:var(--ebx-control-height);padding:0 13px;border:1px solid var(--border);background:var(--panel);border-radius:9px;color:var(--blue-strong);font-weight:750;font-size:12px;white-space:nowrap;text-decoration:none}
.ebx-staff-shell .ebx-staff-calculate{margin-left:8px}
.ebx-staff-shell .ebx-staff-status-save{width:44px;min-width:44px;font-size:19px!important;padding:0!important}
.ebx-staff-request-link{color:var(--blue-strong)!important;text-decoration:none;font-weight:750}
.ebx-staff-request-link:hover{text-decoration:underline}
.ebx-buyout-search{display:grid;grid-template-columns:minmax(190px,1fr) minmax(160px,230px) auto auto;gap:11px;align-items:center}
.ebx-staff-shell .ebx-buyout-filter-label{width:100%;min-width:0}
.ebx-buyout-queue table{min-width:850px}
.ebx-buyout-preview-cell,.ebx-buyout-preview-th{text-align:center!important;width:80px}
.ebx-buyout-preview-cell .ebx-staff-eye{vertical-align:middle}
.ebx-buyout-workspace{gap:21px}
.ebx-buyout-item:last-child{border-bottom:0}
.ebx-buyout-shop-footer{border-top:2px solid var(--border);margin-top:3px}
.ebx-buyout-item-title{justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.ebx-buyout-item-title strong{flex:none;max-width:100%}
.ebx-buyout-item-title .ebx-buyout-quantity{display:inline-flex;align-items:center;justify-content:center;padding:3px 9px;border:1px solid var(--border);border-radius:7px;background:var(--tint);color:var(--blue-strong);font-size:12px;font-weight:800;white-space:nowrap}
.ebx-buyout-fee{align-items:center}
.ebx-buyout-custom:has(input:disabled){opacity:.45;cursor:not-allowed}
.ebx-buyout-custom input:disabled{background:var(--panel2)!important;cursor:not-allowed}
.ebx-buyout-action-needed{border:2px solid var(--blue)!important;background:var(--tint)!important}
.ebx-buyout-action-needed>strong{font-size:16px;color:var(--blue-strong)}
.ebx-staff-shell .ebx-buyout-totals>div:not(.is-total):nth-last-child(2){border-bottom:0}
@media(max-width:950px){.ebx-buyout-search{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-buyout-search>input{grid-column:1/-1}}
@media(max-width:650px){.ebx-staff-shell .ebx-team-action-body form.ebx-team-profile-form{grid-template-columns:1fr}.ebx-buyout-search>input{grid-column:1/-1}.ebx-buyout-search>.ebx-buyout-filter-label{grid-column:1/-1}.ebx-buyout-item-title strong{flex:0 1 auto}}

/* Beta 1.9 — semantic status colors. State names remain canonical, no artificial status transitions. */
.ebx-staff-shell .ebx-staff-status[data-ebx-status="new"]{background:#eaf2ff!important;color:#285b99!important;border-color:#b5cdee!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="new"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="new"]{background:#1a3759!important;color:#a7d0ff!important;border-color:#365d88!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="review"]{background:#f0e9ff!important;color:#6743a4!important;border-color:#d8c4ff!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="review"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="review"]{background:#37284c!important;color:#d5b9ff!important;border-color:#635087!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="awaiting_payment"]{background:#fff1d7!important;color:#915800!important;border-color:#f2ca79!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="awaiting_payment"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="awaiting_payment"]{background:#4a3517!important;color:#ffd28a!important;border-color:#83602a!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="awaiting_purchase"]{background:#d9f7ec!important;color:#126948!important;border-color:#95d8bd!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="awaiting_purchase"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="awaiting_purchase"]{background:#173d36!important;color:#94e9c3!important;border-color:#357a64!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="processing"]{background:#e8e7ff!important;color:#4944a3!important;border-color:#c7c5fa!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="processing"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="processing"]{background:#2a2d51!important;color:#c3c7ff!important;border-color:#505d8f!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="awaiting_warehouse"]{background:#fff1d7!important;color:#915800!important;border-color:#f2ca79!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="awaiting_warehouse"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="awaiting_warehouse"]{background:#4a3517!important;color:#ffd28a!important;border-color:#83602a!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="received"]{background:#dff5fc!important;color:#136b86!important;border-color:#9cd9e9!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="received"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="received"]{background:#173f51!important;color:#a6e9fb!important;border-color:#357587!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="received_issue"]{background:#ffe7e7!important;color:#a53643!important;border-color:#f1b0b7!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="received_issue"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="received_issue"]{background:#4a292e!important;color:#ffb4ba!important;border-color:#8e4850!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="partially_received"]{background:#fff1d7!important;color:#915800!important;border-color:#f2ca79!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="partially_received"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="partially_received"]{background:#4a3517!important;color:#ffd28a!important;border-color:#83602a!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="expected"]{background:#eaf2ff!important;color:#285b99!important;border-color:#b5cdee!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="expected"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="expected"]{background:#1a3759!important;color:#a7d0ff!important;border-color:#365d88!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="receiving"]{background:#e8e7ff!important;color:#4944a3!important;border-color:#c7c5fa!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="receiving"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="receiving"]{background:#2a2d51!important;color:#c3c7ff!important;border-color:#505d8f!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="unidentified"]{background:#ffe7e7!important;color:#a53643!important;border-color:#f1b0b7!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="unidentified"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="unidentified"]{background:#4a292e!important;color:#ffb4ba!important;border-color:#8e4850!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="sent"]{background:#e8e7ff!important;color:#4944a3!important;border-color:#c7c5fa!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="sent"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="sent"]{background:#2a2d51!important;color:#c3c7ff!important;border-color:#505d8f!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="completed"]{background:#d9f7ec!important;color:#126948!important;border-color:#95d8bd!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="completed"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="completed"]{background:#173d36!important;color:#94e9c3!important;border-color:#357a64!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="cancelled"]{background:#ffe7e7!important;color:#a53643!important;border-color:#f1b0b7!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="cancelled"],html[data-ebx-staff-theme=dark] .ebx-staff-shell .ebx-staff-status[data-ebx-status="cancelled"]{background:#4a292e!important;color:#ffb4ba!important;border-color:#8e4850!important}

/* Dedicated action column keeps select+check button on one line on all supported widths. */
.ebx-staff-shell .ebx-staff-queue-table{min-width:1045px;table-layout:fixed!important}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(1){width:122px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(2){width:160px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(3){width:98px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(4){width:166px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(5){width:111px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(6){width:62px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(7){width:270px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(8){width:56px}
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-actions{width:270px;min-width:0}
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-calc-cell,
.ebx-staff-shell .ebx-staff-queue-table th.ebx-staff-calc-th{text-align:center;padding-inline:5px!important;white-space:nowrap}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-calc-th>svg{width:17px;height:17px;vertical-align:middle}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-calc-icon{width:44px;min-width:44px;height:44px;min-height:44px;padding:0!important;margin:0!important;border-radius:9px}
.ebx-staff-shell .ebx-staff-calc-icon svg{width:20px;height:20px;display:block}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-inline-status{gap:6px;white-space:nowrap}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-inline-status select,
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-inline-status button{height:44px!important;min-height:44px!important}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-inline-status button{flex:0 0 44px}
.ebx-staff-shell .ebx-staff-no-action{color:var(--muted)}

/* Beta 1.9: manager per-shop purchasing module. Recorded outcomes only. */
.ebx-shop-purchase-panel{display:grid;gap:13px}
.ebx-shop-purchase-panel>h2{margin:0}
.ebx-shop-purchase-item{background:var(--panel2);border:1px solid var(--border);border-radius:11px;padding:16px;min-width:0}
.ebx-shop-purchase-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ebx-shop-purchase-heading h3{margin:0}
.ebx-shop-purchase-item p{margin:6px 0 10px}
.ebx-shop-purchase-form{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) minmax(175px,1.3fr) auto;gap:10px;align-items:end}
.ebx-staff-shell .ebx-shop-purchase-form>label{display:grid;gap:5px;min-width:0;color:var(--muted);font-weight:700;font-size:12px}
.ebx-staff-shell .ebx-shop-purchase-form :is(input,select){width:100%;min-width:0}
.ebx-staff-shell .ebx-shop-purchase-form button{white-space:nowrap}
.ebx-shop-purchase-progress{margin:0;color:var(--text)}
@media(max-width:1090px){.ebx-shop-purchase-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ebx-shop-purchase-form{grid-template-columns:1fr}}

/* Beta 2.0: purchase cost, promo code and notes are separate readable fields. */
.ebx-shop-purchase-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px}
.ebx-staff-shell .ebx-shop-purchase-form button{min-height:44px;width:100%;white-space:normal}
.ebx-shop-purchase-item{display:grid;gap:9px}
.ebx-shop-cost-summary{display:flex;align-items:baseline;gap:8px 12px;flex-wrap:wrap;border-top:1px solid var(--border);padding:13px 0 2px}
.ebx-shop-cost-summary small{flex-basis:100%;color:var(--muted)}
@media(max-width:760px){.ebx-shop-purchase-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ebx-shop-purchase-form{grid-template-columns:1fr}}

/* Beta 2.1 — warehouse workspace and discreet accessible focus */
.ebx-staff-shell :is(a,button,summary):focus:not(:focus-visible){outline:none!important}
.ebx-staff-shell :is(a,button,summary):focus-visible{outline:2px solid var(--focus)!important;outline-offset:2px!important}
.ebx-staff-shell .ebx-wh-search select{flex:0 1 230px;min-width:160px}
.ebx-staff-reset-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--border);border-radius:9px;font-weight:650;white-space:nowrap}
.ebx-wh-pagination{display:flex;align-items:center;gap:16px;margin:16px 0;flex-wrap:wrap}
.ebx-wh-unknown{margin-top:24px}.ebx-wh-unknown>summary{cursor:pointer;font-weight:750;color:var(--blue-strong)}
.ebx-wh-unknown form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}
.ebx-wh-unknown form>input[type=hidden]{display:none}
.ebx-wh-unknown label{display:grid;gap:6px;font-size:12px;font-weight:700}
.ebx-wh-unknown form button{justify-self:start;align-self:end}
.ebx-staff-warehouse-back{margin:0 0 14px}
.ebx-staff-receiving{min-width:0;color:var(--text)}
.ebx-staff-receiving .ebx-receiving-core{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:14px!important;margin:14px 0!important;padding:20px!important}
.ebx-staff-receiving h2,.ebx-staff-receiving h3{color:var(--text);margin:12px 0}
.ebx-staff-receiving .widefat{color:var(--text)!important;background:var(--panel2)!important;border-collapse:collapse;width:100%;min-width:670px}
.ebx-staff-receiving .widefat :is(th,td){padding:10px 12px;border:1px solid var(--border);color:var(--text)}
.ebx-staff-receiving .widefat th{background:var(--panel2)}
.ebx-staff-receiving div[style*="overflow-x:auto"]{max-width:100%;overflow-x:auto!important;border-radius:10px}
.ebx-staff-receiving .notice{background:var(--panel2)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:9px;padding:12px!important}
.ebx-staff-receiving form{margin:15px 0 22px}
.ebx-staff-receiving form label{color:var(--text);font-size:13px}
.ebx-staff-receiving input:not([type=checkbox]):not([type=hidden]):not([type=file]),
.ebx-staff-receiving select,.ebx-staff-receiving textarea{width:auto;max-width:100%;background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:10px;min-height:44px}
.ebx-staff-receiving input[type=file]{max-width:100%}
.ebx-staff-receiving button.button{min-height:44px!important;padding:9px 13px!important}
.ebx-staff-receiving .ebx-receiving-core hr{border:0;border-top:1px solid var(--border);margin:22px 0}
.ebx-shop-dispatch-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;margin-top:14px;align-items:end}
.ebx-shop-dispatch-form label{display:grid;gap:6px;font-size:12px;font-weight:650;color:var(--muted)}
.ebx-shop-dispatch-form button{height:44px;align-self:end}
@media(max-width:900px){.ebx-shop-dispatch-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-wh-search{flex-wrap:wrap}}
@media(max-width:570px){.ebx-shop-dispatch-form,.ebx-wh-unknown form{grid-template-columns:1fr}.ebx-wh-search select{width:100%;flex:1 1 100%}.ebx-staff-receiving .ebx-receiving-core{padding:14px!important}}

/* Beta 2.2 — warehouse: unregistered store purchases and consent-based live camera. */
.ebx-staff-shell .ebx-wh-pending-panel{margin:19px 0 22px;padding:18px 20px;border:1px solid var(--border);border-radius:13px;background:var(--panel)}
.ebx-staff-shell .ebx-wh-pending-head{margin-bottom:12px}
.ebx-staff-shell .ebx-wh-pending-head h2{font-size:17px;margin:0 0 7px}
.ebx-staff-shell .ebx-wh-pending-head p{font-size:12px;color:var(--muted);margin:0}
.ebx-staff-shell .ebx-wh-pending-item{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2fr);gap:16px;align-items:end;padding:14px 0;border-top:1px solid var(--border)}
.ebx-staff-shell .ebx-wh-pending-item>div{display:grid;gap:4px}
.ebx-staff-shell .ebx-wh-pending-item small{color:var(--muted)}
.ebx-staff-shell .ebx-wh-pending-item form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.ebx-staff-shell .ebx-wh-pending-item form>label:not(.ebx-wh-confirm){display:grid;gap:5px;min-width:160px;flex:1;font-size:12px;font-weight:650}
.ebx-staff-shell .ebx-wh-confirm{display:flex;gap:8px;align-items:center;font-size:12px;max-width:275px}
.ebx-staff-shell .ebx-wh-confirm input{flex:none;min-height:18px;width:18px;height:18px}
.ebx-staff-shell .ebx-wh-pending-item input:not([type=checkbox]){min-height:44px}
.ebx-staff-shell .ebx-wh-pending-item button{min-height:44px}
.ebx-staff-shell .ebx-staff-receiving .ebx-receiving-core{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:13px!important}
.ebx-staff-shell .ebx-receiving-core :is(input,select,textarea){background:var(--panel2);border:1px solid var(--border);border-radius:8px;color:var(--text)}
.ebx-staff-shell .ebx-receiving-core :is(button,input[type=file],select){min-height:44px}
.ebx-staff-shell .ebx-receiving-core :is(h2,h3,h4){color:var(--text)}
.ebx-staff-shell .ebx-camera-dialog{width:min(760px,calc(100vw - 28px));max-height:95dvh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:15px;padding:20px;box-shadow:0 24px 75px rgba(0,0,0,.38)}
.ebx-staff-shell .ebx-camera-dialog::backdrop{background:rgba(4,13,28,.82)}
.ebx-staff-shell .ebx-camera-dialog :is(video,img){display:block;max-height:65dvh;width:100%;height:auto;object-fit:contain;border-radius:8px;background:#050e19;margin:12px 0}
.ebx-staff-shell .ebx-camera-dialog [hidden]{display:none!important}
.ebx-staff-shell .ebx-camera-actions{display:flex;gap:9px;flex-wrap:wrap}
.ebx-staff-shell .ebx-camera-actions button{min-height:44px;padding:8px 15px;background:var(--panel2);border:1px solid var(--border);color:var(--text);border-radius:8px}
.ebx-staff-shell .ebx-camera-actions button[data-ebx-camera-shot],.ebx-staff-shell .ebx-camera-actions button[data-ebx-camera-use]{background:var(--blue);color:#092738;border-color:var(--blue)}
.ebx-staff-shell .ebx-camera-dialog [data-ebx-camera-message],.ebx-staff-shell .ebx-camera-form-message{font-size:12px;color:var(--muted);margin:10px 0}
.ebx-staff-shell .ebx-camera-saved{margin:14px 0;border-top:1px solid var(--border);padding-top:12px}
.ebx-staff-shell .ebx-camera-saved>div{padding:8px 0;border-bottom:1px solid var(--border)}
@media(max-width:900px){.ebx-staff-shell .ebx-wh-pending-item{grid-template-columns:1fr}}

/* EUROBOX 3.0 Beta 2.3 — unified warehouse UX; no global styles for text/code. */
.ebx-staff-shell input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;display:inline-grid;place-items:center;
  width:20px;height:20px;min-width:20px;min-height:20px;margin:0;
  background:var(--panel2);border:1.5px solid var(--border);border-radius:6px;
  box-shadow:none;vertical-align:middle;cursor:pointer;flex:none;transition:background .12s,border-color .12s;
}
.ebx-staff-shell input[type="checkbox"]::after{
  content:"";display:block;width:10px;height:6px;border:solid #07192b;
  border-width:0 0 2.5px 2.5px;transform:rotate(-45deg) translate(1px,-1px);
  opacity:0;
}
.ebx-staff-shell input[type="checkbox"]:checked{background:#38b9f0;border-color:#38b9f0}
.ebx-staff-shell input[type="checkbox"]:checked::after{opacity:1}
.ebx-staff-shell input[type="checkbox"]:focus-visible{outline:3px solid var(--blue-strong);outline-offset:3px}
.ebx-staff-shell input[type="checkbox"]:disabled{opacity:.45;cursor:not-allowed}
.ebx-staff-receiving .ebx-receiving-core{padding:clamp(16px,2vw,26px)!important;margin:16px 0!important}
.ebx-staff-receiving .ebx-receive-intro,.ebx-staff-receiving .ebx-receive-step-desc{color:var(--muted);line-height:1.55;max-width:100%;margin:8px 0 18px}
.ebx-staff-receiving .ebx-receive-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:12px}
.ebx-staff-receiving .ebx-receive-items{min-width:820px;border:0!important;table-layout:fixed}
.ebx-staff-receiving .ebx-receive-items :is(td,th){vertical-align:middle;text-align:center;padding:14px 11px;line-height:1.45}
.ebx-staff-receiving .ebx-receive-items :is(td,th):first-child{width:32%;text-align:left}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(2),
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(3){width:11%}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(4){width:12%}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(5){width:11%}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(6){width:23%}
.ebx-staff-receiving .ebx-receive-product strong{display:block;overflow-wrap:anywhere;line-height:1.45}
.ebx-staff-receiving .ebx-receive-product small{display:block;color:var(--muted);margin:5px 0}
.ebx-staff-receiving .ebx-receive-product a{display:inline-block;margin:3px 5px 0 0}
.ebx-staff-receiving .ebx-receive-items input[type=number]{width:88px!important;max-width:100%;text-align:center;min-width:0}
.ebx-staff-receiving .ebx-receive-items input[name^="item_note"]{width:100%!important;min-width:0;box-sizing:border-box}
.ebx-staff-receiving .ebx-wh-hint{display:inline-grid;place-items:center;vertical-align:middle;width:19px;height:19px;
  border:1px solid var(--border);border-radius:50%;font-size:11px;font-weight:800;color:var(--blue-strong);cursor:help;
  background:var(--panel);margin-left:4px}
.ebx-staff-receiving .ebx-receive-must-check{display:flex!important;align-items:flex-start;gap:13px;
  padding:16px 18px;margin:23px 0;border:2px solid var(--blue-strong);border-radius:12px;
  background:var(--panel2);color:var(--text);cursor:pointer;line-height:1.4}
.ebx-staff-receiving .ebx-receive-must-check strong{display:block;font-size:15px}
.ebx-staff-receiving .ebx-receive-must-check small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.ebx-staff-receiving .ebx-receive-must-check input{margin-top:2px}
.ebx-staff-receiving .ebx-receive-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0 24px;align-items:start}
.ebx-staff-receiving .ebx-receive-field-wide{grid-column:1/-1}
.ebx-staff-receiving .ebx-receive-measurements{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0 22px}
.ebx-staff-receiving .ebx-receive-fields label,.ebx-staff-receiving .ebx-receive-measurements label,
.ebx-staff-receiving .ebx-camera-form-message{min-width:0}
.ebx-staff-receiving .ebx-receive-fields label,.ebx-staff-receiving .ebx-receive-measurements label{
  display:block!important;font-weight:650;color:var(--muted);line-height:1.35}
.ebx-staff-receiving .ebx-receive-fields :is(input:not([type=checkbox]),textarea,select),
.ebx-staff-receiving .ebx-receive-measurements input{display:block;width:100%!important;min-width:0;max-width:100%;margin-top:8px;box-sizing:border-box}
.ebx-staff-receiving .ebx-receive-fields textarea{min-height:84px;resize:vertical}
.ebx-staff-receiving .ebx-receive-checkrow{display:flex!important;gap:12px;align-items:center;margin:18px 0;padding:8px 0;cursor:pointer}
.ebx-staff-receiving .ebx-inline-help{color:var(--muted);font-weight:400}
.ebx-staff-receiving .ebx-receive-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 28px;align-items:center}
.ebx-staff-receiving .ebx-receive-actions button{margin:0!important}
.ebx-staff-receiving .ebx-receive-problem{padding:18px;margin:20px 0;border:1px solid var(--border);background:var(--panel2);border-radius:12px}
.ebx-staff-receiving .ebx-receive-problem h3{margin:0 0 8px}
.ebx-staff-receiving .ebx-receive-problem .ebx-receive-fields{margin:16px 0}
.ebx-staff-receiving .ebx-photo-fields{margin-bottom:12px}
.ebx-staff-receiving .ebx-photo-fields select:disabled{opacity:.5;cursor:not-allowed}
.ebx-staff-receiving [data-ebx-camera-open]:disabled{opacity:.5;cursor:not-allowed}
.ebx-staff-receiving input[type=file]{display:block;width:100%;padding:9px 12px;min-height:44px;border:1px solid var(--border);border-radius:9px;color:var(--text);background:var(--panel2)}
.ebx-staff-receiving input[type=file]::file-selector-button{background:var(--panel);border:1px solid var(--border);color:var(--text);padding:7px 12px;border-radius:7px;margin-right:12px;cursor:pointer}
@media(max-width:730px){
  .ebx-staff-receiving .ebx-receive-fields{grid-template-columns:1fr}
  .ebx-staff-receiving .ebx-receive-measurements{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .ebx-staff-receiving .ebx-receive-measurements{grid-template-columns:1fr 1fr;gap:10px}
  .ebx-staff-receiving .ebx-receive-actions button{width:100%}
}
.ebx-staff-shell .ebx-parcel-request-card{display:grid;gap:20px}
.ebx-staff-shell .ebx-parcel-request-head{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ebx-staff-shell .ebx-parcel-request-head>div{padding:15px;border:1px solid var(--border);border-radius:10px}
.ebx-staff-shell .ebx-parcel-request-head p{margin:10px 0 0}
.ebx-staff-shell .ebx-parcel-request-arrival{border-top:1px solid var(--border);padding-top:18px}
.ebx-staff-shell .ebx-parcel-request-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.ebx-staff-shell .ebx-parcel-request-details>div{display:grid;gap:6px;min-width:0;padding:11px;border:1px solid var(--border);border-radius:9px}
.ebx-staff-shell .ebx-parcel-request-details small{color:var(--muted)}
.ebx-staff-shell .ebx-parcel-request-details strong{overflow-wrap:anywhere}
.ebx-staff-shell .ebx-staff-warehouse-action{display:inline-flex;min-height:44px;align-items:center;padding:0 12px;border:1px solid var(--border);border-radius:9px;color:var(--blue-strong);white-space:nowrap}
@media(max-width:600px){.ebx-staff-shell .ebx-parcel-request-head,.ebx-staff-shell .ebx-parcel-request-details{grid-template-columns:1fr}}

/* Beta 2.4: explicit feedback for every redirected receiving action */
.ebx-staff-receiving .ebx-receive-feedback{display:flex;flex-direction:column;gap:6px;padding:17px 20px;margin:16px 0 24px;border-radius:12px;border:1px solid #a17835;background:rgba(213,155,52,.12);color:var(--text);scroll-margin-top:110px}
.ebx-staff-receiving .ebx-receive-feedback strong{font-weight:750}
.ebx-staff-receiving .ebx-receive-feedback.is-success{border-color:#398a7e;background:rgba(31,154,137,.11)}
.ebx-staff .ebx-delivery-billing-form,.ebx-staff-shell .ebx-delivery-billing-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.ebx-staff-shell .ebx-delivery-billing-form label{display:flex;flex-direction:column;gap:7px;min-width:0}
.ebx-staff-shell .ebx-delivery-billing-form input,.ebx-staff-shell .ebx-delivery-billing-form select{width:100%;box-sizing:border-box;min-height:44px}
.ebx-staff-shell .ebx-delivery-billing-form .ebx-wide{grid-column:1/-1}
.ebx-staff-shell .ebx-delivery-billing-form button{justify-self:start;min-height:44px}
@media(max-width:680px){.ebx-staff-shell .ebx-delivery-billing-form{grid-template-columns:1fr}}

/* Internal receipt marker is secondary to the one EB card number. */
.ebx-staff-table-wrap td small.ebx-staff-muted{display:block;margin-top:5px;font-size:12px;color:var(--muted);font-weight:400}

/* Beta 2.5: immediate, non-authoritative count preview during receiving. */
.ebx-staff-receiving .ebx-receive-qty-readout{margin:12px 0 18px;padding:11px 14px;border:1px solid var(--border,#344860);border-radius:10px;font-weight:650}
.ebx-staff-receiving .ebx-receive-qty-readout[data-state=ok]{border-color:#2b958e;background:rgba(30,155,140,.09)}
.ebx-staff-receiving .ebx-receive-qty-readout[data-state=warning]{border-color:#ba842f;background:rgba(203,151,59,.08)}
.ebx-staff-receiving .ebx-receive-feedback ul{margin:8px 0 10px;padding-left:23px}
.ebx-staff-receiving .ebx-receive-feedback li{margin-bottom:4px;line-height:1.45}

/* Beta 2.6 — operational links, non-destructive receiving and uncluttered buyout fields. */
.ebx-staff-shell .ebx-staff-process-state{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin:0 0 6px}
.ebx-staff-shell .ebx-staff-next-step{display:inline-flex;align-items:center;min-height:36px;color:var(--blue-strong);font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap}
.ebx-staff-shell .ebx-staff-next-step:hover{text-decoration:underline}
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-actions{white-space:normal}
.ebx-staff-shell .ebx-receiving-core button.button.ebx-receive-partial{background:var(--panel2)!important;color:var(--text)!important;border:1px solid var(--border)!important;box-shadow:none!important;font-weight:650!important;opacity:.82}
.ebx-staff-shell .ebx-receiving-core button.button.ebx-receive-partial:hover{opacity:1;background:var(--tint)!important;border-color:var(--blue-strong)!important}
.ebx-staff-shell .ebx-buyout-action-save{display:flex;flex-direction:column;gap:22px}
.ebx-staff-shell .ebx-buyout-item-fields{column-gap:20px;row-gap:18px;margin-top:19px}
.ebx-staff-shell .ebx-buyout-shop-footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px;padding:22px 24px}
.ebx-staff-shell .ebx-buyout-fee{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,.7fr);gap:12px;align-items:start;width:100%;min-width:0}
.ebx-staff-shell .ebx-buyout-fee>select{width:100%;min-width:0}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-custom{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;margin:0;font-size:11px;font-weight:650}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-custom>span{white-space:normal;line-height:1.2}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-custom input{width:100%;min-width:0;min-height:44px}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-custom input:disabled{opacity:.48;cursor:not-allowed}
.ebx-staff-shell .ebx-buyout-shop-footer .ebx-buyout-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.ebx-staff-shell .ebx-buyout-save-bar{margin-top:4px;gap:18px;align-items:center}
.ebx-staff-shell .ebx-buyout-next-step{margin:14px 0 3px}
.ebx-staff-shell .ebx-delivery-ready-panel{margin:18px 0 24px}
.ebx-staff-shell .ebx-delivery-ready-panel>p,.ebx-staff-shell .ebx-delivery-card-panel>p{color:var(--muted);font-size:13px}
.ebx-staff-shell .ebx-delivery-ready-table{width:100%;min-width:630px}
.ebx-staff-shell .ebx-delivery-ready-table th:last-child,.ebx-staff-shell .ebx-delivery-ready-table td:last-child{text-align:right}
.ebx-staff-shell .ebx-delivery-card-panel{margin-bottom:26px}
.ebx-staff-shell .ebx-delivery-lookup{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;margin-top:16px}
.ebx-staff-shell .ebx-delivery-lookup label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;font-weight:700;min-width:0}
.ebx-staff-shell .ebx-delivery-lookup input{width:100%;min-height:44px}
.ebx-staff-shell .ebx-delivery-lookup button{white-space:nowrap}
@media(max-width:860px){.ebx-staff-shell .ebx-buyout-item-fields{grid-template-columns:1fr}.ebx-staff-shell .ebx-buyout-shop-footer{grid-template-columns:1fr}}
@media(max-width:620px){.ebx-staff-shell .ebx-delivery-lookup{grid-template-columns:1fr}.ebx-staff-shell .ebx-delivery-lookup button{width:100%}}
.ebx-staff-shell .ebx-staff-queue-table select.ebx-staff-process-select{width:100%;min-width:0;height:44px!important;opacity:.65;cursor:not-allowed;font-size:12px!important}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-fee-choice{display:flex;flex-direction:column;gap:6px;min-width:0}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-fee-choice>span{font-size:11px;line-height:1.2}

/* Beta 2.7: final packing and delivery pricing live within the single EB card. */
.ebx-staff-shell .ebx-eb-delivery{margin:24px 0;scroll-margin-top:110px;display:block}
.ebx-staff-shell .ebx-eb-delivery>p{margin:12px 0 16px;line-height:1.55}
.ebx-staff-shell .ebx-delivery-source{background:var(--panel2);border:1px solid var(--border);border-radius:10px;padding:14px 17px}
.ebx-staff-shell .ebx-delivery-billing-form{margin-top:20px;gap:18px 20px}
.ebx-staff-shell .ebx-delivery-quote-preview{background:var(--panel2);border:1px solid var(--border);border-radius:11px;padding:20px;margin:3px 0}
.ebx-staff-shell .ebx-delivery-quote-preview h3{margin:0 0 15px;font-size:16px}
.ebx-staff-shell .ebx-delivery-quote-preview p{margin:0;color:var(--muted)}
.ebx-staff-shell .ebx-delivery-quote-preview dl{margin:0;max-width:660px;display:grid;gap:8px}
.ebx-staff-shell .ebx-delivery-quote-preview dl>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);padding:6px 0}
.ebx-staff-shell .ebx-delivery-quote-preview dt{font-weight:500;color:var(--muted)}
.ebx-staff-shell .ebx-delivery-quote-preview dd{margin:0;font-weight:650;white-space:nowrap}
.ebx-staff-shell .ebx-delivery-quote-preview .ebx-delivery-total{border-bottom:0;border-top:2px solid var(--border);padding:14px 0 0;color:var(--blue-strong)}
.ebx-staff-shell .ebx-delivery-quote-preview .ebx-delivery-total dt,.ebx-staff-shell .ebx-delivery-quote-preview .ebx-delivery-total dd{font-weight:800;color:var(--blue-strong)}
.ebx-staff-shell .ebx-delivery-final-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:12px!important;border:1px solid var(--border);border-radius:11px;padding:16px;background:var(--panel2);line-height:1.4}
.ebx-staff-shell .ebx-delivery-final-check input{width:20px!important;min-width:20px;min-height:20px!important;height:20px;margin:1px 0}
.ebx-staff-shell .ebx-delivery-submit{margin-top:5px}
.ebx-staff-shell .ebx-delivery-submit button{min-height:44px}
@media(max-width:540px){.ebx-staff-shell .ebx-delivery-quote-preview{padding:14px}.ebx-staff-shell .ebx-delivery-quote-preview dl>div{gap:8px}}

/* Beta 2.8: all EB stages remain accessible; only active stage is expanded. */
.ebx-staff-shell details.ebx-eb-stage{border:1px solid var(--border);border-radius:13px;background:var(--panel);margin:18px 0;overflow:clip;min-width:0}
.ebx-staff-shell .ebx-eb-stage>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;min-height:63px;color:var(--text);font-size:15px}
.ebx-staff-shell .ebx-eb-stage>summary::-webkit-details-marker{display:none}
.ebx-staff-shell .ebx-eb-stage>summary::after{content:'⌄';font-size:22px;font-weight:600;color:var(--muted);flex:none}
.ebx-staff-shell .ebx-eb-stage[open]>summary::after{transform:rotate(180deg)}
.ebx-staff-shell .ebx-eb-stage>summary strong{font-size:17px}
.ebx-staff-shell .ebx-eb-stage>summary span{font-size:12px;color:var(--muted);margin-left:auto;line-height:1.4;text-align:right}
.ebx-staff-shell .ebx-eb-stage>summary:focus{outline:0}
.ebx-staff-shell .ebx-eb-stage>summary:focus-visible{outline:2px solid var(--blue-strong);outline-offset:-4px;border-radius:12px}
.ebx-staff-shell .ebx-eb-stage[open]>summary{border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-eb-stage-body{padding:20px 22px 22px;min-width:0}
.ebx-staff-shell .ebx-eb-stage-body>.ebx-staff-panel{margin:0}
.ebx-staff-shell .ebx-eb-stage-body>.ebx-eb-delivery{border:0;background:transparent;padding:0;margin:0}
.ebx-staff-shell .ebx-eb-past-items{margin:8px 0 20px;padding-left:21px;display:grid;gap:10px}
.ebx-staff-shell .ebx-eb-stage-body h3{margin:14px 0 10px}
.ebx-staff-shell .ebx-delivery-invoice-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;margin:8px 0}
.ebx-staff-shell .ebx-delivery-dispatch-ready{margin-top:24px;background:var(--panel2);border:1px solid var(--border);border-radius:12px;padding:18px}
.ebx-staff-shell .ebx-dispatch-test-form{display:grid;gap:14px;margin-top:20px}
.ebx-staff-shell .ebx-dispatch-test-form label{display:flex;align-items:center;gap:12px}
.ebx-staff-shell .ebx-dispatch-test-form input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:#31b4e7}
.ebx-staff-shell .ebx-dispatch-test-form button{justify-self:start;min-height:44px}
.ebx-staff-shell .ebx-dispatch-test-done{border:1px solid var(--border);padding:13px 16px;border-radius:10px}
.ebx-staff-shell .ebx-delivery-search{margin:24px 0}
.ebx-staff-shell .ebx-delivery-search>select{min-height:44px;min-width:170px;max-width:270px}
.ebx-staff-shell .ebx-delivery-queue td{vertical-align:middle}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="delivery_payment_pending"]{border-color:#b07e31;background:#543915;color:#f3cd8e}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="delivery_paid_test"]{border-color:#237c94;background:#12394d;color:#a8e6f5}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="dispatch_preparing_test"]{border-color:#418b6c;background:#163d33;color:#afefcf}
@media(max-width:700px){.ebx-staff-shell .ebx-eb-stage>summary{padding:14px;flex-wrap:wrap}.ebx-staff-shell .ebx-eb-stage>summary span{text-align:left;flex-basis:100%;margin:0}.ebx-staff-shell .ebx-eb-stage-body{padding:14px}.ebx-staff-shell .ebx-delivery-search>select{max-width:none}}

/* Beta 2.9: compact unified EB timeline and full historical bill */
.ebx-staff-shell details.ebx-eb-stage{margin:9px 0!important}
.ebx-staff-shell .ebx-eb-stage>summary{min-height:56px;padding:14px 20px;gap:12px}
.ebx-staff-shell .ebx-eb-stage-body{padding:18px 20px 20px}
.ebx-staff-shell .ebx-eb-stage-body>*+*{margin-top:16px}
.ebx-staff-shell .ebx-eb-stage-body>.ebx-staff-panel+ .ebx-staff-panel{margin-top:18px}
.ebx-staff-shell .ebx-eb-shop{border:1px solid var(--border);border-radius:12px;padding:17px 18px;margin-bottom:12px;background:var(--panel2)}
.ebx-staff-shell .ebx-eb-shop h3{margin:0 0 12px}
.ebx-staff-shell .ebx-eb-shop-items{display:grid;gap:12px}
.ebx-staff-shell .ebx-eb-shop-row{display:grid;grid-template-columns:minmax(210px,2fr) repeat(3,minmax(110px,1fr));gap:12px;border-bottom:1px solid var(--border);padding:8px 0 13px;align-items:start}
.ebx-staff-shell .ebx-eb-shop-row:last-child{border-bottom:0}
.ebx-staff-shell .ebx-eb-shop-row>div{display:grid;gap:4px;min-width:0}
.ebx-staff-shell .ebx-eb-shop-row small,.ebx-staff-shell .ebx-eb-payment-dates small{color:var(--muted);font-size:12px;line-height:1.45}
.ebx-staff-shell .ebx-eb-shop-row a{font-size:13px}
.ebx-staff-shell .ebx-eb-shop-meta{border-top:1px solid var(--border);padding-top:12px;margin-top:12px;line-height:1.6}
.ebx-staff-shell .ebx-eb-snapshot,.ebx-staff-shell .ebx-eb-fx{border:1px solid var(--border);border-radius:12px;padding:18px;margin-top:16px;background:var(--panel2)}
.ebx-staff-shell .ebx-eb-snapshot-list{max-width:770px;display:grid;gap:0;margin:0}
.ebx-staff-shell .ebx-eb-snapshot-list>div{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--border);gap:20px}
.ebx-staff-shell .ebx-eb-snapshot-list>div:last-child{border-bottom:0}
.ebx-staff-shell .ebx-eb-snapshot-list dd{margin:0;font-weight:650;white-space:nowrap}
.ebx-staff-shell .ebx-eb-snapshot-list .is-total{font-size:17px;font-weight:800}
.ebx-staff-shell .ebx-eb-payment-dates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ebx-staff-shell .ebx-eb-payment-dates>div{display:flex;flex-direction:column;gap:5px;border:1px solid var(--border);border-radius:10px;padding:12px 15px;background:var(--panel2)}
.ebx-staff-shell .ebx-dispatch-test-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
.ebx-staff-shell .ebx-dispatch-test-form label.ebx-dispatch-check,.ebx-staff-shell .ebx-dispatch-record-form label.ebx-dispatch-check{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;text-align:left!important;margin:0!important;width:100%;font-size:14px}
.ebx-staff-shell .ebx-dispatch-test-form label.ebx-dispatch-check input,.ebx-staff-shell .ebx-dispatch-record-form label.ebx-dispatch-check input{position:static!important;margin:0!important;flex:0 0 20px!important;min-width:20px!important;width:20px!important;height:20px!important;min-height:20px!important}
.ebx-staff-shell .ebx-dispatch-test-form button{align-self:flex-start;justify-self:start;margin-top:10px}
.ebx-staff-shell .ebx-dispatch-record-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;margin-top:18px}
.ebx-staff-shell .ebx-dispatch-record-form>label:not(.ebx-dispatch-check){display:flex;flex-direction:column;gap:7px;align-items:stretch}
.ebx-staff-shell .ebx-dispatch-record-form .ebx-wide{grid-column:1/-1}
.ebx-staff-shell .ebx-dispatch-record-form select,.ebx-staff-shell .ebx-dispatch-record-form input{width:100%;min-height:44px}
.ebx-staff-shell .ebx-dispatch-record-form button{justify-self:start;margin-top:8px}
.ebx-staff-shell .ebx-dispatch-record,.ebx-staff-shell .ebx-dispatch-register{border:1px solid var(--border);background:var(--panel2);padding:18px;border-radius:12px;margin-top:16px}
@media(max-width:820px){.ebx-staff-shell .ebx-eb-shop-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-staff-shell .ebx-eb-payment-dates{grid-template-columns:1fr}}
@media(max-width:560px){.ebx-staff-shell .ebx-eb-shop-row,.ebx-staff-shell .ebx-dispatch-record-form{grid-template-columns:1fr}}

/* Beta 2.9 — concise stage spacing and legible dispatch checklists. */
.ebx-staff-shell .ebx-buyout-workspace{gap:12px!important}
.ebx-staff-shell .ebx-buyout-workspace>details.ebx-eb-stage{margin:0!important}
.ebx-staff-shell .ebx-buyout-workspace>.ebx-staff-panel{margin:0!important}
.ebx-staff-shell .ebx-archive-panel{margin-top:18px!important}
.ebx-staff-shell .ebx-archive-panel form{display:grid;gap:13px;max-width:640px}
.ebx-staff-shell .ebx-archive-panel form label{display:flex;flex-direction:column;gap:7px}
.ebx-staff-shell .ebx-archive-panel form button{justify-self:start}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="sent_test"]{border-color:#4b82bb;background:#1c3b59;color:#b1d8fb}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="completed_test"]{border-color:#42977c;background:#174737;color:#a9f0cd}
@media(max-width:570px){.ebx-staff-shell .ebx-eb-stage-body{padding:14px!important}.ebx-staff-shell .ebx-eb-stage>summary{padding:13px 14px}}

/* Beta 3.0: consistent accordion arrow, no typographic glyph drift. */
.ebx-staff-shell .ebx-eb-stage>summary::after{content:""!important;display:block!important;width:9px!important;height:9px!important;border-right:2px solid var(--muted)!important;border-bottom:2px solid var(--muted)!important;transform:rotate(45deg)!important;transition:transform .14s ease;flex:0 0 9px!important;margin:0 4px!important;position:relative!important;top:-2px!important}
.ebx-staff-shell .ebx-eb-stage[open]>summary::after{transform:rotate(225deg)!important;top:3px!important}
.ebx-staff-shell .ebx-eb-stage-body>.ebx-eb-payment-dates+.ebx-buyout-paid-note{margin-top:16px!important}
.ebx-staff-shell .ebx-eb-stage-body>.ebx-staff-panel+.ebx-staff-panel{margin-top:18px!important}
.ebx-staff-shell .ebx-eb-stage-body .ebx-delivery-invoice-heading+.ebx-delivery-dispatch-ready{margin-top:22px!important}
.ebx-staff-shell .ebx-eb-stage-body .ebx-dispatch-register{margin-top:22px!important}
.ebx-staff-shell .ebx-eb-stage-body .ebx-dispatch-register>*+*{margin-top:15px}
.ebx-staff-shell .ebx-run-card,.ebx-staff-shell .ebx-legacy-dispatch{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--panel2);margin-top:20px}
.ebx-staff-shell .ebx-run-card>h3{margin-top:0}
.ebx-staff-shell .ebx-run-form,.ebx-staff-shell .ebx-run-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:18px 0 23px}
.ebx-staff-shell .ebx-run-form>label,.ebx-staff-shell .ebx-run-create>label{min-width:0;display:flex;flex-direction:column;gap:8px;font-weight:650}
.ebx-staff-shell .ebx-run-form :is(input,select,textarea),.ebx-staff-shell .ebx-run-create :is(input,select,textarea){width:100%;min-height:44px}
.ebx-staff-shell .ebx-run-form .ebx-wide,.ebx-staff-shell .ebx-run-create .ebx-wide{grid-column:1/-1}
.ebx-staff-shell .ebx-run-actions{grid-column:1/-1;margin-top:6px}
.ebx-staff-shell .ebx-run-confirm{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:16px}
.ebx-staff-shell .ebx-run-confirm>label{display:flex;align-items:flex-start;gap:10px;max-width:300px;white-space:normal}
.ebx-staff-shell .ebx-run-confirm input[type=checkbox]{flex:0 0 20px!important;margin-top:1px!important}
.ebx-staff-shell .ebx-run-confirm button{background:transparent!important;color:var(--blue-strong)!important;border:1px solid var(--border)!important;white-space:normal;height:auto!important;min-height:44px!important}
.ebx-staff-shell .ebx-run-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.ebx-staff-shell .ebx-run-meta>div{padding:12px 14px;border:1px solid var(--border);border-radius:10px}
.ebx-staff-shell .ebx-run-meta dt{font-size:12px;color:var(--muted)}
.ebx-staff-shell .ebx-run-meta dd{margin:5px 0 0;font-weight:700;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-runs{margin:22px 0!important}
.ebx-staff-shell .ebx-runs h2{margin:0 0 12px}
.ebx-staff-shell .ebx-runs .ebx-staff-table-wrap{margin-top:18px}
@media(max-width:650px){.ebx-staff-shell .ebx-run-form,.ebx-staff-shell .ebx-run-create,.ebx-staff-shell .ebx-run-meta{grid-template-columns:1fr}.ebx-staff-shell .ebx-run-card{padding:15px}}
/* The paid buyout banner is a sibling of the payment date cards; keep a visible gap. */
.ebx-staff-shell .ebx-eb-stage-body>.ebx-eb-payment-dates+.ebx-buyout-action-needed,
.ebx-staff-shell .ebx-eb-stage-body>.ebx-eb-payment-dates+.ebx-staff-panel{margin-top:18px!important}
.ebx-staff-shell .ebx-delivery-invoice-heading+.ebx-staff-muted{margin-top:14px!important}
.ebx-staff-shell .ebx-eb-delivery>.ebx-run-card{margin-top:22px!important}
@media(max-width:700px){
 .ebx-staff-shell .ebx-eb-stage>summary{display:grid!important;grid-template-columns:minmax(0,1fr) 18px!important;grid-template-rows:auto auto!important;gap:3px 12px!important;align-items:center!important}
 .ebx-staff-shell .ebx-eb-stage>summary>strong{grid-column:1;grid-row:1;min-width:0}
 .ebx-staff-shell .ebx-eb-stage>summary>span{grid-column:1;grid-row:2;margin:0!important;text-align:left!important;flex-basis:auto!important}
 .ebx-staff-shell .ebx-eb-stage>summary::after{grid-column:2;grid-row:1/3;justify-self:center;align-self:center;margin:0!important}
}

/* Beta 3.1: simple batch dispatch queue with independent steps. */
.ebx-staff-shell .ebx-run-new,.ebx-staff-shell .ebx-run-workflow{border:1px solid var(--border);border-radius:12px;padding:18px;margin-top:20px;background:var(--panel2)}
.ebx-staff-shell .ebx-run-new>summary,.ebx-staff-shell .ebx-run-parcel>summary{cursor:pointer;font-weight:700;list-style-position:inside}
.ebx-staff-shell .ebx-run-step{border:1px solid var(--border);border-radius:12px;padding:20px;margin:16px 0;background:var(--panel2)}
.ebx-staff-shell .ebx-run-step h4{margin:0 0 10px;font-size:17px}
.ebx-staff-shell .ebx-run-step p{margin:10px 0 16px}
.ebx-staff-shell .ebx-run-candidates{display:grid;gap:8px;margin:12px 0}
.ebx-staff-shell .ebx-run-candidates label{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;cursor:pointer}
.ebx-staff-shell .ebx-run-candidates input[type=checkbox]{width:20px!important;height:20px!important;flex:0 0 20px}
.ebx-staff-shell .ebx-run-parcel{border:1px solid var(--border);border-radius:10px;margin:12px 0;padding:14px}
.ebx-staff-shell .ebx-run-parcel .ebx-run-form{margin-bottom:0}
.ebx-staff-shell .ebx-run-step button[disabled]{background:transparent!important;border:1px dashed var(--border)!important;color:var(--muted)!important;cursor:not-allowed;white-space:normal;min-height:44px;height:auto}
.ebx-staff-shell .ebx-run-workflow>h3{margin:0 0 6px}
@media(max-width:650px){.ebx-staff-shell .ebx-run-step,.ebx-staff-shell .ebx-run-new,.ebx-staff-shell .ebx-run-workflow{padding:14px}}

/* Beta 3.3: correct label preparation and safe action hierarchy. */
.ebx-staff-shell .ebx-run-origin-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin:18px 0 22px}
.ebx-staff-shell .ebx-run-origin-form label{display:flex;flex-direction:column;gap:8px;min-width:0;font-weight:650}
.ebx-staff-shell .ebx-run-origin-form input{width:100%;height:44px}
.ebx-staff-shell .ebx-run-origin-form .ebx-run-actions{margin:0}
.ebx-staff-shell .ebx-run-parcel .ebx-run-form{margin:20px 0 0;row-gap:18px}
.ebx-staff-shell .ebx-run-parcel .ebx-run-form>label{margin:0}
.ebx-staff-shell .ebx-run-parcel .ebx-run-form .ebx-run-actions{margin-top:8px}
.ebx-staff-shell .ebx-run-parcel .ebx-run-demo-form{margin:18px 0 0}
.ebx-staff-shell .ebx-run-parcel .ebx-run-remove{margin:26px 0 0;display:flex;justify-content:flex-start}
.ebx-staff-shell .ebx-run-parcel button.ebx-run-remove-button{background:transparent!important;color:#ed7e86!important;border:1px solid #bc505b!important;box-shadow:none!important;min-height:44px!important;height:auto!important;padding:10px 16px!important}
.ebx-staff-shell .ebx-run-parcel button.ebx-run-remove-button:hover{background:rgba(194,55,68,.09)!important;border-color:#ed7e86!important}
.ebx-staff-shell .ebx-run-measures{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--border);border-radius:10px;margin:16px 0;background:var(--panel2)}
.ebx-staff-shell .ebx-run-measures>*{margin:0}
.ebx-staff-shell .ebx-run-recipient-preview{border:1px solid var(--border);border-radius:9px;padding:12px;line-height:1.5}
.ebx-staff-shell .ebx-run-hint{margin:0;line-height:1.5;color:var(--muted)}
@media(max-width:700px){.ebx-staff-shell .ebx-run-origin-form{grid-template-columns:minmax(0,1fr)}.ebx-staff-shell .ebx-run-origin-form .ebx-run-actions{grid-column:1}}

/* Beta 3.4: actionable, explicit run progress. */
.ebx-staff-shell .ebx-run-next{padding:15px 17px;border:1px solid var(--border);background:var(--panel);border-radius:10px;margin:16px 0 4px}
.ebx-staff-shell .ebx-run-next>strong{display:block;margin-bottom:7px;font-weight:750}
.ebx-staff-shell .ebx-run-next p{margin:0 0 8px;line-height:1.5}
.ebx-staff-shell .ebx-run-next a{font-weight:700}
.ebx-staff-shell .ebx-run-missing,.ebx-staff-shell .ebx-run-ready{border-radius:9px;padding:12px 14px;line-height:1.5;margin:12px 0 18px!important;background:var(--panel);border:1px solid var(--border)}
.ebx-staff-shell .ebx-run-ready{border-color:var(--blue-strong);}
.ebx-staff-shell .ebx-run-missing-detail{margin:8px 0!important;color:var(--muted);overflow-wrap:anywhere}
.ebx-staff-shell .ebx-run-confirm>label{max-width:750px!important;min-height:34px}
.ebx-staff-shell #ebx-run-handover:target{scroll-margin-top:24px}
.ebx-staff-shell #ebx-run-labels:target{scroll-margin-top:24px}
/* Beta 3.5: proof of (test) delivery, distinct from Europochta intake. */
.ebx-run-delivery-confirm{margin-top:18px;padding:18px;border:1px solid var(--ebx-staff-border,#36506b);border-radius:12px;display:grid;gap:12px}
.ebx-run-delivery-confirm h4,.ebx-run-delivery-confirm p{margin:0}
.ebx-run-delivery-confirm form{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.ebx-run-delivery-confirm form>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:min(100%,730px)}
.ebx-run-delivery-confirm form>label.ebx-run-confirm-checkbox{flex-direction:row;align-items:center;width:auto;gap:10px}
.ebx-run-delivery-confirm .ebx-run-confirm-checkbox input{flex:none}
.ebx-run-delivery-confirm textarea{min-height:80px;width:100%;min-width:0}

/* Beta 3.7: balanced brand baseline; shared heights in light and dark mode. */
.ebx-staff-brand{display:inline-flex;align-items:center;justify-content:center;height:54px;min-width:0;line-height:0}
.ebx-staff-brand .ebx-brand-pair{display:flex;align-items:center;justify-content:center;height:100%;line-height:0}
.ebx-staff-brand .ebx-brand-image{width:min(205px,100%);height:auto;max-height:51px;object-fit:contain;object-position:center;margin:0}
@media(max-width:850px){.ebx-staff-brand .ebx-brand-image{width:160px}}
@media(max-width:570px){.ebx-staff-brand .ebx-brand-image{width:132px}}
.ebx-run-bulk-delivery{margin-top:18px}.ebx-run-bulk-delivery-form{display:grid;gap:16px;margin-top:14px}
.ebx-run-bulk-delivery-form .ebx-run-candidates{margin:0}.ebx-run-bulk-note{display:grid;gap:7px;font-weight:650}
.ebx-run-bulk-delivery-form .ebx-run-confirm-checkbox{display:flex;align-items:flex-start;gap:10px;line-height:1.45}
.ebx-run-bulk-delivery-form .ebx-run-confirm-checkbox input{flex:none;margin-top:3px}
.ebx-run-finance{margin-top:22px}.ebx-run-finance dl{margin:12px 0;display:grid;gap:0}
.ebx-run-finance dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--border)}
.ebx-run-finance dt{color:var(--muted)}.ebx-run-finance dd{margin:0;font-weight:750;font-variant-numeric:tabular-nums;text-align:right}
.ebx-run-finance-form{display:grid;grid-template-columns:minmax(140px,1fr) minmax(130px,180px) minmax(210px,2fr);gap:14px;align-items:end;margin-top:15px}
.ebx-run-finance-form label{display:grid;gap:7px;font-weight:650}.ebx-run-finance-form .ebx-run-actions{grid-column:1/-1;margin-top:5px}
.ebx-run-finance-warning{border:1px solid #d9ad51;border-radius:10px;padding:12px 14px;background:var(--panel2);margin-top:13px}
@media(max-width:760px){.ebx-run-finance-form{grid-template-columns:1fr}.ebx-run-finance-form .ebx-run-actions{grid-column:auto}}

/* Beta 3.8 — reversible bulk archive, scoped to the Owner's staging queue. */
.ebx-staff-shell .ebx-bulk-archive-panel{margin:0 0 16px;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--panel2)}
.ebx-staff-shell .ebx-bulk-archive-panel h3{margin:0 0 9px}
.ebx-staff-shell .ebx-bulk-archive-panel p{margin:0 0 16px;color:var(--muted)}
.ebx-staff-shell .ebx-bulk-archive-form{display:grid;gap:13px}
.ebx-staff-shell .ebx-bulk-archive-form>label:not(.ebx-archive-confirm){display:flex;flex-direction:column;gap:7px;max-width:640px}
.ebx-staff-shell .ebx-bulk-archive-form input[name=reason]{width:100%;min-height:44px}
.ebx-staff-shell .ebx-archive-confirm{display:flex!important;flex-direction:row!important;align-items:center;gap:11px;font-size:13px;line-height:1.45}
.ebx-staff-shell .ebx-archive-confirm input[type=checkbox]{flex:0 0 19px;width:19px;height:19px;margin:0;accent-color:var(--blue-strong)}
.ebx-staff-shell .ebx-bulk-archive-actions{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin-top:2px}
.ebx-staff-shell .ebx-bulk-archive-actions button{min-height:44px;margin:0}
.ebx-staff-shell .ebx-archive-submit{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:9px}
.ebx-staff-shell .ebx-archive-submit:not(:disabled):hover{border-color:var(--blue-strong)}
.ebx-staff-shell .ebx-bulk-archive-actions button:disabled{opacity:.5;cursor:not-allowed}
.ebx-staff-shell .ebx-staff-archive-notice{padding:13px 16px;border-radius:10px;border:1px solid var(--border);background:var(--panel2)}
.ebx-staff-shell .ebx-archive-select-all,.ebx-staff-shell .ebx-archive-item-select{display:inline-flex;align-items:center;gap:7px;vertical-align:middle;margin:0 10px 0 0;cursor:pointer}
.ebx-staff-shell .ebx-archive-select-all{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap}
.ebx-staff-shell .ebx-archive-select-all input,.ebx-staff-shell .ebx-archive-item-select input{width:17px;height:17px;margin:0;accent-color:var(--blue-strong);cursor:pointer}
.ebx-staff-shell .ebx-staff-queue-table td:first-child{white-space:nowrap}
.ebx-staff-shell .ebx-archive-panel .ebx-archive-confirm{max-width:600px}
@media(max-width:570px){.ebx-staff-shell .ebx-bulk-archive-panel{padding:15px}.ebx-staff-shell .ebx-bulk-archive-actions{align-items:stretch;flex-direction:column}.ebx-staff-shell .ebx-bulk-archive-actions button{width:100%}}

/* EUROBOX 3.0 Beta 3.9 — requests filters: archive introduces a sixth
   control. Keep reset inline on desktop and avoid changing other queues. */
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(132px,148px) minmax(142px,158px) 92px 108px;
  align-items:stretch;
  gap:10px;
}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
  grid-template-columns:minmax(145px,168px) minmax(200px,1fr) minmax(122px,142px) minmax(132px,154px) 92px 108px;
}
.ebx-staff-shell .ebx-staff-requests-filters > :is(input, label, button, a){
  box-sizing:border-box; min-width:0; max-width:100%; height:44px; min-height:44px; margin:0;
}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-filter-label{display:block; width:100%; min-width:0;}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-filter-label select{height:44px;min-height:44px;}
.ebx-staff-shell .ebx-staff-requests-filters > :is(button,.ebx-staff-reset-filters){
  justify-self:stretch; width:100%; white-space:nowrap;
}
/* Table header: single checkbox directly before “Заявка”; no visible “Все”. */
.ebx-staff-shell .ebx-staff-queue-table th:first-child{white-space:nowrap;}
.ebx-staff-shell .ebx-staff-queue-table thead .ebx-archive-select-all{
  display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;
  margin:0 9px 0 0;padding:0;line-height:1;
}
.ebx-staff-shell .ebx-staff-queue-table thead .ebx-archive-select-all input{
  flex:none;margin:0;width:17px;height:17px;
}
@media(max-width:1250px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-request-search{grid-column:span 3;}
  .ebx-staff-shell .ebx-staff-requests-filters:not(.has-archive-filter) > .ebx-staff-request-search{grid-column:span 2;}
}
@media(max-width:700px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-archive-filter,
  .ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-request-search{
    grid-column:1/-1;
  }
  .ebx-staff-shell .ebx-staff-requests-filters:not(.has-archive-filter) > .ebx-staff-request-search{grid-column:1/-1;}
}

/* Beta 4.0 — CRM search and compact bulk archive. Do not inherit the request's six-column grid. */
.ebx-staff-shell .ebx-staff-search.ebx-staff-client-search{display:grid;grid-template-columns:minmax(250px,520px) 120px;gap:12px;align-items:center}
.ebx-staff-shell .ebx-staff-client-search>input,.ebx-staff-shell .ebx-staff-client-search>button{width:100%;min-width:0;height:44px;min-height:44px;margin:0;box-sizing:border-box}
.ebx-staff-shell .ebx-archive-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin:4px 0 18px;flex-wrap:wrap}
.ebx-staff-shell .ebx-archive-toolbar button{height:44px;margin:0}
.ebx-staff-shell .ebx-archive-dialog{max-width:min(95vw,590px);width:100%;padding:22px;border:1px solid var(--border);border-radius:15px;background:var(--panel2);color:var(--text)}
.ebx-staff-shell .ebx-archive-dialog::backdrop{background:rgba(3,10,20,.72)}
.ebx-staff-shell .ebx-archive-dialog p{color:var(--muted);margin:14px 0}
.ebx-staff-shell .ebx-archive-dialog .ebx-bulk-archive-form{margin-top:17px}
.ebx-staff-shell .ebx-archive-dialog .ebx-bulk-archive-actions{display:flex;flex-direction:row;justify-content:flex-end;gap:12px}
@media(max-width:620px){.ebx-staff-shell .ebx-staff-search.ebx-staff-client-search{grid-template-columns:minmax(0,1fr)}.ebx-staff-shell .ebx-archive-toolbar{justify-content:flex-start}.ebx-staff-shell .ebx-archive-dialog .ebx-bulk-archive-actions{flex-wrap:wrap}}

/* Beta 4.0 — controlled corrections in EB cards. */
.ebx-staff-shell .ebx-request-item-editor{margin:16px 0!important;padding:16px 18px}
.ebx-staff-shell .ebx-request-item-editor>summary,.ebx-staff-shell .ebx-crm-edit>summary,.ebx-staff-shell .ebx-crm-recipient>summary{cursor:pointer;font-weight:700;color:var(--blue-strong)}
.ebx-staff-shell .ebx-request-item-editor fieldset{margin:16px 0;padding:16px;border:1px solid var(--border);border-radius:10px}
.ebx-staff-shell .ebx-request-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ebx-staff-shell .ebx-request-edit-grid label{display:flex;flex-direction:column;gap:7px}
.ebx-staff-shell .ebx-request-item-editor button{margin-top:14px}
.ebx-staff-shell .ebx-crm-edit,.ebx-staff-shell .ebx-crm-recipient{margin:14px 0!important}
.ebx-staff-shell .ebx-crm-recipient form,.ebx-staff-shell .ebx-crm-edit form{margin-top:16px}
@media(max-width:700px){.ebx-staff-shell .ebx-request-edit-grid{grid-template-columns:minmax(0,1fr)}}

/* Beta 4.2 — reversible staging cleanup of orphan INP records. */
.ebx-staff-shell .ebx-wh-close{margin-top:14px}
.ebx-staff-shell .ebx-wh-close details>summary{cursor:pointer;color:var(--blue-strong);font-weight:700}
.ebx-staff-shell .ebx-wh-close p{margin:12px 0;color:var(--muted)}
.ebx-staff-shell .ebx-wh-close-form{display:grid;gap:12px;margin-top:14px;max-width:760px}
.ebx-staff-shell .ebx-wh-close-form>label:not(.ebx-wh-close-confirm){display:grid;gap:7px;font-weight:650}
.ebx-staff-shell .ebx-wh-close-form input[type=text]{width:100%;min-height:44px}
.ebx-staff-shell .ebx-wh-close-confirm{display:flex;align-items:flex-start;gap:10px;font-weight:550}
.ebx-staff-shell .ebx-wh-close-confirm input[type=checkbox]{flex:0 0 auto;margin-top:3px}
.ebx-staff-shell .ebx-wh-close-form button{justify-self:start;min-height:44px}
.ebx-staff-shell .ebx-wh-closed-link{margin:0 0 10px;font-size:13px}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="unidentified_archived"]{background:var(--panel2);color:var(--muted);border-color:var(--border)}

/* EUROBOX 3.0 Beta 4.3: One EB Card — consolidated physical box */
.ebx-consolidation{margin-block:16px!important;padding:20px!important;border:1px solid var(--ebx-border,#344c66);border-radius:14px}
.ebx-consolidation h3{margin:0 0 12px}
.ebx-consolidation-form,.ebx-consolidation details form{display:grid;gap:14px;margin-top:14px}
.ebx-consolidation-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ebx-consolidation-fields label,.ebx-consolidation details form label{display:flex;flex-direction:column;gap:6px;min-width:0}
.ebx-consolidation-choice,.ebx-consolidation-confirm{display:flex;align-items:center;gap:12px;padding:8px 0}
.ebx-consolidation button{justify-self:start;min-height:44px}
@media(max-width:800px){.ebx-consolidation-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ebx-consolidation-fields{grid-template-columns:1fr}}


/* Beta 4.3.1: the original unpadded SVG replaces centered-by-CSS bitmap. */
.ebx-staff-brand {display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;line-height:0!important;}
.ebx-staff-brand .ebx-brand-pair {display:grid!important;place-items:center!important;width:205px!important;max-width:100%!important;height:auto!important;line-height:0!important;}
.ebx-staff-brand .ebx-brand-image {display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;margin:0!important;}
@media(max-width:850px){.ebx-staff-brand .ebx-brand-pair {width:160px!important;}}
@media(max-width:570px){.ebx-staff-brand .ebx-brand-pair {width:132px!important;}}
/* The shared image rule must not make both color variants visible at once. */
.ebx-staff-brand .ebx-brand-dark {display:none!important;}
.ebx-staff-shell[data-theme=dark] .ebx-staff-brand .ebx-brand-light,
html[data-ebx-staff-theme=dark] .ebx-staff-brand .ebx-brand-light {display:none!important;}
.ebx-staff-shell[data-theme=dark] .ebx-staff-brand .ebx-brand-dark,
html[data-ebx-staff-theme=dark] .ebx-staff-brand .ebx-brand-dark {display:block!important;}
/* Beta 4.4 — Owner marketing attribution */
.ebx-mkt-report{display:grid;gap:18px}.ebx-mkt-range{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.ebx-mkt-range label{display:grid;gap:6px;min-width:190px}.ebx-mkt-range button{min-height:44px;padding:0 18px}.ebx-mkt-client{margin-top:18px}.ebx-mkt-client dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.ebx-mkt-client dl>div{min-width:0}.ebx-mkt-client dt{color:var(--ebx-muted,#9dadc1);font-size:12px}.ebx-mkt-client dd{margin:3px 0 0;overflow-wrap:anywhere}.ebx-mkt-report th,.ebx-mkt-report td{text-align:left}
@media(max-width:660px){.ebx-mkt-client dl{grid-template-columns:1fr}}

/* Beta 5.7: knowledge editor follows the Staff Workspace theme tokens. */
.ebx-kb-editor-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:18px;align-items:start}
.ebx-kb-editor-list,.ebx-kb-editor-main{background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:16px;padding:20px;min-width:0;box-shadow:var(--shadow)}
.ebx-kb-editor-list h2,.ebx-kb-editor-form h2{margin:0 0 18px;font-size:20px;color:var(--text)}
.ebx-kb-editor-item{display:flex;flex-direction:column;gap:5px;text-decoration:none;padding:12px;border:1px solid transparent;border-radius:10px;color:var(--text)!important;margin-bottom:5px}
.ebx-kb-editor-item:hover,.ebx-kb-editor-item.is-current{border-color:var(--blue);background:var(--tint);color:var(--text)!important}
.ebx-kb-editor-item strong{color:inherit}
.ebx-kb-editor-item small{color:var(--muted)}
.ebx-kb-editor-form{display:flex;flex-direction:column;gap:18px}
.ebx-kb-editor-form>label{display:flex;flex-direction:column;gap:8px;font-weight:650;color:var(--text)}
.ebx-kb-editor-form input[type=text],.ebx-kb-editor-form select,.ebx-kb-editor-form textarea{display:block;box-sizing:border-box;min-height:48px;width:100%;padding:12px;background:var(--panel2);border:1px solid var(--border);border-radius:10px;color:var(--text);font:inherit}
.ebx-kb-editor-form textarea{resize:vertical;line-height:1.5}
.ebx-kb-editor-form .ebx-kb-faq-checkbox{flex-direction:row;align-items:center}
.ebx-kb-editor-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.ebx-staff-shell .ebx-kb-editor-actions button{background:var(--blue);color:#082940;border:0;border-radius:11px;padding:14px 22px;font-weight:760;cursor:pointer}
.ebx-kb-editor-actions a{color:var(--blue-strong)}
.ebx-kb-notice{border:1px solid #76bca8;background:#e9f8f3;color:#15594b;padding:13px 16px;border-radius:10px}
.ebx-kb-notice.ebx-kb-error{border-color:#e5a4ab;background:#fff0f2;color:#9a2435}
.ebx-kb-editor-placeholder{padding:25px;color:var(--muted)}
.ebx-kb-editor-placeholder p{color:var(--muted)}
@media(max-width:800px){.ebx-kb-editor-layout{grid-template-columns:1fr}.ebx-kb-editor-list{max-height:300px;overflow:auto}}
.ebx-kb-new-form{display:flex;justify-content:flex-end;margin:0 0 16px}
.ebx-staff-shell .ebx-kb-new-form button{border:1px solid var(--blue);border-radius:10px;background:var(--blue);color:#082940;padding:11px 18px;font-weight:750;cursor:pointer}
.ebx-staff-shell[data-theme=dark] .ebx-kb-notice,html[data-ebx-staff-theme=dark] .ebx-kb-notice{background:#173b39;border-color:#337f70;color:#d2fff4}
.ebx-staff-shell[data-theme=dark] .ebx-kb-notice.ebx-kb-error,html[data-ebx-staff-theme=dark] .ebx-kb-notice.ebx-kb-error{background:#462734;border-color:#9d4553;color:#ffdee2}
.ebx-analytics-range{margin-bottom:18px}
.ebx-analytic-detail{font-size:12px;margin:18px 0 0;color:var(--muted)}
.ebx-analytic-detail strong{color:var(--text)}
.ebx-mkt-report .ebx-staff-panel>p.ebx-staff-muted{color:var(--muted);font-size:12px;margin:0 0 14px}
/* Beta 4.8 — optional, explicit tariff-based service charge (not a customs duty). */
.ebx-staff-shell .ebx-benchmark{grid-column:1/-1;min-width:0;border:1px solid var(--border);border-radius:11px;padding:16px;display:grid;gap:12px}
.ebx-staff-shell .ebx-benchmark legend{font-weight:700;padding:0 8px}
.ebx-staff-shell .ebx-benchmark-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;font-weight:650}
.ebx-staff-shell .ebx-benchmark-check input{flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px!important}
.ebx-staff-shell .ebx-benchmark-fields{display:grid;gap:10px;padding:12px;background:var(--panel2);border-radius:9px;min-width:0}
.ebx-staff-shell .ebx-benchmark-fields[hidden]{display:none!important}
.ebx-staff-shell .ebx-benchmark-fields label{max-width:360px}
.ebx-staff-shell .ebx-benchmark .ebx-staff-muted{margin:0;line-height:1.55}

/* Beta 5.3: safe single-column commission controls within buyout grids. */
.ebx-staff-shell .ebx-buyout-item-fields > *, .ebx-staff-shell .ebx-buyout-shop-footer > *{min-width:0}
.ebx-staff-shell .ebx-buyout-fee{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:stretch;min-width:0}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-fee-choice{min-width:0;max-width:100%}
.ebx-staff-shell .ebx-buyout-fee :is(select,input){width:100%;min-width:0;max-width:100%;min-height:44px}
.ebx-staff-shell .ebx-buyout-fee .ebx-buyout-custom[hidden]{display:none!important}
.ebx-staff-shell .ebx-buyout-fee[data-ebx-fee-custom="1"] .ebx-buyout-custom{display:flex;flex-direction:column;width:100%}
.ebx-staff-shell .ebx-buyout-form-error{padding:12px 14px;border:1px solid #d44b5c;border-left:4px solid #d44b5c;border-radius:10px;background:rgba(205,57,76,.07);color:var(--text);margin:0 0 18px;font-size:13px}
.ebx-staff-shell .ebx-buyout-form-error[hidden]{display:none!important}
.ebx-staff-shell :is(input,select).ebx-staff-invalid{border-color:#d44b5c!important;box-shadow:0 0 0 2px rgba(212,75,92,.11)}
.ebx-staff-shell .ebx-staff-field-error{display:block;font-size:11px!important;color:#d44b5c!important;font-weight:600;line-height:1.4}
.ebx-staff-shell .ebx-buyout-alert{background:rgba(193,113,39,.065);border-color:rgba(193,113,39,.3);color:var(--text);line-height:1.5}
.ebx-staff-shell .ebx-buyout-alert strong{font-size:14px}
.ebx-staff-shell .ebx-buyout-alert p{margin:8px 0}
.ebx-staff-shell .ebx-buyout-alert ul{padding-left:23px;margin:7px 0 10px}
.ebx-staff-shell .ebx-buyout-alert li{padding:2px 0}
.ebx-staff-shell .ebx-buyout-fx-info{border:1px solid var(--border);border-radius:9px;background:var(--panel2);padding:12px 14px;color:var(--muted)!important;font-size:13px!important}
.ebx-staff-shell .ebx-request-item-editor fieldset legend{max-width:100%;padding:0 7px;overflow-wrap:anywhere;font-weight:750;font-size:13px}

/* Beta 5.5: prevent the mobile workspace header from widening the whole window.
   Do not suppress horizontal overflow globally: wide data tables retain their own scroll areas. */
@media (max-width: 420px) {
  .ebx-staff-shell .ebx-staff-header{gap:6px;padding-inline:10px}
  .ebx-staff-shell .ebx-staff-header-start,
  .ebx-staff-shell .ebx-staff-header-right{gap:5px;min-width:0}
  .ebx-staff-shell .ebx-staff-brand{min-width:0;flex:0 1 auto}
  .ebx-staff-shell .ebx-staff-brand .ebx-brand-pair{width:clamp(96px,30vw,128px)!important;min-width:0!important;max-width:100%!important}
  .ebx-staff-shell .ebx-staff-brand .ebx-brand-image{width:100%!important;height:auto!important;max-width:100%!important}
  .ebx-staff-shell .ebx-staff-avatar{width:32px;height:32px;min-width:32px}
  .ebx-staff-shell button.ebx-staff-theme-toggle,
  .ebx-staff-shell button.ebx-staff-nav-toggle{width:34px;height:34px;min-width:34px;min-height:34px;padding:0}
}

/* The beta 1.5 desktop label rule follows the mobile breakpoint in the cascade.
   Keep the label hidden when the navigation switches to a narrow header. */
@media (max-width: 850px) {
  .ebx-staff-shell .ebx-staff-workspace-label{display:none!important}
}
/* Owner overview: each metric leads to the corresponding operational queue. */
.ebx-staff-stats a.ebx-staff-metric-link{display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.ebx-staff-stats a.ebx-staff-metric-link:hover,.ebx-staff-stats a.ebx-staff-metric-link:focus-visible{border-color:#68bcdf;box-shadow:0 4px 18px rgba(20,101,157,.09)}
.ebx-staff-stats a.ebx-staff-metric-link small{margin-top:auto}

/* Beta 6.4: manual quote controls only for special or >30kg; hidden must win against generic form grid. */
.ebx-staff-shell [data-ebx-manual-tariff][hidden]{display:none!important}

/* Beta 6.4.1: distinct, responsive navigation actions in warehouse EB card. */
.ebx-wh-eb-card .ebx-wh-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:24px 0 0}
.ebx-wh-eb-card .ebx-wh-card-actions .ebx-staff-reset-link{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;margin:0!important;padding:10px 16px;line-height:1.35;text-align:center;white-space:normal}
@media(max-width:600px){.ebx-wh-eb-card .ebx-wh-card-actions{flex-direction:column;align-items:stretch}.ebx-wh-eb-card .ebx-wh-card-actions .ebx-staff-reset-link{width:100%}}

/* Beta 6.5: manual labels and verified tracking events */
.ebx-staff-shell .ebx-run-tracking-row{border:1px solid var(--border);border-radius:12px;padding:14px;margin:12px 0;display:grid;gap:12px;min-width:0}
.ebx-staff-shell .ebx-run-tracking-info{min-width:0;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-run-tracking-info p{margin:5px 0 0;color:var(--muted);font-size:13px}
.ebx-staff-shell .ebx-run-bulk-stickers{margin:12px 0;padding:13px;border:1px solid var(--border);border-radius:10px}
.ebx-staff-shell .ebx-run-bulk-stickers summary{cursor:pointer;font-weight:650}
.ebx-staff-shell .ebx-run-bulk-stickers form{display:grid;gap:12px;padding-top:12px}
.ebx-staff-shell .ebx-run-bulk-stickers textarea{display:block;width:100%;min-height:90px;margin-top:8px}
.ebx-staff-shell .ebx-tracking-manual{display:grid;grid-template-columns:minmax(170px,1fr) minmax(260px,2fr) auto;gap:10px;align-items:end}
.ebx-staff-shell .ebx-tracking-manual label{display:grid;gap:6px;min-width:0}
.ebx-staff-shell .ebx-tracking-manual textarea{width:100%;min-height:48px;max-width:100%}
.ebx-staff-shell .ebx-tracking-manual select{min-height:44px;width:100%}
@media(max-width:900px){.ebx-staff-shell .ebx-tracking-manual{grid-template-columns:1fr}}

/* Beta 6.5: unified process state and next action in Requests table */
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-process-indicator{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 12px;background:var(--panel2);border:1px solid var(--border);border-radius:9px;color:var(--muted);font-size:12px;font-weight:650;line-height:1.3;max-width:100%}
.ebx-staff-shell .ebx-staff-process-indicator svg{width:16px;height:16px;flex:0 0 16px}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-next-step{display:flex;width:max-content;max-width:100%;min-height:38px;margin-top:8px;padding:7px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--blue-strong);font-size:12px;white-space:normal;text-decoration:none!important}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-next-step:hover{background:var(--panel2);border-color:var(--blue-strong)}

/* Beta 6.6: uniform, single-line stage actions (no tall stacked rows). */
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-process-cell{white-space:nowrap!important;vertical-align:middle!important;width:135px!important;min-width:116px!important}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-process-indicator{display:inline-flex!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0 8px 0 0!important;justify-content:center!important;vertical-align:middle!important}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-next-step{display:inline-flex!important;vertical-align:middle!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;white-space:nowrap!important}
.ebx-staff-shell .ebx-staff-queue-table .ebx-staff-next-step svg{width:18px;height:18px}
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-actions .ebx-staff-inline-status{max-width:260px}
@media(max-width:700px){.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-process-cell{width:110px!important;min-width:110px!important}}

/* Beta 6.8: compact unread counter and immutable support conversation. */
.ebx-staff-links>a>.ebx-staff-unread{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:auto;padding:0 5px;border-radius:999px;background:#d62838;color:#fff;font-size:11px;font-weight:800;line-height:1;flex:none;box-shadow:0 0 0 2px var(--sidebar)}
.ebx-staff-shell .ebx-staff-ticket{padding:18px 20px;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-staff-ticket-title{align-items:center;margin-bottom:17px;flex-wrap:wrap}
.ebx-staff-shell .ebx-support-thread{display:flex;flex-direction:column;gap:12px;padding:12px 0 15px;border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-support-bubble{max-width:85%;min-width:0;border:1px solid var(--border);background:var(--panel2);border-radius:13px 13px 13px 4px;padding:11px 14px;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-support-bubble.is-staff{align-self:flex-end;background:var(--tint);border-color:var(--border);border-radius:13px 13px 4px 13px}
.ebx-staff-shell .ebx-support-bubble.is-client{align-self:flex-start}
.ebx-staff-shell .ebx-support-bubble-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:11px;margin-bottom:6px}
.ebx-staff-shell .ebx-support-bubble-meta strong{color:var(--text);font-size:12px}
.ebx-staff-shell .ebx-support-bubble p{margin:0;white-space:pre-wrap;font-size:13px;line-height:1.55}
.ebx-staff-shell .ebx-staff-ticket form{padding-top:3px}
@media(max-width:570px){.ebx-staff-shell .ebx-support-bubble{max-width:96%;padding:10px}.ebx-staff-shell .ebx-staff-ticket{padding:14px}}

/* Beta 6.9: support → client CRM contextual actions. */
.ebx-staff-shell .ebx-staff-ticket-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 14px;margin:0 0 12px;background:var(--panel2);border:1px solid var(--border);border-radius:11px;min-width:0}
.ebx-staff-shell .ebx-staff-ticket-client{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 230px}
.ebx-staff-shell .ebx-staff-ticket-client-avatar{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border-radius:50%;background:var(--tint);color:var(--blue-strong);font-weight:800}
.ebx-staff-shell .ebx-staff-ticket-client-info{display:grid;gap:2px;min-width:0}
.ebx-staff-shell .ebx-staff-ticket-client-info strong{font-size:13px;color:var(--text);overflow-wrap:anywhere}
.ebx-staff-shell .ebx-staff-ticket-client-info span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.ebx-staff-shell .ebx-staff-ticket-client-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.ebx-staff-shell .ebx-staff-ticket-client-actions form.ebx-staff-ticket-recovery{padding:0;margin:0;display:inline-flex}
.ebx-staff-shell .ebx-staff-ticket-client-actions :is(a,button,span).ebx-staff-ticket-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--blue-strong);font:inherit;font-size:12px;font-weight:700;text-decoration:none;line-height:1.3;white-space:normal;cursor:pointer}
.ebx-staff-shell .ebx-staff-ticket-client-actions :is(a,button).ebx-staff-ticket-action:hover{background:var(--tint);border-color:var(--blue-strong)}
.ebx-staff-shell .ebx-staff-ticket-client-actions :is(a,button).ebx-staff-ticket-action:focus-visible{outline:2px solid var(--blue-strong);outline-offset:2px}
.ebx-staff-shell .ebx-staff-ticket-client-actions span.ebx-staff-ticket-action-disabled{color:var(--muted);cursor:not-allowed;background:transparent}
.ebx-staff-shell .ebx-staff-ticket-context-unavailable{font-size:12px;color:var(--muted)}
.ebx-staff-shell .ebx-staff-client-back{margin:0 0 15px}.ebx-staff-shell .ebx-staff-client-back a{color:var(--blue-strong);font-weight:700}
@media(max-width:570px){.ebx-staff-shell .ebx-staff-ticket-context{padding:10px;gap:10px}.ebx-staff-shell .ebx-staff-ticket-client-actions{width:100%}.ebx-staff-shell .ebx-staff-ticket-client-actions :is(a,button,span).ebx-staff-ticket-action{font-size:11px;padding:7px 9px}}

/* Beta 6.9.1 — stable quote form grid. Single source of truth for buyout field alignment.
   Scope to the buyout calculator: never change the global Workspace form controls. */
.ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-item-fields{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px;
  align-items:start;min-width:0;margin-top:16px;
}
.ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-shop-footer{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px;
  align-items:start;min-width:0;
}
.ebx-staff-shell .ebx-buyout-workspace :is(.ebx-buyout-item-fields,.ebx-buyout-shop-footer) > :is(label,.ebx-buyout-field){
  display:flex;flex-direction:column;justify-content:flex-start;gap:7px;
  margin:0;min-width:0;width:100%;line-height:1.35;
}
.ebx-staff-shell .ebx-buyout-workspace :is(.ebx-buyout-item-fields,.ebx-buyout-shop-footer) :is(input:not([type=checkbox]),select){
  display:block;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;height:44px!important;min-height:44px!important;margin:0!important;
}
.ebx-staff-shell .ebx-buyout-workspace :is(.ebx-buyout-item-fields,.ebx-buyout-shop-footer) label>output{
  box-sizing:border-box;display:flex;align-items:center;min-width:0;min-height:44px;
  margin:0;padding:0 12px;border:1px solid var(--border);border-radius:9px;
  background:var(--panel2);font-size:13px;font-weight:700;line-height:1.35;color:var(--text);overflow-wrap:anywhere;
}
.ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-fee{
  display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px;
  width:100%;min-width:0;align-items:start;
}
.ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-fee>label{min-width:0;margin:0;gap:7px}
.ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-fee .ebx-buyout-custom[hidden]{display:none!important}
.ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-fee .ebx-buyout-custom:not([hidden]){
  display:flex;flex-direction:column;align-items:stretch;gap:7px;
}
.ebx-staff-shell .ebx-buyout-workspace .ebx-sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
/* Keep labels, fields and select baselines predictable in a constrained Workspace main panel. */
@media(max-width:1160px){
  .ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-item-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:920px){
  .ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-item-fields,
  .ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-shop-footer{grid-template-columns:minmax(0,1fr)}
}

/* Beta 6.9.2: non-mutating warehouse lookup, before the receiving confirmation. */
.ebx-wh-preview .ebx-staff-preview-items li{align-items:flex-start}
.ebx-wh-preview-comment{padding:11px 13px;background:var(--tint);border-radius:9px;overflow-wrap:anywhere}
.ebx-wh-before-receive{margin:14px 0 18px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text)}
.ebx-wh-before-receive h3{margin:0 0 8px!important}
.ebx-wh-before-receive-items{margin:12px 0;padding-left:22px}
.ebx-wh-before-receive-items li{padding:8px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.ebx-wh-before-receive-items li:last-child{border-bottom:0}
.ebx-wh-before-receive-items li span{font-size:12px;color:var(--muted);margin-left:8px}
.ebx-wh-before-receive-items a{white-space:normal;margin-left:9px}
.ebx-wh-search input[type=search]{min-width:0}
@media(max-width:600px){.ebx-wh-before-receive{padding:13px}.ebx-wh-before-receive-items a{display:inline-block}}

/* Beta 6.9.3: readable, immutable breakdown for automatically issued delivery invoices. */
.ebx-staff-shell .ebx-staff-bill-details,.ebx-staff-shell .ebx-staff-bill-history{border:1px solid var(--border);border-radius:12px;background:var(--panel2);padding:0;margin:16px 0;min-width:0}
.ebx-staff-shell .ebx-staff-bill-details>summary,.ebx-staff-shell .ebx-staff-bill-history>summary{cursor:pointer;padding:15px 18px;font-weight:700;color:var(--blue-strong);list-style-position:inside}
.ebx-staff-shell .ebx-staff-bill-details[open]>summary,.ebx-staff-shell .ebx-staff-bill-history[open]>summary{border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-staff-bill-details>.ebx-bill-snapshot{padding:16px 18px 8px}
.ebx-staff-shell .ebx-staff-bill-details>.ebx-bill-footnote{padding:0 18px 14px}
.ebx-staff-shell .ebx-staff-bill-history ul{margin:14px 18px 18px;padding-left:20px}
.ebx-staff-shell .ebx-bill-description{font-weight:600;margin:0 0 12px}
.ebx-staff-shell .ebx-bill-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0 0 16px}
.ebx-staff-shell .ebx-bill-facts>div{min-width:0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 12px;border-bottom:1px solid var(--border);padding:7px 0}
.ebx-staff-shell .ebx-bill-facts dt{color:var(--muted)}
.ebx-staff-shell .ebx-bill-facts dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-bill-lines{max-width:820px;margin:0;display:grid;gap:0}
.ebx-staff-shell .ebx-bill-lines>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-bill-lines dt{color:var(--muted)}
.ebx-staff-shell .ebx-bill-lines dd{margin:0;font-weight:700;white-space:nowrap}
.ebx-staff-shell .ebx-bill-lines .ebx-bill-total{border-top:2px solid var(--border);border-bottom:0;margin-top:8px;font-size:17px}
.ebx-staff-shell .ebx-bill-lines .ebx-bill-total dt,.ebx-staff-shell .ebx-bill-lines .ebx-bill-total dd{font-weight:800;color:var(--text)}
.ebx-staff-shell .ebx-bill-footnote{color:var(--muted);font-size:13px;line-height:1.5;margin:14px 0 0}
.ebx-staff-shell .ebx-bill-warning{padding:12px 14px;margin:12px 0;background:var(--panel);border:1px solid #be7c31;border-radius:9px;font-weight:600}
@media(max-width:700px){.ebx-staff-shell .ebx-bill-facts{grid-template-columns:1fr}.ebx-staff-shell .ebx-staff-bill-details>summary,.ebx-staff-shell .ebx-staff-bill-history>summary{padding:13px}.ebx-staff-shell .ebx-staff-bill-details>.ebx-bill-snapshot{padding:13px}}


/* Beta 6.9.5: consistent, clearly legible Warehouse Quick View eye button.
   Match the icon-only actions in Requests; never modify the preview handler. */
.ebx-staff-shell .ebx-staff-table-wrap button.ebx-wh-eye-btn {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  padding:0!important;margin:0!important;line-height:1!important;
  border:1px solid var(--border)!important;border-radius:9px!important;
  background:var(--panel)!important;color:var(--blue-strong)!important;
  cursor:pointer;vertical-align:middle;
}
.ebx-staff-shell .ebx-staff-table-wrap button.ebx-wh-eye-btn svg.ebx-wh-eye-icon {
  display:block!important;position:static!important;flex:0 0 22px!important;
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
  max-width:none!important;max-height:none!important;stroke-width:2!important;
  padding:0!important;margin:0!important;transform:none!important;
}
.ebx-staff-shell .ebx-staff-table-wrap button.ebx-wh-eye-btn:hover {
  background:var(--tint)!important;border-color:var(--blue)!important;
}
.ebx-staff-shell .ebx-staff-table-wrap button.ebx-wh-eye-btn:focus-visible {
  outline:3px solid var(--focus)!important;outline-offset:2px!important;
}

/* Beta 7.0 — request dialogue and audited cancellation. Keep staff actions compact. */
.ebx-staff-shell .ebx-request-care,.ebx-staff-shell .ebx-buyout-workspace>.ebx-request-care{margin:16px 0!important;padding:17px 20px}
.ebx-staff-shell .ebx-request-care h2{font-size:17px;margin:0 0 10px}
.ebx-staff-shell .ebx-request-care details{border:1px solid var(--border);border-radius:11px;padding:10px 13px;margin-top:10px;background:var(--panel2)}
.ebx-staff-shell .ebx-request-care summary{cursor:pointer;font-weight:650;font-size:13px;color:var(--text)}
.ebx-staff-shell .ebx-request-care .ebx-care-cancel summary{color:var(--text)}
.ebx-staff-shell .ebx-care-form{display:grid;gap:12px;margin:12px 0 2px}
.ebx-staff-shell .ebx-care-form label{display:grid;gap:6px;font-size:12px;font-weight:600;color:var(--text)}
.ebx-staff-shell .ebx-care-form textarea,.ebx-staff-shell .ebx-care-form select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid var(--border);border-radius:9px;padding:10px 12px;color:var(--text);background:var(--panel)}
.ebx-staff-shell .ebx-care-form textarea{min-height:85px;resize:vertical}
.ebx-staff-shell .ebx-care-form button{justify-self:start;min-height:42px}
.ebx-staff-shell .ebx-care-form .ebx-care-confirm{display:flex;align-items:center;gap:8px}
.ebx-staff-shell .ebx-care-form .ebx-care-confirm input{width:17px;height:17px}
.ebx-staff-shell .ebx-care-feedback{padding:10px 13px;border:1px solid var(--border);border-radius:9px;background:var(--tint);font-size:13px}
.ebx-staff-shell .ebx-support-linked-eb{margin:0 0 12px;font-size:13px}
.ebx-cancellation-reason{margin:14px 0;padding:13px 15px;border:1px solid #e7c9a1;background:rgba(246,174,55,.09);border-radius:11px;color:inherit;overflow-wrap:anywhere}
.ebx-cancellation-reason strong{font-size:13px}.ebx-cancellation-reason p{margin:7px 0 0;white-space:pre-wrap;font-size:13px;line-height:1.5}
@media(max-width:570px){.ebx-staff-shell .ebx-request-care{padding:13px}.ebx-staff-shell .ebx-care-form button{width:100%}}

/* Beta 7.0.1: unambiguous post-quote navigation, no change to financial rules. */
.ebx-staff-shell .ebx-buyout-consolidation-note{margin:6px 0 12px;padding:10px 13px;border-left:3px solid var(--accent,#00a9e9);border-radius:7px;background:var(--panel2);font-size:13px;line-height:1.55;color:var(--muted)}
.ebx-staff-shell .ebx-buyout-next-instruction{margin:0 0 14px!important;padding:11px 13px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);font-size:14px;line-height:1.5}
.ebx-staff-shell .ebx-eb-stage[data-ebx-step="payment"][open] .ebx-buyout-next-instruction strong{color:var(--text)}

/* Beta 7.0.2 — warehouse visual clarity, scoped to Workspace */
.ebx-staff-shell .ebx-staff-receiving .ebx-receiving-core{--wh-field:#fff;--wh-field-border:#a7bad0}
.ebx-staff-shell[data-theme=dark] .ebx-staff-receiving .ebx-receiving-core{--wh-field:#253449;--wh-field-border:#657891}
.ebx-staff-shell .ebx-receiving-core :is(input:not([type=checkbox]),select,textarea){background:var(--wh-field)!important;border:1.5px solid var(--wh-field-border)!important;color:var(--text)!important;min-height:46px!important;box-shadow:0 1px 2px rgba(20,52,78,.08)!important}
.ebx-staff-shell .ebx-receiving-core :is(input:not([type=checkbox]),select,textarea):focus{outline:3px solid rgba(0,169,233,.24)!important;outline-offset:1px;border-color:#009ad6!important}
.ebx-staff-shell .ebx-receiving-core input[type=checkbox]{appearance:none!important;width:23px!important;height:23px!important;min-width:23px!important;flex:0 0 23px!important;background:var(--wh-field)!important;border:2px solid var(--wh-field-border)!important;border-radius:6px!important;display:inline-grid!important;place-content:center!important;cursor:pointer!important;vertical-align:middle!important}
.ebx-staff-shell .ebx-receiving-core input[type=checkbox]:checked{background:#00a9e9!important;border-color:#008dbd!important}
.ebx-staff-shell .ebx-receiving-core input[type=checkbox]:checked:after{content:'';width:11px;height:6px;border-bottom:3px solid #0a304b;border-left:3px solid #0a304b;transform:translateY(-1px) rotate(-45deg)}
.ebx-staff-shell .ebx-receiving-core input[type=checkbox]:focus-visible{outline:3px solid #00a9e9!important;outline-offset:3px}
.ebx-staff-shell .ebx-receive-items :is(td,th){vertical-align:top!important;text-align:left!important}
.ebx-staff-shell .ebx-wh-visual-label{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:110px;margin:4px 0;font-size:12px;font-weight:600;white-space:nowrap}
.ebx-staff-shell .ebx-wh-service-box{display:flex;flex-direction:column;align-items:flex-start;gap:7px;background:rgba(0,169,233,.09);border:1.5px solid rgba(0,169,233,.42);border-left:5px solid #00a9e9;border-radius:12px;padding:16px 20px;margin:16px 0 24px}
.ebx-staff-shell .ebx-wh-service-box strong{font-size:19px;color:var(--text)}
.ebx-staff-shell .ebx-wh-service-box small{color:var(--muted);line-height:1.5}
.ebx-staff-shell .ebx-wh-service-eyebrow{color:#0079a7;font-weight:800;letter-spacing:.025em;font-size:12px;text-transform:uppercase}
.ebx-staff-shell[data-theme=dark] .ebx-wh-service-eyebrow{color:#6dd4ff}
.ebx-staff-shell .ebx-wh-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 22px}
.ebx-staff-shell .ebx-wh-steps span{padding:11px 12px;min-height:45px;border:1px solid var(--border);border-radius:10px;background:var(--panel2);color:var(--text);font-size:12px;font-weight:650;display:flex;align-items:center}
.ebx-staff-shell .ebx-wh-step-title{margin:26px 0 12px!important;padding:13px 0!important;border-bottom:2px solid var(--border)!important;display:flex;align-items:center;gap:11px;font-size:21px!important}
.ebx-staff-shell .ebx-wh-step-num{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-content:center;background:#00a9e9;color:#08304a;font-size:15px;font-weight:850}
.ebx-staff-shell .ebx-receive-items tbody tr:nth-child(even){background:rgba(0,144,200,.035)!important}
.ebx-staff-shell .ebx-receive-items tbody tr:hover{background:rgba(0,169,233,.08)!important}
.ebx-staff-shell .ebx-wh-qty-stepper{display:flex;align-items:stretch;gap:0;max-width:180px;min-width:135px;border:1.5px solid var(--wh-field-border);border-radius:9px;overflow:hidden;background:var(--wh-field)}
.ebx-staff-shell .ebx-wh-qty-stepper input[type=number]{width:58px!important;min-width:40px!important;flex:1 1 40px!important;border:0!important;box-shadow:none!important;border-radius:0!important;text-align:center!important;margin:0!important;appearance:textfield!important;-moz-appearance:textfield!important}
.ebx-staff-shell .ebx-wh-qty-stepper input::-webkit-outer-spin-button,.ebx-staff-shell .ebx-wh-qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ebx-staff-shell .ebx-wh-qty-stepper button{min-width:37px!important;width:37px!important;min-height:46px!important;max-height:46px!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--panel2)!important;color:var(--text)!important;font-size:24px!important;font-weight:500!important;line-height:1!important;cursor:pointer}
.ebx-staff-shell .ebx-wh-qty-stepper button:first-child{border-right:1px solid var(--wh-field-border)!important}
.ebx-staff-shell .ebx-wh-qty-stepper button:last-child{border-left:1px solid var(--wh-field-border)!important}
.ebx-staff-shell .ebx-wh-qty-stepper button:hover{background:rgba(0,169,233,.22)!important}
.ebx-staff-shell .ebx-staff-receiving .ebx-receive-must-check,.ebx-staff-shell .ebx-staff-receiving .ebx-receive-checkrow{background:var(--panel2);padding:12px 14px!important;border:1px solid var(--border);border-radius:10px;align-items:flex-start!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="expected"]{background:#e4efff!important;border-color:#8badde!important;color:#174882!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="receiving"]{background:#e8e3ff!important;border-color:#9b91dd!important;color:#46379c!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="partially_received"]{background:#fff1d5!important;border-color:#e6ad44!important;color:#825007!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="received"]{background:#d5f5e8!important;border-color:#52b38a!important;color:#126645!important}
.ebx-staff-shell .ebx-staff-status[data-ebx-status="received_issue"]{background:#ffe4e4!important;border-color:#da7777!important;color:#9d222c!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="expected"]{background:#1b3859!important;color:#bed9ff!important;border-color:#5f85b2!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="receiving"]{background:#302c55!important;color:#d4c9ff!important;border-color:#7771a9!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="partially_received"]{background:#513b21!important;color:#ffdc9e!important;border-color:#b98947!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="received"]{background:#193d35!important;color:#a9ebcd!important;border-color:#458c73!important}
.ebx-staff-shell[data-theme=dark] .ebx-staff-status[data-ebx-status="received_issue"]{background:#4f292e!important;color:#ffbbbf!important;border-color:#bb6b76!important}
.ebx-staff-shell .ebx-crypto-confirm-form,.ebx-staff-shell .ebx-crypto-confirmed{border:1px solid var(--border);border-radius:12px;padding:18px;margin:18px 0;background:var(--panel2)}
.ebx-staff-shell .ebx-crypto-confirm-form h3{margin:0 0 8px}
.ebx-staff-shell .ebx-crypto-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ebx-staff-shell .ebx-crypto-form label{display:grid;gap:7px;font-weight:650}
.ebx-staff-shell .ebx-crypto-form :is(input:not([type=checkbox]),select){display:block;width:100%;min-width:0;min-height:44px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;box-sizing:border-box}
.ebx-staff-shell .ebx-crypto-form .ebx-crypto-wide{grid-column:1/-1}
.ebx-staff-shell .ebx-crypto-check{display:flex!important;align-items:flex-start;gap:12px}
.ebx-staff-shell .ebx-crypto-check input{flex:0 0 22px;width:22px;height:22px}
.ebx-staff-shell .ebx-crypto-form button{justify-self:start}
@media(max-width:750px){.ebx-staff-shell .ebx-wh-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.ebx-staff-shell .ebx-crypto-form{grid-template-columns:1fr}}
/* Stepper needs a real table column: never overlap the visual-inspection checkbox. */
.ebx-staff-receiving .ebx-receive-items{min-width:980px!important}
.ebx-staff-receiving .ebx-receive-items :is(td,th):first-child{width:28%!important}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(2),.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(3){width:8%!important}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(4){width:21%!important}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(5){width:15%!important}
.ebx-staff-receiving .ebx-receive-items :is(td,th):nth-child(6){width:20%!important}

/* Beta 7.0.3: align the cancellation confirmation as a single left-anchored action,
   overriding legacy grid labels and theme checkbox wrappers. */
.ebx-staff-shell .ebx-request-care .ebx-care-form label.ebx-care-confirm{
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  justify-content:flex-start!important;align-items:center!important;align-self:start!important;
  justify-self:start!important;gap:11px!important;max-width:100%!important;width:auto!important;
  min-height:32px!important;margin:2px 0!important;padding:0!important;text-align:left!important;
  font-size:13px!important;font-weight:650!important;line-height:1.45!important;
}
.ebx-staff-shell .ebx-request-care .ebx-care-form label.ebx-care-confirm input[type=checkbox]{
  position:static!important;display:block!important;float:none!important;flex:0 0 22px!important;
  width:22px!important;height:22px!important;min-width:22px!important;margin:0!important;
  appearance:auto!important;accent-color:#00a9e9;vertical-align:middle!important;
}
.ebx-staff-shell .ebx-request-care .ebx-care-form label.ebx-care-confirm span{
  display:inline!important;flex:0 1 auto!important;width:auto!important;margin:0!important;
  font:inherit!important;text-align:left!important;overflow-wrap:anywhere;
}

/* Beta 7.0.4 — resolved support tickets and accessible compact accordions. */
.ebx-staff-shell .ebx-staff-support-filters{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 16px}
.ebx-staff-shell .ebx-staff-support-filters a{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 13px;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:9px;font-size:13px;font-weight:700;text-decoration:none}
.ebx-staff-shell .ebx-staff-support-filters a[aria-current=page]{border-color:var(--blue-strong);background:var(--tint);color:var(--blue-strong)}
.ebx-staff-shell .ebx-staff-support-filters a span{color:var(--muted);font-size:12px}
.ebx-staff-shell details.ebx-staff-ticket{padding:0;overflow:hidden}
.ebx-staff-shell .ebx-staff-ticket>summary.ebx-staff-ticket-title{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px;margin:0;padding:16px 20px;cursor:pointer;user-select:none}
.ebx-staff-shell .ebx-staff-ticket>summary::-webkit-details-marker{display:none}
.ebx-staff-shell .ebx-staff-ticket>summary::marker{content:''}
.ebx-staff-shell .ebx-staff-ticket[open]>summary{border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-staff-ticket>summary:hover{background:var(--panel2)}
.ebx-staff-shell .ebx-staff-ticket>summary:focus-visible{outline:3px solid var(--blue-strong);outline-offset:-4px}
.ebx-staff-shell .ebx-staff-ticket-summary{display:grid;gap:5px;min-width:0}
.ebx-staff-shell .ebx-staff-ticket-summary strong{font-size:14px;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-staff-ticket-summary small{font-size:11px;color:var(--muted);font-weight:500}
.ebx-staff-shell .ebx-staff-ticket-right{display:flex;align-items:center;gap:13px;flex:none}
.ebx-staff-shell .ebx-staff-ticket-chevron{font-size:23px;line-height:1;color:var(--muted);transform:rotate(0);transition:transform .15s ease}
.ebx-staff-shell .ebx-staff-ticket[open] .ebx-staff-ticket-chevron{transform:rotate(180deg)}
.ebx-staff-shell .ebx-staff-ticket-body{padding:16px 20px 20px}
.ebx-staff-shell .ebx-staff-ticket[data-ebx-ticket-state=closed]>summary .ebx-staff-status{background:var(--panel2);color:var(--muted);border-color:var(--border)}
.ebx-staff-shell .ebx-staff-ticket-transition{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px;padding-top:14px!important;border-top:1px solid var(--border)}
.ebx-staff-shell .ebx-staff-ticket-transition :is(.ebx-staff-ticket-close,.ebx-staff-ticket-reopen){min-height:40px;padding:9px 15px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--blue-strong);font-weight:750;cursor:pointer}
.ebx-staff-shell .ebx-staff-ticket-transition button:hover{background:var(--tint);border-color:var(--blue-strong)}
.ebx-staff-shell .ebx-staff-ticket-transition button:focus-visible{outline:3px solid var(--blue-strong);outline-offset:2px}
.ebx-staff-shell .ebx-staff-ticket-tip,.ebx-staff-shell .ebx-staff-ticket-resolved{font-size:12px;color:var(--muted);margin:12px 0 0}
.ebx-client-cabinet-r02 .ebx-support-closed-note{padding:12px;border-radius:9px;background:var(--ebx-theme-soft,#f1f6fa);color:var(--ebx-theme-secondary,#586d84);font-size:13px}
@media(max-width:570px){
 .ebx-staff-shell .ebx-staff-ticket>summary.ebx-staff-ticket-title{padding:13px;min-height:62px}
 .ebx-staff-shell .ebx-staff-ticket-body{padding:13px}
 .ebx-staff-shell .ebx-staff-ticket-right{gap:6px}
 .ebx-staff-shell .ebx-staff-ticket-summary strong{font-size:12px}
}

.ebx-staff-shell .ebx-support-bubble.is-system{align-self:center;max-width:100%;border:0;background:var(--panel2);border-radius:10px;text-align:center;font-size:12px}

/* Beta 7.0.13 — purchasing checklist directly above each store order form. */
.ebx-staff-shell .ebx-purchase-products{min-width:0;display:grid;gap:0;border:1px solid var(--border);border-radius:10px;background:var(--panel);overflow:hidden}
.ebx-staff-shell .ebx-purchase-products-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-purchase-products-heading h4{font-size:13px;margin:0;color:var(--text);font-weight:800}
.ebx-staff-shell .ebx-purchase-products-heading>span{font-size:12px;color:var(--muted)}
.ebx-staff-shell .ebx-purchase-products-list{display:grid;min-width:0}
.ebx-staff-shell .ebx-purchase-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.17fr) minmax(150px,.28fr);align-items:start;gap:14px;padding:13px 14px;border-bottom:1px solid var(--border);min-width:0}
.ebx-staff-shell .ebx-purchase-product:last-child{border-bottom:0}
.ebx-staff-shell .ebx-purchase-product-main{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.ebx-staff-shell .ebx-purchase-product-title{font-size:13px;font-weight:800;line-height:1.45;color:var(--text);overflow-wrap:anywhere}
.ebx-staff-shell .ebx-purchase-product-meta{color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-purchase-product-meta b{font-weight:700;color:var(--text)}
.ebx-staff-shell .ebx-purchase-product-link{font-size:12px;font-weight:750;color:var(--blue-strong);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-purchase-product-no-link{font-size:12px;color:var(--muted)}
.ebx-staff-shell .ebx-purchase-product-qty,.ebx-staff-shell .ebx-purchase-product-price{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.ebx-staff-shell .ebx-purchase-product-qty small,.ebx-staff-shell .ebx-purchase-product-price small{font-size:11px;font-weight:650;color:var(--muted);line-height:1.4}
.ebx-staff-shell .ebx-purchase-product-qty strong,.ebx-staff-shell .ebx-purchase-product-price strong{font-size:13px;font-weight:800;color:var(--text);overflow-wrap:anywhere}
.ebx-staff-shell .ebx-purchase-product-initial{font-size:11px;color:var(--muted);line-height:1.4}
.ebx-staff-shell .ebx-purchase-products-footer{display:flex;flex-wrap:wrap;gap:8px 20px;padding:11px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:12px;line-height:1.5}
.ebx-staff-shell .ebx-purchase-products-footer b{color:var(--text);font-weight:700}
.ebx-staff-shell .ebx-purchase-products-empty{margin:0!important;padding:14px;font-size:12px}
@media(max-width:760px){
 .ebx-staff-shell .ebx-purchase-product{grid-template-columns:minmax(0,1fr) minmax(80px,.28fr);gap:10px}
 .ebx-staff-shell .ebx-purchase-product-main{grid-column:1/-1}
 .ebx-staff-shell .ebx-purchase-products-footer{gap:7px 16px}
}
@media(max-width:460px){.ebx-staff-shell .ebx-purchase-product{padding:12px}.ebx-staff-shell .ebx-purchase-products-heading,.ebx-staff-shell .ebx-purchase-products-footer{padding-left:12px;padding-right:12px}}

/* Beta 7.0.15: no delivery commission field when the seller offers free delivery. */
.ebx-staff-shell [data-ebx-seller-shipping-commission][hidden],
.ebx-staff-shell [data-ebx-free-shipping-note][hidden]{display:none!important}


/* Beta 7.0.16 — shared, left-anchored checkbox rows for consolidation and billing.
   These selectors explicitly override old vertical field-label and 100%-wide
   input rules. They only target action checkboxes, not text/number fields. */
.ebx-staff-shell .ebx-consolidation .ebx-consolidation-create-form{
  display:grid;grid-template-columns:minmax(0,1fr);gap:13px;justify-items:start;
}
.ebx-staff-shell .ebx-consolidation .ebx-consolidation-options{
  display:grid;grid-template-columns:minmax(0,1fr);gap:2px;width:100%;min-width:0;
}
.ebx-staff-shell .ebx-consolidation label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm),
.ebx-staff-shell .ebx-consolidation details form label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm){
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  justify-content:flex-start!important;align-items:center!important;
  gap:11px!important;width:100%!important;max-width:100%!important;
  padding:9px 0!important;margin:0!important;text-align:left!important;
  min-height:42px!important;cursor:pointer;min-width:0;
  font-size:13px;font-weight:600;line-height:1.45;
}
.ebx-staff-shell .ebx-consolidation label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm)>input[type=checkbox],
.ebx-staff-shell .ebx-consolidation details form label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm)>input[type=checkbox]{
  position:static!important;display:inline-grid!important;float:none!important;
  flex:0 0 22px!important;width:22px!important;min-width:22px!important;
  max-width:22px!important;height:22px!important;min-height:22px!important;
  margin:0!important;padding:0!important;align-self:center!important;
}
.ebx-staff-shell .ebx-consolidation label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm)>span{
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  width:auto!important;margin:0!important;text-align:left!important;overflow-wrap:anywhere;
}
.ebx-staff-shell .ebx-consolidation .ebx-consolidation-create-form>button,
.ebx-staff-shell .ebx-consolidation .ebx-consolidation-form>button{
  justify-self:start!important;max-width:100%;
}
/* Billing checkboxes must not inherit the ordinary input's width:100% or the
   ordinary label's flex-direction:column. Keep the check adjacent to its text. */
.ebx-staff-shell .ebx-delivery-billing-form label:is(.ebx-delivery-final-check,.ebx-benchmark-check){
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  justify-content:flex-start!important;align-items:center!important;
  gap:12px!important;text-align:left!important;min-width:0!important;
}
.ebx-staff-shell .ebx-delivery-billing-form label.ebx-delivery-final-check{
  width:100%!important;margin:0!important;
}
.ebx-staff-shell .ebx-delivery-billing-form label.ebx-benchmark-check{
  width:100%!important;margin:0!important;padding:3px 0!important;
}
.ebx-staff-shell .ebx-delivery-billing-form label:is(.ebx-delivery-final-check,.ebx-benchmark-check)>input[type=checkbox]{
  position:static!important;display:inline-grid!important;float:none!important;
  flex:0 0 22px!important;width:22px!important;min-width:22px!important;
  max-width:22px!important;height:22px!important;min-height:22px!important;
  margin:0!important;padding:0!important;align-self:center!important;
}
.ebx-staff-shell .ebx-delivery-billing-form label:is(.ebx-delivery-final-check,.ebx-benchmark-check)>span{
  display:block!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;
  margin:0!important;text-align:left!important;line-height:1.5;overflow-wrap:anywhere;
}
@media(max-width:600px){
  .ebx-staff-shell .ebx-consolidation label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm){
    align-items:flex-start!important;
  }
  .ebx-staff-shell .ebx-delivery-billing-form label:is(.ebx-delivery-final-check,.ebx-benchmark-check){
    align-items:flex-start!important;
  }
  .ebx-staff-shell .ebx-consolidation label:is(.ebx-consolidation-choice,.ebx-consolidation-confirm)>input[type=checkbox],
  .ebx-staff-shell .ebx-delivery-billing-form label:is(.ebx-delivery-final-check,.ebx-benchmark-check)>input[type=checkbox]{
    align-self:flex-start!important;margin-top:1px!important;
  }
}

/* BETA 7.0.17: compact, accessible client list pagination */
.ebx-staff-client-search .ebx-staff-clients-page-size{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px}
.ebx-staff-client-search .ebx-staff-clients-page-size select{min-height:38px;padding:6px 30px 6px 10px}
.ebx-staff-client-search .ebx-staff-clients-reset{align-self:center;text-decoration:underline;font-size:13px}
.ebx-staff-clients-pages{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:14px 0 8px}
.ebx-staff-clients-pages a,.ebx-staff-clients-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:4px 9px;border:1px solid var(--ebx-border,#d8dfe7);border-radius:8px;text-decoration:none}
.ebx-staff-clients-pages .is-current{font-weight:700;background:var(--ebx-surface-hover,#edf2f8)}


/* Beta 7.0.18 — CRM search: one row with readable select, no 100%-width search button */
.ebx-staff-shell .ebx-staff-search.ebx-staff-client-search{
 display:grid;grid-template-columns:minmax(210px,440px) 165px 106px 105px;
 align-items:center;gap:10px;justify-content:start;width:100%;margin-bottom:16px;
}
.ebx-staff-shell .ebx-staff-client-search>input{width:100%;height:44px;min-height:44px}
.ebx-staff-shell .ebx-staff-client-search .ebx-staff-clients-page-size{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;white-space:nowrap}
.ebx-staff-shell .ebx-staff-client-search .ebx-staff-clients-page-size select{width:75px;min-width:75px;height:44px;min-height:44px;padding:7px 25px 7px 10px}
.ebx-staff-shell .ebx-staff-client-search .ebx-staff-clients-find{width:106px;min-width:0;min-height:44px;height:44px;margin:0}
.ebx-staff-shell .ebx-staff-client-search .ebx-staff-clients-reset{display:inline-flex;align-items:center;justify-content:center;width:105px;min-height:44px;height:44px;margin:0;border:1px solid var(--border);border-radius:9px;text-decoration:none;font-size:13px}
.ebx-staff-shell a.ebx-staff-clients-eye{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:9px;color:var(--blue-strong);text-decoration:none}
.ebx-staff-shell a.ebx-staff-clients-eye:hover{background:var(--panel2)}
.ebx-stripe-retry-notice{padding:12px 14px;border:1px solid var(--border);border-radius:9px;background:var(--panel2);color:var(--text)}
@media(max-width:900px){.ebx-staff-shell .ebx-staff-search.ebx-staff-client-search{grid-template-columns:minmax(210px,1fr) 165px 105px 105px}}
@media(max-width:660px){.ebx-staff-shell .ebx-staff-search.ebx-staff-client-search{grid-template-columns:minmax(0,1fr) 105px;gap:8px}.ebx-staff-shell .ebx-staff-client-search>input{grid-column:1/-1}.ebx-staff-shell .ebx-staff-client-search .ebx-staff-clients-find{width:100%}.ebx-staff-shell .ebx-staff-client-search .ebx-staff-clients-reset{width:100%}}
/* Staff-only operational locker exception attached to a shop dispatch; never to the invoice */
.ebx-shop-locker-exception{margin:12px 0;padding:13px 15px;border:1px solid var(--border);border-radius:10px}
.ebx-shop-locker-exception>summary{font-weight:650;cursor:pointer}
.ebx-shop-locker-exception form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.ebx-shop-locker-exception form>.ebx-checkbox-line,.ebx-shop-locker-exception form>p,.ebx-shop-locker-exception form>button,.ebx-shop-locker-exception form>label:has(textarea){grid-column:1/-1}
.ebx-shop-locker-exception textarea{min-height:70px}
@media(max-width:640px){.ebx-shop-locker-exception form{grid-template-columns:minmax(0,1fr)}}

/* Beta 7.0.27 — one compact server-side pagination system for CRM, requests, buyouts and warehouse. */
.ebx-staff-shell .ebx-staff-list-pages{justify-content:flex-end;gap:5px;margin:9px 0 15px}
.ebx-staff-shell .ebx-staff-list-pages a,.ebx-staff-shell .ebx-staff-list-pages span{min-width:36px;min-height:36px}
.ebx-staff-shell .ebx-staff-list-page-size{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;white-space:nowrap;font-size:12px;color:var(--muted)}
.ebx-staff-shell .ebx-staff-list-page-size select{width:77px!important;min-width:77px;max-width:77px!important;height:44px!important;min-height:44px!important;padding-left:10px!important;padding-right:30px!important}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
  grid-template-columns:minmax(165px,1fr) minmax(115px,144px) minmax(125px,152px) 154px 90px 102px;
  gap:9px;
}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
  grid-template-columns:minmax(110px,130px) minmax(175px,1fr) minmax(110px,132px) minmax(115px,145px) 154px 90px 102px;
}
.ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-list-page-size{height:44px;max-width:none}
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search{grid-template-columns:minmax(190px,1fr) minmax(160px,220px) 154px 90px 102px;gap:10px}
.ebx-staff-shell .ebx-staff-search.ebx-wh-search{display:grid;grid-template-columns:minmax(200px,1fr) minmax(150px,220px) 154px 90px 105px;gap:10px;align-items:center}
.ebx-staff-shell .ebx-wh-search>select{min-width:0;max-width:100%;width:100%;height:44px;min-height:44px}
.ebx-staff-shell .ebx-wh-search>input{min-width:0}
.ebx-staff-shell .ebx-wh-search>:is(button,.ebx-staff-reset-link){width:100%;height:44px;min-height:44px;justify-content:center;margin:0}
.ebx-staff-shell .ebx-buyout-search>:is(button,.ebx-buyout-reset){height:44px;min-height:44px;justify-content:center;margin:0}
@media(max-width:1260px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-request-search{grid-column:span 2}
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search,
  .ebx-staff-shell .ebx-staff-search.ebx-wh-search{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ebx-staff-shell .ebx-buyout-search>input:not([type=hidden]),
  .ebx-staff-shell .ebx-wh-search>input:not([type=hidden]){grid-column:span 2}
}
@media(max-width:700px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter,
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search,
  .ebx-staff-shell .ebx-staff-search.ebx-wh-search{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-request-search,
  .ebx-staff-shell .ebx-buyout-search>input:not([type=hidden]),
  .ebx-staff-shell .ebx-wh-search>input:not([type=hidden]){grid-column:1/-1}
  .ebx-staff-shell .ebx-wh-search>select{min-width:0;grid-column:1/-1}
  .ebx-staff-shell .ebx-staff-list-pages{justify-content:flex-start}
}
/* Beta 7.0.28.3 — customer-linked Woo history and manual FIO review. */
.ebx-staff-client-legacy{margin-top:18px}
.ebx-staff-client-legacy .ebx-staff-table-wrap{overflow-x:auto}
.ebx-staff-client-legacy-detail{padding:16px;margin:12px 0 18px;background:var(--panel2);border:1px solid var(--border);border-radius:10px}
.ebx-staff-client-legacy-detail .ebx-legacy-core-detail{margin-top:8px}
.ebx-staff-client-legacy .ebx-staff-list-pages{margin:14px 0 3px}
.ebx-migr-name-review{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:10px}
.ebx-migr-name-review li{margin:8px 0;overflow-wrap:anywhere}

/* Beta 7.0.50 — unified form spacing and checkbox alignment (Staff only). */
.ebx-staff-shell label:has(>input[type="checkbox"]){
  display:inline-flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:9px!important;flex-wrap:nowrap!important;
  max-width:100%;width:auto;line-height:1.5;text-align:left!important;
}
.ebx-staff-shell label:has(>input[type="checkbox"])>input[type="checkbox"]{
  flex:0 0 20px!important;align-self:center!important;margin:0!important;order:0;
}
.ebx-staff-shell :is(.ebx-buyout-workspace,.ebx-staff-team,.ebx-staff-receiving)
  label:has(>input[type="checkbox"])>span{min-width:0;white-space:normal}
.ebx-staff-team .ebx-mail-test-form,
.ebx-staff-team .ebx-mail-settings-form,
.ebx-staff-team .ebx-mail-flush-form{display:flex;align-items:center;flex-wrap:wrap;gap:12px 17px;margin:16px 0}
.ebx-staff-team .ebx-mail-settings-form>label{margin:0!important;min-width:0;flex:0 1 auto}
.ebx-staff-team :is(.ebx-mail-test-form,.ebx-mail-settings-form,.ebx-mail-flush-form)>button{
  min-height:44px;margin:0!important;flex:none;
}
.ebx-staff-team .ebx-mail-flush-form>small{flex-basis:100%;color:var(--muted)}
.ebx-staff-team .ebx-mail-pending{margin:24px 0 0;padding:18px;background:var(--panel);border:1px solid var(--border);border-radius:12px}
.ebx-staff-team .ebx-mail-pending>p{color:var(--muted)}
.ebx-staff-team .ebx-mail-table{min-width:760px;width:100%}
.ebx-staff-team .ebx-mail-table :is(td,th){padding:11px 12px;vertical-align:middle;text-align:left}
.ebx-staff-team .ebx-mail-table small{color:var(--muted);font-size:12px}
.ebx-staff-shell .ebx-mail-remind-form{display:flex;gap:10px;align-items:center;margin:14px 0!important}
.ebx-staff-shell .ebx-mail-remind-form>button{margin:0!important;min-height:42px;white-space:normal;text-align:center}
.ebx-staff-shell :is(.ebx-team-action-body form,.ebx-shop-purchase-form,.ebx-delivery-billing-form,.ebx-shop-dispatch-form)
  >button{min-height:42px}
@media(max-width:680px){
  .ebx-staff-team .ebx-mail-settings-form{align-items:stretch;flex-direction:column}
  .ebx-staff-team .ebx-mail-settings-form>button{align-self:flex-start;max-width:100%}
  .ebx-staff-team .ebx-mail-pending{padding:13px}
}

.ebx-staff-shell .ebx-team-create-form>.ebx-team-check{grid-column:1/-1}

/* 7.0.58 — per-item currency independently selectable from client's quote currency. */
@media(min-width:1121px){
 .ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-item-fields{
   grid-template-columns:repeat(4,minmax(0,1fr));
 }
}
@media(min-width:621px) and (max-width:1120px){
 .ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-item-fields{
   grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:620px){
 .ebx-staff-shell .ebx-buyout-workspace .ebx-buyout-item-fields{
   grid-template-columns:minmax(0,1fr);
 }
}


/* 7.0.64 — paginated column sorting, request timestamps and visible client contact. */
.ebx-staff-shell .ebx-staff-sort-link{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:28px;color:inherit!important;font:inherit;font-weight:700;text-decoration:none!important;white-space:nowrap}
.ebx-staff-shell .ebx-staff-sort-link:hover,.ebx-staff-shell .ebx-staff-sort-link:focus-visible{color:var(--blue-strong,#2157a1)!important;text-decoration:underline!important}
.ebx-staff-shell .ebx-staff-sort-link.is-active{color:var(--blue-strong,#2157a1)!important}
.ebx-staff-shell .ebx-staff-sort-icon{font-size:13px;opacity:.68;line-height:1;min-width:12px;text-align:center}
.ebx-staff-shell .ebx-staff-customer-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.ebx-staff-shell .ebx-staff-client-email{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:var(--muted,#667085)!important;text-decoration:none!important}
.ebx-staff-shell .ebx-staff-client-email:hover{text-decoration:underline!important;color:var(--blue-strong,#2157a1)!important}
.ebx-staff-shell .ebx-staff-request-meta{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 16px;padding:11px 15px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:var(--panel,#fff);font-size:13px}
.ebx-staff-shell .ebx-staff-request-meta>span{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:baseline}
.ebx-staff-shell .ebx-staff-queue-table{min-width:1280px!important;table-layout:fixed!important}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(1){width:122px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(2){width:220px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(3){width:86px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(4){width:158px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(5),.ebx-staff-shell .ebx-staff-queue-table th:nth-child(6){width:135px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(7){width:66px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(8){width:270px}
.ebx-staff-shell .ebx-staff-queue-table th:nth-child(9){width:56px}
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-actions{width:270px}
.ebx-staff-shell .ebx-staff-queue-table td.ebx-staff-preview-cell,.ebx-staff-shell .ebx-staff-queue-table th.ebx-staff-preview-th{width:66px;text-align:center}
.ebx-staff-shell .ebx-buyout-queue table{min-width:1110px!important}
.ebx-staff-shell .ebx-wh-sortable{min-width:1120px}

/* 7.0.68 — clear return action without duplicating navigation controls. */
.ebx-staff-shell .ebx-staff-return-wrap {margin:0 0 16px;}
.ebx-staff-shell .ebx-staff-return-link {display:inline-flex;align-items:center;min-height:36px;padding:6px 0;color:var(--blue-strong,#2157a1);font-size:13px;font-weight:600;text-decoration:none;}
.ebx-staff-shell .ebx-staff-return-link:hover,.ebx-staff-shell .ebx-staff-return-link:focus-visible{text-decoration:underline;}

/* 7.0.69 — recipient editor and folded destructive operations. */
.ebx-staff-shell .ebx-crm-recipients-header{margin:22px 0 8px}
.ebx-staff-shell .ebx-crm-recipients-header h3{margin-bottom:6px}
.ebx-staff-shell .ebx-crm-recipient{margin:10px 0!important;padding:14px 16px!important}
.ebx-staff-shell .ebx-crm-recipient-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.ebx-staff-shell .ebx-crm-recipient-info{display:flex;flex-direction:column;gap:4px;min-width:210px;flex:1;overflow-wrap:anywhere}
.ebx-staff-shell .ebx-crm-recipient-info strong{font-size:15px}
.ebx-staff-shell .ebx-crm-recipient-editor{flex:0 0 auto;min-width:min(100%,200px)}
.ebx-staff-shell .ebx-crm-recipient-editor[open]{flex:1 0 100%}
.ebx-staff-shell .ebx-crm-recipient-editor>summary{cursor:pointer;border:1px solid var(--border);border-radius:9px;min-height:42px;padding:9px 14px;background:var(--panel2);color:var(--blue-strong);font-weight:700;list-style-position:inside}
.ebx-staff-shell .ebx-crm-recipient-editor>summary:hover{background:var(--tint)}
.ebx-staff-shell .ebx-crm-recipient-editor>.ebx-staff-editor{margin-top:14px}
.ebx-staff-shell .ebx-crm-branch-picker{position:relative;grid-column:1/-1;display:grid;gap:7px}
.ebx-staff-shell .ebx-crm-branch-picker label{display:flex;flex-direction:column;gap:6px}
.ebx-staff-shell .ebx-crm-branch-results:not(:empty){max-height:230px;overflow-y:auto;border:1px solid var(--border);border-radius:9px;background:var(--panel);display:grid}
.ebx-staff-shell .ebx-crm-branch-results button.ebx-crm-branch-option{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--border);background:var(--panel);color:var(--text);padding:10px 13px;min-height:40px;border-radius:0;white-space:normal}
.ebx-staff-shell .ebx-crm-branch-results button.ebx-crm-branch-option:hover,.ebx-staff-shell .ebx-crm-branch-results button.ebx-crm-branch-option:focus-visible{background:var(--tint)}
.ebx-staff-shell .ebx-danger-actions{margin:16px 0;border:1px solid var(--border);border-radius:10px;background:var(--panel2);padding:0!important;overflow:visible}
.ebx-staff-shell .ebx-danger-actions>summary{cursor:pointer;display:list-item;min-height:44px;padding:12px 17px;color:var(--muted);font-weight:650;list-style-position:inside}
.ebx-staff-shell .ebx-danger-actions[open]>summary{border-bottom:1px solid var(--border)}
.ebx-staff-shell .ebx-danger-actions>form,.ebx-staff-shell .ebx-danger-actions>p,.ebx-staff-shell .ebx-danger-actions>.ebx-run-archive-body,.ebx-staff-shell .ebx-danger-actions>.ebx-archive-toolbar{margin:14px 16px}
.ebx-staff-shell .ebx-danger-actions.ebx-archive-panel>p{margin:14px 16px}
.ebx-staff-shell .ebx-danger-actions.ebx-archive-panel>form{margin:16px;max-width:640px}
.ebx-staff-shell .ebx-run-remove-collapsible{margin-top:20px}
.ebx-staff-shell .ebx-run-remove-collapsible form.ebx-run-remove{margin:10px 16px 18px}
.ebx-staff-shell .ebx-run-remove-collapsible>p{margin:12px 16px 0}
.ebx-staff-shell .ebx-run-archive{margin-top:8px;margin-bottom:16px}
.ebx-staff-shell .ebx-run-archive-body{padding:0 2px 8px}
@media(max-width:700px){.ebx-staff-shell .ebx-crm-recipient-editor{width:100%}}

/* Staff recipient creation: discoverable even when the address book is empty. */
.ebx-staff-shell .ebx-crm-recipient-create{margin:12px 0 16px!important;padding:14px 16px!important}
.ebx-staff-shell .ebx-crm-recipient-create>summary{cursor:pointer;font-weight:700;color:var(--blue-strong);min-height:38px;display:list-item;align-content:center}
.ebx-staff-shell .ebx-crm-recipient-create>.ebx-staff-editor{margin-top:14px}

/* 7.0.71 — immediate address-book recipient selection in run preparation. */
.ebx-staff-shell .ebx-run-recipient-preview.is-error{border-color:#d66b72;color:var(--text);}
.ebx-staff-shell .ebx-run-recipient-refresh{margin:8px 0 0;display:inline-block;width:auto!important;min-height:36px!important;height:auto!important;padding:7px 12px!important;font-size:13px!important;}
.ebx-staff-shell .ebx-run-booking-link a[aria-disabled="true"]{opacity:.5;pointer-events:none;}

/* EUROBOX 7.0.78 — persisted active-only queue and human-readable revision audit. */
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search{
  grid-template-columns:minmax(190px,1fr) minmax(150px,200px) minmax(165px,195px) 154px 90px 102px;
}
.ebx-staff-shell .ebx-closed-view-filter{width:100%;min-width:0}
.ebx-staff-shell .ebx-closed-view-filter select{min-width:0;width:100%;height:44px}
.ebx-staff-shell .ebx-buyout-audit-details{margin:10px 0 0;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel2)}
.ebx-staff-shell .ebx-buyout-audit-details summary{cursor:pointer;font-weight:600;color:var(--text)}
.ebx-staff-shell .ebx-buyout-audit-details ul{padding-left:20px;margin:7px 0 0}
.ebx-staff-shell .ebx-buyout-audit-details li{padding:5px 0;overflow-wrap:anywhere}
@media(max-width:1150px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter,
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-request-search,
  .ebx-staff-shell .ebx-buyout-search>input:not([type=hidden]){grid-column:1/-1}
}

/* 7.0.81 — compact filter toolbars without changing filter semantics or stored state. */
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter,
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search {
  gap:7px;align-items:center;margin-bottom:10px;
}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters>:is(input:not([type=hidden]),label,button,a),
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search>:is(input:not([type=hidden]),label,button,a){
  min-width:0;margin:0;box-sizing:border-box;
}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters :is(input:not([type=hidden]),select,button),
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search :is(input:not([type=hidden]),select,button),
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters > :is(a,button),
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search > :is(a,button),
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters .ebx-staff-list-page-size select,
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search .ebx-staff-list-page-size select {
  height:38px!important;min-height:38px!important;font-size:12px;padding-top:6px;padding-bottom:6px;
}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters > :is(a,button),
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search > :is(a,button){
  display:inline-flex;align-items:center;justify-content:center;padding:0 10px;width:100%;font-size:12px;
}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters>.ebx-staff-list-page-size,
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search>.ebx-staff-list-page-size{height:38px;min-height:38px}
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters .ebx-staff-list-page-size select,
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search .ebx-staff-list-page-size select{width:70px!important;min-width:70px!important;max-width:70px!important;padding-left:8px!important}
@media(min-width:1350px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
    grid-template-columns:120px minmax(230px,1.5fr) minmax(112px,130px) minmax(130px,180px) minmax(142px,170px) 94px 94px 94px;
  }
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters:not(.has-archive-filter){
    grid-template-columns:minmax(250px,1.7fr) minmax(112px,140px) minmax(138px,185px) minmax(148px,175px) 94px 94px 94px;
  }
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search{
    grid-template-columns:minmax(230px,1.7fr) minmax(170px,220px) minmax(150px,180px) 94px 94px 94px;
  }
  .ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-request-search,
  .ebx-staff-shell .ebx-buyout-search>input:not([type=hidden]){grid-column:auto}
}
@media(min-width:920px) and (max-width:1349px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-request-search,
  .ebx-staff-shell .ebx-buyout-search>input:not([type=hidden]){grid-column:auto}
}
@media(max-width:919px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter,
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ebx-staff-shell .ebx-staff-requests-filters>.ebx-staff-request-search,
  .ebx-staff-shell .ebx-buyout-search>input:not([type=hidden]){grid-column:1/-1}
}
.ebx-staff-shell .ebx-owner-archive-revival-check{padding:12px 14px;margin:12px 0;border:1px solid var(--border);border-radius:9px}
.ebx-staff-shell .ebx-owner-archive-revival-check ul{margin:8px 0;padding-left:20px}
.ebx-staff-shell .ebx-owner-archive-revival form{display:grid;gap:12px;margin-top:12px}
.ebx-staff-shell .ebx-owner-archive-revival form>button{justify-self:start;width:auto;min-width:200px}


/* 7.0.82 — filter toolbar sizing fix. Columns include the full page-size label,
   not just its <select>; field wrappers and controls share one 38px baseline. */
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters,
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter,
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search{
  column-gap:11px;
  row-gap:10px;
  align-items:center;
}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-filter-label,
.ebx-staff-shell .ebx-buyout-search > .ebx-staff-filter-label,
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-list-page-size,
.ebx-staff-shell .ebx-buyout-search > .ebx-staff-list-page-size{
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box;
  min-width:0;
}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-filter-label,
.ebx-staff-shell .ebx-buyout-search > .ebx-staff-filter-label{
  display:flex;
  align-items:stretch;
}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-filter-label select,
.ebx-staff-shell .ebx-buyout-search > .ebx-staff-filter-label select{
  height:38px!important;
  min-height:38px!important;
  max-width:100%;
  box-sizing:border-box;
  margin:0!important;
}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-list-page-size,
.ebx-staff-shell .ebx-buyout-search > .ebx-staff-list-page-size{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  width:100%;
  white-space:nowrap;
  line-height:1.25;
}
.ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-list-page-size select,
.ebx-staff-shell .ebx-buyout-search > .ebx-staff-list-page-size select{
  flex:0 0 68px;
  width:68px!important;
  min-width:68px!important;
  max-width:68px!important;
  height:38px!important;
  min-height:38px!important;
  padding:6px 25px 6px 8px!important;
  margin:0!important;
  box-sizing:border-box;
}
.ebx-staff-shell .ebx-staff-requests-filters > :is(button,.ebx-staff-reset-filters),
.ebx-staff-shell .ebx-buyout-search > :is(button,.ebx-buyout-reset){
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  white-space:nowrap;
  box-sizing:border-box;
}
@media(min-width:1350px){
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters.has-archive-filter{
    grid-template-columns:minmax(150px,165px) minmax(205px,1fr) minmax(110px,132px) minmax(130px,170px) minmax(175px,185px) minmax(156px,166px) minmax(90px,99px) minmax(96px,106px);
  }
  .ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters:not(.has-archive-filter){
    grid-template-columns:minmax(225px,1fr) minmax(110px,140px) minmax(130px,175px) minmax(175px,185px) minmax(156px,166px) minmax(90px,99px) minmax(96px,106px);
  }
  .ebx-staff-shell .ebx-staff-search.ebx-buyout-search{
    grid-template-columns:minmax(220px,1fr) minmax(165px,220px) minmax(175px,185px) minmax(156px,166px) minmax(90px,99px) minmax(96px,106px);
  }
}
@media(max-width:919px){
  .ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-list-page-size,
  .ebx-staff-shell .ebx-buyout-search > .ebx-staff-list-page-size{justify-content:flex-start;}
}
@media(max-width:480px){
  .ebx-staff-shell .ebx-staff-requests-filters > .ebx-staff-list-page-size,
  .ebx-staff-shell .ebx-buyout-search > .ebx-staff-list-page-size{grid-column:1/-1;}
}
/* More specific than the legacy 44px search-button rule (which uses :is()). */
.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters > button[type="submit"],
.ebx-staff-shell .ebx-staff-search.ebx-buyout-search > button[type="submit"]{
  height:38px!important;
  min-height:38px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  align-self:center;
}
.ebx-staff-shell.ebx-staff-shell .ebx-staff-search.ebx-staff-requests-filters > button[type="submit"],
.ebx-staff-shell.ebx-staff-shell .ebx-staff-search.ebx-buyout-search > button[type="submit"]{
  height:38px!important;
  min-height:38px!important;
}

/* 7.0.83 — documented run reconciliation: compact, legible and non-destructive. */
.ebx-staff-shell .ebx-run-reconciliation{margin-top:20px;background:var(--panel2)}
.ebx-staff-shell .ebx-run-reconciliation-issues{display:grid;gap:8px;margin:18px 0}
.ebx-staff-shell .ebx-run-finance-issue{border:1px solid var(--border);border-radius:10px;background:var(--panel);padding:0 14px}
.ebx-staff-shell .ebx-run-finance-issue > summary{cursor:pointer;line-height:1.45;padding:13px 2px}
.ebx-staff-shell .ebx-run-finance-issue[open]{padding-bottom:14px}
.ebx-staff-shell .ebx-run-finance-issue[open] > summary{border-bottom:1px solid var(--border);margin-bottom:12px}
.ebx-staff-shell .ebx-run-finance-issue .ebx-run-finance-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.ebx-staff-shell .ebx-run-finance-issue .ebx-run-finance-form label:has(textarea){grid-column:1/-1}
.ebx-staff-shell .ebx-run-finance-issue .ebx-run-finance-form button{justify-self:start;grid-column:1/-1}
.ebx-staff-shell .ebx-run-reconciliation > .ebx-run-finance-form{grid-template-columns:1fr;max-width:680px}
.ebx-staff-shell .ebx-run-finance-issue input,.ebx-staff-shell .ebx-run-finance-issue textarea{max-width:100%;box-sizing:border-box}
@media(max-width:760px){.ebx-staff-shell .ebx-run-finance-issue .ebx-run-finance-form{grid-template-columns:1fr}}
