/* Interface R2 compartilhada com Comercial e Financeiro. */
:root{--bg:#f5f5fa;--panel:#fff;--panel-soft:#f4f4f9;--surface-muted:#f4f4f9;--surface-hover:#e9e9f0;--line:#e4e4eb;--text:#0b0f0e;--text-soft:#37373c;--muted:#63636e;--sidebar:#fbfbfd;--sidebar-dark:#fbfbfd;--sidebar-hover:#e5f8f1;--orange:#007c61;--orange-deep:#00634f;--green:#007c61;--cyan:#007c61;--link-accent:#007c61;--brand-soft:#e5faf3;--success-soft:#e5faf3;--radius:16px;--radius-lg:22px;--shadow:0 12px 32px #0b0f0e08;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-display:var(--font);--font-body:var(--font);--font-num:var(--font)}
html[data-theme="dark"]{--bg:#000;--panel:#1c1c1e;--panel-soft:#232325;--surface-muted:#232325;--surface-hover:#303033;--line:#38383c;--text:#f5f5f7;--text-soft:#dedee3;--muted:#aaaab3;--sidebar:#131315;--sidebar-dark:#131315;--sidebar-hover:#12392f;--orange:#2fd9a4;--orange-deep:#2fd9a4;--green:#2fd9a4;--cyan:#2fd9a4;--link-accent:#2fd9a4;--brand-soft:#12392f;--success-soft:#12392f;--shadow:0 12px 32px #0003}
body,input,select,textarea,button{font-family:var(--font)!important}body{background:var(--bg)!important;color:var(--text)!important}.workspace,.view-shell{min-width:0;max-width:100%}.platform-header{background:var(--sidebar)!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important}.brand-strip strong{color:var(--text)!important;gap:14px}.brand-strip img{background:#0b0f0e!important;border-radius:10px;object-fit:contain;padding:7px;width:56px;height:56px}.brand-name{font-size:10px!important;letter-spacing:.15em;font-weight:500!important;line-height:1.6!important}.sidebar{background:var(--sidebar)!important;border-right:1px solid var(--line)!important}.profile-card{background:transparent!important;border-bottom:1px solid var(--line)!important}.sidebar-nav button{border-radius:14px!important;min-height:46px;color:var(--muted)!important}.sidebar-nav button.active,.sidebar-nav button[aria-current="page"]{background:var(--brand-soft)!important;color:var(--green)!important}.page-title{letter-spacing:-.04em;font-weight:650!important}.summary-card,.panel-card,.table-card{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow)!important}.summary-card strong{letter-spacing:-.04em}.btn{min-height:44px!important;border-radius:12px!important}.btn--primary,.login-submit{background:#2fd9a4!important;color:#0b0f0e!important;border-color:transparent!important}.btn--ghost,.btn--info{background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--line)!important}input:not([type="checkbox"]):not([type="radio"]),select,textarea{border-radius:12px!important;background:var(--panel-soft)!important;color:var(--text)!important;min-height:44px;border-color:var(--line)!important;max-width:100%}:focus-visible{outline:3px solid #2fd9a4!important;outline-offset:3px}.r2-portal-back{display:block;color:var(--muted);padding:16px;text-decoration:none;min-height:44px}.r2-portal-back[hidden]{display:none}.r2-connection{padding:12px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);margin-bottom:18px;font-size:13px}.r2-connection p{margin:4px 0;color:var(--muted)}.table-wrap{max-width:100%;overflow-x:auto}.login-overlay{background:var(--bg)!important}.login-panel{border:1px solid var(--line)!important;background:var(--panel)!important;box-shadow:var(--shadow)!important}.login-badge{background:#0b0f0e!important}.login-title,.login-description,.login-kicker,.login-security{color:var(--text)!important}
@media(max-width:720px){.workspace{padding:16px!important}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.summary-card{min-width:0;padding:16px!important}.summary-card h3{font-size:12px!important}.summary-card strong{font-size:28px!important}.workspace-top{flex-wrap:wrap;gap:12px}.page-title{font-size:28px!important}.platform-header{padding-left:12px!important;padding-right:12px!important}.country-chip{display:none!important}.brand-name{font-size:9px!important}input,select,textarea{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
html[data-theme] body{--r2-deep-blue:#0b0f0e;--r2-blue:#2fd9a4;--action:#2fd9a4;--action-hover:#26c595;--action-pressed:#1cb587;--on-action:#0b0f0e;--selection:var(--brand-soft);--on-selection:var(--green);--focus:#2fd9a4;--brand:var(--green);--metric-top:var(--panel);--metric-base:var(--panel-soft)}
html[data-theme] body .brand-strip{background:var(--sidebar)!important;color:var(--text)!important}html[data-theme] body .brand-strip strong img{width:52px!important;height:52px!important;padding:7px!important;background:#0b0f0e!important;border-radius:10px!important}html[data-theme] body .brand-strip strong{color:var(--text)!important}html[data-theme] body .workspace{background:var(--bg)!important}html[data-theme] body .nav-button.is-active,html[data-theme] body .nav-sub-item.is-active{background:var(--brand-soft)!important;color:var(--green)!important;box-shadow:none!important}html[data-theme] body .nav-button.is-active .nav-icon{color:var(--green)!important}html[data-theme] body .view-shell :is(.section-card,.panel-card,.table-card,.chart-card,.fin-kpi){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;border-radius:22px!important}html[data-theme] body .section-card__body{background:transparent!important}html[data-theme] body button.btn:not(.btn--primary){background:var(--panel-soft)!important;color:var(--text)!important;border-color:var(--line)!important}html[data-theme] body .nav-button{font-size:14px!important}.r2-bottom-nav{display:none}
@media(min-width:981px){.platform-shell:not(.is-collapsed) .platform-header,.platform-shell:not(.is-collapsed) .platform-body{grid-template-columns:240px minmax(0,1fr)!important}}
@media(max-width:720px){.r2-bottom-nav{display:flex;justify-content:space-around;position:fixed;z-index:100;bottom:0;left:0;right:0;background:var(--sidebar);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}.r2-bottom-nav button{display:grid;justify-items:center;gap:4px;border:0;background:transparent;color:var(--muted);min-height:52px;min-width:66px;font-size:11px;border-radius:12px}.r2-bottom-nav button svg{width:22px;height:22px}.workspace{padding-bottom:100px!important}.mobile-nav{display:none!important}.login-overlay:not(.is-hidden)~.r2-bottom-nav{display:none}.platform-shell:not(.is-collapsed) .platform-header{grid-template-columns:minmax(0,1fr) auto!important}}
html[data-theme] body .brand-name{color:var(--text)!important}
@media(max-width:720px){.view-shell--dashboard .client-list-table thead{display:none}.view-shell--dashboard .client-list-table,.view-shell--dashboard .client-list-table tbody{display:block;width:100%}.view-shell--dashboard .client-list-table tr{display:grid;gap:8px;margin:12px;padding:14px;border:1px solid var(--line);border-radius:14px}.view-shell--dashboard .client-list-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:4px!important;white-space:normal}.view-shell--dashboard .client-list-table td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:12px;flex-shrink:0}}

@media(max-width:720px){.hr-team-table{min-width:0!important;width:100%!important}.hr-team-table thead{display:none}.hr-team-table,.hr-team-table tbody,.hr-team-table tr,.hr-team-table td{display:block}.hr-team-table tr{padding:12px;border-bottom:1px solid var(--line)}.hr-team-table td{padding:8px!important;white-space:normal!important;overflow-wrap:anywhere;border:0!important}.hr-team-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;margin-bottom:4px}}
