/* Partner portal (owner request 2026-12-05): its own frame - logo, "Partnerbereich", the partner's name, sign out and
   four tabs - and the sign-in pages. The content cards come from partner-area.css, the form fields from auth.css. */
.pp-page { display: flex; flex-direction: column; min-width: 320px; min-height: 100vh; min-height: 100dvh; background: #f4f8f6; }

/* The operator's preview: one calm line above everything, never mistaken for the partner's own view. */
.pp-preview { border-bottom: 1px solid #edd28e; background: #fff8e6; color: #5e4510; font-size: 13.5px; font-weight: 650; line-height: 1.5; }
.pp-preview-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-block: 9px; }
.pp-preview a { color: #5e4510; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

.pp-header { position: relative; z-index: 40; border-bottom: 1px solid #dbe6e1; background: rgba(255, 255, 255, .97); }
.pp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 66px; }
.pp-brand { gap: 10px; min-width: 0; }
.pp-brand-area { padding: 3px 10px; border: 1px solid #cfe4db; border-radius: 999px; background: #eef8f4; color: #0b6b55; font-size: 12px; font-weight: 800; letter-spacing: 0; white-space: nowrap; }
.pp-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px 12px; min-width: 0; }
.pp-who { overflow: hidden; max-width: 260px; color: #34504a; font-size: 13.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pp-logout { margin: 0; }
.pp-logout button { min-height: 38px; padding: 0 14px; border: 1px solid #cfdcd6; border-radius: 10px; background: #fff; color: #0e3b30; font-size: 13.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.pp-logout button:hover { background: #f3faf7; }

.pp-tabs { display: flex; gap: 4px; padding-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs a { position: relative; display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; color: #48625b; font-size: 14.5px; font-weight: 750; white-space: nowrap; }
.pp-tabs a:hover { color: #0e3b30; }
.pp-tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.pp-tabs a[aria-current="page"] { color: #0b5f4d; }
.pp-tabs a[aria-current="page"]::after { background: #0f8f7b; }
.pp-tabs svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.pp-tabs a:focus-visible { outline-offset: -3px; border-radius: 10px; }

.pp-main { display: block; flex: 1 0 auto; }
.pp-main:focus { outline: none; }
.pp-wrap { padding-block: 26px 52px; }
.pp-flash { padding: 12px 14px; border-radius: 12px; background: #e7f8f4; color: #086b5b; font-size: 14px; font-weight: 700; }

/* Overview: Qerio with his paper plane beside the greeting, the conditions on the right. */
.pp-hello { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; }
.pp-hello-art { width: 132px; }
.pp-hello-art svg { display: block; width: 100%; height: auto; }
.pp-hello .pa-terms-chips { align-self: end; }
.pp-due-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0; }
.pp-due-line a { color: #0b6e5c; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pp-section { display: grid; gap: 12px; }
.pp-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.pp-section-head h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.pa-kpis .is-earned { border-color: #bfe0d2; background: #f3fbf7; }
.pa-kpis .is-earned strong { color: #0b6b45; }

/* Billing: where the money goes. */
.pp-payout-to { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.pp-payout-to p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: #44605a; font-size: 14px; }
.pp-payout-to strong { color: #10352b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; }
.pp-payout-to small { color: #6b7f7b; font-size: 12.5px; }
.pp-missing { color: #8a5a00 !important; font-weight: 750; }
.pp-back { display: inline-flex; gap: 6px; margin-bottom: 6px; font-size: 14px; }
.pp-button { min-height: 46px; padding: 0 20px; border-radius: 11px; background: linear-gradient(135deg, #0f8f7b, #0a7466); }
.pp-button:hover { background: linear-gradient(135deg, #0a7c6b, #075f54); }

/* Settings: four calm cards; the forms use the fields of the sign-in pages. */
.pp-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pp-settings-grid > * { min-width: 0; }
.pp-form { margin: 0; }
.pp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pp-form > fieldset { display: grid; gap: 14px; }
.pp-form > fieldset[disabled] { opacity: .78; }
/* Two fields side by side only where the card is wide enough for both (no cut names, addresses or IBANs). */
.pp-form-card { container-type: inline-size; }
.pp-field-row { display: grid; grid-template-columns: 1fr; align-items: start; gap: 14px; }
@container (min-width: 620px) {
  .pp-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-field-row-iban { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.pp-field-row > * { min-width: 0; }
.pp-form .auth-field label small { color: #6b7f7b; font-weight: 650; }
.auth-input.pp-input { min-height: 46px; padding: 0 14px; }
.auth-input.pp-textarea { min-height: 92px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
select.auth-input.pp-input { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2366788b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center / 12px 8px; appearance: none; }
.pp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.pp-choice { display: grid; gap: 8px; }
.pp-choice legend { margin-bottom: 7px; padding: 0; color: #243b50; font-size: .74rem; font-weight: 850; }
.pp-choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-choice-row legend { grid-column: 1 / -1; }
.pp-radio { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid #d5e1dc; border-radius: 12px; background: #fff; cursor: pointer; }
.pp-radio:has(input:checked) { border-color: #0f8f7b; background: #f1faf6; }
.pp-radio input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #0f8f7b; }
.pp-radio span { display: grid; gap: 2px; min-width: 0; }
.pp-radio strong { color: #10352b; font-size: 14px; line-height: 1.35; }
.pp-radio small { color: #5f7470; font-size: 12.5px; line-height: 1.45; }
.pp-abroad { margin: 0; padding: 11px 12px; border-radius: 12px; background: #f1f7fb; color: #234a66; font-size: 13.5px; line-height: 1.5; }
.pp-current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding: 11px 12px; border-radius: 12px; background: #f7faf9; color: #44605a; font-size: 13.5px; }
.pp-current strong { color: #10352b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.pp-current small { color: #6b7f7b; font-size: 12.5px; }
.pp-payout-fields { display: grid; gap: 14px; }
.pp-payout-fields[hidden], [data-partner-tax-de][hidden], .pp-abroad[hidden] { display: none; }

/* Sign-in pages: one centred card, Qerio above it. */
.pp-is-signin .pp-main { display: grid; align-content: start; }
.pp-signin { display: grid; justify-items: center; gap: 0; width: min(100% - 32px, 520px); margin: 26px auto 48px; }
.pp-signin-art { width: 150px; margin-bottom: -6px; }
.pp-signin-art svg { display: block; width: 100%; height: auto; }
.pp-signin-card { width: 100%; }
.pp-signin-card .auth-inline-link { font-size: .74rem; line-height: 1.5; text-align: right; }
.pp-signin-notes { display: grid; gap: 6px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #e2e8ee; color: #617286; font-size: .74rem; line-height: 1.55; text-align: center; }
.pp-signin-notes p { margin: 0; }
.pp-signin-notes a { color: #087663; font-weight: 850; }
/* Where to sign in from now on (2026-12-05): a quiet tip, and the text of a page for an invitation that ended. */
.pp-signin-bookmark { margin-top: 4px !important; color: #4e6177; }
.pp-signin-text { margin: 2px 0 0; color: #34495e; font-size: .86rem; line-height: 1.6; }
.pp-signin-text a { color: #087663; font-weight: 850; overflow-wrap: anywhere; }
.pp-login-name { display: grid; gap: 2px; margin: -8px 0 18px; padding: 11px 14px; border-radius: 11px; background: #f3f7fa; color: #56687a; font-size: .74rem; text-align: center; }
.pp-login-name strong { color: #102a43; font-size: .9rem; overflow-wrap: anywhere; }
.pp-reset-name { margin: 0; }
.pp-terms-read { border: 1px solid #dce5ec; border-radius: 11px; background: #fbfcfd; }
.pp-terms-read summary { padding: 11px 14px; color: #087663; font-size: .76rem; font-weight: 850; cursor: pointer; }
.pp-terms-text { max-height: 340px; overflow-y: auto; padding: 4px 16px 14px; border-top: 1px solid #e2e8ee; color: #34495e; font-size: .74rem; line-height: 1.6; }
.pp-terms-text h2 { margin: 16px 0 6px; font-size: .95rem; letter-spacing: -.01em; }
.pp-terms-text h3 { margin: 12px 0 4px; font-size: .82rem; letter-spacing: 0; }
.pp-terms-text p, .pp-terms-text li { margin: 0 0 8px; }
.pp-terms-text ul, .pp-terms-text ol { margin: 0 0 8px; padding-left: 20px; }
.pp-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: #34495e; font-size: .76rem; line-height: 1.5; }
.pp-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #0f9f88; }

.pp-footer .wrap { flex-wrap: wrap; padding-block: 10px; }
.pp-footer a { color: inherit; }
.pp-footer .cookie-settings-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

@media (max-width: 980px) {
  .pp-settings-grid { grid-template-columns: 1fr; }
  .pp-hello { grid-template-columns: auto minmax(0, 1fr); }
  .pp-hello .pa-terms-chips { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pp-header-inner { flex-wrap: wrap; padding-block: 10px; min-height: 0; }
  .pp-who { max-width: 150px; }
  /* Four tabs that always fit: icon over a short label. */
  .pp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .pp-tabs a { flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; font-size: 12px; white-space: normal; text-align: center; }
  .pp-tabs a span { overflow-wrap: anywhere; hyphens: auto; line-height: 1.2; }
  .pp-tabs a::after { left: 14%; right: 14%; }
  .pp-wrap { padding-block: 18px 40px; }
  .pp-hello { grid-template-columns: 1fr; }
  .pp-hello-art { width: 104px; }
  .pp-choice-row { grid-template-columns: 1fr; }
  .pp-signin-art { width: 124px; }
}
/* Sign-in pages on phones: logo, "Partnerbereich" and the language in one row. */
@media (max-width: 440px) {
  .pp-is-signin .pp-brand .brand-word { display: none; }
  .pp-is-signin .pp-header-inner { flex-wrap: nowrap; }
}
@media (max-width: 380px) {
  .pp-brand .brand-word { display: none; }
  .pp-who { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-tabs a, .pp-logout button { transition: none; }
}
