/* AVELTRIM_FINANCE_PRO_V1 — local styles only */
#dashboard .fp-view,#fpDialog{--fp-ink:#172c24;--fp-muted:#61766b;--fp-line:#dbe5df;--fp-green:#176b47;--fp-soft:#f3f7f5;--fp-radius:12px;color:var(--fp-ink)}
#dashboard .fp-view{max-width:1500px;width:100%;margin-inline:auto;min-width:0}
#dashboard .fp-view .fp-icon,#fpDialog .fp-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto;width:18px;height:18px;line-height:0!important;margin:0!important;padding:0!important;color:inherit;position:static!important;transform:none!important}
#dashboard .fp-view .fp-icon svg,#fpDialog .fp-icon svg{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;position:static!important;transform:none!important;margin:0!important;padding:0!important}
#dashboard .fp-view .fp-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 20px}
#dashboard .fp-view .fp-kicker{font-size:11px;font-weight:750;letter-spacing:.1em;color:var(--fp-green);margin-bottom:8px}
#dashboard .fp-view .fp-head h2,#fpDialog h2{display:flex;align-items:center;gap:10px;margin:0;color:var(--fp-ink);font-size:22px;line-height:1.3;letter-spacing:-.025em}
#dashboard .fp-view .fp-head h2 .fp-icon,#fpDialog h2 .fp-icon{color:var(--fp-green);width:22px;height:22px}
#dashboard .fp-view .fp-head p,#fpDialog .fp-modal-head p{margin:6px 0 0;color:var(--fp-muted);font-size:13px;line-height:1.5}
#dashboard .fp-view .fp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
#dashboard .fp-view .fp-kpi{display:flex;flex-direction:column;gap:10px;padding:16px;min-width:0;border:1px solid var(--fp-line);border-radius:var(--fp-radius);background:#fff;box-shadow:0 2px 5px #132c1e05}
#dashboard .fp-view .fp-kpi-label{display:flex;align-items:center;gap:8px;color:var(--fp-muted);font-size:13px;font-weight:600;line-height:1.35}
#dashboard .fp-view .fp-iconbox{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:#e8f3eb;color:#176b47}
#dashboard .fp-view .fp-kpi strong{display:block;color:var(--fp-ink);font-size:28px;font-weight:760;line-height:1.1;font-variant-numeric:tabular-nums}
#dashboard .fp-view .fp-kpi small{color:var(--fp-muted);font-size:12px;line-height:1.4}
#dashboard .fp-view .fp-kpi.fp-total{background:#15392d;border-color:#15392d}
#dashboard .fp-view .fp-total strong,#dashboard .fp-view .fp-total .fp-kpi-label,#dashboard .fp-view .fp-total small{color:#fff}
#dashboard .fp-view .fp-total .fp-iconbox{background:#ffffff20;color:white}
#dashboard .fp-view .fp-wait .fp-iconbox{background:#fbf1da;color:#956508}
#dashboard .fp-view .fp-other .fp-iconbox{background:#edf1ef;color:#687972}
#dashboard .fp-view .fp-list{padding:18px;min-width:0;border:1px solid var(--fp-line);border-radius:var(--fp-radius);background:white;overflow:hidden}
#dashboard .fp-view .fp-list-head{display:grid;gap:16px;margin-bottom:16px}
#dashboard .fp-view .fp-list-title{display:flex;align-items:start;justify-content:space-between;gap:10px;flex-wrap:wrap}
#dashboard .fp-view .fp-list-title h3{margin:0;font-size:16px;line-height:1.4;color:var(--fp-ink)}
#dashboard .fp-view .fp-list-title p,#dashboard .fp-view .fp-list-title small{margin:5px 0 0;font-size:12px;color:var(--fp-muted)}
#dashboard .fp-view .fp-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.34fr) minmax(135px,.25fr) auto;gap:10px;align-items:end}
#dashboard .fp-view .fp-filters label,#fpDialog label{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0;font-weight:600;font-size:13px;line-height:1.4;color:var(--fp-ink)}
#dashboard .fp-view .fp-search{display:flex;align-items:center;position:relative;min-width:0}
#dashboard .fp-view .fp-search>.fp-icon{position:absolute!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;z-index:2;width:17px;height:17px;color:var(--fp-muted);pointer-events:none}
#dashboard .fp-view .fp-filters input,#dashboard .fp-view .fp-filters select,#fpDialog input{box-sizing:border-box;min-width:0;width:100%;height:44px!important;min-height:44px!important;margin:0!important;border:1px solid #cbd9d1;border-radius:9px;background-color:white;color:var(--fp-ink);font:inherit;font-size:14px}
#dashboard .fp-view .fp-search input{padding-left:38px!important}
#dashboard .fp-view .fp-btn,#dashboard .fp-view #newPixToggle,#fpDialog .fp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;height:44px;box-sizing:border-box;padding:0 13px!important;margin:0;border:1px solid var(--fp-line);border-radius:9px;background:white;color:var(--fp-ink);font:inherit;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap;cursor:pointer;line-height:1.2}
#dashboard .fp-view .fp-primary,#dashboard .fp-view #newPixToggle,#fpDialog .fp-primary{background:var(--fp-green);border-color:var(--fp-green);color:white}
#dashboard .fp-view .fp-btn:not(:disabled):hover,#fpDialog .fp-btn:not(:disabled):hover{filter:brightness(.97);border-color:#9fbcac}
#dashboard .fp-view #newPixToggle:hover,#dashboard .fp-view .fp-primary:hover,#fpDialog .fp-primary:hover{background:#125c3c;color:white}
#dashboard .fp-view .fp-btn:disabled,#dashboard .fp-view #newPixToggle:disabled,#fpDialog .fp-btn:disabled{opacity:.5;cursor:not-allowed}
#dashboard .fp-view .fp-btn:focus-visible,#dashboard .fp-view input:focus-visible,#dashboard .fp-view select:focus-visible,#fpDialog .fp-btn:focus-visible,#fpDialog input:focus-visible{outline:2px solid #278358;outline-offset:2px}
#dashboard .fp-view .fp-table{width:100%;overflow:auto;border:1px solid var(--fp-line);border-radius:9px;padding:0;margin:0}
#dashboard .fp-view .fp-table table{width:100%;min-width:860px;border-collapse:collapse;font-size:13px}
#dashboard .fp-view .fp-table th{background:#f4f7f5;color:var(--fp-muted);font-size:12px;text-transform:none;letter-spacing:0;font-weight:650}
#dashboard .fp-view .fp-table th,#dashboard .fp-view .fp-table td{padding:12px;vertical-align:middle;text-align:left}
#dashboard .fp-view .fp-table td:nth-child(2){max-width:240px;overflow-wrap:anywhere}#dashboard .fp-view .fp-table td:nth-child(3){font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
#dashboard .fp-view .fp-table td small{color:var(--fp-muted);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
#dashboard .fp-view .fp-table .fp-btn{height:34px;min-height:34px;padding:0 9px!important;font-size:12px}#dashboard .fp-view .fp-table .fp-btn .fp-icon{width:14px;height:14px}
#dashboard .fp-view .fp-status{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:5px 8px;background:#edf1ef;color:#52655c;font-size:12px;font-weight:650;white-space:nowrap}
#dashboard .fp-view .fp-status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
#dashboard .fp-view .fp-status-ok{background:#e8f4eb;color:#176b47}#dashboard .fp-view .fp-status-wait{background:#faf1dc;color:#835905}
#dashboard .fp-view .fp-detail{display:block;margin-top:5px}#dashboard .fp-view .fp-env-tag{display:block;margin-top:5px}#dashboard .fp-view .fp-env-tag.fp-test{color:#8a630b}
#dashboard .fp-view .fp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;background:#f5f8f6;border:1px dashed #d2e0d7;border-radius:10px;padding:28px 16px;min-height:174px}
#dashboard .fp-view .fp-empty>.fp-icon{width:32px;height:32px;color:#6b927f}#dashboard .fp-view .fp-empty strong{font-size:15px;color:var(--fp-ink)}#dashboard .fp-view .fp-empty p{margin:0;color:var(--fp-muted);font-size:13px;line-height:1.45}
#fpDialog{width:min(540px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border:0;padding:0;border-radius:15px;box-shadow:0 24px 80px #15261e55;background:white;overflow:auto}
#fpDialog::backdrop{background:#10251c88}
#fpDialog .fp-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 16px;border-bottom:1px solid var(--fp-line);position:sticky;top:0;background:white;z-index:2}
#fpDialog h2{font-size:19px}#fpDialog .fp-close{width:36px;height:36px;min-height:36px;padding:0!important;flex:none}
#fpDialog .fp-modal-body{padding:18px 22px}
#fpDialog #pixPanel{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:none!important;min-width:0;width:100%}
#fpDialog #pixForm{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;padding:0}
#fpDialog #pixForm input{padding:0 12px!important}#fpDialog #pixForm input:disabled{background:#f3f6f4;color:#52655c;opacity:1}
#fpDialog #testModeNote,#fpDialog #generatePix{display:none!important}
#fpDialog .fp-mode{display:flex;gap:9px;align-items:flex-start;padding:12px;border:1px solid var(--fp-line);border-radius:9px;background:#f3f7f5;color:#32624b;margin:0 0 16px}
#fpDialog .fp-mode.fp-mode-test{background:#fcf4e2;border-color:#efdfb8;color:#835905}
#fpDialog .fp-mode strong,#fpDialog .fp-mode small{display:block;font-size:13px;line-height:1.4;color:inherit}#fpDialog .fp-mode small{font-size:12px;margin-top:3px}
#fpDialog .fp-form-hint{font-size:12px;line-height:1.5;color:var(--fp-muted);margin:14px 0 0}
#fpDialog #pixError{display:block;color:#b42318;font-size:13px;line-height:1.5;margin-top:12px}#fpDialog #pixError:empty{display:none}
#fpDialog #pixResult{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:0;border:0;min-width:0}
#fpDialog #pixQr{display:block;width:min(230px,100%);height:auto;max-width:100%;margin:0 auto;border:1px solid var(--fp-line);border-radius:8px;padding:5px}
#fpDialog #pixResult h3{margin:0 0 6px;font-size:16px;color:var(--fp-ink)}#fpDialog #pixOrder{margin:0 0 10px;font-size:13px;color:var(--fp-muted);overflow-wrap:anywhere}
#fpDialog #pixCode{display:block;box-sizing:border-box;width:100%;min-height:76px;resize:vertical;border:1px solid var(--fp-line);border-radius:8px;padding:10px;font:12px Consolas,monospace;overflow-wrap:anywhere}
#fpDialog #pixResult .inline{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}#fpDialog .fp-feedback{margin:0;color:var(--fp-muted);font-size:12px;line-height:1.5}#fpDialog .fp-feedback:empty{display:none}
#fpDialog .fp-modal-foot{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-top:1px solid var(--fp-line);background:white;padding:14px 22px;position:sticky;bottom:0;z-index:2}
#dashboard .fp-view [hidden],#fpDialog [hidden]{display:none!important}
@media(max-width:1100px){#dashboard .fp-view .fp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .fp-view .fp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .fp-view .fp-filters label:first-child{grid-column:1/-1}#dashboard .fp-view #fpClear{grid-column:2;justify-self:end}}
@media(max-width:600px){#dashboard .fp-view .fp-kpi{padding:12px;gap:8px}#dashboard .fp-view .fp-kpi-label{font-size:12px;gap:6px}#dashboard .fp-view .fp-iconbox{width:26px;height:26px}#dashboard .fp-view .fp-kpi strong{font-size:24px}#dashboard .fp-view .fp-list{padding:12px}#dashboard .fp-view .fp-filters{grid-template-columns:minmax(0,1fr)}#dashboard .fp-view #fpClear{grid-column:auto;justify-self:stretch}#dashboard .fp-view .fp-head{gap:12px}#fpDialog .fp-modal-head,#fpDialog .fp-modal-body,#fpDialog .fp-modal-foot{padding-left:14px;padding-right:14px}#fpDialog .fp-modal-foot .fp-btn{flex:1 1 auto}}
