/* V20 - Logo follows the existing data-serhat-theme preference. */
html img.sh-theme-logo { box-sizing:border-box; max-width:100%; height:auto; object-fit:contain; }
/* Use separate image elements so mode switches require no new JavaScript. */
html img.sh-theme-logo--light { display:block!important; }
html img.sh-theme-logo--dark { display:none!important; }
@media screen {
  html[data-serhat-theme="dark"] img.sh-theme-logo--light { display:none!important; }
  html[data-serhat-theme="dark"] img.sh-theme-logo--dark { display:block!important; }
  html #header .navbar-brand img.sh-theme-logo,
  html #footer.sh-footer img.sh-theme-logo,
  html .invoice-container img.sh-theme-logo {
    background:transparent!important; padding:0!important; border:0!important;
    border-radius:0!important; box-shadow:none!important;
  }
  html #header .navbar-brand { min-width:0; }
  html #header .navbar-brand img.sh-theme-logo { width:auto; height:auto; object-fit:contain; object-position:left center; }
  html #footer.sh-footer .sh-footer-brandmark { max-width:100%; }
  html #footer.sh-footer img.sh-theme-logo { width:150px; max-width:100%; height:auto; }
  html .invoice-container img.sh-document-logo { width:230px; max-width:100%; max-height:64px; object-fit:contain; object-position:left center; }
  @media (max-width:767px) {
    html #header .navbar-brand img.sh-theme-logo { max-width:100%!important; max-height:39px; }
    html .invoice-container img.sh-document-logo { margin-inline:auto; object-position:center; }
  }
  @media (max-width:380px) {
    html #header .navbar-brand img.sh-theme-logo { max-height:34px; }
  }
}
/* Dark-mode artwork must never be used on a white printed document. */
@media print {
  html img.sh-theme-logo--light { display:block!important; }
  html img.sh-theme-logo--dark { display:none!important; }
  html img.sh-document-logo { width:230px; max-width:100%; height:auto; max-height:64px; object-fit:contain; }
}
