/* RCC Files: the RCC dark scheme (operator decision 2026-11-02). Loaded after
   rcc.css through branding.web_client.extra_css only while the RCC site switch
   rcc_web_color_scheme is "system", instead of rcc-light.css. SFTPGo puts
   [data-bs-theme="dark"] on <html> when the browser prefers dark; there the
   vendor dark theme keeps its surfaces and these rules give the RCC
   tokens, brand accents and the skin's few fixed colours their dark values,
   the same palette as styles/rcc-brand-dark.css. A light browser keeps the
   light look unchanged. */
[data-bs-theme="dark"] {
  color-scheme: dark;
  --navy: #8fb4ec;
  --navy-2: #b3cdf4;
  --cyan: #8c9eff;
  --cyan-light: #1d2c42;
  --cyan-strong: #a8b8ff;
  --ink: #e6e8eb;
  --muted: #a9b1bb;
  --line: #30353c;
  --paper: #1a1d21;
  --background: #121417;
  --bs-primary: #8fb4ec;
  --bs-primary-rgb: 143, 180, 236;
  --bs-link-color: #8fb4ec;
  --bs-link-color-rgb: 143, 180, 236;
  --bs-link-hover-color: #b3cdf4;
  --bs-link-hover-color-rgb: 179, 205, 244;
  --bs-body-bg: #121417;
  --bs-body-bg-rgb: 18, 20, 23;
  --bs-body-color: #e6e8eb;
  --bs-body-color-rgb: 230, 232, 235;
  --bs-emphasis-color: #e6e8eb;
  --bs-heading-color: #e6e8eb;
  --bs-border-color: #30353c;
  --bs-app-blank-bg-color: #121417;
  --bs-app-bg-color: #1a1d21;
  --bs-app-header-base-bg-color: #1a1d21;
  --rcc-navy: #8fb4ec;
  --rcc-navy-2: #b3cdf4;
  --rcc-cyan: #8c9eff;
  --rcc-cyan-light: #1d2c42;
  --rcc-cyan-strong: #a8b8ff;
  --rcc-ink: #e6e8eb;
  --rcc-muted: #a9b1bb;
  --rcc-line: #30353c;
  --rcc-paper: #1a1d21;
  --rcc-background: #121417;
  --rcc-surface-sunken: #23272d;
  --rcc-input-border: #7d8590;
  --rcc-focus-ring: rgba(143, 180, 236, .35);
  --rcc-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  --rcc-shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  /* RCC Admin's dark top bar: the dark paper, not indigo. */
  --rcc-topbar-surface: #1a1d21;
  --rcc-border-topbar: rgba(255, 255, 255, .12);
}

/* The overlay v9 shell on the dark top bar and rail (as styles/rcc-brand-dark.css
   does for RCC Admin): the wordmark in the light accent, session text in ink. */
[data-bs-theme="dark"] .rcc-sftpgo-brand-copy strong { color: var(--rcc-navy); }
[data-bs-theme="dark"] .rcc-sftpgo-brand-copy span { border-left-color: var(--rcc-line); color: var(--rcc-muted); }
[data-bs-theme="dark"] .rcc-sftpgo-session { color: var(--rcc-muted); }
[data-bs-theme="dark"] .rcc-sftpgo-session strong { color: var(--rcc-ink); }
[data-bs-theme="dark"] .rcc-sftpgo-session:hover,
[data-bs-theme="dark"] .rcc-sftpgo-session:focus-visible { background: var(--rcc-surface-sunken); color: var(--rcc-ink); }
[data-bs-theme="dark"] #kt_app_sidebar_mobile_toggle i { color: var(--rcc-ink) !important; }

/* The hospital logo is dark artwork for white backgrounds. */
[data-bs-theme="dark"] #sign_in_form img[src*="Logo"] {
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
}

/* Text on the light-blue accent is the dark surface, not white. */
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-primary,
[data-bs-theme="dark"] .btn.btn-primary:hover,
[data-bs-theme="dark"] .btn.btn-primary:focus,
[data-bs-theme="dark"] .btn.btn-primary:active,
[data-bs-theme="dark"] .btn-outline.btn-active-color-primary:hover,
[data-bs-theme="dark"] .bg-state-light.btn-outline:hover {
  color: var(--paper) !important;
}
[data-bs-theme="dark"] #sign_in_form a[href*="/web/oidc"] span[data-i18n="login.signin_openid"]::after {
  color: var(--paper);
}

[data-bs-theme="dark"] .badge.bg-success,
[data-bs-theme="dark"] .badge.text-bg-success { background-color: #183323 !important; color: #a8dab5 !important; }
[data-bs-theme="dark"] .badge.bg-danger,
[data-bs-theme="dark"] .badge.text-bg-danger { background-color: #3b1d1c !important; color: #f6aea9 !important; }
[data-bs-theme="dark"] .badge.bg-warning,
[data-bs-theme="dark"] .badge.text-bg-warning { background-color: #352c12 !important; color: #f3d77a !important; }
[data-bs-theme="dark"] .alert-success { background-color: #183323; border-color: #3d6b4a; color: #a8dab5; }
[data-bs-theme="dark"] .alert-danger { background-color: #3b1d1c; border-color: #7a3b38; color: #f6aea9; }
[data-bs-theme="dark"] .alert-warning { background-color: #352c12; border-color: #6b5a22; color: #f3d77a; }
