/* Shared staff type scale. Last-loaded, screen-only; cabinet and print excluded. */
@media screen {
 html.crm-staff-root {font-size:16px}
 body.crm-staff :is(.btn,.crm-btn,.crmnav-link,.v2-client-result) {box-sizing:border-box}
 body.crm-staff .modal-overlay {z-index:2000}
 body.crm-staff {
  --type-body:clamp(15px,calc(13px + .14vw),18px);
  --type-control:clamp(14px,calc(12px + .14vw),17px);
  --type-caption:clamp(13px,calc(11px + .14vw),15px);
  --type-title:clamp(28px,calc(24px + .25vw),34px);
  --type-section:clamp(18px,calc(16px + .14vw),21px);
  --type-number:clamp(21px,calc(18px + .18vw),25px);
  font-size:var(--type-body);line-height:1.5;
 }
 /* Glass belongs to floating chrome; data surfaces remain clear and quiet. */
 body.crm-staff :is(.sidebar,.crmnav-side,.crmnav-drawer,.bottom-nav) {
  background:linear-gradient(145deg,#fffffff2,#f5f5fad9);
  backdrop-filter:blur(16px) saturate(115%);-webkit-backdrop-filter:blur(16px) saturate(115%);
  box-shadow:inset 0 1px 0 #fff,0 4px 20px #24243006;
 }
 body.crm-staff .v2-flow-panel {
  background:radial-gradient(ellipse at 100% 0,#fff0bd66,transparent 45%),linear-gradient(155deg,#fffffff5,#f5f5fae8);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  box-shadow:inset 1px 0 #fff;
 }
 body.crm-staff :is(.v2-widget[data-filter=late],.flow-summary) {
  background:radial-gradient(ellipse at 85% 0,#fff8d9a8,transparent 70%),linear-gradient(120deg,#ffdc70,#fff0b5);
  box-shadow:inset 0 1px 0 #fff8,0 4px 14px #b98e1608;
 }
 body.crm-staff :is(.v2-project-card,.finance-metric,.kpi-card) {
  background:linear-gradient(145deg,#fff,#fafafd);
  box-shadow:inset 0 1px #fff,0 3px 14px #24243004;
 }
 body.crm-staff :is(dialog.v2-client-finder,dialog.finance-modal,dialog.v2-flow-compose) {
  background:linear-gradient(145deg,#fff,#fafafd);
  box-shadow:inset 0 1px #fff,0 24px 70px #20203030;
 }
 @media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  body.crm-staff :is(.sidebar,.crmnav-side,.crmnav-drawer,.bottom-nav,.v2-flow-panel,#tb,#grand-area>.table-wrap){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  body.crm-staff :is(.sidebar,.crmnav-side,.crmnav-drawer,.bottom-nav,.v2-flow-panel){background:#fafafd!important}
  body.crm-staff dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#25253499}
 }
 body.crm-staff :is(h1,.view-header h1,.finance-header h1,.ws-name,.st-title span) {font-size:var(--type-title)!important;line-height:1.25!important;letter-spacing:-.035em;font-weight:600}
 body.crm-staff :is(h2,.ws-card h3,.detail-section-title,.v2-block-head h2) {font-size:var(--type-section)!important;line-height:1.4;letter-spacing:-.02em}
 body.crm-staff :is(h3,h4) {font-size:var(--type-body);line-height:1.45}
 body.crm-staff :is(button,.btn,.crm-btn,input,select,textarea,.cell-inp,.sf-inp) {font-size:var(--type-control)!important;line-height:1.45!important;font-family:var(--crm-font)}
 body.crm-staff :is(label,small,.hint,.st-back,.st-status,.st-meta,.st-meta-label,.pg-title,.flabel,.lbl,.task-meta,.ws-eyebrow,.ws-meta,.kp-meta,.kp-desc,.view-sub,.finance-metric small,.finance-metric p,.kpi-label,.kpi-sub) {font-size:var(--type-caption)!important;line-height:1.5!important;letter-spacing:0}
 body.crm-staff :is(.kh-lbl,.card-manager,.card-tasks,.card-kp-badge,.eyebrow,.task-section-label,.tcal-dow,.ar-num,.ar-dt,.kp-status,.st-none,.v2-stage-chip) {font-size:var(--type-caption)!important;line-height:1.5!important;letter-spacing:0}
 body.crm-staff :is(th,td,.sec-title,.row-sub-hd td,.sf-label,.st-steps label) {font-size:var(--type-control)!important;line-height:1.5!important;letter-spacing:0!important}
 body.crm-staff :is(thead th,.row-sub-hd td,.sf-label) {font-size:var(--type-caption)!important;text-transform:none!important}
 body.crm-staff :is(.task-text,.flow-task p,.flow-message p,.inp-name,.ws-fields .val) {font-size:var(--type-body)!important;line-height:1.5!important}
 body.crm-staff :is(.finance-metric b,.kpi-value,.fin-profit,.card .val,.v2-widget b) {font-size:var(--type-number)!important;line-height:1.35!important;letter-spacing:-.025em;font-weight:600}
 body.crm-staff .ws-fields .val {font-size:var(--type-control)!important}
 body.crm-staff :is(.sidebar .nav-link,.crmnav .crmnav-link,.crmnav-label) {font-size:var(--type-control)!important}
 body.crm-staff :is(.crmnav-section,.nav-section-title,.v2-demo-banner,.flow-note,.pay-tag,.pay-btn,#tb-ttl) {font-size:var(--type-caption)!important;line-height:1.5!important}
 body.crm-staff :is(.badge,.nav-badge,.ws-count,.st-n) {font-size:12px!important;line-height:1.2!important}
 body.crm-staff .sec-title-inp {font-size:var(--type-section)!important}
 body.crm-calculator #tb button,body.crm-calculator #status-sel {font-size:var(--type-control)!important}
 body.crm-staff :is([style*="font-size:9px"],[style*="font-size:10px"],[style*="font-size:11px"],[style*="font-size:12px"],[style*="font-size: 9px"],[style*="font-size: 10px"],[style*="font-size: 11px"],[style*="font-size: 12px"]) {font-size:var(--type-caption)!important;line-height:1.5!important}
 body.crm-staff #kp-table :is(.sf-tot,.sf-inp) {font-size:var(--type-control)!important;letter-spacing:-.02em}
 body.crm-staff .st-title {display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
 body.crm-staff .st-title em {font-size:var(--type-caption)!important;line-height:1.5}
 body.crm-staff :is(.detail-field,.mf,.finance-metric,.kpi-card) {min-width:0}
 body.crm-staff .finance-metric b {white-space:normal;overflow-wrap:anywhere}
 body.crm-staff #lft .fg {min-width:0}
 body.crm-calculator #docw {max-width:1480px;margin-inline:auto;width:100%;min-width:0}
 body.crm-calculator #rgt {min-width:0}
 body.crm-calculator #lft .tgb {width:38px!important;height:22px!important;min-height:22px!important;max-height:22px!important;padding:0!important;border-radius:12px!important;flex:0 0 38px}
 body.crm-calculator #lft .tgb::after {width:16px;height:16px;left:3px;top:3px;box-shadow:0 1px 3px #0002}
 body.crm-calculator #lft .tgb.on::after {left:19px}
 body.crm-calculator #lft .tgr {min-height:42px;gap:10px;margin:2px 0;padding:6px 2px}
 body.crm-calculator #lft :is(.tgr span,.cfh,.ps-t,.pr label) {font-size:var(--type-control)!important;line-height:1.45;letter-spacing:0;text-transform:none}
 body.crm-calculator #lft .ps {padding:14px;margin-bottom:12px}
 body.crm-calculator #lft .ps-t {margin-bottom:12px;font-weight:600}
 body.crm-calculator #lft .mr {display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin-bottom:12px}
 body.crm-calculator #lft .mr label {width:auto;font-size:var(--type-caption)!important}
 body.crm-calculator #lft .mr input {width:100%;min-width:0;height:40px;min-height:40px;padding:8px 10px}
 body.crm-calculator #lft :is(.cfh,.tab) {min-height:44px}
 body.crm-calculator #lft .fl-b {height:34px;min-height:34px;width:34px;padding:0}
 body.crm-calculator #lft .pk {min-height:34px;padding:6px 10px}
 /* Screen summary: preserve the existing calculation targets and overhead input. */
 body.crm-calculator #grand-area {max-width:none;margin:18px 0 0!important;scroll-margin-block:24px 100px}
 body.crm-calculator #grand-area>.table-wrap {
  border:1px solid #ffffff45;border-radius:22px;overflow:hidden;
  background:radial-gradient(ellipse at 5% 0,#ffffff16,transparent 65%),linear-gradient(125deg,#37373ced,#202024f5);
  box-shadow:inset 0 1px 0 #ffffff24,0 12px 30px #20202a16!important;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
 }
 body.crm-calculator #grand-table {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;min-width:0!important;background:transparent!important;border:0;border-collapse:separate}
 body.crm-calculator #grand-table tbody {display:contents}
 body.crm-calculator #grand-table .gf-row {display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;padding:22px 26px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
 body.crm-calculator #grand-table .gf-row:nth-child(2) {border-inline:1px solid #ffffff12!important}
 body.crm-calculator #grand-table .gf-row td {display:block;width:auto!important;min-width:0;border:0!important;padding:0!important;background:transparent!important;text-align:left;white-space:normal}
 body.crm-calculator #grand-table td:empty,body.crm-calculator #grand-table #gf-lab {display:none!important}
 body.crm-calculator #grand-table .gf-lbl {font-size:var(--type-caption)!important;font-weight:500;color:#c9c9d1!important;letter-spacing:0!important;text-transform:none;line-height:1.5}
 body.crm-calculator #grand-table :is(#gf-mat,#gf-lab2) {color:#f6f6fa!important;font-size:19px!important;font-weight:600;line-height:1.5;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
 body.crm-calculator #grand-table #inp-overhead {box-sizing:border-box;width:100%;max-width:190px;height:36px;min-height:36px;padding:5px 12px!important;background:#ffffff0b!important;border:1px solid #ffffff38!important;border-radius:10px;color:#f6f6fa!important;font-size:16px!important;text-align:left;box-shadow:inset 0 1px 2px #0002}
 body.crm-calculator #grand-table #inp-overhead::placeholder {color:#bcbcc6;opacity:1}
 body.crm-calculator #grand-table #inp-overhead:focus {outline:2px solid #ffd347;outline-offset:2px;background:#ffffff15!important}
 body.crm-calculator #grand-table .gf-row.total {grid-column:1/-1;flex-direction:row;align-items:center;gap:16px;padding:20px 26px;border-top:1px solid #ffffff20!important;background:linear-gradient(110deg,#ffffff06,#ffffff02)!important}
 body.crm-calculator #grand-table .gf-row.total .gf-lbl {font-size:16px!important;font-weight:600;color:#f6f6fa!important}
 body.crm-calculator #grand-table #gf-total {color:#ffd347!important;font-size:clamp(24px,1.5vw,30px)!important;font-weight:650;letter-spacing:-.03em!important;line-height:1.3!important;text-align:right;overflow-wrap:anywhere}
 body.crm-calculator #add-sec-btn {max-width:none;width:auto;margin:16px 0 0;padding:9px 14px;border:1px solid #dcdce4;border-radius:11px;background:#ffffff8c;color:#62626e}
 @media(max-width:700px){
  body.crm-calculator #grand-table {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.crm-calculator #grand-table .gf-row {padding:18px;gap:8px}
  body.crm-calculator #grand-table .gf-row:nth-child(2) {border-right:0!important}
  body.crm-calculator #grand-table .gf-row:nth-child(3) {grid-column:1/-1;flex-direction:row;align-items:center;border-top:1px solid #ffffff12!important}
  body.crm-calculator #grand-table .gf-row:nth-child(3)>td {flex:1}
  body.crm-calculator #grand-table :is(#gf-mat,#gf-lab2) {font-size:16px!important;overflow-wrap:anywhere}
  body.crm-calculator #grand-table .gf-row.total {padding:18px}
 }
 body.crm-calculator #lft {background:linear-gradient(155deg,#ffffffed,#f3f3f8e8);box-shadow:inset -1px 0 #fff}
 body.crm-calculator #lft :is(.ps,.cfg) {background:linear-gradient(135deg,#ffffffee,#ffffffa8);border:1px solid #ffffff;box-shadow:0 2px 10px #29293605,0 0 0 1px #e1e1e780;border-radius:14px}
 body.crm-calculator #tb {background:linear-gradient(120deg,#fffffff2,#f7f7fbd9);backdrop-filter:blur(16px);border-bottom:1px solid #ffffff;box-shadow:0 2px 12px #29293607}
 body.crm-calculator #rgt {background:radial-gradient(ellipse at 90% 0,#fff4ce55,transparent 45%),#f2f2f6}
 @media(min-width:901px){
  body.crm-calculator #kp-table .row-item td {padding:4px 5px!important}
  body.crm-calculator #kp-table .drag-handle {height:18px;min-height:0;padding:0;line-height:18px}
  body.crm-calculator #kp-table .type-badge {line-height:12px;height:14px;margin:0 auto;font-size:9px!important}
  body.crm-calculator #kp-table .cell-inp {min-height:32px!important;height:32px;padding:4px 5px!important;border-radius:6px}
  body.crm-calculator #kp-table textarea.inp-name {height:auto;min-height:32px!important}
  body.crm-calculator #kp-table .mat-pick-btn {height:28px!important;min-height:28px!important;max-height:28px;padding:0!important}
  body.crm-calculator #kp-table .sec-inner {min-height:48px;padding:7px 10px;background:linear-gradient(115deg,#29292c,#353539);box-shadow:inset 0 1px #ffffff20}
  body.crm-calculator #kp-table .sec-title-inp {min-height:32px!important;height:32px;padding:2px 4px!important;font-size:16px!important}
  body.crm-calculator #kp-table .row-sub-hd td {padding:6px 10px!important}
  body.crm-calculator #kp-table .row-sec-foot td {padding:6px!important}
  body.crm-calculator #kp-table .row-sec-foot .sf-inp {min-height:32px!important;height:32px;padding:4px!important}
  body.crm-calculator #kp-table .row-add-btn {min-height:30px;padding:5px 10px;font-size:13px!important}
  body.crm-calculator #kp-table .row-item:hover td {background:#fff9e8!important}
  body.crm-calculator #kp-table .cell-inp:focus {background:#fffdf4;box-shadow:0 0 0 2px #e5bd38}
 }
 @media(min-width:901px) and (max-width:1550px){
  body.crm-calculator #lft{width:280px;min-width:280px}
  body.crm-calculator #rgt{padding-inline:18px}
 }
 .task-phone-icon {width:16px;height:16px;vertical-align:middle;margin-right:6px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
 body.crm-staff .sidebar.rail .nav-link {position:relative;overflow:visible}
 body.crm-staff .sidebar.rail .nav-badge {position:absolute;right:-5px;top:-3px;min-width:16px;height:16px;padding:0 3px;font-size:10px!important;border-radius:5px}
 @media(max-width:900px){
  body.crm-staff {--type-body:15px;--type-control:14px;--type-caption:13px;--type-title:26px;--type-section:18px;--type-number:21px}
  body.crm-staff :is(input,textarea,select) {font-size:16px!important}
  body.crm-staff .v2-demo-banner {font-size:11px!important;height:58px;min-height:58px}
  body.crm-staff.v2-demo .mobile-topbar {top:58px!important}
  body.crm-staff .finance-detail-nav {gap:4px;margin-bottom:12px}
  body.crm-staff .finance-detail-nav :is(a,button) {justify-content:flex-start;padding-inline:0}
  body.crm-staff .finance-detail-nav a {height:auto;min-height:44px}
  body.crm-staff .mobile-topbar :is(.mobile-bell-btn,.mobile-account-btn,.mobile-install-btn){color:#555560;min-width:44px;min-height:44px;flex-shrink:0}
  body.crm-staff .mobile-topbar button svg{width:22px;height:22px}
  body.crm-staff .mobile-topbar-logo{margin-right:auto}
  body.crm-calculator .kh-fields{min-width:0;width:100%}
  body.crm-calculator .kh-row{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;min-width:0}
  body.crm-calculator #client-wrap{width:100%!important;min-width:0}
  body.crm-calculator .kh-row .kh-inp{width:100%!important;min-width:0;box-sizing:border-box}
  body.crm-staff :is(.notif-badge,.bnav-badge){background:#fff0b8;color:#68521b;border:1px solid #e6cd7a;border-radius:6px;box-shadow:none;font-size:11px!important;min-width:18px;height:18px;line-height:16px}
 }
}
