/* Clinicaa Bleu nuit. Explicit compatibility layer for legacy Vue/Bootstrap styles.
   Screen-only: document rendering and printing continue to use the existing light styles.
   No inversion/filtering of images, medical documents or logos. */
@media screen {html:not([data-ui-theme="night"]) #app .finance-overview__eyebrow,
html:not([data-ui-theme="night"]) #app .finance-overview__currency,
html:not([data-ui-theme="night"]) #app .finance-overview__devise,
html:not([data-ui-theme="night"]) #app .indicateurs-lien,
html:not([data-ui-theme="night"]) #app .paie-rh__etat { color:#425776 !important; }
html:not([data-ui-theme="night"]) #app .finance-overview__date-apply { background:#2457c5 !important; }

html[data-ui-theme="night"]:not([data-ui-screen="login"]) {
    color-scheme: dark;
    --ui-text:#edf3fc; --ui-text-secondary:#b1c0d6; --ui-text-muted:#b1c0d6;
    --ui-accent:#2d65d6; --ui-success:#176148;
    --ui-night-bg:#0b1426; --ui-night-nav:#0f1b30; --ui-night-panel:#14223a;
    --ui-night-raised:#1b2d48; --ui-night-field:#101d32; --ui-night-line:#223149;
    --ui-night-control:#607a9d; --ui-night-link:#90b8ff;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) body,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .content,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .content-body,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .portail-shell,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .login-page {
    background-color:var(--ui-night-bg) !important; color:var(--ui-text);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app #sdbr,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .wrapper #sdbr.sidebar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .wrapper .navbar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar .sidebar-header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar .side-foot,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__menu,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__trigger {
    background:var(--ui-night-nav) !important; border-color:var(--ui-night-line) !important; color:var(--ui-text) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar ul.components li > a.li-flex,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__role,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__footer button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__heading,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__identity strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__identity small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__title,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .side-foot strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .side-foot__version,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .side-foot__copyright,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__apropos,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__version {
    color:var(--ui-text-secondary) !important; background-color:transparent !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar ul.components li > a.li-flex:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar ul.components li > a.li-flex.router-link-active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__role--active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__role:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__footer button:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher[open] .profile-switcher__trigger {
    color:var(--ui-night-link) !important; background:var(--ui-night-raised) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar-groupe,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar .side-foot,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profile-switcher__footer,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profile-switcher__heading {
    border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .side-foot__app,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profile-switcher__service,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profile-switcher__footer i,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profile-switcher__identity small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar .sidebar-groupe {
    color:var(--ui-text-secondary) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .content-body h1,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .content-body h2,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .content-body h3,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .content-body h4,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-title,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .p-title,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .c-title,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .card-title,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .param-accordion-title,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-carte-titre,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-permission-libelle,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-fort,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .table,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app table,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal table {
    color:var(--ui-text) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-muted,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-grey,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-grey-dark,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-secondary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-secondary-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-etat,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-routes,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .param-accordion-desc,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__period {
    color:var(--ui-text-secondary) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .card-header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .card-footer,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .panel,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .main-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .bg-white,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .bg-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .param-accordion-section,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .param-accordion-header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .settings-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .settings-carte,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-carte,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-table,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-groupe,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__filter-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-panel,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .login-form,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .login-section,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .form-content,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__content-wrapper,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dropdown-menu,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .popover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vdp-datepicker__calendar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-container {
    background-color:var(--ui-night-panel) !important; color:var(--ui-text) !important; border-color:var(--ui-night-line) !important; box-shadow:none;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .main-section > .section-body,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .param-accordion-body,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tab-content,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .section-container {
    background:transparent !important; color:var(--ui-text);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-fenetre-corps {
    background-color:var(--ui-night-field) !important; color:var(--ui-text);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pane-fixed,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pane-fixed-top,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .body-header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .settings-page-heading,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .main-section > .header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .nav-tabs,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-onglets,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profil-onglets,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dettes-tabs,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .personnel-tabs > .tabs > div > .nav-tabs {
    background-color:var(--ui-night-bg) !important; border-color:var(--ui-night-line) !important; color:var(--ui-text);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .param-accordion-icon,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-groupe-titre,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-compteur,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-portee,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-slug,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profile-switcher__trigger,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__currency {
    background-color:var(--ui-night-raised) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .nav-tabs .nav-link,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-onglet,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profil-onglet,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dettes-tab {
    color:var(--ui-text-secondary) !important; background-color:transparent !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .nav-tabs .nav-link.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-onglet.actif,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profil-onglet.actif,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dettes-tab.active {
    color:var(--ui-night-link) !important; background-color:transparent !important; border-bottom-color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-primary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-link,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-groupe-chevron,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .content-body a:not(.btn):not(.badge):not(.page-link) {
    color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) table tbody td,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) table tbody th,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) table tfoot td,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) table tfoot th,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-permission,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .list-group-item {
    color:var(--ui-text) !important; border-color:var(--ui-night-line) !important; background-color:var(--ui-night-panel) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) table thead th,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) table thead td,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .table-header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .list-group-item-action:hover {
    background:var(--ui-night-field) !important; color:var(--ui-text-secondary) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .table-striped tbody tr:nth-of-type(odd) td {
    background-color:#17273f !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .table-hover tbody tr:hover td,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-table tr:hover td {
    background-color:var(--ui-night-raised) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="color"]),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) textarea,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) select,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .form-control,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .custom-select,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__tags,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__input,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__single,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ui-search-field {
    background-color:var(--ui-night-field) !important; color:var(--ui-text) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) input::placeholder,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) textarea::placeholder,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__placeholder {
    color:var(--ui-text-muted) !important; opacity:1;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) label,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) legend,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .custom-control-label,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-case,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__option,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dropdown-item,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dropdown-menu a,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dropdown-menu button {
    color:var(--ui-text) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) input:disabled,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) textarea:disabled,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) select:disabled,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .form-control[readonly] {
    background:var(--ui-night-raised) !important; color:var(--ui-text-muted) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__option--highlight,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .multiselect__option--selected,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dropdown-item:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .dropdown-item:focus {
    background:var(--ui-night-raised) !important; color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .input-group-text,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-secondary-light-o,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-secondary-o,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-outline-secondary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-secondary-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-primary-o,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-outline-primary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-bouton:not(.pa-bouton--principal),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ui-modal-cancel,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-footer .btn-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-footer .btn-outline-secondary {
    background-color:var(--ui-night-raised) !important; color:var(--ui-text) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-primary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-bouton--principal {
    background:var(--ui-accent) !important; border-color:var(--ui-accent) !important; color:#fff !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-content,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-fenetre .modal-content {
    background:var(--ui-night-panel) !important; border-color:var(--ui-night-line) !important; color:var(--ui-text);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-header,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-footer,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ui-modal-actions,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-fenetre .modal-footer {
    background:var(--ui-night-panel) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-body {
    background:var(--ui-night-field) !important; color:var(--ui-text);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal-backdrop {
    background-color:rgba(24,35,55,.35) !important; opacity:1 !important; backdrop-filter:blur(3px);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .close,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .b-calendar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .b-form-datepicker {
    color:var(--ui-text) !important; text-shadow:none;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pagination .page-item .page-link,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .page-link {
    background:var(--ui-night-field) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pagination .page-item.active .page-link {
    background:#285bd4 !important; border-color:#285bd4 !important; color:#fff !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-mode,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-pastille--off,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .badge-secondary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .badge-light {
    background:var(--ui-night-raised) !important; color:var(--ui-text-secondary) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-mode--rbac,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-pastille--ok,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .badge-success,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .badge-success-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .alert-success,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-success-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-success-o {
    background:#123f37 !important; color:#9de5c6 !important; border-color:#558f7a !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-success {
    color:#9de5c6 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .alert-danger,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-danger-light,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-danger-o,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-mode--erreur {
    background:#452634 !important; color:#ffb7c2 !important; border-color:#b77687 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-danger,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-etat--erreur,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .wrapper .profile-switcher__footer > button:last-child {
    color:#ffb7c2 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .alert-warning,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .badge-warning {
    background:#453921 !important; color:#ffdfa1 !important; border-color:#ad9257 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .text-warning {
    color:#ffdfa1 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .alert-info,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-avertissement {
    background:var(--ui-night-raised) !important; color:#c6dbff !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pharmacy-redesign,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .modal {
    --pharmacy-ink:var(--ui-text); --pharmacy-muted:var(--ui-text-secondary); --pharmacy-blue:var(--ui-accent); --pharmacy-soft:var(--ui-night-raised); --pharmacy-line:var(--ui-night-line);
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ui-print-action,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-bouton-imprimer {
    background:#176148 !important; color:#fff !important; border-color:#558f7a !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-bouton-exporter {
    background:#2c3f61 !important; color:#fff !important; border-color:#6c85ae !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) button:focus-visible,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) a:focus-visible,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) input:focus-visible,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) select:focus-visible,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) textarea:focus-visible,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) summary:focus-visible {
    outline:2px solid var(--ui-night-link) !important; outline-offset:2px;
}

/* Parameter cards and application pickers use their own legacy white surfaces. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .profils-acces,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .nouveautes-panel {
    background:var(--ui-night-panel) !important; color:var(--ui-text) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .selecteur-applications__bouton,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .selecteur-applications__liste,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .selecteur-applications__option,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .selecteur-espaces__bouton,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .selecteur-espaces__liste,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .selecteur-espaces__option,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .nouveautes-trigger,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .nouveautes-toolbar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-groupe-entete {
    background:var(--ui-night-raised) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-line) !important;
}
/* Only UI sprite icons; never clinical images, logos, canvases or documents. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #sdbr i[class*="ic-"] { filter:brightness(0) invert(.82); }

html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pa-recherche,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__date-filter > summary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__date-menu,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vs__dropdown-toggle,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vs__dropdown-menu {
 background:var(--ui-night-field) !important; color:var(--ui-text) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__tabs button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__refresh,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-bouton-secondaire {
 background:var(--ui-night-raised) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__metric,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-carte,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-solde {
 background:var(--ui-night-panel) !important; color:var(--ui-text) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .tc-page {
 --tc-texte:var(--ui-text); --tc-texte-2:var(--ui-text-secondary); --tc-ligne:var(--ui-night-line);
 --tc-bleu:var(--ui-accent); --tc-bleu-fonce:var(--ui-night-link); --tc-bleu-clair:var(--ui-night-raised);
 --tc-vert:#9de5c6; --tc-rouge:#ffb7c2; --tc-orange:#ffdfa1;
}


html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__metric strong { color:var(--ui-night-link) !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__metric--green strong { color:#9de5c6 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__metric--red strong { color:#ffb7c2 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__metric strong small { color:inherit !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__account-tabs button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__account-summary {
    background:var(--ui-night-raised) !important; color:var(--ui-text) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .finance-overview__account-tabs button.active {
    background:var(--ui-accent) !important; color:#fff !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #sdbr ul.components i { color:inherit !important; }
/* Export semantics also correct the legacy green Excel buttons in day mode. */
body .ui-export-action.ui-export-action {
    background:#2c3f61 !important; color:#fff !important; border-color:#6c85ae !important; font-weight:500;
}
body .ui-export-action.ui-export-action i { filter:brightness(0) invert(1); }


/* Dashboard surfaces with bespoke day styles need explicit night counterparts. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-panel,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-historical,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-status,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-error {
 background:var(--ui-night-panel) !important; color:var(--ui-text) !important;
 border-color:var(--ui-night-line) !important; box-shadow:none;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-metric,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-breakdown-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-inline-metrics > div,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-capacity-body > div,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-age-list > div:first-child {
 background:var(--ui-night-field) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-head-badge,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-refresh,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-periods button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-list dt small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-service-track {
 background:var(--ui-night-raised) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-date-filter summary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-date-menu {
 background:var(--ui-night-field) !important; color:var(--ui-text) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-refresh:hover:not(:disabled),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-date-filter summary:hover {
 background:var(--ui-night-raised) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-periods button {
 color:var(--ui-text-secondary) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-periods button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-metric strong:not(.unavailable),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-inline-metrics strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-list dd,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-breakdown-card h3,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-service-row strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-historical strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-detail-link,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-eyebrow {
 color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-list > div,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-breakdown-card dl > div {
 border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-error,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin .medical-date-error { color:#ffb7c2 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dashboard-admin :focus-visible {
 outline-color:var(--ui-night-link) !important;
}


/* Equivalent residual day surfaces found in RMA and patient pathways. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .multiselect--disabled {
 background:var(--ui-night-raised) !important; color:var(--ui-text-muted) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .pp-filtres button:not(.actif),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .pp-nombre {
 background:var(--ui-night-raised) !important; color:var(--ui-text) !important; border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .pp-filtres button.actif .pp-nombre {
 background:var(--ui-night-panel) !important; color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .pp-info {
 background:#143b32 !important; color:#9de5c6 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .pp-erreur {
 background:#462731 !important; color:#ffb7c2 !important;
}

html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .rma-summary-card {
 background:var(--ui-night-panel) !important; color:var(--ui-text-secondary) !important; border-color:var(--ui-night-line) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .stock-transfer-link,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .stock-unit {
 background:var(--ui-night-raised) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-control) !important;
}

/* Profile popover follows the raised night surface of the workspace selector. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .wrapper .profile-switcher__menu {
 background:var(--ui-night-raised) !important;
 border:1px solid rgba(144,184,255,.14) !important;
 border-radius:16px;
 box-shadow:0 0 0 4px rgba(70,118,210,.045), 0 0 28px rgba(70,118,210,.12), 0 18px 44px rgba(3,9,20,.4) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profile-switcher__footer button:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profile-switcher__role:hover {
 background:rgba(144,184,255,.08) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profile-switcher__footer hr {
 border-color:rgba(144,184,255,.12) !important;
}


/* Care dashboards: readable type and quiet separators rather than bright grid lines. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs {
 border-bottom-color:rgba(144,184,255,.1) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs button {
 color:var(--ui-text-secondary) !important; font-weight:500;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs button[aria-selected="true"] {
 color:var(--ui-night-link) !important; border-bottom-color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tab-count {
 background:var(--ui-night-raised) !important; color:var(--ui-text-secondary) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs button[aria-selected="true"] .med-tab-count {
 background:#244b80 !important; color:#edf3fc !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-patient {
 color:var(--ui-text) !important; font-weight:600;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-text-button {
 color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-text-button:disabled {
 color:var(--ui-text-muted) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .consultations-medecin .med-table th {
 border-bottom:1px solid rgba(144,184,255,.12) !important; font-weight:600;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .consultations-medecin .med-table td {
 border-top:0 !important; border-bottom:1px solid rgba(144,184,255,.07) !important;
 padding-top:12px; padding-bottom:12px;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-table tbody tr:last-child td {
 border-bottom-color:transparent !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tone-primary {
 background:#203c61 !important; color:#b4d0ff !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tone-success,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tone-pale-success {
 background:#183c35 !important; color:#a5dfcb !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tone-warning {
 background:#403522 !important; color:#f1d69f !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tone-danger,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-error {
 background:#422833 !important; color:#f4b5c1 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tone-muted {
 background:var(--ui-night-raised) !important; color:var(--ui-text-secondary) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .consultations-medecin .card-body {
 line-height:1.5;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-table,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs {
 scrollbar-color:#425775 #101d32; scrollbar-width:thin;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-table::-webkit-scrollbar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs::-webkit-scrollbar { height:6px; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-table::-webkit-scrollbar-track,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs::-webkit-scrollbar-track { background:#101d32; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-table::-webkit-scrollbar-thumb,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .med-tabs::-webkit-scrollbar-thumb { background:#425775; border-radius:8px; }

/* White artwork uses the same intrinsic frames and visible bounds as the day logos.
   All dimensions, alignment and responsive layout remain owned by the shared day styles. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar-header .sidebar-logo-complet,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .navbar .sidebar-desktop-logo,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .navbar .nav-xs-brand img {
    content:url("./clinicaa-logo-night.svg");
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sidebar-header .sidebar-logotype {
    content:url("./clinicaa-logo-night-symbol.svg");
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .login-page .brand img {
    content:url("./clinicaa-logo-night-login.svg");
}

/* Audit Caisse 16/11/2026 : surfaces et états observés dans les routes réelles. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) {
    --surface-card:var(--ui-night-panel); --surface-muted:var(--ui-night-field);
}html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-role,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-search-area,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-content,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-nav button.selected,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .sub-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-totaux > div,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-categories button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .journal-kpi,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .billing-summary-due,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .produits-total,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .creance-products-total,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .recouvrements,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .recouvrements-contenu,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .recouvrements-vide,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-tabs,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-tabs button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .validation-list-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .depenses-declarees-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-page-tabs,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-toolbar,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-kpi,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .expenses-filters,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .expenses-secondary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .expenses-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profil-carte,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .recouvrement-metric,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .recouvrement-detail-button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-retour,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-retry {
    background:var(--ui-night-panel) !important; color:var(--ui-text) !important;
    border-color:var(--ui-night-line) !important;
}html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-nav button:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-nav button.selected,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-categories button:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-tabs button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-tabs button[aria-selected="true"],
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-assure { background:var(--ui-night-raised) !important; color:var(--ui-night-link) !important; }html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-identite,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parametres,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-totaux,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .billing-summary-due,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .brder-secondary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profil-carte-titre,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-categorie-libelle,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-card,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-tabs button { color:var(--ui-text) !important; }html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-identite span,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-identite strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-identite small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-identite label,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parametres span,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parametres strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parametres small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parametres label,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-totaux span,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-totaux strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-totaux small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-parts-totaux label,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .billing-summary-due span,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .billing-summary-due strong,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .billing-summary-due small,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .billing-summary-due label { color:var(--ui-text) !important; }html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-toolbar p,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .produits-total-label,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .produits-total-note,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .creance-products-total span,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-muted,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .regularisations-soins__intro,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .regularisations-soins__vide,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .paie-rh__lot small { color:var(--ui-text-secondary) !important; }html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-page-tabs button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .recouvrements-compteur,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profil-titre,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .profil-email,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .journal-detail-toggle,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .finance-overview__eyebrow,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-lien,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .indicateurs-lien,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .ajout-medecin-lien,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .bon-retour,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-link,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .expenses-card a,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-back,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-category,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-related button,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-details summary { color:var(--ui-night-link) !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-badge--enregistre {
    background:#143b32 !important; color:#9de5c6 !important;
}html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-error,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-notice--erreur,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-notice--error,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-error {
    background:#462731 !important; color:#ffb7c2 !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .finance-overview__date-apply {
    background:#285bd4 !important; color:#fff !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .navbar i.ic-hamburger { filter:brightness(0) invert(1); }/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .coupure-value,
/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .coupure-subtotal,
/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-panel,
/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-total,
/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-line,
/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-counted,
/* Billetage et navigation : contrastes vérifiés sur les pages chargées. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-operator { color:var(--ui-text) !important; }html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-panel,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-total,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-counted,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .solde-versement-operator { background:var(--ui-night-field) !important; border-color:var(--ui-night-line) !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .hospital-tabs button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .guide-list button:hover strong { color:var(--ui-night-link) !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app button.bon-retour { color:var(--ui-night-link) !important; }html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-lien,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .budget-error button { background:transparent !important; color:var(--ui-night-link) !important; }
/* html2pdf captures screen CSS: keep its paper surfaces and inherited tokens light. */
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vue-html2pdf .content-wrapper,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .pdf-content,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .print-pdf,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) [id="to_print"],
html[data-ui-theme="night"]:not([data-ui-screen="login"]) [slot="pdf-content"] {
    --ui-text:#172033; --ui-text-secondary:#273449; --ui-text-muted:#526074;
    --ui-accent:#2457c5; --ui-success:#176148;
    --ui-night-bg:#fff; --ui-night-nav:#fff; --ui-night-panel:#fff;
    --ui-night-raised:#edf4fe; --ui-night-field:#fff; --ui-night-line:#dce6f5;
    --ui-night-control:#9aaac1; --ui-night-link:#2457c5;
    --pharmacy-ink:#172033; --pharmacy-muted:#273449; --pharmacy-soft:#edf4fe; --pharmacy-line:#dce6f5;
    --tc-texte:#172033; --tc-texte-2:#273449; --tc-vert:#166044; --tc-rouge:#a52632;
    color:#172033 !important; background:#fff !important; color-scheme:light;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vue-html2pdf .content-wrapper .text-success,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .print-pdf .text-success { color:#166044 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vue-html2pdf .content-wrapper .text-danger,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .print-pdf .text-danger { color:#a52632 !important; }
}
@media print {
    html[data-ui-theme] { color-scheme:light; }
    html[data-ui-theme] body,
    html[data-ui-theme] #app { background:#fff !important; color:#172033 !important; }
}

/* Audit navigateur du 16/11 : contrôles partagés du poste de soins et du téléphone. */
@media screen {
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vue-tel-input,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vti__dropdown,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vti__dropdown-list,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .poste-secondary,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-primary-o-compact {
    background:var(--ui-night-field) !important;
    color:var(--ui-text) !important;
    border-color:var(--ui-night-control) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vti__dropdown-item.highlighted,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vti__dropdown.open,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vti__dropdown:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .poste-tabs span {
    background:var(--ui-night-raised) !important;
    color:var(--ui-text) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .poste-refresh,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .poste-tabs button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .rma-tabs button.active {
    color:var(--ui-night-link) !important;
}
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .poste-tabs button.active,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .rma-tabs button.active {
    border-bottom-color:var(--ui-night-link) !important;
}
}

/* La vérification publique respecte le thème, sans changer la couleur du papier. */
@media screen {
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif { background:var(--ui-night-bg); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-carte { background:var(--ui-night-panel); border-color:var(--ui-night-line); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-marque,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-details dd { color:var(--ui-text); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-etat,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-details dt { color:var(--ui-text-secondary); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-details > div { border-color:var(--ui-night-line); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-marque .fa { color:var(--ui-night-link); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-statut--ok { background:#143b32; color:#9de5c6; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-statut--ancien { background:#453b23; color:#f4d58a; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .verif-statut--erreur { background:#462731; color:#ffb7c2; }
}

/* Contrôles graphiques : ne recolorer ni les images ni les palettes de couleurs. */
@media screen {
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .vti__dropdown-arrow { color:var(--ui-text-secondary); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-danger { background:#b42332 !important; border-color:#d66a77 !important; color:#fff !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-danger:hover:not(:disabled),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .btn-danger:focus-visible { background:#941d29 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-toolbar .ql-stroke:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow .ql-stroke:not(.ql-color-label) { stroke:var(--ui-text-secondary); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-toolbar .ql-fill:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow .ql-fill:not(.ql-color-label) { fill:var(--ui-text-secondary); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-picker,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-tooltip { color:var(--ui-text); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-picker-options,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-tooltip { background:var(--ui-night-raised); border-color:var(--ui-night-control); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow button:hover .ql-stroke:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow button:focus-visible .ql-stroke:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow button.ql-active .ql-stroke:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke:not(.ql-color-label) { stroke:var(--ui-night-link); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow button:hover .ql-fill:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow button:focus-visible .ql-fill:not(.ql-color-label),
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-toolbar.ql-snow button.ql-active .ql-fill:not(.ql-color-label) { fill:var(--ui-night-link); }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-picker:not(.ql-color-picker) .ql-picker-item:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) .ql-snow .ql-picker:not(.ql-color-picker) .ql-picker-item.ql-selected { color:var(--ui-night-link); }
}

/* Derniers contrastes constatés dans les formulaires chargés. */
@media screen {
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-page h1 { color:var(--ui-text) !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .dec-error { color:#ffb7c2 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-alerte,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .tc-erreur,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .psu-alerte { background:#462731 !important; color:#ffb7c2 !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .psu-secondaire,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .psu-actualiser { background:var(--ui-night-field) !important; color:var(--ui-night-link) !important; border-color:var(--ui-night-control) !important; }
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .psu-secondaire:hover,
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .psu-actualiser:hover { background:var(--ui-night-raised) !important; }
}

@media screen {
html[data-ui-theme="night"]:not([data-ui-screen="login"]) #app .rich-editor-panel { background:var(--ui-night-panel) !important; border-color:var(--ui-night-line) !important; color:var(--ui-text) !important; }
}
