/* Apple-inspired, compact office skin. Status colors and role controls remain semantic. */

html.apple-office{--apple-bg:#f5f5f7;--apple-card:#fff;--apple-ink:#1d1d1f;--apple-muted:#86868b;--apple-line:#e5e5ea;--apple-blue:#007aff;--compact-border:#e5e5ea;color-scheme:light}

html.apple-office body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important;background:var(--apple-bg)!important;color:var(--apple-ink)!important;-webkit-font-smoothing:antialiased}

html.apple-office :is(button,input,select,textarea){font-family:inherit!important;letter-spacing:-.012em}

html.apple-office :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #007aff60!important;outline-offset:2px!important}

html.apple-office .office.compact-office{background:var(--apple-bg)!important;color:var(--apple-ink)!important;--compact-border:#e5e5ea}

html.apple-office .office .office-header{background:#ffffffda!important;border-bottom:1px solid #dedee780!important;backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);box-shadow:0 1px 0 #ffffffb0!important;min-height:48px!important;padding-top:5px!important;padding-bottom:5px!important}

html.apple-office .office .office-header .nav-item{border-radius:10px!important;font-weight:500!important;color:#606067!important;transition:background .18s,color .18s;min-height:34px!important}

html.apple-office .office .office-header .nav-item:is(.active,[aria-current="page"]){background:#e8f1ff!important;color:#007aff!important;box-shadow:none!important}

html.apple-office .office .office-header .nav-item:hover{background:#ededf2!important}

html.apple-office .office :is(.account-trigger,.header-event-button){border-radius:50%!important;background:#f0f0f4!important;border:0!important;color:#4b4b52!important}

html.apple-office .office :is(.office-main,.workspace-main){background:transparent!important}

html.apple-office .office :is(.page-heading,.jd-page-heading){background:transparent!important;border:0!important;min-height:42px!important;padding-top:4px!important;padding-bottom:4px!important}

html.apple-office .office :is(h1,h2,h3){color:#1d1d1f;letter-spacing:-.035em;font-weight:650}

html.apple-office .office .page-heading h2{font-size:19px!important;font-weight:650!important}

html.apple-office .office :is(.panel,.settings-card,.integration-card,.employee-card,.catalog-card,.inbox-card,.pb-card){background:#fff!important;border:1px solid var(--apple-line)!important;border-radius:14px!important;box-shadow:0 2px 10px #16162a04!important}

html.apple-office .office :is(.jd-unified-list,.req-feed,.employee-list,.sb-list,.client-directory-list,.ac-table){background:#fff;border-radius:12px!important;overflow:clip;border:1px solid var(--apple-line)}

html.apple-office .office :is(.order-entry,.req-entry,.customer-row,.client-directory-row,.employee-row,.jd-catalog-entry,.sb-row,.product-row,.staff-row,.payment-row){background:#fff!important;border-color:var(--apple-line)!important;box-shadow:none!important;transition:background-color .16s}

html.apple-office .office :is(.order-entry,.req-entry,.customer-row,.client-directory-row,.employee-row,.jd-catalog-entry,.sb-row):hover{background:#f7f9fc!important}

html.apple-office .office :is(.jd-selected,.is-selected){background:#eaf3ff!important;outline-color:#8dbfff!important}

html.apple-office .office :is(.order-client,.receipt-client,.sb-name){font-weight:550!important}

html.apple-office .office :is(.muted,small){color:#7c7c83}

html.apple-office .office button:not(.badge):not(.status-dot):not(.receipt-round):not(.receipt-file-token):not(.nav-item){border-radius:10px;transition:background-color .16s,box-shadow .16s,transform .16s}

html.apple-office .office button:active:not(:disabled){transform:scale(.97)}

html.apple-office .office :is(.primary,.new-submit,#jd-page-new,#new-order,.ac-link){background:#007aff!important;color:#fff!important;border-color:transparent!important;box-shadow:0 2px 5px #007aff18!important}

html.apple-office .office :is(.secondary,.filter-button,#jd-page-filter,#jd-page-select,#jd-page-search,#jd-page-options-button){background:#eeeef3!important;color:#35353b!important;border:0!important;box-shadow:none!important}

html.apple-office .office :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:#f5f5f7!important;color:#1d1d1f!important;border:1px solid #e3e3e8!important;border-radius:10px!important;box-shadow:none!important;transition:border-color .18s,box-shadow .18s;min-width:0}

html.apple-office .office :is(input,select,textarea):focus{border-color:#007aff80!important;box-shadow:0 0 0 3px #007aff12!important}

html.apple-office :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:#007aff}

html.apple-office .office :is(.account-menu,.context-menu,.jd-context-menu,.jd-context,.order-info-popup,.jd-options-panel){background:#fffffff2!important;backdrop-filter:blur(22px);border:1px solid #e5e5eacc!important;border-radius:14px!important;box-shadow:0 12px 45px #2020361a!important;padding:6px!important}

html.apple-office .office :is(.account-menu,.jd-context-menu,.context-menu) button{border-radius:8px!important}

html.apple-office .office :is(.account-menu,.jd-context-menu,.context-menu) button:hover{background:#007aff!important;color:#fff!important}

html.apple-office .office details{border-color:var(--apple-line)!important}

html.apple-office .office summary{font-weight:550;color:#5d5d65;padding-top:8px;padding-bottom:8px}

html.apple-office .office details[open]>:not(summary){animation:apple-reveal .2s ease-out}

html.apple-office #toast{background:#29292ef2!important;color:white!important;border-radius:14px!important;box-shadow:0 8px 30px #0002!important;padding:12px 18px!important;backdrop-filter:blur(16px)}

html.apple-office dialog{background:#fff!important;border:1px solid #ffffffa0!important;border-radius:22px!important;box-shadow:0 24px 90px #1010252b!important;color:#1d1d1f!important;padding:20px!important;max-height:90dvh!important;max-width:calc(100vw - 24px)!important;opacity:0;transform:translateY(10px) scale(.98);transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1),display .22s allow-discrete,overlay .22s allow-discrete}

html.apple-office dialog[open]{opacity:1;transform:translateY(0) scale(1)}

html.apple-office dialog::backdrop{background:#14142832;backdrop-filter:blur(5px);opacity:0;transition:opacity .22s ease,display .22s allow-discrete,overlay .22s allow-discrete}

html.apple-office dialog[open]::backdrop{opacity:1}

@starting-style{html.apple-office dialog[open]{opacity:0;transform:translateY(12px) scale(.98)}html.apple-office dialog[open]::backdrop{opacity:0}}

html.apple-office dialog :is(h2,h3){letter-spacing:-.035em;color:#1d1d1f}

html.apple-office dialog h2{font-size:22px!important;margin:8px 0 12px!important}

html.apple-office dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:#f5f5f7!important;border:1px solid #e3e3e8!important;border-radius:10px!important;color:#1d1d1f!important}

html.apple-office dialog button{border-radius:10px;transition:background .16s,transform .16s}

html.apple-office dialog .apple-close{display:flex!important;align-items:center;justify-content:center;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;background:#eeeef1!important;color:#727279!important;border:0!important;border-radius:50%!important;font-size:23px!important;font-weight:400!important;line-height:1!important}

html.apple-office dialog>.row.between{min-height:28px!important;margin-bottom:4px!important}

html.apple-office dialog>.row.between>.eyebrow{font-size:10px!important;letter-spacing:.1em!important;color:#a0a0a7!important}

html.apple-office dialog:has(.apple-compare){width:920px!important}

.apple-compare{font-size:13px;line-height:1.45;min-width:0}.ac-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.ac-title h2{margin:0 0 6px!important}.ac-legend{display:flex;gap:12px;color:#999;font-size:11px;flex-wrap:wrap}.ac-legend .ac-same{color:#27804b}.ac-legend .ac-different{color:#a56a13}.ac-receipts{display:flex;gap:6px;max-width:45%;overflow:auto;padding:3px}

html.apple-office dialog .ac-thumbnail{flex:0 0 58px;width:58px!important;min-width:58px!important;height:76px!important;min-height:76px!important;padding:3px!important;background:#f5f5f7!important;border:1px solid #e5e5ea!important;border-radius:9px!important;overflow:hidden;position:relative;box-shadow:0 2px 7px #0001;color:#777!important}.ac-thumbnail img,.ac-thumbnail canvas{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:auto}.ac-thumbnail>span{position:absolute;right:2px;bottom:2px;background:#ffffffed;border-radius:5px;padding:0 3px;color:#007aff}.ac-candidates{display:flex;gap:10px;align-items:center;margin:10px 0}.ac-candidates select{flex:1;min-width:0}

.ac-columns,.ac-row{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr);gap:6px}.ac-columns{padding:8px 0;font-size:13px;position:sticky;top:-20px;background:#fff;z-index:3;border-bottom:1px solid #e5e5ea}.ac-columns>b,.ac-columns>a{padding:0 10px;font-weight:650;color:#1d1d1f}.ac-columns>a{color:#007aff;text-decoration:none}.ac-row{padding:4px 0;align-items:stretch;border-bottom:1px solid #f2f2f5}.ac-label{font-size:11px;color:#86868b;padding:8px 0;align-self:center}.ac-value{border-radius:7px;padding:7px 9px;display:flex;gap:6px;min-width:0;align-items:flex-start;overflow-wrap:anywhere;white-space:pre-wrap}.ac-value>span:last-child{min-width:0}.ac-value.ac-same{background:#edf8f0;color:#235b38}.ac-value.ac-different{background:#fff5e6;color:#885c1b}.ac-value.ac-missing{background:#f5f5f7;color:#777780}.ac-mark{font-size:12px;flex:0 0 12px;font-weight:600}.apple-compare h3{font-size:14px;margin:18px 0 7px}.ac-item{padding:7px 0;border-bottom:1px solid #dedee5}.ac-item-caption{font-size:10px;color:#999;margin-bottom:2px}.ac-item .ac-row{border:0;padding:2px 0}.ac-extra{margin-top:12px;border-top:1px solid #e5e5ea}.ac-extra summary{padding:10px 0;color:#6f6f77;cursor:pointer}.ac-raw{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);font-size:11px;gap:6px}.ac-raw dt{color:#888}.ac-raw dd{margin:0;overflow-wrap:anywhere}.ac-warning{color:#9a671d;background:#fff5e6;border-radius:9px;padding:9px;font-size:12px}.ac-footer{display:flex;gap:10px;justify-content:center;position:sticky;bottom:-20px;background:#fffffff2;backdrop-filter:blur(16px);padding:16px 0 6px;margin-top:12px;border-top:1px solid #e5e5ea;z-index:4}

html.apple-office dialog .ac-footer button{min-width:130px!important;min-height:38px!important;border:0!important;border-radius:11px!important;font-weight:550!important;padding:9px 18px!important}

html.apple-office dialog .ac-link{background:#007aff!important;color:white!important}html.apple-office dialog .ac-cancel{background:#fcecea!important;color:#bc5149!important}html.apple-office dialog .ac-link:disabled{background:#d4d4db!important;color:#8b8b94!important;cursor:not-allowed}.ac-other{font-size:12px!important;padding:7px 10px!important;background:#f2f2f7!important;color:#686870!important}

@keyframes apple-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

@media(max-width:600px){html.apple-office dialog{padding:14px!important;border-radius:18px!important;max-height:94dvh!important;max-width:calc(100vw - 12px)!important;width:calc(100vw - 12px);box-sizing:border-box!important}.ac-title{gap:8px;align-items:flex-start}.ac-title h2{font-size:19px!important}.ac-legend{gap:7px;font-size:10px}.ac-receipts{max-width:38%}.ac-columns,.ac-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px}.ac-label{grid-column:1/-1;padding:2px 0;font-size:10px}.ac-columns>span{display:none}.ac-columns{top:-14px}.ac-value{padding:7px 6px;font-size:11px}.ac-footer{bottom:-14px;padding-top:12px}.ac-footer button{flex:1}.ac-row{padding:5px 0}.ac-raw{grid-template-columns:1fr 1fr}html.apple-office .office .office-header{backdrop-filter:blur(12px)} }

@media(prefers-reduced-motion:reduce){html.apple-office *,html.apple-office *::before,html.apple-office *::after,html.apple-office dialog::backdrop{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact product card, 23 October. */

html.apple-office .jd-product-card{max-width:900px;margin:auto}

html.apple-office .jd-product-heading{display:flex;align-items:center;gap:10px;margin:8px 0 22px}

html.apple-office .jd-product-heading h2{flex:1;min-width:0;margin:0;font-size:23px;line-height:1.25;overflow-wrap:anywhere}

html.apple-office .jd-product-heading .round-action{flex:0 0 36px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:8px;background:#f0f4f8;color:#007aff;border:0}

.jd-product-heading svg{width:21px;height:21px}

.jd-product-main{display:grid;grid-template-columns:minmax(160px,30%) minmax(0,1fr);gap:26px;align-items:start}

.jd-product-photo{aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #eef0f3;border-radius:18px;overflow:hidden}

.jd-product-photo a{display:flex;width:100%;height:100%;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}

.jd-product-photo img{display:block;max-width:100%;max-height:100%;object-fit:contain}

.jd-product-photo [hidden]{display:none!important}

.jd-photo-empty{display:grid;gap:12px;justify-items:center;color:#8e8e93;text-align:center;padding:12px}

.jd-photo-empty svg{width:48px;height:48px;stroke:currentColor;fill:none}.jd-photo-fallback{padding:16px;color:#8e8e93;text-align:center}

.jd-product-prices{display:flex;gap:28px;flex-wrap:wrap;padding:0 0 18px;border-bottom:1px solid #e8e8ed}

.jd-product-prices>div{display:flex;flex-direction:column;gap:5px;min-width:110px}

.jd-product-prices small{font-size:12px;color:#6e6e73}.jd-product-prices strong{font-size:23px;font-weight:600;letter-spacing:-.5px}

.jd-product-prices .jd-product-cost strong{font-size:19px;color:#48484a}

.jd-product-description h3{font-size:13px;margin:17px 0 7px;font-weight:600}.jd-product-description h3 small{font-size:11px;color:#8e8e93;font-weight:400}

.jd-product-description p{font-size:14px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;margin:0;color:#424245}

.jd-product-extra{margin-top:22px;border-top:1px solid #e8e8ed;padding-top:10px}.jd-product-extra summary{font-size:13px;color:#6e6e73;padding:8px 0;cursor:pointer}.jd-product-extra .product-specs{font-size:13px}

html.apple-office button.jd-inline-edit{display:inline-flex;vertical-align:middle;background:none;color:#007aff;border:0;padding:3px;min-height:0;margin-left:6px}

.jd-inline-edit svg{width:15px;height:15px}

html.apple-office .jd-saby-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;min-width:34px;width:34px;height:34px;min-height:34px;padding:7px!important;border-radius:50%!important;box-sizing:border-box}

.jd-saby-control>svg{width:21px!important;height:21px!important;fill:currentColor;stroke:none!important;flex-shrink:0}

.jd-saby-control .jd-saby-label,.receipt-target [data-receipt-target-label]{display:none!important}

html.apple-office .receipt-target{width:34px;min-width:34px;padding:0;flex:0 0 34px}

@media(max-width:560px){html.apple-office .jd-product-heading{gap:7px;margin-bottom:15px}html.apple-office .jd-product-heading h2{font-size:19px}.jd-product-main{grid-template-columns:1fr;gap:16px}.jd-product-photo{width:min(100%,220px);justify-self:center}.jd-product-prices{gap:24px;padding-bottom:12px}.jd-product-prices strong{font-size:21px}.jd-product-description p{font-size:13px}.jd-product-extra{margin-top:14px}}



/* Unified top-layer surfaces, intentionally after legacy themes. */

#jd-sort-pop,#jd-tooltip{position:fixed;inset:auto;margin:0;box-sizing:border-box;border:1px solid #dfe3e9;border-radius:14px;background:rgba(255,255,255,.97);color:#1d2430;box-shadow:0 10px 35px #17243a26;backdrop-filter:blur(20px);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}

#jd-sort-pop{width:280px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;padding:9px;animation:jdSurfaceIn .14s ease-out}

#jd-sort-pop::backdrop,#jd-tooltip::backdrop{background:transparent;pointer-events:none}

#jd-sort-pop .jd-pop-heading{font-size:12px;font-weight:600;color:#727985;padding:2px 6px 8px}

#jd-sort-pop button{font:inherit;cursor:pointer;box-shadow:none!important;border:0!important;border-radius:8px!important;transform:none!important;background:transparent!important;color:#334155!important;letter-spacing:normal}

#jd-sort-pop .jd-direction-group{display:flex;gap:3px;padding:3px;background:#f0f2f5;border-radius:10px;margin-bottom:6px}

#jd-sort-pop .jd-direction-group button{flex:1;min-width:0;min-height:32px;padding:5px 3px;font-size:11px}

#jd-sort-pop .jd-direction-group [aria-pressed=true]{background:#fff!important;color:#137bd0!important;box-shadow:0 1px 4px #17243a14!important}

#jd-sort-pop .jd-sort-fields button{width:100%;display:flex;align-items:center;gap:9px;text-align:left;font-size:13px;padding:8px;min-height:36px}

#jd-sort-pop .jd-sort-fields button:hover{background:#f1f5fa!important}

#jd-sort-pop .jd-sort-fields [aria-pressed=true]{background:#eaf4ff!important;color:#0879c9!important}

#jd-sort-pop svg{width:17px;height:17px;flex:none}

#jd-sort-pop .jd-sort-selected{display:flex;margin-left:auto;visibility:hidden}

#jd-sort-pop [aria-pressed=true] .jd-sort-selected{visibility:visible}

#jd-tooltip{pointer-events:none;max-width:min(300px,calc(100vw - 16px));padding:8px 11px;border-radius:10px;font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;animation:jdSurfaceIn .12s ease-out}

.office [data-tip]::after,.office [data-tip]::before,#detail [data-tip]::after,#detail [data-tip]::before{content:none!important;display:none!important}

.office #jd-order-sort,.office #jd-page-search{display:inline-flex!important;align-items:center;justify-content:center;width:34px!important;min-width:34px;height:34px!important;padding:7px!important;background:#fff!important;border:1px solid #e4e8ee!important;color:#536174!important;border-radius:10px!important}

.office #jd-order-sort[aria-expanded=true],.office #jd-page-search.active{background:#eaf4ff!important;color:#0879c9!important}

.office #jd-search-panel{display:flex;align-items:center;gap:6px;margin:0 0 8px;padding:5px 8px;border:1px solid #e3e7ec;border-radius:12px;background:#fff;max-width:620px}

.office #jd-search-panel[hidden]{display:none!important}

.office #jd-search-panel>label{flex:1;min-width:0;margin:0!important;padding:0!important;font-size:0!important}

.office #jd-search-panel input{width:100%;min-width:0;min-height:34px!important;padding:7px 8px!important;margin:0!important;border:0!important;background:transparent!important;font-size:14px!important}

.office #jd-search-panel .float-caption,.office #jd-search-panel label>svg{display:none!important}

.office #jd-search-panel input::placeholder{color:#9299a3!important}

.office .jd-search-clear{width:32px;min-height:32px!important;padding:7px!important;background:#f3f5f7!important;color:#77818e!important;border:0;border-radius:8px}

.jd-search-clear svg{width:16px;height:16px}

.office .page-heading{overflow:visible;isolation:auto}

.office .page-actions{flex-shrink:0}

.office .filter-core,.office .filter-extra-fields,.office .client-filter-grid{min-width:0}

.office :is(input,select,textarea),#detail :is(input,select,textarea){max-width:100%;box-sizing:border-box}

#detail{box-sizing:border-box;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto;overscroll-behavior:contain}

#detail :is(.toolbar,.oc-actions,.submit-row){flex-wrap:wrap;gap:8px}

.office :is(.account-menu,.compact-more-menu){max-width:calc(100vw - 20px);max-height:calc(100dvh - 100px);overflow:auto}

@keyframes jdSurfaceIn{from{opacity:0;translate:0 -3px}to{opacity:1;translate:0 0}}

@media(max-width:600px){.compact-office .page-heading{grid-template-columns:minmax(104px,1fr) minmax(0,auto) minmax(72px,1fr)!important}.office #jd-order-sort,.office #jd-page-search{width:32px!important;min-width:32px;height:32px!important;padding:6px!important}#jd-sort-pop .jd-sort-fields button{min-height:40px}#detail{padding:14px!important}.office #jd-search-panel input{font-size:16px!important}.office .filter-core,.office .filter-extra-fields,.office .client-filter-grid{grid-template-columns:minmax(0,1fr)!important}}

@media(prefers-reduced-motion:reduce){#jd-sort-pop,#jd-tooltip{animation:none}}



#jd-tooltip{width:max-content!important;max-width:min(300px,calc(100vw - 16px))!important}#jd-sort-pop:popover-open~#jd-tooltip{pointer-events:none}



.office .receipt-review-card[hidden],.office .req-entry[hidden],.office .req-list[hidden],.office .req-history[hidden]{display:none!important}


.compact-office #jd-page-options:has(.order-fields-panel){padding:8px!important}

.office #filter-panel.order-fields-panel{display:block;padding:0!important;margin:0!important;border:0;box-shadow:none;min-width:0;width:100%}

.office #filter-panel.order-fields-panel[hidden],.office .order-filter-extra[hidden]{display:none!important}

.office .order-filter-line{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto auto;gap:6px;align-items:center;min-width:0}

.office .order-fields-panel select,.office .order-fields-panel input,.office .order-fields-panel button{box-sizing:border-box;width:100%;min-width:0!important;max-width:100%;height:32px!important;min-height:32px!important;margin:0!important;padding:4px 8px!important;border-radius:9px!important;font-size:12px!important;line-height:20px;box-shadow:none}

.office .order-fields-panel select{border:1px solid #dfe3e9;background-color:#fff;text-overflow:ellipsis;padding-right:22px!important}

.office .order-fields-panel .filter-reset,.office .order-fields-panel .order-filter-more{white-space:nowrap;width:auto;color:#1770ca;background:#edf4fc;border:1px solid transparent}

.office .order-filter-extra{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:7px}

.office #order-filter-error{font-size:12px;color:#bd382f;margin:6px 0 0}

@media(max-width:1000px){.office .order-filter-line{grid-template-columns:repeat(3,minmax(0,1fr))}.office .order-filter-extra{grid-template-columns:repeat(3,minmax(0,1fr))}.office .order-fields-panel .filter-reset{grid-column:3}}

@media(max-width:600px){.office .order-filter-line,.office .order-filter-extra{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.office .order-fields-panel select,.office .order-fields-panel input,.office .order-fields-panel button{font-size:16px!important;height:38px!important;min-height:38px!important}.office .order-fields-panel .filter-reset{grid-column:auto}.office .order-filter-line #filter-method{grid-column:1/-1}.office .order-filter-extra #filter-date-kind,.office .order-filter-extra #filter-sync{grid-column:1/-1}}



/* Single horizontal line for sorting and compact order filters. */

#jd-sort-pop{width:max-content!important;max-width:calc(100vw - 20px)!important}

#jd-sort-pop .jd-sort-fields{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:4px;max-width:calc(100vw - 40px);overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px;scrollbar-width:thin}

#jd-sort-pop .jd-sort-fields button{width:auto!important;min-width:max-content!important;flex:0 0 auto!important;white-space:nowrap;padding:7px 10px!important;gap:6px!important}

#jd-sort-pop .jd-sort-selected{margin-left:0!important}

#jd-sort-pop .jd-direction-group{width:max-content;max-width:100%;gap:6px}

#jd-sort-pop .jd-direction-group button{padding:5px 10px!important;white-space:nowrap}

.office #filter-panel .order-filter-line,.office #filter-panel .order-filter-extra{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px;scrollbar-width:thin}

.office #filter-panel .order-filter-line select,.office #filter-panel .order-filter-extra select,.office #filter-panel .order-filter-extra input{flex:1 0 130px!important;width:130px!important;min-width:130px!important}

.office #filter-panel .order-filter-line button{flex:0 0 auto!important}

.office #filter-panel .order-filter-extra[hidden]{display:none!important}


.price-clients-header{display:flex;align-items:center;gap:10px;margin:6px 0 10px}.price-clients-header select{width:auto;max-width:70%;height:34px;padding:4px 28px 4px 10px}.price-client-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.5fr) 40px;gap:10px;align-items:center;width:100%;text-align:left!important;background:transparent!important;color:inherit!important;border:0!important;border-bottom:1px solid #e8ebef!important;border-radius:0!important;padding:8px 10px!important;box-shadow:none!important}.price-client-row small,.price-add-row small{display:block;color:#7b8794;font-size:12px}.price-client-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.price-client-pages{display:flex;gap:10px;align-items:center;justify-content:center;margin:10px 0}.price-add-results{max-height:48dvh;overflow:auto;margin:10px 0}.price-add-row{display:flex!important;align-items:center;gap:10px;padding:8px;border-bottom:1px solid #e8ebef}.price-add-row input{width:18px!important;min-width:18px;height:18px!important}.price-add-row span{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.price-client-row{grid-template-columns:minmax(0,1fr) 32px}.price-client-row>.muted{display:none}.price-clients-header select{font-size:16px}}

.jd-category-folder{border:1px solid #e5e9ef;border-radius:10px;margin:5px 0;background:#fff;overflow:hidden}.jd-category-folder>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:36px;padding:7px 10px;color:#334155;font-size:13px;font-weight:600}.jd-category-folder>summary::-webkit-details-marker{display:none}.jd-category-folder>summary>span{flex:1;min-width:0;overflow-wrap:anywhere}.jd-category-folder>summary>small{font-weight:400;color:#8893a2}.jd-category-folder>summary>svg{width:16px;height:16px;flex:none}.jd-category-folder[open]>summary{background:#f4f7fb}.jd-category-folder[open]>summary>svg:last-child{transform:rotate(90deg)}.jd-category-items{min-width:0}.office .jd-category-items .catalog-row{border-radius:0}.office #catalog-view,.office #catalog-availability{display:inline-block;width:auto;max-width:100%;margin:0 6px 6px 0;padding:5px 28px 5px 9px;min-height:32px;font-size:13px}@media(max-width:600px){.jd-category-folder>summary{min-height:42px}.office #catalog-view,.office #catalog-availability{font-size:16px}}

/* Catalog family: section tabs replace the title; tools are on the next row. */
.office .page-heading.catalog-section-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:4px 8px!important;padding-top:2px!important;padding-bottom:5px!important;min-height:0!important;margin-top:0!important}
.office .catalog-section-heading>h1{display:none!important}
.office .catalog-section-heading>.sub-tabs{grid-column:1/-1!important;grid-row:1!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:nowrap!important;width:100%;min-width:0;margin:0!important;padding:0!important;border:0!important;gap:4px!important;overflow-x:auto}
.office .catalog-section-heading>.sub-tabs button{flex:0 0 auto!important;white-space:nowrap;min-height:30px!important;padding:5px 12px!important;border-radius:9px!important;border:1px solid transparent!important;background:transparent!important;color:#687789!important;font-size:14px!important;box-shadow:none!important}
.office .catalog-section-heading>.sub-tabs button.active{background:#e3f0ff!important;color:#096cbd!important;border-color:#c4dffc!important;font-weight:600!important}
.office .catalog-section-heading>#page-left{grid-column:1!important;grid-row:2!important;justify-self:start!important}
.office .catalog-section-heading>#page-right{grid-column:3!important;grid-row:2!important;justify-self:end!important}
.office .jd-category-folder{margin:3px 0;border-radius:8px}
.office .jd-category-folder>summary{min-height:28px!important;padding:3px 9px!important;font-size:12px;gap:7px;line-height:20px}
.office .jd-category-folder>summary>svg{width:14px;height:14px}
.office .jd-category-items{padding-left:28px;box-sizing:border-box;border-left:1px solid #edf0f5}
@media(max-width:600px){.office .catalog-section-heading>.sub-tabs{justify-content:flex-start!important}.office .catalog-section-heading>.sub-tabs button{padding:5px 9px!important;font-size:13px!important;min-height:34px!important}.office .jd-category-folder>summary{min-height:34px!important}.office .jd-category-items{padding-left:20px}}

/* Compact catalogue multi-category filter. */
.compact-office .jd-catalog-filters{display:flex!important;align-items:flex-start;gap:10px;flex-wrap:wrap}
.jd-category-multi{flex:0 1 320px;min-width:200px;border:1px solid #dce1e9;border-radius:12px;background:#fff}
.jd-category-multi>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;cursor:pointer;list-style:none;font-size:13px}
.jd-category-multi>summary::-webkit-details-marker{display:none}
.jd-category-options{max-height:260px;overflow:auto;border-top:1px solid #edf0f4;padding:4px}
.jd-category-options label{display:flex!important;align-items:center;gap:9px;padding:7px 8px;font-size:13px;cursor:pointer}
.jd-category-options input[type=checkbox],.jd-stock-check input[type=checkbox]{width:17px!important;height:17px!important;min-height:0!important;margin:0;accent-color:#1685ed;flex:none}
.compact-office .jd-stock-check{display:flex!important;align-items:center;gap:8px;min-height:36px;font-size:13px;white-space:nowrap}
@media(max-width:480px){.jd-category-multi{min-width:170px;flex:1 1 190px}.jd-category-options{max-height:220px}}

/* Floating search/filter panels: no contribution to list layout. */
.office #jd-page-options.jd-floating-panel,.office #jd-search-panel.jd-floating-panel{position:fixed!important;inset:auto;margin:0!important;box-sizing:border-box;max-width:calc(100vw - 24px)!important;padding:12px!important;border:1px solid #dfe4ec!important;border-radius:16px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 16px 48px #18253c26,0 3px 10px #18253c12;overflow:auto;overscroll-behavior:contain;z-index:1200;animation:jd-filter-appear .14s ease-out}
.office #jd-page-options.jd-floating-panel:not([hidden]){display:block!important}
.office #jd-search-panel.jd-floating-panel:not([hidden]){display:flex!important;flex-wrap:wrap;gap:8px}
.jd-floating-panel::backdrop{background:transparent;pointer-events:none}
.jd-floating-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 8px;font-size:13px}
.jd-floating-head button{display:grid!important;place-items:center;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;border:0;border-radius:8px;background:#f1f3f7}
.jd-floating-head svg{width:16px;height:16px}
.office #jd-page-options.jd-floating-panel>section,.office #jd-page-options.jd-floating-panel>form,.office #jd-page-options.jd-floating-panel>.pb-tools{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.office #jd-page-options.jd-floating-panel input:not([type=checkbox]):not([type=range]),.office #jd-page-options.jd-floating-panel select{height:34px!important;min-height:34px!important;font-size:12px!important;padding:5px 9px!important;border-radius:9px!important}
.office #jd-page-options.jd-floating-panel .client-filter-grid,.office #jd-page-options.jd-floating-panel .event-filter-panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.office #jd-page-options.jd-floating-panel .order-filter-line,.office #jd-page-options.jd-floating-panel .order-filter-extra{flex-wrap:wrap!important;gap:8px!important;overflow:visible!important;padding:0!important}
.office #jd-page-options.jd-floating-panel .order-filter-line select,.office #jd-page-options.jd-floating-panel .order-filter-extra select,.office #jd-page-options.jd-floating-panel .order-filter-extra input{flex:1 1 150px!important;min-width:0!important;width:auto!important}
.office #jd-page-options.jd-floating-panel .jd-catalog-filters{gap:8px!important;align-items:flex-start}
.office #jd-page-options.jd-floating-panel .jd-category-multi{flex:1 1 220px;min-width:0}
.office #jd-search-panel.jd-floating-panel>label{flex:1 1 0!important}
.office #jd-search-panel.jd-floating-panel>input{flex:1 1 0!important;width:auto!important}
@keyframes jd-filter-appear{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:480px){.office #jd-page-options.jd-floating-panel input:not([type=checkbox]):not([type=range]),.office #jd-page-options.jd-floating-panel select{font-size:16px!important}.office #jd-page-options.jd-floating-panel .client-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){.jd-floating-panel{animation:none!important}}
.office #jd-page-options.jd-floating-panel .jd-category-multi{margin:0!important;padding:0!important;border-radius:10px!important}
.office #jd-page-options.jd-floating-panel .jd-category-multi>summary{height:34px;box-sizing:border-box;padding:6px 10px!important;font-size:12px!important}
.office .jd-floating-panel .jd-floating-head{margin:0 0 8px!important}
.office .jd-floating-panel .jd-floating-head button{background:#f1f3f7!important;color:#616b7a!important}

/* Receipts: explicit grid cells, no absolute approval overlay, including Safari. */
.office.compact-office #content .receipt-grid.view-list .receipt-review-card{grid-template-columns:32px 44px minmax(0,1fr)!important;overflow:visible!important;box-sizing:border-box;max-width:100%;gap:8px!important}
.office.compact-office #content .receipt-grid.view-list .receipt-order{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"main actions" "meta actions"!important;align-items:center!important;gap:2px 10px!important;padding:0!important;width:auto!important}
.office.compact-office #content .receipt-grid.view-list .receipt-info-main{grid-area:main;min-width:0!important}
.office.compact-office #content .receipt-grid.view-list .receipt-info-meta{grid-area:meta}
.office.compact-office #content .receipt-grid .receipt-decisions{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin:0!important;grid-area:actions}
.office.compact-office #content .receipt-grid .receipt-decisions .receipt-round{width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;touch-action:manipulation}
.receipt-permission{max-width:105px;font-size:10px;line-height:1.3;color:#927135;white-space:normal}
.receipt-target-icon.green{background:#e5f6eb!important;color:#22834c!important}
.receipt-match-list{display:grid;gap:8px}.receipt-match-item{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #e8eaf0;border-radius:12px;flex-wrap:wrap}.receipt-match-item>div{flex:1;min-width:150px}.receipt-match-item small{display:block;color:#73808f}.receipt-match-item svg{width:22px;height:22px}
@media(max-width:680px){.office.compact-office #content .receipt-grid.view-list .receipt-info-main{flex-wrap:wrap!important;gap:0 8px!important}.office.compact-office #content .receipt-grid.view-list .receipt-client{flex-basis:100%;font-size:12px!important}.office.compact-office #content .receipt-grid.view-list .receipt-amount{font-size:13px!important}.office.compact-office #content .receipt-grid.view-list .receipt-review-card{padding:8px!important;gap:6px!important}.office.compact-office #content .receipt-grid.view-list .receipt-order{gap:2px 6px!important}}

html.apple-office #app .office .office-header{position:sticky!important;top:0!important;z-index:90!important;background:#fff!important}
html.apple-office #app .office .office-main{overflow:visible!important}
html.apple-office #app .office .page-heading{position:sticky!important;top:var(--bk-header-height,56px)!important;z-index:80!important;background:#f5f5f7!important;box-shadow:0 1px 0 #dedee580;padding-top:6px!important;padding-bottom:6px!important;margin-bottom:8px!important}
html.apple-office #app .office{overflow:visible!important}
html{scroll-padding-top:calc(var(--bk-header-height,56px) + 75px)}

/* OCR evidence is visible separately from the employee entry and Saby linkage. */
.office .receipt-ocr-summary{min-width:0;display:flex;flex-wrap:wrap;gap:2px 10px;font-size:11px;line-height:1.4;color:#536573;padding:2px 0}
.office .receipt-ocr-summary .ocr-explanation{color:#718078;overflow-wrap:anywhere}
.office .receipt-ocr-summary .ocr-file-values{white-space:nowrap}
html.apple-office .office #content .receipt-grid.view-list .receipt-order{grid-template-areas:"main actions" "meta actions" "ocr ocr"!important}
html.apple-office .office #content .receipt-grid.view-list .receipt-ocr-summary{grid-area:ocr!important;display:flex!important;width:auto!important}
html.apple-office .office .receipt-review-card.pay-full-match,html.apple-office .office .receipt-review-card.pay-full-match .receipt-order{background:#e3f4e8!important}
@media(max-width:680px){.office .receipt-ocr-summary{font-size:10px;gap:1px 6px}.office .receipt-ocr-summary .ocr-explanation{flex-basis:100%}}
html.apple-office #app .office.compact-office #content .receipt-grid.view-list .receipt-order{grid-template-columns:minmax(120px,1fr) auto auto!important;grid-template-areas:"main meta actions" "ocr ocr ocr"!important;gap:3px 8px!important}
html.apple-office #app .office.compact-office #content .receipt-grid.view-list .receipt-ocr-summary{grid-area:ocr!important;justify-content:flex-start!important;align-self:start!important}
@media(max-width:680px){html.apple-office #app .office.compact-office #content .receipt-grid.view-list .receipt-order{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"main actions" "meta actions" "ocr ocr"!important}}
