/* =========================
   BASE
========================= */
:root{--blue:#2563eb;--blue-2:#1d4ed8;--navy:#061637;--muted:#64748b;--line:#e5edf7;--bg:#f5f8fc;--card:#fff;--green:#16a34a;--red:#ef4444;--amber:#f59e0b;--purple:#8b5cf6;--shadow:0 16px 40px rgba(15,23,42,.08);--radius:14px}*{box-sizing:border-box}body{margin:0;font-family:Sora,system-ui,sans-serif;background:var(--bg);color:#0f1f3d;font-size:14px}a{text-decoration:none;color:inherit}button,input,select,textarea{font-family:inherit}button{cursor:pointer;border:0}svg{width:18px;height:18px}.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:rgba(255,255,255,.86);border-right:1px solid var(--line);padding:22px 16px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:10px;margin-bottom:26px}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--blue),#5ea0ff);display:grid;place-items:center;color:#fff;font-weight:900;font-size:24px}.brand strong{display:block;font-size:19px;letter-spacing:-.04em}.brand span{display:block;color:var(--blue);font-weight:800;font-size:11px;letter-spacing:.26em}.nav-block{margin:22px 0}.nav-block p{text-transform:uppercase;color:#8aa0bd;font-size:11px;font-weight:700;margin:0 0 8px}.nav-block a{display:flex;gap:11px;align-items:center;padding:11px 12px;border-radius:10px;color:#263b5d;font-weight:600;font-size:13px}.nav-block a:hover{background:#eef5ff;color:var(--blue)}.main-area{padding:0 24px 36px;min-width:0}.topbar{height:72px;display:flex;align-items:center;gap:18px}.icon-btn{background:#fff;border:1px solid var(--line);border-radius:10px;width:40px;height:40px;display:grid;place-items:center}.search{max-width:520px;flex:1;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:10px;padding:0 12px}.search input{height:40px;border:0;outline:0;width:100%;color:#60718d}.user-pill{margin-left:auto;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 14px;display:grid}.user-pill span{font-weight:800}.user-pill small{color:var(--muted)}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin:6px 0 18px}.page-head h1{margin:0;font-size:28px;letter-spacing:-.04em}.page-head p{margin:5px 0 0;color:var(--muted)}.panel,.card,.table-card,.form-panel,.empty-state{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:18px;margin-bottom:18px}.panel h2,.card h3{margin:0 0 16px}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric,.quick{border:1px solid var(--line);border-radius:13px;padding:18px;background:#fff}.metric{display:grid;gap:8px}.metric svg{padding:10px;width:42px;height:42px;border-radius:12px;background:#eef5ff;color:var(--blue)}.metric b{font-size:26px}.metric span,.kpi span{color:#405571;font-weight:700}.metric.danger svg{background:#fff1f2;color:var(--red)}.metric.warn svg{background:#fff7ed;color:var(--amber)}.metric.purple svg{background:#f5f3ff;color:var(--purple)}.quick{display:grid;gap:8px}.quick a{color:var(--blue);font-weight:700}.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}.kpi-grid.four{grid-template-columns:repeat(4,1fr)}.kpi{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;box-shadow:var(--shadow);display:grid;gap:6px}.kpi b{font-size:22px}.kpi small{color:var(--muted)}.up{color:var(--green)!important}.down{color:var(--red)!important}.charts-grid{display:grid;grid-template-columns:2fr 1fr 1.4fr;gap:14px;margin-bottom:18px}.card{padding:18px;min-width:0}.bento-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mini-row,.summary-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef2f7;padding:10px 0}.mini-row span{font-weight:700}.mini-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.summary-line.total{color:var(--blue);font-weight:900}.form-panel{padding:16px;margin-bottom:18px}.grid-form{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.grid-form.compact{grid-template-columns:repeat(5,1fr)}input,select,textarea{border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:#0f1f3d;outline:0}textarea{min-height:44px}.check{display:flex;align-items:center;gap:8px;color:var(--muted)}.table-card{overflow:auto}.table-card table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #edf2f8;font-size:13px}th{color:#60718d;font-size:12px;text-transform:uppercase}.status{padding:5px 9px;border-radius:999px;font-weight:800;font-size:11px;background:#eef5ff;color:var(--blue)}.status.paga,.status.recebida,.status.ativo{background:#ecfdf5;color:var(--green)}.status.vencida,.status.atrasada{background:#fff1f2;color:var(--red)}.status.pendente{background:#fffbeb;color:#b45309}.actions{display:flex;gap:8px}.actions form{display:inline}.actions button,.ghost{background:#f8fbff;border:1px solid var(--line);border-radius:9px;padding:8px;color:#46607d}.soft-btn{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--blue);font-weight:800;display:flex;gap:8px;align-items:center}.alert{padding:13px 15px;border-radius:12px;margin:0 0 16px;border:1px solid var(--line);background:#eef5ff;color:#1d4ed8;font-weight:700}.alert.error{background:#fff1f2;color:#be123c}.alert.success{background:#ecfdf5;color:#15803d}.alert.warn{background:#fff7ed;color:#c2410c;margin-top:16px}.calendar-board{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.event-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:13px;padding:16px;box-shadow:var(--shadow);display:grid;gap:5px}.event-card.despesa{border-left-color:var(--red)}.event-card span{color:var(--muted);font-size:12px}.event-card small{color:var(--muted)}.empty-state{text-align:center;padding:64px;color:var(--muted)}.empty-state svg{width:48px;height:48px;color:var(--blue)}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#dbeafe,transparent 35%),var(--bg)}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:34px}.login-card h1{font-size:30px;margin:18px 0 6px}.login-card p{color:var(--muted);line-height:1.6}.login-card form{display:grid;gap:14px}.login-card label{display:grid;gap:7px;font-weight:700}.full{width:100%}@media(max-width:1100px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.action-grid,.kpi-grid,.charts-grid,.bento-grid,.calendar-board,.grid-form,.grid-form.compact{grid-template-columns:1fr}.main-area{padding:0 14px 28px}.topbar{flex-wrap:wrap;height:auto;padding:14px 0}.user-pill{margin-left:0}.page-head{display:grid;gap:12px}.sidebar{border-right:0;border-bottom:1px solid var(--line)}}

/* =========================
   DASHBOARD V2 PREMIUM
========================= */
.dashboard-hero{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:end;margin:8px 0 18px;padding:26px;border:1px solid rgba(37,99,235,.14);border-radius:18px;background:radial-gradient(circle at 6% 0%,rgba(37,99,235,.14),transparent 34%),linear-gradient(135deg,#ffffff,#f7fbff);box-shadow:0 22px 55px rgba(15,23,42,.08)}
.hero-copy{max-width:780px}.eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:12px;padding:7px 10px;border-radius:999px;background:#eef5ff;color:var(--blue);font-weight:800;font-size:12px}.dashboard-hero h1{margin:0;font-size:34px;line-height:1.08;letter-spacing:-.055em;color:#071a3d}.dashboard-hero p{margin:10px 0 0;color:#60718d;line-height:1.65}.hero-actions{display:flex;gap:10px;align-items:center}.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;padding:12px 14px;font-weight:800;white-space:nowrap}.primary-action{background:linear-gradient(135deg,var(--blue),#5b9cff);color:#fff;box-shadow:0 12px 28px rgba(37,99,235,.22)}.secondary-action{background:#fff;border:1px solid var(--line);color:#1f3a60}

/* =========================
   COMMAND CENTER
========================= */
.finance-command-center{display:grid;grid-template-columns:1fr 1fr 1fr 1.35fr;gap:14px;margin-bottom:18px}.command-card,.command-routine{position:relative;overflow:hidden;min-height:132px;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.command-card:after,.command-routine:after{content:"";position:absolute;right:-30px;top:-40px;width:110px;height:110px;border-radius:999px;background:#eef5ff}.command-icon{position:relative;z-index:1;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#eef5ff;color:var(--blue);margin-bottom:12px}.command-card span,.command-routine span{position:relative;z-index:1;display:block;color:#60718d;font-weight:700}.command-card strong,.command-routine strong{position:relative;z-index:1;display:block;font-size:30px;line-height:1.1;letter-spacing:-.04em;margin-top:2px}.command-card small,.command-routine small{position:relative;z-index:1;display:block;color:#8aa0bd;margin-top:6px}.command-danger .command-icon{background:#fff1f2;color:var(--red)}.command-danger:after{background:#fff1f2}.command-warn .command-icon{background:#fff7ed;color:var(--amber)}.command-warn:after{background:#fff7ed}.command-info .command-icon{background:#eef5ff;color:var(--blue)}.command-routine{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#071a3d,#0c2b69);color:#fff;border-color:rgba(255,255,255,.08)}.command-routine:after{background:rgba(255,255,255,.07)}.command-routine span,.command-routine small{color:#bdd4ff}.command-routine button{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;background:#fff;color:#0c2b69;border-radius:11px;padding:11px 13px;font-weight:900;white-space:nowrap}

/* =========================
   KPI V2
========================= */
.premium-kpis .kpi{position:relative;overflow:hidden;min-height:124px;border-radius:16px;padding:18px;background:linear-gradient(180deg,#fff,#fbfdff)}.premium-kpis .kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#dbeafe}.premium-kpis .kpi-featured:before{background:var(--blue)}.premium-kpis .kpi b{font-size:23px;letter-spacing:-.045em}.premium-kpis .kpi small{display:flex;align-items:center;gap:5px}.premium-kpis .kpi small svg{width:14px;height:14px}

/* =========================
   DASHBOARD LAB GRID
========================= */
.dashboard-lab-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;margin-bottom:18px}.lab-main{display:grid;grid-template-columns:1.35fr 1fr;gap:14px}.chart-wide{grid-column:1 / -1}.chart-card{min-height:315px}.chart-card canvas{max-height:240px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.card-head h3{margin:3px 0 0}.card-head a,.card-head span{color:var(--blue);font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:5px}.section-label{display:block;text-transform:uppercase;letter-spacing:.12em;color:#8aa0bd!important;font-size:10px!important;font-weight:900}.card-head.compact{align-items:center}.card-head.compact h3{margin:0}.lab-side{display:grid;gap:14px}.side-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px}.risk-card{background:linear-gradient(135deg,#ffffff,#f8fbff)}.risk-card h3{margin:5px 0 8px;font-size:19px;letter-spacing:-.04em}.risk-card p{margin:0;color:#60718d;line-height:1.55}.risk-score{margin-top:17px;padding:14px;border-radius:14px;background:#eef5ff;display:flex;align-items:end;justify-content:space-between;gap:10px}.risk-score strong{font-size:36px;letter-spacing:-.06em;color:var(--blue)}.risk-score span{color:#60718d;font-weight:700;font-size:12px}.balance-card{display:grid;gap:9px}.balance-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.balance-line span{color:#60718d;font-weight:700}.balance-line strong{letter-spacing:-.04em}.progress-track{height:8px;border-radius:999px;background:#edf4ff;overflow:hidden}.progress-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--blue),#74adff)}.progress-track.danger{background:#fff1f2}.progress-track.danger i{background:linear-gradient(90deg,#fb7185,var(--red))}.today-list{display:grid;gap:10px}.today-list div{display:flex;align-items:center;gap:9px;color:#405571;font-weight:700}.today-list svg{color:var(--blue);width:17px;height:17px}

/* =========================
   BENTO V2
========================= */
.premium-bento{align-items:stretch}.bento-card{border-radius:16px}.bento-card .mini-row:last-child{border-bottom:0}.micro-empty{padding:22px;border-radius:13px;background:#f8fbff;color:#8aa0bd;text-align:center;font-weight:700}.financial-summary-card{background:linear-gradient(180deg,#fff,#f8fbff)}.summary-cta{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:12px;background:#eef5ff;color:var(--blue);font-weight:900}.summary-cta svg{width:16px;height:16px}

/* =========================
   COMPONENT REFINEMENTS V2
========================= */
.nav-block a{position:relative}.nav-block a:hover{transform:translateX(2px)}.card,.kpi,.panel,.table-card,.form-panel,.empty-state,.side-card,.command-card,.command-routine{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.card:hover,.kpi:hover,.command-card:hover,.side-card:hover{transform:translateY(-2px);border-color:#d7e5f8;box-shadow:0 20px 46px rgba(15,23,42,.1)}input:focus,select:focus,textarea:focus{border-color:#b7d3ff;box-shadow:0 0 0 4px rgba(37,99,235,.08)}

/* =========================
   RESPONSIVE V2
========================= */
@media(max-width:1280px){.finance-command-center{grid-template-columns:repeat(2,1fr)}.dashboard-lab-grid{grid-template-columns:1fr}.lab-side{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.dashboard-hero{grid-template-columns:1fr;padding:21px}.dashboard-hero h1{font-size:27px}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.finance-command-center,.lab-main,.lab-side{grid-template-columns:1fr}.command-routine{display:grid}.premium-kpis .kpi{min-height:auto}}
@media(max-width:560px){.hero-actions{grid-template-columns:1fr}.dashboard-hero h1{font-size:24px}.finance-command-center{grid-template-columns:1fr}.command-card,.command-routine{min-height:auto}.risk-score{display:grid;align-items:start}.kpi b{font-size:20px}.card-head{display:grid}.chart-card{min-height:260px}}

/* =========================
   PREMIUM INTERNAL PAGES V2
========================= */
.premium-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:8px 0 18px;padding:24px;border:1px solid rgba(37,99,235,.12);border-radius:18px;background:linear-gradient(135deg,#ffffff,#f7fbff);box-shadow:0 18px 45px rgba(15,23,42,.06)}
.premium-page-head h1{margin:0;font-size:32px;letter-spacing:-.055em;color:#071a3d}.premium-page-head p{margin:8px 0 0;color:#60718d;line-height:1.55}.head-actions{display:flex;gap:10px;align-items:center}.topbar-action{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px 12px;color:var(--blue);font-weight:900;white-space:nowrap}.nav-block a.active{background:#eef5ff;color:var(--blue);box-shadow:inset 3px 0 0 var(--blue)}

/* =========================
   MINI KPIS
========================= */
.mini-kpi-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.mini-kpi{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.mini-kpi:after{content:"";position:absolute;right:-28px;top:-36px;width:98px;height:98px;border-radius:999px;background:#eef5ff}.mini-kpi span,.mini-kpi strong,.mini-kpi small{position:relative;z-index:1}.mini-kpi span{display:block;color:#60718d;font-weight:800;font-size:12px}.mini-kpi strong{display:block;margin-top:5px;font-size:26px;letter-spacing:-.05em;color:#071a3d}.mini-kpi small{display:block;margin-top:5px;color:#8aa0bd}.mini-kpi.danger:after{background:#fff1f2}.mini-kpi.warn:after{background:#fff7ed}

/* =========================
   PREMIUM FORMS
========================= */
.premium-form-card,.premium-table-card,.filter-panel,.tabs-card,.month-card,.timeline-card,.forecast-hero,.settings-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.premium-form-card{padding:20px;margin-bottom:18px}.form-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.form-title span{display:block;text-transform:uppercase;letter-spacing:.12em;color:#8aa0bd;font-size:10px;font-weight:900}.form-title h2{margin:3px 0 0;font-size:20px;letter-spacing:-.04em}.form-title>i,.form-title>svg{width:38px;height:38px;padding:9px;border-radius:12px;background:#eef5ff;color:var(--blue)}.premium-grid-form{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.premium-grid-form.single{grid-template-columns:1fr}.premium-grid-form.filters{grid-template-columns:repeat(4,1fr);align-items:end}.premium-grid-form label{display:grid;gap:7px;color:#314867;font-weight:800;font-size:12px}.premium-grid-form input,.premium-grid-form select,.premium-grid-form textarea,.table-search input,.forecast-form input,.forecast-form select{width:100%;height:43px;border:1px solid var(--line);border-radius:11px;background:#f9fcff;color:#0f1f3d;outline:0;padding:0 12px;font-size:13px}.premium-grid-form textarea{height:84px;padding:12px;resize:vertical}.span-2{grid-column:span 2}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:4px}.form-footer small{color:#8aa0bd;font-weight:700}.toggle-check{display:inline-flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#f8fbff}.toggle-check input{width:auto;height:auto}.toggle-check span{font-size:13px;color:#314867}.compact-card{margin-bottom:0}

/* =========================
   PREMIUM TABLES
========================= */
.premium-table-card{padding:0;overflow:hidden;margin-bottom:18px}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 18px 14px;border-bottom:1px solid var(--line)}.table-toolbar h3{margin:3px 0 0;font-size:20px;letter-spacing:-.04em}.table-search{display:flex;align-items:center;gap:8px;width:min(320px,100%);background:#f9fcff;border:1px solid var(--line);border-radius:11px;padding:0 10px}.table-search input{border:0;background:transparent;padding:0;height:38px}.table-responsive{width:100%;overflow:auto}.premium-table{width:100%;border-collapse:separate;border-spacing:0}.premium-table th{padding:13px 16px;text-align:left;color:#8aa0bd;font-size:11px;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid var(--line);background:#fbfdff}.premium-table td{padding:15px 16px;border-bottom:1px solid #edf3fb;color:#314867;vertical-align:middle}.premium-table tr:hover td{background:#fbfdff}.premium-table td strong{display:block;color:#0f1f3d;letter-spacing:-.02em}.premium-table td small{display:block;margin-top:4px;color:#8aa0bd}.premium-table b{color:#071a3d}.compact-actions{justify-content:flex-start;white-space:nowrap}.compact-actions button{width:36px;height:36px;display:grid;place-items:center;background:#f8fbff;border:1px solid var(--line);border-radius:10px;color:#46607d}.compact-actions .danger-action{color:#ef4444;background:#fff8f8}.inline-empty{display:flex;align-items:center;justify-content:center;gap:9px;padding:24px;color:#8aa0bd;font-weight:800}.type-pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef5ff;color:var(--blue);font-weight:900;font-size:12px}.type-pill.despesa{background:#fff1f2;color:var(--red)}

/* =========================
   TABS AND WORKSPACES
========================= */
.tabs-card{display:flex;gap:8px;align-items:center;padding:8px;margin-bottom:18px;overflow:auto}.tabs-card a{display:flex;align-items:center;gap:8px;padding:11px 13px;border-radius:11px;color:#46607d;font-weight:800;white-space:nowrap}.tabs-card a.active,.tabs-card a:hover{background:#eef5ff;color:var(--blue)}.two-column-workspace{display:grid;grid-template-columns:360px 1fr;gap:18px}.filter-panel{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center;padding:18px;margin-bottom:18px}.filter-panel h3{margin:3px 0 0}

/* =========================
   CALENDAR PREMIUM
========================= */
.calendar-premium-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.month-card,.timeline-card{padding:20px}.month-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}.month-head span{color:#8aa0bd;font-weight:900}.month-head h2{margin:0;font-size:24px;letter-spacing:-.04em;text-transform:capitalize}.calendar-grid-pro{display:grid;grid-template-columns:repeat(7,1fr);gap:9px}.day-cell{min-height:82px;border:1px solid var(--line);border-radius:13px;background:#fbfdff;padding:10px;display:grid;align-content:space-between}.day-cell strong{font-size:15px}.day-cell small{color:var(--blue);font-size:11px;font-weight:900}.day-cell.has-event{background:#f4f8ff;border-color:#cfe0fb}.day-cell.today{box-shadow:inset 0 0 0 2px var(--blue)}.event-timeline{display:grid;gap:12px}.timeline-item{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fbfdff}.timeline-dot{width:10px;height:10px;border-radius:999px;background:var(--blue)}.timeline-item.despesa .timeline-dot{background:var(--red)}.timeline-item strong{display:block}.timeline-item small{display:block;color:#8aa0bd;margin-top:3px}

/* =========================
   FORECAST PREMIUM
========================= */
.forecast-hero{display:grid;grid-template-columns:320px 1fr;gap:18px;align-items:center;padding:20px;margin-bottom:18px;background:linear-gradient(135deg,#fff,#f7fbff)}.forecast-hero span{display:block;color:#60718d;font-weight:800}.forecast-hero strong{display:block;font-size:34px;letter-spacing:-.06em;color:#071a3d}.forecast-hero small{color:#8aa0bd}.forecast-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.forecast-form label{display:grid;gap:7px;color:#314867;font-weight:800;font-size:12px}.forecast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.forecast-month{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px;display:grid;gap:11px}.forecast-month span{color:#60718d;font-weight:900}.forecast-month>strong{font-size:27px;letter-spacing:-.05em}.forecast-month em{font-style:normal;padding:9px 10px;border-radius:10px;background:#ecfdf5;color:#15803d;font-weight:900;font-size:12px}.forecast-month.danger em{background:#fff1f2;color:#be123c}

/* =========================
   SETTINGS PREMIUM
========================= */
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.settings-card{padding:20px}.settings-card svg{width:42px;height:42px;padding:10px;border-radius:13px;background:#eef5ff;color:var(--blue)}.settings-card h3{margin:14px 0 8px;letter-spacing:-.04em}.settings-card p{margin:0;color:#60718d;line-height:1.6}

/* =========================
   INTERNAL PAGES RESPONSIVE
========================= */
@media(max-width:1180px){.premium-grid-form,.premium-grid-form.filters{grid-template-columns:repeat(2,1fr)}.two-column-workspace,.calendar-premium-layout,.forecast-hero{grid-template-columns:1fr}.forecast-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.premium-page-head,.table-toolbar,.form-footer,.filter-panel{display:grid;align-items:start}.mini-kpi-row,.premium-grid-form,.premium-grid-form.filters,.forecast-form,.forecast-grid,.settings-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.premium-page-head h1{font-size:26px}.topbar-action{display:none}.table-search{width:100%}.calendar-grid-pro{grid-template-columns:repeat(2,1fr)}.day-cell{min-height:70px}.timeline-item{grid-template-columns:auto 1fr}.timeline-item .status{grid-column:2}.tabs-card{padding:6px}.premium-table{min-width:720px}.month-card,.timeline-card,.premium-form-card{padding:16px}}

/* =========================
   UNDERLINE FINANCE V3 · MICRO UX / FLUIDEZ / SAAS FEEL
========================= */
.uf-ready .main-area{opacity:0;transform:translateY(10px)}
.uf-ready.is-loaded .main-area{opacity:1;transform:none;transition:opacity .36s ease,transform .36s ease}
.card,.kpi,.premium-form-card,.premium-table-card,.mini-kpi,.command-card,.command-routine,.side-card,.settings-card,.forecast-month,.event-card,.timeline-item{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease}
.card:hover,.kpi:hover,.premium-form-card:hover,.premium-table-card:hover,.mini-kpi:hover,.command-card:hover,.command-routine:hover,.side-card:hover,.settings-card:hover,.forecast-month:hover,.event-card:hover,.timeline-item:hover{transform:translateY(-2px);box-shadow:0 22px 58px rgba(15,23,42,.10);border-color:#d6e4f6}
button,.primary-action,.secondary-action,.topbar-action,.nav-block a,.tabs-card a,.summary-cta{transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease}
button:hover,.primary-action:hover,.secondary-action:hover,.topbar-action:hover,.summary-cta:hover{transform:translateY(-1px)}
button.is-busy{position:relative;pointer-events:none;opacity:.78}
button.is-busy:after{content:"";width:13px;height:13px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;border-radius:999px;display:inline-block;margin-left:8px;animation:ufSpin .7s linear infinite;vertical-align:-2px}
@keyframes ufSpin{to{transform:rotate(360deg)}}

.toast-stack{position:fixed;right:22px;bottom:22px;z-index:80;display:grid;gap:10px;width:min(380px,calc(100vw - 28px))}
.uf-toast{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 20px 60px rgba(15,23,42,.18);backdrop-filter:blur(12px);opacity:0;transform:translateY(12px) scale(.98);transition:opacity .22s ease,transform .22s ease}
.uf-toast.show{opacity:1;transform:none}.uf-toast strong{display:block;color:#071a3d;font-size:13px}.uf-toast small{display:block;color:#60718d;line-height:1.45;margin-top:2px}.uf-toast button{background:#f8fbff;border:1px solid var(--line);border-radius:9px;width:28px;height:28px;color:#60718d;font-size:18px;line-height:1}.toast-dot{width:12px;height:12px;border-radius:999px;background:var(--green);margin-top:3px;box-shadow:0 0 0 5px rgba(22,163,74,.10)}.uf-toast.error .toast-dot{background:var(--red);box-shadow:0 0 0 5px rgba(239,68,68,.10)}.uf-toast.warn .toast-dot{background:var(--amber);box-shadow:0 0 0 5px rgba(245,158,11,.12)}

.command-overlay{position:fixed;inset:0;background:rgba(6,22,55,.24);z-index:70;display:flex;justify-content:flex-end;backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:opacity .2s ease}.drawer-open .command-overlay{opacity:1;pointer-events:auto}.command-drawer{width:min(440px,100%);height:100%;background:#fff;border-left:1px solid var(--line);box-shadow:-24px 0 80px rgba(15,23,42,.20);padding:22px;transform:translateX(24px);transition:transform .22s ease;overflow:auto}.drawer-open .command-drawer{transform:none}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.drawer-head span{display:block;text-transform:uppercase;letter-spacing:.12em;color:#8aa0bd;font-size:10px;font-weight:900}.drawer-head strong{display:block;margin-top:4px;font-size:24px;letter-spacing:-.05em;color:#071a3d}.drawer-close{width:38px;height:38px;border-radius:11px;background:#f8fbff;border:1px solid var(--line);color:#46607d}.drawer-grid{display:grid;gap:12px}.drawer-grid a{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fbfdff}.drawer-grid a:hover{background:#eef5ff;border-color:#cfe0fb;transform:translateY(-1px)}.drawer-grid svg{grid-row:span 2;width:38px;height:38px;padding:9px;border-radius:12px;background:#eef5ff;color:var(--blue)}.drawer-grid span{font-weight:900;color:#071a3d}.drawer-grid small{color:#60718d;line-height:1.45}

.insight-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.insight-card{display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:var(--shadow)}.insight-card>svg{width:42px;height:42px;padding:10px;border-radius:13px;background:#eef5ff;color:var(--blue)}.insight-card span{display:block;color:#8aa0bd;text-transform:uppercase;letter-spacing:.10em;font-size:10px;font-weight:900}.insight-card strong{display:block;margin-top:4px;color:#071a3d;letter-spacing:-.035em}.insight-card small{display:block;margin-top:4px;color:#60718d;line-height:1.45}.insight-card.positive>svg{background:#ecfdf5;color:var(--green)}.insight-card.negative>svg{background:#fff1f2;color:var(--red)}

input:focus,select:focus,textarea:focus,.table-search:focus-within,.search:focus-within{border-color:#9cc1ff!important;box-shadow:0 0 0 4px rgba(37,99,235,.10);background:#fff!important}.premium-table tbody tr{transition:background .18s ease,transform .18s ease}.premium-table tbody tr:hover{transform:scale(1.002)}.premium-table tbody tr td:first-child{border-left:3px solid transparent}.premium-table tbody tr:hover td:first-child{border-left-color:var(--blue)}.empty-premium-v3{border:1px dashed #cfe0fb;border-radius:14px;background:linear-gradient(135deg,#fbfdff,#f4f8ff);color:#60718d!important}

@media(max-width:1180px){.insight-strip{grid-template-columns:1fr}.command-drawer{width:min(420px,100%)}}
@media(max-width:760px){.toast-stack{right:14px;bottom:14px}.command-overlay{justify-content:center;align-items:flex-end}.command-drawer{height:auto;max-height:88vh;width:100%;border-left:0;border-top:1px solid var(--line);border-radius:22px 22px 0 0;transform:translateY(24px)}.drawer-open .command-drawer{transform:none}.sidebar{display:none}.sidebar-visible .sidebar{display:block}.app-shell{display:block}.search{order:4;flex-basis:100%;max-width:none}.insight-card{grid-template-columns:1fr}.insight-card>svg{margin-bottom:2px}.uf-ready .main-area{transform:none}}

/* =========================
   UNDERLINE FINANCE V4 · DESIGN SYSTEM CONSOLIDADO
   Bloco de tokens + componentes globais. Não remove os blocos anteriores;
   apenas padroniza a camada visual para evitar inconsistência futura.
========================= */
:root{
  --uf-blue-50:#eff6ff;
  --uf-blue-100:#dbeafe;
  --uf-blue-200:#bfdbfe;
  --uf-blue-500:#2563eb;
  --uf-blue-600:#1d4ed8;
  --uf-blue-700:#1e40af;
  --uf-ink-900:#071a3d;
  --uf-ink-800:#0f1f3d;
  --uf-ink-700:#1f3353;
  --uf-ink-600:#314867;
  --uf-muted-500:#60718d;
  --uf-muted-400:#8aa0bd;
  --uf-border:#e5edf7;
  --uf-border-strong:#d6e4f6;
  --uf-surface:#ffffff;
  --uf-surface-soft:#fbfdff;
  --uf-bg:#f5f8fc;
  --uf-success:#16a34a;
  --uf-success-soft:#ecfdf5;
  --uf-danger:#ef4444;
  --uf-danger-soft:#fff1f2;
  --uf-warning:#f59e0b;
  --uf-warning-soft:#fff7ed;
  --uf-info-soft:#eef5ff;
  --uf-radius-xs:8px;
  --uf-radius-sm:10px;
  --uf-radius-md:13px;
  --uf-radius-lg:16px;
  --uf-radius-xl:18px;
  --uf-shadow-xs:0 1px 2px rgba(15,23,42,.04);
  --uf-shadow-sm:0 10px 28px rgba(15,23,42,.06);
  --uf-shadow-md:0 16px 40px rgba(15,23,42,.08);
  --uf-shadow-lg:0 24px 64px rgba(15,23,42,.12);
  --uf-space-1:4px;
  --uf-space-2:8px;
  --uf-space-3:12px;
  --uf-space-4:16px;
  --uf-space-5:20px;
  --uf-space-6:24px;
  --uf-space-7:32px;
  --uf-focus:0 0 0 4px rgba(37,99,235,.10);
  --blue:var(--uf-blue-500);
  --blue-2:var(--uf-blue-600);
  --navy:var(--uf-ink-900);
  --muted:var(--uf-muted-500);
  --line:var(--uf-border);
  --bg:var(--uf-bg);
  --card:var(--uf-surface);
  --green:var(--uf-success);
  --red:var(--uf-danger);
  --amber:var(--uf-warning);
  --shadow:var(--uf-shadow-md);
  --radius:var(--uf-radius-lg);
}

/* BASE / TIPOGRAFIA */
html{scroll-behavior:smooth}body{letter-spacing:-.01em;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}::selection{background:var(--uf-blue-100);color:var(--uf-ink-900)}h1,h2,h3{color:var(--uf-ink-900);letter-spacing:-.05em}p{line-height:1.65}.page-head h1,.premium-page-head h1,.dashboard-hero h1{font-weight:800}.page-head p,.premium-page-head p{max-width:780px}.muted,.text-muted{color:var(--uf-muted-500)!important}

/* LAYOUT SYSTEM */
.main-area{background:radial-gradient(circle at 80% 0%,rgba(37,99,235,.06),transparent 30%),var(--uf-bg)}.topbar{position:sticky;top:0;z-index:40;background:linear-gradient(180deg,rgba(245,248,252,.96),rgba(245,248,252,.82));backdrop-filter:blur(16px);border-bottom:1px solid rgba(229,237,247,.72)}.sidebar{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,251,255,.88));backdrop-filter:blur(16px)}.brand-mark{box-shadow:0 16px 30px rgba(37,99,235,.24)}.nav-block a{position:relative;min-height:42px}.nav-block a.active{background:var(--uf-info-soft);color:var(--uf-blue-600);box-shadow:inset 3px 0 0 var(--uf-blue-500)}.nav-block a.active svg{color:var(--uf-blue-600)}.nav-block a:hover{transform:translateX(2px)}

/* CARD SYSTEM */
.panel,.card,.table-card,.form-panel,.empty-state,.premium-form-card,.premium-table-card,.side-card,.bento-card,.settings-card,.month-card,.timeline-card,.forecast-month,.mini-kpi,.insight-card,.command-card,.command-routine{border-color:var(--uf-border);border-radius:var(--uf-radius-lg);box-shadow:var(--uf-shadow-sm);background:linear-gradient(180deg,#fff,#fbfdff)}.panel,.card,.premium-form-card,.premium-table-card,.side-card,.bento-card{padding:var(--uf-space-5)}.card h3,.panel h2,.bento-card h3,.side-card h3{font-size:16px;line-height:1.2;margin-bottom:var(--uf-space-4)}.kpi,.metric,.quick{border-radius:var(--uf-radius-lg);box-shadow:var(--uf-shadow-xs)}.kpi b,.metric b{letter-spacing:-.055em;color:var(--uf-ink-900)}

/* BUTTON SYSTEM */
.primary,.primary-action,.btn-primary,button.primary{background:linear-gradient(135deg,var(--uf-blue-600),#5b9cff);color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:0 14px 30px rgba(37,99,235,.22)}.secondary-action,.soft-btn,.ghost,.btn-secondary,.actions button,.icon-btn,.topbar-action{background:#fff;border:1px solid var(--uf-border);color:var(--uf-ink-600);box-shadow:var(--uf-shadow-xs)}.secondary-action:hover,.soft-btn:hover,.ghost:hover,.actions button:hover,.icon-btn:hover,.topbar-action:hover{border-color:var(--uf-border-strong);background:#f8fbff;color:var(--uf-blue-600);box-shadow:var(--uf-shadow-sm)}.btn-danger,.actions form[action*="delete"] button,.actions form[action*="excluir"] button{color:#be123c;background:var(--uf-danger-soft);border-color:#ffe1e6}.primary:active,.primary-action:active,.secondary-action:active,.soft-btn:active,.ghost:active,.icon-btn:active{transform:translateY(0) scale(.99)}button:disabled,.is-disabled{opacity:.55;cursor:not-allowed;filter:saturate(.7)}

/* FORM SYSTEM */
label{color:var(--uf-ink-600)}input,select,textarea{min-height:42px;border-color:var(--uf-border);border-radius:var(--uf-radius-sm);background:var(--uf-surface);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}textarea{line-height:1.55;resize:vertical}.premium-grid-form label,.grid-form label,.forecast-form label{display:grid;gap:7px;font-weight:800;font-size:12px;color:var(--uf-ink-600)}input::placeholder,textarea::placeholder{color:#9badc4}.check{border:1px solid var(--uf-border);border-radius:var(--uf-radius-sm);padding:10px 12px;background:#fff}.check input{min-height:auto}input[type="file"]{padding:9px;background:#fbfdff}

/* TABLE SYSTEM */
.table-card,.premium-table-card{border-radius:var(--uf-radius-lg);overflow:auto}.table-card table,.premium-table{border-collapse:separate;border-spacing:0}.table-card thead th,.premium-table thead th{position:sticky;top:0;z-index:2;background:#fbfdff;color:var(--uf-muted-500);font-size:11px;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid var(--uf-border)}.table-card td,.premium-table td{color:var(--uf-ink-700);vertical-align:middle}.table-card tbody tr:nth-child(even),.premium-table tbody tr:nth-child(even){background:#fcfdff}.table-card tbody tr:hover,.premium-table tbody tr:hover{background:#f4f8ff}.table-toolbar,.filter-panel{gap:var(--uf-space-3)}.table-search{border-radius:var(--uf-radius-sm);background:#fff}.actions{justify-content:flex-end}.actions a,.actions button{min-width:34px;min-height:34px;display:inline-grid;place-items:center}

/* STATUS / BADGE SYSTEM */
.status,.badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid transparent}.status:before,.badge:before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.76}.status.paga,.status.recebida,.status.ativo,.badge.success{background:var(--uf-success-soft);color:#15803d;border-color:#d8f7e5}.status.vencida,.status.atrasada,.badge.danger{background:var(--uf-danger-soft);color:#be123c;border-color:#ffe1e6}.status.pendente,.badge.warning{background:#fffbeb;color:#b45309;border-color:#fdecc8}.status.cancelada,.status.inativo,.badge.neutral{background:#f1f5f9;color:#475569;border-color:#e2e8f0}.status.info,.badge.info{background:var(--uf-info-soft);color:var(--uf-blue-600);border-color:#d8e8ff}

/* ALERT / TOAST SYSTEM */
.alert{border-radius:var(--uf-radius-md);box-shadow:var(--uf-shadow-xs)}.alert.success{border-color:#d8f7e5}.alert.error{border-color:#ffe1e6}.alert.warn{border-color:#fdecc8}.uf-toast{border-radius:var(--uf-radius-lg)}

/* DASHBOARD / CHART SYSTEM */
.chart-wrap,canvas{max-width:100%}.charts-grid .card,.chart-card{min-height:310px}.finance-summary-card{background:linear-gradient(135deg,#071a3d,#123b82)!important;color:#fff;border:0}.finance-summary-card h3,.finance-summary-card strong{color:#fff}.finance-summary-card span,.finance-summary-card small{color:rgba(255,255,255,.72)}.summary-line{border-color:rgba(229,237,247,.72)}.summary-line.total{color:#fff;background:rgba(255,255,255,.10);margin:8px -8px -4px;padding:12px 8px;border-radius:12px;border-bottom:0}

/* EMPTY STATE SYSTEM */
.empty-state,.empty-premium-v3,.inline-empty,.micro-empty{position:relative;overflow:hidden}.empty-state:before,.empty-premium-v3:before{content:"";position:absolute;inset:auto -60px -80px auto;width:180px;height:180px;border-radius:999px;background:rgba(37,99,235,.08)}.empty-state h3,.empty-premium-v3 h3{color:var(--uf-ink-900);margin-bottom:6px}.empty-state p,.empty-premium-v3 p{color:var(--uf-muted-500);margin-inline:auto;max-width:460px}

/* MOTION SYSTEM */
@media(prefers-reduced-motion:no-preference){.panel,.card,.premium-form-card,.premium-table-card,.side-card,.bento-card,.settings-card,.month-card,.timeline-card,.forecast-month,.mini-kpi,.insight-card{animation:ufFadeUp .32s ease both}.panel:nth-of-type(2),.card:nth-of-type(2),.bento-card:nth-of-type(2){animation-delay:.04s}.panel:nth-of-type(3),.card:nth-of-type(3),.bento-card:nth-of-type(3){animation-delay:.08s}@keyframes ufFadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}

/* MOBILE APP FEELING */
@media(max-width:760px){body{font-size:13px}.main-area{padding:0 12px 24px}.topbar{padding:12px 0;margin:0 -12px;padding-inline:12px}.page-head,.premium-page-head,.dashboard-hero{border-radius:var(--uf-radius-lg)}.dashboard-hero{padding:18px}.panel,.card,.premium-form-card,.premium-table-card,.side-card,.bento-card{padding:16px}.kpi-grid,.finance-command-center,.bento-grid,.charts-grid,.action-grid{gap:12px}.nav-block a{min-height:44px}.primary-action,.secondary-action,.soft-btn,.primary{width:100%;justify-content:center}.actions{justify-content:flex-start}.table-card,.premium-table-card{margin-inline:-2px}.status{font-size:10px}.calendar-grid-pro{gap:8px}.toast-stack{width:calc(100vw - 24px)}}


/* =========================
   UNDERLINE FINANCE V5 · UX OPERACIONAL + TABLES FINTECH
   Bloco isolado para não mexer nos módulos anteriores.
========================= */
:root{
  --uf-focus-ring:0 0 0 4px rgba(37,99,235,.12);
  --uf-row-hover:#f8fbff;
  --uf-table-sticky:#ffffffee;
  --uf-drawer-width:520px;
}

/* TABLE EXPERIENCE FINTECH */
.premium-table-card{position:relative;overflow:hidden}
.table-toolbar{position:sticky;top:0;z-index:4;background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.94) 100%);backdrop-filter:blur(12px)}
.table-responsive{max-height:68vh;overflow:auto;border-radius:0 0 var(--radius) var(--radius)}
.premium-table thead th{position:sticky;top:0;z-index:3;background:var(--uf-table-sticky);backdrop-filter:blur(10px);box-shadow:0 1px 0 #edf2f8;color:#52667f;letter-spacing:.06em}
.premium-table tbody tr{transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.premium-table tbody tr:hover{background:var(--uf-row-hover)}
.premium-table tbody tr.is-selected{background:#eef5ff;box-shadow:inset 3px 0 0 var(--blue)}
.premium-table td strong{display:block;color:#0b1f44;line-height:1.35}.premium-table td small{display:block;color:#8aa0bd;margin-top:4px;font-size:11px}.premium-table td b{letter-spacing:-.02em}.premium-table .actions{opacity:.72;transition:opacity .18s ease}.premium-table tr:hover .actions{opacity:1}
.table-density-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;font-weight:800;color:#24415f}.table-density-toggle svg{width:16px;height:16px}.premium-table.is-compact th,.premium-table.is-compact td{padding:10px 14px}.premium-table.is-compact td small{display:none}
.row-check{width:18px;height:18px;accent-color:var(--blue)}
.bulk-bar{display:none;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:12px 14px;background:#eef5ff;border:1px solid #dbeafe;border-radius:13px;color:#17438c;font-weight:800}.bulk-bar.show{display:flex}.bulk-bar small{font-weight:600;color:#46607d}.bulk-actions{display:flex;gap:8px;flex-wrap:wrap}.bulk-actions button{border:1px solid #cfe0ff;background:#fff;color:#17438c;border-radius:10px;padding:9px 11px;font-weight:800}

/* QUICK CREATE DRAWERS */
.command-overlay{align-items:stretch;justify-content:flex-end}.command-overlay:not([hidden]){display:flex}.command-drawer{width:min(var(--uf-drawer-width),100vw);height:100vh;overflow:auto;border-radius:24px 0 0 24px}.drawer-tabs{display:flex;gap:8px;margin:16px 0 14px;padding:6px;background:#f3f7fc;border:1px solid var(--line);border-radius:14px}.drawer-tab{flex:1;background:transparent;color:#52667f;border-radius:10px;padding:10px 12px;font-weight:900}.drawer-tab.active{background:#fff;color:var(--blue);box-shadow:0 8px 22px rgba(15,23,42,.07)}.drawer-panel{display:none}.drawer-panel.active{display:block}.drawer-mini-form{display:grid;gap:11px}.drawer-mini-form label{display:grid;gap:7px;color:#24415f;font-weight:800;font-size:12px}.drawer-mini-form input,.drawer-mini-form select,.drawer-mini-form textarea{width:100%;background:#fff}.drawer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.drawer-form-grid .span-2{grid-column:span 2}.drawer-note{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:13px;border-radius:13px;background:#f8fbff;border:1px solid var(--line);color:#60718d;line-height:1.5}.drawer-note i{color:var(--blue);flex:0 0 auto}.drawer-submit{width:100%;margin-top:4px}

/* QUICK ACTIONS + FLOW */
.quick-flow-row{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.quick-flow-row .soft-btn,.quick-flow-row .primary-action{min-height:42px}.topbar-action{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;display:inline-flex;align-items:center;gap:8px;font-weight:800;color:#24415f}.topbar-action:hover,.table-density-toggle:hover,.soft-btn:hover{box-shadow:var(--uf-focus-ring);border-color:#bfdbfe;color:var(--blue)}

/* FORM EXPERIENCE V2 */
.premium-grid-form label:focus-within{color:var(--blue)}
.premium-grid-form input:focus,.premium-grid-form select:focus,.premium-grid-form textarea:focus,.drawer-mini-form input:focus,.drawer-mini-form select:focus,.drawer-mini-form textarea:focus{border-color:#93c5fd;box-shadow:var(--uf-focus-ring)}
.form-helper{font-size:11px;color:#8aa0bd;font-weight:600;margin-top:-3px}.field-error{border-color:#fecdd3!important;box-shadow:0 0 0 4px rgba(239,68,68,.10)!important}.field-ok{border-color:#bbf7d0!important}

/* LOADING + CONFIRMATION */
button.is-busy{position:relative;color:transparent!important;pointer-events:none}button.is-busy:after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid rgba(255,255,255,.56);border-top-color:#fff;border-radius:999px;animation:ufSpin .7s linear infinite}.ghost.is-busy:after,.soft-btn.is-busy:after{border-color:rgba(37,99,235,.25);border-top-color:var(--blue)}@keyframes ufSpin{to{transform:rotate(360deg)}}

/* MOBILE APP FEELING V5 */
@media(max-width:760px){.command-drawer{width:100vw;border-radius:20px 20px 0 0;height:88vh;margin-top:auto}.command-overlay{align-items:flex-end}.drawer-form-grid{grid-template-columns:1fr}.drawer-form-grid .span-2{grid-column:auto}.table-responsive{max-height:none;overflow-x:auto}.premium-table{min-width:760px}.table-toolbar{position:relative}.bulk-bar{align-items:flex-start;flex-direction:column}.quick-flow-row .soft-btn,.quick-flow-row .primary-action{width:100%}.drawer-tabs{position:sticky;top:0;z-index:5}.user-pill{display:none}}

/* =========================
   UNDERLINE FINANCE V6 · INTELIGÊNCIA FINANCEIRA + POLIMENTO ANALÍTICO
   Bloco isolado para preservar V1-V5.
========================= */
.executive-insights-v6{display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:14px;margin:18px 0}.executive-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 12px 34px rgba(15,23,42,.06);display:flex;flex-direction:column;gap:9px;min-height:150px}.executive-card.main{background:linear-gradient(135deg,#071a3d,#1649a2);color:#fff;border:0;box-shadow:0 22px 50px rgba(15,54,132,.18)}.executive-card.main.negative{background:linear-gradient(135deg,#3d0714,#b91c1c)}.executive-card.main h2{margin:0;color:#fff;font-size:24px;letter-spacing:-.05em}.executive-card.main p{margin:0;color:rgba(255,255,255,.76);line-height:1.55}.executive-card i{width:26px;height:26px;color:var(--blue)}.executive-card span{font-size:12px;color:#7b8da8;font-weight:800}.executive-card strong{font-size:22px;letter-spacing:-.04em;color:#071a3d}.executive-card small{color:#8aa0bd;line-height:1.45}.executive-card .up{color:#16a34a}.executive-card .down{color:#ef4444}.executive-score{margin-top:auto;display:flex;align-items:end;justify-content:space-between;border-top:1px solid rgba(255,255,255,.16);padding-top:14px}.executive-score strong{color:#fff;font-size:28px}.executive-score small{color:rgba(255,255,255,.72)}
.operational-board-v6{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;margin-top:18px;box-shadow:0 16px 40px rgba(15,23,42,.07)}.board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.board-head h3{margin:3px 0 0;font-size:20px;letter-spacing:-.04em}.board-pill{background:#eef5ff;color:var(--blue);border:1px solid #dbeafe;border-radius:999px;padding:8px 11px;font-weight:900;font-size:12px}.board-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.board-item{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#fbfdff;border-radius:16px;padding:14px}.board-item i{color:var(--blue);flex:0 0 auto}.board-item strong{display:block;color:#0b1f44}.board-item small{display:block;color:#7b8da8;margin-top:4px;line-height:1.4}.board-item a{margin-left:auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font-weight:900;color:#24415f}.board-item.danger{background:#fff7f7;border-color:#ffe1e6}.board-item.danger i{color:#ef4444}.board-item.warn{background:#fffbeb;border-color:#fdecc8}.board-item.warn i{color:#f59e0b}
.report-intelligence-v6{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px;margin:18px 0}.report-insight{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 12px 34px rgba(15,23,42,.06)}.report-insight i{color:var(--blue);width:24px;height:24px}.report-insight span{display:block;color:#7b8da8;font-size:12px;font-weight:900}.report-insight strong{display:block;margin:5px 0;color:#071a3d;font-size:20px;letter-spacing:-.04em}.report-insight small{color:#7b8da8;line-height:1.45}.report-insight.positive{border-color:#d8f7e5;background:linear-gradient(180deg,#fff,#f7fffa)}.report-insight.negative{border-color:#ffe1e6;background:linear-gradient(180deg,#fff,#fff8f8)}
.calendar-radar-v6{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.calendar-radar-v6>div{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 10px 26px rgba(15,23,42,.05)}.calendar-radar-v6 i{color:var(--blue)}.calendar-radar-v6 span{display:block;color:#7b8da8;font-size:12px;font-weight:800}.calendar-radar-v6 strong{display:block;color:#071a3d;font-size:22px;letter-spacing:-.04em}.forecast-hero.intelligence{grid-template-columns:1fr 1fr 1.4fr}.forecast-v6-chart{margin:18px 0}.forecast-v6-chart canvas{height:320px!important}.up{color:#16a34a!important}.down{color:#ef4444!important}
@media(max-width:1180px){.executive-insights-v6{grid-template-columns:1fr 1fr}.executive-card.main{grid-column:span 2}.board-grid,.report-intelligence-v6{grid-template-columns:1fr}.forecast-hero.intelligence{grid-template-columns:1fr}}@media(max-width:760px){.executive-insights-v6,.calendar-radar-v6{grid-template-columns:1fr}.executive-card.main{grid-column:auto}.board-head{align-items:flex-start;flex-direction:column}.board-grid{grid-template-columns:1fr}.board-item{align-items:flex-start}.board-item a{margin-left:0}.report-intelligence-v6{grid-template-columns:1fr}.forecast-v6-chart canvas{height:260px!important}}


/* =========================
   UNDERLINE FINANCE V7 FINAL · POLIMENTO MASTER
   Bloco final isolado: acabamento visual, consistência, mobile e performance percebida.
========================= */
:root{
  --uf-final-ring:0 0 0 4px rgba(37,99,235,.11);
  --uf-final-border:rgba(203,213,225,.72);
  --uf-final-glass:rgba(255,255,255,.82);
  --uf-final-hover:0 18px 46px rgba(15,23,42,.095);
}

/* ACABAMENTO BASE */
body.uf-ready{background:linear-gradient(180deg,#f6f9fe 0%,#f4f8fd 52%,#f7faff 100%);color:#0b1f44}.app-shell{isolation:isolate}.main-area{position:relative}.main-area:before{content:"";position:fixed;inset:0 0 auto auto;width:520px;height:520px;background:radial-gradient(circle,rgba(37,99,235,.07),transparent 66%);pointer-events:none;z-index:-1}.page-head,.premium-page-head,.dashboard-hero{animation:ufFadeUp .34s ease both}.panel,.card,.table-card,.form-panel,.empty-state,.premium-card,.bento-card,.executive-card,.operational-board-v6,.report-insight{animation:ufFadeUp .38s ease both}@keyframes ufFadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* SIDEBAR FINAL */
.sidebar{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-thumb{background:#dbe4f0;border-radius:999px}.brand{padding:2px 4px 18px;border-bottom:1px solid rgba(229,237,247,.84)}.nav-block{margin:18px 0}.nav-block p{padding:0 12px;margin-bottom:9px}.nav-block a{border:1px solid transparent;transition:background .18s ease,color .18s ease,transform .18s ease,border-color .18s ease,box-shadow .18s ease}.nav-block a:hover{border-color:#dbeafe;box-shadow:0 8px 20px rgba(37,99,235,.06)}.nav-block a.active{border-color:#dbeafe;background:linear-gradient(90deg,#eef5ff,#fff);font-weight:900}.nav-block a svg{width:17px;height:17px;stroke-width:2.2px;flex:0 0 auto}

/* TOPBAR FINAL */
.topbar{min-height:74px}.search{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.search:focus-within{border-color:#93c5fd;box-shadow:var(--uf-final-ring);background:#fff}.search input::placeholder{color:#8aa0bd}.icon-btn,.topbar-action,.user-pill{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.icon-btn:hover,.topbar-action:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(15,23,42,.08)}.user-pill{min-width:150px;justify-content:center}

/* COMPONENTES FINAL */
.panel,.card,.table-card,.form-panel,.empty-state,.premium-card,.bento-card,.executive-card,.operational-board-v6,.report-insight,.calendar-radar-v6>div{border-color:var(--uf-final-border);box-shadow:0 14px 36px rgba(15,23,42,.065)}.panel:hover,.card:hover,.premium-card:hover,.bento-card:hover,.executive-card:not(.main):hover,.report-insight:hover{box-shadow:var(--uf-final-hover);transform:translateY(-1px)}.panel,.card,.premium-card,.bento-card,.executive-card,.report-insight{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.card h3,.panel h2{letter-spacing:-.04em}.metric,.quick,.kpi,.board-item,.event-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.metric:hover,.quick:hover,.kpi:hover,.board-item:hover,.event-card:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(15,23,42,.07);border-color:#dbeafe}

/* BOTÕES E AÇÕES FINAL */
.primary-action,.soft-btn,.ghost,.actions button,.bulk-actions button,.board-item a,.drawer-submit{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease}.primary-action:hover,.drawer-submit:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(37,99,235,.19)}.soft-btn:hover,.ghost:hover,.actions button:hover,.bulk-actions button:hover,.board-item a:hover{transform:translateY(-1px);border-color:#bfdbfe;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.07)}.actions{align-items:center}.actions button svg,.ghost svg,.soft-btn svg{width:16px;height:16px}

/* FORMS FINAL */
input,select,textarea{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}input:hover,select:hover,textarea:hover{border-color:#cbdcf2}input:focus,select:focus,textarea:focus{border-color:#93c5fd;box-shadow:var(--uf-final-ring)}label{color:#24415f}.grid-form label,.premium-grid-form label{display:grid;gap:7px;font-size:12px;font-weight:800}.form-panel{position:relative}.form-panel:before{content:"";position:absolute;left:18px;right:18px;top:0;height:1px;background:linear-gradient(90deg,transparent,#dbeafe,transparent)}

/* TABELAS FINAL */
.table-card,.premium-table-card{background:#fff}.premium-table-card{border-radius:18px}.table-toolbar{border-bottom:1px solid #edf2f8}.premium-table th,.premium-table td,table th,table td{vertical-align:middle}.premium-table tbody tr,table tbody tr{transition:background .16s ease,box-shadow .16s ease}.premium-table tbody tr:hover,table tbody tr:hover{background:#f8fbff}.premium-table td:first-child,.premium-table th:first-child{padding-left:18px}.premium-table td:last-child,.premium-table th:last-child{padding-right:18px}.status{letter-spacing:-.01em;border:1px solid transparent}.status.paga,.status.recebida,.status.ativo{border-color:#bbf7d0}.status.vencida,.status.atrasada{border-color:#fecdd3}.status.pendente{border-color:#fde68a}.status.cancelada,.status.inativo{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}

/* DASHBOARD / INTELIGÊNCIA FINAL */
.executive-card.main{position:relative;overflow:hidden}.executive-card.main:after{content:"";position:absolute;right:-72px;top:-72px;width:180px;height:180px;border-radius:999px;background:rgba(255,255,255,.10)}.executive-card.main>*{position:relative}.executive-score{gap:14px}.board-pill{white-space:nowrap}.bento-grid,.charts-grid,.executive-insights-v6,.board-grid{align-items:stretch}.chart-wrap,canvas{max-width:100%}.summary-line:last-child,.mini-row:last-child{border-bottom:0}

/* DRAWER / TOAST FINAL */
.command-overlay{background:rgba(6,22,55,.32);backdrop-filter:blur(9px)}.command-drawer{box-shadow:-30px 0 80px rgba(6,22,55,.22)}.drawer-head{position:sticky;top:0;background:linear-gradient(180deg,#fff,rgba(255,255,255,.92));backdrop-filter:blur(14px);z-index:8}.drawer-close:hover{background:#eef5ff;color:var(--blue)}.uf-toast{box-shadow:0 20px 48px rgba(15,23,42,.14)}

/* EMPTY STATES FINAL */
.empty-state,.inline-empty,.micro-empty{background:linear-gradient(180deg,#fff,#f8fbff)}.empty-state strong,.inline-empty strong,.micro-empty strong{color:#0b1f44}.empty-state svg,.inline-empty svg,.micro-empty svg{filter:drop-shadow(0 10px 18px rgba(37,99,235,.14))}

/* MOBILE MASTER */
@media(max-width:1100px){.app-shell{background:var(--uf-bg)}.sidebar{border-radius:0 0 22px 22px;box-shadow:0 18px 40px rgba(15,23,42,.08)}.main-area{padding-bottom:86px}.topbar{gap:10px}.command-toggle{margin-left:auto}.page-head h1,.premium-page-head h1,.dashboard-hero h1{font-size:clamp(24px,7vw,34px)}}
@media(max-width:760px){body.uf-ready{font-size:13px}.topbar{position:sticky;top:0;padding:12px 0}.icon-btn.sidebar-toggle{display:grid}.search{height:44px}.command-toggle{width:100%;justify-content:center}.page-head,.premium-page-head{margin-top:12px}.panel,.card,.table-card,.form-panel,.empty-state,.premium-card,.bento-card,.operational-board-v6{border-radius:18px}.kpi b,.metric b{font-size:22px}.grid-form,.premium-grid-form{gap:10px}.form-panel{padding:14px}.table-card{border-radius:18px}.table-responsive{margin:0 -1px}.premium-table td,.premium-table th{white-space:nowrap}.toast-stack{left:14px;right:14px}.uf-toast{width:100%}.drawer-head strong{font-size:20px}.drawer-mini-form label{font-size:12px}.executive-card,.report-insight,.calendar-radar-v6>div{padding:16px}.board-item{border-radius:15px}.main-area:before{display:none}}
@media(max-width:420px){.main-area{padding-left:12px;padding-right:12px}.brand strong{font-size:17px}.brand-mark{width:38px;height:38px}.topbar-action{font-size:12px}.actions{gap:6px}.actions button,.ghost{padding:7px}.drawer-tabs{gap:5px}.drawer-tab{padding:9px 7px;font-size:12px}}

/* ACESSIBILIDADE / REDUÇÃO DE MOVIMENTO */
:focus-visible{outline:none;box-shadow:var(--uf-final-ring)!important;border-color:#93c5fd!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* =========================
   UNDERLINE FINANCE · LOGIN PREMIUM V2
   Bloco isolado: apenas tela de autenticação.
========================= */
.login-premium-v2{position:relative;min-height:100vh;overflow:hidden;display:grid;place-items:center;padding:34px;background:radial-gradient(circle at 8% 4%,rgba(37,99,235,.18),transparent 28%),radial-gradient(circle at 92% 12%,rgba(14,165,233,.14),transparent 30%),linear-gradient(135deg,#f6f9ff 0%,#eef5ff 48%,#f8fbff 100%)}
.login-premium-v2:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(37,99,235,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.055) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 72%);pointer-events:none}.login-orb{position:absolute;border-radius:999px;filter:blur(8px);opacity:.7;pointer-events:none}.orb-one{width:330px;height:330px;left:-120px;bottom:-120px;background:rgba(37,99,235,.13)}.orb-two{width:250px;height:250px;right:-80px;top:18%;background:rgba(14,165,233,.12)}
.login-premium-shell{position:relative;z-index:1;width:min(1180px,100%);min-height:720px;display:grid;grid-template-columns:1.1fr .9fr;border:1px solid rgba(219,231,255,.9);border-radius:28px;background:rgba(255,255,255,.72);box-shadow:0 34px 90px rgba(15,23,42,.13);backdrop-filter:blur(22px);overflow:hidden}.login-showcase{position:relative;padding:38px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(135deg,#061637 0%,#0b2f75 48%,#2563eb 100%);color:#fff;overflow:hidden}.login-showcase:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 18% 15%,rgba(255,255,255,.24),transparent 28%),radial-gradient(circle at 80% 72%,rgba(96,165,250,.34),transparent 34%);pointer-events:none}.login-showcase:after{content:"";position:absolute;right:-90px;bottom:-130px;width:420px;height:420px;border-radius:999px;border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 60px rgba(255,255,255,.08);pointer-events:none}.login-brand-premium,.login-mobile-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px}.login-brand-premium{margin:0}.login-mark{box-shadow:0 12px 32px rgba(37,99,235,.28)}.login-brand-premium strong,.login-mobile-brand strong{display:block;font-size:20px;letter-spacing:-.05em}.login-brand-premium span,.login-mobile-brand span{display:block;font-size:11px;letter-spacing:.28em;font-weight:900;color:#93c5fd}.showcase-copy{position:relative;z-index:1;max-width:560px;margin-top:auto;margin-bottom:28px}.showcase-kicker,.login-pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;font-weight:900;font-size:12px}.showcase-kicker{padding:8px 11px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#dbeafe}.showcase-copy h1{margin:18px 0 12px;font-size:44px;line-height:1.02;letter-spacing:-.075em;color:#fff}.showcase-copy p{margin:0;max-width:510px;color:rgba(255,255,255,.72);line-height:1.7;font-size:15px}.login-preview-card{position:relative;z-index:1;border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:20px;background:rgba(255,255,255,.12);box-shadow:0 22px 70px rgba(0,0,0,.18);backdrop-filter:blur(18px)}.preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.preview-head small,.preview-kpis span{display:block;color:rgba(255,255,255,.62);font-weight:700;font-size:12px}.preview-head strong{display:block;margin-top:4px;color:#fff;font-size:18px;letter-spacing:-.04em}.preview-status{padding:7px 10px;border-radius:999px;background:rgba(34,197,94,.14);border:1px solid rgba(187,247,208,.35);color:#dcfce7;font-weight:900;font-size:11px}.preview-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.preview-kpis div{padding:13px;border-radius:15px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12)}.preview-kpis strong{display:block;margin-top:7px;color:#fff;font-size:17px;letter-spacing:-.04em}.preview-chart{height:105px;display:flex;align-items:end;gap:10px;padding:13px;border-radius:16px;background:rgba(5,18,46,.22);border:1px solid rgba(255,255,255,.10)}.preview-chart span{flex:1;display:block;border-radius:999px 999px 8px 8px;background:linear-gradient(180deg,#bfdbfe,#60a5fa 55%,#2563eb);box-shadow:0 0 24px rgba(147,197,253,.24)}.preview-list{display:grid;gap:10px;margin-top:16px}.preview-list div{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.76);font-weight:700;font-size:12px}.preview-list i{width:17px;height:17px;color:#bfdbfe}.login-panel-premium{display:grid;place-items:center;padding:42px;background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(248,251,255,.92))}.login-card-v2{width:min(430px,100%);border:1px solid rgba(229,237,247,.95);border-radius:24px;background:#fff;padding:30px;box-shadow:0 24px 70px rgba(15,23,42,.10)}.login-mobile-brand{display:none;margin-bottom:22px}.login-mobile-brand span{color:var(--blue)}.login-title-block{margin-bottom:24px}.login-pill{padding:8px 11px;background:#eef5ff;color:var(--blue);border:1px solid #dbeafe}.login-pill i{width:15px;height:15px}.login-title-block h2{margin:16px 0 8px;font-size:31px;line-height:1.08;letter-spacing:-.065em;color:#071a3d}.login-title-block p{margin:0;color:#64748b;line-height:1.6}.login-form-v2{display:grid;gap:15px}.login-field{display:grid;gap:8px;color:#24415f;font-weight:900;font-size:12px}.login-input-wrap{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 13px;border:1px solid var(--line);border-radius:13px;background:#fdfefe;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.login-input-wrap:focus-within{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.11);background:#fff}.login-input-wrap i{width:18px;height:18px;color:#7b8da8}.login-input-wrap input{width:100%;height:46px;border:0;background:transparent;padding:0;border-radius:0;box-shadow:none!important}.login-submit-v2{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;margin-top:4px;border-radius:14px;background:linear-gradient(135deg,var(--blue),#5b9cff);color:#fff;font-weight:900;box-shadow:0 16px 34px rgba(37,99,235,.24);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.login-submit-v2:hover{transform:translateY(-1px);box-shadow:0 20px 42px rgba(37,99,235,.30);filter:saturate(1.04)}.login-submit-v2 i{width:18px;height:18px}.login-security-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #edf2f8;color:#7b8da8;font-size:11px;font-weight:800}.login-security-row span{display:inline-flex;align-items:center;gap:6px}.login-security-row i{width:14px;height:14px;color:var(--blue)}
@media(prefers-reduced-motion:no-preference){.login-card-v2,.login-preview-card,.showcase-copy{animation:loginFadeUp .38s ease both}.login-preview-card{animation-delay:.08s}.login-card-v2{animation-delay:.12s}@keyframes loginFadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}}
@media(max-width:920px){.login-premium-v2{padding:18px}.login-premium-shell{grid-template-columns:1fr;min-height:auto}.login-showcase{display:none}.login-panel-premium{padding:22px}.login-card-v2{padding:24px;border-radius:22px}.login-mobile-brand{display:flex}.login-title-block h2{font-size:28px}.login-security-row{flex-direction:column;align-items:flex-start}.login-premium-shell{border-radius:24px}}
@media(max-width:520px){.login-premium-v2{padding:12px}.login-panel-premium{padding:14px}.login-card-v2{padding:20px}.login-title-block h2{font-size:26px}.login-input-wrap{min-height:46px}.login-submit-v2{min-height:48px}}

/* LOGIN MINIMAL PREMIUM - V7.2 */

/* === Login Underline Finance V7.3 === */
.login-agency{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 12% 18%,rgba(11,92,255,.18),transparent 28%),radial-gradient(circle at 88% 78%,rgba(96,165,250,.16),transparent 28%),linear-gradient(135deg,#f7fbff 0%,#edf5ff 52%,#f8fbff 100%);position:relative;overflow:hidden}.login-agency:before{content:"";position:absolute;inset:22px;border:1px solid rgba(201,216,240,.70);border-radius:32px;pointer-events:none}.login-agency-shell{position:relative;z-index:1;display:grid;grid-template-columns:minmax(360px,520px) minmax(340px,430px);width:min(1010px,100%);min-height:610px;background:rgba(255,255,255,.74);border:1px solid rgba(218,229,248,.96);border-radius:30px;box-shadow:0 34px 110px rgba(15,23,42,.13);overflow:hidden;backdrop-filter:blur(22px)}.login-agency-visual{position:relative;padding:42px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#081f4d 0%,#0b5cff 58%,#63a7ff 100%);color:#fff;overflow:hidden}.login-agency-visual:after{content:"";position:absolute;inset:auto -18% -26% 18%;height:58%;background:rgba(255,255,255,.17);filter:blur(62px);transform:rotate(-14deg)}.login-orb{position:absolute;border-radius:999px;filter:blur(8px);opacity:.55}.login-orb-one{width:180px;height:180px;right:-55px;top:-48px;background:rgba(255,255,255,.18)}.login-orb-two{width:120px;height:120px;left:36px;bottom:118px;background:rgba(147,197,253,.28)}.login-agency-logo-card{position:relative;z-index:2;width:max-content;max-width:100%;padding:12px 15px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.55);border-radius:20px;box-shadow:0 18px 42px rgba(1,12,37,.18)}.login-agency-logo{display:block;width:220px;max-width:100%;height:auto}.login-agency-copy{position:relative;z-index:2;max-width:390px}.login-eyebrow{display:inline-flex;align-items:center;width:max-content;margin-bottom:12px;padding:7px 11px;border-radius:999px;background:rgba(11,92,255,.10);color:#0b5cff;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.login-agency-visual .login-eyebrow{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.22)}.login-agency-copy h1{margin:0;font-size:42px;line-height:1.02;letter-spacing:-.075em;color:#fff}.login-agency-copy p{margin:16px 0 0;color:rgba(255,255,255,.78);font-size:15px;line-height:1.65}.login-agency-mini-panel{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}.login-agency-mini-panel span{display:block;color:rgba(255,255,255,.66);font-size:12px;font-weight:800}.login-agency-mini-panel strong{display:block;margin-top:3px;font-size:18px;letter-spacing:-.04em}.mini-panel-icon{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.16)}.mini-panel-icon i{width:20px;height:20px}.login-agency-card{padding:48px 42px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96))}.login-agency-mobile-logo{display:none;margin-bottom:26px}.login-agency-mobile-logo img{width:210px;max-width:100%;height:auto}.login-agency-heading{margin-bottom:26px}.login-agency-heading h2{margin:0;font-size:32px;line-height:1.08;letter-spacing:-.065em;color:#071a3d}.login-agency-heading p{margin:9px 0 0;color:#64748b;line-height:1.58}.login-agency-form{display:grid;gap:16px}.login-agency-form label{display:grid;gap:8px;font-size:12px;font-weight:900;color:#24415f}.login-agency-input{height:52px;display:flex;align-items:center;gap:11px;padding:0 14px;background:#fff;border:1px solid #dbe7f5;border-radius:16px;box-shadow:0 1px 0 rgba(15,23,42,.03);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.login-agency-input:focus-within{border-color:#7fb5ff;box-shadow:0 0 0 4px rgba(11,92,255,.10),0 12px 24px rgba(15,23,42,.05);transform:translateY(-1px)}.login-agency-input i{width:18px;height:18px;color:#6f86a6}.login-agency-input input{width:100%;height:50px;border:0;background:transparent;box-shadow:none!important;padding:0;border-radius:0;color:#071a3d}.login-agency-submit{height:52px;margin-top:4px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;background:linear-gradient(135deg,#0b5cff 0%,#4f93ff 100%);color:#fff;font-weight:950;box-shadow:0 16px 34px rgba(11,92,255,.26);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.login-agency-submit:hover{transform:translateY(-1px);box-shadow:0 20px 44px rgba(11,92,255,.32);filter:saturate(1.05)}.login-agency-submit i{width:18px;height:18px}.login-agency-note{display:flex;align-items:flex-start;gap:9px;margin-top:20px;padding:15px 16px;border:1px solid #e6eef9;border-radius:16px;background:#f8fbff;color:#6b7f9b;font-size:12px;font-weight:750;line-height:1.45}.login-agency-note i{width:16px;height:16px;color:#0b5cff;flex:0 0 auto;margin-top:1px}@media(max-width:860px){.login-agency{padding:16px}.login-agency:before{display:none}.login-agency-shell{grid-template-columns:1fr;min-height:auto;border-radius:26px}.login-agency-visual{display:none}.login-agency-card{padding:34px 26px}.login-agency-mobile-logo{display:block}.login-agency-heading h2{font-size:30px}}@media(max-width:460px){.login-agency-card{padding:28px 20px}.login-agency-heading h2{font-size:27px}.login-agency-note{font-size:11px}}



/* Minha Conta V7.6 */
.account-shell{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:24px;align-items:start}
.account-profile-card{background:linear-gradient(145deg,#ffffff 0%,#f4f8ff 100%);border:1px solid rgba(37,99,235,.12);border-radius:22px;padding:28px;box-shadow:0 18px 45px rgba(15,23,42,.06);position:sticky;top:24px}
.account-avatar{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#1d4ed8,#60a5fa);color:#fff;font-weight:800;font-size:26px;box-shadow:0 18px 35px rgba(37,99,235,.26);margin-bottom:20px}
.account-profile-card span{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.account-profile-card h2{margin:6px 0 6px;color:#0f172a;font-size:22px}
.account-profile-card p{margin:0;color:#475569;font-size:14px;word-break:break-word}
.account-security-list{display:grid;gap:12px;margin-top:24px;padding-top:22px;border-top:1px solid rgba(148,163,184,.24)}
.account-security-list div{display:flex;align-items:center;gap:10px;color:#334155;font-size:13px;font-weight:600}
.account-security-list i{width:18px;height:18px;color:#2563eb}
.account-form-card{min-height:100%}
.account-help-card{display:flex;gap:12px;align-items:flex-start;background:#f8fbff;border:1px solid rgba(37,99,235,.12);border-radius:16px;padding:15px;color:#475569;font-size:13px;line-height:1.5}
.account-help-card i{width:18px;height:18px;color:#2563eb;flex:0 0 auto;margin-top:1px}
.user-pill{text-decoration:none;color:inherit}
@media(max-width:900px){.account-shell{grid-template-columns:1fr}.account-profile-card{position:relative;top:auto}.account-help-card{grid-column:1/-1}}

/* === USERS & PERMISSIONS BLOCK V7.7 === */
.users-permission-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.permission-card{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid rgba(37,99,235,.10);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:9px;box-shadow:0 14px 40px rgba(15,23,42,.05)}.permission-card i{width:22px;height:22px;color:#2563eb}.permission-card strong{font-size:14px;color:#0f172a}.permission-card span{font-size:12px;line-height:1.55;color:#64748b}.users-shell{align-items:start}.users-table-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:22px;box-shadow:0 18px 50px rgba(15,23,42,.06)}.table-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.table-head span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#2563eb;font-weight:800}.table-head h2{margin:4px 0 0;font-size:18px}.table-head small{color:#64748b}.users-table td strong{display:block;color:#0f172a}.users-table td small{display:block;margin-top:4px;color:#64748b}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row-actions form{margin:0}.mini-action{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(37,99,235,.16);background:#f8fbff;color:#1d4ed8;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:700;cursor:pointer}.mini-action.danger{border-color:rgba(239,68,68,.20);background:#fff5f5;color:#dc2626}.role-chip,.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;line-height:1;border:1px solid transparent}.role-chip{margin-top:8px;background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.status-badge.role-admin{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.status-badge.role-financeiro{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.status-badge.role-cobrancas{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.status-badge.role-consulta{background:#f8fafc;color:#475569;border-color:#e2e8f0}.status-badge.ativo{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.status-badge.inativo{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}.settings-card-link{text-decoration:none;color:inherit}.settings-card-link:hover{transform:translateY(-2px)}@media(max-width:1100px){.users-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.users-permission-grid{grid-template-columns:1fr}.row-actions{align-items:flex-start}.users-table-card{padding:14px}}


/* =========================
   USERS / PERMISSIONS - V7.8 ALIGNMENT POLISH
========================= */
.users-page-head{
  align-items:flex-start;
  gap:20px;
}

.users-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 18px;
}

.users-summary-card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 14px 34px rgba(15,23,42,.055);
  padding:18px;
  min-height:142px;
  display:grid;
  align-content:start;
  gap:14px;
}

.users-summary-card strong{
  display:block;
  font-size:14px;
  letter-spacing:-.02em;
  color:#0f1f3d;
  margin-bottom:6px;
}

.users-summary-card span{
  display:block;
  font-size:12px;
  line-height:1.55;
  color:#64748b;
}

.summary-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#eef5ff;
  color:var(--blue);
}

.summary-icon.admin{background:#eef5ff;color:var(--blue)}
.summary-icon.finance{background:#ecfdf5;color:#16a34a}
.summary-icon.billing{background:#fffbeb;color:#b45309}
.summary-icon.view{background:#f5f3ff;color:#7c3aed}

.users-layout-grid{
  display:grid;
  grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.users-form-panel,
.users-table-panel{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,23,42,.07);
}

.users-form-panel{
  padding:22px;
  position:sticky;
  top:92px;
}

.users-panel-head,
.users-table-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.users-panel-head span,
.users-table-head span{
  display:block;
  color:#2563eb;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.users-panel-head h2,
.users-table-head h2{
  margin:0;
  font-size:19px;
  letter-spacing:-.04em;
  color:#0f1f3d;
}

.users-panel-head > i{
  width:42px;
  height:42px;
  border-radius:14px;
  padding:11px;
  background:linear-gradient(135deg,#eef5ff,#ffffff);
  color:#2563eb;
  border:1px solid #dce9fb;
}

.users-form{
  display:grid;
  gap:14px;
}

.users-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.field-block{
  display:grid;
  gap:8px;
  color:#344766;
  font-size:12px;
  font-weight:800;
}

.field-block input,
.field-block select{
  width:100%;
  height:46px;
  border-radius:13px;
  border:1px solid #dfe8f5;
  background:#fff;
  padding:0 14px;
  color:#0f1f3d;
  font-size:13px;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.field-block input:focus,
.field-block select:focus{
  border-color:#93b7ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.users-help-card{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#f7faff;
  border:1px solid #dce9fb;
  border-radius:14px;
  padding:13px 14px;
  color:#5b6f8c;
  font-size:12px;
  line-height:1.5;
}

.users-help-card i{
  color:#2563eb;
  flex:0 0 auto;
  margin-top:1px;
}

.users-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:4px;
}

.users-form-actions .primary-action,
.users-form-actions .secondary-action{
  min-height:42px;
  justify-content:center;
}

.users-table-panel{
  overflow:hidden;
}

.users-table-head{
  padding:22px 22px 0;
}

.users-table-head small{
  background:#f7faff;
  border:1px solid #dce9fb;
  color:#2563eb;
  border-radius:999px;
  padding:7px 11px;
  font-weight:800;
  white-space:nowrap;
}

.users-table-scroll{
  overflow:auto;
  padding:0 0 8px;
}

.users-table{
  min-width:760px;
}

.users-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f8fbff;
  border-top:1px solid #edf2f8;
  color:#6b7d96;
  font-size:11px;
  letter-spacing:.08em;
  padding:13px 18px;
}

.users-table td{
  vertical-align:middle;
  padding:16px 18px;
}

.user-cell{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.user-avatar{
  width:40px;
  height:40px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#2563eb,#5ea0ff);
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
  flex:0 0 auto;
}

.user-cell strong{
  display:block;
  font-size:13px;
  color:#0f1f3d;
  margin-bottom:3px;
}

.user-cell small,
.muted-cell{
  color:#64748b;
  font-size:12px;
}

.user-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:170px;
}

.user-actions form{
  margin:0;
}

.user-actions .mini-action{
  min-height:34px;
  padding:8px 10px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

.role-admin{background:#eef5ff;color:#1d4ed8}
.role-financeiro{background:#ecfdf5;color:#15803d}
.role-cobrancas{background:#fffbeb;color:#b45309}
.role-consulta{background:#f5f3ff;color:#7c3aed}

.status-badge.ativo{background:#ecfdf5;color:#15803d}
.status-badge.inativo{background:#f1f5f9;color:#64748b}

.users-empty{
  margin:0 22px 22px;
  padding:34px 22px;
}

@media (max-width:1180px){
  .users-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .users-layout-grid{
    grid-template-columns:1fr;
  }
  .users-form-panel{
    position:relative;
    top:auto;
  }
}

@media (max-width:720px){
  .users-page-head{
    display:grid;
  }
  .users-summary-grid{
    grid-template-columns:1fr;
  }
  .users-summary-card{
    min-height:auto;
  }
  .users-form-panel,
  .users-table-panel{
    border-radius:16px;
  }
  .users-form-row{
    grid-template-columns:1fr;
  }
  .users-form-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .users-table-head{
    display:grid;
  }
}


/* =========================
   GLOBAL ICON HIGHLIGHTS - V7.9
   Camada visual global para ícones premium/contextuais
========================= */

/* Base elegante para ícones dentro de blocos importantes */
.premium-page-head .eyebrow i,
.page-head i,
.panel h2 i,
.card h3 i,
.form-title > i,
.users-panel-head > i,
.users-table-head i,
.table-head i,
.users-summary-card .summary-icon,
.metric svg,
.kpi svg,
.quick svg,
.empty-state > i,
.users-empty > i{
  flex:0 0 auto;
}

/* Eyebrow/headers com pílula visual suave */
.premium-page-head .eyebrow i,
.eyebrow i{
  width:30px;
  height:30px;
  padding:7px;
  border-radius:10px;
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

/* Ícones de títulos/cards com destaque consistente */
.card h3 i,
.panel h2 i,
.form-title > i,
.table-head i{
  width:38px;
  height:38px;
  padding:10px;
  border-radius:13px;
  background:linear-gradient(135deg,#eef5ff,#ffffff);
  color:#2563eb;
  border:1px solid #dce9fb;
}

/* Métricas e KPIs com leitura financeira */
.metric:nth-child(1) svg,
.kpi:nth-child(1) svg{
  background:#ecfdf5;
  color:#16a34a;
  border:1px solid #bbf7d0;
}

.metric:nth-child(2) svg,
.kpi:nth-child(2) svg{
  background:#fff1f2;
  color:#ef4444;
  border:1px solid #fecdd3;
}

.metric:nth-child(3) svg,
.kpi:nth-child(3) svg{
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
}

.metric:nth-child(4) svg,
.kpi:nth-child(4) svg{
  background:#fffbeb;
  color:#b45309;
  border:1px solid #fde68a;
}

.metric:nth-child(5) svg,
.kpi:nth-child(5) svg{
  background:#f5f3ff;
  color:#7c3aed;
  border:1px solid #ddd6fe;
}

/* Cards de ação rápida mais vivos sem excesso */
.quick i,
.quick svg{
  width:36px;
  height:36px;
  padding:9px;
  border-radius:12px;
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
}

.quick:nth-child(2) i,
.quick:nth-child(2) svg{
  background:#ecfdf5;
  color:#16a34a;
  border-color:#bbf7d0;
}

.quick:nth-child(3) i,
.quick:nth-child(3) svg{
  background:#fffbeb;
  color:#b45309;
  border-color:#fde68a;
}

.quick:nth-child(4) i,
.quick:nth-child(4) svg{
  background:#f5f3ff;
  color:#7c3aed;
  border-color:#ddd6fe;
}

/* Navegação: manter limpa, mas com detalhe premium no ativo/hover */
.nav-block a i,
.nav-block a svg{
  width:30px;
  height:30px;
  padding:7px;
  border-radius:10px;
  color:#6b7d96;
  background:transparent;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.nav-block a:hover i,
.nav-block a:hover svg,
.nav-block a.active i,
.nav-block a.active svg,
.nav-block .active i,
.nav-block .active svg{
  background:#eef5ff;
  color:#2563eb;
  transform:translateY(-1px);
}

/* Botões e ações mantêm ícone alinhado e premium */
.primary-action i,
.primary-action svg,
.secondary-action i,
.secondary-action svg,
.mini-action i,
.mini-action svg,
.icon-btn i,
.icon-btn svg{
  flex:0 0 auto;
}

.primary-action i,
.primary-action svg{
  width:18px;
  height:18px;
  color:currentColor;
}

.secondary-action i,
.secondary-action svg{
  width:18px;
  height:18px;
  color:#2563eb;
}

.mini-action i,
.mini-action svg{
  width:15px;
  height:15px;
}

/* Empty states com ícone mais refinado */
.empty-state > i,
.users-empty > i{
  width:52px;
  height:52px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(135deg,#eef5ff,#ffffff);
  color:#2563eb;
  border:1px solid #dce9fb;
  box-shadow:0 14px 30px rgba(37,99,235,.10);
}

/* Blocos de ajuda/alerta */
.account-help-card i,
.users-help-card i,
.alert i,
.notice i{
  width:32px;
  height:32px;
  padding:8px;
  border-radius:11px;
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
}

/* Ícones em listas operacionais */
.mini-row i,
.summary-line i{
  color:#2563eb;
}

/* Calendário/relatórios/previsão: aplicar destaque em ícones dentro dos cards sem forçar tabelas */
.calendar-card i,
.report-card i,
.forecast-card i,
.insight-card i{
  color:#2563eb;
}

/* Proteção contra ícones gigantes herdados */
svg[data-lucide]{
  stroke-width:2;
}

@media (max-width:720px){
  .nav-block a i,
  .nav-block a svg{
    width:28px;
    height:28px;
  }

  .premium-page-head .eyebrow i,
  .eyebrow i{
    width:28px;
    height:28px;
  }
}


/* =========================
   GLOBAL ICON HIGHLIGHTS - V7.10 FULL PASS
   Varredura completa de ícones nas telas internas
========================= */

/* Utilitário visual seguro para ícones em blocos/card/listas */
.card > i[data-lucide],
.panel > i[data-lucide],
.metric i[data-lucide],
.kpi i[data-lucide],
.quick i[data-lucide],
.empty-state i[data-lucide],
.page-head i[data-lucide],
.premium-page-head i[data-lucide],
.form-title i[data-lucide],
.table-head i[data-lucide],
.users-panel-head i[data-lucide],
.users-summary-card i[data-lucide],
.account-help-card i[data-lucide],
.users-help-card i[data-lucide],
.insight-card i[data-lucide],
.calendar-card i[data-lucide],
.report-card i[data-lucide],
.forecast-card i[data-lucide],
.action-card i[data-lucide],
.stat-card i[data-lucide],
.summary-card i[data-lucide],
.info-card i[data-lucide],
.warning-card i[data-lucide],
.alert-card i[data-lucide],
.bento-grid .card > h3 i[data-lucide],
.bento-grid .card > div:first-child i[data-lucide]{
  width:38px;
  height:38px;
  padding:10px;
  border-radius:13px;
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
}

/* Ícones diretamente dentro de cabeçalhos de blocos */
.card h2 i[data-lucide],
.card h3 i[data-lucide],
.panel h2 i[data-lucide],
.panel h3 i[data-lucide],
.table-card h2 i[data-lucide],
.table-card h3 i[data-lucide],
.form-panel h2 i[data-lucide],
.form-panel h3 i[data-lucide],
.premium-table-card h2 i[data-lucide],
.premium-table-card h3 i[data-lucide]{
  width:36px;
  height:36px;
  padding:9px;
  border-radius:12px;
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
}

/* Colorização contextual automática por posição em grids comuns */
.kpi-grid .kpi:nth-child(1) svg,
.action-grid .metric:nth-child(1) svg,
.action-grid .quick:nth-child(1) svg,
.bento-grid > .card:nth-child(1) h3 svg,
.users-summary-grid > *:nth-child(1) svg{
  background:#ecfdf5 !important;
  color:#16a34a !important;
  border-color:#bbf7d0 !important;
}

.kpi-grid .kpi:nth-child(2) svg,
.action-grid .metric:nth-child(2) svg,
.action-grid .quick:nth-child(2) svg,
.bento-grid > .card:nth-child(2) h3 svg,
.users-summary-grid > *:nth-child(2) svg{
  background:#fff1f2 !important;
  color:#ef4444 !important;
  border-color:#fecdd3 !important;
}

.kpi-grid .kpi:nth-child(3) svg,
.action-grid .metric:nth-child(3) svg,
.action-grid .quick:nth-child(3) svg,
.bento-grid > .card:nth-child(3) h3 svg,
.users-summary-grid > *:nth-child(3) svg{
  background:#eef5ff !important;
  color:#2563eb !important;
  border-color:#dce9fb !important;
}

.kpi-grid .kpi:nth-child(4) svg,
.action-grid .metric:nth-child(4) svg,
.action-grid .quick:nth-child(4) svg,
.bento-grid > .card:nth-child(4) h3 svg,
.users-summary-grid > *:nth-child(4) svg{
  background:#fffbeb !important;
  color:#b45309 !important;
  border-color:#fde68a !important;
}

.kpi-grid .kpi:nth-child(5) svg,
.action-grid .metric:nth-child(5) svg,
.action-grid .quick:nth-child(5) svg,
.bento-grid > .card:nth-child(5) h3 svg{
  background:#f5f3ff !important;
  color:#7c3aed !important;
  border-color:#ddd6fe !important;
}

/* Ícones em cards/listas operacionais que antes ficavam crus */
.mini-row > i[data-lucide],
.mini-row .icon,
.summary-line > i[data-lucide],
.list-row > i[data-lucide],
.operation-row > i[data-lucide],
.finance-row > i[data-lucide]{
  width:30px;
  height:30px;
  padding:7px;
  border-radius:10px;
  background:#eef5ff;
  color:#2563eb;
  border:1px solid #dce9fb;
}

/* Inputs/search continuam clean, mas com azul premium */
.search i[data-lucide],
.search svg,
.field-block > i[data-lucide],
.form-group > i[data-lucide]{
  color:#2563eb;
}

/* Topbar/ações pequenas: refinado sem virar bloco pesado */
.icon-btn i[data-lucide],
.icon-btn svg{
  width:20px;
  height:20px;
  color:#2563eb;
}

.icon-btn{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.icon-btn:hover{
  transform:translateY(-1px);
  border-color:#c9dcfb;
  box-shadow:0 10px 22px rgba(37,99,235,.10);
}

/* Botões: ícones consistentes sem caixa colorida */
button i[data-lucide],
button svg,
a.primary-action i[data-lucide],
a.primary-action svg,
a.secondary-action i[data-lucide],
a.secondary-action svg,
.primary-action i[data-lucide],
.primary-action svg,
.secondary-action i[data-lucide],
.secondary-action svg,
.mini-action i[data-lucide],
.mini-action svg{
  display:inline-block;
  vertical-align:middle;
}

/* Danger/success context nos ícones de ações */
.danger i[data-lucide],
.danger svg,
button.danger i[data-lucide],
button.danger svg{
  color:currentColor;
}

.success i[data-lucide],
.success svg{
  color:currentColor;
}

/* Ícones dentro de badges/status não devem virar bloco */
.status i[data-lucide],
.status svg,
.status-badge i[data-lucide],
.status-badge svg,
.badge i[data-lucide],
.badge svg{
  width:14px;
  height:14px;
  padding:0;
  border:0;
  box-shadow:none;
  background:transparent;
  color:currentColor;
}

/* Tabelas: ícones de ação com alinhamento premium */
td .mini-action i[data-lucide],
td .mini-action svg,
.row-actions .mini-action i[data-lucide],
.row-actions .mini-action svg,
.user-actions .mini-action i[data-lucide],
.user-actions .mini-action svg{
  width:15px;
  height:15px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  color:currentColor;
}

/* Fallback seguro: qualquer ícone solto dentro de um bloco premium ganha cor */
.panel svg[data-lucide]:not(button svg):not(.mini-action svg),
.card svg[data-lucide]:not(button svg):not(.mini-action svg),
.table-card svg[data-lucide]:not(button svg):not(.mini-action svg),
.form-panel svg[data-lucide]:not(button svg):not(.mini-action svg){
  color:#2563eb;
}

/* Mobile: manter proporção */
@media (max-width:720px){
  .card > i[data-lucide],
  .panel > i[data-lucide],
  .card h2 i[data-lucide],
  .card h3 i[data-lucide],
  .panel h2 i[data-lucide],
  .panel h3 i[data-lucide]{
    width:34px;
    height:34px;
    padding:8px;
  }
}


/* =========================
   TOPBAR REFINADA - V7.11
   Remove botão sem função e melhora identificação do usuário
========================= */
.topbar{
  gap:14px;
}

.sidebar-toggle{
  display:none !important;
}

.user-pill-refined{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:6px 12px 6px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid #dfe8f5;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.user-pill-refined:hover{
  transform:translateY(-1px);
  border-color:#c9dcfb;
  box-shadow:0 16px 34px rgba(37,99,235,.10);
}

.user-avatar-mini{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#2563eb,#5ea0ff);
  color:#fff;
  font-weight:900;
  font-size:13px;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
  flex:0 0 auto;
}

.user-pill-copy{
  display:grid;
  line-height:1.15;
}

.user-pill-copy strong{
  font-size:12px;
  letter-spacing:-.02em;
  color:#0f1f3d;
}

.user-pill-copy small{
  margin-top:3px;
  font-size:10.5px;
  color:#64748b;
  font-weight:700;
  white-space:nowrap;
}

@media (max-width:820px){
  .user-pill-copy small{
    display:none;
  }

  .user-pill-refined{
    padding:6px;
  }

  .user-pill-copy strong{
    display:none;
  }
}


/* =========================
   BRANDING CONFIGURÁVEL - V7.12
========================= */
.brand-logo-img{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:contain;
  background:#fff;
  border:1px solid #dce9fb;
  padding:5px;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
}

.branding-layout{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.branding-preview-card,
.branding-form-card,
.branding-reset-card{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,23,42,.07);
}

.branding-preview-card{
  padding:22px;
  position:sticky;
  top:92px;
}

.branding-preview-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  margin-bottom:18px;
}

.branding-preview-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.branding-preview-brand img{
  width:54px;
  height:54px;
  border-radius:16px;
  object-fit:contain;
  border:1px solid #dce9fb;
  background:#fff;
  padding:7px;
}

.branding-preview-brand strong{
  display:block;
  font-size:18px;
  letter-spacing:-.04em;
}

.branding-preview-brand span{
  display:block;
  font-size:11px;
  letter-spacing:.22em;
  font-weight:900;
  color:var(--blue);
}

.branding-preview-window{
  height:210px;
  border-radius:18px;
  border:1px solid #dce9fb;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
  display:grid;
  grid-template-columns:80px 1fr;
  overflow:hidden;
}

.preview-sidebar{
  background:linear-gradient(180deg,var(--preview-color),#ffffff);
  opacity:.9;
  padding:18px 12px;
  display:grid;
  align-content:start;
  gap:12px;
}

.preview-sidebar span{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
}

.preview-content{
  padding:18px;
  display:grid;
  gap:12px;
  align-content:start;
}

.preview-content div{
  height:42px;
  border-radius:14px;
  background:#eef5ff;
  border:1px solid #dce9fb;
}

.branding-color-preview{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.branding-color-preview div{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:#64748b;
  font-weight:800;
}

.branding-color-preview span{
  width:26px;
  height:26px;
  border-radius:9px;
  border:1px solid #dfe8f5;
}

.branding-form-card{
  padding:22px;
}

.branding-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.branding-form-grid .span-2{
  grid-column:span 2;
}

.branding-form-grid textarea{
  min-height:92px;
  resize:vertical;
}

.field-block input[type="color"]{
  height:46px;
  padding:6px;
}

.upload-block small{
  color:#64748b;
  font-weight:600;
  font-size:11px;
}

.branding-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:18px;
}

.branding-reset-card{
  margin-top:18px;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
}

.branding-reset-card strong{
  display:block;
  margin-bottom:4px;
}

.branding-reset-card span{
  color:#64748b;
  font-size:12px;
}

@media (max-width:980px){
  .branding-layout{
    grid-template-columns:1fr;
  }
  .branding-preview-card{
    position:relative;
    top:auto;
  }
}

@media (max-width:720px){
  .branding-form-grid{
    grid-template-columns:1fr;
  }
  .branding-form-grid .span-2{
    grid-column:auto;
  }
  .branding-reset-card{
    display:grid;
  }
}


/* =========================
   RECEITAS RECORRENTES - V7.13
========================= */
.recurring-toggle{
  display:flex!important;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border:1px solid #dce9fb;
  border-radius:14px;
  background:linear-gradient(135deg,#f7faff,#ffffff);
}
.recurring-toggle input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--blue);
}
.recurring-toggle span{
  display:grid;
  gap:3px;
}
.recurring-toggle strong{
  font-size:13px;
  color:#0f1f3d;
}
.recurring-toggle small{
  font-size:12px;
  color:#64748b;
  line-height:1.45;
}
.status.recorrente{
  background:#eef5ff;
  color:var(--blue);
}
.status.avulsa{
  background:#f1f5f9;
  color:#64748b;
}


/* =========================
   RECEITAS RECORRENTES - FIX
========================= */
.recurring-toggle{
  display:flex !important;
  align-items:flex-start;
  gap:12px;
  padding:16px;
  border-radius:14px;
  border:1px solid #dce9fb;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
}

.recurring-toggle input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:var(--blue);
  margin-top:2px;
}

.recurring-toggle span{
  display:grid;
  gap:4px;
}

.recurring-toggle strong{
  color:#0f1f3d;
  font-size:13px;
}

.recurring-toggle small{
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}


/* =========================
   FLUXO NF RECEITAS - V7.14
========================= */
#nf_status:disabled{
  background:#f8fafc;
  color:#94a3b8;
  cursor:not-allowed;
}


/* =========================
   POLIMENTO COMERCIAL PREMIUM - V7.15
========================= */
:root{
  --uf-glass:rgba(255,255,255,.86);
  --uf-soft-blue:#eef5ff;
  --uf-blue-line:#dce9fb;
  --uf-card-shadow:0 18px 45px rgba(15,23,42,.072);
  --uf-card-shadow-hover:0 22px 55px rgba(37,99,235,.11);
  --uf-ease:cubic-bezier(.2,.8,.2,1);
}

.card,.panel,.kpi,.metric,.quick,.premium-form-card,.premium-table-card,.settings-card,.users-form-panel,.users-table-panel,.branding-preview-card,.branding-form-card,.branding-reset-card,.table-card,.form-panel,.mini-kpi,.login-agency-card,.login-agency-visual{
  transition:transform .18s var(--uf-ease), box-shadow .18s var(--uf-ease), border-color .18s var(--uf-ease), background .18s var(--uf-ease);
}

.card:hover,.kpi:hover,.metric:hover,.quick:hover,.settings-card:hover,.mini-kpi:hover{
  transform:translateY(-2px);
  box-shadow:var(--uf-card-shadow-hover);
  border-color:#cfe0fa;
}

.topbar{
  position:sticky;
  top:0;
  z-index:15;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  background:linear-gradient(180deg,rgba(245,248,252,.92),rgba(245,248,252,.72));
  padding-top:6px;
}

.search{
  min-height:44px;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}

.search:focus-within{
  border-color:#b8d2ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.08),0 12px 30px rgba(15,23,42,.06);
}

.topbar-action{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:#263b5d;
  font-weight:800;
  padding:0 14px;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
  transition:transform .18s var(--uf-ease), box-shadow .18s var(--uf-ease), border-color .18s var(--uf-ease);
}

.topbar-action:hover{
  transform:translateY(-1px);
  border-color:#c9dcfb;
  box-shadow:0 14px 32px rgba(37,99,235,.10);
}

.sidebar{
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,251,255,.9));
  scrollbar-width:thin;
  scrollbar-color:#c9dcfb transparent;
}

.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-thumb{background:#c9dcfb;border-radius:999px}

.nav-block a{
  position:relative;
  overflow:hidden;
}

.nav-block a:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(37,99,235,.09),transparent);
  opacity:0;
  transition:opacity .18s var(--uf-ease);
}

.nav-block a:hover:before,.nav-block a.active:before{opacity:1}

.nav-block a.active{
  background:#eef5ff;
  color:var(--blue);
  box-shadow:inset 0 0 0 1px #dce9fb;
}

.premium-page-head,.page-head{
  border-radius:20px;
  padding:18px 20px;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(238,245,255,.56));
  border:1px solid rgba(220,233,251,.9);
  box-shadow:0 14px 34px rgba(15,23,42,.045);
}

.premium-page-head h1,.page-head h1{
  letter-spacing:-.055em;
}

.premium-page-head p,.page-head p{
  max-width:760px;
  line-height:1.55;
}

.mini-kpi-row,.kpi-grid,.action-grid,.charts-grid,.bento-grid,.settings-grid,.users-summary-grid{
  align-items:stretch;
}

.mini-kpi,.kpi,.metric,.quick{
  min-height:118px;
  display:grid;
  align-content:space-between;
}

.mini-kpi strong,.kpi b,.metric b{
  letter-spacing:-.055em;
}

.premium-table-card,.table-card{
  border-radius:18px;
  overflow:hidden;
}

.table-toolbar,.table-head,.users-table-head{
  background:linear-gradient(135deg,#fff,#f8fbff);
}

.table-responsive,.table-scroll,.users-table-scroll{
  scrollbar-width:thin;
  scrollbar-color:#c9dcfb transparent;
}

.table-responsive::-webkit-scrollbar,.table-scroll::-webkit-scrollbar,.users-table-scroll::-webkit-scrollbar{height:8px;width:8px}
.table-responsive::-webkit-scrollbar-thumb,.table-scroll::-webkit-scrollbar-thumb,.users-table-scroll::-webkit-scrollbar-thumb{background:#c9dcfb;border-radius:999px}

.premium-table tbody tr,.table-card tbody tr{
  transition:background .16s var(--uf-ease), transform .16s var(--uf-ease);
}

.premium-table tbody tr:hover,.table-card tbody tr:hover{
  background:#f8fbff;
}

.inline-empty{
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#64748b;
  font-weight:800;
}

.inline-empty i,.inline-empty svg{
  width:34px!important;
  height:34px!important;
  padding:8px!important;
  border-radius:12px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

input,select,textarea{
  transition:border-color .18s var(--uf-ease), box-shadow .18s var(--uf-ease), background .18s var(--uf-ease), transform .18s var(--uf-ease);
}

input:focus,select:focus,textarea:focus{
  border-color:#93b7ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.09);
}

.premium-grid-form input,.premium-grid-form select,.premium-grid-form textarea{
  width:100%;
}

.primary-action,.secondary-action,.mini-action,.danger-action,button{
  transition:transform .16s var(--uf-ease), box-shadow .16s var(--uf-ease), filter .16s var(--uf-ease), border-color .16s var(--uf-ease);
}

.primary-action:hover,.secondary-action:hover,.mini-action:hover,.danger-action:hover{
  transform:translateY(-1px);
}

.primary-action:active,.secondary-action:active,.mini-action:active,.danger-action:active{
  transform:translateY(0);
}

.primary-action{
  box-shadow:0 12px 26px rgba(37,99,235,.18);
}

.primary-action:hover{
  box-shadow:0 16px 34px rgba(37,99,235,.24);
}

.status,.status-badge{
  letter-spacing:-.01em;
  border:1px solid rgba(255,255,255,.65);
}

.status.pendente,.status-badge.pendente{
  background:#fffbeb;
  color:#a16207;
  border-color:#fde68a;
}

.status.recebida,.status.paga,.status.ativo,.status-badge.ativo{
  background:#ecfdf5;
  color:#15803d;
  border-color:#bbf7d0;
}

.status.atrasada,.status.vencida,.status-badge.inativo{
  background:#fff1f2;
  color:#be123c;
  border-color:#fecdd3;
}

.status.cancelada{
  background:#f1f5f9;
  color:#64748b;
  border-color:#e2e8f0;
}

.settings-card > i,.tabs-card a i,.calendar-radar-v6 i,.login-agency-note i,.mini-panel-icon i{
  color:var(--blue);
}

.settings-card > i,.calendar-radar-v6 i,.mini-panel-icon i{
  width:42px;
  height:42px;
  padding:10px;
  border-radius:14px;
  background:#eef5ff;
  border:1px solid #dce9fb;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
}

.tabs-card a{
  transition:background .18s var(--uf-ease), color .18s var(--uf-ease), border-color .18s var(--uf-ease), transform .18s var(--uf-ease);
}

.tabs-card a:hover,.tabs-card a.active{
  transform:translateY(-1px);
}

.login-agency{
  background:
    radial-gradient(circle at 14% 18%,rgba(37,99,235,.16),transparent 30%),
    radial-gradient(circle at 86% 82%,rgba(94,160,255,.16),transparent 28%),
    linear-gradient(135deg,#f5f8fc,#ffffff);
}

.login-agency-card{
  box-shadow:0 28px 80px rgba(15,23,42,.12);
}

.login-agency-input:focus-within{
  border-color:#93b7ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.09);
}

.summary-line,.mini-row{
  align-items:center;
}

.summary-line:last-child,.mini-row:last-child{
  border-bottom:0;
}

.is-loading{
  opacity:.78;
  pointer-events:none;
  filter:saturate(.92);
}

@media (max-width:980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:relative;
    height:auto;
    max-height:none;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand{margin-bottom:16px}
  .nav-block{margin:14px 0}
  .nav-block a{min-height:44px}
  .main-area{padding:0 16px 28px}
  .topbar{
    top:0;
    height:auto;
    min-height:68px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    padding:10px 0;
  }
  .search{
    grid-column:1 / -1;
    order:2;
    max-width:none;
  }
  .topbar-action{order:1}
  .user-pill-refined{
    order:1;
    margin-left:0;
  }
  .premium-page-head,.page-head{
    display:grid;
    gap:14px;
  }
  .kpi-grid,.kpi-grid.four,.charts-grid,.bento-grid,.action-grid,.mini-kpi-row{
    grid-template-columns:1fr 1fr!important;
  }
}

@media (max-width:640px){
  body{font-size:13px}
  .main-area{padding:0 12px 24px}
  .premium-page-head,.page-head{
    padding:16px;
    border-radius:18px;
  }
  .premium-page-head h1,.page-head h1{font-size:24px}
  .kpi-grid,.kpi-grid.four,.charts-grid,.bento-grid,.action-grid,.mini-kpi-row,.users-summary-grid,.settings-grid{
    grid-template-columns:1fr!important;
  }
  .premium-form-card,.premium-table-card,.card,.panel,.settings-card{
    border-radius:16px;
  }
  .premium-grid-form,.grid-form,.grid-form.compact{
    grid-template-columns:1fr!important;
  }
  .premium-grid-form .span-2,.grid-form .span-2{
    grid-column:auto!important;
  }
  .form-footer{
    display:grid!important;
    gap:12px;
  }
  .form-footer .primary-action,.form-footer .secondary-action{
    width:100%;
    justify-content:center;
  }
  .login-agency-shell{padding:18px}
}

@media print{
  .sidebar,.topbar,.head-actions,.actions,.compact-actions,.command-overlay,.toast-stack{
    display:none!important;
  }
  .app-shell{display:block!important}
  .main-area{padding:0!important}
}


/* =========================
   REFINO PÁGINA POR PÁGINA - V7.16
   Cobertura mais específica para ícones, blocos e páginas
========================= */

/* ---------- ÍCONES BASE: bolhas contextuais por página ---------- */
.premium-page-head .eyebrow svg,
.premium-page-head .eyebrow i,
.page-head .eyebrow svg,
.page-head .eyebrow i{
  width:32px!important;
  height:32px!important;
  padding:8px!important;
  border-radius:12px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 10px 22px rgba(37,99,235,.09)!important;
}

/* ---------- Dashboard ---------- */
.action-grid .metric svg,
.action-grid .quick svg,
.kpi-grid .kpi svg,
.dashboard-premium-v2 svg,
.dashboard-grid-v2 svg,
.bento-grid .card h3 svg,
.bento-grid .card h2 svg{
  width:42px!important;
  height:42px!important;
  padding:10px!important;
  border-radius:14px!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 10px 22px rgba(37,99,235,.08)!important;
}

.action-grid > *:nth-child(1) svg,
.kpi-grid > *:nth-child(1) svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border-color:#bbf7d0!important;
}

.action-grid > *:nth-child(2) svg,
.kpi-grid > *:nth-child(2) svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border-color:#fecdd3!important;
}

.action-grid > *:nth-child(3) svg,
.kpi-grid > *:nth-child(3) svg{
  background:#eef5ff!important;
  color:var(--blue)!important;
  border-color:#dce9fb!important;
}

.action-grid > *:nth-child(4) svg,
.kpi-grid > *:nth-child(4) svg{
  background:#fffbeb!important;
  color:#b45309!important;
  border-color:#fde68a!important;
}

.action-grid > *:nth-child(5) svg,
.kpi-grid > *:nth-child(5) svg{
  background:#f5f3ff!important;
  color:#7c3aed!important;
  border-color:#ddd6fe!important;
}

/* ---------- Receitas e Despesas ---------- */
.mini-kpi-row .mini-kpi{
  position:relative;
  overflow:hidden;
}

.mini-kpi-row .mini-kpi:before{
  content:"";
  position:absolute;
  width:74px;
  height:74px;
  right:-22px;
  top:-22px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
}

.mini-kpi-row .mini-kpi:nth-child(1):before{background:rgba(22,163,74,.10)}
.mini-kpi-row .mini-kpi:nth-child(2):before{background:rgba(245,158,11,.12)}
.mini-kpi-row .mini-kpi:nth-child(3):before{background:rgba(37,99,235,.10)}
.mini-kpi-row .mini-kpi:nth-child(4):before{background:rgba(124,58,237,.10)}

.premium-form-card .form-title > svg,
.premium-form-card .form-title > i,
.form-title > svg,
.form-title > i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#eef5ff,#fff)!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 12px 26px rgba(37,99,235,.10)!important;
}

/* ---------- Tabelas financeiras ---------- */
.table-toolbar .table-search svg,
.table-toolbar .table-search i,
.table-search svg,
.table-search i{
  width:30px!important;
  height:30px!important;
  padding:7px!important;
  border-radius:10px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

.compact-actions button,
.actions button,
.row-actions button,
.user-actions button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
}

.compact-actions button svg,
.actions button svg,
.row-actions button svg,
.user-actions button svg,
.danger-action svg{
  width:16px!important;
  height:16px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:currentColor!important;
}

/* ---------- Cadastros ---------- */
.tabs-card a svg,
.tabs-card a i{
  width:32px!important;
  height:32px!important;
  padding:8px!important;
  border-radius:11px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
  transition:all .18s var(--uf-ease);
}

.tabs-card a:nth-child(1) svg{background:#eef5ff!important;color:var(--blue)!important;border-color:#dce9fb!important}
.tabs-card a:nth-child(2) svg{background:#f5f3ff!important;color:#7c3aed!important;border-color:#ddd6fe!important}
.tabs-card a:nth-child(3) svg{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important}
.tabs-card a:nth-child(4) svg{background:#fffbeb!important;color:#b45309!important;border-color:#fde68a!important}

.tabs-card a.active svg,
.tabs-card a:hover svg{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(37,99,235,.10)!important;
}

/* ---------- Calendário ---------- */
.calendar-radar-v6{
  align-items:stretch;
}

.calendar-radar-v6 > div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 14px 34px rgba(15,23,42,.055);
  padding:18px;
}

.calendar-radar-v6 > div svg,
.calendar-radar-v6 > div i{
  width:42px!important;
  height:42px!important;
  padding:10px!important;
  border-radius:14px!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 10px 22px rgba(37,99,235,.08)!important;
}

.calendar-radar-v6 > div:nth-child(1) svg{background:#eef5ff!important;color:var(--blue)!important}
.calendar-radar-v6 > div:nth-child(2) svg{background:#fff1f2!important;color:#ef4444!important;border-color:#fecdd3!important}
.calendar-radar-v6 > div:nth-child(3) svg{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important}

.event-timeline svg,
.event-timeline i,
.inline-empty svg,
.inline-empty i{
  flex:0 0 auto;
}

/* ---------- Relatórios / Previsão ---------- */
.report-card svg,
.report-card i,
.forecast-card svg,
.forecast-card i,
.insight-card svg,
.insight-card i,
.settings-card svg,
.settings-card i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 12px 26px rgba(37,99,235,.10)!important;
}

.settings-grid .settings-card:nth-child(1) svg,
.settings-grid .settings-card:nth-child(1) i{
  background:#eef5ff!important;
  color:var(--blue)!important;
}

.settings-grid .settings-card:nth-child(2) svg,
.settings-grid .settings-card:nth-child(2) i{
  background:#f5f3ff!important;
  color:#7c3aed!important;
  border-color:#ddd6fe!important;
}

.settings-grid .settings-card:nth-child(3) svg,
.settings-grid .settings-card:nth-child(3) i{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border-color:#bbf7d0!important;
}

.settings-grid .settings-card:nth-child(4) svg,
.settings-grid .settings-card:nth-child(4) i{
  background:#fffbeb!important;
  color:#b45309!important;
  border-color:#fde68a!important;
}

/* ---------- Usuários ---------- */
.users-summary-card .summary-icon svg,
.users-summary-card .summary-icon i,
.user-avatar,
.user-avatar-mini{
  box-shadow:0 10px 24px rgba(37,99,235,.15);
}

.users-panel-head > svg,
.users-panel-head > i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#eef5ff,#fff)!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

/* ---------- Configuração de identidade ---------- */
.branding-preview-card svg,
.branding-form-card svg,
.branding-reset-card svg{
  color:var(--blue);
}

.branding-color-preview span{
  box-shadow:0 8px 18px rgba(15,23,42,.10);
}

/* ---------- Login ---------- */
.login-agency-input svg,
.login-agency-input i{
  width:30px!important;
  height:30px!important;
  padding:7px!important;
  border-radius:10px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

.login-agency-submit svg,
.login-agency-submit i{
  width:18px!important;
  height:18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:currentColor!important;
  box-shadow:none!important;
}

.login-agency-note svg,
.login-agency-note i{
  width:32px!important;
  height:32px!important;
  padding:8px!important;
  border-radius:11px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

/* ---------- Proteções: não colorir ícones pequenos de botões/ações ---------- */
button svg,
button i,
.primary-action svg,
.primary-action i,
.secondary-action svg,
.secondary-action i,
.mini-action svg,
.mini-action i,
.danger-action svg,
.danger-action i,
.drawer-close svg,
.drawer-close i{
  box-shadow:none;
}

/* ---------- Refinamento de espaçamento geral por página ---------- */
.premium-form-card,
.premium-table-card,
.settings-card,
.users-form-panel,
.users-table-panel,
.branding-form-card,
.branding-preview-card{
  border-color:#dfe8f5;
}

.premium-table th{
  white-space:nowrap;
}

.premium-table td{
  vertical-align:middle;
}

/* ---------- Mobile: ícones menores e proporcionais ---------- */
@media (max-width:720px){
  .premium-page-head .eyebrow svg,
  .premium-page-head .eyebrow i,
  .form-title > svg,
  .form-title > i,
  .settings-card > svg,
  .settings-card > i,
  .calendar-radar-v6 > div svg,
  .calendar-radar-v6 > div i{
    width:36px!important;
    height:36px!important;
    padding:9px!important;
    border-radius:13px!important;
  }
}


/* =========================
   DASHBOARD PREMIUM REFINADO - V7.17
========================= */

/* Rotina financeira */
.metric-routine,
.quick-routine{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#f6f0ff,#ffffff)!important;
  border:1px solid #e8dcff!important;
}

.metric-routine:before,
.quick-routine:before{
  content:"";
  position:absolute;
  width:110px;
  height:110px;
  border-radius:999px;
  background:rgba(124,58,237,.10);
  right:-30px;
  top:-30px;
}

.metric-routine svg,
.metric-routine i,
.quick-routine svg,
.quick-routine i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#f5f3ff!important;
  color:#7c3aed!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 12px 26px rgba(124,58,237,.12)!important;
}

/* Ação sugerida */
.metric-suggestion svg,
.metric-suggestion i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#ede9fe!important;
  color:#7c3aed!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 12px 26px rgba(124,58,237,.12)!important;
}

/* Receita vs mês anterior */
.metric-growth svg,
.metric-growth i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
  box-shadow:0 12px 26px rgba(22,163,74,.12)!important;
}

/* Despesas vs mês anterior */
.metric-expense svg,
.metric-expense i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
  box-shadow:0 12px 26px rgba(239,68,68,.12)!important;
}

/* Categoria dominante */
.metric-category svg,
.metric-category i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 12px 26px rgba(139,92,246,.12)!important;
}

/* Cliente destaque */
.metric-client svg,
.metric-client i{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 12px 26px rgba(37,99,235,.12)!important;
}

/* Hoje */
.today-widget .today-item:nth-child(1) svg,
.today-widget .today-item:nth-child(1) i{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
  background:#fffbeb!important;
  color:#d97706!important;
  border:1px solid #fde68a!important;
}

.today-widget .today-item:nth-child(2) svg,
.today-widget .today-item:nth-child(2) i{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
}

/* Próximas decisões */
.decision-card:nth-child(1) svg,
.decision-card:nth-child(1) i{
  width:42px!important;
  height:42px!important;
  padding:10px!important;
  border-radius:14px!important;
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
  box-shadow:0 10px 22px rgba(239,68,68,.10)!important;
}

.decision-card:nth-child(2) svg,
.decision-card:nth-child(2) i{
  width:42px!important;
  height:42px!important;
  padding:10px!important;
  border-radius:14px!important;
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 10px 22px rgba(37,99,235,.10)!important;
}

.decision-card:nth-child(3) svg,
.decision-card:nth-child(3) i{
  width:42px!important;
  height:42px!important;
  padding:10px!important;
  border-radius:14px!important;
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
  box-shadow:0 10px 22px rgba(22,163,74,.10)!important;
}

.decision-card{
  transition:all .18s ease;
}

.decision-card:hover{
  transform:translateY(-2px);
}

/* ===== FIX REAL DASHBOARD V7.17.1 ===== */

/* rotina financeira */
.dashboard-grid .card:nth-child(4) .icon,
.dashboard-grid .card:nth-child(4) svg{
  background:#f5f3ff!important;
  color:#7c3aed!important;
  border:1px solid #ddd6fe!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* ação sugerida */
.dashboard-grid .card:nth-child(7) .icon,
.dashboard-grid .card:nth-child(7) svg{
  background:#ede9fe!important;
  color:#7c3aed!important;
  border:1px solid #ddd6fe!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* receita x mês */
.dashboard-grid .card:nth-child(8) svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* despesa x mês */
.dashboard-grid .card:nth-child(9) svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* categoria dominante */
.dashboard-grid .card:nth-child(10) svg{
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* cliente destaque */
.dashboard-grid .card:nth-child(11) svg{
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* HOJE */
.today-card .item:nth-child(1) svg,
.today-card .item:nth-child(1) .icon{
  background:#fffbeb!important;
  color:#d97706!important;
  border:1px solid #fde68a!important;
  border-radius:12px!important;
}

.today-card .item:nth-child(2) svg,
.today-card .item:nth-child(2) .icon{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
  border-radius:12px!important;
}

/* cards finais */
.bottom-actions .card:nth-child(1) svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
  border-radius:14px!important;
  padding:10px!important;
}

.bottom-actions .card:nth-child(2) svg{
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  border-radius:14px!important;
  padding:10px!important;
}

.bottom-actions .card:nth-child(3) svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
  border-radius:14px!important;
  padding:10px!important;
}

/* ===== FORCE DASHBOARD REFINO V7.17.2 ===== */

/* FORÇA TODOS OS ICONES DOS CARDS DO DASHBOARD */
.dashboard-grid .card svg,
.dashboard-grid .card i,
.dashboard-cards .card svg,
.dashboard-cards .card i,
.kpi-grid .card svg,
.kpi-grid .card i{
    width:42px !important;
    height:42px !important;
    padding:10px !important;
    border-radius:14px !important;
    border:1px solid #dce9fb !important;
    background:#eef5ff !important;
    color:#2563eb !important;
    box-shadow:0 10px 22px rgba(37,99,235,.10) !important;
}

/* rotina financeira */
.dashboard-grid .card:nth-child(4),
.dashboard-cards .card:nth-child(4){
    background:linear-gradient(135deg,#f6f0ff,#ffffff) !important;
    border:1px solid #e8dcff !important;
}

.dashboard-grid .card:nth-child(4) svg,
.dashboard-grid .card:nth-child(4) i,
.dashboard-cards .card:nth-child(4) svg,
.dashboard-cards .card:nth-child(4) i{
    background:#f5f3ff !important;
    color:#7c3aed !important;
    border-color:#ddd6fe !important;
}

/* ação sugerida */
.dashboard-grid .card:nth-child(7) svg,
.dashboard-grid .card:nth-child(7) i,
.dashboard-cards .card:nth-child(7) svg,
.dashboard-cards .card:nth-child(7) i{
    background:#ede9fe !important;
    color:#7c3aed !important;
    border-color:#ddd6fe !important;
}

/* receita */
.dashboard-grid .card:nth-child(8) svg,
.dashboard-grid .card:nth-child(8) i,
.dashboard-cards .card:nth-child(8) svg,
.dashboard-cards .card:nth-child(8) i{
    background:#ecfdf5 !important;
    color:#16a34a !important;
    border-color:#bbf7d0 !important;
}

/* despesas */
.dashboard-grid .card:nth-child(9) svg,
.dashboard-grid .card:nth-child(9) i,
.dashboard-cards .card:nth-child(9) svg,
.dashboard-cards .card:nth-child(9) i{
    background:#fff1f2 !important;
    color:#ef4444 !important;
    border-color:#fecdd3 !important;
}

/* categoria */
.dashboard-grid .card:nth-child(10) svg,
.dashboard-grid .card:nth-child(10) i,
.dashboard-cards .card:nth-child(10) svg,
.dashboard-cards .card:nth-child(10) i{
    background:#f5f3ff !important;
    color:#8b5cf6 !important;
    border-color:#ddd6fe !important;
}

/* cliente */
.dashboard-grid .card:nth-child(11) svg,
.dashboard-grid .card:nth-child(11) i,
.dashboard-cards .card:nth-child(11) svg,
.dashboard-cards .card:nth-child(11) i{
    background:#eef5ff !important;
    color:#2563eb !important;
    border-color:#dce9fb !important;
}


/* ===== DASHBOARD REAL REFINO V7.18 ===== */
.dashboard-card-highlight-purple{
 background:linear-gradient(135deg,#f6f0ff,#ffffff)!important;
 border:1px solid #e8dcff!important;
}
.dashboard-card-highlight-purple svg,
.dashboard-card-highlight-purple i{
 background:#f5f3ff!important;
 color:#7c3aed!important;
 border:1px solid #ddd6fe!important;
 border-radius:14px!important;
 padding:10px!important;
}

.dashboard-icon-green svg,.dashboard-icon-green i{
 background:#ecfdf5!important;
 color:#16a34a!important;
 border:1px solid #bbf7d0!important;
 border-radius:14px!important;
 padding:10px!important;
}
.dashboard-icon-red svg,.dashboard-icon-red i{
 background:#fff1f2!important;
 color:#ef4444!important;
 border:1px solid #fecdd3!important;
 border-radius:14px!important;
 padding:10px!important;
}
.dashboard-icon-blue svg,.dashboard-icon-blue i{
 background:#eef5ff!important;
 color:#2563eb!important;
 border:1px solid #dce9fb!important;
 border-radius:14px!important;
 padding:10px!important;
}
.dashboard-icon-purple svg,.dashboard-icon-purple i{
 background:#f5f3ff!important;
 color:#8b5cf6!important;
 border:1px solid #ddd6fe!important;
 border-radius:14px!important;
 padding:10px!important;
}
.dashboard-icon-orange svg,.dashboard-icon-orange i{
 background:#fffbeb!important;
 color:#d97706!important;
 border:1px solid #fde68a!important;
 border-radius:14px!important;
 padding:10px!important;
}


/* =========================
   DASHBOARD REAL REFINO APLICADO - V7.19
   Classes aplicadas diretamente na view real do dashboard
========================= */

/* Rotina financeira: bloco destacado */
.command-routine-premium{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(124,58,237,.16), transparent 34%),
    linear-gradient(135deg,#f7f2ff,#ffffff)!important;
  border:1px solid #e7dcff!important;
  box-shadow:0 18px 45px rgba(124,58,237,.10)!important;
}

.command-routine-premium:before{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border-radius:999px;
  background:rgba(124,58,237,.10);
  right:-42px;
  bottom:-50px;
}

.command-routine-premium div,
.command-routine-premium button{
  position:relative;
  z-index:1;
}

.command-routine-premium button{
  background:#7c3aed!important;
  color:#fff!important;
  border:1px solid #6d28d9!important;
  box-shadow:0 14px 30px rgba(124,58,237,.22)!important;
}

.command-routine-premium button i,
.command-routine-premium button svg{
  color:#fff!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}

/* Insight / ação sugerida */
.insight-suggestion > i,
.insight-suggestion > svg{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#ede9fe!important;
  color:#7c3aed!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 12px 26px rgba(124,58,237,.12)!important;
}

.insight-priority > i,
.insight-priority > svg{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  background:#fffbeb!important;
  color:#d97706!important;
  border:1px solid #fde68a!important;
  box-shadow:0 12px 26px rgba(217,119,6,.10)!important;
}

/* Cards executivos */
.executive-card > i,
.executive-card > svg{
  width:46px!important;
  height:46px!important;
  padding:12px!important;
  border-radius:16px!important;
  box-shadow:0 12px 26px rgba(15,23,42,.08)!important;
}

.executive-revenue > i,
.executive-revenue > svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
}

.executive-expense > i,
.executive-expense > svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
}

.executive-category > i,
.executive-category > svg{
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
}

.executive-client > i,
.executive-client > svg{
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
}

/* Widget Hoje */
.today-refined > div{
  border:1px solid #edf2f8;
  border-radius:14px;
  padding:12px;
  background:#fff;
}

.today-refined .today-due i,
.today-refined .today-due svg{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
  background:#fffbeb!important;
  color:#d97706!important;
  border:1px solid #fde68a!important;
  box-shadow:0 10px 22px rgba(217,119,6,.08)!important;
}

.today-refined .today-late i,
.today-refined .today-late svg{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
  box-shadow:0 10px 22px rgba(239,68,68,.08)!important;
}

/* Próximas decisões recomendadas */
.board-item > i,
.board-item > svg{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
  box-shadow:0 12px 26px rgba(15,23,42,.08)!important;
}

.board-regularizar > i,
.board-regularizar > svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
}

.board-followup > i,
.board-followup > svg{
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
}

.board-relatorio > i,
.board-relatorio > svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
}

/* Pequeno refinamento no board */
.board-item{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.board-item:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(15,23,42,.08);
  border-color:#dce9fb;
}


/* =========================
   DASHBOARD VISUAL APROVADO - V7.20
   Replicação visual do conceito aprovado
========================= */

/* Hero mais próximo do conceito aprovado */
.dashboard-hero{
  position:relative;
  overflow:hidden;
  min-height:190px;
  background:
    radial-gradient(circle at 92% 18%, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(135deg,#ffffff,#f4f8ff)!important;
}

.dashboard-hero:after{
  content:"";
  position:absolute;
  right:40px;
  top:32px;
  width:300px;
  height:120px;
  opacity:.22;
  background:
    linear-gradient(135deg,transparent 0 18%,rgba(37,99,235,.35) 18% 19%,transparent 19% 38%,rgba(37,99,235,.35) 38% 39%,transparent 39%),
    radial-gradient(circle at 80% 15%, rgba(37,99,235,.8) 0 3px, transparent 4px),
    radial-gradient(circle at 60% 35%, rgba(37,99,235,.7) 0 3px, transparent 4px),
    radial-gradient(circle at 42% 22%, rgba(37,99,235,.55) 0 3px, transparent 4px),
    radial-gradient(circle at 24% 46%, rgba(37,99,235,.45) 0 3px, transparent 4px);
  pointer-events:none;
}

.dashboard-hero .hero-copy,
.dashboard-hero .hero-actions{
  position:relative;
  z-index:2;
}

/* Rotina financeira com contraste real */
.routine-top-card{
  display:grid!important;
  align-content:space-between!important;
  gap:10px!important;
  min-height:150px!important;
  padding:22px!important;
  background:
    radial-gradient(circle at 92% 8%, rgba(124,58,237,.22), transparent 32%),
    linear-gradient(135deg,#fbf7ff,#ffffff 58%,#f4ecff)!important;
  border:1px solid #dec9ff!important;
  box-shadow:0 22px 55px rgba(124,58,237,.15)!important;
}

.routine-top-card .routine-title-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:#6d28d9!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}

.routine-top-card .routine-icon{
  width:36px!important;
  height:36px!important;
  border-radius:13px!important;
  display:grid!important;
  place-items:center!important;
  background:#ede9fe!important;
  color:#7c3aed!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 10px 24px rgba(124,58,237,.14)!important;
}

.routine-top-card .routine-icon svg{
  width:18px!important;
  height:18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#7c3aed!important;
}

.routine-top-card strong{
  display:block!important;
  color:#140d2f!important;
  font-size:22px!important;
  line-height:1.1!important;
  letter-spacing:-.055em!important;
}

.routine-top-card small{
  display:block!important;
  color:#5b4a7d!important;
  font-size:12px!important;
  line-height:1.45!important;
  max-width:230px!important;
}

.routine-top-card button{
  justify-self:start!important;
  min-height:40px!important;
  border-radius:12px!important;
  padding:0 14px!important;
  background:#7c3aed!important;
  color:#fff!important;
  font-weight:900!important;
  box-shadow:0 14px 30px rgba(124,58,237,.24)!important;
}

.routine-top-card button svg{
  color:#fff!important;
}

/* Command cards com ícones fortes */
.command-card .command-icon{
  width:48px!important;
  height:48px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:14px!important;
}

.command-danger .command-icon{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
}

.command-warn .command-icon{
  background:#fff7ed!important;
  color:#f97316!important;
  border:1px solid #fed7aa!important;
}

.command-info .command-icon{
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
}

/* Insight e executivos */
.insight-card > i,
.insight-card > svg,
.executive-card > i,
.executive-card > svg{
  flex:0 0 auto!important;
}

.insight-suggestion > i,
.insight-suggestion > svg{
  background:#ede9fe!important;
  color:#7c3aed!important;
  border-color:#ddd6fe!important;
}

.executive-revenue > i,
.executive-revenue > svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border-color:#bbf7d0!important;
}

.executive-expense > i,
.executive-expense > svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border-color:#fecdd3!important;
}

.executive-category > i,
.executive-category > svg{
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border-color:#ddd6fe!important;
}

.executive-client > i,
.executive-client > svg{
  background:#eef5ff!important;
  color:#2563eb!important;
  border-color:#dce9fb!important;
}

/* KPI icons usando os small icons também com cores */
.premium-kpis .kpi small i,
.premium-kpis .kpi small svg{
  width:24px!important;
  height:24px!important;
  padding:5px!important;
  border-radius:9px!important;
  border:1px solid currentColor!important;
  background:rgba(255,255,255,.8)!important;
  box-shadow:none!important;
}

.premium-kpis .kpi:nth-child(1) small i,
.premium-kpis .kpi:nth-child(1) small svg{
  color:#16a34a!important;
  background:#ecfdf5!important;
  border-color:#bbf7d0!important;
}

.premium-kpis .kpi:nth-child(2) small i,
.premium-kpis .kpi:nth-child(2) small svg{
  color:#ef4444!important;
  background:#fff1f2!important;
  border-color:#fecdd3!important;
}

.premium-kpis .kpi:nth-child(3) small i,
.premium-kpis .kpi:nth-child(3) small svg{
  color:#2563eb!important;
  background:#eef5ff!important;
  border-color:#dce9fb!important;
}

.premium-kpis .kpi:nth-child(4) small i,
.premium-kpis .kpi:nth-child(4) small svg{
  color:#f97316!important;
  background:#fff7ed!important;
  border-color:#fed7aa!important;
}

.premium-kpis .kpi:nth-child(5) small i,
.premium-kpis .kpi:nth-child(5) small svg{
  color:#8b5cf6!important;
  background:#f5f3ff!important;
  border-color:#ddd6fe!important;
}

/* Hoje com blocos premium */
.today-refined{
  display:grid!important;
  gap:12px!important;
}

.today-refined > div{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:13px!important;
  border-radius:15px!important;
}

.today-refined span{
  display:grid!important;
  gap:3px!important;
}

.today-refined strong{
  font-size:13px!important;
  color:#0f1f3d!important;
}

.today-refined small{
  font-size:11px!important;
  color:#64748b!important;
}

.today-refined .today-due{
  background:#fff7ed!important;
  border:1px solid #fed7aa!important;
}

.today-refined .today-late{
  background:#fff1f2!important;
  border:1px solid #fecdd3!important;
}

/* Board final igual conceito */
.board-grid{
  gap:14px!important;
}

.board-item{
  border-radius:16px!important;
  padding:16px!important;
}

.board-regularizar{
  background:#fff7f7!important;
  border-color:#fecdd3!important;
}

.board-followup{
  background:#f7fbff!important;
  border-color:#dce9fb!important;
}

.board-relatorio{
  background:#f5fff9!important;
  border-color:#bbf7d0!important;
}

.board-item > i,
.board-item > svg{
  width:46px!important;
  height:46px!important;
  padding:12px!important;
  border-radius:16px!important;
}

/* Lab side mais limpo */
.lab-side .side-card{
  border-radius:18px!important;
  box-shadow:0 16px 40px rgba(15,23,42,.06)!important;
}

.risk-score{
  background:linear-gradient(135deg,#eef5ff,#ffffff)!important;
  border:1px solid #dce9fb!important;
  border-radius:16px!important;
}

/* Responsivo */
@media(max-width:980px){
  .dashboard-hero:after{
    display:none!important;
  }
  .routine-top-card{
    min-height:auto!important;
  }
}


/* =========================
   DASHBOARD V8 APROVADO - RECONSTRUÇÃO VISUAL
========================= */
.dashboard-v8-hero,.dashboard-v8-side > *,.command-v8-card,.insight-v8-card,.executive-v8-card,.executive-v8-main,.kpi-v8-card,.chart-v8-card,.bento-v8-card,.operational-v8-board{
  border:1px solid #dfe8f5;background:#fff;border-radius:18px;box-shadow:0 16px 42px rgba(15,23,42,.062)
}
.dashboard-v8-hero{position:relative;min-height:190px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;background:radial-gradient(circle at 88% 22%,rgba(37,99,235,.13),transparent 28%),linear-gradient(135deg,#fff,#f5f9ff);margin-bottom:18px}
.dashboard-v8-hero:after{content:"";position:absolute;right:46px;top:28px;width:330px;height:130px;opacity:.22;background:linear-gradient(135deg,transparent 0 18%,rgba(37,99,235,.42) 18% 19%,transparent 19% 38%,rgba(37,99,235,.42) 38% 39%,transparent 39%),radial-gradient(circle at 82% 16%,rgba(37,99,235,.95) 0 3px,transparent 4px),radial-gradient(circle at 64% 37%,rgba(37,99,235,.75) 0 3px,transparent 4px),radial-gradient(circle at 44% 24%,rgba(37,99,235,.55) 0 3px,transparent 4px),radial-gradient(circle at 24% 48%,rgba(37,99,235,.45) 0 3px,transparent 4px);pointer-events:none}
.dashboard-v8-hero .hero-copy,.dashboard-v8-hero .hero-actions{position:relative;z-index:1}
.dashboard-v8-hero h1{max-width:720px;margin:14px 0 10px;font-size:38px;line-height:1.02;letter-spacing:-.075em;color:#071a3d}
.dashboard-v8-hero h1 strong{color:var(--blue)}
.dashboard-v8-hero p{max-width:660px;color:#60718d;line-height:1.6}
.dashboard-v8-shell{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.dashboard-v8-main{display:grid;gap:18px;min-width:0}
.dashboard-v8-side{display:grid;gap:18px;position:sticky;top:92px}
.command-v8-grid,.insight-v8-grid,.executive-v8-grid,.kpi-v8-grid,.charts-v8-grid,.bento-v8-grid{display:grid;gap:14px;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.command-v8-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.command-v8-card{position:relative;overflow:hidden;padding:22px;min-height:150px}
.command-v8-card:after{content:"";position:absolute;width:96px;height:96px;right:-24px;top:-24px;border-radius:999px;opacity:.55}
.command-v8-card.danger:after{background:#fff1f2}.command-v8-card.warn:after{background:#fff7ed}.command-v8-card.info:after{background:#eef5ff}
.command-v8-card .v8-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;margin-bottom:16px}
.command-v8-card.danger .v8-icon{background:#fff1f2;color:#ef4444;border:1px solid #fecdd3}.command-v8-card.warn .v8-icon{background:#fff7ed;color:#f97316;border:1px solid #fed7aa}.command-v8-card.info .v8-icon{background:#eef5ff;color:var(--blue);border:1px solid #dce9fb}
.command-v8-card span,.command-v8-card small{color:#60718d;font-weight:700}.command-v8-card strong{display:block;font-size:30px;letter-spacing:-.06em;color:#071a3d;margin:4px 0}
.insight-v8-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.insight-v8-card{padding:18px;display:flex;gap:14px;align-items:center}
.insight-v8-card>i,.insight-v8-card>svg{width:48px!important;height:48px!important;padding:12px!important;border-radius:16px!important;flex:0 0 auto}
.insight-v8-card.cash>i,.insight-v8-card.cash>svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}.insight-v8-card.priority>i,.insight-v8-card.priority>svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}.insight-v8-card.suggestion>i,.insight-v8-card.suggestion>svg{background:#ede9fe!important;color:#7c3aed!important;border:1px solid #ddd6fe!important}
.insight-v8-card span,.executive-v8-card span,.kpi-v8-card span{display:block;color:#60718d;font-size:12px;font-weight:800}.insight-v8-card strong{display:block;color:#071a3d;margin:3px 0}
.executive-v8-grid{grid-template-columns:1.55fr repeat(4,1fr)}
.executive-v8-main{padding:24px;color:#fff;background:radial-gradient(circle at 86% 18%,rgba(255,255,255,.14),transparent 28%),linear-gradient(135deg,#06357e,#031b48);border-color:#0b3b8c}
.executive-v8-main h2{margin:12px 0 10px;font-size:24px;letter-spacing:-.055em}.executive-v8-main p{color:#dbeafe;line-height:1.5}
.executive-score{border-top:1px solid rgba(255,255,255,.18);margin-top:18px;padding-top:16px;display:flex;justify-content:space-between;gap:12px;align-items:end}.executive-score strong{font-size:28px}
.executive-v8-card{padding:22px;display:grid;align-content:start;gap:10px}.executive-v8-card>i,.executive-v8-card>svg{width:50px!important;height:50px!important;padding:13px!important;border-radius:16px!important;margin-bottom:6px}
.executive-v8-card.revenue>i,.executive-v8-card.revenue>svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}.executive-v8-card.expense>i,.executive-v8-card.expense>svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}.executive-v8-card.category>i,.executive-v8-card.category>svg{background:#f5f3ff!important;color:#8b5cf6!important;border:1px solid #ddd6fe!important}.executive-v8-card.client>i,.executive-v8-card.client>svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.executive-v8-card strong{font-size:25px;letter-spacing:-.055em}
.kpi-v8-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.kpi-v8-card{padding:20px;display:grid;gap:9px;align-content:start}.kpi-v8-card>i,.kpi-v8-card>svg{width:42px!important;height:42px!important;padding:10px!important;border-radius:14px!important}.kpi-v8-card.revenue>i,.kpi-v8-card.revenue>svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}.kpi-v8-card.expense>i,.kpi-v8-card.expense>svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}.kpi-v8-card.balance>i,.kpi-v8-card.balance>svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}.kpi-v8-card.receive>i,.kpi-v8-card.receive>svg{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}.kpi-v8-card.pay>i,.kpi-v8-card.pay>svg{background:#f5f3ff!important;color:#8b5cf6!important;border:1px solid #ddd6fe!important}.kpi-v8-card strong{font-size:22px;letter-spacing:-.05em}
.charts-v8-grid{grid-template-columns:1fr 1fr}.chart-v8-card{padding:22px;min-height:310px}.chart-v8-card.chart-wide{grid-column:1/-1}
.bento-v8-grid{grid-template-columns:1fr 1fr 1.05fr}.bento-v8-card{padding:20px}
.routine-v8-panel{padding:22px;border-radius:20px;border:1px solid #dec9ff;background:radial-gradient(circle at 92% 8%,rgba(124,58,237,.20),transparent 32%),linear-gradient(135deg,#fbf7ff,#fff 62%,#f4ecff);box-shadow:0 22px 55px rgba(124,58,237,.14)}
.routine-v8-head{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;margin-bottom:20px}.routine-v8-head>span{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:#ede9fe;color:#7c3aed;border:1px solid #ddd6fe}.routine-v8-head strong{text-transform:uppercase;font-size:13px;letter-spacing:.04em;color:#35146b}.routine-v8-head button{min-height:38px;border-radius:12px;background:#fff;color:#7c3aed;border:1px solid #ddd6fe;font-weight:900;padding:0 12px;box-shadow:0 12px 24px rgba(124,58,237,.12)}
.routine-v8-steps{display:grid;gap:16px}.routine-v8-steps div{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}.routine-v8-steps b{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:#7c3aed;color:#fff}.routine-v8-steps strong{display:block;color:#140d2f;margin-bottom:3px}.routine-v8-steps small{color:#5b4a7d;line-height:1.4}.routine-v8-tip{margin-top:20px;padding:14px;border-radius:14px;background:#f1e8ff;color:#6d28d9;font-size:12px;line-height:1.45}
.side-v8-card{padding:20px}.today-v8-list{display:grid;gap:12px}.today-v8-list>div{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px}.today-v8-list i,.today-v8-list svg{width:42px!important;height:42px!important;padding:10px!important;border-radius:14px!important;flex:0 0 auto}.today-v8-list .due{background:#fff7ed;border:1px solid #fed7aa}.today-v8-list .due i,.today-v8-list .due svg{background:#fffbeb!important;color:#f97316!important;border:1px solid #fed7aa!important}.today-v8-list .late{background:#fff1f2;border:1px solid #fecdd3}.today-v8-list .late i,.today-v8-list .late svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}.today-v8-list strong{display:block;color:#071a3d}.today-v8-list small{color:#60718d}.risk-v8-card .risk-score{margin-top:18px}
.operational-v8-board{padding:20px}.board-v8-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.board-v8-item{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:16px;border-radius:16px;border:1px solid #dfe8f5}.board-v8-item>i,.board-v8-item>svg{width:48px!important;height:48px!important;padding:12px!important;border-radius:16px!important}.board-v8-item.danger{background:#fff7f7;border-color:#fecdd3}.board-v8-item.danger>i,.board-v8-item.danger>svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}.board-v8-item.info{background:#f7fbff;border-color:#dce9fb}.board-v8-item.info>i,.board-v8-item.info>svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}.board-v8-item.success{background:#f5fff9;border-color:#bbf7d0}.board-v8-item.success>i,.board-v8-item.success>svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}.board-v8-item a{background:#fff;border:1px solid #dfe8f5;border-radius:12px;padding:9px 14px;font-weight:900}
@media(max-width:1320px){.dashboard-v8-shell{grid-template-columns:1fr}.dashboard-v8-side{position:relative;top:auto;grid-template-columns:repeat(3,1fr)}.routine-v8-panel{grid-column:1/-1}}
@media(max-width:980px){.dashboard-v8-hero{display:grid;padding:24px}.dashboard-v8-hero:after{display:none}.command-v8-grid,.insight-v8-grid,.executive-v8-grid,.kpi-v8-grid,.charts-v8-grid,.bento-v8-grid,.board-v8-grid,.dashboard-v8-side{grid-template-columns:1fr 1fr}.executive-v8-main,.chart-v8-card.chart-wide,.routine-v8-panel,.operational-v8-board{grid-column:1/-1}}
@media(max-width:640px){.dashboard-v8-hero h1{font-size:29px}.command-v8-grid,.insight-v8-grid,.executive-v8-grid,.kpi-v8-grid,.charts-v8-grid,.bento-v8-grid,.board-v8-grid,.dashboard-v8-side{grid-template-columns:1fr}.executive-v8-main,.chart-v8-card.chart-wide,.routine-v8-panel,.operational-v8-board{grid-column:auto}.routine-v8-head{grid-template-columns:42px 1fr}.routine-v8-head button{grid-column:1/-1}.board-v8-item{grid-template-columns:52px 1fr}.board-v8-item a{grid-column:1/-1;text-align:center}}


/* =========================
   FIX PERFORMANCE MENSAL - V8.1
========================= */
.charts-v8-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}

.chart-v8-card{
  min-height:360px!important;
  max-height:420px!important;
  padding:22px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}

.chart-v8-card.chart-wide{
  grid-column:1 / -1!important;
  min-height:380px!important;
  max-height:460px!important;
}

.chart-v8-card .card-head{
  flex:0 0 auto!important;
  margin-bottom:14px!important;
}

.chart-v8-card canvas{
  width:100%!important;
  height:280px!important;
  max-height:280px!important;
  flex:1 1 auto!important;
}

.chart-v8-card.chart-wide canvas{
  height:300px!important;
  max-height:300px!important;
}

@media(max-width:980px){
  .charts-v8-grid{
    grid-template-columns:1fr!important;
  }
  .chart-v8-card,
  .chart-v8-card.chart-wide{
    min-height:320px!important;
    max-height:none!important;
    grid-column:auto!important;
  }
  .chart-v8-card canvas,
  .chart-v8-card.chart-wide canvas{
    height:240px!important;
    max-height:240px!important;
  }
}

@media(max-width:640px){
  .chart-v8-card,
  .chart-v8-card.chart-wide{
    min-height:300px!important;
    padding:18px!important;
  }
  .chart-v8-card canvas,
  .chart-v8-card.chart-wide canvas{
    height:220px!important;
    max-height:220px!important;
  }
}

/* =========================
   CORES POR CATEGORIA - V8.2
========================= */
.category-color-dot{
  width:30px;
  height:30px;
  display:inline-block;
  border-radius:10px;
  background:var(--cat-color);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 8px 18px rgba(15,23,42,.10);
  vertical-align:middle;
  margin-right:8px;
}

.executive-v8-main{
  color:#ffffff!important;
}
.executive-v8-main .section-label{
  color:#dbeafe!important;
}
.executive-v8-main h2{
  color:#ffffff!important;
  text-shadow:0 1px 0 rgba(0,0,0,.18);
}
.executive-v8-main p{
  color:#eaf2ff!important;
}
.executive-v8-main .executive-score strong{
  color:#22c55e!important;
}
.executive-v8-main .executive-score small{
  color:#dbeafe!important;
}
.chart-v8-card canvas#chartDonut{
  min-height:260px!important;
}

/* =========================
   DROPDOWNS INTELIGENTES V8.3
========================= */
.premium-select{
  width:100%;
  min-height:48px;
  border-radius:14px;
  border:1px solid #dbe5f2;
  background:#fff;
  padding:0 14px;
  font-family:'Sora',sans-serif;
  font-size:14px;
  color:#0f172a;
  transition:.2s ease;
  box-shadow:0 4px 14px rgba(15,23,42,.03);
}
.premium-select:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}


/* =========================
   CALENDÁRIO PREMIUM - V8.4
========================= */
.calendar-v8-hero,
.calendar-v8-kpi,
.calendar-v8-month-card,
.calendar-v8-summary,
.calendar-v8-legend,
.calendar-v8-timeline-card{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.calendar-v8-hero{
  min-height:150px;
  padding:26px;
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 90% 15%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.calendar-v8-hero h1{
  margin:12px 0 8px;
  font-size:34px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.calendar-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.calendar-v8-month-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--blue);
  border:1px solid #dce9fb;
  font-weight:900;
  white-space:nowrap;
}

.calendar-v8-month-pill i,
.calendar-v8-month-pill svg{
  width:24px!important;
  height:24px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

.calendar-v8-radar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.calendar-v8-kpi{
  position:relative;
  overflow:hidden;
  padding:20px;
  min-height:142px;
}

.calendar-v8-kpi:after{
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  right:-28px;
  top:-28px;
  border-radius:999px;
  opacity:.58;
}

.calendar-v8-kpi.events:after{background:#eef5ff}
.calendar-v8-kpi.expenses:after{background:#fff1f2}
.calendar-v8-kpi.revenues:after{background:#ecfdf5}
.calendar-v8-kpi.today:after{background:#fff7ed}

.calendar-v8-kpi > i,
.calendar-v8-kpi > svg{
  width:46px!important;
  height:46px!important;
  padding:11px!important;
  border-radius:15px!important;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}

.calendar-v8-kpi.events > i,
.calendar-v8-kpi.events > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.calendar-v8-kpi.expenses > i,
.calendar-v8-kpi.expenses > svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}
.calendar-v8-kpi.revenues > i,
.calendar-v8-kpi.revenues > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.calendar-v8-kpi.today > i,
.calendar-v8-kpi.today > svg{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}

.calendar-v8-kpi span,
.calendar-v8-kpi small{
  display:block;
  color:#60718d;
  font-size:12px;
  font-weight:800;
  position:relative;
  z-index:1;
}

.calendar-v8-kpi strong{
  display:block;
  color:#071a3d;
  font-size:30px;
  letter-spacing:-.06em;
  margin:4px 0;
  position:relative;
  z-index:1;
}

.calendar-v8-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}

.calendar-v8-month-card{
  padding:22px;
}

.calendar-v8-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}

.calendar-v8-head h2{
  margin:4px 0 0;
  font-size:26px;
  letter-spacing:-.055em;
  color:#071a3d;
  text-transform:capitalize;
}

.calendar-v8-head h2 small{
  color:#60718d;
  font-size:16px;
}

.calendar-v8-period{
  background:#f8fbff;
  border:1px solid #dce9fb;
  color:#60718d;
  border-radius:999px;
  padding:9px 12px;
  font-size:11px;
  font-weight:900;
}

.calendar-v8-weekdays,
.calendar-v8-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}

.calendar-v8-weekdays{
  margin-bottom:8px;
}

.calendar-v8-weekdays span{
  text-align:center;
  color:#7b8ba3;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.calendar-v8-day{
  min-height:92px;
  border:1px solid #edf2f8;
  border-radius:14px;
  background:#fff;
  padding:10px;
  display:grid;
  align-content:start;
  gap:6px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.calendar-v8-day.empty{
  background:transparent;
  border-color:transparent;
}

.calendar-v8-day:not(.empty):hover{
  transform:translateY(-2px);
  border-color:#cfe0fa;
  box-shadow:0 12px 28px rgba(37,99,235,.08);
}

.calendar-v8-day strong{
  color:#071a3d;
}

.calendar-v8-day small{
  color:#60718d;
  font-size:11px;
  font-weight:800;
}

.calendar-v8-day.today{
  background:#eef5ff;
  border-color:#b8d2ff;
  box-shadow:0 12px 28px rgba(37,99,235,.10);
}

.calendar-v8-day.has-revenue{
  background:linear-gradient(135deg,#ffffff,#f4fff8);
}

.calendar-v8-day.has-expense{
  background:linear-gradient(135deg,#ffffff,#fff7f7);
}

.calendar-v8-dots{
  display:flex;
  gap:5px;
}

.dot{
  width:9px;
  height:9px;
  border-radius:999px;
  display:inline-block;
}

.dot.revenue{background:#16a34a}
.dot.expense{background:#ef4444}
.dot.today{background:var(--blue)}

.calendar-v8-sidebar{
  display:grid;
  gap:14px;
}

.calendar-v8-summary{
  padding:20px;
}

.calendar-v8-summary h3{
  margin:6px 0 14px;
}

.calendar-v8-legend{
  padding:16px;
  display:grid;
  gap:10px;
}

.calendar-v8-legend span{
  display:flex;
  align-items:center;
  gap:9px;
  color:#60718d;
  font-size:12px;
  font-weight:900;
}

.calendar-v8-timeline-card{
  padding:20px;
}

.calendar-v8-timeline{
  display:grid;
  gap:10px;
}

.calendar-v8-event{
  display:grid;
  grid-template-columns:48px 1fr auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:15px;
  border:1px solid #edf2f8;
  background:#fff;
}

.calendar-v8-event.receita{
  background:#f7fff9;
  border-color:#bbf7d0;
}

.calendar-v8-event.despesa{
  background:#fff7f7;
  border-color:#fecdd3;
}

.calendar-v8-event > i,
.calendar-v8-event > svg{
  width:42px!important;
  height:42px!important;
  padding:10px!important;
  border-radius:14px!important;
}

.calendar-v8-event.receita > i,
.calendar-v8-event.receita > svg{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
}

.calendar-v8-event.despesa > i,
.calendar-v8-event.despesa > svg{
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
}

.calendar-v8-event strong{
  display:block;
  color:#071a3d;
  margin-bottom:3px;
}

.calendar-v8-event small{
  color:#60718d;
}

@media(max-width:1100px){
  .calendar-v8-layout{
    grid-template-columns:1fr;
  }
  .calendar-v8-radar{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  .calendar-v8-hero{
    display:grid;
    padding:20px;
  }
  .calendar-v8-radar{
    grid-template-columns:1fr;
  }
  .calendar-v8-weekdays{
    display:none;
  }
  .calendar-v8-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .calendar-v8-day.empty{
    display:none;
  }
  .calendar-v8-event{
    grid-template-columns:44px 1fr;
  }
  .calendar-v8-event .status{
    grid-column:1 / -1;
    justify-self:start;
  }
}


/* =========================
   PREVISÃO DE CAIXA PREMIUM - V8.5
========================= */
.forecast-v8-hero,
.forecast-v8-main-card,
.forecast-v8-kpi,
.forecast-v8-chart-card,
.forecast-v8-insight,
.forecast-v8-month{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.forecast-v8-hero{
  min-height:170px;
  padding:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.forecast-v8-hero h1{
  margin:12px 0 8px;
  font-size:34px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.forecast-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.forecast-v8-form{
  min-width:390px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:end;
  background:#fff;
  border:1px solid #dce9fb;
  border-radius:18px;
  padding:16px;
  box-shadow:0 14px 34px rgba(15,23,42,.055);
}

.forecast-v8-form label{
  display:grid;
  gap:7px;
  color:#344766;
  font-size:12px;
  font-weight:900;
}

.forecast-v8-form button{
  grid-column:1 / -1;
  justify-content:center;
}

.forecast-v8-overview{
  display:grid;
  grid-template-columns:1.1fr 1.6fr;
  gap:18px;
  margin-bottom:18px;
}

.forecast-v8-main-card{
  padding:26px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.14),transparent 28%),
    linear-gradient(135deg,#06357e,#031b48);
  border-color:#0b3b8c;
}

.forecast-v8-main-card.warn{
  background:linear-gradient(135deg,#7c2d12,#431407);
  border-color:#fdba74;
}

.forecast-v8-main-card.danger{
  background:linear-gradient(135deg,#7f1d1d,#450a0a);
  border-color:#fecaca;
}

.forecast-v8-main-card .section-label,
.forecast-v8-main-card p,
.forecast-v8-main-card small{
  color:#dbeafe!important;
}

.forecast-v8-main-card h2{
  margin:12px 0 10px;
  color:#fff;
  font-size:27px;
  letter-spacing:-.06em;
}

.forecast-v8-main-card p{
  line-height:1.6;
}

.forecast-v8-score{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.18);
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:end;
}

.forecast-v8-score strong{
  font-size:30px;
  letter-spacing:-.06em;
  color:#22c55e;
}

.forecast-v8-main-card.danger .forecast-v8-score strong,
.forecast-v8-main-card.warn .forecast-v8-score strong{
  color:#fff;
}

.forecast-v8-side-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.forecast-v8-kpi{
  padding:20px;
  display:grid;
  gap:8px;
  align-content:start;
}

.forecast-v8-kpi > i,
.forecast-v8-kpi > svg{
  width:44px!important;
  height:44px!important;
  padding:11px!important;
  border-radius:15px!important;
}

.forecast-v8-kpi.start > i,
.forecast-v8-kpi.start > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.forecast-v8-kpi.revenue > i,
.forecast-v8-kpi.revenue > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.forecast-v8-kpi.expense > i,
.forecast-v8-kpi.expense > svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}
.forecast-v8-kpi.risk > i,
.forecast-v8-kpi.risk > svg{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}

.forecast-v8-kpi span,
.forecast-v8-kpi small{
  color:#60718d;
  font-size:12px;
  font-weight:800;
}

.forecast-v8-kpi strong{
  font-size:22px;
  color:#071a3d;
  letter-spacing:-.055em;
}

.forecast-v8-lab{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  margin-bottom:18px;
}

.forecast-v8-chart-card{
  min-height:420px;
  max-height:470px;
  padding:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.forecast-v8-chart-card .card-head{
  flex:0 0 auto;
  margin-bottom:14px;
}

.forecast-v8-chart-card canvas{
  width:100%!important;
  height:320px!important;
  max-height:320px!important;
  flex:1 1 auto;
}

.forecast-v8-insights{
  display:grid;
  gap:14px;
}

.forecast-v8-insight{
  padding:18px;
  display:flex;
  gap:14px;
  align-items:center;
}

.forecast-v8-insight > i,
.forecast-v8-insight > svg{
  width:46px!important;
  height:46px!important;
  padding:11px!important;
  border-radius:15px!important;
  flex:0 0 auto;
}

.forecast-v8-insight.best > i,
.forecast-v8-insight.best > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.forecast-v8-insight.worst > i,
.forecast-v8-insight.worst > svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}
.forecast-v8-insight.neutral > i,
.forecast-v8-insight.neutral > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}

.forecast-v8-insight span,
.forecast-v8-insight small{
  color:#60718d;
  font-size:12px;
  font-weight:800;
}

.forecast-v8-insight strong{
  display:block;
  color:#071a3d;
  font-size:18px;
  margin:3px 0;
}

.forecast-v8-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.forecast-v8-month{
  padding:20px;
  display:grid;
  gap:14px;
}

.forecast-v8-month-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.forecast-v8-month-head span{
  color:#60718d;
  font-size:12px;
  font-weight:900;
}

.forecast-v8-month-head i,
.forecast-v8-month-head svg{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
}

.forecast-v8-month.success .forecast-v8-month-head i,
.forecast-v8-month.success .forecast-v8-month-head svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.forecast-v8-month.danger .forecast-v8-month-head i,
.forecast-v8-month.danger .forecast-v8-month-head svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}

.forecast-v8-month > strong{
  font-size:25px;
  color:#071a3d;
  letter-spacing:-.055em;
}

.forecast-v8-lines{
  display:grid;
  gap:8px;
}

.forecast-v8-lines div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-top:1px solid #edf2f8;
}

.forecast-v8-lines small{
  color:#60718d;
  font-weight:800;
}

.forecast-v8-month em{
  font-style:normal;
  font-size:12px;
  font-weight:900;
  color:#60718d;
}

.forecast-v8-month.danger{
  background:#fff7f7;
  border-color:#fecdd3;
}

@media(max-width:1180px){
  .forecast-v8-overview,
  .forecast-v8-lab{
    grid-template-columns:1fr;
  }

  .forecast-v8-side-kpis{
    grid-template-columns:repeat(2,1fr);
  }

  .forecast-v8-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  .forecast-v8-hero{
    display:grid;
    padding:20px;
  }

  .forecast-v8-form{
    min-width:0;
    grid-template-columns:1fr;
  }

  .forecast-v8-side-kpis,
  .forecast-v8-grid{
    grid-template-columns:1fr;
  }

  .forecast-v8-chart-card{
    min-height:330px;
    max-height:none;
  }

  .forecast-v8-chart-card canvas{
    height:240px!important;
    max-height:240px!important;
  }
}

/* =========================
   PREVISÃO COM SALDO REAL - V8.6
========================= */
.saldo-real-hint{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:11px;
  font-weight:700;
}


/* =========================
   RECEITAS PREMIUM - V8.7
========================= */
.receitas-v8-hero,
.receitas-v8-kpi,
.receitas-v8-form-card,
.receitas-v8-table-card{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.receitas-v8-hero{
  min-height:170px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.receitas-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.receitas-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.receitas-v8-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.receitas-v8-kpi{
  position:relative;
  overflow:hidden;
  min-height:150px;
  padding:22px;
}

.receitas-v8-kpi:after{
  content:"";
  position:absolute;
  width:96px;
  height:96px;
  right:-24px;
  top:-24px;
  border-radius:999px;
  opacity:.55;
}

.receitas-v8-kpi.total:after{background:#eef5ff}
.receitas-v8-kpi.pendente:after{background:#fff7ed}
.receitas-v8-kpi.recebida:after{background:#ecfdf5}
.receitas-v8-kpi.recorrente:after{background:#f5f3ff}

.receitas-v8-kpi > i,
.receitas-v8-kpi > svg{
  width:48px!important;
  height:48px!important;
  padding:12px!important;
  border-radius:15px!important;
  margin-bottom:15px;
  position:relative;
  z-index:1;
}

.receitas-v8-kpi.total > i,
.receitas-v8-kpi.total > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.receitas-v8-kpi.pendente > i,
.receitas-v8-kpi.pendente > svg{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}
.receitas-v8-kpi.recebida > i,
.receitas-v8-kpi.recebida > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.receitas-v8-kpi.recorrente > i,
.receitas-v8-kpi.recorrente > svg{background:#f5f3ff!important;color:#8b5cf6!important;border:1px solid #ddd6fe!important}

.receitas-v8-kpi span,
.receitas-v8-kpi small{
  display:block;
  color:#60718d;
  font-size:12px;
  font-weight:800;
  position:relative;
  z-index:1;
}

.receitas-v8-kpi strong{
  display:block;
  color:#071a3d;
  font-size:30px;
  letter-spacing:-.06em;
  margin:4px 0;
  position:relative;
  z-index:1;
}

.receitas-v8-form-card{
  padding:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,99,235,.08),transparent 28%),
    linear-gradient(135deg,#ffffff,#f9fbff);
}

.receitas-v8-form-card .form-title{
  margin-bottom:22px;
}

.receitas-v8-form-card .form-title i,
.receitas-v8-form-card .form-title svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
}

.receitas-v8-table-card{
  padding:20px;
}

.receitas-v8-table-card .table-toolbar{
  margin-bottom:18px;
}

.receitas-v8-table-card .premium-table tbody tr{
  transition:.18s ease;
}

.receitas-v8-table-card .premium-table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.receitas-v8-table-card .premium-table td strong{
  color:#071a3d;
}

.receitas-v8-table-card .premium-table td small{
  display:block;
  margin-top:4px;
  color:#60718d;
}

.receitas-v8-table-card .premium-table td b{
  color:#16a34a;
  font-size:15px;
}

.receitas-v8-table-card .status.recorrente{
  background:#f5f3ff;
  color:#7c3aed;
  border:1px solid #ddd6fe;
}

.receitas-v8-table-card .status.avulsa{
  background:#eef5ff;
  color:var(--blue);
  border:1px solid #dce9fb;
}

@media(max-width:1100px){
  .receitas-v8-kpis{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  .receitas-v8-hero{
    display:grid;
    padding:22px;
  }

  .receitas-v8-kpis{
    grid-template-columns:1fr;
  }
}


/* =========================
   DESPESAS PREMIUM - V8.8
========================= */
.despesas-v8-hero,
.despesas-v8-kpi,
.despesas-v8-form-card,
.despesas-v8-table-card{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.despesas-v8-hero{
  min-height:170px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(239,68,68,.10),transparent 28%),
    linear-gradient(135deg,#ffffff,#fff7f7);
}

.despesas-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.despesas-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.despesas-v8-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.despesas-v8-kpi{
  position:relative;
  overflow:hidden;
  min-height:150px;
  padding:22px;
}

.despesas-v8-kpi:after{
  content:"";
  position:absolute;
  width:96px;
  height:96px;
  right:-24px;
  top:-24px;
  border-radius:999px;
  opacity:.55;
}

.despesas-v8-kpi.total:after{background:#fff1f2}
.despesas-v8-kpi.pendente:after{background:#fff7ed}
.despesas-v8-kpi.paga:after{background:#ecfdf5}
.despesas-v8-kpi.vencida:after{background:#fee2e2}

.despesas-v8-kpi > i,
.despesas-v8-kpi > svg{
  width:48px!important;
  height:48px!important;
  padding:12px!important;
  border-radius:15px!important;
  margin-bottom:15px;
  position:relative;
  z-index:1;
}

.despesas-v8-kpi.total > i,
.despesas-v8-kpi.total > svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}
.despesas-v8-kpi.pendente > i,
.despesas-v8-kpi.pendente > svg{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}
.despesas-v8-kpi.paga > i,
.despesas-v8-kpi.paga > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.despesas-v8-kpi.vencida > i,
.despesas-v8-kpi.vencida > svg{background:#fee2e2!important;color:#dc2626!important;border:1px solid #fecaca!important}

.despesas-v8-kpi span,
.despesas-v8-kpi small{
  display:block;
  color:#60718d;
  font-size:12px;
  font-weight:800;
  position:relative;
  z-index:1;
}

.despesas-v8-kpi strong{
  display:block;
  color:#071a3d;
  font-size:30px;
  letter-spacing:-.06em;
  margin:4px 0;
  position:relative;
  z-index:1;
}

.despesas-v8-form-card{
  padding:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 92% 10%,rgba(239,68,68,.07),transparent 28%),
    linear-gradient(135deg,#ffffff,#fffafa);
}

.despesas-v8-form-card .form-title{
  margin-bottom:22px;
}

.despesas-v8-form-card .form-title i,
.despesas-v8-form-card .form-title svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#fff1f2!important;
  color:#ef4444!important;
  border:1px solid #fecdd3!important;
}

.despesas-v8-table-card{
  padding:20px;
}

.despesas-v8-table-card .table-toolbar{
  margin-bottom:18px;
}

.despesas-v8-table-card .premium-table tbody tr{
  transition:.18s ease;
}

.despesas-v8-table-card .premium-table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.despesas-v8-table-card .premium-table td strong{
  color:#071a3d;
}

.despesas-v8-table-card .premium-table td small{
  display:block;
  margin-top:4px;
  color:#60718d;
}

.despesas-v8-table-card .premium-table td b{
  color:#ef4444;
  font-size:15px;
}

.toggle-check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-weight:900;
}

.toggle-check input{
  width:18px;
  height:18px;
  accent-color:#f97316;
}

@media(max-width:1100px){
  .despesas-v8-kpis{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  .despesas-v8-hero{
    display:grid;
    padding:22px;
  }

  .despesas-v8-kpis{
    grid-template-columns:1fr;
  }
}


/* =========================
   RELATÓRIOS PREMIUM - V8.9
========================= */
.relatorios-v8-hero,
.relatorios-v8-kpi,
.relatorios-v8-insights .report-insight,
.relatorios-v8-filter,
.relatorios-v8-table-card{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.relatorios-v8-hero{
  min-height:170px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.relatorios-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.relatorios-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.relatorios-v8-hero .head-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.relatorios-v8-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.relatorios-v8-kpi{
  position:relative;
  overflow:hidden;
  min-height:150px;
  padding:22px;
}

.relatorios-v8-kpi:after{
  content:"";
  position:absolute;
  width:96px;
  height:96px;
  right:-24px;
  top:-24px;
  border-radius:999px;
  opacity:.55;
}

.relatorios-v8-kpi.revenue:after{background:#ecfdf5}
.relatorios-v8-kpi.expense:after{background:#fff1f2}
.relatorios-v8-kpi.balance:after{background:#eef5ff}
.relatorios-v8-kpi.balance.danger:after{background:#fee2e2}

.relatorios-v8-kpi > i,
.relatorios-v8-kpi > svg{
  width:48px!important;
  height:48px!important;
  padding:12px!important;
  border-radius:15px!important;
  margin-bottom:15px;
  position:relative;
  z-index:1;
}

.relatorios-v8-kpi.revenue > i,
.relatorios-v8-kpi.revenue > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.relatorios-v8-kpi.expense > i,
.relatorios-v8-kpi.expense > svg{background:#fff1f2!important;color:#ef4444!important;border:1px solid #fecdd3!important}
.relatorios-v8-kpi.balance > i,
.relatorios-v8-kpi.balance > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.relatorios-v8-kpi.balance.danger > i,
.relatorios-v8-kpi.balance.danger > svg{background:#fee2e2!important;color:#dc2626!important;border:1px solid #fecaca!important}

.relatorios-v8-kpi span,
.relatorios-v8-kpi small{
  display:block;
  color:#60718d;
  font-size:12px;
  font-weight:800;
  position:relative;
  z-index:1;
}

.relatorios-v8-kpi strong{
  display:block;
  color:#071a3d;
  font-size:30px;
  letter-spacing:-.06em;
  margin:4px 0;
  position:relative;
  z-index:1;
}

.relatorios-v8-insights{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.relatorios-v8-insights .report-insight{
  padding:18px;
  display:flex;
  gap:14px;
  align-items:center;
}

.relatorios-v8-insights .report-insight > i,
.relatorios-v8-insights .report-insight > svg{
  width:48px!important;
  height:48px!important;
  padding:12px!important;
  border-radius:16px!important;
  flex:0 0 auto;
}

.relatorios-v8-insights .report-insight:nth-child(1) > i,
.relatorios-v8-insights .report-insight:nth-child(1) > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.relatorios-v8-insights .report-insight:nth-child(2) > i,
.relatorios-v8-insights .report-insight:nth-child(2) > svg{background:#f5f3ff!important;color:#8b5cf6!important;border:1px solid #ddd6fe!important}
.relatorios-v8-insights .report-insight:nth-child(3) > i,
.relatorios-v8-insights .report-insight:nth-child(3) > svg{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}

.relatorios-v8-insights .report-insight span,
.relatorios-v8-insights .report-insight small{
  color:#60718d;
  font-size:12px;
  font-weight:800;
}

.relatorios-v8-insights .report-insight strong{
  display:block;
  color:#071a3d;
  margin:4px 0;
}

.relatorios-v8-filter{
  padding:22px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,99,235,.07),transparent 28%),
    linear-gradient(135deg,#ffffff,#f9fbff);
}

.relatorios-v8-filter h3{
  margin:5px 0 16px;
}

.relatorios-v8-filter .premium-grid-form.filters{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.relatorios-v8-table-card{
  padding:20px;
}

.relatorios-v8-table-card .table-toolbar{
  margin-bottom:18px;
}

.relatorios-v8-table-card .premium-table tbody tr{
  transition:.18s ease;
}

.relatorios-v8-table-card .premium-table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.relatorios-v8-table-card .premium-table td b{
  color:#071a3d;
}

.type-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid #dfe8f5;
}

.type-pill.receita{
  background:#ecfdf5;
  color:#16a34a;
  border-color:#bbf7d0;
}

.type-pill.despesa{
  background:#fff1f2;
  color:#ef4444;
  border-color:#fecdd3;
}

@media(max-width:1100px){
  .relatorios-v8-kpis,
  .relatorios-v8-insights,
  .relatorios-v8-filter .premium-grid-form.filters{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:720px){
  .relatorios-v8-hero{
    display:grid;
    padding:22px;
  }

  .relatorios-v8-hero .head-actions,
  .relatorios-v8-kpis,
  .relatorios-v8-insights,
  .relatorios-v8-filter .premium-grid-form.filters{
    grid-template-columns:1fr;
    display:grid;
  }
}


/* =========================
   CLIENTES / CADASTROS PREMIUM - V8.10
========================= */
.cadastros-v8-hero,
.cadastro-v8-stat,
.cadastros-v8-form-card,
.cadastros-v8-table-card{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.cadastros-v8-hero{
  min-height:165px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.cadastros-v8-hero.clientes{
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.cadastros-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.cadastros-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.cadastros-v8-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.cadastro-v8-stat{
  position:relative;
  overflow:hidden;
  min-height:140px;
  padding:20px;
}

.cadastro-v8-stat:after{
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  right:-24px;
  top:-24px;
  border-radius:999px;
  opacity:.55;
}

.cadastro-v8-stat.total:after{background:#eef5ff}
.cadastro-v8-stat.active:after{background:#ecfdf5}
.cadastro-v8-stat.inactive:after{background:#f1f5f9}

.cadastro-v8-stat > i,
.cadastro-v8-stat > svg{
  width:46px!important;
  height:46px!important;
  padding:11px!important;
  border-radius:15px!important;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}

.cadastro-v8-stat.total > i,
.cadastro-v8-stat.total > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.cadastro-v8-stat.active > i,
.cadastro-v8-stat.active > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.cadastro-v8-stat.inactive > i,
.cadastro-v8-stat.inactive > svg{background:#f1f5f9!important;color:#64748b!important;border:1px solid #e2e8f0!important}

.cadastro-v8-stat span,
.cadastro-v8-stat small{
  display:block;
  color:#60718d;
  font-size:12px;
  font-weight:800;
  position:relative;
  z-index:1;
}

.cadastro-v8-stat strong{
  display:block;
  color:#071a3d;
  font-size:30px;
  letter-spacing:-.06em;
  margin:4px 0;
  position:relative;
  z-index:1;
}

.cadastros-v8-tabs{
  margin-bottom:18px;
}

.cadastros-v8-workspace{
  align-items:start;
}

.cadastros-v8-form-card{
  padding:24px;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,99,235,.07),transparent 28%),
    linear-gradient(135deg,#ffffff,#f9fbff);
}

.cadastros-v8-form-card .form-title{
  margin-bottom:20px;
}

.cadastros-v8-form-card .form-title i,
.cadastros-v8-form-card .form-title svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

.cadastros-v8-extra-clientes{
  display:grid;
  gap:14px;
}

.cadastros-v8-table-card{
  padding:20px;
}

.cadastros-v8-table-card .table-toolbar{
  margin-bottom:18px;
}

.cadastros-v8-table-card .premium-table tbody tr{
  transition:.18s ease;
}

.cadastros-v8-table-card .premium-table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.cadastro-contact{
  font-size:12px;
  color:#071a3d;
}

@media(max-width:1100px){
  .cadastros-v8-stats{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:720px){
  .cadastros-v8-hero{
    display:grid;
    padding:22px;
  }

  .cadastros-v8-stats{
    grid-template-columns:1fr;
  }
}

/* =========================
   FORNECEDORES PREMIUM - V8.11
========================= */
.cadastros-v8-hero.fornecedores{
  background:
    radial-gradient(circle at 88% 18%,rgba(249,115,22,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#fff8f1);
}

.cadastros-v8-workspace.fornecedores .cadastros-v8-form-card{
  background:
    radial-gradient(circle at 92% 10%,rgba(249,115,22,.08),transparent 28%),
    linear-gradient(135deg,#ffffff,#fffaf5);
}

.cadastros-v8-workspace.fornecedores .cadastros-v8-form-card .form-title i,
.cadastros-v8-workspace.fornecedores .cadastros-v8-form-card .form-title svg{
  background:#fff7ed!important;
  color:#f97316!important;
  border:1px solid #fed7aa!important;
}

.cadastros-v8-extra-fornecedores{
  display:grid;
  gap:14px;
}

.cadastros-v8-workspace.fornecedores .premium-table tbody tr:hover{
  box-shadow:0 10px 24px rgba(249,115,22,.10);
}

/* =========================
   CATEGORIAS PREMIUM - V8.12
========================= */
.cadastros-v8-hero.categorias{
  background:
    radial-gradient(circle at 88% 18%,rgba(139,92,246,.14),transparent 28%),
    linear-gradient(135deg,#ffffff,#f7f3ff);
}

.cadastros-v8-stats.categorias .cadastro-v8-stat.total > i,
.cadastros-v8-stats.categorias .cadastro-v8-stat.total > svg{
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
}

.cadastros-v8-workspace.categorias .cadastros-v8-form-card{
  background:
    radial-gradient(circle at 92% 10%,rgba(139,92,246,.10),transparent 28%),
    linear-gradient(135deg,#ffffff,#fbf9ff);
}

.cadastros-v8-workspace.categorias .cadastros-v8-form-card .form-title i,
.cadastros-v8-workspace.categorias .cadastros-v8-form-card .form-title svg{
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
}

.category-color-preview-card{
  display:grid;
  gap:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid #ddd6fe;
  background:linear-gradient(135deg,#fbf9ff,#ffffff);
}

.category-color-preview-card label{
  display:grid;
  gap:8px;
}

.category-color-preview-card input[type="color"]{
  width:100%;
  height:48px;
  padding:6px;
  border-radius:14px;
  border:1px solid #dbe5f2;
  background:#fff;
}

.category-preview-pill{
  --cat-preview-color:#2563eb;
  display:inline-flex;
  width:max-content;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#0f172a;
  background:color-mix(in srgb, var(--cat-preview-color) 12%, #ffffff);
  border:1px solid color-mix(in srgb, var(--cat-preview-color) 28%, #ffffff);
}

.category-preview-pill span{
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--cat-preview-color);
  box-shadow:0 6px 14px color-mix(in srgb, var(--cat-preview-color) 30%, transparent);
}

.category-color-preview-card small{
  color:#64748b;
  font-size:12px;
  line-height:1.45;
  font-weight:700;
}

.cadastros-v8-workspace.categorias .category-color-dot{
  width:34px;
  height:34px;
  border-radius:12px;
  box-shadow:0 10px 22px rgba(15,23,42,.12);
}

.cadastros-v8-workspace.categorias .premium-table tbody tr:hover{
  box-shadow:0 10px 24px rgba(139,92,246,.10);
}

.cadastros-v8-workspace.categorias .status.ativo{
  background:#f5f3ff;
  color:#7c3aed;
  border:1px solid #ddd6fe;
}

/* =========================
   FORMAS DE PAGAMENTO PREMIUM - V8.13
========================= */
.cadastros-v8-hero.formas{
  background:
    radial-gradient(circle at 88% 18%,rgba(20,184,166,.14),transparent 28%),
    linear-gradient(135deg,#ffffff,#f1fffd);
}

.cadastros-v8-stats.formas .cadastro-v8-stat.total > i,
.cadastros-v8-stats.formas .cadastro-v8-stat.total > svg{
  background:#ecfeff!important;
  color:#0f766e!important;
  border:1px solid #99f6e4!important;
}

.cadastros-v8-workspace.formas .cadastros-v8-form-card{
  background:
    radial-gradient(circle at 92% 10%,rgba(20,184,166,.10),transparent 28%),
    linear-gradient(135deg,#ffffff,#f6fffd);
}

.cadastros-v8-workspace.formas .cadastros-v8-form-card .form-title i,
.cadastros-v8-workspace.formas .cadastros-v8-form-card .form-title svg{
  background:#ecfeff!important;
  color:#0f766e!important;
  border:1px solid #99f6e4!important;
}

.formas-payment-preview{
  display:grid;
  gap:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid #99f6e4;
  background:
    radial-gradient(circle at 90% 12%,rgba(20,184,166,.10),transparent 30%),
    linear-gradient(135deg,#ffffff,#f6fffd);
}

.payment-card-preview{
  position:relative;
  overflow:hidden;
  min-height:120px;
  border-radius:18px;
  padding:18px;
  background:
    linear-gradient(135deg,#0f766e,#0b3d3a);
  color:#fff;
  box-shadow:0 20px 40px rgba(15,118,110,.18);
}

.payment-card-preview:after{
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  right:-36px;
  top:-36px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
}

.payment-chip{
  width:46px;
  height:32px;
  border-radius:9px;
  margin-bottom:16px;
  background:linear-gradient(135deg,#fef08a,#facc15);
  box-shadow:0 10px 20px rgba(250,204,21,.25);
}

.payment-card-preview strong{
  display:block;
  font-size:18px;
  letter-spacing:-.03em;
  margin-bottom:6px;
}

.payment-card-preview small{
  color:#ccfbf1;
}

.formas-payment-preview p{
  color:#64748b;
  font-size:12px;
  line-height:1.5;
  font-weight:700;
}

.cadastros-v8-workspace.formas .premium-table tbody tr:hover{
  box-shadow:0 10px 24px rgba(20,184,166,.10);
}

.cadastros-v8-workspace.formas .status.ativo{
  background:#ecfeff;
  color:#0f766e;
  border:1px solid #99f6e4;
}

/* =========================
   CONFIGURAÇÕES PREMIUM - V8.14
========================= */
.config-v8-hero,
.config-v8-card,
.config-brand-preview{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.config-v8-hero{
  min-height:170px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(14,165,233,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f4fbff);
}

.config-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.config-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.config-v8-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-bottom:18px;
}

.config-v8-card{
  padding:24px;
  background:
    radial-gradient(circle at 92% 10%,rgba(14,165,233,.08),transparent 28%),
    linear-gradient(135deg,#ffffff,#f9fcff);
}

.config-v8-card .card-head{
  margin-bottom:18px;
}

.config-v8-card .card-head i,
.config-v8-card .card-head svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#eef9ff!important;
  color:#0284c7!important;
  border:1px solid #bae6fd!important;
}

.config-brand-preview{
  padding:24px;
  display:grid;
  gap:20px;
  background:
    radial-gradient(circle at 90% 15%,rgba(99,102,241,.08),transparent 28%),
    linear-gradient(135deg,#ffffff,#fafaff);
}

.brand-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e5e7eb;
}

.brand-logo-placeholder{
  width:64px;
  height:64px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#2563eb,#0f172a);
  color:#fff;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.05em;
  box-shadow:0 16px 32px rgba(37,99,235,.18);
}

.brand-card strong{
  display:block;
  color:#071a3d;
  font-size:18px;
  margin-bottom:4px;
}

.brand-card small{
  color:#64748b;
}

.theme-preview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.theme-preview{
  height:84px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}

.theme-preview.blue{background:linear-gradient(135deg,#2563eb,#0f172a);}
.theme-preview.emerald{background:linear-gradient(135deg,#10b981,#052e2b);}
.theme-preview.violet{background:linear-gradient(135deg,#8b5cf6,#2e1065);}
.theme-preview.orange{background:linear-gradient(135deg,#f97316,#431407);}

@media(max-width:900px){
  .config-v8-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .config-v8-hero{
    display:grid;
    padding:22px;
  }

  .theme-preview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* =========================
   USUÁRIOS PREMIUM - V8.15
========================= */
.usuarios-v8-hero,
.usuarios-v8-summary-grid .users-summary-card,
.usuarios-v8-form-panel,
.usuarios-v8-table-panel{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.usuarios-v8-hero{
  min-height:170px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(99,102,241,.14),transparent 28%),
    linear-gradient(135deg,#ffffff,#f7f7ff);
}

.usuarios-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.usuarios-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.usuarios-v8-summary-grid{
  margin-bottom:18px;
}

.usuarios-v8-summary-grid .users-summary-card{
  position:relative;
  overflow:hidden;
  min-height:160px;
  padding:22px;
}

.usuarios-v8-summary-grid .users-summary-card:after{
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  right:-24px;
  top:-24px;
  border-radius:999px;
  opacity:.55;
}

.usuarios-v8-summary-grid .users-summary-card:nth-child(1):after{background:#eef5ff}
.usuarios-v8-summary-grid .users-summary-card:nth-child(2):after{background:#ecfdf5}
.usuarios-v8-summary-grid .users-summary-card:nth-child(3):after{background:#fff7ed}
.usuarios-v8-summary-grid .users-summary-card:nth-child(4):after{background:#f5f3ff}

.usuarios-v8-summary-grid .summary-icon{
  width:52px!important;
  height:52px!important;
  border-radius:17px!important;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}

.usuarios-v8-summary-grid .summary-icon.admin{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.usuarios-v8-summary-grid .summary-icon.finance{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}
.usuarios-v8-summary-grid .summary-icon.billing{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important}
.usuarios-v8-summary-grid .summary-icon.view{background:#f5f3ff!important;color:#8b5cf6!important;border:1px solid #ddd6fe!important}

.usuarios-v8-summary-grid .users-summary-card strong{
  color:#071a3d;
  font-size:15px;
}

.usuarios-v8-summary-grid .users-summary-card span{
  color:#60718d;
}

.usuarios-v8-layout-grid{
  gap:18px;
}

.usuarios-v8-form-panel{
  padding:24px;
  background:
    radial-gradient(circle at 92% 10%,rgba(99,102,241,.08),transparent 28%),
    linear-gradient(135deg,#ffffff,#fafaff);
}

.usuarios-v8-form-panel .users-panel-head{
  margin-bottom:22px;
}

.usuarios-v8-form-panel .users-panel-head > i,
.usuarios-v8-form-panel .users-panel-head > svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

.usuarios-v8-form-panel .field-block input,
.usuarios-v8-form-panel .field-block select{
  min-height:48px;
}

.usuarios-v8-form-panel .users-help-card{
  background:#eef5ff;
  border-color:#dce9fb;
}

.usuarios-v8-table-panel{
  padding:20px;
}

.usuarios-v8-table-panel .users-table-head{
  padding:0 0 18px;
  margin:0;
}

.usuarios-v8-table-panel .users-table tbody tr{
  transition:.18s ease;
}

.usuarios-v8-table-panel .users-table tbody tr:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(99,102,241,.08);
}

.usuarios-v8-table-panel .user-avatar{
  background:linear-gradient(135deg,#6366f1,#2563eb);
  box-shadow:0 14px 28px rgba(99,102,241,.18);
}

.usuarios-v8-table-panel .mini-action{
  border:1px solid #dfe8f5;
  background:#fff;
}

.usuarios-v8-table-panel .mini-action:hover{
  border-color:#c7d2fe;
  box-shadow:0 10px 22px rgba(99,102,241,.10);
}

.usuarios-v8-table-panel .mini-action.danger{
  background:#fff1f2;
  color:#e11d48;
  border-color:#fecdd3;
}

@media(max-width:720px){
  .usuarios-v8-hero{
    display:grid;
    padding:22px;
  }
}


/* =========================
   MINHA CONTA PREMIUM - V8.16
========================= */
.account-v8-hero,
.account-v8-profile-card,
.account-v8-form-card{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:18px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.account-v8-hero{
  min-height:170px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.account-v8-hero h1{
  margin:12px 0 8px;
  font-size:35px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.account-v8-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.account-v8-shell{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.account-v8-profile-card{
  padding:24px;
  position:sticky;
  top:92px;
  background:
    radial-gradient(circle at 90% 12%,rgba(37,99,235,.10),transparent 32%),
    linear-gradient(135deg,#ffffff,#f8fbff);
}

.account-v8-avatar{
  width:76px!important;
  height:76px!important;
  border-radius:22px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#2563eb,#0f172a)!important;
  color:#fff!important;
  font-size:28px!important;
  font-weight:900!important;
  letter-spacing:-.08em!important;
  margin-bottom:18px!important;
  box-shadow:0 20px 42px rgba(37,99,235,.24)!important;
}

.account-v8-profile-card span:first-of-type{
  color:var(--blue);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.account-v8-profile-card h2{
  margin:6px 0 4px;
  font-size:24px;
  letter-spacing:-.055em;
  color:#071a3d;
}

.account-v8-profile-card p{
  color:#60718d;
  margin-bottom:12px;
}

.account-v8-profile-card .role-chip{
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--blue);
  border:1px solid #dce9fb;
  font-size:11px;
  font-weight:900;
}

.account-security-list{
  margin-top:22px;
  display:grid;
  gap:12px;
}

.account-security-list div{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:14px;
  background:#fff;
  border:1px solid #edf2f8;
}

.account-security-list i,
.account-security-list svg{
  width:36px!important;
  height:36px!important;
  padding:8px!important;
  border-radius:12px!important;
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
  flex:0 0 auto;
}

.account-security-list span{
  color:#344766!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

.account-v8-form-card{
  padding:24px;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,99,235,.07),transparent 28%),
    linear-gradient(135deg,#ffffff,#f9fbff);
}

.account-v8-form-card .form-title{
  margin-bottom:22px;
}

.account-v8-form-card .form-title i,
.account-v8-form-card .form-title svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

.account-v8-form-card .premium-grid-form{
  align-items:start;
}

.account-v8-form-card input{
  min-height:48px;
}

.account-v8-form-card .account-help-card{
  background:#eef5ff;
  border-color:#dce9fb;
  min-height:100%;
}

.account-v8-form-card .account-help-card i,
.account-v8-form-card .account-help-card svg{
  background:#eef5ff!important;
  color:var(--blue)!important;
  border:1px solid #dce9fb!important;
}

@media(max-width:980px){
  .account-v8-shell{
    grid-template-columns:1fr;
  }

  .account-v8-profile-card{
    position:relative;
    top:auto;
  }
}

@media(max-width:720px){
  .account-v8-hero{
    display:grid;
    padding:22px;
  }
}


/* =========================
   CLEAN SETTINGS + ACCOUNT - V8.17
========================= */
.account-clean-profile,
.account-clean-form,
.config-clean-hero,
.config-clean-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  box-shadow:0 18px 38px rgba(15,23,42,.05);
}

.account-clean-profile{
  padding:26px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}

.account-clean-form{
  padding:28px;
  background:#fff;
}

.account-clean-form .form-title{
  padding-bottom:18px;
  margin-bottom:22px;
  border-bottom:1px solid #edf2f7;
}

.account-clean-form .form-title h2{
  font-size:26px;
  letter-spacing:-.05em;
}

.account-clean-form input{
  min-height:52px;
  border-radius:15px;
}

.account-clean-form .account-help-card{
  border-radius:16px;
  background:#f8fbff;
  border:1px solid #dbeafe;
}

.config-clean-shell{
  display:grid;
  gap:18px;
}

.config-clean-hero{
  min-height:150px;
  padding:30px;
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.08),transparent 28%),
    linear-gradient(135deg,#ffffff,#f8fbff);
}

.config-clean-hero h1{
  margin:10px 0 8px;
  font-size:36px;
  letter-spacing:-.07em;
  color:#0f172a;
}

.config-clean-hero p{
  color:#64748b;
  max-width:680px;
  line-height:1.6;
}

.config-clean-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.config-clean-card{
  padding:24px;
}

.clean-card-head{
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid #edf2f7;
}

.clean-card-head span{
  display:block;
  color:#2563eb;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:6px;
}

.clean-card-head h2{
  font-size:24px;
  letter-spacing:-.05em;
  color:#0f172a;
}

.clean-brand-box{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #dbeafe;
}

.clean-logo{
  width:68px;
  height:68px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#2563eb,#0f172a);
  color:#fff;
  font-size:24px;
  font-weight:900;
  box-shadow:0 16px 32px rgba(37,99,235,.18);
}

.clean-brand-box strong{
  display:block;
  font-size:17px;
  margin-bottom:5px;
  color:#0f172a;
}

.clean-brand-box small{
  color:#64748b;
}

.clean-security-list{
  display:grid;
  gap:14px;
}

.clean-security-list div{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid #edf2f7;
  background:#fff;
  color:#334155;
  font-weight:700;
}

.dot{
  width:12px;
  height:12px;
  border-radius:999px;
}

.dot.blue{background:#2563eb;}
.dot.green{background:#16a34a;}
.dot.orange{background:#f97316;}

@media(max-width:900px){
  .config-clean-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   CONFIGURAÇÕES LIMPA - V8.18
========================= */
.config-v8-grid,
.config-clean-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.config-v8-card,
.config-clean-card{
  min-height:220px;
}

@media(max-width:900px){
  .config-v8-grid,
  .config-clean-grid{
    grid-template-columns:1fr;
  }
}


/* =========================
   CONFIG WHITE-LABEL REAL - V8.19
========================= */
.config-real-hero,
.config-real-card,
.config-real-preview,
.branding-real-hero,
.branding-real-preview,
.branding-real-form{
  background:#fff;
  border:1px solid #dfe8f5;
  border-radius:20px;
  box-shadow:0 16px 42px rgba(15,23,42,.062);
}

.config-real-hero,
.branding-real-hero{
  min-height:165px;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
  background:
    radial-gradient(circle at 88% 18%,rgba(37,99,235,.12),transparent 28%),
    linear-gradient(135deg,#ffffff,#f5f9ff);
}

.config-real-hero h1,
.branding-real-hero h1{
  margin:12px 0 8px;
  font-size:36px;
  letter-spacing:-.07em;
  color:#071a3d;
}

.config-real-hero p,
.branding-real-hero p{
  max-width:720px;
  color:#60718d;
  line-height:1.6;
}

.config-real-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:18px;
}

.config-real-card{
  min-height:260px;
  padding:24px;
  display:grid;
  gap:16px;
  align-content:start;
  text-decoration:none;
  color:inherit;
  transition:.18s ease;
}

.config-real-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 55px rgba(37,99,235,.10);
  border-color:#cfe0fa;
}

.config-real-card > i,
.config-real-card > svg{
  width:54px!important;
  height:54px!important;
  padding:14px!important;
  border-radius:18px!important;
}

.config-real-card.identity > i,
.config-real-card.identity > svg{background:#f5f3ff!important;color:#8b5cf6!important;border:1px solid #ddd6fe!important}
.config-real-card.account > i,
.config-real-card.account > svg{background:#eef5ff!important;color:var(--blue)!important;border:1px solid #dce9fb!important}
.config-real-card.users > i,
.config-real-card.users > svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important}

.config-real-card span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.config-real-card h2{
  margin:6px 0 8px;
  color:#071a3d;
  font-size:23px;
  letter-spacing:-.055em;
}

.config-real-card p{
  color:#60718d;
  line-height:1.55;
}

.config-real-card strong{
  margin-top:auto;
  justify-self:start;
  padding:9px 12px;
  border-radius:999px;
  background:#f8fbff;
  border:1px solid #dce9fb;
  color:var(--blue);
  font-size:12px;
}

.config-real-preview{
  padding:22px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
}

.preview-brand{
  display:flex;
  align-items:center;
  gap:16px;
}

.preview-brand img{
  width:64px;
  height:64px;
  object-fit:contain;
  border-radius:18px;
  padding:8px;
  background:#fff;
  border:1px solid #dfe8f5;
}

.preview-brand span,
.preview-colors div{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.preview-brand h3{
  margin:4px 0;
  color:#071a3d;
  font-size:21px;
}

.preview-brand p{
  color:#60718d;
}

.preview-colors{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.preview-colors div{
  display:flex;
  align-items:center;
  gap:8px;
}

.preview-colors span{
  width:30px;
  height:30px;
  border-radius:10px;
  display:inline-block;
  border:1px solid #dfe8f5;
}

/* Branding page */
.branding-real-layout{
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.branding-real-preview{
  padding:24px;
  position:sticky;
  top:92px;
}

.preview-logo-box{
  width:92px;
  height:92px;
  border-radius:24px;
  padding:12px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  background:#fff;
  border:1px solid #dfe8f5;
  box-shadow:0 16px 32px rgba(15,23,42,.06);
}

.preview-logo-box img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.branding-real-preview > span{
  color:var(--blue);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.branding-real-preview h2{
  margin:8px 0 4px;
  color:#071a3d;
  letter-spacing:-.055em;
}

.branding-real-preview p{
  color:#60718d;
}

.branding-real-colors{
  margin-top:20px;
  display:grid;
  gap:10px;
}

.branding-real-colors div{
  display:flex;
  align-items:center;
  gap:10px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.branding-real-colors span{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid #dfe8f5;
}

.branding-real-form{
  padding:24px;
  background:
    radial-gradient(circle at 92% 10%,rgba(37,99,235,.07),transparent 28%),
    linear-gradient(135deg,#ffffff,#f9fbff);
}

.branding-real-form .form-title{
  margin-bottom:22px;
}

.branding-real-form .form-title i,
.branding-real-form .form-title svg{
  width:52px!important;
  height:52px!important;
  padding:13px!important;
  border-radius:17px!important;
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
}

.branding-real-form input[type="color"]{
  min-height:52px;
  padding:6px;
}

@media(max-width:980px){
  .config-real-grid,
  .branding-real-layout{
    grid-template-columns:1fr;
  }

  .branding-real-preview{
    position:relative;
    top:auto;
  }

  .config-real-preview{
    display:grid;
  }
}

@media(max-width:720px){
  .config-real-hero,
  .branding-real-hero{
    display:grid;
    padding:22px;
  }
}


/* =========================
   USUÁRIOS ÍCONES CORRIGIDOS - V8.20
========================= */
.usuarios-v8-summary-grid .users-summary-card{
  display:grid!important;
  align-content:start!important;
  gap:12px!important;
}

.usuarios-v8-summary-grid .summary-icon,
.users-summary-grid .summary-icon{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:10px!important;
  box-shadow:0 14px 28px rgba(15,23,42,.08)!important;
}

.usuarios-v8-summary-grid .summary-icon svg,
.usuarios-v8-summary-grid .summary-icon i,
.users-summary-grid .summary-icon svg,
.users-summary-grid .summary-icon i{
  width:26px!important;
  height:26px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:currentColor!important;
}

.usuarios-v8-summary-grid .summary-icon.admin,
.users-summary-grid .summary-icon.admin{
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
}

.usuarios-v8-summary-grid .summary-icon.finance,
.users-summary-grid .summary-icon.finance{
  background:#ecfdf5!important;
  color:#16a34a!important;
  border:1px solid #bbf7d0!important;
}

.usuarios-v8-summary-grid .summary-icon.billing,
.users-summary-grid .summary-icon.billing{
  background:#fff7ed!important;
  color:#f97316!important;
  border:1px solid #fed7aa!important;
}

.usuarios-v8-summary-grid .summary-icon.view,
.users-summary-grid .summary-icon.view{
  background:#f5f3ff!important;
  color:#8b5cf6!important;
  border:1px solid #ddd6fe!important;
}

.usuarios-v8-form-panel .users-panel-head > svg,
.usuarios-v8-form-panel .users-panel-head > i,
.users-form-panel .users-panel-head > svg,
.users-form-panel .users-panel-head > i{
  width:54px!important;
  height:54px!important;
  padding:14px!important;
  border-radius:18px!important;
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  box-shadow:0 14px 28px rgba(37,99,235,.10)!important;
}

.usuarios-v8-form-panel .users-help-card svg,
.usuarios-v8-form-panel .users-help-card i,
.users-help-card svg,
.users-help-card i{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  box-shadow:none!important;
  flex:0 0 auto!important;
}

.usuarios-v8-table-panel .user-actions svg,
.usuarios-v8-table-panel .user-actions i,
.users-table-panel .user-actions svg,
.users-table-panel .user-actions i{
  width:16px!important;
  height:16px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:currentColor!important;
}

.usuarios-v8-table-panel .mini-action,
.users-table-panel .mini-action{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
}


/* =========================
   LOGIN PREMIUM REFINADO - V9.0.2
========================= */
.login-agency{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37,99,235,.14), transparent 28%),
    radial-gradient(circle at 86% 78%, rgba(124,58,237,.12), transparent 28%),
    linear-gradient(135deg,#f8fbff,#eef5ff);
}

.login-agency-shell{
  width:min(1120px,100%);
  min-height:680px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  border-radius:30px;
  overflow:hidden;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(219,231,255,.9);
  box-shadow:0 34px 100px rgba(15,23,42,.14);
  backdrop-filter:blur(22px);
}

.login-agency-visual{
  position:relative;
  overflow:hidden;
  padding:48px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg,#06357e,#071a3d);
  color:#fff;
}

.login-agency-visual:after{
  content:"";
  position:absolute;
  right:38px;
  top:52px;
  width:320px;
  height:140px;
  opacity:.2;
  background:
    linear-gradient(135deg,transparent 0 18%,rgba(255,255,255,.45) 18% 19%,transparent 19% 38%,rgba(255,255,255,.45) 38% 39%,transparent 39%),
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 64% 37%, rgba(255,255,255,.75) 0 3px, transparent 4px),
    radial-gradient(circle at 44% 24%, rgba(255,255,255,.55) 0 3px, transparent 4px);
}

.login-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(2px);
  opacity:.42;
}

.login-orb-one{
  width:190px;
  height:190px;
  left:-60px;
  top:-60px;
  background:#60a5fa;
}

.login-orb-two{
  width:240px;
  height:240px;
  right:-90px;
  bottom:-90px;
  background:#8b5cf6;
}

.login-agency-logo-card,
.login-agency-copy,
.login-agency-mini-panel{
  position:relative;
  z-index:2;
}

.login-agency-logo-card{
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  border-radius:26px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 20px 50px rgba(0,0,0,.16);
}

.login-agency-logo{
  max-width:70px;
  max-height:70px;
  object-fit:contain;
}

.login-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.16);
  color:#dbeafe;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.login-agency-heading .login-eyebrow{
  background:#eef5ff;
  border-color:#dce9fb;
  color:#2563eb;
}

.login-agency-copy h1{
  max-width:520px;
  margin:18px 0 14px;
  font-size:42px;
  line-height:1.02;
  letter-spacing:-.075em;
  color:#fff;
}

.login-agency-copy p{
  max-width:520px;
  color:#dbeafe;
  line-height:1.7;
}

.login-agency-mini-panel{
  max-width:360px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
}

.login-agency-mini-panel span{
  display:block;
  color:#bfdbfe;
  font-size:12px;
  font-weight:800;
  margin-bottom:3px;
}

.login-agency-mini-panel strong{
  color:#fff;
  font-size:18px;
}

.login-agency-card{
  padding:52px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}

.login-agency-heading h2{
  margin:18px 0 8px;
  font-size:34px;
  letter-spacing:-.065em;
  color:#071a3d;
}

.login-agency-heading p{
  color:#60718d;
  line-height:1.6;
}

.login-agency-form{
  margin-top:30px;
  display:grid;
  gap:18px;
}

.login-agency-form label{
  display:grid;
  gap:8px;
}

.login-agency-form label > span{
  color:#344766;
  font-size:13px;
  font-weight:900;
}

.login-agency-input{
  min-height:56px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid #dbe5f2;
  background:#f8fbff;
  transition:.18s ease;
}

.login-agency-input:focus-within{
  background:#fff;
  border-color:#93b7ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.login-agency-input i,
.login-agency-input svg{
  width:36px!important;
  height:36px!important;
  padding:9px!important;
  border-radius:12px!important;
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  flex:0 0 auto;
}

.login-agency-input input{
  width:100%;
  min-height:54px;
  border:0;
  outline:0;
  background:transparent;
  font-family:Sora,Arial,sans-serif;
  color:#071a3d;
}

.login-agency-submit{
  margin-top:4px;
  min-height:56px;
  border:0;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  font-family:Sora,Arial,sans-serif;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 20px 42px rgba(37,99,235,.24);
  transition:.18s ease;
}

.login-agency-submit:hover{
  transform:translateY(-1px);
  box-shadow:0 24px 52px rgba(37,99,235,.30);
}

.login-agency-submit svg,
.login-agency-submit i{
  width:18px!important;
  height:18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:#fff!important;
}

.login-agency-note{
  margin-top:22px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid #dce9fb;
  color:#60718d;
  font-size:12px;
  font-weight:800;
}

.login-agency-note i,
.login-agency-note svg{
  width:38px!important;
  height:38px!important;
  padding:9px!important;
  border-radius:13px!important;
  background:#eef5ff!important;
  color:#2563eb!important;
  border:1px solid #dce9fb!important;
  flex:0 0 auto;
}

.login-agency-mobile-logo{
  display:none;
}

@media(max-width:980px){
  .login-agency{
    padding:18px;
  }

  .login-agency-shell{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .login-agency-visual{
    display:none;
  }

  .login-agency-card{
    padding:34px 24px;
  }

  .login-agency-mobile-logo{
    display:grid;
    width:76px;
    height:76px;
    place-items:center;
    margin-bottom:20px;
    border-radius:22px;
    background:#f8fbff;
    border:1px solid #dce9fb;
  }

  .login-agency-mobile-logo img{
    max-width:58px;
    max-height:58px;
    object-fit:contain;
  }

  .login-agency-heading h2{
    font-size:30px;
  }
}


/* =========================
   LOGIN ALINHAMENTO FINO - V9.1
========================= */
.login-agency{
  padding:28px!important;
}

.login-agency-shell{
  width:min(1080px,100%)!important;
  min-height:640px!important;
  grid-template-columns:1fr 440px!important;
  align-items:stretch!important;
}

.login-agency-visual{
  padding:46px!important;
}

.login-agency-logo-card{
  width:82px!important;
  height:82px!important;
  border-radius:24px!important;
}

.login-agency-logo{
  max-width:64px!important;
  max-height:64px!important;
}

.login-agency-copy{
  margin-top:auto!important;
  margin-bottom:36px!important;
}

.login-agency-copy h1{
  font-size:40px!important;
  max-width:560px!important;
}

.login-agency-copy p{
  max-width:500px!important;
}

.login-agency-mini-panel{
  width:100%!important;
  max-width:380px!important;
}

.login-agency-card{
  padding:50px 46px!important;
  justify-content:center!important;
}

.login-agency-heading{
  margin-bottom:4px!important;
}

.login-agency-heading h2{
  font-size:32px!important;
  line-height:1.05!important;
}

.login-agency-heading p{
  max-width:360px!important;
}

.login-agency-form{
  margin-top:26px!important;
  gap:16px!important;
}

.login-agency-input{
  min-height:54px!important;
}

.login-agency-input input{
  min-height:52px!important;
}

.login-agency-submit{
  min-height:54px!important;
}

.login-agency-note{
  margin-top:18px!important;
  align-items:flex-start!important;
}

.login-agency-note span{
  line-height:1.45!important;
}

.alert{
  margin:18px 0 0!important;
}

@media(max-width:1100px){
  .login-agency-shell{
    grid-template-columns:1fr 420px!important;
  }

  .login-agency-card{
    padding:42px 36px!important;
  }
}

@media(max-width:980px){
  .login-agency{
    padding:18px!important;
    align-items:flex-start!important;
  }

  .login-agency-shell{
    width:100%!important;
    grid-template-columns:1fr!important;
    min-height:auto!important;
    border-radius:24px!important;
  }

  .login-agency-card{
    min-height:auto!important;
    padding:34px 24px!important;
  }

  .login-agency-heading h2{
    font-size:30px!important;
  }

  .login-agency-heading p{
    max-width:none!important;
  }

  .login-agency-form{
    margin-top:22px!important;
  }

  .login-agency-mobile-logo{
    margin-bottom:18px!important;
  }
}

@media(max-width:520px){
  .login-agency{
    padding:12px!important;
  }

  .login-agency-shell{
    border-radius:20px!important;
  }

  .login-agency-card{
    padding:28px 18px!important;
  }

  .login-agency-heading h2{
    font-size:27px!important;
  }

  .login-agency-note{
    display:grid!important;
  }
}


/* =========================
   POWERED BY + SUPORTE UNDERLINE - V9.2
========================= */
.login-agency-note{
  display:grid!important;
  grid-template-columns:38px 1fr!important;
  gap:12px!important;
}

.login-agency-note > span{
  align-self:center!important;
}

.login-agency-note a{
  color:#2563eb;
  text-decoration:none;
  font-weight:900;
}

.login-agency-note a:hover{
  color:#1d4ed8;
}

.login-agency-links{
  grid-column:2;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:4px;
}

.login-agency-links a{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dce9fb;
  color:#344766;
  font-size:11px;
  font-weight:900;
  transition:.18s ease;
}

.login-agency-links a:hover{
  transform:translateY(-1px);
  border-color:#93b7ff;
  color:#2563eb;
  box-shadow:0 8px 18px rgba(37,99,235,.10);
}

.login-agency-links svg,
.login-agency-links i{
  width:14px!important;
  height:14px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:currentColor!important;
}

.config-real-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.config-real-card.platform > i,
.config-real-card.platform > svg{
  background:#fff7ed!important;
  color:#f97316!important;
  border:1px solid #fed7aa!important;
}

.config-real-card.platform strong{
  color:#f97316;
  border-color:#fed7aa;
  background:#fff7ed;
}

.setup-under-footer{
  width:min(980px,calc(100% - 32px));
  margin:18px auto 34px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  border:1px solid #dbe7ff;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  color:#64748b;
  font-family:Sora,Arial,sans-serif;
  font-size:12px;
  font-weight:800;
}

.setup-under-footer a{
  color:#2563eb;
  text-decoration:none;
  font-weight:900;
}

.setup-under-footer div{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

@media(max-width:1180px){
  .config-real-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .login-agency-note{
    grid-template-columns:1fr!important;
  }

  .login-agency-links{
    grid-column:1;
  }

  .setup-under-footer{
    display:grid;
  }

  .config-real-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   INSTAGRAM SVG INLINE FIX - V9.2.2
========================= */
.login-agency-links .inline-instagram-icon{
  width:14px!important;
  height:14px!important;
  display:inline-block!important;
  flex:0 0 auto!important;
  color:currentColor!important;
}


/* =========================
   FIX ALINHAMENTO PREVISÃO DE CAIXA - FINAL
========================= */
.forecast-v8-hero{
  align-items:center!important;
}

.forecast-v8-form{
  width:430px!important;
  min-width:430px!important;
  max-width:430px!important;
  grid-template-columns:1fr 1fr!important;
  align-items:start!important;
  gap:12px!important;
}

.forecast-v8-form label{
  min-width:0!important;
  align-self:start!important;
}

.forecast-v8-form input,
.forecast-v8-form select{
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  line-height:52px!important;
  display:block!important;
  box-sizing:border-box!important;
}

.forecast-v8-form .saldo-real-hint{
  grid-column:1 / -1!important;
  display:block!important;
  margin-top:0!important;
  line-height:1.35!important;
}

.forecast-v8-form button{
  grid-column:1 / -1!important;
  width:100%!important;
  min-height:54px!important;
  margin-top:0!important;
}

@media(max-width:980px){
  .forecast-v8-form{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}

@media(max-width:640px){
  .forecast-v8-form{
    grid-template-columns:1fr!important;
  }
}


/* =========================
   DASHBOARD EXECUTIVO RESPIRO FINAL
   Remove espaço em branco após exclusão do cliente destaque
========================= */
.executive-v8-grid{
  display:grid!important;
  grid-template-columns:minmax(300px,1.25fr) repeat(3,minmax(220px,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}

.executive-v8-main,
.executive-v8-card{
  height:100%!important;
  min-height:215px!important;
}

.executive-v8-card{
  padding:24px!important;
  align-content:space-between!important;
}

.executive-v8-card strong{
  font-size:28px!important;
  line-height:1.08!important;
}

.executive-v8-card small{
  line-height:1.45!important;
}

@media(min-width:1400px){
  .executive-v8-grid{
    grid-template-columns:minmax(360px,1.35fr) repeat(3,minmax(260px,1fr))!important;
  }
}

@media(max-width:1180px){
  .executive-v8-grid{
    grid-template-columns:1fr 1fr!important;
  }

  .executive-v8-main{
    grid-column:1 / -1!important;
  }
}

@media(max-width:640px){
  .executive-v8-grid{
    grid-template-columns:1fr!important;
  }

  .executive-v8-main{
    grid-column:auto!important;
  }
}


/* =========================
   FIX LOGO LOGIN ALINHADA
========================= */
.login-agency-logo-card{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:12px!important;
  overflow:hidden!important;
}

.login-agency-logo-card img,
.login-agency-logo{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:64px!important;
  max-height:64px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto!important;
}

.login-agency-mobile-logo{
  display:none;
  align-items:center!important;
  justify-content:center!important;
  padding:10px!important;
  overflow:hidden!important;
}

.login-agency-mobile-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:56px!important;
  max-height:56px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto!important;
}

@media(max-width:980px){
  .login-agency-mobile-logo{
    display:flex!important;
  }
}

/* Underline Finance - Missão 1: edição segura de receitas/despesas */
.form-action-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.is-hidden{
  display:none!important;
}
.edit-current-file{
  display:block;
  margin-top:4px;
  color:#8aa0bd;
  font-size:11px;
  font-weight:800;
}
.compact-actions .edit-action{
  color:var(--blue,#2563eb);
  background:#eef5ff;
  border-color:#dbeafe;
}
@media(max-width:760px){
  .form-action-group{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
  }
}
