.jch-xero-accounting{display:flex;flex-direction:column;gap:18px;margin-top:18px}.jch-xero-provider-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px;border:1px solid #dce7f3;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}.jch-xero-provider-head h3{margin:3px 0 6px;font-size:20px;color:#17324d}.jch-xero-provider-head p{margin:0;color:#64748b;line-height:1.5}.jch-xero-provider-kicker{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#2563eb}.jch-xero-provider-status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 11px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap;background:#eef2f7;color:#526274}.jch-xero-provider-status.is-synced{background:#e8f7ee;color:#15713a}.jch-xero-provider-status.is-syncing{background:#e7f1ff;color:#1659ad}.jch-xero-provider-status.is-pending{background:#fff5d9;color:#8a5b00}.jch-xero-provider-status.is-failed{background:#feeceb;color:#a32822}.jch-xero-provider-status.is-disabled{background:#f0f2f5;color:#5f6f80}.jch-xero-connect-empty{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px dashed #bfcddd;border-radius:15px;background:#fbfdff}.jch-xero-connect-empty p{margin:5px 0 0;color:#64748b}.jch-xero-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jch-xero-summary-stat{min-width:0;padding:14px;border:1px solid #e2eaf3;border-radius:14px;background:#fff}.jch-xero-summary-stat span{display:block;margin-bottom:6px;color:#708197;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.jch-xero-summary-stat strong{display:block;overflow:hidden;color:#1f334a;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.jch-xero-control-row,.jch-xero-default-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px;border:1px solid #e2eaf3;border-radius:15px;background:#fff}.jch-xero-control-row p,.jch-xero-default-item p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.45}.jch-xero-switch{appearance:none;display:inline-flex;align-items:center;gap:8px;padding:5px 9px 5px 5px;border:1px solid #cad5e2;border-radius:999px;background:#edf1f5;color:#5f6e7d;font:inherit;font-size:11px;font-weight:900;cursor:pointer}.jch-xero-switch span{display:block;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.16)}.jch-xero-switch em{font-style:normal}.jch-xero-switch.is-on{border-color:#2f78e8;background:#2f78e8;color:#fff}.jch-xero-actions{display:flex;gap:10px;flex-wrap:wrap}.jch-xero-danger{color:#a32822!important;border-color:#efc2bf!important}.jch-xero-default-item-controls{display:flex;align-items:center;gap:10px;min-width:min(100%,480px)}.jch-xero-default-item-controls select{min-width:260px;flex:1 1 auto}.jch-xero-error-box,.jch-xero-inline-error{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-left:4px solid #cf3e36;border-radius:10px;background:#fff2f1;color:#8f251f}.jch-xero-feedback{padding:12px 14px;border-radius:11px;background:#edf5ff;color:#174d8f;font-size:13px;font-weight:700}.jch-xero-feedback.is-error{background:#fff0ef;color:#a12720}.jch-xero-feedback.is-success{background:#eaf8ef;color:#176a38}.jch-xero-initial-tools{border:1px solid #e2eaf3;border-radius:15px;background:#fff;overflow:hidden}.jch-xero-initial-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}.jch-xero-initial-tools>summary::-webkit-details-marker{display:none}.jch-xero-initial-tools>summary span:first-child{display:flex;flex-direction:column;gap:4px}.jch-xero-initial-tools>summary small{color:#64748b;font-weight:500}.jch-xero-initial-tools[open]>summary{border-bottom:1px solid #e5edf5}.jch-xero-setup-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 18px 4px}.jch-xero-setup-checklist span{color:#7a8797;font-size:12px}.jch-xero-setup-checklist span.is-complete{color:#176a38;font-weight:800}.jch-xero-batch-grid{display:flex;gap:9px;flex-wrap:wrap;padding:14px 18px 18px}.jch-xero-batch-progress{margin:0 18px 18px;padding:11px 13px;border-left:4px solid #2f78e8;border-radius:8px;background:#f5f8fc;color:#334155}.jch-xero-sync-indicator{position:relative}.jch-xero-sync-indicator>summary{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid #cfd9e5;border-radius:999px;background:#fff;color:#42556c;font-size:11px;font-weight:900;cursor:pointer;list-style:none}.jch-xero-sync-indicator>summary::-webkit-details-marker{display:none}.jch-xero-sync-icon{width:9px;height:9px;border-radius:50%;background:#8b98a7;box-shadow:0 0 0 3px rgba(139,152,167,.15)}.jch-xero-sync-indicator.is-synced .jch-xero-sync-icon{background:#2da45b;box-shadow:0 0 0 3px rgba(45,164,91,.15)}.jch-xero-sync-indicator.is-syncing .jch-xero-sync-icon{background:#2f78e8;animation:jch-xero-pulse 1s infinite}.jch-xero-sync-indicator.is-pending .jch-xero-sync-icon{background:#d79a16}.jch-xero-sync-indicator.is-failed .jch-xero-sync-icon{background:#cf3e36}.jch-xero-sync-indicator.is-disabled .jch-xero-sync-icon{background:#7d8996}.jch-xero-sync-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:1000;width:285px;padding:16px;border:1px solid #dbe4ee;border-radius:15px;background:#fff;box-shadow:0 18px 44px rgba(15,23,42,.18);color:#334155}.jch-xero-sync-popover-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.jch-xero-sync-popover-head span{font-size:11px;color:#64748b}.jch-xero-sync-popover p{margin:8px 0 12px;color:#5f7185}.jch-xero-sync-popover-counts{display:flex;gap:8px}.jch-xero-sync-popover-counts span{flex:1;padding:8px;border-radius:9px;background:#f5f8fc;font-size:11px}.jch-xero-sync-popover small{display:block;margin-top:11px;color:#7a8797}.jch-xero-sync-popover-actions{display:flex;gap:8px;margin-top:13px}.jch-xero-sync-popover-actions button,.jch-xero-sync-popover-actions a{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border:1px solid #cbd8e6;border-radius:9px;background:#fff;color:#2259a5;font-size:11px;font-weight:900;text-decoration:none;cursor:pointer}.jch-xero-document-sync{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:3px 7px;border-radius:999px;background:#eef2f6;color:#687787;font-size:10px;font-weight:900;line-height:1.2}.jch-xero-document-sync span{width:6px;height:6px;border-radius:50%;background:currentColor}.jch-xero-document-sync.is-synced{background:#e8f7ee;color:#1b7540}.jch-xero-document-sync.is-pending{background:#fff4d7;color:#895b00}.jch-xero-document-sync.is-syncing{background:#e9f2ff;color:#1b5eae}.jch-xero-document-sync.is-failed{background:#feeceb;color:#a32822}.jch-xero-retry-button{appearance:none;margin:5px 0 0 7px;padding:3px 8px;border:1px solid #efb8b4;border-radius:8px;background:#fff;color:#a32822;font-size:10px;font-weight:900;cursor:pointer}@keyframes jch-xero-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.78)}}@media(max-width:900px){.jch-xero-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jch-xero-control-row,.jch-xero-default-item,.jch-xero-connect-empty{align-items:stretch;flex-direction:column}.jch-xero-default-item-controls{min-width:0;flex-direction:column;align-items:stretch}.jch-xero-default-item-controls select{min-width:0}.jch-xero-sync-label{display:none}.jch-xero-sync-indicator>summary{width:36px;justify-content:center;padding:0}.jch-xero-sync-popover{position:fixed;top:74px;right:14px;left:14px;width:auto}.jch-xero-setup-checklist{grid-template-columns:1fr}}
.jch-xero-auto-warning{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-left:4px solid #d79a16;border-radius:10px;background:#fff8e6;color:#765000}.jch-xero-auto-warning span{font-size:12px;line-height:1.45}
.jch-xero-account-settings{margin-top:18px;padding:18px;border:1px solid #dbe6ee;border-radius:14px;background:#f8fbfd}.jch-xero-account-settings>div:first-child p{margin:4px 0 14px;color:#5b6878}.jch-xero-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}.jch-xero-account-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700}.jch-xero-account-grid select{width:100%;min-height:42px;border:1px solid #c8d5df;border-radius:9px;background:#fff;padding:7px 10px}.jch-xero-api-note{margin:16px 0 0;padding:12px 14px;border-left:4px solid #13b5ea;background:#effaff;color:#34505f}.jch-xero-notice{margin:12px 0;padding:12px 14px;border-radius:10px}.jch-xero-notice.success{background:#e9f8ef;color:#176b39}.jch-xero-notice.error{background:#fff0f0;color:#9b2626}@media(max-width:900px){.jch-xero-account-grid{grid-template-columns:1fr}}

.jch-xero-provider-status.is-disconnected{background:#eef2f7;color:#526274}
.jch-xero-provider-status.is-disabled{background:#f0f2f5;color:#5f6f80}
.jch-xero-provider-status.is-synced{background:#e8f7ee;color:#15713a}
.jch-xero-sync-indicator.is-disconnected .jch-xero-sync-icon{background:#8b98a7}
.jch-xero-document-sync.is-not-synced{background:#eef2f6;color:#687787}
.jch-xero-batch-progress.is-error{border-left-color:#cf3e36;background:#fff2f1;color:#8f251f}
.jch-xero-auto-warning{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-left:4px solid #d79a16;border-radius:10px;background:#fff8e8;color:#76510a}
.jch-xero-account-settings{display:flex;flex-direction:column;gap:13px;padding:17px;border:1px solid #e2eaf3;border-radius:15px;background:#fff}
.jch-xero-account-settings p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.45}
.jch-xero-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.jch-xero-account-grid label{display:flex;flex-direction:column;gap:6px;color:#42556c;font-size:11px;font-weight:800}
.jch-xero-account-grid select{width:100%;min-height:42px}
.jch-xero-api-note{margin:0;padding:0 18px 18px;color:#64748b;font-size:12px;line-height:1.5}
.jch-xero-notice{padding:12px 14px;border-radius:11px;background:#edf5ff;color:#174d8f;font-size:13px;font-weight:700}
.jch-xero-notice.success{background:#eaf8ef;color:#176a38}
.jch-xero-notice.error{background:#fff0ef;color:#a12720}
@media(max-width:900px){.jch-xero-account-grid{grid-template-columns:1fr}}


/* 0.5.3: keep the dashboard accounting popover above Team Performance and other panels. */
body.tjc-office-dashboard-active .tjc-office-main-topbar{position:relative!important;z-index:200!important;overflow:visible!important}
body.tjc-office-dashboard-active .tjc-office-main-actions{position:relative!important;z-index:201!important;overflow:visible!important}
body.tjc-office-dashboard-active .jch-xero-sync-indicator{position:relative!important;z-index:202!important}
body.tjc-office-dashboard-active .jch-xero-sync-indicator[open]{z-index:220!important}
body.tjc-office-dashboard-active .jch-xero-sync-popover{z-index:221!important;isolation:isolate!important}

/* 0.5.4: record-level issues remain reviewable without presenting Xero as disconnected. */
.jch-xero-review-box{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border-left:4px solid #d79a16;border-radius:10px;background:#fff8e8;color:#775000}.jch-xero-review-box>strong{font-size:15px}.jch-xero-review-box>span{line-height:1.45}.jch-xero-review-box details{margin-top:2px}.jch-xero-review-box summary{cursor:pointer;font-weight:900}.jch-xero-review-box details span{display:block;margin-top:6px;font-size:12px;line-height:1.45}.jch-xero-batch-progress:not(.is-error){border-left-color:#2f78e8;background:#f5f8fc;color:#334155}

.jch-xero-document-sync.is-failed{background:#fff4d7;color:#895b00}.jch-xero-retry-button{border-color:#e4c26a;color:#795400}

.jch-xero-account-help{margin:-4px 0 14px;color:#5b6878;font-size:12px}

.jch-xero-auto-warning[hidden]{display:none!important}
