.jch-sage-accounting{display:flex;flex-direction:column;gap:18px;margin-top:18px}.jch-sage-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-sage-provider-head h3{margin:3px 0 6px;font-size:20px;color:#17324d}.jch-sage-provider-head p{margin:0;color:#64748b;line-height:1.5}.jch-sage-provider-kicker{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#2563eb}.jch-sage-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-sage-provider-status.is-synced{background:#e8f7ee;color:#15713a}.jch-sage-provider-status.is-syncing{background:#e7f1ff;color:#1659ad}.jch-sage-provider-status.is-pending{background:#fff5d9;color:#8a5b00}.jch-sage-provider-status.is-failed{background:#feeceb;color:#a32822}.jch-sage-provider-status.is-disabled{background:#f0f2f5;color:#5f6f80}.jch-sage-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-sage-connect-empty p{margin:5px 0 0;color:#64748b}.jch-sage-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jch-sage-summary-stat{min-width:0;padding:14px;border:1px solid #e2eaf3;border-radius:14px;background:#fff}.jch-sage-summary-stat span{display:block;margin-bottom:6px;color:#708197;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.jch-sage-summary-stat strong{display:block;overflow:hidden;color:#1f334a;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.jch-sage-control-row,.jch-sage-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-sage-control-row p,.jch-sage-default-item p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.45}.jch-sage-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-sage-switch span{display:block;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.16)}.jch-sage-switch em{font-style:normal}.jch-sage-switch.is-on{border-color:#2f78e8;background:#2f78e8;color:#fff}.jch-sage-actions{display:flex;gap:10px;flex-wrap:wrap}.jch-sage-danger{color:#a32822!important;border-color:#efc2bf!important}.jch-sage-default-item-controls{display:flex;align-items:center;gap:10px;min-width:min(100%,480px)}.jch-sage-default-item-controls select{min-width:260px;flex:1 1 auto}.jch-sage-review-box{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border-left:4px solid #d79a16;border-radius:10px;background:#fff8e8;color:#6f4b00}.jch-sage-review-box details{margin-top:4px}.jch-sage-review-box summary{cursor:pointer;font-weight:800}.jch-sage-review-box details span{display:block;margin-top:6px;color:#6f5a2b}.jch-sage-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-sage-feedback{padding:12px 14px;border-radius:11px;background:#edf5ff;color:#174d8f;font-size:13px;font-weight:700}.jch-sage-feedback.is-error{background:#fff0ef;color:#a12720}.jch-sage-feedback.is-success{background:#eaf8ef;color:#176a38}.jch-sage-initial-tools{border:1px solid #e2eaf3;border-radius:15px;background:#fff;overflow:hidden}.jch-sage-initial-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}.jch-sage-initial-tools>summary::-webkit-details-marker{display:none}.jch-sage-initial-tools>summary span:first-child{display:flex;flex-direction:column;gap:4px}.jch-sage-initial-tools>summary small{color:#64748b;font-weight:500}.jch-sage-initial-tools[open]>summary{border-bottom:1px solid #e5edf5}.jch-sage-setup-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 18px 4px}.jch-sage-setup-checklist span{color:#7a8797;font-size:12px}.jch-sage-setup-checklist span.is-complete{color:#176a38;font-weight:800}.jch-sage-batch-grid{display:flex;gap:9px;flex-wrap:wrap;padding:14px 18px 18px}.jch-sage-batch-progress{margin:0 18px 18px;padding:11px 13px;border-left:4px solid #2f78e8;border-radius:8px;background:#f5f8fc;color:#334155}.jch-sage-sync-indicator{position:relative}.jch-sage-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-sage-sync-indicator>summary::-webkit-details-marker{display:none}.jch-sage-sync-icon{width:9px;height:9px;border-radius:50%;background:#8b98a7;box-shadow:0 0 0 3px rgba(139,152,167,.15)}.jch-sage-sync-indicator.is-synced .jch-sage-sync-icon{background:#2da45b;box-shadow:0 0 0 3px rgba(45,164,91,.15)}.jch-sage-sync-indicator.is-syncing .jch-sage-sync-icon{background:#2f78e8;animation:jch-sage-pulse 1s infinite}.jch-sage-sync-indicator.is-pending .jch-sage-sync-icon{background:#d79a16}.jch-sage-sync-indicator.is-failed .jch-sage-sync-icon{background:#cf3e36}.jch-sage-sync-indicator.is-disabled .jch-sage-sync-icon{background:#7d8996}.jch-sage-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-sage-sync-popover-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.jch-sage-sync-popover-head span{font-size:11px;color:#64748b}.jch-sage-sync-popover p{margin:8px 0 12px;color:#5f7185}.jch-sage-sync-popover-counts{display:flex;gap:8px}.jch-sage-sync-popover-counts span{flex:1;padding:8px;border-radius:9px;background:#f5f8fc;font-size:11px}.jch-sage-sync-popover small{display:block;margin-top:11px;color:#7a8797}.jch-sage-sync-popover-actions{display:flex;gap:8px;margin-top:13px}.jch-sage-sync-popover-actions button,.jch-sage-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-sage-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-sage-document-sync span{width:6px;height:6px;border-radius:50%;background:currentColor}.jch-sage-document-sync.is-synced{background:#e8f7ee;color:#1b7540}.jch-sage-document-sync.is-pending{background:#fff4d7;color:#895b00}.jch-sage-document-sync.is-syncing{background:#e9f2ff;color:#1b5eae}.jch-sage-document-sync.is-failed{background:#feeceb;color:#a32822}.jch-sage-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-sage-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.78)}}@media(max-width:900px){.jch-sage-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jch-sage-control-row,.jch-sage-default-item,.jch-sage-connect-empty{align-items:stretch;flex-direction:column}.jch-sage-default-item-controls{min-width:0;flex-direction:column;align-items:stretch}.jch-sage-default-item-controls select{min-width:0}.jch-sage-sync-label{display:none}.jch-sage-sync-indicator>summary{width:36px;justify-content:center;padding:0}.jch-sage-sync-popover{position:fixed;top:74px;right:14px;left:14px;width:auto}.jch-sage-setup-checklist{grid-template-columns:1fr}}
.jch-sage-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-sage-auto-warning span{font-size:12px;line-height:1.45}


/* Keep the dashboard accounting popover above surrounding 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-sage-sync-indicator{position:relative!important;z-index:202!important}
body.tjc-office-dashboard-active .jch-sage-sync-indicator[open]{z-index:220!important}
body.tjc-office-dashboard-active .jch-sage-sync-popover{z-index:221!important;isolation:isolate!important}

/* Document numbering preference inside the JobCardHub accounting settings. */
.jch-sage-numbering{align-items:flex-start}.jch-sage-numbering-controls{display:flex;flex-direction:column;gap:9px;min-width:min(100%,460px)}.jch-sage-numbering-controls label{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #dce6f0;border-radius:11px;background:#f9fbfd;cursor:pointer}.jch-sage-numbering-controls input{margin-top:3px}.jch-sage-numbering-controls span{display:flex;flex-direction:column;gap:3px}.jch-sage-numbering-controls strong{color:#253b52;font-size:12px}.jch-sage-numbering-controls small{color:#6b7b8d;font-size:11px;line-height:1.4}@media(max-width:900px){.jch-sage-numbering-controls{min-width:0;width:100%}}

/* Connection form and supporting controls. */
.jch-sage-connect-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px solid #dce7f3;border-radius:15px;background:#fff}.jch-sage-connect-card p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.5}.jch-sage-connect-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.jch-sage-connect-controls select{min-width:260px}.jch-sage-login-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;align-items:end;gap:12px;width:min(100%,720px)}.jch-sage-login-form label{display:flex;flex-direction:column;gap:6px;color:#334155;font-size:11px;font-weight:800}.jch-sage-login-form input,.jch-sage-connect-controls select,.jch-sage-default-item-controls select{min-height:40px;padding:8px 10px;border:1px solid #cbd8e6;border-radius:9px;background:#fff;color:#1f334a}.jch-sage-security-note{padding:12px 14px;border-left:4px solid #2f78e8;border-radius:10px;background:#eff6ff;color:#1d4f91;font-size:12px;line-height:1.5}.jch-sage-batch-progress.is-error{border-left-color:#cf3e36;background:#fff1f0;color:#922821}.jch-sage-numbering{align-items:flex-start}@media(max-width:900px){.jch-sage-connect-card{align-items:stretch;flex-direction:column}.jch-sage-connect-controls{align-items:stretch;flex-direction:column}.jch-sage-connect-controls select{min-width:0;width:100%}.jch-sage-login-form{grid-template-columns:1fr;width:100%}}

.jch-sage-document-error{margin:7px 0 0;padding:8px 10px;max-width:720px;border-left:3px solid #cf3e36;border-radius:7px;background:#fff2f1;color:#8f251f;font-size:11px;line-height:1.4}.jch-sage-document-error strong{font-weight:900}.jch-sage-retry-button{display:inline-flex!important;width:auto!important;min-width:0!important;min-height:30px!important;align-items:center;justify-content:center}
.jch-sage-queue-panel{border:1px solid #e2eaf3;border-radius:15px;background:#fff;overflow:hidden}.jch-sage-queue-head{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-bottom:1px solid #e7edf4}.jch-sage-queue-head strong{color:#1f334a}.jch-sage-queue-head span{font-size:12px;color:#6b7b8e}.jch-sage-queue-list{display:flex;flex-direction:column}.jch-sage-queue-item{padding:13px 16px;border-top:1px solid #edf1f5}.jch-sage-queue-item:first-child{border-top:0}.jch-sage-queue-item.is-failed{background:#fffafa}.jch-sage-queue-item.is-syncing{background:#f7fbff}.jch-sage-queue-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.jch-sage-queue-title strong{color:#243b53}.jch-sage-queue-type,.jch-sage-queue-state{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:900}.jch-sage-queue-type{background:#eef4fb;color:#315b85}.jch-sage-queue-state{margin-left:auto;background:#fff4d7;color:#895b00}.is-failed .jch-sage-queue-state{background:#feeceb;color:#a32822}.is-syncing .jch-sage-queue-state{background:#e9f2ff;color:#1b5eae}.jch-sage-queue-secondary{margin-top:5px;color:#66778a;font-size:12px}.jch-sage-queue-reason,.jch-sage-queue-error{margin-top:7px;font-size:12px;line-height:1.45}.jch-sage-queue-reason{color:#596b7f}.jch-sage-queue-error{padding:8px 10px;border-radius:8px;background:#fff0ef;color:#942d27}.jch-sage-queue-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;color:#7a8797;font-size:10px}.jch-sage-queue-retry{margin-left:auto;padding:4px 9px;border:1px solid #efb8b4;border-radius:7px;background:#fff;color:#a32822;font-size:10px;font-weight:900;cursor:pointer}@media(max-width:700px){.jch-sage-queue-state{margin-left:0}.jch-sage-queue-retry{margin-left:0}}