/* Rotier Atrium · adaptação verde da fundação Sirio. Carregar após rotier.css. */
:root[data-rotier-product='hub'] {
  --rotier-stone-dark: var(--ds-muted); --rotier-cream: var(--ds-canvas);
  --rotier-cream-mid: var(--ds-border-soft); --rotier-cream-dark: var(--ds-border);
  --font-body: var(--ds-font); --font-heading: var(--ds-font); --font-mono: var(--ds-mono);
  --font: var(--ds-font); --mono: var(--ds-mono);
  --primary: var(--ds-brand); --primary-dark: var(--ds-brand-hover);
  --success: var(--ds-success); --danger: var(--ds-danger); --warning: var(--ds-warning);
  --bg-page: var(--ds-canvas); --bg: var(--ds-canvas); --surface: var(--ds-surface);
  --color-border: var(--ds-border); --color-border-light: var(--ds-border-soft);
  --border: var(--ds-border); --border-mid: var(--ds-field-border);
  --radius: var(--ds-radius); --radius-sm: var(--ds-radius);
  --r-sm: var(--ds-radius); --r-md: var(--ds-radius); --r-lg: var(--ds-radius); --r-xl: var(--ds-radius);
  --shadow-card: var(--ds-shadow); --shadow-md: var(--ds-shadow);
  --sidebar-bg: var(--ds-canvas); --sidebar-text: var(--ds-text); --sidebar-width: 232px;
  --rd-clay: var(--ds-brand); --rd-clay-soft: var(--ds-brand-hover);
  --charcoal: var(--ds-text); --charcoal-dark: var(--ds-brand-dark);
  --sage-dark: var(--ds-brand); --sage: #6a9497; --sage-light: #b9d0d0; --sage-pale: var(--ds-brand-soft);
  --cream: var(--ds-canvas); --cream-mid: var(--ds-border-soft); --cream-dark: var(--ds-border);
  --stone-dark: var(--ds-muted); --clay: var(--ds-brand-hover); --error: var(--ds-danger);
  --text: var(--ds-text); --text-m: var(--ds-muted); --text-dim: var(--ds-muted);
  --primary-pale: var(--ds-brand-soft); --primary-c: var(--ds-brand);
  --p-primary: var(--ds-brand); --p-primary-dk: var(--ds-brand-hover); --p-primary-pale: var(--ds-brand-soft);
  --p-surface: var(--ds-canvas); --p-card: var(--ds-surface); --p-border: var(--ds-border);
  --p-border-var: var(--ds-field-border); --p-on-surface: var(--ds-text); --p-outline: var(--ds-muted);
  --p-dark: var(--ds-brand-dark); --p-surface-low: var(--ds-canvas); --p-success: var(--ds-success); --p-error: var(--ds-danger);
  --sa-bg: var(--ds-canvas); --sa-sidebar: var(--ds-surface); --sa-border: var(--ds-border);
  --sa-text: var(--ds-text); --sa-muted: var(--ds-muted); --sa-accent: var(--ds-brand-hover);
  --sa-accent-dim: var(--ds-brand-soft); --sa-danger: var(--ds-danger); --sa-warn: var(--ds-warning); --sa-blue: var(--ds-brand-hover);
}

.notif-dropdown{ width:360px;max-width:90vw;padding:0;border:1px solid var(--color-border);border-radius:14px;box-shadow:0 18px 48px rgba(42,50,45,.16);overflow:hidden; }
.notif-header{ font-weight:600;font-size:14px;color:var(--rotier-charcoal-dark);padding:14px 16px;border-bottom:1px solid var(--color-border); }
.notif-list{ max-height:380px;overflow-y:auto; }
.notif-item{ display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-bottom:1px solid #f0eee9;text-decoration:none;color:inherit;transition:background .15s; }
.notif-item:last-child{ border-bottom:none; }
.notif-item:hover{ background:var(--rotier-cream-mid); }
.notif-item.notif-unread{ background:rgba(106, 148, 151,.08); }
.notif-icon{ flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff; }
.notif-content{ flex:1 1 auto;min-width:0; }
.notif-desc{ font-size:13px;color:#3A3A5C;margin-bottom:2px; }
.notif-project{ font-size:12px;font-weight:600;color:#2F5A60; }
.notif-meta{ font-size:11.5px;color:#999; }
.notif-empty,.notif-loading{ padding:32px 16px;text-align:center;color:#999;font-size:13px; }

/* Acesso, cadastro e páginas públicas usam os mesmos tokens. */
[data-rotier-product='hub'] .auth-card { border-radius: var(--ds-panel-radius); box-shadow: none; border: 1px solid var(--ds-border); }
[data-rotier-product='hub'] .auth-card button { border-radius: var(--ds-radius) !important; }
[data-rotier-product='hub'] .field > label { font-size: 1rem; }
[data-rotier-product='hub'] .field .ibox { border-radius: var(--ds-radius); border-color: var(--ds-field-border); min-height: 48px; }
[data-rotier-product='hub'] .field .ibox:focus-within { outline: 3px solid var(--ds-focus); outline-offset: 3px; box-shadow: none; }
[data-rotier-product='hub'] .field .ibox input { font-size: 1rem; }
[data-rotier-product='hub'] .btn-go { border-radius: var(--ds-radius); background: var(--ds-brand); box-shadow: none; min-height: 48px; font-size: 1rem; }
[data-rotier-product='hub'] .btn-go:hover { background: var(--ds-brand-hover); box-shadow: none; transform: none; }
[data-rotier-product='hub'] .wrap > .right { background: var(--ds-brand-dark); }
[data-rotier-product='hub'] .glass { border-radius: var(--ds-radius); box-shadow: none; background: rgb(255 255 255 / 6%); backdrop-filter: none; }
[data-rotier-product='hub'] :where(.gstat, .feat, .step, .tcard, .appwindow, .portal-client-card) { border-radius: var(--ds-radius); box-shadow: none; }
[data-rotier-product='hub'] .hero { background: var(--ds-canvas); }
[data-rotier-product='hub'] .feat:hover { transform: none; box-shadow: none; border-color: var(--ds-brand); }
[data-rotier-product='hub'] .feat .ic { background: var(--ds-brand-soft); color: var(--ds-brand-hover); border-radius: var(--ds-radius); box-shadow: none; }
[data-rotier-product='hub'] .portal-brand-txt span { color: #b9d0d0; font-size: .75rem; }
[data-rotier-product='hub'] .sa-brand-mark { background: var(--ds-brand); color: #fff; border-radius: var(--ds-radius); }
[data-rotier-product='hub'] :where(.sa-brand-txt, .sa-topbar-title, .sa-card-header, .sa-stat-value) { color: var(--ds-text); }
[data-rotier-product='hub'] :where(.sa-card, .sa-stat, .sa-btn, .sa-input, .sa-select) { border-radius: var(--ds-radius); }
[data-rotier-product='hub'] :where(.sa-input, .sa-select) { background: #fff; border-color: var(--ds-field-border); min-height: 48px; font-size: 1rem; }
[data-rotier-product='hub'] .sa-btn { min-height: 44px; font-weight: 700; font-size: .875rem; }
[data-rotier-product='hub'] .sa-btn-primary { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
[data-rotier-product='hub'] .sa-link { min-height: 44px; font-size: 1rem; }
[data-rotier-product='hub'] .sa-link:hover { background: var(--ds-canvas); }
[data-rotier-product='hub'] .sa-stat-label { font-family: var(--ds-font); font-size: .875rem; text-transform: none; letter-spacing: normal; }
[data-rotier-product='hub'] :where(.plan-trial, .plan-legado, .plan-default) { color: var(--ds-text); }
[data-rotier-product='hub'] .plan-solo { color: var(--ds-brand-hover); background: var(--ds-brand-soft); }
@media (max-width: 575.98px) {
  [data-rotier-product='hub'] .rd-hero { padding: 1.25rem; }
  [data-rotier-product='hub'] .page-content { padding-inline: 1rem; }
  [data-rotier-product='hub'] .btn-sm { padding-inline: .625rem; }
  [data-rotier-product='hub'] .sa-content { padding: 1rem; }
}
@media print {
  [data-rotier-product='hub'] .portal-topbar { position: static; }
}


/* Casca compartilhada: moldura clara, folha branca e foco no trabalho. */
.sidebar { padding: 0 12px 12px; background: var(--ds-canvas); border: 0; overflow-y: auto; }
.sidebar-brand { height: 72px; padding: 20px 12px; border: 0; justify-content: flex-start; gap: 12px; }
.rh-brand-wordmark { width: auto; height: 32px; }.rh-brand-symbol { display: block; width: 34px; height: 34px; }.rh-product-label { color: var(--ds-brand-hover); font-size: 15px; border-left: 1px solid var(--ds-border); padding-left: 12px; }
.sidebar-brand-logo-wrap { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }.sidebar-brand-logo { max-width: 100%; max-height: 34px; object-fit: contain; }.sidebar-brand-txt b { font-size: 14px; color: var(--ds-text); }
.sidebar-nav { padding: 12px 0; }[data-rotier-product='hub'] .sidebar-link { min-height: 44px; padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--ds-muted); border-radius: 6px; gap: 12px; }[data-rotier-product='hub'] .sidebar-link i { font-size: 18px; width: 20px; }[data-rotier-product='hub'] .sidebar-link:hover { color: var(--ds-text); background: var(--ds-border-soft); }[data-rotier-product='hub'] .sidebar-link.active { background: var(--ds-brand-soft); color: var(--ds-brand-hover); font-weight: 600; }[data-rotier-product='hub'] .sidebar-link.active::before { display: none; }.nav-badge { background: var(--ds-border-soft); color: var(--ds-muted); font: 600 12px var(--ds-font); }.nav-badge-danger { background: var(--ds-danger-soft); color: var(--ds-danger); }
.sidebar-footer { padding: 12px 0 0; border-top: 1px solid var(--ds-border); }.ds-workspace-name { color: var(--ds-muted); font-size: 13px; }.sidebar-toggle-btn { width: 44px; height: 44px; top: 10px; left: 208px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; transform: none; }.sidebar-toggle-btn:hover { background: var(--ds-border-soft); }
.main-wrapper { margin-left: var(--sidebar-width); padding: 0 8px 8px 0; }.app-header { position: relative; margin: 0; left: auto; width: auto; height: 64px; padding: 0 24px; background: var(--ds-canvas); border: 0; box-shadow: none; gap: 12px; }.page-title { font-size: 18px; font-weight: 600; color: var(--ds-muted); }.page-content { background: #fff; border: 1px solid var(--ds-border); border-radius: 16px; padding: 32px; margin: 0; min-height: calc(100vh - 72px); max-width: none; }
.hdr-icon, .hdr-profile { display: grid; place-items: center; position: relative; min-height: 44px; min-width: 44px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--ds-muted); text-decoration: none; }.hdr-icon:hover,.hdr-profile:hover { background: var(--ds-border-soft); }.hdr-profile .av { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ds-brand-soft); color: var(--ds-brand-hover); border-radius: 50%; font-size: 13px; }.hdr-icon .dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; background: var(--ds-danger); border-radius: 50%; }.dash-greet { color: var(--ds-muted); font-size: 13px; }.dash-greet i { display: none; }
body.sidebar-collapsed .sidebar { width: 72px; padding-inline: 8px; }body.sidebar-collapsed .main-wrapper { margin-left: 72px; }body.sidebar-collapsed .sidebar-toggle-btn { left: 56px; }body.sidebar-collapsed .rh-brand-wordmark,body.sidebar-collapsed .rh-product-label,body.sidebar-collapsed .sidebar-brand-txt,body.sidebar-collapsed .ds-workspace-name { display: none; }body.sidebar-collapsed .rh-brand-symbol { display: block; }body.sidebar-collapsed .sidebar-brand { padding-inline: 10px; }
#mobileSidebar { background: var(--ds-canvas); }#mobileSidebar .offcanvas-header { border-bottom: 1px solid var(--ds-border) !important; }#mobileSidebar .offcanvas-body { padding-inline: 12px !important; }#mobileSidebar .sidebar-nav { padding-block: 12px; }#mobileSidebar .btn-close { min-width: 44px; min-height: 44px; padding: 0; }
.rh-overview { margin-bottom: 28px; }.rh-overview > a { display: flex; flex-direction: column; color: inherit; text-decoration: none; padding: 16px 20px; border-right: 1px solid var(--ds-border); }.rh-overview > a:last-child { border-right: 0; }.rh-overview > a:hover { background: var(--ds-canvas); }.rh-overview span { color: var(--ds-muted); font-size: 14px; }.rh-overview strong { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-header { background: #fff; padding: 16px 20px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--ds-border); }.card-header > span > i { display: none; }.dash-recent-row { padding: 16px 20px; gap: 12px; }.dash-recent-icon { display: none; }.dash-recent-title { font-size: 15px; font-weight: 600; }.dash-recent-meta { font-size: 13px; color: var(--ds-muted); }.dash-recent-title > span { color: var(--ds-muted) !important; font-size: 12px !important; }.dash-recent-row :where(.svc-status-badge,.task-status-badge) { font-size: 12px; }.dash-alert-section-label { font: 600 13px var(--ds-font); letter-spacing: 0; text-transform: none; }.dash-alert-title { font-size: 15px; }.dash-alert-meta { font-size: 13px; }.dash-alert-empty { min-height: 120px; }.dash-cat-row { gap: 12px; justify-content: space-between; }.dash-segbar { display: flex; height: 8px; overflow: hidden; border-radius: 4px; background: var(--ds-border-soft); }.dash-seg-legend { display: flex; gap: 12px 16px; flex-wrap: wrap; padding-top: 16px; font-size: 13px; color: var(--ds-muted); }.dash-seg-legend .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }.dash-seg-todo { background: #83919d; }.dash-seg-in_progress { background: #557fa5; }.dash-seg-in_review { background: #ad8742; }.dash-seg-done { background: var(--ds-brand); }
.password-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ds-muted); cursor: pointer; }.rh-auth { min-height: 100vh; display: flex; flex-direction: column; }.rh-auth-header { display: flex; gap: 12px; align-items: center; padding: 28px 40px; }.rh-auth-header img { width: 104px; }.rh-auth-main { width: min(100% - 32px, 440px); margin: auto; padding: 36px 40px; border: 1px solid var(--ds-border); border-radius: 16px; background: #fff; }.rh-auth-main h1 { margin: 0 0 8px; font-size: 28px; }.rh-auth-main > p { color: var(--ds-muted); margin: 0 0 28px; }.rh-auth-main .field { margin-bottom: 20px; }.rh-auth-main label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }.rh-auth-main .ibox { display: flex; border: 1px solid var(--ds-field-border); border-radius: 6px; align-items: center; padding-inline: 12px; }.rh-auth-main .ibox input { min-height: 44px; min-width: 0; width: 100%; border: 0; background: transparent; outline-offset: 0; box-shadow: none; font: inherit; }.rh-auth-main .ibox:focus-within { outline: 3px solid var(--ds-focus); outline-offset: 2px; }.rh-auth-main .ibox input:focus { outline: 0; }.rh-auth-links { text-align: center; font-size: 14px; margin: 24px 0 0; }.rh-auth-footer { padding: 32px 16px; text-align: center; font-size: 13px; color: var(--ds-muted); }.rh-auth-forgot { text-align: right; margin: -4px 0 24px; font-size: 14px; }.rh-auth-main .btn-go { width: 100%; min-height: 44px; border: 0; cursor: pointer; font: 600 15px var(--ds-font); color: #fff; }.rh-auth-main .err,.rh-auth-main .alert-err { font-size: 14px; color: var(--ds-danger); }.rh-auth-main .alert-err { padding: 12px; background: var(--ds-danger-soft); margin-bottom: 20px; border-radius: 6px; }
.sign-center-list { border: 1px solid var(--ds-border); border-radius: 12px; overflow: hidden; }.sign-center-list > li { padding: 20px; border-bottom: 1px solid var(--ds-border); }.sign-center-list > li:last-child { border-bottom: 0; }.sign-center-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(110px,1fr) minmax(0,1fr) auto; gap: 20px; align-items: center; }.sign-center-row > * { min-width: 0; }.sign-center-row h3 { font-size: 16px; }.sign-center-state { display: inline-block; padding: 4px 8px; font-weight: 600; font-size: 13px; color: var(--ds-brand-hover); background: var(--ds-brand-soft); border-radius: 4px; }.sign-center-state.is-completed { color: var(--ds-success-text); background: var(--ds-success-soft); }.sign-center-state.is-attention { color: var(--ds-warning); background: var(--ds-warning-soft); }
@media (max-width: 1199.98px) { .sign-center-row { grid-template-columns: minmax(0,1fr) auto; }.sign-center-primary { grid-column: 1 / -1; } }
@media (max-width: 991.98px) { .main-wrapper,body.sidebar-collapsed .main-wrapper { margin-left: 0; padding: 0 8px 8px; }.app-header { padding: 0 12px; height: 56px; }.page-content { min-height: calc(100vh - 64px); padding: 24px; } }
@media (max-width: 575.98px) { .main-wrapper,body.sidebar-collapsed .main-wrapper { padding: 0; }.app-header { gap: 8px; }.app-header .page-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.app-header > .ms-auto { flex-shrink: 0; }.app-header .btn-link { min-width: 44px; min-height: 44px; }.page-content { border-radius: 0; border: 0; padding: 24px 16px; }.rh-overview > a { padding: 12px; }.rh-overview strong { font-size: 24px; }.sign-center-row { gap: 12px; }.sign-center-row > .small { grid-column: 1 / -1; }.sign-center-row > :last-child { grid-column: 2; grid-row: 2; }.sign-center-list > li { padding: 16px; }.rh-auth-header { padding: 24px; }.rh-auth-main { padding: 28px 24px; }.rh-auth-main h1 { font-size: 26px; }.hdr-param-btn,.hdr-tpl-btn { display: none !important; }.nav-tabs { flex-wrap: nowrap; overflow-x: auto; }.budget-item-row { padding-inline: 12px !important; } }
@media (max-width: 340px) { .hdr-export-btn,.hdr-config-btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sidebar,.main-wrapper,.sidebar-toggle-btn { transition: none; } }

@media (max-width: 575.98px) { [aria-label="Indicadores de assinatura"].rs-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }[aria-label="Indicadores de assinatura"] .rs-metric { padding: 12px 8px; border-bottom: 0; border-right: 1px solid var(--ds-border); }[aria-label="Indicadores de assinatura"] .rs-metric:last-child { border-right: 0; }[aria-label="Indicadores de assinatura"] .rs-metric-label { font-size: 12px; min-height: 38px; }[aria-label="Indicadores de assinatura"] .rs-metric-value { font-size: 24px; } }

[data-rotier-product='hub'] .card-header { border-radius: 12px 12px 0 0; font-weight: 600; font-size: 16px; }
.rh-overview > div { display: flex; flex-direction: column; padding: 16px 20px; }
