/* ===================================================================
   COMPANY DASHBOARD — company-dashboard.css (2026-10)
   Everything is prefixed cd- and scoped under #panel-home so nothing here
   restyles the rest of the app. Cards reuse .dash-widget / .dash-kpi from
   styles.css so the page is visually the project dashboard's sibling.
   Class names deliberately avoid the substrings "empty", "-label" and
   "-value": styles.css has [class*=...] rules that would restyle them.
   =================================================================== */

/* ----- page shell (mirrors #panel-dashboard) ----- */
#panel-home{background:#FAFAFA;margin:-24px -28px;padding:32px 32px 40px;min-height:calc(100vh - 52px)}
#panel-home .cd-root{display:flex;flex-direction:column;gap:20px;max-width:1640px;margin:0 auto;font-variant-numeric:tabular-nums}
#panel-home .dash-grid-12 > div > .cd-card{flex:1 1 auto}
#panel-home .cd-card{display:flex;flex-direction:column;min-width:0}
#panel-home .cd-card-sub{font-size:11.5px;color:var(--gray-500);margin-top:3px;font-weight:400;line-height:1.4}
#panel-home .cd-mono{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-0.01em}
#panel-home .cd-muted{color:var(--gray-400);font-size:11.5px}
#panel-home .cd-strong{font-weight:700;color:var(--gray-900)}
#panel-home .cd-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}
#panel-home .cd-link{background:none;border:none;padding:0;color:var(--red);font:600 12px var(--font);cursor:pointer;display:inline-flex;align-items:center;gap:5px}
#panel-home .cd-link:hover{text-decoration:underline}
#panel-home .cd-legend{display:flex;flex-wrap:wrap;gap:6px 16px}
#panel-home .cd-lg{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--gray-600);font-weight:500;white-space:nowrap}
#panel-home .cd-lg b{color:var(--gray-900);font-weight:700}
#panel-home .cd-sw{width:10px;height:10px;border-radius:3px;display:inline-block;flex-shrink:0}
#panel-home .cd-sw-assist{background:repeating-linear-gradient(135deg,#737373 0 2px,transparent 2px 4px);box-shadow:inset 0 0 0 1.5px #737373}
#panel-home .cd-sub-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:10.5px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray-600)}
#panel-home .cd-sub-head .cd-muted{text-transform:none;letter-spacing:0;font-weight:500}
#panel-home .cd-none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:34px 16px;color:var(--gray-500);font-size:13px;line-height:1.5;flex:1}
#panel-home .cd-none > i{font-size:22px;color:var(--gray-300);margin-bottom:4px}
#panel-home .cd-none .btn{margin-top:8px}
#panel-home .cd-none-sm{padding:22px 12px}
#panel-home .cd-note{display:flex;gap:7px;align-items:flex-start;font-size:11px;color:var(--gray-400);margin-top:12px;line-height:1.45}
#panel-home .cd-note .cd-link{font-size:11px}
#panel-home .cd-fade{animation:cd-fade .18s ease-out}
@keyframes cd-fade{from{opacity:0}to{opacity:1}}

/* skeleton shimmer while /dashboard/company is in flight */
#panel-home .cd-skel{display:block;border-radius:6px;background:linear-gradient(90deg,#F1F1F1 25%,#E6E6E6 37%,#F1F1F1 63%);background-size:400% 100%;animation:cd-shimmer 1.3s ease infinite}
#panel-home .cd-skel-sm{display:inline-block;width:28px;height:12px;vertical-align:middle}
#panel-home .cd-skel-l{width:72%;height:11px;margin-bottom:7px}
#panel-home .cd-skel-s{width:44%;height:9px}
#panel-home .cd-skel-ico{width:30px;height:30px;border-radius:9px;flex-shrink:0}
#panel-home .cd-skel-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;margin-top:2px}
#panel-home .cd-dl-skel,#panel-home .cd-act-skel{display:flex;gap:11px;align-items:flex-start;padding:9px 0}
#panel-home .cd-dl-skel > div,#panel-home .cd-act-skel > div{flex:1}
@keyframes cd-shimmer{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* ----- 1. command bar ----- */
#panel-home .cd-hero{position:relative;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:128px;padding:24px 30px 27px;border-radius:20px;background:var(--kinnect-grad-charcoal,linear-gradient(135deg,#1F1F23 0%,#0F0F12 100%));color:#fff;box-shadow:0 12px 32px rgba(15,15,18,0.20),0 1px 2px rgba(0,0,0,0.08)}
/* Background layer clips to the radius; the hero itself can't, or the
   jump-to dropdown would be cut off. */
#panel-home .cd-hero-bg{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;color:rgba(255,255,255,0.16);
  background:radial-gradient(circle 280px at 88% 18%,rgba(231,0,0,0.16),transparent 72%)}
#panel-home .cd-hero-bg::before{content:'';position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.055) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px);
  background-size:120px 120px,120px 120px,24px 24px,24px 24px;
  background-position:-1px -1px,-1px -1px,-1px -1px,-1px -1px;
  -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,0.25) 0%,#000 55%);mask-image:linear-gradient(90deg,rgba(0,0,0,0.25) 0%,#000 55%)}
#panel-home .cd-hero-bg::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#E70000}
#panel-home .cd-hero-dims{position:absolute;right:0;top:0;height:100%;width:auto;max-width:62%}
#panel-home .cd-hero-left{position:relative;z-index:1;min-width:0}
#panel-home .cd-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:10.5px;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:#FF4545}
#panel-home .cd-eyebrow::before{content:'';width:18px;height:2px;background:#E70000;border-radius:1px}
#panel-home .cd-hero-title{font-size:26px;font-weight:700;letter-spacing:-0.02em;line-height:1.15;color:#fff;margin-top:8px}
#panel-home .cd-hero-meta{margin-top:8px;font-size:12.5px;color:rgba(255,255,255,0.64);line-height:1.5}
#panel-home .cd-hero-meta b{color:#fff;font-weight:600}
#panel-home .cd-hero-hot{color:#FF6B6B;font-weight:700}
#panel-home .cd-sep{margin:0 9px;color:rgba(255,255,255,0.28)}
#panel-home .cd-hero-right{position:relative;z-index:2;display:flex;align-items:center;gap:10px;flex-shrink:0}
#panel-home .cd-hero-btn{height:40px;padding:0 16px;border:none;border-radius:10px;background:#E70000;color:#fff;font:600 12.5px var(--font);display:inline-flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap;box-shadow:0 6px 16px rgba(231,0,0,0.32);transition:background .15s,transform .12s}
#panel-home .cd-hero-btn:hover{background:#C40000}
#panel-home .cd-hero-btn:active{transform:translateY(1px)}

/* jump-to-project combobox */
#panel-home .cd-jump{position:relative;width:340px}
#panel-home .cd-jump-ico{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:12px;color:rgba(255,255,255,0.55);pointer-events:none;z-index:1}
#panel-home .cd-jump-input{width:100%;height:40px;padding:0 14px 0 36px;border-radius:10px;border:1px solid rgba(255,255,255,0.16);background:rgba(255,255,255,0.07);color:#fff;font:500 13px var(--font);outline:none;transition:background .15s,border-color .15s,box-shadow .15s}
#panel-home .cd-jump-input::placeholder{color:rgba(255,255,255,0.55)}
#panel-home .cd-jump-input:hover{background:rgba(255,255,255,0.10)}
#panel-home .cd-jump-input:focus{background:rgba(255,255,255,0.12);border-color:rgba(231,0,0,0.8);box-shadow:0 0 0 3px rgba(231,0,0,0.24)}
#panel-home .cd-jump-list{position:absolute;top:calc(100% + 8px);right:0;width:420px;max-width:calc(100vw - 40px);max-height:380px;overflow-y:auto;padding:6px;background:#fff;border-radius:14px;box-shadow:0 18px 48px rgba(15,17,23,0.22),0 2px 6px rgba(15,17,23,0.08);z-index:40;animation:cd-fade .15s ease-out;color:var(--gray-800)}
#panel-home .cd-jump-list[hidden]{display:none}
#panel-home .cd-jump-hd{padding:6px 10px 4px;font-size:9.5px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--gray-400)}
#panel-home .cd-jump-opt{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:11px;padding:9px 10px;border-radius:9px;cursor:pointer}
#panel-home .cd-jump-opt.is-active,#panel-home .cd-jump-opt:hover{background:rgba(231,0,0,0.06)}
#panel-home .cd-jump-txt{display:flex;flex-direction:column;min-width:0}
#panel-home .cd-jump-name{font-size:13px;font-weight:600;color:var(--gray-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-jump-sub{font-size:11px;color:var(--gray-500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-jump-bid{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--gray-600)}
#panel-home .cd-jump-bid .cd-cdn{margin-top:0}
#panel-home .cd-jump-none{padding:16px 12px;font-size:12.5px;color:var(--gray-500);text-align:center}

/* "days to bid" countdown chip */
#panel-home .cd-cdn{display:inline-block;margin-top:4px;padding:2px 7px;border-radius:10px;background:var(--gray-100);color:var(--gray-600);font:700 10px/1.4 var(--mono);white-space:nowrap}
#panel-home .cd-cdn.hot{background:rgba(231,0,0,0.10);color:#C40000}
#panel-home .cd-cdn.past{background:transparent;color:var(--gray-400);font-weight:600;padding-left:0}

/* ----- 2. KPI row (tile look inherited from .dash-kpi) ----- */
#panel-home .cd-kpis .dash-kpi-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-kpis .dash-kpi-sub{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ----- 3a. project pipeline: chevron stage gates ----- */
#panel-home .cd-chevs{display:flex;border-radius:12px;overflow:hidden}
#panel-home .cd-chev{--notch:16px;flex:1 1 0;min-width:0;position:relative;padding:15px 26px 14px 32px;
  clip-path:polygon(0 0,calc(100% - var(--notch)) 0,100% 50%,calc(100% - var(--notch)) 100%,0 100%,var(--notch) 50%)}
#panel-home .cd-chev:first-child{padding-left:18px;clip-path:polygon(0 0,calc(100% - var(--notch)) 0,100% 50%,calc(100% - var(--notch)) 100%,0 100%)}
#panel-home .cd-chev + .cd-chev{margin-left:-11px}
#panel-home .cd-chev::before{content:'';position:absolute;inset:0;background:var(--c);opacity:0.075;z-index:0}
#panel-home .cd-chev::after{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--c);z-index:0}
#panel-home .cd-chev > *{position:relative;z-index:1}
#panel-home .cd-chev-name{display:flex;align-items:center;gap:7px;font-size:10.5px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-chev-count{font-size:34px;font-weight:700;line-height:1;color:var(--gray-900);margin-top:12px;letter-spacing:-0.03em}
#panel-home .cd-chev-money{font-size:13px;font-weight:600;color:var(--gray-700);margin-top:7px}
#panel-home .cd-chev-cap{font-size:11px;color:var(--gray-500);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-chev-bar{height:4px;border-radius:2px;background:rgba(15,17,23,0.07);margin-top:11px;overflow:hidden}
#panel-home .cd-chev-bar span{display:block;height:100%;border-radius:2px;background:var(--c);transition:width .2s ease}

/* design-phase mix */
#panel-home .cd-ph{margin-top:22px;padding-top:18px;border-top:1px solid var(--gray-100)}
#panel-home .cd-ph-bar{display:flex;gap:2px;height:24px;border-radius:7px;overflow:hidden;background:var(--gray-100);margin-bottom:10px}
#panel-home .cd-ph-seg{min-width:24px;display:flex;align-items:center;justify-content:center;color:#fff;font:700 11px var(--mono)}
#panel-home .cd-ph-seg.is-light{color:#171717}
#panel-home .cd-ph-unset{background:repeating-linear-gradient(135deg,#E5E5E5 0 3px,#F5F5F5 3px 6px)}
#panel-home .cd-ph-none{padding:6px 0}

/* ----- 3b. market mix ----- */
#panel-home .cd-mkt-chart{position:relative;height:196px;margin:0 auto 14px;width:100%;max-width:260px}
#panel-home .cd-mkt-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center}
#panel-home .cd-mkt-total{font-size:24px;font-weight:700;color:var(--gray-900);line-height:1.1}
#panel-home .cd-mkt-cap{font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--gray-500);margin-top:4px}
#panel-home .cd-mkt-legend{display:flex;flex-direction:column;min-width:0}
#panel-home .cd-mkt-row{display:grid;grid-template-columns:10px minmax(0,1fr) 40px 64px;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid var(--gray-100);font-size:12px}
#panel-home .cd-mkt-row:last-child{border-bottom:none}
#panel-home .cd-mkt-type{color:var(--gray-800);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-mkt-pct{color:var(--gray-500);text-align:right;font-size:11.5px}
#panel-home .cd-mkt-amt{color:var(--gray-900);font-weight:700;text-align:right}

/* ----- 4. 6-week look-ahead ----- */
#panel-home .cd-sync{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--gray-400);white-space:nowrap}
#panel-home .cd-sync.is-err{color:var(--gray-500)}
#panel-home .cd-sync-dot{width:7px;height:7px;border-radius:50%;background:#E70000;animation:cd-pulse 1.2s ease-in-out infinite}
@keyframes cd-pulse{0%,100%{opacity:.25}50%{opacity:1}}
#panel-home .cd-la-scroll{overflow-x:auto;margin:0 -4px;padding:0 4px 12px}
#panel-home .cd-la{--cd-la-name:210px;min-width:960px;position:relative}
#panel-home .cd-la-head,#panel-home .cd-la-row{display:grid;grid-template-columns:var(--cd-la-name) minmax(0,1fr)}
#panel-home .cd-la-head{border-bottom:1px solid var(--gray-200)}
#panel-home .cd-la-name{position:sticky;left:0;z-index:4;background:#fff;display:flex;align-items:center;gap:9px;min-width:0;padding:0 14px 0 2px;font-size:12.5px;font-weight:600;color:var(--gray-800);cursor:pointer;outline:none}
#panel-home .cd-la-name:hover .cd-la-pname,#panel-home .cd-la-name:focus-visible .cd-la-pname{color:#E70000}
#panel-home .cd-la-pname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .12s}
#panel-home .cd-la-corner{font-size:10px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray-400);cursor:default}
#panel-home .cd-la-weeks{display:flex;position:relative}
#panel-home .cd-la-wk{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:2px;padding:6px 10px 12px;border-left:1px solid var(--gray-200)}
#panel-home .cd-la-wk-d{font-size:13px;font-weight:700;color:var(--gray-900)}
#panel-home .cd-la-wk-to{font-size:10px;color:var(--gray-400);white-space:nowrap}
#panel-home .cd-la-wk.is-now .cd-la-wk-to{color:#C40000;font-weight:600}
#panel-home .cd-la-today-tag{position:absolute;bottom:-8px;transform:translateX(-50%);z-index:3;padding:2px 6px;border-radius:4px;background:#E70000;color:#fff;font:700 8.5px/1.3 var(--mono);letter-spacing:0.1em;text-transform:uppercase;white-space:nowrap}
#panel-home .cd-la-body{position:relative}
#panel-home .cd-la-bg{position:absolute;top:0;bottom:0;left:var(--cd-la-name);right:0;display:flex;pointer-events:none;z-index:0}
/* Mon–Fri plain, Sat–Sun faintly shaded (5/7 = 71.43%) */
#panel-home .cd-la-bgwk{flex:1 1 0;border-left:1px solid var(--gray-100);background:linear-gradient(90deg,transparent 71.4286%,rgba(15,17,23,0.03) 71.4286%)}
#panel-home .cd-la-past{position:absolute;left:0;top:0;bottom:0;background:repeating-linear-gradient(135deg,rgba(15,17,23,0.04) 0 1px,transparent 1px 7px)}
#panel-home .cd-la-today{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#E70000;box-shadow:0 0 0 3px rgba(231,0,0,0.08)}
#panel-home .cd-la-row{height:36px;border-bottom:1px solid var(--gray-100)}
#panel-home .cd-la-row:last-child{border-bottom:none}
#panel-home .cd-la-track{position:relative;z-index:1}
#panel-home .cd-mk{position:absolute;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:transform .12s}
#panel-home .cd-mk:hover{transform:translate(-50%,-50%) scale(1.22);z-index:3}
#panel-home .cd-mk-shape{display:inline-block;flex-shrink:0;box-shadow:0 0 0 2px #fff}
#panel-home .cd-mk-bid,#panel-home .cd-mk-pkg{width:10px;height:10px;border-radius:1.5px;transform:rotate(45deg)}
#panel-home .cd-mk-bid{background:#E70000}
#panel-home .cd-mk-pkg{background:#26262B}
#panel-home .cd-mk-mtg{width:10px;height:10px;border-radius:50%;background:#2563EB}
#panel-home .cd-mk-rfi{width:9px;height:9px;border-radius:2px;background:#D97706}
#panel-home .cd-mk-rfi.is-over{background:#E70000}
#panel-home .cd-mk-act{width:7px;height:7px;border-radius:50%;background:#A3A3A3}
#panel-home .cd-mk-start{font-size:12px;color:#059669}
#panel-home .cd-mk-n{position:absolute;top:-3px;right:-6px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;background:#171717;color:#fff;font-size:8.5px;font-weight:700;line-height:14px;text-align:center;box-shadow:0 0 0 1.5px #fff}
#panel-home .cd-la-early{margin-left:auto;flex-shrink:0;display:inline-flex;align-items:center;gap:3px;padding:1px 6px;border-radius:8px;background:rgba(231,0,0,0.09);color:#C40000;font-size:9.5px;font-weight:700;white-space:nowrap}
#panel-home .cd-la-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding-top:12px;border-top:1px solid var(--gray-100)}
#panel-home .cd-la-foot .cd-lg .cd-mk-shape{margin-right:2px}
#panel-home .cd-la-foot .cd-lg .cd-mk-bid,#panel-home .cd-la-foot .cd-lg .cd-mk-pkg{width:8px;height:8px;margin:0 3px}

/* ----- 5a. projects table ----- */
#panel-home .cd-proj-head{flex-wrap:wrap;gap:12px}
#panel-home .cd-proj-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#panel-home .cd-seg{display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:var(--gray-100)}
#panel-home .cd-seg-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:none;border-radius:8px;background:transparent;color:var(--gray-600);font:600 12px var(--font);cursor:pointer;white-space:nowrap;transition:background .12s,color .12s}
#panel-home .cd-seg-btn:hover{color:var(--gray-900)}
#panel-home .cd-seg-btn span{font-size:10.5px;font-weight:700;color:var(--gray-400)}
#panel-home .cd-seg-btn.is-on{background:#fff;color:var(--gray-900);box-shadow:0 1px 2px rgba(15,17,23,0.08),0 2px 6px rgba(15,17,23,0.06)}
#panel-home .cd-seg-btn.is-on span{color:#E70000}
#panel-home .cd-seg-sm .cd-seg-btn{padding:5px 10px;font-size:11.5px}
#panel-home .cd-search{position:relative;display:inline-flex;align-items:center}
#panel-home .cd-search i{position:absolute;left:11px;font-size:11.5px;color:var(--gray-400);pointer-events:none}
#panel-home .cd-search input{width:200px;height:34px;padding:0 12px 0 31px;border:1px solid var(--gray-200);border-radius:10px;background:#fff;color:var(--gray-800);font:13px var(--font);outline:none;transition:border-color .15s,box-shadow .15s}
#panel-home .cd-search input:focus{border-color:#E70000;box-shadow:0 0 0 3px rgba(231,0,0,0.12)}
#panel-home .cd-proj-body{display:flex;flex-direction:column;flex:1;min-height:0}
/* Bleed the table to the card edges (card padding is 26px 28px). */
#panel-home .cd-tbl-wrap{overflow:auto;max-height:560px;margin:0 -28px -26px;border-top:1px solid var(--gray-100)}
#panel-home .cd-tbl{width:100%;min-width:860px;border-collapse:separate;border-spacing:0}
#panel-home .cd-tbl thead th{position:sticky;top:0;z-index:2;background:#FAFAFA;border-bottom:1px solid #E5E5E5;padding:10px 12px;text-align:left;white-space:nowrap;font-size:10px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:#525252}
#panel-home .cd-tbl tbody td{padding:11px 12px;border-bottom:1px solid #F0F0F0;font-size:12.5px;color:#262626;vertical-align:middle}
#panel-home .cd-tbl tbody tr:last-child td{border-bottom:none}
#panel-home .cd-tbl tbody tr{cursor:pointer;transition:background .12s}
#panel-home .cd-tbl tbody tr:hover{background:rgba(231,0,0,0.025)}
#panel-home .cd-tbl tbody tr:focus-visible{outline:2px solid rgba(231,0,0,0.45);outline-offset:-2px}
#panel-home .cd-tbl th:first-child,#panel-home .cd-tbl td:first-child{padding-left:28px}
#panel-home .cd-tbl th:last-child,#panel-home .cd-tbl td:last-child{padding-right:28px}
#panel-home .cd-tbl .cd-r{text-align:right}
#panel-home .cd-tbl .cd-c{text-align:center}
#panel-home .cd-pcell{display:flex;align-items:center;gap:12px;min-width:0}
#panel-home .cd-pcell-txt{min-width:0;max-width:280px}
#panel-home .cd-thumb{width:40px;height:40px;border-radius:10px;object-fit:cover;flex-shrink:0;background:var(--gray-100);display:block}
#panel-home .cd-thumb-ini{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2A2A30 0%,#121216 100%);color:#fff;font:700 12px var(--mono);letter-spacing:0.02em;box-shadow:inset 3px 0 0 var(--c)}
#panel-home .cd-pname{font-size:13px;font-weight:600;color:var(--gray-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-psub{font-size:11px;color:var(--gray-500);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-steps{display:flex;gap:3px}
#panel-home .cd-step{width:24px;display:flex;flex-direction:column;align-items:center;gap:4px}
#panel-home .cd-step span{display:block;width:100%;height:5px;border-radius:3px;background:var(--gray-200)}
#panel-home .cd-step.is-done span{background:rgba(231,0,0,0.38)}
#panel-home .cd-step.is-cur span{background:#E70000}
#panel-home .cd-step em{font:600 8.5px var(--mono);font-style:normal;color:var(--gray-400)}
#panel-home .cd-step.is-cur em{color:var(--gray-900);font-weight:700}
#panel-home .cd-team-cell.is-edit{cursor:pointer}
#panel-home .cd-team-cell.is-edit:hover{background:rgba(15,17,23,0.03)}
#panel-home .cd-rfi-n{font-size:13px;font-weight:700;color:var(--gray-900)}
#panel-home .cd-rfi-n.is-zero{color:var(--gray-400);font-weight:500}
#panel-home .cd-rfi-over{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:8px;background:#E70000;color:#fff;font-size:9.5px;font-weight:700;vertical-align:1px}
#panel-home .cd-open-btn{gap:6px}
#panel-home .cd-open-btn i{font-size:10px}

/* ----- 5b. deadlines ----- */
#panel-home .cd-dl-list{max-height:520px;overflow-y:auto;margin:0 -8px;padding:0 8px}
#panel-home .cd-dl-group + .cd-dl-group{margin-top:12px}
#panel-home .cd-dl-gh{display:flex;justify-content:space-between;padding:2px 0 6px;font-size:10.5px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray-500)}
#panel-home .cd-dl-group.is-over .cd-dl-gh{color:#E70000}
#panel-home .cd-dl-row{display:flex;align-items:center;gap:11px;padding:8px;margin:0 -8px;border-radius:10px;cursor:pointer;outline:none;transition:background .12s}
#panel-home .cd-dl-row:hover,#panel-home .cd-dl-row:focus-visible{background:var(--gray-50)}
#panel-home .cd-dl-row.is-over{background:rgba(231,0,0,0.035)}
#panel-home .cd-dl-ico{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px}
#panel-home .cd-k-bid{background:rgba(231,0,0,0.09);color:#E70000}
#panel-home .cd-k-pkg{background:rgba(38,38,43,0.08);color:#26262B}
#panel-home .cd-k-rfi{background:rgba(217,119,6,0.12);color:#B45309}
#panel-home .cd-k-rfi.is-over,#panel-home .cd-k-act.is-over{background:rgba(231,0,0,0.10);color:#E70000}
#panel-home .cd-k-mtg{background:rgba(37,99,235,0.10);color:#2563EB}
#panel-home .cd-k-start{background:rgba(5,150,105,0.10);color:#059669}
#panel-home .cd-k-act{background:var(--gray-100);color:var(--gray-500)}
#panel-home .cd-dl-main{flex:1;min-width:0}
#panel-home .cd-dl-title{display:flex;align-items:center;gap:6px;min-width:0;font-size:12.5px;font-weight:600;color:var(--gray-900)}
#panel-home .cd-dl-ttxt{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-dl-sub{font-size:11px;color:var(--gray-500);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-dl-right{flex-shrink:0;font-size:11px;font-weight:600;color:var(--gray-500)}
#panel-home .cd-dl-late{color:#E70000;font-weight:700}
#panel-home .cd-you{flex-shrink:0;padding:1px 6px;border-radius:6px;background:rgba(231,0,0,0.08);color:#C40000;font-size:9px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase}
#panel-home .cd-more{align-self:flex-start;margin-top:10px;padding:5px 11px;border:1px solid var(--gray-100);border-radius:14px;background:var(--gray-50);color:var(--gray-600);font:500 12px var(--font);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
#panel-home .cd-more:hover{background:var(--gray-100);color:var(--gray-900)}
#panel-home .cd-more i{font-size:9px}

/* ----- 6a. workforce planner ----- */
#panel-home .cd-wf-legend{justify-content:flex-end;max-width:420px}
#panel-home .cd-callout{margin-bottom:14px;border:1px solid rgba(231,0,0,0.22);border-radius:12px;background:linear-gradient(135deg,rgba(231,0,0,0.06),rgba(231,0,0,0.015));overflow:hidden}
#panel-home .cd-callout-head{width:100%;display:flex;align-items:center;gap:10px;padding:10px 14px;border:none;background:none;text-align:left;cursor:pointer;font:500 12.5px var(--font);color:var(--gray-800)}
#panel-home .cd-callout-head > i:first-child{color:#E70000}
#panel-home .cd-callout-head b{color:#C40000}
#panel-home .cd-callout-chev{margin-left:auto;font-size:10px;color:var(--gray-400);transition:transform .15s}
#panel-home .cd-callout.is-open .cd-callout-chev{transform:rotate(180deg)}
#panel-home .cd-callout-list{padding:4px 14px 10px;border-top:1px solid rgba(231,0,0,0.12)}
#panel-home .cd-callout-row{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:12.5px}
#panel-home .cd-callout-name{flex:1;min-width:0;padding:0;border:none;background:none;text-align:left;font:600 12.5px var(--font);color:var(--gray-900);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-callout-name:hover{color:#E70000}
#panel-home .cd-wf-list{display:flex;flex-direction:column;max-height:560px;overflow-y:auto}
#panel-home .cd-wf-row{display:grid;grid-template-columns:minmax(170px,1.3fr) 150px minmax(160px,2.4fr) 110px;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid var(--gray-100)}
#panel-home .cd-wf-row:last-child{border-bottom:none}
#panel-home .cd-wf-hdr{position:sticky;top:0;z-index:1;background:#fff;padding:0 0 8px;font-size:10px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray-400)}
#panel-home .cd-wf-who{display:flex;align-items:center;gap:10px;min-width:0}
#panel-home .cd-wf-id{min-width:0}
#panel-home .cd-av{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;font:700 11.5px var(--font);letter-spacing:0.02em}
#panel-home .cd-wf-name{font-size:13px;font-weight:600;color:var(--gray-900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-wf-role{font-size:11px;color:var(--gray-500)}
#panel-home .cd-wf-counts{display:flex;gap:4px;flex-wrap:wrap}
#panel-home .cd-wf-chip{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:8px;background:var(--gray-100);color:var(--gray-600);font-size:10.5px;font-weight:600;white-space:nowrap}
#panel-home .cd-wf-chip b{color:var(--gray-900)}
#panel-home .cd-wf-chip.is-lead{background:rgba(231,0,0,0.07);color:#C40000}
#panel-home .cd-wf-chip.is-lead b{color:#C40000}
#panel-home .cd-wf-bar{display:flex;gap:3px;height:16px;min-width:0;align-items:stretch}
#panel-home .cd-wf-seg{min-width:6px;border-radius:4px;background:var(--c);cursor:pointer;transition:filter .12s,transform .12s}
/* Assist = hatched outline of the same stage color (texture, not just tint). */
#panel-home .cd-wf-seg.is-assist{background:repeating-linear-gradient(135deg,var(--c) 0 2.5px,transparent 2.5px 5px);box-shadow:inset 0 0 0 1.5px var(--c);opacity:0.9}
#panel-home .cd-wf-seg:hover{filter:brightness(1.12);transform:translateY(-1px)}
#panel-home .cd-wf-free{display:flex;align-items:center;padding:0 9px;border-radius:4px;border:1px dashed var(--gray-300);font-size:10.5px;color:var(--gray-400);font-weight:500}
#panel-home .cd-wf-next{display:flex;flex-direction:column;align-items:flex-start;font-size:12px;color:var(--gray-800)}

/* ----- 6b. recent activity (timeline rail like .dash-schedule-rail) ----- */
#panel-home .cd-act-list{max-height:560px;overflow-y:auto;padding:2px 4px 0 2px}
#panel-home .cd-act-item{position:relative;padding:0 0 14px 24px;cursor:pointer;outline:none}
#panel-home .cd-act-item::before{content:'';position:absolute;left:5px;top:15px;bottom:-4px;width:2px;background:var(--gray-200);border-radius:1px}
#panel-home .cd-act-item:first-child::before{background:linear-gradient(180deg,rgba(231,0,0,0.45),var(--gray-200))}
#panel-home .cd-act-item:last-child{padding-bottom:2px}
#panel-home .cd-act-item:last-child::before{display:none}
#panel-home .cd-act-dot{position:absolute;left:0;top:3px;width:12px;height:12px;border-radius:50%;background:#fff;border:2.5px solid var(--c);box-sizing:border-box}
#panel-home .cd-act-item:first-child .cd-act-dot{background:var(--c);box-shadow:0 0 0 4px rgba(15,17,23,0.06)}
#panel-home .cd-act-title{font-size:12.5px;font-weight:600;color:var(--gray-900);line-height:1.35;transition:color .12s}
#panel-home .cd-act-item:hover .cd-act-title,#panel-home .cd-act-item:focus-visible .cd-act-title{color:#E70000}
#panel-home .cd-act-meta{font-size:11px;color:var(--gray-500);margin-top:2px}
#panel-home .cd-act-meta .cd-mono{color:var(--gray-400)}

/* ----- onboarding (only the welcome stub exists) ----- */
#panel-home .cd-onboard{flex-direction:row;align-items:stretch;gap:32px;padding:0}
#panel-home .cd-onboard-art{flex:0 0 38%;max-width:460px;display:flex;align-items:center;justify-content:center;padding:28px;border-radius:20px 0 0 20px;
  background-color:#17171B;
  background-image:linear-gradient(rgba(255,255,255,0.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.05) 1px,transparent 1px);
  background-size:24px 24px}
#panel-home .cd-onboard-art svg{width:100%;max-width:340px;height:auto}
#panel-home .cd-onboard-body{flex:1;min-width:0;padding:34px 34px 34px 4px}
#panel-home .cd-onboard-body .cd-eyebrow{color:#E70000}
#panel-home .cd-onboard-title{font-size:24px;font-weight:700;letter-spacing:-0.02em;color:var(--gray-900);margin-top:10px;line-height:1.2}
#panel-home .cd-onboard-text{font-size:13.5px;color:var(--gray-600);line-height:1.65;margin-top:10px;max-width:560px}
#panel-home .cd-onboard-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 24px}
#panel-home .cd-onboard-steps li{display:flex;gap:10px;padding:12px 14px;border:1px solid var(--gray-100);border-radius:12px;background:#FCFCFC}
#panel-home .cd-onboard-steps b{display:block;font-size:12.5px;color:var(--gray-900)}
#panel-home .cd-onboard-steps span:not(.cd-step-n){display:block;font-size:11.5px;color:var(--gray-500);margin-top:2px;line-height:1.45}
#panel-home .cd-step-n{font-size:11px;font-weight:700;color:#E70000;padding-top:1px}

/* ----- responsive ----- */
@media (min-width:769px) and (max-width:1360px){
  #panel-home .cd-kpis .dash-kpi-value{font-size:32px}
  #panel-home .cd-chev-count{font-size:28px}
}
@media (min-width:769px) and (max-width:1100px){
  #panel-home .cd-kpis > div{grid-column:span 6 !important}
}
/* Below ~1180px the 8/4 splits get too cramped for the table + chevrons:
   every row goes full width, and Market Mix puts its legend beside the ring. */
@media (max-width:1180px){
  #panel-home .cd-split > div{grid-column:1 / -1 !important}
  #panel-home .cd-jump{width:270px}
}
@media (min-width:769px) and (max-width:1180px){
  #panel-home .cd-mkt-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:center}
  #panel-home .cd-mkt-chart{margin:0}
}
@media (max-width:980px){
  #panel-home .cd-hero{flex-direction:column;align-items:stretch;gap:16px}
  #panel-home .cd-hero-right{width:100%}
  #panel-home .cd-jump{flex:1;width:auto;min-width:0}
  #panel-home .cd-jump-list{left:0;right:auto;width:100%;max-width:none}
}
/* Workforce rows stack (who + next bid / counts / bar) once the 4-column
   grid can't fit its minimums. */
@media (max-width:1000px){
  #panel-home .cd-wf-hdr{display:none}
  #panel-home .cd-wf-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who next" "counts counts" "bar bar";gap:8px 12px}
  #panel-home .cd-wf-who{grid-area:who}
  #panel-home .cd-wf-next{grid-area:next;align-items:flex-end}
  #panel-home .cd-wf-counts{grid-area:counts}
  #panel-home .cd-wf-bar{grid-area:bar}
}
@media (max-width:768px){
  #panel-home{margin:-10px -10px !important;padding:16px 12px 26px !important;min-height:0 !important}
  #panel-home .cd-root{gap:12px}
  #panel-home .cd-hero{gap:14px;padding:18px 18px 21px;border-radius:16px;min-height:0}
  #panel-home .cd-hero-title{font-size:21px}
  #panel-home .cd-hero-meta{font-size:12px}
  #panel-home .cd-hero-dims{display:none}
  /* styles.css forces 16px/8px 10px on mobile inputs; keep room for the icon. */
  #panel-home .cd-jump-input{height:42px;padding:0 12px 0 36px !important;font-size:16px !important}
  #panel-home .cd-hero-btn{height:42px;padding:0 14px}
  #panel-home .cd-chevs{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-radius:0;overflow:visible}
  #panel-home .cd-chev,#panel-home .cd-chev:first-child{clip-path:none;padding:12px 14px;border-radius:12px;overflow:hidden}
  #panel-home .cd-chev + .cd-chev{margin-left:0}
  #panel-home .cd-chev-count{font-size:26px}
  #panel-home .cd-proj-head{flex-direction:column;align-items:stretch}
  #panel-home .cd-proj-tools{width:100%}
  #panel-home .cd-search{flex:1 1 160px}
  #panel-home .cd-search input{width:100%;padding:0 12px 0 31px !important;font-size:16px !important}
  #panel-home .cd-tbl-wrap{margin:0 -18px -18px}
  #panel-home .cd-tbl th:first-child,#panel-home .cd-tbl td:first-child{padding-left:18px}
  #panel-home .cd-tbl th:last-child,#panel-home .cd-tbl td:last-child{padding-right:18px}
  #panel-home .cd-la{--cd-la-name:128px}
  #panel-home .cd-wf-legend{justify-content:flex-start}
  /* styles.css pads every .dash-widget 18px !important on mobile */
  #panel-home .cd-onboard{flex-direction:column;gap:0;padding:0 !important}
  #panel-home .cd-onboard-art{flex:none;max-width:none;border-radius:16px 16px 0 0;padding:20px}
  #panel-home .cd-onboard-body{padding:20px 18px 22px}
  #panel-home .cd-onboard-steps{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  #panel-home .cd-skel,#panel-home .cd-fade,#panel-home .cd-jump-list,#panel-home .cd-sync-dot{animation:none}
}

/* ----- pipeline stats strip (portfolio averages under the phase mix) ----- */
#panel-home .cd-pstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:auto;padding-top:18px;border-top:1px solid var(--gray-100)}
#panel-home .cd-ph{margin-bottom:22px}
#panel-home .cd-pstat{padding:2px 16px;border-left:1px solid var(--gray-100);min-width:0}
#panel-home .cd-pstat:first-child{padding-left:0;border-left:none}
#panel-home .cd-pstat-l{font-size:10.5px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray-500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#panel-home .cd-pstat-v{font-size:22px;font-weight:700;color:var(--gray-900);margin-top:6px;line-height:1.1;white-space:nowrap}
#panel-home .cd-pstat-s{font-size:11px;color:var(--gray-400);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ----- Deadlines | Activity tabbed card ----- */
#panel-home .cd-tabs{display:flex;gap:4px;margin:-6px -6px 18px;padding:0 6px;border-bottom:1px solid var(--gray-100)}
#panel-home .cd-tab{display:inline-flex;align-items:center;gap:7px;padding:8px 10px 11px;margin-bottom:-1px;border:none;border-bottom:2px solid transparent;background:none;color:var(--gray-500);font:600 13px var(--font);cursor:pointer;white-space:nowrap;transition:color .12s,border-color .12s}
#panel-home .cd-tab i{font-size:12px}
#panel-home .cd-tab:hover{color:var(--gray-900)}
#panel-home .cd-tab.is-on{color:var(--gray-900);border-bottom-color:#E70000}
#panel-home .cd-tab.is-on i{color:#E70000}
#panel-home .cd-tab-n{font:700 10.5px var(--mono);padding:2px 7px;border-radius:10px;background:var(--gray-100);color:var(--gray-600)}
#panel-home .cd-tab-n.is-hot{background:rgba(231,0,0,0.08);color:#C40000}
@media (max-width:768px){
  #panel-home .cd-pstats{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0}
  #panel-home .cd-pstat:nth-child(3){padding-left:0;border-left:none}
  #panel-home .cd-pstat-v{font-size:19px}
}
/* Inside the tabbed card the tab already names the list — keep only the
   sub-line + filter pills from the section head. */
#panel-home #cd-side .dash-widget-title-text{display:none}
#panel-home #cd-side .dash-widget-title .cd-card-sub{margin-top:0}
/* Phones: the four KPI tiles sit 2×2 instead of four full-width slabs. */
@media (max-width:768px){
  #panel-home .cd-kpis{grid-template-columns:1fr 1fr !important;gap:10px !important}
  #panel-home .cd-kpis > div{grid-column:auto !important}
  #panel-home .cd-kpis .dash-kpi{padding:14px !important;min-height:0 !important}
  #panel-home .cd-kpis .dash-kpi-label{font-size:9.5px;letter-spacing:0.08em}
  #panel-home .cd-kpis .dash-kpi-value{font-size:24px !important;margin-top:8px}
  #panel-home .cd-kpis .dash-kpi-divider{margin:10px 0 8px}
  #panel-home .cd-kpis .dash-kpi-sub{font-size:11px;line-height:1.35}
}
