:root{
  --cf-green:#58bc82;
  --cf-green-dark:#2f8d58;
  --cf-green-soft:rgba(88,188,130,.13);
  --cf-green-border:rgba(88,188,130,.34);
  --cf-danger:#dc4c5b;
  --cf-warning:#d59b35;
}
body.auth-pending .system-app,body.auth-locked .system-app{visibility:hidden;pointer-events:none}
body.auth-ready .system-app{visibility:visible}

/* Identidade C&F: verde como cor de interação, não tinta derramada em tudo. */
.system-brand-mark{background:#fff!important;overflow:hidden;padding:3px}
.system-brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.system-nav-btn{transition:background .22s ease,color .22s ease,transform .22s ease,border-color .22s ease!important;border:1px solid transparent!important}
.system-nav-btn.active{background:var(--cf-green-soft)!important;color:var(--cf-green)!important;border-color:var(--cf-green-border)!important}
@media(hover:hover) and (pointer:fine){.system-nav-btn:hover{background:var(--cf-green-soft)!important;color:var(--cf-green)!important;border-color:var(--cf-green-border)!important;transform:translateX(2px)}}
.system-nav-badge.live{background:var(--cf-green-soft)!important;color:var(--cf-green)!important}
.sys-input:focus,.sys-select:focus{border-color:var(--cf-green)!important;box-shadow:0 0 0 3px var(--cf-green-soft)!important}
.sys-btn.primary{background:var(--cf-green-dark)!important;border-color:var(--cf-green-dark)!important;color:#fff!important}
@media(hover:hover) and (pointer:fine){.sys-btn.primary:hover{background:var(--cf-green)!important;border-color:var(--cf-green)!important;color:#07110b!important}}
.status-dot.ok{background:var(--cf-green)!important}.dash-card-value.ok{color:var(--cf-green-dark)!important}

/* Usuário logado no topo */
.cf-user-area{display:flex;align-items:center;gap:7px}
.cf-user-chip{height:31px;border:1px solid var(--cf-green-border);background:var(--cf-green-soft);border-radius:9px;padding:0 9px;display:flex;align-items:center;gap:8px;color:inherit}
.cf-user-avatar{width:21px;height:21px;border-radius:7px;background:var(--cf-green);color:#07110b;display:grid;place-items:center;font-size:9px;font-weight:900}
.cf-user-copy{line-height:1.05}.cf-user-name{font-size:9.5px;font-weight:800}.cf-user-role{font-size:7.5px;color:#7d8793;margin-top:2px}
.cf-logout{height:31px;border:1px solid #dfe4e9;background:transparent;border-radius:8px;padding:0 9px;font-size:9px;font-weight:750;color:#687482;cursor:pointer}
@media(hover:hover) and (pointer:fine){.cf-logout:hover{border-color:rgba(220,76,91,.35);background:rgba(220,76,91,.08);color:var(--cf-danger)}}

/* Gate/Login */
.cf-auth-gate{position:fixed;inset:0;z-index:200000;background:#0f1419;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}
body.auth-ready .cf-auth-gate{display:none}
.cf-login-shell{width:min(920px,100%);display:grid;grid-template-columns:minmax(300px,.9fr) minmax(320px,1.1fr);border:1px solid rgba(255,255,255,.09);border-radius:20px;overflow:hidden;background:#151c23;box-shadow:0 24px 80px rgba(0,0,0,.28)}
.cf-login-brand-panel{padding:44px;background:linear-gradient(145deg,rgba(88,188,130,.12),rgba(88,188,130,.025) 58%),#111820;display:flex;flex-direction:column;justify-content:space-between;min-height:520px}
.cf-login-logo{width:146px;height:146px;object-fit:contain;border-radius:22px;background:#fff;padding:7px;border:1px solid rgba(255,255,255,.14)}
.cf-login-brand-title{font-size:27px;line-height:1.08;color:#f7faf8;font-weight:820;letter-spacing:-.5px;margin-top:24px}.cf-login-brand-sub{font-size:12px;color:#91a19a;line-height:1.55;margin-top:9px;max-width:340px}.cf-login-brand-foot{font-size:9px;color:#65756c;text-transform:uppercase;letter-spacing:.9px}
.cf-login-form-panel{padding:52px 48px;display:flex;align-items:center;background:#171e25}.cf-form{display:flex;flex-direction:column;gap:16px;width:100%;max-width:340px;margin:auto}.cf-form-title{font-size:20px;color:#f5f7f6;font-weight:800}.cf-form-sub{font-size:11px;color:#7f8d86;margin-top:-9px;line-height:1.45}.cf-input-span{display:flex;flex-direction:column;gap:7px}.cf-label{align-self:flex-start;color:var(--cf-green);font-weight:700;font-size:11px}.cf-auth-input{border-radius:9px;padding:13px 12px;width:100%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);outline:none;color:#f2f5f3;font-size:16px;transition:.22s ease}.cf-auth-input:focus{border-color:var(--cf-green);box-shadow:0 0 0 3px var(--cf-green-soft)}.cf-submit{padding:13px 12px;width:100%;border-radius:999px;background:#53606b;color:#f5f7f6;border:0;cursor:pointer;transition:.28s ease;font-weight:800;font-size:12px}.cf-submit:disabled{opacity:.55;cursor:wait}@media(hover:hover) and (pointer:fine){.cf-submit:hover:not(:disabled){background:var(--cf-green);color:#07110b;transform:translateY(-1px)}}.cf-login-message{min-height:18px;font-size:10px;color:#85928c;line-height:1.4}.cf-login-message.error{color:#ef8994}.cf-login-message.ok{color:var(--cf-green)}.cf-setup-box{border:1px solid rgba(213,155,53,.32);background:rgba(213,155,53,.08);color:#e0b969;border-radius:10px;padding:11px;font-size:10px;line-height:1.5;display:none}.cf-setup-box.show{display:block}

/* Modal genérico */
.cf-modal{position:fixed;inset:0;z-index:210000;background:rgba(4,7,10,.72);display:none;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(4px)}.cf-modal.show{display:flex}.cf-modal-card{width:min(1040px,100%);max-height:90vh;background:#151c23;color:#e8eeeb;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 80px rgba(0,0,0,.32)}.cf-modal-card.small{width:min(480px,100%)}.cf-modal-head{padding:15px 17px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;gap:12px}.cf-modal-title{font-size:13px;font-weight:800}.cf-modal-sub{font-size:9px;color:#86948d;margin-top:3px}.cf-modal-close{width:30px;height:30px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:transparent;color:#a9b4af;cursor:pointer;font-size:18px}.cf-modal-body{padding:16px;overflow:auto;min-height:0}.cf-modal-card>form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.cf-modal-card>form>.cf-modal-body{flex:1 1 auto}.cf-modal-card>form>.cf-modal-foot{flex:0 0 auto}.cf-modal-foot{padding:12px 16px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.cf-btn{min-height:36px;padding:0 13px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:#202932;color:#e9efec;font-size:10px;font-weight:800;cursor:pointer}.cf-btn.primary{background:var(--cf-green-dark);border-color:var(--cf-green-dark);color:#fff}.cf-btn.danger{background:rgba(220,76,91,.12);border-color:rgba(220,76,91,.34);color:#f18a94}.cf-btn.warn{background:rgba(213,155,53,.12);border-color:rgba(213,155,53,.34);color:#e4ba6e}.cf-btn:disabled{opacity:.45;cursor:not-allowed}

/* Usuários e acessos */
.cf-users-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:13px;min-height:520px}.cf-users-list{border:1px solid rgba(255,255,255,.08);border-radius:11px;overflow:auto;background:#11171d}.cf-users-toolbar{padding:10px;border-bottom:1px solid rgba(255,255,255,.07)}.cf-user-row{width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#bcc6c1;text-align:left;padding:11px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px}.cf-user-row.active{background:var(--cf-green-soft);color:#dff3e7}.cf-user-row:last-child{border-bottom:0}.cf-user-row-main{min-width:0}.cf-user-row-name{font-size:10.5px;font-weight:800}.cf-user-row-role{font-size:8.5px;color:#74827b;margin-top:3px}.cf-user-row.active .cf-user-row-role{color:#8eb69f}.cf-user-status{font-size:7.5px;padding:3px 6px;border-radius:999px;background:rgba(88,188,130,.11);color:var(--cf-green)}.cf-user-status.pending{background:rgba(213,155,53,.11);color:#e0b566}.cf-user-status.off{background:rgba(220,76,91,.11);color:#ef8994}.cf-user-editor{border:1px solid rgba(255,255,255,.08);border-radius:11px;background:#11171d;padding:15px;overflow:auto}.cf-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cf-field{min-width:0}.cf-field.full{grid-column:1/-1}.cf-field label{display:block;font-size:8px;font-weight:800;color:#7d8a84;text-transform:uppercase;letter-spacing:.55px;margin:0 0 5px}.cf-field input,.cf-field select{width:100%;height:35px;border:1px solid rgba(255,255,255,.11);background:#171f26;color:#e5ebe8;border-radius:8px;padding:0 10px;outline:none;font-size:10.5px}.cf-field input:focus,.cf-field select:focus{border-color:var(--cf-green);box-shadow:0 0 0 3px var(--cf-green-soft)}.cf-perm-title{font-size:10px;font-weight:800;color:#cdd5d1;margin:17px 0 8px}.cf-perm-group{border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:hidden;margin-bottom:9px}.cf-perm-group-title{background:#171f26;padding:7px 9px;font-size:8px;text-transform:uppercase;letter-spacing:.55px;color:#77847e;font-weight:800}.cf-perm-item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:8px 9px;border-top:1px solid rgba(255,255,255,.05);align-items:center}.cf-perm-name{font-size:9.5px;color:#c1cbc6;font-weight:700}.cf-perm-desc{font-size:8px;color:#6f7c76;margin-top:2px;line-height:1.35}.cf-access-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

/* Checkbox glass adaptado para o verde da Central */
.cf-check{display:inline-flex;align-items:center;gap:.7rem;cursor:pointer;user-select:none}.cf-check input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.cf-check-box{width:21px;height:21px;min-width:21px;border-radius:7px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;transition:background .3s ease,border-color .3s ease,box-shadow .3s ease,transform .35s cubic-bezier(.34,1.56,.64,1)}.cf-check-box:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(88,188,130,.4) 0%,transparent 70%);opacity:0;transform:scale(0);transition:.35s ease}@media(hover:hover) and (pointer:fine){.cf-check:hover .cf-check-box{border-color:var(--cf-green-border);transform:scale(1.05)}}.cf-check input:checked~.cf-check-box{background:linear-gradient(135deg,var(--cf-green),#86d7aa);border-color:transparent;box-shadow:0 0 0 3px var(--cf-green-soft),0 4px 14px rgba(88,188,130,.22);transform:scale(1.04)}.cf-check input:checked~.cf-check-box:before{opacity:1;transform:scale(1.5)}.cf-check-svg{width:13px;height:13px;color:#08120d;stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .3s cubic-bezier(.34,1.56,.64,1) .05s}.cf-check input:checked~.cf-check-box .cf-check-svg{stroke-dashoffset:0}

/* Loader máquina de escrever */
.cf-loader{position:fixed;inset:0;z-index:220000;background:rgba(9,13,16,.88);display:none;align-items:center;justify-content:center;backdrop-filter:blur(5px)}.cf-loader.show{display:flex}.cf-loader-card{min-width:260px;border:1px solid var(--cf-green-border);background:#131a20;border-radius:16px;padding:30px 38px;display:flex;flex-direction:column;align-items:center;gap:19px}.cf-typewriter{--g:var(--cf-green);--gd:var(--cf-green-dark);--key:#dce8e0;--paper:#e2ebe5;--text:#9db6a5;--tool:#91cda9;--duration:3s;position:relative;animation:cfBounce var(--duration) linear infinite}.cf-typewriter .slide{width:92px;height:20px;border-radius:3px;margin-left:14px;transform:translateX(14px);background:linear-gradient(var(--g),var(--gd));animation:cfSlide var(--duration) ease infinite}.cf-typewriter .slide:before,.cf-typewriter .slide:after,.cf-typewriter .slide i:before{content:"";position:absolute;background:var(--tool)}.cf-typewriter .slide:before{width:2px;height:8px;top:6px;left:100%}.cf-typewriter .slide:after{left:94px;top:3px;height:14px;width:6px;border-radius:3px}.cf-typewriter .slide i{display:block;position:absolute;right:100%;width:6px;height:4px;top:4px;background:var(--tool)}.cf-typewriter .slide i:before{right:100%;top:-2px;width:4px;border-radius:2px;height:14px}.cf-typewriter .paper{position:absolute;left:24px;top:-26px;width:40px;height:46px;border-radius:5px;background:var(--paper);transform:translateY(46px);animation:cfPaper var(--duration) linear infinite}.cf-typewriter .paper:before{content:"";position:absolute;left:6px;right:6px;top:7px;border-radius:2px;height:4px;transform:scaleY(.8);background:var(--text);box-shadow:0 12px 0 var(--text),0 24px 0 var(--text),0 36px 0 var(--text)}.cf-typewriter .keyboard{width:120px;height:56px;margin-top:-10px;z-index:1;position:relative}.cf-typewriter .keyboard:before,.cf-typewriter .keyboard:after{content:"";position:absolute}.cf-typewriter .keyboard:before{inset:0;border-radius:7px;background:linear-gradient(135deg,var(--g),var(--gd));transform:perspective(10px) rotateX(2deg);transform-origin:50% 100%}.cf-typewriter .keyboard:after{left:2px;top:25px;width:11px;height:4px;border-radius:2px;box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key);animation:cfKeyboard var(--duration) linear infinite}.cf-loader-label{font-size:13px;font-weight:850;color:var(--cf-green)}.cf-loader-sub{font-size:9px;color:#78867f;text-align:center}@keyframes cfBounce{85%,92%,100%{transform:translateY(0)}89%{transform:translateY(-4px)}95%{transform:translateY(2px)}}@keyframes cfSlide{5%{transform:translateX(14px)}15%,30%{transform:translateX(6px)}40%,55%{transform:translateX(0)}65%,70%{transform:translateX(-4px)}80%,89%{transform:translateX(-12px)}100%{transform:translateX(14px)}}@keyframes cfPaper{5%{transform:translateY(46px)}20%,30%{transform:translateY(34px)}40%,55%{transform:translateY(22px)}65%,70%{transform:translateY(10px)}80%,85%{transform:translateY(0)}92%,100%{transform:translateY(46px)}}

.cf-security-note{border:1px solid var(--cf-green-border);background:var(--cf-green-soft);border-radius:10px;padding:10px 11px;font-size:9px;color:#8fb49f;line-height:1.45;margin-top:10px}
.cf-hidden-by-permission{display:none!important}
/* V15.39: tela limpa. Teste e diagnóstico só para o Master; livro de boletos também para o Financeiro. */
.cf-not-master [data-master-only]{display:none!important}
.cf-no-finance [data-finance-view]{display:none!important}
.system-env[hidden]{display:none!important}
.system-env.cf-env-real{color:#b42318;border-color:rgba(180,35,24,.35);background:rgba(180,35,24,.08)}
.system-env.cf-env-real .system-env-dot{background:#dc2626}

@keyframes cfKeyboard{5%,12%,21%,30%,39%,48%,57%,66%,75%,84%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}9%{box-shadow:15px 2px 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}18%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 2px 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}27%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 12px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}36%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 12px 0 var(--key),60px 12px 0 var(--key),68px 12px 0 var(--key),83px 10px 0 var(--key)}45%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 2px 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}54%{box-shadow:15px 0 0 var(--key),30px 2px 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}63%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 12px 0 var(--key)}72%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 2px 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 10px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}81%{box-shadow:15px 0 0 var(--key),30px 0 0 var(--key),45px 0 0 var(--key),60px 0 0 var(--key),75px 0 0 var(--key),90px 0 0 var(--key),22px 10px 0 var(--key),37px 12px 0 var(--key),52px 10px 0 var(--key),60px 10px 0 var(--key),68px 10px 0 var(--key),83px 10px 0 var(--key)}}

@media(max-width:760px){.cf-login-shell{grid-template-columns:1fr}.cf-login-brand-panel{min-height:0;padding:26px}.cf-login-logo{width:96px;height:96px}.cf-login-brand-foot{display:none}.cf-login-form-panel{padding:30px 24px}.cf-users-layout{grid-template-columns:1fr}.cf-users-list{max-height:220px}.cf-editor-grid{grid-template-columns:1fr}.cf-user-copy{display:none}}
@media(prefers-reduced-motion:reduce){.cf-typewriter,.cf-typewriter *{animation:none!important}.system-nav-btn,.cf-submit,.cf-check-box{transition:none!important}}


/* V12.3 · acabamento profissional: menos texto, mais operação */
.system-app{font-weight:600}
.system-brand-name{font-weight:850!important;letter-spacing:.01em}
.system-brand-sub,.system-company-cnpj{font-weight:600!important}
.system-company-name{font-weight:800!important}
.system-nav-title{font-weight:850!important;color:#7b8795!important}
.system-nav-btn{font-weight:700!important}
.system-page-title{font-weight:850!important;letter-spacing:-.15px}
.system-page-subtitle:empty,.module-subtitle:empty{display:none!important}
.module-title{font-weight:850!important;letter-spacing:-.35px}
.module-kicker{font-weight:900!important;color:#85909d!important}
.module-subtitle{font-weight:600!important;color:#8b95a1!important}
.sys-btn{font-weight:800!important}
.dash-card{min-height:102px!important}
.dash-card-label{font-weight:850!important;color:#8b95a1!important}
.dash-card-value{font-weight:850!important}
.dash-card-meta{font-weight:650!important;color:#7f8a96!important}
.quick-card{min-height:104px!important;padding:15px!important}
.quick-name{font-weight:850!important;font-size:12.5px!important}
.quick-desc{display:none!important}
.quick-link{font-weight:800!important;color:#73808d!important;padding-top:10px!important}
.sys-panel-title,.form-card-title{font-weight:850!important}
.sys-panel-sub,.status-sub{font-weight:600!important}
.status-main{font-weight:800!important}
.status-state{font-weight:800!important;letter-spacing:.02em}
.field label,.items-table th,.summary-label{font-weight:850!important}
.sys-input,.sys-select,.items-table td{font-weight:650!important}
.summary-value{font-weight:850!important}
.empty-row td{font-weight:650!important;color:#7f8a96!important}
.system-sidebar-foot{display:none!important}
.module-pill{display:none!important}
.module-placeholder{border-style:solid!important;background:transparent!important;padding:22px!important}
.module-placeholder p{display:none!important}
.module-placeholder h3{font-weight:800!important;color:#697582!important}
.module-empty-state{min-height:86px;border:1px solid #e3e7ec;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;padding:20px;color:#74808c;font-size:11px;text-align:center}
.module-empty-state strong{font-weight:800}
.status-list.compact .status-row{grid-template-columns:minmax(0,1fr) auto!important;padding:10px 0!important}
.status-list.compact .status-main{font-size:10.5px!important}
html[data-theme="dark"] .module-empty-state{background:#171b20;border-color:#30363d;color:#9aa5b1}
html[data-theme="dark"] .quick-link{color:#8f9aa7!important}
html[data-theme="dark"] .dash-card-meta{color:#909ba7!important}


/* V12.4 · homologação pela interface */
.cf-static-card{cursor:default!important;transform:none!important}
.cf-static-card:hover{transform:none!important;box-shadow:none!important}
.cf-fiscal-result{border:1px solid rgba(88,188,130,.30);background:rgba(88,188,130,.07);border-radius:12px;padding:15px}
.cf-fiscal-result-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:13px;color:#e8efeb}
.cf-fiscal-status{display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:999px;background:rgba(88,188,130,.16);border:1px solid rgba(88,188,130,.34);color:#72d79b;font-size:8px;letter-spacing:.7px;font-weight:900}
.cf-fiscal-result-head strong{font-size:12px;font-weight:850}
.cf-fiscal-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cf-fiscal-result-grid>div,.cf-fiscal-key{border:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.10);border-radius:8px;padding:9px 10px;min-width:0}
.cf-fiscal-result-grid span,.cf-fiscal-key span{display:block;font-size:7.5px;text-transform:uppercase;letter-spacing:.55px;color:#7f8b85;font-weight:800;margin-bottom:4px}
.cf-fiscal-result-grid strong{font-size:10px;color:#e7edea;font-weight:850;overflow-wrap:anywhere}
.cf-fiscal-key{margin-top:8px}
.cf-fiscal-key strong{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;color:#d9e5df;overflow-wrap:anywhere;font-weight:700}
.sys-btn:disabled{opacity:.38;cursor:not-allowed!important;transform:none!important}
@media(max-width:760px){.cf-fiscal-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V12.5 · cadastros reais + emissão dinâmica na tela */
.cf-autocomplete-wrap{position:relative}
.cf-autocomplete{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 5px);max-height:280px;overflow:auto;border:1px solid rgba(88,188,130,.26);background:#121920;border-radius:9px;box-shadow:0 18px 36px rgba(0,0,0,.28)}
.cf-autocomplete-item{display:block;width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#dce6e1;text-align:left;padding:10px 11px;cursor:pointer}
.cf-autocomplete-item:last-child{border-bottom:0}.cf-autocomplete-item:hover,.cf-autocomplete-item.active{background:rgba(88,188,130,.10)}
.cf-autocomplete-main{font-size:10px;font-weight:850}.cf-autocomplete-sub{font-size:8px;color:#829089;margin-top:3px}
.cf-selected-client{margin-top:11px;border:1px solid rgba(88,188,130,.20);background:rgba(88,188,130,.055);border-radius:9px;padding:10px 12px;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px}
.cf-selected-client>div{min-width:0}.cf-selected-client span{display:block;font-size:7.5px;text-transform:uppercase;letter-spacing:.55px;color:#748179;font-weight:800}.cf-selected-client strong{display:block;font-size:9.5px;color:#dfe8e3;margin-top:3px;overflow-wrap:anywhere}
.cf-item-product{font-weight:850;color:#dce6e1}.cf-item-code{font-size:7.5px;color:#75847c;margin-top:2px}.cf-item-input{width:86px;max-width:100%;height:30px;border-radius:6px;border:1px solid rgba(255,255,255,.12);background:#151d24;color:#e3ebe7;padding:0 7px;font-size:9px;font-weight:700}
.cf-item-remove{width:30px;height:30px;border-radius:7px;border:1px solid rgba(220,76,91,.25);background:rgba(220,76,91,.08);color:#df7a84;cursor:pointer;font-weight:900}
.cf-validation-state{margin-bottom:10px;border:1px solid rgba(88,188,130,.25);background:rgba(88,188,130,.06);border-radius:9px;padding:10px 12px;color:#a9b8b0;font-size:9px;font-weight:700}.cf-validation-state.ok{color:#80d7a3}.cf-validation-state.error{border-color:rgba(220,76,91,.28);background:rgba(220,76,91,.07);color:#e58b94}
.cf-product-modal-card{width:min(840px,calc(100vw - 32px))}.cf-product-search-row{display:flex;align-items:center;gap:10px}.cf-product-results{max-height:260px;overflow:auto;margin-top:10px;border:1px solid rgba(255,255,255,.07);border-radius:9px}.cf-product-result{width:100%;display:grid;grid-template-columns:80px minmax(0,1fr) 70px 100px;gap:8px;align-items:center;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:#dce6e1;text-align:left;padding:9px 10px;cursor:pointer}.cf-product-result:last-child{border-bottom:0}.cf-product-result:hover,.cf-product-result.selected{background:rgba(88,188,130,.09)}.cf-product-result .code{font-weight:900;color:#74d39a}.cf-product-result .name{font-weight:800}.cf-product-result .meta{font-size:8px;color:#7c8b83}
.cf-product-editor{margin-top:12px;padding:12px;border:1px solid rgba(88,188,130,.20);background:rgba(88,188,130,.04);border-radius:9px}.cf-product-editor-title{font-size:11px;font-weight:900;color:#e4ece8}.cf-product-fiscal{font-size:8px;color:#85948c;margin:5px 0 12px;line-height:1.55}
.cf-catalog-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px}.cf-catalog-toolbar .sys-input{max-width:440px}.cf-catalog-count{font-size:8px;color:#7d8983;font-weight:800;white-space:nowrap}
#module-registry .items-table,#module-products .items-table{min-width:980px}
@media(max-width:760px){.cf-selected-client{grid-template-columns:1fr}.cf-product-result{grid-template-columns:60px minmax(0,1fr)}.cf-product-result .meta:nth-last-child(-n+2){display:none}}

/* V12.5.1 · busca/seleção de cliente e produto */
.cf-autocomplete-item{position:relative}
.cf-autocomplete-item:focus-visible,.cf-product-result:focus-visible{outline:2px solid #58bc82;outline-offset:-2px}
.cf-autocomplete:not([hidden]){display:block}
.cf-product-results .module-empty-state{padding:22px}
\n/* V12.6 · emissão dinâmica */\n.cf-issue-summary{display:grid;gap:7px}.cf-issue-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 10px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(0,0,0,.08)}.cf-issue-line span{font-size:9px;color:#829089;font-weight:750}.cf-issue-line strong{font-size:10.5px;color:#e7edea;font-weight:850;text-align:right}

/* V12.7 · notas emitidas e documentos fiscais */
.cf-issued-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 170px 160px 150px auto;gap:9px;align-items:center;margin-bottom:10px}.cf-issued-check{width:34px;text-align:center}.cf-issued-check input{width:16px;height:16px;cursor:pointer}#cfIssuedCancelBtn{color:#f18a94!important;border-color:rgba(220,76,91,.45)!important}
.cf-issued-table td{vertical-align:middle}
.cf-issued-number{font-weight:900;color:#eaf0ed;font-size:11px}.cf-issued-series{font-size:8px;color:#829089;margin-top:2px}
.cf-issued-client{font-weight:800;color:#dce5e0}.cf-issued-client-sub{font-size:8px;color:#77857e;margin-top:2px}
.cf-status-badge{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.5px}
.cf-status-badge.ok{background:rgba(88,188,130,.13);border:1px solid rgba(88,188,130,.3);color:#71d59a}
.cf-status-badge.error{background:rgba(220,76,91,.12);border:1px solid rgba(220,76,91,.3);color:#ec8790}
.cf-issued-actions{display:flex;justify-content:flex-end;gap:5px;white-space:nowrap}
.cf-issued-actions button{height:29px;border:1px solid #39434d;background:#171e24;color:#cbd5d0;border-radius:7px;padding:0 8px;font-size:8px;font-weight:850;cursor:pointer}
.cf-issued-actions button:hover{border-color:rgba(88,188,130,.5);color:#70d198}
.cf-issued-actions button:disabled{opacity:.3;cursor:not-allowed}
.cf-issued-detail-card{width:min(880px,calc(100vw - 32px))}
.cf-issued-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cf-issued-detail-grid>div,.cf-issued-key{border:1px solid #303941;background:#141a1f;border-radius:9px;padding:10px}
.cf-issued-detail-grid span,.cf-issued-key span{display:block;font-size:7.5px;color:#79867f;font-weight:850;text-transform:uppercase;letter-spacing:.6px;margin-bottom:4px}
.cf-issued-detail-grid strong{font-size:10px;color:#e0e8e4;overflow-wrap:anywhere}
.cf-issued-key{margin-top:8px}.cf-issued-key strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;color:#dbe5e0;overflow-wrap:anywhere}
.cf-issued-items{margin-top:14px}.cf-issued-items-title{font-size:9px;font-weight:900;color:#aebbb4;text-transform:uppercase;letter-spacing:.7px;margin-bottom:7px}
.cf-issued-item-row{display:grid;grid-template-columns:minmax(0,1fr) 80px 90px 90px;gap:8px;border-top:1px solid #283139;padding:8px 3px;font-size:9px;color:#9eaaa4}
.cf-issued-item-row strong{color:#dbe4df;font-weight:800}.cf-issued-item-row .right{text-align:right}
@media(max-width:800px){.cf-issued-toolbar{grid-template-columns:1fr}.cf-issued-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cf-issued-item-row{grid-template-columns:1fr 60px 70px}}


/* V14 · ciclo fiscal */
.cf-btn.danger{background:#9f2834;border-color:#b63a46;color:#fff}.cf-btn.danger:hover{background:#b83240;border-color:#c74752}
.cf-issued-detail-actions{display:flex;gap:7px;flex-wrap:wrap}.cf-action-spacer{flex:1 1 20px}
.cf-status-badge.cancelled{background:rgba(245,158,11,.11);border:1px solid rgba(245,158,11,.3);color:#f5b84f}
.cf-events-toolbar{display:grid;grid-template-columns:minmax(250px,1fr) 180px 160px auto;gap:9px;align-items:center;margin-bottom:10px}
.cf-events-table td{vertical-align:middle}.cf-event-type{font-weight:900;color:#dce5e0}.cf-event-code{font-size:8px;color:#75847c;margin-top:2px}
.cf-event-feedback{border:1px solid #39444d;background:#151c21;border-radius:9px;padding:10px 12px;margin:10px 0;font-size:9px;line-height:1.55;color:#b7c2bc}.cf-event-feedback.error{border-color:rgba(220,76,91,.35);background:rgba(220,76,91,.07);color:#ef9ba2}.cf-event-feedback.cancelled{border-color:rgba(245,158,11,.3);background:rgba(245,158,11,.06);color:#e9bd6b}
.cf-event-note-summary{border:1px solid #2d373f;background:#141b20;border-radius:9px;padding:10px 12px;margin-bottom:12px;font-size:9px;color:#98a69f}.cf-event-note-summary strong{color:#e2e9e5;font-weight:900}
.cf-field textarea{width:100%;resize:vertical;min-height:92px;border:1px solid #364049;background:#141a1f;color:#e5ece8;border-radius:9px;padding:10px 11px;font:inherit;font-size:11px;outline:none}.cf-field textarea:focus{border-color:rgba(88,188,130,.65);box-shadow:0 0 0 3px rgba(88,188,130,.08)}
.cf-char-count{text-align:right;font-size:8px;color:#6f7c76;margin-top:4px}.cf-critical-note,.cf-cce-rule{margin-top:10px;border-radius:8px;padding:9px 10px;font-size:8.5px;line-height:1.5}.cf-critical-note{border:1px solid rgba(245,158,11,.25);background:rgba(245,158,11,.05);color:#d7b270}.cf-cce-rule{border:1px solid #334049;background:#151c21;color:#a8b4ae}
.cf-event-text{margin-top:10px;border:1px solid #303941;background:#141a1f;border-radius:9px;padding:10px}.cf-event-text span{display:block;font-size:7.5px;color:#79867f;font-weight:850;text-transform:uppercase;letter-spacing:.6px;margin-bottom:5px}.cf-event-text strong{font-size:9px;line-height:1.55;color:#dce5e0;white-space:pre-wrap;font-weight:700}
@media(max-width:920px){.cf-events-toolbar{grid-template-columns:1fr 1fr}.cf-events-toolbar .cf-catalog-count{grid-column:1/-1}}@media(max-width:620px){.cf-events-toolbar{grid-template-columns:1fr}.cf-issued-detail-actions .cf-action-spacer{display:none}}


/* V15 · confirmação do próprio usuário + transparência fiscal */
.cf-fiscal-checks{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0 11px}
.cf-fiscal-check{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.25px;border:1px solid #344039;background:#151c19;color:#aab7b0}
.cf-fiscal-check.ok{border-color:rgba(88,188,130,.32);background:rgba(88,188,130,.09);color:#72d49a}
.cf-fiscal-check.bad{border-color:rgba(220,76,91,.32);background:rgba(220,76,91,.08);color:#e3848d}
.cf-fiscal-details-card{width:min(980px,calc(100vw - 32px))}
.cf-fiscal-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:17px}
.cf-fiscal-overview>div{border:1px solid #303940;background:#141a1f;border-radius:9px;padding:10px;min-width:0}
.cf-fiscal-overview span,.cf-fiscal-item-grid span{display:block;font-size:7.5px;color:#7e8c85;font-weight:850;text-transform:uppercase;letter-spacing:.55px;margin-bottom:4px}
.cf-fiscal-overview strong,.cf-fiscal-item-grid strong{font-size:9.5px;color:#dde6e1;font-weight:850;overflow-wrap:anywhere}
.cf-fiscal-items-title{font-size:9px;color:#aebbb4;font-weight:900;text-transform:uppercase;letter-spacing:.65px;margin-bottom:8px}
.cf-fiscal-items-table{display:grid;gap:8px}
.cf-fiscal-item-card{border:1px solid #303940;border-radius:10px;background:#12181d;padding:10px}.cf-fiscal-item-card.ok{border-left:3px solid #58bc82}.cf-fiscal-item-card.bad{border-left:3px solid #dc4c5b}
.cf-fiscal-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.cf-fiscal-item-head strong{font-size:10px;color:#e2ebe6}.cf-fiscal-item-head span{font-size:8px;color:#78867f}
.cf-fiscal-item-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.cf-fiscal-item-grid>div{border-top:1px solid #283139;padding-top:6px;min-width:0}
@media(max-width:900px){.cf-fiscal-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.cf-fiscal-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.cf-fiscal-overview,.cf-fiscal-item-grid{grid-template-columns:1fr 1fr}}

/* V15 · preparação segura de devolução a partir do XML original */
.cf-return-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cf-return-source-grid>div,.cf-return-ref-line{border:1px solid #303940;background:#141a1f;border-radius:9px;padding:10px;min-width:0}.cf-return-source-grid span,.cf-return-ref-line span{display:block;font-size:7.5px;color:#7c8983;font-weight:850;text-transform:uppercase;letter-spacing:.55px;margin-bottom:4px}.cf-return-source-grid strong,.cf-return-ref-line strong{font-size:9.5px;color:#dee7e2;font-weight:850;overflow-wrap:anywhere}.cf-return-source-grid .mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:8px}.cf-return-reference{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cf-return-alert{margin-top:10px;border:1px solid rgba(213,155,53,.35);background:rgba(213,155,53,.07);color:#c8b17f;border-radius:9px;padding:10px;font-size:8.5px;font-weight:700;line-height:1.45}.cf-return-qty{min-width:90px;padding:7px 8px!important;height:32px!important}@media(max-width:820px){.cf-return-source-grid{grid-template-columns:1fr 1fr}.cf-return-reference{grid-template-columns:1fr}}

/* V15.1 · Episódio 1 — Planilha de Pedidos */
.system-topbar-left{min-width:0;display:flex;align-items:center;gap:14px;flex:1}
.system-topbar-right{margin-left:auto;flex:0 0 auto}
.cf-nfe-flow-nav{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.cf-nfe-flow-nav::-webkit-scrollbar{display:none}
.cf-nfe-flow-nav[hidden]{display:none!important}
.cf-nfe-flow-btn{height:31px;padding:0 11px;border:1px solid #dce1e6;background:#f1f3f5;color:#68727e;border-radius:9px;display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:900;letter-spacing:.02em;cursor:pointer;white-space:nowrap;transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.cf-nfe-flow-btn svg{width:13px;height:13px}
.cf-nfe-flow-btn.active{transform:translateY(-1px);box-shadow:0 5px 15px rgba(15,23,42,.08)}
.cf-nfe-flow-btn.flow-new.active{background:rgba(88,188,130,.14);color:#25734a;border-color:rgba(88,188,130,.38)}
.cf-nfe-flow-btn.flow-sheet.active{background:rgba(220,76,91,.12);color:#b73342;border-color:rgba(220,76,91,.34)}
.cf-nfe-flow-btn.flow-orders.active{background:rgba(61,116,210,.12);color:#315fae;border-color:rgba(61,116,210,.3)}
.cf-nfe-flow-btn.flow-billing.active{background:rgba(230,134,35,.14);color:#b96510;border-color:rgba(230,134,35,.36)}
@media(hover:hover) and (pointer:fine){
  .cf-nfe-flow-btn:hover{transform:translateY(-1px);color:#fff}
  .cf-nfe-flow-btn.flow-new:hover{background:#3b9c65;border-color:#3b9c65}
  .cf-nfe-flow-btn.flow-sheet:hover{background:#d34857;border-color:#d34857}
  .cf-nfe-flow-btn.flow-orders:hover{background:#3d74d2;border-color:#3d74d2}
  .cf-nfe-flow-btn.flow-billing:hover{background:#e68623;border-color:#e68623}
}
.cf-user-chip{appearance:none;font-family:inherit;cursor:pointer}
.cf-user-chip:focus-visible{outline:2px solid var(--cf-green);outline-offset:2px}

.cf-nfe-subview{display:none}.cf-nfe-subview.active{display:block}
.cf-planilha-page{max-width:none!important}
.cf-planilha-setup-card{max-width:980px}
.cf-planilha-setup-grid{display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(155px,.55fr) minmax(230px,.8fr) auto;gap:12px;align-items:end}
.cf-sale-condition-field{min-width:230px}
.cf-segmented{display:flex;height:36px;border:1px solid #d9dee4;background:#f5f6f7;border-radius:9px;padding:3px;gap:3px}
.cf-segmented button{flex:1;border:0;background:transparent;border-radius:6px;color:#7a8490;font-size:9px;font-weight:900;cursor:pointer}
.cf-segmented button.active{background:#fff;color:#315f47;box-shadow:0 1px 5px rgba(15,23,42,.1)}
.cf-planilha-create-wrap{display:flex;align-items:flex-end}.cf-planilha-create{height:36px;white-space:nowrap}
.cf-recent-card{max-width:980px}
.cf-planilha-recent{display:flex;flex-direction:column;gap:6px}
.cf-recent-row{display:grid;grid-template-columns:120px minmax(150px,1fr) 95px 120px 120px auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e3e7eb;border-radius:9px;background:#fafbfc;font-size:9px;color:#697581}
.cf-recent-row strong{color:#2f3945;font-size:9.5px}.cf-recent-status{font-weight:900;font-size:8px;text-transform:uppercase;letter-spacing:.04em}.cf-recent-status.ready{color:#b96510}.cf-recent-status.draft,.cf-recent-status.reopened{color:#315fae}
.cf-recent-row button{justify-self:end}

.cf-planilha-work-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}
.cf-planilha-meta{font-size:9px;color:#7b8794;margin-top:5px;font-weight:700}
.cf-planilha-head-status{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.cf-planilha-status{font-size:8px;font-weight:900;border-radius:999px;padding:5px 8px;background:rgba(61,116,210,.1);color:#315fae;border:1px solid rgba(61,116,210,.18)}
.cf-planilha-status.ready{background:rgba(230,134,35,.1);color:#b96510;border-color:rgba(230,134,35,.2)}
.cf-autosave-state{font-size:8px;color:#6f7e76;font-weight:750}.cf-autosave-state.saving{color:#b1782c}.cf-autosave-state.error{color:#c33d4b}
.cf-planilha-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.cf-planilha-toolbar-left,.cf-planilha-toolbar-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cf-danger-soft{color:#b6424f!important;border-color:rgba(220,76,91,.22)!important;background:rgba(220,76,91,.045)!important}
.cf-finalize-btn{min-width:155px}
.cf-planilha-filters{display:grid;grid-template-columns:auto auto minmax(180px,1fr);align-items:center;gap:10px;border:1px solid #e0e5ea;background:#f7f8fa;border-radius:11px;padding:8px 9px;margin-bottom:9px}
.cf-filter-line{display:flex;align-items:center;gap:7px;min-width:0}.cf-filter-line>span{font-size:8px;color:#7c8793;text-transform:uppercase;letter-spacing:.05em;font-weight:900;white-space:nowrap}
.cf-filter-pills{display:flex;gap:4px;align-items:center;overflow-x:auto;scrollbar-width:none}.cf-filter-pills::-webkit-scrollbar{display:none}
.cf-filter-pills button{height:26px;border:1px solid #dce1e6;background:#fff;color:#7b8591;border-radius:7px;padding:0 8px;font-size:8px;font-weight:900;cursor:pointer;white-space:nowrap}
.cf-filter-pills button.active{background:#27323d;color:#fff;border-color:#27323d}
.cf-unit-pills button.active{background:#53606d;border-color:#53606d}
.cf-planilha-search-wrap{min-width:180px}.cf-planilha-search-wrap .sys-input{height:30px}
.cf-planilha-grid-shell{border:1px solid #dbe1e6;border-radius:12px;overflow:hidden;background:#fff}
.cf-planilha-grid-scroll{overflow:auto;max-height:calc(100vh - 285px);min-height:390px;position:relative;scrollbar-color:#bcc5ce #f1f3f5}
.cf-planilha-grid{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-size:9px;color:#35404b}
.cf-planilha-grid th,.cf-planilha-grid td{height:36px;border-right:1px solid #e6e9ed;border-bottom:1px solid #e6e9ed;background:#fff;padding:0 6px;white-space:nowrap}
.cf-planilha-grid thead th{position:sticky;top:0;z-index:20;background:#f3f5f7;color:#65717d;text-transform:uppercase;font-size:7.5px;letter-spacing:.035em;font-weight:900;text-align:center;height:34px}
.cf-planilha-grid tbody tr:hover td{background:#fbfcfd}.cf-planilha-grid tbody tr.has-order td{background:#fffdf8}.cf-planilha-grid tbody tr.has-order:hover td{background:#fffaf0}
.cf-planilha-grid .sticky-product{position:sticky;left:0;z-index:12;width:245px;min-width:245px;max-width:245px;text-align:left}.cf-planilha-grid thead .sticky-product{z-index:30}
.cf-planilha-grid .sticky-unit{position:sticky;left:245px;z-index:12;width:54px;min-width:54px;max-width:54px;text-align:center}.cf-planilha-grid thead .sticky-unit{z-index:30}
.cf-planilha-grid .sticky-price{position:sticky;left:299px;z-index:12;width:84px;min-width:84px;max-width:84px;text-align:center}.cf-planilha-grid thead .sticky-price{z-index:30}
.cf-planilha-grid .sticky-qty{position:sticky;left:383px;z-index:12;width:78px;min-width:78px;max-width:78px;text-align:right}.cf-planilha-grid thead .sticky-qty{z-index:30}
.cf-planilha-grid .sticky-total{position:sticky;left:461px;z-index:12;width:98px;min-width:98px;max-width:98px;text-align:right;box-shadow:5px 0 9px rgba(15,23,42,.045)}.cf-planilha-grid thead .sticky-total{z-index:30}
.cf-product-cell{display:flex;flex-direction:column;justify-content:center;min-width:0;height:30px}.cf-product-cell strong{font-size:9px;overflow:hidden;text-overflow:ellipsis}.cf-product-cell span{font-size:7.5px;color:#8a949e;margin-top:2px}
.cf-planilha-grid .store-head{min-width:76px;max-width:88px;text-align:center}.cf-planilha-grid .store-head span{display:block;font-size:7px;color:#9aa3ac;margin-top:1px;text-transform:none;font-weight:700}
.cf-plan-input{width:68px;height:26px;border:1px solid transparent;border-radius:6px;background:transparent;color:#26313d;text-align:right;padding:0 6px;font:800 10px/1 inherit;outline:none}
.cf-plan-input:hover{border-color:#d9dee4;background:#fafbfc}.cf-plan-input:focus{border-color:#4c8ee8;background:#fff;box-shadow:0 0 0 2px rgba(76,142,232,.12)}
.cf-plan-price{width:72px}.cf-plan-qty.has-value{background:#fff2f3;border-color:#f1c8cd;color:#9e2f3c}.cf-plan-qty.has-value:focus{background:#fff}
.cf-row-qty,.cf-row-total{font-variant-numeric:tabular-nums;font-weight:900}.cf-row-total{color:#253e32}
.cf-planilha-footer{height:42px;display:flex;align-items:center;gap:20px;padding:0 12px;background:#f5f7f8;color:#687480;font-size:8.5px;font-weight:750;border-top:1px solid #dde2e7;position:sticky;bottom:0;z-index:40}
.cf-planilha-footer strong{font-size:10px;color:#2e3945}.cf-planilha-grand{margin-left:auto;font-size:9px}.cf-planilha-grand strong{font-size:13px;color:#286b49;margin-left:4px}

.cf-orders-summary{font-size:9px;font-weight:750;color:#687480;margin-bottom:10px}.cf-orders-summary strong{color:#2e3945}
.cf-orders-table td{vertical-align:middle}.cf-order-number{font-weight:900;color:#2e3945}.cf-order-store{font-weight:850}.cf-order-actions{display:flex;gap:5px;justify-content:flex-end}.cf-order-actions button{height:27px;padding:0 8px;border:1px solid #dbe0e5;background:#fff;border-radius:7px;color:#62707d;font-size:8px;font-weight:850;cursor:pointer}.cf-order-actions button:hover{border-color:#3d74d2;color:#315fae;background:rgba(61,116,210,.05)}
.cf-order-detail{margin-top:10px;border:1px solid #dfe4e8;border-radius:11px;background:#fff;padding:13px}.cf-order-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.cf-order-detail-title{font-size:12px;font-weight:900;color:#2d3742}.cf-order-detail-meta{font-size:8.5px;color:#7a8692;margin-top:3px}.cf-order-detail-items{display:grid;gap:5px}.cf-order-detail-row{display:grid;grid-template-columns:minmax(180px,1fr) 90px 110px 110px;gap:10px;padding:7px 8px;border-top:1px solid #eef0f2;font-size:8.5px}.cf-order-detail-row:first-child{border-top:0}.cf-order-detail-row strong{text-align:right}
.cf-billing-note{border:1px solid rgba(230,134,35,.23);background:rgba(230,134,35,.07);color:#8f5b22;border-radius:9px;padding:9px 10px;font-size:8.5px;line-height:1.45;margin-bottom:10px}
.cf-billing-action{background:#e68623!important;border-color:#e68623!important;color:#fff!important}.cf-billing-action:disabled{opacity:.42!important}
.cf-billing-preparation-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}.cf-billing-preparation-actions .sys-btn{min-height:42px;font-size:12px}
#module-billing .cf-billing-note{font-size:12px;line-height:1.55;padding:12px 14px}
.cf-billing-results{border:1px solid #8ab99c;background:#f2f9f4;color:#234d32;border-radius:10px;padding:15px 17px;margin-bottom:16px;font-size:13px;line-height:1.5}.cf-billing-results[hidden]{display:none!important}.cf-billing-results>strong{font-size:15px}.cf-billing-results p{margin:5px 0 8px}.cf-billing-results ul{list-style:none;margin:0;padding:0}.cf-billing-results li{border-top:1px solid #cee3d5;padding:10px 0 4px}.cf-billing-results li>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px}.cf-billing-results small{overflow-wrap:anywhere;font-size:11px}.cf-billing-result-unconfirmed{color:#92531c}.cf-billing-result-skipped{color:#626d65}
.cf-status-badge.cf-billing-prepared{background:#e7edff;border:1px solid #8fa8e0;color:#23447e}.cf-billing-prepared-by{display:block;font-size:10px;line-height:1.4;margin-top:6px;color:#586775}
#cfBillingBody .cf-status-badge{white-space:normal;line-height:1.4;min-width:110px}
.cf-billing-planning{margin:18px 0;padding:22px;border:1px solid #d4dce3;border-radius:14px;background:#fff;color:#26363f;font-size:14px;line-height:1.55}.cf-billing-planning[hidden]{display:none!important}.cf-billing-planning h3{margin:0;font-size:20px}.cf-billing-plan-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.cf-billing-plan-fields label,.cf-bank-review label{display:grid;gap:6px;font-weight:600}.cf-billing-plan-fields .sys-input{font-size:15px;min-height:44px;color:inherit}.cf-billing-planning ul{padding-left:20px}.cf-billing-planning li{margin:8px 0}.cf-check-error{color:#aa2537}.cf-check-pending,.cf-check-warning{color:#8b5511}.cf-plan-external{padding:12px;background:#f2f5f7;border-radius:8px}.cf-bank-review summary{cursor:pointer;font-weight:700}.cf-bank-review label{max-width:460px;margin:16px 0}.cf-bank-review .sys-btn{margin-bottom:12px}
html[data-theme="dark"] .cf-billing-planning{background:#161e24;border-color:#38454f;color:#edf3ef}html[data-theme="dark"] .cf-billing-plan-fields .sys-input{background:#10171c;border-color:#4a5a66;color:#fff}html[data-theme="dark"] .cf-check-error{color:#ffadb7}html[data-theme="dark"] .cf-check-pending,html[data-theme="dark"] .cf-check-warning{color:#ffd298}html[data-theme="dark"] .cf-plan-external{background:#243039}
@media(max-width:850px){.cf-billing-plan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.cf-billing-plan-fields{grid-template-columns:1fr}.cf-billing-planning{padding:16px}}
html[data-theme="dark"] .cf-billing-results{background:#182820;border-color:#4c785b;color:#e4f3e9}html[data-theme="dark"] .cf-billing-results li{border-color:#395c44}html[data-theme="dark"] .cf-billing-result-unconfirmed{color:#ffd199}html[data-theme="dark"] .cf-billing-result-skipped{color:#c3cfc7}html[data-theme="dark"] .cf-status-badge.cf-billing-prepared{background:#253551;border-color:#647fb2;color:#d9e7ff}html[data-theme="dark"] .cf-billing-prepared-by{color:#c5d1dc}
@media(max-width:580px){.cf-billing-preparation-actions .sys-btn{flex:1 1 190px}.cf-billing-results{padding:12px}}
.cf-billing-check{width:16px;height:16px;accent-color:#e68623;cursor:pointer}
.cf-flow-pulse{animation:cfBillingPulse .75s ease 3}@keyframes cfBillingPulse{0%,100%{box-shadow:0 0 0 0 rgba(230,134,35,0)}50%{box-shadow:0 0 0 6px rgba(230,134,35,.16)}}

html[data-theme="dark"] .cf-nfe-flow-btn{background:#232a31;border-color:#303944;color:#aab4bd}
html[data-theme="dark"] .cf-segmented{background:#171e25;border-color:#303944}html[data-theme="dark"] .cf-segmented button.active{background:#29323a;color:#c8ead7;box-shadow:none}
html[data-theme="dark"] .cf-recent-row,html[data-theme="dark"] .cf-planilha-grid-shell,html[data-theme="dark"] .cf-planilha-grid th,html[data-theme="dark"] .cf-planilha-grid td,html[data-theme="dark"] .cf-order-detail{background:#151c23;border-color:#2a333d;color:#cbd4d0}
html[data-theme="dark"] .cf-recent-row strong,html[data-theme="dark"] .cf-planilha-footer strong,html[data-theme="dark"] .cf-order-detail-title{color:#e2e9e5}
html[data-theme="dark"] .cf-planilha-filters,html[data-theme="dark"] .cf-planilha-footer{background:#171e25;border-color:#2b343e;color:#9aa6a0}
html[data-theme="dark"] .cf-filter-pills button,html[data-theme="dark"] .cf-order-actions button{background:#202831;border-color:#303a44;color:#aab4bd}
html[data-theme="dark"] .cf-filter-pills button.active{background:#4b5865;border-color:#4b5865;color:#fff}
html[data-theme="dark"] .cf-planilha-grid thead th{background:#1f2730;color:#9ba7b1}html[data-theme="dark"] .cf-planilha-grid tbody tr:hover td{background:#192129}html[data-theme="dark"] .cf-planilha-grid tbody tr.has-order td{background:#1b2025}html[data-theme="dark"] .cf-planilha-grid tbody tr.has-order:hover td{background:#20252a}
html[data-theme="dark"] .cf-plan-input{color:#e4e9e6}html[data-theme="dark"] .cf-plan-input:hover{background:#202831;border-color:#35404a}html[data-theme="dark"] .cf-plan-input:focus{background:#10161c}html[data-theme="dark"] .cf-plan-qty.has-value{background:rgba(220,76,91,.12);border-color:rgba(220,76,91,.25);color:#f0a0aa}
html[data-theme="dark"] .cf-row-total{color:#a7d7ba}html[data-theme="dark"] .cf-billing-note{color:#dfad73}

@media(max-width:1050px){.cf-planilha-setup-grid{grid-template-columns:1fr 1fr}.cf-planilha-create-wrap{grid-column:1/-1}.cf-planilha-create{width:100%}.cf-planilha-filters{grid-template-columns:1fr}.cf-planilha-search-wrap{min-width:0}.system-page-heading{display:none}}
@media(max-width:760px){.cf-nfe-flow-btn{padding:0 8px}.cf-nfe-flow-btn span{display:none}.cf-nfe-flow-btn svg{width:15px;height:15px}.cf-planilha-toolbar{align-items:flex-start;flex-direction:column}.cf-planilha-toolbar-right{width:100%;justify-content:flex-end}.cf-planilha-work-head{flex-direction:column}.cf-planilha-head-status{align-items:flex-start}.cf-planilha-footer{gap:10px;overflow-x:auto}.cf-planilha-grand{margin-left:0}.cf-recent-row{grid-template-columns:1fr 1fr}.cf-recent-row>*:nth-child(3),.cf-recent-row>*:nth-child(4){display:none}}


/* V15.2 · Tabulator 6.5.2 · Planilha de Pedidos */
.cf-planilha-grid-scroll-tabulator{overflow:hidden!important;background:#fff}
.cf-planilha-tabulator{width:100%;min-height:320px;background:#fff}
.cf-planilha-tabulator.tabulator{border:0;background:#fff;font-size:11px;color:#28333d}
.cf-planilha-tabulator .tabulator-header{border:0;border-bottom:1px solid #dce2e7;background:#f5f7f8;color:#687480;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.02em}
.cf-planilha-tabulator .tabulator-header .tabulator-col{background:#f5f7f8;border-right:1px solid #e3e7ea;min-height:44px}
.cf-planilha-tabulator .tabulator-header .tabulator-col .tabulator-col-content{padding:8px 7px}
.cf-planilha-tabulator .tabulator-header .tabulator-col .tabulator-col-title{white-space:normal;line-height:1.05}
.cf-tab-store-name{display:block;margin-top:3px;font-size:7px;font-weight:650;color:#9aa4ad;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-planilha-tabulator .tabulator-row{background:#fff;border-bottom:1px solid #edf0f2;min-height:38px}
.cf-planilha-tabulator .tabulator-row:nth-child(even){background:#fcfdfd}
.cf-planilha-tabulator .tabulator-row:hover{background:#f7faf8}
.cf-planilha-tabulator .tabulator-row.has-order{background:#fffaf0}
.cf-planilha-tabulator .tabulator-row.has-order:hover{background:#fff6e4}
.cf-planilha-tabulator .tabulator-row .tabulator-cell{border-right:1px solid #edf0f2;padding:7px 8px;display:inline-block;vertical-align:middle;overflow:hidden;line-height:24px}
.cf-planilha-tabulator .tabulator-cell.cf-tab-product{padding:5px 8px;line-height:normal}
.cf-planilha-tabulator .tabulator-cell.cf-tab-store{text-align:center}
.cf-planilha-tabulator .tabulator-row{height:40px;min-height:40px}
.cf-planilha-tabulator .tabulator-row .tabulator-cell{height:40px}
.cf-planilha-tabulator .tabulator-cell.cf-tab-price,.cf-planilha-tabulator .tabulator-cell.cf-tab-qtytotal,.cf-planilha-tabulator .tabulator-cell.cf-tab-total{font-variant-numeric:tabular-nums;font-weight:800}
.cf-planilha-tabulator .tabulator-cell.cf-tab-total{color:#286b49}
.cf-planilha-tabulator .tabulator-cell.cf-tab-store{font-variant-numeric:tabular-nums;font-weight:800;justify-content:center;cursor:cell}
.cf-planilha-tabulator .tabulator-cell.cf-tab-store:not(:empty){color:#1d2933}
.cf-planilha-tabulator .tabulator-cell.tabulator-editing{padding:2px;background:#fff;border:2px solid #58bc82!important;box-shadow:inset 0 0 0 1px rgba(88,188,130,.12)}
.cf-tabulator-number-editor{width:100%;height:100%;min-height:30px;border:0!important;outline:0!important;background:transparent!important;text-align:right;padding:4px 6px;font:inherit;font-weight:850;color:inherit;font-variant-numeric:tabular-nums}
.cf-tab-store .cf-tabulator-number-editor{text-align:center}
.cf-planilha-tabulator .tabulator-range{border:1px solid #58bc82!important;background:rgba(88,188,130,.05)}
.cf-planilha-tabulator .tabulator-range-active{border:2px solid #58bc82!important}
.cf-planilha-tabulator .tabulator-frozen{background:inherit!important}
.cf-planilha-tabulator .tabulator-frozen.cf-tab-total{box-shadow:5px 0 9px rgba(15,23,42,.05)}
.cf-planilha-tabulator .tabulator-tableholder{scrollbar-color:#c4cbd1 transparent;scrollbar-width:thin}
.cf-planilha-tabulator .tabulator-placeholder{background:#fff;color:#7b8791}
.cf-tabulator-missing{height:320px;display:flex;flex-direction:column;justify-content:center;gap:6px}.cf-tabulator-missing span{font-size:10px;color:#8c969f}
html[data-theme="dark"] .cf-planilha-grid-scroll-tabulator,html[data-theme="dark"] .cf-planilha-tabulator,html[data-theme="dark"] .cf-planilha-tabulator.tabulator{background:#151c23;color:#d4ddd8}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-header,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-header .tabulator-col{background:#1f2730;color:#9ba7b1;border-color:#2d3741}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row:nth-child(even){background:#151c23;border-color:#252e37}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row:hover{background:#192129}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row.has-order{background:#1b2025}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row.has-order:hover{background:#20252a}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell{border-color:#26303a}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.cf-tab-total{color:#78d29d}


/* V15.3 — contraste explícito da grade e conferência por rede */
.cf-planilha-tabulator .tabulator-row .tabulator-cell{color:#202e39}
.cf-planilha-tabulator .tabulator-row .cf-product-cell strong{color:#202e39}
.cf-planilha-tabulator .tabulator-cell.cf-tab-total{color:#205c3b}
.cf-planilha-tabulator .tabulator-cell.tabulator-range-selected,.cf-planilha-tabulator .tabulator-cell.tabulator-range-highlight{background:#e4f3eb;color:#122b20}
.cf-planilha-tabulator .tabulator-cell.tabulator-editing{background:#fff;color:#152b20}
.cf-planilha-tabulator .cf-tabulator-number-editor{color:#152b20!important;caret-color:currentColor;opacity:1;-webkit-text-fill-color:currentColor}
.cf-tabulator-number-editor[aria-invalid="true"]{box-shadow:inset 0 0 0 2px #d63c4d}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row .tabulator-cell,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.cf-tab-store:not(:empty){color:#f1f5f9}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row .cf-product-cell strong{color:#f1f5f9}
html[data-theme="dark"] .cf-planilha-tabulator .cf-product-cell span,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.cf-tab-unit{color:#c6d2df}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.cf-tab-total{color:#8aefb6}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.tabulator-range-selected,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.tabulator-range-highlight{background:#244637;color:#fff}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.tabulator-editing{background:#163c2d;color:#fff}
html[data-theme="dark"] .cf-planilha-tabulator .cf-tabulator-number-editor{color:#fff!important}
/* V15.53 — planilha mais legível: números maiores e alinhados à direita, contraste forte,
   produto e lojas marcados, zebrado leve e a linha do cursor destacada. Mesma paleta. */
.cf-planilha-tabulator.tabulator{font-size:13px;color:#111c24;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.cf-planilha-tabulator .tabulator-header{font-size:10.5px;color:#3d4a55;border-bottom:2px solid #c9d3da}
.cf-tab-store-name{font-size:8.5px;color:#6f7b85}
.cf-planilha-tabulator .tabulator-row .tabulator-cell{color:#111c24}
.cf-planilha-tabulator .tabulator-row:nth-child(even){background:#f6f8f9}
/* A linha com pedido continua com o fundo dela, e o total continua verde (mesma paleta). */
.cf-planilha-tabulator .tabulator-row.has-order{background:#fffaf0}
.cf-planilha-tabulator .tabulator-row.has-order:hover,.cf-planilha-tabulator .tabulator-row:hover{background:#f1f7f3}
.cf-planilha-tabulator .tabulator-row .tabulator-cell.cf-tab-total{color:#205c3b}
.cf-planilha-tabulator .tabulator-cell.cf-tab-price,.cf-planilha-tabulator .tabulator-cell.cf-tab-qtytotal,.cf-planilha-tabulator .tabulator-cell.cf-tab-total,.cf-planilha-tabulator .tabulator-cell.cf-tab-store{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums lining-nums;text-align:right;letter-spacing:0}
.cf-planilha-tabulator .tabulator-cell.cf-tab-store{justify-content:flex-end}
.cf-tab-store .cf-tabulator-number-editor{text-align:right}
/* Produto e lojas marcados: o bloco fixo (produto → total) termina numa borda firme; a coluna
   do produto tem fundo próprio e o cabeçalho das lojas tem a faixa verde da Central. */
.cf-planilha-tabulator .tabulator-cell.cf-tab-product{background:rgba(88,188,130,.06)}
.cf-planilha-tabulator .tabulator-row .tabulator-cell.cf-tab-product strong{font-size:13.5px}
.cf-planilha-tabulator .tabulator-cell.cf-tab-total,.cf-planilha-tabulator .tabulator-header .tabulator-col.cf-tab-total{border-right:2px solid #9fb4a8}
.cf-planilha-tabulator .tabulator-header .tabulator-col.cf-tab-store{box-shadow:inset 0 3px 0 #58bc82}
.cf-planilha-tabulator .tabulator-row.cf-row-cursor,.cf-planilha-tabulator .tabulator-row.cf-row-cursor .tabulator-frozen{background:#e3f4ea!important}
.cf-planilha-tabulator .tabulator-row.cf-row-cursor .tabulator-cell.cf-tab-product{box-shadow:inset 3px 0 0 #58bc82}
@media(min-width:1600px){.cf-planilha-tabulator.tabulator{font-size:14px}.cf-planilha-tabulator .tabulator-cell.cf-tab-price,.cf-planilha-tabulator .tabulator-cell.cf-tab-qtytotal,.cf-planilha-tabulator .tabulator-cell.cf-tab-total,.cf-planilha-tabulator .tabulator-cell.cf-tab-store{font-size:15px}}
@media(max-width:1366px){.cf-planilha-tabulator.tabulator{font-size:12.5px}.cf-planilha-tabulator .tabulator-cell.cf-tab-price,.cf-planilha-tabulator .tabulator-cell.cf-tab-qtytotal,.cf-planilha-tabulator .tabulator-cell.cf-tab-total,.cf-planilha-tabulator .tabulator-cell.cf-tab-store{font-size:13.5px}}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-header{color:#c6d2df;border-bottom-color:#3a4652}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row:nth-child(even){background:#18212a}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row.has-order{background:#1b2025}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row .tabulator-cell.cf-tab-total{color:#8aefb6}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.cf-tab-product{background:rgba(88,188,130,.07)}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-cell.cf-tab-total,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-header .tabulator-col.cf-tab-total{border-right-color:#4a6558}
html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row.cf-row-cursor,html[data-theme="dark"] .cf-planilha-tabulator .tabulator-row.cf-row-cursor .tabulator-frozen{background:#1f3b2e!important}
.cf-planilha-recovery-actions{display:flex;gap:8px;flex-wrap:wrap}.cf-planilha-save-issue{padding:12px;margin:8px 0;border:1px solid #ba762c;background:#fff7e6;color:#653e14;border-radius:8px;font-size:12px;line-height:1.5}.cf-planilha-save-issue[hidden]{display:none}
.cf-planilha-head-status{gap:6px;flex-wrap:wrap}.cf-autosave-state{font-size:11px}.cf-planilha-footer>span{line-height:1.5}.cf-planilha-footer #cfPlanilhaQtyTotal{white-space:normal}
.cf-billing-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:14px}.cf-billing-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px}.cf-billing-filters label:nth-child(2){flex:1;min-width:210px}
.cf-billing-selection-label{font-size:12px;line-height:1.5;margin-bottom:8px}.cf-billing-selection-label span{color:#617167}.cf-billing-networks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.cf-billing-network{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #c8d5cd;border-radius:8px;font-size:12px;cursor:pointer}.cf-billing-network input{width:18px;height:18px;accent-color:#247349}.cf-billing-network small{font-variant-numeric:tabular-nums;color:#617167}.cf-billing-network:has(input:checked),.cf-billing-network:has(input:indeterminate){background:#e3f3e9;border-color:#38835b}.cf-billing-preview-order{padding:14px 0;border-top:1px solid #dbe3de}.cf-billing-preview-note{font-size:12px;line-height:1.5;color:#617167}.cf-billing-preview-order .cf-order-detail-row{font-size:12px}
html[data-theme="dark"] .cf-planilha-save-issue{background:#382c18;color:#ffd89e;border-color:#ae813b}html[data-theme="dark"] .cf-billing-selection-label span,html[data-theme="dark"] .cf-billing-network small,html[data-theme="dark"] .cf-billing-preview-note{color:#bfccc5}html[data-theme="dark"] .cf-billing-network{border-color:#485d51;color:#f0f5f2}html[data-theme="dark"] .cf-billing-network:has(input:checked),html[data-theme="dark"] .cf-billing-network:has(input:indeterminate){background:#254b37;border-color:#6dba89}html[data-theme="dark"] .cf-billing-preview-order{border-color:#3a4c40}
@media(max-width:700px){.cf-billing-filters label{flex:1;min-width:150px}.cf-billing-preview-order .cf-order-detail-row{grid-template-columns:minmax(130px,1fr) 90px 100px 100px}.cf-billing-preview-order{overflow:auto}.cf-billing-network{padding:10px}.cf-autosave-state{font-size:11px}.cf-planilha-footer{flex-wrap:wrap}}

.sys-btn[hidden],#cfPlanilhaSetup[hidden],#cfPlanilhaWork[hidden],#cfBillingPreview[hidden],#cfOrderDetail[hidden]{display:none!important}
:root{--cf-review-bg:#fff;--cf-review-header:#f0f5f2;--cf-review-text:#1c3027;--cf-review-muted:#53675d;--cf-review-line:#d6e1db}
.cf-review-store .cf-review-table td{color:var(--cf-review-text)!important;opacity:1;font-weight:500}.cf-review-store .cf-review-table td:last-child{font-weight:750}
html[data-theme="dark"]{--cf-review-bg:#172027;--cf-review-header:#202e35;--cf-review-text:#f0f6f2;--cf-review-muted:#b7c8be;--cf-review-line:#3b4e45}
.cf-review-head{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px;color:var(--cf-review-text)}
.cf-review-head h3{font-size:22px;margin:0 0 6px;font-weight:800}.cf-review-head span{font-size:15px;color:var(--cf-review-muted)}
.cf-review-actions{display:flex;gap:8px;flex-wrap:wrap}.cf-review-store{background:var(--cf-review-bg);color:var(--cf-review-text);border:1px solid var(--cf-review-line);border-radius:12px;margin-top:12px;overflow:hidden}
.cf-review-store>summary{display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer;list-style:none;background:var(--cf-review-header)}
.cf-review-store>summary::-webkit-details-marker{display:none}.cf-review-store>summary:before{content:'+';font-size:23px;width:20px;flex-shrink:0}.cf-review-store[open]>summary:before{content:'−'}
.cf-review-store>summary>div{flex:1;min-width:0}.cf-review-store>summary strong{display:block;font-size:18px;line-height:1.4}.cf-review-store>summary span{display:block;font-size:13px;font-weight:400;color:var(--cf-review-muted);margin-top:4px}.cf-review-store>summary b{font-size:19px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cf-review-table-wrap{overflow-x:auto;padding:0 20px}.cf-review-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:15px}
.cf-review-table th{font-size:12px;font-weight:650;color:var(--cf-review-muted);padding:14px 12px;text-align:right;white-space:nowrap}.cf-review-table td{padding:15px 12px;border-top:1px solid var(--cf-review-line);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cf-review-table th:first-child,.cf-review-table td:first-child{text-align:left;white-space:normal;width:52%;min-width:170px;padding-left:0}.cf-review-table td:last-child{font-weight:750}.cf-review-reference{padding:8px 20px 16px;color:var(--cf-review-muted);font-size:12px}.cf-review-reference summary{cursor:pointer}.cf-review-reference p{overflow-wrap:anywhere}.cf-review-network-totals{display:flex;flex-wrap:wrap;gap:12px 24px;padding:0 15px 18px;color:var(--cf-review-text);font-size:14px}#cfReviewChartCanvas{width:100%;height:300px}#cfReviewChartPanel{border:1px solid var(--cf-review-line);border-radius:12px;margin:12px 0}#cfReviewChartPanel[hidden]{display:none}
@media(max-width:620px){.cf-review-store>summary{padding:14px 12px;gap:8px}.cf-review-store>summary strong{font-size:16px}.cf-review-store>summary b{font-size:16px}.cf-review-table-wrap{padding:0 12px}.cf-review-table{font-size:13px}.cf-review-table td,.cf-review-table th{padding:12px 7px}}

/* V15.6 — confirmação e evidência da única nota real. */
.cf-production-button{background:#a93d24!important;border-color:#bd5135!important;color:#fff!important}
.cf-production-button:hover{background:#91301c!important}.cf-production-label{font-weight:850;color:#bc472a}
.cf-production-modal{width:min(720px,100%)}.cf-production-modal .cf-modal-title{font-size:20px}.cf-production-modal .cf-modal-sub{font-size:13px;color:#ffc49e}
.cf-production-modal .cf-modal-body{font-size:14px;line-height:1.5}.cf-production-modal .cf-issue-line{font-size:14px;gap:15px}.cf-production-modal .cf-issue-line strong{overflow-wrap:anywhere;text-align:right}
.cf-production-notice{padding:12px 14px;border:1px solid #bf6547;border-radius:8px;background:#3b281e;color:#ffe0c7;margin:0 0 12px}
.cf-production-status{padding:10px 0;color:#e7eee8;font-weight:600}.cf-production-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.cf-production-fields label,.cf-production-password{display:flex;flex-direction:column;gap:7px;font-size:14px}.cf-production-fields input,.cf-production-password input{min-height:44px;font-size:15px;background:#10171e!important;color:#fff!important;border:1px solid #586774!important;border-radius:7px;padding:10px}
.cf-production-note{color:#c9d4ce;font-size:13px}.cf-production-confirm{display:flex;align-items:flex-start;gap:12px;padding:14px 0;cursor:pointer}.cf-production-confirm input{width:22px;height:22px;flex-shrink:0;margin-top:2px;accent-color:#cc603c}
.cf-production-modal .cf-btn{font-size:13px;min-height:44px}.cf-production-modal [hidden],.cf-production-result[hidden]{display:none!important}.cf-production-modal .cf-login-message{font-size:14px;line-height:1.5;color:#ffc49e;overflow-wrap:anywhere}
.cf-production-result{padding:18px;margin-bottom:14px;border:2px solid #a9482a;border-radius:10px;background:#fff5ea;color:#5d2818}.cf-production-result>strong{font-size:18px}.cf-production-result p{font-size:14px;line-height:1.5}.cf-production-result .cf-fiscal-key strong{color:inherit;overflow-wrap:anywhere}
html[data-theme="dark"] .cf-production-result{background:#30251d;color:#ffdac0}html[data-theme="dark"] .cf-production-label{color:#ffc49e}
@media(max-width:580px){.cf-production-fields{grid-template-columns:1fr}.cf-production-modal .cf-modal-foot{flex-direction:column}.cf-production-modal .cf-modal-foot .cf-btn{width:100%}}

.cf-production-products{overflow:auto;margin:14px 0}.cf-production-products table{width:100%;border-collapse:collapse;font-size:13px}.cf-production-products th,.cf-production-products td{padding:10px 6px;text-align:right;border-bottom:1px solid #46524c;white-space:nowrap}.cf-production-products th:first-child,.cf-production-products td:first-child{text-align:left;white-space:normal;min-width:150px}.cf-production-products th{font-weight:600;color:#c5d3ca}

/* V15.13 — resultado fiscal por loja; banco e envio mantêm suas pendências. */
.cf-billing-invoice-open{display:block;margin-top:9px;font-size:12px;min-height:36px}.cf-billing-invoice-state{display:block;margin-top:8px;font-size:12px;color:var(--cf-review-text)}
.cf-billing-invoice-modal{width:min(650px,100%);max-height:92vh;overflow:auto}.cf-billing-invoice-modal .cf-modal-body{font-size:14px;line-height:1.5}.cf-billing-invoice-modal .cf-modal-sub{font-size:13px}.cf-billing-invoice-modal h3{font-size:20px;margin:0 0 12px}.cf-billing-invoice-modal .cf-issue-line{font-size:14px}.cf-billing-invoice-items{margin:12px 0;max-height:180px;overflow:auto}.cf-billing-invoice-items>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--cf-review-line)}.cf-billing-invoice-items strong{text-align:right;white-space:nowrap}.cf-billing-invoice-result{padding:12px 14px;border:1px solid var(--cf-review-line);border-radius:8px;margin:12px 0}.cf-billing-invoice-result p{margin:8px 0}.cf-billing-invoice-key{overflow-wrap:anywhere;font-size:12px}.cf-billing-invoice-documents{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.cf-billing-invoice-modal [hidden]{display:none!important}.cf-billing-invoice-modal .cf-login-message{font-size:13px;line-height:1.5}.cf-billing-invoice-modal .cf-field input{min-height:42px;font-size:16px}.cf-billing-invoice-modal .cf-modal-foot{flex-wrap:wrap}.cf-billing-invoice-modal .cf-btn{min-height:42px;font-size:13px}.cf-billing-invoice-modal .cf-btn:focus-visible,.cf-billing-invoice-open:focus-visible{outline:3px solid #4b9fe1;outline-offset:2px}
@media(max-width:580px){.cf-billing-invoice-items>div{flex-wrap:wrap;gap:3px}.cf-billing-invoice-modal .cf-modal-foot .cf-btn{flex:1;white-space:normal}}

.cf-billing-invoice-preview{padding-top:12px;font-size:13px}.cf-billing-invoice-preview:empty{display:none}.cf-billing-invoice-preview dl{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.cf-billing-invoice-preview dt{font-size:12px;opacity:.8}.cf-billing-invoice-preview dd{margin:3px 0;font-weight:700}.cf-billing-invoice-preview summary{cursor:pointer;text-decoration:underline}.cf-billing-invoice-preview ul{padding-left:19px}

/* V15.20 Modo real: janela de nota destacada */
.cf-modal-card.cf-billing-real{border:2px solid var(--cf-danger);box-shadow:0 0 0 1px rgba(220,76,91,.25),0 24px 80px rgba(0,0,0,.32)}.cf-modal-card.cf-billing-real .cf-modal-sub{color:#f18a94;font-weight:800;font-size:10px}.cf-btn.danger[type=submit]{background:var(--cf-danger);border-color:var(--cf-danger);color:#fff}

/* V15.21 lote simplificado */
#cfBillingReview,.cf-billing-preparation-actions{display:none!important}
#cfBillingCancel{color:#f18a94!important;border-color:rgba(220,76,91,.45)!important}.cf-billing-cancel-list table{margin-bottom:10px}.cf-billing-cancel-list .cf-cancel-ok{color:#39c07a;font-weight:700}.cf-billing-cancel-list .cf-cancel-error{color:#f18a94;font-weight:700}.cf-billing-cancel-list .cf-cancel-running{color:#7fb2ff;font-weight:700}.cf-billing-cancel-total{margin:0 0 8px;font-size:11px}.cf-billing-cancel-agree{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:11px;font-weight:700}.cf-billing-cancel-remittance{margin:8px 0;font-size:11px}#cfBillingResults .cf-batch-bundle{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:10px 0 4px}#cfBillingResults .cf-batch-bundle .sys-btn{min-height:40px;font-weight:700}#cfBillingResults .cf-batch-bundle .sys-btn[disabled]{opacity:.75;cursor:progress}#cfBillingResults table{margin-top:8px}#cfBillingResults .cf-batch-done td:nth-child(2){color:#39c07a;font-weight:700}#cfBillingResults .cf-batch-skipped td:nth-child(2),#cfBillingResults .cf-batch-error td:nth-child(2),#cfBillingResults .cf-batch-rejected td:nth-child(2){color:#f18a94;font-weight:700}#cfBillingResults .cf-batch-running td{background:rgba(64,140,255,.08)}

/* V15.22 NF-e avulsa real */
#cfNfeIssue.danger,#cfNfeIssueConfirm.danger{background:var(--cf-danger);border-color:var(--cf-danger);color:#fff}
#cfNfeProduction{display:none!important}

/* V15.24 principais */
.cf-product-scope{display:inline-flex;gap:4px;margin-right:8px}.cf-product-result.principal .name{color:#e7c35a}

/* V15.25 bilhetes */
.cf-billing-tickets{display:flex;flex-direction:column;gap:6px;margin:10px 0}.cf-billing-ticket{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;border:1px solid rgba(255,255,255,.08);border-radius:10px}.cf-billing-ticket label{display:flex;align-items:center;gap:8px;font-size:12px}
.cf-recent-status.closed{opacity:.7}

/* V15.27 compras x vendas */
.cf-stock-help{font-size:12px;opacity:.8;margin:6px 0}.cf-stock-pending{font-size:12px;margin:8px 0;display:flex;gap:8px;flex-wrap:wrap}#cfStockBody select,#cfStockBody input{min-width:90px;font-size:12px;padding:4px 6px}

.cf-billing-charge-writeoff{font-weight:600;margin:4px 0}
/* V15.37 — aviso da remessa do dia no resumo do lote */
.cf-billing-remessa-hint{margin:8px 0;padding:8px 10px;border-radius:8px;border:1px solid #9cc3e6;background:#eef6fd;color:#12395b;font-size:13px;line-height:1.4}
html[data-theme="dark"] .cf-billing-remessa-hint{border-color:#2f5d86;background:#13263a;color:#cfe6fb}

/* V15.42 — janelinha "Reenviar e-mail" (Notas Emitidas). */
.cf-resend-title{font-size:13px;font-weight:650;margin:0 0 10px}
.cf-resend-option{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line,#dee6e1);border-radius:10px;margin:0 0 10px;cursor:pointer}
.cf-resend-option input{margin-top:3px;flex:0 0 auto}
.cf-resend-option span{display:flex;flex-direction:column;gap:3px;min-width:0}
.cf-resend-option strong{font-size:14px;font-weight:650}
.cf-resend-option small{font-size:12px;line-height:1.45;color:var(--muted,#627368)}
.cf-resend-option input:disabled{cursor:not-allowed}
.cf-resend-option:has(input:disabled){opacity:.65;cursor:not-allowed}
.cf-link-btn{all:unset;cursor:pointer;font-size:12px;font-weight:600;color:#2f7a55;text-decoration:underline;text-underline-offset:3px;padding:4px 2px}
.cf-link-btn:hover,.cf-link-btn:focus-visible{color:#1f5a3d}
.cf-link-btn[hidden]{display:none!important}
.cf-danfe-preview-card{max-width:min(1100px,96vw)!important;width:100%}
.cf-danfe-preview{border:1px solid var(--line,#dee6e1);border-radius:10px;padding:14px;margin:0 0 14px;background:#fff}
.cf-danfe-preview header{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;margin-bottom:10px}
.cf-danfe-preview header strong{font-size:15px}
.cf-danfe-preview header span{font-size:12px;color:var(--muted,#627368)}
.cf-danfe-preview header em{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.04em;color:#b25d0a}
.cf-danfe-preview .num{text-align:right;font-variant-numeric:tabular-nums}
.cf-danfe-preview footer{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-size:12.5px}
html[data-theme="dark"] .cf-danfe-preview{background:#151c23;border-color:#2a333d}
html[data-theme="dark"] .cf-link-btn{color:#8fd6ae}
.cf-orders-group td{background:var(--soft,#f4f7f6);padding:0}
.cf-orders-group-btn{all:unset;box-sizing:border-box;display:block;width:100%;padding:11px 14px;cursor:pointer;font-size:13.5px}
.cf-orders-group-btn:hover,.cf-orders-group-btn:focus-visible{background:var(--line,#dee6e1)}
.cf-downloads-sent{margin:4px 0 0;font-size:12px;color:var(--muted,#627368);flex-basis:100%}
.cf-store-mail-list{max-height:52vh;overflow:auto;margin:0 0 6px}
.cf-store-mail-list .cf-resend-option small.cf-cancel-ok{font-weight:600}
.cf-resend-summary{font-size:13px;line-height:1.5;background:var(--soft,#f4f7f6);border-radius:10px;padding:12px;margin:4px 0 0;white-space:pre-line}

/* V15.45 — tela "Ajustes de produto" (só Master). */
.cf-modal-wide{max-width:900px;width:min(900px,96vw)}
.cf-adjust-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end;margin:0 0 14px}
.cf-adjust-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:var(--muted,#627368)}
.cf-adjust-import{border:1px dashed var(--line,#dee6e1);border-radius:10px;padding:12px;margin:0 0 14px}
.cf-adjust-import strong{display:block;font-size:13px;margin:0 0 4px}
.cf-adjust-import p{font-size:12px;margin:0 0 8px;color:var(--muted,#627368)}
.cf-adjust-plan{font-size:12px;margin:0 0 12px}
.cf-adjust-plan table{width:100%;border-collapse:collapse}
.cf-adjust-plan th,.cf-adjust-plan td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line,#dee6e1)}
.cf-adjust-plan .de{color:var(--muted,#627368);text-decoration:line-through}
.cf-adjust-plan .para{font-weight:650}
.cf-adjust-problems{color:#8a5c0d;background:#fff8e8;border:1px solid #f0dfb5;border-radius:9px;padding:10px 12px;font-size:12px;margin:0 0 12px}
.cf-adjust-problems li{margin:2px 0}
.cf-adjust-current{font-size:12px;margin-top:14px}
.cf-adjust-current h4{font-size:12px;margin:0 0 6px}

/* V15.46 — importação do HF PEDIDOS. */
.cf-import-nota{font-size:12px;color:var(--muted,#627368);margin:0 0 10px}
.cf-import-warn{background:#fff8e8;border:1px solid #f0dfb5;color:#8a5c0d;border-radius:9px;padding:10px 12px;font-size:12px;margin:0 0 10px}
.cf-import-block{background:#fdf1f3;border:1px solid rgba(220,76,91,.35);color:#a62932;border-radius:9px;padding:10px 12px;font-size:12px;margin:0 0 10px}
.cf-import-net{border:1px solid var(--line,#dee6e1);border-radius:11px;padding:12px;margin:0 0 12px}
.cf-import-net>h4{font-size:14px;margin:0 0 2px}
.cf-import-net>p{font-size:12px;color:var(--muted,#627368);margin:0 0 8px}
.cf-import-ask{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--soft,#f4f7f6);border-radius:9px;padding:8px 10px;margin:0 0 8px;font-size:12px}
.cf-import-ask strong{flex:1 1 220px;font-weight:650}
.cf-import-ask select,.cf-import-ask input{min-height:32px;padding:0 8px;border:1px solid var(--line,#dee6e1);border-radius:7px;font:inherit;font-size:12px}
.cf-import-ask input{width:88px}
.cf-import-table{width:100%;border-collapse:collapse;font-size:12px}
.cf-import-table th,.cf-import-table td{text-align:left;padding:5px 7px;border-bottom:1px solid var(--line,#dee6e1)}
.cf-import-table th.num,.cf-import-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.cf-import-table .aviso{color:#8a5c0d;font-size:11px}
.cf-import-table tr.pendente{opacity:.6}
.cf-import-ask input[type=search]{width:220px;min-height:32px;padding:0 8px;border:1px solid var(--line,#dee6e1);border-radius:7px;font:inherit;font-size:12px}
.cf-import-ask small{display:block;font-weight:400;color:var(--muted,#627368)}
.cf-adjust-hf-info{font-size:12px;color:var(--muted,#627368);margin:6px 0}
#cfAdjustHfPlan .aviso{color:#8a5c0d;font-size:11px}
.cf-adjust-resumo{font-size:13px;margin:0 0 10px;padding:10px 12px;background:var(--soft,#f4f7f6);border-radius:9px}
.cf-adjust-detalhes>summary{cursor:pointer;font-size:12px;color:var(--muted,#627368);margin:4px 0}
.cf-adjust-detalhes table{width:100%;border-collapse:collapse;font-size:12px;margin-top:8px}
.cf-adjust-detalhes th,.cf-adjust-detalhes td{text-align:left;padding:5px 7px;border-bottom:1px solid var(--line,#dee6e1)}
.cf-produto-id{font-variant-numeric:tabular-nums;color:var(--muted,#627368)}
#cfAdjustHfApply{margin-top:8px}
/* V15.53 — Notas Emitidas: filtros rápidos e situação do boleto na linha. */
.cf-issued-quick{margin:-2px 0 10px}
.cf-issued-quick button:disabled{opacity:.45;cursor:not-allowed}
.cf-issued-boleto{font-weight:800}.cf-issued-boleto.on{color:#1f8a4c}.cf-issued-boleto.off{color:#b86a12}
html[data-theme="dark"] .cf-issued-boleto.on{color:#7fd6a2}html[data-theme="dark"] .cf-issued-boleto.off{color:#f2b766}
/* Número da nota e loja legíveis no tema claro (as cores eram só as do tema escuro). */
.cf-issued-number{color:#1f2a33}.cf-issued-client{color:#2b3640}
html[data-theme="dark"] .cf-issued-number{color:#eaf0ed}html[data-theme="dark"] .cf-issued-client{color:#dce5e0}
/* V15.54 — resultado do boleto da nota avulsa, no fim da emissão (fica na tela, não só no aviso). */
.cf-avulsa-boleto{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:10.5px;background:#f2f8f4;border-color:#cfe3d6;color:#1f5133}
.cf-avulsa-boleto.error{background:#fff6ec;border-color:#f1cf9f;color:#8a4b0c}
.cf-avulsa-boleto .sys-btn{margin-left:auto}
html[data-theme="dark"] .cf-avulsa-boleto{background:#15241b;border-color:#2c4d38;color:#a8dcb9}
html[data-theme="dark"] .cf-avulsa-boleto.error{background:#2a2013;border-color:#5a4323;color:#f2c98e}
/* V15.54 — link do arquivo de baixa legível na janela escura. */
#cfWriteOffList a,#cfWriteOffFiles a{color:#7fd6a2;font-weight:800}
/* V15.54.1 — Boletos para pedir baixa: filtros, totais e caixinhas (a janela é sempre escura). */
.cf-write-off-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end;margin:0 0 8px}
.cf-write-off-filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#a9b4af}
.cf-write-off-filters .sys-input{height:34px;background:#10171e;border:1px solid #3a4652;border-radius:8px;color:#e8eeeb;padding:0 9px;color-scheme:dark}
.cf-write-off-filters .sys-input:disabled{opacity:.5}
.cf-write-off-quick{margin:0 0 10px;flex-wrap:wrap}
#cfWriteOffQuick button{height:28px;font-size:10px;padding:0 10px;background:#202932;border-color:#34404b;color:#c9d3ce}
#cfWriteOffQuick button.active{background:var(--cf-green-dark);border-color:var(--cf-green-dark);color:#fff}
#cfWriteOffQuick button:disabled{opacity:.45;cursor:not-allowed}
.cf-write-off-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 8px;font-size:11px;color:#b8c4be}
.cf-write-off-bar strong{color:#fff}
.cf-write-off-all{display:inline-flex;align-items:center;gap:7px;font-weight:800;color:#e8eeeb;cursor:pointer;white-space:nowrap}
.cf-write-off-all input{width:16px;height:16px;margin:0;cursor:pointer}
.cf-write-off-all:has(input:disabled){opacity:.5;cursor:not-allowed}
.cf-write-off-done{cursor:default}
.cf-write-off-nobox{flex:0 0 13px}
@media(max-width:640px){.cf-write-off-filters{grid-template-columns:1fr 1fr}.cf-write-off-filters label:last-child{grid-column:1/-1}}
