/* css/v1/reconcile.css: the utility classes Reconcile's markup (js/v1/screens/reconcile*.js, js/v1/markup/reconcile-sync-windows.js) uses that css/v1.css and css/v1/site-ui.css have no rule for, with their dark-theme values (the dark .text-sky-800 colour here replaces the one in css/v1.css); then the skin of the rows, tiles and buttons classic's sync run draws into the all-channels window (#sync-all-overlay), of the single-channel window's Done button, of classic's floating sync bar and of its sign-in gate banner. */
.align-middle { vertical-align: middle; }
.h-1\.5 { height: 0.375rem; }
.h-10 { height: 2.5rem; }
.w-1\.5 { width: 0.375rem; }
.w-48 { width: 12rem; }
.z-10 { z-index: 10; }
.max-h-\[210px\] { max-height: 210px; }
.max-h-\[360px\] { max-height: 360px; }
.max-h-\[370px\] { max-height: 370px; }
.bg-amber-50\/90 { background-color: rgb(255 251 235 / 0.9); }
.bg-rose-100 { background-color: rgb(255 228 230); }
.bg-sky-50\/40 { background-color: rgb(240 249 255 / 0.4); }
.bg-slate-300 { background-color: rgb(203 213 225); }
.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }
.border-sky-300 { border-color: rgb(125 211 252); }
.text-sky-700 { color: rgb(3 105 161); }
.text-amber-800\/80 { color: rgb(146 64 14 / 0.8); }
.text-emerald-700\/80 { color: rgb(4 120 87 / 0.8); }
.group:hover .group-hover\:underline { text-decoration-line: underline; }

html[data-theme="dark"] .bg-amber-50\/90 { background-color: rgba(245, 158, 11, 0.14) !important; color: #fcd34d !important; border-color: rgba(251, 191, 36, 0.35) !important; }
html[data-theme="dark"] .bg-rose-100 { background-color: rgba(244, 63, 94, 0.2) !important; }
html[data-theme="dark"] .bg-sky-50\/40 { background-color: rgba(14, 165, 233, 0.14) !important; border-color: rgba(56, 189, 248, 0.35) !important; }
html[data-theme="dark"] .text-sky-700,
html[data-theme="dark"] .text-sky-800 { color: #7dd3fc !important; }

.border-purple-300 { border-color: rgb(216 180 254); }
.hover\:bg-purple-100:hover { background-color: rgb(243 232 255); }
.bg-purple-50\/50 { background-color: rgb(250 245 255 / 0.5); }
.bg-purple-600 { background-color: rgb(147 51 234); }
.hover\:bg-purple-700:hover { background-color: rgb(126 34 206); }
.bg-slate-950 { background-color: rgb(2 6 23); }
.text-emerald-300 { color: rgb(110 231 183); }
.max-w-xl { max-width: 36rem; }
.max-w-5xl { max-width: 64rem; }
.max-h-\[75vh\] { max-height: 75vh; }
.h-32 { height: 8rem; }

html[data-theme="dark"] .bg-purple-50\/50,
html[data-theme="dark"] .hover\:bg-purple-100:hover { background-color: rgba(168, 85, 247, 0.16) !important; }

/* The Done button: classic's finishSyncLogModal() paints the close button's text var(--text), which is dark on this button. */
#sync-log-close { color: #fff !important; }

/* The rows and tiles classic's syncAllPlatforms() draws in the all-channels window: one compact row per platform, or a log tile in the detailed mode. */
#sync-all-overlay .sa-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background-color: rgb(248 250 252 / 0.7); }
#sync-all-overlay .sa-name { min-width: 5.5rem; font-weight: 600; color: #0f172a; }
#sync-all-overlay .sa-tile { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 0.75rem; background-color: #fff; overflow: hidden; }
#sync-all-overlay .sa-tile-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e8f0; background-color: #f8fafc; }
#sync-all-overlay .sa-log-pane { height: 8rem; overflow-y: auto; padding: 0.625rem; background-color: rgb(2 6 23); color: rgb(110 231 183); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
#sync-all-overlay .btn-sa { padding: 0.125rem 0.5rem; border: 1px solid #e2e8f0; border-radius: 0.25rem; background-color: #fff; color: #334155; font-size: 11px; cursor: pointer; }
#sync-all-overlay .btn-sa:hover { background-color: #f1f5f9; }
#sync-all-overlay .btn-sa-red { border-color: #fecdd3; color: #be123c; }
#sync-all-overlay .fs-10 { font-size: 10px; }
#sync-all-overlay .fs-12 { font-size: 12px; }
#sync-all-overlay .fs-14 { font-size: 14px; }
#sync-all-overlay .fs-15 { font-size: 15px; }
#sync-all-overlay .fw-700 { font-weight: 700; }
#sync-all-overlay .flex-fill { flex: 1; min-width: 0; }
#sync-all-overlay .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sync-all-overlay .sc-muted { color: #64748b; }
#sync-all-overlay .maxw-100 { max-width: 100px; }
#sync-all-gate-banner { margin: 12px 20px 0 !important; }
#sync-all-gate-banner .btn-gate-retry { padding: 0.3rem 0.75rem; border: 0; border-radius: 0.5rem; background-color: #059669; color: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; }

/* Classic's floating sync bar (showApiSyncBar() draws it for a run that has no all-channels row). */
.api-sync-row { padding: 12px 24px; display: flex; align-items: center; gap: 10px; }
.api-sync-track { height: 4px; width: 100%; background-color: #f1f5f9; }
.api-sync-fill { height: 100%; width: 0%; background-color: #059669; transition: width 0.3s; animation: api-sync-pulse 1.5s ease-in-out infinite; }
#api-sync-bar .fs-18 { font-size: 18px; }

html[data-theme="dark"] #sync-all-overlay .sa-row { background-color: #1f2633; border-color: #2b3445; }
html[data-theme="dark"] #sync-all-overlay .sa-name { color: #f1f5f9; }
html[data-theme="dark"] #sync-all-overlay .sa-tile { background-color: #171c26; border-color: #2b3445; }
html[data-theme="dark"] #sync-all-overlay .sa-tile-head { background-color: #1f2633; border-color: #2b3445; }
html[data-theme="dark"] #sync-all-overlay .btn-sa { background-color: #171c26; border-color: #2b3445; color: #cbd5e1; }
html[data-theme="dark"] #sync-all-overlay .btn-sa:hover { background-color: #232b3a; }
html[data-theme="dark"] #sync-all-overlay .btn-sa-red { border-color: rgba(251, 113, 133, 0.5); color: #fb7185; }
html[data-theme="dark"] #sync-all-overlay .sc-muted { color: #94a3b8; }
html[data-theme="dark"] .api-sync-track { background-color: #2b3445; }

/* Sales audit rows (Amount Mismatches, Dismissed): from 1024px each sale's <tbody> is one grid row (left cell, Source and six figures over two rows, Diff, Action) and its <tr>s and <td>s are grid items; narrower, the table draws as a table. */
.pr-1\.5 { padding-right: 0.375rem; }
.ft-sac-legend { display: none; }
.ft-sac-figs { display: grid; grid-template-columns: 72px 54px 54px 48px 50px 54px 62px; column-gap: 2px; align-items: center; }
.ft-sac-order { max-width: 165px; }
.ft-sac-diff { width: 60px; flex-shrink: 0; }
.ft-sac-act { min-width: 208px; flex-shrink: 0; }
@media (min-width: 1024px) {
  .ft-sac-legend { display: flex; }
  .ft-sac-legend .ft-sac-main { min-width: 240px; flex: 1 1 0%; }
  .ft-sac-tbl { display: block; }
  .ft-sac-grp { display: grid; grid-template-columns: minmax(240px, 1fr) 72px 54px 54px 48px 50px 54px 62px 60px minmax(208px, auto); column-gap: 2px; row-gap: 0.25rem; align-items: center; padding: 0.75rem 0.875rem; }
  .ft-sac-grp.hidden { display: none; }
  .ft-sac-grp > tr { display: contents; }
  .ft-sac-grp > tr > td { display: block; padding: 0; border: 0; }
  .ft-sac-grp > tr > td.ft-sac-main { grid-area: 1 / 1 / 3 / 2; padding-right: 6px; }
  .ft-sac-grp > tr > td.ft-sac-diff { grid-area: 1 / 9 / 3 / 10; padding-left: 6px; width: auto; }
  .ft-sac-grp > tr > td.ft-sac-act { grid-area: 1 / 10 / 3 / 11; padding-left: 6px; min-width: 0; }
}
@media (min-width: 1536px) {
  .ft-sac-figs { grid-template-columns: 80px 62px 62px 56px 58px 62px 72px; column-gap: 6px; }
  .ft-sac-order { max-width: 220px; }
  .ft-sac-diff { width: 68px; }
  .ft-sac-act { min-width: 224px; }
  .ft-sac-grp { grid-template-columns: minmax(240px, 1fr) 80px 62px 62px 56px 58px 62px 72px 68px minmax(224px, auto); column-gap: 6px; }
  .ft-sac-btns { gap: 0.375rem; }
}
html[data-theme="dark"] .ft-sac-src { background-color: rgb(51 65 85); color: rgb(241 245 249); border: 1px solid rgb(71 85 105); }
@media (min-width: 1536px) {
  .ft-sac-grp > tr > td.ft-sac-main { padding-right: 2px; }
  .ft-sac-grp > tr > td.ft-sac-diff, .ft-sac-grp > tr > td.ft-sac-act { padding-left: 2px; }
}
