/* AvinyaSQ branding for SFTPGo web admin / web client.
   Colours: logo navy #140B68, website accent #0284c7. */
:root, [data-bs-theme=light], [data-bs-theme=dark] {
  --bs-primary: #140B68;
  --bs-primary-rgb: 20, 11, 104;
  --bs-primary-active: #0284c7;
  --bs-primary-light: #e8eefb;
  --bs-primary-inverse: #ffffff;
  --bs-link-color: #0284c7;
  --bs-link-hover-color: #140B68;
  --bs-text-primary: #140B68;
  --bs-component-active-bg: #140B68;
}
[data-bs-theme=dark] { --bs-primary: #38bdf8; --bs-primary-rgb: 56, 189, 248; --bs-primary-active: #0284c7; --bs-text-primary: #38bdf8; --bs-primary-inverse: #071840; }
/* Wordmark has a transparent background with navy/black lettering: give it a light plate in dark mode. */
[data-bs-theme=dark] img[src*="avinyasq-logo"] { background: #fff; padding: 4px 8px; border-radius: 6px; }
/* Keep the wide wordmark's aspect ratio everywhere (SFTPGo uses fixed-height utility classes). */
img[src*="avinyasq-logo"] { height: auto !important; width: auto; max-width: 100%; max-height: 32px; object-fit: contain; }
/* In-app sidebar: wordmark replaces the short-name text beside it. */
.app-sidebar-logo img[src*="avinyasq-logo"] { max-width: 190px; max-height: 36px; background: #fff; padding: 3px 6px; border-radius: 6px; }
.app-sidebar-logo img[src*="avinyasq-logo"] + .text-sidebar { display: none; }
/* Login pages: logo across the full card width, drop the duplicate text title next to it. */
.row > .col-5:has(> img[src*="avinyasq-logo"]) { flex: 0 0 100%; max-width: 100%; text-align: center; }
.row > .col-5:has(> img[src*="avinyasq-logo"]) + .col-7 { display: none; }
.col-5 > img[src*="avinyasq-logo"] { width: 320px; max-height: none; }
