/* ---------------------------------------------------------------------------
   Payments → Invoices & Estimates → Accounting Sync (public/accounting-sync.js).

   Sizes and colours are GHL's, from the scoped styles of IntegrationDashboard,
   EmptyState, SyncOverview, RecordView and DisconnectModal: a white 64px
   header, a #eceef2 canvas holding one white 12px-radius card, provider
   cards with a 160px coloured banner, 16px/600 card titles, #475467 copy.
--------------------------------------------------------------------------- */

/* The modals, menus and popovers are appended to <body>, outside .acs. */
.acs, .acs-modal-back, .acs-dropdown, .acs-error-pop {
  --acs-text: #101828; --acs-text-2: #344054; --acs-muted: #475467; --acs-dim: #667085;
  --acs-line: #d0d5dd; --acs-hair: #eaecf0; --acs-blue: #155eef; --acs-blue-dark: #004eeb;
  --acs-red: #d92d20; --acs-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
}
.acs {
  font-family: Inter, system-ui, sans-serif; color: var(--acs-text);
  display: flex; flex-direction: column; min-height: calc(100vh - 120px); background: #eceef2;
}
.acs *, .acs-modal-back *, .acs-dropdown *, .acs-error-pop * { box-sizing: border-box; }
.acs [hidden] { display: none !important; }

/* ----- header and canvas ----- */
.acs-head { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--acs-line); }
.acs-title { font-size: 16px; font-weight: 600; line-height: 24px; margin: 0; color: var(--acs-text); }
.acs-sub { font-size: 14px; line-height: 20px; margin: 0; color: var(--acs-muted); }
.acs-body { flex: 1; display: flex; flex-direction: column; padding: 16px; min-height: 0; }
.acs-body.tight { padding: 12px; }
.acs-canvas {
  flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 16px; background: #fff;
  border-radius: 12px; box-shadow: var(--acs-shadow); min-height: 0;
}
.acs-loading { flex: 1; display: grid; place-items: center; padding: 120px 0; }
.acs-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #d1e0ff; border-top-color: var(--acs-blue); animation: acs-spin .8s linear infinite; }
@keyframes acs-spin { to { transform: rotate(360deg); } }
.acs-error { padding: 12px 14px; border: 1px solid #fda29b; background: #fef3f2; color: #b42318; border-radius: 8px; font-size: 14px; }

/* ----- the setup banner (HLAlert, blue) ----- */
.acs-alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 8px;
  border: 1px solid #84adff; background: #f5f8ff; color: #004eeb;
}
.acs-alert.red { border-color: #fda29b; background: #fef3f2; color: #b42318; }
.acs-alert-icon { flex: none; margin-top: 1px; }
.acs-alert-text { flex: 1; min-width: 0; }
.acs-alert-title { font-size: 14px; font-weight: 600; line-height: 20px; }
.acs-alert-sub { font-size: 14px; line-height: 20px; }
.acs-alert-close { border: 0; background: none; color: var(--acs-muted); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.acs-alert-close:hover { background: rgba(16, 24, 40, .06); color: var(--acs-text); }

/* ----- provider cards ----- */
.acs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acs-card {
  background: #fff; border: 1px solid var(--acs-line); border-radius: 4px; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06); transition: box-shadow .2s;
}
.acs-card:hover { box-shadow: 0 4px 16px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .06); }
.acs-card-banner { height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 4px 4px 0 0; overflow: hidden; }
.acs-logo { display: flex; align-items: center; gap: 10px; }
.acs-logo-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid currentColor; }
.acs-logo-text { display: flex; flex-direction: column; }
.acs-logo-small { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; }
.acs-logo-large { font-size: 30px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.light .acs-logo { color: #fff; }
.dark .acs-logo { color: var(--acs-text); }
.dark .acs-logo-mark { color: #0041ff; }
.acs-card-content { display: flex; flex-direction: column; gap: 4px; padding: 16px; flex: 1; }
.acs-card-name { font-size: 16px; font-weight: 600; line-height: 24px; margin: 0; color: var(--acs-text); }
.acs-card-desc { font-size: 14px; line-height: 20px; margin: 0; color: var(--acs-muted); }
.acs-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--acs-hair); }

/* ----- buttons (HLButton) ----- */
.acs-btn, .acs-modal-back .acs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 4px; font: 600 16px/24px Inter, sans-serif; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--acs-line); background: #fff; color: var(--acs-text-2);
}
.acs-btn.secondary, .acs-btn.secondary.blue { border-color: #84adff; color: var(--acs-blue-dark); }
.acs-btn.secondary:hover { background: #f5f8ff; }
.acs-btn.secondary.gray { border-color: var(--acs-line); color: var(--acs-text-2); }
.acs-btn.secondary.gray:hover { background: #f9fafb; }
.acs-btn.secondary.red { border-color: #fda29b; color: #b42318; }
.acs-btn.secondary.red:hover { background: #fef3f2; }
.acs-btn.primary { background: var(--acs-blue); border-color: var(--acs-blue); color: #fff; }
.acs-btn.primary:hover { background: var(--acs-blue-dark); }
.acs-btn.primary.red { background: var(--acs-red); border-color: var(--acs-red); }
.acs-btn.primary.red:hover { background: #b42318; }
.acs-btn.text { border: 0; background: none; padding: 0 6px; font-size: 14px; }
.acs-btn.text.blue { color: var(--acs-blue-dark); }
.acs-btn.icon-only { width: 36px; padding: 0; }
.acs-btn.sm { height: 32px; font-size: 14px; padding: 0 12px; }
.acs-btn.xs { height: 26px; font-size: 12px; font-weight: 500; padding: 0 8px; gap: 4px; }
.acs-btn.xs .ico { width: 14px; height: 14px; }
.acs-btn.wide { min-width: 200px; }
.acs-btn:disabled { opacity: .55; cursor: not-allowed; }
.acs-btn.loading { cursor: progress; }

/* ----- tooltips (data-tooltip in GHL's sources) ----- */
.acs-tip-wrap { position: relative; display: inline-flex; }
.acs-tip { position: relative; }
.acs-tip::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 8px 12px; background: #0c111d; color: #fff; font: 400 13px/18px Inter, sans-serif; border-radius: 8px;
  white-space: nowrap; box-shadow: var(--acs-shadow); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s, visibility .15s; z-index: 50;
}
.acs-tip:hover::after, .acs-tip:focus-within::after { opacity: 1; visibility: visible; }
.acs-info { display: inline-flex; color: #98a2b3; cursor: help; }
.acs-info .acs-tip::after, .acs-info.acs-tip::after { white-space: normal; width: 260px; }

/* ----- disconnect / tax modals ----- */
.acs-modal-back { position: fixed; inset: 0; background: rgba(12, 17, 29, .5); display: grid; place-items: center; z-index: 1000; padding: 16px; font-family: Inter, system-ui, sans-serif; }
.acs-modal { width: 480px; max-width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 20px 24px -4px rgba(16, 24, 40, .08), 0 8px 8px -4px rgba(16, 24, 40, .03); }
.acs-modal.wide { width: 1100px; max-height: 88vh; display: flex; flex-direction: column; }
.acs-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.acs-modal-head-left { display: flex; align-items: center; gap: 12px; }
.acs-modal-icon { color: var(--acs-red); }
.acs-modal-title { font-size: 18px; font-weight: 600; line-height: 28px; margin: 0; color: #101828; }
.acs-modal-x { border: 0; background: none; color: #667085; cursor: pointer; border-radius: 6px; padding: 4px; display: inline-flex; }
.acs-modal-x:hover { background: #f3f4f6; }
.acs-modal-body { padding: 12px 24px 20px; font-size: 14px; line-height: 20px; color: #475467; overflow: auto; }
.acs-modal-body p { margin: 0; }
.acs-modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 0 24px 20px; }

/* ----- Sync overview nav ----- */
.acs-nav { display: flex; align-items: center; gap: 16px; min-height: 62px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--acs-line); }
.acs-nav-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.acs-back { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--acs-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.acs-back:hover { background: #f3f4f6; color: var(--acs-text); }
.acs-platform { font-size: 16px; font-weight: 600; line-height: 24px; }
.acs-tabs { display: inline-flex; gap: 4px; align-self: stretch; }
.acs-tab {
  position: relative; border: 0; background: none; padding: 0 8px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; font: 500 16px/24px Inter, sans-serif; color: var(--acs-muted);
}
.acs-tab:hover { color: var(--acs-blue-dark); }
.acs-tab.on { font-weight: 600; color: var(--acs-blue-dark); }
.acs-tab.on::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: var(--acs-blue-dark); }
.acs-nav-right { display: flex; align-items: center; gap: 8px; }
.acs-menu-wrap { position: relative; display: inline-flex; }
.acs-menu-btn { width: 36px; height: 36px; border: 0; border-radius: 4px; background: none; color: var(--acs-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.acs-menu-btn:hover { background: #f3f4f6; color: var(--acs-text); }
.acs-nav-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px; background: #fff; border: 1px solid var(--acs-line);
  border-radius: 8px; padding: 6px; box-shadow: var(--acs-shadow); z-index: 60; display: flex; flex-direction: column; gap: 2px;
}
.acs-nav-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none;
  cursor: pointer; font: 500 14px/20px Inter, sans-serif; color: var(--acs-text-2); text-align: left;
}
.acs-nav-menu-item.danger { color: var(--acs-red); }
.acs-nav-menu-item.danger:hover { background: #fef3f2; color: #b42318; }
.acs-nav-menu-item.acs-tip::after { left: auto; right: 0; transform: none; }

/* ----- overview cards ----- */
.acs-ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.acs-ov-card { display: flex; flex-direction: column; border: 1px solid var(--acs-line); border-radius: 4px; box-shadow: 0 1px 1.5px rgba(16, 24, 40, .1), 0 1px 1px rgba(16, 24, 40, .06); }
.acs-ov-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 16px 0; }
.acs-ov-title { font-size: 16px; font-weight: 600; line-height: 24px; margin: 0; }
.acs-ov-link { width: 24px; height: 24px; border: 0; background: none; color: var(--acs-muted); cursor: pointer; padding: 0; display: inline-flex; }
.acs-ov-link:hover { color: var(--acs-text); }
.acs-ov-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.acs-ov-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.acs-ov-label { font-size: 16px; font-weight: 500; line-height: 24px; color: var(--acs-muted); }
.acs-ov-value { font-size: 16px; font-weight: 600; line-height: 24px; color: var(--acs-text); }
.acs-ov-date { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 500; color: var(--acs-text); }
.acs-ov-sep { color: var(--acs-dim); font-weight: 400; }
.acs-divider { border: 0; border-top: 1px solid var(--acs-hair); margin: 0; }

/* ----- tags (HLTag) ----- */
.acs-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 500 12px/18px Inter, sans-serif; border: 1px solid transparent; white-space: nowrap;
}
.acs-tag.round { border-radius: 16px; }
.acs-tag.success { background: #ecfdf3; color: #067647; }
.acs-tag.warning { background: #fffaeb; color: #b54708; }
.acs-tag.error { background: #fef3f2; color: #b42318; }
.acs-tag.gray { background: #f2f4f7; color: #344054; }
.acs-tag.bordered.error { border-color: #fecdca; }
.acs-tag.interactive { cursor: pointer; }
.acs-tag.interactive:hover { background: #fee4e2; }

/* ----- record view ----- */
.acs-records { flex: 1; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--acs-shadow); min-height: 0; overflow: hidden; }
.acs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--acs-hair); flex-wrap: wrap; }
.acs-filters, .acs-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acs-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px dashed var(--acs-line);
  border-radius: 6px; background: #fff; font: 500 14px/20px Inter, sans-serif; color: var(--acs-text-2); cursor: pointer;
}
.acs-chip.on { border-style: solid; border-color: #84adff; background: #f5f8ff; color: var(--acs-blue-dark); }
.acs-chip-x { display: inline-flex; border-radius: 4px; }
.acs-chip-x:hover { background: #d1e0ff; }
.acs-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--acs-line); border-radius: 6px; background: #fff; color: var(--acs-dim); min-width: 220px; }
.acs-search input { border: 0; outline: 0; font: 400 14px/20px Inter, sans-serif; color: var(--acs-text); flex: 1; min-width: 0; background: none; }
.acs-search:focus-within { border-color: #84adff; box-shadow: 0 0 0 4px rgba(21, 94, 239, .12); }
.acs-search-clear { border: 0; background: none; color: var(--acs-dim); cursor: pointer; display: inline-flex; padding: 0; }
.acs-table-wrap { flex: 1; overflow: auto; }
.acs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.acs-table th {
  position: sticky; top: 0; background: #f9fafb; text-align: left; font: 500 12px/18px Inter, sans-serif; color: var(--acs-muted);
  padding: 10px 12px; border-bottom: 1px solid var(--acs-hair); white-space: nowrap; z-index: 1;
}
.acs-table td { padding: 12px; border-bottom: 1px solid var(--acs-hair); color: var(--acs-muted); vertical-align: middle; }
.acs-table tr.selected td { background: #f5f8ff; }
.acs-table tbody tr:hover td { background: #f9fafb; }
.acs-table .check { width: 40px; }
.acs-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--acs-blue); cursor: pointer; }
.acs-table .actions { width: 1%; text-align: right; }
.acs-table tr.empty td { color: var(--acs-dim); text-align: center; }
.acs-th-action { display: inline-flex; align-items: center; gap: 4px; }
.acs-th-icon { border: 0; background: none; color: var(--acs-dim); cursor: pointer; display: inline-flex; padding: 2px; border-radius: 4px; }
.acs-th-icon:hover { background: #eaecf0; }
.acs-record-cell { display: flex; align-items: center; gap: 6px; }
.acs-record-name { color: var(--acs-text); font-weight: 500; }
.acs-record-link { border: 0; background: none; color: var(--acs-dim); cursor: pointer; display: inline-flex; padding: 2px; border-radius: 4px; }
.acs-record-link:hover { color: var(--acs-blue); }
.acs-status-cell { display: flex; align-items: center; gap: 6px; }
.acs-error-info { border: 0; background: #fef3f2; color: #b42318; border-radius: 4px; display: inline-flex; padding: 2px; cursor: pointer; }
.acs-error-pop {
  position: absolute; width: 280px; background: #fff; border: 1px solid var(--acs-line, #d0d5dd); border-radius: 8px; padding: 12px;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03); z-index: 1000; font: 400 13px/18px Inter, sans-serif; color: #475467;
}
.acs-error-pop-head { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #101828; margin-bottom: 6px; }
.acs-error-pop ul { margin: 0 0 8px; padding-left: 18px; }
.acs-error-pop-retry { border: 0; background: none; color: #004eeb; font: 600 13px/18px Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 0; }
.acs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 0; }
.acs-empty h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--acs-text); }
.acs-empty p { margin: 0; font-size: 14px; color: var(--acs-muted); }
.acs-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--acs-hair); flex-wrap: wrap; font-size: 14px; color: var(--acs-muted); }
.acs-per-page { display: inline-flex; align-items: center; gap: 8px; }
.acs-per-page select { height: 32px; border: 1px solid var(--acs-line); border-radius: 6px; padding: 0 6px; font: inherit; }
.acs-pages { display: flex; align-items: center; gap: 8px; }
.acs-page-nums { display: flex; gap: 2px; }
.acs-page { min-width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font: 500 14px Inter, sans-serif; color: var(--acs-muted); cursor: pointer; }
.acs-page.on { background: #f9fafb; color: var(--acs-text); }
.acs-page-gap { min-width: 24px; text-align: center; align-self: center; }
.acs-dropdown {
  position: absolute; min-width: 200px; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; padding: 4px;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03); z-index: 1000; font-family: Inter, system-ui, sans-serif;
}
.acs-dropdown-title { padding: 6px 10px; font-size: 12px; font-weight: 600; color: #667085; }
.acs-dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: 500 14px/20px Inter, sans-serif; color: #344054; cursor: pointer; text-align: left; }
.acs-dropdown-item:hover { background: #f9fafb; }
.acs-dropdown-item.on { color: #004eeb; }

/* ----- provider pages ----- */
.acs-toolbar-page { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--acs-line); }
.acs-page-title { font-size: 18px; font-weight: 600; line-height: 26px; }
.acs-page-sub { font-size: 14px; color: var(--acs-muted); }
.acs-provider-logo { border-radius: 8px; display: flex; align-items: center; justify-content: center; height: 120px; width: 100%; }
.acs-provider-logo.square { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.acs-provider-logo.square .acs-logo-text { display: none; }
.acs-provider-logo.square .acs-logo-mark { width: 30px; height: 30px; }
.acs-qb { padding: 0; gap: 0; }
.acs-qb-split { display: flex; flex: 1; min-height: 520px; }
.acs-steps { list-style: none; margin: 0; padding: 24px; width: 288px; flex: none; border-right: 1px solid var(--acs-hair); display: flex; flex-direction: column; gap: 24px; }
.acs-step { display: flex; gap: 12px; align-items: flex-start; }
.acs-step-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--acs-hair); background: #fff; }
.acs-step-dot > span { width: 8px; height: 8px; border-radius: 50%; background: var(--acs-hair); }
.acs-step.current .acs-step-dot { border-color: var(--acs-blue); box-shadow: 0 0 0 4px rgba(21, 94, 239, .14); }
.acs-step.current .acs-step-dot > span { background: var(--acs-blue); }
.acs-step.complete .acs-step-dot { background: var(--acs-blue); border-color: var(--acs-blue); color: #fff; }
.acs-step-title { font-size: 14px; font-weight: 600; color: var(--acs-text-2); }
.acs-step.current .acs-step-title { color: var(--acs-blue-dark); }
.acs-step-sub { font-size: 14px; color: var(--acs-muted); }
.acs-qb-pane { flex: 1; padding: 24px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.acs-qb-inner { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.acs-hero { background: #eff4ff; padding: 16px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; }
.acs-hero-icons { display: flex; justify-content: center; align-items: center; gap: 8px; }
.acs-hero-icons .tile { width: 36px; height: 36px; border-radius: 8px; background: #fff; box-shadow: 0 4px 8px -2px rgba(16, 24, 40, .1); display: grid; place-items: center; }
.acs-hero-icons .tile.blue { color: var(--acs-blue); }
.acs-hero-icons .tile.green { color: #047857; }
.acs-hero-icons .badge { width: 28px; height: 28px; border-radius: 50%; background: #047857; color: #fff; display: grid; place-items: center; }
.acs-hero-title { font-size: 18px; font-weight: 600; text-align: center; }
.acs-hero-sub { font-size: 16px; color: var(--acs-muted); text-align: center; }
.acs-options { display: flex; flex-direction: column; gap: 12px; }
.acs-option { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid var(--acs-hair); border-radius: 4px; }
.acs-option.on { border-color: #528bff; }
.acs-option-icon { color: var(--acs-muted); display: inline-flex; }
.acs-option.on .acs-option-icon { color: #2970ff; }
.acs-option-text { flex: 1; }
.acs-option-title { font-size: 16px; font-weight: 500; color: var(--acs-text); }
.acs-option-desc { font-size: 14px; color: var(--acs-muted); }
.acs-link { border: 0; background: none; padding: 0; color: #2970ff; cursor: pointer; font: inherit; }
.acs-link.strong { font-weight: 600; font-size: 16px; }
.acs-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.acs-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.acs-switch-track { width: 36px; height: 20px; border-radius: 12px; background: #f2f4f7; position: relative; transition: background .15s; }
.acs-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); transition: transform .15s; }
.acs-switch input:checked + .acs-switch-track { background: var(--acs-blue); }
.acs-switch input:checked + .acs-switch-track::after { transform: translateX(16px); }
.acs-switch input:focus-visible + .acs-switch-track { box-shadow: 0 0 0 4px rgba(21, 94, 239, .14); }
.acs-import { display: flex; align-items: baseline; gap: 8px; }
.acs-import input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--acs-blue); }
.acs-dates { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.acs-date { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 500; color: var(--acs-text-2); width: 302px; max-width: 100%; }
.acs-date input, .acs-input, .acs-select {
  height: 40px; border: 1px solid var(--acs-line); border-radius: 8px; padding: 0 12px; font: 400 14px Inter, sans-serif; color: var(--acs-text); background: #fff; width: 100%;
}
.acs-input[readonly] { background: #f9fafb; }
.acs-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--acs-hair); }
.acs-actions-right { display: flex; gap: 8px; }
.acs-tax { display: flex; flex-direction: column; gap: 12px; }
.acs-tax-head { display: flex; justify-content: flex-end; }
.acs-tax .acs-select { height: 32px; }
.acs-unavailable { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; border: 1px solid #fedf89; background: #fffaeb; color: #93370d; font-size: 14px; line-height: 20px; width: 100%; }
.acs-back-link { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0 12px; border: 0; background: none; font: 400 18px Inter, sans-serif; color: #000; cursor: pointer; align-self: flex-start; }
.acs-provider { flex: 1; display: flex; justify-content: center; padding: 16px; background: #fff; }
.acs-provider-col { width: 500px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.acs-features { display: flex; flex-direction: column; gap: 16px; align-self: stretch; padding: 0 40px; }
.acs-feature { display: flex; align-items: center; gap: 8px; }
.acs-feature-icon { width: 40px; display: inline-flex; }
.acs-feature-icon.blue { color: #528bff; }
.acs-feature-icon.green { color: #12b76a; }
.acs-feature-title { font-size: 16px; font-weight: 500; color: #101828; }
.acs-feature-desc { font-size: 13px; color: #667085; }
.acs-hint { font-size: 13px; color: var(--acs-dim); }
.acs-hint a, .acs-help { color: var(--acs-blue); font-weight: 600; text-decoration: underline; }
.acs-help { font-size: 13px; font-weight: 400; margin-left: auto; }
.acs-form { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.acs-field-label { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--acs-text-2); margin-top: 8px; }
.acs-field-sub { font-size: 13px; color: var(--acs-dim); margin-left: 24px; }
.acs-radios { display: flex; flex-direction: column; gap: 8px; }
.acs-radio, .acs-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--acs-text-2); cursor: pointer; }
.acs-radio input, .acs-check input { width: 16px; height: 16px; accent-color: var(--acs-blue); margin: 0; }
.acs-radio input:disabled + span { color: #98a2b3; }
.acs-groups { display: flex; flex-direction: column; gap: 6px; margin-left: 24px; }
.acs-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 2px 10px; border-radius: 16px; font-size: 13px; font-weight: 500; }
.acs-badge.green { background: rgba(0, 128, 0, .25); color: #15803d; }
.acs-badge.red { background: rgba(223, 15, 15, .25); color: #b91c1c; }
.acs-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acs-inline { display: flex; gap: 12px; align-items: center; }
.acs-inline .acs-select { flex: 1; }
.acs-comp { height: 32px; display: flex; align-items: center; }
.acs-modal.wide .acs-table td .acs-select { height: 32px; margin: 0 0 6px; }

/* ----- narrow screens ----- */
@media (max-width: 1000px) {
  .acs-grid, .acs-ov-grid { grid-template-columns: 1fr; }
  .acs-qb-split { flex-direction: column; }
  .acs-steps { width: auto; border-right: 0; border-bottom: 1px solid var(--acs-hair); }
  .acs-search { min-width: 0; flex: 1; }
}
@media (max-width: 640px) {
  .acs-nav { align-items: flex-start; padding: 8px 12px; }
  .acs-nav-main { flex-wrap: wrap; gap: 4px 12px; }
  .acs-tabs { flex-basis: 100%; min-height: 40px; overflow-x: auto; }
  .acs-body, .acs-body.tight { padding: 8px; }
  .acs-toolbar-right { flex: 1 1 100%; }
}
