.office-header nav.nav-v2{gap:4px;align-items:center;overflow:visible}
.nav-v2 .nav-item{position:relative;white-space:nowrap;padding:7px 11px;font-size:13px;border-radius:8px;height:auto;align-self:center}
.nav-badge{display:inline-block;min-width:18px;height:18px;line-height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:#d9480f;color:#fff;font-size:11px;font-weight:700;text-align:center;vertical-align:1px}
.nav-more{position:relative;display:flex;align-items:center}
.nav-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center}
.nav-more>summary::-webkit-details-marker{display:none}
.nav-more-menu{position:absolute;top:100%;left:0;z-index:50;min-width:250px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #1722331f;display:grid;gap:2px}
.nav-more-menu button{all:unset;cursor:pointer;padding:9px 12px;border-radius:7px;font-size:14px;color:#252a31}
.nav-more-menu button:hover{background:#eef1f5}
.nav-more-menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}
.v2{display:grid;gap:14px}
.today-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.today-tile{all:unset;cursor:pointer;display:grid;gap:2px;padding:16px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.today-tile:hover{border-color:#9aa7b6}
.today-tile b{font-size:28px;color:#243b53}
.today-tile span{font-weight:600;color:#252a31}
.today-tile small{color:var(--muted)}
.today-tile.amber b{color:#b35c00}.today-tile.red b{color:#c92a2a}
.v2-panel{display:grid;gap:4px}
.v2-row{all:unset;cursor:pointer;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 8px;border-bottom:1px solid var(--line)}
.v2-row.static{cursor:default}
.v2-row small{display:block;color:var(--muted);margin-top:2px}
.v2-row:hover:not(.static){background:#f3f5f8}
.pay-state{display:flex;gap:8px;align-items:center}.pay-state.amber{color:#b35c00}
.inbox-hint{margin:0}
.inbox-card{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 16px;background:#fff;border:1px solid var(--line);border-left:4px solid #e8a33d;border-radius:10px}
.inbox-card.waiting{border-left-color:#c5ccd5;opacity:.8}
.inbox-copy{display:grid;gap:3px;min-width:240px;flex:1}
.inbox-copy p{margin:0}.inbox-copy small{color:var(--muted)}
.inbox-type{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.inbox-cards{margin:4px 0;padding-left:18px;color:#3b4552}
.inbox-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.empty-state{text-align:center;padding:28px}
.kanban{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:start}
.kanban-col{background:#eef1f5;border-radius:12px;padding:10px;display:grid;gap:8px}
.kanban-col h2{font-size:14px;margin:2px 4px}.kanban-col h2 span{color:var(--muted);font-weight:400}
.kanban-card{all:unset;cursor:pointer;display:grid;gap:2px;padding:10px 12px;background:#fff;border-radius:9px;border:1px solid var(--line)}
.kanban-card small{color:var(--muted)}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg button{all:unset;cursor:pointer;padding:7px 12px;font-size:13px}.seg button.active{background:#243b53;color:#fff}
@media (max-width:760px){.office-header nav.nav-v2{overflow-x:auto}.nav-more-menu{position:fixed;left:8px;right:8px;top:60px}}
/* the office theme paints every plain button dark; these are cards/rows, not buttons */
.office .today-tile,.office .v2-row,.office .kanban-card,.office .nav-more-menu button{background:#fff!important;color:#252a31!important}
.office .v2-row:hover:not(.static),.office .nav-more-menu button:hover{background:#f3f5f8!important}
.office .seg button{background:transparent!important;color:#252a31!important}
.office .seg button.active{background:#243b53!important;color:#fff!important}
.nav-v2 .nav-item,.nav-v2 .nav-more{flex:0 0 auto}
@media (max-width:760px){.office-header nav.nav-v2{min-width:0;overflow-x:auto;overflow-y:visible;scrollbar-width:none}.office-header nav.nav-v2::-webkit-scrollbar{display:none}.nav-v2 .nav-item{font-size:12px;padding:6px 8px}}

.office .office-header nav button.nav-new-menu{background:#2f6fed !important;color:#fff !important;border:1px solid #2f6fed !important;border-radius:8px !important;font-weight:600 !important;margin-left:8px !important;padding:6px 12px !important}
.office .office-header nav button.nav-new-menu:hover{background:#1f5ad6 !important}

/* ===== Этап A: классическое меню + вкладки разделов, карточка заказа, журналы ===== */
.office-header nav .nav-item .nav-badge{margin-left:5px}
.office-main .sub-tabs{max-width:max-content;margin:0 auto 12px}
.sub-tabs .nav-badge{margin-left:4px}
.sub-tabs-inner{max-width:max-content}
.status-dot[data-dot],.client-channel,.employee-dot,.event-type-icon{cursor:pointer}
.status-dot[data-dot]:hover{filter:brightness(.95);box-shadow:0 0 0 2px #dfe7f0}
.status-dot[data-dot]::after{display:none}
/* карточка заказа */
#detail .oc{display:grid;gap:8px;min-width:0}
#detail .oc-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#detail .oc-head h2{margin:0}
.oc-spacer{flex:1}
.oc-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #dce5ec !important;border-radius:8px;background:#fff !important;color:#5b6775 !important;text-decoration:none;font-weight:700;font-size:13px}
.oc-icon svg{width:18px;height:18px}
.oc-icon.muted-icon{color:#a5adb7 !important}
.oc-client,.oc-delivery,.oc-one{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.oc-delivery{color:#5f6b78;font-size:13px}
.oc-items{list-style:none;margin:2px 0;padding:0;border:1px solid #e6ebef;border-radius:10px;max-height:260px;overflow:auto}
.oc-items li{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:7px 10px;border-bottom:1px solid #eef1f4;font-size:13px}
.oc-items li:last-child{border-bottom:0}
.oc-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.oc-qty,.oc-price{color:#5f6b78;white-space:nowrap}.oc-qty small{color:#278558}
.oc-sum{white-space:nowrap;text-align:right;min-width:90px}
.oc-pop .oc-items li{grid-template-columns:minmax(0,1fr) auto}
.oc-total{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.oc-total>span{margin-right:auto;font-size:15px}
.oc-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 10px;border-radius:15px;border:0;font-size:12px;cursor:pointer}
.oc-chip svg{width:14px;height:14px}
.office .oc-chip.neutral,#detail .oc-chip.neutral{background:#f1f1ef !important;color:#5b6775 !important}
#detail .oc-chip.green{background:#def5e6 !important;color:#208450 !important}
#detail .oc-chip.amber{background:#fff0c9 !important;color:#a77516 !important}
#detail .oc-actions,#detail #order-actions.oc-actions{display:flex !important;flex-wrap:wrap;gap:6px;align-items:center}
#detail .oc-actions button,#detail .oc-more summary{min-height:36px !important;padding:7px 12px;font-size:13px}
.oc-more{position:relative}
.oc-more summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;border-radius:8px;border:1px solid #dce5ec;background:#fff}
.oc-more summary::-webkit-details-marker{display:none}
.oc-more-menu{position:absolute;z-index:5;top:calc(100% + 4px);left:0;display:grid;gap:4px;min-width:200px;padding:6px;background:#fff;border:1px solid #dce5ec;border-radius:10px;box-shadow:0 10px 30px #1722331f}
#detail .oc-tabs{margin:4px 0 0}
#oc-pane{border:1px solid #e6ebef;border-radius:10px;padding:10px 12px}
#oc-pane[hidden]{display:none}
.oc-info{display:grid;grid-template-columns:140px minmax(0,1fr);gap:4px 12px;margin:0;font-size:13px}
.oc-info dt{color:#7a8592}.oc-info dd{margin:0;overflow-wrap:anywhere}
.oc-upload{margin-top:8px}.oc-upload summary{cursor:pointer;font-size:13px}
.oc-sums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0}
.oc-sums span{display:grid;padding:8px 10px;border-radius:10px;background:#f6f7f9;font-size:12px;color:#6b7684}
.oc-sums b{font-size:15px;color:#1d232b}
.oc-steps{display:flex;gap:6px;list-style:none;padding:0;margin:8px 0}
.oc-steps li{flex:1;text-align:center;padding:6px;border-radius:8px;background:#f1f1ef;color:#8a929b;font-size:12px}
.oc-steps li.done{background:#def5e6;color:#208450;font-weight:600}
#detail .section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
/* журналы */
.log-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.log-tools input{flex:1;min-width:200px}
.log-row{border-bottom:1px solid #eef1f4;padding:6px 2px}
.log-row summary{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,2fr) auto;gap:10px;align-items:center;cursor:pointer;font-size:13px}
.log-row summary span:not(.badge),.log-row summary b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.log-row.bad summary b{color:#b42318}
.log-row pre{font-size:12px;background:#f6f7f9;padding:8px;border-radius:8px;max-height:300px;overflow:auto}
.logs-link{margin:10px 0 0}.logs-link button{display:inline-flex;gap:6px;align-items:center}.logs-link svg{width:16px;height:16px}
.integration-cards.single{grid-template-columns:1fr !important}
.site-mail{margin-top:12px}.site-mail summary{cursor:pointer;font-weight:600}
@media (max-width:760px){
 .oc-items li{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.oc-items .oc-price{display:none}
 .oc-info{grid-template-columns:1fr}.oc-info dt{margin-top:6px}
 .log-row summary{grid-template-columns:1fr auto}.log-row summary span:not(.badge){display:none}
 .office-main .sub-tabs{max-width:100%}
}
#detail .oc-tabs button{background:transparent !important;color:#6f6f69 !important;border:0 !important;min-height:30px !important;font-size:12px !important}
#detail .oc-tabs button.active,#detail .oc-tabs button:hover{background:#f0f0ed !important;color:#111 !important}
#detail .oc>*{margin-top:0;margin-bottom:0}
#detail #order-actions.oc-actions{margin:2px 0 !important;padding:0 !important;border:0 !important}
#detail .oc-more[open] summary{background:#f0f0ed}
#detail.order-dialog .row.between:first-child .eyebrow{visibility:hidden}
#detail.order-dialog #close-modal{min-height:34px !important;padding:6px 12px !important}
.account-menu [data-account-logs] svg{width:18px;height:18px}
@media (max-width:760px){#logs-button{display:none !important}}
.log-tools{display:grid !important;grid-template-columns:minmax(0,1fr) 190px auto auto;align-items:center}
.log-tools>*{margin:0 !important;min-height:38px}
.log-row summary{padding:4px 0}
@media (max-width:760px){.log-tools{grid-template-columns:1fr 1fr}.log-tools input{grid-column:1/-1}}
#detail .oc-more{margin:0 !important;padding:0 !important;border:0 !important;background:none !important}
#detail .oc-upload{padding:6px 0 !important;margin:8px 0 0 !important;border:0 !important}
@media (max-width:760px){.office-header nav .nav-item{padding:6px 7px !important;font-size:11px !important}.office-header nav .nav-badge{min-width:16px;height:16px;line-height:16px;font-size:10px;margin-left:3px}}

/* ===== Stage B: формы и Telegram (22.10.2026) ===== */
#detail form.fg2,#settings-body form.fg2{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
#detail form.fg2>*,#settings-body form.fg2>*{grid-column:1/-1;margin:0!important}
#detail form.fg2>label.float-field:not(:has(textarea)),#settings-body form.fg2>label.float-field:not(:has(textarea)){grid-column:auto}
#detail form .float-field input,#detail form .float-field select{min-height:50px;padding-top:20px!important}
.more-fields{border:1px solid #e3e9e4;border-radius:11px;padding:0 12px;background:#fbfcfb}
.more-fields>summary{cursor:pointer;padding:11px 0;font-size:13px;font-weight:600;color:#3d6450;list-style:none}
.more-fields>summary::before{content:'＋ '}.more-fields[open]>summary::before{content:'－ '}
.more-fields>summary::-webkit-details-marker{display:none}
.more-fields-grid,.more-fields .tg-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 0 12px}
.file-host{position:relative}
.file-host input[type=file][data-pick]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}
.file-pick{display:flex;align-items:center;gap:10px;margin-top:8px;min-width:0}
.file-pick b{flex:none;padding:7px 12px;border-radius:9px;background:#eef3ef;color:#244a37;font-size:13px;font-weight:600}
.file-pick i{font-style:normal;color:#7c8d80;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.file-host.has-file .file-pick i{color:#244a37}
.file-host:focus-within{outline:2px solid #9cc5ae;outline-offset:2px}
/* фильтры: подписи внутри, компактная кнопка сброса */
.office .filter-panel .float-field input,.office .filter-panel .float-field select,.office .event-filter-panel .float-field select{min-height:48px;padding-top:19px!important}
.office .filter-panel .filter-reset{height:32px!important;min-height:32px!important;padding:0 12px!important;background:#fff!important;color:#3d6450!important;border:1px solid #dfe7df!important;font-size:12px!important;font-weight:600;justify-self:start;width:auto!important}
.office .filter-panel .filter-extra{margin:4px 0}
/* Telegram */
.tg-health{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.tg-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:#eef1ee;color:#41584b;font-size:12px;font-weight:600;border:0;line-height:1.3;cursor:default}
.tg-chip::before{content:'';width:7px;height:7px;border-radius:50%;background:#a5b1a8}
.tg-chip.ok{background:#e7f5ec;color:#21633d}.tg-chip.ok::before{background:#2fa35c}
.tg-chip.bad{background:#fdecea;color:#9d2c22}.tg-chip.bad::before{background:#d6453a}
button.tg-chip.info{cursor:pointer;background:#fff;border:1px solid #dfe7df;min-height:0!important;height:auto!important;width:auto!important}
button.tg-chip.info::before{display:none}
.tg-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin-top:14px}
.tg-card{display:flex;flex-direction:column;gap:10px;padding:16px!important;margin:0!important}
.tg-card h2{font-size:15px;margin:0}
.tg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.tg-hint{font-size:12px;margin:0}
.tg-switch{display:flex!important;align-items:flex-start;gap:10px;cursor:pointer;padding:4px 0;color:#263f36!important;font-size:13px!important}
.tg-switch input{position:absolute;opacity:0;width:1px;height:1px}
.tg-knob{flex:none;position:relative;width:36px;height:20px;border-radius:20px;background:#cfd8d1;transition:background .15s;margin-top:1px}
.tg-knob::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.tg-switch input:checked+.tg-knob{background:#2fa35c}.tg-switch input:checked+.tg-knob::after{left:18px}
.tg-switch input:focus-visible+.tg-knob{outline:2px solid #9cc5ae;outline-offset:2px}
.tg-switch-text{display:flex;flex-direction:column;gap:2px;min-width:0}.tg-switch-text b{font-weight:600}
.tg-switch-text small{color:#7c8d80;font-size:12px}
.tg-switches{display:flex;flex-wrap:wrap;gap:4px 18px}
.tg-group{margin-top:8px}.tg-group>summary{cursor:pointer;font-weight:600;padding:8px 0}
.tg-form{display:flex;flex-direction:column;gap:10px}
.tg-form>button{align-self:flex-start;width:auto!important;padding:0 18px!important}
@media(max-width:700px){
 #detail form.fg2,#settings-body form.fg2,.more-fields-grid,.more-fields .tg-grid{grid-template-columns:1fr}
 .tg-cards{grid-template-columns:1fr}
 .office-header .brand{font-size:18px!important;letter-spacing:-.5px}
 .office-header{gap:6px!important;padding:0 8px!important}
 .office-header nav{gap:0!important}
 .office-header nav button{padding:6px 7px!important;font-size:12px!important}
}
@media(max-width:420px){.office-header nav .nav-item{padding:6px 5px !important}.office-header .header-tools{gap:4px !important}}
.integration-cards.single .integration-card{min-height:0 !important}
.tg-card .integration-link{white-space:nowrap;flex:none}
.tg-card .integration-card-head{gap:10px;align-items:flex-start}

/* ===== Stage C: Saby ===== */
.sb-cards .sb-wide{grid-column:1/-1}
.sb-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:13px}
.sb-dl dt{color:#7c8d80}.sb-dl dd{margin:0;color:#263f36}.sb-dl dd.bad{color:#b2382d}
.sb-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sb-tile{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px!important;border-radius:11px;border:1px solid #e3e9e4!important;background:#fbfcfb!important;color:#263f36!important;text-align:left;min-height:0!important;height:auto!important;width:auto!important;cursor:pointer}
.sb-tile.static{cursor:default}
.sb-tile b{font-size:20px;line-height:1.1}.sb-tile span{font-size:12px;color:#7c8d80}
.sb-tile.warn{background:#fff8ea!important;border-color:#f1dfb5!important}
button.sb-tile:hover{border-color:#b9d3c3!important}
.sb-list{display:flex;flex-direction:column;max-height:360px;overflow:auto}
.sb-list.compact{max-height:220px}
.sb-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:8px 0;border-bottom:1px solid #eef1ee;font-size:13px;align-items:center}
.sb-row.job{grid-template-columns:minmax(0,1fr) auto auto}
.sb-row.job small{grid-column:1/3}
.sb-row small{color:#7c8d80;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sb-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sb-num{color:#41584b;white-space:nowrap;font-size:12px}
.sb-note{font-size:12px;margin:0}
.sb-states{display:flex;flex-wrap:wrap;gap:6px}
.sb-tools{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap}
.sb-tools input:not([type=checkbox]){flex:1;min-width:180px;min-height:40px;padding:0 12px;border:1px solid #dfe7df;border-radius:10px}
.sb-tools button{width:auto!important}
.sb-stock{font-size:12px;max-height:60vh;overflow:auto}
.sb-srow{display:grid;grid-template-columns:minmax(160px,1fr) repeat(6,minmax(48px,auto));gap:8px;padding:6px 0;border-bottom:1px solid #eef1ee;align-items:center}
.sb-srow>span:not(.sb-name){text-align:right;white-space:nowrap}
.sb-srow .sb-name small{display:block;color:#a0661a;font-size:10px;overflow:hidden;text-overflow:ellipsis}
.sb-srow.warn{background:#fffbf2}
.sb-head{position:sticky;top:0;background:#fff;font-weight:600;color:#7c8d80;z-index:1}
.sb-cap{cursor:pointer}
.tg-switch.is-readonly{cursor:default;opacity:.85}
button.small,.secondary.small{height:28px!important;min-height:28px!important;padding:0 10px!important;font-size:12px!important;width:auto!important}
.muted.small{font-size:11px;white-space:nowrap}
@media(max-width:700px){.sb-srow{grid-template-columns:minmax(120px,1fr) repeat(3,auto)}.sb-srow>span:nth-child(3),.sb-srow>span:nth-child(5),.sb-srow>span:nth-child(7){display:none}.sb-tiles{grid-template-columns:repeat(3,1fr)}}
.tg-card .text-button{display:inline-flex!important;align-items:center;gap:6px;width:auto!important;align-self:flex-start}
.tg-card .text-button svg{width:16px;height:16px;flex:none}
.sb-srow>span:first-child{text-align:left!important}
.sb-srow{grid-template-columns:minmax(160px,1fr) repeat(5,58px) 84px}
@media(max-width:700px){.sb-srow{grid-template-columns:minmax(110px,1fr) 52px 60px 64px}}

/* ===== Прайсы и доска «Клиенты по прайсам» ===== */
.pb-lists button small{display:block;font-size:11px;font-weight:400;opacity:.7}
.pb-source{margin:6px 0 10px}
.pb-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}
.pb-tools input{flex:1 1 260px;min-width:0;width:auto}
.pb-tools select{flex:0 0 auto;width:auto}
.pb-tools button{flex:0 0 auto}
.pb-import{display:inline-flex;align-items:center;cursor:pointer;padding:8px 12px;border-radius:8px}
.pb-legend{font-size:12px;margin-bottom:8px}
.pb-tag{display:inline-block;padding:0 6px;border-radius:6px;font-size:11px;line-height:17px;background:#eef2ff;color:#3730a3}
.pb-tag.out{background:#f3f4f6;color:#6b7280}
.pb-table{border:1px solid var(--line,#e5e7eb);border-radius:10px;overflow:hidden;background:#fff}
.pb-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 130px 110px;gap:10px;align-items:center;padding:7px 12px;border-top:1px solid var(--line,#eef0f3)}
.pb-row:first-child{border-top:0}
.pb-th{font-size:12px;color:#6b7280;background:#f9fafb;font-weight:600}
.pb-row.out .pb-name{color:#6b7280}
.pb-row.edited{background:#fbfaff}
.pb-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-name small{display:block;font-size:11px;color:#6b7280;overflow:hidden;text-overflow:ellipsis}
.pb-saby{color:#6b7280;text-align:right;font-variant-numeric:tabular-nums}
.pb-price{width:100%;text-align:right;font-variant-numeric:tabular-nums;padding:5px 8px}
.pb-acts{display:flex;gap:6px;justify-content:flex-end}
.pb-acts .pb-remove{color:#b91c1c}
.pb-acts .text-button{padding:2px 4px;font-size:12px;white-space:nowrap}
#pb-toast-undo{color:#c7d2fe;text-decoration:underline;margin-left:8px}
.pb-hidden{margin-top:14px}
.pb-board{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.pb-col{padding:12px;min-width:0;transition:box-shadow .15s}
.pb-col.drop{box-shadow:0 0 0 2px #6366f1 inset}
.pb-col header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.pb-col header h2{margin:0;font-size:17px}
.pb-colq{width:100%;margin-bottom:8px}
.pb-colbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:13px}
.pb-cards{display:flex;flex-direction:column;gap:6px;min-height:80px}
.pb-card{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line,#e5e7eb);border-radius:9px;background:#fff;cursor:grab}
.pb-card.sel{border-color:#6366f1;background:#f5f5ff}
.pb-card input[type=checkbox],.pb-colbar input[type=checkbox]{width:auto;flex:none;margin:0}
.pb-card-main{flex:1 1 auto;min-width:0}
.pb-colbar .check-row{display:flex;align-items:center;gap:6px;width:auto}
.pb-card-main b,.pb-card-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-card-main small{font-size:12px;color:#6b7280}
.pb-flip{white-space:nowrap}
.pb-hist .sb-row{flex-wrap:wrap}
.price-suggestion{margin:6px 0}
@media (max-width:720px){
 .pb-board{grid-template-columns:1fr}
 .pb-row{grid-template-columns:minmax(0,1fr) 100px;grid-template-areas:"n p" "s a"}
 .pb-row .pb-name{grid-area:n}.pb-row>span:nth-child(3){grid-area:p}.pb-saby{grid-area:s;text-align:left;font-size:12px}.pb-acts{grid-area:a}
 .pb-th{display:none}
 .pb-saby::before{content:'Saby: '}
 .pb-card{cursor:default}
}
/* 22.10.2026: цвет значка Saby в карточке заказа */
#detail .saby-order-link.saby-red,#detail .oc-icon.saby-red{box-shadow:0 0 0 2px #f2b8b1;color:#bd4c44}#detail .saby-order-link.saby-blue{box-shadow:0 0 0 2px #b9d3fb}#detail .saby-order-link.saby-red path{fill:#d9534f}#detail .saby-order-link.saby-grey path{fill:#9aa3ad}
#detail .oc-items .undershipped{color:#bd4c44}.undership-list{padding-left:18px;margin:8px 0 12px}.undership-list li{margin:4px 0}
#detail .oc-chip.blue{background:#e8f0fe !important;color:#1a56b8 !important}
#detail .oc-balance{cursor:default}
.client-balance small{font-weight:400}
.client-card-balance{font-size:13px;font-weight:600;color:#5f6b7a;margin-left:8px}
.client-card-balance.debt{color:#bd4c44}.client-card-balance.over{color:#1a56b8}
/* «Заявки» — компактный список (22.10.2026) */
.req-feed .req-group{font-size:13px;font-weight:600;color:#5f6b7a;margin:14px 2px 6px}
.req-feed .req-note{margin:0 0 6px}
.req-feed .order-line.req-line{display:grid!important;grid-template-columns:minmax(96px,120px) minmax(120px,1fr) minmax(110px,170px) 64px minmax(110px,160px) minmax(150px,220px)!important;grid-template-rows:auto!important;gap:10px!important;min-height:48px!important;padding:6px 14px!important;align-items:center}
.req-feed .req-open{display:flex;flex-direction:column;align-items:flex-start;text-align:left;line-height:1.2;white-space:nowrap}
.req-feed .req-open small{font-weight:400;font-size:11px;color:#7a8594}
.req-feed .req-source,.req-feed .req-items{font-size:12px;color:#5f6b7a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.req-feed .order-amount{white-space:nowrap;text-align:right}
.req-feed .req-delta{display:inline-block;margin-left:6px;font-size:12px;font-weight:600}
.req-delta.up{color:#1e8a4c}.req-delta.down{color:#bd4c44}
.req-feed .req-state{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.req-feed .req-who{font-size:11px;color:#5f6b7a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.req-feed .req-entry.waiting{border-left:3px solid #e0a526}
.req-feed .req-peek{padding:0 14px 10px}
.req-feed .req-peek .inbox-card{margin:0}
#page-right #req-search{min-width:180px;max-width:260px}
@media(max-width:760px){
 .req-feed .order-line.req-line{grid-template-columns:minmax(78px,96px) minmax(0,1fr) auto!important;grid-template-areas:"num client amount" "num meta state"!important;gap:2px 8px!important;padding:6px 10px!important}
 .req-feed .req-open{grid-area:num}.req-feed .order-client{grid-area:client}.req-feed .order-amount{grid-area:amount}
 .req-feed .req-source{grid-area:meta}.req-feed .req-items{display:none}.req-feed .req-state{grid-area:state;align-items:flex-end}
 .req-feed .req-state .badge{font-size:10px}
 #page-right #req-search{min-width:0;width:130px}
}
#detail .req-delta{margin-left:6px;font-size:12px;font-weight:600}
.req-feed .req-list{display:grid;gap:6px}
.req-feed .req-search{width:100%;max-width:380px;margin:0 0 4px}
@media(max-width:760px){.req-feed .req-list{gap:5px}.req-feed .req-search{max-width:none}}
/* Значки-фильтры списка заказов (22.10.2026) */
.order-quick-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.order-quick-filters .qf-group{display:flex;gap:4px;padding:3px;border:1px solid #e3e8e4;border-radius:999px;background:#fff}
.order-quick-filters .qf{cursor:pointer;transition:opacity .15s,box-shadow .15s}
.order-quick-filters .qf-group:has([aria-pressed=true]) .qf:not([aria-pressed=true]){opacity:.4}
.order-quick-filters .qf[aria-pressed=true]{box-shadow:0 0 0 2px currentColor inset}
.order-quick-filters .qf::after{bottom:auto;top:calc(100% + 8px);left:0;right:auto}
.order-quick-filters .qf-count{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#294436;color:#fff;font-size:10px;line-height:16px;font-weight:600;text-align:center}
.order-quick-filters .qf-clear{font-size:12px}

/* 22.10.2026: last-order price hint in the order form */
.last-price-hint{display:block;font-size:11px;color:var(--muted,#7a7f87);margin-top:2px;white-space:nowrap}.last-price-hint.differs{color:#a77712}

#detail .saby-order-link.saby-purple,#detail .oc-icon.saby-purple{box-shadow:0 0 0 2px #d6c2f3;color:#7a3fc8}

/* Compact requests and side-by-side receipt verification. */
#req-bulk-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:6px 0 10px;font-size:13px}
#req-bulk-tools button{margin-left:auto;padding:7px 12px;min-height:34px}.req-select-all,.req-select{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;cursor:pointer}.req-select input,.req-select-all input{width:17px!important;height:17px!important;margin:0!important;accent-color:#36a5df}.req-entry.is-selected{background:#eef8fe!important;box-shadow:inset 3px 0 #36a5df}.req-line:has(.req-select){grid-template-columns:24px minmax(95px,.8fr) minmax(100px,1.5fr) minmax(80px,1fr) 52px minmax(85px,.8fr) minmax(100px,1fr)}
.receipt-workspace{max-width:1600px;margin:auto}.receipt-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:6px 0 12px}.receipt-views{display:flex;gap:3px;padding:3px;background:#f0f3f7;border-radius:11px}.receipt-views button{min-height:34px;width:38px;padding:4px;border:0;background:transparent;color:#788494;font-size:20px;border-radius:8px}.receipt-views button[aria-pressed=true]{background:#fff;color:#168dc3;box-shadow:0 1px 4px #18263315}.receipt-size{display:flex!important;align-items:center;gap:8px;font-size:12px;margin:0!important;color:#778391}.receipt-size input{width:100px!important;padding:0!important;min-height:20px;accent-color:#30a5dd}.receipt-toolbar>.muted{margin-left:auto;font-size:12px}.receipt-grid{display:grid;gap:12px}.receipt-grid.view-large{grid-template-columns:repeat(auto-fit,minmax(min(100%,530px),1fr))}.receipt-grid.view-small{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr))}.receipt-grid.view-list{grid-template-columns:1fr}.receipt-review-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(160px,1fr);border:1px solid #e4e9ef;border-radius:14px;background:#fff;overflow:hidden;align-items:start}.receipt-docs{min-width:0;background:#f6f8fa;padding:10px;align-self:stretch}.receipt-order{padding:14px;display:flex;gap:8px;flex-direction:column;min-width:0}.receipt-order-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.receipt-order-head .order-number{padding:0!important;min-height:30px!important;font-size:14px!important}.receipt-order-head .status-dot{width:30px;height:30px;min-width:30px;padding:6px}.receipt-order b{font-size:14px;overflow-wrap:anywhere}.receipt-amount{font-size:20px;font-variant-numeric:tabular-nums}.receipt-order small,.receipt-order .muted{font-size:12px;line-height:1.5}.receipt-order p{margin:0;overflow-wrap:anywhere}.receipt-decisions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.receipt-decisions button{padding:7px 10px;min-height:34px;font-size:12px}.receipt-feedback:empty{display:none}.receipt-file+.receipt-file{margin-top:10px}.receipt-preview{height:calc(290px * var(--receipt-scale,1));overflow:auto;cursor:grab;background:#fff;border:1px solid #e5e9ed;border-radius:8px;text-align:center;touch-action:pan-y}.receipt-preview:active{cursor:grabbing}.receipt-preview-body img,.receipt-preview-body canvas{display:block;width:100%;height:auto;max-width:100%;margin:auto}.receipt-preview:focus-visible{outline:2px solid #39a6df;outline-offset:2px}.receipt-file-tools{display:flex;align-items:center;gap:12px;padding:7px 2px 0;font-size:12px}.receipt-file-tools a{color:#278fbd;text-decoration:none}.receipt-file-tools span{margin-left:auto;color:#8796a5;cursor:grab}.view-small .receipt-preview{height:calc(160px * var(--receipt-scale,1))}.view-small .receipt-order{padding:10px;gap:5px}.view-small .receipt-amount{font-size:17px}.view-list .receipt-review-card{grid-template-columns:minmax(150px,260px) minmax(0,1fr)}.view-list .receipt-docs{display:flex;gap:10px;overflow:auto}.view-list .receipt-file{min-width:130px;flex:1;margin:0}.view-list .receipt-preview{height:calc(155px * var(--receipt-scale,1))}
@media(max-width:760px){.req-line:has(.req-select){grid-template-columns:22px minmax(80px,.7fr) minmax(100px,1fr) auto;gap:5px}.req-line .req-source,.req-line .req-items{display:none}.req-line .req-state{grid-column:2/-1;display:flex;gap:8px;align-items:center}.receipt-toolbar{gap:8px}.receipt-size{font-size:0}.receipt-size input{width:80px!important}.receipt-grid.view-large,.receipt-grid.view-small{grid-template-columns:1fr}.receipt-review-card{grid-template-columns:minmax(0,1fr) minmax(145px,1fr)}.receipt-order{padding:10px}.receipt-preview{height:calc(240px * var(--receipt-scale,1))}.view-list .receipt-review-card{grid-template-columns:minmax(120px,.85fr) minmax(150px,1fr)}.receipt-toolbar>.muted{font-size:11px}}
@media(max-width:370px){.receipt-review-card{grid-template-columns:1fr}.receipt-preview{height:calc(180px * var(--receipt-scale,1))}.receipt-order{gap:5px}.receipt-grid.view-list .receipt-review-card{grid-template-columns:1fr}.receipt-order .receipt-amount{font-size:18px}}
/* QA overrides: compact toolbar, stable columns, no overlap on narrow screens. */
.office .receipt-views button{background:transparent!important;color:#73818e!important;border:0!important;padding:4px!important;min-height:32px!important;width:34px!important;box-shadow:none!important}
.office .receipt-views button[aria-pressed=true]{background:#fff!important;color:#168dc3!important;box-shadow:0 1px 4px #18263315!important}
.office .receipt-size input{appearance:auto!important;width:100px!important;padding:0!important;border:0!important;background:transparent!important;min-height:20px!important;height:20px!important;box-shadow:none!important}
.office .receipt-size{white-space:nowrap;flex-shrink:0}.receipt-order small{overflow-wrap:anywhere}.receipt-order{overflow:hidden}.receipt-order .status-dot{flex-shrink:0}.receipt-grid{align-items:start}
.req-feed #req-bulk-tools{padding:0 0 5px;min-height:32px;gap:8px}.req-feed .req-group{margin:8px 2px 5px}.req-feed .req-list{gap:4px}.req-feed .order-line.req-line{min-height:40px!important;padding:5px 10px!important;gap:8px!important}
.req-feed .order-line.req-line:has(.req-select){grid-template-columns:20px minmax(85px,105px) minmax(0,1fr) minmax(80px,145px) 48px minmax(85px,120px) minmax(100px,160px)!important;grid-template-areas:none!important}
.req-feed .req-line>*{min-width:0}.req-feed .req-select{grid-area:auto!important}.req-feed .order-client{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.office .req-select input,.office .req-select-all input{appearance:auto!important;display:inline-block!important;padding:0!important;width:16px!important;min-height:16px!important;height:16px!important;flex-shrink:0}
@media(max-width:760px){.req-feed .order-line.req-line{grid-template-columns:minmax(78px,96px) minmax(0,1fr) auto!important;grid-template-areas:'num client amount' 'num meta state'!important}.req-feed .order-line.req-line:has(.req-select){grid-template-columns:20px minmax(75px,90px) minmax(0,1fr) auto!important;grid-template-areas:'check num client amount' 'check num state state'!important}.req-feed .req-select{grid-area:check!important}.req-feed .req-open{grid-area:num!important}.req-feed .order-client{grid-area:client!important}.req-feed .order-amount{grid-area:amount!important}.req-feed .req-state{grid-area:state!important;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:5px}.req-feed .req-source{display:none}.req-feed .req-line{min-height:44px!important}#req-bulk-tools button{font-size:11px!important;padding:6px 8px!important}.req-select-all{font-size:12px}.receipt-size{font-size:0!important}.receipt-toolbar{padding:2px 0 8px;gap:6px}.receipt-toolbar>.muted{margin-left:auto}.office .receipt-size input{width:70px!important}.receipt-order b{font-size:12px}.receipt-order .receipt-amount{font-size:17px}.receipt-order small,.receipt-order .muted{font-size:11px}.receipt-decisions button{font-size:11px!important;padding:6px 8px!important}.receipt-order-head .order-number{font-size:12px!important}.receipt-docs{padding:7px}.receipt-review-card{border-radius:10px}.receipt-order{gap:5px}.header-tools{min-width:0}.office-header{max-width:100%}}
.office .receipt-size.float-field{display:flex!important;align-items:center!important;padding:0!important;gap:8px!important;min-height:24px!important;position:static!important}
.office .receipt-size>.float-caption{position:static!important;transform:none!important;inset:auto!important;font-size:12px!important;pointer-events:none!important;white-space:nowrap;line-height:1!important}
.office .receipt-size input[type=range]{margin:0!important;padding:0!important;flex:none!important}
@media(max-width:760px){.office .receipt-size>.float-caption{display:none!important}.office .office-header{padding-left:7px!important;padding-right:7px!important;gap:4px!important;box-sizing:border-box}.office .office-header nav{gap:0!important;min-width:0!important;flex-shrink:1!important}.office .office-header .nav-item{padding-left:4px!important;padding-right:4px!important}.office .header-tools{gap:3px!important;margin-left:auto!important;flex-shrink:0}.office .account-trigger{width:32px!important;min-width:32px!important;padding:2px!important}.office .header-event-button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:7px!important}.req-feed .req-open{font-size:11px!important}.req-feed .req-open small{font-size:10px!important}.req-feed .req-state .badge{font-size:9px!important;padding:2px 4px!important}.req-feed .order-client{font-size:11px!important}}
@media(max-width:760px){.office .office-header nav{display:flex!important;flex:1 1 auto!important;overflow-x:auto!important;scrollbar-width:none!important;white-space:nowrap}.office .office-header nav::-webkit-scrollbar{display:none}.office .office-header .nav-item{width:auto!important;min-width:0!important;flex:0 0 auto!important;gap:3px!important;white-space:nowrap!important}.office .office-header .brand{flex-shrink:0!important}.office .office-profile{flex-shrink:0!important}}
@media(max-width:360px){.office .office-header .brand{font-size:17px!important}.office .office-header .nav-item{font-size:9px!important;padding:6px 3px!important;gap:2px!important}.office-header .nav-badge{font-size:8px!important;min-width:13px!important;height:13px!important;padding:0 3px!important}.office .office-header{gap:3px!important}}
.office .req-feed .req-open{padding:0!important;min-height:28px!important;line-height:1.15!important}
.office-main:has(.req-feed,.receipt-workspace) .page-heading{min-height:36px;margin-bottom:4px}
.office-main:has(.req-feed,.receipt-workspace)>.sub-tabs{margin-top:0;margin-bottom:6px}
/* Receipt list: original file icon + two lines + round decisions. */
.receipt-file-token{display:none!important}.receipt-info-main,.receipt-info-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.receipt-client{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.receipt-amount{white-space:nowrap;flex-shrink:0}.receipt-info-meta{flex-wrap:wrap}.receipt-date{white-space:nowrap}.office .receipt-target{display:inline-flex!important;align-items:center;gap:5px;max-width:100%;min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:#49849c!important;box-shadow:none!important;font-size:11px!important;white-space:nowrap!important}.receipt-target-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;flex-shrink:0;border-radius:50%;background:#f1f3f5;color:#87929c}.receipt-target-icon svg{width:13px;height:13px}.receipt-target-icon.blue{background:#e6f3fc;color:#288dc4}.receipt-target-icon.red{background:#fff0ed;color:#d74e48}.receipt-target-icon.purple{background:#f0e9fc;color:#8b5ac2}.office .receipt-decisions .receipt-round{display:inline-flex!important;align-items:center;justify-content:center;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;border-radius:50%!important;border:1px solid transparent!important;box-shadow:none!important}.receipt-round svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.office .receipt-round.approve{background:#eaf7ee!important;color:#27864d!important;border-color:#cce7d4!important}.office .receipt-round.reject{background:#fff0ee!important;color:#c65a52!important;border-color:#f0d5d1!important}.office .receipt-round.approve:hover{background:#d6efdf!important}.office .receipt-round.reject:hover{background:#fbe0dc!important}
.receipt-grid.view-list{gap:5px}.receipt-grid.view-list .receipt-review-card{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:60px!important;padding:6px 10px!important;border-radius:10px!important}.receipt-grid.view-list .receipt-docs{display:flex!important;align-items:center!important;gap:4px!important;width:44px!important;height:44px!important;min-width:0!important;padding:0!important;background:transparent!important;overflow:auto!important;align-self:center!important;scrollbar-width:none}.receipt-grid.view-list .receipt-docs::-webkit-scrollbar{display:none}.receipt-grid.view-list .receipt-file{min-width:44px!important;width:44px!important;flex:0 0 44px!important;margin:0!important}.receipt-grid.view-list .receipt-preview,.receipt-grid.view-list .receipt-file-tools{display:none!important}.receipt-grid.view-list .receipt-file-token{display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:0!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:3px!important;border:1px solid #dfe7ed!important;border-radius:8px!important;background:#f4f8fb!important;color:#6c8192!important;cursor:grab!important;overflow:hidden;box-shadow:none!important}.receipt-file-token:active{cursor:grabbing!important}.receipt-file-token svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.receipt-file-token span{font-size:8px;font-weight:700;line-height:1}.receipt-file-token img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.receipt-file-token.is-image span{position:absolute;bottom:0;right:0;background:#ffffffed;padding:2px 3px;border-radius:3px 0 0 0}.receipt-grid.view-list .receipt-order{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;min-height:44px!important;padding:0 82px 0 0!important;overflow:visible!important}.receipt-grid.view-list .receipt-info-main,.receipt-grid.view-list .receipt-info-meta{flex-wrap:nowrap!important;gap:8px!important;line-height:19px!important;min-height:19px}.receipt-grid.view-list .receipt-client{font-size:13px!important;line-height:19px!important}.receipt-grid.view-list .receipt-amount{font-size:14px!important;line-height:19px!important}.receipt-grid.view-list .receipt-date{font-size:11px!important;line-height:19px!important;overflow:hidden;text-overflow:ellipsis}.receipt-grid.view-list .receipt-target{font-size:11px!important;line-height:19px!important;min-height:19px!important}.receipt-grid.view-list .receipt-target-icon{width:18px;height:18px}.receipt-grid.view-list .receipt-decisions{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;display:flex!important;flex-wrap:nowrap!important;gap:5px!important;margin:0!important}.receipt-grid.view-list .receipt-feedback{display:none}.receipt-workspace:has(.view-list) .receipt-size{display:none!important}.receipt-no-file{display:flex;width:42px;height:42px;align-items:center;justify-content:center;border:1px dashed #e1e6ea;border-radius:8px;color:#a8b1b8}
@media(max-width:600px){.receipt-grid.view-list .receipt-review-card{grid-template-columns:38px minmax(0,1fr)!important;gap:7px!important;padding:6px 7px!important;min-height:56px!important}.receipt-grid.view-list .receipt-docs{width:38px!important;height:40px!important}.receipt-grid.view-list .receipt-file{width:38px!important;min-width:38px!important;flex-basis:38px!important}.receipt-grid.view-list .receipt-file-token{width:36px!important;min-width:36px!important;height:40px!important;min-height:40px!important}.receipt-grid.view-list .receipt-order{padding-right:65px!important;gap:1px!important;min-height:42px!important}.receipt-grid.view-list .receipt-decisions{gap:4px!important}.office .receipt-grid.view-list .receipt-round{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important}.receipt-grid.view-list .receipt-target [data-receipt-target-label]{display:none!important}.receipt-grid.view-list .receipt-target-icon{width:20px;height:20px}.receipt-grid.view-list .receipt-client{font-size:11px!important}.receipt-grid.view-list .receipt-amount{font-size:12px!important}.receipt-grid.view-list .receipt-date{font-size:10px!important}.receipt-grid.view-list .receipt-info-main{gap:4px!important}.receipt-grid.view-list .receipt-info-meta{gap:4px!important}}

/* Full receipt previews: scale the whole file, never create an inner scroll area. */
.receipt-grid.view-large,.receipt-grid.view-small{grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--receipt-card-width,292px)),1fr))!important;align-items:start!important}
.receipt-grid.view-large .receipt-review-card,.receipt-grid.view-small .receipt-review-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important}
.receipt-grid.view-large .receipt-docs,.receipt-grid.view-small .receipt-docs{width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:8px!important;padding:8px!important;overflow:visible!important;min-width:0!important}
.receipt-grid.view-large .receipt-file,.receipt-grid.view-small .receipt-file{width:100%!important;min-width:0!important;margin:0!important}
.receipt-grid.view-large .receipt-preview,.receipt-grid.view-small .receipt-preview{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;box-sizing:border-box!important;height:var(--receipt-frame-height,282px)!important;max-height:none!important;overflow:hidden!important;touch-action:pan-y!important;background:#fff!important}
.receipt-grid.view-large .receipt-preview-body,.receipt-grid.view-small .receipt-preview-body{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-height:0!important;position:relative!important;overflow:hidden!important}
.receipt-grid.view-large .receipt-preview-body img,.receipt-grid.view-large .receipt-preview-body canvas,.receipt-grid.view-small .receipt-preview-body img,.receipt-grid.view-small .receipt-preview-body canvas{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important;flex-shrink:1!important}
.receipt-preview-body>small{position:absolute;right:5px;bottom:5px;padding:3px 5px;border-radius:5px;background:#ffffffee;font-size:10px}
.receipt-grid.view-large .receipt-order,.receipt-grid.view-small .receipt-order{width:100%!important;box-sizing:border-box!important;padding:10px 12px!important;gap:7px!important;min-width:0!important;flex:0 0 auto!important;overflow:hidden!important;border-top:1px solid #edf0f3}
.receipt-grid.receipt-max:not(.view-list){grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr))!important}
.receipt-grid.receipt-max:not(.view-list) .receipt-preview{height:554px!important}
@media(max-width:600px){.receipt-grid.view-large,.receipt-grid.view-small{grid-template-columns:1fr!important}.receipt-grid.receipt-max:not(.view-list) .receipt-preview{height:554px!important}.receipt-grid.view-large .receipt-order,.receipt-grid.view-small .receipt-order{padding:9px!important}}
/* Compact workbench: consistent rows and contextual actions. */
.jd-context-menu{position:fixed;z-index:10000;min-width:210px;max-width:calc(100vw - 16px);padding:5px;background:#fff;border:1px solid #dde5ed;border-radius:12px;box-shadow:0 12px 36px #17344b26}.jd-context-menu button{display:block;width:100%;text-align:left;background:transparent;color:#253b4b;border:0;border-radius:7px;padding:9px 12px;font-size:13px;min-height:36px}.jd-context-menu button:hover,.jd-context-menu button:focus{background:#edf7ff;outline:0}.jd-request-tools{display:flex;align-items:center;gap:8px;margin:0 0 6px}.jd-request-tools select{width:auto!important;max-width:210px;padding:5px 9px!important;min-height:30px!important}.jd-request-tools button{margin-left:auto;font-size:12px;padding:5px 10px;min-height:30px}.req-history{margin-top:14px}.req-history>summary{cursor:pointer;color:#718095;font-size:12px;padding:7px}.req-feed .req-list{gap:2px!important}.req-feed .req-entry{border-radius:7px!important;border:1px solid #e9edf2!important;box-shadow:none}.req-feed .req-entry:hover{background:#f7fbff}.req-feed .order-line.req-line,.req-feed .order-line.req-line:has(.req-select){grid-template-columns:18px 100px minmax(100px,1fr) minmax(65px,120px) 44px minmax(75px,110px) minmax(85px,145px) 26px!important;min-height:38px!important;padding:3px 8px!important;gap:7px!important;grid-template-areas:none!important}.req-feed .req-line:not(:has(.req-select)):before{content:''}.req-feed .req-open{font-size:12px!important;line-height:1.2}.req-feed .req-open small{font-size:10px!important}.req-feed .order-client,.req-feed .order-amount{font-size:12px!important}.req-feed .req-source,.req-feed .req-items{font-size:10px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.req-feed .req-state .badge{font-size:10px;padding:2px 5px;white-space:nowrap}.req-feed .req-who{display:none}.jd-row-expand{border:0!important;background:transparent!important;color:#8192a3!important;border-radius:50%;width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;font-size:21px!important}.jd-row-expand[aria-expanded=true]{transform:rotate(90deg)}.jd-quick-details{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:9px 14px;font-size:12px;color:#607183}.jd-quick-details p{flex-basis:100%;white-space:pre-wrap;margin:0}.jd-quick-details button{margin-left:auto;padding:5px 9px;font-size:12px}.req-feed .jd-priority-high{border-left:3px solid #f3a744!important}.req-peek .inbox-card{margin:0;padding:10px;box-shadow:none}.req-peek .request-text{max-height:220px;overflow:auto;font-size:12px}.order-entry,.customer-row,.client-row,.product-row,.staff-row{scroll-margin-top:80px}.order-entry:focus-within,.customer-row:focus-within,.product-row:focus-within{outline:1px solid #8ccbf0;outline-offset:-1px}
@media(max-width:760px){.req-feed .order-line.req-line,.req-feed .order-line.req-line:has(.req-select){grid-template-columns:18px 84px minmax(0,1fr) auto 24px!important;grid-template-areas:'check num client amount expand' 'check num status status expand'!important;gap:2px 5px!important;min-height:44px!important}.req-feed .req-select{grid-area:check!important}.req-feed .req-open{grid-area:num!important}.req-feed .order-client{grid-area:client!important}.req-feed .order-amount{grid-area:amount!important}.req-feed .req-state{grid-area:status!important;justify-content:flex-start!important}.req-feed .jd-row-expand{grid-area:expand!important}.req-feed .req-source,.req-feed .req-items{display:none!important}.req-feed .req-line:not(:has(.req-select)):before{grid-area:check}.req-feed #req-bulk-tools{flex-wrap:wrap}.jd-request-tools select{font-size:12px!important}.jd-context-menu button{min-height:42px}}

.office .catalog-row,.office .employee-row,.client-directory-row,.client-request-row,.client-card-order-row{min-height:40px!important;padding-top:5px!important;padding-bottom:5px!important;border-radius:7px}.catalog-row:hover,.employee-row:hover,.client-directory-row:hover,.client-request-row:hover{background:#f6faff}.req-feed [hidden]{display:none!important}

.jd-deadline{font-size:10px;color:#936622;white-space:nowrap}.req-feed .req-state{gap:3px}

/* Responsive request audit 23 October: keep controls inside narrow viewports. */
.req-feed .jd-request-tools{margin-bottom:3px;gap:6px}.req-feed #req-bulk-tools{margin:0;padding:2px 0;gap:6px;min-height:32px}.req-feed .req-group{margin:8px 2px 5px!important}.req-feed .req-history{margin-top:9px}.req-feed .jd-row-expand{width:30px!important;height:30px!important;min-height:30px!important}.jd-context-menu{max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain}#req-bulk-form{min-width:0}#req-bulk-form input,#req-bulk-form select{max-width:100%;box-sizing:border-box}#req-bulk-form [hidden]{display:none!important}
@media(max-width:760px){.req-feed .order-line.req-line,.req-feed .order-line.req-line:has(.req-select){grid-template-columns:18px 80px minmax(0,1fr) auto 30px!important}.req-feed #req-bulk-tools{display:flex;flex-wrap:wrap}.req-feed .req-select-all{font-size:11px!important;white-space:nowrap}.req-feed #req-bulk-tools>.muted{font-size:11px}.req-feed #req-bulk-tools button{min-height:32px;font-size:10px!important;padding:5px 7px!important}.req-feed .req-history summary{min-height:32px;display:flex;align-items:center}.req-feed .jd-request-tools{margin-bottom:2px}.req-feed .jd-quick-details{padding:8px;gap:6px}.req-peek .inbox-card{min-width:0}.req-peek .request-text{white-space:pre-wrap;overflow-wrap:anywhere}.req-peek .inbox-actions{flex-wrap:wrap}}
/* Shared compact selection toolbar and actions. */
.jd-unified-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:4px 0 8px;font-size:12px}.jd-unified-toolbar>div{margin-left:auto;display:flex;gap:4px}.jd-unified-toolbar button{font-size:12px;padding:6px 9px;min-height:32px}.jd-unified-toolbar .jd-select-all{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}.jd-unified-toolbar input,.jd-single-select input{appearance:auto!important;width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;padding:0!important;accent-color:#38a5de}.jd-single-select{display:flex!important;align-items:center;justify-content:center;margin:0!important;width:24px;cursor:pointer}.jd-selected{background:#edf8ff!important;box-shadow:inset 3px 0 #4aabe0!important}.jd-list-more{flex:none;border:0!important;background:transparent!important;color:#667f91!important;border-radius:50%!important;font-size:20px!important;width:30px!important;min-height:30px!important;height:30px!important;padding:0!important}.jd-catalog-entry{display:flex;align-items:center;border-bottom:1px solid #edf0f4;min-width:0;gap:4px}.jd-catalog-entry>.catalog-row{flex:1;min-width:0!important;margin:0;border:0!important;background:transparent!important}.jd-unified-list .client-directory-row{grid-template-columns:24px minmax(130px,1.6fr) minmax(100px,1fr) 74px 100px 95px 30px!important;gap:7px}.jd-unified-list .client-list-head{padding-left:31px;padding-right:37px}.jd-unified-list .order-entry{position:relative;padding-right:34px!important}.jd-unified-list .order-entry>.jd-list-more{position:absolute;right:3px;top:7px}.jd-unified-list .order-entry .order-peek{margin-right:-30px}#jd-list-form{min-width:0}#jd-list-form input,#jd-list-form select{width:100%;max-width:100%;box-sizing:border-box}#jd-list-form .muted{font-size:12px}.jd-list-error{color:#b63333;white-space:pre-wrap}.jd-list-failures{max-height:50vh;overflow:auto;padding-left:20px}.jd-list-failures li{margin-bottom:7px}
@media(max-width:760px){.jd-unified-toolbar{font-size:11px;gap:5px;padding-bottom:5px}.jd-unified-toolbar button{font-size:10px;padding:5px 7px}.jd-unified-toolbar .jd-select-all{font-size:11px}.jd-unified-list .client-directory-row{grid-template-columns:22px minmax(0,1fr) auto 30px!important;grid-template-areas:'check name debt more' 'check assignment counts more'!important;gap:3px 6px!important;padding:5px 6px!important}.jd-unified-list .client-directory-row>.jd-single-select{grid-area:check}.jd-unified-list .client-directory-row>.client-name{grid-area:name;min-width:0}.jd-unified-list .client-directory-row>.client-assignment{grid-area:assignment;font-size:10px}.jd-unified-list .client-directory-row>.client-order-counts{grid-area:counts;font-size:10px}.jd-unified-list .client-directory-row>.client-debt{grid-area:debt;font-size:11px}.jd-unified-list .client-directory-row>.jd-list-more{grid-area:more}.jd-unified-list .client-directory-row>.client-access{display:none}.jd-unified-list .client-directory-row .client-name b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;display:block}.jd-unified-list .client-directory-row .client-name small{font-size:10px}.jd-unified-list .client-list-head{display:none}.jd-catalog-entry{gap:2px}.jd-catalog-entry>.catalog-row{padding:5px!important}.jd-catalog-entry .catalog-name{min-width:0}.jd-catalog-entry .catalog-name b{font-size:12px}.jd-unified-list .order-entry{padding-right:30px!important}.jd-unified-list .order-entry>.jd-list-more{right:1px;top:5px}.jd-unified-list .order-line{min-width:0}.jd-selected-count{white-space:nowrap}}

/* Keep the existing drag grip separate from multi-select. */
.jd-catalog-entry>.drag-handle{position:static!important;inset:auto!important;transform:none!important;flex:0 0 13px!important;width:13px!important;height:26px!important;margin:0!important;align-self:center}.jd-catalog-entry>.jd-single-select{flex:0 0 22px!important;width:22px!important}.jd-catalog-entry>.catalog-row{width:auto!important}.jd-mobile-access-dot{display:none}
@media(max-width:760px){.jd-mobile-access-dot{display:inline-block;width:6px;height:6px;background:#36a56b;border-radius:50%;margin-right:4px;vertical-align:middle}.jd-catalog-entry{gap:1px}.jd-catalog-entry>.catalog-row{padding-left:3px!important}.jd-unified-list .order-entry .order-line{padding-top:5px!important;padding-bottom:5px!important}}

@media(max-width:760px){.jd-unified-list .client-directory-row{grid-template-columns:22px minmax(0,1fr) 70px 30px!important}.jd-unified-list .client-order-counts{display:flex!important;justify-content:flex-end;gap:4px;min-width:0}.jd-unified-list .client-order-counts>*{font-size:9px!important;white-space:nowrap;min-width:0}.jd-unified-list .client-order-counts>b::before{content:'Σ '!important}.jd-unified-list .client-order-counts>.pending-count::before{content:'◷ '!important}.jd-unified-list .client-order-counts>.shipped-count::before{content:'✓ '!important}.jd-unified-list .client-debt{white-space:nowrap;font-variant-numeric:tabular-nums}.jd-unified-list .client-assignment{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

@media(max-width:760px){.order-quick-filters .qf::after{display:none!important}.jd-unified-list .order-entry .order-number{min-width:65px!important;font-size:10px!important}.jd-unified-list .order-entry .order-client{min-width:0!important}}

/* Unified record tools, 23 Oct 2026. */
.jd-unified-toolbar,#req-bulk-tools{display:flex!important;align-items:center;gap:8px;min-height:36px;padding:4px 6px!important;margin:0 0 6px!important;border-bottom:1px solid #e7eaf0;flex-wrap:wrap;position:relative;top:auto!important}
.jd-unified-toolbar label,#req-bulk-tools label{margin:0!important;display:flex;align-items:center;padding:5px;min-width:30px}
.jd-unified-toolbar input[type=checkbox],.req-select input,.jd-single-select input{width:18px;height:18px;accent-color:#4b9fe8}
.jd-unified-toolbar button{min-height:30px;padding:4px 10px;border-radius:9px}
.jd-unified-toolbar [data-list-trash],#req-trash{color:#bb4444;background:#fff2f2}
.jd-unified-toolbar>div{display:flex;gap:6px;margin-left:auto}
.jd-unified-toolbar .jd-selected-count{font-size:12px}
.employee-row>.jd-single-select{position:static;grid-column:auto}.employee-row>.jd-list-more{position:static}
.receipt-grid>.jd-unified-toolbar{grid-column:1/-1;width:100%}.receipt-review-card>.jd-single-select{position:absolute;left:6px;top:6px;z-index:2;background:#fff;border-radius:5px}.receipt-review-card>.jd-list-more{position:absolute;right:6px;top:5px}.receipt-review-card.jd-selected{outline:2px solid #9ac9ef}
.jd-audit-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}.jd-audit-tools input,.jd-audit-tools select{width:100%;min-width:0;margin:0}
.jd-audit-row{border-bottom:1px solid #e8ebf0;padding:7px 5px}.jd-audit-row summary{display:grid;grid-template-columns:140px minmax(100px,1fr) minmax(120px,2fr);gap:8px;cursor:pointer;font-size:12px}.jd-audit-row pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font-size:12px;background:#f7f9fc;padding:10px;border-radius:8px}
.jd-trash-row{display:flex;align-items:center;gap:8px;padding:8px 4px;border-bottom:1px solid #e8ebf0}.jd-trash-row>div{min-width:0;flex:1}.jd-trash-row b,.jd-trash-row small{display:block;overflow:hidden;text-overflow:ellipsis}.jd-trash-row small{font-size:11px;color:#738094}.jd-trash-row button{width:32px;height:32px;padding:0;border-radius:50%}.jd-retention{font-size:12px;margin:6px 0}
@media(max-width:600px){.jd-audit-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.jd-audit-row summary{grid-template-columns:1fr 1fr}.jd-audit-row summary>span{grid-column:1/-1}.jd-unified-toolbar{gap:4px!important}.jd-unified-toolbar button{min-height:34px;padding:4px 8px}.jd-unified-toolbar .jd-selected-count{font-size:11px}.employee-row>.jd-single-select{grid-column:1}.employee-row>.employee-avatar{display:none}.employee-row>.jd-list-more{display:none}}

.jd-bin-icon{width:16px;height:16px;display:block}.client-request-row>.jd-single-select{position:static}.client-request-row>.jd-list-more{display:none}

.receipt-review-card{position:relative;padding-left:32px!important;padding-right:32px!important}.receipt-review-card>.jd-single-select{top:8px;left:5px}.receipt-review-card>.jd-list-more{top:5px;right:3px}
.client-request-row:has(>.jd-single-select){grid-template-columns:24px minmax(0,1fr) auto}.client-request-row:has(>.jd-single-select)>small{grid-column:2}.client-request-row:has(>.jd-single-select)>button.secondary{display:none}

/* Compact staff design system: shared rhythm, header, lists and drawers. */
.compact-office{--compact-border:#e7ebef;--compact-muted:#788390;--compact-ink:#26333f;color:var(--compact-ink)}
.compact-office,.compact-office *{box-sizing:border-box}
.compact-office .office-main{width:100%;max-width:1440px;min-width:0;margin:0 auto;padding:10px 20px 28px!important}
.compact-office .office-header{min-height:52px;padding:6px 20px;gap:16px;box-shadow:none;border-bottom:1px solid var(--compact-border)}
.compact-office .office-header nav{min-width:0;gap:4px}.compact-office .nav-item{min-height:34px;padding:7px 11px;border-radius:8px}
.compact-office .header-tools{margin-left:auto;flex-shrink:0}.compact-office .account-trigger-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-office .page-heading{display:grid!important;grid-template-columns:minmax(72px,1fr) minmax(0,auto) minmax(72px,1fr)!important;align-items:center;min-height:42px!important;margin:0 0 6px!important;padding:0!important;gap:8px}
.compact-office .page-heading h1{position:static!important;transform:none!important;margin:0!important;font-size:19px!important;line-height:1.2;font-weight:650;min-width:0;text-align:center}
.compact-office .page-actions{position:static!important;display:flex!important;align-items:center;gap:6px!important;min-width:0}.compact-office #page-right{justify-content:flex-end}
.compact-office .page-actions>button,.compact-office .compact-more>summary,.compact-office #jd-page-select{display:inline-flex;align-items:center;justify-content:center;width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;margin:0!important;border:1px solid var(--compact-border);border-radius:9px;background:#fff;color:#52616e;box-shadow:none;font-size:20px;cursor:pointer}
.compact-office .page-actions svg{width:18px;height:18px}.compact-office .compact-add{background:#e3f3ff!important;color:#147ac0!important;border-color:#d4eafd!important}
.compact-office #jd-page-select input{margin:0;width:16px;height:16px;accent-color:#168bd0}
.compact-office .compact-replaced{display:none!important}
.compact-office .compact-more{position:relative;margin:0}.compact-office .compact-more>summary{list-style:none}.compact-office .compact-more>summary::-webkit-details-marker{display:none}
.compact-office .compact-more-menu{position:absolute;right:0;top:40px;min-width:210px;max-width:min(300px,calc(100vw - 24px));padding:5px;z-index:90;border:1px solid var(--compact-border);background:#fff;border-radius:10px;box-shadow:0 10px 28px #253c511c;display:grid;gap:2px}
.compact-office .compact-more-menu button{width:100%;height:auto;min-height:34px;text-align:left;background:transparent;color:var(--compact-ink);border:0;box-shadow:none;padding:8px 10px;border-radius:6px;font-size:13px}.compact-office .compact-more-menu button:hover{background:#f1f7fb}
.compact-office #jd-page-options{padding:12px;margin:0 0 8px;border:1px solid var(--compact-border);border-radius:10px;background:#f7fafc;display:grid;gap:10px}
.compact-office [hidden],.compact-office #jd-page-options[hidden],.compact-office .compact-more[hidden]{display:none!important}
.compact-office #jd-page-options>*{margin:0!important;box-shadow:none!important;background:transparent!important;border:0!important;padding:0!important}
.compact-office #jd-page-options input:not([type=checkbox]):not([type=range]),.compact-office #jd-page-options select{min-height:34px!important;height:34px;padding:6px 9px;border-radius:7px;font-size:13px;width:100%;min-width:0}
.compact-office #jd-page-options label{font-size:11px;color:#697887;gap:4px}
.compact-office #jd-page-options .filter-core,.compact-office #jd-page-options .client-filter-grid,.compact-office #jd-page-options .jd-audit-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px}
.compact-office #jd-page-options .order-quick-filters{justify-content:flex-start;min-height:36px}.compact-office #jd-page-options .category-folders{max-height:210px;overflow:auto;display:flex;flex-wrap:wrap;gap:5px}.compact-office .category-folders button{width:auto;min-height:30px;padding:5px 9px;font-size:12px}
.compact-office .jd-unified-toolbar{display:none!important}
.compact-office .jd-unified-toolbar.compact-bulk-active{display:flex!important;min-height:34px!important;padding:3px 8px!important;margin:0 0 3px!important;background:#edf7ff;border:0;border-radius:6px;gap:8px;font-size:12px}
.compact-office .jd-unified-toolbar>.jd-select-all,.compact-office .jd-unified-toolbar>.req-select-all{display:none!important}
.compact-office .jd-unified-toolbar button:disabled{display:none!important}
.compact-office .section-tabs{display:flex;gap:4px;min-height:32px;padding:0!important;margin:0 0 7px!important;border-bottom:1px solid var(--compact-border);overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
.compact-office .section-tabs button,.compact-office .section-tabs a{flex:none;padding:6px 10px!important;min-height:31px!important;font-size:12px!important;line-height:18px;border-radius:6px 6px 0 0;border:0;background:transparent;box-shadow:none;white-space:nowrap;color:#6d7985}
.compact-office .section-tabs .active{color:#147ac0!important;background:#eaf5fc!important;border-bottom:2px solid #309bd4!important}
.compact-office .compact-meta{font-size:11px;color:var(--compact-muted);margin:3px 0 6px!important;min-height:0;padding:0!important}.compact-office .compact-meta:empty{display:none}
.compact-office .panel{box-shadow:none;border:1px solid var(--compact-border);border-radius:9px;padding:12px}
.compact-office .orders-panel{padding:0!important;border:0!important;background:transparent}
.compact-office :is(.order-entry,.client-directory-row,.client-request-row,.employee-row,.jd-catalog-entry,.jd-trash-row,.site-event-card,.pb-row,.sb-row,.pb-card){margin:0!important;border:0!important;border-bottom:1px solid var(--compact-border)!important;border-radius:0!important;box-shadow:none!important;background:#fff;min-height:44px;transition:background .12s}
.compact-office :is(.order-entry,.client-directory-row,.client-request-row,.employee-row,.jd-catalog-entry,.jd-trash-row,.site-event-card,.pb-row,.sb-row,.pb-card):hover{background:#f6fafd!important}
.compact-office :is(.order-entry,.client-directory-row,.client-request-row,.employee-row,.jd-catalog-entry).jd-selected{background:#eaf5ff!important}
.compact-office :is(.order-list,.order-list-like,.client-directory-list,.employee-list,.catalog-list,.site-event-list,.sb-list){gap:0!important;border-radius:9px;overflow:clip}
.compact-office .order-line{min-height:44px!important;padding-top:5px!important;padding-bottom:5px!important;gap:8px;font-size:12px}
.compact-office .order-number,.compact-office .order-client,.compact-office .order-amount{font-size:12px!important}.compact-office .order-number{font-weight:600}.compact-office .order-client{color:#40505e}
.compact-office .client-directory-row,.compact-office .employee-row{padding-top:5px!important;padding-bottom:5px!important;min-height:48px;font-size:12px}
.compact-office .client-name,.compact-office .employee-main{padding-top:0!important;padding-bottom:0!important;min-height:30px!important;font-size:12px!important}
.compact-office .client-name small,.compact-office .employee-main small,.compact-office .client-assignment small{font-size:10px;margin-top:2px}
.compact-office .employee-avatar{width:26px;height:26px;font-size:10px}.compact-office .employee-open{display:none}
.compact-office .jd-catalog-entry{min-height:40px;padding:2px 4px!important}.compact-office .catalog-row{min-height:36px!important;padding:5px 4px!important;border:0!important;border-radius:0;background:transparent;font-size:12px!important}
.compact-office .catalog-name b{font-weight:500;font-size:12px}.compact-office .catalog-head,.compact-office .client-list-head{font-size:10px!important;padding-top:4px!important;padding-bottom:4px!important;color:#7b8790}
.compact-office .req-group,.compact-office .req-history>summary{font-size:11px!important;font-weight:500;margin:5px 0!important;padding:5px 8px;color:#778590}
.compact-office .req-line{min-height:48px!important}.compact-office .req-open small{font-size:10px}.compact-office .req-state,.compact-office .req-source{font-size:10px!important}
.compact-office .jd-list-more{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:6px!important}
.compact-office .site-event-card{padding:8px!important;border-left:3px solid transparent!important}.compact-office .site-event-card.severity-error{border-left-color:#d96464!important}.compact-office .site-event-card.severity-warning{border-left-color:#d7ac49!important}.compact-office .site-event-card.severity-info{border-left-color:#64a9d7!important}
.compact-office .event-copy p{margin:3px 0;font-size:12px}.compact-office .event-heading{font-size:12px}.compact-office .jd-audit-row{margin:0;border-radius:0;padding:7px 9px;font-size:12px;background:#fff;border-bottom:1px solid var(--compact-border)}
.compact-office .jd-trash-row{padding:7px 10px}.compact-office .jd-trash-row b{font-size:12px}.compact-office .jd-trash-row small{font-size:10px}
.compact-office .receipt-grid.view-list{gap:0!important}.compact-office .receipt-grid.view-list .receipt-review-card{border:0;border-bottom:1px solid var(--compact-border);border-radius:0;margin:0;box-shadow:none}
.compact-office .receipt-review-card{box-shadow:none;border-color:var(--compact-border);border-radius:9px}
.compact-office .integration-card-head h2,.compact-office .tg-card h2{font-size:15px!important}.compact-office .tg-card{padding:12px!important}.compact-office .integration-actions{gap:6px}.compact-office .integration-actions button{min-height:32px;font-size:12px;padding:6px 9px}
.compact-office .pb-source,.compact-office .pb-legend{font-size:11px}.compact-office .pb-row{padding-top:5px;padding-bottom:5px}.compact-office .pb-card{padding:7px}.compact-office .pb-price{min-height:30px;padding:4px 7px}
@media(max-width:700px){
 .compact-office .office-main{padding:7px 9px 20px!important}.compact-office .office-header{padding:5px 9px!important;gap:5px!important;flex-wrap:wrap!important}
 .compact-office .office-header .brand{font-size:17px}.compact-office .header-tools{gap:4px}.compact-office .office-header nav{order:3;flex-basis:100%;justify-content:space-between;width:100%;gap:2px}.compact-office .nav-item{flex:1;min-height:32px;padding:5px 7px;font-size:12px}
 .compact-office .page-heading{min-height:38px!important;grid-template-columns:minmax(70px,1fr) minmax(0,auto) minmax(70px,1fr)!important;gap:4px}.compact-office .page-heading h1{font-size:16px!important;overflow-wrap:anywhere}
 .compact-office .page-actions{gap:4px!important}.compact-office .page-actions>button,.compact-office .compact-more>summary,.compact-office #jd-page-select{width:32px!important;height:32px!important;min-height:32px!important;padding:6px!important}
 .compact-office .account-trigger-name{display:none}.compact-office .section-tabs button,.compact-office .section-tabs a{font-size:11px!important;padding:5px 8px!important}
 .compact-office #jd-page-options{padding:9px}.compact-office #jd-page-options .filter-core,.compact-office #jd-page-options .client-filter-grid,.compact-office #jd-page-options .jd-audit-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-office #jd-page-options label:first-child{grid-column:1/-1}
 .compact-office .order-line{min-height:52px!important;gap:4px}.compact-office .order-amount{font-size:12px!important}.compact-office .order-client{font-size:11px!important}
 .compact-office .client-directory-row{min-height:56px}.compact-office .employee-row{min-height:45px}.compact-office .client-list-head{display:none}.compact-office .catalog-row{min-height:43px!important}.compact-office .catalog-name b{font-size:11px}
 .compact-office .jd-unified-toolbar.compact-bulk-active{flex-wrap:wrap}.compact-office .jd-unified-toolbar button{min-height:32px}.compact-office .pb-tools{flex-wrap:wrap}.compact-office .jd-audit-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .compact-office .site-event-card{gap:7px}.compact-office .event-actions button{font-size:11px;padding:5px}.compact-office .receipt-size{min-width:0}
}
.compact-office #jd-page-more{padding:0!important;border:0!important;background:transparent!important;min-height:34px;height:34px}
.compact-office .req-feed{gap:5px!important}
.compact-office #req-bulk-tools.jd-unified-toolbar{display:none!important}
.compact-office #req-bulk-tools.jd-unified-toolbar.compact-bulk-active{display:flex!important;margin:0!important;padding:3px 8px!important}
.compact-office .req-feed>.req-group{margin:0!important}
.compact-office .req-history{padding:0!important;margin:0!important;border:0!important}
.compact-office .req-history>summary{padding:7px 8px!important;margin:0!important}
.compact-office .jd-unified-toolbar>.jd-selected-count:empty{display:none}
.compact-office .office-header{height:auto!important;width:100%;max-width:100%}
.compact-office #jd-page-filter.active{background:#e3f3ff!important;color:#147ac0!important;border-color:#d4eafd!important}
.compact-office .page-actions{height:auto!important}
@media(max-width:700px){.compact-office .office-header{min-height:82px!important}.compact-office .office-header nav{height:32px!important}.compact-office .office-profile{max-width:100%}}
.compact-office #jd-page-filter{background:#fff!important;color:#52616e!important;border:1px solid var(--compact-border)!important;box-shadow:none!important}
.compact-office #jd-page-filter.active{background:#e3f3ff!important;color:#147ac0!important}
.compact-office #req-bulk-tools>label{display:none!important}
.compact-office .employee-row.draggable-row{padding-left:22px!important}.compact-office .employee-row>.drag-handle{left:3px!important;width:12px!important}
.compact-office .tg-page,.compact-office .standalone-settings,.compact-office #settings-body,.compact-office .twocol{gap:9px!important}
.compact-office .tg-card details,.compact-office .integration-card details{padding:6px 0!important;margin:4px 0!important;border:0}.compact-office .tg-card details>summary{padding:4px 0!important;min-height:28px;font-size:12px}
.compact-office .tg-health{margin:0 0 8px!important;gap:5px!important}.compact-office .tg-chip{font-size:11px!important;padding:4px 7px!important;min-height:26px!important}
.compact-office .tg-hint{font-size:11px;line-height:1.4;margin:6px 0!important}.compact-office #bot-health:empty,.compact-office #site-tabs:empty,.compact-office .sb-tools:empty{display:none!important}
.compact-office .integration-card-head{margin-bottom:7px!important}.compact-office .tg-card>.integration-actions{margin:6px 0!important}
.compact-office .receipt-grid .receipt-review-card{padding-left:32px!important;padding-right:32px!important}
.compact-office .receipt-grid.view-list .receipt-review-card{padding:6px 5px 6px 32px!important;grid-template-columns:32px minmax(0,1fr)!important;gap:6px!important;min-height:58px}
.compact-office .receipt-grid.view-list .receipt-review-card>.jd-list-more{display:none!important}
.compact-office .receipt-grid.view-list .receipt-docs{padding:0!important;min-width:0;width:32px}
.compact-office .receipt-grid.view-list .receipt-file-token{max-width:32px}
.compact-office .receipt-grid.view-list .receipt-review-card>.jd-single-select{top:19px!important;left:3px!important}
@media(max-width:700px){.compact-office .order-line:not(.req-line){padding-top:4px!important;padding-bottom:4px!important;row-gap:2px!important}.compact-office .order-line:not(.req-line) .order-number{min-height:22px!important;padding:0!important}.compact-office .order-line:not(.req-line) .status-dot{width:24px!important;height:24px!important;min-height:24px!important;padding:4px!important}}
.compact-office #content .receipt-grid.view-list{gap:0!important;border-radius:9px;overflow:clip}
.compact-office #content .receipt-grid.view-list .receipt-review-card{border-radius:0!important;margin:0!important;border:0!important;border-bottom:1px solid var(--compact-border)!important;box-shadow:none!important}
.compact-office .pb-name,.compact-office .pb-card-main b{font-size:12px!important;font-weight:500!important}.compact-office .pb-name small,.compact-office .pb-card-main small{font-size:10px!important}
.compact-office .pb-colbar>label{display:none!important}.compact-office .pb-colbar{padding:4px!important;margin:0!important;background:#edf7ff}.compact-office .pb-col header{padding:0 0 6px!important}.compact-office .pb-col header h2{font-size:15px!important}
.compact-office .log-row{margin:0!important;border-radius:0;border-bottom:1px solid var(--compact-border);padding:6px 8px;font-size:12px}
.compact-office #settings-body .customer-row{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin:0!important;padding:7px 8px!important;border-radius:0!important;border:0!important;border-bottom:1px solid var(--compact-border)!important;box-shadow:none;font-size:12px}
.compact-office #settings-body .customer-row>div{min-width:0;flex:1}.compact-office #settings-body .customer-row small{display:block;font-size:10px;margin:3px 0 0}.compact-office #settings-body .customer-row>button{min-height:30px;padding:5px 8px;font-size:11px;flex:none}
.compact-office #settings-body h2{font-size:15px!important;margin:0 0 8px}.compact-office #settings-body h3{font-size:13px!important;margin:10px 0 5px}
.compact-office #settings-body .panel>p:has(>strong){margin:0!important;padding:7px 0;border-bottom:1px solid var(--compact-border);font-size:12px;line-height:1.5}.compact-office #settings-body .panel>p:has(>strong) small{display:block;font-size:10px;color:#7b8790}
.compact-office .compact-explanation{padding:5px 0;margin:4px 0;border:0;background:transparent}.compact-office .compact-explanation>summary{font-size:11px;color:#6c7b89;padding:3px 0}.compact-office .compact-explanation p{font-size:12px;margin:4px 0}
.compact-office .standalone-settings{max-width:none!important;width:100%;margin:0!important;padding:0!important}
.compact-office .empty,.compact-office .empty-state,.compact-office .panel:has(>.empty){min-height:0!important;padding:18px 12px!important;font-size:12px}
.compact-office #settings-body>.panel:empty{display:none}
.compact-office #jd-page-filter[data-filter-count]:after{content:attr(data-filter-count);position:absolute;top:-3px;right:-3px;border-radius:8px;background:#168bd0;color:#fff;font-size:9px;min-width:13px;line-height:13px;text-align:center}
.compact-office #jd-page-filter{position:relative}
.compact-office #jd-page-options .float-field{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;position:static!important;margin:0!important;padding:0!important}
.compact-office #jd-page-options .float-caption{position:static!important;transform:none!important;inset:auto!important;opacity:1!important;padding:0!important;margin:0!important;background:transparent!important;line-height:15px;font-size:11px!important;color:#71808c!important}
.compact-office #jd-page-options .float-field input,.compact-office #jd-page-options .float-field select{padding:6px 9px!important;height:34px!important;min-height:34px!important}

/* Five compact primary tabs, with separate receipt count. */
@media(max-width:700px){.compact-office .office-header nav{gap:2px!important;justify-content:space-between}.compact-office .office-header nav .nav-item{padding:5px 6px!important;gap:3px!important;white-space:nowrap;font-size:12px!important}.compact-office .office-header nav .nav-badge{font-size:9px;min-width:14px;padding:1px 3px}}

/* Selection is an explicit mode; form and filter checkboxes remain unchanged. */
.compact-office:not(.jd-selection-mode) :is(.jd-single-select,.req-select,.bulk-check,.pb-card [data-pick],.bulk-head){display:none!important}
.compact-office:not(.jd-selection-mode) .jd-unified-toolbar{display:none!important}
.compact-office #jd-page-select svg{width:19px;height:19px}
.compact-office #jd-page-select.active{color:#147ac0!important;background:#e3f3ff!important;border-color:#9dceee!important}
.compact-office #jd-page-select-all{display:inline-flex;align-items:center;justify-content:center;margin:0;width:30px;height:32px;cursor:pointer}
.compact-office #jd-page-select-all[hidden]{display:none!important}
.compact-office #jd-page-select-all input{appearance:auto;width:17px;height:17px;min-height:17px;margin:0;padding:0;accent-color:#168bd0}
.compact-office:not(.jd-selection-mode) .order-entry.selectable{padding-left:0!important}
.compact-office:not(.jd-selection-mode) .jd-unified-list .client-directory-row{grid-template-columns:minmax(130px,1.6fr) minmax(100px,1fr) 74px 100px 95px 30px!important}
.compact-office:not(.jd-selection-mode) .client-list-head{padding-left:7px!important}
.compact-office:not(.jd-selection-mode) .client-request-row:has(>.jd-single-select){grid-template-columns:minmax(0,1fr) auto!important}
.compact-office:not(.jd-selection-mode) .client-request-row:has(>.jd-single-select)>small{grid-column:1!important}
.compact-office:not(.jd-selection-mode) .req-feed .order-line.req-line{grid-template-columns:100px minmax(100px,1fr) minmax(65px,120px) 44px minmax(75px,110px) minmax(85px,145px) 26px!important}
.compact-office:not(.jd-selection-mode) .req-feed .req-line:before{display:none!important}
.compact-office:not(.jd-selection-mode) #content .receipt-grid .receipt-review-card{padding-left:7px!important}
@media(max-width:760px){
 .compact-office:not(.jd-selection-mode) .jd-unified-list .client-directory-row{grid-template-columns:minmax(0,1fr) 70px 30px!important;grid-template-areas:'name debt more' 'assignment counts more'!important}
 .compact-office:not(.jd-selection-mode) .req-feed .order-line.req-line{grid-template-columns:80px minmax(0,1fr) auto 30px!important;grid-template-areas:'num client amount expand' 'num status status expand'!important}
}

/* Receipt list: fixed file column matches its contents at every screen width. */
.compact-office #content .receipt-grid.view-list .receipt-review-card{grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important;box-sizing:border-box!important;min-width:0!important}
.compact-office #content .receipt-grid.view-list .receipt-docs{position:static!important;width:44px!important;height:44px!important;min-width:0!important;max-width:44px!important;overflow:auto!important;box-sizing:border-box!important}
.compact-office #content .receipt-grid.view-list .receipt-file{width:44px!important;min-width:44px!important;max-width:44px!important;flex:0 0 44px!important;box-sizing:border-box!important}
.compact-office #content .receipt-grid.view-list .receipt-file-token{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;box-sizing:border-box!important}
.compact-office #content .receipt-grid.view-list .receipt-order{min-width:0!important;width:100%!important;box-sizing:border-box!important}
.compact-office #content .receipt-grid.view-list .receipt-info-main,.compact-office #content .receipt-grid.view-list .receipt-info-meta{min-width:0!important}
@media(max-width:600px){.compact-office #content .receipt-grid.view-list .receipt-review-card{gap:7px!important}.compact-office #content .receipt-grid.view-list .receipt-order{padding-right:65px!important}.compact-office #content .receipt-grid.view-list .receipt-amount{font-size:12px!important}.compact-office #content .receipt-grid.view-list .receipt-client{overflow:hidden!important;text-overflow:ellipsis!important}}

/* Saby action before the receipt photo; identical hit areas for approval actions. */
.compact-office #content .receipt-grid.view-list .receipt-review-card{grid-template-columns:32px 44px minmax(0,1fr)!important}
.compact-office #content .receipt-grid .receipt-round{width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:6px!important;box-sizing:border-box!important;flex:0 0 32px!important}
.receipt-saby-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;border-radius:50%!important}
.receipt-saby-action [data-receipt-target-label]{display:none!important}
.receipt-saby-action .receipt-target-icon,.receipt-saby-action svg{width:20px!important;height:20px!important;min-width:20px!important}
.receipt-grid.view-small .receipt-review-card,.receipt-grid.view-large .receipt-review-card{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:8px!important;align-items:start!important}
.receipt-grid.view-small .receipt-order,.receipt-grid.view-large .receipt-order{grid-column:1/-1}

/* Compact common icon language and order sorting. */
.office .page-actions svg,.office .jd-icon-control svg,#detail .jd-icon-control svg{width:18px;height:18px;flex:none;stroke-width:1.7;vertical-align:middle}
.office .page-actions :is(button,summary){border-radius:10px;box-sizing:border-box}
.office .page-actions>button,.office #jd-order-sort>summary,.office #jd-page-more>summary{width:34px;min-width:34px;height:34px;padding:7px;display:inline-flex;align-items:center;justify-content:center}
.office .jd-icon-control{display:inline-flex;align-items:center;justify-content:center;gap:0}
.office .page-actions{gap:5px}
.office .jd-sort{position:relative;flex:none}
.office .jd-sort>summary{list-style:none;cursor:pointer;background:#f5f6f8;color:#526074;border:1px solid #e4e8ee;transition:background .15s,color .15s}
.office .jd-sort>summary::-webkit-details-marker{display:none}
.office .jd-sort[open]>summary{color:#1687d9;background:#edf6fe}
.jd-sort-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:120;width:244px;max-width:calc(100vw - 24px);padding:7px;border:1px solid #e6eaf0;border-radius:14px;background:#fff;box-shadow:0 12px 40px #172b4d26;animation:jd-sort-in .15s ease-out}
.jd-sort-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 5px 6px;color:#6b7482;font-size:12px}
.jd-sort-directions{display:flex;gap:3px}
.office .jd-sort-directions button{width:32px;min-width:32px;height:32px;padding:6px;background:#f3f5f7;color:#657080;border:0}
.jd-sort-directions [data-sort-direction=asc] svg{transform:rotate(180deg)}
.office .jd-sort-fields button{display:flex;align-items:center;gap:9px;width:100%;min-height:34px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:#334155;text-align:left;font-size:13px;white-space:nowrap}
.office .jd-sort-fields button:hover{background:#f4f7fa}
.jd-sort-selected{margin-left:auto;visibility:hidden;display:flex}
.jd-sort-fields [aria-pressed=true] .jd-sort-selected{visibility:visible}
.office .jd-sort [aria-pressed=true]{background:#eaf4ff;color:#0878c4}
.jd-sort :is(button,summary):focus-visible{outline:2px solid #1687d9;outline-offset:2px}
@keyframes jd-sort-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.office .page-actions{gap:3px}.office #jd-order-sort>summary,.office .page-actions>button,.office #jd-page-more>summary{width:32px;min-width:32px;height:34px;padding:6px}.office .jd-sort-fields button{min-height:40px}.office .jd-sort-directions button{width:36px;min-width:36px;height:36px}.jd-sort-menu{width:232px}}
@media(prefers-reduced-motion:reduce){.jd-sort-menu{animation:none}}

.office #jd-order-sort{padding:0;border:0;margin:0;background:transparent;min-height:0;overflow:visible}.office #jd-order-sort>summary{margin:0;min-height:34px}.office #jd-order-sort>summary:after{display:none}@media(max-width:600px){.office #jd-order-sort>summary{height:32px;min-height:32px}}

/* Provider-confirmed accounting posting, distinct from a written draft. */
.office .status-dot.saby-dot.darkblue,#detail .saby-order-link.saby-darkblue,#detail .oc-icon.saby-darkblue,.receipt-target-icon.darkblue{color:#164b91!important;background:#e4ecf8!important;box-shadow:0 0 0 1px #b6c9e6}
#detail .saby-darkblue svg path,.saby-dot.darkblue svg path{fill:#164b91!important}

/* Price client folders: one compact scrollable strip, list below the chosen folder. */
.compact-office .price-folder-header{display:flex;align-items:flex-end;gap:10px;margin:0 0 8px;padding:0;border-bottom:1px solid #dce2e9;min-width:0}
.compact-office .price-folder-tabs{display:flex;align-items:flex-end;gap:4px;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:3px 2px 0}
.compact-office .price-folder-tabs .price-folder-tab{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:34px;padding:6px 12px;margin:0;border:1px solid #dce2e9;border-bottom:0;border-radius:10px 10px 0 0;background:#eef1f5;color:#657180;font-size:12px;line-height:20px;white-space:nowrap;box-shadow:none;transition:background .16s,color .16s}
.compact-office .price-folder-tabs .price-folder-tab.active{background:#e8f3ff;color:#147ac0;border-color:#aacff3;box-shadow:inset 0 -2px #268bd8}
.compact-office .price-folder-tab svg{width:15px;height:15px;flex-shrink:0}
.compact-office .price-folder-tab:focus-visible{outline:2px solid #268bd8;outline-offset:-3px}
.compact-office .price-folder-count{flex:none;padding:0 2px 8px;font-size:11px;color:#778391;white-space:nowrap}
@media(max-width:600px){.compact-office .price-folder-header{gap:4px}.compact-office .price-folder-tabs .price-folder-tab{min-height:36px;padding:6px 9px}.compact-office .price-folder-count{display:none}}

/* Responsive BK: no absolute toolbar collisions, touch-sized actions, bounded dialogs. */
.mobile-section-menu{display:none}
@media(max-width:760px){
 html.apple-office .office .order-list .order-line{grid-template-columns:24px minmax(0,1fr) auto 32px!important;grid-template-rows:auto auto!important;gap:4px 6px!important}
 html.apple-office .office .order-list .expand-order{grid-column:1!important;grid-row:1/3!important}
 html.apple-office .office .order-list .order-identity{grid-column:2!important;grid-row:1!important}
 html.apple-office .office .order-list .order-client{grid-column:2!important;grid-row:2!important;white-space:normal!important;overflow-wrap:anywhere}
 html.apple-office .office .order-list .order-amount{grid-column:3!important;grid-row:1!important;white-space:nowrap}
 html.apple-office .office .order-list .order-indicators{grid-column:3!important;grid-row:2!important;display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:4px;min-width:0}
 html.apple-office .office .order-list .jd-row-edit{grid-column:4!important;grid-row:1/3!important;position:static!important;width:32px!important;min-width:32px!important;height:40px!important}
}
@media(max-width:760px){
 .office,.office-main,#content{min-width:0;max-width:100%;box-sizing:border-box}
 .office .office-header{min-height:52px!important;height:auto!important;padding:6px 10px!important;display:flex!important;flex-wrap:nowrap!important;gap:8px!important}
 .office .office-header>nav{display:none!important}
 .office .header-tools{margin-left:auto;min-width:0;display:flex;align-items:center;gap:6px}
 .office .account-trigger-name{display:none!important}
 .office .account-trigger,.office .header-tools>button{min-width:42px;min-height:42px}
 .office .account-menu{position:fixed!important;top:58px!important;right:8px!important;left:auto!important;width:min(320px,calc(100vw - 16px))!important;max-height:calc(100dvh - 74px)!important;overflow-y:auto;overscroll-behavior:contain;z-index:1000}
 .office .mobile-section-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px}
 .office .mobile-section-menu button{min-height:44px;text-align:left;white-space:normal;padding:9px;border-radius:10px}
 .office .mobile-section-menu .active{background:#e5f2ff;color:#0874cb;font-weight:650}
 .office-main .sub-tabs{display:none!important}
 .office .page-heading{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:'title title' 'left right';gap:5px 8px!important;min-height:0!important;padding:2px 0 6px!important}
 .office .page-heading h1{grid-area:title;position:static!important;display:block!important;transform:none!important;text-align:center;margin:0!important;font-size:18px!important;line-height:1.3}
 .office #page-left{grid-area:left}.office #page-right{grid-area:right;justify-content:flex-end}
 .office .page-actions{position:static!important;min-width:0!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center}
 .office .page-actions>button,.office .page-actions>details>summary{position:static!important;width:38px!important;min-width:38px!important;min-height:38px!important;height:38px!important;padding:8px!important;flex-shrink:0;box-sizing:border-box}
 .office .page-actions select{max-width:100%;min-width:0}
 .office .table-wrap,.office .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .office .toolbar,.office .inline-actions,.office .receipt-toolbar,.office .payment-actions{flex-wrap:wrap;gap:6px;min-width:0}
 .office .twocol{grid-template-columns:minmax(0,1fr)!important}
 .office .order-client,.office .catalog-name,.office .client-name{min-width:0;overflow-wrap:anywhere}
 .office .order-icons,.office .order-statuses{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
 #detail{box-sizing:border-box;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;padding:12px!important;overflow:auto;overscroll-behavior:contain}
 #detail .oc-head,#detail .oc-head-actions,#detail .inline-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 #detail h2{min-width:0;overflow-wrap:anywhere;font-size:19px}
 #detail input,#detail select,#detail textarea{box-sizing:border-box;max-width:100%;min-width:0;font-size:16px}
 #detail .twocol,#detail .oc-overview-grid{grid-template-columns:minmax(0,1fr)!important}
 #detail .oc-info{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important}
 #detail .oc-info dd{min-width:0;overflow-wrap:anywhere;margin:0}
 #detail .oc-icon{min-width:40px;min-height:40px;flex-shrink:0}
 .office .price-folder-tabs{min-width:0;max-width:100%;overflow-x:auto;flex-wrap:nowrap}
}
@media(max-width:380px){.office .page-actions{gap:3px!important}.office .page-actions>button,.office .page-actions>details>summary{width:36px!important;min-width:36px!important;padding:7px!important}.office .office-main{padding-left:6px!important;padding-right:6px!important}}

/* Request categories: a single compact horizontal strip, including narrow screens. */
.jd-request-tabs{display:flex;align-items:center;gap:4px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 7px;margin:0 0 7px;scrollbar-width:thin}
.office .jd-request-tabs .jd-request-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#667085;font-size:12px;font-weight:500;white-space:nowrap;box-shadow:none;transition:background .16s,color .16s}
.office .jd-request-tabs .jd-request-tab.active{background:#e8f2ff;border-color:#cee2fa;color:#1768b5}
.jd-request-tab small{display:inline-flex;justify-content:center;min-width:17px;padding:1px 4px;border-radius:6px;background:#edf0f4;color:#667085;font-size:10px;font-variant-numeric:tabular-nums}
.jd-request-tab.active small{background:#d4e7ff;color:#1768b5}.jd-request-tab:focus-visible{outline:2px solid #79b4fa;outline-offset:-2px}
@media(max-width:600px){.office .jd-request-tabs .jd-request-tab{font-size:11px;min-height:34px;padding:6px 8px}.jd-request-tabs{gap:2px;margin-bottom:5px}}

/* Range selection, same visual treatment for table and card rows. */
.jd-drag-selecting,.jd-drag-selecting *{user-select:none!important;cursor:default!important}.jd-drag-selected{background:#e5eefc!important;box-shadow:inset 3px 0 #5283c4}.jd-drag-selected>td{background:#e5eefc!important}

.oc-status-change{display:inline-flex!important;align-items:center;gap:6px;cursor:pointer;min-height:28px!important;padding:4px 9px!important;white-space:normal;text-align:center;font:inherit!important}.oc-status-picker h2{font-size:18px}.oc-status-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.oc-status-options button{min-height:38px;width:100%;margin:0;white-space:normal;line-height:1.3}.oc-status-error{color:#a12b35;font-size:12px}.oc-status-picker{max-width:460px;margin:auto}

.jd-order-status-menu .jd-status-choices{display:grid;gap:2px}.jd-status-choices>button{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:32px;padding:2px 6px;border:0;background:transparent;color:inherit;text-align:left}.jd-status-choices>button:disabled{opacity:.48}.jd-status-choices .status-dot svg{width:16px;height:16px}.jd-status-choices small{padding:4px 6px}.jd-status-choices p:empty{display:none}
