.deal-board-toolbar{position:relative;margin:0 0 16px;padding:16px;background:var(--paper,#fff);border:1px solid var(--line,#dce3d9);border-radius:16px;color:var(--ink,#17221d)}
.board-main-row,.board-focus-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.board-main-row>label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted,#64748b);min-width:0}
.board-pipeline{flex:0 1 195px}.board-search{flex:1 1 280px}.board-owner{flex:0 1 205px}
#pipeline .deal-board-toolbar :is(input,select,button,summary){font:inherit;font-size:14px;color:inherit}
#pipeline .deal-board-toolbar :is(select,input[type=search],input[type=date]){width:100%;min-width:0;height:44px;padding:10px 12px;border:1px solid var(--line,#dce3d9);border-radius:9px;background:var(--paper,#fff);color:var(--ink,#17221d)}
#pipeline .deal-board-toolbar :is(button,summary){min-height:44px;padding:10px 13px;border:1px solid var(--line,#dce3d9);border-radius:9px;background:var(--paper,#fff);cursor:pointer;font-weight:600}
#pipeline .deal-board-toolbar button.primary-btn{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}
#pipeline .deal-board-toolbar :is(button,summary,select,input):focus-visible{outline:3px solid var(--green,#20863e);outline-offset:2px}
#pipeline .deal-board-toolbar button:hover,.board-popover>summary:hover{border-color:var(--green,#20863e)}
.board-popover{position:relative;flex:none}.board-popover>summary{list-style:none;display:flex;align-items:center;gap:8px}.board-popover>summary::-webkit-details-marker{display:none}.board-popover>summary:after{content:'⌄'}
.board-popover[open]>summary{border-color:var(--green,#20863e)!important}
.board-menu{position:absolute;z-index:40;top:calc(100% + 8px);right:0;width:250px;max-width:calc(100vw - 40px);padding:16px;background:var(--paper,#fff);border:1px solid var(--line,#dce3d9);border-radius:12px;box-shadow:0 12px 34px #0003;max-height:min(650px,75vh);overflow:auto;display:grid;gap:12px}
.board-menu h3{font-size:16px;margin:0}.board-menu header,.board-menu footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.board-menu header button{flex:none}.board-menu>label,.board-menu fieldset>label{display:grid;gap:6px;font-size:14px}.board-menu fieldset{border:1px solid var(--line,#dce3d9);padding:12px;min-width:0;border-radius:8px}.board-menu legend{font-size:14px;padding:0 4px}.board-filter-menu{width:400px}.board-menu p{font-size:14px;margin:0;color:var(--muted,#64748b)}
.board-menu .board-filter-error{color:#c33434}.board-date-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.board-date-row label{display:grid;gap:6px}
#pipeline .board-menu :is(input[type=checkbox],input[type=radio]){width:18px;height:18px;flex:none;accent-color:var(--green,#20863e)}
#board-tag-options{max-height:160px;overflow:auto;margin-top:8px}#board-tag-options label,.board-view-menu label{display:flex;align-items:center;gap:10px;min-height:40px;cursor:pointer;font-size:14px}
.board-focus-row{align-items:center;padding-top:12px;margin-top:12px;border-top:1px solid var(--line,#dce3d9)}
#pipeline #pipeline-outcome-filter{width:150px;flex:none}#board-focus{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
#pipeline #board-focus button{border-color:transparent;background:transparent;font-weight:500;white-space:nowrap}#pipeline #board-focus button[aria-pressed=true]{background:var(--green-dark,#20863e);color:white;font-weight:600}
#board-focus span,#board-filter-count{font-size:12px;border-radius:5px;padding:2px 5px;background:#78887816;font-variant-numeric:tabular-nums}
#pipeline-board-total{margin-left:auto;font-size:14px;font-weight:600;white-space:normal;font-variant-numeric:tabular-nums}
#board-active-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-top:12px}#pipeline #board-active-filters button{min-height:36px;padding:6px 10px;font-weight:400;max-width:100%;overflow-wrap:anywhere;background:var(--paper-soft,#f6f8f5)}
html[data-theme=dark] #pipeline :is(#board-focus button[aria-pressed=true],.deal-board-toolbar button.primary-btn){color:#10200a}
#pipeline .scale-pager{margin:6px 0 10px;font-size:14px}#pipeline .scale-pager button{min-height:40px}
#board-load-state{font-size:14px;padding:16px;color:var(--muted,#64748b)}
#deal-board-table{overflow:auto;border:1px solid var(--line,#dce3d9);border-radius:12px;background:var(--paper,#fff)}#deal-board-table table{border-collapse:collapse;width:100%;min-width:800px;font-size:14px}#deal-board-table caption{text-align:left;padding:14px;color:var(--muted,#64748b)}#deal-board-table th,#deal-board-table td{text-align:left;padding:12px 16px;border-top:1px solid var(--line,#dce3d9);vertical-align:top}#deal-board-table th{font-weight:600;color:var(--muted,#64748b)}#deal-board-table button{border:0;background:none;padding:4px 0;color:var(--green,#20863e);font:inherit;font-weight:600;text-align:left;cursor:pointer;min-height:40px}#deal-board-table small{display:block;font-size:13px;color:var(--muted,#64748b);margin-top:4px}
#pipeline [hidden]{display:none!important}
#pipeline .deal-identity h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#pipeline .deal-phone{font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;margin:5px 0 8px;color:var(--ink,#17221d)}
#pipeline .deal-contact-line{display:flex;align-items:center;gap:6px;min-width:0}
#pipeline .deal-contact-line .deal-contact{min-width:0}
#pipeline .deal-number{flex:none;white-space:nowrap;font-size:12px;line-height:1.4;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink,#17221d)}
@media(max-width:1100px){.board-search{flex-basis:240px}.board-owner{flex-basis:180px}.board-pipeline{flex-basis:170px}.board-focus-row #pipeline-board-total{flex-basis:100%;margin-left:0}.board-popover{position:static}.board-menu{top:auto;right:16px;margin-top:8px}}
@media(max-width:650px){.deal-board-toolbar{padding:12px}.board-main-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.board-main-row .board-pipeline{grid-column:span 3;grid-row:1}.board-main-row .board-owner{grid-column:span 3;grid-row:1}.board-main-row .board-search{grid-column:span 6;grid-row:2}.board-main-row .board-popover{grid-column:span 2;position:static}.board-main-row summary{justify-content:center;padding:10px 6px!important}.board-menu{top:auto;right:12px;left:12px;width:auto;margin-top:8px;max-width:none;max-height:65vh}.board-focus-row{gap:8px}#board-focus{gap:2px}#pipeline #board-focus button{padding:8px 10px}.board-date-row{grid-template-columns:1fr}}
#board-top-scroll{margin:0 0 8px;padding:0 8px;background:var(--paper-soft);border:1px solid var(--line);border-radius:8px}
#board-top-scroll input{display:block;appearance:none;width:100%;height:30px;margin:0;padding:0;border:0;background:transparent;cursor:ew-resize}
#board-top-scroll input:focus-visible{outline:3px solid var(--green);outline-offset:2px}
#board-top-scroll input::-webkit-slider-runnable-track{height:6px;background:var(--line);border-radius:8px}
#board-top-scroll input::-webkit-slider-thumb{appearance:none;width:60px;height:20px;margin-top:-7px;background:var(--green);border:2px solid var(--paper);border-radius:10px}
#board-top-scroll input::-moz-range-track{height:6px;background:var(--line);border-radius:8px}
#board-top-scroll input::-moz-range-thumb{width:60px;height:18px;background:var(--green);border:2px solid var(--paper);border-radius:10px}

/* Keep the sales tabs beside the title, including the sales registries. */
body.sales-workspace main{padding-right:16px;padding-left:16px}
body.sales-workspace .workspace-header{min-height:48px;margin-bottom:6px;padding:6px 0;gap:12px;align-items:center;flex-direction:row;flex-wrap:nowrap}
body.sales-workspace .workspace-heading{display:flex;align-items:center;gap:18px;min-width:0}
body.sales-workspace .workspace-header .eyebrow{display:none}
body.sales-workspace .workspace-header h1{flex:none;font-size:20px;line-height:1.2;letter-spacing:-.3px;margin:0}
body.sales-workspace .workspace-header .header-actions{display:flex;gap:8px;width:auto;align-items:center;flex-direction:row;flex-wrap:nowrap}
body.sales-workspace .workspace-header :is(.search,.notification-toggle,.account-toggle,#create-toggle){height:34px;min-height:34px}
body.sales-workspace .workspace-header .search{width:clamp(180px,20vw,320px);padding:4px 8px}
body.sales-workspace .workspace-header #create-toggle{padding:6px 12px;white-space:nowrap}
body.sales-workspace .workspace-header .account-toggle{max-width:160px}
body.sales-workspace .workspace-header .account-avatar{width:28px;height:28px}
body.sales-workspace .workspace-navigation{margin:0;padding:0;gap:6px;border:0}
body.sales-workspace #workspace-tabs{flex:none;gap:2px}
body.sales-workspace #workspace-tabs button{min-height:32px;padding:5px 10px;font-size:13px}
body.sales-workspace .workspace-pin{width:32px;min-height:32px;padding:6px;justify-content:center}
body.sales-workspace .workspace-pin span{display:none}
body.sales-workspace .workspace-pin svg{width:18px;height:18px}
#pipeline .pipeline-head{display:none}
#pipeline .deal-board-toolbar{margin:0 0 4px;padding:6px 8px;border-radius:8px}
#pipeline .board-main-row{gap:6px;align-items:center}
#pipeline .board-main-row>label{gap:0}
#pipeline .board-control-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#pipeline .board-pipeline{flex:0 1 160px}
#pipeline .board-search{flex:1 1 220px}
#pipeline .board-owner{flex:0 1 175px}
#pipeline .deal-board-toolbar .board-main-row>label :is(input,select),#pipeline .board-popover>summary,#pipeline #pipeline-outcome-filter{height:32px;min-height:32px;padding:5px 8px;font-size:13px;line-height:20px;border-radius:6px}
#pipeline #pipeline-outcome-filter{width:118px}
#pipeline .board-popover>summary{gap:4px;white-space:nowrap}
#pipeline .board-focus-row{padding-top:4px;margin-top:4px;gap:4px 10px}
#pipeline #board-focus{gap:2px}
#pipeline #board-focus button{min-height:28px;padding:4px 7px;font-size:12px;line-height:20px;border-radius:5px}
#pipeline .board-summary{display:flex;align-items:center;justify-content:flex-end;gap:8px 12px;flex:1 1 auto;flex-wrap:wrap;min-width:0}
#pipeline #pipeline-board-total{font-size:12px;line-height:20px;margin-left:0;flex-basis:auto}
#pipeline .scale-pager{display:flex;align-items:center;gap:4px;margin:0;font-size:12px;flex-wrap:nowrap}
#pipeline .scale-pager span{white-space:nowrap}
#pipeline .scale-pager button{min-height:28px;padding:4px 7px;font-size:12px;line-height:20px;border-radius:5px}
#pipeline #board-active-filters{padding-top:4px;gap:4px}
#pipeline #board-active-filters button{min-height:28px;padding:4px 7px;font-size:12px}
#pipeline #board-top-scroll{margin-bottom:2px;padding:0 6px}
#pipeline #board-top-scroll input{height:22px}
#pipeline .board-menu header{min-height:0;margin:0;padding:0 0 8px;flex-direction:row;flex-wrap:nowrap;gap:8px}
@media(max-width:1100px){
 #pipeline .board-popover{position:static}
 #pipeline .board-menu{right:8px}
 #pipeline .board-summary{justify-content:space-between}
}
@media(max-width:1200px){body.sales-workspace .workspace-header .search{display:none}}
@media(max-width:960px){
 body.sales-workspace .workspace-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
 body.sales-workspace .workspace-heading{display:contents}
 body.sales-workspace .workspace-header h1{grid-column:1;grid-row:1}
 body.sales-workspace .workspace-header .header-actions{grid-column:2;grid-row:1}
 body.sales-workspace .workspace-navigation{grid-column:1/-1;grid-row:2}
 body.sales-workspace #workspace-tabs{flex:1}
 body.sales-workspace #workspace-tabs button,body.sales-workspace .workspace-pin{min-height:44px}
 body.sales-workspace .workspace-pin{width:44px}
}
@media(max-width:650px){
 body.sales-workspace main{padding-right:10px;padding-left:10px}
 body.sales-workspace .workspace-header .header-actions{gap:6px}
 body.sales-workspace .workspace-header :is(.notification-toggle,.account-toggle,#create-toggle){height:44px;min-height:44px}
 #pipeline .deal-board-toolbar{padding:6px}
 #pipeline .board-main-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
 #pipeline .board-main-row .board-search{grid-column:span 4;grid-row:2}
 #pipeline #pipeline-outcome-filter{grid-column:span 2;grid-row:2;width:100%}
 #pipeline .deal-board-toolbar .board-main-row>label :is(input,select),#pipeline .board-popover>summary,#pipeline #pipeline-outcome-filter{height:44px;min-height:44px;font-size:13px}
 #pipeline .board-main-row summary{padding:8px 6px!important}
 #pipeline .board-focus-row{gap:4px}
 #pipeline #board-focus{flex-wrap:nowrap;width:100%;overflow-x:auto;padding:2px 0 4px}
 #pipeline #board-focus button{min-height:44px;flex:none}
 #pipeline .board-summary{width:100%;gap:4px}
 #pipeline .scale-pager button{min-height:44px;padding:8px}
 #pipeline .board-menu{right:6px;left:6px}
}
@media(max-width:380px){
 body.sales-workspace .workspace-header h1{font-size:18px}
 body.sales-workspace .workspace-header .notification-toggle{padding:0 6px;gap:2px}
 body.sales-workspace .workspace-header .account-toggle{gap:4px;padding-right:6px}
 body.sales-workspace .workspace-header #create-toggle{padding-right:8px;padding-left:8px}
}
@media(pointer:coarse) and (min-width:651px){
 #pipeline .deal-board-toolbar .board-main-row>label :is(input,select),#pipeline .board-popover>summary,#pipeline #pipeline-outcome-filter,#pipeline #board-focus button,#pipeline .scale-pager button{min-height:44px;height:auto}
}
