/* Shared customer visual design: selected Option C mockup.
   The live session, state selection and certificate validation remain authoritative. */
@font-face { font-family: CertIQCustomerRoboto; src: url('design-demos/tax-team/assets/armanino-roboto-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: CertIQCustomerPlayfair; src: url('design-demos/tax-team/assets/armanino-playfair-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
html[data-customer-design="upload-first"] {
  --ff: CertIQCustomerRoboto, Arial, sans-serif;
  --ff-display: CertIQCustomerPlayfair, Georgia, serif;
  --canvas: #f7f8f8; --paper: #fff; --ink: #242424; --slate: #687173;
  --measure: 1400px;
}
html[data-customer-design="upload-first"] .portal { background: #f7f8f8; font-family: var(--ff); }
html[data-customer-design="upload-first"] .portal .work { background: #f7f8f8; padding: 24px 28px; }
html[data-customer-design="upload-first"] .portal :is(.ptitle,.landing-title) { font: 600 37px/1.2 CertIQCustomerPlayfair, Georgia, serif; letter-spacing: -.025em; }
html[data-customer-design="upload-first"] .portal .pnote { font: 400 14px/1.6 var(--ff); color: #687173; }
html[data-customer-design="upload-first"] .portal :is(.card,.res-hero) { border: 2px solid #242424; border-radius: 16px; box-shadow: 4px 4px 0 #e5e8e7; background: #fff; }
html[data-customer-design="upload-first"] .portal .card-h { padding: 18px 22px; border-bottom: 2px solid #242424; background: #fff; }
html[data-customer-design="upload-first"] .portal .card-h h2 { font: 600 18px/1.4 var(--ff); }
html[data-customer-design="upload-first"] .portal .btn { min-height: 40px; border-radius: 6px; font: 500 13px/1.4 var(--ff); padding: 10px 16px; box-shadow: none; }
html[data-customer-design="upload-first"] .portal .btn.pri { background: #242424; color: #fff; border-color: #242424; }
html[data-customer-design="upload-first"] .portal .btn.pri:hover:not(:disabled) { background: #404040; border-color: #404040; }
html[data-customer-design="upload-first"] .portal :is(.inp,.sel,.fld input,.fld select,.fld textarea) { border-radius: 6px; }
html[data-customer-design="upload-first"] .portal .drop { border: 2px dashed #8da7ad; border-radius: 16px; background: #fff; }
html[data-customer-design="upload-first"] .portal .portal-footer { background: #fff; border-top: 1px solid #dadada; }
html[data-customer-design="upload-first"] .portal :is(button,a,input,select,textarea):focus-visible { outline: 3px solid #007681; outline-offset: 3px; }
@media (min-width: 1000px) {
  html[data-customer-design="upload-first"] .portal.concept-process .app { display: grid; grid-template-columns: 232px minmax(0,1fr); height: auto; min-height: 100dvh; overflow: visible; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail { position: sticky; top: 0; width: 232px; height: 100dvh; background: #fff; border-right: 1px solid #dadada; border-bottom: 0; box-shadow: none; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail-head { display: block; height: auto; padding: 28px 16px 20px; border-bottom: 0; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail-app { border: 0; padding: 0; font: 600 15px/1.5 var(--ff); }
  html[data-customer-design="upload-first"] .portal.concept-process .portal-client-label { display: block; margin: 6px 0 0; font-size: 12px; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail-head .acct { margin: 16px 0 0; padding: 12px; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail-nav { padding: 16px; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail-cap { display: block; margin: 0 0 14px; color: #687173; font-size: 10px; letter-spacing: .08em; }
  html[data-customer-design="upload-first"] .portal.concept-process .steps { display: grid; gap: 8px; padding: 0; overflow: visible; }
  html[data-customer-design="upload-first"] .portal.concept-process .step { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; min-height: 46px; padding: 13px; border: 1px solid #dadada; border-radius: 6px; background: #fff; }
  html[data-customer-design="upload-first"] .portal.concept-process .step-label { white-space: normal; font-size: 13px; }
  html[data-customer-design="upload-first"] .portal.concept-process .step[aria-current="step"] { background: #242424; border-color: #242424; border-left: 4px solid #da720f; padding-left: 10px; }
  html[data-customer-design="upload-first"] .portal.concept-process .step[aria-current="step"] :is(.step-label,.step-mark) { color: #fff; }
  html[data-customer-design="upload-first"] .portal.concept-process .main { min-width: 0; width: 100%; }
  html[data-customer-design="upload-first"] .portal.concept-process .top { padding: 16px 28px; background: #fff; border-bottom: 1px solid #dadada; }
  html[data-customer-design="upload-first"] .portal.concept-process #v-states .landing-head { max-width: none; }
  html[data-customer-design="upload-first"] .portal.concept-process .landing-account { margin-top: 0; }
}
@media (max-width: 700px) {
  html[data-customer-design="upload-first"] .portal .work { padding: 20px 16px; }
  html[data-customer-design="upload-first"] .portal :is(.ptitle,.landing-title) { font-size: 29px; }
}

@media (max-width: 700px) {
  html[data-customer-design="upload-first"] .portal.concept-process .rail-head { display: flex; justify-content: space-between; min-height: 64px; height: auto; padding: 12px 16px; }
  html[data-customer-design="upload-first"] .portal.concept-process .rail-app { display: block; padding: 0; border: 0; font-size: 13px; }
  html[data-customer-design="upload-first"] .portal.concept-process .portal-client-label { display: block; margin: 4px 0 0; font-size: 11px; }
  html[data-customer-design="upload-first"] .portal.concept-process .step { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; padding: 9px 4px; }
  html[data-customer-design="upload-first"] .portal.concept-process .step-label { display: block; white-space: normal; font-size: 11px; }
}
/* Batch receipts share the portal's content width, including long PDF filenames. */
#customer-batch-upload { margin-bottom: 24px; }
#customer-batch-upload [data-batch-progress] { display:block; width:100%; height:14px; margin-block:16px; accent-color:#007681; }
#customer-batch-upload [data-batch-progress][hidden] { display:none; }
#customer-batch-upload input[type="file"] { max-width: 100%; }
#customer-batch-upload [data-batch-results] li { overflow-wrap: anywhere; margin-bottom: 8px; }
/* The receipts as a review: the uploads listed on the left, the one selected on the right. */
.batch-review { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px; }
.batch-review [data-batch-results] { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); max-height: 70vh; overflow: auto; }
#customer-batch-upload .batch-review [data-batch-results] li { margin: 0; border-top: 1px solid var(--line); }
#customer-batch-upload .batch-review [data-batch-results] li:first-child { border-top: 0; }
.batch-review [data-batch-state-controls] { margin: 0; padding: 0 12px 12px; }
.batch-item { display: grid; gap: 6px; width: 100%; padding: 10px 12px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.batch-item:hover { background: var(--canvas); }
.batch-item[aria-current="true"] { border-left-color: var(--navy-500, var(--tenant-primary)); background: var(--tenant-primary-light, #F4F4F5); }
.batch-item:focus-visible { outline: 2px solid var(--tenant-primary); outline-offset: -2px; }
.batch-item-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.batch-item-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--slate); font-size: 12.5px; }
.batch-item .badge { height: auto; min-height: 22px; white-space: normal; }
.batch-detail { min-width: 0; }
.batch-detail-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 12px; }
.batch-detail-t { flex: 1 1 240px; min-width: 0; }
.batch-detail-title { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.batch-detail-meta { margin: 4px 0 0; color: var(--slate); font-size: 13px; }
.batch-detail-meta:empty { display: none; }
.batch-detail-nav { display: flex; align-items: center; gap: 8px; }
.batch-detail-position { min-width: 56px; color: var(--slate); font-size: 13px; text-align: center; }
.batch-detail-summary { display: grid; gap: 10px; margin-bottom: 16px; }
.batch-detail-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.batch-detail-status .badge { height: auto; min-height: 22px; white-space: normal; }
.batch-detail-sentence { flex: 1 1 240px; margin: 0; line-height: 1.5; }
.batch-detail-reasons-h { margin: 4px 0 0; font-size: 14px; }
.batch-detail-reasons { margin: 0; padding-left: 20px; line-height: 1.5; }
.batch-detail-reasons li { margin-bottom: 6px; overflow-wrap: anywhere; }
.batch-detail .certificate-reading { margin: 0; }
.certificate-reading-required { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; color: var(--stop); font-size: 11px; font-weight: 600; }
.certificate-reading-field.required { border-color: var(--stop-line, #EEB4AE); }
@media (max-width: 760px) {
  .batch-review { grid-template-columns: minmax(0, 1fr); }
  .batch-review [data-batch-results] { max-height: 320px; }
  .batch-detail-nav { width: 100%; justify-content: space-between; }
}
[data-batch-state-controls] { display: grid; gap: 10px; max-width: 620px; margin: 12px 0; }
[data-batch-state-controls] label { display: flex; align-items: center; gap: 8px; }
[data-batch-state-controls] select { max-width: 300px; padding: 8px; font: inherit; border: 1px solid #b8bec0; border-radius: 6px; }
[data-batch-state-controls] button { justify-self: start; }
/* Approved November 1 design: a clear upload entry point, with state selection secondary.
   Inventory counts are deliberately absent: this token-scoped session does not supply them. */
html[data-customer-design="upload-first"] .portal.concept-process { --canvas:#f6f7f6; --line:#d5d9d2; --ink:#222; --slate:#666; }
html[data-customer-design="upload-first"] .portal.concept-process .work { padding:30px 36px; }
html[data-customer-design="upload-first"] .portal.concept-process .wrap { min-width:0; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-product-logo { display:block; width:178px; max-width:100%; height:auto; margin:0 0 22px; }
html[data-customer-design="upload-first"] .portal.concept-process .rail-app { font-size:13px; line-height:1.5; }
html[data-customer-design="upload-first"] .portal.concept-process .rail-head { padding:26px 20px 16px; }
html[data-customer-design="upload-first"] .portal.concept-process .portal-client-label { font-size:12px; color:#666; margin:5px 0 0; }
html[data-customer-design="upload-first"] .portal.concept-process :is(.card,.res-hero) { border:1px solid #cdd2c9; border-radius:12px; box-shadow:none; }
html[data-customer-design="upload-first"] .portal.concept-process .card-h { border-bottom:1px solid #e3e5df; padding:20px 23px; }
html[data-customer-design="upload-first"] .portal.concept-process .card-b { padding:22px 24px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-head { max-width:none!important; margin-bottom:24px!important; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-eyebrow { display:block; color:#666; font-size:11px; font-weight:600; letter-spacing:.1em; margin-bottom:9px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-head .ptitle { font-size:37px; line-height:1.2; margin:0 0 10px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-head .pnote { font-size:15px; line-height:1.6; max-width:none; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); margin:0 0 24px; border:1px solid #d5d9d2; border-radius:10px; background:white; box-shadow:none; min-width:0; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-head { grid-column:1/-1; padding:12px 18px; border-bottom:1px solid #e3e5df; display:flex; gap:12px; align-items:center; font-size:12px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-head>span:first-child { font-weight:600; }
html[data-customer-design="upload-first"] .portal.concept-process .account-mismatch { margin-left:auto; color:#555; font-size:12px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-group { padding:16px 18px; margin:0; gap:5px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-label { font-size:11px; color:#666; }
html[data-customer-design="upload-first"] .portal.concept-process #landing-customer { font-size:16px; }
html[data-customer-design="upload-first"] .portal.concept-process #landing-sold-to { font-size:12px; color:#666; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-facts { padding:16px 18px; margin:0; border:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-facts dt { font-size:11px; color:#666; margin-bottom:4px; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-account-facts dd { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload { border:1px dashed #789a9c; margin-bottom:24px; }
html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload .card-h { padding-bottom:0; border-bottom:0; }
html[data-customer-design="upload-first"] .portal.concept-process #batch-upload-title { font-size:23px; }
html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload .card-b { padding-top:12px; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-upload-instruction { color:#555; font-size:15px; line-height:1.6; margin-bottom:18px; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-file-choice { display:inline-flex; flex-direction:column; align-items:start; gap:10px; font-size:14px; font-weight:500; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-file-choice input { font:400 13px/1.5 var(--ff); max-width:100%; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-file-choice input::file-selector-button { padding:11px 16px; margin-right:12px; border:1px solid #bfc7bc; border-radius:6px; background:#f8faf6; color:#222; font:500 13px/1.5 var(--ff); cursor:pointer; }
html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload .hint { color:#666; font-size:12px; line-height:1.6; margin:12px 0 18px; }
html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload label:has([data-batch-attest]) { display:flex; align-items:start; gap:9px; font-size:14px; line-height:1.6; }
html[data-customer-design="upload-first"] .portal.concept-process [data-batch-attest] { flex-shrink:0; margin-top:4px; }
html[data-customer-design="upload-first"] .portal.concept-process .btn { font-size:14px; min-height:42px; }
html[data-customer-design="upload-first"] .portal.concept-process [data-batch-status] { color:#555; font-size:14px; line-height:1.6; margin-top:15px; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-state-alternative { border:1px solid #d5d9d2; border-radius:10px; background:white; overflow:hidden; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-state-alternative>summary { padding:18px 22px; font-weight:500; font-size:14px; cursor:pointer; color:#333; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-state-alternative>summary:focus-visible { outline:3px solid #007681; outline-offset:-4px; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-state-intro { margin:0; padding:0 22px 16px; font-size:14px; color:#666; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-workbench { grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr); grid-template-rows:auto; padding:0 20px 20px; gap:24px; }
html[data-customer-design="upload-first"] .portal.concept-process .state-map-panel { grid-column:1; grid-row:1; }
html[data-customer-design="upload-first"] .portal.concept-process .landing-side { grid-column:2; grid-row:1; }
html[data-customer-design="upload-first"] .portal.concept-process #mapholder { height:420px; min-height:0; }
html[data-customer-design="upload-first"] .portal.concept-process .selection-summary { border:1px solid #d5d9d2; box-shadow:none; }
html[data-customer-design="upload-first"] .portal.concept-process .badge { font-size:12px; height:auto; min-height:24px; white-space:normal; }
html[data-customer-design="upload-first"] .portal.concept-process .batch-item-line { font-size:13px; }
html[data-customer-design="upload-first"] .portal.concept-process .batch-detail-meta { font-size:13px; }
html[data-customer-design="upload-first"] .portal.concept-process .batch-detail-sentence { font-size:14px; }
html[data-customer-design="upload-first"] .portal.concept-process .batch-review { grid-template-columns:minmax(220px,290px) minmax(0,1fr); }
html[data-customer-design="upload-first"] .portal.concept-process .batch-review[hidden] { display:none; }
html[data-customer-design="upload-first"] .portal.concept-process .batch-detail :is(dl,table) { position:relative; }
@media(max-width:1000px){
 html[data-customer-design="upload-first"] .portal.concept-process .landing-workbench { grid-template-columns:minmax(0,1fr); }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-side { grid-column:1; grid-row:2; }
 html[data-customer-design="upload-first"] .portal.concept-process .customer-product-logo { width:140px; margin-bottom:10px; }
}
@media(max-width:760px){
 html[data-customer-design="upload-first"] .portal.concept-process .work { padding:24px 18px; }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-head .ptitle { font-size:30px; }
 html[data-customer-design="upload-first"] .portal.concept-process .rail-head { display:block; padding:18px; }
 html[data-customer-design="upload-first"] .portal.concept-process .rail-app br { display:block; }
 html[data-customer-design="upload-first"] .portal.concept-process .portal-client-label { display:block; margin-left:0; }
 html[data-customer-design="upload-first"] .portal.concept-process .customer-product-logo { width:140px; margin:0 0 10px; }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-account { grid-template-columns:minmax(0,1fr); }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-account-facts { grid-template-columns:minmax(0,1fr); gap:13px; padding-top:0; }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-account-head { flex-wrap:wrap; }
 html[data-customer-design="upload-first"] .portal.concept-process .account-mismatch { margin-left:0; }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-account-group { padding-bottom:13px; }
 html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload .card-b { padding:15px 18px 20px; }
 html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload .card-h { padding:20px 18px 0; }
 html[data-customer-design="upload-first"] .portal.concept-process .batch-review { grid-template-columns:minmax(0,1fr); }
 html[data-customer-design="upload-first"] .portal.concept-process #mapholder { height:300px; }
 html[data-customer-design="upload-first"] .portal.concept-process .landing-workbench { padding:0 14px 16px; }
}
html[data-customer-design="upload-first"] .portal.concept-process .customer-batch-totals[hidden] { display:none; }
.customer-batch-totals-title { font-size:12px; color:#666; margin:20px 0 10px; }
.customer-batch-total-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.customer-batch-total { border:1px solid #d5d9d2; border-left:3px solid var(--batch-color); background:var(--batch-bg); padding:15px 18px; border-radius:8px; }
.customer-batch-total.attention { --batch-color:#96500d; --batch-bg:#fff8f0; }.customer-batch-total.review { --batch-color:#007681; --batch-bg:#f0f7f7; }.customer-batch-total.accepted { --batch-color:#6b6b00; --batch-bg:#f7f8ed; }
.customer-batch-total>span { font-size:13px; color:#555; }.customer-batch-total>strong { display:block; margin-top:4px; font-size:30px; line-height:1.3; color:var(--batch-color); font-weight:500; }
.certificate-reading-focus-label { font-size:13px; font-weight:500; margin:18px 0 10px; }
.certificate-reading-additional { margin-top:18px; border-top:1px solid #d5d9d2; padding-top:14px; }.certificate-reading-additional>summary { font-size:14px; cursor:pointer; font-weight:500; }.certificate-reading-additional .certificate-reading-fields { margin-top:14px; }
@media(max-width:600px){.customer-batch-total-tiles{gap:8px}.customer-batch-total{padding:11px 9px}.customer-batch-total>span{font-size:11px;line-height:1.4;display:block;min-height:31px}.customer-batch-total>strong{font-size:27px}}

html[data-customer-design="upload-first"] .portal.concept-process .customer-account-details { min-width:0; border-left:1px solid #e3e5df; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-account-details>summary { padding:17px 18px; font-size:13px; color:#555; cursor:pointer; }
html[data-customer-design="upload-first"] .portal.concept-process .customer-account-details[open]>summary { padding-bottom:0; }
html[data-customer-design="upload-first"] .portal.concept-process #customer-batch-upload .acts { position:static; margin:0; padding:17px 0 0; background:none; border:0; box-shadow:none; }
html[data-customer-design="upload-first"] .portal.concept-process .step[aria-current="step"] { opacity:1; background:#262724; }
html[data-customer-design="upload-first"] .portal.concept-process .step[aria-current="step"] :is(.step-label,.step-mark) { color:#fff; }
@media(max-width:760px){
 html[data-customer-design="upload-first"] .portal.concept-process .rail-head .acct { display:none; }
 html[data-customer-design="upload-first"] .portal.concept-process .customer-account-details { border-left:0; border-top:1px solid #e3e5df; }
 html[data-customer-design="upload-first"] .portal.concept-process .customer-account-details>summary { padding:13px 18px; }
 html[data-customer-design="upload-first"] .portal.concept-process .customer-account-details .landing-account-facts { padding-top:13px; }
}

/* A multistate certificate: one line per covered state, and the state choices as a checkbox group. */
.batch-item-states { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: 12.5px; }
.batch-item-statepart { display: inline-flex; align-items: center; gap: 4px; }
.batch-detail-states { margin: 8px 0 0; padding-left: 20px; line-height: 1.5; }
.batch-state-choices { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.batch-state-choices legend { padding: 0; margin-bottom: 4px; }
.batch-state-choices label { display: inline-flex; align-items: center; gap: 4px; }
