/* Only scoped selectors; existing ERP/Studio appearance unaffected. */
.cgIA-root{width:100%;max-width:1480px;margin:0 auto;padding:0 0 65px;color:var(--text,#17334b);font-family:inherit}
.cgIA-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:16px}
.cgIA-head h1{font-size:25px;line-height:1.25;margin:5px 0;color:#153950}.cgIA-head h1 span{font-size:12px;color:#68819a;font-weight:650;white-space:nowrap}
.cgIA-head p{font-size:13px;color:#648096;margin:0}.cgIA-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.2px;color:#167293}
.cgIA-root button,.cgIA-overlay button{cursor:pointer;border:1px solid #b6d0df;border-radius:10px;padding:10px 15px;color:#fff;background:#13668c;font-weight:750;line-height:1.25}
.cgIA-root button:disabled,.cgIA-overlay button:disabled{opacity:.46;cursor:not-allowed}.cgIA-head button,.cgIA-root .cgIA-secondary,.cgIA-overlay .cgIA-muted{background:#f1f8fb;color:#17506f}
.cgIA-notice{border-left:4px solid #16856b;background:#ecf9f4;color:#1b5648;font-size:12px;font-weight:650;border-radius:9px;padding:12px 14px;margin-bottom:16px}
.cgIA-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(370px,1.1fr);gap:16px}.cgIA-card{background:#fff!important;border:1px solid #d3e2e9!important;border-radius:15px!important;padding:19px!important;box-shadow:0 10px 30px rgba(20,49,72,.05)!important;min-width:0;color:#1b3c54}
.cgIA-card h2{font-size:15px;color:#194b67;margin:0 0 12px}.cgIA-card h2:not(:first-child){margin-top:20px}.cgIA-card label{display:block;color:#345e74;font-size:12px;font-weight:750;margin:0 0 13px}
.cgIA-card select,.cgIA-card textarea{display:block;width:100%;box-sizing:border-box;border-radius:9px;border:1px solid #b5cbd7;background:#fafdff;color:#193b55;padding:11px 12px;margin-top:7px;font:inherit;font-size:13px}.cgIA-card textarea{line-height:1.55;min-height:134px;resize:vertical}.cgIA-voice{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 13px}.cgIA-voice>label:first-child{min-width:155px}.cgIA-voice .cgIA-check{font-weight:500;display:flex;align-items:center;gap:7px;flex:1;min-width:200px}.cgIA-voice .cgIA-check input{width:15px;height:15px;margin:0}.cgIA-hint{font-size:12px;line-height:1.6;color:#6b7e8e;margin:10px 0}.cgIA-status{border-radius:8px;background:#f0f7fc;padding:10px 12px;color:#245b7a;font-size:12px;margin-top:13px}.cgIA-status.bad{background:#fff0ed;color:#9c2a2a}
.cgIA-review table{border-collapse:collapse;width:100%;font-size:13px;margin:14px 0;table-layout:fixed}.cgIA-review th{background:#eaf3f9;color:#1d516e;text-align:left;padding:10px}.cgIA-review td{padding:10px;border-bottom:1px solid #e4edf1;overflow-wrap:anywhere}.cgIA-alert{background:#fff7e7;border:1px solid #e5c789;border-radius:9px;color:#825520;padding:12px;font-size:12px;margin:11px 0}.cgIA-alert ul{margin:7px 0;padding-left:20px}.cgIA-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.cgIA-steps{display:flex;flex-wrap:wrap;gap:9px;color:#436b85;font-size:12px;margin-top:16px}
.cgIA-overlay{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:100050;width:min(1080px,calc(100vw - 22px));background:#0e3453;color:white;border:1px solid #5ea1ba;border-radius:14px;padding:13px 16px;box-shadow:0 18px 48px #0006;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.cgIA-overlay>div:first-child{display:flex;flex-direction:column;gap:3px}.cgIA-overlay b{font-size:13px}.cgIA-overlay small{font-size:11px;color:#cde0ea;line-height:1.4}.cgIA-overlay button{background:#1b86ab;border-color:#519db4;font-size:12px;padding:9px 11px}.cgIA-overlay .cgIA-muted{background:#173e5a;color:white}
@media(max-width:1050px){.cgIA-grid{grid-template-columns:1fr}.cgIA-overlay{bottom:5px}.cgIA-root{padding-bottom:150px}}

/* V39.5.3: prominent launch control directly above existing invoice format list */
.cgIA-launch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cgIA-launch-row h2{margin:0!important}
.cgIA-launch-row .primary{background:#075c86!important;color:#fff!important;font-weight:800!important;border-radius:8px!important;padding:10px 16px!important}
@media(max-width:760px){.cgIA-launch-row{align-items:stretch;flex-direction:column}.cgIA-launch-row .primary{width:100%!important}}

/* V39.5.4: Read-only invoice preview + chat-like staged command workspace */
.cgIA-workspace{display:grid;grid-template-columns:minmax(330px,.88fr) minmax(430px,1.12fr);gap:16px;align-items:start}
.cgIA-root .cgIA-chat-card,.cgIA-root .cgIA-document-card{padding:15px!important}
.cgIA-choice label{display:block;font-weight:800;font-size:12px;color:#365d73;margin:0 0 6px}
.cgIA-choice select{margin:0 0 12px;max-width:100%;padding:12px;font-size:13px}
.cgIA-chat-title{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e1edf3;padding:3px 3px 12px}
.cgIA-chat-title h2{margin:0}.cgIA-chat-title h2 span{color:#15a6be}.cgIA-no-ai{font-size:10px;color:#6c8696;white-space:nowrap}
.cgIA-thread{height:min(330px,43vh);min-height:220px;overflow:auto;padding:14px 7px;background:#f4f8fb;border:1px solid #e0eaf0;border-radius:12px;margin:12px 0;display:flex;flex-direction:column;gap:12px}
.cgIA-bubble{padding:10px 12px;border-radius:13px;max-width:90%;font-size:13px;line-height:1.55;box-shadow:0 2px 7px #15354a09;overflow-wrap:anywhere}
.cgIA-bubble span{display:block;font-size:10px;font-weight:900;margin-bottom:5px;opacity:.78}
.cgIA-bubble p{margin:0;white-space:pre-wrap}.cgIA-assistant{align-self:flex-start;background:#fff;color:#26465b;border:1px solid #dce9f0;border-bottom-left-radius:3px}.cgIA-user{align-self:flex-end;background:#125c80;color:#fff;border-bottom-right-radius:3px}
.cgIA-quick{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.cgIA-root .cgIA-quick button{background:#edf6f9;color:#145677;font-size:11px;font-weight:700;padding:7px 10px;border-radius:20px}
.cgIA-composer{border:1px solid #bad5e3;background:#fcfeff;border-radius:13px;padding:8px}.cgIA-composer textarea{min-height:68px;border:0;margin:0;resize:vertical;padding:7px!important;background:transparent!important;box-shadow:none!important;outline:none}
.cgIA-send-row{display:flex;gap:8px;justify-content:flex-end;align-items:center}.cgIA-send-row button{font-size:12px;padding:8px 14px}
.cgIA-extras{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:10px}.cgIA-extras label{margin:0;font-weight:500}.cgIA-extras label:first-child{display:flex;align-items:center;gap:7px}.cgIA-extras select{margin:0;width:auto;padding:7px}.cgIA-extras .cgIA-check{display:flex;align-items:center;gap:6px;font-size:11px;flex:1;min-width:150px}.cgIA-extras input{width:15px;height:15px;margin:0}
.cgIA-command-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:10px;color:#70899b}.cgIA-command-footer button{font-size:11px;padding:7px 10px}
.cgIA-doc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:0 0 10px}.cgIA-doc-head h2{margin:0}.cgIA-doc-head p{margin:4px 0 0;color:#618095;font-size:12px;font-weight:650}.cgIA-doc-controls{display:flex;align-items:center;gap:7px;font-size:11px;color:#59788b}.cgIA-root .cgIA-doc-controls button{padding:6px 11px}
.cgIA-preview-frame{height:min(525px,64vh);min-height:330px;border:1px solid #cfdee8;border-radius:12px;background:#e7edf2;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:12px;gap:8px}
.cgIA-preview-frame img{display:block;width:100%;height:auto;max-width:700px;object-fit:contain;box-shadow:0 6px 20px #1a3a5233;background:white;flex-shrink:0}
.cgIA-preview-note{font-size:10px;color:#526879;line-height:1.5;text-align:center;max-width:630px;padding-bottom:7px}
.cgIA-preview-placeholder,.cgIA-preview-loading,.cgIA-preview-error{margin:auto;text-align:center;max-width:360px;color:#5f7688;font-size:13px;padding:20px}.cgIA-preview-error{color:#a34b32}
.cgIA-staging{border-top:1px solid #e0ebf1;margin-top:14px;padding-top:13px}.cgIA-staging h2{margin:0 0 10px}.cgIA-empty{font-size:12px;color:#738899;line-height:1.5}
.cgIA-change-head{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:6px 0}.cgIA-change-head span{color:#b7721e;font-size:11px}.cgIA-change-list{display:grid;gap:4px;max-height:145px;overflow:auto;margin:8px 0 14px}.cgIA-change-list>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;border-bottom:1px solid #eaf0f4;padding:8px 5px}.cgIA-change-list strong{text-align:right;max-width:57%;overflow-wrap:anywhere}
.cgIA-staging .cgIA-actions{margin-top:13px}
@media(max-width:1150px){.cgIA-workspace{grid-template-columns:minmax(0,1fr)}.cgIA-thread{height:260px}.cgIA-preview-frame{height:510px}}
@media(max-width:640px){.cgIA-root .cgIA-chat-card,.cgIA-root .cgIA-document-card{padding:11px!important}.cgIA-preview-frame{height:400px;min-height:275px}.cgIA-no-ai{white-space:normal}.cgIA-doc-head{align-items:flex-start}}

/* V39.5.7: end-to-end edited invoice automation, no route switch */
.cgIA-staging .cgIA-actions{display:flex;flex-wrap:wrap;gap:9px}
.cgIA-root #cgIAReviewBtn{background:#08648a;color:#fff;font-weight:800;flex:1;min-width:175px}
.cgIA-root #cgIAReviewBtn:disabled{opacity:.5;cursor:not-allowed}
.cgIA-root #cgIASaveDraft{background:#e6f2f7;color:#155571;font-weight:750}
.cgIA-validation-warning{background:#fff7ed;border:1px solid #f0caa4;color:#923d16;padding:10px;border-radius:9px;font-size:12px;line-height:1.5}
.cgIA-preview-note{font-weight:650;color:#245a70}

/* V39.5.8: template-aware comprehensive mapped fields & QR readiness */
.cgIA-field-panel{border:1px solid #cfdee7;border-radius:13px;padding:12px;margin:6px 0 15px;background:#f8fbfd}
.cgIA-field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.cgIA-field-heading h2{margin:0;font-size:14px}.cgIA-field-heading small{font-size:10px;color:#617b8d}
.cgIA-inventory-summary,.cgIA-qr-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;margin-bottom:8px}
.cgIA-inventory-summary span,.cgIA-qr-head span{font-size:11px;color:#577b90}
.cgIA-inventory-help{font-size:11px;color:#587789;line-height:1.45;margin:4px 0 10px}
.cgIA-fields-scroll{max-height:325px;overflow-y:auto;border:1px solid #e0eaf0;border-radius:10px;background:#fff}
.cgIA-field-row{display:grid!important;grid-template-columns:minmax(110px,1fr) minmax(110px,1.2fr) auto;gap:7px;align-items:center;margin:0!important;padding:7px 9px;border-bottom:1px solid #e6eef3;font-size:11px!important}
.cgIA-field-row>span:first-child{min-width:0;overflow-wrap:anywhere;color:#1e4c64}.cgIA-field-row small{display:block;font-size:9px;color:#728da0;font-weight:450}
.cgIA-field-row input{min-width:0;max-width:100%;width:100%;box-sizing:border-box;border:1px solid #cadde7;border-radius:7px;padding:7px 8px;background:#fff;color:#183a51;font-size:11px}
.cgIA-field-row input:disabled{background:#edf3f7;color:#738a9a}.cgIA-field-state{font-size:10px;font-weight:650;color:#597b90}
.cgIA-root #cgIAApplyFields{width:100%;margin-top:10px;padding:9px 8px;background:#0e6584;color:#fff;font-size:11px}
.cgIA-calc{border-top:1px solid #d9e6ed;margin-top:13px;padding-top:12px}.cgIA-calc label{margin-bottom:4px}.cgIA-calc select{font-size:11px;padding:8px}.cgIA-calc small{display:block;line-height:1.5;color:#678399;font-size:10px;margin-top:7px}
.cgIA-qr-head{border-bottom:1px solid #e4eef3;padding-bottom:8px}.cgIA-qr-ready{background:#eff9f4;color:#256c55;border-radius:8px;padding:9px;font-size:11px}
.cgIA-qr-amounts{display:flex;gap:10px;flex-wrap:wrap;border:1px solid #e0eaf1;padding:9px;border-radius:8px;margin:8px 0;font-size:11px}
@media(max-width:550px){.cgIA-field-row{grid-template-columns:minmax(80px,1fr) minmax(120px,1.35fr)}.cgIA-field-state{grid-column:2}}

/* V39.5.10: gross-total-first QR synchronization and saved supplier identity */
.cgIA-qr-editor{border:1px solid #b9dbe9;background:#f1f9fc;border-radius:12px;padding:12px;margin:12px 0}
.cgIA-qr-editor h3{font-size:13px;color:#174966;margin:0 0 6px}.cgIA-financial-label{font-size:11px;color:#174966;font-weight:800;display:block}
.cgIA-financial-label input{display:block;width:100%;box-sizing:border-box;margin:6px 0 8px;border:1px solid #b1cddc;border-radius:7px;font-size:14px;padding:10px;color:#12384b;background:#fff}
.cgIA-seller-box{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #d0e0e7;border-radius:9px;padding:10px;margin:10px 0;font-size:11px}
.cgIA-seller-box span{font-size:13px;font-weight:800;color:#1a465b}.cgIA-seller-box small{font-size:10px;color:#5d7e8f}
.cgIA-confirm{display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.5;margin:9px 0;font-weight:650}
.cgIA-confirm input{width:16px;height:16px;flex:0 0 16px}
.cgIA-root #cgIAQrApply{width:100%;background:#0c6288;color:#fff;font-size:11px;padding:9px}
.cgIA-proof-toggle{display:flex;gap:7px;align-items:center;font-size:11px;color:#567489;margin:4px 0 9px}.cgIA-proof-toggle input{width:15px;height:15px}

/* V39.5.12: automatic bold receipt-value matching; native Studio controls remain unchanged. */
.cgIA-font-match{font-weight:700;color:#173c4c;background:#edf8f4;border:1px solid #cce8de;border-radius:8px;padding:9px 10px;line-height:1.35}

/* V39.5.13 — automation-only field font/position tool. Original invoice master locked. */
.cgIA-style-editor{background:#f6fafc;border:1px solid #c8dce8;border-radius:11px;padding:12px;margin:10px 0 13px;}
.cgIA-style-title{display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
.cgIA-style-title h3{font-size:14px;color:#17475e;margin:0}.cgIA-style-title small{font-size:10px;color:#627e92}
.cgIA-style-label{display:block;font-size:11px;font-weight:750;color:#28566d;margin:0 0 9px}
.cgIA-style-label select{display:block;margin:5px 0 0;max-width:100%;width:100%;padding:8px;border-radius:8px}
.cgIA-style-label input[type=range]{width:100%;display:block;margin:5px 0 9px;accent-color:#0e7290}
.cgIA-style-label b{color:#036384}.cgIA-style-disabled{opacity:.65}
.cgIA-style-moving{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;margin:9px 0}.cgIA-style-moving small{display:block;font-size:10px;color:#647c8b}
.cgIA-style-moving label{display:flex;gap:5px;align-items:center;margin:0;font-size:10px}.cgIA-style-moving select{width:auto;max-width:100px;padding:5px}
.cgIA-style-arrows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:7px 0 10px}
.cgIA-root .cgIA-style-arrows button,.cgIA-root .cgIA-style-actions button{font-size:11px;padding:7px 5px;background:#e5f1f6;color:#19516c;min-width:0}
.cgIA-style-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.cgIA-style-help{font-size:10px;line-height:1.5;color:#5c7689;margin:9px 0}
.cgIA-root .cgIA-style-render{width:100%;font-size:11px;font-weight:800;padding:9px;background:#0b6385;color:white}
.cgIA-field-state{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.cgIA-root .cgIA-field-adjust{font-size:9px;padding:4px 6px;background:#e4f4f9;color:#18536b;border:1px solid #c6e0e9;border-radius:7px}
.cgIA-visual{position:relative;width:100%;max-width:700px;flex-shrink:0;box-shadow:0 6px 20px #1a3a5233;background:#fff}
.cgIA-preview-frame .cgIA-visual img{width:100%;display:block;box-shadow:none;max-width:none}
.cgIA-style-highlight{position:absolute;border:2px dashed #0795b3;outline:1px solid #fff;box-shadow:0 0 0 3px #0998ad33;border-radius:3px;pointer-events:none;box-sizing:border-box}
@media(max-width:640px){.cgIA-style-arrows{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V39.5.14 — compact editor: <=40px collapsed instead of a full settings form.
   Expanded tools float above the PDF and therefore do not shrink invoice preview. */
.cgIA-root .cgIA-style-editor{position:relative;z-index:4;box-sizing:border-box;margin:5px 0 7px!important;padding:3px 5px!important;border-radius:9px!important;background:#f4f9fc!important;min-height:0!important}
.cgIA-style-compact{height:31px;display:flex;align-items:center;gap:8px;min-width:0}
.cgIA-style-compact-name{flex:0 0 auto;font-size:11px;font-weight:800;color:#1d4c64;white-space:nowrap}
.cgIA-style-compact-status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#557185}
.cgIA-root .cgIA-style-toggle{padding:5px 9px!important;font-size:10px!important;min-height:26px!important;border-radius:7px!important;background:#e4f2f8!important;color:#154d68!important;border:1px solid #b9d6e2!important;white-space:nowrap}
.cgIA-style-popover[hidden]{display:none!important}
.cgIA-style-popover{position:absolute;top:calc(100% + 5px);right:0;width:min(480px,100%);max-width:calc(100vw - 40px);box-sizing:border-box;z-index:99;background:#fff;border:1px solid #a9c9d8;border-radius:12px;padding:12px;box-shadow:0 14px 40px #152f4552;max-height:min(67vh,540px);overflow-y:auto;overscroll-behavior:contain}
.cgIA-style-popover .cgIA-style-title{margin-bottom:9px}
.cgIA-style-popover .cgIA-style-help{margin:7px 0}
@media(max-width:640px){.cgIA-root .cgIA-style-editor{margin-bottom:8px!important}.cgIA-style-compact-name{font-size:10px}.cgIA-style-popover{width:100%;max-height:57vh}.cgIA-style-compact-status{font-size:9px}}

/* V39.5.15 — no manual Update Preview buttons: native live refresh feedback */
.cgIA-root .cgIA-live-hint{font-size:10px;color:#347086;margin:6px 2px 3px;line-height:1.4}
.cgIA-root .cgIA-field-row input[aria-invalid="true"]{border-color:#c84d46;background:#fff7f4}
.cgIA-root .cgIA-preview-frame{position:relative}
.cgIA-root .cgIA-preview-frame.cgIA-live-updating::after{content:"Updating invoice…";position:sticky;align-self:flex-end;bottom:8px;margin-top:-32px;background:#145a78ed;color:#fff;border-radius:30px;padding:6px 12px;font-size:11px;box-shadow:0 3px 10px #0002;z-index:3;pointer-events:none}

/* V39.5.16 — always-visible, fully INLINE mini toolbar at top of invoice.
   Never opens a large popup. Sticks while the invoice page scrolls. */
.cgIA-root .cgIA-document-card{overflow:visible!important;}
.cgIA-root .cgIA-style-editor{
 position:sticky!important;top:95px!important;z-index:8!important;
 margin:3px 0 8px!important;padding:4px 6px!important;min-height:0!important;
 border:1px solid #bfd6e1!important;border-radius:8px!important;
 background:#f5fbfe!important;box-shadow:0 2px 7px #17354a20!important;
 box-sizing:border-box!important;
}
.cgIA-style-inline{display:flex;flex-direction:column;gap:3px;min-width:0;width:100%;}
.cgIA-style-row{display:flex;align-items:center;gap:5px;min-height:25px;min-width:0;flex-wrap:nowrap;}
.cgIA-style-row-main .cgIA-style-compact-name{font-size:10px;white-space:nowrap;flex-shrink:0;}
.cgIA-root .cgIA-style-field-select{
 flex:1 1 110px;min-width:80px;max-width:210px;width:100%;height:24px!important;
 margin:0!important;padding:2px 19px 2px 5px!important;
 font-size:10px!important;border-radius:5px!important;
 background:#fff;color:#214860;
}
.cgIA-root .cgIA-style-range{display:flex!important;align-items:center;flex:1 1 90px;min-width:0;gap:3px!important;margin:0!important;font-size:10px!important;color:#234e64!important;white-space:nowrap;}
.cgIA-root .cgIA-style-range input[type=range]{flex:1;min-width:36px;width:100%;max-width:105px;height:14px!important;margin:0!important;padding:0!important;accent-color:#137696;cursor:ew-resize;}
.cgIA-style-range output{display:inline-block;min-width:34px;font-size:9px;color:#1d5c79;font-weight:800;white-space:nowrap;}
.cgIA-style-row-actions{justify-content:flex-start;}
.cgIA-style-move-label{font-weight:750;font-size:10px;color:#234e64;white-space:nowrap;}
.cgIA-style-mini-arrows,.cgIA-style-mini-actions{display:flex;align-items:center;gap:3px;white-space:nowrap;min-width:0;}
.cgIA-root .cgIA-style-mini-arrows button,.cgIA-root .cgIA-style-mini-actions button{
 min-width:24px!important;min-height:23px!important;height:23px!important;
 padding:2px 5px!important;margin:0!important;
 font-size:10px!important;line-height:1!important;border-radius:5px!important;
 background:#e6f2f7!important;color:#174b64!important;border:1px solid #bbd5df!important;
}
.cgIA-root .cgIA-style-mini-actions button{font-size:9px!important;padding:2px 5px!important;}
.cgIA-root .cgIA-style-step-label{display:flex!important;align-items:center;gap:3px!important;margin:0!important;font-size:9px!important;font-weight:700;white-space:nowrap;color:#45697b;}
.cgIA-root #cgIAStyleStep{width:49px!important;min-width:49px;height:23px!important;margin:0!important;padding:1px 2px!important;font-size:10px!important;border-radius:4px!important;}
.cgIA-style-mini-actions{margin-left:auto;}
.cgIA-root .cgIA-style-inline button:disabled{opacity:.42!important;}
/* Keep controls unobstructed on narrow screens by scrolling the toolbar itself,
   not by expanding vertically over the invoice. */
@media(max-width:800px){
 .cgIA-root .cgIA-style-editor{top:81px!important;}
 .cgIA-style-row{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;}
 .cgIA-style-row-main .cgIA-style-field-select{flex:0 0 140px;}
 .cgIA-root .cgIA-style-range{flex:0 0 130px;}
 .cgIA-style-mini-actions{margin-left:0;}
}
@media(max-width:480px){.cgIA-root .cgIA-style-editor{top:68px!important;padding:3px!important;}}
