/* Studio workspace: warm paper surfaces, restrained amber, precise hierarchy.
   Loaded in the head after component styles, including employee and legacy pages. */
:root {
  --page-canvas:#f7f6f3; --hk-background:var(--page-canvas);
  --ink:#222522; --hk-secondary:#222522; --orange:#e99a22;
  --footer-muted:#74766f; --footer-line:#e6e2db;
  --footer-surface:#faf9f6; --footer-surface-soft:#fff;
  --radius-card:12px; --radius-control:8px;
  --studio-border:#e5e0d7;
  --studio-shadow:0 2px 4px #37302703,0 6px 20px #37302706;
  --font-heading:Georgia,'Times New Roman',serif;
  --glass-card-shadow:var(--studio-shadow);
  --control-border:var(--studio-border);
  --button-height:var(--control-height-primary);
}
body:has(.crm-shell),.crm-shell,.crm-shell:has(.studio-overview){background:var(--page-canvas);color:var(--ink)}
.crm-shell .crm-content{padding:30px 30px 40px;max-width:1920px;margin:0 auto}
.crm-shell .crm-top{min-height:64px;padding:12px 30px;background:#fffdfb;border-bottom:1px solid var(--studio-border);font-size:12px;color:#666b67}
.crm-shell .crm-top>span{letter-spacing:.02em}
.crm-shell .crm-top>a,.crm-profile-avatar{background:#f6ead8;color:#805a2e;border:1px solid #eddfc9;font-weight:600}
.crm-shell .crm-top input{background:#fff;font-size:12px;border-color:var(--studio-border)}

/* Navigation stays compact and scannable, with one warm active indicator. */
.crm-shell .crm-nav,.crm-shell:has(.studio-overview) .crm-nav{background:#222522;width:228px;padding:26px 14px 18px;border-right:1px solid #363934}
.crm-shell .crm-brand{padding:0 10px;gap:28px;margin-bottom:12px}
.studio-wordmark{display:flex;align-items:center;gap:10px;color:#f7f4ee}
.crm-shell .crm-brand .studio-wordmark img{width:34px;height:40px;padding:0;flex-shrink:0;object-fit:contain;background:transparent;filter:none;border-radius:0}
.studio-wordmark b{display:block;font:600 22px var(--font-family);letter-spacing:-.6px;white-space:nowrap}
.studio-wordmark small{display:block;font:10px var(--font-family);color:#c1c3ba!important;letter-spacing:.15px;margin-top:3px}
.crm-shell .crm-brand>span{font-size:9px;letter-spacing:1.6px;color:#a6aba1}
.crm-shell .crm-nav nav{gap:4px}
.crm-shell .crm-nav nav a,.crm-shell:has(.studio-overview) .crm-nav nav a{min-height:42px;padding:10px 12px;font-size:13px;font-weight:400;color:#d8dbd2;border:1px solid transparent;gap:12px}
.crm-shell .crm-nav nav a[aria-current],.crm-shell:has(.studio-overview) .crm-nav nav a[aria-current]{background:#443a27;border-color:#645030;box-shadow:inset 2px 0 #e9ae4b;color:#fff6e5}
.crm-shell .crm-nav nav a:hover{background:#30352f;color:#fff}
.crm-shell .crm-nav nav a[aria-current]:hover{background:#4a3f29}
.crm-shell .crm-nav-label{border-top:1px solid #3b4038;margin:16px 10px 3px;padding:20px 0 5px;font-size:9px;letter-spacing:1.5px}
.crm-shell .crm-nav nav .hk-icon{width:18px;height:18px;stroke-width:1.6}
.crm-shell .crm-nav-bottom{border-color:#3b4038;padding:18px 8px 0;gap:18px}
.crm-shell .crm-nav-profile{font-size:12px}.crm-shell .crm-signout{color:#c8cdc1}

/* Editorial headings; operational data retains clean sans-serif numerals. */
.crm-shell .crm-heading,.crm-shell .overview-heading,.crm-shell .page-header{margin-bottom:26px;gap:18px;align-items:center}
.crm-shell .crm-heading h1,.crm-shell .overview-heading h1,.crm-shell .page-title{font-family:var(--font-heading);font-size:clamp(29px,2.5vw,40px);font-weight:500;letter-spacing:-1.2px;line-height:1.18;color:#202420}
.crm-shell .crm-heading p,.crm-shell .overview-heading p,.crm-shell .page-subtitle{font-size:14px;line-height:1.6;color:#74776f;margin-top:9px;max-width:760px}
.crm-shell .crm-card h2{font-family:var(--font-heading);font-size:22px;font-weight:500;line-height:1.2;letter-spacing:-.5px}
.crm-shell .crm-card-head{margin-bottom:20px;gap:14px}
.crm-shell .crm-card-head p,.crm-shell .crm-card .help{font-size:12px;color:#777c72;line-height:1.6}

/* Visible edges and low, soft elevation match the supplied reference. */
.crm-shell .crm-card,.crm-shell .overview-stat,.crm-shell .crm-stat,
.crm-shell .crm-column,.crm-shell .crm-pipeline-card,
.crm-shell .metric-card,.crm-shell .table-card,.crm-shell .stat-card,
.crm-shell .clients-stat-card,.crm-shell .clients-table-card,.crm-shell .srv-stat-card {
  background:#fff;border:1px solid var(--studio-border);border-radius:var(--radius-card);box-shadow:var(--studio-shadow);
}
.crm-shell .crm-card{padding:22px;margin-bottom:20px}
.crm-shell .crm-stat{color:var(--ink)}.crm-shell .crm-stat span{color:#74776f}
.crm-shell .overview-stats,.crm-shell .employee-metrics{gap:14px;margin-bottom:20px}
.crm-shell .overview-stat{min-height:122px;padding:19px 16px;gap:14px}
.crm-shell .overview-stat h2{font-family:var(--font-family);font-size:12px;font-weight:500;letter-spacing:0;color:#555d53;margin:2px 0 12px}
.crm-shell .overview-stat strong,.crm-shell .crm-stat strong,.crm-shell .employee-number,.crm-shell .employee-metric strong{font-family:var(--font-family);font-size:30px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1.15}
.crm-shell .overview-stat small,.crm-shell .employee-metric small{font-size:11px;line-height:1.5;color:#7a7f74;margin-top:9px}
.crm-shell .stat-icon,.crm-shell .employee-icon{width:38px;height:40px;border:1px solid #f5e8d3;background:#fff8ec;color:#c7851d;border-radius:9px}
.crm-shell .stat-icon .hk-icon,.crm-shell .employee-icon .hk-icon{width:21px;height:21px;stroke-width:1.6}
.crm-shell .employee-metrics .crm-card{margin:0;padding:19px;min-height:120px}
.crm-shell .employee-metrics .crm-card>p{font-size:12px;color:#697163;margin:0}
.crm-shell .overview-charts{gap:16px}.crm-shell .overview-chart{height:205px}
.crm-shell .overview-chart text{fill:#85897f;font-size:11px}
.crm-shell .overview-side,.crm-shell .employee-two,.crm-shell .employee-three{gap:20px}

/* Tables prioritize identity, status and one quiet action per row. */
.crm-shell .crm-table-wrap{border:1px solid #ece9e2;border-radius:9px;background:white}
.crm-shell .crm-table th,.crm-shell .overview-table th{background:#f9f8f5;color:#767b71;font-size:10px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;padding:13px 14px;border-bottom:1px solid #e9e5dd}
.crm-shell .crm-table td,.crm-shell .overview-table td{padding:17px 14px;border-color:#efede7;font-size:13px;line-height:1.5;vertical-align:middle}
.crm-shell .crm-table tbody tr:hover{background:#fcfbf8}
.crm-shell .crm-table td small{font-size:11px;color:#85897f;margin-top:4px}
.crm-shell .overview-table td:first-child strong,.crm-shell .employee-project-name{font-size:13px;font-weight:600;color:#292e27}
.crm-shell .crm-pill{border:1px solid #e9e6df;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:500;white-space:nowrap}
.crm-shell .crm-pill.completed,.crm-shell .crm-pill.approved{background:#edf5ee;color:#3a7050;border-color:#d9e8dc}
.crm-shell .crm-pill.waiting_review{background:#f1edf8;color:#755c9c;border-color:#e4dbf0}
.crm-shell .crm-pill.started,.crm-shell .crm-pill.in_progress,.crm-shell .crm-pill.pending{background:#fff5e5;color:#956722;border-color:#f3e3c5}
.crm-shell .crm-pill.cancelled,.crm-shell .crm-pill.on_hold{background:#f1f2ef;color:#747a6e;border-color:#e2e5dc}
.crm-shell .priority-dot{background:#8b9185}.crm-shell .priority-dot.high,.crm-shell .priority-dot.urgent{background:#bd665d}
.crm-shell .person-initial{background:#f8eedf;color:#93703e}
.crm-shell .employee-progress{height:6px;background:#eeeee7;border-radius:20px}
.crm-shell .employee-progress i{background:#8a9f8c}.crm-shell .employee-progress.orange i{background:#d5a158}
.crm-shell .crm-table button.secondary,.crm-shell .crm-details-button,.crm-shell .crm-note-button,.crm-shell .employee-open{background:#fff;border:1px solid #e6e2d9;color:#58604f!important;box-shadow:none}

/* Clear primary actions; secondary controls remain neutral. */
.crm-shell .crm-button:not(.secondary):not(.danger){background-color:var(--orange);background-image:none;border-color:#db921f;color:#30250f}
.crm-shell .crm-heading>.crm-button,.crm-shell .overview-heading>.crm-button{width:auto;min-width:150px;box-shadow:0 4px 10px #b77b1814;font-size:13px}
.crm-shell .secondary,.crm-shell .overview-link{background:#fff;color:#525b4d;border:1px solid var(--studio-border)}
.crm-shell input:not([type=checkbox]),.crm-shell select,.crm-shell textarea{border-color:var(--studio-border);border-radius:var(--radius-control);font-size:13px;background:#fff}
.crm-shell input:focus,.crm-shell textarea:focus{outline:2px solid #e2ba7040;outline-offset:1px;border-color:#ccab70}
.crm-shell .range-presets{padding:4px;background:#fff;border-color:var(--studio-border);box-shadow:0 2px 6px #37302703}
.crm-shell .range-presets button{background:transparent!important;border:0;color:#72776c;font-size:12px;padding:0 14px;min-height:var(--control-height-compact)}
.crm-shell .range-presets button.selected{background:#30362e!important;color:#fff!important;box-shadow:0 2px 4px #0000000a}
.crm-shell .range-calendar button{background:#fff4e3!important;border:1px solid #ecd3a5;color:#8c601f;min-height:var(--control-height)}
.crm-shell .range-calendar input{height:var(--control-height);min-height:var(--control-height)}
.crm-shell button:disabled{opacity:.5;cursor:not-allowed}
.crm-shell .crm-save-state{font-size:11px;color:#657e61;min-height:1em}
.crm-shell .crm-message{border:1px solid #dee6d7;border-left:3px solid #8caa7e;background:#f3f7ef;border-radius:8px;padding:14px 18px;color:#48623c}
.crm-shell .live-search-status{min-height:18px;margin:5px 0;color:#7e8477;font-size:11px}
.crm-shell [aria-busy=true]{cursor:progress}

/* The active session has a distinct, calm place above the work. */
.crm-shell .timer-current:not([hidden]){display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px 22px;margin-bottom:24px;background:#f1f5ed;border:1px solid #dce5d3;border-left:3px solid #839b70;border-radius:12px;box-shadow:var(--studio-shadow)}
.timer-current .timer-context{display:flex;flex-direction:column;gap:5px;flex:1;min-width:160px}
.timer-current .timer-context small{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#6b8159}
.timer-current .timer-context a{color:#35442c;font-weight:600;font-size:14px}
.timer-current [data-current-elapsed]{font-size:22px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.5px;color:#3b4e31}
.crm-shell .timer-current button{background:#fff;border-color:#d7dfcf;min-height:38px;font-size:12px}
.crm-shell tr.is-timing{background:#f5f8f1}.crm-shell tr.is-timing td:first-child{box-shadow:inset 3px 0 #8da27a}
.crm-shell tr.is-timing [data-project-start]{border-color:#c9d9be;color:#4a683d!important;background:#eef5e8}
[data-project-elapsed]{font-size:11px;font-variant-numeric:tabular-nums;color:#637b53!important;white-space:nowrap}
[data-project-elapsed][hidden]{display:none!important}
.crm-shell .project-timer .timer-total{font-size:27px;font-variant-numeric:tabular-nums;font-weight:500;color:#4f6542}
.crm-shell .employee-empty{padding:40px 20px;color:#878c80}

/* Legacy catalogue and account screens share the same surface language. */
.crm-shell .clients-page-header{margin-bottom:26px}
.crm-shell .clients-page-title{font-family:var(--font-heading);font-size:36px;font-weight:500;letter-spacing:-1px;color:var(--ink)}
.crm-shell .clients-page-sub{font-size:14px;color:#74776f;line-height:1.6}
.crm-shell .clients-table-wrap,.crm-shell .clients-filter-bar,.crm-shell .proj-filter-bar{border:1px solid var(--studio-border);border-radius:12px;box-shadow:var(--studio-shadow);background:#fff}
.crm-shell .metric-card{min-height:128px;padding:22px;gap:12px}
.crm-shell .metric-card strong{font-size:30px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.crm-shell .metric-card p{font-size:12px;color:#6f7569;margin-bottom:12px}
.crm-shell .metric-trend{font-size:11px;color:#878b81}
.crm-shell .clients-table th,.crm-shell .srv-table th{background:#f9f8f5;color:#767b71;font-size:10px;letter-spacing:.8px;padding:14px 16px}
.crm-shell .clients-table td,.crm-shell .srv-table td{border-color:#efede7;padding:18px 16px;font-size:13px}
.crm-shell .clients-table tbody tr:hover,.crm-shell .srv-table tbody tr:hover{background:#fcfbf8}
.crm-shell .client-avatar{background:#f5ead8!important;color:#8a683a!important;font-size:13px!important;font-weight:500!important}
.crm-shell .status-badge{border-radius:999px;font-size:11px;padding:5px 10px}
.crm-shell .status-active{background:#edf5ee;color:#3a7050}
.crm-shell .action-delete-btn,.crm-shell .download-btn{background:#fff;border:1px solid var(--studio-border);color:#7c7165;box-shadow:none}
.crm-shell .action-delete-btn:hover{background:#fbf0ed;border-color:#e7c6bc;color:#a55945}
.crm-shell .action-delete-icon{width:15px;height:15px}
.crm-shell .client-spent{font-variant-numeric:tabular-nums}

/* Compact shared inputs, including searches outside filter forms. */
.crm-shell input:is([type=search],[type=text],[type=email],[type=tel],[type=password],[type=number],[type=date],[type=month]),
.crm-shell select:not(.hk-select-native),
.crm-shell button.hk-select-trigger {
  box-sizing:border-box;min-height:var(--control-height);height:var(--control-height);padding-top:0;padding-bottom:0;
}
.crm-shell .crm-table button.hk-select-trigger,
.crm-shell .crm-work-table .crm-date-label input {
  min-height:var(--control-height-compact);height:var(--control-height-compact);
}
.crm-shell .clients-search-box,.crm-shell .proj-search-box {
  min-height:var(--control-height);height:var(--control-height);padding-top:0;padding-bottom:0;
}
.crm-shell .clients-search-box input,.crm-shell .proj-search-box input{height:100%;min-height:0}

@media(min-width:761px) and (prefers-reduced-motion:no-preference){
  .crm-shell .crm-nav nav a,.crm-shell .crm-table tbody tr,.crm-shell button,.crm-shell .crm-button{transition:background-color .14s ease,border-color .14s ease!important}
}
@media(max-width:1350px){.crm-shell .crm-nav,.crm-shell:has(.studio-overview) .crm-nav{width:214px}.crm-shell .crm-content{padding:24px}.crm-shell .overview-stat{min-height:112px}}
@media(max-width:760px){
  .crm-shell .crm-nav,.crm-shell:has(.studio-overview) .crm-nav{width:100%;padding:16px 14px 10px;height:auto;position:static}
  .crm-shell .crm-brand{gap:18px;margin-bottom:14px;padding:0}
  .studio-wordmark b{font-size:19px}.studio-wordmark small{font-size:9px}.crm-shell .crm-brand .studio-wordmark img{width:28px;height:33px}
  .crm-shell .crm-nav nav a,.crm-shell:has(.studio-overview) .crm-nav nav a{min-height:38px;padding:8px 10px;font-size:12px;gap:8px}
  .crm-shell .crm-nav-bottom{padding:10px 0 0;margin-top:8px}
  .crm-shell .crm-content{padding:22px 16px 32px}.crm-shell .crm-top{padding:10px 16px;min-height:55px}
  .crm-shell .crm-heading,.crm-shell .overview-heading{align-items:flex-start;margin-bottom:22px}
  .crm-shell .crm-heading h1,.crm-shell .overview-heading h1{font-size:30px;letter-spacing:-.8px}
  .crm-shell .clients-page-title{font-size:30px}.crm-shell .metric-card{padding:17px;min-height:120px}
  .crm-shell .crm-heading p,.crm-shell .overview-heading p{font-size:13px}
  .crm-shell .crm-card{padding:18px 16px}.crm-shell .crm-card h2{font-size:21px}
  .crm-shell .overview-stat{padding:15px 12px;min-height:134px;gap:9px}.crm-shell .overview-stat h2{font-size:11px}
  .crm-shell .overview-stat strong{font-size:27px}.crm-shell .overview-stat small{font-size:10px}
  .crm-shell .stat-icon{width:29px;height:32px}.crm-shell .stat-icon .hk-icon{width:17px;height:17px}
  .crm-shell .employee-metrics .crm-card{padding:16px 12px}.crm-shell .employee-metric{gap:10px}
  .crm-shell .employee-number,.crm-shell .employee-metric strong{font-size:25px}
  .crm-shell .crm-table td{padding:8px 0}.crm-shell .crm-table-wrap{border:0}
  .crm-shell .timer-current:not([hidden]){gap:14px;padding:16px}.timer-current .timer-context{flex-basis:100%}
  .timer-current [data-current-elapsed]{font-size:20px}.timer-current button{margin-left:auto}
}

/* One fluid type scale follows CSS viewport width (including browser zoom). */
:root {
  --studio-body-size:clamp(12px,calc(10px + .22vw),14px);
  --studio-label-size:clamp(11px,calc(9px + .22vw),13px);
  --studio-small-size:clamp(10px,calc(8px + .22vw),12px);
  --control-font-size:var(--studio-body-size);
  --studio-page-space:clamp(16px,1.8vw,32px);
}
.crm-shell{font-size:var(--studio-body-size)}
.crm-shell .crm-content{padding-inline:var(--studio-page-space)}
.crm-shell .crm-heading h1,.crm-shell .overview-heading h1,.crm-shell .clients-page-title{font-size:clamp(28px,2.35vw,40px)}
.crm-shell .crm-card h2{font-size:clamp(18px,1.4vw,23px)}
.crm-shell .crm-heading p,.crm-shell .overview-heading p,.crm-shell .clients-page-sub,
.crm-shell .crm-card p{font-size:var(--studio-body-size)}
.crm-shell .crm-nav nav a,.crm-shell:has(.studio-overview) .crm-nav nav a{font-size:var(--studio-label-size);white-space:nowrap}
.crm-shell button,.crm-shell .crm-button,.crm-shell .overview-link,
.crm-shell .crm-heading>.crm-button,.crm-shell .overview-heading>.crm-button,
.crm-shell input:not([type=checkbox]),.crm-shell select,.crm-shell textarea,
.crm-shell .crm-filters button.hk-select-trigger,.crm-shell .crm-field button.hk-select-trigger{font-size:var(--studio-body-size)}
.crm-shell .crm-table td,.crm-shell .overview-table td,.crm-shell .overview-table td:first-child strong,
.crm-shell .clients-table td,.crm-shell .employee-project-name{font-size:var(--studio-body-size)}
.crm-shell .crm-table th,.crm-shell .overview-table th,.crm-shell .clients-table th,
.crm-shell .crm-table td small,.crm-shell .overview-stat small{font-size:var(--studio-small-size)}
.crm-shell .overview-stat h2,.crm-shell .employee-metrics .crm-card>p{font-size:var(--studio-label-size)}
.crm-shell .crm-table button.hk-select-trigger,.crm-shell .crm-work-table .crm-date-label input,
.crm-shell .crm-work-table .crm-details-button,.crm-shell .crm-work-table .crm-note-button{font-size:var(--studio-label-size)}
/* Truncate only closed controls; the menu and accessible name retain full text. */
.crm-shell .hk-select-trigger{gap:6px;white-space:nowrap}
.crm-shell .hk-select-label,.crm-shell .crm-table .hk-select-label{
  display:block;min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;
}
.crm-shell .crm-button,.crm-shell button,.crm-shell .crm-work-table .crm-date-label{white-space:nowrap}
.hk-select-menu{font-size:var(--studio-body-size)}
.hk-select-menu [role=option]{white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px){
  .crm-shell .crm-nav,.crm-shell:has(.studio-overview) .crm-nav{width:clamp(194px,14.5vw,228px)}
  .crm-shell .crm-card{padding:clamp(16px,1.4vw,24px)}
  .crm-shell .crm-table td,.crm-shell .crm-table th{padding-inline:clamp(7px,.8vw,14px)}
}
/* Use panel width for dense tables, not physical monitor dimensions. */
@container(min-width:861px){
  .crm-shell .crm-work-table .hk-select-trigger{font-size:clamp(11px,1.02cqi,13px);padding-inline:7px}
  .crm-shell .crm-work-table .crm-date-label{font-size:clamp(10px,.95cqi,12px);grid-template-columns:clamp(44px,4.5cqi,58px) minmax(0,1fr)}
  .crm-shell .crm-work-table .crm-date-label input{font-size:clamp(11px,1cqi,13px);padding-inline:4px}
  .crm-shell .crm-work-table .crm-row-actions{gap:5px}
  .crm-shell .crm-work-table .crm-details-button,.crm-shell .crm-work-table .crm-note-button{font-size:clamp(11px,1cqi,13px);padding-inline:7px}
}

/* Fixed-layout tables take column widths from the header, not body cells. */
.crm-shell .overview-table th:nth-child(1){width:18%}
.crm-shell .overview-table th:nth-child(2){width:14%}
.crm-shell .overview-table th:nth-child(3){width:12%}
.crm-shell .overview-table th:nth-child(4){width:16%}
.crm-shell .overview-table th:nth-child(5){width:16%}
.crm-shell .overview-table th:nth-child(6){width:8%}
.crm-shell .overview-table th:nth-child(7){width:13%}
.crm-shell .overview-table th:nth-child(8){width:3%}
.crm-shell .overview-table .overview-single-line{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.crm-shell .overview-table .overview-person{display:flex;align-items:center;gap:7px;min-width:0}
.crm-shell .overview-table .person-initial{flex:0 0 24px;margin:0}
.crm-shell .overview-table .overview-person .overview-single-line{flex:1}
.crm-shell .overview-table td:nth-child(6){white-space:nowrap}
@container(min-width:861px){
  .crm-shell .overview-table td,.crm-shell .overview-table td:first-child strong,
  .crm-shell .overview-table .hk-select-trigger{font-size:clamp(11px,1cqi,13px)}
  .crm-shell .overview-table th{font-size:clamp(10px,.85cqi,12px);white-space:nowrap;letter-spacing:.3px}
  .crm-shell .overview-table td,.crm-shell .overview-table th{padding-inline:clamp(5px,.7cqi,12px)}
  .crm-shell .overview-table .overview-timestamp{font-size:clamp(10px,.95cqi,12px);font-variant-numeric:tabular-nums}
  .crm-shell .overview-table .hk-select-trigger{padding-inline:6px;gap:5px}
}

/* Employee project work needs a full-width table; summaries follow below it. */
.crm-shell .employee-project-layout{grid-template-columns:minmax(0,1fr)}
.employee-project-layout>aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.employee-shell .employee-project-table th:nth-child(1){width:19%}
.employee-shell .employee-project-table th:nth-child(2){width:13%}
.employee-shell .employee-project-table th:nth-child(3){width:11%}
.employee-shell .employee-project-table th:nth-child(4){width:13%}
.employee-shell .employee-project-table th:nth-child(5){width:10%}
.employee-shell .employee-project-table th:nth-child(6){width:11%}
.employee-shell .employee-project-table th:nth-child(7){width:8%}
.employee-shell .employee-project-table th:nth-child(8){width:11%}
.employee-shell .employee-two .employee-project-table th:last-child{width:4%}
.employee-shell .employee-project-table .employee-single-line{display:block;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.employee-shell .employee-project-table .crm-pill{display:inline-block;vertical-align:middle}
.employee-shell .employee-project-table th,.employee-shell .employee-project-table td:not(:first-child){white-space:nowrap;overflow-wrap:normal}
.employee-shell .employee-project-table .employee-progress{min-width:0}
.employee-shell .employee-project-table button{padding-inline:8px;min-height:var(--control-height-compact);font-size:var(--studio-label-size)}
@container(min-width:861px){
 .employee-shell .employee-project-table td,.employee-shell .employee-project-table .employee-project-name,.employee-shell .employee-project-table button{font-size:clamp(11px,1cqi,13px)}
 .employee-shell .employee-project-table th{font-size:clamp(9px,.85cqi,11px);letter-spacing:.3px}
 .employee-shell .employee-project-table td,.employee-shell .employee-project-table th{padding-inline:clamp(5px,.7cqi,12px)}
}
@container(max-width:860px){
 .employee-shell table.employee-project-table{display:block}
 .employee-shell .employee-project-table thead{display:none}
 .employee-shell .employee-project-table tbody{display:grid;gap:14px}
 .employee-shell .employee-project-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:16px;border-bottom:1px solid var(--footer-line)}
 .employee-shell .employee-project-table tbody td{display:block;width:auto!important;min-width:0!important;max-width:100%;padding:0!important;border:0}
 .employee-shell .employee-project-table tbody td:first-child,.employee-shell .employee-project-table .hk-full-cell{grid-column:1/-1}
 .employee-shell .employee-project-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;font-weight:500;color:var(--footer-muted);margin-bottom:7px}
 .employee-shell .employee-project-table td:first-child:before,.employee-shell .employee-project-table .hk-full-cell:before{display:none}
}
@media(max-width:1100px){.employee-project-layout>aside{grid-template-columns:minmax(0,1fr)}}
/* Detail forms must fit their card, including long account and service names. */
.crm-shell .crm-stacked-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.crm-shell .crm-stacked-form>label{display:block;font-size:12px;font-weight:500;margin:0}
.crm-shell .crm-stacked-form>.hk-select,.crm-shell .crm-stacked-form .hk-select-trigger{width:100%;min-width:0;max-width:100%}
.crm-shell .crm-stacked-form>button{justify-self:start;max-width:100%;height:auto;min-height:42px;white-space:normal}
.crm-shell .crm-stacked-form>.help{margin:0}
.crm-shell .crm-card :is(p,summary),.crm-shell .crm-heading>div,.crm-shell .crm-property{min-width:0;overflow-wrap:anywhere}
.crm-shell .crm-card details>form{margin-top:16px}
.crm-shell .crm-form :is(input,textarea),.crm-shell .crm-stacked-form :is(input,textarea){min-width:0;max-width:100%}
@media(max-width:760px){
 .crm-shell .crm-stacked-form>button{justify-self:stretch;min-height:44px}
 .crm-shell .crm-stacked-form .hk-select-trigger{min-height:44px}
 .crm-shell .crm-form input:not([type=checkbox]),.crm-shell .crm-form textarea,.crm-shell .crm-stacked-form input,.crm-shell .crm-stacked-form textarea{font-size:16px}
 .crm-shell .crm-heading h1{overflow-wrap:anywhere}
}
