/* Count status colors are shared by the list and both entry drawers. */
.stock-count-page.count-list-uppercase #StockCountGrid .e-row > .e-rowcell,
.stock-count-page.count-list-uppercase #StockCountGrid .e-row > .e-rowcell * { text-transform:uppercase!important; }
.stock-count-page.count-list-uppercase #StockCountGrid .e-row > .e-rowcell .stock-count-status-badge { text-transform:none!important; }
.stock-count-page #StockCountGrid .e-rowcell.count-list-blue-cell { color:#165eff!important; }
.stock-count-page #StockCountGrid .count-plan-group-label { color:#165eff; }
.stock-count-page #StockCountGrid .e-rowcell:has(> .stock-count-status-badge) { text-align:center!important; vertical-align:middle!important; }
.stock-count-page #StockCountGrid .e-rowcell > .stock-count-status-badge { display:flex; margin:0 auto; }
.stock-count-page #StockCountGrid .stock-count-status-badge:is(.is-pending, .is-approved) { line-height:11px; font-weight:400; }
.stock-count-page #StockCountGrid .stock-count-status-badge.is-pending { background:#0073ea; border:1px solid #0073ea; color:#fff; }
:is(#stock-count-capture-drawer, #stock-count-entry-drawer) .count-approval-progress [data-count-approval-wait] { background:#0073ea; border-color:#0073ea; color:#fff; }
:is(#stock-count-capture-drawer, #stock-count-entry-drawer) .count-approval-progress [aria-current="step"] { outline:none; }
:is(#stock-count-capture-drawer, #stock-count-entry-drawer) .count-approval-progress:is(.is-approved, .is-deleted) .count-approval-line { background:#0073ea; }

/* Scoped to the separate touch entry. Uses the application's existing Segoe fonts. */
#stock-count-capture-drawer { --count-entry-width:75vw; --ce-line:#d5dfea; --ce-ink:#123054; --ce-muted:#617b96; --ce-blue:#165eff; height:100dvh; max-width:100vw; min-width:0; display:flex; flex-direction:column; color:var(--ce-ink); font:13px 'Segoe UI Semibold','Segoe UI',sans-serif; overflow:hidden; }
#stock-count-capture-drawer * { box-sizing:border-box; }
#stock-count-capture-drawer [hidden] { display:none!important; }
#stock-count-capture-drawer .count-capture-header { position:relative; width:100%; height:50px; min-height:50px; flex:none; display:flex; align-items:center; justify-content:flex-start; flex-wrap:nowrap; gap:12px; padding:0 16px; border-bottom:1px solid var(--ce-line); background:#fff; }
#stock-count-capture-drawer .count-capture-header h2 { display:flex; align-items:center; gap:8px; flex:none; margin:0; font-size:15px; font-weight:400; }

#stock-count-capture-drawer [data-capture-state] { color:var(--ce-muted); font-size:12px; }
#stock-count-capture-drawer [data-capture-close] { margin-left:0; flex:none; }
#stock-count-capture-drawer .count-approval-progress { position:absolute; left:50%; transform:translateX(-50%); margin-left:0; flex:none; }
#stock-count-capture-drawer .count-approval-progress .count-approval-line { width:60px; }
#stock-count-capture-drawer .count-capture-document-number { display:flex; align-items:center; gap:4px; flex:0 0 auto; padding:0; margin:0; white-space:nowrap; color:#212529; font-size:13px; }
#stock-count-capture-drawer #countCaptureDocument.has-document-number { color:#d72d36; }
#stock-count-capture-drawer .count-capture-timing { margin-left:auto; display:flex; align-items:center; gap:8px; min-width:0; }
#stock-count-capture-drawer .count-touch-panel { width:100%; flex:1; min-height:0; display:flex; flex-direction:column; }
#stock-count-capture-drawer .count-capture-content { width:100%; flex:1; min-height:0; display:flex; flex-direction:column; padding:0!important; overflow:auto; background:#fff; overscroll-behavior:contain; }
#stock-count-capture-drawer .count-touch-summary { flex:none; display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; padding:6px 16px; background:#fff; color:var(--ce-ink); border-bottom:1px solid var(--ce-line); }
#stock-count-capture-drawer .count-capture-definition { display:grid; grid-template-columns:minmax(180px,1.4fr) 132px repeat(3,minmax(145px,1fr)); gap:10px; flex:1 1 100%; min-width:0; }
#stock-count-capture-drawer .count-capture-definition .mini-card { min-width:0; width:auto; padding:0; margin:0; }
#stock-count-capture-drawer .count-capture-definition label { display:block; min-width:0; font-size:11px; font-weight:600; line-height:18px; color:#212529; margin:0; }
#stock-count-capture-drawer .count-capture-definition .e-input-group { margin:0; min-width:0; }
#stock-count-capture-drawer .count-capture-definition .e-input-group input { text-align:left; }
#stock-count-capture-drawer #countCaptureBranch:not(:placeholder-shown) { color:#165eff!important; -webkit-text-fill-color:#165eff!important; }
#stock-count-capture-drawer #countCaptureDocument { text-align:right; }
#stock-count-capture-drawer [data-entry-clock] { background:#f7f9fc; border:1px solid var(--ce-line); border-radius:4px; padding:6px 10px; max-width:none; font-size:14px; font-weight:600; line-height:1.4; white-space:nowrap; color:#212529; font-variant-numeric:tabular-nums; }
#stock-count-capture-drawer .count-touch-rounds { display:flex; flex:none; gap:6px; }
#stock-count-capture-drawer .count-touch-progress { flex:1 1 150px; min-width:120px; font-size:12px; display:flex; flex-direction:column; gap:4px; text-align:right; }
#stock-count-capture-drawer progress { width:100%; height:9px; border:0; border-radius:8px; overflow:hidden; accent-color:#0abb87; }
#stock-count-capture-drawer progress::-webkit-progress-bar { background:#e6edf6; }
#stock-count-capture-drawer progress::-webkit-progress-value { background:#0abb87; }
#stock-count-capture-drawer button { font-family:inherit; cursor:pointer; touch-action:manipulation; }
#stock-count-capture-drawer .count-touch-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:30px; text-transform:none; text-align:center; line-height:1.4; white-space:nowrap; vertical-align:middle; }
#stock-count-capture-drawer .count-touch-button.btn-setting { border-width:1px; border-style:solid; margin:0!important; padding:var(--pbf-button-block-padding) var(--pbf-button-inline-padding)!important; font-family:var(--pbf-button-font),"Segoe UI",sans-serif!important; font-size:var(--pbf-button-font-size)!important; font-weight:var(--pbf-button-font-weight)!important; border-radius:var(--pbf-button-radius)!important; height:var(--pbf-button-standard-height); }
#stock-count-capture-drawer .count-touch-result-button { background:#fff; color:inherit; font:inherit; }
#stock-count-capture-drawer .count-touch-result-button:hover { background:#e6f1fd; }
#stock-count-capture-drawer button:not(.pbf-save-action,.pbf-cancel-action,.pbf-close-action):focus-visible,#stock-count-capture-drawer input:focus-visible { outline:2px solid var(--ce-blue); outline-offset:2px; }
#stock-count-capture-drawer button:disabled:not(.count-entry-pin) { opacity:.65; cursor:default; }
#stock-count-capture-drawer .count-capture-options { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-left:auto; }
#stock-count-capture-drawer .count-capture-options label { display:flex; align-items:center; gap:7px; margin:0; min-height:30px; cursor:pointer; white-space:nowrap; }
#stock-count-capture-drawer input[type=checkbox] { width:14px; height:14px; flex:none; accent-color:#165eff; cursor:pointer; }
#stock-count-capture-drawer .count-touch-message { flex:none; padding:8px 20px; background:#f4f8fd; color:#165eff; border-bottom:1px solid var(--ce-line); }
#stock-count-capture-drawer .count-touch-message:empty { display:none; }
#stock-count-capture-drawer .count-capture-status,#stock-count-capture-drawer .count-capture-retry { padding:10px 20px; background:#fff5dd; color:#805a0b; }
#stock-count-capture-drawer .count-touch-layout { display:grid; grid-template-columns:minmax(0,560fr) minmax(0,812fr); flex:1; min-height:320px; align-items:stretch; gap:16px; width:100%; margin:0; padding:16px; }
#stock-count-capture-drawer .count-entry-views { display:flex; align-items:center; gap:16px; flex:none; }
#stock-count-capture-drawer .count-entry-views label { display:flex; align-items:center; gap:6px; margin:0; min-height:30px; white-space:nowrap; cursor:pointer; }
#stock-count-capture-drawer .count-entry-views input { width:14px; height:14px; accent-color:#165eff; cursor:pointer; }
#stock-count-capture-drawer .count-entry-list-view { --count-grid-accent:#165eff; position:relative; display:flex; flex-direction:column; flex:1; min-height:280px; margin:2px 4px 0; min-width:0; color:#212529; }
#stock-count-capture-drawer .count-entry-list-view[data-round="2"] { --count-grid-accent:#d72d36; }
#stock-count-capture-drawer .count-entry-grid-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:none; min-height:34px; padding:2px 0; }
#stock-count-capture-drawer .count-entry-grid-toolbar > .count-entry-product-filters { margin-left:auto; }
#stock-count-capture-drawer .count-entry-grid-toolbar > [data-entry=blank] { margin-left:auto!important; }
#stock-count-capture-drawer .count-entry-grid-toolbar:has(> [data-entry=blank]) .count-entry-grid-tools { margin-left:0; }
#stock-count-capture-drawer .count-entry-critical { display:inline-block; margin-left:6px; color:#d72d36!important; font-size:13px; white-space:nowrap; }
#count_capture_list_share .count-entry-report-actions { display:flex; flex-wrap:wrap; gap:8px; padding:12px; border-bottom:1px solid #d5dfea; }
#stock-count-capture-drawer .count-entry-grid-tools { display:flex; flex:0 1 auto; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; min-width:0; max-width:100%; }
#stock-count-capture-drawer .count-entry-grid-tools .gridTempIcons { display:inline-flex; align-items:center; justify-content:center; width:22px; min-width:22px; height:30px; padding:0; border:0; background:transparent; color:#4d5154; }
#stock-count-capture-drawer .count-entry-grid-tools .gridTempIcons:hover { background:#e6f1fd; }
#stock-count-capture-drawer #countEntryListSearch { flex:0 1 200px; box-sizing:border-box; width:200px; min-width:120px; height:30px; margin:0 0 0 6px; padding:0 8px; border:1px solid #cbd3df; border-radius:3px; background:#fff; box-shadow:none; appearance:none; font:13px 'Segoe UI Semibold','Segoe UI',sans-serif; line-height:28px; color:#212529; }
#stock-count-capture-drawer #countEntryListSearch:focus { border-color:#165eff; outline:none; box-shadow:none; }
#stock-count-capture-drawer #countEntryListSearch::placeholder { color:#6c757d; opacity:1; font:inherit; }
#stock-count-capture-drawer .count-entry-grid-tools .gridTempIcons { box-sizing:border-box; margin:0; border-radius:3px; line-height:1; vertical-align:middle; }
#stock-count-capture-drawer .count-entry-grid-tools .gridTempIcons lord-icon { display:block; flex:none; }
#stock-count-capture-drawer .count-entry-grid-tools .gridTempIcons:focus-visible { outline:1px solid #165eff; outline-offset:-1px; }
#stock-count-capture-drawer .count-entry-required { color:#d72d36; }
#stock-count-capture-drawer .count-entry-history { display:block; text-align:right; font-size:12px; line-height:15px; color:#d72d36; font-variant-numeric:tabular-nums; }
#stock-count-capture-drawer .count-entry-history time { display:block; font:inherit; color:#212529; }
#stock-count-capture-drawer .count-entry-grid-toolbar button { flex:none; }
#stock-count-capture-drawer .count-entry-grid :is(.e-headercell,.e-headercelldiv,.e-headertext,.e-rowcell,.e-summarycell,.e-groupcaption,.e-gridpager,.e-gridpager a,.e-gridpager .e-input) { color:#212529; font:13px 'Segoe UI Semibold','Segoe UI',sans-serif; }
#stock-count-capture-drawer .count-entry-grid :is(.e-headercell,.e-headercontent) { background:#e6f1fd; }
#stock-count-capture-drawer .count-entry-grid .e-headercell { padding:0 6px; height:34px; }
#stock-count-capture-drawer .count-entry-grid .e-headercell:not(.e-fltr-icon) .e-headercelldiv { width:100%; }
#stock-count-capture-drawer .count-entry-grid .e-headercell:has(.count-entry-sequence-header) .e-sortfilterdiv { display:none; }
#stock-count-capture-drawer .count-entry-grid .e-headercell:has(.count-entry-sequence-header) .e-headercelldiv { flex:1; min-width:0; }
#stock-count-capture-drawer .count-entry-grid > .e-pager { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; min-height:36px; padding:3px; }
#stock-count-capture-drawer .count-entry-grid > .e-pager :is(.e-pagercontainer,.e-parentmsgbar,.e-pagesizes) { float:none; margin:0; padding:0; }
#stock-count-capture-drawer .count-entry-grid > .e-pager .e-pagercontainer { order:0; }
#stock-count-capture-drawer .count-entry-grid > .e-pager .e-parentmsgbar { order:1; }
#stock-count-capture-drawer .count-entry-grid > .e-pager .e-pagesizes { order:2; }
#stock-count-capture-drawer .count-entry-grid .e-rowcell { padding:0 4px; }
#stock-count-capture-drawer .count-entry-grid .e-summarycell { padding:4px; }
#stock-count-capture-drawer .count-entry-grid input.e-input { display:block; width:100%; height:29px; min-width:0; margin:0; padding:3px 4px; border:1px solid transparent; font:inherit; color:inherit; background:transparent; caret-color:#212529; }
#stock-count-capture-drawer .count-entry-grid input.e-input:focus { border-color:var(--ce-blue); outline:0; }
#stock-count-capture-drawer .count-entry-grid input.count-entry-cell-search { border-color:var(--ce-line); }
#stock-count-capture-drawer .count-entry-grid .e-rowcell.count-entry-accent { color:var(--count-grid-accent)!important; }
#stock-count-capture-drawer .count-entry-grid input.count-entry-cell-quantity,#stock-count-capture-drawer .count-entry-total { text-align:right; font-size:18px; line-height:22px; color:var(--count-grid-accent); font-variant-numeric:tabular-nums; }
#stock-count-capture-drawer .count-entry-total { display:block; }
#stock-count-capture-drawer .count-entry-grid [data-list-delete] { display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; background:transparent; min-width:26px; min-height:28px; color:#d72d36!important; }
#stock-count-capture-drawer .count-entry-grid [data-list-delete]:disabled { opacity:1; }
#stock-count-capture-drawer .count-entry-grid [data-list-delete]:is(:hover,:focus-visible) { background:#d72d36!important; color:#fff!important; }
#stock-count-capture-drawer .count-entry-grid [data-list-delete] .e-icons { color:inherit!important; }
#stock-count-capture-drawer .count-entry-grid-suggestions { position:absolute; z-index:10; overflow:auto; background:#fff; border:1px solid var(--ce-line); box-shadow:0 5px 16px #12305422; }
#stock-count-capture-drawer .count-entry-grid-suggestions button { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; border:0; border-bottom:1px solid var(--ce-line); background:#fff; color:inherit; font:inherit; text-align:left; padding:3px 10px; height:40px; min-height:40px; box-sizing:border-box; line-height:16px; }
#stock-count-capture-drawer .count-entry-grid-suggestions button:hover,#stock-count-capture-drawer .count-entry-grid-suggestions button:focus,#stock-count-capture-drawer .count-entry-grid-suggestions [aria-selected="true"] { background:#e5f1fc; }
#stock-count-capture-drawer .count-entry-grid-suggestions button>span:first-child { min-width:0; overflow-wrap:anywhere; }
#stock-count-capture-drawer .count-entry-grid-suggestions button>span:last-child { flex:none; text-align:right; }
#stock-count-capture-drawer .count-entry-grid-suggestions small { display:block; color:#212529; font-size:13px; }
#stock-count-capture-drawer .count-entry-no-match { padding:12px; }
#stock-count-capture-drawer .count-touch-input,#stock-count-capture-drawer .count-touch-right { min-width:0; min-height:0; }
#stock-count-capture-drawer .count-touch-input { overflow:visible; }
#stock-count-capture-drawer .count-touch-right { display:flex; flex-direction:column; }
#stock-count-capture-drawer .count-touch-scan-row { display:flex; align-items:center; gap:8px; }
#stock-count-capture-drawer .count-touch-scan-row .count-touch-scan { flex:1; min-width:0; }
#stock-count-capture-drawer .count-touch-scan-row button { flex:none; }
#stock-count-capture-drawer .count-touch-search { position:relative; }
#stock-count-capture-drawer .count-touch-search>label { display:block; margin-bottom:6px; font-weight:600; }
#stock-count-capture-drawer .count-touch-scan { display:block; width:100%; height:48px; border:2px solid var(--ce-blue); border-radius:4px; padding:8px 12px; background:#fff; color:var(--ce-ink); font-family:inherit; font-size:16px; }
#stock-count-capture-drawer .count-touch-search>small { display:block; color:var(--ce-muted); font-size:11px; margin-top:6px; }
#stock-count-capture-drawer .count-touch-suggestions { position:absolute; top:72px; inset-inline:0; z-index:5; background:#fff; border:1px solid #b9cbe2; border-radius:4px; box-shadow:0 8px 20px #12305422; max-height:390px; overflow:auto; }
#stock-count-capture-drawer .count-touch-suggestions:empty { display:none; }
#stock-count-capture-drawer .count-touch-suggestions button { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; border:0; border-bottom:1px solid #e1e8f1; border-radius:0; padding:10px 13px; text-align:left; }
#stock-count-capture-drawer .count-touch-suggestions button>span:first-child { min-width:0; overflow-wrap:anywhere; }
#stock-count-capture-drawer .count-touch-suggestions small { display:block; color:var(--ce-muted); font-size:11px; }
#stock-count-capture-drawer .count-touch-search-status { color:#6b7f97; font-size:12px; text-align:right; flex:none; }
#stock-count-capture-drawer .count-touch-search-status.is-counted { color:#087f5b; }
#stock-count-capture-drawer .count-touch-modes { display:flex; gap:6px; margin:12px 0; }
#stock-count-capture-drawer .count-touch-product { display:flex; flex-direction:column; gap:5px; padding:14px; border:1px solid var(--ce-line); border-radius:4px; background:#fff; min-height:170px; }
#stock-count-capture-drawer .count-touch-product p { margin:auto 0; color:var(--ce-muted); line-height:1.8; text-align:center; }
#stock-count-capture-drawer .count-touch-product.has-product { min-height:0; border-radius:4px 4px 0 0; border-bottom:0; padding-bottom:10px; }
#stock-count-capture-drawer .count-touch-product>strong:first-child { font-size:14px; }
#stock-count-capture-drawer .count-touch-product small { font-size:12px; color:var(--ce-muted); }
#stock-count-capture-drawer .count-touch-number { font-size:22px; text-align:right; font-variant-numeric:tabular-nums; line-height:1.3; }
#stock-count-capture-drawer .count-touch-negative { color:#d72d36; }
#stock-count-capture-drawer em { display:inline-block; font-size:10px; font-style:normal; font-weight:600; color:#b82d24; background:#fff0ed; border:1px solid #f3b1a9; border-radius:3px; padding:1px 5px; width:max-content; max-width:100%; vertical-align:middle; }
#stock-count-capture-drawer .count-touch-pad { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:14px; padding:4px 14px 14px; background:#fff; border:1px solid var(--ce-line); border-top:0; border-radius:0 0 4px 4px; }
#stock-count-capture-drawer .count-touch-keypad { min-width:0; }
#stock-count-capture-drawer .count-touch-keypad>label { font-size:10px; letter-spacing:.5px; }
#stock-count-capture-drawer #countTouchQuantity { width:100%; height:44px; border:1px solid #142e50; border-radius:6px; padding:5px 10px; color:var(--ce-ink); text-align:right; font:600 24px 'Segoe UI',sans-serif; }
#stock-count-capture-drawer .count-touch-keys { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:8px; }
#stock-count-capture-drawer .count-touch-keys button { height:48px; }
#stock-count-capture-drawer .count-touch-pad-actions { display:flex; flex-direction:column; gap:8px; padding-top:15px; }
#stock-count-capture-drawer [data-entry=add] { min-height:30px; }
#stock-count-capture-drawer [data-entry=set] { min-height:30px; }
#stock-count-capture-drawer .count-touch-quick { display:flex; gap:6px; }
#stock-count-capture-drawer .count-touch-quick button { flex:1; min-width:0; padding:0 2px!important; }
#stock-count-capture-drawer [data-entry=undo] { height:auto; min-height:30px; padding-block:5px!important; white-space:normal; }
#stock-count-capture-drawer .count-touch-results { display:flex; flex-direction:column; flex:1; min-height:180px; height:auto; background:#fff; border:1px solid var(--ce-line); border-radius:4px; overflow:hidden; }
#stock-count-capture-drawer .count-touch-tabs { display:flex; flex:none; border-bottom:1px solid var(--ce-line); }
#stock-count-capture-drawer .count-touch-tabs .count-touch-button.btn-setting { flex:1; border:0; border-bottom:2px solid transparent; border-radius:0!important; min-height:36px; background:#fff; color:#003466; }
#stock-count-capture-drawer .count-touch-tabs .count-touch-button[aria-pressed=true] { border-bottom-color:var(--ce-blue); color:#102744; }
#stock-count-capture-drawer .count-touch-categories { display:flex; flex:none; gap:8px; padding:8px 10px; overflow-x:auto; max-width:100%; }
#stock-count-capture-drawer .count-touch-categories button { flex:none; min-height:30px; padding:5px 10px; white-space:nowrap; }
#stock-count-capture-drawer .count-touch-list { min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; }
#stock-count-capture-drawer .count-touch-row { display:grid; grid-template-columns:minmax(0,1fr) auto 28px; align-items:center; gap:10px; padding:8px 10px; border-bottom:1px solid #e1e8f1; border-left:3px solid #0abb87; }
#stock-count-capture-drawer .count-touch-row.is-current { background:#edf3ff; border-left-color:var(--ce-blue); }
#stock-count-capture-drawer .count-touch-row>button:first-child { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0; text-align:left; background:transparent; border:0; padding:0; color:inherit; }
#stock-count-capture-drawer .count-touch-row strong { overflow-wrap:anywhere; }
#stock-count-capture-drawer .count-touch-row small { font-size:11px; line-height:1.35; color:#466482; }
#stock-count-capture-drawer .count-touch-row [data-entry=clear] { border:0; padding:0; min-height:32px; color:#b82d24; font-size:22px; background:transparent; }
#stock-count-capture-drawer .count-touch-photo { flex:0 1 auto; min-width:0; display:flex; align-items:center; justify-content:flex-start; gap:12px; padding:0; margin:0; background:#fff; }
#stock-count-capture-drawer .count-touch-photo small { display:block; color:var(--ce-muted); margin-top:3px; font-size:11px; }
#stock-count-capture-drawer .count-touch-photo>div { min-width:0; }
#stock-count-capture-drawer [data-entry=photos] { flex:none; }
#stock-count-capture-drawer .count-touch-pages { display:flex; align-items:center; justify-content:center; gap:12px; padding:6px; border-top:1px solid var(--ce-line); }
#stock-count-capture-drawer .count-touch-empty { text-align:center; margin:50px 20px; color:var(--ce-muted); }
#stock-count-capture-drawer .count-touch-share,#stock-count-capture-drawer .count-capture-documents { max-width:1392px; margin:0 auto 20px; padding:16px; border:1px solid var(--ce-line); background:#fff; border-radius:4px; }
#stock-count-capture-drawer .count-touch-share>button,#stock-count-capture-drawer .count-touch-share>a { margin:4px; }
#stock-count-capture-drawer .count-touch-share>label { display:block; margin-block:8px; }
#stock-count-capture-drawer .count-touch-share textarea { display:block; width:100%; min-height:180px; margin:8px 0; }
#stock-count-capture-drawer .count-touch-scope-rows { display:flex; flex-direction:column; max-height:40dvh; overflow:auto; padding:8px 0; }
#stock-count-capture-drawer .count-touch-scope-rows label { display:flex; align-items:center; gap:8px; min-height:44px; border-bottom:1px solid var(--ce-line); }
#stock-count-capture-drawer .count-touch-scope-rows small { display:block; font-size:11px; color:var(--ce-muted); }
#stock-count-capture-drawer .count-capture-document-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
#stock-count-capture-drawer .count-capture-document-heading h3 { font-size:15px; margin:0; }
#stock-count-capture-drawer .count-photo-gallery { display:flex; flex-wrap:wrap; gap:12px; }
#stock-count-capture-drawer .count-photo-card { width:160px; padding:8px; border:1px solid var(--ce-line); border-radius:6px; overflow-wrap:anywhere; }
#stock-count-capture-drawer .count-photo-preview { position:relative; }
#stock-count-capture-drawer .count-photo-preview img { width:100%; height:100px; object-fit:cover; }
#stock-count-capture-drawer .count-photo-preview button { position:absolute; top:3px; right:3px; }
#stock-count-capture-drawer .count-photo-camera { position:relative; cursor:pointer; }
#stock-count-capture-drawer .count-photo-camera input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
#stock-count-capture-drawer .count-photo-camera:focus-within { outline:2px solid var(--ce-blue); outline-offset:2px; }
.count-touch-print-frame { position:fixed; left:-10000px; width:794px; height:1123px; border:0; }
#stock-count-capture-drawer .count-capture-footer { flex:none; width:100%; height:60px; min-height:60px; display:flex; align-items:center; justify-content:flex-start; gap:8px; padding:10px 16px!important; border-top:1px solid var(--ce-line); background:#fff; }
#stock-count-capture-drawer .count-capture-primary-actions,#stock-count-capture-drawer .count-capture-output-actions { flex:none; display:flex; align-items:center; gap:8px; }
.count-entry-confirm { box-sizing:border-box; width:430px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto; border:1px solid #d5dce6; border-radius:5px; color:#212529; background:#fff; font:inherit; text-align:left; }
.count-entry-confirm::backdrop { background:rgb(0 0 0 / 45%); }
/* Include the previous tags until already-loaded CountList modules are refreshed. */
.count-entry-confirm > :is(header, footer, p, .count-entry-confirm-heading, .count-entry-confirm-message, .count-entry-confirm-actions) { box-sizing:border-box; position:static; float:none; inset:auto; width:100%; height:auto; min-height:0; margin:0; color:#212529; background:#fff; text-align:left; }
.count-entry-confirm > :is(header, .count-entry-confirm-heading) { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; padding:8px 12px; border-bottom:1px solid #d5dce6; }
.count-entry-confirm > :is(p, .count-entry-confirm-message) { display:block; padding:16px 12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.count-entry-confirm > :is(footer, .count-entry-confirm-actions) { display:flex; flex-direction:row; align-items:center; justify-content:flex-end; gap:8px; padding:12px; border-top:1px solid #d5dce6; }
#stock-count-capture-drawer .count-capture-primary-actions .pbf-save-cancel { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; }
#stock-count-capture-drawer .count-capture-primary-actions button { width:auto; flex:0 0 auto; white-space:nowrap; }
#stock-count-capture-drawer .count-entry-send-failure { display:inline-flex; align-items:center; flex:0 0 auto; gap:6px; min-width:0; }
#stock-count-capture-drawer .count-entry-send-failure[hidden],#stock-count-capture-drawer .count-entry-send-status[hidden] { display:none!important; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split { position:relative; display:inline-flex; flex:0 0 auto; padding:0!important; margin:0; background:transparent!important; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split > button { box-sizing:border-box; display:inline-flex!important; align-items:center; justify-content:center; height:var(--pbf-button-standard-height); min-height:var(--pbf-button-standard-height); margin:0!important; padding:var(--pbf-button-block-padding) var(--pbf-button-inline-padding)!important; border:1px solid #d72d36!important; background:#d72d36!important; color:#fff!important; font-family:var(--pbf-button-font),"Segoe UI",sans-serif!important; font-size:var(--pbf-button-font-size)!important; font-weight:var(--pbf-button-font-weight)!important; line-height:1.2; white-space:nowrap; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split > .e-split-btn { border-radius:var(--pbf-button-radius) 0 0 var(--pbf-button-radius)!important; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split > .e-dropdown-btn { width:34px!important; min-width:34px; padding:0!important; margin-inline-start:-1px!important; border-radius:0 var(--pbf-button-radius) var(--pbf-button-radius) 0!important; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split > button:focus-visible { z-index:2; outline:2px solid #d72d36; outline-offset:2px; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split .e-caret { margin:0!important; color:#fff!important; font-size:10px!important; font-weight:700; -webkit-text-stroke:.2px currentColor; }
#stock-count-capture-drawer .e-split-btn-wrapper.count-entry-send-failed-split .e-dropdown-btn[aria-expanded="true"] .e-caret { transform:rotate(180deg); }
.e-dropdown-popup.count-entry-send-failed-split { min-width:220px; max-width:calc(100vw - 24px); padding:0!important; border:1px solid #d5dce6; border-radius:var(--pbf-button-radius); background:#fff!important; color:#212529!important; }
.e-dropdown-popup.count-entry-send-failed-split ul { width:100%; margin:0; padding:4px 0; background:#fff!important; }
.e-dropdown-popup.count-entry-send-failed-split ul .e-item { min-height:var(--pbf-button-standard-height); padding-inline:var(--pbf-button-inline-padding); background:#fff!important; color:#212529!important; font-family:var(--pbf-button-font),"Segoe UI",sans-serif!important; font-size:var(--pbf-button-font-size)!important; font-weight:var(--pbf-button-font-weight)!important; }
.e-dropdown-popup.count-entry-send-failed-split ul .e-item:not(.e-disabled):is(:hover,:focus-visible,.e-focused,.e-selected) { background:#d72d36!important; color:#fff!important; }
#stock-count-capture-drawer .count-entry-send-status { display:inline-block; max-width:160px; color:#6c757d; font-size:11px; line-height:14px; white-space:normal; overflow-wrap:anywhere; }
#stock-count-capture-drawer .count-touch-photo .count-touch-button.btn-setting[data-entry="photos"] { --pbf-button-standard-height:44px; --pbf-button-font-size:12px; --pbf-button-block-padding:3px; --pbf-button-inline-padding:12px; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:0; min-height:44px; height:44px; line-height:12px; white-space:nowrap; }
#stock-count-capture-drawer .count-touch-photo [data-entry="photos"] > span { display:block; flex:none; margin:0!important; padding:0; font-size:12px!important; line-height:12px; }
#stock-count-capture-drawer .count-capture-output-actions { margin-left:auto; }
#stock-count-capture-drawer .count-capture-audit { flex:0 1 300px; min-width:180px; margin-left:auto; text-align:right; color:#212529; font-size:11px; line-height:17px; overflow-wrap:anywhere; }
.count-entry-defaults-popup .count-entry-default-option { display:flex; align-items:center; gap:8px; width:100%; min-width:0; }
.count-entry-checkbox-pin-area { display:inline-flex; align-items:center; gap:4px; flex:none; }
.count-entry-defaults-popup .count-entry-default-text { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.count-entry-defaults-popup .count-entry-pin { display:inline-flex; align-items:center; justify-content:center; flex:0 0 20px; width:20px; height:20px; padding:0; border:0; border-radius:999px; background:transparent; color:#6c757d!important; cursor:pointer; line-height:1; transition:opacity .15s ease,color .15s ease; }
.count-entry-defaults-popup .count-entry-pin:hover { color:#6c757d!important; }
.count-entry-defaults-popup .count-entry-pin[aria-pressed="true"] { color:#6c757d!important; opacity:1; pointer-events:auto; }
.count-entry-defaults-popup .e-list-item.e-active .count-entry-pin[aria-pressed="true"] { color:#fff!important; }
.count-entry-defaults-popup .count-entry-pin svg { display:block; width:14px; height:14px; flex:none; }
.count-entry-defaults-popup .count-entry-pin-filled,
.count-entry-defaults-popup .count-entry-pin[aria-pressed="true"] .count-entry-pin-outline { display:none; }
.count-entry-defaults-popup .count-entry-pin[aria-pressed="true"] .count-entry-pin-filled { display:block; }
.count-entry-defaults-popup.e-input-group > input.e-input { flex:1 1 0%; min-width:0; width:0; }
.count-entry-defaults-popup .count-entry-pin-current { align-self:center; margin:0 2px 0 0; line-height:0; }
.count-entry-defaults-popup .count-entry-pin:focus-visible { outline:2px solid #165eff; outline-offset:-2px; }
.count-entry-defaults-popup .count-entry-pin:disabled { cursor:default; }
.count-entry-defaults-popup .count-entry-pin:disabled svg { opacity:.4; }
@media (hover:hover) {
    .count-entry-defaults-popup .count-entry-pin:not([aria-pressed="true"]) { opacity:0; pointer-events:none; }
    .count-entry-defaults-popup .count-entry-pin[aria-pressed="true"],
    .count-entry-defaults-popup.e-input-group:is(:hover,:focus-within) .count-entry-pin-current,
    .count-entry-checkbox-pin-area:is(:hover,:focus-within) .count-entry-pin,
    .count-entry-defaults-popup .e-list-item:is(:hover,:focus-within) .count-entry-pin,
    .count-entry-defaults-popup .count-entry-pin:focus-visible { opacity:1; pointer-events:auto; }
}
.count-entry-pin-tooltip.e-tooltip-wrap { border:1px solid #6c757d; border-radius:4px; background:#6c757d; color:#fff; box-shadow:0 2px 6px #0f172a26; max-width:calc(100vw - 30px); }
.count-entry-pin-tooltip.e-tooltip-wrap .e-tip-content { padding:5px 11px; color:#fff; font-family:inherit; font-size:12px; font-weight:400; line-height:18px; letter-spacing:-.15px; }
.count-entry-pin-tooltip.e-tooltip-wrap :is(.e-arrow-tip-inner,.e-arrow-tip-outer).e-tip-bottom,
.count-entry-pin-tooltip.e-tooltip-wrap .e-tip-bottom :is(.e-arrow-tip-inner,.e-arrow-tip-outer) { border-top-color:#6c757d!important; color:#6c757d!important; }
.count-entry-pin-tooltip.e-tooltip-wrap :is(.e-arrow-tip-inner,.e-arrow-tip-outer).e-tip-top,
.count-entry-pin-tooltip.e-tooltip-wrap .e-tip-top :is(.e-arrow-tip-inner,.e-arrow-tip-outer) { border-bottom-color:#6c757d!important; color:#6c757d!important; }
.count-entry-pin-tooltip.e-tooltip-wrap :is(.e-arrow-tip-inner,.e-arrow-tip-outer).e-tip-left,
.count-entry-pin-tooltip.e-tooltip-wrap .e-tip-left :is(.e-arrow-tip-inner,.e-arrow-tip-outer) { border-right-color:#6c757d!important; color:#6c757d!important; }
.count-entry-pin-tooltip.e-tooltip-wrap :is(.e-arrow-tip-inner,.e-arrow-tip-outer).e-tip-right,
.count-entry-pin-tooltip.e-tooltip-wrap .e-tip-right :is(.e-arrow-tip-inner,.e-arrow-tip-outer) { border-left-color:#6c757d!important; color:#6c757d!important; }
@media (prefers-reduced-motion:reduce) {
    .count-entry-defaults-popup .count-entry-pin { transition:none; }
}
/* The existing catalog picker has a drawer presentation only for touch entry. */
#countCaptureProductPicker.count-product-picker-drawer { width:50vw!important; max-width:100vw!important; height:100dvh!important; max-height:100dvh!important; border-radius:0; margin:0; display:flex; flex-direction:column; overflow:hidden; }
#countCaptureProductPicker.count-product-picker-drawer.is-expanded { width:75vw!important; }
#countCaptureProductPicker .e-dlg-header-content { flex:none; height:50px; min-height:50px; padding:0 16px; border-bottom:1px solid #d5dfea; background:#fff; }
#countCaptureProductPicker .e-dlg-header { display:flex; align-items:center; gap:12px; width:100%; height:100%; margin:0; font:15px 'Segoe UI Semibold','Segoe UI',sans-serif; }
#countCaptureProductPicker .count-picker-title::before { content:''; display:inline-block; margin-right:8px; border-top:7px solid transparent; border-bottom:7px solid transparent; border-left:8px solid #fc9c3c; vertical-align:middle; }
#countCaptureProductPicker .count-picker-header-actions { margin-left:auto; display:flex; align-items:center; gap:6px; }
#countCaptureProductPicker .count-picker-header-actions :is(.pbf-close-icon,.pbf-tool-icon) { color:inherit!important; }
#countCaptureProductPicker .e-dlg-content { display:flex; flex-direction:column; flex:1; min-height:0; padding:12px; overflow:hidden; }
#countCaptureProductPicker .count-product-picker-toolbar { flex:none; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 0 10px; }
#countCaptureProductPicker .count-product-picker-filters { display:flex; flex-wrap:wrap; width:100%; gap:8px; }
#countCaptureProductPicker .count-product-picker-filters>.mini-card { flex:1 1 150px; min-width:0; width:auto; padding:0; }
#countCaptureProductPicker .count-product-picker-grid-host { flex:1; min-height:0; overflow:hidden; }
#countCaptureProductPicker .count-product-picker-grid { max-height:none!important; height:100%; }
#countCaptureProductPicker .e-footer-content { display:flex; align-items:center; gap:8px; flex:none; height:60px; min-height:60px; padding:10px 16px; border-top:1px solid #d5dfea; }
#countCaptureProductPicker .e-footer-content button { margin:0; }
@media (min-width:1101px) and (max-width:1500px) {
    #stock-count-capture-drawer .count-capture-definition { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (min-width:761px) and (max-width:1650px) {
    #stock-count-capture-drawer [data-capture-state] { display:none; }
    #stock-count-capture-drawer .count-capture-header { gap:8px; height:auto; flex-wrap:wrap; padding-block:6px; }
    #stock-count-capture-drawer .count-approval-progress { position:static; transform:none; order:1; flex:1 1 100%; justify-content:center; }
    #stock-count-capture-drawer .count-approval-progress .count-approval-line { width:20px; }
    #stock-count-capture-drawer .count-capture-footer { height:auto; flex-wrap:wrap; }
}
@media(max-width:1100px) {
    #stock-count-capture-drawer { --count-entry-width:100vw; }
    #stock-count-capture-drawer .count-touch-summary { gap:12px; }
    #stock-count-capture-drawer .count-capture-definition { flex-basis:100%; grid-template-columns:repeat(3,minmax(0,1fr)); }
    #stock-count-capture-drawer .count-touch-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:14px; padding:14px; }

}
@media (min-width:761px) and (max-width:1000px) {
    #stock-count-capture-drawer .count-capture-header { height:auto; padding-block:6px; flex-wrap:wrap; }
    #stock-count-capture-drawer [data-capture-close] { margin-left:auto; }
    #stock-count-capture-drawer .count-capture-timing { order:0; }
}
@media(max-width:760px) {
    #stock-count-capture-drawer { --count-entry-width:100vw; width:100vw!important; }
    #stock-count-capture-drawer .count-capture-header { padding:6px 12px; display:grid; height:auto; grid-template-columns:minmax(0,1fr) auto 28px; gap:6px 8px; }
    #stock-count-capture-drawer .count-capture-header h2 { grid-column:1; grid-row:1; }
    #stock-count-capture-drawer .count-capture-document-number { min-width:0; grid-column:2; grid-row:1; }
    #stock-count-capture-drawer [data-capture-close] { grid-column:3; grid-row:1; }
    #stock-count-capture-drawer .count-approval-progress { grid-column:1 / -1; grid-row:2; justify-content:center; }
    #stock-count-capture-drawer .count-approval-progress { position:static; transform:none; }
    #stock-count-capture-drawer .count-capture-timing { grid-column:1 / -1; grid-row:3; margin:0; justify-content:space-between; gap:6px; }
    #stock-count-capture-drawer [data-entry-clock] { flex:1; max-width:none; padding:4px 6px; }
    #stock-count-capture-drawer .count-touch-summary { padding:12px; }
    #stock-count-capture-drawer .count-capture-definition { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    #stock-count-capture-drawer [data-capture-state] { display:none; }
    #stock-count-capture-drawer .count-approval-progress { gap:5px; font-size:11px; }
    #stock-count-capture-drawer .count-approval-progress .count-approval-line { width:12px; }
    #stock-count-capture-drawer .count-approval-progress [data-count-approval-wait],#stock-count-capture-drawer .count-approval-progress [data-count-approval-final] { padding:4px 6px; }
    #stock-count-capture-drawer .count-capture-header { gap:8px; }
    #stock-count-capture-drawer .count-capture-header h2 { font-size:13px; gap:3px; }
    #stock-count-capture-drawer .count-capture-definition .e-input-group { height:40px; }
    #stock-count-capture-drawer .count-touch-progress { flex-basis:100%; }
    #stock-count-capture-drawer .count-capture-footer { gap:6px; padding:8px 12px!important; flex-wrap:wrap; height:auto; }
    #stock-count-capture-drawer .count-capture-footer button { flex:none; white-space:nowrap; }
    #stock-count-capture-drawer .count-capture-primary-actions { flex:1 1 100%; flex-wrap:wrap; gap:6px; }
    #stock-count-capture-drawer .count-capture-audit { flex:1 1 100%; min-width:0; }
    .count-entry-defaults-popup .count-entry-pin { flex-basis:44px; width:44px; height:44px; }
    .count-entry-defaults-popup .count-entry-pin-current { height:100%; max-height:44px; }
    .count-entry-defaults-popup .e-list-item:has(.count-entry-pin) { height:auto; min-height:44px; }
    #stock-count-capture-drawer .count-capture-output-actions { flex:1 1 100%; flex-wrap:wrap; gap:6px; margin:0; }
    #stock-count-capture-drawer .count-touch-photo { flex:1 1 100%; justify-content:space-between; gap:6px; }
    #stock-count-capture-drawer .count-touch-photo small { max-width:180px; }
    #stock-count-capture-drawer .count-capture-options { width:100%; justify-content:flex-start; gap:6px 12px; }
    #stock-count-capture-drawer .count-touch-button { min-height:44px; white-space:normal; }
    #stock-count-capture-drawer .count-capture-content { display:block; }
    #stock-count-capture-drawer .count-touch-layout { min-height:0; }
    #stock-count-capture-drawer .count-touch-button.pbf-standalone-cancel { height:44px!important; }
    #stock-count-capture-drawer .count-touch-layout { display:block; padding:12px; }
    #stock-count-capture-drawer .count-entry-views { flex-basis:100%; gap:12px; }
    #stock-count-capture-drawer .count-entry-views label { min-height:44px; }
    #stock-count-capture-drawer .count-entry-list-view { height:480px; margin:2px 4px 0; }
    #stock-count-capture-drawer .count-entry-grid-toolbar { flex-wrap:wrap; }
    #stock-count-capture-drawer .count-entry-grid-tools { flex:1 1 100%; }
    #stock-count-capture-drawer #countEntryListSearch { flex:1 1 160px; width:160px; min-width:110px; }
    #stock-count-capture-drawer .count-entry-grid input.e-input { height:44px; }
    #stock-count-capture-drawer .count-entry-grid [data-list-delete] { min-height:44px; }
    #stock-count-capture-drawer .count-touch-right { margin-top:16px; }
    #stock-count-capture-drawer .count-touch-results { height:460px; }
    #stock-count-capture-drawer .count-touch-modes button { flex:1; padding:8px; }
    #stock-count-capture-drawer .count-touch-scan { font-size:17px; height:56px; }
    #stock-count-capture-drawer .count-touch-suggestions { top:80px; max-height:330px; }
    #stock-count-capture-drawer .count-touch-suggestions button { padding:9px; gap:6px; }
    #stock-count-capture-drawer .count-touch-suggestions strong { font-size:12px; }
    #stock-count-capture-drawer .count-touch-search-status { font-size:11px; }
    #stock-count-capture-drawer .count-touch-pad { gap:10px; padding:4px 12px 12px; }
    #stock-count-capture-drawer .count-touch-row { padding:9px; gap:6px; }
    #stock-count-capture-drawer .count-touch-row .count-touch-number { font-size:19px; }
    #stock-count-capture-drawer .count-touch-share,#stock-count-capture-drawer .count-capture-documents { margin:0 12px 12px; }
    #countCaptureProductPicker .count-product-picker-filters { flex-direction:column; align-items:stretch; }
    #countCaptureProductPicker .count-product-picker-filters>.mini-card { width:100%; min-width:0; max-width:none; flex:0 0 auto; }
    #countCaptureProductPicker.count-product-picker-drawer,#countCaptureProductPicker.count-product-picker-drawer.is-expanded { width:100vw!important; }
    #countCaptureProductPicker .e-footer-content { height:auto; min-height:60px; flex-wrap:wrap; padding:8px; }
    #countCaptureProductPicker .e-footer-content button { min-height:44px; }
}
@media(max-width:380px) {
    #stock-count-capture-drawer .count-touch-pad { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:8px; }
    #stock-count-capture-drawer .count-touch-keys { gap:5px; }
    #stock-count-capture-drawer .count-touch-keys button { height:48px; }
}

#stock-count-capture-drawer .count-entry-product-filters { display:flex; align-items:center; gap:12px; flex:0 0 auto; color:#212529; }
#stock-count-capture-drawer .count-entry-product-filters label { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; margin:0; font-size:13px; }
#stock-count-capture-drawer .count-entry-product-filters input { margin:0; accent-color:#165eff; }
#stock-count-capture-drawer .count-entry-product-filters i { color:#fc9c3c; }
@media(max-width:1100px) { #stock-count-capture-drawer .count-entry-product-filters { gap:6px; flex-wrap:wrap; flex-shrink:1; } }

/* Keep the picker header intrinsic; only the grid body consumes remaining height. */
#countCaptureProductPicker .count-product-picker-header-hint { font-size:13px; color:#212529; min-width:0; }
#countCaptureProductPicker .count-picker-title { flex:none; }
#countCaptureProductPicker .count-product-picker-grid > .e-gridheader { flex:0 0 auto; height:auto!important; min-height:0!important; }
#countCaptureProductPicker .count-product-picker-grid .e-headercontent,
#countCaptureProductPicker .count-product-picker-grid .e-headercontent > .e-table { height:auto!important; min-height:0!important; }
#countCaptureProductPicker .count-product-picker-grid .e-columnheader { height:32px!important; }
#countCaptureProductPicker .count-product-picker-grid .e-columnheader .e-headercell { height:32px!important; padding:0 6px!important; vertical-align:middle; }
#countCaptureProductPicker .count-product-picker-grid .e-headercelldiv { height:28px!important; line-height:28px!important; margin:0; }
#countCaptureProductPicker .count-product-picker-grid .custom-filter-row { height:28px!important; }

#stock-count-capture-drawer .count-entry-icon-group { display:flex; flex:none; align-items:center; flex-wrap:nowrap; gap:4px; }
#stock-count-capture-drawer .count-entry-icon-group + .count-entry-icon-group { border-left:1px solid #d9dee7; padding-left:8px; }

/* Count form preview and sharing: scoped, keyboard accessible dialogs. */
#stock-count-capture-drawer .count-entry-output-dialog { padding:0; border:1px solid #d5dfea; border-radius:6px; color:#212529; font:inherit; width:min(1080px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); box-shadow:0 12px 36px #0003; }
#stock-count-capture-drawer .count-entry-output-dialog::backdrop { background:#0006; }
#stock-count-capture-drawer .count-entry-output-dialog header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #d5dfea; background:white; }
#stock-count-capture-drawer .count-entry-output-dialog header>div { display:flex; gap:6px; flex-wrap:wrap; }
#stock-count-capture-drawer .count-entry-preview iframe { display:block; width:100%; height:calc(100dvh - 130px); min-height:200px; border:0; background:white; }
#stock-count-capture-drawer .count-entry-share-dialog { width:min(520px,calc(100vw - 24px)); border-radius:14px; }
#stock-count-capture-drawer .count-entry-share-dialog header { padding:22px 22px 12px; border-bottom:0; }
#stock-count-capture-drawer .count-entry-share-dialog header strong { font-size:20px; font-weight:600; }
#stock-count-capture-drawer .count-entry-share-body { padding:10px 22px 22px; display:grid; gap:14px; }
#stock-count-capture-drawer .count-entry-share-summary { white-space:pre-line; padding:14px; border-radius:10px; background:#f3f5fa; color:#52617b; font-size:13px; line-height:1.5; user-select:text; }
#stock-count-capture-drawer .count-entry-share-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#stock-count-capture-drawer .count-entry-share-options :is(a,button) { display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; min-height:56px; height:auto; padding:10px; border:1px solid #bbc9df; border-radius:9px; background:white; color:#19263e; font-size:14px; font-weight:600; white-space:normal; }
#stock-count-capture-drawer .count-entry-share-options [data-entry-wa] { background:#278361; border-color:#278361; color:white; }
#stock-count-capture-drawer .count-entry-share-options :is(a,button):hover { background:#eef3fa; }
#stock-count-capture-drawer .count-entry-share-options [data-entry-wa]:hover { background:#216f52; }
#stock-count-capture-drawer .count-entry-share-options :is(a,button):focus-visible { outline:2px solid #165eff; outline-offset:2px; }
#stock-count-capture-drawer .count-entry-share-body small { color:#60708b; font-size:11px; line-height:1.5; }
#stock-count-capture-drawer [data-entry-copy-status]:empty { display:none; }
#stock-count-capture-drawer .count-entry-grid-tools>[data-entry] { flex:none; white-space:nowrap; }
@media(max-width:550px) { #stock-count-capture-drawer .count-entry-output-dialog header { padding:8px; flex-wrap:wrap; } #stock-count-capture-drawer .count-entry-share-options { grid-template-columns:1fr; } }

#stock-count-capture-drawer .count-entry-notes-toggle { display:inline-flex; align-items:center; gap:5px; flex:none; white-space:nowrap; margin:0; }
#stock-count-capture-drawer .count-entry-cell-note, #stock-count-capture-drawer .count-entry-description { color:#d72d36!important; -webkit-text-fill-color:#d72d36; font:inherit; }
#stock-count-capture-drawer .count-entry-cell-note { width:100%; min-width:0; padding:3px 5px; }
#stock-count-capture-drawer .count-entry-description { flex:0 1 260px; width:260px; min-width:140px; max-width:100%; margin-left:auto; font-size:11px!important; height:44px; padding:5px 8px; border:1px solid #cbd5e1; border-radius:3px; resize:vertical; }
#stock-count-capture-drawer .count-entry-description::placeholder { color:#d72d36; opacity:1; }
#stock-count-capture-drawer [data-entry="clear-selections"] { color:#d72d36!important; border-color:#d72d36!important; background:white!important; }
#stock-count-capture-drawer [data-entry="clear-selections"]:not(:disabled):is(:hover,:focus-visible,:active) { color:white!important; border-color:#d72d36!important; background:#d72d36!important; }
#stock-count-capture-drawer [data-entry="print"]:not(:disabled):is(:hover,:focus-visible,:active) { color:white!important; background:#165eff!important; border-color:#165eff!important; }
#stock-count-capture-drawer [data-entry="share"]:not(:disabled):is(:hover,:focus-visible,:active) { color:white!important; background:#008037!important; border-color:#008037!important; }

#stock-count-capture-drawer .count-entry-grid-suggestions { box-sizing:border-box; }
#stock-count-capture-drawer .count-entry-grid-suggestions button>span:first-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#stock-count-capture-drawer .count-entry-grid-suggestions .count-entry-search-state.is-counted { color:#008037!important; }
#stock-count-capture-drawer .count-entry-grid-suggestions .count-entry-search-state.is-uncounted { color:#9aa0a6!important; }

/* Keep report tabs and actions on one compact line despite shared header rules. */
#stock-count-capture-drawer .count-entry-preview > header { display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important; justify-content:space-between; align-items:center; gap:8px; width:100%; min-height:0!important; height:auto!important; margin:0!important; padding:6px 12px!important; box-sizing:border-box; overflow-x:auto; }
#stock-count-capture-drawer .count-entry-preview > header > div { display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important; align-items:center; flex:0 0 auto; width:auto!important; margin:0!important; padding:0!important; gap:6px; }
#stock-count-capture-drawer .count-entry-preview > header button { flex:none; white-space:nowrap; }
#stock-count-capture-drawer .count-entry-preview iframe { height:calc(100dvh - 90px); }

#stock-count-capture-drawer .count-entry-search-row { display:flex; align-items:center; height:40px; }
#stock-count-capture-drawer .count-entry-search-row>input { flex:none; margin:0 8px; accent-color:#165eff; }
#stock-count-capture-drawer .count-entry-search-row>button { flex:1; min-width:0; }
#stock-count-capture-drawer .count-entry-grid-suggestions strong { color:#165eff!important; }
#stock-count-capture-drawer .count-entry-grid-suggestions small { color:#212529!important; }
#stock-count-capture-drawer .count-entry-search-footer { position:sticky; bottom:0; background:white; padding:4px 8px; border-top:1px solid #d5dfea; }
#stock-count-capture-drawer .count-entry-search-footer button { width:auto; height:30px; min-height:30px; margin-left:auto; }

#stock-count-capture-drawer .count-entry-search-footer { display:flex; align-items:center; gap:8px; }
#stock-count-capture-drawer .count-entry-search-footer button { margin-left:0; }
