/* Full-width lead workspace. The operations module still owns every action. */
#v1-lead-drawer.gc-lead-workspace{
  width:100vw!important;max-width:none!important;border-left:0!important;
  background:var(--canvas,#f3f7fb);color:var(--ink,#172b40);
  box-shadow:-24px 0 80px rgba(4,18,33,.32);
}
#v1-lead-drawer.gc-lead-workspace #v1-lead-drawer-content{display:flex;flex-direction:column;min-height:0;height:100%}
#v1-lead-drawer.gc-lead-workspace [hidden]{display:none!important}
#v1-lead-drawer.gc-lead-workspace .v1-drawer-head{
  flex:0 0 auto;padding:22px clamp(20px,3vw,46px);background:var(--white,#fff);
  border-bottom:1px solid var(--line,#dce4ec);box-shadow:0 6px 24px rgba(8,35,60,.05);
}
#v1-lead-drawer.gc-lead-workspace .v1-drawer-head h2{font-size:clamp(1.6rem,2.3vw,2.25rem);letter-spacing:-.035em;line-height:1.15;margin:4px 0 9px}
#v1-lead-drawer.gc-lead-workspace .v1-drawer-head .icon-button{width:44px;height:44px;flex:none;border-radius:12px;font-size:1.4rem}
#v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-body{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,350px);
  gap:20px;align-items:start;padding:24px clamp(20px,3vw,46px) 40px;
  min-height:0;overflow:auto!important;max-height:none;
}
#v1-lead-drawer .gc-lead-workspace-main,#v1-lead-drawer .gc-lead-workspace-rail{display:grid;gap:18px;min-width:0;align-content:start}
#v1-lead-drawer.gc-lead-workspace .v1-drawer-section{
  min-width:0;margin:0;padding:22px;border:1px solid var(--line,#dce5ee);
  border-radius:18px;background:var(--white,#fff);box-shadow:0 10px 30px rgba(17,42,69,.045);
}
#v1-lead-drawer.gc-lead-workspace .v1-drawer-section h3{font-size:1.06rem;letter-spacing:-.015em;margin:0 0 14px}
#v1-lead-drawer.gc-lead-workspace .v1-drawer-section p{font-size:.87rem;line-height:1.55}
#v1-lead-drawer.gc-lead-workspace .gc-lead-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#v1-lead-drawer.gc-lead-workspace .gc-lead-summary h3{grid-column:1/-1}
#v1-lead-drawer.gc-lead-workspace .gc-lead-summary p{
  min-width:0;margin:0;padding:14px 15px;border:1px solid var(--line,#e1e8ef);
  border-radius:11px;background:var(--v1-soft,#f7faff);overflow-wrap:anywhere;
}
#v1-lead-drawer.gc-lead-workspace .gc-lead-summary p strong{display:inline-block;margin-bottom:4px;color:var(--muted,#607389);font-size:.69rem;text-transform:uppercase;letter-spacing:.09em}
#v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-rail .v1-drawer-section{padding:20px}
#v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-rail .v1-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-rail :is(input,select,textarea){max-width:100%;box-sizing:border-box}
#v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-rail button[data-v1-convert-lead]{min-height:48px;width:100%;border-radius:11px}
#v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-rail .v1-event{overflow-wrap:anywhere}

#gc-lead-parts .gc-lead-parts-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:18px}
#gc-lead-parts .gc-lead-parts-head>div{min-width:0}
#gc-lead-parts .gc-lead-parts-eyebrow{margin:0 0 6px!important;color:#2279c2!important;font-size:.66rem!important;line-height:1!important;font-weight:800;letter-spacing:.13em}
#gc-lead-parts .gc-lead-parts-head h3{font-size:1.22rem!important;margin:0 0 5px!important}
#gc-lead-parts .gc-lead-parts-intro{margin:0!important;color:var(--muted,#607389);max-width:70ch}
#gc-lead-parts .gc-lead-parts-head button{flex:none;min-height:38px}
#gc-lead-parts .gc-lead-parts-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
#gc-lead-parts .gc-lead-parts-summary>div{min-width:0;padding:15px 17px;border:1px solid var(--line,#dae6f0);border-radius:12px;background:var(--v1-soft,#f5f9fd)}
#gc-lead-parts .gc-lead-parts-summary :is(small,strong,span){display:block}
#gc-lead-parts .gc-lead-parts-summary small{color:var(--muted,#6a7f94);font-size:.67rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
#gc-lead-parts .gc-lead-parts-summary strong{margin:5px 0 1px;font-size:1.4rem;line-height:1.1;letter-spacing:-.035em}
#gc-lead-parts .gc-lead-parts-summary span{font-size:.74rem;color:var(--muted,#6a7f94)}
#gc-lead-parts .gc-lead-parts-empty{padding:28px 18px;margin:0 0 20px;text-align:center;border:1px dashed var(--line,#cbd7e2);border-radius:12px;background:var(--v1-soft,#f8fafc);color:var(--muted,#607389)}
#gc-lead-parts .gc-lead-parts-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line,#dce5ee);border-radius:13px;margin-bottom:22px}
#gc-lead-parts .gc-lead-parts-table{width:100%;min-width:930px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:.78rem}
#gc-lead-parts .gc-lead-parts-table th{text-align:left;white-space:nowrap;padding:12px 13px;background:var(--v1-soft,#f6f9fc);border-bottom:1px solid var(--line,#dce5ee);color:var(--muted,#5f7386);font-size:.65rem;letter-spacing:.075em;text-transform:uppercase}
#gc-lead-parts .gc-lead-parts-table td{vertical-align:top;padding:15px 13px;border-bottom:1px solid var(--line,#e5ebf0);line-height:1.42}
#gc-lead-parts .gc-lead-parts-table :is(th,td):nth-child(1){width:25%}
#gc-lead-parts .gc-lead-parts-table :is(th,td):nth-child(2){width:10%;text-align:right}
#gc-lead-parts .gc-lead-parts-table :is(th,td):nth-child(3){width:13%;text-align:right}
#gc-lead-parts .gc-lead-parts-table :is(th,td):nth-child(4){width:16%;text-align:right}
#gc-lead-parts .gc-lead-parts-table :is(th,td):nth-child(5){width:21%}
#gc-lead-parts .gc-lead-parts-table :is(th,td):nth-child(6){width:15%}
#gc-lead-parts .gc-lead-parts-table tr:last-child td{border-bottom:0}
#gc-lead-parts .gc-lead-parts-table td strong,#gc-lead-parts .gc-lead-parts-table td small{display:block}
#gc-lead-parts .gc-lead-parts-table td strong{font-weight:760}
#gc-lead-parts .gc-lead-parts-table td small{margin-top:4px;color:var(--muted,#687d91);font-size:.71rem;overflow-wrap:anywhere}
#gc-lead-parts .gc-lead-parts-identity{min-width:180px;max-width:250px;overflow-wrap:anywhere}
#gc-lead-parts .gc-lead-part-status{display:inline-block;width:max-content;max-width:210px;white-space:normal;line-height:1.35}
#gc-lead-parts .gc-lead-part-status.staged{background:#3a2d57;color:#d9c1ff}
#gc-lead-parts .gc-lead-parts-actions{min-width:125px}
#gc-lead-parts .gc-lead-parts-actions button{display:block;width:100%;min-height:32px;padding:5px 9px;margin:0 0 6px;white-space:normal;text-align:center;font-size:.71rem;line-height:1.2}
#gc-lead-parts .gc-lead-part-form{border-top:1px solid var(--line,#e1e8ef);padding-top:20px;grid-template-columns:minmax(0,1fr) 280px;column-gap:14px;align-items:end}
#gc-lead-parts .gc-lead-part-form>div:first-child{grid-column:1/-1}
#gc-lead-parts .gc-lead-part-form h4{margin:0 0 4px;font-size:.95rem}
#gc-lead-parts .gc-lead-part-form>div:first-child p{margin:0 0 8px;color:var(--muted,#63778b)}
#gc-lead-parts .gc-lead-part-form>label{grid-column:1}
#gc-lead-parts .gc-lead-part-form input{min-width:0;box-sizing:border-box;padding:9px 11px;border:1px solid var(--line,#cfdbe6);border-radius:9px;background:var(--white,#fff);color:var(--ink,#172b40);font:inherit}
#gc-lead-parts .gc-lead-part-results{grid-column:1/-1;max-height:176px}
#gc-lead-parts .gc-lead-part-selected{grid-column:1/-1}
#gc-lead-parts .gc-lead-part-form-actions{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px;grid-column:2;grid-row:2;align-items:end}
#gc-lead-parts .gc-lead-part-form-actions label{width:100%}
#gc-lead-parts .gc-lead-part-form-actions button{width:100%}
#gc-lead-parts .gc-lead-parts-feedback{margin:13px 0 0;min-height:1.2em}
#gc-lead-parts :is(button,input):focus-visible,#v1-lead-drawer.gc-lead-workspace :is(button,input,select,textarea):focus-visible{outline:2px solid #52aaff;outline-offset:2px}

html[data-theme="dark"] #v1-lead-drawer.gc-lead-workspace{background:#09121d!important}
html[data-theme="dark"] #v1-lead-drawer.gc-lead-workspace .gc-lead-summary p,
html[data-theme="dark"] #gc-lead-parts :is(.gc-lead-parts-summary>div,.gc-lead-parts-empty){background:#132235!important;border-color:#2b3c4f!important;color:#dce7f2}
html[data-theme="dark"] #gc-lead-parts .gc-lead-parts-table-wrap{border-color:#2b3c4f}
html[data-theme="dark"] #gc-lead-parts .gc-lead-parts-table td{border-color:#26384b}
html[data-theme="dark"] #gc-lead-parts .gc-lead-parts-table th{background:#132235!important}
html[data-theme="dark"] #gc-lead-parts .gc-lead-part-status.staged{background:#3a2d57;color:#e3d1ff}
html[data-theme="dark"] #gc-lead-parts .gc-lead-part-form input{background:#0d1a29;border-color:#32485e;color:#eaf3fc}
html[data-theme="dark"] #v1-lead-drawer.gc-lead-workspace .v1-required-note{background:#302819;border-color:#695433;color:#f3d99d}

@media(max-width:1050px){
  #v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-body{grid-template-columns:minmax(0,1fr)}
  #v1-lead-drawer .gc-lead-workspace-rail{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  #v1-lead-drawer .gc-lead-workspace-rail .v1-record-close{grid-column:1/-1}
}
@media(max-width:700px){
  #v1-lead-drawer.gc-lead-workspace .gc-lead-workspace-body{padding:16px 14px 30px;gap:14px}
  #v1-lead-drawer.gc-lead-workspace .v1-drawer-head{padding:14px}
  #v1-lead-drawer.gc-lead-workspace .v1-drawer-section{padding:17px}
  #v1-lead-drawer.gc-lead-workspace .gc-lead-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #v1-lead-drawer .gc-lead-workspace-rail{grid-template-columns:minmax(0,1fr)}
  #gc-lead-parts .gc-lead-parts-head{flex-wrap:wrap}
  #gc-lead-parts .gc-lead-parts-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #gc-lead-parts .gc-lead-parts-summary>div:last-child{grid-column:1/-1}
  #gc-lead-parts .gc-lead-part-form{grid-template-columns:minmax(0,1fr)}
  #gc-lead-parts .gc-lead-part-form-actions{grid-column:1;grid-row:auto;display:grid;grid-template-columns:90px minmax(0,1fr);width:100%;align-items:end}
}
@media(max-width:420px){#v1-lead-drawer.gc-lead-workspace .gc-lead-summary{grid-template-columns:minmax(0,1fr)}}

/* The staff estimate table sits below the procurement plan. */
#gc-lead-estimate .gc-lead-estimate-head{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}
#gc-lead-estimate .gc-lead-estimate-head>div{min-width:0}
#gc-lead-estimate .gc-lead-estimate-head-actions{display:flex;align-items:center;gap:8px;flex:none}
#gc-lead-estimate .gc-lead-estimate-head-actions button{min-height:34px;padding:6px 10px;font-size:.73rem}
#gc-lead-estimate .gc-lead-estimate-eyebrow{margin:0 0 6px!important;color:#2279c2!important;font-size:.66rem!important;line-height:1!important;font-weight:800;letter-spacing:.13em}
#gc-lead-estimate .gc-lead-estimate-head h3{font-size:1.22rem!important;margin:0 0 5px!important}
#gc-lead-estimate .gc-lead-estimate-head p:last-child{margin:0;color:var(--muted,#607389);max-width:70ch}
#gc-lead-estimate .gc-lead-estimate-count{flex:none;padding:7px 11px;border-radius:99px;background:var(--v1-soft,#eef4fa);color:var(--muted,#607389);font-size:.72rem;font-weight:800}
#gc-lead-estimate .gc-lead-estimate-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#gc-lead-estimate .gc-lead-estimate-totals>div{min-width:0;padding:15px 17px;border:1px solid var(--line,#dae6f0);border-radius:12px;background:var(--v1-soft,#f5f9fd)}
#gc-lead-estimate .gc-lead-estimate-totals small,#gc-lead-estimate .gc-lead-estimate-totals strong{display:block}
#gc-lead-estimate .gc-lead-estimate-totals small{color:var(--muted,#6a7f94);font-size:.65rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
#gc-lead-estimate .gc-lead-estimate-totals strong{margin-top:6px;font-size:1.25rem;line-height:1.1;letter-spacing:-.03em}
#gc-lead-estimate .gc-lead-estimate-total{background:#edf6ff!important;border-color:#a8d3fb!important}
#gc-lead-estimate .gc-lead-estimate-tax-note{margin:9px 0 18px!important;color:var(--muted,#607389)}
#gc-lead-estimate .gc-lead-estimate-empty{margin:0 0 18px;padding:25px 18px;text-align:center;border:1px dashed var(--line,#cbd7e2);border-radius:12px;background:var(--v1-soft,#f8fafc);color:var(--muted,#607389)}
#gc-lead-estimate .gc-lead-estimate-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line,#dce5ee);border-radius:13px;margin-bottom:22px}
#gc-lead-estimate .gc-lead-estimate-table{width:100%;min-width:990px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:.78rem}
#gc-lead-estimate .gc-lead-estimate-table th{text-align:left;white-space:nowrap;padding:12px 13px;background:var(--v1-soft,#f6f9fc);border-bottom:1px solid var(--line,#dce5ee);color:var(--muted,#5f7386);font-size:.65rem;letter-spacing:.075em;text-transform:uppercase}
#gc-lead-estimate .gc-lead-estimate-table td{vertical-align:top;padding:15px 13px;border-bottom:1px solid var(--line,#e5ebf0);line-height:1.42}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(1){width:24%}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(2){width:7%;text-align:right}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(3){width:13%;text-align:right}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(4){width:15%;text-align:right}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(5){width:13%;text-align:right}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(6){width:13%;text-align:right}
#gc-lead-estimate .gc-lead-estimate-table :is(th,td):nth-child(7){width:15%}
#gc-lead-estimate .gc-lead-estimate-table tr:last-child td{border-bottom:0}
#gc-lead-estimate .gc-lead-estimate-table td strong,#gc-lead-estimate .gc-lead-estimate-table td small{display:block}
#gc-lead-estimate .gc-lead-estimate-table td small{margin-top:4px;color:var(--muted,#687d91);font-size:.71rem;overflow-wrap:anywhere}
#gc-lead-estimate .gc-lead-estimate-identity{min-width:190px;max-width:260px;overflow-wrap:anywhere}
#gc-lead-estimate .gc-lead-estimate-type{display:inline-block;padding:3px 6px;margin-bottom:6px;border-radius:5px;background:#dcefff;color:#1763a8;font-size:.61rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
#gc-lead-estimate .gc-lead-estimate-actions{min-width:76px}
#gc-lead-estimate .gc-lead-estimate-actions button{display:block;width:100%;min-height:30px;padding:5px 8px;margin:0 0 6px;text-align:center;font-size:.7rem}
#gc-lead-estimate .gc-lead-estimate-form{display:grid;gap:13px;border-top:1px solid var(--line,#e1e8ef);padding-top:20px}
#gc-lead-estimate .gc-lead-estimate-form h4{margin:0;font-size:.97rem}
#gc-lead-estimate .gc-lead-estimate-form label{display:grid;gap:5px;min-width:0;font-size:.78rem;font-weight:750}
#gc-lead-estimate .gc-lead-estimate-form :is(input,select){width:100%;min-width:0;min-height:42px;box-sizing:border-box;padding:9px 11px;border:1px solid var(--line,#cfdbe6);border-radius:9px;background:var(--white,#fff);color:var(--ink,#172b40);font:inherit}
#gc-lead-estimate .gc-lead-estimate-form :is(input,select):disabled{opacity:.65;cursor:not-allowed}
#gc-lead-estimate .gc-lead-estimate-search{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px}
#gc-lead-estimate .gc-lead-estimate-results{display:grid;gap:5px;max-height:200px;overflow:auto}
#gc-lead-estimate .gc-lead-estimate-results button{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 11px;text-align:left;border:1px solid var(--line,#d7e2ec);border-radius:9px;background:var(--white,#fff);color:inherit}
#gc-lead-estimate .gc-lead-estimate-results button:hover,#gc-lead-estimate .gc-lead-estimate-results button:focus-visible{border-color:#4b9bea;background:rgba(28,108,194,.1)}
#gc-lead-estimate .gc-lead-estimate-results button:disabled{opacity:.58;cursor:not-allowed}
#gc-lead-estimate .gc-lead-estimate-results button span{min-width:0}
#gc-lead-estimate .gc-lead-estimate-results button :is(strong,small){display:block}
#gc-lead-estimate .gc-lead-estimate-results button small{margin-top:3px;color:var(--muted,#6a7f94)}
#gc-lead-estimate .gc-lead-estimate-selected{padding:10px 12px;margin:0!important;border:1px solid #5da8ae;border-radius:9px;background:rgba(20,124,141,.11)}
#gc-lead-estimate .gc-lead-estimate-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#gc-lead-estimate .gc-lead-estimate-fields small{font-size:.67rem;font-weight:400;color:var(--muted,#6a7f94)}
#gc-lead-estimate .gc-lead-estimate-permission{margin:0!important;color:var(--muted,#6a7f94)}
#gc-lead-estimate .gc-lead-estimate-form-actions{display:flex;gap:9px;flex-wrap:wrap}
#gc-lead-estimate .gc-lead-estimate-form-actions button{min-height:41px}
#gc-lead-estimate .gc-lead-estimate-feedback{margin:12px 0 0;min-height:1.2em}
#gc-lead-estimate .gc-lead-estimate-feedback.error{color:#bb3d3d}
#gc-lead-estimate :is(button,input,select):focus-visible{outline:2px solid #52aaff;outline-offset:2px}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-totals>div,
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-empty{background:#132235!important;border-color:#2b3c4f!important;color:#dce7f2}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-total{background:#133250!important;border-color:#2772b4!important}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-table-wrap{border-color:#2b3c4f}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-table td{border-color:#26384b}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-table th{background:#132235!important}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-type{background:#153d60;color:#a8d9ff}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-form :is(input,select),
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-results button{background:#0d1a29;color:#eaf3fc;border-color:#32485e}
html[data-theme="dark"] #gc-lead-estimate .gc-lead-estimate-feedback.error{color:#ff9d9d}
@media(max-width:1050px){#gc-lead-estimate .gc-lead-estimate-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  #gc-lead-estimate .gc-lead-estimate-head{flex-wrap:wrap}
  #gc-lead-estimate .gc-lead-estimate-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  #gc-lead-estimate .gc-lead-estimate-search{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px){#gc-lead-estimate .gc-lead-estimate-fields{grid-template-columns:minmax(0,1fr)}}
