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


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

/* 0.7.8: invoice numbering preference inside the JobCardHub accounting settings. */
.jch-qbo-invoice-numbering{align-items:flex-start}.jch-qbo-numbering-controls{display:flex;flex-direction:column;gap:9px;min-width:min(100%,460px)}.jch-qbo-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-qbo-numbering-controls input{margin-top:3px}.jch-qbo-numbering-controls span{display:flex;flex-direction:column;gap:3px}.jch-qbo-numbering-controls strong{color:#253b52;font-size:12px}.jch-qbo-numbering-controls small{color:#6b7b8d;font-size:11px;line-height:1.4}@media(max-width:900px){.jch-qbo-numbering-controls{min-width:0;width:100%}}
