/* PCB for Vikunja 2.7.1 (frontend/src/styles/custom-properties/colors.scss). Palette: docs/Branding.md. */
:root {
  --primary-h: 208deg !important;
  --primary-s: 60% !important;
  --primary-l: 34% !important;
}
/* Sign-in mask like the one of Paperless (operator decision 23.10.2026): the split layout becomes one centred column on the PCB
   polygons (light or dark like the app: "dark" is a class on <html>), large logo with the product named below it ("by Vikunja",
   added by brand.js). Structure: components/misc/NoAuthWrapper.vue of v2.7.1; the class names are stable, the data-v-* attributes
   of the scoped styles change per build and are not used. */
.no-auth-wrapper {
  background: #f5f7fa url('/pcb/bg-light.svg') center / cover no-repeat fixed !important;
}
:root.dark .no-auth-wrapper {
  background: #10161e url('/pcb/bg-dark.svg') center / cover no-repeat fixed !important;
}
.no-auth-wrapper {
  justify-content: center;
}
.no-auth-wrapper .pcb-panel {
  box-sizing: border-box;
  inline-size: min(25rem, 92vw);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.88); /* same box as Docs (brand-docs.css), operator decision 24.10.2026: everything like Docs */
  border: 1px solid rgba(90, 102, 118, 0.25);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
:root.dark .no-auth-wrapper .pcb-panel {
  background: rgba(16, 22, 30, 0.88);
  border-color: rgba(154, 167, 182, 0.2);
}
.no-auth-wrapper .pcb-panel > .logo {
  inline-size: 14rem;
  block-size: auto;
  /* Logo.vue (scoped) sets max-inline-size 168px and max-block-size 48px on class "logo"; the root div of the component carries that class too, so the
     container stayed 48 px high and the 97 px logo ran into the byline and the title (screenshot 24.10.2026, issue #340) */
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
}
/* components/home/Logo.vue: <div class="logo"><img class="logo"> with max-inline-size 168px and max-block-size 48px */
.no-auth-wrapper .pcb-panel .logo img.logo,
.no-auth-wrapper .pcb-panel img.logo {
  inline-size: 14rem;
  max-inline-size: none;
  max-block-size: none;
  block-size: auto;
}
.no-auth-wrapper .pcb-panel .noauth-container {
  display: block;
  inline-size: 100%;
  max-inline-size: none;
  min-block-size: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.no-auth-wrapper .pcb-panel .noauth-container .image {
  display: none !important;
}
.no-auth-wrapper .pcb-panel .noauth-container .content {
  inline-size: 100%;
  padding: 0;
}
.no-auth-wrapper .noauth-container .title {
  font-size: 1rem;
  font-weight: 400;
}
.pcb-byline {
  inline-size: 14rem;
  margin: 0.15rem auto 1.25rem;
  text-align: right;
  font: 600 0.6rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500, #6f7c8c);
}
/* The product under the hood stays named and the sources are linked (brand.js adds <p class="pcb-powered">; operator decision 23.10.2026). */
.no-auth-wrapper .pcb-powered {
  position: fixed;
  inset-inline: 0;
  bottom: 1rem;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--grey-500, #6f7c8c);
}
.no-auth-wrapper .pcb-powered a {
  color: inherit;
  text-decoration: underline;
}

/* After sign-in: the polygon behind the content, 50 % covered by the PCB base colour so lists stay readable. The body paints
   var(--site-background) (styles/theme/theme.scss); header and sidebar paint their own background and get the translucent colour too. */
body {
  --pcb-wash: 245, 247, 250;
  background: linear-gradient(rgba(var(--pcb-wash), 0.5), rgba(var(--pcb-wash), 0.5)), url('/pcb/bg-light.svg') center / cover no-repeat fixed !important;
}
:root.dark body {
  --pcb-wash: 16, 22, 30;
  background: linear-gradient(rgba(var(--pcb-wash), 0.5), rgba(var(--pcb-wash), 0.5)), url('/pcb/bg-dark.svg') center / cover no-repeat fixed !important;
}
.menu-container {
  background: rgba(var(--pcb-wash, 245, 247, 250), 0.5) !important;
}
:root.dark .menu-container {
  background: rgba(16, 22, 30, 0.5) !important;
}
/* Same surfaces as Docs and Fotos: page #10161e and cards #18212c in dark (Vikunja has them the other way round), page #f5f7fa in light.
   Variables from styles/custom-properties/colors.scss. */
:root {
  --site-background: #f5f7fa !important;
}
:root.dark {
  --site-background: #10161e !important;
  --white: #18212c !important;
}
/* Header in PCB blue like the one of Docs (light 34 %, dark 28 % lightness of the PCB hue); white logo from brand.js. */
header.navbar {
  background: #235a8c !important;
  color: #fff;
}
:root.dark header.navbar {
  background: #1d4a72 !important;
}
header.navbar .project-title,
header.navbar .project-title-button,
header.navbar .menu-button,
header.navbar .navbar-end .button,
header.navbar .navbar-end a {
  color: #fff !important;
}

/* Button that starts the sign-in through PCB Auth (marked by brand.js): same look in all services (grey, white text). */
.pcb-oidc {
  background: #6f7c8c !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0.375rem !important;
  text-transform: none !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

/* Sign-in panel like the others: content centred, the field for the address of the installation (ApiConfig.vue, only needed for the
   desktop app) is dropped. */
.no-auth-wrapper .pcb-panel .noauth-container .content,
.no-auth-wrapper .pcb-panel .noauth-container .title {
  text-align: center;
}
.no-auth-wrapper .pcb-panel .api-config {
  display: none !important;
}

/* Typeface of Fotos (Google Sans, applied to every element except code: Vikunja sets its own heading font Quicksand in many components (frontend/src, $vikunja-font), measured on 24.10.2026; SIL OFL 1.1, Latin subset served from /pcb/, see OFL-GoogleSans.txt). */
@font-face {
  font-family: 'PCB Sans';
  src: url('/pcb/GoogleSans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
body,
body *:not(code):not(pre):not(kbd):not(samp) {
  font-family: 'PCB Sans', 'Open Sans', Helvetica, Arial, sans-serif !important;
}

/* Search in the header as a pill like Fotos and Docs (operator request 24.10.2026). Vikunja has only a search symbol there
   (components/misc/OpenQuickActions.vue, class trigger-button, a direct child of .navbar-end; the notification bell has the same class one level deeper and must not match, measured 24.10.2026: two pills); it opens the quick search (Ctrl+K). The text is added as a pseudo element. */
header.navbar .navbar-end > .trigger-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  inline-size: min(26rem, 34vw);
  block-size: 2.9rem;
  align-self: center; /* the bar is a flex row: without this the pill sticks to the top edge (screenshot 24.10.2026) */
  padding-inline: 1.2rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.28) !important;
  color: rgb(255 255 255 / 0.85) !important;
  justify-content: flex-start;
  margin-inline-end: 0.75rem;
}
header.navbar .navbar-end > .trigger-button:hover,
header.navbar .navbar-end > .trigger-button:focus-visible {
  background: rgb(0 0 0 / 0.4) !important;
}
header.navbar .navbar-end > .trigger-button::after {
  content: "Suche in Projects …";
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  header.navbar .navbar-end > .trigger-button {
    inline-size: 2.9rem;
    padding-inline: 0;
    justify-content: center;
  }
  header.navbar .navbar-end > .trigger-button::after {
    display: none;
  }
}

/* Cards and list boxes in the content area let the polygon shine through (operator feedback 24.10.2026); Vikunja paints cards with var(--white)
   (ContentAuth.vue ".card { background: var(--white) }"). Only the background colour changes, inputs and dropdowns stay opaque. */
.app-content .card,
.app-content .box,
.app-content .show-tasks .tasks {
  background-color: rgb(255 255 255 / 0.62) !important;
}
:root.dark .app-content .card,
:root.dark .app-content .box,
:root.dark .app-content .show-tasks .tasks {
  background-color: rgb(24 33 44 / 0.55) !important;
}
