/* Linguagem visual única para ações, editores e detalhes. */
:root{--qg-shadow:0 24px 90px #08122135;--qg-radius:20px}
.btn{min-height:40px;padding:10px 17px;border-radius:10px;border:1px solid #dce3ed;background:#fff;color:#273b56;font-size:12px;font-weight:700;box-shadow:0 1px 2px #10233e05;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}.btn:hover{background:#f0f4f9;border-color:#bccbdf;box-shadow:0 3px 10px #10233e0a;transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn.red{background:#d62839;color:white;border-color:#d62839;box-shadow:0 4px 12px #d6283920}.btn.red:hover{background:#bb2031;border-color:#bb2031}.btn.sm{min-height:34px;padding:7px 12px;font-size:11px}.btn.danger{color:#b7273b;background:#fff5f5;border-color:#f2cdd2}.btn.danger:hover{background:#ffe7eb;border-color:#d95b6b}.btn:disabled{transform:none;box-shadow:none;cursor:not-allowed;opacity:.5}
dialog.qg-window{padding:28px;width:min(780px,calc(100vw - 48px));max-width:calc(100vw - 24px);max-height:90dvh;border:1px solid #e0e6ee;border-radius:22px;background:#fff;color:#172b46;box-shadow:var(--qg-shadow);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd5e3 transparent;animation:qg-window-in .2s ease-out}dialog.qg-window::backdrop{background:#08142691;backdrop-filter:blur(5px)}dialog.qg-window>header{display:flex;align-items:flex-start;gap:14px;margin:0 0 25px;padding:0 0 22px;border-bottom:1px solid #edf0f5}dialog.qg-window>header .close{flex:none;width:34px;height:34px;border:1px solid #e7ecf3;background:#f7f9fc;color:#7a899d;border-radius:10px;font:400 22px Arial;display:grid;place-items:center;margin-left:auto;transition:background .15s}dialog.qg-window>header .close:hover{background:#e9eef6;color:#182f4d}.qg-window-heading{min-width:0;flex:1}.qg-window-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border:1px solid #e0e7f0;border-radius:13px;background:#f2f5fa;color:#335379}.qg-window-icon svg{width:23px;height:23px}.qg-window-eyebrow{font:700 8px/1.5 'DM Sans',sans-serif;letter-spacing:1.65px;color:#8796a9;display:block;margin-bottom:7px}.qg-window h2{font:800 29px/1.1 'Barlow Condensed',Arial,sans-serif;letter-spacing:.2px;text-transform:none;margin:0}.qg-window-description{font-size:11px;color:#7c899c;line-height:1.65;margin:8px 0 0;max-width:540px}.qg-window form{gap:20px;min-width:0}.qg-window form>*,.qg-window .field,.qg-window fieldset{min-width:0;max-width:100%}.qg-window .field>span{font:700 11px 'DM Sans',sans-serif;color:#4b607c;margin-bottom:3px;letter-spacing:.1px}.qg-window .field input,.qg-window .field textarea{border:1px solid #dfe6ef;border-radius:10px;background:#f8fafc;padding:12px 14px;font-size:13px;transition:box-shadow .15s,border-color .15s}.qg-window .field input:focus,.qg-window .field textarea:focus{outline:none;background:white;border-color:#789bc7;box-shadow:0 0 0 3px #3e75b412}.qg-window textarea{min-height:95px;resize:vertical}.qg-window .notice{border:1px solid #dce7f5;border-radius:12px;background:#f4f8fe;color:#567093;font-size:11px;line-height:1.7}.qg-window .editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;position:sticky;bottom:-28px;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid #e9eef5;padding:18px 0 0;margin-top:8px;z-index:4}.qg-window .error-text:empty{display:none}.qg-window .error-text:not(:empty){font-size:12px;padding:12px 14px;border-radius:10px;background:#fff2f3;border:1px solid #f1cfd4}.qg-window .qg-choice-source{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;pointer-events:none;clip-path:inset(50%)}.qg-choices{min-width:0}.qg-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(125px,100%),1fr));gap:8px}.qg-choice{display:flex;align-items:center;gap:9px;min-width:0;min-height:47px;text-align:left;padding:11px 13px;border:1px solid #e0e6ef;border-radius:11px;background:#fff;color:#6b7c91;font:500 11px/1.5 'DM Sans',sans-serif;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.qg-choice:hover{border-color:#9cb4d1;background:#f8fafd}.qg-choice.selected{background:#eff4fb;border-color:#557eaf;color:#24476f;box-shadow:0 0 0 1px #557eaf18}.qg-choice-mark{flex:0 0 15px;width:15px;height:15px;border:1.5px solid #ccd6e3;border-radius:50%;display:grid;place-items:center}.qg-choice.selected .qg-choice-mark{border-color:#466d9f;background:#466d9f}.qg-choice.selected .qg-choice-mark:after{content:'';width:5px;height:5px;background:white;border-radius:50%}.qg-choice[hidden]{display:none!important}.qg-choices.searchable{border:1px solid #e0e6ef;background:#fff;border-radius:12px;padding:9px}.qg-choices.searchable .qg-choice-grid{max-height:220px;overflow:auto;scrollbar-width:thin;grid-template-columns:repeat(2,minmax(0,1fr))}.qg-choices.searchable .qg-choice{min-height:40px;border-color:transparent;background:#f7f9fc;font-size:11px}.qg-choices.searchable .qg-choice.selected{border-color:#557eaf;background:#eff4fb}.qg-choice-search{width:100%;border:0!important;background:white!important;font-size:12px!important;margin-bottom:9px;border-bottom:1px solid #e8edf5!important;border-radius:0!important;padding:7px 6px 12px!important}.qg-choices.invalid{outline:2px solid #d62839;outline-offset:3px;border-radius:12px}.qg-check{accent-color:#2e567f;width:16px;height:16px}.qg-window .permission-grid label{padding:12px;border:1px solid #e0e7ef;border-radius:10px;background:#f9fbfd}.qg-window .permission-grid label:has(input:checked){background:#eef4fb;border-color:#9bb4d3}.qg-window .photo-picker{border:1px dashed #b9c9dc;background:#f7f9fc;border-radius:15px;padding:20px}.qg-window .image-compare figure{padding:12px;background:#f6f8fb;border:1px solid #e6ecf4;border-radius:14px}.qg-window .image-compare figcaption{font-size:12px;margin-bottom:12px}.qg-window.frame-dialog{width:min(590px,calc(100vw - 32px))}.qg-window .btn-row{gap:9px;flex-wrap:wrap}.qg-window .full-receipt{border-radius:14px;border:1px solid #e2e8f0;background:#fcfdff}.qg-window .summary-line{font-size:12px;border-color:#edf1f6}.qg-window .form-grid{gap:18px}.qg-window .receipt-actions{padding:15px 0}.qg-window .check-field{font-size:12px;line-height:1.7}.qg-window .quote-lines{border:1px solid #e1e8f1;border-radius:13px;overflow:hidden}.qg-window .quote-line{padding:14px;background:#f9fbfe;border-bottom:1px solid #e4eaf3}.qg-window .quote-picker button{border-radius:10px}.modal.show{border:1px solid #e0e6ee;border-radius:22px;box-shadow:var(--qg-shadow);padding:30px}.modal.show .modalart{border-radius:16px;background:#f6f8fb}.modal.show .checkout{border-radius:11px;min-height:46px}.drawer{box-shadow:-14px 0 65px #14283e24}.drawer>header{border-bottom:1px solid #e7edf5;padding:24px}.draweritem{padding:18px 0}.drawer .checkout{min-height:46px;border-radius:11px}.qg-window .qg-danger-block{display:flex;gap:15px;border:1px solid #f1d1d6;background:#fff7f8;border-radius:14px;padding:20px;margin-bottom:4px}.qg-danger-block>span{font-size:25px;color:#bf3145}.qg-danger-block h3{font-size:17px;margin:0 0 8px;overflow-wrap:anywhere}.qg-danger-block p{font-size:12px;line-height:1.8;color:#876875;margin:0}.qg-window.is-danger .qg-window-icon{background:#fff0f3;border-color:#f0ccd3;color:#b62d43}
@keyframes qg-window-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@media(max-width:720px){dialog.qg-window{padding:20px;width:calc(100vw - 24px);max-height:94dvh;border-radius:18px}dialog.qg-window>header{gap:10px;padding-bottom:18px;margin-bottom:20px}.qg-window-icon{flex-basis:36px;height:36px;border-radius:10px}.qg-window-icon svg{width:20px;height:20px}.qg-window h2{font-size:25px}.qg-window-eyebrow{font-size:7px;letter-spacing:1.1px}.qg-window-description{font-size:10px}.qg-window .editor-actions{bottom:-20px;padding-top:14px}.qg-window .editor-actions .btn{font-size:11px;padding:10px 13px}.qg-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qg-choice{font-size:10px;padding:10px;gap:7px}.qg-window .field input{font-size:16px}.qg-window .image-compare{gap:8px}.modal.show{padding:23px}.qg-window .form-grid{grid-template-columns:1fr}.qg-window .qg-window-description{white-space:normal}.qg-window .btn-row .btn{flex:1}.qg-choices.searchable .qg-choice-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){dialog.qg-window{animation:none}.btn,.qg-choice{transition:none}}
@media print{dialog.qg-window{border:0;box-shadow:none}.qg-window>header,.qg-window-icon{display:none!important}}

.qg-choice>span:last-child{min-width:0;overflow-wrap:anywhere}.qg-choices.searchable .qg-choice-grid{grid-template-columns:minmax(0,1fr)}dialog.qg-window.product-editor{width:min(1060px,calc(100vw - 48px))}@media(max-width:720px){dialog.qg-window.product-editor{width:calc(100vw - 24px)}}
