.plan-limit-panel{max-width:680px}.plan-limit-usage{display:flex;align-items:center;gap:12px;padding:14px 16px;margin-bottom:20px;border-radius:14px;background:rgba(255,181,45,.13);color:#ffbd4a}.plan-limit-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:16px 0 22px;list-style:none}.plan-limit-benefits li{display:flex;gap:9px;align-items:center}.plan-limit-benefits i{color:#21c58b}.plan-limit-prices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.plan-limit-prices span{display:flex;flex-direction:column;padding:15px;border:1px solid rgba(120,145,210,.35);border-radius:14px}.plan-limit-prices strong{font-size:1.25rem}.plan-limit-admin-note{margin:14px 0 0;font-size:.88rem;opacity:.72}.plan-limit-modal .subscription-save-button{text-decoration:none}@media(max-width:640px){.plan-limit-benefits,.plan-limit-prices{grid-template-columns:1fr}}

.plan-limit-modal .subscription-save-button,.plan-limit-modal .subscription-save-button:link,.plan-limit-modal .subscription-save-button:visited,.plan-limit-modal .subscription-save-button:hover,.plan-limit-modal .subscription-save-button:focus,.plan-limit-modal .subscription-save-button:active{background:#3269ed!important;color:#fff!important;text-decoration:none!important}.plan-limit-modal .subscription-save-button i{color:#fff!important}

.credit-hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.credit-new-card-button,.credit-new-expense-button{display:inline-flex;min-height:50px;padding:0 18px;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(255,255,255,.3);border-radius:13px;font-weight:800;text-decoration:none}.credit-new-card-button{background:#fff;color:#245bd7}.credit-new-expense-button{background:rgba(255,255,255,.14);color:#fff!important}.invoice-report-section{margin-top:22px;padding:26px;border:1px solid var(--of-border);border-radius:24px;background:var(--of-surface);box-shadow:var(--of-shadow)}.invoice-report-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--of-border)}.invoice-report-heading h2{margin:4px 0;color:var(--of-ink);font-size:1.55rem}.invoice-report-heading p{margin:0;color:var(--of-muted)}.invoice-report-count{padding:8px 12px;border-radius:99px;background:#eaf0ff;color:#245bd7;font-weight:800;white-space:nowrap}.invoice-list--expanded{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.invoice-list--expanded .goal-empty{grid-column:1/-1}.invoice-list--expanded .invoice-card{min-height:210px;padding:22px}.credit-card-modal[hidden]{display:none}.credit-card-modal{position:fixed;z-index:16000;inset:0;display:grid;place-items:center;padding:20px}.credit-card-modal__backdrop{position:absolute;inset:0;background:rgba(5,12,27,.74);backdrop-filter:blur(5px)}.credit-card-modal__panel{position:relative;width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;border:1px solid #d8e1ef;border-radius:24px;background:#fff;color:#17213a;box-shadow:0 30px 80px rgba(0,0,0,.35)}.credit-card-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid #dfe5f0}.credit-card-modal__header h2{margin:4px 0}.credit-card-modal__header p{margin:0;color:#748097}.credit-card-modal__close{display:grid;place-items:center;flex:none;width:42px;height:42px;border:0;border-radius:12px;background:#edf1f7;color:#3d4960;font-size:18px}.credit-card-modal__form{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:26px 28px}.credit-card-modal__form label{display:flex;flex-direction:column;gap:8px;margin:0;color:#65728d;font-weight:700}.credit-card-modal__form input,.credit-card-modal__form select{width:100%;min-height:52px;padding:11px 14px;border:1px solid #ccd6e6;border-radius:13px;background:#f7f9fd;color:#17213a}.credit-card-modal__form .span-2{grid-column:1/-1}.credit-card-modal__form footer{display:flex;justify-content:flex-end;gap:12px;padding-top:6px}.credit-card-modal__cancel,.credit-card-modal__save{min-height:48px;padding:0 18px;border:0;border-radius:12px;font-weight:800}.credit-card-modal__cancel{background:#e9edf3;color:#3d4960}.credit-card-modal__save{background:#3269ed;color:#fff}.credit-card-modal-open{overflow:hidden}.dark_theme .invoice-report-section,.dark_theme .credit-card-modal__panel{background:#222d49;border-color:#405071;color:#f7f9ff}.dark_theme .invoice-report-heading{border-color:#344263}.dark_theme .invoice-report-count{background:#1a3978;color:#bcd0ff}.dark_theme .credit-card-modal__header{border-color:#344263}.dark_theme .credit-card-modal__close{background:#172039;color:#fff}.dark_theme .credit-card-modal__form label{color:#9eabc3}.dark_theme .credit-card-modal__form input,.dark_theme .credit-card-modal__form select{background:#151d34;border-color:#3a496d;color:#fff}@media(max-width:900px){.invoice-list--expanded{grid-template-columns:1fr}}@media(max-width:767px){.credit-hero-actions{display:grid;width:100%;grid-template-columns:1fr}.credit-new-card-button,.credit-new-expense-button{width:100%}.invoice-report-section{padding:18px;border-radius:18px}.invoice-report-heading{flex-direction:column}.credit-card-modal{padding:10px}.credit-card-modal__panel{max-height:calc(100vh - 20px);border-radius:18px}.credit-card-modal__header,.credit-card-modal__form{padding:20px}.credit-card-modal__form{grid-template-columns:1fr}.credit-card-modal__form .span-2{grid-column:auto}.credit-card-modal__form footer{position:sticky;bottom:-20px;margin:4px -20px -20px;padding:14px 20px;background:inherit;border-top:1px solid #344263}.credit-card-modal__cancel,.credit-card-modal__save{flex:1}}

.credit-card-modal__panel{width:min(720px,calc(100vw - 40px));max-width:100%;overflow-x:hidden;overflow-y:auto;box-sizing:border-box}.credit-card-modal__form{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;box-sizing:border-box}.credit-card-modal__form label{min-width:0}.credit-card-modal__form input,.credit-card-modal__form select{display:block;min-width:0;max-width:100%;box-sizing:border-box}@media(max-width:767px){.credit-card-modal__panel{width:calc(100vw - 20px)}.credit-card-modal__form{grid-template-columns:minmax(0,1fr)}}

.invoice-detail-button{display:inline-flex;min-height:44px;padding:0 14px;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(71,119,255,.35);border-radius:11px;background:rgba(71,119,255,.1);color:#4777ff!important;font-weight:800;text-decoration:none!important}.invoice-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.invoice-detail-summary article{display:flex;min-height:132px;padding:20px;flex-direction:column;border:1px solid var(--of-border);border-radius:20px;background:var(--of-surface);box-shadow:var(--of-shadow)}.invoice-detail-summary span,.invoice-detail-summary small{color:var(--of-muted)}.invoice-detail-summary strong{margin:10px 0 6px;color:var(--of-ink);font-size:1.45rem}.invoice-detail-summary .is-current{border-color:rgba(71,119,255,.38)}.invoice-detail-summary .is-current strong{color:#4777ff}.invoice-statement-card{overflow:hidden;border:1px solid var(--of-border);border-radius:24px;background:var(--of-surface);box-shadow:var(--of-shadow)}.invoice-statement-card>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid var(--of-border)}.invoice-statement-card>header h2{margin:4px 0 0;color:var(--of-ink)}.invoice-statement-card>header>strong{color:var(--of-ink);font-size:1.1rem}.invoice-statement-table-wrap{overflow-x:auto}.invoice-statement-table{width:100%;min-width:760px;border-collapse:collapse}.invoice-statement-table th,.invoice-statement-table td{padding:15px 18px;border-bottom:1px solid var(--of-border);color:var(--of-ink);text-align:left}.invoice-statement-table th{color:var(--of-muted);font-size:.78rem;text-transform:uppercase}.invoice-statement-table th:last-child,.invoice-statement-table td:last-child{text-align:right}.invoice-statement-empty{display:grid;place-items:center;gap:10px;padding:42px;color:var(--of-muted)}.invoice-detail-pay{display:flex;align-items:end;justify-content:flex-end;gap:12px;padding:20px 24px}.invoice-detail-pay label{display:flex;flex-direction:column;gap:7px;color:var(--of-muted);font-weight:700}.invoice-detail-pay input{min-height:46px;padding:8px 12px;border:1px solid var(--of-border);border-radius:11px;background:var(--of-bg);color:var(--of-ink)}.invoice-detail-pay button{min-height:46px;padding:0 18px;border:0;border-radius:11px;background:#36c995;color:#fff;font-weight:800}.dark_theme .invoice-statement-card,.dark_theme .invoice-detail-summary article{background:#222d49;border-color:#405071}@media(max-width:1100px){.invoice-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.invoice-detail-summary{grid-template-columns:1fr}.invoice-statement-card>header,.invoice-detail-pay{align-items:stretch;flex-direction:column}.invoice-detail-pay button{width:100%}}

.invoice-list--expanded{grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr))}.invoice-list--expanded .invoice-card{display:flex;min-width:0;min-height:320px;flex-direction:column}.invoice-card-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:2px 0 16px}.invoice-card-details>span{display:flex;min-width:0;padding:11px 12px;flex-direction:column;border-radius:11px;background:rgba(106,128,177,.08)}.invoice-card-details small{color:var(--of-muted);font-size:.7rem}.invoice-card-details strong{margin-top:3px;color:var(--of-ink);font-size:.83rem}.invoice-card-pay{display:grid;grid-template-columns:minmax(190px,1fr) 160px;align-items:end;gap:12px;margin-top:auto}.invoice-card-pay label{display:flex;min-width:0;flex-direction:column;gap:7px;margin:0;color:var(--of-muted);font-size:.76rem;font-weight:800}.invoice-card-pay input,.invoice-card-pay button{width:100%;height:56px!important;min-height:56px!important;box-sizing:border-box;border-radius:12px}.invoice-card-pay input{padding:0 14px;border:1px solid var(--of-border);background:var(--of-bg);color:var(--of-ink);font-weight:700}.invoice-card-pay button{display:inline-flex;padding:0 14px;align-items:center;justify-content:center;gap:8px;border:0;background:#36c995;color:#fff;font-weight:800}.invoice-card .invoice-detail-button{width:100%;margin-top:12px;box-sizing:border-box}.dark_theme .invoice-card-details>span{background:rgba(112,139,199,.09)}@media(max-width:620px){.invoice-card-details{grid-template-columns:1fr 1fr}.invoice-card-pay{grid-template-columns:1fr}.invoice-list--expanded .invoice-card{min-height:0}}

.invoice-card-actions{display:grid;grid-template-columns:minmax(360px,1fr) minmax(230px,280px);align-items:end;gap:12px;margin-top:auto}.invoice-card-actions .invoice-card-pay{margin-top:0}.invoice-card-actions .invoice-detail-button{height:56px;min-height:56px;margin-top:0;padding:0 16px;white-space:nowrap}.invoice-card-actions>.invoice-detail-button:only-child{grid-column:1/-1}@media(max-width:900px){.invoice-card-actions{grid-template-columns:1fr}.invoice-card-actions .invoice-card-pay{grid-template-columns:minmax(190px,1fr) 160px}}@media(max-width:620px){.invoice-card-actions .invoice-card-pay{grid-template-columns:1fr}.invoice-card-actions .invoice-detail-button{height:auto;min-height:56px;white-space:normal}}

.invoice-card-actions{grid-template-columns:240px 190px minmax(280px,1fr);align-items:end}.invoice-card-actions .invoice-card-pay{display:contents!important}.invoice-card-actions .invoice-card-pay label{grid-column:1}.invoice-card-actions .invoice-card-pay button{grid-column:2}.invoice-card-actions>.invoice-detail-button{grid-column:3;width:100%;min-width:0}.invoice-card-actions>.invoice-detail-button:only-child{grid-column:1/-1}@media(max-width:1100px){.invoice-card-actions{grid-template-columns:210px 180px minmax(230px,1fr)}.invoice-card-actions .invoice-detail-button{padding:0 10px;font-size:.78rem}}@media(max-width:767px){.invoice-card-actions{grid-template-columns:minmax(0,1fr) minmax(150px,.7fr)}.invoice-card-actions .invoice-card-pay label{grid-column:1}.invoice-card-actions .invoice-card-pay button{grid-column:2}.invoice-card-actions>.invoice-detail-button{grid-column:1/-1}}@media(max-width:520px){.invoice-card-actions{grid-template-columns:1fr}.invoice-card-actions .invoice-card-pay label,.invoice-card-actions .invoice-card-pay button,.invoice-card-actions>.invoice-detail-button{grid-column:1}}

:root {
  --of-primary: #2563eb;
  --of-primary-dark: #1d4ed8;
  --of-ink: #172033;
  --of-muted: #6b7280;
  --of-border: #e5eaf2;
  --of-surface: #ffffff;
  --of-bg: #f4f7fb;
  --of-income: #059669;
  --of-expense: #e05555;
  --of-radius: 18px;
  --of-shadow: 0 12px 32px rgba(26, 39, 67, .08);
}

/* Paleta global do aplicativo no tema dark. */
body.dark_theme {
  --of-primary:#3366ff;
  --of-primary-dark:#2851cc;
  --of-ink:#ffffff;
  --of-muted:#aeb8d0;
  --of-border:#303a58;
  --of-surface:#222b45;
  --of-bg:#151a30;
  --of-income:#24c78e;
  --of-expense:#ff6376;
  --of-shadow:0 12px 30px rgba(4,8,24,.22);
  background:var(--of-bg) !important;
  color:var(--of-ink);
}

body { background: var(--of-bg); color: var(--of-ink); }
.page-header-actions { display:flex; flex:0 0 auto; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:.65rem; }
.page-back-button { display:inline-flex; min-height:44px; padding:.65rem .9rem; align-items:center; justify-content:center; gap:.45rem; border:1px solid rgba(255,255,255,.22); border-radius:11px; background:rgba(255,255,255,.12); color:#fff !important; font-size:.8rem; font-weight:700; text-decoration:none; transition:background .18s ease,transform .18s ease; }
.page-back-button:hover { background:rgba(255,255,255,.2); color:#fff; text-decoration:none; transform:translateY(-1px); }
.app-footer { display:flex; align-items:center; justify-content:center; gap:1rem; width:100%; margin:2rem 0 0 !important; padding:1.1rem 0 .25rem; border-top:1px solid var(--of-border); color:var(--of-muted); font-size:.76rem; text-align:center; }
.app-footer.row { margin-right:0; margin-left:0; }
.app-footer a { color:var(--of-primary); font-weight:700; }
.dark_theme .app-footer { border-top-color:var(--of-border); color:var(--of-muted); }
@media (max-width:767px) { .page-header-actions,.page-header-actions > a,.page-back-button { width:100%; } .app-footer { align-items:flex-start; flex-direction:column; padding-bottom:1rem; } }
.main-content { padding: 2rem !important; max-width: 1500px; margin: 0 auto; }
.dashboard-topbar { min-height:64px; height:64px; padding:.35rem 1.25rem !important; align-items:center; }
.dashboard-topbar .navbar-collapse { height:100%; align-items:center; }
.dashboard-topbar__spacer { flex:1 1 auto; }
.dashboard-topbar .navbar-profile { margin-left:.65rem !important; }
.dashboard-topbar .navbar-profile .nav-item { display:flex; align-items:center; }
.dashboard-topbar .navbar-profile .nav-link { display:flex !important; align-items:center; gap:.35rem; margin:0 !important; padding:.15rem .35rem !important; }
.dashboard-topbar .navbar-profile .nav-link::after { margin:0 0 0 .15rem !important; align-self:center; }
.dashboard-topbar .profile-picture { float:none !important; margin:0 !important; }
.dashboard-topbar .profile-picture,
.dashboard-topbar .profile-picture img { width:42px !important; height:42px !important; }
.app-topbar .account-menu { display:flex; align-items:center; }
.app-topbar .account-menu .nav-link { border-radius:50%; }
.account-menu { position:relative !important; }
.account-menu__avatar { display:grid; width:38px; height:38px; border:1px solid var(--of-border); border-radius:50%; background:var(--of-surface); color:var(--of-primary); font-size:.95rem; place-items:center; box-shadow:0 4px 12px rgba(26,39,67,.08); }
.account-popover { right:0 !important; left:auto !important; width:min(300px,calc(100vw - 24px)) !important; min-width:0 !important; margin-top:.55rem !important; padding:.65rem !important; overflow:hidden; border:1px solid var(--of-border) !important; border-radius:16px !important; background:var(--of-surface) !important; box-shadow:0 18px 45px rgba(23,32,51,.18) !important; color:var(--of-ink); }
.account-popover__header { display:flex; align-items:center; gap:.75rem; padding:.55rem .6rem .7rem; }
.account-popover__avatar { display:grid; flex:0 0 42px; width:42px; height:42px; border-radius:13px; background:rgba(37,99,235,.11); color:var(--of-primary); place-items:center; }
.account-popover__header > span:last-child { min-width:0; }
.account-popover__header strong,.account-popover__header small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-popover__header strong { color:var(--of-ink); font-size:.9rem; font-weight:700; }
.account-popover__header small { margin-top:.15rem; color:var(--of-muted); font-size:.72rem; }
.account-popover__divider { height:1px; margin:.1rem .35rem .4rem; background:var(--of-border); }
.account-popover li form { margin:0; }
.account-popover .account-popover__item { display:flex !important; align-items:center; gap:.7rem; width:100%; min-height:46px; margin:.1rem 0; padding:.65rem .7rem !important; border:0; border-radius:10px; background:transparent !important; color:var(--of-ink) !important; font-size:.82rem; font-weight:600; text-align:left; text-transform:none; letter-spacing:0; }
.account-popover__item i { display:grid; flex:0 0 30px; width:30px; height:30px; border-radius:9px; background:var(--of-bg); color:var(--of-muted); place-items:center; }
.account-popover .account-popover__item:hover,.account-popover .account-popover__item:focus { background:var(--of-bg) !important; color:var(--of-primary) !important; }
.account-popover .account-popover__item:hover i,.account-popover .account-popover__item:focus i{background:rgba(37,99,235,.14);color:var(--of-primary)}
.dark_theme .account-popover .account-popover__item:hover,.dark_theme .account-popover .account-popover__item:focus{background:rgba(92,130,255,.18)!important;color:#fff!important;outline:none}
.dark_theme .account-popover .account-popover__item:hover i,.dark_theme .account-popover .account-popover__item:focus i{background:rgba(92,130,255,.25);color:#9db5ff}
.account-popover .account-popover__logout { color:var(--of-expense) !important; }
.account-popover__logout i { background:rgba(224,85,85,.1); color:var(--of-expense); }
.account-popover .account-popover__logout:hover,.account-popover .account-popover__logout:focus { background:rgba(224,85,85,.08) !important; color:var(--of-expense) !important; }
.dark_theme .account-menu__avatar { box-shadow:0 4px 14px rgba(4,8,24,.28); }
.dark_theme .account-popover { box-shadow:0 18px 45px rgba(4,8,24,.42) !important; }
.topbar-actions { display:flex; align-items:center; gap:.55rem; margin-left:auto; }
.topbar-icon-button { position:relative; display:inline-grid; flex:0 0 42px; width:42px; height:42px; padding:0; place-items:center; border:1px solid var(--of-border); border-radius:13px; background:var(--of-surface); color:var(--of-ink); font-size:1rem; line-height:1; text-decoration:none !important; cursor:pointer; transition:border-color .18s ease,color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.topbar-icon-button:hover,.topbar-icon-button:focus-visible { border-color:var(--of-primary); background:#edf3ff; color:var(--of-primary); transform:translateY(-1px); box-shadow:0 8px 20px rgba(37,99,235,.13); outline:0; }
.theme-toggle-form { margin:0; }
.theme-toggle.topbar-icon-button { min-width:42px; min-height:42px; padding:0; justify-content:center; }
.topbar-alert-badge { position:absolute; top:-5px; right:-6px; display:grid; min-width:20px; height:20px; padding:0 5px; place-items:center; border:2px solid var(--of-surface); border-radius:999px; background:#ef5261; color:#fff; font-size:.62rem; font-weight:800; line-height:1; box-sizing:border-box; }
.dashboard-topbar .navbar-profile { margin:0 !important; }
.dashboard-topbar .navbar-profile .nav-link { min-height:48px; gap:.7rem; padding:.2rem .3rem .2rem .65rem !important; border:1px solid transparent; border-radius:15px; color:var(--of-ink) !important; }
.dashboard-topbar .navbar-profile .nav-link:hover,.dashboard-topbar .navbar-profile .nav-link:focus { border-color:var(--of-border); background:var(--of-surface); }
.dashboard-topbar .profile-name { display:flex; max-width:230px; min-width:0; flex-direction:column; align-items:flex-end; justify-content:center; line-height:1.15; text-align:right; }
.dashboard-topbar .profile-name strong,.dashboard-topbar .profile-name small { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-topbar .profile-name strong { color:var(--of-ink); font-size:.82rem; font-weight:800; text-transform:uppercase; }
.dashboard-topbar .profile-name small { margin-top:.2rem; color:var(--of-muted); font-size:.66rem; font-weight:600; }
.dashboard-topbar .mobile-plan-badge{display:inline-flex;max-width:92px;padding:.25rem .5rem;align-items:center;overflow:hidden;border:1px solid rgba(93,132,255,.38);border-radius:999px;background:rgba(75,119,245,.13);color:#7093ff;font-size:.64rem;font-weight:800;line-height:1;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:992px){.dashboard-topbar .mobile-plan-badge{display:none}}
@media(max-width:767.98px){.dashboard-topbar .mobile-plan-badge{max-width:72px;padding:.22rem .42rem;font-size:.6rem}.dashboard-topbar .account-menu .nav-link{gap:.35rem}}
.dashboard-topbar .profile-picture { overflow:hidden; border:2px solid rgba(37,99,235,.35); border-radius:50%; background:var(--of-bg) !important; }
.dashboard-topbar .profile-picture img { display:block; object-fit:cover; }
.avatar-sprite{background-image:url('../img/avatars/avatar-gallery-approved.png')!important;background-size:500% 400%!important;background-position:calc(var(--avatar-x)*25%) calc(var(--avatar-y)*33.333%)!important;background-repeat:no-repeat!important;color:transparent!important}.topbar-user-avatar{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#315fcf;color:#fff;font-weight:900}.avatar-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:12px;margin-top:16px}.avatar-choice{display:grid;gap:7px;place-items:center;padding:10px;border:1px solid var(--of-border);border-radius:14px;cursor:pointer}.avatar-choice>input{position:absolute;opacity:0}.avatar-choice>span{display:grid;width:64px;height:64px;place-items:center;border:3px solid transparent;border-radius:50%;background:#315fcf;color:#fff;font-size:24px;font-weight:900}.avatar-choice:has(input:checked){border-color:#6287ff;background:rgba(75,119,245,.1)}.avatar-choice:has(input:checked)>span{border-color:#6287ff}.avatar-choice small{text-align:center;color:var(--of-muted)}
.dark_theme .topbar-icon-button { border-color:#3a4666; background:#1b233b; color:#e6ebf7; }
.dark_theme .topbar-icon-button:hover,.dark_theme .topbar-icon-button:focus-visible { border-color:#668cff; background:#202d4d; color:#8eabff; }
.dark_theme .topbar-alert-badge { border-color:#1b233b; }
@media(max-width:991.98px){
  .dashboard-topbar>.topbar-alert-button{margin-left:auto!important;margin-right:.25rem}
}
@media(max-width:767.98px){
  .dashboard-topbar>.topbar-alert-button{width:40px;height:40px;flex-basis:40px;border-radius:12px}
  .topbar-alert-badge{top:-4px;right:-5px}
}
.pwa-install-button[hidden] { display:none !important; }
.pwa-install-button { align-items:center; justify-content:center; gap:.5rem; border:1px solid transparent; border-radius:10px; background:var(--of-primary); color:#fff; font-weight:700; cursor:pointer; transition:background .18s ease, transform .18s ease, box-shadow .18s ease; }
.pwa-install-button:hover { background:var(--of-primary-dark); color:#fff; transform:translateY(-1px); box-shadow:0 8px 18px rgba(37,99,235,.2); }
.pwa-install-button:focus-visible { outline:3px solid rgba(37,99,235,.3); outline-offset:2px; }
.pwa-install-button--topbar { min-height:40px; margin:0 .65rem 0 0; padding:.55rem .8rem; font-size:.78rem; text-transform:none; letter-spacing:0; }
.pwa-install-button--login { display:flex; width:100%; min-height:46px; margin-top:.8rem; padding:.7rem 1rem; border-color:#cbd5e1; background:#fff; color:#1d4ed8; }
.pwa-install-button--login:hover { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; }
.dashboard-hero { display:flex; align-items:center; justify-content:space-between; gap:2rem; margin-bottom:1rem; padding:1.3rem 1.4rem; border:1px solid var(--of-border); border-radius:var(--of-radius); background:var(--of-surface); box-shadow:var(--of-shadow); }
.dashboard-hero h1 { margin:.12rem 0 .25rem; font-size:clamp(1.55rem,2.3vw,2rem); font-weight:700; line-height:1.15; color:var(--of-ink); }
.dashboard-hero p { margin:0; color:var(--of-muted); max-width:610px; font-size:.88rem; }
.dashboard-hero__meta { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.8rem; }
.dashboard-hero__meta span { display:inline-flex; align-items:center; gap:.45rem; padding:.35rem .65rem; border-radius:999px; background:#edf3ff; color:var(--of-primary-dark); font-size:.75rem; font-weight:700; }
.eyebrow { color: var(--of-primary); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.period-filter { min-width: 315px; }
.period-filter label { display: block; margin: 0 0 .45rem; color: var(--of-muted); font-size: .78rem; font-weight: 600; }
.period-filter__control { display: flex; padding: .35rem; border: 1px solid var(--of-border); border-radius: 14px; background: var(--of-surface); box-shadow: 0 5px 18px rgba(26,39,67,.05); }
.period-filter input { min-width: 0; flex: 1; border: 0; background: transparent; padding: .55rem .65rem; color: var(--of-ink); }
.period-filter button { border: 0; border-radius: 10px; padding: .55rem .9rem; background: var(--of-primary); color: white; font-weight: 600; cursor: pointer; }
.period-filter button:hover { background: var(--of-primary-dark); }
.period-caption { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--of-muted); font-size: .9rem; }
.period-caption span { margin-left: auto; padding: .3rem .65rem; border-radius: 999px; background: #e8efff; color: var(--of-primary-dark); font-size: .74rem; font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-card { display: flex; align-items: center; gap: 1rem; min-height: 145px; padding: 1.25rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }
.metric-card__icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 13px; background: #edf3ff; color: var(--of-primary); font-size: 1.15rem; }
.metric-card--income .metric-card__icon { background: #e8f7f1; color: var(--of-income); }
.metric-card--expense .metric-card__icon { background: #fff0f0; color: var(--of-expense); }
.metric-card--forecast .metric-card__icon { background: #f3edff; color: #7c3aed; }
.metric-card span, .metric-card small { display: block; color: var(--of-muted); }
.metric-card span { margin-bottom: .25rem; font-size: .79rem; font-weight: 600; }
.metric-card strong { display: block; color: var(--of-ink); font-size: 1.35rem; line-height: 1.2; }
.metric-card small { margin-top: .45rem; font-size: .72rem; }
.dashboard-tools { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; margin: 1rem 0; }
.forecast-comparison { margin:1rem 0; padding:1.4rem; border:1px solid var(--of-border); border-radius:var(--of-radius); background:var(--of-surface); box-shadow:var(--of-shadow); }
.forecast-legend { display:flex; align-items:center; gap:.4rem; color:var(--of-muted); font-size:.78rem; }.forecast-legend i{width:18px;height:4px;border-radius:99px;background:var(--of-primary)}.forecast-legend i+ i{margin-left:.45rem;background:#cbd5e1}
.forecast-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-top:1rem; }.forecast-card{padding:1rem;border:1px solid var(--of-border);border-radius:14px;background:#fbfcff}.forecast-card__top{display:flex;justify-content:space-between;gap:.8rem}.forecast-card__top span{display:block;color:var(--of-muted);font-size:.78rem}.forecast-card__top strong{color:var(--of-income);font-size:.88rem}.forecast-card__top>small{color:var(--of-muted);text-align:right}.forecast-card--expense .forecast-card__top strong{color:var(--of-expense)}.forecast-card--result .forecast-card__top strong{color:var(--of-primary)}.forecast-card--result.is-negative .forecast-card__top strong{color:var(--of-expense)}.forecast-values{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:.9rem 0;color:var(--of-ink);font-weight:700}.forecast-values span:last-child{text-align:right}.forecast-values small{display:block;color:var(--of-muted);font-size:.68rem;text-transform:uppercase}.forecast-bars{position:relative;height:9px;overflow:hidden;border-radius:99px;background:#eef2f7}.forecast-bars span{position:absolute;left:0;height:100%;border-radius:inherit}.forecast-bars .is-forecast{background:#cbd5e1}.forecast-bars .is-actual{background:var(--of-income)}.forecast-card--expense .is-actual{background:var(--of-expense)}.forecast-card--result .is-actual{background:var(--of-primary)}
.insight-card, .quick-actions-card, .category-card { padding: 1.4rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin: .25rem 0 0; color: var(--of-ink); font-size: 1.15rem; font-weight: 700; }
.insight-card .section-heading > strong { font-size: 1.6rem; color: var(--of-income); }
.insight-card.is-attention .section-heading > strong { color: var(--of-expense); }
.insight-card p { margin: .75rem 0 1rem; color: var(--of-muted); font-size: .85rem; }
.health-progress, .category-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.health-progress span, .category-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, var(--of-income)); }
.is-attention .health-progress span { background: var(--of-expense); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 78px; border: 1px solid var(--of-border); border-radius: 13px; color: var(--of-ink); font-size: .75rem; font-weight: 600; transition: transform .15s, border-color .15s; }
.quick-action:hover { transform: translateY(-2px); border-color: var(--of-primary); color: var(--of-primary); }
.quick-action--income i { color: var(--of-income); }
.quick-action--expense i { color: var(--of-expense); }
.category-card { margin-bottom: 1rem; }
.category-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-top: 1rem; }
.category-item > div:first-child { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; font-size: .82rem; }
.category-item strong { color: var(--of-ink); }
.category-progress span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.empty-state { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--of-bg); color: var(--of-muted); }
.empty-state p { margin: 0; }
.dashboard-goals { margin: 1rem 0; padding: 1.4rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }
.dashboard-goals .section-heading > a { color: var(--of-primary); font-size: .82rem; font-weight: 700; }
.dashboard-goals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.dashboard-goal-item { padding: 1rem; border: 1px solid var(--of-border); border-radius: 14px; background: #fbfcff; }
.dashboard-goal-item > div:first-child { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.dashboard-goal-item > div:first-child span { color: var(--of-primary); font-weight: 700; }
.dashboard-goal-item small { display: block; margin-top: .55rem; color: var(--of-muted); }
.dashboard-chart-section { margin:1rem 0; }
.dashboard-chart-section > .section-heading { margin-bottom:1rem; }
.dashboard-chart-section > .section-heading small { color:var(--of-muted); }
.dashboard-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.dashboard-chart-card { min-width:0; padding:1.2rem; border:1px solid var(--of-border); border-radius:var(--of-radius); background:var(--of-surface); box-shadow:var(--of-shadow); }
.dashboard-chart-card--wide { grid-column:span 2; }
.chart-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.7rem; }
.chart-card-heading span { color:var(--of-primary); font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.chart-card-heading h3 { margin:.2rem 0 0; color:var(--of-ink); font-size:1rem; }
.chart-card-heading > i { display:grid; width:38px; height:38px; border-radius:11px; background:rgba(51,102,255,.1); color:var(--of-primary); place-items:center; }
.chart-category-actions { display:flex; align-items:center; gap:.55rem; }
.chart-category-actions > i { display:grid; width:38px; height:38px; flex:0 0 38px; border-radius:11px; background:rgba(51,102,255,.1); color:var(--of-primary); place-items:center; }
.chart-category-back { display:inline-flex; min-height:38px; align-items:center; gap:.45rem; padding:.55rem .75rem; border:1px solid var(--of-border); border-radius:10px; background:transparent; color:var(--of-primary); font:inherit; font-size:.78rem; font-weight:700; cursor:pointer; }
.chart-category-back:hover { background:rgba(51,102,255,.1); }
.chart-category-back[hidden] { display:none; }
.dashboard-canvas { position:relative; width:100%; height:260px; }
.dashboard-chart-card--wide .dashboard-canvas { height:280px; }
.dashboard-balance-chart { position:relative; width:100%; height:320px !important; min-height:320px; max-height:320px; overflow:hidden; }
.dashboard-balance-chart canvas { display:block; width:100% !important; height:100% !important; max-width:100% !important; max-height:320px !important; }
.dark_theme .dashboard-chart-card { border-color:var(--of-border); background:var(--of-surface); box-shadow:var(--of-shadow); }
.dark_theme .chart-card-heading > i { background:rgba(51,102,255,.16); color:#8ba9ff; }
.dark_theme .chart-category-actions > i { background:rgba(51,102,255,.16); color:#8ba9ff; }
@media (max-width:575px) { .chart-category-back span { display:none; } .chart-category-back { width:38px; padding:0; justify-content:center; } }
.goal-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); align-items: start; gap: 1.25rem; }
.goal-form-card, .goal-card, .goal-empty { padding: 1.5rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }
.goal-form-card { position: sticky; top: 1rem; }
.goal-form-card .section-heading h2 { color: var(--of-ink) !important; }
.goal-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.goal-form-card .goal-form label { display: block; margin: 0; color: var(--of-muted) !important; font-size: .78rem; font-weight: 600; }
.goal-form input, .goal-form textarea, .goal-update-form input { width: 100%; margin-top: .4rem; padding: .75rem .85rem; border: 1px solid var(--of-border); border-radius: 11px; background: #f8fafc; color: var(--of-ink); }
.goal-form select { width:100%; margin-top:.4rem; padding:.75rem .85rem; border:1px solid var(--of-border); border-radius:11px; background:#f8fafc; color:var(--of-ink); }
.goal-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.goal-form label,.goal-form__row label { min-width:0; }
.goal-form input,.goal-form textarea,.goal-form select { box-sizing:border-box; min-height:44px; padding:.62rem .75rem; font-size:.9rem; }
.goal-form textarea { min-height:72px; }
.goal-form input[type="date"] { max-width:230px; }
.goal-form__row.category-date-range { grid-template-columns:1fr; gap:1rem; }
.category-date-range label { width:100%; max-width:230px; }
.category-date-range input[type="date"] { width:100%; min-width:0; }
.goal-primary-button, .goal-update-form button { border: 0; border-radius: 11px; background: var(--of-primary); color: #fff; font-weight: 700; cursor: pointer; }
.goal-primary-button { padding: .85rem 1rem; }
.goal-list { display: grid; gap: 1rem; }
.goal-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.goal-card__top h2 { margin: .3rem 0 0; color: var(--of-ink); font-size: 1.2rem; font-weight: 700; }
.goal-card__top > strong { color: var(--of-primary); font-size: 1.6rem; }
.goal-status { padding: .25rem .55rem; border-radius: 999px; background: #e8efff; color: var(--of-primary); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.goal-card > p { margin: .75rem 0; color: var(--of-muted); }
.goal-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e9edf4; }
.goal-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--of-primary), #60a5fa); }
.goal-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; color: var(--of-ink); font-weight: 700; }
.goal-values small { display: block; color: var(--of-muted); font-size: .68rem; font-weight: 600; text-transform: uppercase; }
.goal-values span:last-child { text-align: right; }
.goal-deadline { display: flex; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--of-border); color: var(--of-muted); font-size: .78rem; }
.goal-deadline span { margin-left: auto; color: var(--of-ink); font-weight: 700; }
.goal-update-form { display: grid; grid-template-columns: 1fr auto; gap: .65rem; margin-top: 1rem; }
.goal-update-form input { margin: 0; }
.goal-update-form button { padding: .65rem .9rem; }
.goal-card.is-complete { border-color: rgba(5,150,105,.3); }
.goal-card.is-complete .goal-progress span { background: var(--of-income); }
.goal-complete-message { margin-top: 1rem; padding: .75rem; border-radius: 11px; background: #e8f7f1; color: var(--of-income); font-weight: 700; text-align: center; }
.category-goal.is-over { border-color:rgba(224,85,85,.55); }.category-goal.is-over .goal-progress span{background:var(--of-expense)}.category-goal-delete{display:flex;justify-content:flex-end;margin-top:.8rem}.category-goal-delete button{border:0;background:transparent;color:var(--of-expense);font-size:.78rem;font-weight:700;cursor:pointer}.dark_theme .goal-form select{border-color:#303a58;background:#151a30;color:#fff}
.dark_theme .goal-form-card,
.dark_theme .goal-card,
.dark_theme .category-goal,
.dark_theme .goal-empty { border-color:#303a58; background:#222b45; box-shadow:0 12px 30px rgba(4,8,24,.22); }
.dark_theme .goal-form-card .section-heading h2,
.dark_theme .goal-card h2,
.dark_theme .category-goal h2,
.dark_theme .goal-card .goal-values,
.dark_theme .category-goal .goal-values { color:#fff !important; }
.dark_theme .goal-form-card .goal-form input,
.dark_theme .goal-form-card .goal-form textarea,
.dark_theme .goal-form-card .goal-form select { border-color:#303a58; background:#151a30; color:#fff !important; }
.dark_theme .category-goal .goal-progress { background:#151a30; }
.dark_theme .goal-card > p,
.dark_theme .goal-card .goal-deadline,
.dark_theme .goal-card .goal-values small { color:#aeb8d0; }
.dark_theme .goal-card .goal-progress { background:#151a30; }
.dark_theme .goal-card .goal-deadline { border-top-color:#303a58; }
.dark_theme .goal-card.is-complete { border-color:rgba(36,199,142,.45); }
.dark_theme .goal-complete-message { background:rgba(36,199,142,.14); color:#36d49c; }
.goal-empty { color: var(--of-muted); text-align: center; }
.goal-empty i { color: var(--of-primary); font-size: 2rem; }
.schedule-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(430px,1.2fr); align-items: start; gap: 1.25rem; }
.schedule-form-card select { width: 100%; margin-top: .4rem; padding: .75rem .85rem; border: 1px solid var(--of-border); border-radius: 11px; background: #f8fafc; color: var(--of-ink); }
.schedule-hint { margin: 0; padding: .75rem; border-radius: 10px; background: #eef4ff; color: var(--of-primary-dark); font-size: .76rem; }
.schedule-list { display: grid; gap: 1rem; }
.schedule-card { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }
.schedule-card__icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 13px; background: #edf3ff; color: var(--of-primary); }
.schedule-card__content { min-width: 0; flex: 1; }
.schedule-card__top { display: flex; justify-content: space-between; gap: 1rem; }
.schedule-card__top h2 { margin: .35rem 0 0; color: var(--of-ink); font-size: 1.1rem; font-weight: 700; }
.schedule-card__top > strong { color: var(--of-ink); white-space: nowrap; }
.schedule-card__content > p { margin: .65rem 0; color: var(--of-muted); font-size: .78rem; }
.schedule-timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--of-border); color: var(--of-ink); font-size: .8rem; font-weight: 700; }
.schedule-timeline small { display: block; color: var(--of-muted); font-size: .65rem; font-weight: 600; text-transform: uppercase; }
.schedule-edit{margin-top:.8rem;padding:.5rem .7rem;border:1px solid var(--of-border);border-radius:9px;background:transparent;color:var(--of-primary);font-size:.78rem;font-weight:700;cursor:pointer}.schedule-modal .modal-body{display:grid;gap:.8rem}.schedule-modal .modal-body p{margin:0;color:var(--of-muted)}.dark_theme .schedule-modal{border:1px solid #303a58;background:#222b45}.dark_theme .schedule-modal .modal-header,.dark_theme .schedule-modal .modal-footer{border-color:#303a58}.dark_theme .schedule-modal .modal-title{color:#fff!important}.dark_theme .schedule-modal .modal-body p{color:#aeb8d0!important}.dark_theme .schedule-modal .goal-form label{color:#dce3f4!important}.dark_theme .schedule-modal .goal-form input,.dark_theme .schedule-modal .goal-form select{border-color:#303a58;background:#151a30;color:#fff!important}
.pending-installments{margin-top:.4rem;padding-top:1rem;border-top:1px solid var(--of-border)}.pending-installments>div:first-child{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.6rem}.pending-installments>div:first-child span{color:var(--of-muted);font-size:.78rem}.pending-installments table{width:100%;border-collapse:collapse;font-size:.78rem}.pending-installments th,.pending-installments td{padding:.6rem;border-bottom:1px solid var(--of-border);text-align:left}.pending-installments th{color:var(--of-muted);font-size:.68rem;text-transform:uppercase}.dark_theme .pending-installments td{color:#e6ebf7!important}.schedule-modal .modal-body{max-height:70vh;overflow-y:auto}
.pending-installments input[type="date"]{width:155px;min-height:38px;margin:0;padding:.4rem .5rem;border:1px solid var(--of-border);border-radius:8px;background:var(--of-bg);color:var(--of-ink)}.schedule-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}.schedule-actions .schedule-edit{margin-top:0}.schedule-actions form{margin:0}.schedule-delete{padding:.5rem .7rem;border:1px solid rgba(224,85,85,.35);border-radius:9px;background:transparent;color:var(--of-expense);font-size:.78rem;font-weight:700;cursor:pointer}
.delete-schedule-modal .modal-header{align-items:center;padding:1.2rem 1.35rem}.delete-schedule-modal .modal-title{margin:0;font-size:1.3rem}.delete-schedule-modal .close{margin:-.5rem -.5rem -.5rem auto;color:var(--of-muted);font-size:1.8rem}.delete-schedule-modal .modal-body{display:block;padding:1.35rem}.delete-schedule-modal .modal-body p{margin:0 0 .35rem;line-height:1.55}.delete-schedule-modal .modal-body small{color:var(--of-muted)}.delete-schedule-modal .modal-footer{justify-content:flex-end;padding:1rem 1.35rem}.delete-schedule-modal .modal-footer form{margin:0}.dark_theme .delete-schedule-modal .modal-body strong{color:#fff}.dark_theme .delete-schedule-modal .close{color:#aeb8d0;text-shadow:none}
.schedule-success-modal .modal-body{display:block;padding:2rem;text-align:center}.schedule-success-icon{display:grid;width:58px;height:58px;margin:0 auto 1rem;place-items:center;border-radius:50%;background:rgba(5,150,105,.14);color:var(--of-income);font-size:1.45rem}.schedule-success-modal h2{margin:0 0 .5rem;color:var(--of-ink)!important;font-size:1.35rem}.schedule-success-modal p{margin:0 0 .35rem!important;color:var(--of-muted)!important}.schedule-success-modal small{color:var(--of-muted)}.schedule-success-timer{height:4px;margin-top:1.3rem;overflow:hidden;border-radius:99px;background:var(--of-border)}.schedule-success-timer span{display:block;width:100%;height:100%;background:var(--of-income);transform-origin:left;animation:schedule-success-countdown 3s linear forwards}@keyframes schedule-success-countdown{to{transform:scaleX(0)}}

/* Formulário de contas e relatórios legados. */
.accounts-page .main-content > .row { align-items:flex-start; }
.accounts-page .main-content > .row > .col-md-6 { min-width:0; }
.accounts-page .card-body { padding:1.25rem; }
.accounts-page form .form-group { margin-bottom:.85rem; }
.accounts-page form .input-group { width:100%; max-width:100%; }
.accounts-page form .input-group-text { display:grid; width:46px; min-width:46px; height:44px; padding:0; place-items:center; }
.accounts-page form .form-control { box-sizing:border-box; min-width:0; height:44px; padding:.55rem .75rem; font-size:.9rem; }
.accounts-page form textarea.form-control { height:76px; min-height:76px; resize:vertical; }
.accounts-page form .text-help { display:block; margin-top:.25rem; color:var(--of-muted); font-size:.72rem; line-height:1.3; }
.accounts-page #tipo_conta { max-width:360px; }
.accounts-page #banco_field { max-width:100%; }
.accounts-page #dash_lst_conta { width:100% !important; min-width:570px; table-layout:auto; }
.accounts-page #dash_lst_conta th,.accounts-page #dash_lst_conta td { padding:.7rem .55rem; vertical-align:middle; text-align:center; }
.accounts-page #dash_lst_conta td:first-child { min-width:130px; text-align:left; }
.accounts-page #dash_lst_conta .actions { display:flex; align-items:center; justify-content:center; flex-wrap:nowrap; gap:.3rem; }
.accounts-page #dash_lst_conta .actions form { display:inline-flex !important; margin:0; }
.accounts-page #dash_lst_conta .actions .btn { display:grid; width:36px; min-width:36px; height:36px; margin:0; padding:0; place-items:center; }
.accounts-page #dash_lst_conta .account-action { border:1px solid transparent!important; box-shadow:none!important; }
.accounts-page #dash_lst_conta .account-action i { color:inherit!important; font-size:14px!important; }
.accounts-page #dash_lst_conta .account-action--edit { border-color:rgba(51,102,255,.3)!important; background:rgba(51,102,255,.12)!important; color:#4f7cff!important; }
.accounts-page #dash_lst_conta .account-action--activate { border-color:rgba(5,150,105,.3)!important; background:rgba(5,150,105,.13)!important; color:#059669!important; }
.accounts-page #dash_lst_conta .account-action--deactivate { border-color:rgba(224,85,85,.3)!important; background:rgba(224,85,85,.13)!important; color:#e05555!important; }
.accounts-page #dash_lst_conta .account-action:hover { filter:brightness(1.15); transform:translateY(-1px); }
.dark_theme.accounts-page #dash_lst_conta .account-action--edit { color:#8eacff!important; }
.dark_theme.accounts-page #dash_lst_conta .account-action--activate { color:#36d49c!important; }
.dark_theme.accounts-page #dash_lst_conta .account-action--deactivate { color:#ff8290!important; }
.reports-page .main-content > .row:first-child { align-items:center; margin-bottom:1rem; }
.reports-page .table-responsive { overflow-x:auto; border-radius:12px; }
.reports-page .table { width:100% !important; min-width:0; margin-bottom:0; table-layout:fixed; }
.reports-page .table th,.reports-page .table td { padding:.7rem .65rem; vertical-align:middle; white-space:nowrap; }
.reports-page .dataTables_wrapper .row { align-items:center; }
.reports-page .dataTables_filter input,.reports-page .dataTables_length select { min-height:40px; padding:.4rem .6rem; border:1px solid var(--of-border); border-radius:8px; background:var(--of-bg); color:var(--of-ink); }
.dark_theme.accounts-page .card,.dark_theme.reports-page .card { border-color:var(--of-border); background:var(--of-surface)!important; }
.reconcile-alert { margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 12px; background: #e8f7f1; color: var(--of-income); font-weight: 700; }
.reconcile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1rem; }
.reconcile-stats article { padding: 1rem 1.2rem; border: 1px solid var(--of-border); border-radius: 14px; background: var(--of-surface); box-shadow: var(--of-shadow); }
.reconcile-stats span { display: block; color: var(--of-muted); font-size: .75rem; }
.reconcile-stats strong { color: var(--of-ink); font-size: 1.45rem; }
.reconcile-layout { display: grid; grid-template-columns: minmax(290px,.7fr) minmax(480px,1.3fr); align-items: start; gap: 1.25rem; }
.reconcile-upload select { width: 100%; margin-top: .4rem; padding: .75rem; border: 1px solid var(--of-border); border-radius: 11px; background: #f8fafc; }
.reconcile-list { display: grid; gap: .8rem; }
.reconcile-item { display: flex; gap: 1rem; padding: 1.2rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }
.reconcile-item.is-matched { border-color: rgba(5,150,105,.28); }
.reconcile-item__icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 12px; background: #edf3ff; color: var(--of-primary); }
.reconcile-item__body { min-width: 0; flex: 1; }
.reconcile-item__top { display: flex; justify-content: space-between; gap: 1rem; }
.reconcile-item__top span,.reconcile-item__meta { color: var(--of-muted); font-size: .8rem; }
.reconcile-item__top h2 { margin: .2rem 0; color: var(--of-ink); font-size: 1rem; }
.reconcile-item__top strong { white-space: nowrap; }.reconcile-item__top .income { color: var(--of-income); }.reconcile-item__top .expense { color: var(--of-expense); }
.reconcile-item__meta { display: flex; justify-content: space-between; margin-top: .35rem; }.reconcile-item__meta b { color: var(--of-primary); }
.reconcile-action { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .8rem; padding: .7rem; border-radius: 10px; background: #eef4ff; color: var(--of-primary-dark); font-size: .75rem; }
.reconcile-action button { border: 0; border-radius: 9px; padding: .55rem .7rem; background: var(--of-primary); color: white; font-weight: 700; }
.reconcile-no-match,.reconcile-match { margin: .75rem 0 0; font-size: .75rem; color: var(--of-muted); }.reconcile-match { color: var(--of-income); }
.reconcile-create { display: grid; grid-template-columns: 1fr minmax(170px,.7fr) auto; align-items: end; gap: .7rem; margin-top: .8rem; padding: .8rem; border-radius: 11px; background: #fff8e8; }
.reconcile-create strong,.reconcile-create span { display: block; }.reconcile-create strong { color: var(--of-ink); font-size: .78rem; }.reconcile-create span { margin-top: .2rem; color: var(--of-muted); font-size: .7rem; }
.reconcile-create select { min-width: 0; padding: .6rem; border: 1px solid var(--of-border); border-radius: 9px; background: white; color: var(--of-ink); }
.reconcile-create button { border: 0; border-radius: 9px; padding: .65rem .75rem; background: var(--of-income); color: white; font-weight: 700; white-space: nowrap; }
.audit-list { display: grid; gap: .85rem; }.audit-event { display: flex; gap: 1rem; padding: 1.15rem; border: 1px solid var(--of-border); border-radius: var(--of-radius); background: var(--of-surface); box-shadow: var(--of-shadow); }.audit-event__icon { display:grid; flex:0 0 44px; height:44px; place-items:center; border-radius:12px; background:#edf3ff; color:var(--of-primary); }.audit-event__body{min-width:0;flex:1}.audit-event__top{display:flex;justify-content:space-between;gap:1rem}.audit-event__top span{color:var(--of-primary);font-size:.72rem;font-weight:700;text-transform:uppercase}.audit-event__top h2{margin:.25rem 0;color:var(--of-ink);font-size:1rem}.audit-event__top time{color:var(--of-muted);font-size:.75rem;white-space:nowrap}.audit-change{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem;margin:.65rem 0}.audit-change p{margin:0;padding:.65rem;border-radius:9px;background:#f8fafc;color:var(--of-muted);font-size:.74rem;overflow-wrap:anywhere}.audit-change b{display:block;margin-bottom:.2rem;color:var(--of-ink)}.audit-event small{color:var(--of-muted)}
.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.backup-card{padding:1.5rem;border:1px solid var(--of-border);border-radius:var(--of-radius);background:var(--of-surface);box-shadow:var(--of-shadow)}.backup-card__icon{display:grid;width:52px;height:52px;margin-bottom:1rem;place-items:center;border-radius:14px;background:#edf3ff;color:var(--of-primary);font-size:1.25rem}.backup-card h2{margin:.3rem 0;color:var(--of-ink);font-size:1.25rem}.backup-card p{min-height:64px;color:var(--of-muted);font-size:.85rem;line-height:1.55}.backup-card button{width:100%;padding:.8rem;border:0;border-radius:10px;background:var(--of-primary);color:white;font-weight:700}.backup-export-form>div{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem;margin-bottom:.8rem}.backup-export-form label{color:var(--of-muted);font-size:.78rem;font-weight:700}.backup-export-form input{width:100%;margin-top:.35rem;padding:.65rem;border:1px solid var(--of-border);border-radius:9px;background:#f8fafc;color:var(--of-ink)}
.backup-feedback{display:flex;align-items:center;gap:.75rem;margin:1rem 0;padding:1rem 1.15rem;border-radius:14px;font-weight:700}.backup-feedback div{display:grid;gap:.2rem}.backup-feedback small{font-weight:500}.backup-feedback.is-success{background:#e9faf4;color:#157a5d}.backup-feedback.is-error{background:#fff0f3;color:#b9364c}.backup-card--verify{grid-column:1/-1}.backup-file,.restore-fields label{display:block;color:var(--of-muted);font-size:.78rem;font-weight:700}.backup-file input,.restore-fields input{box-sizing:border-box;width:100%;max-width:100%;height:48px;margin:.4rem 0 .8rem;padding:.55rem .75rem;border:1px solid var(--of-border);border-radius:10px;background:#f8fafc;color:var(--of-ink)}.restore-panel{margin-top:1.2rem;padding:1.5rem;border:1px solid #f0bdc6;border-radius:20px;background:var(--of-surface);box-shadow:var(--of-shadow)}.restore-panel>header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.restore-panel>header>i{display:grid;width:52px;height:52px;place-items:center;border-radius:14px;background:#fff0f3;color:#c53f55;font-size:1.25rem}.restore-panel h2{margin:.25rem 0;color:var(--of-ink);font-size:1.35rem}.restore-panel p{margin:0;color:var(--of-muted)}.restore-fields{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:1rem;margin-top:1.2rem}.restore-fields label{min-width:0;margin:0}.restore-fields .password-field{position:relative;min-width:0}.restore-fields .password-toggle-input{padding-right:5.4rem!important}.restore-fields .password-toggle{right:.4rem;bottom:12px}.restore-consent{display:flex;align-items:center;gap:.6rem;margin:.35rem 0 1rem;color:var(--of-muted);font-size:.82rem;font-weight:700}.restore-consent input{width:18px;height:18px;accent-color:#c53f55}.restore-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.75rem 1.1rem;border:0;border-radius:11px;background:#c53f55;color:#fff;font-weight:800}.dark_theme .backup-feedback.is-success{background:#193b35;color:#6fe1bb}.dark_theme .backup-feedback.is-error{background:#44252f;color:#ff9bad}.dark_theme .backup-file input,.dark_theme .restore-fields input{border-color:#3b4968;background:#172138;color:#fff}.dark_theme .restore-panel{border-color:#66404a;background:#1f2b47}.dark_theme .restore-panel>header>i{background:#432630;color:#ff8da0}
.backup-card .password-field{position:relative!important}.backup-card .password-toggle-input{padding-right:5.2rem!important}.backup-card .password-toggle{position:absolute;z-index:4;right:.4rem;bottom:12px;width:auto;min-width:62px;height:40px;padding:0 .65rem;border:0;border-radius:9px;background:transparent;color:var(--of-primary);font-size:.74rem;font-weight:700}.backup-card .password-toggle:hover{background:rgba(37,99,235,.08)}

/* Reinicialização segura dos dados */
.reset-feedback{display:flex;align-items:center;gap:.65rem;margin:1rem 0;padding:.9rem 1rem;border-radius:12px;font-weight:700}.reset-feedback.is-error{background:#fff0f3;color:#c53f55}.reset-feedback.is-success{background:#eafaf5;color:#168765}.reset-panel{display:grid;gap:1.2rem}.reset-panel__header,.reset-confirm{padding:1.4rem;border:1px solid var(--of-border);border-radius:20px;background:var(--of-surface);box-shadow:var(--of-shadow)}.reset-panel__header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.reset-panel h2{margin:.2rem 0;color:var(--of-ink);font-size:1.25rem}.reset-panel p{margin:0;color:var(--of-muted)}.reset-select-all{display:flex;align-items:center;gap:.55rem;margin:0;color:var(--of-ink);font-weight:700}.reset-select-all input{width:19px;height:19px;accent-color:var(--of-primary)}.reset-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.reset-option{position:relative;display:grid;grid-template-columns:24px 44px minmax(0,1fr) auto;align-items:center;gap:.8rem;margin:0;padding:1rem;border:1px solid var(--of-border);border-radius:16px;background:var(--of-surface);box-shadow:var(--of-shadow);cursor:pointer;transition:.18s ease}.reset-option:hover,.reset-option.is-selected{border-color:#7294f7;transform:translateY(-1px)}.reset-option.is-selected{background:#f2f6ff}.reset-option>input{position:absolute;opacity:0;pointer-events:none}.reset-option__check{display:grid;width:22px;height:22px;place-items:center;border:2px solid var(--of-border);border-radius:7px;color:transparent}.reset-option.is-selected .reset-option__check{border-color:var(--of-primary);background:var(--of-primary);color:#fff}.reset-option__icon{display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:#edf3ff;color:var(--of-primary)}.reset-option__copy{display:grid;gap:.2rem}.reset-option__copy strong{color:var(--of-ink)}.reset-option__copy small{color:var(--of-muted);line-height:1.4}.reset-option__count{min-width:36px;padding:.3rem .55rem;border-radius:999px;background:#eef2f8;color:var(--of-muted);font-weight:800;text-align:center}.reset-warning{display:flex;gap:1rem;padding:1.15rem 1.3rem;border:1px solid #f2c3ca;border-radius:16px;background:#fff6f7;color:#9f3143}.reset-warning>i{font-size:1.35rem}.reset-warning strong{display:block;margin-bottom:.2rem}.reset-warning p{color:#a95462}.reset-warning a{display:inline-flex;align-items:center;gap:.4rem;margin-top:.65rem;color:#b53449;font-weight:800}.reset-confirm__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin:1rem 0}.reset-confirm__fields>label{display:block;min-width:0;margin:0}.reset-confirm label{color:var(--of-muted);font-size:.8rem;font-weight:700}.reset-confirm input{display:block;box-sizing:border-box;width:100%;max-width:100%;height:48px;margin-top:.35rem;padding:0 .85rem;border:1px solid var(--of-border);border-radius:11px;background:#f8fafc;color:var(--of-ink)}.reset-confirm .password-field{position:relative;min-width:0}.reset-confirm .password-field .password-toggle-input{padding-right:5.4rem!important}.reset-confirm .password-toggle{right:.4rem;bottom:4px;height:40px}.reset-autofill-username{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;opacity:0;pointer-events:none}.reset-submit{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.75rem 1rem;border:0;border-radius:12px;background:#cf4057;color:#fff;font-weight:800}.reset-submit:disabled{cursor:not-allowed;opacity:.42}
.dark_theme .reset-panel__header,.dark_theme .reset-confirm,.dark_theme .reset-option{border-color:#344364;background:#1f2b47}.dark_theme .reset-option.is-selected{border-color:#6f91ff;background:#26375d}.dark_theme .reset-option__icon{background:#293d70;color:#8eabff}.dark_theme .reset-option__count{background:#17223b;color:#aebbd6}.dark_theme .reset-warning{border-color:#6d3945;background:#3b2630;color:#ff9bab}.dark_theme .reset-warning p{color:#e6a5af}.dark_theme .reset-warning a{color:#ff91a3}.dark_theme .reset-confirm input{border-color:#3a496b;background:#172138;color:#fff}
.alert-menu-badge{float:right;min-width:22px;padding:.1rem .4rem;border-radius:999px;background:#ef4444;color:white;font-size:.75rem;text-align:center}.dashboard-alert{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0;padding:1.1rem 1.3rem;border:1px solid #fed7aa;border-radius:var(--of-radius);background:#fff8ed;box-shadow:var(--of-shadow)}.dashboard-alert h2{margin:.2rem 0;color:var(--of-ink);font-size:1.05rem}.dashboard-alert p{margin:0;color:var(--of-muted);font-size:.86rem}.dashboard-alert a{padding:.65rem .8rem;border-radius:10px;background:#f97316;color:white;font-size:.84rem;font-weight:700;white-space:nowrap}.alert-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1rem}.alert-summary article{padding:1rem 1.2rem;border:1px solid var(--of-border);border-radius:14px;background:var(--of-surface);box-shadow:var(--of-shadow)}.alert-summary span{display:block;color:var(--of-muted);font-size:.84rem}.alert-summary strong{color:var(--of-ink);font-size:1.45rem}.alert-section{margin-bottom:1rem;padding:1.25rem;border:1px solid var(--of-border);border-radius:var(--of-radius);background:var(--of-surface);box-shadow:var(--of-shadow)}.alert-items{display:grid;gap:.65rem;margin-top:1rem}.alert-item{display:grid;grid-template-columns:38px 1fr auto auto;align-items:center;gap:.8rem;padding:.8rem;border:1px solid var(--of-border);border-radius:11px;background:#fbfcff}.alert-item>i{color:#f97316;text-align:center}.alert-item strong,.alert-item span{display:block}.alert-item strong{color:var(--of-ink);font-size:.92rem}.alert-item span{margin-top:.15rem;color:var(--of-muted);font-size:.82rem}.alert-item b{white-space:nowrap}.alert-item .income{color:var(--of-income)}.alert-item .expense{color:var(--of-expense)}.alert-item a{color:var(--of-primary);font-size:.82rem;font-weight:700;white-space:nowrap}.alert-empty{margin:0;color:var(--of-muted);font-size:.86rem}
.main-content > .row .card { border: 1px solid var(--of-border); border-radius: var(--of-radius); box-shadow: var(--of-shadow); overflow: hidden; }
.dark_theme .metric-card,
.dark_theme .forecast-comparison,
.dark_theme .insight-card,
.dark_theme .quick-actions-card,
.dark_theme .category-card,
.dark_theme .dashboard-goals,
.dark_theme .goal-form-card,
.dark_theme .goal-card,
.dark_theme .schedule-card,
.dark_theme .reconcile-item,
.dark_theme .audit-event,
.dark_theme .backup-card,
.dark_theme .alert-summary article,
.dark_theme .alert-section,
.dark_theme .access-profiles,
.dark_theme .access-editor,
.dark_theme .access-users,
.dark_theme .main-content > .row .card {
  border-color:var(--of-border);
  background:var(--of-surface) !important;
  color:var(--of-ink);
  box-shadow:var(--of-shadow);
}
.dark_theme .forecast-card,
.dark_theme .dashboard-goal-item,
.dark_theme .quick-action,
.dark_theme .alert-item,
.dark_theme .empty-state { border-color:var(--of-border); background:#1b233b; color:var(--of-ink); }
.dark_theme .alert-summary strong,
.dark_theme .alert-item strong,
.dark_theme .section-heading h2 { color:var(--of-ink) !important; }
.dark_theme .alert-summary span,
.dark_theme .alert-item span,
.dark_theme .alert-empty { color:var(--of-muted); }
.dark_theme .alert-item a { color:#7fa0ff; }
.expense-form-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.expense-form-heading span{color:var(--of-ink);font-size:1.05rem;font-weight:700}.expense-form-heading a{padding:.55rem .75rem;border-radius:9px;background:#edf3ff;color:var(--of-primary);font-size:.8rem;font-weight:700}.expense-payment-options{display:flex;flex-wrap:wrap;gap:.7rem}.expense-payment-options label{display:flex;align-items:center;gap:.45rem;min-height:44px;margin:0;padding:.6rem .8rem;border:1px solid var(--of-border);border-radius:10px;background:var(--of-bg);color:var(--of-ink)!important;cursor:pointer}.expense-payment-options input{width:18px;height:18px}.invoice-list{display:grid;gap:1rem}.invoice-card{padding:1.3rem;border:1px solid var(--of-border);border-radius:var(--of-radius);background:var(--of-surface);box-shadow:var(--of-shadow)}.invoice-card__top{display:flex;justify-content:space-between;gap:1rem}.invoice-card__top span{color:var(--of-primary);font-size:.75rem;font-weight:700}.invoice-card__top h2{margin:.25rem 0;color:var(--of-ink);font-size:1.15rem}.invoice-card__top>strong{color:var(--of-ink);font-size:1.35rem}.invoice-meta{display:flex;gap:1rem;margin:.8rem 0;padding:.7rem 0;border-top:1px solid var(--of-border);border-bottom:1px solid var(--of-border);color:var(--of-muted);font-size:.78rem}.invoice-meta b{margin-left:auto;color:var(--of-primary)}.invoice-pay{display:flex;justify-content:flex-end;gap:.6rem}.invoice-pay input,.invoice-pay button{min-height:42px;border-radius:9px}.invoice-pay input{padding:.55rem;border:1px solid var(--of-border);background:var(--of-bg);color:var(--of-ink)}.invoice-pay button{border:0;padding:.55rem .8rem;background:var(--of-income);color:#fff;font-weight:700}.invoice-card.is-paid{border-color:rgba(5,150,105,.35)}.dark_theme .invoice-card{border-color:var(--of-border);background:var(--of-surface)}.dark_theme .expense-form-heading a{background:rgba(51,102,255,.18);color:#9bb5ff}
.main-content .card-title { color: var(--of-ink); font-size: 1.05rem; font-weight: 700; }
.main-content .table { color: var(--of-ink); }
.main-content .table thead th { border-top: 0; color: var(--of-muted); font-size: .72rem; text-transform: uppercase; }

/* Dashboard com a identidade dark original, preservando a composição moderna. */
.dashboard-page.dark_theme {
  --of-primary:#3366ff;
  --of-primary-dark:#2851cc;
  --of-ink:#ffffff;
  --of-muted:#aeb8d0;
  --of-border:#303a58;
  --of-surface:#222b45;
  --of-bg:#151a30;
  --of-income:#24c78e;
  --of-expense:#ff6376;
  --of-shadow:0 12px 30px rgba(4,8,24,.22);
  background:var(--of-bg) !important;
  color:var(--of-ink);
}
.dashboard-page.dark_theme .dashboard-hero h1,
.dashboard-page.dark_theme .section-heading h2,
.dashboard-page.dark_theme .metric-card strong,
.dashboard-page.dark_theme .forecast-values,
.dashboard-page.dark_theme .category-item strong,
.dashboard-page.dark_theme .main-content .card-title { color:var(--of-ink) !important; }
.dashboard-page.dark_theme .dashboard-hero p,
.dashboard-page.dark_theme .period-caption,
.dashboard-page.dark_theme .metric-card span,
.dashboard-page.dark_theme .metric-card small { color:var(--of-muted); }
.dashboard-page.dark_theme .period-filter__control,
.dashboard-page.dark_theme .dashboard-hero,
.dashboard-page.dark_theme .metric-card,
.dashboard-page.dark_theme .forecast-comparison,
.dashboard-page.dark_theme .insight-card,
.dashboard-page.dark_theme .quick-actions-card,
.dashboard-page.dark_theme .category-card,
.dashboard-page.dark_theme .dashboard-goals,
.dashboard-page.dark_theme .main-content > .row .card {
  border-color:var(--of-border);
  background:var(--of-surface) !important;
  box-shadow:var(--of-shadow);
}
.dashboard-page.dark_theme .period-filter input { color:var(--of-ink) !important; color-scheme:dark; }
.dashboard-page.dark_theme .dashboard-hero__meta span { background:rgba(51,102,255,.16); color:#9bb5ff; }
.dashboard-page.dark_theme .period-caption span { background:rgba(51,102,255,.18); color:#9bb5ff; }
.dashboard-page.dark_theme .metric-card__icon { background:rgba(51,102,255,.16); color:#7699ff; }
.dashboard-page.dark_theme .metric-card--income .metric-card__icon { background:rgba(36,199,142,.14); color:var(--of-income); }
.dashboard-page.dark_theme .metric-card--expense .metric-card__icon { background:rgba(255,99,118,.14); color:var(--of-expense); }
.dashboard-page.dark_theme .metric-card--forecast .metric-card__icon { background:rgba(155,114,255,.16); color:#b69aff; }
.dashboard-page.dark_theme .forecast-card,
.dashboard-page.dark_theme .dashboard-goal-item,
.dashboard-page.dark_theme .quick-action { border-color:var(--of-border); background:#1b233b; color:var(--of-ink); }
.dashboard-page.dark_theme .forecast-bars,
.dashboard-page.dark_theme .health-progress,
.dashboard-page.dark_theme .category-progress,
.dashboard-page.dark_theme .goal-progress { background:#11172a; }
.dashboard-page.dark_theme .forecast-bars .is-forecast { background:#59647f; }
.dashboard-page.dark_theme .empty-state { background:#1b233b; color:var(--of-muted); }
.dashboard-page.dark_theme .dashboard-alert { border-color:#694c28; background:#30271f; }
.dashboard-page.dark_theme .dashboard-alert h2 { color:var(--of-ink) !important; }
.dashboard-page.dark_theme .dashboard-alert p { color:#c9bba9; }

/* Dashboard 2026: hierarquia mais limpa, superfícies suaves e identidade financeira. */
.dashboard-page {
  --of-primary:#315cf5;
  --of-primary-dark:#2548c9;
  --of-ink:#152033;
  --of-muted:#748096;
  --of-border:#e7ebf2;
  --of-bg:#f5f7fb;
  --of-radius:22px;
  --of-shadow:0 10px 30px rgba(31,45,78,.07);
  font-family:"Segoe UI Variable","Segoe UI",Roboto,sans-serif;
  background:
    radial-gradient(circle at 78% 0,rgba(49,92,245,.07),transparent 27rem),
    var(--of-bg) !important;
}
.dashboard-page .main-content { max-width:1540px; padding:2.25rem 2.5rem 3rem !important; }
.dashboard-page .dashboard-topbar { position:sticky; z-index:100; top:0; border-bottom:1px solid rgba(226,232,240,.85); background:rgba(255,255,255,.88) !important; box-shadow:0 6px 24px rgba(35,48,78,.04); backdrop-filter:blur(14px); }
.dashboard-page .dashboard-hero {
  position:relative;
  min-height:190px;
  margin-bottom:1.35rem;
  padding:2rem 2.15rem;
  overflow:hidden;
  border:0;
  border-radius:28px;
  background:linear-gradient(125deg,#142653 0%,#214fca 56%,#4777ff 100%);
  box-shadow:0 20px 45px rgba(30,72,180,.22);
}
.dashboard-page .dashboard-hero::after { content:""; position:absolute; right:-70px; top:-120px; width:330px; height:330px; border:70px solid rgba(255,255,255,.07); border-radius:50%; pointer-events:none; }
.dashboard-page .dashboard-hero__intro,.dashboard-page .period-filter { position:relative; z-index:1; }
.dashboard-page .dashboard-hero .eyebrow { color:#bcd0ff; }
.dashboard-page .dashboard-hero h1 { margin:.35rem 0 .45rem; color:#fff; font-family:Poppins,"Segoe UI",sans-serif; font-size:clamp(1.8rem,2.6vw,2.45rem); letter-spacing:-.035em; }
.dashboard-page .dashboard-hero p { color:rgba(255,255,255,.72); font-size:.95rem; }
.dashboard-page .dashboard-hero__meta { margin-top:1.15rem; }
.dashboard-page .dashboard-hero__meta span { padding:.48rem .78rem; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.10); color:#fff; backdrop-filter:blur(8px); }
.dashboard-page .period-filter { min-width:330px; padding:1rem; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(255,255,255,.10); backdrop-filter:blur(9px); }
.dashboard-page .period-filter label { color:rgba(255,255,255,.78); }
.dashboard-page .period-filter__control { border:0; background:#fff; box-shadow:0 8px 22px rgba(14,35,88,.16); }
.dashboard-page .metrics-grid { gap:1.15rem; margin-bottom:1.35rem; }
.dashboard-page .metric-card { position:relative; align-items:flex-start; min-height:158px; padding:1.35rem; overflow:hidden; border-color:rgba(225,230,240,.9); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.dashboard-page .metric-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; border-radius:22px 0 0 22px; background:var(--of-primary); }
.dashboard-page .metric-card--income::before { background:var(--of-income); }
.dashboard-page .metric-card--expense::before { background:var(--of-expense); }
.dashboard-page .metric-card--forecast::before { background:#8b5cf6; }
.dashboard-page .metric-card:hover { transform:translateY(-3px); border-color:#d8deea; box-shadow:0 18px 38px rgba(31,45,78,.11); }
.dashboard-page .metric-card__icon { flex-basis:50px; height:50px; border-radius:15px; font-size:1.18rem; }
.dashboard-page .metric-card span { font-size:.76rem; font-weight:700; letter-spacing:.015em; }
.dashboard-page .metric-card strong { margin-top:.2rem; font-size:clamp(1.28rem,1.65vw,1.62rem); letter-spacing:-.035em; }
.dashboard-page .metric-card small { line-height:1.4; }
.dashboard-page .forecast-comparison,
.dashboard-page .insight-card,
.dashboard-page .quick-actions-card,
.dashboard-page .category-card,
.dashboard-page .dashboard-goals,
.dashboard-page .dashboard-chart-card,
.dashboard-page .main-content > .row .card { border-color:rgba(225,230,240,.9); border-radius:22px; box-shadow:var(--of-shadow); }
.dashboard-page .section-heading h2,.dashboard-page .main-content .card-title,.dashboard-page .chart-card-heading h3 { font-family:Poppins,"Segoe UI",sans-serif; letter-spacing:-.02em; }
.dashboard-page .forecast-comparison,.dashboard-page .insight-card,.dashboard-page .quick-actions-card,.dashboard-page .category-card,.dashboard-page .dashboard-goals { padding:1.55rem; }
.dashboard-page .forecast-card,.dashboard-page .dashboard-goal-item { border-color:#edf0f5; border-radius:16px; background:linear-gradient(145deg,#fff,#f9faff); }
.dashboard-page .forecast-card { padding:1.15rem; }
.dashboard-page .forecast-bars,.dashboard-page .health-progress,.dashboard-page .category-progress,.dashboard-page .goal-progress { height:10px; }
.dashboard-page .quick-actions { gap:.8rem; }
.dashboard-page .quick-action { min-height:94px; border:0; border-radius:16px; background:#f3f6ff; color:#294fca; font-weight:700; }
.dashboard-page .quick-action i { display:grid; width:36px; height:36px; place-items:center; border-radius:11px; background:#fff; box-shadow:0 7px 16px rgba(49,92,245,.10); }
.dashboard-page .quick-action--income { background:#edf9f4; color:#087c5a; }
.dashboard-page .quick-action--expense { background:#fff1f3; color:#c53f55; }
.dashboard-page .quick-action:hover { border-color:transparent; transform:translateY(-3px); box-shadow:0 12px 24px rgba(31,45,78,.09); }
.dashboard-page .dashboard-chart-grid { gap:1.2rem; }
.dashboard-page .dashboard-chart-card { padding:1.45rem; transition:transform .2s ease,box-shadow .2s ease; }
.dashboard-page .dashboard-chart-card:hover { transform:translateY(-2px); box-shadow:0 17px 38px rgba(31,45,78,.10); }
.dashboard-page .chart-card-heading > i { width:42px; height:42px; border-radius:13px; }
.dashboard-page .main-content > .row .col-12 { margin-bottom:1.35rem !important; }
.dashboard-page .main-content > .row .card-body { padding:1.5rem; }
.dashboard-page .dashboard-alert { border:1px solid #f7dba5; border-radius:18px; box-shadow:0 10px 25px rgba(150,100,18,.06); }
.dashboard-page.dark_theme { --of-radius:22px; background:radial-gradient(circle at 78% 0,rgba(74,110,255,.10),transparent 30rem),var(--of-bg) !important; }
.dashboard-page.dark_theme .dashboard-topbar { border-color:rgba(48,58,88,.9); background:rgba(24,31,53,.88) !important; }
.dashboard-page.dark_theme .dashboard-hero { border:0; background:linear-gradient(125deg,#17264d,#243f93 58%,#315cf5) !important; box-shadow:0 20px 45px rgba(5,10,28,.35); }
.dashboard-page.dark_theme .dashboard-hero h1 { color:#fff !important; }
.dashboard-page.dark_theme .dashboard-hero p { color:rgba(255,255,255,.7); }
.dashboard-page.dark_theme .period-filter { border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.08); }
.dashboard-page.dark_theme .period-filter__control { background:#1b233b !important; }
.dashboard-page.dark_theme .forecast-card,.dashboard-page.dark_theme .dashboard-goal-item { background:linear-gradient(145deg,#222b45,#1b233b); }
.dashboard-page.dark_theme .quick-action { background:#1b284b; color:#9bb5ff; }
.dashboard-page.dark_theme .quick-action--income { background:#17352f; color:#62ddb2; }
.dashboard-page.dark_theme .quick-action--expense { background:#3a232d; color:#ff91a0; }
.dashboard-page.dark_theme .quick-action i { background:rgba(255,255,255,.06); box-shadow:none; }

/* Sistema visual compartilhado pelas demais telas autenticadas. */
.app-page:not(.dashboard-page) {
  --of-primary:#315cf5;
  --of-primary-dark:#2548c9;
  --of-ink:#152033;
  --of-muted:#748096;
  --of-border:#e7ebf2;
  --of-bg:#f5f7fb;
  --of-radius:22px;
  --of-shadow:0 10px 30px rgba(31,45,78,.07);
  font-family:"Segoe UI Variable","Segoe UI",Roboto,sans-serif;
  background:radial-gradient(circle at 82% 0,rgba(49,92,245,.055),transparent 28rem),var(--of-bg) !important;
}
.app-page .main-content { max-width:1540px; padding:2.25rem 2.5rem 3rem !important; }
.app-page .dashboard-topbar { position:sticky; z-index:100; top:0; border-bottom:1px solid rgba(226,232,240,.85); background:rgba(255,255,255,.9) !important; box-shadow:0 6px 24px rgba(35,48,78,.04); backdrop-filter:blur(14px); }
.app-page .dashboard-hero { min-height:150px; padding:1.75rem 2rem; border:0; border-radius:26px; background:linear-gradient(125deg,#142653,#214fca 58%,#4777ff); box-shadow:0 18px 40px rgba(30,72,180,.19); }
.app-page .dashboard-hero .eyebrow { color:#bcd0ff; }
.app-page .dashboard-hero h1 { margin:.35rem 0 .4rem; color:#fff; font-family:Poppins,"Segoe UI",sans-serif; font-size:clamp(1.75rem,2.4vw,2.3rem); letter-spacing:-.035em; }
.app-page .dashboard-hero p { color:rgba(255,255,255,.72); font-size:.94rem; }
.app-page .dashboard-hero .goal-primary-button,.app-page .dashboard-hero .btn { border:1px solid rgba(255,255,255,.22); background:#fff; color:#214fca; box-shadow:0 8px 20px rgba(10,30,80,.14); }
.app-page .report-heading { margin-bottom:1.35rem; padding:1.55rem 1.7rem; border:1px solid var(--of-border); border-radius:22px; background:var(--of-surface); box-shadow:var(--of-shadow); }
.app-page .report-heading h1 { font-family:Poppins,"Segoe UI",sans-serif; letter-spacing:-.03em; }
.app-page .main-content .card,
.app-page .goal-form-card,.app-page .goal-card,.app-page .goal-empty,
.app-page .schedule-form-card,.app-page .schedule-card,
.app-page .reconcile-upload,.app-page .reconcile-item,
.app-page .backup-card,.app-page .audit-event,
.app-page .alert-section,.app-page .invoice-card,
.app-page .access-profiles,.app-page .access-editor,.app-page .access-users {
  border:1px solid rgba(225,230,240,.92) !important;
  border-radius:22px !important;
  background:var(--of-surface) !important;
  box-shadow:var(--of-shadow) !important;
}
.app-page .main-content .card { overflow:hidden; }
.app-page .main-content .card-header { padding:1.15rem 1.4rem; border-bottom:1px solid var(--of-border); background:linear-gradient(180deg,#fff,#fafbfe); color:var(--of-ink); font-family:Poppins,"Segoe UI",sans-serif; font-size:1rem; font-weight:600; letter-spacing:-.015em; }
.app-page .main-content .card-body { padding:1.45rem; }
.app-page .main-content .card-title,.app-page .section-heading h2,.app-page .goal-card h2,.app-page .schedule-card h2 { font-family:Poppins,"Segoe UI",sans-serif; letter-spacing:-.02em; }
.app-page .form-control-label,.app-page .goal-form label,.app-page .schedule-form-card label { color:#41506a !important; font-size:.78rem; font-weight:700; letter-spacing:.01em; }
.app-page .main-content .form-control,
.app-page .goal-form input,.app-page .goal-form select,.app-page .goal-form textarea,
.app-page .schedule-form-card input,.app-page .schedule-form-card select,
.app-page .access-fields input,.app-page .access-user-row select {
  min-height:48px;
  padding:.68rem .85rem;
  border:1px solid #dce2eb;
  border-radius:12px;
  background:#f9fafc;
  color:var(--of-ink);
  font-size:.88rem;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.app-page .main-content textarea.form-control,.app-page .goal-form textarea { min-height:92px; }
.app-page .main-content .form-control:focus,.app-page .goal-form input:focus,.app-page .goal-form select:focus,.app-page .goal-form textarea:focus { border-color:var(--of-primary); background:#fff; box-shadow:0 0 0 4px rgba(49,92,245,.1); }
.app-page .input-group-text { border-color:#dce2eb; border-radius:12px 0 0 12px; background:#eef2ff; color:var(--of-primary); }
.app-page .input-group > .form-control:not(:first-child) { border-top-left-radius:0; border-bottom-left-radius:0; }
.app-page .main-content .btn { min-height:42px; border-radius:11px; font-size:.78rem; font-weight:700; letter-spacing:0; text-transform:none; box-shadow:none; }
.app-page .main-content .btn-primary,.app-page .goal-primary-button { border-color:var(--of-primary); background:linear-gradient(135deg,var(--of-primary),#4777ff) !important; color:#fff; box-shadow:0 8px 18px rgba(49,92,245,.18); }
.app-page .main-content .btn-primary:hover,.app-page .goal-primary-button:hover { background:linear-gradient(135deg,var(--of-primary-dark),#315cf5) !important; transform:translateY(-1px); }
.app-page .main-content .btn-secondary { border-color:#dce2eb; background:#fff; color:#475569; }
.app-page .main-content .btn-danger { border-color:#ef596f; background:#fff1f3; color:#c53f55; }
.app-page .table-responsive { border-radius:16px; }
.app-page .main-content .table { margin-bottom:0; color:var(--of-ink); }
.app-page .main-content .table thead th { padding:.85rem .75rem; border-top:0; border-bottom:1px solid var(--of-border); background:#f7f9fc; color:#66738a; font-size:.69rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.app-page .main-content .table tbody td { padding:.86rem .75rem; border-top:1px solid #edf0f5; vertical-align:middle; font-size:.82rem; }
.app-page .main-content .table-striped tbody tr:nth-of-type(odd) { background:rgba(247,249,252,.7); }
.app-page .main-content .table-hover tbody tr:hover { background:#f0f4ff; }
.app-page .modal-content { overflow:hidden; border:1px solid var(--of-border); border-radius:22px; box-shadow:0 28px 70px rgba(18,30,58,.2); }
.app-page .modal-header { padding:1.25rem 1.4rem; border-bottom-color:var(--of-border); }
.app-page .modal-title { font-family:Poppins,"Segoe UI",sans-serif; font-size:1.2rem; letter-spacing:-.02em; }
.app-page .modal-footer { border-top-color:var(--of-border); }
.app-page .empty-state,.app-page .goal-empty { border:1px dashed #dbe2ee; border-radius:16px; background:#f9fbff; }
.app-page .dataTables_filter input,.app-page .dataTables_length select { border-radius:10px !important; }
.app-page.dark_theme {
  --of-primary:#7697ff;
  --of-primary-dark:#91aaff;
  --of-ink:#f5f7ff;
  --of-muted:#aab5ce;
  --of-border:#333d5b;
  --of-surface:#202841;
  --of-bg:#11162a;
  --of-income:#54d4a5;
  --of-expense:#ff8091;
  --of-shadow:0 12px 30px rgba(3,7,20,.25);
  min-height:100vh;
  background:radial-gradient(circle at 82% 0,rgba(74,110,255,.09),transparent 30rem),var(--of-bg) !important;
  color:var(--of-ink);
  color-scheme:dark;
}
.app-page.dark_theme > .container-fluid,.app-page.dark_theme > .container-fluid > .row,.app-page.dark_theme .right-column { min-height:100vh; background:transparent !important; }
.app-page.dark_theme .main-content { background:transparent !important; color:var(--of-ink); }
.app-page.dark_theme .main-content .card,
.app-page.dark_theme .goal-form-card,.app-page.dark_theme .goal-card,.app-page.dark_theme .goal-empty,
.app-page.dark_theme .schedule-form-card,.app-page.dark_theme .schedule-card,
.app-page.dark_theme .reconcile-upload,.app-page.dark_theme .reconcile-item,
.app-page.dark_theme .backup-card,.app-page.dark_theme .audit-event,
.app-page.dark_theme .alert-section,.app-page.dark_theme .invoice-card,
.app-page.dark_theme .access-profiles,.app-page.dark_theme .access-editor,.app-page.dark_theme .access-users {
  border-color:var(--of-border) !important;
}
.app-page.dark_theme .dashboard-topbar { border-color:rgba(48,58,88,.9); background:rgba(24,31,53,.9) !important; }
.app-page.dark_theme .dashboard-hero { background:linear-gradient(125deg,#17264d,#243f93 58%,#315cf5) !important; }
.app-page.dark_theme .main-content .card-header { border-color:var(--of-border); background:linear-gradient(180deg,#222b45,#1e273f); color:#fff; }
.app-page.dark_theme .main-content .form-control,.app-page.dark_theme .goal-form input,.app-page.dark_theme .goal-form select,.app-page.dark_theme .goal-form textarea { border-color:#303a58; background:#171d32; color:#fff !important; }
.app-page.dark_theme .input-group-text { border-color:#303a58; background:#252f50; color:#9bb5ff; }
.app-page.dark_theme .main-content .table thead th { border-color:#303a58; background:#1b233b; color:#aeb8d0; }
.app-page.dark_theme .main-content .table tbody td { border-color:#303a58; color:#e6ebf7; }
.app-page.dark_theme .main-content .table-striped tbody tr:nth-of-type(odd) { background:rgba(17,23,42,.35); }
.app-page.dark_theme .main-content .table-hover tbody tr:hover { background:#27324f; }
.app-page.dark_theme .modal-content { border-color:#303a58; background:#222b45; }
.app-page.dark_theme .modal-header,.app-page.dark_theme .modal-footer { border-color:#303a58; }
.app-page.dark_theme .empty-state,.app-page.dark_theme .goal-empty { border-color:#303a58; background:#1b233b; }

.login-page { min-height: 100vh; background: #f2f6fc; }
.login-page .content { min-height: 100vh; padding: 2rem 0; display: flex; align-items: center; }
.login-page .content > .container { overflow: hidden; border-radius: 26px; background: white; box-shadow: 0 24px 70px rgba(23,32,51,.14); }
.login-page .login-visual { min-height: 610px; margin: 0 !important; display: flex; flex-direction: column; justify-content: center; padding: 3rem; background: linear-gradient(145deg, #122144, #2563eb); color: white; }
.login-brand { position: relative; z-index: 2; }
.login-brand img { width: 190px; max-width: 70%; margin-bottom: 1.5rem; }
.login-brand h1 { color: white; font-size: 2.3rem; font-weight: 700; }
.login-brand p { max-width: 420px; color: rgba(255,255,255,.75); line-height: 1.65; }
.login-page .contents { display: flex; align-items: center; padding: 3rem 2rem; }
.login-page .contents > .row { width: 100%; margin: 0; }
.login-page #form { flex: 0 0 100%; width: 100%; max-width: 500px; padding: 0; background: transparent; }
.login-page #form h3 { margin: .4rem 0 .55rem; color: var(--of-ink); font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; }
.login-page #form .mb-4 > p { max-width: 430px; margin-bottom: 1.75rem !important; color: #64748b; font-size: .95rem; line-height: 1.55; }
.login-page .auth-eyebrow { color: var(--of-primary); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-page .form-group { display: block; min-height: 0; margin-bottom: 1rem !important; padding: 0 !important; overflow: visible; border: 0 !important; background: transparent !important; }
.login-page .form-group label { position: static !important; display: block !important; margin: 0 0 .45rem !important; color: #334155 !important; font-size: .82rem !important; font-weight: 600; transform: none !important; }
.login-page .content .contents #form .form-control { box-sizing: border-box; width: 100%; height: 62px !important; padding: 0 1.1rem !important; border: 1px solid #cbd5e1 !important; border-radius: 14px !important; background: #f8fafc !important; color: var(--of-ink); font-size: 1rem !important; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-page .form-control:focus { border-color: var(--of-primary) !important; background: white !important; box-shadow: 0 0 0 4px rgba(37,99,235,.12) !important; }
.login-page .form-control::placeholder { color: #94a3b8; }
.login-page .login-actions { display: flex; flex-direction: column; gap: .85rem; margin-top: 2rem; }
.login-page .login-actions .btn { width: 100%; height: 58px; margin: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: .95rem; }
.login-page .btn-outline-primary { border: 1px solid var(--of-primary); border-radius: 12px; color: var(--of-primary); font-weight: 600; text-decoration: none; text-transform: none; }
.login-page .btn-outline-primary:hover { background: #eff6ff; color: #1d4ed8; }
.login-page .btn-primary { border-radius: 12px; background: var(--of-primary) !important; box-shadow: 0 8px 18px rgba(37,99,235,.23); font-weight: 600; text-transform: none; }
.register-page .login-visual { background: linear-gradient(145deg, #122144, #1d4ed8 58%, #0891b2); }
.recovery-page .login-visual { background: linear-gradient(145deg, #122144, #1e40af 58%, #7c3aed); }
.auth-help { display:flex; justify-content:flex-end; margin-top:.25rem; }
.auth-help a { color:var(--of-primary); font-size:.82rem; font-weight:600; text-decoration:none; }
.auth-help a:hover { text-decoration:underline !important; }
.password-field { position:relative !important; }
.password-field .password-toggle-input { padding-right:5.2rem !important; }
.password-toggle { position:absolute; z-index:4; right:.7rem; bottom:11px; min-width:62px; height:40px; padding:0 .65rem; border:0; border-radius:9px; background:transparent; color:var(--of-primary); font-size:.74rem; font-weight:700; cursor:pointer; }
.password-toggle:hover { background:rgba(37,99,235,.08); }
.password-toggle:focus-visible { outline:3px solid #60a5fa; outline-offset:2px; }
.input-group.password-field .password-toggle { bottom:2px; }
.input-group.password-field .form-control { padding-right:5.2rem !important; }
.password-strength { display:grid; gap:.55rem; margin:.65rem 0 .2rem; }
.password-strength__header { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:var(--of-muted); font-size:.74rem; }
.password-strength__header strong { color:#dc2626; font-weight:800; }
.password-strength__track { height:7px; overflow:hidden; border-radius:999px; background:#e5e7eb; }
.password-strength__track span { display:block; width:0; height:100%; border-radius:inherit; background:#dc2626; transition:width .2s ease,background-color .2s ease; }
.password-strength[data-level="medium"] .password-strength__header strong { color:#d97706; }
.password-strength[data-level="medium"] .password-strength__track span { background:#f59e0b; }
.password-strength[data-level="strong"] .password-strength__header strong { color:#059669; }
.password-strength[data-level="strong"] .password-strength__track span { background:#10b981; }
.password-strength[data-level="empty"] .password-strength__header strong { color:var(--of-muted); }
.password-strength__rules { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.25rem .75rem; margin:0; padding:0; list-style:none; color:var(--of-muted); font-size:.7rem; }
.password-strength__rules li { display:flex; align-items:center; gap:.35rem; }
.password-strength__rules li span { width:1rem; color:#94a3b8; font-weight:900; text-align:center; }
.password-strength__rules li.is-valid { color:#047857; }
.password-strength__rules li.is-valid span { color:#10b981; }
.form-control.is-mismatch { border-color:#dc2626 !important; box-shadow:0 0 0 2px rgba(220,38,38,.1) !important; }
.dark_theme .password-strength__track,.auth-page .password-strength__track { background:#2d3856; }
.dark_theme .password-strength__rules li.is-valid { color:#6ee7b7; }
@media (max-width:575px) { .password-strength__rules { grid-template-columns:1fr; } }
.auth-feedback { margin-bottom:1.25rem; padding:.9rem 1rem; border-radius:12px; font-size:.84rem; line-height:1.5; }
.auth-feedback--success { border:1px solid rgba(5,150,105,.25); background:#ecfdf5; color:#047857; }
.auth-feedback--error { border:1px solid rgba(220,38,38,.2); background:#fef2f2; color:#b91c1c; }
.login-page .login-actions a.btn-primary { color:#fff; text-decoration:none; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 14px !important; }
.skip-link { position: fixed; z-index: 99999; top: .5rem; left: .5rem; padding: .75rem 1rem; border-radius: 9px; background: #111827; color: #fff !important; font-weight: 700; transform: translateY(-160%); transition: transform .15s; }
.skip-link:focus { transform: translateY(0); }
*:focus-visible { outline: 3px solid #60a5fa !important; outline-offset: 3px; }
[aria-invalid="true"] { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important; }
button, input, select, textarea { font: inherit; }
.main-content a:not(.btn):not(.quick-action):not(.goal-primary-button) { text-underline-offset: 3px; }
.table-responsive { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sidebar { height: 100vh !important; background:linear-gradient(180deg,#18233f 0%,#10182d 100%) !important; }
.sidebar .logo-nav-item { padding:.75rem 1rem .35rem; }
.sidebar .logo-nav-item .navbar-brand { display:flex; justify-content:center; margin:0; padding:.25rem; }
.sidebar .logo-nav-item img { width:150px; height:auto; max-height:80px; object-fit:contain; }
.sidebar .nav-header { margin:.8rem 1.35rem .25rem; padding:.45rem 0 .35rem; border-top:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.48); font-size:.68rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.sidebar .logo-nav-item + .nav-header { margin-top:.25rem; border-top:0; }
.sidebar .nav .nav-item .nav-link { display:flex; align-items:center; gap:1rem; min-height:44px; margin:.08rem .7rem; padding:.7rem .75rem; border-radius:9px; color:rgba(255,255,255,.76); font-size:.88rem; line-height:1.3; transition:background-color .15s,color .15s; }
.sidebar .nav .nav-item .nav-link i { flex:0 0 22px; width:22px; margin:0 !important; color:rgba(255,255,255,.58); font-size:1rem !important; text-align:center; }
.sidebar .nav .nav-item .nav-link:hover,.sidebar .nav .nav-item .nav-link:focus,.sidebar .nav .nav-item .nav-link.active { background:rgba(60,110,255,.2) !important; color:#fff !important; }
.sidebar .nav .nav-item .nav-link.active { box-shadow:inset 3px 0 0 #5c8cff; font-weight:700; }
.sidebar .nav .nav-item .nav-link:hover i,.sidebar .nav .nav-item .nav-link:focus i,.sidebar .nav .nav-item .nav-link.active i { color:#76a0ff !important; }
.sidebar .nav .nav-item > ul.nav { margin:.15rem .7rem .35rem; padding:.15rem 0 .15rem .55rem; border-left:1px solid rgba(255,255,255,.1); }
.sidebar .nav .nav-item > ul.nav .nav-link { gap:.9rem; min-height:40px; margin:.05rem 0; padding:.58rem .65rem; font-size:.82rem; }
.sidebar .nav .nav-item .nav-link .alert-menu-badge { margin-left:auto; }
.sidebar .nav .nav-item .nav-link.nav-parent::after { content:'›' !important; margin-left:auto; font-family:Arial,sans-serif !important; font-size:1.4rem; line-height:1; transform:rotate(0); }
.sidebar .nav .nav-item.open > .nav-link.nav-parent::after { transform:rotate(90deg); }
.sidebar .sidebar-logout { margin:.9rem .7rem 1.2rem; padding-top:.7rem; border-top:1px solid rgba(255,255,255,.1); }
.sidebar .sidebar-logout .nav-link { width:calc(100% - 1.4rem) !important; border:0; background:transparent; text-transform:none; }
.sidebar-collapse-item { margin:.15rem .7rem .7rem; }
.sidebar-collapse-toggle { display:flex; align-items:center; gap:.8rem; width:100%; min-height:38px; padding:.55rem .75rem; border:1px solid rgba(255,255,255,.1); border-radius:9px; background:rgba(255,255,255,.04); color:rgba(255,255,255,.72); font-size:.76rem; font-weight:700; cursor:pointer; }
.sidebar-collapse-toggle:hover,.sidebar-collapse-toggle:focus { border-color:rgba(118,160,255,.45); background:rgba(60,110,255,.16); color:#fff; }
.sidebar-collapse-toggle i { flex:0 0 22px; width:22px; color:#76a0ff; text-align:center; }
/* Sidebar v2: navegação orientada às tarefas */
.sidebar-v2{border-right:1px solid rgba(133,160,220,.12);background:linear-gradient(180deg,#172440 0%,#101a31 58%,#0c1428 100%)!important;box-shadow:14px 0 38px rgba(4,10,26,.14)}
.sidebar-v2 .logo-nav-item{padding:1rem .9rem .55rem}.sidebar-v2 .logo-nav-item .navbar-brand{position:relative;display:grid;gap:.1rem;justify-items:center}.sidebar-v2 .logo-nav-item img{max-height:62px}.sidebar-v2 .brand-caption{color:rgba(190,207,242,.52);font-size:.58rem;font-weight:750;letter-spacing:.16em;text-transform:uppercase}
.sidebar-v2 .sidebar-collapse-item{margin:.25rem .85rem .65rem}.sidebar-v2 .sidebar-collapse-toggle{min-height:40px;border-color:rgba(133,160,220,.16);border-radius:12px;background:rgba(255,255,255,.035)}
.sidebar-v2 .nav-header{display:flex;align-items:center;gap:.6rem;margin:.72rem 1.15rem .2rem;padding:.55rem .2rem .25rem;border:0;color:#7f8dac;font-size:.61rem;letter-spacing:.15em}.sidebar-v2 .nav-header::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,rgba(133,160,220,.16),transparent)}
.sidebar-v2 .nav>.nav-item>.nav-link{position:relative;gap:.72rem;min-height:43px;margin:.08rem .72rem;padding:.48rem .58rem;border:1px solid transparent;border-radius:12px;color:#b7c2da;font-size:.82rem;font-weight:570}
.sidebar-v2 .nav-icon{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:10px;background:rgba(133,160,220,.07);transition:.18s ease}.sidebar-v2 .nav-icon i{width:auto!important;color:#8190ae!important;font-size:.92rem!important}.sidebar-v2 .nav-label{min-width:0;flex:1}
.sidebar-v2 .nav>.nav-item>.nav-link:hover,.sidebar-v2 .nav>.nav-item>.nav-link:focus{border-color:rgba(105,143,255,.18);background:rgba(71,108,213,.12)!important;transform:translateX(2px)}
.sidebar-v2 .nav>.nav-item>.nav-link.active{border-color:rgba(105,143,255,.24);background:linear-gradient(105deg,rgba(49,91,218,.34),rgba(59,104,235,.14))!important;box-shadow:none;font-weight:760}.sidebar-v2 .nav>.nav-item>.nav-link.active::before{content:'';position:absolute;left:-1px;width:3px;height:22px;border-radius:0 4px 4px 0;background:#6f94ff;box-shadow:0 0 12px rgba(111,148,255,.65)}
.sidebar-v2 .nav>.nav-item>.nav-link:hover .nav-icon,.sidebar-v2 .nav>.nav-item>.nav-link.active .nav-icon{background:rgba(91,132,255,.18)}.sidebar-v2 .nav>.nav-item>.nav-link:hover .nav-icon i,.sidebar-v2 .nav>.nav-item>.nav-link.active .nav-icon i{color:#89a7ff!important}
.sidebar-v2 .nav-link--income .nav-icon i{color:#4ed3ad!important}.sidebar-v2 .nav-link--expense .nav-icon i{color:#ff8293!important}.sidebar-v2 .nav-link--transfer .nav-icon i{color:#f3ca72!important}.sidebar-v2 .nav-link--danger{color:#e9a5af!important}.sidebar-v2 .nav-link--danger .nav-icon{background:rgba(224,75,96,.1)}.sidebar-v2 .nav-link--danger .nav-icon i{color:#ff8293!important}
.sidebar-v2 .nav .nav-item>.nav-link.nav-parent::after{color:#71809e;font-size:1.15rem;transition:transform .18s}.sidebar-v2 .nav .nav-item>ul.nav{margin:.18rem .8rem .4rem 2.1rem;padding:.12rem 0 .12rem .55rem;border-left:1px solid rgba(118,147,210,.16)}.sidebar-v2 .nav .nav-item>ul.nav .nav-link{gap:.55rem;min-height:36px;margin:.05rem 0;padding:.38rem .45rem;border-radius:9px;color:#909db8;font-size:.75rem}.sidebar-v2 .nav .nav-item>ul.nav .nav-icon{flex-basis:28px;width:28px;height:28px;border-radius:8px;background:transparent}.sidebar-v2 .nav .nav-item>ul.nav .nav-link.active{background:rgba(72,112,232,.16)!important;color:#fff!important;box-shadow:none}.sidebar-v2 .nav .nav-item>ul.nav .nav-link.active::before{display:none}
.sidebar-v2 .alert-menu-badge{display:grid;min-width:21px;height:21px;padding:0 .3rem;place-items:center;border:2px solid #172440;border-radius:999px;background:#ff5268;color:#fff;font-size:.64rem;font-weight:800}.sidebar-v2 .sidebar-logout{margin:1rem .72rem 1.25rem;padding-top:.85rem;border-color:rgba(133,160,220,.12)}.sidebar-v2 .sidebar-logout .nav-link{color:#9eabc5!important}.sidebar-v2 .sidebar-logout .nav-icon i{color:#ff8293!important}
@media(max-width:991.98px){.sidebar-v2 .sidebar-collapse-item{display:none}.sidebar-v2 .logo-nav-item{padding-top:1.25rem}.sidebar-v2 .nav-header{margin-top:.85rem}}
.theme-toggle-form { display:flex; align-items:center; margin:0; }
.theme-toggle:not(.topbar-icon-button) { display:flex; align-items:center; gap:.55rem; min-height:40px; padding:.55rem .8rem; border:1px solid var(--of-border); border-radius:10px; background:var(--of-surface); color:var(--of-ink); font-size:.8rem; font-weight:700; cursor:pointer; }
.theme-toggle:not(.topbar-icon-button):hover { border-color:var(--of-primary); color:var(--of-primary); }
.dark_theme .theme-toggle:not(.topbar-icon-button) { border-color:#3a4666; background:#1b233b; color:#e6ebf7; }
.access-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:1rem;align-items:start}.access-profiles,.access-editor,.access-users{border:1px solid var(--of-border);border-radius:var(--of-radius);background:var(--of-surface);box-shadow:var(--of-shadow)}.access-profiles{overflow:hidden;padding:.65rem}.access-profiles>a,.access-profile-item>a{display:block;padding:.75rem;border-radius:9px;color:var(--of-ink)}.access-profiles>a.active,.access-profile-item>a.active{background:#eaf0ff;color:var(--of-primary)}.access-profile-item{position:relative}.access-profile-item form{position:absolute;right:.35rem;top:.45rem}.access-profile-item form button{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--of-expense);cursor:pointer}.access-profiles strong,.access-profiles span{display:block}.access-profiles span{color:var(--of-muted);font-size:.72rem}.access-profiles .access-new{margin-bottom:.5rem;background:var(--of-primary);color:#fff;font-weight:700}.access-editor{padding:1.25rem}.access-fields{display:grid;grid-template-columns:.7fr 1.3fr;gap:.8rem;margin-bottom:1rem}.access-fields label{color:var(--of-muted)!important;font-size:.78rem;font-weight:700}.access-fields input{display:block;width:100%;margin-top:.35rem;padding:.7rem;border:1px solid var(--of-border);border-radius:9px;background:var(--of-bg);color:var(--of-ink)}.access-table th,.access-table td{text-align:center}.access-table th:first-child{text-align:left}.access-table input{width:18px;height:18px}.access-users{margin-top:1rem;padding:1.25rem}.access-user-row{display:grid;grid-template-columns:1fr minmax(180px,.35fr) auto;gap:.7rem;align-items:center;padding:.7rem 0;border-bottom:1px solid var(--of-border)}.access-user-row strong,.access-user-row span{display:block}.access-user-row span{color:var(--of-muted);font-size:.75rem}.access-user-row select,.access-user-row button{min-height:40px;border-radius:9px}.access-user-row select{padding:.5rem;border:1px solid var(--of-border);background:var(--of-bg);color:var(--of-ink)}.access-user-row button{border:0;padding:.5rem .8rem;background:var(--of-primary);color:#fff;font-weight:700}.dark_theme .access-profiles>a.active,.dark_theme .access-profile-item>a.active{background:rgba(51,102,255,.18)}
.sidebar-backdrop { display:none; position:fixed; z-index:8999; inset:0; width:100%; height:100%; padding:0; border:0; background:rgba(15,23,42,.58); cursor:pointer; }
body.sidebar-is-open { overflow:hidden; }
body.sidebar-is-open .sidebar-backdrop { display:block; }

/* Cadastro de categorias: formulário compacto e ações legíveis. */
.categories-page form[name="form_categoria"] { max-width:560px; }
.categories-page form[name="form_categoria"] .form-group { flex:0 0 100%; max-width:100%; margin-bottom:.85rem; }
.categories-page form[name="form_categoria"] .input-group { width:100%; max-width:520px; }
.categories-page form[name="form_categoria"] .input-group-text { display:grid; width:46px; min-width:46px; height:44px; padding:0; place-items:center; }
.categories-page form[name="form_categoria"] .form-control { height:44px; min-width:0; padding:.55rem .8rem; font-size:.9rem; }
.categories-page form[name="form_categoria"] .text-help { display:block; margin-top:.25rem; color:var(--of-muted); font-size:.74rem; }
.categories-page form[name="form_categoria"] .btn { min-width:112px; min-height:42px; margin:.45rem .45rem 0 0 !important; padding:.58rem .9rem; font-size:.8rem; }
.categories-page .actions { display:flex; align-items:center; justify-content:center; gap:.4rem; white-space:nowrap; }
.categories-page .actions form { margin:0; }
.categories-page .category-action { display:grid !important; width:38px; min-width:38px; height:38px; min-height:38px; margin:0 !important; padding:0 !important; border:1px solid transparent !important; place-items:center; box-shadow:none !important; }
.categories-page .category-action i { color:inherit !important; font-size:14px !important; }
.categories-page .category-action--edit { border-color:#bfdbfe !important; background:#eaf2ff !important; color:#2563eb !important; }
.categories-page .category-action--activate { border-color:#bbf7d0 !important; background:#dcfce7 !important; color:#15803d !important; }
.categories-page .category-action--deactivate { border-color:#fecdd3 !important; background:#ffe4e6 !important; color:#dc2626 !important; }
.categories-page .category-action:hover,.categories-page .category-action:focus { filter:brightness(.94); }
.dark_theme.categories-page .category-action--edit { border-color:#385ca8 !important; background:#20345f !important; color:#8eb0ff !important; }
.dark_theme.categories-page .category-action--activate { border-color:#286345 !important; background:#1b4935 !important; color:#72e2ab !important; }
.dark_theme.categories-page .category-action--deactivate { border-color:#783747 !important; background:#542635 !important; color:#ff9aaa !important; }

/* Relatórios financeiros. */
.reports-page .main-content > .row:first-child { margin-bottom:1rem; }
.reports-page .main-content > .col-md-12 { padding:0; }
.reports-page .table-responsive .container-fluid { padding:0; }
.reports-page .table-responsive .row { margin:0; }
.reports-page .table-responsive .col-sm-10 { flex:0 0 100%; max-width:100%; padding:0; }
.reports-page .card-body { padding:1.35rem; }
.reports-page .table th,.reports-page .table td { vertical-align:middle; text-align:center; }
.reports-page .actions { display:flex; align-items:center; justify-content:center; gap:.35rem; white-space:nowrap; }
.reports-page .actions form { margin:0; }
.reports-page .report-action { display:grid !important; width:36px; min-width:36px; height:36px; min-height:36px; margin:0 !important; padding:0 !important; border:1px solid transparent !important; place-items:center; box-shadow:none !important; }
.reports-page .report-action i { color:inherit !important; font-size:14px !important; }
.reports-page .report-action--view { border-color:#bfdbfe !important; background:#eaf2ff !important; color:#2563eb !important; }
.reports-page .report-action--complete { border-color:#bbf7d0 !important; background:#dcfce7 !important; color:#15803d !important; }
.reports-page .report-action--delete { border-color:#fecdd3 !important; background:#ffe4e6 !important; color:#dc2626 !important; }
.dark_theme.reports-page .report-action--view { border-color:#385ca8 !important; background:#20345f !important; color:#8eb0ff !important; }
.dark_theme.reports-page .report-action--complete { border-color:#286345 !important; background:#1b4935 !important; color:#72e2ab !important; }
.dark_theme.reports-page .report-action--delete { border-color:#783747 !important; background:#542635 !important; color:#ff9aaa !important; }
.reports-page .main-content > .row:first-child h2 { margin:0; font-size:1.75rem; font-weight:500; text-transform:uppercase; }
.reports-page .main-content > .col-md-12 > .card,
.reports-page .main-content > .col-md-6 > .card { border-radius:4px; }
.reports-page .card-title { margin-bottom:1rem; font-size:1.25rem; font-weight:500; text-transform:uppercase; }
.reports-page .dt-buttons { display:flex; flex-wrap:wrap; gap:.45rem; margin:0 0 .9rem; padding-bottom:.5rem; border-bottom:1px solid var(--of-border); }
.reports-page .dt-buttons .dt-button { min-height:36px; margin:0; padding:.45rem .75rem; border:1px solid var(--of-border); border-radius:2px; background:var(--of-bg); color:var(--of-ink); font-size:.78rem; font-weight:600; box-shadow:none; }
.reports-page .dt-buttons .dt-button:hover { border-color:var(--of-primary); background:rgba(51,102,255,.12); color:var(--of-primary); }
.reports-page table.dataTable thead th { padding:.45rem .35rem .85rem; border-bottom:1px solid var(--of-border); }
.reports-page table.dataTable thead th .form-control { width:100%; min-width:90px; height:42px; padding:.55rem .65rem; border:1px solid var(--of-border); border-radius:6px; background:var(--of-bg); color:var(--of-ink); font-size:.8rem; font-weight:400; }
.reports-page table.dataTable thead th:last-child { min-width:132px; color:var(--of-ink); }
.reports-page table.dataTable tbody td { height:66px; border-top:1px solid var(--of-border); background:rgba(248,250,252,.7); color:var(--of-ink); font-size:.88rem; }
.reports-page table.dataTable tbody tr:nth-child(even) td { background:var(--of-surface); }
.reports-page table.dataTable tfoot th { padding:.9rem .45rem; border-top:1px solid var(--of-border); color:var(--of-ink); font-weight:700; }
.reports-page table.dataTable tfoot th:nth-last-child(2) { font-size:1.05rem !important; white-space:normal; }
.reports-page .dataTables_info { padding-top:1rem; color:var(--of-muted); font-size:.78rem; }
.reports-page .dataTables_paginate { padding-top:.75rem; }
.dark_theme.reports-page table.dataTable thead th .form-control { border-color:#303a58; background:#151a30; color:#f4f7ff; }
.dark_theme.reports-page table.dataTable thead th .form-control::placeholder { color:#7f8ba8; opacity:1; }
.dark_theme.reports-page table.dataTable tbody td { border-top-color:#26314e; background:#182139; color:#f4f7ff; }
.dark_theme.reports-page table.dataTable tbody tr:nth-child(even) td { background:#1b2540; }
.dark_theme.reports-page .dt-buttons .dt-button { border-color:#303a58; background:#182139; color:#f4f7ff; }
.dark_theme.reports-page .dt-buttons .dt-button:hover { border-color:#5c82ff; background:#20345f; color:#9bb5ff; }
.reports-page table.dataTable th:nth-child(1) { width:12%; }
.reports-page table.dataTable th:nth-child(2) { width:19%; }
.reports-page table.dataTable th:nth-child(3) { width:14%; }
.reports-page table.dataTable th:nth-child(4) { width:17%; }
.reports-page table.dataTable th:nth-child(5) { width:10%; }
.reports-page table.dataTable th:nth-child(6) { width:11%; }
.reports-page table.dataTable th:nth-child(7) { width:17%; }
.reports-page table.dataTable td { overflow-wrap:anywhere; white-space:normal; }
.reports-page table.dataTable td:nth-last-child(2) { white-space:nowrap; }
@media (min-width:768px) {
  .reports-page .main-content { padding-right:1.5rem !important; padding-left:1.5rem !important; }
  .reports-page .table-responsive { overflow-x:visible !important; }
  .reports-page table.dataTable { width:100% !important; min-width:0 !important; table-layout:fixed !important; }
  .reports-page table.dataTable thead th { min-width:0 !important; padding-right:.22rem; padding-left:.22rem; }
  .reports-page table.dataTable thead th .form-control { min-width:0; height:38px; padding:.42rem .45rem; font-size:.72rem; }
  .reports-page table.dataTable tbody td { padding:.58rem .35rem; font-size:.78rem; }
  .reports-page .report-action { width:32px; min-width:32px; height:32px; min-height:32px; }
}

/* Relatório de receitas sem rolagem horizontal. */
.receipts-report-page .main-content { padding-right:1rem !important; padding-left:1rem !important; }
.receipts-report-page { overflow-x:hidden !important; }
.receipts-report-page .right-column,
.receipts-report-page .main-content,
.receipts-report-page .main-content > * { min-width:0 !important; max-width:100%; }
.receipts-report-page .main-content > .col-md-12,
.receipts-report-page .main-content > .col-md-12 > .card,
.receipts-report-page .table-responsive,
.receipts-report-page .dataTables_wrapper,
.receipts-report-page .dt-container,
.receipts-report-page .dt-layout-row,
.receipts-report-page .dt-layout-cell { width:100% !important; min-width:0 !important; max-width:100% !important; }
.receipts-report-page .table-responsive { overflow-x:hidden !important; }
.receipts-report-page .report-table-area,
.receipts-report-page .report-table-shell,
.receipts-report-page .report-table-row,
.receipts-report-page .report-table-column { display:block; width:100% !important; min-width:0 !important; max-width:100% !important; margin:0 !important; padding:0 !important; overflow:hidden !important; }
.receipts-report-page .card-body { padding:1rem; }
.receipts-report-page #extrato_conta { width:100% !important; min-width:0 !important; table-layout:fixed !important; }
.receipts-report-page #extrato_conta th:nth-child(1) { width:12% !important; }
.receipts-report-page #extrato_conta th:nth-child(2) { width:18% !important; }
.receipts-report-page #extrato_conta th:nth-child(3) { width:14% !important; }
.receipts-report-page #extrato_conta th:nth-child(4) { width:17% !important; }
.receipts-report-page #extrato_conta th:nth-child(5) { width:10% !important; }
.receipts-report-page #extrato_conta th:nth-child(6) { width:11% !important; }
.receipts-report-page #extrato_conta th:nth-child(7) { width:18% !important; }
.receipts-report-page #extrato_conta th,
.receipts-report-page #extrato_conta td { min-width:0 !important; max-width:0; padding:.55rem .25rem; font-size:.74rem; overflow-wrap:anywhere; white-space:normal; }
.receipts-report-page #extrato_conta thead .form-control { width:100% !important; min-width:0 !important; height:36px; padding:.38rem .4rem; font-size:.7rem !important; }
.receipts-report-page #extrato_conta .actions { gap:.18rem; }
.receipts-report-page #extrato_conta .report-action { width:29px; min-width:29px; height:29px; min-height:29px; }
.receipts-report-page #extrato_conta .report-action i { font-size:12px !important; }
.receipts-report-page #extrato_conta_wrapper { width:100% !important; min-width:0 !important; max-width:100% !important; overflow:hidden !important; }
.receipts-report-page #extrato_conta_wrapper .dt-layout-row,
.receipts-report-page #extrato_conta_wrapper .dt-layout-cell { min-width:0 !important; max-width:100% !important; margin-right:0 !important; margin-left:0 !important; padding-right:0 !important; padding-left:0 !important; }

/* Mesma estrutura sem overflow para despesas e transferências. */
.expenses-report-page,
.transfers-report-page { overflow-x:hidden !important; }
.expenses-report-page .right-column,
.expenses-report-page .main-content,
.transfers-report-page .right-column,
.transfers-report-page .main-content { min-width:0 !important; max-width:100%; }
.expenses-report-page .main-content,
.transfers-report-page .main-content { padding-right:1rem !important; padding-left:1rem !important; }
.reports-page .report-table-area,
.reports-page .report-table-shell,
.reports-page .report-table-row,
.reports-page .report-table-column { display:block; width:100% !important; min-width:0 !important; max-width:100% !important; margin:0 !important; padding:0 !important; overflow:hidden !important; }
.expenses-report-page #extrato_conta,
.transfers-report-page #extrato_contaD,
.transfers-report-page #extrato_contaC { width:100% !important; min-width:0 !important; table-layout:fixed !important; }
.expenses-report-page #extrato_conta_wrapper,
.transfers-report-page #extrato_contaD_wrapper,
.transfers-report-page #extrato_contaC_wrapper { width:100% !important; min-width:0 !important; max-width:100% !important; overflow:hidden !important; }
.transfers-report-page table.dataTable th:nth-child(1) { width:15% !important; }
.transfers-report-page table.dataTable th:nth-child(2) { width:24% !important; }
.transfers-report-page table.dataTable th:nth-child(3) { width:21% !important; }
.transfers-report-page table.dataTable th:nth-child(4) { width:13% !important; }
.transfers-report-page table.dataTable th:nth-child(5) { width:12% !important; }
.transfers-report-page table.dataTable th:nth-child(6) { width:15% !important; }

/* Relatório de contas correntes. */
.accounts-statement-page { overflow-x:hidden; }
.accounts-statement-page .main-content { min-width:0; padding:1.5rem !important; }
.report-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.report-heading h1 { margin:.2rem 0; color:var(--of-ink); font-size:1.8rem; text-transform:uppercase; }
.report-heading p { margin:0; color:var(--of-muted); }
.account-report-filter { display:grid; grid-template-columns:150px 150px minmax(220px,1fr) 210px 140px; align-items:end; justify-content:start; gap:.65rem; width:100%; max-width:100%; margin-bottom:1rem; padding:.75rem; border:1px solid var(--of-border); border-radius:var(--of-radius); background:var(--of-surface); box-shadow:var(--of-shadow); }
.account-report-filter label { margin:0; color:var(--of-muted) !important; font-size:.76rem; font-weight:700; }
.account-report-filter input,.account-report-filter select,.account-report-filter button { box-sizing:border-box; width:100%; height:40px !important; min-height:40px !important; max-height:40px; margin-top:.3rem; border-radius:8px; font-size:.78rem !important; }
.account-report-filter input,.account-report-filter select { padding:.4rem .55rem !important; border:1px solid var(--of-border); background:var(--of-bg); color:var(--of-ink); }
.account-report-filter button { width:140px; margin-top:0; padding:.4rem .65rem; border:0; background:var(--of-primary); color:#fff; font-size:.75rem !important; font-weight:700; white-space:nowrap; }
.account-report-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-bottom:1rem; }
.account-report-summary article { padding:1rem; border:1px solid var(--of-border); border-radius:12px; background:var(--of-surface); box-shadow:var(--of-shadow); }
.account-report-summary span,.account-report-summary strong { display:block; }
.account-report-summary span { color:var(--of-muted); font-size:.75rem; }
.account-report-summary strong { margin-top:.25rem; color:var(--of-ink); font-size:1.15rem; }
.account-report-summary .is-income strong,.accounts-statement-page td.income { color:var(--of-income); }
.account-report-summary .is-expense strong,.accounts-statement-page td.expense { color:var(--of-expense); }
.account-report-card { width:100%; max-width:100%; overflow:hidden; }
.accounts-statement-page .report-table-area,.accounts-statement-page #account_statement_wrapper { width:100%; min-width:0; max-width:100%; overflow:hidden; }
.accounts-statement-page #account_statement { width:100% !important; min-width:0 !important; table-layout:fixed; }
.accounts-statement-page #account_statement th:nth-child(1){width:9%}.accounts-statement-page #account_statement th:nth-child(2){width:13%}.accounts-statement-page #account_statement th:nth-child(3){width:17%}.accounts-statement-page #account_statement th:nth-child(4){width:13%}.accounts-statement-page #account_statement th:nth-child(5){width:16%}.accounts-statement-page #account_statement th:nth-child(6),.accounts-statement-page #account_statement th:nth-child(7),.accounts-statement-page #account_statement th:nth-child(8){width:10.66%}
.accounts-statement-page #account_statement th,.accounts-statement-page #account_statement td { min-width:0; padding:.55rem .3rem; overflow-wrap:anywhere; text-align:center; white-space:normal; }
.accounts-statement-page #account_statement thead input { width:100%; min-width:0; height:36px; padding:.35rem .4rem; border:1px solid var(--of-border); border-radius:7px; background:var(--of-bg); color:var(--of-ink); font-size:.7rem; }
.accounts-statement-page #account_statement td { color:var(--of-ink); font-size:.76rem; }
.accounts-statement-page #account_statement td:nth-child(6),.accounts-statement-page #account_statement td:nth-child(7),.accounts-statement-page #account_statement td:nth-child(8) { white-space:nowrap; }
.dark_theme.accounts-statement-page .account-report-filter,.dark_theme.accounts-statement-page .account-report-summary article,.dark_theme.accounts-statement-page .account-report-card { border-color:var(--of-border); background:var(--of-surface); }
@media (max-width:991px){.account-report-filter{grid-template-columns:repeat(2,1fr)}.account-report-summary{grid-template-columns:repeat(2,1fr)}.accounts-statement-page .report-table-area{overflow-x:auto}.accounts-statement-page #account_statement{min-width:820px!important;table-layout:auto}}
@media (max-width:767px){.report-heading{flex-direction:column}.account-report-filter,.account-report-summary{grid-template-columns:1fr}.account-report-filter button{width:100%}}

/* Relatório de faturas de cartão. */
.card-invoices-report-page { overflow-x:hidden; }
.card-invoices-report-page .main-content { min-width:0; padding:1.5rem !important; }
.invoice-report-filter { display:grid; grid-template-columns:minmax(240px,320px) minmax(300px,420px) 140px; align-items:end; justify-content:start; gap:.65rem; width:fit-content; max-width:100%; margin-bottom:1rem; padding:.75rem; border:1px solid var(--of-border); border-radius:var(--of-radius); background:var(--of-surface); box-shadow:var(--of-shadow); }
.invoice-report-filter label { margin:0; color:var(--of-muted)!important; font-size:.76rem; font-weight:700; }
.invoice-report-filter select,.invoice-report-filter button { width:100%; height:40px!important; min-height:40px!important; margin-top:.3rem; border-radius:8px; font-size:.78rem!important; }
.invoice-report-filter select { padding:.4rem .55rem; border:1px solid var(--of-border); background:var(--of-bg); color:var(--of-ink); }
.invoice-report-filter button { width:140px; margin-top:0; padding:.4rem .65rem; border:0; background:var(--of-primary); color:#fff; font-weight:700; white-space:nowrap; }
.card-invoices-report-page .report-table-area,.card-invoices-report-page #invoice_report_wrapper { width:100%; min-width:0; max-width:100%; overflow:hidden; }
.card-invoices-report-page #invoice_report { width:100%!important; min-width:0!important; table-layout:fixed; }
.card-invoices-report-page #invoice_report th:nth-child(1){width:10%}.card-invoices-report-page #invoice_report th:nth-child(2){width:14%}.card-invoices-report-page #invoice_report th:nth-child(3){width:10%}.card-invoices-report-page #invoice_report th:nth-child(4){width:18%}.card-invoices-report-page #invoice_report th:nth-child(5){width:13%}.card-invoices-report-page #invoice_report th:nth-child(6){width:11%}.card-invoices-report-page #invoice_report th:nth-child(7){width:11%}.card-invoices-report-page #invoice_report th:nth-child(8){width:13%}
.card-invoices-report-page #invoice_report th,.card-invoices-report-page #invoice_report td { min-width:0; padding:.55rem .3rem; overflow-wrap:anywhere; text-align:center; white-space:normal; }
.card-invoices-report-page #invoice_report thead input { width:100%; min-width:0; height:36px; padding:.35rem .4rem; border:1px solid var(--of-border); border-radius:7px; background:var(--of-bg); color:var(--of-ink); font-size:.7rem; }
.card-invoices-report-page #invoice_report td { color:var(--of-ink); font-size:.76rem; }
.card-invoices-report-page #invoice_report td:last-child { white-space:nowrap; }
.dark_theme.card-invoices-report-page .invoice-report-filter,.dark_theme.card-invoices-report-page .account-report-card { border-color:var(--of-border); background:var(--of-surface); }
@media(max-width:991px){.invoice-report-filter{grid-template-columns:repeat(2,1fr);width:100%}.invoice-report-filter button{width:100%}.card-invoices-report-page .report-table-area{overflow-x:auto}.card-invoices-report-page #invoice_report{min-width:820px!important;table-layout:auto}}
@media(max-width:767px){.invoice-report-filter{grid-template-columns:1fr}}
/* Cartões e matriz de permissões no tema dark. */
.dark_theme .access-profiles,
.dark_theme .access-editor,
.dark_theme .access-users { border-color:#303a58; background:#222b45; box-shadow:0 12px 30px rgba(4,8,24,.22); }
.dark_theme .access-profiles>a,
.dark_theme .access-profile-item>a { color:#f4f7ff; }
.dark_theme .access-profiles>a.active,
.dark_theme .access-profile-item>a.active { background:rgba(51,102,255,.22); color:#9bb5ff; }
.dark_theme .access-profiles span,
.dark_theme .access-user-row span { color:#aeb8d0; }
.dark_theme .access-fields label { color:#dce3f4 !important; }
.dark_theme .access-fields input,
.dark_theme .access-user-row select { border-color:#303a58; background:#151a30; color:#fff !important; }
.dark_theme .access-table { color:#e6ebf7; background:#222b45; }
.dark_theme .access-table thead th { border-bottom-color:#3a4666; color:#aeb8d0 !important; }
.dark_theme .access-table tbody th,
.dark_theme .access-table tbody td { border-top-color:#303a58; color:#e6ebf7 !important; background:#222b45; }
.dark_theme .access-table tbody tr:nth-child(even) th,
.dark_theme .access-table tbody tr:nth-child(even) td { background:#1d263e; }

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (prefers-contrast: more) { :root { --of-muted:#475569; --of-border:#94a3b8; } .metric-card,.goal-card,.alert-section,.backup-card,.audit-event { box-shadow:none; } }
@media (max-width: 1199px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-goals__grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 991px) {
  html { font-size:15px !important; }
  .main-content { padding: 1.5rem !important; }
  .dashboard-tools,.goal-layout,.schedule-layout,.reconcile-layout { grid-template-columns:1fr; }
  .forecast-grid { grid-template-columns:1fr; }
  .goal-form-card { position:static; }
  .backup-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .alert-item { grid-template-columns:38px 1fr auto; }
  .alert-item a { grid-column:2; }
  .main-content .table { min-width:720px; }
  .table-responsive { overflow-x:auto; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  .main-content { padding:1.75rem !important; }
  .reconcile-layout { grid-template-columns:minmax(260px,.65fr) minmax(420px,1.35fr); }
  .dashboard-hero { gap:1.25rem; }
}
@media (max-width:991px) {
  .dashboard-topbar {
    display:flex;
    flex-wrap:nowrap;
    width:100%;
    min-height:64px;
    height:64px;
    padding:.3rem 1rem !important;
    overflow:visible;
  }
  .dashboard-topbar .navbar-brand {
    display:flex !important;
    flex:0 1 auto;
    align-items:center;
    max-width:145px;
    height:54px;
    margin:0;
    padding:0;
  }
  .dashboard-topbar .navbar-brand img {
    display:block;
    width:auto !important;
    max-width:138px;
    height:auto !important;
    max-height:48px;
    object-fit:contain;
  }
  .dashboard-topbar .hamburger {
    display:flex;
    flex:0 0 44px;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin:0 0 0 auto;
    padding:0 !important;
  }
  .dashboard-topbar > .pwa-install-button--topbar { flex:0 0 auto; min-height:40px; margin:0 0 0 .35rem; padding:.5rem .65rem; }
  .dashboard-topbar .hamburger-box { transform:scale(.78); }
  .dashboard-topbar .mobile-only-control {
    display:flex !important;
    flex:0 0 44px;
    align-items:center;
    justify-content:center;
    margin:0 0 0 .35rem !important;
  }
  .dashboard-topbar .mobile-only-control .nav-item,
  .dashboard-topbar .mobile-only-control .nav-link {
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin:0;
    padding:0 !important;
  }
  .dashboard-topbar .mobile-only-control .nav-link i { font-size:1.35rem !important; }
  .dashboard-topbar .mobile-only-control .dropdown-toggle::after { margin-left:.35rem; }
}
@media (min-width: 1440px) {
  html { font-size:15px !important; }
  .main-content { padding:2.5rem !important; }
  .metrics-grid { gap:1.25rem; }
  .dashboard-tools,.goal-layout,.schedule-layout,.reconcile-layout,.backup-grid { gap:1.5rem; }
}
@media (min-width: 1200px) {
  .sidebar,.sidebar.bg-dark { width:250px; }
  .sidebar + .right-column { margin-left:250px; }
}
@media (min-width:992px) {
  body.sidebar-collapsed .sidebar { width:84px !important; overflow:visible !important; }
  body.sidebar-collapsed .sidebar + .right-column { width:calc(100% - 84px) !important; margin-left:84px !important; }
  body.sidebar-collapsed .sidebar .mCustomScrollBox,
  body.sidebar-collapsed .sidebar .mCSB_container { overflow:visible !important; }
  body.sidebar-collapsed .sidebar .logo-nav-item { display:grid; height:70px; padding:.65rem 0 .25rem; place-items:center; }
  body.sidebar-collapsed .sidebar .logo-nav-item .navbar-brand { display:grid; width:52px; height:52px; padding:0; border-radius:14px; background:rgba(255,255,255,.06); place-items:center; }
  body.sidebar-collapsed .sidebar .logo-nav-item img { display:none; }
  body.sidebar-collapsed .sidebar .brand-caption { display:none; }
  body.sidebar-collapsed .sidebar .logo-nav-item .navbar-brand::before { content:''; display:block; width:38px; height:38px; background:url('../img/alvo.png') center/contain no-repeat; }
  body.sidebar-collapsed .sidebar .nav-header { display:block !important; width:52px; height:1px !important; margin:.55rem auto !important; padding:0 !important; overflow:hidden !important; border:0 !important; border-top:1px solid rgba(255,255,255,.12) !important; color:transparent !important; font-size:0 !important; line-height:0 !important; text-indent:-9999px !important; white-space:nowrap !important; }
  body.sidebar-collapsed .sidebar .nav > .nav-item > .nav-link,
  body.sidebar-collapsed .sidebar .sidebar-logout .nav-link { justify-content:center; width:52px !important; min-height:44px; margin:.08rem auto !important; padding:.65rem !important; }
  body.sidebar-collapsed .sidebar .nav-link > span,
  body.sidebar-collapsed .sidebar .sidebar-collapse-toggle span,
  body.sidebar-collapsed .sidebar .nav-link.nav-parent::after { display:none !important; }
  body.sidebar-collapsed .sidebar-v2 .nav-link > .nav-icon { display:grid !important; }
  body.sidebar-collapsed .sidebar-v2 .nav-link > .nav-label { display:none !important; }
  body.sidebar-collapsed .sidebar .nav .nav-item > ul.nav { display:none !important; }
  body.sidebar-collapsed .sidebar .nav-link i { flex-basis:24px; width:24px; font-size:1.05rem !important; }
  body.sidebar-collapsed .sidebar-v2 .nav-icon { flex:0 0 36px; width:36px; height:36px; }
  body.sidebar-collapsed .sidebar .alert-menu-badge { display:block !important; position:absolute; top:2px; right:1px; min-width:17px; padding:0 .25rem; font-size:.6rem; }
  body.sidebar-collapsed .sidebar .nav-item { position:relative; }
  body.sidebar-collapsed .sidebar-collapse-item { display:flex; width:100%; margin:.15rem 0 .65rem !important; padding:0; justify-content:center; }
  body.sidebar-collapsed .sidebar-collapse-toggle { position:static; justify-content:center; width:52px; margin:0; padding:.55rem; }
  body.sidebar-collapsed .sidebar .nav-link[title]:hover::before { content:attr(title); position:absolute; z-index:10000; left:72px; top:50%; padding:.45rem .6rem; border-radius:7px; background:#0f172a; color:#fff; font-size:.74rem; text-indent:0; white-space:nowrap; transform:translateY(-50%); box-shadow:0 8px 20px rgba(0,0,0,.25); }
}
@media (max-width: 767px) {
  html { font-size: 16px !important; }
  body { font-size: 16px; overflow-x: hidden; }
  .main-content { padding: 1.25rem !important; }
  .right-column { min-width: 0; width: 100%; }
  .theme-toggle-form { margin-left:auto; }
  .theme-toggle { width:44px; min-width:44px; padding:0; justify-content:center; }
  .theme-toggle span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .access-layout{grid-template-columns:1fr}.access-fields{grid-template-columns:1fr}.access-user-row{grid-template-columns:1fr}.access-table{min-width:620px}
  .categories-page form[name="form_categoria"] { max-width:none; }
  .categories-page form[name="form_categoria"] .btn { width:100%; margin:.45rem 0 0 !important; }
  .accounts-page .main-content > .row > .col-md-6 { flex:0 0 100%; max-width:100%; }
  .accounts-page .page-actions,.reports-page .page-actions { float:none!important; margin-top:.7rem; }
  .main-content h1 { font-size: 1.75rem; line-height: 1.2; }
  .main-content h2 { line-height: 1.3; }
  .main-content p { line-height: 1.55; }
  .main-content small, .main-content .eyebrow, .main-content label, .main-content .alert-item span, .main-content .reconcile-item__meta, .main-content .reconcile-item__top span { font-size: .82rem; }
  button, .btn, input, select, textarea, .main-content a[role="button"] { min-height: 44px; }
  input, select, textarea { font-size: 16px !important; }
  .card-body { padding: 1rem; }
  .table-responsive { margin-right: -.25rem; margin-left: -.25rem; padding-bottom: .5rem; }
  .main-content .table { min-width: 620px; font-size: .86rem; }
  .reports-page .table { min-width:720px; table-layout:auto; }
  .main-content .table th,.main-content .table td { padding: .7rem .6rem; }
  .dashboard-topbar { min-height:60px; height:60px; padding:.25rem .65rem !important; }
  .dashboard-topbar .navbar-brand { max-width:120px; height:50px; }
  .dashboard-topbar .navbar-brand img { max-width:116px; max-height:43px; }
  .dashboard-topbar .hamburger { flex-basis:40px; width:40px; height:40px; }
  .dashboard-topbar > .pwa-install-button--topbar { width:40px; min-width:40px; height:40px; margin-left:.15rem; padding:0; }
  .dashboard-topbar > .pwa-install-button--topbar span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .dashboard-topbar .mobile-only-control { flex-basis:40px; margin-left:.15rem !important; }
  .dashboard-topbar .mobile-only-control .nav-item,
  .dashboard-topbar .mobile-only-control .nav-link { width:40px; height:40px; }
  .dashboard-hero { align-items:stretch; flex-direction:column; gap:1rem; padding:1.1rem; }
  .period-filter { min-width: 0; }
  .metrics-grid, .dashboard-tools, .category-list, .goal-layout, .schedule-layout, .reconcile-layout, .reconcile-stats { grid-template-columns: 1fr; }
  .dashboard-chart-grid { grid-template-columns:1fr; }
  .dashboard-chart-card--wide { grid-column:auto; }
  .dashboard-canvas,.dashboard-chart-card--wide .dashboard-canvas { height:250px; }
  .dashboard-balance-chart { height:250px !important; min-height:250px; max-height:250px; }
  .dashboard-balance-chart canvas { max-height:250px !important; }
  .forecast-grid { grid-template-columns:1fr; }
  .forecast-comparison { padding:1rem; }.forecast-comparison .section-heading{align-items:flex-start;flex-direction:column}.forecast-card__top{align-items:flex-start;flex-direction:column}.forecast-card__top>small{text-align:left}
  .reconcile-item__top,.reconcile-action { align-items: flex-start; flex-direction: column; }
  .reconcile-create { grid-template-columns: 1fr; }
  .audit-event__top { flex-direction:column; }.audit-change{grid-template-columns:1fr}
  .backup-grid,.backup-export-form>div,.reset-options,.reset-confirm__fields,.restore-fields{grid-template-columns:1fr}.backup-card p{min-height:0}.reset-panel__header{align-items:flex-start;flex-direction:column}.reset-option{grid-template-columns:24px 40px minmax(0,1fr) auto}.reset-data-page .main-content,.backup-page .main-content{padding:1rem!important}.restore-panel{padding:1.1rem}.restore-panel>header{align-items:flex-start}.restore-button{width:100%}
  .dashboard-alert{align-items:flex-start;flex-direction:column}.alert-summary{grid-template-columns:1fr}.alert-item{grid-template-columns:34px 1fr}.alert-item>b,.alert-item>a{grid-column:2}
  .goal-form-card { position: static; }
  .goal-form__row { grid-template-columns: 1fr; }
  .goal-update-form { grid-template-columns: 1fr; }
  .schedule-card { flex-direction: column; }
  .schedule-card__top { flex-direction: column; }
  .metric-card { min-height: 118px; }
  .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-action { min-height: 72px; }
  .goal-form input,.goal-form textarea,.goal-form select,.goal-update-form input,.schedule-form-card select { padding: .8rem; }
  .reconcile-item { padding: 1rem; }
  .reconcile-item__meta { align-items:flex-start; flex-direction:column; gap:.3rem; }
  .login-page .content { padding: 0; }
  .login-page .content > .container { border-radius: 0; }
  .login-page .login-visual { min-height: 260px; padding: 2rem; }
  .login-brand h1 { font-size: 1.8rem; }
  .login-page .contents { min-height: 520px; padding: 2.5rem 1.5rem; }
}
/* Cadastro e edição de usuários */
.user-hero{align-items:center}.hero-back-button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;padding:.85rem 1.1rem;border:1px solid rgba(255,255,255,.3);border-radius:12px;background:rgba(255,255,255,.14);color:#fff!important;font-weight:800;white-space:nowrap;box-shadow:0 8px 20px rgba(10,30,80,.14);text-decoration:none;transition:background .18s ease,transform .18s ease,box-shadow .18s ease}.hero-back-button:hover{color:#fff!important;background:rgba(255,255,255,.24);box-shadow:0 10px 24px rgba(10,30,80,.2);text-decoration:none;transform:translateY(-1px)}
.user-editor{display:grid;gap:1.25rem;max-width:1180px;margin:1.5rem auto 0}.user-form-card{background:var(--surface-card,#fff);border:1px solid var(--surface-border,#dfe5ef);border-radius:22px;padding:1.5rem;box-shadow:0 12px 34px rgba(25,39,75,.06)}
.user-card-heading{display:flex;align-items:center;gap:1rem;padding-bottom:1.2rem;margin-bottom:1.25rem;border-bottom:1px solid var(--surface-border,#e5e9f0)}.user-card-heading h2{font-size:1.15rem;margin:0 0 .2rem}.user-card-heading p{margin:0;color:var(--text-muted,#718096);font-size:.9rem}.user-card-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:rgba(47,103,246,.12);color:#2f67f6;font-size:1.05rem}.user-status{margin-left:auto;display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .7rem;border-radius:999px;font-weight:800;font-size:.78rem}.user-status i{font-size:.45rem}.user-status.active{background:rgba(16,185,129,.12);color:#059669}.user-status.inactive{background:rgba(244,63,94,.12);color:#e11d48}
.user-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.25rem}.user-field{display:flex;flex-direction:column;gap:.42rem;margin:0;color:var(--text-primary,#1f2937);font-weight:700;font-size:.86rem}.user-field.span-2{grid-column:span 2}.user-field small{color:var(--text-muted,#718096);font-weight:500;line-height:1.35}.user-input{display:flex;align-items:center;min-height:52px;border:1px solid var(--surface-border,#d9e0eb);border-radius:13px;background:var(--input-bg,#f8fafc);overflow:hidden;transition:border-color .2s,box-shadow .2s}.user-input:focus-within{border-color:#3971f6;box-shadow:0 0 0 3px rgba(57,113,246,.13)}.user-input>i{width:48px;text-align:center;color:#64748b}.user-input input,.user-input select{min-width:0;flex:1;height:50px;border:0!important;outline:0!important;background:transparent!important;color:inherit!important;padding:.7rem .8rem .7rem 0!important;box-shadow:none!important}.user-input.is-readonly{opacity:.78}.user-field textarea{width:100%;border:1px solid var(--surface-border,#d9e0eb);border-radius:13px;background:var(--input-bg,#f8fafc);color:inherit;padding:1rem;resize:vertical;min-height:105px}.password-toggle{width:48px;height:50px;border:0;background:transparent;color:#64748b;cursor:pointer}
.user-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:1.25rem}.user-options label{margin:0;cursor:pointer}.user-options input{position:absolute;opacity:0;pointer-events:none}.user-options span{height:100%;display:grid;grid-template-columns:30px 1fr;column-gap:.45rem;align-items:start;padding:1rem;border:1px solid var(--surface-border,#d9e0eb);border-radius:14px;background:var(--input-bg,#f8fafc);transition:.2s}.user-options span>i{grid-row:1/3;color:#64748b;margin-top:.15rem}.user-options strong,.user-options small{grid-column:2}.user-options small{color:var(--text-muted,#718096);font-weight:500;font-size:.76rem;margin-top:.2rem}.user-options input:checked+span{border-color:#3971f6;background:rgba(57,113,246,.09)}.user-options input:checked+span>i{color:#3971f6}
.user-form-actions{display:flex;justify-content:flex-end;gap:.75rem;position:sticky;bottom:1rem;z-index:5;padding:1rem;border:1px solid var(--surface-border,#dfe5ef);border-radius:16px;background:color-mix(in srgb,var(--surface-card,#fff) 92%,transparent);backdrop-filter:blur(12px)}.user-cancel-button,.user-save-button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:46px;padding:.75rem 1.25rem;border-radius:11px;font-weight:800}.user-cancel-button{border:1px solid var(--surface-border,#d9e0eb);color:var(--text-primary,#374151)}.user-save-button{border:0;background:#356df3;color:#fff;cursor:pointer}.user-form-alert{display:flex;align-items:center;gap:1rem;padding:1rem 1.2rem;margin:1.5rem 0;border-radius:15px;background:#fff4db;color:#8a5b00}.user-form-alert div{display:flex;flex-direction:column}.user-form-alert a{margin-left:auto;font-weight:800}
body.dark_theme .user-form-card{--surface-card:#222d49;--surface-border:#34415f;--input-bg:#161e35;--text-primary:#f4f7ff;--text-muted:#aeb9d0;background:#222d49;color:#f4f7ff}body.dark_theme .user-form-actions{--surface-card:#222d49;--surface-border:#34415f;--text-primary:#f4f7ff}
@media(max-width:767.98px){.user-hero{align-items:flex-start}.hero-back-button{width:100%;justify-content:center}.user-form-card{padding:1rem;border-radius:17px}.user-fields-grid{grid-template-columns:1fr}.user-field.span-2{grid-column:auto}.user-options{grid-template-columns:1fr}.user-card-heading{align-items:flex-start;flex-wrap:wrap}.user-status{margin-left:0}.user-form-actions{bottom:.5rem}.user-cancel-button,.user-save-button{flex:1;padding:.7rem}.user-form-page .main-content{padding:1rem!important}}
/* Perfil do usuário */
.profile-overview{max-width:1180px;margin:1.5rem auto 0;display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;border:1px solid var(--surface-border,#dfe5ef);border-radius:20px;background:var(--surface-card,#fff);box-shadow:0 12px 34px rgba(25,39,75,.06)}.profile-avatar{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#234bb0,#4478ff);color:#fff;font-size:1.25rem;font-weight:900}.profile-identity{min-width:0}.profile-identity>span{color:#3971f6;text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;font-weight:900}.profile-identity h2{margin:.15rem 0;font-size:1.25rem}.profile-identity p{margin:0;color:var(--text-muted,#718096);overflow:hidden;text-overflow:ellipsis}.profile-badges{margin-left:auto;display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}.profile-badges span{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .75rem;border-radius:999px;background:rgba(57,113,246,.1);color:#2860e5;font-size:.78rem;font-weight:800}.profile-badges span.active{background:rgba(16,185,129,.12);color:#059669}
.profile-permissions-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1.25rem}.profile-permissions-summary>div{display:flex;align-items:center;gap:.75rem;padding:1rem;border:1px solid var(--surface-border,#d9e0eb);border-radius:14px;background:var(--input-bg,#f8fafc)}.profile-permissions-summary>div>i{font-size:1.15rem}.profile-permissions-summary .allowed{color:#10b981}.profile-permissions-summary .denied{color:#f43f5e}.profile-permissions-summary span{display:flex;flex-direction:column}.profile-permissions-summary small{color:var(--text-muted,#718096)}
.profile-theme-option{display:flex;align-items:center;gap:.9rem;padding:1rem;border:1px solid var(--surface-border,#d9e0eb);border-radius:14px;background:var(--input-bg,#f8fafc);cursor:pointer;margin:0}.profile-theme-option>input{position:absolute;opacity:0}.theme-switch{position:relative;width:46px;height:26px;flex:0 0 46px;border-radius:999px;background:#aeb8c7;transition:.2s}.theme-switch:after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:.2s}.profile-theme-option input:checked+.theme-switch{background:#3971f6}.profile-theme-option input:checked+.theme-switch:after{transform:translateX(20px)}.profile-theme-option>span:nth-of-type(2){display:flex;flex-direction:column}.profile-theme-option small{color:var(--text-muted,#718096);font-weight:500}.profile-theme-option>i{margin-left:auto;color:#3971f6;font-size:1.2rem}.profile-note{padding:1rem;border-radius:13px;background:var(--input-bg,#f8fafc);color:var(--text-primary,#374151);line-height:1.6}
body.dark_theme .profile-overview{--surface-card:#222d49;--surface-border:#34415f;--text-muted:#aeb9d0;background:#222d49;color:#f4f7ff}
@media(max-width:767.98px){.profile-overview{align-items:flex-start;padding:1rem;flex-wrap:wrap}.profile-avatar{width:52px;height:52px;flex-basis:52px;border-radius:15px}.profile-badges{width:100%;margin-left:0;justify-content:flex-start}.profile-permissions-summary{grid-template-columns:1fr}}

/* Ativação do aplicativo autenticador — versão 1.3.1 */
.two-factor-setup{max-width:760px!important}.two-factor-qr-card{display:grid;grid-template-columns:minmax(0,1fr) 252px;align-items:center;gap:1.5rem;margin:1.25rem 0;padding:1.25rem;border:1px solid rgba(57,113,246,.22);border-radius:18px;background:rgba(57,113,246,.06)}.two-factor-qr-card h4{margin:.55rem 0 .35rem;font-size:1.05rem}.two-factor-qr-card p{margin:0;font-size:.9rem;line-height:1.55}.two-factor-step{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#356df3;color:#fff;font-size:.78rem;font-weight:900}.two-factor-qr{display:grid;place-items:center;width:252px;min-height:252px;padding:16px;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.12);color:#475569;text-align:center;font-size:.82rem}.two-factor-qr img{display:block!important;width:220px!important;height:220px!important;max-width:100%}.two-factor-qr canvas{display:none!important}.two-factor-qr--error{padding:1.25rem;color:#9a3412;background:#fff7ed}.two-factor-manual{display:flex;flex-direction:column;gap:.35rem}.two-factor-manual code{display:block;margin-top:.25rem;padding:.65rem;border-radius:8px;background:rgba(15,23,42,.08);color:inherit;font-size:1rem;font-weight:800;letter-spacing:.12em;overflow-wrap:anywhere}.two-factor-technical{margin:1rem 0 1.25rem}.two-factor-technical summary{cursor:pointer;font-weight:700}.two-factor-technical small{display:block;margin-top:.6rem;padding:.7rem;border-radius:8px;background:rgba(15,23,42,.06);overflow-wrap:anywhere}.two-factor-setup label .two-factor-step{margin-right:.35rem}
body.dark_theme .two-factor-qr-card{background:rgba(57,113,246,.1);border-color:#3b4b70}body.dark_theme .two-factor-manual code,body.dark_theme .two-factor-technical small{background:rgba(7,12,24,.35)}
@media(max-width:767.98px){.two-factor-qr-card{grid-template-columns:1fr}.two-factor-qr{width:min(252px,100%);margin:0 auto}.two-factor-qr img{width:min(220px,100%)!important;height:auto!important;aspect-ratio:1}.two-factor-setup{max-width:100%!important}}

/* Segurança da conta */
.security-layout{display:grid;gap:1.25rem;max-width:1180px;margin:1.5rem auto 0}.security-card{padding:1.5rem;border:1px solid var(--of-border);border-radius:22px;background:var(--of-surface);box-shadow:var(--of-shadow)}.security-card__header{display:flex;align-items:center;gap:1rem;padding-bottom:1.15rem;border-bottom:1px solid var(--of-border)}.security-card__header>div{min-width:0}.security-card__header h2{margin:.15rem 0 0;color:var(--of-ink);font-size:1.2rem}.security-card__icon{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border-radius:14px;background:#edf3ff;color:var(--of-primary);font-size:1.1rem}.security-status,.security-session-count{display:inline-flex;align-items:center;gap:.4rem;margin-left:auto;padding:.45rem .7rem;border-radius:999px;font-size:.76rem;font-weight:800;white-space:nowrap}.security-status.is-active{background:#e8f8f2;color:#07825e}.security-status.is-pending{background:#fff3dd;color:#a86100}.security-session-count{background:#edf3ff;color:var(--of-primary)}.security-card__description{margin:1.1rem 0;color:var(--of-muted);line-height:1.6}.security-action-form{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:.85rem;padding-top:.35rem}.security-field{position:relative;display:grid;gap:.4rem;margin:0;color:var(--of-muted);font-size:.8rem;font-weight:700}.security-field input{box-sizing:border-box;width:100%;height:48px;padding:.65rem .8rem;border:1px solid var(--of-border);border-radius:11px;background:#f8fafc;color:var(--of-ink)}.security-field.password-field .password-toggle-input{padding-right:5.2rem!important}.security-field .password-toggle{right:.4rem;bottom:4px}.security-primary-button,.security-danger-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.75rem 1rem;border:0;border-radius:11px;color:#fff;font-weight:800;white-space:nowrap}.security-primary-button{background:var(--of-primary)}.security-danger-button{background:#c83d55}.security-success-note{display:flex;align-items:center;gap:.8rem;margin-top:1.1rem;padding:1rem;border-radius:14px;background:#eaf9f4;color:#087a5b}.security-success-note>i{font-size:1.2rem}.security-success-note span{display:grid;gap:.15rem}.security-success-note small{color:inherit;opacity:.8}.security-session-list{display:grid}.security-session{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--of-border)}.security-session:last-child{border-bottom:0}.security-session__icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#f0f3f8;color:#65738d}.security-session__device{min-width:0;display:grid;gap:.25rem}.security-session__device strong{overflow:hidden;color:var(--of-ink);font-size:.88rem;text-overflow:ellipsis;white-space:nowrap}.security-session__device small{display:flex;align-items:center;gap:.35rem;color:var(--of-muted)}.security-session__activity{display:grid;gap:.2rem;text-align:right}.security-session__activity span{color:var(--of-muted);font-size:.7rem}.security-session__activity strong{color:var(--of-ink);font-size:.82rem}.security-session__badge{padding:.38rem .6rem;border-radius:999px;background:#eef2f7;color:#64748b;font-size:.72rem;font-weight:800}.security-session.is-current .security-session__badge{background:#e8f8f2;color:#07825e}.security-action-form--danger{margin-top:1rem;padding-top:1.25rem;border-top:1px solid var(--of-border)}.security-empty{display:flex;align-items:center;gap:.6rem;padding:1.2rem 0;color:var(--of-muted)}
.dark_theme .security-card{background:#222d49;border-color:#34415f}.dark_theme .security-card__icon{background:#17213a}.dark_theme .security-field input{background:#161e35;border-color:#3b4968;color:#fff}.dark_theme .security-status.is-active,.dark_theme .security-success-note{background:#193b35;color:#72ddbc}.dark_theme .security-status.is-pending{background:#49391f;color:#ffd28a}.dark_theme .security-session__icon,.dark_theme .security-session__badge{background:#17213a;color:#aeb9d0}.dark_theme .security-session.is-current .security-session__badge{background:#193b35;color:#72ddbc}
@media(max-width:767.98px){.security-hero{align-items:flex-start}.security-card{padding:1rem;border-radius:17px}.security-card__header{align-items:flex-start;flex-wrap:wrap}.security-status,.security-session-count{margin-left:0}.security-action-form{grid-template-columns:1fr}.security-primary-button,.security-danger-button{width:100%;white-space:normal}.security-session{grid-template-columns:42px minmax(0,1fr)}.security-session__activity,.security-session__badge{grid-column:2;text-align:left;justify-self:start}.security-account-page .main-content{padding:1rem!important}}
.security-feedback{display:flex;align-items:center;gap:.65rem;padding:.9rem 1rem;border:1px solid var(--of-border);border-radius:13px;background:var(--of-surface);color:var(--of-ink);font-weight:700}.security-feedback.is-success{border-color:#9edec9;background:#eaf9f4;color:#087a5b}.security-feedback.is-error{border-color:#f2a9b5;background:#fff0f2;color:#a8233b}.security-feedback.is-info{border-color:#b9cdfa;background:#edf3ff;color:#2454bd}.security-action-form--2fa-disable{grid-template-columns:minmax(190px,1fr) minmax(230px,1fr) auto}.dark_theme .security-feedback{background:#222d49;border-color:#34415f;color:#e9eefc}.dark_theme .security-feedback.is-success{background:#193b35;border-color:#286353;color:#72ddbc}.dark_theme .security-feedback.is-error{background:#462331;border-color:#7c3d50;color:#ffb5c2}.dark_theme .security-feedback.is-info{background:#172b51;border-color:#31558e;color:#b7d1ff}@media(max-width:900px){.security-action-form--2fa-disable{grid-template-columns:1fr}}
.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;max-width:1180px;margin:1.5rem auto}.privacy-card,.privacy-admin-card,.privacy-document{padding:1.5rem;border:1px solid var(--of-border);border-radius:22px;background:var(--of-surface);box-shadow:var(--of-shadow);color:var(--of-ink)}.privacy-card--wide{grid-column:1/-1}.privacy-card>header,.privacy-admin-card>header{display:flex;align-items:center;gap:.85rem;padding-bottom:1rem;border-bottom:1px solid var(--of-border)}.privacy-card>header>i{display:grid;width:46px;height:46px;place-items:center;border-radius:13px;background:#edf3ff;color:var(--of-primary)}.privacy-card h2,.privacy-admin-card h2{margin:.15rem 0 0;font-size:1.15rem;color:var(--of-ink)}.privacy-card>p{color:var(--of-muted);line-height:1.6}.privacy-form,.privacy-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.15rem}.privacy-form label,.privacy-admin-form label{display:grid;gap:.4rem;color:var(--of-muted);font-size:.8rem;font-weight:700}.privacy-form input,.privacy-form select,.privacy-form textarea,.privacy-admin-form select,.privacy-admin-form textarea{box-sizing:border-box;width:100%;min-height:46px;padding:.7rem .8rem;border:1px solid var(--of-border);border-radius:11px;background:#f8fafc;color:var(--of-ink)}.privacy-form textarea,.privacy-admin-form textarea{resize:vertical}.privacy-form .span-2,.privacy-admin-form .span-2{grid-column:1/-1}.privacy-primary,.privacy-secondary,.privacy-danger{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.7rem 1rem;border:0;border-radius:11px;font-weight:800;text-decoration:none}.privacy-primary{background:var(--of-primary);color:#fff}.privacy-secondary{background:#e9efff;color:#2758c8}.privacy-danger{background:#c83d55;color:#fff}.privacy-feedback{display:flex;align-items:center;gap:.6rem;max-width:1180px;margin:1.25rem auto 0;padding:.9rem 1rem;border:1px solid #9edec9;border-radius:13px;background:#eaf9f4;color:#087a5b;font-weight:700}.privacy-doc-links,.privacy-acceptances{display:grid;gap:.65rem;margin-top:1rem}.privacy-doc-links a{display:flex;align-items:center;gap:.55rem;padding:.75rem;border-radius:10px;background:#f4f7fc;color:var(--of-primary);font-weight:700;text-decoration:none}.privacy-acceptances span{color:var(--of-muted);font-size:.8rem}.privacy-consents{display:grid;gap:.75rem;margin-top:1rem}.privacy-consents form{display:flex;align-items:center;gap:1rem;padding:.85rem;border:1px solid var(--of-border);border-radius:13px}.privacy-consents form>div{display:grid;gap:.2rem;flex:1}.privacy-consents small{color:var(--of-muted)}.privacy-requests{display:grid;gap:.8rem;margin-top:1rem}.privacy-requests article{display:grid;grid-template-columns:1fr auto;gap:.7rem;padding:1rem;border:1px solid var(--of-border);border-radius:14px}.privacy-requests article p{grid-column:1/-1;margin:0;padding-top:.7rem;border-top:1px solid var(--of-border)}.privacy-requests h3{margin:.2rem 0;color:var(--of-ink);font-size:1rem}.privacy-requests small{color:var(--of-muted)}.privacy-status,.privacy-deadline{display:inline-flex;align-items:center;gap:.35rem;align-self:start;padding:.4rem .65rem;border-radius:999px;background:#edf3ff;color:#2758c8;font-size:.74rem;font-weight:800}.privacy-status.is-completed{background:#e8f8f2;color:#087a5b}.privacy-status.is-rejected,.privacy-status.is-cancelled,.privacy-deadline.is-overdue{background:#fff0f2;color:#a8233b}.privacy-admin-list{display:grid;gap:1.15rem;max-width:1180px;margin:1.5rem auto}.privacy-admin-card>header>div{flex:1}.privacy-admin-card>p{padding:1rem;border-radius:12px;background:#f7f9fc;color:var(--of-muted)}.privacy-history{margin-top:1rem;border-top:1px solid var(--of-border);padding-top:1rem}.privacy-history summary{cursor:pointer;color:var(--of-primary);font-weight:800}.privacy-history>div{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1rem;padding:.75rem 0;border-bottom:1px solid var(--of-border)}.privacy-history>div span{color:var(--of-muted);font-size:.8rem}.privacy-history>div p{grid-column:1/-1;margin:0}.privacy-document{max-width:900px;margin:1.5rem auto;line-height:1.7}.privacy-document h2{margin-top:1.5rem}.privacy-document form{margin-top:1.5rem}.privacy-empty{padding:1.5rem;color:var(--of-muted)}.dark_theme .privacy-card,.dark_theme .privacy-admin-card,.dark_theme .privacy-document{background:#222d49;border-color:#34415f}.dark_theme .privacy-form input,.dark_theme .privacy-form select,.dark_theme .privacy-form textarea,.dark_theme .privacy-admin-form select,.dark_theme .privacy-admin-form textarea,.dark_theme .privacy-admin-card>p{background:#161e35;border-color:#3b4968;color:#fff}.dark_theme .privacy-doc-links a{background:#17213a}.dark_theme .privacy-feedback{background:#193b35;border-color:#286353;color:#72ddbc}@media(max-width:767.98px){.privacy-grid{grid-template-columns:1fr}.privacy-card--wide{grid-column:auto}.privacy-form,.privacy-admin-form{grid-template-columns:1fr}.privacy-form .span-2,.privacy-admin-form .span-2{grid-column:auto}.privacy-consents form,.privacy-admin-card>header{align-items:flex-start;flex-direction:column}.privacy-requests article{grid-template-columns:1fr}.privacy-status{justify-self:start}.privacy-page .main-content{padding:1rem!important}}
.privacy-page .privacy-grid,.privacy-page .privacy-admin-list{margin-top:1.5rem}.privacy-page .privacy-card,.privacy-page .privacy-admin-card,.privacy-page .privacy-document{background:var(--surface-card,#fff);border-color:var(--surface-border,#dfe5ef);border-radius:22px;box-shadow:0 12px 34px rgba(25,39,75,.06)}.privacy-page .privacy-card>header,.privacy-page .privacy-admin-card>header{padding-bottom:1.2rem;margin-bottom:1.25rem;border-color:var(--surface-border,#e5e9f0)}.privacy-page .privacy-card>header>i{width:44px;height:44px;border-radius:13px;background:rgba(47,103,246,.12);color:#2f67f6}.privacy-page .privacy-card h2,.privacy-page .privacy-admin-card h2{font-family:Poppins,"Segoe UI",sans-serif;font-size:1.15rem;font-weight:700}.privacy-page .privacy-form,.privacy-page .privacy-admin-form{gap:1rem 1.25rem}.privacy-page .privacy-form label,.privacy-page .privacy-admin-form label{gap:.42rem;color:var(--text-primary,#1f2937);font-size:.86rem}.privacy-page .privacy-form input,.privacy-page .privacy-form select,.privacy-page .privacy-form textarea,.privacy-page .privacy-admin-form select,.privacy-page .privacy-admin-form textarea{min-height:52px;border-color:var(--surface-border,#d9e0eb);border-radius:13px;background:var(--input-bg,#f8fafc);transition:border-color .2s,box-shadow .2s}.privacy-page .privacy-form input:focus,.privacy-page .privacy-form select:focus,.privacy-page .privacy-form textarea:focus,.privacy-page .privacy-admin-form select:focus,.privacy-page .privacy-admin-form textarea:focus{outline:0;border-color:#3971f6;box-shadow:0 0 0 3px rgba(57,113,246,.13)}.privacy-page .privacy-primary,.privacy-page .privacy-secondary,.privacy-page .privacy-danger{min-height:46px;border-radius:11px;font-family:Poppins,"Segoe UI",sans-serif}.privacy-page .privacy-primary{background:#356df3;box-shadow:0 8px 18px rgba(53,109,243,.18)}.privacy-page .privacy-doc-links a,.privacy-page .privacy-consents form,.privacy-page .privacy-requests article{border:1px solid var(--surface-border,#dfe5ef);border-radius:13px}.privacy-page .privacy-document{padding:clamp(1.25rem,3vw,2.25rem)}.privacy-page .privacy-document h2{font-family:Poppins,"Segoe UI",sans-serif;color:var(--of-ink);font-size:1.2rem}.privacy-page .privacy-document p{color:var(--of-muted)}body.dark_theme.privacy-page .privacy-card,body.dark_theme.privacy-page .privacy-admin-card,body.dark_theme.privacy-page .privacy-document{--surface-card:#222d49;--surface-border:#34415f;--input-bg:#161e35;--text-primary:#f4f7ff;--text-muted:#aeb9d0;background:#222d49;color:#f4f7ff}body.dark_theme.privacy-page .privacy-card h2,body.dark_theme.privacy-page .privacy-admin-card h2,body.dark_theme.privacy-page .privacy-document h2{color:#f4f7ff}@media(max-width:767.98px){.privacy-page .privacy-grid,.privacy-page .privacy-admin-list{margin-top:1rem}.privacy-page .privacy-card,.privacy-page .privacy-admin-card,.privacy-page .privacy-document{padding:1rem;border-radius:17px}.privacy-page .privacy-card>header{align-items:flex-start}.privacy-page .privacy-primary,.privacy-page .privacy-secondary,.privacy-page .privacy-danger{width:100%}}
.privacy-feedback.is-error{border-color:#f2a9b5;background:#fff0f2;color:#a8233b}.dark_theme .privacy-feedback.is-error{border-color:#7c3d50;background:#462331;color:#ffb5c2}.privacy-form label>small{color:var(--of-muted);font-weight:500}
.privacy-page .privacy-form label,.privacy-page .privacy-admin-form label{align-content:start}.privacy-page .privacy-form input:not([type="hidden"]),.privacy-page .privacy-form select,.privacy-page .privacy-admin-form select{box-sizing:border-box!important;width:100%!important;height:56px!important;min-height:56px!important;margin:0!important;padding:.75rem 1rem!important;line-height:1.35!important}.privacy-page .privacy-form textarea,.privacy-page .privacy-admin-form textarea{box-sizing:border-box!important;width:100%!important;margin:0!important;padding:1rem!important}.privacy-page .privacy-form label>span,.privacy-page .privacy-admin-form label>span{display:block;min-height:1.25rem;line-height:1.25rem}
.incident-layout,.incident-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem;max-width:1180px;margin:1.5rem auto}.incident-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-card{padding:1.5rem;border:1px solid var(--surface-border,#dfe5ef);border-radius:22px;background:var(--surface-card,#fff);box-shadow:0 12px 34px rgba(25,39,75,.06);color:var(--of-ink)}.incident-card--wide{grid-column:1/-1}.incident-heading{display:flex;align-items:center;gap:1rem;padding-bottom:1.2rem;margin-bottom:1.25rem;border-bottom:1px solid var(--surface-border,#e5e9f0)}.incident-heading h2{margin:.15rem 0;font-family:Poppins,"Segoe UI",sans-serif;font-size:1.15rem}.incident-heading p{margin:0;color:var(--of-muted);font-size:.85rem}.incident-icon{display:grid;width:46px;height:46px;flex:0 0 46px;place-items:center;border-radius:13px;background:rgba(47,103,246,.12);color:#2f67f6}.incident-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.25rem}.incident-form--single{grid-template-columns:1fr}.incident-form label{display:grid;align-content:start;gap:.42rem;margin:0;color:var(--text-primary,#1f2937);font-size:.84rem;font-weight:700}.incident-form .span-2{grid-column:1/-1}.incident-form input:not([type="checkbox"]),.incident-form select,.incident-form textarea{box-sizing:border-box!important;width:100%!important;margin:0!important;padding:.75rem 1rem!important;border:1px solid var(--surface-border,#d9e0eb)!important;border-radius:13px!important;background:var(--input-bg,#f8fafc)!important;color:inherit!important}.incident-form input:not([type="checkbox"]),.incident-form select{height:54px!important}.incident-form textarea{resize:vertical}.incident-form input:focus,.incident-form select:focus,.incident-form textarea:focus{outline:0;border-color:#3971f6!important;box-shadow:0 0 0 3px rgba(57,113,246,.13)}.incident-primary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;padding:.75rem 1.15rem;border:0;border-radius:11px;background:#356df3;color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(53,109,243,.18)}.incident-list,.incident-timeline{display:grid;gap:.75rem}.incident-list>a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid var(--surface-border,#dfe5ef);border-radius:14px;color:var(--of-ink);text-decoration:none}.incident-list h3{margin:.2rem 0;font-size:1rem}.incident-list small,.incident-list span,.incident-timeline span,.incident-timeline small{color:var(--of-muted)}.incident-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.incident-badges span{padding:.38rem .58rem;border-radius:999px;background:#edf3ff;color:#2758c8;font-size:.7rem;font-weight:800}.incident-badges .severity-critical{background:#ffe8ec;color:#b4233b}.incident-badges .severity-high{background:#fff0df;color:#ad5b00}.incident-badges .severity-low{background:#e8f8f2;color:#087a5b}.incident-feedback{display:flex;align-items:center;gap:.6rem;max-width:1180px;margin:1.25rem auto 0;padding:.9rem 1rem;border:1px solid #9edec9;border-radius:13px;background:#eaf9f4;color:#087a5b;font-weight:700}.incident-check{display:flex!important;flex-direction:row;align-items:center!important;gap:.7rem!important;padding:1rem;border:1px solid var(--surface-border,#dfe5ef);border-radius:13px}.incident-check input{width:20px;height:20px}.incident-check span{display:grid}.incident-check small{color:var(--of-muted);font-weight:500}.incident-deadline{display:flex;align-items:center;gap:.7rem;padding:1rem;border-radius:13px;background:#fff3dd;color:#925600}.incident-deadline strong{margin-left:auto}.incident-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding:1rem;border:1px solid var(--surface-border,#dfe5ef);border-radius:13px}.incident-subjects legend{padding:0 .4rem;font-weight:800}.incident-subjects label{display:flex;flex-direction:row;align-items:center;gap:.6rem;padding:.7rem;border-radius:10px;background:var(--input-bg,#f8fafc)}.incident-subjects label span{display:grid}.incident-subjects small{color:var(--of-muted);font-weight:500}.incident-timeline article{display:grid;gap:.25rem;padding:.85rem;border-left:3px solid #356df3;border-radius:0 10px 10px 0;background:var(--input-bg,#f8fafc)}.incident-empty{padding:1.5rem;color:var(--of-muted);text-align:center}body.dark_theme.incident-page .incident-card{--surface-card:#222d49;--surface-border:#34415f;--input-bg:#161e35;--text-primary:#f4f7ff;background:#222d49;color:#f4f7ff}body.dark_theme.incident-page .incident-heading h2,body.dark_theme.incident-page .incident-list>a{color:#f4f7ff}body.dark_theme.incident-page .incident-deadline{background:#49391f;color:#ffd28a}@media(max-width:900px){.incident-layout,.incident-detail-grid{grid-template-columns:1fr}.incident-card--wide{grid-column:auto}}@media(max-width:767.98px){.incident-page .main-content{padding:1rem!important}.incident-layout,.incident-detail-grid{margin-top:1rem}.incident-card{padding:1rem;border-radius:17px}.incident-form{grid-template-columns:1fr}.incident-form .span-2{grid-column:auto}.incident-subjects{grid-template-columns:1fr}.incident-list>a{align-items:flex-start;flex-direction:column}.incident-badges{justify-content:flex-start}.incident-primary{width:100%}}
/* Versão 1.9.0 — fornecedores e contratos */
.supplier-page .main-content{max-width:1680px;margin-inline:auto}.supplier-layout,.supplier-detail-grid{display:grid;grid-template-columns:minmax(360px,.85fr) minmax(500px,1.15fr);gap:24px;margin-top:24px}.supplier-detail-grid{grid-template-columns:1.15fr .85fr;align-items:start}.supplier-card{background:var(--surface-card,#fff);border:1px solid var(--border-color,#dfe5f0);border-radius:24px;padding:28px;box-shadow:0 14px 34px rgba(14,30,66,.06);margin-bottom:24px}.dark_theme .supplier-card{background:#222d49;border-color:#344263;color:#f7f9ff}.supplier-heading{display:flex;gap:16px;align-items:center;margin-bottom:22px}.supplier-heading>i{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#eaf0ff;color:#3168ed;font-size:21px}.supplier-heading h2,.supplier-card h2{font-size:22px;margin:3px 0}.supplier-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.supplier-form label,.supplier-review>label{display:flex;flex-direction:column;gap:7px;font-weight:700}.supplier-form .span-2{grid-column:1/-1}.supplier-form input,.supplier-form select,.supplier-form textarea,.supplier-review input,.supplier-review select,.supplier-review textarea{width:100%;min-height:50px;border:1px solid #ccd5e5;border-radius:13px;padding:12px 14px;background:#f8faff;color:#17213a}.dark_theme .supplier-form input,.dark_theme .supplier-form select,.dark_theme .supplier-form textarea,.dark_theme .supplier-review input,.dark_theme .supplier-review select,.dark_theme .supplier-review textarea{background:#151d34;border-color:#3a496d;color:#f7f9ff}.supplier-form .check-row{flex-direction:row;align-items:center}.supplier-form .check-row input{width:20px;min-height:20px}.supplier-primary,.supplier-secondary{border:0;border-radius:13px;min-height:50px;padding:12px 18px;font-weight:800}.supplier-primary{background:#3269ed;color:#fff}.supplier-secondary{background:#eaf0ff;color:#2257d5}.supplier-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:22px}.supplier-stats>div{padding:18px;border-radius:18px;background:var(--surface-card,#fff);border:1px solid var(--border-color,#dfe5f0)}.dark_theme .supplier-stats>div{background:#222d49;border-color:#344263}.supplier-stats span{display:block;font-size:13px;color:#76829a}.supplier-stats strong{font-size:27px}.supplier-list>a{display:flex;justify-content:space-between;gap:18px;padding:18px 4px;border-bottom:1px solid #dfe5f0;color:inherit}.dark_theme .supplier-list>a{border-color:#344263}.supplier-list h3{margin:4px 0}.supplier-list-status{text-align:right;display:flex;flex-direction:column;gap:7px}.supplier-list-status strong{padding:6px 10px;border-radius:99px;font-size:12px}.supplier-status-compatible{background:#dff7ec;color:#087c50}.supplier-status-remediation,.supplier-status-pending{background:#fff2cf;color:#8a5a00}.supplier-status-replacement{background:#ffe2e5;color:#ba2433}.supplier-status-inactive{background:#e8ebf1;color:#687187}.supplier-alert{margin-top:18px;padding:14px 18px;border-radius:14px;background:#ffe8e8;color:#a42331}.supplier-checklist{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.supplier-checklist label{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #dfe5f0;border-radius:12px}.dark_theme .supplier-checklist label{border-color:#3a496d}.supplier-checklist input{width:18px;min-height:18px}.supplier-review{display:grid;gap:14px}.supplier-simple-list{list-style:none;padding:0;margin:18px 0 0}.supplier-simple-list li{display:flex;flex-direction:column;gap:4px;padding:14px 0;border-bottom:1px solid #dfe5f0}.dark_theme .supplier-simple-list li{border-color:#344263}.supplier-simple-list p{margin:4px 0}.supplier-empty{padding:30px;text-align:center;color:#7c879b}@media(max-width:1100px){.supplier-stats{grid-template-columns:repeat(3,1fr)}.supplier-layout,.supplier-detail-grid{grid-template-columns:1fr}}@media(max-width:640px){.supplier-page .main-content{padding:16px!important}.supplier-stats{grid-template-columns:1fr 1fr}.supplier-card{padding:20px;border-radius:19px}.supplier-form,.supplier-checklist{grid-template-columns:1fr}.supplier-form .span-2{grid-column:auto}.supplier-list>a{align-items:flex-start}.supplier-list-status{min-width:100px}}
/* Versão 2.0.0 — plataforma comercial */
.commercial-page .main-content{max-width:1700px;margin-inline:auto}.commercial-grid{display:grid;grid-template-columns:repeat(2,minmax(340px,1fr));gap:22px;margin-top:24px}.commercial-card{background:var(--surface-card,#fff);border:1px solid var(--border-color,#dfe5f0);border-radius:24px;padding:26px;margin-top:22px;box-shadow:0 14px 34px rgba(14,30,66,.06)}.dark_theme .commercial-card{background:#222d49;border-color:#344263;color:#f7f9ff}.commercial-highlight{background:linear-gradient(135deg,#2045a5,#3473f3);color:#fff}.dark_theme .commercial-highlight{background:linear-gradient(135deg,#1d3d91,#2f65da)}.commercial-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:22px}.commercial-stats>div{background:var(--surface-card,#fff);border:1px solid var(--border-color,#dfe5f0);border-radius:18px;padding:18px}.dark_theme .commercial-stats>div{background:#222d49;border-color:#344263}.commercial-stats span{display:block;color:#77839b;font-size:13px}.commercial-stats strong{font-size:24px}.commercial-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.commercial-form label,.commercial-card form>label{display:flex;flex-direction:column;gap:6px;font-weight:700}.commercial-form input,.commercial-form select,.commercial-card form>label input,.commercial-inline input,.commercial-inline select{min-height:44px;border:1px solid #ccd5e5;border-radius:11px;padding:9px 11px;background:#f8faff;color:#17213a}.dark_theme .commercial-form input,.dark_theme .commercial-form select,.dark_theme .commercial-card form>label input,.dark_theme .commercial-inline input,.dark_theme .commercial-inline select{background:#151d34;border-color:#3a496d;color:#fff}.commercial-limits{list-style:none;padding:0;margin:0}.commercial-limits li{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #dfe5f0}.dark_theme .commercial-limits li{border-color:#344263}.commercial-danger{color:#ff626e}.commercial-danger-button{border:0;border-radius:12px;padding:13px 18px;background:#d9334a;color:#fff;font-weight:800}.commercial-table{width:100%;border-collapse:collapse}.commercial-table th,.commercial-table td{padding:13px;border-bottom:1px solid #dfe5f0;vertical-align:top}.dark_theme .commercial-table th,.dark_theme .commercial-table td{border-color:#344263}.commercial-table td small{display:block}.commercial-inline{display:grid;gap:7px;min-width:190px}.commercial-inline button{border:0;border-radius:9px;padding:9px;background:#3269ed;color:#fff;font-weight:700}@media(max-width:1100px){.commercial-stats{grid-template-columns:repeat(3,1fr)}.commercial-grid{grid-template-columns:1fr}}@media(max-width:640px){.commercial-page .main-content{padding:16px!important}.commercial-stats{grid-template-columns:1fr 1fr}.commercial-form{grid-template-columns:1fr}.commercial-card{padding:18px}}
.commercial-form .plan-title-editor{position:relative;display:flex;align-items:center;width:min(100%,340px);border-bottom:3px solid #5f84ff}.commercial-form .plan-title-editor input{width:100%;min-height:54px;padding:4px 42px 4px 0;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:26px;font-weight:800;box-shadow:none!important}.commercial-form .plan-title-editor input:focus{outline:2px solid #6f91ff;outline-offset:6px}.commercial-form .plan-title-editor i{position:absolute;right:8px;color:#7395ff;pointer-events:none}
/* Plataforma 2.0.1 — navegação e meios de pagamento */
.platform-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.platform-shortcuts>a{display:flex;align-items:center;gap:16px;padding:22px;border:1px solid #dbe3f1;border-radius:20px;background:#fff;color:#18233d;box-shadow:0 10px 25px rgba(17,35,75,.05)}.dark_theme .platform-shortcuts>a{background:#222d49;border-color:#344263;color:#f7f9ff}.platform-shortcuts i{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#eaf0ff;color:#3269ed;font-size:20px}.platform-shortcuts span{display:flex;flex-direction:column}.platform-shortcuts small{color:#77839b;margin-top:3px}.payment-security-note{display:flex;gap:16px;align-items:flex-start;margin-top:22px;padding:20px;border:1px solid #9cc2ff;border-radius:18px;background:#edf5ff;color:#183970}.dark_theme .payment-security-note{background:#1b3155;border-color:#365f9e;color:#eaf2ff}.payment-security-note i{font-size:22px}.payment-security-note p{margin:4px 0}.payment-provider-card{position:relative}.payment-provider-card.is-enabled{border-color:#2f70ef;box-shadow:0 0 0 2px rgba(47,112,239,.12),0 14px 34px rgba(14,30,66,.08)}.payment-provider-heading{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.payment-provider-heading h2{margin:4px 0}.payment-provider-heading p{color:#77839b}.payment-credential{white-space:nowrap;border-radius:99px;padding:7px 10px;font-size:12px;font-weight:800}.payment-credential.is-ok{background:#dcf7ea;color:#087849}.payment-credential.is-missing{background:#fff0d5;color:#946000}.commercial-form .check-row{flex-direction:row;align-items:center}.commercial-form .check-row input{width:19px;min-height:19px}.commercial-form .span-2{grid-column:1/-1}.payment-env-list{display:flex;flex-wrap:wrap;gap:10px}.payment-env-list code{padding:9px 12px;border-radius:10px;background:#eef2f9;color:#203252}.dark_theme .payment-env-list code{background:#151d34;color:#dbe7ff}@media(max-width:900px){.platform-shortcuts{grid-template-columns:1fr}}@media(max-width:640px){.payment-provider-heading{flex-direction:column}.commercial-form .span-2{grid-column:auto}}
/* Plataforma 2.0.2 — lista compacta e edição de assinaturas */
.subscription-list-card{padding:0;overflow:hidden}.subscription-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 26px;border-bottom:1px solid #dfe5f0}.dark_theme .subscription-section-heading{border-color:#344263}.subscription-section-heading h2{margin:3px 0}.subscription-compact-table th{white-space:nowrap;font-size:13px;text-transform:uppercase;letter-spacing:.035em;color:#748097}.subscription-compact-table td{padding:16px 14px;vertical-align:middle}.subscription-compact-table td:first-child,.subscription-compact-table th:first-child{padding-left:26px}.subscription-compact-table td:last-child,.subscription-compact-table th:last-child{padding-right:26px}.subscription-plan-badge{display:inline-flex;padding:6px 11px;border-radius:99px;background:#eaf0ff;color:#245bd7;font-weight:800}.dark_theme .subscription-plan-badge{background:#1a3978;color:#bcd0ff}.subscription-state{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:7px 11px;font-weight:800;font-size:13px}.subscription-state.is-active{background:#dcf7ea;color:#087849}.subscription-state.is-expired{background:#ffe3e7;color:#b82337}.subscription-edit-button{white-space:nowrap;border:1px solid #9eb8f5;border-radius:11px;padding:10px 13px;background:#edf3ff;color:#245bd7;font-weight:800}.dark_theme .subscription-edit-button{background:#1b376e;border-color:#4568b1;color:#d9e5ff}.subscription-modal[hidden]{display:none}.subscription-modal{position:fixed;z-index:12000;inset:0;display:grid;place-items:center;padding:24px;background:rgba(8,15,32,.72);backdrop-filter:blur(5px)}.subscription-modal__panel{width:min(860px,100%);max-height:calc(100vh - 48px);overflow:auto;border:1px solid #d9e2f0;border-radius:24px;background:#fff;color:#17213a;box-shadow:0 30px 80px rgba(0,0,0,.3)}.dark_theme .subscription-modal__panel{background:#222d49;border-color:#405071;color:#f7f9ff}.subscription-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid #dfe5f0}.dark_theme .subscription-modal__header{border-color:#344263}.subscription-modal__header h2{margin:4px 0;font-size:26px}.subscription-modal__header p{margin:0;color:#748097}.subscription-modal__close{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:12px;background:#edf1f7;color:#3d4960;font-size:18px}.dark_theme .subscription-modal__close{background:#172039;color:#fff}.subscription-modal__body{padding:26px 28px}.subscription-modal__body h3{font-size:18px;margin:0 0 17px}.subscription-edit-form,.subscription-limit-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.subscription-edit-form label,.subscription-limit-form label{display:flex;flex-direction:column;gap:7px;font-weight:700}.subscription-edit-form input,.subscription-edit-form select,.subscription-limit-form input,.subscription-limit-form select{width:100%;min-height:50px;padding:11px 13px;border:1px solid #ccd6e6;border-radius:12px;background:#f8faff;color:#17213a}.dark_theme .subscription-edit-form input,.dark_theme .subscription-edit-form select,.dark_theme .subscription-limit-form input,.dark_theme .subscription-limit-form select{background:#151d34;border-color:#3a496d;color:#fff}.subscription-edit-form .subscription-check{grid-column:1/-1;flex-direction:row;align-items:center;padding:12px 14px;border:1px solid #dfe5f0;border-radius:12px}.dark_theme .subscription-edit-form .subscription-check{border-color:#3a496d}.subscription-check input{width:19px;min-height:19px}.subscription-modal__actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:11px;padding-top:6px}.subscription-cancel-button,.subscription-save-button,.subscription-secondary-button{border:0;border-radius:11px;min-height:46px;padding:11px 18px;font-weight:800}.subscription-cancel-button{background:#e9edf3;color:#3d4960}.subscription-save-button{background:#3269ed;color:#fff}.subscription-limit-section{margin-top:26px;padding-top:25px;border-top:1px solid #dfe5f0}.dark_theme .subscription-limit-section{border-color:#344263}.subscription-limit-section>p{color:#748097}.subscription-limit-form .span-2{grid-column:1/-1}.subscription-secondary-button{background:#eaf0ff;color:#245bd7}.subscription-modal-open{overflow:hidden}.subscription-empty{text-align:center;color:#748097;padding:28px!important}@media(max-width:900px){.subscription-compact-table{min-width:840px}}@media(max-width:640px){.subscription-modal{padding:10px}.subscription-modal__panel{max-height:calc(100vh - 20px);border-radius:18px}.subscription-modal__header,.subscription-modal__body{padding:20px}.subscription-edit-form,.subscription-limit-form{grid-template-columns:1fr}.subscription-edit-form .subscription-check,.subscription-limit-form .span-2,.subscription-modal__actions{grid-column:auto}.subscription-modal__actions{display:grid;grid-template-columns:1fr 1fr}.subscription-section-heading{padding:20px}}

/* Ajuste fino do modal de assinaturas: campos uniformes e contidos na grade. */
.subscription-edit-form,.subscription-limit-form{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:18px}
.subscription-edit-form>label,.subscription-limit-form>label{min-width:0;margin:0}
.subscription-edit-form input:not([type="checkbox"]),.subscription-edit-form select,.subscription-limit-form input,.subscription-limit-form select{box-sizing:border-box;width:100%!important;max-width:100%!important;height:58px!important;min-height:58px!important;margin:0!important;padding:0 16px!important;line-height:1.2}
.subscription-edit-form input[type="date"],.subscription-limit-form input[type="date"]{display:block}
.subscription-edit-form .subscription-check{min-height:70px;box-sizing:border-box}
.subscription-edit-form .subscription-check input{box-sizing:border-box;width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;margin:0!important;padding:0!important}
.subscription-limit-form small{display:block;min-height:18px;line-height:18px}
@media(max-width:640px){.subscription-edit-form,.subscription-limit-form{grid-template-columns:minmax(0,1fr);column-gap:0}.subscription-modal__actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* Pesquisa e situação das assinaturas. */
.subscription-filters{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(145px,.65fr)) auto;align-items:end;gap:14px;padding:18px 26px;border-bottom:1px solid #dfe5f0;background:#f8faff}
.dark_theme .subscription-filters{border-color:#344263;background:#1c2742}
.subscription-filters label{display:flex;min-width:0;margin:0;flex-direction:column;gap:7px;color:#65728a;font-size:12px;font-weight:800}
.dark_theme .subscription-filters label{color:#aebbd4}
.subscription-filters input,.subscription-filters select{box-sizing:border-box;width:100%;height:44px;margin:0;border:1px solid #ccd6e6;border-radius:11px;background:#fff;color:#17213a;padding:0 12px}
.dark_theme .subscription-filters input,.dark_theme .subscription-filters select{border-color:#3a496d;background:#151d34;color:#fff}
.subscription-search>div{position:relative}.subscription-search i{position:absolute;top:50%;left:13px;transform:translateY(-50%);color:#8490a6}.subscription-search input{padding-left:37px}
#subscription-clear-filters{height:44px;border:1px solid #ccd6e6;border-radius:11px;padding:0 15px;background:#fff;color:#46536b;font-weight:800;white-space:nowrap}.dark_theme #subscription-clear-filters{border-color:#3a496d;background:#151d34;color:#dbe5f8}
.subscription-situation{display:inline-flex;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;white-space:nowrap;background:#edf1f7;color:#46536b}
.subscription-situation.is-trial{background:#eee8ff;color:#6542b5}.subscription-situation.is-active{background:#e6f0ff;color:#245bd7}.subscription-situation.is-past_due{background:#fff1d7;color:#9b6200}.subscription-situation.is-canceled,.subscription-situation.is-suspended{background:#ffe3e7;color:#b82337}
.dark_theme .subscription-situation{background:#172039;color:#dbe5f8}.dark_theme .subscription-situation.is-trial{background:#3a2c67;color:#d7c7ff}.dark_theme .subscription-situation.is-active{background:#1a3978;color:#bcd0ff}.dark_theme .subscription-situation.is-past_due{background:#5b421d;color:#ffd48b}.dark_theme .subscription-situation.is-canceled,.dark_theme .subscription-situation.is-suspended{background:#572a36;color:#ffb5c0}
@media(max-width:1120px){.subscription-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.subscription-compact-table{min-width:1080px}}
@media(max-width:640px){.subscription-filters{grid-template-columns:minmax(0,1fr);padding:16px 20px}#subscription-clear-filters{width:100%}}

/* Oferta e contratação do plano Premium. */
.current-plan-card{min-height:390px}.upgrade-summary{margin-top:28px;padding-top:22px;border-top:1px solid rgba(255,255,255,.24)}.upgrade-summary h3{font-size:19px}.upgrade-summary ul{display:grid;gap:10px;margin:16px 0 22px;padding:0;list-style:none}.upgrade-summary li{display:flex;align-items:center;gap:9px}.premium-upgrade-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;border:0;border-radius:13px;padding:0 20px;background:#fff;color:#2045a5;font-weight:900}.premium-upgrade-button:disabled,.premium-compare-link:disabled{cursor:not-allowed;opacity:.65}.premium-compare-link{margin-left:13px;border:0;background:transparent;color:#fff;text-decoration:underline;font-weight:800}.subscription-success{border-color:#82d9b3!important;background:#e6f8f0!important;color:#087849!important}.plan-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.plan-comparison article{padding:22px;border:1px solid #dbe3f1;border-radius:18px;background:#f8faff}.dark_theme .plan-comparison article{border-color:#3a496d;background:#172039}.plan-comparison article.is-premium{border:2px solid #3269ed;background:#eef3ff}.dark_theme .plan-comparison article.is-premium{background:#1b376e}.plan-comparison article>span{color:#6680bd;font-size:12px;font-weight:900;text-transform:uppercase}.plan-comparison h3{margin:8px 0;font-size:24px}.plan-comparison strong{font-size:26px;color:#3269ed}.plan-comparison strong small{font-size:13px}.plan-comparison ul{display:grid;gap:9px;margin:17px 0 0;padding-left:19px;color:#66728a}.dark_theme .plan-comparison ul{color:#c2cee5}.upgrade-checkout-note{display:flex;gap:13px;margin:20px 0;padding:16px;border-radius:14px;background:#eef5ff;color:#24467f}.dark_theme .upgrade-checkout-note{background:#172b50;color:#dbe8ff}.upgrade-checkout-note i{margin-top:4px}.upgrade-checkout-note p{margin:3px 0 0}.upgrade-confirm-form{display:grid;gap:15px}.upgrade-confirm-form>label:first-of-type{display:flex;flex-direction:column;gap:7px;font-weight:800}.upgrade-confirm-form input[type="password"]{box-sizing:border-box;width:100%;height:54px;border:1px solid #ccd6e6;border-radius:12px;padding:0 15px;background:#f8faff;color:#17213a}.dark_theme .upgrade-confirm-form input[type="password"]{border-color:#3a496d;background:#151d34;color:#fff}.upgrade-terms{display:flex;align-items:flex-start;gap:9px}.upgrade-terms input{width:19px;height:19px;flex:0 0 19px}@media(max-width:640px){.plan-comparison{grid-template-columns:1fr}.premium-upgrade-button,.premium-compare-link{width:100%;margin:8px 0 0}.current-plan-card{min-height:0}}
.billing-state{display:inline-flex;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}.billing-state.is-pending{background:#fff1d7;color:#966000}.billing-state.is-paid{background:#dcf7ea;color:#087849}.billing-state.is-failed,.billing-state.is-canceled{background:#ffe3e7;color:#b82337}.billing-state.is-refunded{background:#e9e7ff;color:#5843a8}.transaction-confirm-button{white-space:nowrap;border:1px solid #84c9a9;border-radius:10px;padding:9px 12px;background:#e6f8f0;color:#087849;font-weight:900}.transaction-finished{color:#718097;font-size:12px;font-weight:800}.payment-confirm-panel{width:min(620px,100%)}.payment-confirm-warning{display:flex;gap:13px;margin-bottom:20px;padding:17px;border:1px solid #f4c56a;border-radius:14px;background:#fff7e5;color:#805000}.dark_theme .payment-confirm-warning{border-color:#70572b;background:#4a381d;color:#ffdc99}.payment-confirm-warning p{margin:0}
.billing-cycle-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.billing-cycle-options label{margin:0;cursor:pointer}.billing-cycle-options input{position:absolute;opacity:0;pointer-events:none}.billing-cycle-options span{display:flex;min-height:128px;flex-direction:column;justify-content:center;gap:5px;padding:18px;border:1px solid var(--ds-border,#3a496b);border-radius:16px;background:rgba(12,23,48,.35);transition:.2s}.billing-cycle-options input:checked+span{border-color:#3973ff;box-shadow:0 0 0 3px rgba(57,115,255,.18)}.billing-cycle-options input:disabled+span{opacity:.55;cursor:not-allowed}.billing-cycle-options b{font-size:1.45rem}.billing-cycle-options small{font-weight:500}@media(max-width:640px){.billing-cycle-options{grid-template-columns:1fr}}
.session-timeout-modal{z-index:20000}.session-timeout-panel{width:min(520px,100%);padding:30px;text-align:center}.session-timeout-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;border-radius:20px;background:rgba(55,105,244,.14);color:#3769f4;font-size:28px}.session-timeout-panel h2{margin:8px 0 12px}.session-timeout-panel>p{margin:0 auto 22px;max-width:430px;line-height:1.6}.session-countdown{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:0 0 22px}.session-countdown strong{font-size:42px;line-height:1;color:#3769f4}.session-countdown span{font-weight:700}.session-timeout-panel .subscription-save-button{width:100%;min-height:54px}.session-timeout-panel>small{display:block;margin-top:16px;line-height:1.5;opacity:.75}.session-warning-open{overflow:hidden}

/* Cabeçalho responsivo: controles compactos e alinhados em uma única linha. */
@media(max-width:991.98px){
  .dashboard-topbar{column-gap:.35rem;align-items:center!important}
  .dashboard-topbar .navbar-brand{flex:0 1 138px;margin-right:.2rem}
  .dashboard-topbar .hamburger{margin-left:0!important;margin-right:auto!important}
  .dashboard-topbar>.topbar-alert-button{display:grid!important;flex:0 0 42px;width:42px;height:42px;margin:0!important;border-radius:13px;box-sizing:border-box}
  .dashboard-topbar .mobile-only-control{display:flex!important;flex:0 0 42px;width:42px;height:42px;margin:0!important}
  .dashboard-topbar .mobile-only-control .nav-item,
  .dashboard-topbar .mobile-only-control .nav-link{position:relative;width:42px;height:42px;box-sizing:border-box}
  .dashboard-topbar .mobile-only-control .dropdown-toggle::after{display:none!important}
  .dashboard-topbar .mobile-only-control .account-menu__avatar{width:40px;height:40px;box-sizing:border-box}
  .dashboard-topbar .topbar-alert-badge{top:-5px;right:-5px}
}
@media(max-width:575.98px){
  .dashboard-topbar{column-gap:.2rem;padding:.25rem .6rem!important}
  .dashboard-topbar .navbar-brand{flex-basis:112px;max-width:112px}
  .dashboard-topbar .navbar-brand img{max-width:108px!important}
  .dashboard-topbar .hamburger{flex-basis:38px;width:38px;height:40px}
  .dashboard-topbar>.topbar-alert-button,
  .dashboard-topbar .mobile-only-control,
  .dashboard-topbar .mobile-only-control .nav-item,
  .dashboard-topbar .mobile-only-control .nav-link{flex-basis:40px;width:40px;height:40px}
  .dashboard-topbar .mobile-only-control .account-menu__avatar{width:38px;height:38px}
}

/* Menu lateral compacto com controle de expansão na borda. */
@media(min-width:992px){
  .sidebar.sidebar-v2{width:236px!important;overflow:visible!important;box-shadow:10px 0 32px rgba(4,10,26,.16)}
  .sidebar.sidebar-v2+.right-column{width:calc(100% - 236px)!important;margin-left:236px!important;transition:width .2s ease,margin-left .2s ease}
  .sidebar-v2>.mCustomScrollBox{overflow:hidden!important}
  .sidebar-v2 .logo-nav-item{padding:.8rem .75rem .35rem}
  .sidebar-v2 .logo-nav-item img{max-width:136px;max-height:56px}
  .sidebar-v2 .nav-header{margin:.55rem 1rem .12rem;padding:.45rem .15rem .2rem}
  .sidebar-v2 .nav>.nav-item>.nav-link{min-height:40px;margin:.05rem .58rem;padding:.38rem .5rem;border-radius:11px}
  .sidebar-v2 .nav-icon{flex-basis:32px;width:32px;height:32px;border-radius:9px}
  .sidebar-v2 .nav .nav-item>ul.nav{margin:.12rem .65rem .3rem 1.9rem}
  .sidebar-edge-toggle{position:absolute!important;z-index:12050;top:88px;right:-17px;display:grid!important;width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;place-items:center;border:1px solid rgba(112,145,218,.38)!important;border-radius:50%!important;background:#1d2c4d!important;color:#91adff!important;box-shadow:0 8px 22px rgba(3,9,24,.35);transition:background .18s ease,color .18s ease,transform .18s ease}
  .sidebar-edge-toggle:hover,.sidebar-edge-toggle:focus-visible{background:#376bf2!important;color:#fff!important;transform:scale(1.06);outline:3px solid rgba(91,132,255,.2)}
  .sidebar-edge-toggle i{width:auto!important;color:inherit!important;font-size:.78rem!important}
  body.sidebar-collapsed .sidebar.sidebar-v2{width:76px!important}
  body.sidebar-collapsed .sidebar.sidebar-v2+.right-column{width:calc(100% - 76px)!important;margin-left:76px!important}
  body.sidebar-collapsed .sidebar .logo-nav-item{height:64px;padding:.55rem 0 .2rem}
  body.sidebar-collapsed .sidebar .logo-nav-item .navbar-brand{width:46px;height:46px;border-radius:13px}
  body.sidebar-collapsed .sidebar .logo-nav-item .navbar-brand::before{width:34px;height:34px}
  body.sidebar-collapsed .sidebar .nav-header{width:46px;margin:.42rem auto!important}
  body.sidebar-collapsed .sidebar .nav>.nav-item>.nav-link,
  body.sidebar-collapsed .sidebar .sidebar-logout .nav-link{width:48px!important;min-height:42px;margin:.04rem auto!important;padding:.32rem!important}
  body.sidebar-collapsed .sidebar-v2 .nav-icon{flex-basis:34px;width:34px;height:34px}
  body.sidebar-collapsed .sidebar .nav-link[title]:hover::before{left:62px}
  body.sidebar-collapsed .sidebar-edge-toggle{right:-17px}
}

@media(max-width:991.98px){.sidebar-edge-toggle{display:none!important}}

/* Refinamento do menu compacto: submenus próximos da borda e controle sempre visível. */
@media(min-width:992px){
  .sidebar.sidebar-v2{z-index:1100!important}
  .sidebar-v2 .sidebar-edge-toggle{z-index:13000!important;top:20px;right:-18px}
  .sidebar-v2 .nav .nav-item>ul.nav{margin:.12rem .58rem .32rem .68rem!important;padding:.1rem 0 .1rem .28rem!important}
  .sidebar-v2 .nav .nav-item>ul.nav .nav-link{gap:.38rem!important;margin:.03rem 0!important;padding:.34rem .38rem!important}
  .sidebar-v2 .nav .nav-item>ul.nav .nav-icon{flex:0 0 27px!important;width:27px!important;height:27px!important}
  body.sidebar-collapsed .sidebar-v2 .sidebar-edge-toggle{top:20px;right:-18px}
}

/* O controle fica inteiro dentro da lateral para não ser recortado pelo painel principal. */
@media(min-width:992px){
  .sidebar-v2 .sidebar-edge-toggle{top:18px;right:8px!important}
  body.sidebar-collapsed .sidebar-v2 .sidebar-edge-toggle{top:68px;right:5px!important}
}

/* Aba externa do menu, inspirada no controle compacto de três linhas. */
@media(min-width:992px){
  body>.sidebar-edge-toggle,.container-fluid>.row>.sidebar-edge-toggle{position:fixed!important;z-index:14000;top:14px;left:236px;display:grid!important;width:52px!important;height:52px!important;min-height:52px!important;margin:0!important;padding:0!important;place-items:center;border:0!important;border-radius:0 12px 12px 0!important;background:#153744!important;color:#fff!important;box-shadow:8px 8px 22px rgba(4,10,26,.18);transition:left .2s ease,background .18s ease,box-shadow .18s ease!important}
  body>.sidebar-edge-toggle:hover,body>.sidebar-edge-toggle:focus-visible,.container-fluid>.row>.sidebar-edge-toggle:hover,.container-fluid>.row>.sidebar-edge-toggle:focus-visible{background:#1f5364!important;color:#fff!important;outline:3px solid rgba(83,143,168,.22);outline-offset:0}
  body>.sidebar-edge-toggle i,.container-fluid>.row>.sidebar-edge-toggle i{width:auto!important;color:inherit!important;font-size:1.35rem!important}
  body.sidebar-collapsed>.sidebar-edge-toggle,body.sidebar-collapsed .container-fluid>.row>.sidebar-edge-toggle{left:76px}
}
@media(max-width:991.98px){body>.sidebar-edge-toggle,.container-fluid>.row>.sidebar-edge-toggle{display:none!important}}

/* O botão externo fica entre a lateral e o conteúdo; use irmão geral para reservar a largura. */
@media(min-width:992px){
  .sidebar.sidebar-v2~.right-column{width:calc(100% - 236px)!important;margin-left:236px!important;transition:width .2s ease,margin-left .2s ease}
  body.sidebar-collapsed .sidebar.sidebar-v2~.right-column{width:calc(100% - 76px)!important;margin-left:76px!important}
}

/* A mesma navegação do desktop apresentada como gaveta no tablet e celular. */
@media(max-width:991.98px){
  .sidebar.sidebar-v2{z-index:10050!important;left:-292px!important;width:min(286px,86vw)!important;max-width:286px;border-right:1px solid rgba(133,160,220,.2);border-radius:0 22px 22px 0;overflow:visible!important;box-shadow:none!important;transition:left .22s ease,box-shadow .22s ease!important}
  .sidebar.sidebar-v2.open{left:0!important;box-shadow:18px 0 50px rgba(3,9,24,.42)!important}
  .sidebar-v2>.mCustomScrollBox{overflow:hidden!important;border-radius:0 22px 22px 0}
  .sidebar-v2 .logo-nav-item{min-height:82px;padding:.8rem 3.7rem .35rem .8rem!important}
  .sidebar-v2 .logo-nav-item .navbar-brand{justify-items:start!important;margin:0!important;padding:.15rem!important}
  .sidebar-v2 .logo-nav-item img{width:138px!important;max-width:138px;max-height:58px}
  .sidebar-v2 .brand-caption{text-align:left}
  .sidebar-v2 .nav-header{margin:.55rem 1rem .12rem!important;padding:.45rem .15rem .2rem!important}
  .sidebar-v2 .nav>.nav-item>.nav-link{min-height:42px;margin:.06rem .65rem;padding:.4rem .52rem;border-radius:11px;font-size:.82rem}
  .sidebar-v2 .nav-icon{flex:0 0 32px;width:32px;height:32px;border-radius:9px}
  .sidebar-v2 .nav .nav-item>ul.nav{margin:.12rem .65rem .32rem .72rem!important;padding:.1rem 0 .1rem .28rem!important}
  .sidebar-v2 .nav .nav-item>ul.nav .nav-link{gap:.42rem!important;min-height:36px;margin:.03rem 0!important;padding:.34rem .4rem!important}
  .sidebar-v2 .nav .nav-item>ul.nav .nav-icon{flex:0 0 27px!important;width:27px!important;height:27px!important}
  .sidebar-v2>.hamburger{z-index:3!important;top:14px!important;right:14px!important;display:flex!important;width:44px;height:44px;padding:0!important;align-items:center;justify-content:center;border:1px solid rgba(133,160,220,.2);border-radius:13px;background:rgba(255,255,255,.06)!important;box-shadow:none!important;opacity:1!important}
  .sidebar-v2>.hamburger .hamburger-box{transform:scale(.72)}
  .sidebar-v2~.right-column{width:100%!important;margin-left:0!important}
  .sidebar-backdrop{z-index:10000;background:rgba(7,13,28,.66);backdrop-filter:blur(3px)}
}
@media(max-width:575.98px){
  .sidebar.sidebar-v2{left:-272px!important;width:min(266px,88vw)!important}
  .sidebar-v2 .logo-nav-item img{width:128px!important}
}

/* Identidade do menu: marca em evidência e controle externo mais discreto. */
@media(min-width:992px){
  .sidebar-v2 .logo-nav-item{padding:.35rem .55rem .45rem!important}
  .sidebar-v2 .logo-nav-item img{width:202px!important;max-width:calc(100% - 10px)!important;max-height:88px!important}
  .sidebar-v2 .brand-caption{margin-top:.05rem;font-size:.61rem;letter-spacing:.17em}
  body>.sidebar-edge-toggle,
  .container-fluid>.row>.sidebar-edge-toggle{top:16px;width:44px!important;height:44px!important;min-height:44px!important;border-radius:0 10px 10px 0!important}
  body>.sidebar-edge-toggle i,
  .container-fluid>.row>.sidebar-edge-toggle i{font-size:1.05rem!important}
}
@media(max-width:991.98px){
  .sidebar-v2 .logo-nav-item{min-height:88px;padding:.3rem 3.7rem .3rem .65rem!important}
  .sidebar-v2 .logo-nav-item img{width:184px!important;max-width:calc(100% - 4px)!important;max-height:80px!important}
}
@media(max-width:575.98px){
  .sidebar-v2 .logo-nav-item img{width:170px!important}
}

/* Preferências de comunicação do usuário */
.communication-preferences-card .communication-grid{width:100%}
.communication-preferences-card .communication-grid-head,
.communication-preferences-card .communication-row{display:grid!important;width:100%;grid-template-columns:minmax(260px,1fr) 120px 120px;align-items:center}
.communication-grid{overflow:hidden;border:1px solid var(--surface-border,#d9e0eb);border-radius:15px;background:var(--input-bg,#f8fafc)}.communication-grid-head,.communication-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 120px;align-items:center}.communication-grid-head{min-height:48px;padding:0 18px;border-bottom:1px solid var(--surface-border,#d9e0eb);background:rgba(57,113,246,.07);color:var(--text-muted,#64748b);font-size:.78rem}.communication-grid-head>span{text-align:center;font-weight:800}.communication-grid-head i{margin-right:.35rem;color:#3971f6}.communication-row{min-height:78px;padding:12px 18px;border-bottom:1px solid var(--surface-border,#d9e0eb)}.communication-row:last-child{border-bottom:0}.communication-row>div{display:flex;align-items:center;gap:.85rem}.communication-row>div>i{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border-radius:11px;background:rgba(57,113,246,.1);color:#3971f6}.communication-row>div>span{display:grid}.communication-row small{margin-top:.2rem;color:var(--text-muted,#718096);font-size:.75rem}.communication-row>label{display:grid;margin:0;place-items:center;cursor:pointer}.communication-row>label input{position:absolute;opacity:0;pointer-events:none}.communication-row>label span{display:grid;width:42px;height:30px;place-items:center;border:1px solid var(--surface-border,#cbd5e1);border-radius:18px;background:var(--surface-card,#fff);color:transparent;transition:.18s}.communication-row>label input:checked+span{border-color:#3971f6;background:#3971f6;color:#fff;box-shadow:0 5px 12px rgba(57,113,246,.22)}.communication-note{display:flex;margin-top:14px;padding:12px 14px;align-items:flex-start;gap:10px;border-radius:11px;background:rgba(57,113,246,.08);color:var(--text-muted,#64748b);font-size:.8rem}.communication-note i{margin-top:.15rem;color:#3971f6}body.dark_theme .communication-grid{background:#161e35}body.dark_theme .communication-grid-head{background:rgba(82,126,255,.12)}body.dark_theme .communication-row>label span{background:#202b46}@media(max-width:700px){.communication-grid-head,.communication-row{grid-template-columns:minmax(0,1fr) 62px 72px}.communication-grid-head{padding:0 10px}.communication-grid-head>span{font-size:0}.communication-grid-head>span i{font-size:1rem}.communication-row{padding:11px 10px}.communication-row>div>i{display:none}.communication-row small{font-size:.7rem}.communication-row>label span{width:38px;height:28px}}
@media(max-width:700px){.communication-preferences-card .communication-grid-head,.communication-preferences-card .communication-row{grid-template-columns:minmax(0,1fr) 62px 72px}}

/* Relatórios financeiros: cabeçalho, ferramentas e leitura dos extratos. */
.reports-page .report-heading--modern{margin-bottom:1.25rem;padding:1.45rem 1.65rem;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:linear-gradient(120deg,#183674 0%,#3971f6 100%);box-shadow:0 16px 34px rgba(22,52,120,.18)}
.reports-page .report-heading--modern .eyebrow{color:#c9d7ff}.reports-page .report-heading--modern h1{margin:.25rem 0 .35rem;color:#fff;font-size:clamp(1.65rem,2.5vw,2.25rem);font-weight:500;letter-spacing:-.025em;text-transform:uppercase}.reports-page .report-heading--modern p{max-width:720px;margin:0;color:#dce6ff;font-size:.92rem}.reports-page .report-heading--modern>a{display:inline-flex;min-height:44px;padding:.65rem 1rem;align-items:center;gap:.45rem;border:1px solid rgba(255,255,255,.3)!important;border-radius:12px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font-weight:750;white-space:nowrap;box-shadow:none!important}
.reports-page .report-modern-card{overflow:hidden;border:1px solid var(--of-border)!important;border-radius:20px!important;background:var(--of-surface)!important;box-shadow:0 12px 30px rgba(20,40,85,.08)!important}.reports-page .report-modern-card>.card-body{padding:0!important}.reports-page .report-card-heading{display:flex;padding:1.2rem 1.3rem;align-items:center;gap:.9rem;border-bottom:1px solid var(--of-border);background:linear-gradient(180deg,rgba(57,113,246,.055),transparent)}.reports-page .report-card-heading>div>span{color:var(--of-primary);font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.reports-page .report-card-heading h2{margin:.15rem 0;color:var(--of-ink);font-size:1.22rem;font-weight:750;text-transform:none}.reports-page .report-card-heading p{margin:0;color:var(--of-muted);font-size:.78rem}.reports-page .report-card-icon{display:grid;width:46px;height:46px;flex:0 0 46px;place-items:center;border-radius:13px;font-size:1rem}.reports-page .report-card-icon--income{background:rgba(16,185,129,.12);color:#059669}.reports-page .report-card-icon--expense{background:rgba(244,63,94,.12);color:#e11d48}.reports-page .report-modern-card .report-table-area{padding:1rem 1.15rem 1.15rem}
.reports-page .dt-buttons{gap:.5rem;margin-bottom:1rem;padding:.65rem;border:1px solid var(--of-border);border-radius:12px;background:rgba(57,113,246,.045)}.reports-page .dt-buttons .dt-button{display:inline-flex;min-height:38px;padding:.48rem .78rem;align-items:center;gap:.42rem;border-radius:9px!important;background:var(--of-surface)!important;font-weight:750}.reports-page .dt-buttons .dt-button i{font-size:.86rem}.reports-page .dt-buttons .buttons-copy i{color:#3971f6}.reports-page .dt-buttons .buttons-excel i{color:#059669}.reports-page .dt-buttons .buttons-pdf i{color:#e11d48}.reports-page .dt-buttons .buttons-print i{color:#7c3aed}
.reports-page table.dataTable thead th .form-control{border-radius:9px}.reports-page table.dataTable tbody tr{transition:transform .15s ease,box-shadow .15s ease}.reports-page table.dataTable tbody tr:hover td{background:rgba(57,113,246,.07)!important}.reports-page table.dataTable .badge{display:inline-flex;min-height:27px;padding:.28rem .58rem;align-items:center;border-radius:999px;font-size:.7rem}.reports-page table.dataTable tfoot th:nth-last-child(2){color:var(--of-primary);font-weight:800}
.dark_theme.reports-page .report-modern-card{background:#202a45!important}.dark_theme.reports-page .report-card-heading{background:linear-gradient(180deg,rgba(82,126,255,.12),transparent)}.dark_theme.reports-page .dt-buttons{background:#182139}.dark_theme.reports-page table.dataTable tbody tr:hover td{background:#223153!important}
@media(max-width:767px){.reports-page .main-content{padding:1rem!important}.reports-page .report-heading--modern{padding:1.15rem;border-radius:17px;flex-direction:column}.reports-page .report-heading--modern>a{width:100%;justify-content:center}.reports-page .report-card-heading{padding:1rem}.reports-page .report-modern-card .report-table-area{padding:.75rem;overflow-x:auto!important}.reports-page .dt-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.reports-page .dt-buttons .dt-button{justify-content:center}.reports-page table.dataTable{min-width:720px!important;table-layout:auto!important}}
.passkey-login-separator{display:flex;align-items:center;gap:12px;margin:18px 0;color:#7f8aa5}.passkey-login-separator:before,.passkey-login-separator:after{content:"";height:1px;background:rgba(127,138,165,.3);flex:1}.passkey-login-button{display:flex!important;align-items:center;justify-content:center;gap:10px}.passkey-login-button .fa-fingerprint{font-size:1.2rem}.security-card--passkeys{grid-column:1/-1}.security-card--passkeys .security-session{grid-template-columns:auto minmax(180px,1fr) auto auto}.security-card--passkeys [data-passkey-manage-feedback]{color:#ff9aad;margin:0}@media(max-width:700px){.security-card--passkeys .security-session{grid-template-columns:auto 1fr}.security-card--passkeys .security-session__activity,.security-card--passkeys .security-danger-button{grid-column:2}}
.goal-link-label{display:flex;align-items:center;gap:8px;color:#83a6ff!important;font-size:.88rem}.goal-settled{display:flex!important;align-items:center;gap:10px}.goal-settled input{width:auto!important}.goal-edit-panel{margin-top:16px;border-top:1px solid rgba(130,155,205,.2);padding-top:14px}.goal-edit-panel summary{cursor:pointer;color:#75a0ff;font-weight:700}.goal-edit-panel .goal-form{margin-top:15px}.goal-card-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.goal-card-actions form{margin:0}.goal-card-actions button{border:1px solid #385285;background:#17233e;color:#dce6ff;border-radius:10px;padding:9px 13px;font-weight:700}.goal-card-actions button.is-danger{border-color:#7c3344;color:#ff9bad}.goal-card:has(.goal-status:first-child){transition:border-color .2s ease,transform .2s ease}.goal-card:hover{transform:translateY(-2px)}

/* Metas financeiras: formulário compacto, alinhado e responsivo. */
.planning-page .goal-layout{grid-template-columns:minmax(360px,430px) minmax(0,1fr);gap:1.5rem}
.planning-page .goal-form-card,.planning-page .goal-card{border-radius:22px}
.planning-page .goal-form-card{padding:1.65rem}
.planning-page .goal-form{gap:1rem}
.planning-page .goal-form>label,.planning-page .goal-form__row>label{display:grid;gap:.45rem;margin:0;color:var(--of-muted)!important;font-size:.78rem;font-weight:700}
.planning-page .goal-form label[hidden]{display:none!important}
.planning-page .goal-form input:not([type="checkbox"]),.planning-page .goal-form select,.planning-page .goal-form textarea{width:100%;min-width:0;min-height:50px;margin:0;padding:.78rem .95rem;border:1px solid var(--of-border);border-radius:13px;box-sizing:border-box;font-size:.9rem;line-height:1.25}
.planning-page .goal-form input[type="date"]{max-width:none}
.planning-page .goal-form textarea{min-height:96px;resize:vertical}
.planning-page .goal-form__row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.planning-page .goal-settled{display:flex!important;min-height:48px;margin:0;padding:.72rem .8rem;align-items:center;gap:.7rem;border:1px solid var(--of-border);border-radius:13px;background:rgba(82,126,255,.055);color:var(--of-ink)!important;line-height:1.3;cursor:pointer}
.planning-page .goal-settled input[type="checkbox"]{appearance:none;-webkit-appearance:none;display:grid;width:18px!important;height:18px!important;min-width:18px;min-height:18px;margin:0;padding:0;place-content:center;border:1.5px solid #7890bb;border-radius:4px;background:transparent;box-shadow:none;cursor:pointer}
.planning-page .goal-settled input[type="checkbox"]:before{content:"";width:8px;height:5px;border:solid #fff;border-width:0 0 1.5px 1.5px;opacity:0;transform:translateY(-1px) rotate(-45deg)}
.planning-page .goal-settled input[type="checkbox"]:checked{border-color:var(--of-primary);background:var(--of-primary)}
.planning-page .goal-settled input[type="checkbox"]:checked:before{opacity:1}
.planning-page .goal-primary-button{min-height:48px;border:0;border-radius:13px;background:linear-gradient(135deg,#3971f6,#658cff);color:#fff;font-weight:800;box-shadow:0 9px 20px rgba(57,113,246,.2)}
.planning-page .goal-edit-panel summary{display:flex;min-height:42px;padding:.65rem .8rem;align-items:center;gap:.55rem;border:1px solid rgba(117,160,255,.28);border-radius:11px;background:rgba(82,126,255,.07);list-style:none}
.planning-page .goal-edit-panel summary::-webkit-details-marker{display:none}
.planning-page .goal-edit-panel summary:after{content:"+";margin-left:auto;font-size:1.1rem}
.planning-page .goal-edit-panel[open] summary:after{content:"−"}
.planning-page .goal-card-actions{justify-content:flex-end;padding-top:.2rem}
.planning-page .goal-card-actions button{display:inline-flex;min-height:40px;padding:.58rem .9rem;align-items:center;justify-content:center;gap:.45rem;border:1px solid rgba(117,160,255,.35);border-radius:11px;background:rgba(82,126,255,.08);color:#83a6ff;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.planning-page .goal-card-actions button:hover{border-color:#658cff;background:rgba(82,126,255,.16);transform:translateY(-1px)}
.planning-page .goal-card-actions button .fa-box-archive{color:#9eb7f5}
.planning-page.dark_theme .goal-settled{border-color:#303a58;background:rgba(82,126,255,.08);color:#dce3f4!important}
@media(max-width:1100px){.planning-page .goal-layout{grid-template-columns:1fr}.planning-page .goal-form-card{position:static}.planning-page .goal-list{min-width:0}}
@media(max-width:600px){.planning-page .main-content{padding:1rem!important}.planning-page .goal-form-card,.planning-page .goal-card{padding:1.1rem;border-radius:17px}.planning-page .goal-form__row{grid-template-columns:1fr}.planning-page .goal-card__top,.planning-page .goal-values{gap:.65rem}.planning-page .goal-card-actions{display:grid;grid-template-columns:1fr}.planning-page .goal-card-actions button{width:100%;justify-content:center}}

/* Calendário financeiro */
.calendar-hero-actions{display:flex;flex-wrap:wrap;gap:.65rem}.calendar-hero-actions a{display:inline-flex;min-height:44px;padding:.65rem .9rem;align-items:center;justify-content:center;gap:.45rem;border:1px solid rgba(255,255,255,.28);border-radius:12px;background:rgba(255,255,255,.12);color:#fff!important;font-weight:750;text-decoration:none}.calendar-toolbar{display:flex;margin:1.2rem 0;padding:.8rem 1rem;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--of-border);border-radius:16px;background:var(--of-surface)}.calendar-month-navigation{display:grid;grid-template-columns:42px minmax(170px,1fr) 42px;align-items:center;gap:.5rem;text-align:center}.calendar-month-navigation a{display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--of-border);border-radius:11px;color:var(--of-primary);text-decoration:none}.calendar-month-navigation strong{text-transform:capitalize;color:var(--of-ink);font-size:1.05rem}.calendar-toolbar form label{display:flex;align-items:center;gap:.6rem;margin:0;color:var(--of-muted);font-size:.78rem;font-weight:700}.calendar-toolbar select{min-height:40px;padding:.5rem .75rem;border:1px solid var(--of-border);border-radius:10px;background:var(--of-surface);color:var(--of-ink)}.financial-calendar-layout{display:grid;grid-template-columns:minmax(520px,1.4fr) minmax(330px,.72fr);align-items:start;gap:1.25rem}.calendar-panel,.calendar-day-panel{overflow:hidden;border:1px solid var(--of-border);border-radius:22px;background:var(--of-surface);box-shadow:var(--of-shadow)}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{padding:.75rem 1rem 0}.calendar-weekdays span{padding:.55rem;color:var(--of-muted);font-size:.7rem;font-weight:800;text-align:center;text-transform:uppercase}.calendar-grid{padding:.4rem 1rem 1rem}.calendar-day{position:relative;display:flex;min-height:92px;padding:.65rem;align-items:flex-start;justify-content:space-between;border:1px solid transparent;border-radius:13px;color:var(--of-ink);text-decoration:none;transition:.18s}.calendar-day:hover{border-color:rgba(82,126,255,.28);background:rgba(82,126,255,.06);color:var(--of-ink);text-decoration:none}.calendar-day time{display:grid;width:29px;height:29px;place-items:center;border-radius:9px;font-size:.82rem;font-weight:750}.calendar-day.is-today time{background:rgba(82,126,255,.13);color:var(--of-primary)}.calendar-day.is-selected{border-color:rgba(82,126,255,.55);background:rgba(82,126,255,.1)}.calendar-day.is-selected time{background:var(--of-primary);color:#fff}.calendar-day.is-empty{pointer-events:none}.calendar-dots{position:absolute;right:.62rem;bottom:.65rem;left:.62rem;display:flex;gap:4px}.calendar-dots i,.calendar-legend i,.calendar-day-summary i{display:block;width:7px;height:7px;border-radius:50%;background:#94a3b8}.calendar-day small{position:absolute;right:.62rem;top:.7rem;color:var(--of-muted);font-size:.65rem}.calendar-legend{display:flex;padding:.9rem 1.2rem;flex-wrap:wrap;gap:.7rem 1rem;border-top:1px solid var(--of-border);color:var(--of-muted);font-size:.7rem}.calendar-legend span{display:flex;align-items:center;gap:.4rem}.calendar-panel .income,.calendar-day-panel .income{background:#35ca98}.calendar-panel .expense,.calendar-day-panel .expense{background:#ff637d}.calendar-panel .card,.calendar-day-panel .card{background:#5d8dff}.calendar-panel .transfer,.calendar-day-panel .transfer{background:#f6b84b}.calendar-panel .invoice,.calendar-day-panel .invoice{background:#a87cf5}.calendar-day-panel{position:sticky;top:1rem}.calendar-day-panel>header{display:flex;padding:1.15rem 1.2rem;align-items:center;justify-content:space-between;border-bottom:1px solid var(--of-border)}.calendar-day-panel>header span{color:var(--of-primary);font-size:.7rem;font-weight:800;text-transform:uppercase}.calendar-day-panel>header h2{margin:.18rem 0 0;color:var(--of-ink);font-size:1.25rem}.calendar-add-menu{display:flex;gap:.4rem}.calendar-add-menu a{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--of-border);border-radius:10px;background:rgba(82,126,255,.07);color:var(--of-primary)}.calendar-day-summary{display:grid;padding:1rem 1.2rem;gap:.62rem}.calendar-day-summary>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:var(--of-muted);font-size:.78rem}.calendar-day-summary span{display:flex;align-items:center;gap:.5rem}.calendar-day-summary strong{color:var(--of-ink)}.calendar-day-summary .is-balance{padding-top:.75rem;border-top:1px solid var(--of-border);font-weight:800}.calendar-day-summary .is-balance i{background:#94a3b8}.calendar-day-summary strong.is-negative{color:#ff637d}.calendar-event-list{display:grid;max-height:410px;padding:0 1.2rem 1.2rem;gap:.65rem;overflow:auto}.calendar-event-list article{display:grid;grid-template-columns:10px minmax(0,1fr) auto 34px;padding:.8rem;align-items:center;gap:.7rem;border:1px solid var(--of-border);border-radius:12px;background:rgba(82,126,255,.035)}.calendar-event-icon{width:9px;height:36px;border-radius:9px}.calendar-event-list article>div{display:grid;min-width:0}.calendar-event-list article span,.calendar-event-list article small{overflow:hidden;color:var(--of-muted);font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}.calendar-event-list article strong{overflow:hidden;color:var(--of-ink);font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}.calendar-event-list article>b{color:var(--of-ink);font-size:.78rem;white-space:nowrap}.calendar-event-list article>a{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;color:var(--of-primary)}.calendar-empty{padding:2rem 1rem;text-align:center;color:var(--of-muted)}.calendar-empty>i{display:grid;width:48px;height:48px;margin:0 auto .7rem;place-items:center;border-radius:14px;background:rgba(82,126,255,.1);color:var(--of-primary)}.calendar-empty strong{display:block;color:var(--of-ink)}.calendar-empty p{margin:.3rem 0 0;font-size:.76rem}.dark_theme.financial-calendar-page .calendar-toolbar,.dark_theme.financial-calendar-page .calendar-panel,.dark_theme.financial-calendar-page .calendar-day-panel{border-color:#303a58;background:#202a45}.dark_theme.financial-calendar-page .calendar-toolbar select{border-color:#303a58;background:#171d32;color:#fff}.dark_theme.financial-calendar-page .calendar-day:hover,.dark_theme.financial-calendar-page .calendar-day.is-selected{background:rgba(82,126,255,.13)}.dark_theme.financial-calendar-page .calendar-event-list article{border-color:#303a58;background:#1a233b}
@media(max-width:1100px){.financial-calendar-layout{grid-template-columns:1fr}.calendar-day-panel{position:static}.calendar-event-list{max-height:none}}
@media(max-width:700px){.financial-calendar-page .main-content{padding:1rem!important}.calendar-hero-actions{display:grid;width:100%;grid-template-columns:1fr 1fr}.calendar-toolbar{align-items:stretch;flex-direction:column}.calendar-month-navigation{grid-template-columns:40px 1fr 40px}.calendar-toolbar form label{align-items:stretch;flex-direction:column}.calendar-weekdays,.calendar-grid{padding-right:.55rem;padding-left:.55rem}.calendar-weekdays span{padding:.4rem .15rem;font-size:.62rem}.calendar-day{min-height:62px;padding:.32rem}.calendar-day time{width:25px;height:25px;font-size:.72rem}.calendar-dots{right:.35rem;bottom:.35rem;left:.35rem;gap:3px}.calendar-dots i{width:5px;height:5px}.calendar-legend{padding:.8rem;gap:.55rem}.calendar-event-list article{grid-template-columns:8px minmax(0,1fr) auto}.calendar-event-list article>a{grid-column:2/-1;width:100%;height:30px;border:1px solid var(--of-border)}.calendar-event-list article>b{font-size:.72rem}}

/* Cancelamento da assinatura */
.subscription-cancel-card{align-self:start;overflow:hidden}.subscription-cancel-card>p{max-width:620px;color:var(--of-muted);line-height:1.55}.subscription-cancel-form{display:grid;max-width:620px;gap:1rem}.subscription-cancel-form>label{position:relative;display:grid!important;min-width:0;gap:.45rem!important;margin:0}.subscription-cancel-form input{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-height:50px!important;margin:0!important;padding:.75rem 5.3rem .75rem .9rem!important}.subscription-cancel-form .password-toggle{right:.35rem;bottom:5px;width:auto;min-width:66px;height:40px;padding:0 .7rem;color:#83a6ff}.subscription-cancel-form .commercial-danger-button{display:inline-flex;width:max-content;max-width:100%;min-height:48px;padding:.75rem 1.1rem;align-items:center;justify-content:center;gap:.5rem;justify-self:start;border-radius:12px;cursor:pointer}.subscription-cancel-form .commercial-danger-button:hover{background:#c62940;transform:translateY(-1px)}
@media(max-width:600px){.subscription-cancel-form{max-width:none}.subscription-cancel-form .commercial-danger-button{width:100%;justify-self:stretch}}

.communication-premium-badge{display:inline-flex;margin-left:auto;padding:.42rem .7rem;align-items:center;border-radius:999px;background:rgba(255,187,69,.14);color:#f2b94b;font-size:.7rem;font-weight:850;text-transform:uppercase}.communication-premium-lock{display:grid;grid-template-columns:48px minmax(0,1fr) auto;padding:1.1rem 1.2rem;align-items:center;gap:1rem;border:1px solid rgba(242,185,75,.25);border-radius:15px;background:rgba(242,185,75,.055)}.communication-premium-lock>i{display:grid;width:46px;height:46px;place-items:center;border-radius:13px;background:rgba(242,185,75,.13);color:#f2b94b}.communication-premium-lock strong{color:var(--of-ink)}.communication-premium-lock p{margin:.25rem 0 0;color:var(--of-muted);font-size:.78rem}.communication-premium-lock a{display:inline-flex;min-height:42px;padding:.6rem .85rem;align-items:center;justify-content:center;border:1px solid rgba(242,185,75,.35);border-radius:11px;color:#d9a52f;font-weight:800;text-decoration:none}.dark_theme .communication-premium-lock strong{color:#f7f9ff}@media(max-width:700px){.communication-premium-lock{grid-template-columns:42px 1fr}.communication-premium-lock>a{grid-column:1/-1;width:100%}.communication-premium-badge{margin-left:0}}
.avatar-custom{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;color:transparent!important}

/* Enquadra somente o retrato do sprite, eliminando números e células vizinhas. */
.avatar-sprite{background-size:698% 465%!important;background-position:calc(6.6% + var(--avatar-x)*21.4%) calc(1.3% + var(--avatar-y)*28.7%)!important}
.profile-avatar.avatar-custom,.profile-avatar.avatar-sprite{border-radius:50%!important}
.dashboard-topbar .profile-picture{display:grid!important;place-items:center!important;padding:0!important}
.dashboard-topbar .navbar-profile .nav-link .profile-name{float:none!important;margin:0!important}
.dashboard-topbar .profile-picture .topbar-user-avatar{width:100%!important;height:100%!important;margin:0!important}
.dashboard-topbar .profile-picture .topbar-user-avatar.avatar-custom{background-position:center!important;background-size:cover!important}
.dashboard-topbar .profile-picture .topbar-user-avatar-img{display:block!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:50%!important;object-fit:cover!important;object-position:50% 50%!important}
.dashboard-topbar .profile-picture .topbar-user-avatar{padding:0!important;line-height:1!important;text-align:center!important}
.dashboard-topbar .mobile-account-avatar{display:grid!important;padding:0!important;overflow:hidden!important;place-items:center!important;border-radius:50%!important;background:#315fcf!important;color:#fff!important;font-weight:900!important;line-height:1!important}
.dashboard-topbar .mobile-account-avatar>img{display:block!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important}
.dashboard-topbar .mobile-account-avatar>span{display:grid;width:100%;height:100%;place-items:center;line-height:1}
@media(max-width:991.98px){.dashboard-topbar{width:100%;overflow:visible}.dashboard-topbar .mobile-plan-badge{display:none!important}.dashboard-topbar .mobile-only-control{margin-right:.15rem!important}.dashboard-topbar .mobile-only-control .nav-link{overflow:visible!important}.dashboard-topbar .mobile-only-control .account-menu__avatar{flex:0 0 40px}}
@media(max-width:575.98px){.dashboard-topbar .mobile-only-control{margin-right:0!important}.dashboard-topbar .mobile-only-control .account-menu__avatar{flex-basis:36px;width:36px;height:36px}.dashboard-topbar>.topbar-alert-button{width:38px!important;height:38px!important;flex-basis:38px!important}}

/* Backup v4: resumo de cobertura e fluxo responsivo. */
.backup-scope{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.4fr);gap:24px;margin:0 0 20px;padding:22px 24px;border:1px solid var(--of-border);border-radius:20px;background:linear-gradient(135deg,rgba(57,113,246,.11),rgba(57,113,246,.025));box-shadow:var(--of-shadow)}
.backup-scope h2{margin:.25rem 0 .4rem;color:var(--of-ink);font-size:1.3rem}.backup-scope p{margin:0;color:var(--of-muted);line-height:1.55}.backup-scope ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;padding:0;list-style:none}.backup-scope li{display:flex;align-items:flex-start;gap:9px;color:var(--of-ink);font-size:.82rem;font-weight:700}.backup-scope li i{margin-top:3px;color:#19a974}.backup-scope li:last-child i{color:var(--of-primary)}
.backup-page .backup-card form{display:grid;gap:4px}.backup-page .backup-card button,.backup-page .restore-button{transition:transform .16s ease,filter .16s ease}.backup-page .backup-card button:hover,.backup-page .restore-button:hover{filter:brightness(1.05);transform:translateY(-1px)}
@media(max-width:900px){.backup-scope{grid-template-columns:1fr}.backup-scope ul{grid-template-columns:1fr 1fr}}
@media(max-width:575.98px){.backup-scope{padding:18px}.backup-scope ul{grid-template-columns:1fr}.restore-panel>header>i{display:none}.backup-feedback{align-items:flex-start}}
/* Web Push: preferências e dispositivos */
.push-settings-card .user-card-heading{align-items:center}.push-status{margin-left:auto;padding:.45rem .75rem;border:1px solid var(--border-color,#d8e1f0);border-radius:999px;color:#71809a;font-size:.78rem;font-weight:800;white-space:nowrap}.push-status.is-active{background:rgba(31,180,120,.12);border-color:rgba(31,180,120,.3);color:#16865c}.push-privacy-note{display:flex;gap:.9rem;align-items:center;padding:1rem 1.1rem;border:1px solid rgba(79,124,255,.2);border-radius:14px;background:rgba(79,124,255,.06)}.push-privacy-note>i{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(79,124,255,.14);color:#4f7cff}.push-privacy-note span{display:grid;gap:.15rem}.push-privacy-note small{color:#71809a;line-height:1.45}.push-settings-actions{display:flex;align-items:center;gap:1rem;margin-top:1rem}.push-toggle-button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:44px;padding:.7rem 1rem;border:0;border-radius:12px;background:#4f7cff;color:#fff;font-weight:800;cursor:pointer}.push-toggle-button[data-active="1"]{background:#1d2942;color:#c8d2e5}.push-toggle-button:disabled{opacity:.55;cursor:not-allowed}.push-feedback{color:#16865c;font-size:.86rem}.push-feedback.is-error,.push-plan-notice{color:#c24e64}.push-plan-notice{margin:.8rem 0 0}.push-device-list{margin-top:1.2rem;border-top:1px solid var(--border-color,#d8e1f0);padding-top:1rem}.push-device-list h3{margin:0 0 .7rem;font-size:.9rem}.push-device{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0;border-bottom:1px solid rgba(127,145,177,.16)}.push-device>span{display:flex;align-items:center;gap:.75rem;min-width:0}.push-device>span>i{color:#4f7cff}.push-device>span>span{display:grid}.push-device small{color:#71809a}.push-device button{border:0;background:transparent;color:#c24e64;font-weight:700;cursor:pointer}
body.dark-theme .push-status,body.themaDark .push-status{border-color:#33425f;color:#aebbd1}body.dark-theme .push-status.is-active,body.themaDark .push-status.is-active{color:#6ee0ad}body.dark-theme .push-privacy-note,body.themaDark .push-privacy-note{background:rgba(79,124,255,.09);border-color:#334b7e}body.dark-theme .push-toggle-button[data-active="1"],body.themaDark .push-toggle-button[data-active="1"]{background:#101a30}
@media(max-width:767px){.push-settings-card .user-card-heading{align-items:flex-start}.push-status{margin-left:0}.push-settings-actions,.push-device{align-items:stretch;flex-direction:column}.push-toggle-button{width:100%}.push-device button{align-self:flex-start;padding:.5rem 0}}
