/* Exchange workspace: item-level values, clear totals, quiet optional notes. */
.ux-exchange-dialog{width:min(1120px,calc(100vw - 40px));max-width:1120px;padding:28px;border-radius:20px}
dialog.ux-exchange-entry{width:min(1200px,calc(100vw - 40px));max-width:1200px;padding:28px}
.ux-lead{color:#647c83;line-height:1.9;margin:0 0 20px}
.ux-ex-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.ux-exchange-list{display:grid;gap:12px;margin:16px 0}
.ux-exchange-item{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(140px,1fr) minmax(180px,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid #dce7e9;border-radius:14px;background:#fff;min-width:0}
.ux-ex-identity{display:flex;align-items:center;gap:12px;min-width:0}
.ux-row-number{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:#edf5f4;color:#48716d;font-size:13px}
.ux-exchange-item small{display:block;font-size:12px;color:#617982;margin-bottom:6px}
.ux-ex-identity strong{display:block;font-size:15px;overflow-wrap:anywhere;margin-bottom:7px}
.ux-ex-identity small{margin:0}.ux-ex-identity bdi{font-variant-numeric:tabular-nums;color:#32535d}
.ux-ex-weight{font-size:14px}.ux-ex-value strong{font-size:21px;font-variant-numeric:tabular-nums;color:#153f48}
.ux-ex-actions{display:flex;gap:8px}.ux-icon{display:inline-grid!important;place-items:center!important;padding:10px!important;width:44px;height:44px;min-height:44px;flex-shrink:0}.ux-icon svg{width:20px;height:20px}.ux-remove{color:#a13942!important;background:#fff5f5!important;border:1px solid #f0d7da!important}.ux-remove:hover{background:#ffe6e9!important}
.ux-ex-total{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ecf7f3;border:1px solid #c5e2d8;border-radius:12px;padding:18px 22px;color:#225e50;margin:18px 0}
.ux-ex-total>strong{font-size:24px;font-variant-numeric:tabular-nums}.ux-ex-total small{font-size:12px;font-weight:400;margin-inline-start:8px}
.ux-empty{padding:40px 20px;text-align:center;background:#f6f9fa;border:1px dashed #c8dadd;border-radius:14px;color:#657e86}
.ux-notes{grid-column:1/-1;min-width:0;border-top:1px solid #e3ebed;margin-top:4px;padding-top:10px;order:10}.ux-notes summary{cursor:pointer;color:#4e6b75;font-size:13px;padding:8px 0}.ux-notes summary small{display:inline;font-size:11px;margin-inline-start:8px;color:#75888d}.ux-notes label{margin-top:10px}.ux-notes p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.ux-notes textarea{width:100%;min-height:80px}
.ux-group-fields{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;margin-bottom:22px}.ux-group-fields .check{flex-direction:row}
.ux-exchange-entry [data-ex-item]{border:1px solid #dae6e9;border-radius:14px;background:#f8fbfc;padding:18px;margin:14px 0}
.ux-exchange-entry .item-form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) 44px;align-items:end;gap:16px;border:0;padding:0;margin:0;min-width:0}
.ux-exchange-entry .item-form legend{font-size:12px;color:#6b848d;margin-bottom:12px}
.ux-exchange-entry .category-label{grid-column:1/5;grid-row:1;margin:0!important;max-width:none!important;width:100%!important}
.ux-exchange-entry [data-ex-form-remove]{grid-column:5;grid-row:1}
.ux-exchange-entry .item-measures,.ux-exchange-entry .extras,.ux-exchange-entry .ux-ang:not([hidden]){display:contents!important}
.ux-exchange-entry .item-form>label,.ux-exchange-entry .item-form .item-measures>label,.ux-exchange-entry .item-form .extras>label{width:auto!important;margin:0!important;min-width:0!important;max-width:none!important}
.ux-exchange-entry .ux-value-field{grid-column:4/6}.ux-exchange-entry .ux-value-field input{font-size:20px;font-weight:700;color:#174c50;background:#fff;border-color:#a8c8c3}
.ux-exchange-entry .item-form input,.ux-exchange-entry .item-form select{width:100%;height:48px;box-sizing:border-box;min-width:0}
.ux-exchange-entry [hidden],.ux-exchange-entry .hidden,.ux-exchange-entry .item-name-label{display:none!important}
.ux-ex-entry-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding:16px 0}.ux-ex-entry-footer strong{display:block;color:#24594c;font-size:20px;margin-top:6px}
.pf-exchange-section .ux-exchange-list,.pf-exchange-section .ux-ex-total{margin-inline:20px}.ux-saved-exchange{margin-top:20px}
/* Shared responsive and keyboard improvements. Tables scroll inside their own container. */
:focus-visible{outline:3px solid #d29336;outline-offset:3px}button,a,input,select,textarea{touch-action:manipulation}button[disabled]{cursor:not-allowed}
#content,.entry-workspace,.basket-workspace,.sw-page,.card,.responsive-table{min-width:0}
.responsive-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.ux-exchange-dialog [hidden]{display:none!important}
@media(max-width:900px){.ux-exchange-item{grid-template-columns:1fr 1fr;gap:16px}.ux-ex-actions{justify-self:end}.ux-ex-value{grid-column:1;grid-row:2}.ux-ex-weight{text-align:end}.ux-exchange-entry .item-form{grid-template-columns:repeat(2,minmax(0,1fr)) 44px}.ux-exchange-entry .category-label{grid-column:1/3}.ux-exchange-entry [data-ex-form-remove]{grid-column:3}.ux-exchange-entry .ux-value-field{grid-column:1/-1}.ux-exchange-entry .item-form .item-measures>label,.ux-exchange-entry .item-form .extras>label{grid-column:auto}.ux-exchange-entry .ux-ang>label{grid-column:1/-1}}
@media(max-width:600px){
 .ux-exchange-dialog,dialog.ux-exchange-entry{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:16px;border-radius:16px;max-height:calc(100dvh - 16px);box-sizing:border-box}
 .ux-exchange-dialog .dialog-head h2,.ux-exchange-entry .dialog-head h2{font-size:18px;line-height:1.7}.ux-lead{font-size:13px}
 .ux-ex-toolbar button{flex:1;padding:12px 8px;font-size:13px}.ux-exchange-item{padding:14px;gap:12px}.ux-row-number{display:none}.ux-ex-identity strong{font-size:14px}.ux-ex-weight{font-size:12px}.ux-ex-value strong{font-size:19px}.ux-ex-total{padding:16px;align-items:start}.ux-ex-total>span{font-size:13px}.ux-ex-total>span small{display:block;margin:6px 0 0}.ux-ex-total>strong{font-size:20px;white-space:nowrap}.ux-ex-total>strong small{margin:0;font-size:11px}
 .ux-exchange-entry [data-ex-item]{padding:14px}.ux-group-fields{grid-template-columns:1fr;gap:12px}.ux-ex-entry-footer{align-items:end}
 .pf-exchange-section .ux-exchange-list,.pf-exchange-section .ux-ex-total{margin-inline:12px}
 #inline-items{overflow:visible}#inline-items .item-form,#inline-items .item-form:has(.entry-ang select),#inline-items .item-form:has([data-ang-number][hidden]),#inline-items .item-form:has([data-quantity-label]:not(.hidden)):not(:has(.entry-ang select)){min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
 #inline-items .item-form>header{grid-column:1/-1;flex-wrap:wrap}#inline-items .item-form .category-label{flex:1 1 100%;max-width:none;width:100%}#inline-items .item-form label:not(.category-label){height:auto;min-height:90px}#inline-items .item-form input,#inline-items .item-form select{min-width:0;width:100%}#inline-items .item-form .entry-notes label{min-height:0}
 .entry-type-tabs{gap:5px}.entry-type-tabs button{padding:10px 6px;font-size:12px}.entry-inline-actions{flex-wrap:wrap}.entry-inline-actions>button[type=submit]{flex-basis:100%}
 .pagehead{gap:12px;align-items:start;flex-wrap:wrap}.pagehead h1{font-size:21px}.pagehead .row{flex-wrap:wrap}.grid.three{grid-template-columns:1fr}.grid.two{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.ux-exchange-entry .item-form .category-label{grid-column:1/5!important}
.ux-exchange-entry .item-form .ux-value-field{grid-column:4/6!important}
.ux-exchange-entry .item-form{padding:0!important}
#ux-mobile-menu{display:none!important}.ux-people-pager{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0}
@media(max-width:900px){.ux-exchange-entry .item-form .category-label{grid-column:1/3!important}.ux-exchange-entry .item-form .ux-value-field{grid-column:1/-1!important}}
@media(max-width:800px){
 .shell{display:block}.shell>.sidebar{display:none}.shell .topbar{position:sticky;top:0;z-index:20;padding:12px 16px;gap:12px;min-height:68px;background:#fff;border-bottom:1px solid #dce6e8}.topbar>span{flex:1;font-weight:700}.topbar>span>.muted{display:none}.topbar>.row>span{display:none}#ux-mobile-menu{display:inline-grid!important}.topbar #logout{font-size:11px;padding:8px 10px}
 dialog.ux-mobile-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(340px,90vw);max-width:90vw;height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;background:#15343b;color:white;padding:20px;overflow:auto}
 .ux-mobile-drawer .dialog-head{color:#fff}.ux-mobile-drawer .nav{display:flex;flex-direction:column;overflow:visible;gap:5px}.ux-mobile-drawer .nav a{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 14px;white-space:normal}.ux-mobile-drawer .nav-group-title{padding:12px 14px 6px;border-top:1px solid #315059;margin-top:12px;color:#b9d1d3;white-space:normal}.ux-mobile-drawer [hidden]{display:none!important}
 .ux-exchange-entry .item-form .item-measures>label,.ux-exchange-entry .item-form .extras>label{grid-column:span 1}.ux-exchange-entry .item-form .extras>label{grid-column:1/3}
}
.ux-exchange-dialog>.dialog-head,.ux-exchange-entry>.dialog-head{position:sticky;top:-28px;z-index:3;background:#fff;padding-block:12px;border-bottom:1px solid #edf2f3}
.ux-exchange-dialog>form>.row:last-child,.ux-exchange-entry>form>.row:last-child{position:sticky;bottom:-28px;z-index:2;background:#fff;padding-block:16px;border-top:1px solid #e4edef;box-shadow:0 -10px 18px #fff}
@media(max-width:600px){.ux-exchange-dialog>.dialog-head,.ux-exchange-entry>.dialog-head{top:-16px}.ux-exchange-dialog>form>.row:last-child,.ux-exchange-entry>form>.row:last-child{bottom:-16px}}
