/* Shared action vocabulary. Navigation/backdrops and slider challenges retain their semantics. */
:root{--action-bg:#e6efff;--action-ink:#174582;--action-border:#7395c6;--action-primary:#1559b8;--action-danger:#a52b25}
body button:not(.nav):not(.nav-backdrop):not([role="slider"]):not(:where(table button,.meeting-tree-heading button,.report-compact-metrics button,.learning-cover,.ws-help-button)){
 font-family:inherit;font-size:14px;font-weight:650;line-height:1.35;
 min-height:40px;min-width:40px;padding:9px 13px;
 color:var(--action-ink);background:var(--action-bg);border:1px solid var(--action-border);
 border-radius:8px;box-shadow:0 1px 2px #163c7020;cursor:pointer;touch-action:manipulation;
}
body button:not(.nav):not(.nav-backdrop):not([role="slider"]):not(:where(table button,.meeting-tree-heading button,.report-compact-metrics button,.learning-cover,.ws-help-button)):is(.primary,.home-goal-primary,[aria-selected="true"],[aria-pressed="true"],:where(.tab.active,.share-tabs button.active)){
 color:#fff;background:var(--action-primary);border-color:var(--action-primary);
}
body button:not(.nav):not(.nav-backdrop):not([role="slider"]):not(:where(table button,.meeting-tree-heading button,.report-compact-metrics button,.learning-cover,.ws-help-button)):is(.danger,.ea-danger,.ea-delete,.xe-danger){color:#fff;background:var(--action-danger);border-color:var(--action-danger)}
body button:not(:disabled):not(.nav):not(.nav-backdrop):not([role="slider"]):not(:where(table button,.meeting-tree-heading button,.report-compact-metrics button,.learning-cover,.ws-help-button)):hover{filter:brightness(.94);box-shadow:0 2px 4px #163c7030}
body button:focus-visible{outline:3px solid #bc5700;outline-offset:3px}
body button:not(.nav):not(.nav-backdrop):not([role="slider"]):not(:where(table button,.meeting-tree-heading button,.report-compact-metrics button,.learning-cover,.ws-help-button)):is(:disabled,[aria-disabled="true"]){background:#e8ecf1;color:#586577;border-color:#9ba7b6;box-shadow:none;opacity:1;cursor:not-allowed}
/* Numeric links and person entries are recognizable controls, not plain table text. */
body button.ws-help-button:not(.nav):not(.nav-backdrop){min-width:28px;min-height:28px;width:28px;height:28px;padding:0;border:0;background:transparent;box-shadow:none;font-size:14px;line-height:1;color:#58718e}
body button.ws-help-button:not(.nav):not(.nav-backdrop):hover{background:transparent;box-shadow:none;filter:none;color:#245f92}
body .ws-help{margin-left:4px}
body .operating-info{display:inline-block;margin-left:0;vertical-align:middle}
body .operating-info>summary{font-size:14px;width:28px;min-width:28px;min-height:28px;height:28px;padding:0;border:0;border-radius:0;background:transparent}
body .inline-info-title{display:flex;align-items:center;gap:3px;min-width:0;flex:0 1 auto}
body .inline-info-title>:is(h2,h3,h4,strong,small){margin:0;flex:0 1 auto}
body .inline-info-title>.operating-info{margin:0;position:relative;top:0;width:auto;padding:0}
body .ws-heading>.inline-info-title{margin-right:auto}
body .responsibility-metrics .inline-info-title{margin-top:-4px;margin-bottom:0}
body .responsibility-metrics:has(.inline-info-title){padding-right:12px}
body .inline-info-title .operating-info-body{left:0;right:auto;text-align:left;font-weight:400;white-space:normal}
@media(min-width:761px){body form .actions .inline-info-title .operating-info-body{left:auto;right:0}}
@media(max-width:760px){body .operating-info .operating-info-body,body .inline-info-title .operating-info-body,body .workbench-today .operating-info-body{position:fixed;left:18px;right:18px;top:20vh;bottom:auto;width:auto;max-width:none;max-height:60vh;overflow:auto;box-sizing:border-box}}
@media(max-width:760px){body #serviceCreate .actions .operating-info>.operating-info-body{top:20vh;bottom:auto}}
@media(max-width:760px){body #dialog .operating-info>.operating-info-body{top:50vh;bottom:auto;transform:translateY(-50%);max-height:calc(var(--help-dialog-height,90vh) - 24px)}}
body .workbench-today .home-period-metrics{padding:6px 10px}
@media(max-width:760px),(pointer:coarse){
 body button.ws-help-button:not(.nav):not(.nav-backdrop),body .operating-info>summary{min-width:44px;width:44px;min-height:44px;height:44px;font-size:14px}
 body .inline-info-title .operating-info-body{position:fixed;left:18px;right:18px;top:20vh;max-height:60vh;overflow:auto;width:auto}
}
body button:is(.linkbtn,.touch-member-link,.responsibility-metric-link,.responsibility-person){text-decoration:underline;text-underline-offset:3px}
body .dialog form>.actions:not(:has(~ .actions)),body .dialog :is(#channelShareForm,#channelVisibilityForm)>.inline-actions{position:sticky;bottom:0;z-index:3;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-wrap:wrap}
body .quote-filters{flex-wrap:wrap}
body .dimension-scope-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px;color:var(--muted)}
body .dimension-scope-heading strong{color:var(--ink);font-weight:650}
body .dimension-controls{border-left:3px solid var(--action-border)}
@media(max-width:700px){
 body button:not(.nav):not(.nav-backdrop):not([role="slider"]):not(:where(table button,.meeting-tree-heading button,.report-compact-metrics button,.learning-cover,.ws-help-button)),body button.nav{min-height:44px;min-width:44px;font-size:15px}
 body .actions,body .inline-actions{flex-wrap:wrap}
 body .dialog form>.actions:not(:has(~ .actions))>button,body .dialog :is(#channelShareForm,#channelVisibilityForm)>.inline-actions>button{flex:1 1 auto}
}

/* Tables are reading surfaces: compact text actions, not full-size toolbar buttons.
   Preserve semantic heatmap fills and the existing mobile card DOM/layout. */
body table:not(.dq-heat) :is(th,td){font-size:12px;line-height:1.4}
body :is(table,.meeting-tree-heading,.report-compact-metrics) button:not(.dq-cell){
 font-family:inherit;font-size:12px;font-weight:600;line-height:1.35;
 min-height:32px;min-width:32px;padding:3px 5px;border:0;border-radius:0;
 background:transparent;color:#245f92;box-shadow:none;cursor:pointer;touch-action:manipulation;
 text-decoration:none;
}
body :is(table,.meeting-tree-heading,.report-compact-metrics) button:not(.dq-cell):hover{
 background:transparent;box-shadow:none;filter:none;text-decoration:underline;text-underline-offset:3px;
}
body :is(table,.meeting-tree-heading,.report-compact-metrics) button:is(.primary,[aria-selected="true"],[aria-pressed="true"]){color:#1559b8;font-weight:700;text-decoration:underline;text-underline-offset:3px}
body :is(table,.meeting-tree-heading,.report-compact-metrics) button:is(.danger,.ea-danger,.ea-delete,.xe-danger){color:var(--action-danger)}
body :is(table,.meeting-tree-heading,.report-compact-metrics) button:is(:disabled,[aria-disabled="true"]){color:#788391;background:transparent;box-shadow:none;opacity:1;cursor:not-allowed;text-decoration:none}
body table :is(button b,button strong){font-size:inherit}
body table :is(h2,h3,h4,b,strong){font-size:inherit;line-height:inherit}
body table :is(.mg-person-heading h3,.responsibility-drill,.meeting-person-name){font-size:12px}
body table :is(.mg-person-role,.responsibility-person-hint){font-size:11px;font-weight:400}
body :is(table,.meeting-tree-heading,.report-compact-metrics) button:not(:where(.dq-cell,:has(svg,.org-tree-chevron,.sales-tree-person-dot),.mg-person-more))::before{
 content:"";display:inline-block;vertical-align:-1px;width:11px;height:11px;flex:0 0 11px;margin-right:4px;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M4 4h8v8' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
body table .row-more>summary{border:0;border-radius:0;background:transparent;box-shadow:none}
body table .row-more>summary:focus-visible{outline:3px solid #bc5700;outline-offset:2px}
body table .mg-person-more{border:0;border-radius:0;background:transparent;box-shadow:none}

/* Workbench B: icon + text. Scoped by its actual root entry, never dialogs/forms. */
#content:has(>.workbench-quick-actions) button:not(:where(form button,.dialog button,[role="slider"],.dq-cell)){
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 border:0;border-radius:0;background:transparent;box-shadow:none;filter:none;
 color:#245f92;text-decoration:none;transform:none;
}
#content:has(>.workbench-quick-actions) button:not(:where(form button,.dialog button,[role="slider"],.dq-cell)):not(:where(.workbench-quick-action,:has(svg,.org-tree-chevron,.sales-tree-person-dot)))::before{
 content:"";display:inline-block;flex:0 0 12px;width:12px;height:12px;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M4 4h8v8' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
#content:has(>.workbench-quick-actions) button:not(:where(form button,.dialog button)):not(:disabled):not([aria-disabled="true"]):hover{color:#124b80;text-decoration:underline;text-underline-offset:4px;background:transparent;box-shadow:none;filter:none;transform:none}
#content:has(>.workbench-quick-actions) button:is([aria-selected="true"],[aria-pressed="true"],.primary,.home-goal-primary){color:#145e55;font-weight:700;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
#content:has(>.workbench-quick-actions) button:is(.danger,.ea-danger,.ea-delete,.xe-danger){color:var(--action-danger)}
#content:has(>.workbench-quick-actions) button:is(:disabled,[aria-disabled="true"]){color:#788391;background:transparent;border:0;box-shadow:none;text-decoration:none;cursor:not-allowed;opacity:1}
#content:has(>.workbench-quick-actions) button:focus-visible{outline:3px solid #bc5700;outline-offset:3px}
#content:has(>.workbench-quick-actions) .workbench-quick-actions{gap:8px 20px;margin-bottom:10px}
#content:has(>.workbench-quick-actions) .workbench-quick-action{min-height:52px;padding:8px 6px;font-size:15px}
#content:has(>.workbench-quick-actions) .workbench-quick-action>span{font-size:21px;line-height:1}
#content:has(>.workbench-quick-actions) .sales-tree-region,
#content:has(>.workbench-quick-actions) .responsibility-drill{justify-content:flex-start;text-align:left}
#content:has(>.workbench-quick-actions) .row-more>summary{border:0;background:transparent;box-shadow:none}
@media(max-width:760px),(pointer:coarse){
 #content:has(>.workbench-quick-actions) button:not(:where(form button,.dialog button,[role="slider"])){min-width:44px;min-height:44px}
}
body table :is(.responsibility-person,.sales-tree-region,.responsibility-drill){min-height:32px}
/* All sales management trees: left align within each column; retain depth padding.
   Include the workbench root to override its generic centered hotspot rule. */
body .responsibility-table :is(th,td),
body .responsibility-table th:not(:first-child){text-align:left}
body .responsibility-table button,
body .responsibility-table .responsibility-person button,
#content .responsibility-table button,
body .meeting-tree-heading button,
body .sales-report-group>.sales-tree-region{
 justify-content:flex-start;text-align:left;
}
body .responsibility-table .responsibility-metric{padding-left:0;padding-right:0}
body .meeting-tree-heading,
body .meeting-tree-person,
body .meeting-person-metrics,
body .report-compact-metrics{justify-content:flex-start;text-align:left}
body .sales-report-group .report-compact-metrics{margin-left:10px}
body .sales-report-person>summary{text-align:left}
body .meeting-tree-heading{min-height:36px;padding:2px 6px}
@media(min-width:761px){
 body table:not(.dq-heat) :is(th,td){padding-top:4px;padding-bottom:4px}
 body .responsibility-table th:first-child{width:28%}
}
@media(max-width:760px),(pointer:coarse){
 body :is(table,.meeting-tree-heading,.report-compact-metrics) button:not(.dq-cell),
 body table .row-more>summary{min-width:44px;min-height:44px}
 body table :is(.responsibility-person,.sales-tree-region,.responsibility-drill){min-height:44px}
 body .meeting-tree-heading{min-height:44px}
}
.sales-scope-heading{display:inline-flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.sales-scope-heading>.operating-info{display:inline-block;margin:0;flex:0 0 auto}
.responsibility-table .responsibility-total-row>th,.responsibility-table .responsibility-total-row>td,table .table-total-row>th,table .table-total-row>td{padding:6px 10px!important;text-align:left;font-size:12px!important;line-height:1.4;font-weight:600;background:#f5f8fa;border-bottom:1px solid #e6ecf1}
/* The help must escape the table's horizontal/vertical scroll clipping. */
body table .table-total-row .linkbtn{min-height:24px!important;height:auto;min-width:28px;padding:0 2px!important;font-size:inherit!important;line-height:1.4;background:transparent!important;border:0!important;box-shadow:none!important;text-align:left}
body .responsibility-total-row .operating-info>summary{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important}
body .responsibility-total-row>th{white-space:nowrap}
body .responsibility-total-row .operating-info>.operating-info-body{position:fixed;top:20vh;left:max(18px,calc(50vw - 210px));right:auto;width:min(420px,calc(100vw - 36px));max-height:60vh;overflow:auto;white-space:normal;text-align:left;font-weight:400;z-index:80}
.responsibility-heading[hidden]{display:none!important}
.nav .nav-pending-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#c53030;color:#fff;font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
/* Unbounded phone content lists share their page/dialog scroll owner. Keep
   dropdowns, modal shells and horizontal tables independently scrollable. */
@media(max-width:760px){
 .function-tree,.touch-product-choices,.pickgrid,.ea-panel{max-height:none;overflow:visible;overscroll-behavior:auto}
 .ws-ranking-table{max-height:none;overscroll-behavior:auto;scrollbar-gutter:auto}
 .touch-target-options{overscroll-behavior-y:auto}
}
