.portal-nav{display:flex;align-items:center;gap:4px;padding:4px;background:#edf3f7;border:1px solid #d9e4eb;border-radius:12px}.portal-nav button{border:0;background:transparent;color:#557084;padding:10px 16px;border-radius:9px;font-family:inherit;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;transition:.18s ease}.portal-nav button:hover{color:#0d2a42;background:#fff}.portal-nav button.active{color:#fff;background:#0d2a42;box-shadow:0 5px 12px rgba(13,42,66,.18)}
.rem-workspace{height:calc(100vh - 65px);min-height:560px;padding:0 13px 12px!important;overflow:hidden}.rem-commandbar{display:flex;height:82px;align-items:flex-start;justify-content:space-between;gap:28px;padding-top:14px}.rem-page-title{padding-top:2px;color:#276650;font-size:13px;font-weight:800;letter-spacing:.11em;white-space:nowrap}.rem-steps{display:flex;align-items:flex-start;justify-content:flex-end;gap:13px}.rem-steps>i{padding-top:8px;color:#a8b8af;font-size:20px;font-style:normal}.rem-steps article{position:relative;display:grid;grid-template-columns:24px auto;grid-template-rows:30px 34px;align-items:center;column-gap:8px;min-width:160px;color:#65776f}.rem-steps article>span{display:grid;grid-row:1;place-items:center;width:24px;height:24px;border:1px solid #d7e2dc;border-radius:50%;background:#fff;color:#82938b;font-size:10px;font-weight:800}.rem-steps article>strong{grid-column:2;grid-row:1;color:#607168;font-size:12px;white-space:nowrap}.rem-steps article.active>span{border-color:#078268;background:#078268;color:#fff}.rem-steps article.active>strong,.rem-steps article.complete>strong{color:#075f49}.rem-steps article.complete>span{border-color:#9fdacb;background:#e6f7f1;color:#078268;font-size:0}.rem-steps article.complete>span::after{content:'✓';font-size:12px}.rem-stage-button{grid-column:1/3;grid-row:2;justify-self:center;height:34px;padding:0 15px;border:1px solid #9dccbd;border-radius:8px;background:#f8fcfa;color:#17694f;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}.rem-stage-button.primary{border-color:#91b9ab;background:#91b9ab;color:#fff}.rem-stage-button:disabled{opacity:.55;cursor:not-allowed}.rem-source-summary{position:absolute;top:31px;right:0;display:flex!important;max-width:210px;height:32px;align-items:center;gap:7px;padding:0 5px 0 9px;border:1px solid #c6ded5;border-radius:8px;background:#f7fcfa;white-space:nowrap}.rem-source-summary[hidden]{display:none!important}.rem-source-summary>strong{max-width:105px;overflow:hidden;color:#145540;font-size:10px;text-overflow:ellipsis}.rem-source-summary>small{display:none}.rem-source-summary button{width:24px;height:24px;border:0;border-radius:6px;background:#e4f4ee;color:#087c62;cursor:pointer}
.rem-panel{background:#fff;border:1px solid #d7e2dc;border-radius:12px;box-shadow:0 8px 24px rgba(22,48,37,.035)}.rem-records-panel{position:relative;height:calc(100% - 82px);overflow:hidden}.rem-records-toolbar{display:flex;height:50px;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid #dce6e1}.rem-tabs{display:flex;height:100%;align-items:stretch;gap:27px}.rem-tabs button{position:relative;border:0;background:transparent;color:#bdc6c1;padding:0 2px;font-family:inherit;font-size:12px;cursor:pointer}.rem-tabs button span{margin-left:5px}.rem-tabs button.active{color:#075f49;font-weight:800}.rem-tabs button.active::after{position:absolute;right:0;bottom:0;left:0;height:2px;background:#078268;content:''}.rem-tabs button:disabled{cursor:not-allowed}.rem-toolbar-actions{display:flex;align-items:center;gap:8px}.rem-search{display:flex;width:270px;height:33px;align-items:center;gap:7px;padding:0 10px;border:1px solid #cedbd5;border-radius:8px}.rem-search span{color:#6d8077;font-size:17px}.rem-search input{width:100%;border:0;outline:0;color:#183d30;font-family:inherit;font-size:11px}.rem-subtle,.rem-secondary,.rem-primary,.rem-danger,.rem-cloud{height:33px;border:1px solid #cbdad3;border-radius:8px;padding:0 13px;background:#fff;color:#34594b;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}.rem-primary{border-color:#078268;background:#078268;color:#fff}.rem-danger{border-color:#edbaba;background:#fff6f6;color:#b93636}.rem-cloud{border-color:#b5d8cb;background:#eff9f5;color:#087c62}.rem-subtle:disabled,.rem-secondary:disabled,.rem-primary:disabled,.rem-danger:disabled,.rem-cloud:disabled{opacity:.5;cursor:not-allowed}
.rem-import-panel{display:grid;height:calc(100% - 50px);place-items:center}.rem-drop-zone{display:flex;width:340px;height:180px;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #8fc5b2;border-radius:13px;background:#fbfdfc;color:#103f30;cursor:pointer;transition:.18s}.rem-drop-zone:hover,.rem-drop-zone.dragging{border-color:#078268;background:#f1faf6;box-shadow:0 8px 24px rgba(8,130,104,.08)}.rem-drop-zone.busy{opacity:.6;pointer-events:none}.rem-upload-icon{display:grid;width:46px;height:46px;margin-bottom:8px;place-items:center;border-radius:11px;background:#e8f4ef;color:#078268;font-size:25px}.rem-drop-zone strong{font-size:15px}.rem-drop-zone small{margin-top:5px;color:#72877e;font-size:11px}.rem-import-panel>.rem-message{position:absolute;bottom:24px}.rem-message{margin:0;color:#b53030;font-size:11px;font-weight:700}.rem-message:empty{display:none}.rem-message.success{color:#087c62}
.rem-preparation{height:calc(100% - 50px)}.rem-stats{display:grid;height:54px;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e1e8e4;background:#f9fbfa}.rem-stats article{display:flex;align-items:center;gap:10px;padding:0 18px;border-right:1px solid #e1e8e4}.rem-stats article:last-child{border:0}.rem-stats small{color:#6c8177;font-size:9px;font-weight:800;letter-spacing:.06em}.rem-stats strong{color:#123e30;font-size:20px}.rem-stats .selected strong{color:#078268}.rem-selection-actions{display:flex;height:40px;align-items:center;justify-content:space-between;padding:0 14px;background:#f7faf8;border-bottom:1px solid #e1e8e4;color:#647a70;font-size:10px;font-weight:800}.rem-selection-actions>div{display:flex;gap:7px}.rem-table-wrap{height:calc(100vh - 289px);min-height:280px;overflow:auto}.rem-selection-actions:not([hidden])+.rem-table-wrap{height:calc(100vh - 329px)}.rem-table{width:100%;border-collapse:collapse}.rem-table th{position:sticky;top:0;z-index:1;padding:10px 13px;background:#f1f5f3;color:#547065;text-align:left;text-transform:uppercase;letter-spacing:.04em;font-size:9px}.rem-table td{padding:11px 13px;border-bottom:1px solid #e1e8e4;color:#2a4a3e;font-size:11px}.rem-table td strong{color:#133a2d}.rem-table tr:hover td{background:#f8fbfa}.rem-check-column{width:38px;text-align:center!important}.rem-check-column input{accent-color:#078268}.rem-mono{font-family:Consolas,'Courier New',monospace;font-weight:700;color:#0c5c43!important}.rem-no-results{text-align:center!important;padding:70px!important;color:#778b82!important}.rem-table-footer{position:absolute;right:0;bottom:0;left:0;display:flex;height:43px;align-items:center;justify-content:space-between;padding:0 14px;border-top:1px solid #e1e8e4;background:#fff;color:#698078;font-size:10px}.rem-table-footer div{display:flex;align-items:center;gap:9px}.rem-table-footer button{width:28px;height:28px;border:1px solid #d0ddd7;border-radius:7px;background:#fff;color:#34594b}.rem-table-footer button:disabled{opacity:.35}.rem-table-footer strong{color:#294b3f}
.rem-config-panel{position:absolute;z-index:8;top:49px;right:18px;width:430px;padding:17px;border:1px solid #bcd4ca;border-radius:12px;background:#fff;box-shadow:0 18px 45px rgba(19,57,43,.18)}.rem-config-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.rem-config-heading small,.rem-config-heading strong{display:block}.rem-config-heading small{color:#078268;font-size:9px;font-weight:900;letter-spacing:.11em}.rem-config-heading strong{margin-top:3px;color:#113f30;font-size:17px}.rem-config-heading button{width:28px;height:28px;border:0;border-radius:7px;background:#eef5f2;color:#45685b;font-size:19px;cursor:pointer}.rem-config-panel>label>span,.rem-config-panel legend{display:block;margin-bottom:6px;color:#3a5c50;font-size:10px;font-weight:800;text-transform:uppercase}.rem-input-suffix{display:flex;height:39px;align-items:center;margin-bottom:14px;border:1px solid #c8d8d1;border-radius:8px;overflow:hidden}.rem-input-suffix input{width:100%;height:100%;border:0;padding:0 11px;outline:0;color:#143e30;font-family:inherit;font-weight:800}.rem-input-suffix small{padding:0 10px;color:#71877d}.rem-config-panel fieldset{border:0;margin:0 0 15px;padding:0}.rem-radio-group{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.rem-radio-group label{position:relative}.rem-radio-group input{position:absolute;opacity:0}.rem-radio-group label>span{display:block;padding:8px;border:1px solid #cedbd5;border-radius:8px;cursor:pointer}.rem-radio-group strong,.rem-radio-group small{display:block}.rem-radio-group strong{color:#284d40;font-size:10px}.rem-radio-group small{margin-top:2px;color:#82948c;font-size:8px}.rem-radio-group input:checked+span{border-color:#078268;background:#eef8f4;box-shadow:inset 0 0 0 1px #078268}.rem-config-panel>.rem-message{margin-bottom:10px}.rem-config-panel>.rem-primary{width:100%}
.rem-pdf-view{height:100%}.rem-pdf-state{display:flex;height:100%;padding:20px;flex-direction:column;align-items:center;justify-content:center;text-align:center}.rem-pdf-state>small{margin-top:10px;color:#078268;font-size:8px;font-weight:900;letter-spacing:.14em}.rem-pdf-state h2{margin:6px 0;color:#123e30;font-size:19px}.rem-pdf-state p{max-width:600px;margin:0 0 15px;color:#6a8077;font-size:11px}.rem-pdf-icon,.rem-success-icon,.rem-error-icon{display:grid;width:54px;height:54px;place-items:center;border-radius:15px;background:#e8f4ef;color:#078268;font-size:16px;font-weight:900}.rem-success-icon{font-size:25px}.rem-error-icon{background:#fff0f0;color:#bf3838;font-size:25px}.rem-spinner{width:48px;height:48px;border:4px solid #d9e8e2;border-top-color:#078268;border-radius:50%;animation:rem-spin .8s linear infinite}.rem-progress{width:min(560px,80%);height:8px;margin:0 0 15px;border-radius:8px;background:#e7efeb;overflow:hidden}.rem-progress i{display:block;width:0;height:100%;background:#078268;transition:width .2s}.rem-ready-actions{display:flex;gap:8px}.rem-cloud-status{min-height:17px;margin-top:10px;color:#b53030;font-size:10px;font-weight:700}.rem-cloud-status.success{color:#087c62}.rem-link-button{margin-top:7px;border:0;background:transparent;color:#078268;font-family:inherit;font-size:10px;font-weight:800;cursor:pointer}@keyframes rem-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.rem-page-title{display:none}.rem-commandbar{justify-content:center}.rem-steps article{min-width:145px}.rem-source-summary{max-width:155px}.rem-source-summary>strong{max-width:85px}}
@media(max-width:760px){.rem-workspace{height:auto;min-height:calc(100vh - 65px);overflow:visible}.portal-nav button{flex:1;padding:9px 6px;font-size:9px}.rem-commandbar{height:auto;min-height:70px;padding:10px 0}.rem-steps{width:100%;gap:4px}.rem-steps>i{display:none}.rem-steps article{min-width:0;flex:1;grid-template-columns:22px auto;column-gap:4px}.rem-steps article>strong{font-size:9px}.rem-stage-button{padding:0 6px;font-size:9px}.rem-source-summary{display:none!important}.rem-records-panel{height:calc(100vh - 150px);min-height:520px}.rem-tabs{gap:12px}.rem-tabs button{font-size:10px}.rem-search{width:180px}.rem-stats small{font-size:7px}.rem-stats strong{font-size:17px}.rem-table{min-width:700px}.rem-config-panel{right:8px;left:8px;width:auto}.rem-table-wrap{height:calc(100vh - 333px)}}

/* Mantem a interface fiel ao separador original. */
.rem-workspace{font-family:Arial,Helvetica,sans-serif;color:#243a36}
.rem-workspace *{box-sizing:border-box}
.rem-page-title{font-weight:700}
.rem-source-summary{max-width:246px;height:34px;gap:5px;padding:0 4px 0 8px}
.rem-source-summary>strong{max-width:105px}
.rem-file-symbol{display:grid!important;width:18px!important;height:18px!important;place-items:center;border:0!important;border-radius:0!important;background:transparent!important;color:#4e8c66!important}
.rem-file-symbol svg,.rem-source-summary button svg,.rem-table-footer button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-source-summary button{display:grid;width:25px;height:25px;place-items:center}
.rem-source-summary button:last-child{background:#fbf1ee;color:#9b564a}
.rem-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-weight:400}
.rem-tabs button.active{font-weight:700}
.rem-tabs button span{margin-left:2px}
.rem-pdf-tab-icon{width:15px;height:15px;object-fit:contain;flex-shrink:0}
#remRecordsView{position:relative;height:calc(100% - 54px);padding-bottom:43px}
.rem-table-wrap,.rem-selection-actions:not([hidden])+.rem-table-wrap{height:100%;min-height:0;overflow:auto}
.rem-table{table-layout:fixed}
.rem-table th{height:38px;padding:0 13px}
.rem-table th:nth-child(2){width:20%}.rem-table th:nth-child(3){width:14%}.rem-table th:nth-child(4){width:38%}.rem-table th:nth-child(5){width:23%}
.rem-table td{height:53px;padding:0 13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rem-check-column{width:5%!important}
.rem-table-footer button{display:grid;place-items:center}
.rem-table-footer strong{font-size:10px}
.rem-config-panel{width:384px;max-height:calc(100% - 58px);overflow:auto;padding:0}
.rem-config-heading{padding:17px 17px 0;margin-bottom:16px}
.rem-config-heading small{font-weight:800}
.rem-config-body{padding:0 17px}
.rem-config-body label>span,.rem-config-panel legend{display:flex;align-items:center;gap:7px;margin-bottom:6px;color:#3a5c50;font-size:10px;font-weight:700;text-transform:uppercase}
.rem-config-body label>span b,.rem-config-panel legend b{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#e8f4ef;color:#087c62;font-size:9px}
.rem-input-suffix{margin-bottom:0}
.rem-field-help{margin:5px 0 15px;color:#758a80;font-size:10px}
.rem-radio-group label>span{display:block!important;min-height:51px;text-transform:none!important}
.rem-group-notice{display:flex;gap:10px;padding:11px;border:1px solid #dce8e1;border-radius:8px;background:#f7faf8}
.rem-group-notice>svg{width:21px;height:21px;flex:0 0 auto;fill:none;stroke:#16845b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-group-notice strong{display:block;color:#2a5142;font-size:10px}
.rem-group-notice p{margin:3px 0 0;color:#778b82;font-size:9px;line-height:1.35}
.rem-selection-summary{display:flex;justify-content:space-between;margin:12px 0;color:#6d8278;font-size:10px}
.rem-result-card{display:flex;align-items:center;gap:9px;margin-bottom:10px;padding:9px;border-radius:8px;background:#edf8f1;color:#17694f}
.rem-result-card>span{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#d8f0e2}
.rem-result-card strong,.rem-result-card small{display:block}.rem-result-card strong{font-size:10px}.rem-result-card small{margin-top:2px;font-size:9px}
.rem-config-panel .rem-message{margin:8px 17px}
.rem-config-footer{padding:12px 17px 17px;border-top:1px solid #e4ebe7}
.rem-config-footer>div{display:grid;grid-template-columns:1fr 1.25fr;gap:7px}
.rem-save-config{height:34px;border:1px solid #bcd7c7;border-radius:8px;background:#f7fbf8;color:#17694f;font-family:inherit;font-size:10px;font-weight:700;cursor:pointer}
.rem-save-config:disabled{opacity:.45;cursor:not-allowed}
.rem-config-footer .rem-primary{width:100%;display:flex;align-items:center;justify-content:center;gap:5px}
@media(max-width:760px){.rem-config-panel{right:8px;left:8px;width:auto}.rem-config-footer>div{grid-template-columns:1fr}.rem-table{min-width:700px}}

/* Regras finais copiadas do comportamento visual do separador original. */
.rem-workspace,.rem-workspace button,.rem-workspace input{font-family:Arial,Helvetica,sans-serif!important;font-synthesis:none}
.rem-stats,.rem-table-footer{display:none!important}
.rem-preparation{height:calc(100% - 50px)}
#remRecordsView{height:100%;padding-bottom:0}
.rem-table-wrap,.rem-selection-actions:not([hidden])+.rem-table-wrap{height:100%;overflow:auto;scrollbar-color:#c9d8ce transparent;scrollbar-width:thin}
.rem-table{min-width:630px;table-layout:fixed}
.rem-table thead{position:sticky;top:0;z-index:2;background:#f8faf8;box-shadow:0 1px 0 #e4ece6}
.rem-table th{height:45px;padding:0 24px;background:#f8faf8;color:#698071;font-family:Arial,Helvetica,sans-serif!important;font-size:12px;font-weight:700;letter-spacing:.7px;text-transform:uppercase}
.rem-table td{height:51px;padding:0 24px;border-top:1px solid #ecf1ed;border-bottom:0;color:#294637;font-family:Arial,Helvetica,sans-serif!important;font-size:14px;font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rem-table td strong{color:#294637;font-family:Arial,Helvetica,sans-serif!important;font-size:14px;font-weight:450;text-transform:none}
.rem-mono{color:#294637!important;font-family:Arial,Helvetica,sans-serif!important;font-size:14px;font-weight:450}
.rem-table:not(.selectable) th:nth-child(1){width:25%}.rem-table:not(.selectable) th:nth-child(2){width:20%}.rem-table:not(.selectable) th:nth-child(3){width:34%}.rem-table:not(.selectable) th:nth-child(4){width:21%}
.rem-table.selectable th:nth-child(1){width:5%}.rem-table.selectable th:nth-child(2){width:24%}.rem-table.selectable th:nth-child(3){width:17%}.rem-table.selectable th:nth-child(4){width:32%}.rem-table.selectable th:nth-child(5){width:22%}
.rem-table.selectable .rem-check-column{width:5%!important;min-width:38px;padding:0 5px;text-align:center!important}
.rem-check-column input{width:16px;height:16px;margin:0;accent-color:#257456;cursor:pointer}
.rem-config-panel{top:20px;right:clamp(40px,20vw,330px);width:384px;max-width:calc(100% - 36px);max-height:calc(100% - 32px);overflow:hidden;border-color:#cddfd2;border-radius:12px;box-shadow:0 22px 60px #183d2930}
.rem-config-heading{padding:16px 18px;margin:0;border-bottom:1px solid #e6eee8}
.rem-config-heading>div{display:flex;align-items:center;gap:10px}
.rem-config-heading strong{margin:0;color:#294637;font-size:16px;font-weight:600}
.rem-config-icon{width:19px;height:19px;fill:none;stroke:#287b4c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-config-body{max-height:calc(100vh - 295px);overflow:auto;padding:17px 18px 16px}
.rem-config-body label>span,.rem-config-panel legend{font-size:13px;font-weight:600;text-transform:none}
.rem-config-body label>span b,.rem-config-panel legend b{width:18px;height:18px;border-radius:4px;background:#eff4f0;color:#7b9083;font-size:12px}
.rem-input-suffix{height:auto;border:0;overflow:visible;position:relative}
.rem-input-suffix input{height:44px;padding:9px 92px 9px 12px;border:1px solid #dbe4de;border-radius:7px;background:#fcfdfc;color:#29483a;font-size:19px;font-weight:400;appearance:textfield}
.rem-input-suffix small{position:absolute;right:13px;top:14px;padding:0;color:#809084;font-size:12px}
.rem-field-help{margin:6px 0 15px;color:#7a8a7f;font-size:12px}
.rem-config-panel fieldset{margin:0 0 7px}
.rem-radio-group{display:flex;flex-direction:column;gap:6px}
.rem-radio-group label{position:relative;display:flex;min-height:38px;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e1e8e2;border-radius:7px;cursor:pointer}
.rem-radio-group input{position:static;width:15px;height:15px;margin:0;opacity:1;accent-color:#257456;flex:0 0 auto}
.rem-radio-group label>span{display:block!important;min-height:0;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important}
.rem-radio-group strong{color:#294637;font-size:13px;font-weight:500}
.rem-radio-group small{display:none}
.rem-radio-group label:has(input:checked){border-color:#7aac93;background:#f2f8f4}
.rem-radio-group label:has(input:checked)::after{content:'✓';margin-left:auto;color:#397d59;font-size:14px}
.rem-workspace.has-result .rem-group-notice{display:none}
.rem-group-notice{margin:14px 0 7px;padding:10px;gap:8px}
.rem-group-notice strong{font-size:12px;font-weight:600}.rem-group-notice p{font-size:11px;line-height:1.45}
.rem-selection-summary{margin:3px 0 12px;font-size:11px}
.rem-result-card{margin:3px 0 10px;padding:10px;font-size:12px}
.rem-result-card>span{width:auto;height:auto;background:transparent}
.rem-result-card strong{font-size:12px}.rem-result-card small{display:none}
.rem-config-footer{padding:12px 18px 15px;background:#fff}
.rem-config-footer>div{grid-template-columns:1fr 1.15fr;gap:8px}
.rem-save-config,.rem-config-footer .rem-primary{height:40px;font-size:12px;font-weight:500}
.rem-config-download{width:100%;height:39px;margin-top:8px;border:1px solid #aacdb6;border-radius:6px;background:#edf7f0;color:#1c704b;font-family:Arial,Helvetica,sans-serif!important;font-size:14px;cursor:pointer}
@media(max-width:900px){.rem-config-panel{top:12px;right:8px;max-width:calc(100% - 16px)}.rem-table{min-width:700px}}

#remRecordsView{display:flex;flex-direction:column}
.rem-table-wrap,.rem-selection-actions:not([hidden])+.rem-table-wrap{flex:1;height:auto}
.rem-limit-banner{display:flex;min-height:36px;flex:0 0 auto;align-items:center;gap:9px;padding:7px 22px;border-bottom:1px solid #f3e3bd;background:#fff8ea;color:#77591f;font-size:12px;line-height:1.35}
.rem-limit-banner[hidden]{display:none!important}
.rem-limit-banner svg,.rem-config-warning svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-limit-banner button{margin-left:auto;padding:2px 0;border:0;background:transparent;color:#785513;font-family:Arial,Helvetica,sans-serif!important;font-size:12px;font-weight:700;cursor:pointer}
.rem-config-warning{display:flex;align-items:flex-start;gap:8px;margin:0 0 12px;padding:9px;border:1px solid #f1dfb6;border-radius:7px;background:#fff7e8;color:#815b18;font-size:12px;line-height:1.4}
.rem-config-warning[hidden]{display:none!important}
.rem-stage-button.has-warning{position:relative;border-color:#dfc987;background:#fff9eb;color:#805e1d}
.rem-stage-button.has-warning::after{position:absolute;top:6px;right:7px;width:6px;height:6px;border-radius:50%;background:#d39319;content:''}
@media(max-width:900px){.rem-limit-banner{padding:7px 13px}}

/* Controles do fluxo iguais aos do separador original. */
.rem-source-summary{max-width:none;width:max-content;padding:0;border:0;background:transparent;gap:6px}
.rem-source-file{display:flex;height:34px;max-width:160px;align-items:center;gap:8px;padding:0 11px;border:1px solid #d9e6dd;border-radius:7px;background:#f9fcfa;color:#355b44}
.rem-source-file>strong{max-width:112px;overflow:hidden;color:#145540;font-family:Arial,Helvetica,sans-serif!important;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.rem-source-file>small{display:none}
.rem-source-summary button{width:34px;height:34px;border:1px solid #d9e6dd;border-radius:7px;background:#fff;color:#4e7160}
.rem-source-summary button:hover{border-color:#a8cbb3;background:#eef7f1}
.rem-source-summary button:last-child{border-color:#e5d4cf;background:#fff;color:#a25042}
.rem-source-summary button:last-child:hover{border-color:#e1bcb4;background:#fcf2f0}
.rem-source-summary button svg{width:17px;height:17px}
.rem-stage-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.rem-stage-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-config-trigger:not(:disabled){border-color:#a8d0b4;background:#f6fbf7;color:#236e4b}
.rem-config-trigger:not(:disabled):hover{border-color:#68af7f;background:#ebf6ee}
.rem-config-trigger.has-warning:not(:disabled){border-color:#d9b557;background:#fff8e8;color:#805e1d}
.rem-config-trigger.has-warning:not(:disabled):hover{border-color:#c99b31;background:#fff3d4}
.rem-quick-download:not(:disabled){border-color:#17664c;background:#17664c;color:#fff;opacity:1;box-shadow:0 5px 12px #17664c20}
.rem-quick-download:not(:disabled):hover{background:#0d563c}
.rem-quick-download:disabled{border-color:#91b9ab;background:#91b9ab;color:#fff;opacity:.55}
.rem-config-trigger:disabled{opacity:.45}

/* Experiencia completa de preparacao do PDF. */
.rem-pdf-view{height:100%;overflow:auto;background:radial-gradient(ellipse at 50% 42%,#f7fbf8 0,#fff 68%)}
.rem-pdf-state{width:min(540px,100%);min-height:100%;height:auto;margin:auto;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#264336}
.rem-pdf-state-icon{width:68px;height:68px;margin-bottom:21px;display:grid;place-items:center;border:1px solid #d9ebde;border-radius:21px;background:#edf6f0;color:#287a52;box-shadow:0 10px 24px #153d2210}
.rem-pdf-state-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rem-pdf-state-icon.processing{background:#e9f5ed}.rem-pdf-state-icon.processing svg{animation:rem-pdf-spin 1.4s linear infinite}
.rem-pdf-state-icon.finished{border-color:#a9d9b9;border-radius:50%;background:#e8f6ed;color:#156a45;font-size:34px}
.rem-pdf-state-icon.failed{border-color:#f1d0c5;border-radius:50%;background:#fff3ef;color:#b25842;font-size:32px}
.rem-pdf-state>small:not(.rem-pdf-wait){margin:0 0 9px;color:#558168;font-size:11px;font-weight:750;letter-spacing:1.7px}
.rem-pdf-state h2{margin:0;color:#204935;font-size:23px;font-weight:680;letter-spacing:-.5px;line-height:1.2}
.rem-pdf-state>p{max-width:480px;margin:9px 0 0;color:#708276;font-size:13px;line-height:1.5}
.rem-pdf-file-chip{max-width:100%;margin-top:21px;padding:9px 12px;display:inline-flex;align-items:center;gap:8px;border:1px solid #e1ebe4;border-radius:7px;background:#f5f8f6;color:#496554;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rem-pdf-file-chip svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:#528264;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-pdf-file-chip span{overflow:hidden;text-overflow:ellipsis}
.rem-pdf-main-button{min-width:180px;min-height:40px;margin-top:22px;padding:0 19px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #17664c;border-radius:8px;background:#17664c;color:#fff;font-size:13px;font-weight:700;box-shadow:0 7px 16px #17664c24;cursor:pointer}
.rem-pdf-main-button:hover{background:#0f573e}.rem-pdf-main-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-pdf-subtle-button{margin-top:9px;padding:7px 10px;border:0;background:transparent;color:#5d806b;font-size:12px;font-weight:600;cursor:pointer}.rem-pdf-subtle-button:hover{color:#17664c;text-decoration:underline}
.rem-pdf-progress-large{width:100%;height:9px;margin-top:26px;overflow:hidden;border-radius:99px;background:#e4eee7}
.rem-pdf-progress-large i{display:block;width:5%;height:100%;border-radius:99px;background:linear-gradient(90deg,#42a66f,#17664c);transition:width .25s ease}
.rem-pdf-progress-meta{width:100%;margin-top:8px;display:flex;justify-content:space-between;color:#5c7967;font-size:12px;font-variant-numeric:tabular-nums}
.rem-pdf-progress-meta span:last-child,.rem-pdf-finished-time{display:inline-flex;align-items:center;gap:5px}.rem-pdf-progress-meta b,.rem-pdf-finished-time b{font-weight:600}
.rem-pdf-progress-meta svg,.rem-pdf-finished-time svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rem-pdf-phases{width:100%;margin-top:30px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.rem-pdf-phases span{display:flex;align-items:center;justify-content:center;gap:6px;color:#93a398;font-size:11px;white-space:nowrap}
.rem-pdf-phases b{width:19px;height:19px;display:grid;place-items:center;border:1px solid #d6e3d9;border-radius:50%;background:#fff;font-size:10px;font-weight:700}
.rem-pdf-phases .current{color:#1d6a49;font-weight:700}.rem-pdf-phases .current b{border-color:#1b7450;background:#1b7450;color:#fff}.rem-pdf-phases .done{color:#4c8b63}.rem-pdf-phases .done b{border-color:#b3d5bc;background:#e7f5eb}
.rem-pdf-state>.rem-pdf-wait{margin-top:24px;color:#9aa9a0;font-size:11px;font-weight:400;letter-spacing:0}
.rem-pdf-finished-time{margin-top:14px;color:#678270;font-size:12px}
.rem-pdf-error-detail{max-height:120px;overflow:auto;word-break:break-word;color:#975244!important;background:#fff7f4;border:1px solid #f0dad2;border-radius:8px;padding:12px 14px;text-align:left}
.rem-cloud-save{width:min(390px,100%);margin-top:12px;padding-top:12px;border-top:1px solid #e5ede8;display:flex;flex-direction:column;align-items:center;gap:8px}
.rem-cloud-save-button{min-height:36px;padding:0 14px;border:1px solid #bed9ca;border-radius:8px;background:#f7fbf8;color:#17664c;font-size:12px;font-weight:700;cursor:pointer}.rem-cloud-save-button:hover:not(:disabled){background:#eaf5ed}
.rem-cloud-status{width:100%;min-height:0;margin:0;color:#5d7667;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.rem-cloud-status:empty{display:none}.rem-cloud-status.success{color:#16845b}
.rem-pdf-toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translateX(-50%);width:max-content;max-width:min(520px,calc(100vw - 28px));padding:10px 12px;display:flex;align-items:center;gap:10px;border:1px solid #c8e1cf;border-radius:10px;background:#fff;color:#24583c;box-shadow:0 15px 42px #12392224;font-size:12px;animation:rem-pdf-toast-in .22s ease-out}
.rem-pdf-toast[hidden]{display:none!important}.rem-pdf-toast.error{border-color:#edc9c0;color:#944936}.rem-pdf-toast>span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#eaf6ed}.rem-pdf-toast.error>span{background:#fff0ec}.rem-pdf-toast button{margin-left:12px;padding:3px;border:0;background:transparent;color:#879b8c;font-size:18px;cursor:pointer}
@keyframes rem-pdf-spin{to{transform:rotate(360deg)}}@keyframes rem-pdf-toast-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:700px){.rem-pdf-state{padding:16px}.rem-pdf-state h2{font-size:20px}.rem-pdf-phases{gap:3px}.rem-pdf-phases span{font-size:10px}}
@media(max-height:590px){.rem-pdf-state{justify-content:flex-start;padding-top:8px}.rem-pdf-state-icon{width:46px;height:46px;margin-bottom:9px}.rem-pdf-file-chip{margin-top:10px}.rem-pdf-progress-large{margin-top:14px}.rem-pdf-phases{margin-top:14px}.rem-pdf-state>.rem-pdf-wait{margin-top:9px}}
@media(prefers-reduced-motion:reduce){.rem-pdf-state-icon.processing svg,.rem-pdf-toast{animation:none}.rem-pdf-progress-large i{transition:none}}
