/* Customers (Cert IQ design handoff, 2026-11-06): clickable tiles, filter chips, three-column
   rows, side panel, state map. Loaded after console-shell-handoff.css. Tokens: README. */
html.certificate-workbench.tax-team-design .cust-tiles { margin-bottom: 20px; }
html.certificate-workbench.tax-team-design .cust-tiles .tiles { margin-bottom: 0; }
html.certificate-workbench.tax-team-design .cust-tile { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 20px 22px; border-left-width: 6px; text-align: left; font-family: var(--ff); cursor: pointer; transition: background 120ms cubic-bezier(0.2,0.8,0.2,1); }
html.certificate-workbench.tax-team-design .cust-tile .tile-k { color: #444; font: 400 13px/1.5 var(--ff); }
html.certificate-workbench.tax-team-design .cust-tile .tile-v { margin: 14px 0 10px; font: 400 38px/1 var(--ff); color: #222; }
html.certificate-workbench.tax-team-design .cust-tile .tile-note { color: #444; font: 400 12px/1.4 var(--ff); }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="needs"] { background: #FFF8F0; border-left-color: #DA720F; }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="needs"] .tile-v { color: #B85E05; }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="upload"] { background: #EEF7F8; border-left-color: #007681; }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="upload"] .tile-v { color: #007681; }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="missing"] { background: #fff; border-left-color: #222; }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="covered"] { background: #F7F7EC; border-left-color: #949300; }
html.certificate-workbench.tax-team-design .cust-tile[data-kind="covered"] .tile-v { color: #5E5D00; }
html.certificate-workbench.tax-team-design .cust-tile:hover { filter: brightness(.98); }
html.certificate-workbench.tax-team-design .cust-tile[aria-pressed="true"] { box-shadow: 4px 4px 0 #222; }

/* View toggle: black, top right of the page header. */
.cust-view-toggle { display: inline-flex; border: 1px solid #222; border-radius: 4px; overflow: hidden; }
.cust-view-toggle button { padding: 9px 14px; border: 0; background: #fff; color: #222; font: 500 14px/1.4 var(--ff); cursor: pointer; transition: background 120ms cubic-bezier(0.2,0.8,0.2,1); }
.cust-view-toggle button[aria-pressed="true"] { background: #222; color: #fff; }
.cust-view-toggle button:focus-visible { outline: 2px solid #DA720F; outline-offset: -2px; }
html.certificate-workbench #v-customers .ux-customer-actions { align-items: center; }

/* Directory: toolbar and rows share one panel. */
html.certificate-workbench.tax-team-design #v-customers > .ux-customer-toolbar { border: 2px solid #222; border-bottom: 1px solid #dadada; border-radius: 12px 12px 0 0; background: #fff; }
html.certificate-workbench.tax-team-design #v-customers #customers-list > .card:has(.ux-customer-table) { border: 2px solid #222; border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 4px 4px 0 #E5E8E7; }
.cust-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.cust-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #BBBBBB; border-radius: 4px; background: #fff; color: #222; font: 500 12px/1.4 var(--ff); white-space: nowrap; cursor: pointer; transition: background 120ms cubic-bezier(0.2,0.8,0.2,1); }
.cust-chip:hover { background: #F2F2F2; }
.cust-chip[aria-pressed="true"] { background: #222; border-color: #222; color: #fff; }
.cust-chip .cust-chip-n { opacity: .75; }
.cust-chip:focus-visible { outline: 2px solid #DA720F; outline-offset: 2px; }
html.certificate-workbench #v-customers .ux-customer-toolbar[hidden] { display: none; }

html.certificate-workbench.tax-team-design .ux-customer-table thead th { padding: 10px 22px; background: #F9F9F9; color: #666; font: 700 11px/1.4 var(--ff); letter-spacing: .08em; text-transform: uppercase; }
html.certificate-workbench.tax-team-design .ux-customer-table td { padding: 14px 22px; border-bottom: 1px solid #EEEEEE; vertical-align: middle; }
.ux-customer-table tbody tr { cursor: pointer; transition: background 120ms cubic-bezier(0.2,0.8,0.2,1); }
.ux-customer-table tbody tr:hover { background: #FCFAF7; box-shadow: none; }
.ux-customer-table tbody tr:focus-visible { outline: 2px solid #DA720F; outline-offset: -2px; }
.ux-customer-table tbody tr.is-selected { background: #FFF8F0; box-shadow: inset 4px 0 0 #DA720F; }
.ux-customer-table th.customer-name-cell, .ux-customer-table td.customer-name-cell { width: 42%; }
.ux-customer-table .cust-cov-cell { width: 26%; min-width: 150px; }
.ux-customer-table .cust-chevron { width: 36px; padding-left: 0; color: #DA720F; font-size: 18px; text-align: right; }
.ux-customer-table .ux-customer-link { font-size: 15px; font-weight: 500; }
.ux-customer-table .customer-sub { margin-top: 3px; font-size: 12px; color: #666; overflow-wrap: anywhere; }
.ux-customer-table .customer-code-cell { display: inline; min-width: 0; padding: 0; }
.cust-segs { display: flex; gap: 3px; max-width: 170px; }
.cust-seg { flex: 1; min-width: 8px; height: 6px; border-radius: 2px; }
.cust-seg.on { background: #949300; }
.cust-seg.review { background: #007681; }
.cust-seg.miss { background: #F0C89A; }
.cust-seg.none { background: #EEEEEE; }
.cust-cov-text { margin-top: 6px; font-size: 12px; color: #444; }
.cust-latest-text { font-size: 12px; line-height: 1.5; color: #444; }
.cust-latest-text[data-tone="warn"] { color: #B85E05; }
.cust-latest-text[data-tone="ok"] { color: #5E5D00; }
.cust-latest-text[data-tone="stop"] { color: #D14124; }
@media (max-width: 760px) {
  html.certificate-workbench .ux-customer-table, html.certificate-workbench .ux-customer-table tbody { display: block; }
  html.certificate-workbench .ux-customer-table thead { display: none; }
  html.certificate-workbench .ux-customer-table tr:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 16px 14px; border-bottom: 1px solid #EEEEEE; }
  html.certificate-workbench.tax-team-design .ux-customer-table td { display: block; padding: 0; border: 0; width: auto; min-width: 0; }
  html.certificate-workbench.tax-team-design .ux-customer-table td.customer-name-cell { width: auto; }
  html.certificate-workbench .ux-customer-table td.cust-cov-cell, html.certificate-workbench .ux-customer-table td.cust-latest-cell { grid-column: 1 / -1; }
  html.certificate-workbench .ux-customer-table td.cust-chevron { grid-column: 2; grid-row: 1; }
  .cust-chips { margin-left: 0; }
}

/* Side panel: opens below the fixed top bar; the list keeps its place beside it on wide screens. */
.cust-panel { position: fixed; top: var(--workspace-bar-height, 70px); right: 0; bottom: 0; z-index: 60; width: min(440px, 92vw); overflow-y: auto; background: #fff; border-left: 2px solid #222; box-shadow: -4px 0 0 #E5E8E7; }
.cust-panel[hidden], .cust-panel-scrim[hidden] { display: none; }
.cust-panel-scrim { position: fixed; inset: var(--workspace-bar-height, 70px) 0 0 0; z-index: 55; background: rgba(34, 34, 34, .4); }
@media (min-width: 1380px) {
  .cust-panel-scrim { display: none; }
  #v-customers.has-panel { margin-right: 464px; }
}
.cust-panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; }
.cust-panel-title h2 { margin: 0; font: 400 24px/1.2 CertIQPlayfair, Georgia, serif; letter-spacing: -.02em; }
.cust-panel-sub { margin-top: 6px; font-size: 12px; color: #666; }
.cust-panel-close { align-self: flex-start; background: none; border: 0; font-size: 22px; line-height: 1; color: #666; cursor: pointer; }
.cust-link { background: none; border: 0; padding: 0; color: #B85E05; font: 500 inherit/1.4 var(--ff); font-size: inherit; cursor: pointer; text-decoration: none; }
.cust-link:hover { text-decoration: underline; }
.cust-panel-sub .cust-link { font-size: 12px; }
.cust-panel :is(button, summary):focus-visible { outline: 2px solid #DA720F; outline-offset: 2px; }
.cust-missing-bar { margin: 0 22px 14px; padding: 10px 14px; border: 1px solid #E5B4B4; border-radius: 4px; background: #FDF1EE; color: #9C2F19; font-size: 13px; line-height: 1.5; }
.cust-missing-bar .cust-link { color: #9C2F19; text-decoration: underline; }
.cust-panel-why { display: flex; flex-direction: column; gap: 12px; padding: 0 22px 18px; border-bottom: 2px solid #222; }
.cust-panel-why p { margin: 0; font-size: 14px; line-height: 1.5; color: #222; }
.cust-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-panel-sec { padding: 14px 22px; border-bottom: 1px solid #EEEEEE; }
.cust-panel-sech { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cust-eyebrow { font: 700 11px/1.4 var(--ff); letter-spacing: .08em; text-transform: uppercase; color: #666; }
.cust-panel-count { font-size: 12px; color: #444; }
.cust-state-line { display: flex; align-items: center; gap: 12px; width: calc(100% + 44px); margin: 0 -22px; padding: 10px 22px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.cust-state-line:hover { background: #FCFAF7; }
.cust-state-line b { flex: 0 0 26px; font-size: 13px; }
.cust-state-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cust-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; }
.cust-dot.on { background: #949300; } .cust-dot.review { background: #007681; } .cust-dot.miss { background: #DA720F; }
.cust-pill { padding: 3px 7px; border: 1px solid; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cust-pill.on { background: #F3F4E0; color: #5E5D00; border-color: #D3D39A; }
.cust-pill.review { background: #E8F4F5; color: #005B64; border-color: #B5D5D7; }
.cust-pill.miss { background: #FFF3E6; color: #8A4A05; border-color: #F0C89A; }
.cust-chev { color: #DA720F; font-size: 16px; }
.cust-fact { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; line-height: 1.45; }
.cust-fact > span:first-child { flex: 0 0 52px; color: #666; }
.cust-fact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cust-fact .is-missing { color: #9C2F19; font-weight: 500; }

/* Map. */
html.certificate-workbench.tax-team-design #v-customers #customers-list > .cust-map-card { border: 2px solid #222; border-radius: 12px; box-shadow: 4px 4px 0 #E5E8E7; overflow: hidden; }
.cust-map-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 22px; border-bottom: 2px solid #222; }
.cust-map-head h2 { margin: 0; font: 500 18px/1.3 var(--ff); }
.cust-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: #444; }
.cust-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cust-legend i { display: inline-block; width: 12px; height: 12px; }
.cust-map { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 22px; }
.cust-map-svg { flex: 3 1 460px; min-width: 0; }
.cust-map svg { display: block; width: 100%; height: auto; }
.cust-map path.st { stroke: #fff; stroke-width: 1; cursor: pointer; }
.cust-map path.st:hover { opacity: .85; }
.cust-map path.bk1, .cust-legend i.bk1 { fill: #F2F2F2; background: #F2F2F2; }
.cust-legend i.bk1 { border: 1px solid #DADADA; }
.cust-map path.bk2, .cust-legend i.bk2 { fill: #FBE3CB; background: #FBE3CB; }
.cust-map path.bk3, .cust-legend i.bk3 { fill: #F4B77A; background: #F4B77A; }
.cust-map path.bk4, .cust-legend i.bk4 { fill: #DA720F; background: #DA720F; }
.cust-map .st-n { font: 600 13px var(--ff); fill: #222; pointer-events: none; }
.cust-map .st-n.on-dark { fill: #fff; }
.cust-gaps { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cust-gaps-h { margin-bottom: 6px; font: 700 11px/1.4 var(--ff); letter-spacing: .08em; text-transform: uppercase; color: #666; }
.cust-gap-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px; background: none; font: inherit; cursor: pointer; }
.cust-gap-row:hover { background: #FFF8F0; }
.cust-gap-row:focus-visible { outline: 2px solid #DA720F; outline-offset: 2px; }
.cust-gap-code { flex: 0 0 28px; font: 600 12px var(--ff); text-align: left; }
.cust-gap-bar { flex: 1 1 auto; height: 6px; background: #F2F2F2; border-radius: 2px; overflow: hidden; }
.cust-gap-bar > span { display: block; height: 100%; background: #DA720F; }
.cust-gap-n { flex: 0 0 24px; text-align: right; font-size: 13px; font-weight: 500; }
.cust-map-note { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid #EEEEEE; font-size: 12px; color: #666; line-height: 1.6; }

/* Request progress inside the panel (the five-step model). */
.cust-panel .cprog summary { cursor: pointer; display: flex; align-items: center; gap: 10px; }

/* Import: three real steps. */
.import-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.import-required { margin: 12px 0 0; padding: 10px 14px; border: 1px solid #E5B4B4; border-radius: 4px; background: #FDF1EE; color: #9C2F19; font-size: 13px; }
.import-cant-email { margin-top: 12px; }
.import-nav .btn[disabled] { background: #BBBBBB; border-color: #BBBBBB; color: #fff; cursor: not-allowed; }

/* Phone layout (hunt A1-A3): the four summary tiles go two across, the search takes its own row,
   and the note for roles that cannot add customers is padded inside its card. */
@media (max-width: 560px) {
  html.certificate-workbench.tax-team-design .cust-tiles .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html.certificate-workbench.tax-team-design .cust-tile { padding: 14px 14px; }
  html.certificate-workbench.tax-team-design .cust-tile .tile-v { margin: 8px 0 6px; font-size: 30px; }
  html.certificate-workbench.tax-team-design .cust-tile .tile-k { overflow-wrap: anywhere; }
  html.certificate-workbench #v-customers .ux-customer-toolbar .inp { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
}
html.certificate-workbench #v-customers #customers-list > .card > .hint { margin: 0; padding: 14px 20px; font-size: 14px; line-height: 1.5; }
/* The note sits in the directory panel, so it reads as a strip of the panel, not a second card
   laid over its border. */
html.certificate-workbench #v-customers .card:has(> .hint:only-child) { margin: 0; border: 0; border-bottom: 1px solid #dadada; border-radius: 0; box-shadow: none; background: #F9F9F9; }

/* At 390px the three header controls shrank the List/Map toggle until "Map" was clipped. The toggle
   keeps its size and the row wraps instead. */
.cust-view-toggle { flex: 0 0 auto; }
.cust-view-toggle button { white-space: nowrap; }
html.certificate-workbench #v-customers .ux-customer-actions { flex-wrap: wrap; }
