/* TCS desktop (Nov 17, desktop.js; claude/plan-tcs-desktop.md step 1). Only applies with body.tcs-desk. */
body.tcs-desk{padding-left:220px}
body.tcs-desk #tabBar,body.tcs-desk #tabMore .tm-grab{display:none !important}
#deskNav{position:fixed;left:0;top:0;bottom:0;width:220px;z-index:120;background:#ECE9E1;border-right:.5px solid #D9D3C6;padding:18px 10px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;font:16px/22px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif}
#deskNav .dk-sl{font-size:13px;line-height:18px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60;padding:18px 10px 6px}
#deskNav .dk-it{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;color:#16202B;padding:8px 10px;border-radius:9px;cursor:pointer;min-height:44px}
#deskNav .dk-it:hover{background:rgba(255,255,255,.55)}
#deskNav .dk-it.on{background:#fff;font-weight:600}
#deskNav .dk-foot{margin-top:auto;padding-top:12px;border-top:.5px solid #D9D3C6}
#deskNav .dk-acct{font-size:13px;line-height:18px;color:#6D6A60}
/* room for the screens; the bars that sat above the phone tab bar sit at the bottom, right of the sidebar */
body.tcs-desk .wrap{max-width:980px;padding-left:32px;padding-right:32px}
body.tcs-desk .calm-dock,body.tcs-desk #mainView .nq-bar,body.tcs-desk .nq-bar,body.tcs-desk .pk2-bar{left:220px !important;bottom:0 !important}
body.tcs-desk .chk-prog{left:236px;bottom:16px}
@media (max-width:820px){body.tcs-desk{padding-left:0}#deskNav{display:none !important}body.tcs-desk #tabBar{display:flex !important}}
/* no employee mode on the desktop (Kris, Nov 17): the role switches are hidden */
body.tcs-desk #roleBtn,body.tcs-desk #acctRole,body.tcs-desk [onclick*="toggleRole"]{display:none !important}
#deskOnly{position:fixed;inset:0;z-index:400;background:#F7F5EF;display:flex;align-items:center;justify-content:center;padding:24px}
#deskOnly .dko-box{max-width:420px;display:flex;flex-direction:column;gap:12px}
#deskOnly h1{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.4px;margin:0;color:#16202B}
#deskOnly p{font-size:15px;line-height:20px;color:#6D6A60;margin:0 0 12px}
#deskOnly .act{font:600 17px/22px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;min-height:52px;border-radius:14px}
#deskNav .dk-menu{background:#fff;border:.5px solid #D9D3C6;border-radius:12px;padding:6px;margin-bottom:6px;display:flex;flex-direction:column;gap:2px}
#deskNav .dk-who{font-size:13px;line-height:18px;color:#6D6A60;padding:8px 10px}
#deskNav .dk-menu .dk-it:hover{background:#ECE9E1}
#deskNav .dk-out{color:#A12B21}
/* Desktop Dashboard (deskDash, mock-desktop.png) */
.dkd{display:flex;flex-direction:column;gap:24px;padding-top:8px}
.dkd-hero{cursor:pointer;display:flex;flex-direction:column;gap:4px}
.dkd-big{font-size:56px;line-height:62px;font-weight:700;letter-spacing:-1.5px;color:#16202B;font-variant-numeric:tabular-nums}
.dkd-sub{font-size:15px;line-height:20px;color:#6D6A60;font-variant-numeric:tabular-nums}
.dkd-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.dkd-tile{display:flex;flex-direction:column;gap:2px;text-align:left;background:#fff;border:.5px solid #D9D3C6;border-radius:12px;padding:12px 16px;cursor:pointer;font:inherit;color:#16202B;min-height:44px}
.dkd-tile:hover{border-color:#C4BEB1}
.dkd-tl{font-size:13px;line-height:18px;color:#6D6A60}
.dkd-tv{font-size:24px;line-height:28px;font-weight:700;font-variant-numeric:tabular-nums}
.dkd-ts{font-size:13px;line-height:18px;color:#6D6A60}
.dkd-cols{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.dkd-cols .pe-sec{margin:0 0 6px}
.dkd-none{font-size:15px;line-height:20px;color:#6D6A60;padding:12px 4px}
.dkd-cols .bf-group{border:.5px solid #D9D3C6;border-radius:12px;overflow:hidden;background:#fff}
/* Split views (Buy Orders, Sale Orders, People): list left, the open record right */
body.tcs-desk .dk-split .wrap{max-width:none;display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}
body.tcs-desk .dk-split .dk-lpane{position:sticky;top:0;max-height:100vh;overflow-y:auto;padding:0 2px 24px;display:flex;flex-direction:column;gap:8px}
body.tcs-desk .dk-split .dk-rpane{min-width:0;padding-top:12px;max-width:760px}
body.tcs-desk .dk-split.in-detail header.top,body.tcs-desk .dk-split.in-detail .dk-lpane #bfTop,body.tcs-desk .dk-split.in-detail .dk-lpane #sellerInbox{display:block !important}
body.tcs-desk .dk-split .dk-lpane header.top{display:flex !important}
body.tcs-desk .dk-split .dk-list .bf-row.dk-on,body.tcs-desk .dk-split .dk-list .dk-on{background:#E6F0EC}
body.tcs-desk .dk-empty{color:#6D6A60;font-size:15px;line-height:20px;padding:48px 0;text-align:center}
body.tcs-desk #profilesView.in-detail header.top{display:flex !important}
/* the back link to the list is the list beside it on the desktop */
body.tcs-desk .dk-rpane .calm-back[onclick*="loadOrders"],body.tcs-desk .dk-rpane .calm-back[onclick*="loadSales"],body.tcs-desk .dk-rpane .calm-back[onclick*="ppBack"],body.tcs-desk .dk-rpane .calm-back[onclick*="ppClose"],body.tcs-desk .dk-rpane .calm-back[onclick*="closeProfile"]{visibility:hidden}
/* Inventory table (deskInventory, mock-desktop2.png) */
body.tcs-desk.mode-inventory .wrap{max-width:none}
body.tcs-desk.mode-inventory .inv-filter-bar label,body.tcs-desk.mode-inventory #invStatusFilter,body.tcs-desk.mode-inventory #invSort,body.tcs-desk.mode-inventory .inv-meta{display:none}
.dki-acts{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin:0 0 12px}
.dki-acts .act{min-height:44px;padding:0 16px;border-radius:14px;font:600 17px/22px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif}
.dki-chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 12px}
.dk-chip{min-height:44px;padding:0 16px;border-radius:999px;border:.5px solid #D9D3C6;background:#fff;color:#16202B;font:16px/22px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;cursor:pointer}
.dk-chip.on{background:#E6F0EC;border-color:#0F6B53;color:#0F6B53;font-weight:600}
.dki-sep{width:12px}
.dki-wrap{background:#fff;border:.5px solid #D9D3C6;border-radius:12px;overflow:auto}
table.dki{width:100%;border-collapse:collapse;font-size:15px;line-height:20px;color:#16202B;font-variant-numeric:tabular-nums}
table.dki th{font-size:13px;line-height:18px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60;font-weight:400;text-align:left;padding:10px 12px;border-bottom:.5px solid #D9D3C6;white-space:nowrap;position:sticky;top:0;background:#fff}
table.dki td{padding:12px;border-bottom:.5px solid #EFEBE2;vertical-align:top}
table.dki tr:last-child td{border-bottom:0}
table.dki tbody tr{cursor:pointer}
table.dki tbody tr:hover{background:#F7F5EF}
table.dki .num{text-align:right;white-space:nowrap}
.dki-m{font-weight:500}.dki-c{color:#6D6A60;font-size:13px}
.dki-f{font-size:13px;line-height:18px;margin-top:2px}
.dki-imei{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:14px;letter-spacing:.3px;white-space:nowrap}
.dki-w{white-space:nowrap}
/* Prices wide table (deskPrices) */
body.tcs-desk.mode-rates .wrap{max-width:none}
.dkp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 12px}
.dkp-head .dki-acts{margin:0;align-items:center}
table.dkp td{padding:10px 12px;vertical-align:middle}
table.dkp tbody tr{cursor:default}
.dkp-atlas{color:#6D6A60}
.dkp-none{color:#9C978C}
.dkp-note{font-size:13px;line-height:18px;color:#6D6A60;margin:8px 4px 0}
/* Cash page (deskCashPage) */
.dkc{display:flex;flex-direction:column;gap:16px;padding-top:8px}
.dkc .dkp-head{margin:0}
.dkc-nav .cs-nav{margin:0}
.dkc-tile{cursor:default}
.dkc-d{white-space:nowrap;color:#6D6A60}
.dkc-foot{display:flex;justify-content:flex-end}
.dkc-acts{margin-top:-4px}
.dkc .dkd-tiles{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.dkc-nav .cs-nav{display:flex;align-items:center;gap:8px}
.dkc-nav .cs-nav button{min-width:44px;min-height:44px;border-radius:12px;border:.5px solid #D9D3C6;background:#fff;color:#16202B;font-size:20px;cursor:pointer}
.dkc-nav .cs-nav button:disabled{opacity:.35;cursor:default}
/* Documents and Labels */
.dkdoc{display:flex;flex-direction:column;gap:12px;padding-top:8px}
.dkdoc-sub{margin:0}
.dkdoc-q{max-width:420px}
.dkdoc-open{color:#0F6B53;font-weight:600}
table.dkl td,table.dkl th{vertical-align:middle}
table.dkl tbody tr{cursor:default}
table.dkl input[type=checkbox]{width:20px;height:20px;accent-color:#0F6B53}
body.tcs-desk.dk-labels .inv-filter-bar,body.tcs-desk.dk-labels .inv-meta{display:none !important}
.dki .cs-amb,.dkl .cs-amb{color:#9A5B00}
.dkdoc-q{background:#ECE9E1;border:0;border-radius:9px;min-height:44px;padding:0 12px;font-size:16px}
/* ---- Buy Orders board and order page (mock-buy-desk4, Kris Nov 17) ---- */
body.tcs-desk :is(#ordersView,#salesView) .wrap{max-width:none;box-sizing:border-box;display:flex;flex-direction:column;padding-top:24px;padding-bottom:24px}
body.tcs-desk :is(#ordersView,#salesView):not(.in-detail) .wrap,body.tcs-desk :is(#ordersView,#salesView) .wrap:has(.dko){height:100vh}
body.tcs-desk :is(#ordersView,#salesView).in-detail :is(#ordersBody,#salesBody):not(:has(> .dko)){max-width:760px;width:100%;margin:0 auto;display:block}
body.tcs-desk :is(#ordersView,#salesView) #sellerInbox,body.tcs-desk :is(#ordersView,#salesView) #ordersFlags:empty,body.tcs-desk :is(#ordersView,#salesView) #reconResult:empty{display:none !important}
body.tcs-desk :is(#ordersView,#salesView):not(.in-detail) :is(#ordersBody,#salesBody){display:none}
body.tcs-desk :is(#ordersView,#salesView).in-detail .dkb-head,body.tcs-desk :is(#ordersView,#salesView).in-detail :is(#dkBoard,#dkSBoard){display:none !important}
body.tcs-desk :is(#ordersView,#salesView).in-detail :is(#ordersBody,#salesBody){flex:1;min-height:0;display:flex;flex-direction:column}
.dkb-head{display:flex;align-items:center;gap:16px;flex:none;margin-bottom:18px}
body.tcs-desk .dkb-head header.top{display:flex !important;margin:0;padding:0;border:0;flex:1;min-width:0}
body.tcs-desk .dkb-head #bfTop{flex:none}
body.tcs-desk .dkb-head .list-top{margin:0;display:flex;gap:8px;align-items:center}
body.tcs-desk .dkb-head #ordSearch{width:320px;height:40px}
:is(#dkBoard,#dkSBoard){flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.dkb-lane{display:flex;flex-direction:column;gap:8px;min-height:0}
.dkb-lh{display:flex;justify-content:space-between;align-items:baseline;padding:0 4px 2px;font-size:13px;line-height:18px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60}
.dkb-lh b{font-weight:400;letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums}
.dkb-group{flex:1;min-height:0;overflow-y:auto;background:#fff;border-radius:12px;border:.5px solid #E3DED3}
:is(#dkBoard,#dkSBoard) .bf-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start;padding:12px 16px;min-height:0;border-top:.5px solid #EFEBE2;cursor:pointer;background:#fff}
:is(#dkBoard,#dkSBoard) .bf-row:first-child{border-top:0}
:is(#dkBoard,#dkSBoard) .bf-row:hover{background:#F7F5EF}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-main{grid-column:1;min-width:0}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-t{font-size:16px;line-height:22px}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-t b{font-weight:400}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-s{font-size:13px;line-height:18px;color:#6D6A60;white-space:normal}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-s.warn{color:#9A5B00}
:is(#dkBoard,#dkSBoard) .bf-row .bf-amt{grid-column:2;grid-row:1;text-align:right;font-size:16px;line-height:22px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
:is(#dkBoard,#dkSBoard) .bf-row .bf-amt small{display:block;font-size:13px;line-height:16px;font-weight:400}
:is(#dkBoard,#dkSBoard) .bf-row .bf-chev{display:none}
:is(#dkBoard,#dkSBoard) .dkb-next{grid-column:1 / -1;font-size:15px;line-height:20px;font-weight:600;color:#0F6B53;margin-top:4px}
:is(#dkBoard,#dkSBoard) .dkb-nb{background:none;border:0;padding:0;text-align:left;cursor:pointer;font-family:inherit;min-height:0;width:auto;justify-self:start}
.dkb-none{font-size:13px;color:#9C978C;padding:12px 16px}
.dkb-lane.bf-dsec.all .dkb-old,.dkb-lane.bf-dsec.q .dkb-old{display:grid}
:is(#dkBoard,#dkSBoard) .bf-row.dkb-old{display:none}
:is(#dkBoard,#dkSBoard) .bf-dsec.all .bf-row.dkb-old,:is(#dkBoard,#dkSBoard) .bf-dsec.q .bf-row.dkb-old{display:grid}
.dkb-lane.bf-dsec.all .dkb-wk,.dkb-lane.bf-dsec.q .dkb-wk,.dkb-lane.bf-dsec.q .dkb-all{display:none}
.dkb-all{display:block;width:100%;min-height:44px;padding:0 16px;border:0;border-top:.5px solid #EFEBE2;background:none;text-align:left;color:#0F6B53;font:600 15px/20px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;cursor:pointer}
/* the order page */
.dko{flex:1;min-height:0;display:flex;flex-direction:column;gap:18px}
.dko-head{display:flex;align-items:flex-start;gap:16px;flex:none}
.dko-bk .calm-back{font-size:17px;min-height:44px;padding:0;margin-top:-4px}
.dko-who{flex:1;min-width:0}
.dko-who h1{margin:0;font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.4px}
.dko-sub,.dko-sub .pt3-ref{font-size:15px;line-height:20px;color:#6D6A60;margin:2px 0 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.dko-acts{display:flex;gap:8px;align-items:center;flex:none}
.dko-btn{height:40px;padding:0 16px;border-radius:12px;background:#fff;border:.5px solid #D9D3C6;color:#16202B;font:600 15px/20px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;cursor:pointer;white-space:nowrap}
.dko-btn:hover,.dko-more:hover{background:#F7F5EF}
.dko-more{width:44px;height:44px;border-radius:50%;background:#ECE9E1;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#16202B}
.dko-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}
.dko-table,.dko-panel{background:#fff;border-radius:12px;border:.5px solid #E3DED3;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.dko-tt{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:.5px solid #EFEBE2;flex:none}
.dko-seg{display:flex;background:#ECE9E1;border-radius:9px;padding:2px;height:36px}
.dko-seg button{border:0;background:none;padding:0 14px;border-radius:7px;font:15px/20px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;color:#16202B;cursor:pointer}
.dko-seg button.on{background:#fff;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.dko-q{margin-left:auto;width:260px;height:40px;border-radius:9px;background:#ECE9E1;border:0;padding:0 12px;font-size:16px}
.dko-scroll{flex:1;min-height:0;overflow:auto}
.dko-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:20px;font-variant-numeric:tabular-nums}
.dko-table th{position:sticky;top:0;background:#fff;font-size:13px;line-height:18px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60;font-weight:400;text-align:left;padding:10px 12px;border-bottom:.5px solid #D9D3C6;white-space:nowrap}
.dko-table td{padding:0 12px;height:50px;border-bottom:.5px solid #EFEBE2;white-space:nowrap}
.dko-table th:first-child,.dko-table td:first-child{padding-left:16px}
.dko-table tbody tr{cursor:pointer}
.dko-table tbody tr:hover td{background:#F7F5EF}
.dko-table td b{font-weight:400;font-size:16px}
.dko-table .n{text-align:right}
.dko-table .chev{color:#C4BEB1;font-size:20px;margin-left:8px;vertical-align:-2px}
.dko-c{font-size:13px;color:#6D6A60;margin-left:6px}
.dko-imei{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:14px;letter-spacing:.3px}
.dko-m{color:#6D6A60}.dko-f{color:#9C978C}.dko-a{color:#9A5B00}.dko-r{color:#A12B21}.dko-g{color:#0F6B53}
.dko-foot{flex:none;display:flex;justify-content:space-between;padding:12px 16px;border-top:.5px solid #D9D3C6;font-size:15px;color:#6D6A60}
.dko-foot b{color:#16202B;font-weight:600}.dko-foot b.dko-a{color:#9A5B00}
.dko-pmid{flex:1;min-height:0;overflow-y:auto;padding:4px 0 12px}
.dko-panel .ov-hero{padding:20px 20px 12px !important;margin:0 !important;text-align:left}
.dko-panel .ov-sec{padding:18px 20px 6px !important;margin:0 !important}
.dko-panel .calm-list{margin:0 !important;border-radius:0 !important;border:0 !important;border-top:.5px solid #EFEBE2 !important;box-shadow:none !important}
.dko-panel .calm-row{padding-left:20px !important;padding-right:20px !important}
.dko-pfoot{flex:none;padding:16px 20px 18px;border-top:.5px solid #EFEBE2}
body.tcs-desk .dko-pfoot .calm-dock{position:static !important;left:auto !important;right:auto !important;bottom:auto !important;padding:0 !important;margin:0 !important;background:none !important;border:0 !important;box-shadow:none !important;width:auto !important;max-width:none !important;transform:none !important}
.dko-pfoot .calm-dock .act.primary{width:100%;height:52px;border-radius:14px;font-size:17px}
body.tcs-desk .dkb-head header.top{border-bottom:0 !important;box-shadow:none !important}
.dkb-head{border-bottom:.5px solid #E3DED3;padding-bottom:16px}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-main{display:contents}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-t{grid-column:1;grid-row:1}
:is(#dkBoard,#dkSBoard) .bf-row .bf-row-s{grid-column:1 / -1;grid-row:2}
:is(#dkBoard,#dkSBoard) .bf-row .pl-imei{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:13px;font-weight:600;letter-spacing:.5px}
html body.tcs-desk :is(#ordersView,#salesView) .dkb-head header.top{border-bottom:0 !important;padding-bottom:0 !important}
/* Sale Orders board rows (sellflow .sl-row) */
#dkSBoard .sl-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start;width:100%;text-align:left;padding:12px 16px;border:0;border-top:.5px solid #EFEBE2;background:#fff;cursor:pointer;font:inherit;color:#16202B;min-height:0}
#dkSBoard .sl-row:first-child{border-top:0}
#dkSBoard .sl-row:hover{background:#F7F5EF}
#dkSBoard .sl-row .l{grid-column:1;font-size:16px;line-height:22px;display:block}
#dkSBoard .sl-row .l small{display:block;font-size:13px;line-height:18px;color:#6D6A60;margin-top:2px}
#dkSBoard .sl-row .v{grid-column:2;grid-row:1;text-align:right;font-size:16px;line-height:22px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#dkSBoard .sl-row .v small{display:block;font-size:13px;line-height:16px;font-weight:400}
#dkSBoard .sl-row .chev{display:none}
#dkSBoard .sl-row.dkb-old{display:none}
#dkSBoard .bf-dsec.all .sl-row.dkb-old,#dkSBoard .bf-dsec.q .sl-row.dkb-old{display:grid}
#dkSBoard .pl-imei{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:13px;font-weight:600;letter-spacing:.5px}
body.tcs-desk #salesView .dks-top{margin:0;display:flex;gap:8px;align-items:center}
body.tcs-desk #salesView #dksSearch{width:320px;height:40px;border-radius:9px;background:#ECE9E1;border:0;padding:0 12px;font-size:16px}
body.tcs-desk #salesView:not(.in-detail) #salesBody{display:none}
body.tcs-desk #salesView .wrap > .dk-lpane,body.tcs-desk #salesView .sl-top{display:none}
body.tcs-desk.mode-dashboard .wrap{max-width:none}
/* People (mock-people-desk): the list is one table across the window; a person opens like an order */
body.tcs-desk #profilesView .wrap{max-width:none;box-sizing:border-box;display:flex;flex-direction:column;padding-top:24px;padding-bottom:24px;height:100vh}
body.tcs-desk #profilesView .wrap:not(:has(.dko)){height:auto}
body.tcs-desk #profilesView:not(.in-detail) .wrap{height:100vh}
body.tcs-desk #profilesView .wrap > header.top,body.tcs-desk #profilesView #profilesFlags:empty{display:none !important}
body.tcs-desk #profilesView:not(.in-detail) #profilesBody{display:none}
body.tcs-desk #profilesView.in-detail #dkPeople{display:none}
body.tcs-desk #profilesView.in-detail #profilesBody{flex:1;min-height:0;display:flex;flex-direction:column}
body.tcs-desk #profilesView.in-detail #profilesBody .pp-page.dkpp{flex:1;min-height:0;display:flex;flex-direction:column;padding:0;margin:0;max-width:none}
body.tcs-desk #profilesView.in-detail #profilesBody:not(:has(.dko)){max-width:760px;width:100%;margin:0 auto;display:block}
#dkPeople{flex:1;min-height:0;display:flex;flex-direction:column}
body.tcs-desk #dkPeople header.top{display:flex !important;margin:0;padding:0 !important;border:0 !important;flex:1;min-width:0}
.dkpp-acts{display:flex;gap:8px;align-items:center;flex:none}
.dkpp-q{width:280px;height:40px;border-radius:9px;background:#ECE9E1;border:0;padding:0 12px;font-size:16px}
.dkpp-card{flex:1;min-height:0}
.dkpp-next{color:#0F6B53;font-weight:600;font-size:15px}
.dkpp-code{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:13px;font-weight:600;letter-spacing:.5px}
.dko-panel .pp-hero{padding:20px 20px 12px !important;margin:0 !important;text-align:left}
.dko-panel .gr-terms{margin:0 !important;padding:0 0 4px !important}
.dko-panel .gr-terms .pe-grp,.dko-panel .pe-grp{margin-left:0 !important;margin-right:0 !important;border-radius:0 !important;border-left:0 !important;border-right:0 !important;box-shadow:none !important}
.dko-panel .pe-sec{padding:18px 20px 6px !important;margin:0 !important}
.dko-panel .calm-dock{display:flex;flex-direction:column;gap:10px}
.dko-panel .calm-dock .act.primary{white-space:nowrap}
/* pages opened from Buy and Sell (New sale, a request, an on-the-spot buy) */
.dko-hero-cap{font-size:13px;line-height:18px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60;padding:20px 20px 8px}
.dko-panel #nsBuyerBox{margin:0 !important}
.dko-panel #nsBuyerBox > *{margin-left:0 !important;margin-right:0 !important;border-radius:0 !important;border-left:0 !important;border-right:0 !important}
.dkns-hint{font-size:13px;line-height:18px;color:#6D6A60;padding:12px 20px}
.dkns-tt .scan-wrap{flex:1;display:block}
.dkns-tt input{width:100%;height:40px;border-radius:9px;background:#ECE9E1;border:0;padding:0 46px 0 12px;font-size:16px;box-sizing:border-box}
.dko-table #nsList{padding:0 16px 16px}
.dko-table > .dko-scroll > .bf-group{margin:0;border:0;border-radius:0}
.dko-pfoot #nsBar .sv-dock{display:flex;flex-direction:column;gap:10px}
.dko-panel #spMsg:empty{display:none}
body.tcs-desk :is(#ordersView,#salesView) .wrap:has(.dko){height:100vh}
.dko-panel #nsBuyerBox{padding-top:8px}
/* Dashboard (mock-dash-inv-desk, Kris Nov 17): the number and its parts on one line, three full-height columns */
body.tcs-desk.mode-dashboard:not(.dk-cash):not(.dk-docs) #dashView .wrap{height:100vh;box-sizing:border-box;display:flex;flex-direction:column;padding-bottom:24px}
body.tcs-desk.mode-dashboard #dashBody{flex:1;min-height:0;display:flex;flex-direction:column}
.dkd2{flex:1;min-height:0;display:flex;flex-direction:column;gap:18px;padding-top:4px}
.dkd-top{display:flex;align-items:flex-end;gap:40px;flex:none;padding-bottom:16px;border-bottom:.5px solid #E3DED3}
.dkd-figs{margin-left:auto;display:flex;gap:28px;align-items:flex-end}
.dkd-fig{display:flex;flex-direction:column;gap:2px;text-align:left;background:none;border:0;padding:4px 0;cursor:pointer;font:inherit;color:#16202B;min-height:44px}
.dkd-fig .dkd-tv{font-size:24px;line-height:28px}
.dkd-fig:hover .dkd-tl{color:#16202B}
.dkd-cols3{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dkd-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;width:100%;text-align:left;padding:12px 16px;border:0;border-top:.5px solid #EFEBE2;background:#fff;cursor:pointer;font:inherit;color:#16202B}
.dkd-group > .dkd-row:first-child{border-top:0}
.dkd-row:hover{background:#F7F5EF}
.dkd-rt{grid-column:1;font-size:16px;line-height:22px}
.dkd-rv{grid-column:2;grid-row:1 / span 2;text-align:right;font-size:16px;line-height:22px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.dkd-rv small{display:block;font-size:13px;line-height:16px;font-weight:400}
.dkd-rv.dkd-mut{color:#6D6A60;font-weight:400}
.dkd-rs{grid-column:1;font-size:13px;line-height:18px;color:#6D6A60}
.dkd-rn{grid-column:1 / -1;font-size:15px;line-height:20px;font-weight:600;color:#0F6B53;margin-top:4px}
.dkd-strip{margin:0 !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;border-bottom:.5px solid #EFEBE2 !important}
/* Inventory (mock-dash-inv-desk): groups on the left, the table, the phone in the right panel */
body.tcs-desk.mode-inventory:not(.dk-labels) #inventoryView .wrap{height:100vh;box-sizing:border-box;display:flex;flex-direction:column;padding-bottom:24px}
body.tcs-desk.mode-inventory:not(.dk-labels) #invBody{flex:1;min-height:0;display:flex;flex-direction:column}
body.tcs-desk.mode-inventory:not(.dk-labels) .dki-chips{display:none}
.dkinv{flex:1;min-height:0;display:flex;gap:16px}
.dkig{width:220px;flex:none;display:flex;flex-direction:column;gap:2px;background:#ECE9E1;border-radius:12px;padding:6px;align-self:stretch;overflow-y:auto}
.dkig-it{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:0 12px;border:0;border-radius:9px;background:none;font:16px/22px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;color:#16202B;cursor:pointer;text-align:left}
.dkig-it:hover{background:rgba(255,255,255,.55)}
.dkig-it.on{background:#fff;font-weight:600}
.dkig-n{font-size:13px;color:#6D6A60;font-weight:400}
.dkig-sep{height:.5px;background:#D9D3C6;margin:8px 6px}
.dkinv-t{flex:1;min-width:0}
.dkinv-t table.dki th{top:0}
.dkinv-t tr.on td{background:#E6F0EC}
.dkinv-p{width:380px;flex:none;overflow-y:auto}
#phoneModal.dk-inpanel{position:static !important;inset:auto !important;display:block !important;background:none !important;z-index:auto !important;padding:0 !important;width:100%;height:100%}
#phoneModal.dk-inpanel .modal-box{position:static !important;max-width:none !important;width:100% !important;max-height:none !important;height:100%;margin:0 !important;border-radius:0 !important;box-shadow:none !important;background:none !important;padding:8px 4px 16px !important;transform:none !important;overflow:visible}
#phoneModal.dk-inpanel .calm-dock,#phoneModal.dk-inpanel .pc3-bar{position:static !important;left:auto !important;right:auto !important;bottom:auto !important;background:none !important;border:0 !important;box-shadow:none !important;padding:12px 0 0 !important;width:auto !important;transform:none !important}
#phoneModal.dk-inpanel .calm-dock-sp{display:none}
body.tcs-desk.mode-inventory #inventoryView .wrap > header.top{display:flex !important;align-items:center;gap:16px}
#dkInvActs{margin-left:auto;display:flex;align-items:center;gap:8px}
#dkInvActs .inv-filter-bar{margin:0;padding:0;border:0;background:none}
#dkInvActs .inv-filter-field{margin:0}
#dkInvActs #invSearch{width:300px;height:40px}
#dkInvActs .dki-acts{margin:0;flex-wrap:nowrap}
#dkInvActs .dki-acts .act{min-height:40px;height:40px;font-size:15px;border-radius:12px;white-space:nowrap}
body.tcs-desk:not(.mode-inventory) #dkInvActs{display:none}
.dkig{width:200px}
.dkinv-p{width:340px}
.dki-cond{white-space:nowrap;color:#6D6A60}
#phoneModal.dk-inpanel .calm-back{visibility:hidden}
.dkinv-t table.dki td:first-child .dki-c{display:block;margin:0}
.dkinv-t table.dki td{padding:10px 10px}
.dkinv-t table.dki th{padding:10px}
.dkinv-t table.dki .dki-w{white-space:normal}
@media (max-width:1400px){ .dkig{width:170px} .dkinv-p{width:300px} .dkinv-t table.dki th:nth-child(3),.dkinv-t table.dki td:nth-child(3){display:none} }
#phoneModal.dk-inpanel .pc-back,#phoneModal.dk-inpanel .modal-close{visibility:hidden}
/* Prices, Cash, Documents, Labels (mock-setup-desk, Kris Nov 17 "Okay build") */
.dkig-rs{font-size:13px;line-height:18px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60;padding:12px 12px 4px}
body.tcs-desk.mode-rates #ratesView .wrap,body.tcs-desk.dk-cash #dashView .wrap,body.tcs-desk.dk-docs #dashView .wrap,body.tcs-desk.dk-labels #inventoryView .wrap{height:100vh;box-sizing:border-box;display:flex;flex-direction:column;padding-bottom:24px}
body.tcs-desk.mode-rates #ratesBody,body.tcs-desk.dk-cash #dashBody,body.tcs-desk.dk-docs #dashBody,body.tcs-desk.dk-labels #invBody{flex:1;min-height:0;display:flex;flex-direction:column}
body.tcs-desk.mode-rates #ratesBody .dkp-head{flex:none}
.dkp td.dkp-ours{font-weight:600}
.dkp-head .dki-acts .act{min-height:40px;height:40px;font-size:15px;border-radius:12px}
.dkp-head .dkpp-q{width:220px}
.dk-hacts{margin-left:auto;display:flex;align-items:center;gap:8px}
body.tcs-desk #dashView .wrap > header.top,body.tcs-desk.dk-labels #inventoryView .wrap > header.top{display:flex !important;align-items:center;gap:16px}
.dk-hacts .act.primary{min-height:40px;height:40px;padding:0 16px;border-radius:12px;font:600 15px/20px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif}
.dkc-card{flex:1;min-height:0}
.dkc .dkc-nav{align-self:center}
body.tcs-desk.dk-labels #dkInvActs{display:none}
body.tcs-desk.mode-inventory:not(.dk-labels) #inventoryView .dk-hacts{display:none}
.dkl-panel{width:320px;flex:none}
.dkl-panel .pp-hero{padding:20px 20px 12px}
.dkl-panel .pp-hero .ov-cap{font-size:13px;letter-spacing:.4px;text-transform:uppercase;color:#6D6A60}
.dkl-panel .pp-hero .ov-big{font-size:40px;line-height:44px;font-weight:700;letter-spacing:-1px}
.dkl-panel .pp-hero .ov-sub{font-size:15px;color:#6D6A60}
.dkl-lbl{width:248px;margin:6px auto 16px;border:1px solid #16202B;border-radius:6px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;background:#fff}
.dkl-lbl b{font-size:16px;line-height:20px}.dkl-lbl span{font-size:13px;color:#6D6A60}
.dkl-lbl i{height:34px;margin-top:4px;background:repeating-linear-gradient(90deg,#16202B 0 2px,#fff 2px 3px,#16202B 3px 4px,#fff 4px 7px)}
.dkl-lbl .dki-imei{text-align:center;font-size:12px;color:#16202B}
.dkl-panel .dko-pfoot .act.primary{width:100%;height:52px;border-radius:14px;font-size:17px}
.dkl-panel .dko-pfoot .act.primary{font-weight:600}
.dkp-head .dki-acts .act:not(.primary){color:#16202B}
