/* Paleta da clínica sem JavaScript; painel clareado com a cor intermediária em 19/10/2026. */
/* Porto da Meia-Noite: cinco cores fornecidas, com neutros para leitura. */
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) {
    --ink: #0b1d39;
    --muted: #52677e;
    --primary: #123a63;
    --primary-dark: #0b1d39;
    --sidebar: #2f5d8a;
    --sidebar-muted: #d7e7f5;
    --sidebar-text: #f5f9fd;
    --sidebar-hover: #244d75;
    --background: #f3f5f8;
    --line: #dce3eb;
    --line-dark: #c3cfdc;
    --control-border: #6f8398;
    --porto-medium: #2f5d8a;
    --porto-sky: #9cc7e6;
    --porto-sand: #f2e9da;
    --porto-soft: #eaf3fa;
    --porto-soft-border: #b5cbe0;
}
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .sidebar { color: #ffffff; border-right-color: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav { scrollbar-color: var(--sidebar-muted) transparent; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-label,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-icon,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .logout { color: var(--sidebar-muted); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .eyebrow.light { color: var(--porto-sky); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav a,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .account-link { color: var(--sidebar-text); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav a.active { background: var(--primary); color: #ffffff; box-shadow: inset 3px 0 var(--porto-sky); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav a.active .nav-icon { color: #ffffff; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav a:hover { background: var(--sidebar-hover); color: #ffffff; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav a.active:hover { background: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-disabled { color: var(--sidebar-muted); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .avatar { background: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .sidebar :focus-visible { outline-color: #ffffff; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-mode-form button { border-color: var(--porto-sky); background: var(--primary); color: #ffffff; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-mode-form button:hover,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-mode-form button:focus-visible { border-color: #ffffff; background: var(--sidebar-hover); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-mode-arrow,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .nav-mode-form .nav-icon { color: var(--porto-sky); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .mode-switch { border-color: var(--control-border); background: var(--porto-soft); color: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .mode-switch:hover { border-color: var(--primary); background: var(--porto-sky); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .mode-switch-management { background: #ffffff; color: var(--ink); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .mode-switch-management:hover { background: var(--porto-soft); }

html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .login-page { background: var(--porto-sand); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .login-story { background: var(--primary-dark); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .login-story p { color: #d8e7f4; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .login-story > small { color: var(--porto-sky); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .login-card { box-shadow: 0 10px 35px rgba(11,29,57,.08); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .form-field label,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .login-card label,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .validation-observation > span,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .operational-pending-filters label > span,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .deadline-filters label > span,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .import-history-filters label > span,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .import-detail-filters label > span,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .alias-filters label > span,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .quality-filters label > span { color: var(--ink); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .field-input:focus,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .searchbar input:focus { box-shadow: 0 0 0 2px rgba(47,93,138,.16); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .patient-form-section-head,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .patient-therapy-row-head { background: var(--porto-soft); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .patient-form-section-head .section-number { background: var(--porto-sky); color: var(--ink); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .btn-ghost:hover { background: var(--porto-soft); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .period-chip { background: var(--porto-sand); color: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .metric-code,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) th,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .productivity-header { background: var(--porto-soft); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) tbody tr:hover,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .professional-task:hover { background: #f3f7fb; }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .badge.info { background: var(--porto-soft); color: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .status-text.info,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .urgency-info { color: var(--porto-medium); }

/* Somente informação/identidade; sucesso, alerta e erro conservam sua semântica. */
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .notice:not(.warning-notice):not(.danger-notice):not(.success-notice),
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-readonly-notice,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .report-home-care-action,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .professional-reconciliation,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .productivity-callout { border-color: var(--porto-soft-border); background: var(--porto-soft); color: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .notice:not(.warning-notice):not(.danger-notice):not(.success-notice) strong,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .productivity-callout strong { color: var(--primary); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .productivity-callout span { color: var(--muted); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-total,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-review-count { background: var(--porto-soft); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-authorized-range,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .productivity-next-action { background: var(--porto-soft); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .productivity-status-flow li.current > span { box-shadow: 0 0 0 4px var(--porto-soft); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .quality-score { border-color: var(--porto-soft-border); background: linear-gradient(135deg, #ffffff, var(--porto-soft)); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .quality-coverage-card:hover { box-shadow: 0 5px 15px rgba(11,29,57,.08); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-review-group:hover,
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-review-group[open] { border-color: var(--porto-medium); box-shadow: 0 5px 16px rgba(11,29,57,.08); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-review-group summary:focus-visible { outline-color: var(--porto-medium); }
html[data-brand-theme="porto"]:not([data-theme-preview="current"]) .attendance-review-group[open] summary { background: var(--porto-soft); }
