.postage-modal__dialog{width:min(1320px,calc(100% - 24px));margin:12px auto;max-height:calc(100vh - 24px);border-radius:8px}.postage-modal__header{display:flex;align-items:center;gap:16px;padding:14px 20px}.postage-modal__note{flex:1;margin:0 18px;color:#64748b;font-size:15px;line-height:1.35;text-align:center;white-space:normal}.postage-modal__heading,.postage-section__head{display:flex;align-items:center;gap:12px}.postage-modal__heading p,.postage-section__head p{margin:3px 0 0;color:#64748b;font-size:12px}.postage-modal__icon,.postage-section__badge{display:grid;place-items:center;width:36px;height:36px;flex:0 0 auto;border-radius:50%;background:#e8f7f1;color:#059669}.postage-summary{position:sticky;top:65px;z-index:2;display:grid;grid-template-columns:minmax(120px,1fr) minmax(190px,1.5fr) repeat(2,minmax(75px,.65fr)) repeat(5,minmax(85px,.7fr));gap:1px;overflow-x:auto;border-bottom:1px solid #e5e7eb;background:#e5e7eb}.postage-summary.has-reverse{grid-template-columns:minmax(120px,1fr) minmax(190px,1.5fr) repeat(2,minmax(75px,.65fr)) repeat(5,minmax(85px,.7fr)) minmax(135px,.9fr)}.postage-summary__reverse[hidden]{display:none}.postage-summary div{display:grid;gap:3px;padding:10px 14px;background:#f8fafc}.postage-summary small{color:#64748b;font-size:11px}.postage-summary strong{font-size:13px;color:#172033;overflow-wrap:anywhere}.postage-modal__body{display:grid;gap:14px;padding:14px 18px 86px;background:#f5f7fa}.postage-summary__reverse{align-content:center}.postage-switch{display:flex;align-items:center;gap:9px;white-space:nowrap}.postage-switch input{position:absolute;opacity:0}.postage-switch span{position:relative;width:42px;height:24px;border-radius:12px;background:#cbd5e1;transition:.2s}.postage-switch span:after{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;content:"";transition:.2s}.postage-switch input:checked+span{background:#f2c400}.postage-switch input:checked+span:after{transform:translateX(18px)}.postage-parties{display:grid;grid-template-columns:1fr 1fr;gap:14px}.postage-section{border:1px solid #dce2ea;border-radius:7px;background:#fff;overflow:hidden}.postage-section__head{padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#fbfcfd}.postage-section__head h3{margin:0;color:#172033;font-size:16px}.postage-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}.postage-field{display:grid;gap:5px;min-width:0}.postage-field--wide{grid-column:span 2}.postage-field--uf{max-width:180px}.postage-field span,.postage-xml span{color:#334155;font-size:12px;font-weight:700}.postage-field input,.postage-xml input{box-sizing:border-box;width:100%;height:42px;padding:0 11px;border:1px solid #cfd6df;border-radius:6px;background:#fff;color:#111827;font:14px Inter,Arial,sans-serif}.postage-field input:focus,.postage-xml input:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.postage-field input[readonly]{background:#f3f5f7;color:#475569}.postage-field input.is-invalid,.postage-xml input.is-invalid{border-color:#dc2626;background:#fff7f7;box-shadow:0 0 0 3px rgba(220,38,38,.1)}.postage-field-error{display:block;color:#b91c1c;font-size:11px;font-weight:700}.postage-field input:invalid:not(:placeholder-shown){border-color:#dc2626}.postage-document__head{position:relative}.postage-total{margin-left:auto;display:grid;gap:2px;text-align:right}.postage-total small{color:#64748b;font-size:11px}.postage-total strong{font-size:17px}.postage-segmented{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid #e5e7eb}.postage-segmented label input{position:absolute;opacity:0}.postage-segmented span{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid #d5dce5;border-radius:6px;color:#334155;font-size:13px;font-weight:700;cursor:pointer}.postage-segmented input:checked+span{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.postage-items{display:grid;gap:8px;padding:12px 16px 8px}.postage-item{display:grid;grid-template-columns:minmax(240px,2fr) minmax(100px,.55fr) minmax(140px,.7fr) 40px;align-items:end;gap:10px;padding:10px;border:1px solid #e2e8f0;border-radius:6px;background:#fbfcfd}.postage-item__remove{margin-bottom:1px;color:#b91c1c}.postage-document [data-add-declaration]{margin:0 16px 14px}.postage-xml{padding:14px 16px}.postage-xml label{display:grid;gap:8px}.postage-xml input{height:auto;padding:10px}.postage-xml small{display:block;margin-top:8px;color:#64748b}.postage-message{display:none;padding:10px 12px;border-radius:6px;font-size:13px;font-weight:700}.postage-message.is-error{display:block;border:1px solid #fecaca;background:#fef2f2;color:#b91c1c}.postage-message.is-success{display:block;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}.postage-modal__footer{position:sticky;bottom:0;z-index:3;display:flex;justify-content:flex-end;gap:10px;padding:12px 18px;border-top:1px solid #e5e7eb;background:#fff}.postage-modal__footer .ui-button{min-height:44px}@media(max-width:980px){.postage-summary,.postage-summary.has-reverse{position:static;grid-template-columns:repeat(3,minmax(130px,1fr))}.postage-parties{grid-template-columns:1fr}.postage-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.postage-modal__dialog{width:100%;max-height:100vh;margin:0;border-radius:0}.postage-modal__header{gap:10px;padding:10px 12px}.postage-modal__note{display:none}.postage-summary,.postage-summary.has-reverse{grid-template-columns:1fr 1fr}.postage-modal__body{padding:10px 10px 82px}.postage-fields{grid-template-columns:1fr;padding:10px}.postage-field--wide{grid-column:auto}.postage-item{grid-template-columns:1fr 1fr}.postage-field--description{grid-column:1/-1}.postage-item__remove{align-self:end}.postage-segmented{display:grid}.postage-modal__footer{padding:10px}.postage-modal__footer .ui-button{flex:1}}
.postage-generation{display:flex;align-items:flex-start;gap:14px;margin:0 0 6px;padding:16px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;color:#172033}.postage-generation[hidden]{display:none}.postage-generation__icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border-radius:50%;background:#dbeafe;color:#1d4ed8}.postage-generation__icon span{width:20px;height:20px;border:3px solid rgba(37,99,235,.25);border-top-color:#2563eb;border-radius:50%;animation:postage-spin .8s linear infinite}.postage-generation.is-success{border-color:#bbf7d0;background:#f0fdf4}.postage-generation.is-success .postage-generation__icon{background:#dcfce7;color:#15803d}.postage-generation.is-success .postage-generation__icon span{width:auto;height:auto;border:0;animation:none}.postage-generation.is-success .postage-generation__icon span:before{content:"✓";font-size:22px;font-weight:800}.postage-generation.is-error{border-color:#fecaca;background:#fef2f2}.postage-generation.is-error .postage-generation__icon{background:#fee2e2;color:#b91c1c}.postage-generation.is-error .postage-generation__icon span{width:auto;height:auto;border:0;animation:none}.postage-generation.is-error .postage-generation__icon span:before{content:"!";font-size:22px;font-weight:800}.postage-generation__body{min-width:0;flex:1}.postage-generation__body h3{margin:0 0 4px;font-size:16px}.postage-generation__body p{margin:0;color:#475569;font-size:13px}.postage-generation__bar{height:6px;margin-top:12px;overflow:hidden;border-radius:999px;background:rgba(37,99,235,.16)}.postage-generation__bar span{display:block;width:20%;height:100%;border-radius:999px;background:#2563eb;transition:width .25s ease}.postage-generation.is-success .postage-generation__bar span{width:100%;background:#16a34a}.postage-generation.is-error .postage-generation__bar span{width:100%;background:#dc2626}.postage-generation__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}@keyframes postage-spin{to{transform:rotate(360deg)}}
.postage-form.is-label-flow>.postage-summary,.postage-form.is-label-flow .postage-parties,.postage-form.is-label-flow .postage-document,.postage-form.is-label-flow .postage-message,.postage-form.is-label-flow>.postage-modal__footer{display:none}.postage-form.is-label-flow .postage-modal__body{min-height:calc(100vh - 110px);padding:22px;background:#f5f7fa}.postage-form.is-label-processing .postage-modal__body{display:grid;place-content:center}.postage-form.is-label-processing .postage-generation{width:min(820px,100%)}
/* Postage label output center */
.postage-form.is-label-ready .postage-modal__body{display:block;height:calc(100vh - 92px);min-height:0;padding:14px;overflow:hidden}.postage-form.is-label-ready .postage-generation{display:none}.postage-label-preview{height:100%;min-height:0;overflow:hidden}.postage-label-preview[hidden]{display:none}.postage-label-workspace{display:grid;grid-template-columns:minmax(520px,48%) minmax(0,52%);height:100%;min-height:0;overflow:hidden;border:1px solid #dce2ea;border-radius:8px;background:#fff}.postage-label-tools{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border-right:1px solid #dce2ea;background:#f8fafc}.postage-label-tools header,.postage-label-viewer header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e5e7eb;background:#fff}.postage-label-tools h3,.postage-label-viewer h3{margin:0 0 2px;color:#172033;font-size:16px}.postage-label-tools p,.postage-label-viewer p{margin:0;color:#64748b;font-size:12px}.postage-label-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.postage-label-option{display:grid;grid-template-rows:58px auto;align-content:start;justify-items:center;gap:9px;min-width:0;min-height:128px;padding:10px 6px;border:1px solid #dce2ea;border-radius:6px;background:#fff;color:#172033;text-align:center;cursor:pointer;transition:.16s}.postage-label-option:hover{border-color:#94a3b8;box-shadow:0 4px 12px rgba(15,23,42,.07)}.postage-label-option:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.postage-label-option.is-selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.08)}.postage-label-option>span:nth-child(2){display:grid;gap:3px;min-width:0}.postage-label-option strong{font-size:12px;white-space:nowrap}.postage-label-option small{color:#64748b;font-size:10px;line-height:1.25}.postage-label-option__icon{display:grid;place-items:center;width:48px;height:58px;border:2px solid #172033;border-radius:2px;background:#fff;color:#2563eb;font-size:19px}.postage-label-option.is-selected .postage-label-option__icon{border-color:#2563eb;background:#fff}.postage-label-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding:0 14px 8px}.postage-label-actions .ui-button{justify-content:center;white-space:nowrap}.postage-label-actions [data-label-action=whatsapp]{color:#15803d}.postage-label-feedback{min-height:26px;margin:0;padding:0 14px 9px;color:#166534;font-size:11px;font-weight:700}.postage-label-feedback.is-error{color:#b91c1c}.postage-label-viewer{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden;background:#e5e7eb}.postage-label-viewer header>span{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid #dce2ea;border-radius:5px;background:#f8fafc;color:#334155;font-size:11px;font-weight:700;white-space:nowrap}.postage-label-frame-wrap{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;padding:34px 28px;background:#e5e7eb}.postage-label-frame-wrap img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center;border:0;background:transparent;filter:drop-shadow(0 6px 10px rgba(15,23,42,.2))}@media(max-width:1100px){.postage-label-workspace{grid-template-columns:minmax(430px,48%) minmax(0,52%)}.postage-label-option strong{white-space:normal}}@media(max-width:900px){.postage-form.is-label-ready .postage-modal__body{height:auto;min-height:calc(100vh - 76px);overflow:auto}.postage-label-workspace{grid-template-columns:1fr;height:auto;overflow:visible}.postage-label-tools{border-right:0;border-bottom:1px solid #dce2ea}.postage-label-options{overflow-x:auto;grid-template-columns:repeat(3,145px)}.postage-label-viewer{height:580px}.postage-label-frame-wrap{height:520px}}@media(max-width:640px){.postage-label-options{padding:10px}.postage-label-actions{padding:0 10px 8px}.postage-label-tools header,.postage-label-viewer header{padding:10px}.postage-label-viewer header{display:block}.postage-label-viewer header>span{margin-top:7px}.postage-label-viewer{height:480px}.postage-label-frame-wrap{height:420px;padding:18px}.postage-label-frame-wrap img{max-width:100%;max-height:100%}}
.postage-form.is-label-ready .postage-label-frame-wrap img{max-width:96%;max-height:96%}@media(max-width:640px){.postage-form.is-label-ready .postage-label-frame-wrap img{max-width:96%;max-height:96%}}
.is-label-pdf-loading [data-label-format],.is-label-pdf-loading [data-label-action]{cursor:wait;opacity:.72}.postage-label-option.is-loading,.postage-label-actions .ui-button.is-loading{position:relative;opacity:1}.postage-label-option.is-loading .postage-label-option__icon i:before,.postage-label-actions .ui-button.is-loading i:before{content:"\f110";font-family:"Font Awesome 6 Free";font-weight:900}.postage-label-option.is-loading .postage-label-option__icon i,.postage-label-actions .ui-button.is-loading i{animation:postage-spin .8s linear infinite}
.postage-label-info{margin:auto 14px 12px;color:#64748b;font-size:14px;line-height:1.35}.postage-label-info[hidden]{display:none}
.postage-label-actions .postage-whatsapp-button{border:1px solid #1fb85a;background:#25d366;color:#fff}.postage-label-actions .postage-whatsapp-button:hover,.postage-label-actions .postage-whatsapp-button:focus{background:#1fb85a;color:#fff;opacity:1}.postage-label-actions .postage-whatsapp-button img{width:18px;height:18px;flex:0 0 auto}.postage-label-actions .postage-whatsapp-button.is-loading img{animation:postage-spin .8s linear infinite}
.postage-balance-pix{display:grid;grid-template-columns:156px minmax(0,1fr);gap:16px;width:100%;margin-top:4px}.postage-balance-pix__qr{display:grid;place-items:center;min-height:156px;border:1px solid #dbeafe;border-radius:8px;background:#fff}.postage-balance-pix__qr img{display:block;width:132px;height:132px;object-fit:contain}.postage-balance-pix__qr span{color:#64748b;font-size:13px;font-weight:700}.postage-balance-pix__content{display:grid;gap:10px;min-width:0}.postage-balance-pix__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.postage-balance-pix__grid span,.postage-balance-pix__grid strong{display:block;min-width:0;padding:8px 10px;border:1px solid #dbeafe;background:#fff}.postage-balance-pix__grid span{border-bottom:0;border-radius:7px 7px 0 0;color:#64748b;font-size:11px;font-weight:700}.postage-balance-pix__grid strong{margin-top:-8px;border-radius:0 0 7px 7px;color:#172033;font-size:14px}.postage-balance-pix__content small{color:#7c2d12;font-size:12px}.postage-balance-pix textarea{box-sizing:border-box;width:100%;min-height:70px;padding:10px;border:1px solid #cfd6df;border-radius:7px;background:#fff;color:#172033;font:12px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}.postage-balance-pix__actions{display:flex;flex-wrap:wrap;gap:8px}.postage-balance-pix__actions .ui-button{justify-content:center}@media(max-width:720px){.postage-balance-pix{grid-template-columns:1fr}.postage-balance-pix__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.postage-balance-pix__qr{min-height:136px}.postage-balance-pix__qr img{width:116px;height:116px}}
