@font-face{font-family:Inter;src:url('/fonts/inter-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}*{box-sizing:border-box}html{font-family:Inter,'Segoe UI',sans-serif;color:#24344a;background:#f5f6f8;font-size:13px}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-color:#bc202a}button{border:1px solid #dce2e8;background:white;color:#24344a;border-radius:5px;padding:8px 12px;cursor:pointer;line-height:1.3}button:hover{background:#edf1f5}button:disabled{cursor:default;opacity:.5}button.primary{background:#b91e29;color:white;border-color:#b91e29;font-weight:600}button.primary:hover{background:#9b1721}button.quiet{border-color:transparent;background:transparent}button.active{color:#b91e29;background:#fff1f2;border-color:#e8bbc0}button b{margin-left:6px}input,select,textarea{border:1px solid #dce2e8;border-radius:5px;background:white;color:#24344a;padding:8px 9px;min-width:0;width:100%}input[type=checkbox]{width:15px;height:15px;accent-color:#b91e29;flex:none;margin:2px}textarea{resize:vertical;line-height:1.5}a{color:#a51b25}h1,h2,h3,p{margin:0}h1{font-size:23px;letter-spacing:-.65px;font-weight:650}h2{font-size:18px;font-weight:650}h3{font-size:12px}p{line-height:1.55}small{display:block}.muted{color:#768295;font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#8390a1;margin-bottom:5px}.topbar{height:72px;background:white;border-bottom:1px solid #e2e6eb;display:flex;align-items:center;padding:0 28px;gap:18px;position:relative;z-index:4}.brand{font-family:Georgia,serif;font-size:28px;font-weight:700;letter-spacing:-1px;color:#b91e29;text-decoration:none}.brand-title{font-size:11px;border-left:1px solid #e2e6eb;padding-left:18px;line-height:1.5;white-space:nowrap}.brand-title span{display:block;color:#7b8796}.topbar nav{display:flex;gap:2px;align-self:stretch;align-items:center;margin-left:14px}.topbar nav button{border:0;background:transparent;font-size:12px;padding:12px 10px}.topbar nav button.nav-active{color:#b91e29;background:#fdf0f1;font-weight:600}.account-menu{margin-left:auto}.account-menu summary{cursor:pointer;display:flex;align-items:center;gap:9px;list-style:none}.avatar{background:#f6e8e9;color:#a51b25;width:33px;height:33px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}.avatar.large{width:45px;height:45px;font-size:15px}.account-name{font-size:11px;font-weight:500}.account-name small{font-size:9px;color:#8993a0;margin-top:3px;letter-spacing:.6px}.menu{position:absolute;right:24px;top:62px;display:grid;background:white;box-shadow:0 8px 30px #24344a20;border:1px solid #e2e6eb;padding:6px;min-width:190px;border-radius:7px}.menu button{text-align:left;border:0}.demo-bar{padding:7px 28px;background:#f8eee1;color:#7a5426;display:flex;justify-content:space-between;align-items:center;font-size:11px}.demo-bar label{display:flex;align-items:center;gap:8px}.demo-bar select{width:100px;padding:3px 5px;background:#fffaf4;font-size:10px}main{max-width:1800px;margin:auto;padding:24px 28px 40px}.workspace-head,.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.page-head p{color:#748092;margin-top:8px}.head-actions{display:flex;align-items:center;gap:4px}.head-actions button{font-size:11px}.head-actions .field{max-width:220px}.head-actions .field>span{display:none}.pipeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid #e0e5eb;background:white;border-radius:8px;overflow:hidden;margin-bottom:20px}.pipeline button{border:0;border-radius:0;border-right:1px solid #e9edf1;display:grid;grid-template-columns:22px 1fr;gap:6px;text-align:left;padding:15px 14px;position:relative}.pipeline button:last-child{border-right:0}.stage-index{color:#a3acb8;font-size:10px;align-self:center}.stage-name{font-size:11px;font-weight:600;align-self:center;white-space:nowrap}.pipeline strong{grid-column:2;font-size:25px;font-weight:600;line-height:1.15;letter-spacing:-.7px}.pipeline .chosen{background:#fff4f4;color:#ad202a;box-shadow:inset 0 -3px #b91e29}.pipeline .chosen .stage-index{color:#c36a72}.workspace-body,.reference-panel{background:white;border:1px solid #e0e5eb;border-radius:8px;overflow:hidden}.toolbar{display:flex;gap:8px;align-items:center;padding:12px;flex-wrap:wrap}.toolbar .search{flex:1;min-width:180px;max-width:480px;display:flex;align-items:center;position:relative}.search svg{position:absolute;left:10px;width:15px;height:15px;fill:none;stroke:#8d98a5;stroke-width:1.7}.search input{padding-left:32px}.toolbar>.field{flex-direction:row;align-items:center;gap:8px;width:auto}.toolbar>.field>span{font-size:10px;white-space:nowrap;color:#7b8796}.toolbar select{max-width:170px;font-size:11px}.toolbar button{font-size:11px;white-space:nowrap}.toolbar .primary{margin-left:auto}.search-input{max-width:450px;flex:1}.filter-panel{padding:8px 12px 12px;background:#fafbfc;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}.filter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}.field>span{font-size:11px;font-weight:500;color:#5f6c7c}.filter-choice{border:1px solid #dce2e8;background:white;border-radius:5px;position:relative;align-self:start}.filter-choice summary{padding:8px;cursor:pointer;font-size:11px;list-style:none;display:flex;justify-content:space-between;gap:8px}.filter-choice summary b{font-weight:500;color:#8c96a4}.choice-list{position:absolute;top:100%;left:-1px;min-width:240px;max-height:290px;overflow:auto;z-index:8;border:1px solid #dce2e8;background:white;border-radius:5px;padding:8px;box-shadow:0 8px 20px #24344a16}.choice-list label{display:flex;gap:7px;align-items:start;padding:5px 2px;font-size:11px}.choice-list label[hidden]{display:none}.choice-list input[type=search]{margin-bottom:6px}.filter-panel>.actions{margin-top:7px}.sales-table-wrap{overflow:auto;max-height:calc(100vh - 330px);min-height:260px;scrollbar-width:thin}.sales-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1250px;font-size:11px}.sales-table th{position:sticky;top:0;z-index:2;text-align:left;font-size:10px;font-weight:600;color:#748092;background:#f8f9fb;border-top:1px solid #e8edf1;border-bottom:1px solid #e4e9ee;padding:11px 7px;white-space:nowrap}.sales-table td{border-bottom:1px solid #eef1f4;padding:10px 6px;vertical-align:top}.sales-table tr:last-child td{border-bottom:0}.sales-table tbody tr:hover{background:#fcfcfd}.sales-table tbody tr.selected{background:#fff6f6}.sales-table .check-col{width:28px;padding-left:12px}.status-cell{width:142px;min-width:135px}.identity-cell{width:235px;min-width:205px}.cell-button{border:0;text-align:left;background:transparent;padding:2px 0;font-size:11px;width:100%;overflow-wrap:anywhere;line-height:1.4;border-radius:3px;color:#394b62}.cell-button:disabled{opacity:1;color:inherit}.cell-button.customer{font-size:12px;font-weight:650;color:#233a55}.cell-button.product{font-size:11px;margin-top:3px}.cell-button.supplier{font-size:10px;color:#8791a0}.cell-input{font-size:11px;border:1px solid transparent;padding:2px 3px;min-width:55px;background:transparent;height:25px;border-radius:3px}.cell-input:hover{border-color:#e0e5eb}.cell-input:focus{border-color:#c35b64;background:white}.sales-table td:nth-child(4){width:82px}.sales-table td:nth-child(5){width:126px;min-width:115px}.sales-table td:nth-child(6){width:86px;min-width:76px}.sales-table td:nth-child(7){width:115px;min-width:110px}.sales-table td:nth-child(8),.sales-table td:nth-child(9){min-width:125px;max-width:170px}.sales-table td:nth-child(10),.sales-table td:nth-child(11){width:95px;min-width:90px}.fob{display:flex;align-items:center}.currency{color:#748194;font-size:10px;width:auto;min-width:30px;font-weight:600}.commission-cell label{display:flex;align-items:center;gap:3px}.commission-cell label>span{font-size:9px;color:#a0a8b3}.text-cell{font-size:10px;border:0;padding:2px 0;background:transparent;text-align:left;white-space:pre-wrap;line-height:1.6;max-height:77px;overflow:auto;width:100%;color:#5c6c80}.date-cell{font-size:10px;border:0;padding:3px 0;background:transparent;white-space:nowrap}.date-cell.overdue{color:#bb4935}.edit-button{font-size:10px;padding:3px 5px}.placeholder{color:#acb3bd}.status-pill{display:inline-block;font-size:9px;line-height:1.4;padding:5px 7px;border-radius:4px;font-weight:500}.status-pill.blue{background:#edf3fc;color:#4a72a5}.status-pill.teal{background:#e8f5f4;color:#43877d}.status-pill.amber{background:#fcf3e7;color:#a27b40}.status-pill.green{background:#eaf3eb;color:#65875e}.status-pill.rose{background:#faebee;color:#a85565}.table-footer{padding:10px 14px;border-top:1px solid #e7ecf0;display:flex;align-items:center;gap:12px;font-size:10px;color:#8a94a2}.table-footer #saveStatus{margin-left:auto}.table-footer button{padding:2px 7px;font-size:10px}.selection-bar{padding:8px 12px;background:#fff4f4;border-block:1px solid #f0d9dc;display:flex;gap:8px;align-items:center;font-size:11px;flex-wrap:wrap}.selection-bar button{font-size:11px;padding:5px 9px}.selection-bar .field{flex-direction:row;align-items:center}.empty{padding:65px 22px;text-align:center;color:#8591a1}.empty h1,.empty h2{color:#4b5e75;margin-bottom:9px}.empty button{margin-top:18px}.mobile-cards,.mobile-only{display:none}.actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.section{margin-top:14px}.pill{background:#edf1f6;color:#617288;padding:4px 8px;border-radius:4px;font-size:10px;white-space:nowrap}.member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.member-card{display:flex;align-items:center;gap:14px;background:white;border:1px solid #e0e5eb;padding:20px;border-radius:7px;flex-wrap:wrap}.member-card h2{font-size:15px}.member-card p{font-size:11px;color:#8190a2;margin:5px 0 9px}.member-card>.primary{margin-left:auto}.reference-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:15px}.reference-tabs button{font-size:12px}.reference-tabs b{font-size:10px;opacity:.65}.reference-table-wrap{overflow:auto}.reference-table,.people-table{width:100%;border-collapse:collapse;background:white;font-size:12px}.reference-table th,.people-table th{text-align:left;padding:12px;background:#f8f9fb;color:#8a94a2;font-size:10px;white-space:nowrap}.reference-table td,.people-table td{padding:7px 12px;border-top:1px solid #edf0f3}.reference-table input:not([type=checkbox]){min-width:120px;border-color:transparent;padding:6px}.reference-table input:hover{border-color:#dce2e8}.reference-table input[type=number]{min-width:65px;width:80px}.reference-table td{font-size:11px}.toggle{display:flex;gap:7px;align-items:center;font-size:11px;white-space:nowrap}.toolbar>.toggle{margin-left:auto}.people-table small{color:#8a94a2;margin-top:5px;font-size:11px}.account-panel{background:white;border:1px solid #e0e5eb;border-radius:7px;max-width:480px;padding:24px}.account-panel>p{margin:8px 0 20px}.stack{display:grid;gap:15px}.backup-row{display:flex;align-items:center;gap:20px;background:white;padding:15px;border-bottom:1px solid #e0e5eb}.backup-row span{flex:1}.backup-row small{font-size:10px;color:#8a94a2;margin-top:5px}.drawer-shade{position:fixed;inset:0;background:#14243738;z-index:30}.drawer{position:fixed;inset:0 0 0 auto;width:520px;max-width:100%;background:white;z-index:31;box-shadow:-10px 0 40px #14243720;display:flex;flex-direction:column}.drawer>header{padding:21px 24px;border-bottom:1px solid #e7ebf0;display:flex;align-items:center;justify-content:space-between}.drawer form{display:flex;flex-direction:column;min-height:0;flex:1}.drawer-scroll{overflow-y:auto;flex:1;padding:2px 24px 16px}.drawer section{padding:20px 0;border-bottom:1px solid #eef1f4}.drawer section h3{font-size:10px;letter-spacing:1.5px;color:#8b95a3;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wide{grid-column:1/-1}.drawer .field{margin-bottom:3px}.drawer textarea{margin-bottom:9px}.picker-field{text-align:left;min-height:34px;position:relative;padding-right:25px;line-height:1.5}.picker-field:after{content:'⌄';position:absolute;right:10px;color:#8d97a6}.quick-dates{margin-top:8px}.quick-dates button{font-size:10px;padding:4px 8px}.drawer footer{border-top:1px solid #e7ebf0;padding:14px 24px;display:flex;align-items:center;gap:8px}.drawer footer>.muted{margin-right:auto;font-size:10px}.drawer-meta{font-size:10px;color:#8a94a2;display:grid;gap:5px}.drawer-meta button{text-align:left;font-size:10px}.field-error,.error-message{font-size:12px;color:#b91e29;line-height:1.5}.error-message:empty,.field-error:empty{display:none}.error-message{margin-top:12px}.invalid{border:1px solid #b91e29!important;background:#fff6f6!important}dialog{border:1px solid #e0e5eb;border-radius:9px;width:560px;max-width:calc(100% - 24px);max-height:90dvh;padding:0;box-shadow:0 20px 90px #14243730;color:#24344a}dialog::backdrop{background:#14243745}dialog form{display:flex;flex-direction:column;max-height:85dvh}dialog header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e7ebf0}dialog .modal-body{padding:20px 22px;overflow:auto}dialog footer{border-top:1px solid #e7ebf0;padding:14px 22px;display:flex;justify-content:flex-end;gap:8px}.icon-button{font-size:22px;border:0;background:transparent;padding:0 5px}dialog p{margin-bottom:12px}.picker-results{display:grid;max-height:50vh;overflow:auto;margin-top:10px}.picker-option{border:0;border-bottom:1px solid #f1f3f6;border-radius:0;text-align:left;padding:10px}.picker-option strong{font-size:12px;font-weight:500}.picker-option small{color:#8b97a7;margin-top:4px}.picker-option.chosen{background:#fff0f1;color:#ad202a}.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.dashboard-card{display:grid;gap:8px;text-align:left;padding:18px}.dashboard-card strong{font-size:26px}.dashboard-card span{font-size:11px;color:#748194}.history-entry{padding:12px 0;border-bottom:1px solid #e8edf1;font-size:12px}.history-entry pre{font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:100;background:#24344a;color:white;box-shadow:0 4px 25px #14243730;padding:12px 20px;border-radius:7px;font-size:12px;max-width:calc(100% - 24px)}#toast.error{background:#a51b25}#toast[hidden]{display:none}.login-page{min-height:100dvh;display:grid;align-content:center;justify-items:center;padding:40px 20px;background:radial-gradient(ellipse at top left,#f7e9eb,transparent 55%),#f7f8fa}.login-brand{text-align:center;margin-bottom:30px}.login-brand .brand{font-size:37px}.login-brand p{font-size:9px;color:#7b8796;letter-spacing:2px;margin-top:10px}.login-card{width:420px;max-width:100%;padding:30px;background:white;border:1px solid #e3e7ed;border-radius:10px;box-shadow:0 10px 40px #24344a08}.login-card>p{color:#8390a1;font-size:12px;margin:12px 0 22px}.login-card>.muted{font-size:10px;margin-bottom:15px}.login-alternatives{display:grid;text-align:center;gap:14px;border-top:1px solid #edf0f4;padding-top:18px;font-size:11px}.login-card .primary{padding:12px}.loading{padding:80px;text-align:center;color:#b91e29}

@media(min-width:1600px){.sales-table-wrap{max-height:calc(100vh - 350px)}.sales-table td{padding:13px 9px}.sales-table{min-width:1400px}}
@media(max-width:1100px){.topbar{padding:0 18px;gap:12px}.brand-title{display:none}.topbar nav{margin-left:0}.account-name{display:none}main{padding:20px 18px}.head-actions{flex-wrap:wrap;justify-content:flex-end}.stage-name{white-space:normal;font-size:10px}.pipeline button{padding:13px 10px;grid-template-columns:16px 1fr;gap:5px}.pipeline strong{font-size:23px}.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:899px){.topbar{height:auto;min-height:57px;padding:12px 16px;gap:15px;flex-wrap:wrap}.brand{font-size:24px}.topbar nav{order:3;width:100%;border-top:1px solid #eef1f4;padding-top:8px;gap:4px;overflow-x:auto}.topbar nav button{white-space:nowrap;padding:8px 10px}.account-menu{margin-left:auto}.account-name{display:block}.account-name small{font-size:8px}.menu{top:49px}.demo-bar{padding:6px 16px;font-size:10px;gap:12px}.demo-bar>span{max-width:60%}main{padding:17px 12px 28px}.workspace-head{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:14px}.workspace-head h1{font-size:21px}.head-actions{justify-content:flex-start;width:100%;gap:3px}.head-actions button{font-size:10px;padding:6px 7px}.head-actions .field{width:100%;max-width:100%;flex-basis:100%;margin-bottom:5px}.pipeline{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:13px}.pipeline button{padding:11px 9px;grid-template-columns:15px 1fr;gap:3px}.pipeline button:nth-child(3){border-right:0}.pipeline button:nth-child(-n+3){border-bottom:1px solid #e9edf1}.pipeline strong{font-size:22px}.stage-name{font-size:10px}.stage-index{font-size:9px}.toolbar{padding:10px;gap:6px}.toolbar .search{flex-basis:100%;max-width:none}.toolbar button{padding:7px 9px;font-size:10px}.toolbar>.field>span{display:none}.toolbar select{font-size:10px;max-width:145px;padding:7px 6px}.toolbar .primary{margin-left:auto}.workspace-body{border-radius:6px}.mobile-only{display:block}.sales-table-wrap{display:none}.force-table .sales-table-wrap{display:block;max-height:70vh}.force-table .mobile-cards{display:none}.mobile-cards{display:grid;gap:10px;padding:0 9px 10px;background:#f7f8fa}.deal-card{border:1px solid #e1e6ed;background:white;border-radius:6px;padding:12px}.deal-card.selected{border-color:#cb7980;background:#fffafb}.card-top{display:flex;align-items:center;gap:7px;margin-bottom:10px}.card-top>.cell-button{width:auto;max-width:80%}.card-top>.quiet{margin-left:auto;font-size:10px;padding:3px 6px}.status-pill{font-size:9px;padding:4px 7px}.card-identity{display:grid;margin:3px 0 12px}.card-identity .customer{font-size:14px}.card-identity .product{font-size:12px;line-height:1.5}.card-identity .supplier{font-size:11px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding-top:10px;border-top:1px solid #f0f2f5}.card-grid>div>span,.card-grid>label>span{display:block;color:#97a1af;font-size:9px;margin-bottom:4px}.card-grid .cell-input{font-size:12px;padding:1px 0;min-height:25px}.card-grid .cell-button{font-size:11px}.card-grid .text-cell{font-size:11px;max-height:none;overflow:visible}.card-grid .date-cell{font-size:11px}.card-grid .currency{font-size:9px;margin-right:5px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-choice summary{font-size:10px}.choice-list{min-width:220px;max-width:calc(100vw - 52px)}.filter-choice:nth-child(even) .choice-list{right:-1px;left:auto}.filter-grid>.field{font-size:11px}.filter-grid>.field select{max-width:100%;width:100%}.filter-panel{padding:10px}.table-footer{font-size:9px;padding:8px 10px;gap:6px}.table-footer #saveStatus{font-size:9px}.selection-bar{font-size:10px}.selection-bar button{font-size:10px}.member-grid{grid-template-columns:1fr}.member-card{padding:15px}.page-head{align-items:flex-start;gap:10px}.page-head h1{font-size:21px}.page-head p{font-size:11px}.page-head .primary{font-size:10px;white-space:nowrap}.reference-tabs{gap:5px}.reference-tabs button{font-size:10px;padding:7px}.reference-table{min-width:650px}.people-table{min-width:640px}.toolbar>.toggle{margin-left:0;font-size:10px}.toolbar .search-input{flex-basis:100%;max-width:none}.reference-panel .toolbar>.field{width:calc(50% - 5px)}.drawer{width:100%;height:100dvh}.drawer>header{padding:16px 18px}.drawer-scroll{padding:0 18px 14px}.drawer section{padding:17px 0}.form-grid{gap:12px}.drawer footer{padding:12px 18px}.drawer input,.drawer textarea,.drawer select{font-size:16px}.drawer .picker-field{font-size:13px;min-height:39px}.drawer textarea{font-size:14px}.drawer footer>.muted{font-size:9px;max-width:35%}.drawer h2{font-size:19px}dialog{max-width:calc(100% - 16px);border-radius:8px}dialog header{padding:15px 17px}dialog .modal-body{padding:16px 17px}dialog footer{padding:12px 17px}dialog h2{font-size:17px}.picker-results{max-height:55vh}.picker-option{padding:13px 8px}.account-panel{padding:19px}.backup-row{gap:9px;font-size:11px;flex-wrap:wrap}.backup-row span{flex-basis:100%}.login-card{padding:25px}.login-page{padding:24px 15px}.login-brand{margin-bottom:22px}}
@media(max-width:360px){.toolbar select{max-width:116px}.toolbar button{padding:6px 7px}.head-actions button{font-size:9px}.stage-name{font-size:9px}.pipeline button{grid-template-columns:1fr}.stage-index{display:none}.pipeline strong{grid-column:1}.brand{font-size:23px}.account-name{max-width:130px}.card-grid{gap:10px}.form-grid{gap:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.login-page{grid-template-columns:minmax(0,1fr)}.login-card{min-width:0;width:min(420px,100%)}
@media(max-width:899px){.workspace-body>.toolbar .search{order:0;flex:1 1 calc(100% - 65px);min-width:150px}.workspace-body>.toolbar>.primary{order:1;margin-left:0}.workspace-body>.toolbar>button:not(.primary),.workspace-body>.toolbar>.field{order:2}.card-grid>div>span,.card-grid>label>span{font-size:10px}}

.owner-cell{min-width:115px}.owner-cell small{display:block;color:#737b86;font-size:10px}.card-owner{font-size:11px;color:#68717d;margin:4px 0}.topbar nav{overflow-x:auto;white-space:nowrap}.topbar nav button{font-size:12px}
@media(max-width:600px){
 .topbar nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:3px;width:100%}.topbar nav button{padding:8px 6px;font-size:11px}
 .page-head{flex-direction:column;align-items:stretch;gap:12px}.page-head>.actions{justify-content:flex-start;flex-wrap:wrap}.page-head p{margin-bottom:0}
 .people-table{min-width:0;width:100%}.people-table thead{display:none}.people-table tbody{display:grid;gap:9px}.people-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e1e5ea;border-radius:8px;padding:10px;background:#fff}.people-table td{min-width:0;border:0;padding:4px!important;white-space:normal}.people-table td:first-child,.people-table td:last-child{grid-column:1/-1}.people-table td:nth-child(2):before{content:'Role';display:block;font-size:10px;color:#77818d}.people-table td:nth-child(3):before{content:'Workspace';display:block;font-size:10px;color:#77818d}.people-table td:nth-child(4):before{content:'Access';display:block;font-size:10px;color:#77818d}.people-table .actions{flex-wrap:wrap;gap:6px}.people-table small{overflow-wrap:anywhere}
}

.individual .sales-table{min-width:1790px;table-layout:fixed}.individual .sales-table th[data-column="select"]{width:32px}.individual .sales-table th[data-column="details"]{width:38px}.individual .sales-table th[data-column="status"]{width:180px}.individual .sales-table th[data-column="identity"]{width:260px}.individual .sales-table th[data-column="quantity"]{width:100px}.individual .sales-table th[data-column="fob"]{width:245px}.individual .sales-table th[data-column="commission"]{width:110px}.individual .sales-table th[data-column="terms"]{width:180px}.individual .sales-table th[data-column="references"]{width:200px}.individual .sales-table th[data-column="notes"]{width:240px}.individual .sales-table th[data-column="activity"],.individual .sales-table th[data-column="reminder"]{width:115px}.individual .sales-table th:last-child,.individual .sales-table td:last-child{display:none}.individual .sales-table td{height:68px}.individual .status-pill{display:block;border-radius:18px;padding:9px 12px}.individual .sales-table .cell-input{font-size:12px}.individual .card-owner{display:none}.individual .toolbar>.field,.individual .toolbar>[data-action=direction]{display:none}.individual .pipeline{gap:6px;background:transparent;border:0}.individual .pipeline button{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:8px}.individual .pipeline .stage-index{display:none}.individual .pipeline strong{font-size:11px;background:#eef1f5;border-radius:12px;padding:2px 7px}.individual .pipeline .stage-name{font-size:12px}.individual .pipeline .chosen{border-bottom:3px solid #b80c36}.individual .sales-table .fob{display:flex;align-items:center;gap:10px}.individual .sales-table .fob .cell-input{text-align:right;font-weight:600;min-width:0}.individual .details-cell button{padding:4px}
@media(min-width:761px){.individual .sales-table th[data-column="select"],.individual .sales-table td[data-column="select"]{position:sticky;left:0;z-index:2;background:#fff}.individual .sales-table th[data-column="details"],.individual .sales-table td[data-column="details"]{position:sticky;left:32px;z-index:2;background:#fff}.individual .sales-table th[data-column="status"],.individual .sales-table td[data-column="status"]{position:sticky;left:70px;z-index:2;background:#fff}.individual .sales-table th[data-column="identity"],.individual .sales-table td[data-column="identity"]{position:sticky;left:250px;z-index:2;background:#fff;box-shadow:3px 0 4px #1111}}

/* Workspace UI v11. Presentation only; Teams fields and workflows are unchanged. */
:root{--ws-ink:#24313f;--ws-muted:#5f6c7b;--ws-line:#dfe4e9;--ws-red:#b51f32;--ws-red-soft:#fff2f3;--ws-surface:#fff;--ws-bg:#f4f6f8}
html{color:var(--ws-ink);background:var(--ws-bg);font-feature-settings:'cv11','ss01';font-optical-sizing:auto}
button,input,select,textarea{transition:background-color .12s,border-color .12s,box-shadow .12s}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ws-red);outline-offset:3px}
.ui-icon{display:inline-block;flex:none;vertical-align:middle}
.topbar{height:62px;padding:0 24px;gap:16px}
.topbar nav button{border-radius:6px;padding:9px 12px}
.account-name{font-size:12px;color:var(--ws-ink)}
.account-name small{font-size:10px;color:var(--ws-muted)}
.brand-title{color:#4b5968}.brand-title span{color:var(--ws-muted)}
.sales-workspace{padding:22px 24px 28px;max-width:1920px}
.sales-workspace .workspace-head{margin-bottom:18px;gap:16px}
.sales-workspace .eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--ws-muted);margin-bottom:5px}
.sales-workspace h1{font-size:24px;letter-spacing:-.7px;line-height:1.25;font-weight:650}
.workspace-caption{font-size:12px;color:var(--ws-muted);margin-top:5px}
.sales-workspace .head-actions{gap:6px}
.sales-workspace .head-actions button{font-size:12px;min-height:34px;border:1px solid transparent;padding:7px 10px;white-space:nowrap;border-radius:6px}
.sales-workspace .head-actions button:hover{border-color:var(--ws-line);background:white}
.sales-workspace .head-actions button.active{background:var(--ws-red-soft);border-color:#efccd1;color:#a21629}
.sales-workspace .head-actions b{font-variant-numeric:tabular-nums;font-size:11px;font-weight:650;margin-left:5px}
/* A stage selector, not a progress bar: no completed state is implied. */
.sales-workspace .pipeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;overflow:visible;border:0;background:transparent;margin-bottom:18px}
.sales-workspace .pipeline button{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;column-gap:9px;row-gap:0;min-height:64px;padding:12px;border:1px solid var(--ws-line);border-radius:9px;background:#fff;box-shadow:0 1px 2px #24313f04;text-align:left;position:relative}
.sales-workspace .pipeline button:hover{border-color:#c59199;background:#fffafb}
.sales-workspace .pipeline .stage-index{display:flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;border-radius:50%;border:1px solid #dce2e8;background:#f6f8fa;color:#596675;font-size:11px;font-weight:600;grid-column:1;grid-row:1}
.sales-workspace .pipeline .stage-name{font-size:12px;line-height:1.35;font-weight:600;color:#455260;white-space:normal;grid-column:2;grid-row:1}
.sales-workspace .pipeline strong{font-size:19px;letter-spacing:-.5px;line-height:1.2;font-weight:650;color:#25323f;background:transparent;padding:0;border-radius:0;grid-column:3;grid-row:1;font-variant-numeric:tabular-nums}
.sales-workspace .pipeline .chosen{background:var(--ws-red-soft);border:1px solid #d38b96;box-shadow:inset 0 -3px var(--ws-red)}
.sales-workspace .pipeline .chosen .stage-index{background:var(--ws-red);color:white;border-color:var(--ws-red)}
.sales-workspace .pipeline .chosen .stage-name,.sales-workspace .pipeline .chosen strong{color:#a1182b}
.sales-workspace .workspace-body{border:1px solid var(--ws-line);border-radius:10px;box-shadow:0 2px 6px #26324403;overflow:hidden}
.sales-workspace .toolbar{padding:12px 14px;gap:8px;align-items:center;border-bottom:1px solid #e8ecf0}
.sales-workspace .toolbar .search{flex:1;max-width:520px;min-width:160px}
.sales-workspace .toolbar .search input{min-height:38px;font-size:13px;background:#f8fafb;border-color:var(--ws-line);padding-left:35px;border-radius:6px}
.sales-workspace .toolbar .search input::placeholder{color:#667383}
.sales-workspace .toolbar .search svg{color:#687788;width:17px;height:17px}
.sales-workspace .toolbar>button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;border-radius:6px;white-space:nowrap}
.sales-workspace .toolbar>.primary{margin-left:auto;font-weight:600;padding:9px 14px;background:var(--ws-red);border-color:var(--ws-red)}
.sales-workspace .toolbar>.primary:hover{background:#96192a}
.sales-workspace .toolbar>.field{display:flex;flex-direction:row;gap:5px;align-items:center;min-width:0}
.sales-workspace .toolbar>.field>span{display:none}
.sales-workspace .toolbar select{min-height:38px;font-size:12px;width:150px;padding:7px 9px}
.sales-workspace .toolbar>[data-action=direction]{display:inline-flex;width:34px;padding:4px}
.sales-workspace .toolbar>.mobile-only{display:none}
.list-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;min-height:52px}
.list-heading{display:flex;align-items:baseline;gap:10px;min-width:0}
.list-heading h2{font-size:14px;line-height:1.4;letter-spacing:-.15px;font-weight:650}
#visibleCount{font-size:12px;color:var(--ws-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.view-switch{display:flex;gap:2px;padding:3px;background:#f0f3f6;border:1px solid #e5e9ee;border-radius:7px;flex:none}
.view-switch button{border:1px solid transparent;min-height:28px;padding:4px 10px;font-size:11px;background:transparent;color:#536171;border-radius:4px}
.view-switch button.selected{background:white;color:var(--ws-ink);border-color:#dfe4e9;box-shadow:0 1px 3px #2632440a;font-weight:600}
.active-filter-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 14px 10px}
.filter-chip{font-size:11px;min-height:30px;padding:5px 8px;display:flex;align-items:center;gap:8px;max-width:100%;text-align:left;overflow-wrap:anywhere;color:#8d1d2b;background:#fff4f5;border-color:#ecd0d5}
.filter-chip span{font-size:16px}.active-filter-list>.quiet{font-size:11px;color:var(--ws-muted)}
.sales-workspace .sales-table-wrap{max-height:calc(100dvh - 340px);min-height:240px;scrollbar-width:auto;scrollbar-color:#b7c1cc #eef1f5}
.sales-workspace .sales-table{font-size:12px}
.sales-workspace .sales-table th{padding:11px 10px;background:#f7f9fb;color:#536170;font-size:11px;font-weight:600;border-bottom-color:#dce3e9}
.sales-workspace .sales-table td{padding:10px;vertical-align:top;height:auto;border-bottom-color:#e9edf1}
.sales-workspace .sales-table td input{width:100%}
.sales-workspace .sales-table td input[type=checkbox]{width:16px;height:16px}
.sales-workspace .sales-table .check-col{padding-left:10px;padding-right:6px}
.sales-workspace .sales-table td .cell-button{font-size:12px;color:#3f4c5b;padding:3px 2px;line-height:1.4}
.sales-workspace .sales-table .customer{font-size:13px;font-weight:650;color:#233443;line-height:1.4}
.sales-workspace .sales-table .product{font-size:12px;color:#465666;margin-top:1px}
.sales-workspace .sales-table .supplier{font-size:11px;color:#63717f}
.sales-workspace .sales-table .cell-input{font-size:12px;height:30px;min-height:30px;border-radius:4px;padding:4px;font-variant-numeric:tabular-nums}
.sales-workspace .sales-table .cell-input:hover,.sales-workspace .cell-button:hover,.sales-workspace .text-cell:hover,.sales-workspace .date-cell:hover{background:#eef2f6}
.sales-workspace .sales-table .cell-input:focus{background:white;border-color:#b51f32}
.sales-workspace .status-pill{display:inline-block;max-width:100%;font-size:11px;line-height:1.4;font-weight:550;padding:5px 8px;border-radius:5px;text-align:left}
.sales-workspace .status-pill.blue{background:#eaf1fb;color:#355d92}
.sales-workspace .status-pill.teal{background:#e6f3ef;color:#246b58}
.sales-workspace .status-pill.amber{background:#fff2d9;color:#805c15}
.sales-workspace .status-pill.green{background:#eaf4e9;color:#3d6c36}
.sales-workspace .status-pill.rose{background:#fcebef;color:#9d354c}
.sales-workspace .placeholder{color:#677684;font-weight:400}
.sales-workspace .text-cell{font-size:12px;line-height:1.55;color:#4f5e6d;max-height:70px;padding:4px;border-radius:4px}
.sales-workspace .date-cell{font-size:12px;line-height:1.5;color:#4c5c6c;padding:5px 4px;border-radius:4px;font-variant-numeric:tabular-nums}
.sales-workspace .date-cell.overdue{color:#a73124;background:#fff2ee}
.sales-workspace .commission-cell label>span{font-size:10px;font-weight:600;color:#607080}
.sales-workspace .sales-table .fob{gap:6px;align-items:flex-start}
.sales-workspace .sales-table .fob .currency{width:32px;min-width:32px;font-size:10px;font-weight:650;color:#596878;padding-top:8px}
.sales-workspace .sales-table .fob .cell-input{text-align:right;min-width:0;font-weight:550}
.sales-workspace .details-cell button{display:flex;align-items:center;justify-content:center;min-height:32px;width:30px;padding:4px;color:#657486;border:1px solid #dfe5eb;background:#fff}
.sales-workspace .details-cell button:hover{color:var(--ws-red);border-color:#c59199;background:#fff5f6}
.sales-workspace .table-footer{padding:9px 14px;gap:10px;font-size:11px;color:var(--ws-muted);background:#fcfdfe}
.sales-workspace .table-footer #saveStatus{font-size:11px;color:#476653}
.sales-workspace .table-footer button{font-size:11px;min-height:28px}
.sales-workspace .selection-bar{padding:10px 14px;font-size:12px;gap:8px}
.sales-workspace .selection-bar button{font-size:12px;min-height:34px}
.individual .sales-table{min-width:1660px}
.individual .sales-table th[data-column="select"]{width:32px}.individual .sales-table th[data-column="details"]{width:42px}
.individual .sales-table th[data-column="status"]{width:160px}.individual .sales-table th[data-column="identity"]{width:240px}
.individual .sales-table th[data-column="quantity"]{width:95px}.individual .sales-table th[data-column="fob"]{width:200px}
.individual .sales-table th[data-column="commission"]{width:100px}.individual .sales-table th[data-column="terms"]{width:145px}
.individual .sales-table th[data-column="references"]{width:170px}.individual .sales-table th[data-column="notes"]{width:230px}
.individual .sales-table th[data-column="activity"],.individual .sales-table th[data-column="reminder"]{width:123px}
.individual .sales-table td{min-width:0;max-width:none;width:auto}
.individual.focused-columns .sales-table{min-width:1160px}
.individual.focused-columns .sales-table th[data-column="commission"],.individual.focused-columns .sales-table td[data-column="commission"],.individual.focused-columns .sales-table th[data-column="terms"],.individual.focused-columns .sales-table td[data-column="terms"],.individual.focused-columns .sales-table th[data-column="references"],.individual.focused-columns .sales-table td[data-column="references"],.individual.focused-columns .sales-table th[data-column="activity"],.individual.focused-columns .sales-table td[data-column="activity"]{display:none}
@media(min-width:900px){
 .individual .sales-table th:nth-child(-n+4),.individual .sales-table td:nth-child(-n+4){position:sticky;background:#fff;z-index:2}
 .individual .sales-table th[data-column="select"],.individual .sales-table td[data-column="select"]{left:0}
 .individual .sales-table th[data-column="details"],.individual .sales-table td[data-column="details"]{left:32px}
 .individual .sales-table th[data-column="status"],.individual .sales-table td[data-column="status"]{left:74px}
 .individual .sales-table th[data-column="identity"],.individual .sales-table td[data-column="identity"]{left:234px;box-shadow:4px 0 6px #22314107}
 .individual .sales-table th:nth-child(-n+4){z-index:3;background:#f7f9fb}
 .sales-workspace .sales-table tr:hover>td{background:#f8fafc}.sales-workspace .sales-table tr.selected>td{background:#fff3f5}
}
/* Deal editor: clear sections and consistent 40px form controls. */
.drawer{width:560px;color:var(--ws-ink)}
.drawer>header{padding:18px 22px;background:#fafbfd}
.drawer>header .eyebrow{color:var(--ws-red);font-size:11px;letter-spacing:.8px}
.drawer h2{font-size:21px}.drawer>header button{min-height:36px;font-size:12px}
.drawer-scroll{padding:0 22px 16px}.drawer section{padding:18px 0}
.drawer section h3{font-size:11px;letter-spacing:1px;color:#526170;font-weight:650;margin-bottom:12px}
.drawer .field>span,dialog .field>span{font-size:12px;color:#4d5c6b;font-weight:550}
.drawer .field input,.drawer .picker-field,.drawer select,dialog .field input,dialog .field select{min-height:40px;font-size:13px;border-color:#d6dfe7;border-radius:6px}
.drawer textarea,dialog textarea{font-size:13px;border-color:#d6dfe7}
.drawer .form-grid{gap:14px}.drawer section:first-child .field:nth-child(2){grid-column:1/-1;grid-row:2}
.drawer .quick-dates button{min-height:32px;font-size:11px;background:#f4f6f8;border:1px solid #e5e9ee;border-radius:5px}
.drawer footer{padding:12px 22px;background:#fafbfd}.drawer footer button,dialog footer button{min-height:38px;font-size:13px}
.drawer footer>.muted{font-size:11px;color:#5e6e7d}
.picker-option{min-height:42px;font-size:13px}.picker-option strong{font-size:13px}.picker-option small{font-size:12px;color:#5c6b7b}
dialog header{padding:16px 20px}dialog .modal-body{padding:18px 20px}dialog h2{font-size:19px}dialog .field{gap:6px}
@media(min-width:900px) and (max-width:1190px){
 .sales-workspace .pipeline button{grid-template-columns:20px minmax(0,1fr);column-gap:6px;padding:10px;min-height:76px}
 .sales-workspace .pipeline strong{grid-column:2;grid-row:2;font-size:18px;margin-top:5px}
 .sales-workspace .pipeline .stage-name{font-size:12px}
 .sales-workspace .toolbar .search{max-width:none}.sales-workspace .toolbar select{width:130px}
 .sales-workspace .workspace-head{align-items:flex-start}.sales-workspace .head-actions{flex-wrap:wrap;justify-content:flex-end}
}
@media(max-width:899px){
 .topbar{padding:10px 14px;gap:10px;min-height:58px;height:auto}.topbar .brand{font-size:25px}.topbar .account-name{font-size:11px}.topbar .account-name small{font-size:9px}
 .topbar nav{padding-top:7px}.topbar nav button{font-size:12px;min-height:38px}
 .topbar nav:has(button:only-child){order:initial;width:auto;border:0;padding:0;margin:0}.topbar nav:has(button:only-child) button{font-size:11px;padding:8px}
 .sales-workspace{padding:18px 14px 24px}.sales-workspace h1{font-size:23px}.workspace-caption{font-size:12px}
 .sales-workspace .workspace-head{gap:12px;margin-bottom:14px}.sales-workspace .head-actions{gap:4px;flex-wrap:wrap}
 .sales-workspace .head-actions button{min-height:36px;font-size:12px;padding:7px 9px}
 .sales-workspace .pipeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:14px}
 .sales-workspace .pipeline button{grid-template-columns:20px minmax(0,1fr) auto;min-height:62px;padding:9px;gap:6px}
 .sales-workspace .pipeline .stage-index{width:20px;height:20px;font-size:10px}
 .sales-workspace .pipeline .stage-name{font-size:12px}.sales-workspace .pipeline strong{font-size:18px}
 .sales-workspace .toolbar{padding:10px;gap:7px;flex-wrap:wrap}
 .sales-workspace .toolbar .search{flex:1 1 calc(100% - 115px);min-width:0;max-width:none;order:0}
 .sales-workspace .toolbar .search input{font-size:16px;min-height:42px;padding-left:31px}
 .sales-workspace .toolbar .search input::placeholder{font-size:13px}
 .sales-workspace .toolbar>.primary{order:1;margin:0;min-height:42px;padding:9px 11px}
 .sales-workspace .toolbar>button:not(.primary),.sales-workspace .toolbar>.field{order:2;min-height:40px}
 .sales-workspace .toolbar>.field{flex:1;margin:0}.sales-workspace .toolbar select{width:100%;min-height:40px;max-width:none;font-size:13px}
 .sales-workspace .toolbar .legend-button{display:none}.sales-workspace .toolbar>.mobile-only{display:inline-flex}
 .list-controls{padding:10px 12px;min-height:46px}.list-heading h2{font-size:14px}.list-heading{gap:8px}.view-switch{display:none}
 .active-filter-list{padding:0 12px 10px}.filter-chip{min-height:36px;font-size:12px}
 .sales-workspace .sales-table-wrap{display:none}.sales-workspace .force-table .sales-table-wrap{display:block;max-height:70dvh}
 .sales-workspace .force-table .sales-table th,.sales-workspace .force-table .sales-table td{position:static}
 .sales-workspace .force-table .sales-table th{position:sticky;top:0}
 .sales-workspace .mobile-cards{display:grid;padding:0 10px 10px;gap:10px;background:#f4f6f8}
 .sales-workspace .force-table .mobile-cards{display:none}
 .sales-workspace .deal-card{border:1px solid #dce3e9;border-radius:8px;padding:12px;background:#fff;box-shadow:0 1px 2px #27324304;min-width:0}
 .sales-workspace .deal-card.selected{border-color:#bc6674;background:#fffafb}
 .sales-workspace .card-top{gap:8px;margin-bottom:7px;min-height:36px}
 .sales-workspace .card-top>input{width:18px;height:18px}
 .sales-workspace .card-top>.cell-button{max-width:calc(100% - 85px);min-height:40px}
 .sales-workspace .card-top>.quiet{min-height:40px;min-width:44px;padding:8px;font-size:12px;color:var(--ws-red);border-color:#e4d3d6;background:#fff9fa}
 .sales-workspace .card-identity{margin:0 0 12px;gap:1px}
 .sales-workspace .card-identity .cell-button{min-height:32px;padding:5px 2px;line-height:1.4}
 .sales-workspace .card-identity .customer{font-size:15px;color:#243444;font-weight:650}
 .sales-workspace .card-identity .product{font-size:13px;color:#435567}
 .sales-workspace .card-identity .supplier{font-size:12px;color:#5f6f7e}
 .sales-workspace .card-grid{gap:9px 12px;padding-top:12px;border-color:#e2e8ee;min-width:0}
 .sales-workspace .card-grid>div,.sales-workspace .card-grid>label{min-width:0}
 .sales-workspace .card-grid>div>span,.sales-workspace .card-grid>label>span{font-size:11px;color:#5d6c7c;font-weight:500;margin-bottom:3px}
 .sales-workspace .card-grid .cell-input{font-size:16px;min-height:40px;height:40px;padding:6px;border:1px solid #e5e9ef;background:#fafbfd;width:100%;min-width:0}
 .sales-workspace .card-grid .cell-button,.sales-workspace .card-grid .text-cell,.sales-workspace .card-grid .date-cell{font-size:13px;min-height:40px;line-height:1.5;padding:8px;background:#fafbfd;border:1px solid #e5e9ef;border-radius:5px;max-height:none;width:100%;overflow-wrap:anywhere}
 .sales-workspace .card-grid .date-cell.overdue{color:#a73124;background:#fff2ee;border-color:#f2d5cd}
 .sales-workspace .card-grid .fob{display:flex;gap:4px;min-width:0}
 .sales-workspace .card-grid .currency{flex:0 0 38px;width:38px;min-width:38px;font-size:11px;padding:8px 4px}
 .sales-workspace .card-owner{font-size:12px}.sales-workspace.individual .card-owner{display:none}
 .sales-workspace .table-footer{flex-wrap:wrap;padding:8px 12px;gap:8px;font-size:11px}.sales-workspace .table-footer #saveStatus{font-size:11px}
 .sales-workspace .selection-bar button{min-height:40px}.sales-workspace .selection-bar{font-size:12px}
 .drawer{width:min(560px,100%);height:100dvh}.drawer>header{padding:15px 16px}.drawer-scroll{padding:0 16px 16px}.drawer footer{padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .drawer input,.drawer textarea,.drawer select,dialog input,dialog textarea,dialog select{font-size:16px!important}.drawer .picker-field{font-size:14px;min-height:44px}.drawer footer button,dialog footer button{min-height:44px}.drawer .quick-dates button{min-height:36px;font-size:12px}
 dialog .form-grid{gap:12px}.drawer footer>.muted{font-size:11px;max-width:40%}
}
@media(max-width:480px){
 .topbar .account-name{display:none}.topbar .brand-title{display:none}.topbar .avatar{width:32px;height:32px}
 .sales-workspace{padding:16px 10px 20px}.sales-workspace h1{font-size:21px}
 .sales-workspace .pipeline button{grid-template-columns:18px minmax(0,1fr);min-height:72px;padding:9px 8px;gap:4px}
 .sales-workspace .pipeline .stage-index{height:18px;width:18px;font-size:10px}.sales-workspace .pipeline .stage-name{font-size:11px;line-height:1.35}
 .sales-workspace .pipeline strong{grid-column:2;grid-row:2;font-size:18px;margin-top:3px}
 .sales-workspace .head-actions{gap:1px}.sales-workspace .head-actions button{font-size:11px;padding:7px 6px}
 .sales-workspace .toolbar>.mobile-only{font-size:11px;padding:8px}.sales-workspace .toolbar select{font-size:12px}
 .sales-workspace .toolbar [data-action=direction]{width:28px;min-width:28px}
 .sales-workspace .toolbar>button[data-action=filters]{padding:8px;font-size:12px}.sales-workspace .toolbar .search input::placeholder{font-size:12px}
}
@media(prefers-reduced-motion:reduce){button,input,select,textarea{transition:none}}
/* Keep just deal identity pinned, so scaled column widths never overlap. */
@media(min-width:900px){
 .individual .sales-table td:nth-child(-n+3){position:static}
 .individual .sales-table th:nth-child(-n+3){left:auto}
 .individual .sales-table td[data-column="identity"],.individual .sales-table th[data-column="identity"]{left:0}
}
@media(max-width:899px){
 .sales-workspace .card-grid>div:nth-child(7){order:-2}
 .sales-workspace .card-grid>div:nth-child(6){order:-1}
}
@media(max-width:480px){
 .sales-workspace .pipeline button{min-height:62px;padding:7px 8px}
 .sales-workspace .pipeline strong{font-size:16px;margin-top:1px}
}
@media(max-width:899px){.topbar nav:has(button:only-child){display:flex;flex:none}.sales-workspace .toolbar .search input::placeholder{color:transparent}.sales-workspace .toolbar .search:after{content:'Search deals…';pointer-events:none;position:absolute;left:32px;top:50%;transform:translateY(-50%);font-size:13px;color:#667383}.sales-workspace .toolbar .search:has(input:not(:placeholder-shown)):after{display:none}}
@media(max-width:360px){
 .sales-workspace .pipeline{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .sales-workspace .pipeline button{grid-template-columns:18px minmax(0,1fr) auto;min-height:50px;padding:8px;column-gap:5px}
 .sales-workspace .pipeline strong{grid-column:3;grid-row:1;margin:0;font-size:16px}
 .sales-workspace .pipeline .stage-name{font-size:11px}
 .sales-workspace .head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .sales-workspace .head-actions button{text-align:left;border-color:#e2e7ed;background:white}
 .sales-workspace .toolbar>.field{min-width:112px}.sales-workspace .toolbar>.mobile-only{display:inline-flex}
 .sales-workspace .toolbar>[data-action=direction]{display:none}
}
@media(max-width:899px){.sales-workspace:has(.force-table) .view-switch{display:flex}.sales-workspace .list-controls{flex-wrap:wrap}}
/* v12: one page scroll, no frozen columns, vertically centred compact rows. */
.sales-workspace .sales-table-wrap,.sales-workspace .force-table .sales-table-wrap{max-height:none;min-height:0;overflow-x:auto;overflow-y:hidden}
.sales-workspace .sales-table th,.sales-workspace .sales-table td{position:static!important;left:auto!important;box-shadow:none!important}
.sales-workspace .sales-table td{vertical-align:middle;padding:7px 6px}
.sales-workspace .sales-table th{padding:9px 6px;line-height:1.4}
.individual .sales-table th[data-column="details"],.individual .sales-table td[data-column="details"]{display:none}
.individual .sales-table th[data-column="select"]{width:36px}
.individual .sales-table .check-col{padding:6px;text-align:center}
.individual .sales-table .check-col>input{display:block;margin:3px auto 7px}
.individual .sales-table .check-col>button{display:flex;align-items:center;justify-content:center;width:26px;height:28px;padding:3px;margin:auto;border-color:#dde3e8;color:#647484;background:#fff}
.individual .sales-table{min-width:1500px}
.individual .sales-table th[data-column="status"]{width:165px}.individual .sales-table th[data-column="identity"]{width:230px}
.individual .sales-table th[data-column="quantity"]{width:85px}.individual .sales-table th[data-column="fob"]{width:190px}
.individual .sales-table th[data-column="commission"]{width:85px}.individual .sales-table th[data-column="terms"]{width:130px}
.individual .sales-table th[data-column="references"]{width:140px}.individual .sales-table th[data-column="notes"]{width:200px}
.individual .sales-table th[data-column="activity"]{width:105px}.individual .sales-table th[data-column="reminder"]{width:130px}
.sales-workspace .sales-table .status-cell>.cell-button{display:block;width:100%;padding:0}
.sales-workspace .sales-table .status-pill{display:flex;align-items:center;justify-content:center;text-align:center;min-height:54px;width:100%;font-size:12px;line-height:1.45;padding:8px;border-radius:6px}
.sales-workspace .sales-table .text-cell{max-height:none;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.sales-workspace .reminder-cell{display:block;width:100%;text-align:center;white-space:normal}
.sales-workspace .reminder-cell>span{white-space:nowrap}
.reminder-countdown{display:block;font-size:11px;line-height:1.5;font-weight:550;margin-top:4px;color:#5b6b7b}
.reminder-countdown.overdue{color:#a73124}.reminder-countdown.today{color:#805c15}.reminder-countdown.upcoming{color:#42644a}
.sales-workspace .reminder-cell.today{background:#fff5df;color:#805c15}.sales-workspace .reminder-cell.overdue{background:#fff2ee;color:#a73124}
.focus-stage{display:none;font-size:10px;color:#5c6c7b;margin-bottom:5px;text-align:center}
.focused-columns .focus-stage{display:block}
.individual.focused-columns .sales-table{min-width:820px}
.individual.focused-columns .sales-table th[data-column="quantity"],.individual.focused-columns .sales-table td[data-column="quantity"],.individual.focused-columns .sales-table th[data-column="fob"],.individual.focused-columns .sales-table td[data-column="fob"]{display:none}
.individual.focused-columns .sales-table th[data-column="notes"]{width:260px}
.focus-options{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:0 14px 12px}
.focus-options button{font-size:11px;min-height:32px;padding:6px 10px;border-radius:6px}
.missing-field{outline:1px solid #c89435!important;outline-offset:-1px;background:#fff9ea!important;border-radius:4px}
.missing-badge{display:inline-block!important;font-size:10px!important;padding:2px 5px!important;min-height:20px!important;margin-top:4px;background:#fff5dd!important;border:1px solid #edcf92!important;color:#77520c!important;border-radius:4px;line-height:1.3}
.missing-summary{background:#fff8e8;border:1px solid #ebd29d;color:#77520c;border-radius:7px;padding:10px 12px;margin-top:14px;font-size:12px;line-height:1.5}
.missing-summary p{margin:3px 0}.missing-summary small{font-size:11px;color:#6f6249}
.floating-table-heading{position:fixed;top:0;z-index:12;overflow:hidden;background:#f7f9fb;box-shadow:0 3px 8px #24313f14;pointer-events:none}
.floating-table-heading[hidden]{display:none}.floating-header-table{border-collapse:separate;border-spacing:0;table-layout:fixed}
.floating-header-table th{padding:9px 6px;font-size:11px;font-weight:600;text-align:left;color:#536170;background:#f7f9fb;border-bottom:1px solid #dce3e9;line-height:1.4;white-space:nowrap}
@media(max-width:899px){
 .sales-workspace .view-switch{display:flex}.sales-workspace .list-controls{flex-wrap:wrap}.focus-options{padding:0 10px 10px;gap:5px}.focus-options button{min-height:38px;font-size:12px;padding:6px 9px}
 .sales-workspace .card-grid .reminder-cell{padding:5px 8px}.reminder-countdown{font-size:12px}
 .sales-workspace.focused-columns .card-grid>*{display:none}
 .sales-workspace.focused-columns .card-grid>div:nth-child(7),.sales-workspace.focused-columns .card-grid>div:nth-child(9){display:block;grid-column:1/-1}
 .sales-workspace.focused-columns .card-owner{display:block}.sales-workspace.focused-columns .card-owner button{display:none}
 .sales-workspace .missing-badge{min-height:30px!important;font-size:11px!important;justify-self:start}
}
.sales-workspace .fob{flex-direction:row-reverse!important;justify-content:flex-end}.sales-workspace .fob .cell-input{flex:1;text-align:right}.sales-workspace .unit-selector{display:inline-flex;width:auto!important;min-width:36px;padding:5px!important;border:1px solid #dce3e9!important;border-radius:4px;margin-left:4px;vertical-align:middle}.sales-workspace .sales-table td[data-column="quantity"]{white-space:nowrap}.sales-workspace .sales-table td[data-column="quantity"] .cell-input{width:calc(100% - 48px);min-width:40px}.individual .sales-table th[data-column="quantity"]{width:135px}.sales-workspace .card-grid>label:first-child .cell-input{width:calc(100% - 52px)}

/* v14: compact commercial values with clear column boundaries. */
.sales-workspace .cell-input{font-variant-numeric:tabular-nums}
.sales-workspace .cell-input::placeholder{color:#7a8793;font-size:11px;font-weight:400}
.sales-workspace .quantity-pair{display:flex;align-items:center;justify-content:flex-end;gap:4px;width:100%}
.sales-workspace .quantity-pair .cell-input{flex:1 1 0!important;width:0!important;min-width:0!important;text-align:right;padding:5px 2px}
.sales-workspace .quantity-pair .unit-selector{flex:0 0 auto;margin:0;min-width:30px;padding:5px 4px!important}
.sales-workspace .fob{gap:4px;align-items:center}
.sales-workspace .fob .cell-input{min-width:0;padding:5px 2px}
.sales-workspace .fob .currency{flex:0 0 auto;width:auto;min-width:32px;padding:5px 3px}
.sales-workspace .sales-table :is(th,td):nth-child(n+5):nth-child(-n+8),
.floating-header-table th:nth-child(n+5):nth-child(-n+8){border-left:1px solid #e1e6eb;padding-left:8px;padding-right:8px}
.sales-workspace .sales-table :is(th,td):nth-child(5),.floating-header-table th:nth-child(5){border-left:2px solid #d4dce4}
.sales-workspace .sales-table :is(th,td):nth-child(8),.floating-header-table th:nth-child(8){border-right:2px solid #d4dce4}
.sales-workspace .sales-table th:nth-child(n+5):nth-child(-n+8),.floating-header-table th:nth-child(n+5):nth-child(-n+8){background:#eef2f5}
.sales-workspace .commission-cell label{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:3px}
.sales-workspace .commission-cell label+label{margin-top:4px}
.sales-workspace .commission-cell .cell-input{text-align:right;min-width:0;width:100%;padding:5px 2px}
.sales-workspace .commission-cell label>span{font-size:10px;color:#71808e}
.sales-workspace .sales-table td[data-column="terms"]>.cell-button{text-align:left;width:100%;line-height:1.5}
.sales-workspace .sales-table td[data-column="activity"] .date-cell{white-space:nowrap;font-size:11px}
.individual .sales-table th[data-column="activity"]{width:130px}
.individual .sales-table th[data-column="reminder"]{width:145px}
.commercial-form{column-gap:8px}
.commercial-form input[name=quantity],.commercial-form input[name=totalFOB],.commercial-form input[name=c1],.commercial-form input[name=c2]{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:899px){
 .sales-workspace .card-grid>label:nth-child(-n+4),.sales-workspace .card-grid>div:nth-child(2){background:#f5f7f9;border:1px solid #e0e6ec;border-radius:6px;padding:8px;min-width:0}
 .sales-workspace .card-grid .cell-input{font-variant-numeric:tabular-nums}
}
.individual .sales-table th[data-column="commission"]{width:112px}
.commercial-form .field:has([data-action="drawerPick:paymentTerms"]){grid-column:1/-1}
/* Central reference lists: dense editable grid and staged bulk changes. */
.reference-editor .page-head{margin-bottom:12px}.reference-editor .page-head p{margin:4px 0;font-size:12px;color:#657585}
.reference-editor .reference-tabs{gap:4px;flex-wrap:wrap}.reference-editor .reference-tabs button{font-size:12px;min-height:34px;padding:6px 10px}
.reference-editor .toolbar{padding:9px 12px;gap:7px;flex-wrap:wrap}.reference-editor .toolbar button{padding:6px 10px;min-height:32px;font-size:12px}
.reference-editor .ref-actions{background:#f8fafb;border-bottom:1px solid #e1e6eb}
.reference-grid-scroll{overflow:auto;max-height:calc(100dvh - 340px);min-height:220px;border-top:1px solid #dde4eb}
.reference-grid{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;table-layout:auto}
.reference-grid th{position:sticky;top:0;z-index:2;background:#eef2f5;padding:6px;border-right:1px solid #dce3e9;border-bottom:1px solid #dce3e9;text-align:left;font-weight:600}
.reference-grid th button{display:block;border:0;background:none;padding:2px 0;font-size:11px;text-align:left;white-space:nowrap;min-height:24px}
.reference-grid th input:not([type=checkbox]){display:block;width:100%;min-width:130px;height:27px;padding:4px 6px;font-size:11px;border:1px solid #d9e1e8;background:white;border-radius:4px}
.reference-grid td{border-right:1px solid #e4e9ee;border-bottom:1px solid #e4e9ee;padding:0;vertical-align:middle}
.reference-grid td:first-child,.reference-grid td:nth-child(2){padding:5px 8px;text-align:center;width:30px}
.reference-grid textarea,.reference-grid select{display:block;width:100%;min-width:150px;height:35px;min-height:35px;resize:none;border:1px solid transparent;border-radius:0;background:transparent;padding:7px 8px;font:inherit;line-height:19px;overflow:hidden}
.reference-grid .ref-name textarea{min-width:240px}
.reference-grid textarea:focus{height:76px;overflow:auto;background:white;outline:2px solid #ab2038;outline-offset:-2px;position:relative;z-index:1}
.reference-grid select:focus{outline:2px solid #ab2038;outline-offset:-2px}
.reference-grid tr:nth-child(even){background:#fafbfc}.reference-grid tr.ref-changed{background:#fff7df}
.reference-grid td.ref-state{min-width:170px;padding:5px 8px}.ref-state label{display:flex;gap:6px;align-items:center}.ref-state small{display:block;font-size:10px;color:#89631d;max-width:210px}
.ref-error{color:#a52335!important}.ref-message:empty{display:none}.ref-message{padding:9px 12px;font-size:12px;background:#f6f8fa;white-space:pre-wrap}
.ref-savebar{display:flex;align-items:center;gap:7px;padding:10px 12px;border-top:1px solid #e1e6eb;background:#fff;flex-wrap:wrap}.ref-savebar>span{margin-right:auto;font-size:12px;font-weight:600}.ref-savebar button{font-size:12px;min-height:32px;padding:6px 10px}
.ref-shade{position:fixed;inset:0;z-index:100;background:#18253670;display:flex;align-items:center;justify-content:center;padding:20px}.ref-dialog{background:white;border-radius:12px;width:min(1050px,95vw);max-height:90dvh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0003}.ref-dialog header,.ref-dialog footer{padding:14px 18px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e3e7ec}.ref-dialog h2{font-size:18px;margin:0}.ref-dialog-body{padding:16px 18px;overflow:auto;font-size:13px}.ref-dialog footer{justify-content:flex-end;border-top:1px solid #e3e7ec}.ref-dialog textarea{width:100%;font-size:13px}.ref-import-table{overflow:auto;max-height:330px;margin-top:16px}.ref-import-table table{border-collapse:collapse;font-size:11px}.ref-import-table td,.ref-import-table th{padding:7px;border:1px solid #dce3e9;min-width:140px;max-width:280px;white-space:pre-wrap;word-break:break-word}.ref-import-table th{background:#eef2f5;position:sticky;top:0}.ref-conflict,.ref-history{border:1px solid #e1e6eb;border-radius:6px;margin:10px 0;padding:12px}.ref-conflict p{font-size:11px;overflow-wrap:anywhere}.ref-bulk-field{display:grid;grid-template-columns:18px 180px 1fr;align-items:center;gap:8px;margin:8px 0}
@media(max-width:700px){.reference-editor .page-head{align-items:start}.reference-editor h1{font-size:21px}.reference-grid-scroll{max-height:52dvh}.reference-editor .toolbar{gap:5px;padding:8px}.reference-editor .toolbar button{min-height:36px}.ref-savebar{padding:8px}.ref-savebar>span{width:100%}.ref-dialog{width:100%;max-height:95dvh}.ref-shade{padding:8px}.ref-bulk-field{grid-template-columns:18px 1fr}.ref-bulk-field>input:last-child{grid-column:2}}
.reference-editor{display:flex;flex-direction:column;min-height:400px}.reference-editor>.page-head,.reference-editor>.reference-tabs{flex-shrink:0}.reference-editor .reference-panel{display:flex;flex-direction:column;flex:1;min-height:0}.reference-editor #refGrid{flex:1;min-height:0}.reference-editor .reference-grid-scroll{height:100%;max-height:none;min-height:0}.reference-editor .ref-savebar{flex-shrink:0}.reference-grid th:has([data-ra="sort:displayOrder"]){width:140px}.reference-grid th:has([data-ra="sort:name"]){width:65%}
@media(max-width:700px){.reference-editor{min-height:540px}.reference-editor .ref-actions{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}.reference-editor .ref-actions button{white-space:nowrap}.reference-editor>.page-head{gap:8px}.reference-editor .page-head>button{font-size:11px}.reference-editor .toolbar .search-input{min-width:150px}.reference-editor .reference-tabs{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}.reference-editor .reference-tabs button{white-space:nowrap;flex-shrink:0}}
@media(max-width:700px){
 body:has(.reference-editor) .topbar nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:2px;justify-content:flex-start;width:100%;padding:0;margin:0;min-height:36px}
 body:has(.reference-editor) .topbar nav button{flex:0 0 auto;white-space:nowrap;padding:7px 8px;font-size:11px}
 .reference-editor>.page-head{flex-direction:row!important;align-items:center!important;margin-bottom:9px;gap:8px}
 .reference-editor>.page-head p{display:none}.reference-editor>.page-head h1{font-size:19px;letter-spacing:-.4px}.reference-editor>.page-head>button{padding:6px;min-width:75px}
 .reference-editor{min-height:460px}.reference-editor .reference-tabs{margin-bottom:8px}
 .reference-editor .ref-savebar{gap:4px}.reference-editor .ref-savebar>button{flex:1 1 0;padding:5px 3px;font-size:10px;min-width:0;min-height:34px}
 .reference-editor #refCount{font-size:10px}.reference-editor .toolbar{font-size:11px}
}
.ref-stage-settings{display:flex;align-items:center;gap:16px;padding:12px;background:#f0f4f7;border-top:1px solid #dce4eb;flex-shrink:0}.ref-stage-settings label{font-size:11px;font-weight:600;min-width:180px}.ref-stage-settings select{display:block;margin-top:4px;min-width:180px}.ref-stage-settings p{font-size:12px;color:#5b6d7f;max-width:650px}.ref-stage-settings>button{font-size:11px;white-space:nowrap}.status-stage-picker{min-width:310px;padding:8px;font-size:11px}.status-stage-picker summary{cursor:pointer;color:#33556e;line-height:1.5}.status-stage-picker[open]{background:#f1f6fa}.status-stage-picker label{display:flex;gap:8px;align-items:center;padding:4px}.reference-grid td:has(.status-stage-picker){min-width:310px}
@media(max-width:700px){.ref-stage-settings{gap:8px;flex-wrap:wrap;padding:8px}.ref-stage-settings p{display:none}.ref-stage-settings label{flex:1}.ref-stage-settings>button{white-space:normal;max-width:125px}}
/* Pipeline rows: three identity lines; warnings belong beneath the status. */
.sales-workspace .sales-table .identity-cell>div{height:22px;line-height:22px;overflow:hidden}
.sales-workspace .sales-table .identity-cell .cell-button{display:block;width:100%;max-width:100%;height:22px;min-height:0;padding:0 2px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.sales-workspace .sales-table .status-pill{height:44px;min-height:44px;max-height:44px;padding:5px 7px;line-height:17px;overflow:hidden}
.sales-workspace .sales-table .status-cell .missing-badge{display:block!important;margin:2px auto 0;min-height:20px!important;height:20px;max-width:100%;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-workspace .sales-table .status-cell .focus-stage{display:none}
.sales-workspace .sales-table td[data-column="terms"]>.cell-button{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:66px}
.sales-workspace .sales-table th,.floating-header-table th{background:#dce5ee!important;color:#263e54!important;border-bottom:2px solid #adbecf!important;font-weight:650}
.sales-workspace .sales-table th:nth-child(n+5):nth-child(-n+8),.floating-header-table th:nth-child(n+5):nth-child(-n+8){background:#d1ddea!important}
.sales-workspace .card-top .missing-badge{grid-column:2;grid-row:2;justify-self:start;margin:0!important;min-height:22px!important}
.sales-workspace .card-top{display:grid;grid-template-columns:18px minmax(0,1fr) 44px;column-gap:8px;row-gap:2px}
.sales-workspace .card-top>.cell-button{grid-column:2;grid-row:1;max-width:100%;width:100%}
.sales-workspace .card-top>.quiet{grid-column:3;grid-row:1;margin:0}
.sales-workspace .card-top>input{grid-column:1;grid-row:1}
/* One consistent separator between every visible pipeline column. */
.sales-workspace .sales-table th,.sales-workspace .sales-table td,.floating-header-table th{border-right:1px solid #d4dde6!important;border-left:0!important}
.sales-workspace .sales-table th:last-child,.sales-workspace .sales-table td:last-child,.floating-header-table th:last-child{border-right:0!important}
.status-choice-group{margin:9px 0 3px}.status-choice-group h3{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.2px;padding:8px 10px;border-radius:5px 5px 0 0;margin:0;font-weight:650}
.status-choice-group h3 span{font-size:10px;font-weight:500}.status-choice-group.current h3{background:#e3edf9;color:#244f7c}.status-choice-group.next h3{background:#dcefe8;color:#245d4a}.status-choice-group.closed h3{background:#f4e3e7;color:#843449}
.picker-results .status-choice{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;min-height:40px;font-size:12px;line-height:1.5;border-bottom:1px solid #fff;border-left:3px solid transparent;border-radius:0}
.picker-results .status-choice.current{background:#f0f5fc;color:#244f7c;border-left-color:#6b96c6}.picker-results .status-choice.next{background:#edf7f2;color:#245d4a;border-left-color:#65a38b}.picker-results .status-choice.closed{background:#fcf0f2;color:#843449;border-left-color:#bc7a8b}
.picker-results .status-choice:hover{filter:brightness(.96)}.picker-results .status-choice.chosen{outline:2px solid currentColor;outline-offset:-2px;font-weight:650}.status-choice-check{font-size:15px;font-weight:700}
/* Centered deal editor with persistent header and footer. */
#drawerHost .drawer{inset:auto;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(940px,calc(100vw - 48px));height:min(880px,92dvh);border-radius:12px;overflow:hidden;box-shadow:0 24px 90px #17253640}
#drawerHost .drawer>header{padding:16px 22px;flex-shrink:0;align-items:flex-start}.deal-form-product{font-size:12px;color:#627485;margin-top:5px;max-width:700px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#drawerHost .drawer form{flex:1;min-height:0}#drawerHost .drawer-scroll{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:start;gap:0 24px;padding:0 22px 18px;overflow-y:auto;min-height:0}
#drawerHost .drawer-scroll>.missing-summary,#drawerHost .drawer-scroll>.drawer-meta,#drawerHost #drawerError{grid-column:1/-1}
#drawerHost .drawer section{min-width:0;padding:16px 0}#drawerHost .drawer .form-grid{gap:10px}#drawerHost .drawer footer{flex-shrink:0;padding:12px 22px;background:#fff}
body:has(#drawerHost){overflow:hidden}.c1-field{min-width:0}.tbd-shortcut{padding:3px 0!important;min-height:24px;font-size:11px;color:#9e2438}
.sales-workspace .sales-table .identity-cell>.product-supplier-lines{height:44px;overflow:visible}
.sales-workspace .sales-table .identity-cell .product-supplier-control,.sales-workspace .product-supplier-control{position:relative;height:44px;min-height:44px;padding:0 17px 0 2px;white-space:normal;line-height:22px;display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:4px;background:transparent}
.product-supplier-control .pair-product,.product-supplier-control .pair-supplier{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:21px;font-weight:400}
.product-supplier-control .pair-supplier{color:#657585;font-size:11px}.product-supplier-control .pair-chevron{position:absolute;right:4px;top:11px;color:#8798a7}.sales-workspace .product-supplier-control:hover,.sales-workspace .product-supplier-control:focus-visible{background:#f0f4f8;border-color:#c5d1dd}
.individual .sales-table th[data-column="quantity"]{width:105px}.sales-workspace .quantity-pair{gap:2px}.sales-workspace .quantity-pair .unit-selector{min-width:26px;padding:5px 2px!important}
.long-text-cell{position:relative;min-width:0}.sales-workspace .long-text-cell .long-text-scroll{display:block;-webkit-line-clamp:unset;-webkit-box-orient:initial;max-height:60px;min-height:20px;line-height:20px;overflow-y:auto;overflow-x:hidden;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 18px 0 2px;width:100%;text-align:left;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b3c0cd transparent}
.text-expand{position:absolute;right:0;top:0;padding:0 2px;font-size:12px;min-height:18px;border:0;background:#fff;color:#8293a3;opacity:.55}.long-text-cell:hover .text-expand,.text-expand:focus-visible{opacity:1;color:#a3283d}
@media(max-width:700px){#drawerHost .drawer{top:0;left:0;right:0;bottom:0;transform:none;width:100%;height:100dvh;max-height:100dvh;border-radius:0}#drawerHost .drawer-scroll{grid-template-columns:1fr;gap:0;padding:0 16px 16px}#drawerHost .drawer>header,#drawerHost .drawer footer{padding:12px 16px}.deal-form-product{max-width:75vw} .sales-workspace .card-identity .product-supplier-control{height:auto;min-height:56px;padding:4px 18px 4px 2px}.sales-workspace .card-identity .pair-product,.sales-workspace .card-identity .pair-supplier{line-height:24px}}
/* Compact dates, balanced free-text columns, and discoverable inline editing. */
.individual .sales-table th[data-column="references"],.individual .sales-table th[data-column="notes"]{width:200px}
.individual .sales-table th[data-column="activity"]{width:115px}.individual .sales-table th[data-column="reminder"]{width:125px}
.sales-workspace .sales-table td[data-column="activity"],.sales-workspace .sales-table td[data-column="reminder"]{padding-left:4px;padding-right:4px}
.sales-workspace .sales-table td[data-column="activity"] .date-cell,.sales-workspace .sales-table td[data-column="reminder"] .date-cell{font-size:11px;padding:4px 2px;white-space:nowrap;min-height:28px}
.sales-workspace .sales-table .reminder-countdown{font-size:10px;margin-top:2px;line-height:1.4}
.sales-workspace .long-text-cell .long-text-scroll{padding-right:2px}.text-expand{display:none}
.sales-workspace .sales-table .cell-button:hover,.sales-workspace .sales-table .date-cell:hover,.sales-workspace .long-text-scroll:hover,.sales-workspace .sales-table .cell-input:hover{background:#edf2f7!important;border-radius:4px}
.column-help{display:inline-flex;gap:3px;align-items:center;padding:0;border:0;background:none;color:inherit;font:inherit;line-height:inherit;cursor:help;border-radius:2px}.column-help span{font-size:10px;color:#597188}.column-help:hover,.column-help:focus-visible{text-decoration:underline;background:#c5d4e3}
.floating-table-heading .column-help{pointer-events:auto}.column-guide p{margin-bottom:12px;line-height:1.6}.column-guide p:last-child{margin-bottom:0}.attention-field{outline:2px solid #bd8c2e!important;outline-offset:2px;background:#fff8e8!important}
.sales-workspace .sales-table th[data-column="references"],.sales-workspace .sales-table th[data-column="notes"]{width:200px}
.sales-workspace .sales-table th[data-column="activity"]{width:115px}.sales-workspace .sales-table th[data-column="reminder"]{width:125px}
.sales-workspace .list-controls>[data-action=followUps]{white-space:nowrap;flex-shrink:0;font-size:11px;min-height:32px;padding:6px 12px}

/* Shared interaction and visual system. Keeps the established compact pipeline. */
:root{--ink:#243546;--muted:#586b7d;--line:#d5dfe7;--surface:#f5f7fa;--brand:#a72138;--focus:#356d9c;--warning:#8b611a;--danger:#a01f36}
body,button,input,select,textarea{font-family:Inter,Arial,sans-serif}body{font-size:13px;color:var(--ink);background:var(--surface)}h1,.workspace-head h1{font-size:24px;letter-spacing:-.65px;line-height:1.25}h2{font-size:18px}h3{font-size:13px;font-weight:650;letter-spacing:0}.muted,.field>span,.page-head p,.workspace-caption{color:var(--muted)}small{font-size:11px}.eyebrow{font-size:11px;letter-spacing:.09em}.brand{font-family:inherit}
button{min-height:34px;border-radius:6px;font-size:12px;font-weight:550;transition:background .12s,border-color .12s}button.primary{background:var(--brand);border-color:var(--brand);color:white}button.primary:hover{background:#8e1c30}button:disabled{cursor:default;opacity:.5}.quiet{color:#4e6172}.danger{color:var(--danger);border-color:#e6c4cb;background:#fff8fa}button[aria-busy=true]{cursor:progress}input,select,textarea{border-color:var(--line);border-radius:6px;color:var(--ink);font-size:13px}input:focus,select:focus,textarea:focus{border-color:var(--focus)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}input[type=checkbox]{accent-color:var(--brand);width:16px;height:16px;cursor:pointer}.invalid,[aria-invalid=true]{border-color:var(--danger)!important;background:#fff4f6!important}.placeholder,input::placeholder{color:#6e7e8c;font-weight:400}
.topbar{box-shadow:0 1px 0 var(--line);gap:16px}.topbar nav{gap:4px}.topbar nav button{border-radius:6px;font-size:12px}.topbar .nav-active{background:#f7e9ed;color:#921e34}.account-menu .menu{border:1px solid var(--line);box-shadow:0 6px 20px #24354618;border-radius:8px}.account-menu .menu button{text-align:left}.account-menu .menu button:last-child{border-top:1px solid var(--line);margin-top:5px}.account-name small{font-size:11px}.page-head{gap:16px;align-items:center}.page-head p{max-width:680px}.page-head>.actions{gap:8px}.toolbar{gap:8px}.toolbar .field>span{font-size:11px}
.admin-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:16px;overflow-x:auto}.admin-tabs button{white-space:nowrap;border:0;background:transparent}.admin-tabs button.active{background:#f5e6eb;color:#941e34}.more-menu{position:relative;display:inline-block}.more-menu summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:8px 12px;background:white;font-size:12px;white-space:nowrap}.more-menu summary:after{content:' ⌄'}.more-menu>div{position:absolute;right:0;z-index:30;min-width:190px;background:white;padding:6px;border:1px solid var(--line);border-radius:7px;box-shadow:0 6px 20px #24354618}.more-menu>div button{display:block;white-space:nowrap;width:100%;text-align:left}.people-table th{color:#42596e;background:#e5ecf2;font-size:12px}.people-table td{padding:14px 12px}.people-table td small{display:block;margin-top:4px;color:var(--muted)}.people-table td .pill{background:#edf3f6;color:#3e586b}.member-card{box-shadow:none;border:1px solid var(--line);border-radius:9px;position:relative;align-items:center}.member-card h2{font-size:16px}.member-card p{font-size:12px;color:var(--muted)}.member-card .workspace-leader{margin-top:9px}.workspace-leader{font-size:12px}.member-card>.more-menu{margin-left:auto}
.sales-table,.cell-input,.fob,.quantity-pair,.commission-cell,.backup-row{font-variant-numeric:tabular-nums}.sales-table{font-size:12px}.sales-table tbody tr.selected td{background:#edf3fc!important}.sales-table tbody tr.selected td:first-child{box-shadow:inset 3px 0 var(--focus)}.sales-table .customer{font-weight:650!important;color:#243b51}.sales-table .cell-input:read-only,.sales-table button:disabled{opacity:1;color:#536575;cursor:default}.missing-badge{background:#fff1ce!important;color:#825911!important}.selection-bar{background:#edf3fc;border:1px solid #c1d2e5;border-radius:6px}.list-heading #visibleCount{font-size:12px;color:var(--muted)}.table-footer #saveStatus{font-size:11px}.table-footer #saveStatus.save-error{color:var(--danger);font-weight:600}.table-footer{gap:10px}.empty{border:1px dashed var(--line);border-radius:8px;padding:36px 20px}.empty p{color:var(--muted);line-height:1.6}
#modal{border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 70px #1f304230;max-height:90dvh;width:min(580px,calc(100vw - 32px));padding:0}#modal.dialog-small{width:min(440px,calc(100vw - 32px))}#modal.dialog-large{width:min(780px,calc(100vw - 32px))}#modal form{display:flex;flex-direction:column;max-height:90dvh}#modal header,#modal footer{flex-shrink:0;padding:14px 20px;gap:8px}#modal header h2{font-size:18px;line-height:1.35}#modal .modal-body{overflow:auto;padding:18px 20px;line-height:1.55}#modal .modal-body h3{margin:18px 0 10px}#modal .modal-body h3:first-child{margin-top:0}#modal::backdrop,.ref-dialog::backdrop{background:#17283f60}#modal .picker-results{max-height:55dvh;overflow:auto}.picker-count{font-size:11px;margin:8px 0}.picker-option{border-radius:5px;font-size:13px}.picker-option small{color:var(--muted);font-size:12px}.picker-option.chosen{background:#edf3fc;box-shadow:inset 3px 0 var(--focus)}.discard-prompt{padding:14px 20px;background:#fff3d8;border-top:1px solid #e6ce99;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.discard-prompt>strong,.discard-prompt>span{width:100%}.team-permission[hidden]{display:none!important}.modal-body .toggle{padding:8px;border:1px solid var(--line);border-radius:6px;background:#f8fafb}
#drawerHost .drawer-scroll{grid-template-areas:'warning warning' 'deal commercial' 'followup commercial' 'notes notes' 'meta meta' 'error error';grid-template-rows:auto auto auto auto auto auto;gap:0 24px}#drawerHost .missing-summary{grid-area:warning}#drawerHost .missing-summary[hidden]{display:none}#drawerHost .deal-section{grid-area:deal}#drawerHost .commercial-section{grid-area:commercial}#drawerHost .followup-section{grid-area:followup}#drawerHost .notes-section{grid-area:notes;display:grid;grid-template-columns:1fr 1fr;gap:12px}#drawerHost .notes-section h3{grid-column:1/-1}#drawerHost .notes-section .field{grid-column:auto}#drawerHost .drawer-meta{grid-area:meta}#drawerHost #drawerError{grid-area:error}.drawer .commercial-form{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.drawer .commercial-form>.c1-field{grid-column:1}.drawer .missing-summary{font-size:12px;border:1px solid #ead7aa;background:#fff9eb;color:#79591f;margin:14px 0 0;padding:12px}.drawer .missing-summary p{margin:5px 0}.drawer .missing-summary small{color:#79591f}.drawer .form-grid>.field>span{font-size:12px}.drawer footer .muted{font-size:12px}
.history-table-wrap{overflow:auto}.history-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.history-table td,.history-table th{border:1px solid var(--line);padding:9px;text-align:left;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}.history-table thead th{background:#e8eef4}.history-table td:last-child{background:#f1f8f4}.history-entry{padding:14px 0;border-bottom:1px solid var(--line)}.history-entry p{font-size:12px;color:var(--muted)}.backup-row{padding:16px;border:1px solid var(--line);border-radius:8px;margin:10px 0;gap:14px}.backup-row small{display:block;color:var(--muted);margin-top:5px}.skeleton{height:180px;border-radius:9px;background:linear-gradient(100deg,#e8edf2 25%,#f5f7fa 45%,#e8edf2 65%);background-size:200% 100%;animation:skeleton 1.6s infinite;margin:16px 0}@keyframes skeleton{to{background-position:-200% 0}}
.reference-editor .ref-selection-actions{display:inline-flex;gap:6px}.reference-editor .ref-selection-actions[hidden]{display:none}.reference-grid tr.ref-changed td:first-child{box-shadow:inset 3px 0 #bc8b2f}.reference-grid td:focus-within{box-shadow:inset 0 0 0 2px var(--focus);background:white}.reference-grid textarea:focus{outline:2px solid var(--focus);background:#fff}.reference-grid .ref-state small{font-size:11px}.reference-grid .ref-state .ref-error{color:#825911!important}.ref-savebar{position:sticky;bottom:0;z-index:4;box-shadow:0 -2px 8px #24354608}.ref-savebar>span{color:#5c491f}.ref-savebar [data-ra=save]{min-width:110px}.ref-dialog{padding:0;border:1px solid var(--line);margin:auto;width:min(900px,calc(100vw - 32px));max-height:90dvh}.ref-dialog:not([open]){display:none}.ref-dialog[open]{display:flex}.ref-dialog header,.ref-dialog footer{flex-shrink:0}.overlay-message{padding:10px 18px;margin:0}.import-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.import-summary span{padding:12px;border-radius:6px;background:#edf3fa;font-size:12px}.import-summary b{display:block;font-size:20px}.import-summary .new,.import-new{background:#eff8f2}.import-summary .retired,.import-retired{background:#f3f3f5}.import-summary .conflicts{background:#fff3db}.import-updated{background:#edf4fb}.status-stage-picker summary{font-size:12px}.ref-stage-settings label{font-size:12px}
@media(max-width:899px){.topbar{display:grid!important;grid-template-columns:auto 1fr auto;gap:7px 12px;padding:10px 12px!important}.topbar .brand{grid-column:1;grid-row:1}.topbar .brand-title{grid-column:2;grid-row:1;font-size:11px}.topbar .account-menu{grid-column:3;grid-row:1}.topbar .account-name{display:none}.topbar nav,body:has(.reference-editor) .topbar nav{grid-column:1/-1;grid-row:2;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;width:100%;min-width:0;margin:0!important;padding:0!important;gap:3px;scrollbar-width:none}.topbar nav button,body:has(.reference-editor) .topbar nav button{flex:0 0 auto;white-space:nowrap;font-size:11px;padding:8px;min-height:36px}.topbar .avatar{width:30px;height:30px}.admin-tabs{gap:3px;margin-bottom:12px}.admin-tabs button{font-size:12px;min-height:40px}.people-table .actions{flex-wrap:nowrap}.people-table th,.people-table td{font-size:12px;padding:10px}.people-table{min-width:680px}.member-card{padding:14px;gap:10px}.member-grid{grid-template-columns:1fr}.member-card h2{font-size:15px}.member-card .avatar.large{width:38px;height:38px;font-size:14px}.member-card>button{min-height:40px}.page-head .actions{flex-wrap:wrap}.deal-card .cell-button,.deal-card .date-cell,.deal-card .cell-input{min-height:36px}.deal-card .card-identity .customer{font-size:14px;font-weight:650}.deal-card.selected{border-color:#8aaacb;background:#f7faff}.deal-card .pair-product,.deal-card .pair-supplier{text-overflow:ellipsis;overflow:hidden}.deal-card .long-text-scroll{min-height:36px}.deal-card .card-grid{gap:10px}.table-footer{flex-wrap:wrap}}
@media(max-width:700px){h1,.workspace-head h1{font-size:21px}.page-head{gap:10px}.page-head p{font-size:12px}#modal,#modal.dialog-small,#modal.dialog-large{width:calc(100vw - 16px);max-height:92dvh}#modal form{max-height:92dvh}#modal header,#modal footer,#modal .modal-body{padding:12px 14px}#modal footer button,.ref-dialog footer button{min-height:40px}#modal input,#modal select,#modal textarea,.drawer input,.drawer textarea,.drawer select{font-size:16px}#drawerHost .drawer-scroll{grid-template-areas:'warning' 'deal' 'commercial' 'followup' 'notes' 'meta' 'error';grid-template-columns:1fr;gap:0}#drawerHost .notes-section{grid-template-columns:1fr}#drawerHost .notes-section .field{grid-column:1}#drawerHost .drawer footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.ref-dialog{width:calc(100vw - 16px);max-height:92dvh}.ref-dialog-body{padding:12px}.reference-editor .ref-savebar{display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:max(8px,env(safe-area-inset-bottom))}.reference-editor .ref-savebar>span{grid-column:1/3;width:auto}.reference-editor .ref-savebar>[data-ra=save]{grid-column:3/5;grid-row:1;font-size:12px;min-height:40px}.reference-editor .ref-savebar>button{font-size:11px;min-height:36px}.reference-editor{min-height:440px}.ref-stage-settings{flex-wrap:wrap}.ref-stage-settings p{display:none}.import-summary{grid-template-columns:1fr 1fr}.backup-row{flex-wrap:wrap}.backup-row>span{width:100%}.more-menu>div{min-width:180px}.toolbar .search-input{min-width:0}.reference-editor .toolbar #refSearch{width:100%}.reference-editor .ref-actions{overflow-x:auto}.reference-editor .ref-actions button{min-height:36px}.reference-editor .ref-selection-actions{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Final responsive and readable-state adjustments. */
.stage-tag{display:inline-block;background:#e8eff6;color:#3d5e7b;border:1px solid #cbd9e6;border-radius:4px;padding:2px 6px;margin:2px 1px;font-size:11px}.filter-panel>.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.filter-panel>h3{margin:14px 0 9px}.drawer section h3{font-size:13px;letter-spacing:0;text-transform:none}.loading .skeleton{max-width:600px;min-width:260px}.permission-grid{margin:10px 0 16px}.topbar .brand{font-family:Inter,Arial,sans-serif}.reference-editor .ref-dialog{z-index:100}.history-entry>strong{font-size:13px}
@media(max-width:899px){.people-table{min-width:0;width:100%}.people-table .actions{flex-wrap:wrap}.admin-tabs{scrollbar-width:thin}.people-table td{overflow-wrap:anywhere}.people-table .more-menu>div{position:static;margin-top:5px;min-width:0}.people-table .more-menu[open]{width:100%}.people-table .more-menu>div button{white-space:normal}.page-head>.actions{justify-content:flex-start}.people-table tr{grid-template-columns:1fr 1.4fr 1fr}.filter-panel>.form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.admin-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:4px}.admin-tabs button{padding:8px 6px;text-align:left}.page-head{margin-bottom:12px}.page-head .actions{align-self:flex-start}.ref-dialog .ref-dialog-body input,.ref-dialog textarea,.ref-dialog select{font-size:16px}.ref-stage-settings select{min-width:150px;max-width:100%}}
.workspace-tabs{display:flex;gap:4px;margin:0 0 14px;border-bottom:1px solid var(--line);padding-bottom:9px}.workspace-tabs button{border:0;background:transparent;font-size:13px}.workspace-tabs button.active{color:var(--brand);background:#f7e9ed}.workspace-email{font-size:12px;color:#53697d;margin:5px 0}.quick-views{display:flex;gap:4px;overflow-x:auto;max-width:100%;padding:4px 0}.quick-views button{white-space:nowrap;font-size:11px;min-height:32px;padding:6px 9px}.list-controls{flex-wrap:wrap}.list-controls .quick-views{margin-left:auto}.column-help{border-bottom:1px dotted currentColor;text-decoration:none}.column-help:hover{text-decoration:none}.purpose-label{display:inline-block;margin:5px 0 0;border-radius:4px;padding:3px 7px;background:#e8eff6;color:#3c5e7b;font-size:11px}.platform-guide p+p{margin-top:16px}.calendar-heading{display:flex;align-items:end;gap:8px;margin-bottom:14px}.calendar-heading label{font-size:11px;flex:1}.calendar-heading label input,.calendar-heading label select{margin-top:4px}.calendar-heading label:has(input){max-width:90px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-grid>span{text-align:center;font-size:11px;color:#5d7081;padding:6px 0}.calendar-grid button{min-height:38px;padding:5px;border:1px solid transparent}.calendar-grid button:hover{background:#e9eff7;border-color:#a7bed6}.calendar-grid .today-date{border-color:var(--brand);color:var(--brand);font-weight:700}.calendar-grid .selected-date{background:#315f88;color:#fff}.calendar-shortcuts{border-top:1px solid var(--line);margin-top:14px;padding-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.calendar-shortcuts button{border:1px solid var(--line);font-size:12px;text-align:left}.calendar-shortcuts small,.quick-dates small{font-size:10px;margin-top:3px;color:#5b7083}#modal.dialog-calendar{width:min(430px,calc(100vw - 16px))}.quick-dates{gap:4px;flex-wrap:wrap}.quick-dates button{font-size:11px}.opportunity-section{grid-column:1/-1}.opportunity-section .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}#drawerHost .drawer-scroll{grid-template-areas:'warning warning' 'deal commercial' 'followup commercial' 'opportunity opportunity' 'notes notes' 'meta meta' 'error error'}.opportunity-section{grid-area:opportunity}#modal .toggle{display:flex;align-items:center;gap:10px;margin-top:10px}#modal .toggle input{flex-shrink:0}
@media(max-width:700px){.list-controls .quick-views{margin-left:0;width:100%}.quick-views{scrollbar-width:thin}.quick-views button{min-height:38px}#drawerHost .drawer-scroll{grid-template-areas:'warning' 'deal' 'commercial' 'followup' 'opportunity' 'notes' 'meta' 'error'}.opportunity-section .form-grid{grid-template-columns:1fr 1fr}.calendar-heading input,.calendar-heading select{font-size:16px}.calendar-grid button{min-height:40px}.calendar-shortcuts button{min-height:42px}.quick-dates{display:grid;grid-template-columns:1fr 1fr}.quick-dates button{min-height:36px}}
/* Compact units and paired commercial values. */
#modal.dialog-units{width:min(320px,calc(100vw - 24px))}#modal.dialog-units header,#modal.dialog-units footer{padding:10px 14px}#modal.dialog-units .modal-body{padding:6px 10px}#modal.dialog-units .picker-results{margin:0;max-height:65dvh;gap:0}#modal.dialog-units .picker-option{display:flex;align-items:center;gap:10px;min-height:32px;padding:6px 10px;font-size:12px}#modal.dialog-units .picker-option small{margin:0;font-size:11px;margin-left:auto;color:#566b7d}#modal.dialog-units header h2{font-size:16px}#modal.dialog-units footer button{min-height:30px;padding:5px 10px}
.sales-workspace .sales-table .fob,.sales-workspace .card-grid .fob{display:flex;align-items:center!important;justify-content:flex-end;gap:4px!important;border-radius:5px;min-width:0}.sales-workspace .sales-table .fob .cell-input,.sales-workspace .card-grid .fob .cell-input{order:0!important;flex:1 1 0;min-width:0!important;width:0;text-align:right;height:32px;min-height:32px;padding:4px 2px!important;line-height:24px;margin:0!important}.sales-workspace .sales-table .fob .currency,.sales-workspace .card-grid .fob .currency{order:1!important;flex:0 0 34px;width:34px!important;min-width:34px!important;max-width:34px;display:flex;align-items:center;justify-content:flex-start;height:32px;min-height:32px;padding:4px 2px!important;line-height:24px;margin:0!important}.sales-workspace .fob:hover,.sales-workspace .fob:focus-within{background:#edf2f7}.sales-workspace .sales-table .fob .cell-input:hover,.sales-workspace .sales-table .fob .currency:hover{background:transparent!important}
.column-help,.column-help:hover,.column-help:focus-visible{border:0!important;text-decoration:none!important;cursor:pointer}.column-help:hover{background:#c5d4e3}.column-help:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.commission-cell label>span{font-size:10px!important;color:#52697e!important}.commission-cell label>span[title]{cursor:help}.sales-workspace .sales-table th[data-column="commission"]{min-width:120px;width:120px}.sales-workspace .sales-table th[data-column="commission"] .column-help{line-height:22px;font-size:11px;white-space:nowrap}.edit-history-controls{display:flex;gap:3px;flex-shrink:0;margin-left:auto}.sales-workspace .toolbar>.edit-history-controls+button.primary{margin-left:0}.edit-history-controls button{font-size:11px;min-height:34px;padding:6px 10px}.edit-history-controls button:disabled{opacity:.45}.platform-guide h3{font-size:14px;margin:22px 0 10px!important;color:#2c455c}.platform-guide .guide-intro{font-size:14px;color:#405d75;line-height:1.6}.platform-guide dl{margin:0}.platform-guide dt{font-weight:650;margin-top:12px;font-size:13px}.platform-guide dd{margin:3px 0 0;color:#4b6073;line-height:1.6}.guide-routine{padding:14px;background:#edf3f8;border:1px solid #d2dfea;border-radius:6px;margin-top:18px}.guide-routine p{margin:7px 0 0!important}
@media(max-width:899px){.sales-workspace .toolbar .edit-history-controls{order:2;margin-left:auto}.sales-workspace .toolbar .edit-history-controls button{min-height:40px}.sales-workspace .card-grid .fob .currency{background:transparent!important;border-color:transparent!important;font-size:12px}.sales-workspace .card-grid .fob .cell-input{font-size:16px;height:40px;min-height:40px}.sales-workspace .card-grid .fob .currency{height:40px;min-height:40px}}
.sales-workspace .commission-cell label{display:block}.sales-workspace .commission-cell label+label{margin-top:4px}.sales-workspace .commission-cell .cell-input{height:25px;width:100%}.row-notes-hint{grid-column:1/-1}
.sales-workspace .fob{flex-direction:row!important}.sales-workspace .sales-table th .column-help{min-height:0;height:20px;padding:0;line-height:20px}.sales-workspace .sales-table th[data-column="commission"] .column-help{line-height:20px}.edit-history-controls button:not(:disabled){color:#405c75;border-color:#d5dfe7;background:#fff}

/* Compact pipeline columns retain readable type and three-line row heights. */
.sales-workspace .sales-table{width:100%;table-layout:fixed}
.sales-workspace .sales-table th[data-column],.sales-workspace .sales-table td[data-column]{padding-left:4px!important;padding-right:4px!important;position:static!important;left:auto!important;box-shadow:none!important}
.sales-workspace .sales-table [data-column="details"],.sales-workspace .sales-table [data-column="edit"]:last-child{display:none}
.sales-workspace.combined .sales-table [data-column="edit"]:last-child{display:table-cell}
.sales-workspace .sales-table [data-column="owner"],.sales-workspace .sales-table [data-column="stage"]{display:table-cell!important}
.sales-workspace .sales-table th[data-column]{min-width:0!important;white-space:normal;line-height:17px}
.sales-workspace .sales-table td[data-column]{overflow:hidden}
.sales-workspace .sales-table th[data-column="stage"],.sales-workspace .sales-table th[data-column="status"],.sales-workspace .sales-table th[data-column="identity"],.sales-workspace .sales-table th[data-column="references"],.sales-workspace .sales-table th[data-column="notes"],.sales-workspace .sales-table th[data-column="activity"],.sales-workspace .sales-table th[data-column="reminder"]{background:#dce5ee!important}
.sales-workspace .sales-table td[data-column="terms"]>.cell-button{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:66px;min-width:0;width:100%;padding:2px}
.sales-workspace .sales-table .cell-input{min-width:0;width:100%;padding-left:2px;padding-right:2px}
.sales-workspace .sales-table .quantity-pair{gap:2px;width:100%;min-width:0}
.sales-workspace .sales-table .quantity-pair .cell-input{width:0;flex:1 1 0}
.sales-workspace .sales-table .quantity-pair .unit-selector{min-width:24px;max-width:30px;padding:2px}
.sales-workspace .sales-table [data-column="commission"] .column-help{font-size:11px;white-space:nowrap}
.sales-workspace .sales-table .date-cell{font-size:11px;white-space:nowrap;padding:4px 1px}
.stage-badge{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:28px;padding:4px 6px;border:1px solid #cdd9e4;border-radius:5px;background:#edf3f8;color:#36536d;font-size:11px;font-weight:600;line-height:16px;text-align:center;overflow-wrap:anywhere}
.stage-badge:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.stage-badge.stage-5{background:#e8f3ee;color:#32644d;border-color:#c8dfd3}
.stage-badge.stage-6{background:#f8ecef;color:#8a4050;border-color:#e8cbd2}
.stage-badge.stage--1{background:#f0f1f3;color:#5e6872;border-color:#d9dde2}
.card-stage{display:flex;align-items:center;margin:0 0 6px}

.excel-workspace{--rk-accent:#8b1e2d;--rk-line:#dce1e7;--rk-muted:#657180;padding:14px 20px 10px;max-width:100%;min-width:0;color:#243142;font-family:Inter,Arial,sans-serif}.excel-workspace *{box-sizing:border-box}.excel-workspace button,.excel-workspace input,.excel-workspace textarea{font-family:inherit}.excel-workspace button{font-size:12px;min-height:32px;padding:6px 10px;border:1px solid #d5dbe2;border-radius:6px;cursor:pointer;line-height:1.3;background:#fff;color:#354154;white-space:nowrap}.excel-workspace button:hover:not(:disabled){background:#f4f6f8;border-color:#b6c0cb}.excel-workspace button:disabled{opacity:.45;cursor:default}.excel-workspace button:focus-visible,.excel-workspace a:focus-visible{outline:2px solid var(--rk-accent);outline-offset:2px}.excel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.excel-head h1{font-size:20px;font-weight:650;letter-spacing:-.035em;margin:4px 0}.excel-head p{margin:0;color:var(--rk-muted);font-size:11px}.excel-head .eyebrow{font-weight:700;font-size:10px;letter-spacing:.12em;color:var(--rk-accent)}.excel-head-actions{display:flex;gap:6px;align-items:center}.excel-head-actions a{border:1px solid #d5dbe2;background:#fff;padding:7px 10px;border-radius:6px;color:#354154;text-decoration:none;font-size:12px;white-space:nowrap}.excel-tabs{display:flex;gap:4px;align-items:center;overflow-x:auto;border-bottom:1px solid var(--rk-line);padding:4px 0 7px;scrollbar-width:thin;scroll-padding:12px;max-width:100%;min-width:0}.excel-tabs button{flex:0 0 auto;border:1px solid transparent;padding:9px 12px;font-size:11px;font-weight:550;border-radius:6px;background:#edf1f5;color:#435167;min-height:35px}.excel-tabs button.independent{background:#eff5f4;color:#42615e}.excel-tabs button.active,.excel-tabs button.active:hover{background:var(--rk-accent);border-color:var(--rk-accent);color:#fff;box-shadow:0 2px 5px #8b1e2d22}.rk-group{font-size:9px;line-height:1.4;color:#647181;padding:0 6px;letter-spacing:.05em;text-transform:uppercase;flex:0 0 auto;max-width:85px}.rk-group.rk-pipeline-label{border-left:1px solid #b9c3cf;margin-left:10px;padding-left:14px;max-width:80px}.excel-controls{display:flex;gap:8px;align-items:center;padding:10px 0;flex-wrap:wrap;font-size:11px}.excel-controls label{display:flex;align-items:center;gap:6px;white-space:nowrap}.excel-controls input[type=checkbox]{accent-color:var(--rk-accent);width:14px;height:14px;margin:0}.excel-find input{width:210px;padding:7px 9px;border:1px solid #d5dbe2;border-radius:6px;font-size:12px;background:#fff;min-width:0}.excel-find input:focus{outline:2px solid #8b1e2d33;border-color:var(--rk-accent)}.rk-filter-tools,.excel-undo{display:flex;gap:5px;align-items:center}.excel-undo{margin-left:auto}.excel-controls .is-active{border-color:#c9939c;color:#8b1e2d;background:#fff4f5}.excel-controls [hidden]{display:none}.rk-baseline{color:var(--rk-muted);margin-left:4px}.excel-move-bar{display:flex;gap:12px;align-items:center;min-height:29px;margin-bottom:8px;font-size:11px;color:var(--rk-muted)}.excel-workspace .primary{background:var(--rk-accent);border-color:var(--rk-accent);color:#fff;font-weight:550}.excel-workspace .primary:hover:not(:disabled){background:#731826;border-color:#731826}.excel-move-bar [data-selected]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:#42516a}.excel-grid-wrap{height:calc(100dvh - 302px);min-height:300px;max-width:100%;overflow:auto;border:1px solid #cbd3dc;border-radius:7px;background:white;isolation:isolate;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#aeb9c5 #f0f3f6;outline:none}.excel-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;color:#293649;font-family:inherit}.excel-grid thead{position:sticky;top:0;z-index:3;background:#f0f3f7}.excel-grid td,.excel-grid th{border-right:1px solid var(--rk-line);border-bottom:1px solid var(--rk-line);min-width:0;font-size:12px;line-height:1.45;white-space:pre-wrap;vertical-align:middle;overflow-wrap:anywhere;position:relative}.rk-grid thead th{background:#edf1f5;color:#38465a;font-weight:650;font-size:11px;text-align:left;padding:9px 8px;box-shadow:0 1px 0 #cbd3dc;line-height:1.45}.rk-grid thead th.has-filter{color:#8b1e2d;box-shadow:inset 0 -3px #8b1e2d}.rk-grid td{height:58px;padding:7px 9px;background:#fff;cursor:text}.rk-grid tbody tr:nth-child(even) td{background:#f8fafc}.rk-grid tbody tr:hover td{background:#f0f4f8}.rk-grid tbody tr.selected td{background:#fff3e9}.rk-grid tbody tr.selected th{background:#f6e8e3}.rk-grid tbody tr.selected th button{color:#8b1e2d;font-weight:700}.rk-grid td:focus-visible,.rk-grid td.is-expanded{outline:2px solid var(--rk-accent);outline-offset:-2px;z-index:1}.rk-grid td:hover{box-shadow:inset 0 0 0 1px #bcc6d2}.rk-cell-value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:4.35em;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.rk-grid .rk-number{text-align:right;font-variant-numeric:tabular-nums}.rk-grid .rk-number .rk-cell-value{direction:ltr}.rk-grid .rk-short,.rk-grid .rk-days{text-align:center;font-variant-numeric:tabular-nums}.rk-grid .rk-date{font-variant-numeric:tabular-nums;white-space:nowrap}.rk-grid .formula-cell{color:#647386;background:#eef2f5;font-size:11px;cursor:default}.rk-grid tbody th{padding:2px;text-align:center;background:#edf1f5;color:#6a798b}.rk-grid tbody th button{padding:5px 2px;width:36px;font-size:10px;min-height:32px;border:0;background:transparent}.rk-dropdown{position:absolute;right:5px;bottom:3px;color:#7a899b;font-size:12px;pointer-events:none}.rk-grid td:has(.rk-dropdown){padding-right:17px}.rk-grid .rk-filters th{padding:4px 5px;background:#f6f8fa}.rk-filters input{width:100%;min-width:0;font:11px Inter,Arial;padding:6px;border:1px solid #d4dce6;border-radius:4px;background:#fff;color:#354154}.rk-filters input:focus{outline:1px solid var(--rk-accent);border-color:var(--rk-accent)}.rk-grid td.is-editing{outline:2px solid var(--rk-accent);outline-offset:-2px;z-index:2;padding:4px!important;background:#fff!important;box-shadow:0 0 0 3px #8b1e2d10;cursor:text;vertical-align:top}.inline-edit{width:100%;text-align:left;white-space:normal}.inline-edit input,.inline-edit textarea{width:100%;min-width:0;display:block;resize:none;padding:4px 3px;border:0!important;border-radius:0;background:#fff;font:12px/1.45 Inter,Arial;color:#26364b;outline:none!important;box-shadow:none!important}.inline-edit input{min-height:34px}.inline-edit textarea{min-height:36px;max-height:220px;overflow-y:auto;white-space:pre-wrap}.rk-number .inline-edit textarea{text-align:right}.rk-edit-tools{display:flex;gap:3px;align-items:center;margin-top:3px;border-top:1px solid #edf0f4;padding-top:3px;flex-wrap:wrap}.excel-workspace .rk-edit-tools button{font-size:13px;min-height:25px;min-width:25px;line-height:1;padding:4px;border:0;border-radius:4px;background:#f0f3f6}.excel-workspace .rk-edit-tools [data-save]{background:#f6e8eb;color:#8b1e2d}.rk-edit-tools small{color:#8590a0;font-size:9px;margin-left:2px;white-space:nowrap}.rk-short .rk-edit-tools small{display:none}.rk-cell-error{display:block;color:#a22236;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.rk-cell-error:empty{display:none}.rk-grid td.is-expanded .rk-cell-value{display:block;max-height:220px;overflow:auto}.rk-options{position:fixed;z-index:10000;overflow:auto;border:1px solid #c8d1dc;border-radius:8px;background:#fff;box-shadow:0 8px 30px #1a29412b;padding:4px;box-sizing:border-box;font-family:Inter,Arial,sans-serif;overscroll-behavior:contain}.rk-options .rk-option-hint{position:sticky;top:-4px;background:#fff;padding:7px 8px;color:#738094;font-size:10px;border-bottom:1px solid #edf0f4}.rk-options button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;padding:9px 8px;min-height:36px;border:0;border-radius:4px;color:#334155;background:#fff;font:12px/1.4 Inter,Arial;cursor:pointer;box-sizing:border-box}.rk-options button:hover,.rk-options button.highlighted{background:#f1f4f8}.rk-options button[aria-selected=true]{background:#f8edf0;color:#8b1e2d}.rk-options p{font-size:12px;color:#68788d;padding:8px;line-height:1.5}.rk-empty{padding:30px;color:#6a7582;font-size:13px}.excel-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;font-size:11px;color:#647286}.excel-footer>div{display:flex;align-items:center;gap:8px;white-space:nowrap}.excel-footer button{padding:2px 8px;min-height:28px}.excel-page-status{font-variant-numeric:tabular-nums}.excel-footer [data-save-status]{display:flex;align-items:center;gap:6px;line-height:1.4}.excel-footer [data-save-status]:before{content:'';width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#8b99aa}.excel-footer [data-state=saved]:before{background:#238569}.excel-footer [data-state=dirty],.excel-footer [data-state=saving]{color:#977128}.excel-footer [data-state=dirty]:before,.excel-footer [data-state=saving]:before{background:#c29333}.excel-footer [data-state=error]{color:#a22236}.excel-footer [data-state=error]:before{background:#a22236}.excel-caption{font-size:10px;color:#7a8798;line-height:1.6;margin:0}.excel-baseline-note{padding:7px 10px;margin:0 0 8px;background:#fff2ce;color:#725a19;font-size:11px;border-radius:5px}.excel-dialog{width:min(600px,calc(100vw - 28px));padding:20px;border:1px solid #d5d8dd;border-radius:12px;box-shadow:0 24px 80px #0003;max-height:90dvh;overflow:auto}.excel-dialog::backdrop{background:#1d263b70}.excel-dialog h2{font-size:18px;margin:4px 0}.excel-dialog textarea,.excel-dialog select,.excel-dialog input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #c8cdd4;border-radius:6px;font:14px/1.5 Inter,Arial,sans-serif}.excel-dialog textarea{resize:vertical;white-space:pre-wrap}.excel-dialog footer{display:flex;gap:8px;margin-top:16px}.excel-dialog p{font-size:12px;line-height:1.5}.excel-loading{padding:70px 16px;text-align:center;color:#656b76}.excel-loading button{display:block;margin:15px auto}.excel-entry-link{white-space:nowrap}
@media(max-width:1000px){.excel-workspace{padding:12px}.excel-controls{gap:6px}.excel-find input{width:170px}.excel-tabs .rk-group{font-size:8px}.excel-tabs button{padding:8px;font-size:10px}.excel-grid-wrap{height:calc(100dvh - 325px)}}
@media(max-width:700px){.excel-workspace{padding:10px 8px 8px}.excel-head{align-items:start;flex-direction:column;gap:9px;margin-bottom:9px}.excel-head h1{font-size:17px;line-height:1.35}.excel-head p{font-size:10px}.excel-head-actions{width:100%;gap:6px}.excel-head-actions>*{flex:1;text-align:center;font-size:11px!important;min-height:34px;display:flex;align-items:center;justify-content:center}.excel-tabs button{font-size:11px;min-height:38px;padding:9px 10px}.rk-group{display:none}.excel-tabs button[data-sheet="2"]{margin-left:12px}.excel-controls{gap:6px;padding:8px 0}.excel-find{width:100%;margin-bottom:2px}.excel-find span{display:none}.excel-find input{width:100%;min-height:36px}.excel-workspace .excel-controls button{min-height:36px;font-size:11px;padding:6px 9px}.rk-baseline{margin-left:0;font-size:10px}.excel-undo{margin-left:auto}.excel-move-bar{flex-wrap:wrap;gap:5px;margin-bottom:7px}.excel-move-bar button{max-width:100%;white-space:normal;min-height:36px;font-size:11px}.excel-move-bar [data-selected]{display:block;width:100%;font-size:10px}.excel-grid-wrap{height:calc(100dvh - 390px);min-height:300px;border-radius:5px}.rk-grid td{padding:6px 8px}.excel-footer{align-items:start;flex-wrap:wrap;gap:7px;font-size:10px}.excel-footer button{min-height:34px;min-width:34px}.excel-footer [data-save-status]{max-width:100%;font-size:10px}.excel-caption{font-size:9px}.excel-workspace .rk-edit-tools button{min-height:32px;min-width:26px}.rk-edit-tools small{display:none}.rk-options button{min-height:42px;font-size:13px}.inline-edit input,.inline-edit textarea{font-size:16px}.excel-dialog{padding:15px}.excel-dialog textarea{font-size:16px}}
/* Keep the workbook controls and save status visible around one scrollable grid. */
.excel-workspace{display:flex;flex-direction:column;height:calc(100dvh - 62px);min-height:570px}.excel-workspace>section,.excel-workspace>nav,.excel-workspace>.excel-controls,.excel-workspace>.excel-move-bar,.excel-workspace>footer,.excel-workspace>.excel-caption,.excel-workspace>.excel-baseline-note{flex-shrink:0}.excel-workspace>.excel-grid-wrap{flex:1;height:auto;min-height:240px}.rk-secondary{display:flex;align-items:center;gap:8px;flex:1}.excel-workspace [data-more]{display:none}
@media(max-width:700px){.excel-workspace{height:calc(100dvh - 100px);min-height:650px}.excel-workspace [data-more]{display:block;margin-left:auto}.rk-secondary{display:none;width:100%;flex:0 0 100%;padding:4px 0;flex-wrap:wrap}.rk-secondary.show-tools{display:flex}.excel-workspace>.excel-grid-wrap{min-height:240px}.excel-move-bar{min-height:22px}.excel-caption{font-size:9px;line-height:1.4}.excel-footer{padding:6px 0}}
/* Denser workbook, with a form action in place of Excel row numbers. */
.excel-head{margin-bottom:8px}.excel-head h1{font-size:18px}.excel-tabs{padding:3px 0 5px}.excel-tabs button{min-height:31px;padding:7px 10px}.excel-controls{padding:7px 0;gap:6px}.rk-grid td{height:44px;padding:4px 7px;font-size:11.5px;line-height:1.38}.rk-grid thead th{font-size:10.5px;padding:7px;line-height:1.35}.rk-cell-value{max-height:4.14em}.rk-grid .rk-row-actions{padding:3px;white-space:nowrap;vertical-align:middle}.rk-row-actions input[type=checkbox]{width:14px;height:14px;vertical-align:middle;margin:0 4px 0 0}.rk-grid .rk-row-actions button{display:inline-block;width:40px;min-height:27px;border:1px solid #d6dde5;border-radius:4px;padding:4px 3px;font-size:10px;background:#fff;vertical-align:middle}.rk-grid .rk-row-actions button:hover{color:#8b1e2d;border-color:#c99aa4}.rk-grid td.is-editing{padding:2px!important}.inline-edit textarea{min-height:28px}.inline-edit input{min-height:28px}.inline-edit input,.inline-edit textarea{font-size:11.5px;padding:3px;line-height:1.38}.rk-grid tbody tr.selected .rk-row-actions button{background:#fff7f1}.excel-move-bar{margin-bottom:6px;min-height:26px}
.rk-row-dialog{width:min(880px,calc(100vw - 28px));padding:0;overflow:visible;border-radius:10px}.rk-row-dialog form{display:flex;flex-direction:column;max-height:90dvh}.rk-row-dialog header{padding:14px 18px;align-items:start;gap:12px;display:flex;justify-content:space-between}.rk-row-dialog h2{font-size:19px;margin:3px 0 5px}.rk-row-dialog header p{margin:0}.rk-row-dialog .eyebrow{font-size:10px;color:#8b1e2d}.rk-form-identity{font-size:11px;color:#68778b;max-width:680px}.rk-row-dialog header button{padding:0 6px;border:0;background:none;font-size:24px;color:#6d7d90}.rk-form-fields{padding:14px 18px;overflow-y:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:0;align-items:start}.rk-form-field{display:flex;flex-direction:column;gap:5px;min-width:0}.rk-form-field>span{font-size:11px;font-weight:600;white-space:pre-wrap;line-height:1.4;color:#40516a}.rk-form-field.rk-wide{grid-column:1/-1}.rk-row-dialog .rk-form-field textarea,.rk-row-dialog .rk-form-field input{padding:7px 9px;font-size:12px;line-height:1.4;border-radius:5px;min-height:34px}.rk-row-dialog .rk-form-field textarea{resize:vertical}.rk-row-dialog .rk-form-field [aria-invalid=true]{border-color:#b62b42;background:#fff6f7}.rk-field-error{font-size:10px;color:#a22236;line-height:1.4}.rk-field-error:empty{display:none}.rk-computed{background:#f3f6f9;border:1px solid #e1e7ee;border-radius:5px;padding:8px 10px}.rk-computed output{font-size:17px;font-variant-numeric:tabular-nums}.rk-computed small{font-size:10px;color:#7e8b9b}.rk-row-dialog .rk-form-message{padding:0 18px;color:#a22236;font-size:12px;line-height:1.5}.rk-row-dialog .rk-form-message:empty{display:none}.rk-row-dialog footer{margin:0;padding:10px 18px;display:flex;align-items:center;gap:8px;background:#f8fafc;border-radius:0 0 10px 10px}.rk-form-hint{margin-right:auto;font-size:11px;color:#728198}.rk-row-dialog footer button{font-size:12px;min-height:34px}.rk-discard{padding:10px 18px;background:#fff4e1;color:#805b20;font-size:12px}.rk-discard[hidden]{display:none}.rk-discard button{margin:5px;font-size:11px}.rk-row-dialog .rk-options{z-index:10}
@media(max-width:700px){.excel-head h1{font-size:16px}.excel-tabs button{min-height:35px}.rk-grid td{height:44px}.rk-grid .rk-row-actions button{min-height:32px}.rk-row-actions input[type=checkbox]{width:16px;height:16px}.inline-edit input,.inline-edit textarea{font-size:16px;min-height:32px}.rk-row-dialog{width:calc(100vw - 16px)}.rk-row-dialog .rk-form-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.rk-row-dialog header{padding:12px}.rk-row-dialog footer{padding:10px 12px}.rk-form-hint{font-size:10px}.rk-row-dialog .rk-form-field input,.rk-row-dialog .rk-form-field textarea{font-size:16px;min-height:40px}}
@media(max-width:480px){.rk-row-dialog .rk-form-fields{grid-template-columns:1fr}.rk-row-dialog form{max-height:94dvh}.rk-form-hint{max-width:100px}.rk-row-dialog header h2{font-size:17px}}

.payment-cell summary{cursor:pointer;overflow-wrap:anywhere;white-space:pre-wrap}.payment-cell summary small{color:#758092;font-size:10px}.payment-summary-list{max-height:300px;overflow:auto}.payment-summary-list button{display:block;width:100%;text-align:left;white-space:pre-wrap;padding:7px 2px;border:0;border-bottom:1px solid #e4e7ec;background:transparent}.payment-summary-list button small{font-size:10px;margin-top:4px}.payment-inline{min-width:260px;max-width:380px;white-space:normal}.payment-inline>summary{font-weight:600;cursor:pointer;margin-bottom:8px}.payment-inline .document-form-parts{max-height:400px;overflow:auto}.payment-inline .document-entry-date{display:flex;flex-wrap:wrap;gap:6px}.payment-inline .document-entry-date label{flex:1;min-width:100px}.payment-inline .document-form-entry{margin-bottom:10px}.payment-actions{display:flex;gap:5px;margin-top:8px}.payment-inline [role=alert]{color:#a51b25}.payment-cell .document-manage{font-size:11px;padding:3px 8px;margin-top:5px}
/* Admin master data: compact list, details and explicit impact preview. */
.master-dialog{width:min(980px,95vw);max-width:980px;padding:20px;max-height:90dvh;overflow:auto;font-size:13px}.master-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.master-heading h2{margin:0}.master-intro{margin:12px 0 7px;color:#46566a}.master-scope{font-size:11px;color:#66768a;background:#f1f5f9;padding:8px;border-radius:6px}.master-tabs{display:flex;gap:6px;margin:14px 0}.master-tabs button[aria-pressed=true],.master-entries button[aria-pressed=true]{background:#eaf4f3;border-color:#258277;color:#155e56}.master-filters{display:flex;align-items:end;gap:10px;margin-bottom:12px}.master-dialog label{display:flex;flex-direction:column;gap:5px;font-weight:600}.master-filters label:nth-child(2){flex:1}.master-dialog input,.master-dialog select{padding:8px;width:100%;min-width:0;border:1px solid #c7d1dd;border-radius:5px;background:white}.master-layout{display:grid;grid-template-columns:minmax(200px,38%) 1fr;border:1px solid #d7dfe7;border-radius:8px;overflow:hidden;min-height:380px}.master-entries{max-height:440px;overflow:auto;border-right:1px solid #d7dfe7;padding:7px}.master-entries button{display:flex;flex-direction:column;align-items:start;width:100%;gap:3px;text-align:left;margin-bottom:3px;padding:9px;border-color:transparent;white-space:normal;overflow-wrap:anywhere}.master-entries small{font-weight:400;color:#66768a}.master-details{padding:18px;min-width:0}.master-details h3{margin-top:0;overflow-wrap:anywhere}.master-details form{display:block;padding:0}.master-hint{font-size:12px;color:#66768a}.master-details details{margin-top:18px}.master-details li{font-size:11px;margin:7px 0}.master-details ul{max-height:180px;overflow:auto;padding-left:18px}.master-history article{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #e2e8f0;padding:13px 0}.master-history p{margin:5px 0}.master-history small{color:#66768a}.master-error{color:#ac2430}.master-impact{max-height:330px;overflow:auto;border:1px solid #d7dfe7}.master-impact table{border-collapse:collapse;width:100%;font-size:12px}.master-impact th,.master-impact td{padding:8px;text-align:left;border-bottom:1px solid #e2e8f0}.master-impact th{background:#eff4f8;position:sticky;top:0}.master-preview footer{display:flex;justify-content:end;gap:8px;margin-top:14px}.master-mapping{font-size:18px}.master-mapping del{color:#7c5860}.master-dialog .primary{background:#176c61;color:#fff}.master-dialog button{cursor:pointer}.master-dialog button:disabled{cursor:default;opacity:.5}@media(max-width:600px){.master-dialog{padding:13px}.master-layout{grid-template-columns:1fr}.master-entries{max-height:190px;border-right:0;border-bottom:1px solid #d7dfe7}.master-filters{flex-wrap:wrap}.master-filters label{min-width:120px}.master-details{padding:13px}.master-impact{max-height:240px}}
/* Primary workspace: calm, compact grid with space allocated by content. */
.excel-workspace{background:#f6f7f9;padding:12px 18px 8px;--rk-line:#e4e7ec;color:#252d38}.excel-head h1{font-size:18px;letter-spacing:-.025em}.excel-head .eyebrow{color:#727b89;font-size:9px}.excel-head-actions button{min-height:30px}.excel-tabs{border-bottom:0;gap:4px}.excel-tabs button{background:#e9edf2;color:#566171;padding:7px 9px}.excel-tabs button.independent{background:#edf1f3;color:#4d6570}.excel-tabs button.active,.excel-tabs button.active:hover{background:#8b1e2d;color:#fff;box-shadow:none}.rk-group{font-size:8px}.excel-workspace [data-more]{display:block}.rk-secondary{display:none;flex:0 0 100%;background:#eef1f5;border-radius:6px;padding:6px}.rk-secondary.show-tools{display:flex;flex-wrap:wrap}.rk-secondary a{font-size:11px;color:#425a76;padding:5px}.excel-controls [data-add]{background:#8b1e2d;color:#fff;border-color:#8b1e2d}.excel-find span{display:none}.excel-find input{width:245px}.excel-grid-wrap{border-color:#d4dbe3;box-shadow:0 2px 8px #24314205}.rk-grid thead th{font-size:11px;background:#eef1f5;font-weight:650;color:#475368;padding:7px}.rk-grid td{height:44px;padding:6px 8px;font-size:12px;line-height:1.4;vertical-align:top;background:#fff}.rk-grid tbody tr:nth-child(even) td{background:#fdfdfe}.rk-grid tbody tr:hover td{background:#f5f8fc}.rk-grid tbody tr.selected td,.rk-grid tbody tr.selected th{background:#eaf2fd}.rk-cell-value{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;max-height:2.8em;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;padding-right:3px}.rk-grid .rk-number,.rk-grid .rk-days,.rk-grid .rk-short{font-variant-numeric:tabular-nums}.rk-grid .rk-number{text-align:right}.rk-grid .rk-days,.rk-grid .rk-short{text-align:center}.rk-grid .rk-date{white-space:nowrap;font-size:11.5px}.rk-grid .rk-status .rk-cell-value{display:inline-block;border-radius:4px;max-width:100%;padding:3px 6px;font-size:10px;font-weight:600;line-height:1.25;background:#edf0f4;color:#5c6674}.rk-grid .status-pending .rk-cell-value{background:#fff2d5;color:#8b6209}.rk-grid .status-approved .rk-cell-value{background:#e3f2e9;color:#266647}.rk-grid .status-rejected .rk-cell-value{background:#fbe8eb;color:#a32c42}.rk-grid .status-canceled .rk-cell-value{background:#edf0f4;color:#6a7280}.rk-grid td.is-editing{outline:2px solid #577eaf;outline-offset:-2px;background:#fff!important}.inline-edit input,.inline-edit textarea{font-size:12px;line-height:1.45;background:#fff}.rk-grid td.is-expanded .rk-cell-value,.rk-grid tr.rk-expanded-row .rk-cell-value{display:block;-webkit-line-clamp:unset;line-clamp:unset;max-height:none}.rk-grid .rk-row-actions{width:58px;padding:3px;vertical-align:middle;background:#f7f9fb}.rk-row-actions input[type=checkbox]{display:block;margin:0 auto 3px;width:12px;height:12px}.rk-grid .rk-row-actions button{display:block;min-height:20px;width:42px;margin:auto;font-size:9px;padding:1px 3px}.rk-grid .rk-expand,.rk-grid .rk-profile{position:absolute;right:1px;bottom:1px;min-height:15px;min-width:15px;padding:0 2px;font-size:11px;border:0;background:#eef3f8;color:#537197;line-height:15px}.rk-grid .rk-profile{right:3px;bottom:3px;opacity:0}.rk-grid td:hover .rk-profile,.rk-grid .rk-profile:focus-visible{opacity:1}.rk-grid td:has(.rk-profile) .rk-dropdown{right:21px}.rk-grid th:has(+th),.rk-grid td{border-color:#e4e7ec}.rk-grid td.rk-date{border-left:1px solid #ccd5df}.rk-options{min-width:240px;max-width:min(420px,95vw)}.excel-caption{font-size:10px;color:#768293}.excel-footer{font-size:11px}.rk-form-field input,.rk-form-field textarea{color:#273244}.rk-row-dialog .rk-form-field.rk-wide textarea{min-height:100px}.rk-row-dialog .rk-form-fields{gap:14px}.rk-grid .formula-cell{color:#728296;background:#f8fafc!important}
/* Shared workspace, profiles and operational dashboard. */
.workspace-hub{max-width:1600px;margin:auto;padding:26px 30px 40px;color:#263143;font:13px Inter,Arial,sans-serif}.hub-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.hub-heading h1{font-size:26px;letter-spacing:-.04em;margin:5px 0 8px;font-weight:650}.hub-heading p{margin:0;color:#758092;font-size:12px}.hub-heading .eyebrow{font-size:9px;letter-spacing:.16em;color:#8b1e2d;font-weight:700}.hub-heading-actions{display:flex;gap:7px}.workspace-hub button,.hub-dialog button{font:12px Inter,Arial,sans-serif;padding:7px 10px;border:1px solid #dce2e9;border-radius:6px;color:#47566b;background:white;cursor:pointer;line-height:1.3}.workspace-hub button:hover,.hub-dialog button:hover{background:#f4f7fb}.workspace-hub button:disabled{opacity:.4;cursor:default}.workspace-hub .primary,.hub-dialog .primary{background:#8b1e2d;color:white;border-color:#8b1e2d}.hub-tabs{display:flex;gap:20px;border-bottom:1px solid #dce2e9;margin-bottom:18px;overflow:auto}.hub-tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:11px 0;white-space:nowrap}.hub-tabs button.active{color:#8b1e2d;border-bottom-color:#8b1e2d;font-weight:650}.hub-workspaces{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:10px;margin-bottom:20px}.hub-workspaces article{display:flex;align-items:center;gap:10px;padding:13px;background:#fff;border:1px solid #e0e5ec;border-radius:9px}.hub-workspaces article>div:nth-child(2){flex:1}.hub-workspaces small,.hub-table small{display:block;color:#7a8493;margin-top:5px;font-size:11px;line-height:1.4}.hub-initial{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#edf1f6;color:#536880;font-size:11px}.hub-toolbar{display:flex;gap:7px;flex-wrap:wrap;padding:12px 0}.workspace-hub input,.workspace-hub select,.hub-dialog input,.hub-dialog select,.hub-dialog textarea{border:1px solid #d8dfe8;border-radius:6px;padding:8px 9px;color:#334155;background:#fff;font:12px Inter,Arial,sans-serif;min-width:0}.hub-toolbar input{flex:2;min-width:230px}.hub-toolbar select{max-width:170px;flex:1;min-width:105px}.hub-result-label{display:flex;gap:12px;align-items:center;font-size:11px;color:#788498;padding:5px 0 12px}.hub-result-label>span:last-child{margin-left:auto}.hub-table-wrap{overflow:auto;border:1px solid #e0e5ec;border-radius:8px;background:white}.hub-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.hub-table th{padding:10px 13px;background:#f4f6f9;color:#667489;font-weight:550;font-size:10px;white-space:nowrap}.hub-table td{padding:11px 13px;border-top:1px solid #edf0f4;vertical-align:top;max-width:360px;overflow-wrap:anywhere}.hub-table tr:hover td{background:#fafbfd}.hub-table .hub-link{padding:0;border:0;background:none;text-align:left;font-size:12px;color:#314860}.hub-table small .hub-link{font-size:11px;color:#7b8796}.hub-link:hover{text-decoration:underline}.hub-stage{white-space:nowrap;font-size:10px;padding:4px 6px;border:1px solid #e1e6ed;border-radius:4px;display:inline-block;color:#5d6c81}.hub-row-actions{white-space:nowrap}.hub-row-actions button{font-size:10px;padding:5px 7px;margin-right:4px}.hub-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:12px;color:#728095;font-size:11px}.hub-empty{padding:40px;text-align:center;color:#7a8492}.hub-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.workspace-hub .hub-metric{display:flex;flex-direction:column;gap:7px;align-items:flex-start;padding:19px;text-align:left;border-radius:9px;background:#fff}.hub-metric>span{font-size:11px;color:#758092}.hub-metric strong{font-size:30px;font-weight:550;letter-spacing:-.05em;color:#273345;font-variant-numeric:tabular-nums}.hub-metric small{font-size:10px;color:#8793a4}.hub-insights{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.hub-insights section{background:#fff;border:1px solid #e0e5ec;border-radius:9px;padding:18px}.workspace-hub h2{font-size:13px;font-weight:650;margin:0 0 15px}.workspace-hub .hub-bar{display:flex;position:relative;align-items:center;width:100%;border:0;padding:9px 0;gap:12px;background:none;text-align:left;font-size:11px}.hub-bar span{min-width:145px}.hub-bar i{flex:1;height:5px;border-radius:3px;background:linear-gradient(to right,#9d6d79 var(--share),#f0f2f6 var(--share));}.hub-bar strong{width:30px;text-align:right;font-variant-numeric:tabular-nums}.workspace-hub .hub-owner{display:flex;width:100%;justify-content:space-between;border:0;border-bottom:1px solid #f0f3f6;border-radius:0;padding:12px 0;font-size:11px;background:none}.hub-definition{font-size:10px;color:#8993a0;margin:12px 0}.hub-recent{margin-top:26px;max-width:820px}.hub-recent button{display:flex;justify-content:space-between;width:100%;border:0;border-bottom:1px solid #edf0f4;text-align:left;border-radius:0;padding:12px;background:transparent}.hub-recent small{display:block;font-size:10px;color:#8793a4;margin-top:4px}.hub-recent time{font-size:10px;color:#8e98a6}.hub-profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.workspace-hub .hub-profile-grid button{display:flex;flex-direction:column;gap:10px;padding:18px;text-align:left}.hub-profile-grid small{font-size:9px;color:#9b7780;text-transform:uppercase;letter-spacing:.1em}.hub-profile-grid strong{line-height:1.5;font-size:12px;color:#43536a}.hub-profile-grid span{font-size:10px;color:#8591a3}.hub-dialog{width:min(1000px,calc(100vw - 30px));max-height:90dvh;padding:0;border:1px solid #d7dfe8;border-radius:12px;color:#344257;font:12px Inter,Arial,sans-serif;box-shadow:0 24px 80px #19243e33}.hub-dialog::backdrop{background:#24314266}.hub-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e2e7ed;position:sticky;top:0;background:white;z-index:2}.hub-dialog h2{font-size:18px;margin:0;font-weight:600;letter-spacing:-.02em}.hub-dialog h3{font-size:13px;margin:22px 0 10px}.hub-dialog-body{padding:16px 20px}.hub-dialog form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.hub-dialog label{display:flex;flex-direction:column;gap:6px;flex:1 1 240px;font-size:11px;color:#68768a}.hub-dialog textarea{resize:vertical}.hub-dialog form>button{align-self:end;margin:0}.hub-dialog form>[role=status]{flex:1 1 100%;color:#a02e43;white-space:pre-wrap}.hub-profile-fields{margin:17px 0}.hub-profile-counts{display:flex;gap:18px;font-size:11px;padding:12px;background:#f4f7fb;border-radius:6px}.hub-dialog fieldset{width:100%;border:1px solid #e1e7ed;border-radius:6px;padding:12px;display:flex;gap:12px;flex-wrap:wrap}.hub-dialog legend{font-weight:600;color:#47566b}.hub-dialog legend label{display:inline;font-size:12px}.hub-dialog input[type=checkbox]{width:14px;vertical-align:middle}.hub-dialog pre{font-size:10px;overflow:auto;max-width:850px;white-space:pre-wrap}.hub-dialog details{width:100%;color:#7a899a}.hub-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.hub-review-list{max-height:200px;overflow:auto;background:#f8fafc;padding:12px;line-height:1.8}.hub-warning{color:#98702e;background:#fff8e9;padding:7px;border-radius:5px;font-size:11px}.hub-comments article{padding:12px;border-bottom:1px solid #e6eaf0}.hub-comments time{float:right;font-size:10px;color:#8792a2}.hub-comments p{white-space:pre-wrap}.hub-history-item{display:flex;flex-direction:column;gap:6px;padding:12px;border-bottom:1px solid #e6eaf0}.hub-history-item span,.hub-history-item small{color:#7d8b9d;font-size:11px}
@media(max-width:800px){.workspace-hub{padding:18px 14px}.hub-heading{align-items:start}.hub-heading h1{font-size:21px}.hub-heading-actions{flex-direction:column}.hub-metrics{grid-template-columns:repeat(2,1fr);gap:8px}.workspace-hub .hub-metric{padding:14px}.hub-insights{grid-template-columns:1fr}.hub-toolbar select{max-width:none}.hub-table{min-width:800px}.hub-profile-counts{flex-wrap:wrap;gap:10px}.hub-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-dialog form label{flex-basis:100%}.hub-dialog input,.hub-dialog select,.hub-dialog textarea{font-size:16px}.hub-dialog-body{padding:14px}.hub-dialog .hub-table{min-width:650px}.hub-workspaces{grid-template-columns:1fr}.hub-workspaces article{flex-wrap:wrap}.hub-workspaces article>button{min-height:36px}.excel-workspace{padding:9px;height:calc(100dvh - 100px);min-height:600px}.excel-workspace .rk-profile{opacity:1}.rk-grid .rk-cell-value{padding-right:13px}.rk-grid .rk-row-actions button{min-height:28px}.rk-row-actions input[type=checkbox]{width:15px;height:15px}.inline-edit input,.inline-edit textarea{font-size:16px}.excel-find input{width:210px}.hub-tabs{gap:18px}.hub-tabs button{min-height:42px}}
.rk-grid td{padding:5px 8px;line-height:1.35}.rk-cell-value{max-height:2.7em}.hub-dialog button:focus-visible,.workspace-hub button:focus-visible{outline:2px solid #597da6;outline-offset:2px}
.hub-dialog form{flex-direction:row;align-items:flex-start;width:100%}.hub-dialog form>label{align-items:stretch;min-height:0}.hub-dialog form>label input,.hub-dialog form>label textarea,.hub-dialog form>label select{width:100%;box-sizing:border-box}.hub-dialog .hub-profile-fields label:last-of-type{flex-basis:100%}.hub-dialog [hidden]{display:none!important}.hub-dialog form>label:has(input[type=checkbox]){flex-direction:row;align-items:center}.hub-dialog form>label input[type=checkbox]{width:16px;flex:none}.hub-dialog .hub-mapping label{flex:none}
/* Shared compact administration and record views. */
.workspace-hub{font-size:12.5px}.workspace-hub .hub-heading{padding:4px 0 10px;margin:0}.workspace-hub h1{font-size:22px;line-height:1.2;margin:0 0 4px}.workspace-hub h2{font-size:14px}.hub-toolbar{gap:6px!important;flex-wrap:wrap}.hub-toolbar input,.hub-toolbar select{min-height:30px;padding:5px 8px;font-size:12px;max-width:185px;min-width:100px}.hub-toolbar [data-search]{min-width:190px;flex:1}.hub-table td,.hub-table th{padding:6px 8px!important}.hub-selection{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:#f7edf0;padding:7px;border-radius:6px;margin:6px 0}.hub-selection:empty{display:none}.hub-metrics>button{border:1px solid #e0e5eb;border-radius:8px;background:white;text-align:left;padding:12px;display:grid;gap:5px}.hub-metrics>button strong{font-size:25px}.hub-metrics>button span{font-size:12px;color:#647084}.hub-profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.hub-profile-grid>button{display:grid;gap:5px;text-align:left;padding:12px;border:1px solid #e0e5eb;border-radius:8px}.hub-profile-link{padding:2px!important;min-height:24px!important}.hub-profile-link+small{display:block}.hub-assignments>div{display:flex;gap:10px;justify-content:space-between;padding:6px;border-bottom:1px solid #e8ebef}.admin-tabs{gap:4px!important;flex-wrap:wrap}.admin-tabs button{font-size:12px!important;padding:6px 8px!important;min-height:30px}.hub-dialog form{display:flex;flex-direction:column!important;gap:10px;align-items:stretch!important}.hub-dialog label{display:flex;flex-direction:column;gap:4px;font-size:12px}.hub-dialog label.toggle{flex-direction:row;align-items:center}.hub-dialog input,.hub-dialog select,.hub-dialog textarea{min-width:0;width:100%;font-size:13px;padding:7px;border:1px solid #dbe0e7;border-radius:5px}.hub-dialog input[type=checkbox]{width:16px;height:16px;flex:none}.hub-dialog button{min-height:30px;padding:5px 10px}.hub-dialog fieldset{border:1px solid #e4e7ec;border-radius:6px;margin:8px 0;padding:8px}.hub-dialog fieldset small{display:block;white-space:pre-wrap;max-height:60px;overflow:auto}.hub-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fa;font-size:11px;padding:8px}.profile-panel{position:fixed!important;inset:0 0 0 auto!important;margin:0!important;width:min(620px,95vw)!important;max-width:95vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.profile-panel .hub-dialog-body{padding:16px;overflow:auto;max-height:calc(100dvh - 62px)}.profile-contact{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;background:#f7f8fa;border-radius:6px}.profile-contact input{font-size:12px}.profile-record{border-bottom:1px solid #e3e7ed;padding:10px 0;display:grid;gap:5px}.profile-record small{display:block;color:#647084}.profile-record p{margin:4px 0}.profile-record button{justify-self:start}.reference-manager{width:min(1080px,96vw)!important}.reference-manager-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(260px,1.3fr);gap:14px}.master-entry{display:block;width:100%;text-align:left;padding:8px!important;border-bottom:1px solid #e5e8ed!important;border-radius:0!important}.master-entry small{display:block;color:#647084}.master-entry strong{font-size:12px}.master-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.master-filters label{flex:1}.reference-manager [data-products],.reference-manager [data-statuses],.hub-dialog [data-products]{max-height:220px;overflow:auto}.request-review,.import-queue-row,.admin-history-item{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #e3e7ed}.request-review select{max-width:270px}.request-review small{color:#647084}.import-review{width:min(1100px,96vw)!important}.import-review [data-columns] fieldset{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.import-review [data-reference-review]{max-height:320px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px}.import-record{padding:8px;border-bottom:1px solid #e3e7ed}.import-record select{margin-top:5px}.hub-comment{padding:8px 0;border-bottom:1px solid #e3e7ed}.hub-comment small{display:block;color:#647084}.hub-mobile-records,.rk-mobile-cards,.rk-mobile-toggle{display:none}.hub-dialog [role=alert]{color:#ad2636}.rk-grid td{font-size:12px}.rk-grid th{font-size:11px}.rk-row-actions button,.rk-profile,.rk-expand{min-width:24px!important;min-height:24px!important}.rk-row-actions{width:58px}.excel-move-bar{padding:4px 0!important;min-height:0!important}.excel-move-bar:not(:has(button)){display:none}.excel-caption{margin:5px 0!important;font-size:11px!important}.excel-head h1{font-size:21px!important}.excel-head{margin-bottom:7px!important}.topbar .brand-title{font-size:11px}.hub-dialog-body>h3{margin:16px 0 8px;font-size:14px}
@media(max-width:700px){.hub-table-wrap{display:none}.hub-mobile-records,.rk-mobile-cards{display:grid;gap:7px}.hub-mobile-records article,.rk-mobile-cards article{padding:10px;border:1px solid #dfe5eb;border-radius:7px;background:white;display:grid;gap:6px}.hub-mobile-records small{color:#667386}.hub-mobile-records button,.rk-mobile-cards button{min-height:40px}.rk-mobile-toggle{display:block;margin:6px 0}.excel-workspace .excel-grid-wrap{display:none}.excel-workspace.show-mobile-table .excel-grid-wrap{display:block}.excel-workspace.show-mobile-table .rk-mobile-cards{display:none}.hub-toolbar input,.hub-toolbar select{font-size:16px;max-width:none;flex:1;min-width:130px;min-height:40px}.hub-heading-actions{flex-wrap:wrap}.hub-heading-actions select{max-width:190px}.reference-manager-grid{grid-template-columns:1fr}.reference-manager-grid>section:first-child{max-height:250px;overflow:auto}.hub-dialog input,.hub-dialog select,.hub-dialog textarea{font-size:16px}.hub-dialog button{min-height:40px}.import-review [data-columns] fieldset,.import-review [data-reference-review]{grid-template-columns:1fr}.profile-panel{width:100vw!important;max-width:100vw!important}.profile-contact{grid-template-columns:1fr}.admin-tabs button{min-height:40px}.hub-metrics{grid-template-columns:1fr 1fr!important}.hub-selection{position:sticky;top:0;z-index:3}.hub-table-wrap:has(.profile-record){display:block}}
/* Compact admin review: progressive disclosure, readable value comparisons. */
.import-summary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.import-summary>span{display:flex;gap:8px;align-items:center;background:#f3f5f8;border:1px solid #dce1e7;border-radius:7px;padding:8px 12px;font-size:12px}.import-summary strong{font-size:17px;color:#7c2233}.import-comparison{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;margin:8px 0}.import-comparison th,.import-comparison td{border:1px solid #dce1e7;padding:7px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;vertical-align:top}.import-comparison th:first-child{width:22%}.import-comparison tr.value-changed td:last-child{background:#fff4d6}.import-issues{display:grid;gap:10px}.import-issues article{border:1px solid #dce1e7;border-radius:8px;padding:12px}.import-issues small{display:block;color:#65717e;margin-top:4px}.import-value{white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto;background:#f6f7fa;padding:8px;margin:8px 0}.review-draft-status,[data-draft-status]{font-size:12px;color:#65717e;margin:6px 18px}.master-filters{flex-wrap:wrap}.master-filters label{min-width:140px}.import-review [data-resume]{display:grid;gap:6px}.import-review details{margin:8px 0}.import-review [data-config]>details .toggle{display:flex;gap:8px}.pipeline-admin-top{flex-wrap:wrap}.pipeline-admin-top .danger{margin-left:auto}
@media(max-width:600px){.import-summary>span{flex:1 1 40%;padding:7px}.import-comparison{font-size:11px}.import-comparison th,.import-comparison td{padding:5px}.master-filters label{min-width:100%;}.review-draft-status{margin:4px 12px}}

/* Clear, compact work views, separate from editing actions. */
.pipeline-views{display:flex;gap:5px;flex-wrap:wrap;padding:7px 0;align-items:center}.pipeline-views button{border:1px solid #dce2e9;border-radius:6px;background:#fff;color:#526173;padding:6px 9px;font:12px Inter,Arial,sans-serif;cursor:pointer;white-space:nowrap}.pipeline-views button[aria-pressed=true]{background:#f7edf0;color:#801a2c;border-color:#c99ba5;font-weight:600}.pipeline-views button span{font-variant-numeric:tabular-nums;font-size:11px;opacity:.8;margin-left:5px}.document-date.needs-review,.date-review-label{color:#875500!important;background:#fff3d6!important;border-radius:4px;padding:2px 4px}.rk-date-review{background:#fffaf0!important}.workspace-save-state[data-state=saved],.workspace-save-state[data-state=ready]{color:#687887!important;background:transparent!important}.workspace-save-state[data-state=error],.rk-cell-error:not(:empty){color:#a11c2e!important}.excel-controls{column-gap:8px;row-gap:6px}.excel-controls .excel-undo{margin-left:auto}.calendar-days button[aria-pressed=true]{background:#8b1e2d;color:white}.cell-calendar header strong{font-size:12px}.document-date{font-variant-numeric:tabular-nums}.excel-head h1{font-size:19px!important}@media(max-width:700px){.pipeline-views{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px}.pipeline-views button{min-height:38px}.excel-controls .excel-undo{margin-left:0}.excel-find{flex:1;min-width:160px}.excel-find input{width:100%}}
.excel-workspace .document-parts .document-manage{color:#801a2c;font-size:10px;height:auto;min-height:20px;text-decoration:underline;text-underline-offset:2px}.document-entry-list{display:grid;gap:10px}.document-form-parts .document-form-entry{display:grid;gap:8px;padding:12px;border:1px solid #dce1e7;border-radius:7px;background:#fff}.document-entry-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.document-entry-heading strong{font-size:12px}.document-entry-heading button{font-size:11px;min-height:28px}.document-form-entry label{display:grid;gap:5px;font-size:11px;color:#526173}.document-entry-date{display:grid;grid-template-columns:minmax(120px,1fr) minmax(95px,.7fr) auto;align-items:end;gap:8px}.document-form-entry input,.document-form-entry textarea,.document-form-entry select{box-sizing:border-box;width:100%;min-width:0;padding:8px;border:1px solid #cbd3dd;border-radius:5px;font:12px Inter,Arial,sans-serif;color:#243142;background:#fff}.document-form-entry textarea{resize:vertical;white-space:pre-wrap}.document-form-entry [aria-invalid=true]{border-color:#a11c2e}.document-form-parts .document-review{color:#875500;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.document-form-parts .document-add{justify-self:start}.document-original{padding-top:8px}.document-original summary{cursor:pointer}.document-dialog{width:min(650px,calc(100vw - 24px));max-height:90dvh;padding:0}.document-dialog>form{display:flex;flex-direction:column;max-height:88dvh}.document-dialog header,.document-dialog footer{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:16px 20px}.document-dialog header h2{font-size:18px;margin:0 0 6px}.document-dialog header p{margin:3px 0;color:#657180;font-size:12px}.document-dialog-body{overflow:auto;min-height:0;padding:0 20px 12px}.document-dialog footer{justify-content:flex-end;border-top:1px solid #dce1e7}.document-dialog [role=alert]{margin:0;padding:0 20px 10px;color:#a11c2e;font-size:12px}.document-dialog .rk-discard{padding:10px 20px}.document-dialog .rk-discard[hidden]{display:none}.document-dialog .primary{background:#8b1e2d;color:#fff;border-color:#8b1e2d}.document-dialog button{cursor:pointer}.rk-form-field:has(>.document-form-parts){grid-column:1/-1}.document-form-parts label{font-weight:normal}.document-form-parts [hidden]{display:none!important}@media(max-width:600px){.document-entry-date{grid-template-columns:1fr 1fr}.document-entry-date>button{grid-column:1/-1;justify-self:start}.document-dialog header,.document-dialog footer{padding:12px}.document-dialog-body{padding:0 12px 10px}.document-form-entry input,.document-form-entry textarea,.document-form-entry select{font-size:16px}.document-form-parts .document-form-entry{padding:10px}}

/* Approved Sabahi workspace design, shared by every primary workspace and admin page. */
:root{--ink:#273342;--muted:#687487;--line:#e1e5eb;--surface:#f6f7f9;--brand:#8b1e2d;--focus:#8b1e2d;--rk-accent:#8b1e2d;--rk-line:#e1e5eb;--rk-muted:#687487}
body{background:var(--surface);color:var(--ink);font-size:13px}button,input,select,textarea{font-family:Inter,Arial,sans-serif}button{border-radius:5px;min-height:32px;padding:6px 10px;font-size:12px}button:not(:disabled),summary,a{touch-action:manipulation}button.primary,.excel-workspace button.primary,.workspace-hub button.primary{background:var(--brand);border-color:var(--brand);color:#fff}button.primary:hover:not(:disabled){background:#731826}.sp-icon{vertical-align:middle;flex:0 0 auto;pointer-events:none}button:has(.sp-icon),a:has(.sp-icon){display:inline-flex;align-items:center;justify-content:center;gap:6px}.sp-icon+span{min-width:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}input,select,textarea{font-size:13px;border:1px solid #d5dce5;background:#fff;border-radius:5px;color:var(--ink)}input[type=checkbox]{accent-color:var(--brand);width:14px;height:14px}input:disabled,select:disabled,textarea:disabled{opacity:.7}h1{font-size:23px;letter-spacing:-.03em}h2{font-size:16px}h3{font-size:13px}.muted{color:var(--muted)}[hidden]{display:none!important}
.topbar{height:56px;min-height:56px;background:#fff;border-bottom:1px solid var(--line);box-shadow:none;padding:0 20px;gap:26px;align-items:center}.topbar .brand{display:flex;align-items:center;gap:10px;font:700 20px/1 Inter,Arial;color:#1d2939;text-decoration:none;letter-spacing:-.03em}.brand-mark{display:grid;place-items:center;width:31px;height:32px;border-radius:5px;color:#fff;background:var(--brand);font-size:24px;font-weight:550}.brand small{display:block;font-size:10px;font-weight:450;letter-spacing:0;color:#687487;margin-top:5px}.topbar nav{height:100%;margin:0;display:flex;align-items:stretch;gap:14px}.topbar nav button{border-radius:0;border:0;border-bottom:2px solid transparent;background:transparent!important;padding:0 10px;color:#364153;font-size:12px;font-weight:550}.topbar nav button.nav-active{border-bottom-color:var(--brand);color:var(--brand);font-weight:650}.account-menu{margin-left:auto}.topbar .avatar,.workspace-avatar{background:#f1e5e8;color:var(--brand);border-radius:50%;display:grid;place-items:center;font-weight:650}.topbar .avatar{width:32px;height:32px;font-size:12px}.topbar .account-name{font-size:12px}.release-label{display:block;color:var(--muted);padding:6px 10px 9px;border-bottom:1px solid var(--line);margin-bottom:5px}main{max-width:none}.workspace-hub{padding:18px 22px 26px;max-width:1600px;margin:0 auto;color:var(--ink);font-size:13px}.hub-heading,.page-head{margin:0 0 16px;gap:14px;align-items:center}.hub-heading h1,.page-head h1{font-size:23px;font-weight:650;line-height:1.3;margin:0 0 5px}.hub-heading p,.page-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.hub-heading>select{max-width:240px;min-height:32px}.workspace-hub button,.hub-dialog button{border-radius:5px;font-size:12px;min-height:32px;line-height:1.4}.workspace-hub h2{font-size:14px;margin:0 0 12px}.workspace-hub input,.workspace-hub select{font-size:12px;min-height:32px;padding:6px 9px}.hub-toolbar{gap:7px;margin:0 0 12px;align-items:center}.hub-toolbar>select{width:auto;max-width:210px}.search-field{position:relative;display:flex;align-items:center;gap:7px;border:1px solid #d5dce5;background:#fff;border-radius:5px;padding:0 9px;color:var(--muted);flex:1;max-width:350px}.search-field input{border:0;padding:7px 0;min-width:0;width:100%;background:transparent;outline-offset:0}.search-field:focus-within{outline:2px solid #8b1e2d22;border-color:var(--brand)}.search-field input:focus{outline:none}.hub-advanced{position:relative}.hub-advanced summary{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #d5dce5;border-radius:5px;font-size:12px;background:#fff;cursor:pointer;list-style:none}.hub-advanced>div{position:absolute;right:0;top:38px;width:300px;z-index:10;background:#fff;box-shadow:0 8px 30px #2431421a;border:1px solid var(--line);border-radius:6px;padding:12px;display:grid;gap:9px}.hub-advanced label{display:grid;gap:4px;font-size:11px;color:var(--muted)}.hub-advanced input,.hub-advanced select{max-width:none;width:100%}.hub-table-wrap{border:1px solid var(--line);border-radius:6px;background:#fff;overflow:auto}.hub-table{font-size:12px;min-width:860px;width:100%;border-collapse:separate;border-spacing:0}.hub-table th{background:#f0f3f7;color:#364153;font-weight:650;padding:10px;font-size:11px;border-bottom:1px solid #d6dee7}.hub-table td{padding:9px 10px;border-bottom:1px solid var(--line);border-right:1px solid #eef0f4;line-height:1.45}.hub-table tr:last-child td{border-bottom:0}.hub-table tr:nth-child(even) td{background:#fafbfd}.hub-table tbody tr:hover td{background:#f7eff1}.hub-table td small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.hub-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.hub-table .hub-profile-link{padding:0;min-height:22px;border:0;background:none;color:#273342;text-align:left;white-space:normal;line-height:1.4}.hub-profile-link:hover{text-decoration:underline;color:var(--brand)}.hub-stage{font-size:11px;border:1px solid #e0e5eb;background:#f3f5f8;color:#4c5a6e;border-radius:4px;padding:3px 6px;white-space:normal}.hub-row-actions{white-space:nowrap}.hub-row-actions button{padding:4px 6px;min-height:28px}.hub-result-label{font-size:11px;color:var(--muted);margin:8px 0;display:flex;gap:14px;flex-wrap:wrap}.hub-result-label strong{font-weight:550}.hub-pagination{margin:10px 0 0;font-size:11px;gap:10px}.hub-pagination button{min-height:28px;padding:4px 9px}.hub-selection{border-radius:5px;background:#f6e9ed;border-color:#e1c4cd;color:var(--brand)}.hub-selection:empty{display:none}.hub-assignments{margin-top:18px;font-size:12px}.hub-assignments>div{padding:8px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
/* Spreadsheet: content dictates width; identifiers and dates stay compact. */
.excel-workspace{--rk-accent:var(--brand);--rk-line:var(--line);--rk-muted:var(--muted);height:calc(100dvh - 56px);min-height:470px;padding:10px 14px 6px;gap:0;background:var(--surface);color:var(--ink)}.excel-head{min-height:54px;margin-bottom:7px!important}.excel-owner{display:flex;align-items:center;gap:12px}.workspace-avatar{width:38px;height:38px;font-size:14px;flex:none}.excel-head h1{font-size:21px!important;letter-spacing:-.025em;font-weight:650;margin:0 0 3px}.excel-head p{font-size:12px;color:var(--muted)}.excel-head-actions button{border:0;background:transparent;color:var(--muted);font-size:11px}.excel-tabs{gap:8px;min-height:44px;padding:4px 0 9px;border-bottom:1px solid var(--line);align-items:center}.excel-tabs button{background:transparent;color:#344052;border:1px solid transparent;border-radius:5px;font-size:12px;font-weight:550;padding:7px 11px;min-height:32px;white-space:nowrap}.excel-tabs button.independent{background:transparent;color:#344052}.excel-tabs button:hover:not(.active){background:#eceff3}.excel-tabs button.active,.excel-tabs button.active:hover{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:none}.stage-divider{height:22px;border-left:1px solid #bdc6d3;flex:none;margin:0 9px}.excel-tabs .all-stages{margin-left:auto;border-left:1px solid #bdc6d3;border-radius:0;padding-left:20px}.excel-controls{gap:8px;padding:10px 0;margin:0;flex-wrap:nowrap}.excel-controls .excel-find{position:relative;display:flex;align-items:center;border:1px solid #d5dce5;border-radius:5px;background:#fff;padding-left:9px;gap:7px;min-width:150px;width:290px;max-width:35%;color:var(--muted)}.excel-find input{width:100%;border:0;background:transparent;padding:7px 8px 7px 0;font-size:12px;min-height:32px;min-width:0}.excel-find:focus-within{border-color:var(--brand);outline:2px solid #8b1e2d22}.excel-find input:focus{outline:none}.excel-undo{margin-left:auto;gap:4px;display:flex}.excel-undo button{border:0;background:transparent;font-size:12px;color:#617084}.excel-undo button:hover:not(:disabled){background:#eceff3}.excel-controls [data-add]{padding:7px 12px;font-size:12px;min-height:32px}.workspace-save-state{display:flex;align-items:center;gap:6px;font-size:11px;max-width:190px;line-height:1.4;color:#4b5b6b}.workspace-save-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#2a8964;flex:none}.workspace-save-state[data-state=error]{color:#a12438}.workspace-save-state[data-state=error]:before{background:#ad293c}.workspace-save-state[data-state=saving]:before,.workspace-save-state[data-state=dirty]:before{background:#bd912d}.excel-move-bar{gap:10px;font-size:11px;padding:0 0 6px!important;margin:0}.excel-move-bar button{font-size:11px;min-height:28px}.excel-grid-wrap{border:1px solid #dce3eb;border-radius:6px;box-shadow:none;min-height:230px!important}.rk-grid th,.rk-grid td{border-color:var(--line);color:var(--ink);font-size:12px;line-height:1.4}.rk-grid thead th{padding:10px 8px;background:#f0f3f7;font-size:11px;font-weight:650;box-shadow:0 1px 0 #d8e0e9}.rk-grid td{height:60px;padding:5px 8px;background:white;vertical-align:middle;overflow-wrap:normal;word-break:normal}.rk-grid tbody tr:nth-child(even) td{background:#fafbfd}.rk-grid tbody tr:hover td{background:#f5f0f3}.rk-grid tbody tr.selected td,.rk-grid tbody tr.selected th{background:#f6e9ed}.rk-grid .rk-cell-value{max-height:4.2em;-webkit-line-clamp:3;line-height:1.4;padding-right:0;overflow-wrap:anywhere}.rk-grid .rk-row-actions{width:42px;padding:4px;background:#fafbfd}.rk-row-actions input[type=checkbox]{width:13px;height:13px;display:block;margin:0 auto 3px}.rk-grid .rk-row-actions button{display:flex;align-items:center;justify-content:center;width:25px;min-width:25px!important;height:24px;min-height:24px!important;border:0;padding:2px;margin:0 auto;background:transparent;color:#738091}.rk-grid .rk-row-actions button:hover{background:#eadce2;color:var(--brand)}.rk-grid .rk-document strong{display:block;font-size:12px;font-weight:600;line-height:1.5}.rk-grid .rk-document small{display:block;font-size:11px;color:var(--muted);line-height:1.5}.rk-grid .rk-date,.rk-grid .rk-days{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.rk-grid .rk-number{font-variant-numeric:tabular-nums}.rk-grid .rk-short{font-size:11px}.rk-grid .rk-dropdown{font-size:11px;color:#9aa5b4;bottom:4px;right:4px}.rk-grid .rk-profile{position:absolute;right:2px;top:1px;min-width:18px!important;min-height:18px!important;padding:0;font-size:11px;background:#fff9;border:0;opacity:0}.rk-grid td:hover .rk-profile,.rk-grid td:focus-within .rk-profile{opacity:1}.rk-grid td:has(.rk-dropdown){padding-right:12px}.rk-grid td.is-editing{outline:1.5px solid var(--brand);outline-offset:-1.5px;box-shadow:none;background:#fff!important}.inline-edit input,.inline-edit textarea{font:12px/1.4 Inter,Arial,sans-serif;padding:3px;color:var(--ink)}.rk-grid .rk-expanded-row td .rk-cell-value{display:block;-webkit-line-clamp:unset;max-height:180px;overflow:auto}.excel-footer{padding:8px 0 0;margin:0;font-size:11px;color:var(--muted);min-height:33px}.excel-footer button{min-width:28px;min-height:28px;padding:2px 6px}.excel-keyboard-hint{font-size:11px}.rk-options{border:1px solid #d9dfe8;border-radius:6px;box-shadow:0 8px 25px #2936491c}.rk-options button{min-height:32px;padding:7px 9px;font-size:12px}.rk-options .rk-option-hint{font-size:11px}.rk-options .rk-request-entry{border-top:1px solid var(--line);border-radius:0;margin-top:4px;color:var(--brand)}.rk-row-dialog{border-radius:8px;width:min(960px,calc(100vw - 24px));box-shadow:0 18px 60px #26344724}.rk-row-dialog header{background:#f6f7f9;border-bottom:1px solid var(--line)}.rk-row-dialog h2{font-size:19px}.rk-form-fields{gap:12px 16px}.rk-form-field>span{font-size:11px;font-weight:600;color:#596577}.rk-form-fields input,.rk-form-fields textarea{font-size:13px;line-height:1.45;border-radius:5px}.rk-form-fields textarea{min-height:84px}.rk-row-dialog footer{background:#fafbfd;border-top:1px solid var(--line)}
/* Overview is a concise navigation and exception page, not another editing table. */
.overview-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}.overview-guide button{display:flex;justify-content:flex-start;align-items:flex-start;gap:10px;padding:13px 12px;text-align:left;background:#fff;border:1px solid var(--line);min-height:75px}.overview-guide button>svg:first-child{color:var(--brand);margin-top:2px}.overview-guide button>svg:last-child{margin-left:auto;width:14px;color:#9aa4b3}.overview-guide strong{display:block;font-size:12px;font-weight:650}.overview-guide small{display:block;font-size:11px;font-weight:400;line-height:1.45;color:var(--muted);margin-top:5px}.overview-guide button:hover{border-color:#c69aa4;background:#fdf9fa}.hub-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 0 10px}.hub-metrics>button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:14px;background:#fff;border:1px solid var(--line)}.hub-metrics>button span{font-size:11px;color:var(--muted)}.hub-metrics>button strong{font-size:25px;font-weight:600;letter-spacing:-.03em;color:#293649;line-height:1.1}.overview-context{display:flex;gap:18px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:11px;margin:0 0 16px}.overview-context button{border:0;background:transparent;color:var(--brand);font-size:11px;min-height:25px;padding:0}.overview-context button:last-child{margin-left:auto}.hub-insights{gap:12px;grid-template-columns:1fr 1fr}.hub-insights section{padding:15px;border:1px solid var(--line);border-radius:6px}.hub-bar{padding:8px 0!important}.hub-bar span{min-width:140px!important;font-size:11px}.hub-bar i{height:4px!important;background:linear-gradient(to right,#a05768 var(--share),#f0f2f6 var(--share))!important}.hub-owner{font-size:12px!important;padding:9px 0!important}.onboarding-status{margin-top:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.section-heading h2{margin:0}.readiness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.readiness-grid button{display:flex;justify-content:space-between;text-align:left;gap:12px;padding:11px;background:#fff;border:1px solid var(--line)}.readiness-grid strong{font-size:12px;font-weight:550}.readiness-grid small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.status-label{font-size:10px;padding:3px 6px;border-radius:4px;align-self:center;white-space:nowrap}.status-label.ready{color:#237256;background:#edf6f1}.status-label.review{color:#926b20;background:#fff7e5}
/* Customer and product directories lead to dedicated profile pages. */
.segmented{display:flex;background:#edf0f4;padding:3px;border-radius:6px;gap:3px}.segmented button{border:0;background:transparent;color:#647084;padding:5px 14px;min-height:30px}.segmented button.active{color:var(--brand);background:#fff;box-shadow:0 1px 3px #2431420d}.profile-directory-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:15px}.profile-directory-toolbar .search-field{max-width:430px}.hub-profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:9px}.workspace-hub .hub-profile-grid>button{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:6px}.hub-profile-grid>button:hover{border-color:#c498a2;background:#fefafb}.profile-card-heading{display:flex;align-items:center;gap:10px}.profile-card-heading>div{min-width:0;flex:1}.profile-letter{display:grid!important;place-items:center;width:31px;height:31px;flex:none;background:#f2e8ec;border-radius:5px;color:var(--brand)!important;font-size:14px!important;font-weight:600}.profile-card-heading strong{font-size:13px;color:var(--ink)}.profile-card-heading small{display:block!important;font-size:11px!important;text-transform:none!important;letter-spacing:0!important;color:var(--muted)!important;margin-top:3px}.profile-card-heading>svg{color:#9aa5b5}.hub-profile-grid>button>span{font-size:11px;color:var(--muted)}.profile-heading{align-items:flex-end;margin-bottom:12px}.profile-back{padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;margin-bottom:12px;min-height:22px!important}.profile-heading .eyebrow{font-size:10px;color:var(--brand);letter-spacing:.08em;margin-bottom:4px;text-transform:uppercase}.profile-heading h1{font-size:25px}.profile-key-count{text-align:right;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:11px}.profile-key-count strong{font-size:25px;color:var(--ink);font-weight:600}.profile-metrics{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:11px;color:var(--muted);padding:12px 0 16px}.profile-metrics>span{display:flex;align-items:baseline;gap:6px}.profile-metrics strong{font-size:17px;color:#344052;font-weight:600}.profile-tabs{display:flex;border-bottom:1px solid var(--line);gap:18px;margin-bottom:15px}.profile-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:9px 0;font-size:12px}.profile-tabs button.active{border-bottom-color:var(--brand);color:var(--brand)}.profile-record-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.profile-record-toolbar input{max-width:220px}.profile-record-toolbar select{max-width:190px}.profile-result-count{font-size:11px;color:var(--muted);margin:12px 0 8px}.profile-record-table{min-width:1050px}.profile-record-table td{max-width:210px}.profile-record-table td:first-child{min-width:135px}.profile-record-table strong{font-weight:550}.profile-note{white-space:pre-wrap;overflow-wrap:anywhere;max-width:260px!important;min-width:180px}.profile-record-table .profile-note{max-height:90px}.profile-documents{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;margin-bottom:12px}.profile-documents>a{display:flex;justify-content:flex-start;gap:10px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:5px;color:var(--ink);text-decoration:none;font-size:12px}.profile-documents small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.profile-upload{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 0 20px;color:var(--muted);font-size:12px}.profile-upload input{max-width:270px}.profile-details{display:grid;gap:18px;max-width:1000px}.profile-details>label{display:grid;gap:6px;font-size:12px;font-weight:550}.profile-details textarea{padding:10px;resize:vertical;line-height:1.6;min-height:85px}.profile-contact{display:grid;grid-template-columns:1fr 1fr 1.3fr 1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);align-items:end;margin-bottom:9px}.profile-contact label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.profile-contact input{min-width:0;width:100%}.profile-contact button{font-size:11px;color:var(--muted)}.profile-savebar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 0}.profile-savebar [role=status]{font-size:12px;color:var(--muted)}.profile-page [data-section=details]>h2{margin-top:24px}.retained-profiles{margin-top:15px}.retained-profiles details{background:#fff;border:1px solid var(--line);border-radius:5px;padding:12px;margin-bottom:8px}.retained-profiles p{white-space:pre-wrap;font-size:12px;line-height:1.55}.profile-activity{max-width:1000px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.profile-activity strong{font-weight:550}.profile-activity time{float:right;color:var(--muted);font-size:11px}.profile-activity p{white-space:pre-wrap;margin:7px 0;color:#465467}.profile-activity small{color:var(--muted)}.profile-page [data-section=activity]>h2:not(:first-child){margin-top:24px}.profile-record-cards{display:none}
/* Administrative controls use the same line, type and surface language. */
.admin-tabs{padding:0 0 8px;gap:4px;margin-bottom:14px}.admin-tabs button{font-size:11px;min-height:31px;padding:6px 9px}.admin-tabs button.active{color:var(--brand);background:#f2e5e9}.people-table th,.reference-table th{background:#f0f3f7;color:#344052;font-size:11px}.people-table td{padding:10px 12px;font-size:12px}.people-table td strong{font-weight:550}.page-head{margin-bottom:15px}.hub-dialog{border-radius:8px;border-color:#d9e0e8;box-shadow:0 18px 70px #24314226;font-size:12px}.hub-dialog>header{padding:13px 17px;background:#f8f9fb}.hub-dialog>header h2{font-size:18px}.hub-dialog-body{padding:15px 17px}.hub-dialog input,.hub-dialog select,.hub-dialog textarea{font-size:13px;padding:8px;border-radius:5px}.hub-dialog-body>p{line-height:1.55;color:var(--muted)}.reference-manager{width:min(1140px,96vw)!important}.master-filters{gap:10px}.master-filters label{font-size:11px}.reference-manager-grid{gap:18px;grid-template-columns:minmax(250px,.9fr) minmax(0,1.1fr)}.master-choice{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);padding:0 5px}.master-choice.selected{background:#f7ecef;border-radius:5px}.master-choice input{width:14px;flex:none}.master-choice .master-entry{flex:1;min-width:0;border:0;border-radius:0;margin:0;padding:9px 6px;background:transparent}.master-entry strong{font-size:12px;font-weight:550}.master-entry small{font-size:10px;color:var(--muted)}.merge-selection{display:flex;gap:8px;align-items:center;padding:10px 0;font-size:12px}.merge-selection button{font-size:11px;min-height:28px}.merge-empty{padding:25px 10px;color:var(--muted);line-height:1.6}.merge-empty>svg{color:var(--brand)}.merge-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}.merge-chips span{padding:5px 8px;font-size:11px;background:#f2e6ea;border:1px solid #e8d3da;color:var(--brand);border-radius:4px}.reference-manager [data-details] form{display:flex;flex-direction:column;gap:10px}.reference-manager [data-details] form>label{width:100%;flex:auto;display:grid;gap:5px}.reference-manager [data-details] form>p{font-size:11px;color:var(--muted);line-height:1.6}.merge-retained{margin:15px 0}.merge-retained article{border-top:1px solid var(--line);padding:10px 0}.merge-retained p{white-space:pre-wrap;line-height:1.5}.master-impact{max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:5px}.master-impact table{width:100%;border-collapse:collapse;font-size:12px}.master-impact td,.master-impact th{padding:8px;border-bottom:1px solid var(--line);text-align:left}.master-impact th{background:#f0f3f7;position:sticky;top:0}.master-impact td:last-child{color:#24664c}.request-review{gap:8px;border-bottom:1px solid var(--line);padding:10px 0}.import-queue-row{padding:10px 0;border-bottom:1px solid var(--line)}
@media(min-width:1600px){.excel-workspace{padding-left:20px;padding-right:20px}.excel-tabs{gap:16px}.excel-tabs button{padding:7px 13px}.rk-grid th,.rk-grid td{font-size:12px}.rk-grid thead th{font-size:11px}}
@media(max-width:1100px){.topbar{padding:0 14px;gap:18px}.topbar nav{gap:5px}.topbar .account-name{display:none}.excel-tabs{gap:3px}.excel-tabs button{padding:7px 8px;font-size:11px}.stage-divider{margin:0 4px}.overview-guide{grid-template-columns:repeat(2,1fr)}.excel-keyboard-hint{display:none}.workspace-save-state{max-width:130px}.profile-record-toolbar select{max-width:165px}}
@media(max-width:899px){.topbar{height:auto;min-height:88px;display:grid!important;grid-template-columns:1fr auto!important;gap:5px 10px!important;padding:8px 12px 0!important}.topbar .brand{grid-column:1;grid-row:1;font-size:18px}.topbar .account-menu{grid-column:2;grid-row:1}.topbar nav{grid-row:2;grid-column:1/-1;min-height:36px;height:36px!important;border:0;gap:16px!important}.topbar nav button{padding:6px 0!important;font-size:12px!important;min-height:34px!important}.topbar .brand-mark{width:28px;height:28px;font-size:22px}.topbar .brand small{font-size:9px}.excel-workspace{height:calc(100dvh - 91px);min-height:440px}.workspace-hub{padding:16px 14px}.hub-heading{align-items:flex-start}.profile-contact{grid-template-columns:1fr 1fr}.profile-contact button{justify-self:start}.hub-dialog>header{padding:13px}.hub-dialog-body{padding:13px}.hub-toolbar>select{max-width:190px}}
@media(max-width:700px){body{font-size:13px}.topbar nav{gap:17px!important}.topbar nav button{font-size:11px!important}.topbar .brand{font-size:17px}.topbar .avatar{width:29px;height:29px}.excel-workspace{padding:10px 9px 6px;display:block;height:auto;min-height:calc(100dvh - 91px)}.excel-head{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:45px}.excel-head h1{font-size:17px!important}.excel-owner{gap:8px}.workspace-avatar{width:31px;height:31px;font-size:12px}.excel-head p{font-size:11px}.excel-head-actions{width:auto}.excel-head-actions button{font-size:0!important;min-height:34px;min-width:32px;padding:6px}.excel-head-actions .sp-icon{width:17px}.excel-tabs{min-height:44px;padding:6px 0 8px}.excel-tabs button{min-height:34px!important;font-size:11px}.excel-tabs .all-stages{padding-left:12px}.excel-controls{display:flex;flex-wrap:wrap;gap:6px;padding:9px 0}.excel-controls .excel-find{width:auto;flex:1 1 170px;max-width:none;margin:0;min-width:140px}.excel-controls .excel-find input{font-size:16px;min-height:36px}.excel-controls .rk-filter-tools{margin-left:auto}.excel-controls .rk-filter-tools button{min-height:36px;font-size:11px}.excel-undo{margin-left:0;flex:1;gap:0}.excel-undo button{min-height:36px!important;padding:6px 8px!important;font-size:11px!important}.workspace-save-state{font-size:10px;max-width:110px;margin-left:auto}.excel-controls [data-add]{min-height:36px!important;font-size:12px!important}.rk-mobile-toggle{width:100%;margin:0 0 8px;min-height:34px;font-size:11px}.rk-mobile-cards article{background:#fff;padding:12px;border:1px solid var(--line);border-radius:6px;gap:7px}.rk-mobile-cards strong{font-size:13px;font-weight:600;line-height:1.4}.rk-mobile-cards p{font-size:11px;line-height:1.5;color:var(--muted);margin:0}.rk-mobile-cards button{justify-self:start;font-size:12px}.excel-workspace.show-mobile-table .excel-grid-wrap{height:calc(100dvh - 345px);min-height:260px!important}.inline-edit input,.inline-edit textarea{font-size:16px!important}.excel-footer{display:flex;align-items:center;flex-wrap:nowrap;font-size:10px;padding:9px 0}.excel-footer button{min-width:32px;min-height:32px}.excel-move-bar{flex-wrap:wrap}.excel-move-bar [data-selected]{font-size:11px}.hub-heading h1,.page-head h1{font-size:21px}.hub-heading{gap:10px;flex-wrap:wrap}.hub-heading p{font-size:12px}.hub-heading>select{width:100%;max-width:none;font-size:16px;min-height:38px}.hub-toolbar{gap:7px}.hub-toolbar .search-field{max-width:none;flex:1 1 100%}.hub-toolbar input,.hub-toolbar select,.profile-directory-toolbar input,.profile-record-toolbar input,.profile-record-toolbar select{font-size:16px!important;min-height:38px}.hub-toolbar>select{flex:1;min-width:130px;max-width:none}.hub-advanced>div{position:fixed;top:150px;left:12px;right:12px;width:auto;max-height:70dvh;overflow:auto}.hub-advanced input,.hub-advanced select{width:100%}.hub-mobile-records article{font-size:12px;padding:12px}.hub-mobile-records strong{font-size:13px;line-height:1.5}.hub-mobile-records>article>div{display:flex;gap:7px}.hub-mobile-records article>input{justify-self:end}.hub-result-label{font-size:11px}.hub-selection{position:static;flex-wrap:wrap;font-size:11px}.hub-selection button{min-height:36px}.overview-guide{gap:7px}.overview-guide button{padding:11px;gap:7px}.overview-guide button>svg:last-child{display:none}.overview-guide small{font-size:11px}.hub-metrics{grid-template-columns:1fr 1fr!important;gap:7px}.hub-metrics>button{padding:12px}.hub-metrics>button strong{font-size:25px}.overview-context{gap:8px 12px;font-size:11px}.overview-context button:last-child{margin-left:0}.hub-insights{grid-template-columns:1fr;gap:10px}.readiness-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;gap:10px}.profile-directory-toolbar{flex-wrap:wrap;gap:9px}.profile-directory-toolbar .search-field{flex:1 1 100%;max-width:none}.segmented button{min-height:36px;padding:6px 12px}.hub-profile-grid{grid-template-columns:1fr}.profile-heading{align-items:flex-end}.profile-heading h1{font-size:23px}.profile-key-count{font-size:10px}.profile-metrics{gap:10px 16px;font-size:11px}.profile-tabs{gap:18px;overflow:auto}.profile-tabs button{white-space:nowrap;min-height:38px}.profile-record-toolbar .segmented{width:100%}.profile-record-toolbar input{width:100%;max-width:none}.profile-record-toolbar select{flex:1;max-width:none;min-width:130px}.profile-page .hub-table-wrap{display:none}.profile-record-cards{display:grid;gap:8px}.profile-record-cards article{display:grid;gap:7px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:12px;font-size:12px}.profile-record-cards strong{font-size:13px}.profile-record-cards p{margin:0;color:var(--muted);line-height:1.5;white-space:pre-wrap;max-height:85px;overflow:auto}.profile-record-cards small{color:var(--muted)}.profile-record-cards button{justify-self:start;min-height:36px}.profile-contact{grid-template-columns:1fr 1fr;gap:9px}.profile-contact input,.profile-details textarea{font-size:16px;min-height:38px}.profile-contact label{font-size:11px}.profile-details{gap:15px}.profile-savebar button{min-height:38px}.profile-documents{grid-template-columns:1fr}.profile-upload{font-size:12px}.profile-activity time{font-size:10px}.admin-tabs button{font-size:11px;min-height:36px}.people-table td{font-size:12px!important}.people-table small{font-size:11px}.reference-manager-grid{grid-template-columns:1fr;gap:14px}.reference-manager-grid>section:first-child{max-height:280px;overflow:auto}.master-choice .master-entry{min-height:40px;font-size:12px}.master-choice input{width:16px;height:16px}.merge-selection{gap:6px;flex-wrap:wrap}.merge-selection button{min-height:34px;font-size:11px}.hub-dialog input,.hub-dialog select,.hub-dialog textarea{font-size:16px}.hub-dialog button{min-height:36px}.master-filters{display:grid;grid-template-columns:1fr}.master-filters label{width:100%}.master-filters input,.master-filters select{width:100%}.rk-form-fields input,.rk-form-fields textarea{font-size:16px}.rk-row-dialog{width:calc(100vw - 16px);max-height:95dvh}.rk-form-fields{gap:12px}.rk-form-field>span{font-size:12px}.rk-form-fields .rk-wide{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.profile-note>div{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:4.35em;overflow:hidden;line-height:1.45}

/* Keep the working selection visible while browsing search results. */
.reference-manager .master-filters label:has([data-search]){flex:1 1 280px}.reference-manager [data-search]{width:100%;min-height:40px}.reference-manager .merge-selection{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid var(--line);flex-wrap:wrap}.merge-selection small{color:var(--muted);margin-right:auto}.reference-manager .merge-selected-panel{position:sticky;top:65px;align-self:start;max-height:65vh;overflow:auto;padding:14px;background:#fafbfc;border:1px solid var(--line);border-radius:8px}.merge-chips span{display:inline-flex;align-items:center;padding:2px 4px}.merge-chips span button{border:0;background:transparent;white-space:normal;text-align:left;min-height:30px}.merge-chips [aria-pressed=true]{font-weight:700;text-decoration:underline}.merge-chips [data-remove-name]{font-size:18px;padding:0 7px}.reference-manager .reference-manager-grid>section:first-child:empty:before{content:'No matching names';color:var(--muted)}
@media(max-width:700px){.reference-manager .merge-selected-panel{position:static;max-height:300px;grid-row:1}.reference-manager .merge-selection small{flex-basis:100%}}

.merge-replay{display:flex;gap:14px;align-items:flex-start;padding:12px 14px;background:#f1f5fa;border:1px solid #d8e2ee;border-radius:10px;margin:12px 0}.merge-replay-buttons{display:flex;gap:6px;flex-shrink:0}.merge-replay-context{display:grid;gap:4px;min-width:0}.merge-replay-context small{color:#526277;overflow-wrap:anywhere}.merge-history{margin-top:18px}.merge-history summary{font-weight:650;cursor:pointer}.merge-history article{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e3e8ef}.merge-history article>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.merge-history small{color:#526277}.merge-history-status{font-weight:700}.merge-history article>button{flex-shrink:0}@media(max-width:600px){.merge-replay{flex-direction:column}.merge-replay-buttons button{min-width:85px}}

/* Release 39: separate home / pipeline, rollout and review workflows. */
.primary-home{max-width:1200px;margin:0 auto;padding:28px 24px 40px;color:#263442}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.home-heading h1{font-size:25px;letter-spacing:-.6px;margin:5px 0 8px}.home-heading p{color:#627080;margin:0;font-size:13px}.home-heading .eyebrow{font-size:11px}.home-role{border:1px solid #dce1e7;border-radius:16px;padding:5px 10px;font-size:11px;white-space:nowrap}
.planned-label{display:inline-block;color:#687482;background:#edf0f4;border-radius:5px;padding:3px 6px;font-size:10px;font-weight:500;vertical-align:middle;line-height:1.2;margin-left:4px}.topbar nav .planned-label{font-size:9px}
.home-identity{display:flex;align-items:center;gap:20px;padding:13px 18px;background:#fff;border:1px solid #e1e5eb;border-radius:7px;font-size:12px;margin-bottom:22px}.home-identity>span:not(.avatar){color:#627080}.home-identity .avatar{width:30px;height:30px;font-size:11px}.home-identity .status-label{margin-left:auto}
.home-launchers{display:grid;grid-template-columns:1.55fr 1fr;gap:18px}.home-launcher{background:#fff;border:1px solid #e1e5eb;border-radius:7px;padding:24px}.home-launcher h2{margin:0 0 7px;font-size:20px;letter-spacing:-.3px}.home-launcher p{font-size:13px;color:#627080;line-height:1.6;margin:0 0 16px}.home-launcher-title{display:flex;gap:14px;align-items:flex-start}.home-launcher-title>svg{width:28px;height:28px;color:#8b1e2d;flex-shrink:0}.home-launcher ul{padding:0;list-style:none;margin:18px 0 25px;display:grid;gap:12px;font-size:13px}.home-launcher li:before{content:'✓';color:#8b1e2d;margin-right:12px}.home-launcher .primary{display:inline-flex;align-items:center;gap:16px}.home-launcher .primary svg{width:17px}.home-launcher.planned{display:flex;flex-direction:column}.home-launcher.planned small{margin-top:auto;color:#79828c}.home-team{margin-top:16px;display:flex;gap:12px;align-items:center}.home-team svg{width:16px}
.home-guide{margin-top:22px;padding:20px 24px;border:1px solid #e1e5eb;border-radius:7px;background:#fff}.home-guide h2{font-size:16px;margin:0 0 20px}.home-guide>div{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.home-guide article+article{border-left:1px solid #e1e5eb;padding-left:22px}.home-guide strong{font-size:12px}.home-guide p{font-size:12px;color:#627080;line-height:1.6;margin:8px 0 0}
.admin-home-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.admin-home-guide button{display:flex;gap:12px;text-align:left;padding:14px;background:#fff;border:1px solid #e1e5eb}.admin-home-guide svg{width:21px;height:21px;color:#8b1e2d;flex:none}.admin-home-guide strong,.admin-home-guide small{display:block}.admin-home-guide strong{font-size:13px}.admin-home-guide small{font-size:11px;font-weight:400;color:#627080;line-height:1.5;margin-top:5px}
.rollout-strip{display:flex;gap:14px;align-items:center;background:#f4f0f1;border:1px solid #e8dce0;border-radius:6px;padding:12px 16px;font-size:11px;color:#6c4b54;margin:16px 0 22px}.rollout-strip strong{color:#8b1e2d;margin-right:auto}.rollout-strip svg{width:14px;flex:none}
.admin-onboarding{background:#fff;border:1px solid #e1e5eb;border-radius:7px;overflow:hidden}.admin-onboarding .section-heading{padding:18px 18px 12px;display:flex;justify-content:space-between;gap:16px;align-items:center}.admin-onboarding h2{font-size:16px;margin:0 0 6px}.admin-onboarding p{font-size:11px;color:#627080;margin:0;line-height:1.5}.admin-onboarding .hub-table{min-width:760px}.admin-onboarding .hub-table th{font-size:11px}.admin-onboarding .hub-table td{padding:12px 14px;font-size:12px}.admin-onboarding td button{font-size:11px;margin:2px 3px 2px 0}.admin-onboarding td small{display:block;margin-top:5px;font-size:10px;color:#78808b}
.admin-reference-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.admin-reference-cards button{display:grid;grid-template-columns:1fr auto;text-align:left;gap:7px;padding:17px;background:#fff;border:1px solid #e1e5eb}.admin-reference-cards strong{font-size:13px}.admin-reference-cards span{font-size:11px;color:#627080;grid-column:1;font-weight:400;line-height:1.5}.admin-reference-cards svg{width:17px;grid-column:2;grid-row:1/3;color:#8b1e2d}
.rk-grid tr.rk-recent-row>td,.rk-grid tr.rk-recent-row>th{background:#eff7ff}.rk-grid tr.rk-recent-row>th:first-child{box-shadow:inset 3px 0 #398bd9}.rk-grid tr.rk-recent-row.selected>td{background:#e5f0fc}.rk-new{display:inline-block;float:right;margin:0 0 3px 5px;font-size:9px;font-weight:650;line-height:1.4;color:#fff;background:#2c83cf;border-radius:3px;padding:1px 4px}.rk-calculation-note{font-size:11px;color:#756247;background:#fffcf4;border-bottom:1px solid #f0e7d6;padding:7px 12px}.rk-calculation-note p{font-size:11px;line-height:1.6;max-width:780px;margin:8px 0}.excel-move-bar{min-height:36px;padding:6px 12px}.excel-move-bar button{font-size:11px}.excel-workspace .excel-owner h1{font-size:18px}.excel-workspace .excel-owner p{font-size:11px}.excel-undo:after{content:'50 changes';font-size:10px;color:#73808c;margin:0 6px}.hub-selection:empty{display:none}
.import-counts{width:100%;border-collapse:collapse;margin:10px 0 16px}.import-counts th,.import-counts td{padding:7px 10px;border-bottom:1px solid #e1e5eb;font-size:12px;text-align:left}.import-counts th{background:#f6f7f9}.import-safety-note{background:#eef5fc;border:1px solid #d5e5f7;border-radius:5px;padding:11px;font-size:12px;line-height:1.6;margin:12px 0}.import-record select{max-width:100%}.import-record pre{max-height:280px;overflow:auto;font-size:11px}.import-review .toggle{font-size:12px;line-height:1.6}.import-review [data-record-review]{margin-top:20px}.calculation-list{width:100%;border-collapse:collapse}.calculation-list td,.calculation-list th{text-align:left;font-size:11px;border-bottom:1px solid #e1e5eb;padding:8px}.calculation-list code{font-size:10px;overflow-wrap:anywhere}.import-history-list article{border-top:1px solid #e1e5eb;padding:12px 0;display:grid;gap:6px}.import-history-list small{color:#627080}.import-history-list button{justify-self:start}
@media(max-width:760px){.primary-home{padding:20px 14px}.home-heading h1{font-size:22px}.home-role{display:none}.home-identity{flex-wrap:wrap;gap:10px;font-size:11px}.home-launchers,.home-guide>div,.admin-home-guide,.admin-reference-cards{grid-template-columns:1fr}.home-launcher{padding:20px}.home-launcher.planned{min-height:160px}.home-guide article+article{border-left:0;border-top:1px solid #e1e5eb;padding:14px 0 0}.home-guide>div{gap:14px}.rollout-strip{flex-wrap:wrap;gap:9px}.rollout-strip strong{width:100%}.admin-onboarding .section-heading{align-items:flex-start;flex-direction:column}.topbar nav{overflow-x:auto;max-width:100%;white-space:nowrap}.topbar nav button{flex-shrink:0}.excel-undo:after{display:none}.import-counts{font-size:11px}.home-launcher-title h2{font-size:18px}}

.rk-mobile-cards article.rk-recent-card{background:#eff7ff;border-left:3px solid #398bd9}.rk-mobile-cards .rk-new{float:none;justify-self:start}

/* Clear alternating rows; selection and recent movement take precedence. */
.excel-workspace .rk-grid tbody tr:nth-child(odd)>td,.excel-workspace .rk-grid tbody tr:nth-child(odd)>th,.workspace-hub .hub-table tbody tr:nth-child(odd)>td{background:#fff}
.excel-workspace .rk-grid tbody tr:nth-child(even)>td,.excel-workspace .rk-grid tbody tr:nth-child(even)>th,.workspace-hub .hub-table tbody tr:nth-child(even)>td{background:#edf1f5}
.excel-workspace .rk-grid tbody tr>td,.excel-workspace .rk-grid tbody tr>th,.workspace-hub .hub-table tbody tr>td{border-bottom:1px solid #d5dce4}
.excel-workspace .rk-grid tbody tr:hover>td,.excel-workspace .rk-grid tbody tr:hover>th,.workspace-hub .hub-table tbody tr:hover>td{background:#e7edf3}
.excel-workspace .rk-grid tbody tr.rk-recent-row>td,.excel-workspace .rk-grid tbody tr.rk-recent-row>th{background:#e8f3ff}
.excel-workspace .rk-grid tbody tr.selected>td,.excel-workspace .rk-grid tbody tr.selected>th{background:#f3e3e7}
.excel-workspace .rk-grid tbody tr.selected>th:first-child{box-shadow:inset 3px 0 #8b1e2d}
.excel-workspace .rk-grid .workflow-status-cell{vertical-align:top;padding:8px 5px}
.workflow-status{font:600 10px/1.4 Inter,Arial,sans-serif;width:100%;max-width:102px;min-height:28px;border:1px solid #cbd3dd;border-radius:5px;padding:4px 2px;background:#f4f6f8;color:#566272;cursor:pointer}
.workflow-status.status-approved{background:#e2f3e8;color:#17683d;border-color:#b1d7bf}.workflow-status.status-pending{background:#fff2d1;color:#765300;border-color:#e4cc8e}.workflow-status.status-rejected{background:#fbe4e7;color:#9b2435;border-color:#e7b7c0}.workflow-status.status-cancelled{background:#e7ebf0;color:#4b596a;border-color:#c9d1dc}.workflow-status:disabled{opacity:1;cursor:default}.workflow-status option{background:white;color:#263442}
.rk-grid .rk-row-actions [data-delete-row]{font-size:17px;color:#8b1e2d;line-height:18px;min-height:20px}.rk-row-dialog .rk-form-field[hidden]{display:none!important}
.hub-selection label{display:flex;align-items:center;gap:6px;font-size:11px}.hub-selection select{font-size:11px;min-height:28px;padding:4px}.danger{color:#9b2435;border-color:#d9a7af}
.deleted-row-list{max-height:50vh;overflow:auto;margin:12px 0}.deleted-row{display:flex!important;align-items:flex-start;gap:10px;padding:10px;border-bottom:1px solid #d5dce4}.deleted-row:nth-child(even){background:#edf1f5}.deleted-row strong,.deleted-row small{display:block}.deleted-row small{color:#627080;margin-top:4px}.deleted-row input{width:auto;flex:none}
@media(max-width:760px){.rk-mobile-cards article:nth-child(even){background:#edf1f5}.rk-mobile-cards article.rk-recent-card{background:#e8f3ff}.excel-controls{flex-wrap:wrap}.excel-controls [data-deleted]{font-size:10px}.hub-selection{flex-wrap:wrap}}

/* Compact two-line grid with distinct header, hover and selected states. */
.excel-grid.rk-grid thead th{background:#344455;color:#fff;border-color:#566677;font-weight:600}
.excel-grid.rk-grid tbody tr:nth-child(odd)>*{background:#fff}
.excel-grid.rk-grid tbody tr:nth-child(even)>*{background:#f1f4f8}
.excel-grid.rk-grid tbody tr:hover>*{background:#e2effa}
.excel-grid.rk-grid tbody tr.selected>*{background:#f4e2e9;border-color:#dac2cc}
.excel-grid.rk-grid tbody tr.selected:hover>*{background:#eed4df}
.excel-grid.rk-grid td{height:46px;padding:5px 8px;vertical-align:top}
.excel-grid.rk-grid .rk-cell-value{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:2.8em;line-height:1.4;overflow:hidden}
.excel-grid.rk-grid .rk-short .rk-cell-value{display:block;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.excel-grid.rk-grid .rk-expanded-cell .rk-cell-value{display:block;max-height:none;-webkit-line-clamp:unset;overflow:visible;padding-right:16px}
.excel-grid.rk-grid .rk-row-actions{padding:4px;vertical-align:top}
.rk-expand{z-index:2;cursor:pointer}.rk-expanded-cell .rk-expand{background:#dceafa}
.cell-calendar{position:fixed;z-index:12000;width:280px;background:white;color:#253346;border:1px solid #cad4df;border-radius:12px;box-shadow:0 10px 35px #17263535;padding:10px}
.cell-calendar header,.cell-calendar footer{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:2px 0 8px}
.cell-calendar button{padding:5px;min-height:30px;min-width:30px;font-size:12px}.cell-calendar header strong{font-size:13px}.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-days span{font-size:11px;text-align:center;padding:4px}.calendar-days [aria-pressed=true]{background:#8d244b;color:white}.cell-calendar footer{padding-top:10px}
.member-access-list{max-height:48vh;overflow:auto}.member-access-list>label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e4e8ef}.member-access-list small{display:block;color:#687588}.member-access-list select{width:110px}
.workspace-switch{max-width:245px;min-width:130px;font-size:12px}.workspace-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:18px 0}.workspace-card{background:white;border:1px solid #dbe1e9;border-radius:12px;padding:18px}.workspace-card h2{font-size:16px;margin:0 0 6px}.workspace-card p{font-size:12px;color:#647285}.workspace-card button{margin-top:12px}.mobile-select{display:inline-flex;align-items:center;gap:6px;font-size:12px}.mobile-select input{width:16px}
@media(max-width:700px){.workspace-switch{max-width:160px}.topbar{flex-wrap:wrap}.workspace-cards{grid-template-columns:1fr}}

.inline-edit input[type=date]::-webkit-calendar-picker-indicator{display:none}

.document-parts{display:flex;flex-direction:column;gap:1px;min-width:0}.excel-workspace .document-parts button{display:block;border:0;background:transparent;box-shadow:none;text-align:left;width:100%;min-height:19px;height:19px;padding:0 2px;font-size:11px;line-height:19px;overflow:hidden;text-overflow:ellipsis;border-radius:3px}.excel-workspace .document-parts button:hover{background:#dce9f6}.document-parts .document-date{color:#526b86;font-size:10px}.document-parts .needs-review{color:#9a6217}.document-inline input{width:100%;min-width:0}.document-inline>small:first-child{display:block;font-size:10px;color:#61728a}.document-form-parts{display:grid;gap:5px}.document-form-parts details{font-size:10px;color:#68788a}.document-form-parts pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.document-form-parts input[type=date]::-webkit-calendar-picker-indicator{display:none}.pipeline-admin-top{display:flex;align-items:end;gap:10px}.pipeline-admin-top label{flex:1}.admin-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.admin-quick-actions button{font-size:12px}.workspace-card h2{min-height:24px}.member-access-list>label{min-height:48px}

.rk-date-review{color:#8b5b16}.date-review-label{display:block;color:#8b5b16;font-size:10px;white-space:pre-wrap}.document-count{font-size:9px;background:#e6edf6;border-radius:3px;padding:1px 3px}

.release-page{max-width:1500px;margin:0 auto}.release-body{padding-top:18px}.release-summary{display:grid;grid-template-columns:.7fr 1.2fr 1fr;border:1px solid #dce2e9;border-radius:12px;background:#fff;margin-bottom:16px}.release-summary>div{padding:18px 22px;border-right:1px solid #e6eaf0}.release-summary>div:last-child{border-right:0}.release-kicker{font-size:10px;letter-spacing:.09em;color:#6b7280;display:block;font-weight:650;margin-bottom:7px}.release-summary h2{font-size:26px;margin:0;color:#912d35}.release-summary strong{display:block;font-size:16px}.release-summary p{font-size:12px;line-height:1.5;margin:8px 0 0;color:#5a6575}.release-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.release-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.release-panel{border:1px solid #dce2e9;border-radius:10px;padding:20px;background:#fff;margin:0 0 16px;min-width:0}.release-panel h2{font-size:16px;margin:0 0 12px}.release-panel p,.release-panel li{font-size:13px;line-height:1.6}.release-panel ul{padding-left:20px}.release-panel li{margin:6px 0}.release-panel details summary{cursor:pointer;font-size:13px}.release-section-head{display:flex;justify-content:space-between;gap:16px}.release-section-head>span{font-size:12px;color:#677486}.snapshot-card{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #e4e8ed}.snapshot-card strong{font-size:13px}.snapshot-card p{margin:8px 0}.snapshot-card small{overflow-wrap:anywhere}.snapshot-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;align-content:center;justify-content:flex-end}.snapshot-actions a{font-size:12px;padding:10px;color:#8b2834;text-decoration:underline}.release-status{font-size:11px;display:inline-block;background:#f0f3f6;color:#556272;padding:3px 8px;border-radius:6px;margin-left:10px}.release-status.verified{background:#e9f5ed;color:#256640}.release-status.failed{background:#fff0eb;color:#923c22}.release-note{padding-top:12px;border-top:1px solid #e4e8ed;color:#637083}.version-entry{border-top:1px solid #e4e8ed;padding:13px 0}.version-entry summary{display:flex;gap:14px;align-items:baseline}.version-entry summary strong{min-width:78px}.version-entry summary span{flex:1}.version-entry summary small{color:#627084}.version-entry dl{font-size:12px}.version-entry dt{font-weight:600;margin-top:10px}.version-entry dd{margin:3px 0;overflow-wrap:anywhere;color:#596675}.release-message:not(:empty){padding:14px 16px;margin:12px 0 16px;background:#f0f3f8;border-radius:8px;font-size:13px;line-height:1.5}.release-message.is-success{background:#edf7f0;color:#215b38}.release-message.is-warning{background:#fff6e6;color:#80521b}.release-message.is-error{background:#fff0ee;color:#922e26}.release-message p{margin:6px 0}.release-message ul{columns:2;padding-left:20px}.release-message li{overflow-wrap:anywhere}@media(max-width:760px){.release-summary{grid-template-columns:1fr}.release-summary>div{border-right:0;border-bottom:1px solid #e6eaf0;padding:14px 16px}.release-summary>div:last-child{border-bottom:0}.release-summary h2{font-size:22px}.release-columns{grid-template-columns:1fr;gap:0}.release-panel{padding:16px}.release-actions>*{flex:1 1 100%;min-height:44px}.release-section-head,.snapshot-card{flex-direction:column;gap:4px}.snapshot-actions{justify-content:flex-start}.snapshot-actions>*{min-height:44px}.version-entry summary{flex-wrap:wrap;gap:5px 10px}.version-entry summary span{flex-basis:65%}.version-entry summary small{margin-left:88px}.release-message ul{columns:1}.release-body{padding-top:12px}}

.release-page .admin-tabs{scrollbar-width:thin}
@media(max-width:760px){.release-page .admin-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;gap:5px}.release-page .admin-tabs button{flex:0 0 auto;white-space:nowrap;min-height:40px}.release-page .admin-tabs .active{order:-1}}

.support-body{display:grid;gap:16px}.support-request{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e8f0;padding:14px 0}.support-request p{margin:4px 0}.support-request small{color:#64748b}.support-body textarea{width:100%;box-sizing:border-box;overflow-wrap:anywhere;font:13px/1.5 monospace}.support-body form{max-width:560px}.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.health-check h2{font-size:15px;margin:0 0 8px}.health-check.ok{border-top:3px solid #168377}.health-check.warning{border-top:3px solid #c98b20}.health-check.error{border-top:3px solid #c34a4a}.health-check p{overflow-wrap:anywhere;font-size:13px}.recovery-owner{margin:22px 0}.recovery-owner summary{cursor:pointer}.recovery-owner form{margin-top:14px}.recovery-count{display:inline-flex;border-radius:10px;background:#fff1d1;color:#81500e;padding:1px 6px;margin-left:5px;font-size:11px}.success-message{color:#11685c}.support-body .release-panel{min-width:0;margin:0}
@media(max-width:720px){.health-grid{grid-template-columns:1fr 1fr}.support-request{align-items:flex-start;flex-direction:column}.support-request .actions{flex-wrap:wrap}.support-body .release-panel{padding:14px}.support-body textarea{font-size:12px}.login-card{max-width:100%;box-sizing:border-box}.login-card input{min-width:0}}
@media(max-width:420px){.health-grid{grid-template-columns:1fr}}

.match-review{width:min(1120px,96vw)}
.match-intro{max-width:850px;color:#354155;line-height:1.6}
.match-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}
.match-toolbar label{display:grid;gap:5px;min-width:140px;font-size:12px}
.match-toolbar .toggle{display:flex;min-width:0;align-items:center;gap:7px;padding-bottom:8px}
.match-toolbar select{max-width:310px}
.match-notice:empty{display:none}.match-notice{background:#f4f0e7;padding:10px 14px;border-radius:7px;color:#654916}
.match-scope{font-size:12px;color:#606d7d;line-height:1.6}
.match-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin:16px 0}
.match-group{border:1px solid #dce1e7;border-radius:10px;padding:18px;background:white;min-width:0}
.match-group-heading{display:flex;justify-content:space-between;gap:14px;align-items:start;margin-bottom:14px}
.match-group-heading h3{margin:7px 0;overflow-wrap:anywhere;font-size:17px}
.match-group-heading small,.match-name small{font-size:11px;color:#647185;line-height:1.5}
.match-group-heading .toggle{display:flex;align-items:center;gap:6px;font-size:11px;min-width:105px}
.match-level{display:inline-block;border-radius:4px;background:#f3edf0;color:#722742;padding:4px 7px;font-size:10px;font-weight:600}
.match-names{display:grid;gap:8px;margin:12px 0}
.match-review .match-name{display:flex;gap:10px;align-items:flex-start;padding:9px;background:#f6f7f9;border-radius:6px;overflow-wrap:anywhere}
.match-name input{margin-top:3px;flex-shrink:0}.match-name span{display:grid;gap:3px;min-width:0}.match-name strong{font-size:13px}
.match-final{display:grid;gap:6px;font-size:12px;font-weight:600;margin:14px 0}.match-final input{width:100%;box-sizing:border-box}
.match-group details{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.match-group summary{cursor:pointer;color:#52657b}
.match-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.match-actions button{font-size:11px;min-height:34px;padding:6px 10px}
.match-selection{position:sticky;bottom:-20px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;border-top:1px solid #dce1e7;padding:14px 0;margin-top:12px;z-index:2}.match-selection strong{margin-right:auto;font-size:13px}
.match-decision{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #e2e6eb}.match-decision p{overflow-wrap:anywhere}.match-decision small{color:#647185}
@media(max-width:760px){.match-groups{grid-template-columns:1fr}.match-group{padding:14px}.match-toolbar label{min-width:120px;flex:1}.match-toolbar select{max-width:100%;width:100%}.match-selection{bottom:-12px}.match-selection strong{width:100%}.match-decision{align-items:start;flex-direction:column}}
@media(max-width:760px){.match-toolbar .toggle{flex:0 0 100%;white-space:normal}}

.admin-page-content{min-width:0}
.admin-surface.hub-dialog{position:static;display:block;width:100%!important;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;color:inherit}
.admin-surface.hub-dialog>.hub-dialog-body{padding:0;max-height:none;overflow:visible}
.admin-surface>.review-draft-status{margin:0 0 12px;padding:0}
.admin-surface .match-selection{bottom:0;padding:14px 16px;border:1px solid #dce1e7;border-radius:8px;box-shadow:0 -3px 14px #2432470a}
.admin-surface .master-layout{min-height:450px}
.match-select-all{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}
.match-select-all p{margin:0;color:#647185;font-size:12px}
.match-selection button{white-space:normal}
@media(max-width:760px){.admin-surface.hub-dialog{width:100%}.admin-surface .match-selection{padding:12px}.match-select-all>button{flex:1}}
