/* Web Forms additions. css/styles.css is the original theme and is not edited. */

/* A longer business name than the original must not widen the sidebar. */
.brand > div { min-width: 0; }
.brand-name { font-size: 18px; overflow-wrap: anywhere; }
.sidebar { overflow-x: hidden; }

/* Six headline figures in a row: smaller digits on laptop widths so amounts are not cut off. */
@media (min-width: 1281px) and (max-width: 1599px) {
  .kpi { padding-left: 12px; padding-right: 10px; }
  .kpi-value { font-size: 20px; }
}

/* Uploaded logos come in any shape. No frame around them: the picture keeps its own shape and colours. */
.logo-login, .logo-side { width: auto; height: auto; padding: 0; background: transparent; box-shadow: none; object-fit: contain; }
.logo-login { max-width: 176px; max-height: 110px; border-radius: 12px; }
.logo-side { max-width: 108px; max-height: 64px; border-radius: 8px; }
.paper-logo { width: auto; max-width: 190px; max-height: 100px; object-fit: contain; object-position: left center; }
/* Only a see-through logo with dark artwork gets a light backing, or it would vanish on the dark theme (js/site.js). */
.logo.needs-backing, .brand-preview-logo img.needs-backing { background: #fff; padding: 6px 8px; }

/* Settings: logo and favicon upload. */
.brand-upload + .brand-upload { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.brand-preview { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; margin: 10px 0 6px; padding: 10px; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 12px; }
.brand-preview-logo img { display: block; width: auto; height: auto; max-width: 190px; max-height: 80px; object-fit: contain; border-radius: 8px; }
.brand-preview-favicon img { display: block; width: 48px; height: 48px; object-fit: contain; }

/* Retailer / wholesaler switch and tags. */
.segmented.type-switch { align-self: flex-start; margin: 0 0 12px; }
.field .segmented.type-switch { margin: 0; }
.segmented.type-filter { margin-top: 0; }
.mini-tag.type-wholesale { color: #fde68a; border-color: rgba(251, 191, 36, .35); }

/* Developer credit (Semexsoft): text on the sign-in page, logo at the foot of invoices. */
.developer { display: flex; align-items: center; justify-content: center; gap: 10px; }
.developer span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.developer img { display: block; height: auto; background: #fff; }
.developer-login { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--muted); }
.developer-login .developer-name { font-family: 'Sonsie One', cursive; font-weight: 400; font-size: 22px; line-height: 1.4; color: #ffd400; }
.developer-paper { margin-top: 14px; padding-top: 8px; border-top: 1px solid #e5e7eb; color: #6b7280; break-inside: avoid; }
.developer-paper img { width: 84px; }
