/* Import workflow refinements */
.import-step-icon svg, .import-dropzone-icon svg, .import-empty-row svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.import-dropzone-icon { display: grid; place-items: center; }
.import-dropzone-icon svg { width: 2.5rem; height: 2.5rem; }
.import-source-cell { display: flex; min-width: 13rem; align-items: center; gap: .7rem; }
.import-source-cell > div { min-width: 0; }
.import-source-cell strong, .import-source-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-source-icon { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; place-items: center; border-radius: .65rem; color: #08794a; background: #e8f5ed; }
.import-source-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.import-row-actions { display: flex; justify-content: flex-end; gap: .4rem; }
.import-icon-action { display: inline-grid; width: 2.35rem; height: 2.35rem; padding: 0; place-items: center; color: #087443; border: 1px solid #d5e1da; border-radius: .58rem; background: #fff; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.import-icon-action:hover { color: #055f37; border-color: #7bb394; background: #f2faf5; }
.import-icon-action svg { width: 1.12rem; height: 1.12rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.import-icon-action.import-delete-trigger { color: #b42626; }
.import-icon-action.import-delete-trigger:hover { border-color: #e6a5a5; background: #fff4f4; }
.import-icon-action.is-disabled { color: #9aa7a0; cursor: not-allowed; background: #f4f6f5; opacity: .72; }
.import-delete-dialog { width: min(31rem, calc(100vw - 2rem)); padding: 0; color: #172337; border: 0; border-radius: 1rem; box-shadow: 0 24px 80px rgb(13 40 27 / 28%); }
.import-delete-dialog::backdrop { background: rgb(7 27 18 / 52%); backdrop-filter: blur(2px); }
.import-delete-dialog form { display: grid; justify-items: center; gap: .8rem; padding: 1.6rem; text-align: center; }
.import-dialog-icon { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; color: #b32626; border-radius: 50%; background: #fdeaea; }
.import-dialog-icon svg { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.import-delete-dialog h2 { margin: 0; font-size: 1.2rem; }
.import-delete-dialog p { margin: 0; color: #637186; line-height: 1.55; }
.import-dialog-actions { display: flex; width: 100%; justify-content: flex-end; gap: .6rem; margin-top: .35rem; }
.button-danger { color: #fff; border-color: #b32626; background: #b32626; }
.button-danger:hover { color: #fff; border-color: #8d1d1d; background: #8d1d1d; }

.batch-review-page { display: grid; gap: 1.05rem; max-width: 100%; padding-bottom: 2.5rem; color: #172337; }
.batch-review-header { display: grid; gap: .65rem; }
.batch-back-link { width: fit-content; color: #087443; font-size: .78rem; font-weight: 750; text-decoration: none; }
.batch-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.batch-title-row h1 { max-width: 68rem; margin: 0; color: #111d30; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.12; overflow-wrap: anywhere; }
.batch-title-row p { margin: .35rem 0 0; color: #6b798c; font-size: .76rem; }
.batch-status-badge, .batch-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 750; white-space: nowrap; }
.batch-status-badge { flex: 0 0 auto; padding: .42rem .7rem; font-size: .7rem; }
.batch-status-badge.is-error, .batch-pill.is-error { color: #bd2929; background: #fde8e8; }
.batch-status-badge.is-ready, .batch-pill.is-ready { color: #087443; background: #e5f4ea; }
.batch-pill.is-warning { color: #9b6503; background: #fff0d2; }
.batch-pill.is-done { color: #1f5f9f; background: #e7f0fb; }
.batch-pill { padding: .28rem .52rem; font-size: .65rem; }
.batch-summary-card, .batch-workflow, .batch-panel { border: 1px solid #dfe7e2; border-radius: 1rem; background: #fff; box-shadow: 0 8px 26px rgb(14 54 34 / 5%); }
.batch-summary-card { display: grid; overflow: hidden; align-items: center; grid-template-columns: minmax(15rem, 1.45fr) repeat(5, minmax(6.2rem, .8fr)); }
.batch-source-summary { display: flex; min-width: 0; align-items: center; gap: .75rem; padding: 1rem; }
.batch-source-icon, .batch-panel-icon { display: grid; flex: 0 0 auto; place-items: center; color: #08794a; background: #e9f5ed; }
.batch-source-icon { width: 3rem; height: 3rem; border-radius: .75rem; }
.batch-source-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.batch-source-summary > div { display: grid; min-width: 0; gap: .08rem; }
.batch-source-summary small, .batch-metric dt { color: #65748a; font-size: .64rem; font-weight: 700; }
.batch-source-summary strong { overflow: hidden; color: #172337; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.batch-source-summary span { overflow: hidden; color: #758397; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.batch-metric { display: block; min-width: 0; margin: 0; padding: .9rem 1rem; border-left: 1px solid #e3e9e5; }
.batch-metric dt, .batch-metric dd { margin: 0; }
.batch-metric dd { margin-top: .28rem; overflow: hidden; color: #172337; font-size: 1rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.batch-metric.is-error dd { color: #d12b2b; }
.batch-summary-footer { display: flex; min-height: 3.45rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid #e3e9e5; color: #68778a; font-size: .7rem; grid-column: 1 / -1; }
.batch-summary-footer svg, .batch-review-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-quiet { color: #087443; background: #fff; }
.batch-workflow { display: grid; padding: .65rem .85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.batch-workflow-step { position: relative; display: flex; min-width: 0; align-items: center; gap: .65rem; padding: .5rem .75rem; color: #667589; text-decoration: none; }
.batch-workflow-step:not(:last-child)::after { position: absolute; top: 50%; right: -1rem; width: 2rem; border-top: 1px solid #ccd8d1; content: ""; }
.batch-workflow-step > span { display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; place-items: center; border-radius: 50%; color: #657389; background: #eef2f0; font-size: .72rem; font-weight: 800; }
.batch-workflow-step div { display: grid; min-width: 0; gap: .12rem; }
.batch-workflow-step strong { overflow: hidden; color: #344256; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.batch-workflow-step small { overflow: hidden; color: #7b8899; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.batch-workflow-step.is-current > span, .batch-workflow-step.is-complete > span { color: #fff; background: #087a46; }
.batch-workflow-step.is-current strong, .batch-workflow-step.is-complete strong { color: #172337; }
.batch-workflow-step.is-disabled { cursor: not-allowed; opacity: .62; }
.batch-stage-layout { display: grid; align-items: start; gap: 1rem; grid-template-columns: minmax(0, 2.15fr) minmax(18rem, .85fr); }
.batch-stage-layout.batch-stage-mapping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-panel { min-width: 0; padding: 1rem; }
.batch-panel-heading { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.batch-panel-icon { width: 2.35rem; height: 2.35rem; border-radius: .65rem; font-size: 1rem; font-weight: 800; }
.batch-panel-heading h2, .batch-insights h2 { margin: 0; color: #172337; font-size: 1rem; }
.batch-panel-heading p { margin: .24rem 0 0; color: #68778b; font-size: .7rem; line-height: 1.45; }
.batch-callout { display: grid; gap: .18rem; margin: .8rem 0; padding: .8rem; border: 1px solid; border-radius: .7rem; font-size: .7rem; }
.batch-callout strong { font-size: .75rem; }
.batch-callout span { color: #5e6e81; line-height: 1.45; }
.batch-callout.is-success { color: #087443; border-color: #b7ddc6; background: #eff9f2; }
.batch-callout.is-warning { color: #8d5c00; border-color: #f1d49a; background: #fff8e9; }
.batch-callout.is-error { color: #a52222; border-color: #efb7b7; background: #fff3f3; }
.batch-help { color: #69788b; font-size: .68rem; line-height: 1.45; }
.batch-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .85rem; }
.batch-panel-actions form { margin: 0; }
.batch-panel-actions.is-end { justify-content: flex-end; }
.batch-table-wrap { width: 100%; overflow: auto; margin-top: .8rem; border: 1px solid #e1e8e4; border-radius: .65rem; }
.batch-mapping-preview { max-height: 27rem; }
.batch-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; color: #667488; font-size: .78rem; }
.batch-preview-footer .button { min-height: 2.2rem; padding: .45rem .7rem; }
.batch-table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: .69rem; }
.batch-table th { padding: .65rem .7rem; color: #526276; background: #f8faf9; font-size: .6rem; font-weight: 800; text-align: left; text-transform: uppercase; white-space: nowrap; }
.batch-table td { padding: .68rem .7rem; color: #4f5f73; border-top: 1px solid #e7ece9; vertical-align: middle; }
.batch-table td strong { color: #172337; }
.batch-table td small { display: block; margin-top: .2rem; color: #788597; font-size: .6rem; }
.batch-description-cell { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-row-errors { color: #bc2a2a !important; }
.batch-empty { padding: 1.25rem !important; color: #758397 !important; text-align: center; }
.batch-table input, .batch-table select, .batch-inline-form input, .batch-create-form input { min-height: 2.25rem; }
.batch-stat-grid { display: grid; gap: .65rem; margin: 1rem 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.batch-stat-grid > div { display: grid; padding: .75rem; border: 1px solid #dfe7e2; border-radius: .65rem; text-align: center; }
.batch-stat-grid strong { color: #172337; font-size: 1rem; }
.batch-stat-grid span { margin-top: .12rem; color: #68778b; font-size: .62rem; }
.batch-subheading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #e2e8e4; }
.batch-subheading h3, .batch-table-toolbar h3, .batch-insights h3 { margin: 0; color: #172337; font-size: .78rem; }
.batch-subheading span, .batch-table-toolbar span { color: #758397; font-size: .62rem; }
.batch-issue-grid { display: grid; gap: .55rem; margin: .75rem 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.batch-issue-grid > a { display: grid; min-width: 0; align-items: center; gap: .45rem; padding: .55rem .65rem; color: #172337; border: 1px solid #e0e6e3; border-radius: .6rem; text-decoration: none; grid-template-columns: auto minmax(0, 1fr) auto; }
.batch-issue-grid > a span { color: #d52b2b; }
.batch-issue-grid > a strong { overflow: hidden; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.batch-issue-grid > a b { color: #d52b2b; font-size: .7rem; }
.batch-review-link { display: inline-flex; align-items: center; gap: .3rem; color: #087443; font-weight: 750; text-decoration: none; }
.batch-insights { position: sticky; top: calc(var(--topbar-height, 4.5rem) + 1rem); }
.batch-progress-ring { display: grid; width: 6.1rem; height: 6.1rem; margin: 1rem auto; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 56%, transparent 57%), conic-gradient(#087a46 calc(var(--progress) * 1%), #e7ece9 0); text-align: center; }
.batch-progress-ring strong { color: #172337; font-size: 1.15rem; }
.batch-progress-ring span { color: #758397; font-size: .62rem; }
.batch-insights dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.batch-insights dl > div { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid #e5eae7; font-size: .68rem; }
.batch-insights dt { display: flex; align-items: center; gap: .4rem; color: #566579; }
.batch-insights dd { margin: 0; color: #172337; font-weight: 750; }
.batch-insights .is-total { margin-bottom: .8rem; border-bottom: 0; font-weight: 800; }
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: #9aa59f; }
.dot.is-ready { background: #159b58; }.dot.is-warning { background: #ed9b15; }.dot.is-error { background: #d52a2a; }.dot.is-muted { background: #a2aca7; }
.batch-issue-bars { display: grid; gap: .55rem; margin: .7rem 0 1rem; padding: 0; list-style: none; }
.batch-issue-bars li { display: grid; min-width: 0; align-items: center; gap: .45rem; color: #58677b; font-size: .6rem; grid-template-columns: minmax(0, 1fr) 4rem auto; }
.batch-issue-bars li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-issue-bars li > i { overflow: hidden; height: .2rem; border-radius: 999px; background: #edf0ee; }
.batch-issue-bars li > i b { display: block; height: 100%; border-radius: inherit; background: #dc4545; }
.batch-issue-bars li > strong { color: #172337; }
.batch-create-form { display: flex; align-items: end; gap: .65rem; padding: .9rem; border: 1px solid #e0e7e3; border-radius: .7rem; background: #fafcfb; }
.batch-create-form label { display: grid; flex: 1; gap: .3rem; color: #4d5d72; font-size: .67rem; }
.batch-create-form button:disabled { cursor: not-allowed; opacity: .45; }
.batch-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.batch-table-toolbar > div { display: grid; gap: .12rem; }
.batch-next-list { display: grid; gap: .75rem; padding-left: 1.35rem; color: #5d6d80; font-size: .68rem; line-height: 1.45; }
.batch-next-list li::marker { color: #087443; font-weight: 800; }
.batch-inline-form { display: flex; align-items: end; gap: .6rem; }
.batch-inline-form label { display: grid; flex: 1; gap: .3rem; font-size: .67rem; }
.batch-row-form { display: grid; gap: .35rem; min-width: 14rem; }
.batch-row-form button:disabled { cursor: not-allowed; opacity: .55; }
.provider-account-apply { display: grid; align-items: end; gap: .65rem; margin: .85rem 0; padding: .8rem; border: 1px solid #dfe7e2; border-radius: .7rem; background: #f8fbf9; grid-template-columns: minmax(16rem, 1fr) auto minmax(14rem, 1fr); }
.provider-account-apply label { display: grid; gap: .3rem; color: #4f5f73; font-size: .68rem; font-weight: 750; }
.provider-account-apply select { min-height: 2.45rem; }
.provider-account-apply small { align-self: center; color: #6b798c; font-size: .65rem; line-height: 1.45; }
.button-small { min-height: 2rem; padding: .35rem .55rem; font-size: .65rem; }
.provider-review-card { overflow: hidden; border: 1px solid #dce7e1; border-radius: 1rem; background: #fff; box-shadow: 0 8px 26px rgb(14 54 34 / 5%); }
.provider-review-card > header { display: grid; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid #e4eae6; grid-template-columns: auto minmax(0, 1fr) auto; }
.provider-review-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; color: #08794a; border-radius: .75rem; background: #e9f5ed; }
.provider-review-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.provider-review-card header > div { min-width: 0; }
.provider-review-card .eyebrow { margin: 0 0 .12rem; color: #087443; font-size: .58rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.provider-review-card h2 { margin: 0; color: #172337; font-size: 1rem; }
.provider-review-card header p:last-child { margin: .18rem 0 0; color: #718095; font-size: .65rem; }
.provider-reconciliation-badge { padding: .35rem .58rem; border-radius: 999px; font-size: .65rem; font-weight: 800; }
.provider-review-metrics { display: grid; margin: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.provider-review-metrics > div { min-width: 0; padding: .75rem 1rem; border-right: 1px solid #e5eae7; }
.provider-review-metrics dt { color: #6b798d; font-size: .6rem; font-weight: 700; }
.provider-review-metrics dd { margin: .25rem 0 0; overflow: hidden; color: #172337; font-size: .75rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.provider-reconciliation-note { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-top: 1px solid #e5eae7; font-size: .68rem; }
.provider-reconciliation-note span { color: #5f6f82; }
.provider-review-card.is-mismatch .provider-reconciliation-note { color: #b32626; background: #fff3f3; }
.provider-review-card.is-mismatch .provider-reconciliation-badge { color: #b32626; background: #fde8e8; }
.provider-review-card.is-reconciled .provider-reconciliation-note { color: #087443; background: #eff9f2; }
.provider-review-card.is-reconciled .provider-reconciliation-badge { color: #087443; background: #e5f4ea; }
.provider-review-card.is-partial .provider-reconciliation-badge { color: #8d5c00; background: #fff0d2; }
.provider-warning-list { display: grid; gap: .3rem; margin: 0; padding: .7rem 1rem .8rem 2rem; color: #795d19; background: #fffaf0; font-size: .65rem; }
@media (max-width: 78rem) {
  .batch-summary-card { grid-template-columns: minmax(14rem, 1.5fr) repeat(3, minmax(6.2rem, 1fr)); }
  .batch-metric:nth-of-type(n+4) { border-top: 1px solid #e3e9e5; }
  .batch-stage-layout, .batch-stage-layout.batch-stage-mapping { grid-template-columns: 1fr; }
  .batch-insights { position: static; }
  .provider-review-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .provider-review-metrics > div:nth-child(n+4) { border-top: 1px solid #e5eae7; }
}
@media (max-width: 58rem) {
  .batch-title-row { align-items: flex-start; flex-direction: column; }
  .batch-summary-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-source-summary { grid-column: 1 / -1; }
  .batch-metric { border-top: 1px solid #e3e9e5; }
  .batch-workflow { grid-template-columns: 1fr; }
  .batch-workflow-step:not(:last-child)::after { display: none; }
  .batch-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-issue-grid { grid-template-columns: 1fr; }
  .provider-review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-review-metrics > div:nth-child(n+3) { border-top: 1px solid #e5eae7; }
  .provider-account-apply { align-items: stretch; grid-template-columns: 1fr; }
  .provider-account-apply .button { justify-content: center; width: 100%; }
}
@media (max-width: 42rem) {
  .batch-summary-card { grid-template-columns: 1fr 1fr; }
  .batch-summary-footer, .batch-create-form, .batch-inline-form { align-items: stretch; flex-direction: column; }
  .batch-summary-footer .button, .batch-create-form .button, .batch-inline-form .button { justify-content: center; width: 100%; }
  .batch-panel { padding: .8rem; }
  .import-dialog-actions { flex-direction: column-reverse; }
  .import-dialog-actions .button { justify-content: center; width: 100%; }
  .provider-review-card > header { align-items: start; grid-template-columns: auto minmax(0, 1fr); }
  .provider-reconciliation-badge { grid-column: 1 / -1; }
  .provider-review-metrics { grid-template-columns: 1fr; }
  .provider-review-metrics > div { border-top: 1px solid #e5eae7; border-right: 0; }
  .provider-reconciliation-note { align-items: flex-start; flex-direction: column; }
}
