/* Gestor All In Tech 5.5.1 — dashboard empresarial e navegação responsiva */
.app,.side,.main{transition:grid-template-columns .22s ease,width .22s ease,padding .22s ease,background-color .22s ease}

/* Menu lateral recolhível */
.side .brand{position:relative;flex:0 0 auto}
.side-toggle{display:none;border:1px solid #ffffff22;background:#ffffff12;color:#fff;border-radius:9px;width:34px;height:34px;padding:0;align-items:center;justify-content:center;cursor:pointer;flex:0 0 34px}
.side-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.side .nav button{display:flex;align-items:center;gap:11px;min-height:43px;white-space:nowrap}
.nav-icon{width:21px;height:21px;display:grid;place-items:center;flex:0 0 21px}
.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.launcher-card>.launcher-icon{width:43px;height:43px;display:grid;place-items:center;margin-bottom:auto;font-size:0;line-height:1}
.launcher-card>.launcher-icon svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

@media(min-width:1101px){
  .side-toggle{display:flex;margin-left:auto}
  body.sidebar-collapsed .app{grid-template-columns:78px minmax(0,1fr)}
  body.sidebar-collapsed .side{padding:14px 10px}
  body.sidebar-collapsed .side .brand{justify-content:center;padding-bottom:14px}
  body.sidebar-collapsed .side .brand img{width:42px;height:42px;border-radius:12px}
  body.sidebar-collapsed .side .brand>div{display:none}
  body.sidebar-collapsed .side-toggle{position:absolute;right:-4px;top:47px;width:27px;height:27px;background:#244e38;border-color:#ffffff35;z-index:2}
  body.sidebar-collapsed .side-toggle svg{transform:rotate(180deg)}
  body.sidebar-collapsed .side .nav{padding-right:0;margin-top:31px}
  body.sidebar-collapsed .side .nav button{justify-content:center;padding:11px 8px;gap:0}
  body.sidebar-collapsed .side .nav .nav-label{display:none}
  body.sidebar-collapsed .side .nav .nav-icon{width:23px;height:23px;flex-basis:23px}
  body.sidebar-collapsed .side .nav .nav-icon svg{width:22px;height:22px}
  body.sidebar-collapsed .side .account{display:grid!important;grid-template-columns:1fr!important;justify-items:center;gap:9px!important;padding-top:12px}
  body.sidebar-collapsed .side .account>span{display:none}
  body.sidebar-collapsed .side .account .avatar{width:36px;height:36px}
  body.sidebar-collapsed .account-tools{display:grid!important;grid-template-columns:1fr!important;min-width:34px!important;flex-basis:auto!important;gap:7px!important}
}

/* Preenchimento inteligente da NFS-e */
.nfse-source-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(210px,.8fr) minmax(260px,1.7fr);gap:10px;padding:13px;border:1px solid #d9e4de;border-radius:12px;background:#f7faf8}
.nfse-source-controls label{display:grid;gap:6px;font-size:10px;font-weight:700}
.nfse-source-controls select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;min-width:0}
.nfse-source-controls [hidden]{display:none!important}
#nfseDraftForm>.wide{grid-column:1/-1}

/* Área escura somente quando o dashboard está aberto */
body.dashboard-active{background:#091126}
body.dashboard-active .main{background:
  radial-gradient(circle at 12% 0%,rgba(86,85,215,.22),transparent 32%),
  radial-gradient(circle at 92% 10%,rgba(30,155,204,.16),transparent 31%),
  #0b132b;color:#edf2ff;min-height:100vh}
body.dashboard-active .top h1{color:#fff}
body.dashboard-active .top{border-color:transparent}

#dashboard{--dash-bg:#0b132b;--dash-surface:#121d3b;--dash-surface-2:#172443;--dash-line:#2b385b;--dash-text:#f6f8ff;--dash-muted:#98a5c3;--dash-blue:#4e7cf2;--dash-purple:#8b5cf6;--dash-cyan:#20b8d4;--dash-green:#2bc486;--dash-red:#ff6b75;--dash-orange:#f7a53b;color:var(--dash-text);max-width:1540px;margin:0 auto}
#dashboard *{box-sizing:border-box}
.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:16px 0 18px}
.dashboard-head h2{margin:4px 0 5px;font-size:27px;letter-spacing:-.025em}
.dashboard-head p{margin:0;color:var(--dash-muted);font-size:12px;line-height:1.5}
.dashboard-eyebrow{display:block;color:#8fa9ff;text-transform:uppercase;font-size:10px;font-weight:850;letter-spacing:.16em}
.dashboard-updated{display:flex;align-items:center;gap:8px;color:#aab5d1;font-size:11px;white-space:nowrap}
.dashboard-updated::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--dash-green);box-shadow:0 0 0 4px rgba(43,196,134,.13)}

.dashboard-filterbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:rgba(18,29,59,.88);border:1px solid var(--dash-line);border-radius:15px;padding:10px 12px;margin-bottom:14px;box-shadow:0 14px 35px rgba(2,7,24,.18)}
.dashboard-filter-modes{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}
.dashboard-filter-modes::-webkit-scrollbar{display:none}
.dashboard-filter-modes button{border:0;background:transparent;color:#aeb9d5;border-radius:9px;padding:9px 12px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.dashboard-filter-modes button.on{background:#26365f;color:#fff;box-shadow:inset 0 0 0 1px #49618f}
.dashboard-filter-control{display:flex;align-items:center;gap:7px;color:#aeb9d5;font-size:10px;font-weight:700}
.dashboard-filter-control[hidden]{display:none!important}
.dashboard-filter-control input{max-width:178px;border:1px solid #344568;background:#0f1934;color:#edf2ff;border-radius:8px;padding:8px 10px;color-scheme:dark}
.dashboard-count{margin-left:auto;color:#b9c4dd;font-size:11px;font-weight:750;background:#0e1831;border:1px solid #2b3a5d;border-radius:999px;padding:7px 10px;white-space:nowrap}

.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dash-kpi{position:relative;min-height:155px;border:1px solid rgba(255,255,255,.12);border-radius:17px;padding:17px;overflow:hidden;box-shadow:0 15px 35px rgba(2,8,28,.24)}
.dash-kpi::after{content:'';position:absolute;width:145px;height:145px;border-radius:50%;right:-65px;top:-72px;background:rgba(255,255,255,.12)}
.dash-kpi.blue{background:linear-gradient(135deg,#3157c8,#5288f1)}
.dash-kpi.purple{background:linear-gradient(135deg,#6742c7,#9363ef)}
.dash-kpi.cyan{background:linear-gradient(135deg,#087eaa,#21b7cf)}
.dash-kpi.orange{background:linear-gradient(135deg,#d67725,#f3a13d)}
.dash-kpi.negative{background:linear-gradient(135deg,#a63d5b,#e65f70)}
.dash-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}
.dash-kpi-label{font-size:11px;font-weight:800;color:#eef3ff}
.dash-kpi-icon{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.16);display:grid;place-items:center}
.dash-kpi-icon svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dash-kpi strong{display:block;position:relative;z-index:1;margin:19px 0 8px;font-size:27px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.dash-kpi-footer{position:relative;z-index:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-kpi-footer small{font-size:10px;color:rgba(255,255,255,.78)}
.dash-trend{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;background:rgba(5,17,48,.25);font-size:9px;font-weight:850;color:#fff;white-space:nowrap}

.dashboard-mini-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:11px}
.dash-mini{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;background:var(--dash-surface);border:1px solid var(--dash-line);border-radius:14px;padding:13px;min-width:0}
.dash-mini-icon{width:36px;height:36px;border-radius:10px;background:#203158;display:grid;place-items:center;color:#8da9ff;font-size:16px;font-weight:900}
.dash-mini span,.dash-mini strong,.dash-mini small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
.dash-mini #cardSalesIncomplete[hidden]{display:none!important}
.dash-mini span{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--dash-muted);font-weight:800;white-space:nowrap}
.dash-mini strong{font-size:16px;margin:4px 0 2px;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-mini small{color:#7382a5;font-size:9px;white-space:nowrap}
.dash-mini.is-negative strong{color:#ff9ca4}

.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,.75fr);gap:13px;margin-top:13px}
.dash-panel{background:linear-gradient(180deg,rgba(23,36,67,.96),rgba(16,26,53,.96));border:1px solid var(--dash-line);border-radius:17px;padding:17px;min-width:0;box-shadow:0 16px 38px rgba(2,7,24,.18)}
.dash-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.dash-panel-head h3{margin:0;color:#fff;font-size:15px}
.dash-panel-head p{margin:4px 0 0;color:var(--dash-muted);font-size:10px}
.dash-legend{display:flex;align-items:center;gap:12px;color:#b6c0d8;font-size:10px;white-space:nowrap}
.dash-legend span{display:flex;align-items:center;gap:5px}
.dash-legend i{width:8px;height:8px;border-radius:50%;display:block}
.dash-legend .income{background:#5f89ff}.dash-legend .expense{background:#ff7182}
.dashboard-chart-wrap{position:relative;width:100%;min-height:295px}
#dashboardChart{display:block;width:100%;height:295px;touch-action:pan-y}
.dashboard-chart-info{min-height:36px;margin-top:8px;border-radius:9px;background:#0c1732;border:1px solid #273657;padding:9px 11px;color:#b7c2dc;font-size:10px;line-height:1.45}
.dashboard-chart-info b{color:#fff}

.health-score{display:flex;align-items:center;gap:14px;margin:8px 0 19px}
.health-ring{--score:0;position:relative;width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--dash-green) calc(var(--score)*1%),#293756 0);flex:0 0 86px}
.health-ring::after{content:'';position:absolute;inset:8px;border-radius:50%;background:#111d3a}
.health-ring strong{position:relative;z-index:1;color:#fff;font-size:19px}
.health-copy b,.health-copy small{display:block}
.health-copy b{font-size:13px;color:#fff;margin-bottom:5px}
.health-copy small{font-size:10px;color:var(--dash-muted);line-height:1.5}
.health-lines{display:grid;gap:9px}
.health-line{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #273657;padding-top:10px;color:#aab5d0;font-size:10px}
.health-line strong{color:#fff;font-size:11px;font-variant-numeric:tabular-nums;text-align:right}
.health-line strong.negative{color:#ff929c}

.dashboard-breakdowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:13px}
.dash-bars{display:grid;gap:12px}
.dash-bar-row{display:grid;gap:5px}
.dash-bar-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#b9c4da;font-size:10px}
.dash-bar-label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-bar-label strong{color:#eef2ff;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-bar-track{height:6px;border-radius:999px;background:#263452;overflow:hidden}
.dash-bar-fill{display:block;height:100%;min-width:3px;border-radius:inherit;background:linear-gradient(90deg,#526ff0,#8b67f1)}
.dash-bars.expense .dash-bar-fill{background:linear-gradient(90deg,#ff6679,#f7a046)}
.dash-bars.payment .dash-bar-fill{background:linear-gradient(90deg,#13a5c2,#35d1b0)}
.dash-empty{border:1px dashed #334261;border-radius:11px;padding:18px;text-align:center;color:#7f8dab;font-size:11px}

.dashboard-operations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:13px}
.operation-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.operation-stat{border:1px solid #2b3a5c;background:#101b36;border-radius:11px;padding:11px}
.operation-stat strong,.operation-stat span{display:block}
.operation-stat strong{font-size:20px;color:#fff;margin-bottom:4px;font-variant-numeric:tabular-nums}
.operation-stat span{color:#8f9dbc;font-size:9px;line-height:1.3}
.operation-stat.good strong{color:#55dda4}.operation-stat.warning strong{color:#ffc25c}.operation-stat.danger strong{color:#ff7c87}.operation-stat.info strong{color:#77a2ff}
.operation-foot{margin-top:10px;color:#8f9dbc;font-size:9px;line-height:1.45}

.dashboard-recent{margin-top:13px}
.recent-list{display:grid}
.recent-row{display:grid;grid-template-columns:80px minmax(0,1fr) 115px 120px;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #263554;color:#b5c0d8;font-size:10px}
.recent-row:first-child{border-top:0}
.recent-row time{color:#7f8dab;font-variant-numeric:tabular-nums}
.recent-description{min-width:0}.recent-description b,.recent-description span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-description b{color:#eef2ff;font-size:11px;margin-bottom:3px}.recent-description span{color:#7f8dab;font-size:9px}
.recent-payment{border-radius:999px;background:#202f50;color:#b7c4df;padding:5px 8px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-amount{text-align:right;color:#5adba4;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap}
.recent-amount.out{color:#ff818d}

/* Menu móvel legível e expansível */
.mobile-menu-toggle{display:none}
@media(max-width:1250px) and (min-width:1101px){
  .dashboard-kpis{grid-template-columns:1fr 1fr}
  .dashboard-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-breakdowns,.dashboard-operations{grid-template-columns:1fr 1fr}
  .dashboard-breakdowns>.dash-panel:last-child,.dashboard-operations>.dash-panel:last-child{grid-column:1/-1}
}
@media(max-width:1100px){
  body.dashboard-active .main{padding-bottom:112px}
  .mobilebar{align-items:stretch!important;min-height:76px;box-shadow:0 -10px 35px rgba(0,0,0,.28)}
  .mobilebar>button,.mobilebar>form>button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:82px!important;padding:8px 10px!important;font-size:10px!important;line-height:1.15}
  .mobilebar .nav-icon{width:22px;height:22px;flex-basis:22px}
  .mobilebar .nav-icon svg{width:21px;height:21px}
  .mobilebar .nav-label{display:block;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-menu-toggle{display:flex!important;position:sticky;left:0;z-index:3;background:#173f2c!important;color:#fff!important;border-right:1px solid #ffffff20!important}
  .mobilebar.is-expanded{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;max-height:min(68vh,560px);overflow-y:auto;overflow-x:hidden;padding:10px 8px calc(10px + env(safe-area-inset-bottom));gap:5px}
  .mobilebar.is-expanded .mobile-menu-toggle{position:sticky;top:0;grid-column:1/-1;min-height:47px;flex-direction:row;background:#234e38!important;border-radius:9px!important}
  .mobilebar.is-expanded>button,.mobilebar.is-expanded>form>button{min-width:0!important;width:100%;min-height:64px;border-radius:9px}
  .dashboard-main-grid{grid-template-columns:1fr}
  .dashboard-breakdowns,.dashboard-operations{grid-template-columns:1fr 1fr}
  .dashboard-breakdowns>.dash-panel:last-child,.dashboard-operations>.dash-panel:last-child{grid-column:1/-1}
}
@media(max-width:820px){
  .dashboard-kpis{grid-template-columns:1fr 1fr}
  .dashboard-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-breakdowns,.dashboard-operations{grid-template-columns:1fr}
  .dashboard-breakdowns>.dash-panel:last-child,.dashboard-operations>.dash-panel:last-child{grid-column:auto}
  .recent-row{grid-template-columns:72px minmax(0,1fr) 105px}
  .recent-payment{display:none}
  .nfse-source-controls{grid-template-columns:1fr}
}
@media(max-width:620px){
  body.dashboard-active .main{padding:14px 11px 108px}
  body.dashboard-active .top h1{font-size:21px}
  .dashboard-head{align-items:flex-start;flex-direction:column;margin-top:10px}
  .dashboard-head h2{font-size:22px}
  .dashboard-updated{white-space:normal}
  .dashboard-filterbar{align-items:stretch;padding:9px}
  .dashboard-filter-modes{width:100%}
  .dashboard-filter-modes button{flex:1;padding:9px 8px}
  .dashboard-filter-control{width:100%}
  .dashboard-filter-control input{max-width:none;min-width:0;flex:1;width:100%}
  .dashboard-filter-control[data-dashboard-control="period"]{display:grid;grid-template-columns:1fr 1fr}
  .dashboard-count{margin-left:0;text-align:center}
  .dashboard-kpis{grid-template-columns:1fr}
  .dash-kpi{min-height:144px;padding:16px}
  .dash-kpi strong{font-size:26px;margin-top:16px}
  .dashboard-mini-grid{grid-template-columns:1fr 1fr}
  .dash-mini{padding:11px;grid-template-columns:32px minmax(0,1fr)}
  .dash-mini-icon{width:32px;height:32px}
  .dash-panel{padding:14px}
  .dash-panel-head{align-items:flex-start;flex-direction:column}
  .dashboard-chart-wrap,#dashboardChart{height:270px;min-height:270px}
  .health-score{align-items:flex-start}
  .recent-row{grid-template-columns:62px minmax(0,1fr) auto;gap:8px}
  .recent-amount{font-size:9px}
  .mobilebar.is-expanded{grid-template-columns:1fr 1fr}
  .mobilebar.is-expanded .mobile-menu-toggle{grid-column:1/-1}
  .launcher-card>.launcher-icon{width:36px;height:36px}
  .launcher-card>.launcher-icon svg{width:30px;height:30px}
}
@media(max-width:390px){
  .dashboard-mini-grid{grid-template-columns:1fr}
  .dashboard-filter-modes button{font-size:10px;padding:8px 6px}
  .operation-grid{grid-template-columns:1fr 1fr}
  .recent-row{grid-template-columns:55px minmax(0,1fr)}
  .recent-amount{grid-column:2;text-align:left}
}

@media(prefers-reduced-motion:reduce){.app,.side,.main,.side-toggle svg{transition:none}}

/* v5.7 — menu hierárquico */
.nav-group{display:grid;gap:3px}.nav-group-toggle{position:relative}.nav-group-toggle .nav-chevron{margin-left:auto;width:18px;height:18px;display:grid;place-items:center;transition:transform .18s ease}.nav-group.open>.nav-group-toggle .nav-chevron{transform:rotate(90deg)}.nav-submenu{display:none;gap:2px;padding:2px 0 6px 39px}.nav-group.open>.nav-submenu{display:grid}.nav-submenu button{min-height:34px;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;justify-content:flex-start!important;opacity:.9}.nav-submenu button.on{opacity:1}.sidebar-collapsed .nav-submenu{display:none!important}.sidebar-collapsed .nav-group-toggle .nav-chevron{display:none}.nav-group.has-active>.nav-group-toggle{background:rgba(255,255,255,.08)}
@media(max-width:900px){.mobilebar .nav-group{display:contents}.mobilebar .nav-submenu{grid-column:1/-1;padding:4px 8px 8px;display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mobilebar .nav-group.open>.nav-submenu{display:grid}.mobilebar .nav-submenu button{min-height:42px}.mobilebar .nav-chevron{margin-left:4px}}

/* v5.7 - status visual da Central de Backup */
.backup-message{display:flex;align-items:flex-start;gap:14px;padding:20px 22px}
.backup-message::before{content:'✓';flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#1fa463;color:#fff;font-size:22px;font-weight:900;line-height:1}
.backup-message.backup-message-error{background:#fde8e8!important;color:#9f2020!important;border:1px solid #efb1b1!important}
.backup-message.backup-message-error::before{content:'×';background:#d92d20;color:#fff;border:3px solid #d92d20;font-size:28px}
.backup-message.backup-message-success{background:#e8f7ee!important;color:#176c46!important;border:1px solid #b9e4cb!important}
@media(max-width:600px){.backup-message{padding:16px;gap:10px}.backup-message::before{flex-basis:30px;width:30px;height:30px;font-size:20px}}

/* v5.7 - películas: fontes configuráveis e histórico interno */
.film-source-list{display:grid;gap:10px;margin-top:14px}.film-source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line,#dfe7e2);border-radius:12px;background:var(--card,#fff)}.film-source-row a{min-width:0;overflow-wrap:anywhere}.film-source-row .danger{flex:0 0 auto;width:38px;height:38px;padding:0;border-radius:10px}.film-source-add{margin-top:14px}.film-source-add summary{cursor:pointer;font-weight:700;color:var(--primary,#198754);padding:8px 0}.film-source-add .form{margin-top:10px}

/* v5.7 — Histórico de versões expansível */
.version-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.backup-auto-detect{display:grid;gap:4px;padding:14px 16px;border:1px solid #b9d7c5;border-radius:12px;background:#eff8f2;color:#173526}.backup-auto-detect span{font-size:13px;color:#4f695b}

/* v5.18.7 — Central de Backup visual */
#backupSettingsPanel{display:grid;gap:18px}.backup-hero{position:relative;overflow:hidden;padding:28px!important;background:linear-gradient(135deg,#075c34,#078649 58%,#19a662)!important;color:#fff!important;border:0!important}.backup-hero::after{content:"";position:absolute;inset:-40% -10% auto 45%;height:260px;background:radial-gradient(circle,rgba(124,255,180,.2),transparent 65%);pointer-events:none}.backup-hero-main{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:center;gap:20px}.backup-eyebrow{display:block;margin-bottom:7px;color:#a9f4c9;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.backup-hero h2{margin:0 0 9px;color:#fff;font-size:30px;line-height:1.12}.backup-hero p{max-width:610px;margin:0;color:#def8e9;line-height:1.55}.backup-hero-actions{position:relative;z-index:2;display:flex;gap:10px;margin-top:20px}.backup-hero-actions form{margin:0}.backup-hero-primary,.backup-hero-secondary{min-height:46px;border-radius:11px;padding:0 17px;font-weight:850}.backup-hero-primary{border:1px solid #77e6a6;background:#064f2e;color:#fff}.backup-hero-secondary{border:0;background:#fff;color:#12452d}.backup-status-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.backup-status-grid>div{display:grid;gap:3px;padding:14px 15px;border:1px solid rgba(255,255,255,.55);border-radius:13px;background:rgba(255,255,255,.94);color:#173526;box-shadow:0 9px 24px rgba(3,48,26,.16)}.backup-status-grid span{font-size:11px;color:#61776b}.backup-status-grid b{font-size:14px;color:#087c45}.backup-status-grid small{font-size:11px;color:#718278}.backup-shield-stage{position:relative;width:180px;height:165px;display:grid;place-items:center}.backup-shield{position:relative;z-index:3;width:104px;filter:drop-shadow(0 12px 15px rgba(0,34,17,.4))}.backup-shield>path:first-child{fill:#a7efc3;stroke:#eafff2;stroke-width:3}.backup-shield-inner{fill:#19a75e}.backup-shield-check{fill:none;stroke:#fff;stroke-width:10;stroke-linecap:round;stroke-linejoin:round}.backup-orbit{position:absolute;z-index:1;width:170px;height:70px;border:1.5px solid rgba(174,255,207,.72);border-radius:50%;transform:rotate(-12deg);animation:backupOrbit 5.5s linear infinite}.backup-orbit::after{content:"";position:absolute;top:8px;left:17px;width:7px;height:7px;border-radius:50%;background:#d8ffe8;box-shadow:0 0 13px 5px #65f5a4}.orbit-two{width:145px;height:110px;transform:rotate(62deg);animation-duration:7.5s;animation-direction:reverse;opacity:.68}.backup-pulse{position:absolute;z-index:0;width:92px;height:92px;border:2px solid rgba(112,255,171,.68);border-radius:50%;animation:backupPulse 2.4s ease-out infinite}.pulse-two{animation-delay:1.2s}@keyframes backupOrbit{to{rotate:360deg}}@keyframes backupPulse{0%{scale:.72;opacity:.8}100%{scale:1.85;opacity:0}}
.backup-section-title{display:block;margin-bottom:6px}.backup-section-title h2{margin:0}.backup-section-title p{margin:3px 0 0;color:var(--muted);font-size:13px}.backup-download-panel,.backup-install-panel{border-top:4px solid #18a460!important}.backup-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.backup-download-card{position:relative;display:grid!important;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:2px 12px;min-height:94px!important;padding:14px!important;margin:0!important}.backup-card-icon{grid-row:1/4;width:44px;height:44px;display:grid;place-items:center;margin:0!important;border-radius:12px;background:#e7f7ed;color:#078047;font-size:22px!important}.backup-download-card>b{grid-column:2;font-size:14px}.backup-download-card>small{grid-column:2;white-space:normal}.backup-download-card>span:last-child{grid-column:3;grid-row:1/4;margin:0!important;font-size:0!important}.backup-download-card>span:last-child::after{content:"›";font-size:26px;color:#087d46}.backup-upload-form{display:grid!important;grid-template-columns:1fr!important;gap:13px!important}.backup-auto-detect{display:flex;align-items:center;gap:10px}.backup-auto-detect>span:last-child{display:grid;gap:3px}.backup-auto-detect b{color:#147447}.backup-auto-detect small{color:#557064}.auto-detect-icon{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#159558!important;color:#fff!important;font-weight:900}.backup-file-zone{display:grid!important;place-items:center;text-align:center;gap:6px!important;padding:22px!important;border:2px dashed #40ae76!important;border-radius:14px!important;background:#fbfefc;color:#173526!important}.backup-file-zone .backup-file-symbol{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#e4f7ec;color:#0c8a4d;font-size:28px}.backup-file-zone small{color:#6b7d73}.backup-file-zone input[type=file]{width:100%;margin-top:8px;padding:8px!important;border:1px solid #cfe2d6!important;border-radius:10px;background:#fff}.backup-file-zone input::file-selector-button{border:0;border-radius:8px;padding:9px 12px;background:#e6f6ec;color:#107545;font-weight:800}.backup-check{padding:11px 13px;border-radius:10px;background:#f6faf7}.backup-install-button{min-height:50px;font-size:15px!important}.version-history-panel{padding:0!important}.version-history-dropdown{border:0}.version-history-filter{min-height:66px}
.backup-card-icon svg{width:32px;height:32px;overflow:visible}.backup-card-icon svg path,.backup-card-icon svg ellipse{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.backup-card-icon svg text{fill:currentColor;stroke:none;font:900 5px system-ui,sans-serif}.backup-icon-system svg path:first-child{fill:currentColor;fill-opacity:.12}.backup-icon-complete svg ellipse,.backup-icon-database svg ellipse{fill:currentColor;fill-opacity:.12}
@media(max-width:700px){.backup-hero{padding:20px!important}.backup-hero-main{grid-template-columns:1fr 115px}.backup-shield-stage{width:115px;height:120px}.backup-shield{width:76px}.backup-orbit{width:112px;height:50px}.orbit-two{width:100px;height:76px}.backup-hero h2{font-size:24px}.backup-hero-actions{display:grid;grid-template-columns:1fr 1fr}.backup-hero-actions form,.backup-hero-actions button{width:100%}.backup-status-grid{grid-template-columns:1fr}.backup-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.backup-download-card{grid-template-columns:58px minmax(0,1fr) auto;min-height:108px!important;padding:13px!important}.backup-card-icon{width:54px;height:54px;font-size:29px!important;border-radius:15px}.backup-download-card>small{display:none}.backup-download-card>b{font-size:13px;line-height:1.3}.backup-file-zone{padding:18px 12px!important}}
@media(prefers-reduced-motion:reduce){.backup-orbit,.backup-pulse{animation:none!important}.backup-pulse{display:none}}

/* v5.18.12 — identidade visual das demais abas de Configurações */
.settings-visual-hero{position:relative;overflow:hidden;padding:26px!important;border:0!important;background:linear-gradient(135deg,#075c34,#078649 58%,#19a662)!important;color:#fff!important}.settings-visual-hero::after{content:"";position:absolute;inset:-55% -5% auto 48%;height:270px;background:radial-gradient(circle,rgba(150,255,194,.22),transparent 66%);pointer-events:none}.settings-visual-main{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:20px}.settings-visual-eyebrow{display:block;margin-bottom:7px;color:#abf4cb;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.settings-visual-hero h2{margin:0 0 9px!important;color:#fff!important;font-size:29px!important;line-height:1.12}.settings-visual-hero p{max-width:620px;margin:0;color:#def8e9;line-height:1.55}.settings-visual-status{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:21px}.settings-visual-status>div{display:grid;gap:3px;padding:14px 15px;border:1px solid rgba(255,255,255,.55);border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 9px 24px rgba(3,48,26,.16)}.settings-visual-status span{font-size:11px;color:#61776b}.settings-visual-status b{font-size:14px;color:#087c45}.settings-visual-status small{font-size:11px;color:#718278}.settings-visual-stage{position:relative;width:170px;height:145px;display:grid;place-items:center}.settings-visual-stage svg{position:relative;z-index:3;width:100px;height:110px;overflow:visible;filter:drop-shadow(0 11px 15px rgba(0,38,19,.36))}.settings-visual-stage svg path,.settings-visual-stage svg rect,.settings-visual-stage svg circle{fill:none;stroke:#effff5;stroke-width:8;stroke-linecap:round;stroke-linejoin:round}
.settings-visual-appearance .settings-visual-stage svg circle{fill:#39c97a;stroke:#b8f6d0}.appearance-ring{position:absolute;width:140px;height:62px;border:1.5px solid rgba(184,255,213,.72);border-radius:50%;animation:appearanceOrbit 5s linear infinite}.ring-b{width:110px;height:100px;animation-duration:7s;animation-direction:reverse}.appearance-spark{position:absolute;z-index:4;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 14px 6px #73f4a8;animation:appearanceSpark 2s ease-in-out infinite}.spark-a{top:21px;right:28px}.spark-b{bottom:28px;left:28px;animation-delay:1s}@keyframes appearanceOrbit{to{rotate:360deg}}@keyframes appearanceSpark{50%{scale:1.6;opacity:.45}}
.settings-visual-appearance .settings-visual-main{grid-template-columns:minmax(0,1fr) 190px}.settings-visual-appearance .settings-visual-stage{width:180px;height:154px}.appearance-preview-panel{display:grid!important;grid-template-columns:minmax(0,1fr) 320px;align-items:center;gap:26px;border-top:4px solid #18a460!important}.appearance-preview-copy>span{display:block;margin-bottom:7px;color:#12804b;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.appearance-preview-copy h3{margin:0 0 8px;font-size:22px;color:var(--ink,#173526)}.appearance-preview-copy p{max-width:580px;margin:0;color:var(--muted,#718078);line-height:1.55}.appearance-preview-copy>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.appearance-preview-copy>div b{padding:6px 9px;border-radius:999px;background:#e9f7ef;color:#117345;font-size:11px}.appearance-preview-stage{display:flex;justify-content:flex-end;align-items:center;min-width:0;min-height:185px}.appearance-preview{--preview-accent:#25a76a;position:relative;z-index:3;width:286px;max-width:100%;height:172px;overflow:hidden;border:2px solid rgba(255,255,255,.88);border-radius:14px;background:#f8fbf9;box-shadow:0 14px 30px rgba(0,36,19,.23);transform:perspective(500px) rotateY(-5deg);animation:appearancePreviewFloat 4.5s ease-in-out infinite}.appearance-preview-top{height:24px;display:flex;align-items:center;gap:6px;padding:0 9px;background:#fff;border-bottom:1px solid #dfe9e3}.appearance-preview-top i{width:8px;height:8px;border-radius:50%;background:var(--preview-accent);box-shadow:0 0 8px color-mix(in srgb,var(--preview-accent) 75%,transparent)}.appearance-preview-top span{width:72px;height:5px;border-radius:5px;background:#dfe9e3;margin-right:auto}.appearance-preview-top b{width:8px;height:8px;border-radius:2px;background:#d3e0d8}.appearance-preview-body{display:grid;grid-template-columns:38px 1fr;height:148px}.appearance-preview-body aside{display:flex;flex-direction:column;align-items:center;gap:13px;padding-top:14px;background:var(--preview-accent);background:color-mix(in srgb,var(--preview-accent) 88%,#063a24)}.appearance-preview-body aside i{width:13px;height:3px;border-radius:4px;background:rgba(255,255,255,.72)}.appearance-preview-body main{padding:11px;background:#f5f8f6}.appearance-preview-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.appearance-preview-kpis i{height:27px;border-radius:5px;background:#fff;border-left:3px solid var(--preview-accent);box-shadow:0 2px 5px rgba(18,54,35,.09)}.appearance-preview-chart{position:relative;display:flex;align-items:flex-end;gap:8px;height:86px;margin-top:8px;padding:9px 12px 5px;border-radius:6px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 19px,#e6ede8 20px)}.preview-bar{display:block;flex:1;border-radius:3px 3px 0 0;background:var(--preview-accent);transform-origin:bottom;animation:appearanceBars 2.8s ease-in-out infinite}.bar-1{height:38%;animation-delay:.1s}.bar-2{height:68%;animation-delay:.25s}.bar-3{height:48%;animation-delay:.4s}.bar-4{height:85%;animation-delay:.55s}.bar-5{height:62%;animation-delay:.7s}.preview-line,.preview-round{display:none}.appearance-preview[data-chart="line"] .preview-bar,.appearance-preview[data-chart="pie"] .preview-bar,.appearance-preview[data-chart="doughnut"] .preview-bar{display:none}.appearance-preview[data-chart="line"] .preview-line{display:block;position:absolute;inset:6px 7px;width:calc(100% - 14px);height:calc(100% - 12px);filter:none}.appearance-preview[data-chart="line"] .preview-line polyline{fill:none;stroke:var(--preview-accent);stroke-width:4;stroke-dasharray:170;animation:appearanceLine 3s ease-in-out infinite}.appearance-preview[data-chart="line"] .preview-line circle{fill:#fff;stroke:var(--preview-accent);stroke-width:2}.appearance-preview[data-chart="pie"] .preview-round,.appearance-preview[data-chart="doughnut"] .preview-round{display:block;width:68px;height:68px;margin:auto;border-radius:50%;background:conic-gradient(var(--preview-accent) 0 47%,#315b45 47% 78%,#e4a83b 78%);animation:appearanceRound 4s ease-in-out infinite}.appearance-preview[data-chart="doughnut"] .preview-round{position:relative}.appearance-preview[data-chart="doughnut"] .preview-round::after{content:"";position:absolute;inset:17px;border-radius:50%;background:#fff}.appearance-preview[data-mode="dark"]{background:#13231a;border-color:#75dda2}.appearance-preview[data-mode="dark"] .appearance-preview-top{background:#14251b;border-color:#2e4537}.appearance-preview[data-mode="dark"] .appearance-preview-top span,.appearance-preview[data-mode="dark"] .appearance-preview-top b{background:#365141}.appearance-preview[data-mode="dark"] .appearance-preview-body main{background:#0f1d15}.appearance-preview[data-mode="dark"] .appearance-preview-kpis i,.appearance-preview[data-mode="dark"] .appearance-preview-chart{background-color:#18291f;border-color:var(--preview-accent)}.appearance-preview[data-mode="dark"] .appearance-preview-chart{background-image:repeating-linear-gradient(to bottom,#18291f 0,#18291f 19px,#294034 20px)}.appearance-preview[data-mode="dark"][data-chart="doughnut"] .preview-round::after{background:#18291f}.appearance-preview[data-layout="compact"] .appearance-preview-body main{padding:7px}.appearance-preview[data-layout="compact"] .appearance-preview-kpis i{height:22px}.appearance-preview[data-layout="compact"] .appearance-preview-chart{height:82px;margin-top:5px}.appearance-preview-glow{position:absolute;z-index:5;top:-20px;left:-55%;width:48px;height:210px;rotate:18deg;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);animation:appearanceGlow 4.2s ease-in-out infinite}@keyframes appearancePreviewFloat{50%{translate:0 -6px;transform:perspective(500px) rotateY(2deg)}}@keyframes appearanceBars{50%{scale:1 .76;filter:brightness(1.18)}}@keyframes appearanceLine{0%{stroke-dashoffset:170}45%,100%{stroke-dashoffset:0}}@keyframes appearanceRound{50%{rotate:14deg;scale:1.05}}@keyframes appearanceGlow{0%,35%{left:-55%}78%,100%{left:125%}}
.settings-visual-general .settings-visual-stage svg path:first-child{fill:#32bd70;stroke:#bff6d4}.folder-file{position:absolute;z-index:2;width:55px;height:68px;border:3px solid #d9ffea;border-radius:7px;background:#40c77c;box-shadow:0 7px 14px rgba(0,40,20,.24);animation:fileOrganize 3s ease-in-out infinite}.folder-file::before,.folder-file::after{content:"";position:absolute;left:9px;right:9px;height:3px;border-radius:3px;background:#dffff0}.folder-file::before{top:20px}.folder-file::after{top:33px}.file-a{top:4px;left:29px;rotate:-9deg}.file-b{top:9px;right:27px;rotate:8deg;animation-delay:1.5s}@keyframes fileOrganize{50%{translate:0 -13px;rotate:0deg}}
.settings-visual-certificate .settings-visual-stage svg rect{fill:#27b96a;stroke:#c9f9dc}.lock-ring{position:absolute;width:135px;height:70px;border:1.5px solid rgba(184,255,213,.74);border-radius:50%;animation:lockPulse 2.6s ease-out infinite}.lock-ring-b{animation-delay:1.3s}.lock-scan{position:absolute;z-index:5;width:86px;height:2px;background:#d9ffe8;box-shadow:0 0 12px 4px #62ec9d;animation:lockScan 2.8s ease-in-out infinite}@keyframes lockPulse{0%{scale:.65;opacity:.85}100%{scale:1.35;opacity:0}}@keyframes lockScan{0%,100%{translate:0 -32px;opacity:.35}50%{translate:0 37px;opacity:1}}
@media(max-width:700px){.settings-visual-hero{padding:20px!important}.settings-visual-main,.settings-visual-appearance .settings-visual-main{grid-template-columns:1fr 120px}.settings-visual-stage,.settings-visual-appearance .settings-visual-stage{width:120px;height:110px}.settings-visual-stage svg{width:72px;height:82px}.settings-visual-hero h2{font-size:24px!important}.settings-visual-status{grid-template-columns:1fr}.appearance-preview-panel{grid-template-columns:1fr;gap:16px}.appearance-preview-stage{justify-content:flex-end;min-height:176px}.appearance-preview{transform:none}.appearance-ring,.lock-ring{width:104px}.ring-b{width:88px;height:78px}.folder-file{width:38px;height:50px}.file-a{left:18px}.file-b{right:17px}}
@media(max-width:430px){.settings-visual-main,.settings-visual-appearance .settings-visual-main{grid-template-columns:minmax(0,1fr) 104px}.settings-visual-stage,.settings-visual-appearance .settings-visual-stage{width:104px;height:105px}.appearance-preview-panel{padding:17px!important}.appearance-preview-stage{justify-content:center;min-height:176px}.appearance-preview{width:100%}}
@media(prefers-reduced-motion:reduce){.appearance-ring,.appearance-spark,.appearance-preview,.appearance-preview-glow,.preview-bar,.preview-line polyline,.preview-round,.folder-file,.lock-ring,.lock-scan{animation:none!important}}

/* v5.18.13 — indicadores reais e alertas nas Configurações */
.settings-visual-appearance .settings-visual-status{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-visual-status>div{position:relative;padding-left:38px;transition:border-color .2s ease,background .2s ease,transform .2s ease}.settings-visual-status>div::before{content:"";position:absolute;left:15px;top:17px;width:10px;height:10px;border:3px solid rgba(97,119,107,.18);border-radius:50%;background:#879b90;box-shadow:0 0 0 4px rgba(97,119,107,.08)}.settings-visual-status>div.status-ok{border-color:#7edca5;background:#f7fff9}.settings-visual-status>div.status-ok::before{border-color:#bcefd0;background:#16a45b;box-shadow:0 0 0 4px rgba(22,164,91,.12)}.settings-visual-status>div.status-warning{border-color:#ebc46c;background:#fffaf0}.settings-visual-status>div.status-warning::before{border-color:#ffe4a8;background:#d78a00;box-shadow:0 0 0 4px rgba(215,138,0,.12)}.settings-visual-status>div.status-danger{border-color:#eca39d;background:#fff7f6}.settings-visual-status>div.status-danger::before{border-color:#ffd0cc;background:#d9433b;box-shadow:0 0 0 4px rgba(217,67,59,.12)}.settings-visual-status>div.status-neutral{border-color:rgba(255,255,255,.55)}.settings-visual-status>div.status-warning b{color:#996200}.settings-visual-status>div.status-danger b{color:#b6312b}.settings-visual-status>div.status-neutral b{color:#61776b}.settings-visual-status b,.settings-visual-status small{overflow-wrap:anywhere}.settings-visual-status small{line-height:1.35}.settings-visual-status>div:hover{transform:translateY(-2px)}
@media(min-width:701px) and (max-width:1050px){.settings-visual-appearance .settings-visual-status{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.settings-visual-appearance .settings-visual-status{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.settings-visual-status>div{transition:none!important}.settings-visual-status>div:hover{transform:none!important}}
.version-history-dropdown{border:1px solid var(--line,#dce6df);border-radius:14px;background:#fff;overflow:hidden}.version-history-filter{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;user-select:none}.version-history-filter::-webkit-details-marker{display:none}.version-history-filter>span:first-child{display:grid;gap:4px}.version-history-filter b{font-size:18px;color:#173526}.version-history-filter small{font-size:13px;color:var(--muted,#718078)}.version-history-filter-arrow{font-size:26px;line-height:1;color:#18764a;transition:transform .2s ease}.version-history-dropdown[open]>.version-history-filter{background:#f7fbf8;border-bottom:1px solid var(--line,#dce6df)}.version-history-dropdown[open]>.version-history-filter .version-history-filter-arrow{transform:rotate(180deg)}.version-history-dropdown-content{padding:14px}.version-history-dropdown-content>.backup-help{margin:0 0 12px}
.version-history-head h2{margin-bottom:4px}.version-history-list{display:grid;gap:8px}
.version-history-item{border:1px solid var(--line,#dce6df);border-radius:12px;background:#fff;overflow:hidden}
.version-history-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;user-select:none}
.version-history-item summary::-webkit-details-marker{display:none}.version-history-copy{display:flex;align-items:baseline;gap:8px;min-width:0}.version-history-copy>b{font-size:16px;color:#173526;flex:0 0 auto}.version-history-copy>span{color:#263a30;line-height:1.35}
.version-history-action{flex:0 0 auto;border:1px solid #b9d7c5;border-radius:9px;padding:7px 10px;color:#18764a;background:#eff8f2;font-weight:800;font-size:12px}.version-history-action .when-open{display:none}.version-history-item[open] .version-history-action .when-closed{display:none}.version-history-item[open] .version-history-action .when-open{display:inline}
.version-history-item[open] summary{background:#f7fbf8}.version-history-details{margin:0 16px 16px;padding:14px 16px;border-left:4px solid #27a968;border-radius:8px;background:#eff8f2;color:#18382a}.version-history-details strong{display:block;margin-bottom:5px}.version-history-details p{margin:0;line-height:1.55}
@media(max-width:700px){.version-history-item summary{align-items:flex-start;flex-direction:column;gap:9px}.version-history-copy{display:block}.version-history-copy>b{display:block;margin-bottom:3px}.version-history-action{align-self:flex-start}}
@media(max-width:700px){.version-history-panel{padding:12px!important}.version-history-filter{padding:16px}.version-history-filter b{font-size:17px}.version-history-dropdown-content{padding:10px}.version-history-dropdown-content>.backup-help{font-size:13px}}


/* v5.7.1 — status fiscal por contrato e edição segura de NFS-e preparada */
.contract-fiscal-state{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;padding:9px 11px;border:1px solid #d9e4de;border-radius:10px;background:#f7faf8}.contract-fiscal-state small{color:var(--muted);font-size:10px}.contract-fiscal-badge{font-size:11px;font-weight:800}.contract-fiscal-state.generated .contract-fiscal-badge{color:#93620b}.contract-fiscal-state.transmitting .contract-fiscal-badge{color:#315b87}.contract-fiscal-state.issued .contract-fiscal-badge{color:#147748}.contract-fiscal-state.error .contract-fiscal-badge,.contract-fiscal-state.cancelled .contract-fiscal-badge{color:#b43b32}.nfse-form-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.nfse-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.nfse-row-actions form{margin:0}.nfse-row-actions .danger{background:#fff0ee;color:#b4322a;border:1px solid #f1c1bc;border-radius:8px;padding:9px 12px;font-weight:800}.nfse-row-actions .danger:hover{background:#fde2df}@media(max-width:600px){.contract-fiscal-state{align-items:flex-start;flex-direction:column}.nfse-row-actions{min-width:220px}}

/* v5.7.1 hotfix — submenu móvel legível e sem sobreposição */
@media(max-width:900px){
  .mobilebar .nav-group{display:contents}
  .mobilebar .nav-group>.nav-submenu{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(82px + env(safe-area-inset-bottom, 0px));
    z-index:1200;
    display:none;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:10px;
    max-height:min(52vh,360px);
    overflow:auto;
    background:#0c2819;
    border:1px solid rgba(255,255,255,.16);
    border-radius:14px;
    box-shadow:0 -10px 30px rgba(0,0,0,.28);
  }
  .mobilebar .nav-group.open>.nav-submenu{display:grid}
  .mobilebar .nav-submenu button{
    width:100%;
    min-height:46px;
    margin:0!important;
    padding:9px 10px!important;
    white-space:normal;
    line-height:1.2;
    text-align:left;
    color:#fff;
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:10px!important;
    font-size:12px!important;
    justify-content:flex-start!important;
  }
  .mobilebar .nav-submenu button.on{background:rgba(70,180,120,.28)!important;border-color:rgba(110,220,160,.35)!important}
}
@media(max-width:520px){
  .mobilebar .nav-group>.nav-submenu{grid-template-columns:1fr;max-height:46vh}
}

.tx-consistency-warning{display:inline-block;margin-top:3px;color:#a86100;font-weight:800;font-size:10px;white-space:nowrap}

/* v5.8.10 — legenda clicável da evolução financeira */
.dash-legend-item{
  appearance:none;border:0;background:transparent;color:inherit;
  display:inline-flex;align-items:center;gap:6px;padding:4px 6px;
  border-radius:8px;cursor:pointer;font:inherit;
}
.dash-legend-item:hover,.dash-legend-item:focus-visible{background:rgba(255,255,255,.08);outline:none}

/* v5.8.10 — toque confiável no gráfico */
#dashboardChart{touch-action:manipulation;user-select:none;-webkit-user-select:none}

/* v5.8.10 — feedback visual da seleção do gráfico */
.dash-legend-item{touch-action:manipulation}
.dash-legend-item:active{transform:scale(.98)}
#dashboardChart{touch-action:manipulation;cursor:pointer}

/* v5.8.10 — gráfico compacto + Saúde financeira lado a lado */
.dash-legend .income{background:#7c4fdc!important}
.dash-legend .expense{background:#18a9c6!important}
.dash-legend .billing{background:#4575df!important}
.dash-legend-item{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#dashboardChart,.dashboard-chart-wrap,.dashboard-chart-info{
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none
}
.dashboard-main-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr)!important;
  align-items:stretch
}
.dashboard-main-grid>.dash-panel{height:100%}
.dashboard-chart-wrap{min-height:220px!important}
#dashboardChart{height:220px!important;min-height:220px!important}
.dashboard-main-grid .health-score{margin-top:4px}

/* Tablet/retrato: ainda ficam lado a lado. Só empilha em celular estreito. */
@media(max-width:1100px) and (min-width:621px){
  .dashboard-main-grid{
    grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr)!important
  }
  .dashboard-chart-wrap{min-height:215px!important}
  #dashboardChart{height:215px!important;min-height:215px!important}
  .dash-panel-head{flex-direction:row!important;align-items:flex-start!important}
}
@media(max-width:620px){
  .dashboard-main-grid{grid-template-columns:1fr!important}
  .dashboard-chart-wrap{min-height:225px!important}
  #dashboardChart{height:225px!important;min-height:225px!important}
}

/* v5.8.10 hotfix — elimina seleção visual e inclui faturamento como fatia */
.dashboard-main-grid,
.dashboard-main-grid *,
.dashboard-chart-wrap,
.dashboard-chart-wrap *,
#dashboardChart,
#dashboardChartInfo,
.dash-legend,
.dash-legend *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  -webkit-tap-highlight-color:transparent!important;
}
#dashboardChart:focus{outline:none!important}

/* v5.8.10 — legenda completa e totais coerentes */
.dash-legend .prolabore{background:#e88a2b!important}


/* v5.8.10 hotfix final — quatro indicadores do gráfico */
.dash-legend .income{background:#7c4fdc!important}
.dash-legend .prolabore{background:#e88a2b!important}
.dash-legend .expense{background:#18a9c6!important}
.dash-legend .billing{background:#4575df!important}

/* v5.8.11 — legenda como botões + fatia destacada */
.dash-legend{gap:6px!important;flex-wrap:wrap}
.dash-legend-item{border:1px solid rgba(120,145,205,.35)!important;background:rgba(8,20,49,.35)!important;padding:6px 9px!important;transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease}
.dash-legend-item.active{background:rgba(255,255,255,.11)!important;border-color:currentColor!important;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;transform:translateY(-1px)}
.dash-legend-item[data-dashboard-slice=income].active{color:#9b75f0}
.dash-legend-item[data-dashboard-slice=pfout].active{color:#f3a046}
.dash-legend-item[data-dashboard-slice=pjout].active{color:#31c2df}
.dash-legend-item[data-dashboard-slice=billing].active{color:#6d98f2}


/* v5.8.12 — gráfico: percentuais nas fatias, destaque 3D e KPIs sem percentuais repetidos */
.dash-kpi-footer-clean{justify-content:flex-start!important}
.dash-kpi-footer-clean small{margin-left:0!important}
#dashboardChart{overflow:visible}
.dash-legend-item.active{transform:translateY(-2px) scale(1.02)!important;box-shadow:0 5px 14px rgba(0,0,0,.22),0 0 0 1px rgba(255,255,255,.10) inset!important}


/* v5.8.14 — tendência do faturamento abaixo do conteúdo + percentuais sem caixas */
#billingCard.billing-live{isolation:isolate;overflow:hidden}
#billingCard.billing-live::after{z-index:0}
/* A curva ocupa somente a faixa inferior, como um gráfico de fundo, sem cruzar valor/título. */
#billingCard .billing-spark-bg{position:absolute;left:1%;right:1%;top:55%;bottom:3%;z-index:0;pointer-events:none;opacity:.46;filter:drop-shadow(0 0 5px rgba(255,255,255,.13));transform:translateZ(0)}
#billingCard .billing-spark-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.08) 48%,transparent 72%);transform:translateX(-130%);animation:billingSparkSweep 5.8s ease-in-out infinite}
#billingSparkline{display:block;width:100%;height:100%;overflow:hidden}
#billingSparkline .billing-spark-area{fill:url(#billingSparkArea);opacity:.48;animation:billingSparkBreathe 4.6s ease-in-out infinite}
#billingSparkline .billing-spark-line{fill:none;stroke:rgba(255,255,255,.66);stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:420;stroke-dashoffset:420;animation:billingSparkDraw 2.1s ease-out forwards,billingSparkGlow 3.6s ease-in-out 2.1s infinite}
#billingCard .dash-kpi-top,#billingCard>strong,#billingCard .dash-kpi-footer{position:relative;z-index:2;text-shadow:0 1px 8px rgba(19,52,142,.28)}
@keyframes billingSparkDraw{to{stroke-dashoffset:0}}
@keyframes billingSparkGlow{0%,100%{opacity:.62;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@keyframes billingSparkBreathe{0%,100%{opacity:.38}50%{opacity:.78}}
@keyframes billingSparkSweep{0%,18%{transform:translateX(-130%)}62%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){#billingSparkline .billing-spark-line,#billingSparkline .billing-spark-area,#billingCard .billing-spark-bg::after{animation:none!important}#billingSparkline .billing-spark-line{stroke-dashoffset:0}}

/* v5.8.15 — faturamento comparativo com pulso de energia + legenda lateral da pizza */
#billingCard .billing-month-compare{position:relative;z-index:2;margin-top:3px;font-size:10px;font-weight:800;letter-spacing:.01em;text-shadow:0 1px 8px rgba(19,52,142,.30)}
#billingCard .billing-month-compare.up{color:#a9ffe0}#billingCard .billing-month-compare.down{color:#ffd0d5}#billingCard .billing-month-compare.flat{color:rgba(255,255,255,.76)}
#billingSparkline .billing-spark-pulse{fill:none;stroke:rgba(255,255,255,.98);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:22 398;stroke-dashoffset:0;animation:billingEnergyPulse 3.2s linear infinite}
@keyframes billingEnergyPulse{to{stroke-dashoffset:-420}}
.dashboard-pie-layout{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:10px;align-items:center;min-height:220px}
.dashboard-pie-layout .dashboard-chart-wrap{min-width:0}
.dashboard-pie-layout .dash-legend{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center;gap:7px!important;white-space:normal!important}
.dashboard-pie-layout .dash-legend-item{width:100%;min-width:0;justify-content:flex-start!important;text-align:left!important;padding:6px 7px!important;font-size:9px!important;line-height:1.15;border-radius:8px!important;transform:none!important}
.dashboard-pie-layout .dash-legend-item i{flex:0 0 8px}.dashboard-pie-layout .dash-legend-item span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-pie-layout .dash-legend-item.active{transform:translateX(-3px)!important}
@media(max-width:620px){.dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 104px;gap:6px}.dashboard-pie-layout .dash-legend-item{font-size:8.5px!important;padding:6px!important}}
@media(max-width:390px){.dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 92px}.dashboard-pie-layout .dash-legend-item{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){#billingSparkline .billing-spark-pulse{animation:none!important;stroke-dasharray:none;opacity:.55}}

/* v5.9 — painel vivo: microanimações funcionais + hover/touch + ponto neon */
.dashboard-kpis .dash-kpi.kpi-live{position:relative;isolation:isolate;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,filter .22s ease}
.dashboard-kpis .dash-kpi.kpi-live>.dash-kpi-top,.dashboard-kpis .dash-kpi.kpi-live>strong,.dashboard-kpis .dash-kpi.kpi-live>.dash-kpi-footer,.dashboard-kpis .dash-kpi.kpi-live>.billing-month-compare{position:relative;z-index:3}
.dashboard-kpis .dash-kpi.kpi-live:hover,.dashboard-kpis .dash-kpi.kpi-live:focus-within,.dashboard-kpis .dash-kpi.kpi-live.kpi-touch-active{transform:translateY(-4px) scale(1.012);filter:saturate(1.06) brightness(1.035)}
#incomeCard.kpi-live:hover,#incomeCard.kpi-live.kpi-touch-active{box-shadow:0 14px 30px rgba(124,79,220,.28),inset 0 0 0 1px rgba(255,255,255,.18)}
#pfoutCard.kpi-live:hover,#pfoutCard.kpi-live.kpi-touch-active{box-shadow:0 14px 30px rgba(232,138,43,.26),inset 0 0 0 1px rgba(255,255,255,.18)}
#pjoutCard.kpi-live:hover,#pjoutCard.kpi-live.kpi-touch-active{box-shadow:0 14px 30px rgba(24,169,198,.25),inset 0 0 0 1px rgba(255,255,255,.18)}
#billingCard.kpi-live:hover,#billingCard.kpi-live.kpi-touch-active{box-shadow:0 14px 30px rgba(69,117,223,.30),inset 0 0 0 1px rgba(255,255,255,.18)}
.kpi-motion{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;opacity:.30;transition:opacity .22s ease}
.kpi-live:hover .kpi-motion,.kpi-live.kpi-touch-active .kpi-motion{opacity:.55}
.kpi-motion-income i,.kpi-motion-expense i{position:absolute;width:2px;height:30%;left:var(--x);border-radius:999px;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.58),transparent);filter:blur(.15px)}
.kpi-motion-income i{bottom:-35%;animation:kpiFlowUp 5.4s linear infinite}.kpi-motion-expense i{top:-35%;animation:kpiFlowDown 5.8s linear infinite}
.kpi-motion i:nth-child(1){--x:12%;animation-delay:-.5s}.kpi-motion i:nth-child(2){--x:31%;animation-delay:-2.1s}.kpi-motion i:nth-child(3){--x:52%;animation-delay:-3.8s}.kpi-motion i:nth-child(4){--x:72%;animation-delay:-1.4s}.kpi-motion i:nth-child(5){--x:89%;animation-delay:-4.6s}
@keyframes kpiFlowUp{0%{transform:translateY(0);opacity:0}18%{opacity:.65}82%{opacity:.35}100%{transform:translateY(-420%);opacity:0}}
@keyframes kpiFlowDown{0%{transform:translateY(0);opacity:0}18%{opacity:.55}82%{opacity:.32}100%{transform:translateY(420%);opacity:0}}
.kpi-motion-prolabore{display:grid;place-items:center;opacity:.25}.kpi-motion-prolabore i{position:absolute;width:52px;height:52px;border:1.5px solid rgba(255,255,255,.48);border-radius:50%;animation:kpiProPulse 4.2s ease-out infinite}.kpi-motion-prolabore i:nth-child(2){animation-delay:-1.4s}.kpi-motion-prolabore i:nth-child(3){animation-delay:-2.8s}
@keyframes kpiProPulse{0%{transform:scale(.35);opacity:0}18%{opacity:.58}100%{transform:scale(3.4);opacity:0}}
#billingSparkline .billing-spark-pulse{display:none!important}
#billingSparkline .billing-spark-pulse-dot{fill:#fff;stroke:rgba(190,225,255,.95);stroke-width:1.4;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px rgba(126,207,255,.95));opacity:.98}
#billingCard:hover .billing-spark-pulse-dot,#billingCard.kpi-touch-active .billing-spark-pulse-dot{filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 11px rgba(126,207,255,1))}
@media(hover:none){.dashboard-kpis .dash-kpi.kpi-live{transition-duration:.16s}}
@media(prefers-reduced-motion:reduce){.dashboard-kpis .dash-kpi.kpi-live{transition:none!important}.dashboard-kpis .dash-kpi.kpi-live:hover,.dashboard-kpis .dash-kpi.kpi-live.kpi-touch-active{transform:none!important}.kpi-motion i{animation:none!important}.kpi-motion{opacity:.12!important}#billingSparkMotion{display:none}#billingSparkline .billing-spark-pulse-dot{display:none}}


/* v5.9.1 — navegação dos KPIs, ícones legíveis e legenda lateral mais compacta */
.dashboard-kpis .dash-kpi[data-dashboard-nav]{cursor:pointer}
.dashboard-kpis .dash-kpi[data-dashboard-nav]:focus-visible{outline:2px solid rgba(255,255,255,.88)!important;outline-offset:3px}
.dash-mini{grid-template-columns:40px minmax(0,1fr)!important;gap:10px!important}
.dash-mini-icon{width:40px!important;height:40px!important;border-radius:11px!important;color:#fff!important;font-size:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 3px 12px rgba(0,0,0,.18)!important}
.dash-mini-icon svg{display:block!important;width:23px!important;height:23px!important;stroke-width:2.35!important;opacity:1!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.28))}
.dash-mini-result{background:rgba(124,79,220,.30)!important;color:#d6c5ff!important}
.dash-mini-margin{background:rgba(24,169,198,.24)!important;color:#63e5ff!important}
.dash-mini-free{background:rgba(41,194,123,.24)!important;color:#71f0b2!important}
.dash-mini-fees{background:rgba(241,174,42,.23)!important;color:#ffd36d!important}
.dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 96px!important;gap:7px!important}
.dashboard-pie-layout .dash-legend{gap:6px!important}
.dashboard-pie-layout .dash-legend-item{padding:5px 6px!important;font-size:8.25px!important;min-height:28px!important;border-radius:7px!important}
.dashboard-pie-layout .dash-legend-item i{flex:0 0 7px!important;width:7px!important;height:7px!important}
@media(max-width:1100px){
  .dash-mini{grid-template-columns:36px minmax(0,1fr)!important}
  .dash-mini-icon{width:36px!important;height:36px!important}
  .dash-mini-icon svg{width:21px!important;height:21px!important}
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 90px!important;gap:6px!important}
  .dashboard-pie-layout .dash-legend-item{font-size:8px!important;padding:5px!important}
}
@media(max-width:620px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 84px!important;gap:5px!important}
  .dashboard-pie-layout .dash-legend-item{font-size:7.7px!important;padding:4px 5px!important;min-height:26px!important}
}
@media(max-width:390px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 80px!important}
  .dashboard-pie-layout .dash-legend-item{font-size:7.4px!important}
}

/* v5.9.2 — ícones dos indicadores secundários maiores e opticamente centralizados */
.dash-mini{grid-template-columns:44px minmax(0,1fr)!important;gap:11px!important}
.dash-mini-icon{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  padding:0!important;
  line-height:0!important;
}
.dash-mini-icon svg{
  width:29px!important;
  height:29px!important;
  display:block!important;
  margin:auto!important;
  transform:none!important;
  transform-origin:50% 50%!important;
  stroke-width:2.4!important;
  overflow:visible!important;
}
@media(max-width:1100px){
  .dash-mini{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important}
  .dash-mini-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  .dash-mini-icon svg{width:27px!important;height:27px!important}
}
@media(max-width:620px){
  .dash-mini{grid-template-columns:40px minmax(0,1fr)!important}
  .dash-mini-icon{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  .dash-mini-icon svg{width:26px!important;height:26px!important}
}

/* v5.9.3 — Evolução financeira com melhor ocupação, seleção focada e transição suave */
.dashboard-main-grid .dash-panel:first-child{overflow:visible}
.dashboard-pie-layout{
  grid-template-columns:minmax(0,1fr) 94px!important;
  gap:8px!important;
  min-height:286px!important;
  align-items:center!important;
}
.dashboard-pie-layout .dashboard-chart-wrap{
  height:286px!important;
  min-height:286px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.dashboard-pie-layout #dashboardChart{
  height:286px!important;
  min-height:286px!important;
  overflow:visible!important;
}
.dashboard-pie-layout .dash-legend{
  width:94px!important;
  gap:8px!important;
  justify-content:center!important;
}
.dashboard-pie-layout .dash-legend-item{
  width:94px!important;
  min-height:33px!important;
  padding:7px 7px!important;
  font-size:8.8px!important;
  border-radius:8px!important;
  transition:transform .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease,opacity .22s ease!important;
}
.dashboard-pie-layout .dash-legend-item i{
  width:8px!important;
  height:8px!important;
  flex:0 0 8px!important;
}
.dashboard-pie-layout .dash-legend-item.active{
  transform:translateX(-4px)!important;
  background:rgba(255,255,255,.12)!important;
  box-shadow:0 0 0 1px currentColor inset,0 0 13px color-mix(in srgb,currentColor 42%,transparent)!important;
}
.dashboard-chart-info[hidden]{display:none!important}
.dashboard-chart-info:not([hidden]){
  margin-top:4px!important;
  padding:8px 11px!important;
  min-height:0!important;
  animation:pieInfoIn .22s ease both;
}
@keyframes pieInfoIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 90px!important;min-height:274px!important}
  .dashboard-pie-layout .dashboard-chart-wrap,.dashboard-pie-layout #dashboardChart{height:274px!important;min-height:274px!important}
  .dashboard-pie-layout .dash-legend{width:90px!important}
  .dashboard-pie-layout .dash-legend-item{width:90px!important;min-height:32px!important;font-size:8.4px!important}
}
@media(max-width:620px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 86px!important;gap:6px!important;min-height:252px!important}
  .dashboard-pie-layout .dashboard-chart-wrap,.dashboard-pie-layout #dashboardChart{height:252px!important;min-height:252px!important}
  .dashboard-pie-layout .dash-legend{width:86px!important;gap:6px!important}
  .dashboard-pie-layout .dash-legend-item{width:86px!important;min-height:30px!important;font-size:7.9px!important;padding:6px!important}
}
@media(max-width:390px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 82px!important;min-height:242px!important}
  .dashboard-pie-layout .dashboard-chart-wrap,.dashboard-pie-layout #dashboardChart{height:242px!important;min-height:242px!important}
  .dashboard-pie-layout .dash-legend{width:82px!important}
  .dashboard-pie-layout .dash-legend-item{width:82px!important;font-size:7.5px!important}
}
@media(prefers-reduced-motion:reduce){
  .dashboard-pie-layout .dash-legend-item,.dashboard-chart-info:not([hidden]){transition:none!important;animation:none!important}
}

/* v5.9.4 — cards mais legíveis e sparkline de faturamento refinada */
.dashboard-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.dash-mini{min-height:82px!important;padding:12px 14px!important;grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important}
.dash-mini-icon{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:13px!important}
.dash-mini-icon svg{width:31px!important;height:31px!important;stroke-width:2.45!important}
.dash-mini>div{min-width:0;align-self:center}
.dash-mini>div>span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15!important;font-size:9.5px!important;min-height:2.25em;display:flex!important;align-items:flex-end}
.dash-mini>div>strong{overflow:visible!important;text-overflow:clip!important;font-size:17px!important;margin:3px 0 2px!important}
.dash-mini>div>small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.18!important;font-size:9px!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* Os efeitos continuam discretos, mas agora permanecem perceptíveis sem hover. */
.kpi-motion{opacity:.43!important}
.kpi-live:hover .kpi-motion,.kpi-live.kpi-touch-active .kpi-motion{opacity:.72!important}
.kpi-motion-income i,.kpi-motion-expense i{width:2.4px!important;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.78),transparent)!important;box-shadow:0 0 7px rgba(255,255,255,.20)}
.kpi-motion-prolabore{opacity:.38!important}
.kpi-live:hover .kpi-motion-prolabore,.kpi-live.kpi-touch-active .kpi-motion-prolabore{opacity:.62!important}
.kpi-motion-prolabore i{border-color:rgba(255,255,255,.58)!important;box-shadow:0 0 10px rgba(255,255,255,.08)}

/* Faturamento: histórico real permanece no fundo; só o ponto neon se move pela curva. */
#billingCard .billing-spark-bg{left:3%!important;right:3%!important;top:61%!important;bottom:5%!important;opacity:.34!important;filter:none!important}
#billingCard .billing-spark-bg::after{display:none!important}
#billingSparkline .billing-spark-area{opacity:.24!important;animation:none!important}
#billingSparkline .billing-spark-line{stroke:rgba(220,237,255,.58)!important;stroke-width:2!important;stroke-dasharray:none!important;stroke-dashoffset:0!important;animation:none!important;filter:drop-shadow(0 0 2px rgba(190,225,255,.28))}
#billingSparkline .billing-spark-pulse-dot{display:block!important;fill:#fff!important;stroke:#d9efff!important;stroke-width:1.6!important;opacity:1!important;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px rgba(116,211,255,.95))!important}
#billingCard:hover .billing-spark-pulse-dot,#billingCard.kpi-touch-active .billing-spark-pulse-dot{filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 13px rgba(116,211,255,1))!important}

@media(max-width:900px){
  .dashboard-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .dash-mini{grid-template-columns:44px minmax(0,1fr)!important;min-height:76px!important;padding:10px 11px!important;gap:10px!important}
  .dash-mini-icon{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .dash-mini-icon svg{width:29px!important;height:29px!important}
}
@media(max-width:390px){.dashboard-mini-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){#billingSparkline .billing-spark-pulse-dot{display:none!important}.kpi-motion{opacity:.18!important}}


/* v5.9.5 — aproveitamento refinado da Evolução financeira */
.dashboard-main-grid .dash-panel:first-child .dash-panel-head{margin-bottom:6px!important}
.dashboard-pie-layout{
  grid-template-columns:minmax(0,1fr) 88px!important;
  gap:4px!important;
}
.dashboard-pie-layout .dash-legend{
  width:88px!important;
  gap:6px!important;
  transform:translateX(-2px);
}
.dashboard-pie-layout .dash-legend-item{
  width:88px!important;
  min-height:32px!important;
  padding:6px!important;
  font-size:8.35px!important;
}
.dashboard-chart-info:not([hidden]){margin-top:0!important}
@media(max-width:1100px){
  .dashboard-main-grid .dash-panel:first-child .dash-panel-head{margin-bottom:5px!important}
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 84px!important;gap:3px!important}
  .dashboard-pie-layout .dash-legend{width:84px!important;gap:5px!important}
  .dashboard-pie-layout .dash-legend-item{width:84px!important;min-height:31px!important;font-size:8px!important;padding:5px 6px!important}
}
@media(max-width:620px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 80px!important;gap:2px!important}
  .dashboard-pie-layout .dash-legend{width:80px!important}
  .dashboard-pie-layout .dash-legend-item{width:80px!important;min-height:29px!important;font-size:7.6px!important;padding:5px!important}
}
@media(max-width:390px){
  .dashboard-pie-layout{grid-template-columns:minmax(0,1fr) 76px!important}
  .dashboard-pie-layout .dash-legend{width:76px!important}
  .dashboard-pie-layout .dash-legend-item{width:76px!important;font-size:7.25px!important}
}

/* v5.10 — Dashboard operacional e navegação inteligente */
.dashboard-action-head{cursor:pointer}
.dashboard-open-hint{color:#91a7d3;font-size:11px;font-weight:800;white-space:nowrap;opacity:.82;transition:color .18s ease,transform .18s ease,opacity .18s ease}
.dashboard-action-head:hover .dashboard-open-hint,.dashboard-recent .dash-panel-head:hover .dashboard-open-hint{color:#dce7ff;opacity:1;transform:translateX(2px)}
button.operation-stat.dashboard-smart-action{font:inherit;color:inherit;text-align:left;width:100%;appearance:none;-webkit-appearance:none;cursor:pointer;position:relative;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}
button.operation-stat.dashboard-smart-action:hover,button.operation-stat.dashboard-smart-action:focus-visible{transform:translateY(-2px);border-color:#496493;box-shadow:0 8px 22px rgba(3,11,29,.22);outline:none}
button.operation-stat.dashboard-smart-action:active{transform:translateY(0)}
.dashboard-recent-action{width:100%;border:0;border-bottom:1px solid rgba(87,111,158,.22);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;padding-left:0;padding-right:6px;transition:background .18s ease,transform .18s ease}
.dashboard-recent-action:hover,.dashboard-recent-action:focus-visible{background:rgba(91,125,196,.08);transform:translateX(2px);outline:none}
.recent-open-arrow{color:#7895cc;font-size:24px;line-height:1;margin-left:4px;opacity:.65;transition:transform .18s ease,color .18s ease}
.dashboard-recent-action:hover .recent-open-arrow,.dashboard-recent-action:focus-visible .recent-open-arrow{color:#b9ccf3;transform:translateX(2px);opacity:1}
.dashboard-target-flash{animation:dashboardTargetFlash 1.45s ease both}
@keyframes dashboardTargetFlash{0%,100%{box-shadow:0 0 0 0 rgba(79,126,230,0)}24%{box-shadow:0 0 0 3px rgba(79,126,230,.38),0 0 28px rgba(79,126,230,.18)}}
@media(max-width:620px){.dashboard-open-hint{font-size:10px}.recent-open-arrow{font-size:20px}}
@media(prefers-reduced-motion:reduce){button.operation-stat.dashboard-smart-action,.dashboard-recent-action,.recent-open-arrow,.dashboard-open-hint{transition:none!important}.dashboard-target-flash{animation:none!important}}

/* v6.13 — troca de posição entre Caixa acumulado e Entradas PJ */
.dash-kpi.green{background:linear-gradient(135deg,#087c51,#20b972)}
#cashBalanceCard .dash-kpi-icon{background:rgba(255,255,255,.19)}
#cashBalanceCard>strong{font-size:clamp(25px,2.15vw,34px);overflow-wrap:anywhere}
.dash-mini-income{background:rgba(124,79,220,.30)!important;color:#d6c5ff!important}
.dash-mini-action{cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.dash-mini-action:hover,.dash-mini-action:focus-visible{transform:translateY(-2px);border-color:rgba(157,124,235,.72);box-shadow:0 9px 22px rgba(58,36,113,.22);outline:none}
@media(max-width:520px){#cashBalanceCard>strong{font-size:25px}.dash-mini-action{min-height:82px!important}}
@media(prefers-reduced-motion:reduce){.dash-mini-action{transition:none}.dash-mini-action:hover,.dash-mini-action:focus-visible{transform:none}}

/* v6.19.22 — competência de contratos e indicadores executivos conciliados */
.contract-competence-toolbar{align-items:flex-end!important;gap:16px!important;flex-wrap:wrap}
.contract-competence-toolbar>div{min-width:210px;flex:1}
.contract-competence-toolbar>div>strong{display:block;margin-top:4px;color:var(--ink);font-size:13px}
.contract-competence-filter{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.contract-competence-filter label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}
.contract-competence-filter input{min-width:155px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.contract-competence-filter .secondary{display:inline-flex;align-items:center;justify-content:center;min-height:39px;margin:0;padding:9px 12px;text-decoration:none;white-space:nowrap}

.dash-mini-card-sales{position:relative;overflow:hidden}
.dash-mini-card-sales>div{position:relative;z-index:2}
.dash-mini-card-sales>div>small{display:block!important;-webkit-line-clamp:unset!important;line-height:1.25!important}
.dash-mini-card-sales .card-sales-incomplete{margin-top:3px;color:#f4bc59!important;white-space:normal!important}
.card-sales-pulse{position:absolute;right:-24px;bottom:-30px;width:82px;height:82px;border:1px solid rgba(113,240,178,.28);border-radius:50%;animation:cardSalesPulse 3.8s ease-out infinite;pointer-events:none}
.dash-mini-card-sales.is-negative .card-sales-pulse{border-color:rgba(255,156,164,.38)}
@keyframes cardSalesPulse{0%{transform:scale(.55);opacity:.7}75%,100%{transform:scale(1.35);opacity:0}}

@media(max-width:700px){
  .contract-competence-toolbar{align-items:stretch!important}
  .contract-competence-toolbar>div,.contract-competence-filter{width:100%}
  .contract-competence-filter label{flex:1;min-width:150px}
  .contract-competence-filter input{width:100%;min-width:0}
  .contract-competence-toolbar>button{width:100%}
}
@media(prefers-reduced-motion:reduce){.card-sales-pulse{animation:none;opacity:.24}}
