/* ==========================================================================
   2026 redesign — manager registration form (com_jmanager, layout "form").
   Ported from united_design/assets/css/manager-registration.css, scoped
   under `.ui26`. Loaded by components/com_jmanager/views/jmanager/tmpl/form.php
   (step 1), form2.php (step 2) and update.php (Stammdaten bearbeiten).
   ========================================================================== */


/* --------------------------------- hero ---------------------------------- */
.ui26 .mr-hero {
  position: relative;
  width: 100%;
  background: var(--ui-bg-lighter);
  padding: 68px 20px 54px;
}

.ui26 .mr-hero__inner {
  max-width: 1220px;
  margin: 0 auto;
  text-align: center;
}

.ui26 .mr-hero__title {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ui-ink);
}

/* ------------------------------- callouts --------------------------------- */
.ui26 .mr-intro {
  background: var(--ui-white);
  padding: 40px 20px 0;
}

.ui26 .mr-guide-callout {
  max-width: 1220px;
  margin: 0 auto 20px;
  padding: 22px 28px;
  background: #FFF7ED;
  border: 1px solid #F3D9AE;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ui26 .mr-guide-callout__icon { flex: 0 0 auto; }

.ui26 .mr-guide-callout__text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ui-near-black);
}

.ui26 .mr-guide-callout__text a {
  font-weight: 700;
  color: var(--ui-red);
}

.ui26 .mr-packages-callout {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #FAFAFB;
  border: 1px solid var(--ui-divider-light);
  border-left: 4px solid var(--ui-red);
  border-radius: 6px;
}

.ui26 .mr-packages-callout__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ui-body-text-strong);
}

.ui26 .mr-packages-callout__list {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ui26 .mr-packages-callout__list li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ui-body-text-strong);
}

.ui26 .mr-packages-callout__list strong {
  color: var(--ui-near-black);
}

.ui26 .mr-packages-callout__more,
.ui26 .mr-packages-callout__recommend {
  margin: 22px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ui-body-text-strong);
}

.ui26 .mr-packages-callout__recommend {
  margin-top: 10px;
}

.ui26 .mr-packages-callout__recommend strong {
  color: var(--ui-near-black);
}

/* ---------------------------------- form ---------------------------------- */
.ui26 .mr-form-section {
  background: var(--ui-white);
  padding: 40px 20px 90px;
}

.ui26 .mr-form {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Registration steps 1 and 2 (intro boxes above the form): the same 20px between all boxes,
   i.e. guide box, package box, package notice and the form cards. */
.ui26 .mr-intro + .mr-form-section { padding-top: 20px; }
.ui26 .mr-intro + .mr-form-section .mr-form { gap: 20px; }

.ui26 .mr-fieldset {
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 34px 36px 34px;
  margin: 0;
}

.ui26 .mr-fieldset__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ui-red);
}

.ui26 .mr-fieldset__legend svg { flex: 0 0 auto; }

.ui26 .mr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ui-body-text-strong);
  margin-bottom: 22px;
  cursor: pointer;
}

.ui26 .mr-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
}

.ui26 .mr-checkbox-label--align-top {
  align-items: flex-start;
}

.ui26 .mr-checkbox-label--align-top input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
}

.ui26 .mr-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px,100%),1fr));
  gap: 22px 28px;
}

.ui26 .mr-field-grid--single {
  grid-template-columns: 1fr;
  gap: 22px;
}

.ui26 .mr-field-grid__span {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px,100%),1fr));
  gap: 22px 28px;
}

.ui26 .mr-field-grid__triple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px,100%),1fr));
  gap: 12px;
}

.ui26 .mr-field {
  display: block;
}

.ui26 .mr-field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ui-muted);
  margin-bottom: 8px;
}

.ui26 .mr-field__input,
.ui26 .mr-field__select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ui-border-input);
  border-radius: 4px;
  font-size: 15px;
  color: var(--ui-near-black);
  background: var(--ui-white);
}

.ui26 .mr-field__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ui-border-input);
  border-radius: 4px;
  font-size: 15px;
  color: var(--ui-near-black);
  resize: vertical;
}

.ui26 .mr-field__hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ui-muted);
}

.ui26 .mr-required-note {
  margin: 0;
  font-size: 13px;
  color: var(--ui-muted);
}

.ui26 .mr-submit-btn {
  align-self: flex-start;
  padding: 15px 40px;
  background: var(--ui-red);
  border: none;
  border-radius: 3px;
  color: var(--ui-white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ui26 .mr-submit-btn:hover { background: var(--ui-red-dark); }

@media (max-width: 640px) {
  .ui26 .mr-fieldset { padding: 28px 20px 28px; }
  .ui26 .mr-packages-callout { padding: 26px 22px; }
  .ui26 .mr-guide-callout { padding: 18px 20px; }
}

/* ------------------------ Joomla integration extras ------------------------ */
/* Legacy rules style every text input/select with !important
   (bootstrap/css/style.css, com_jmanager/assets/template.css). */
.ui26 .mr-field__input,
.ui26 .mr-field__select {
  height: 44px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--ui-border-input) !important;
  border-radius: 4px;
  box-shadow: none;
  font-family: var(--ui-font) !important;
  letter-spacing: normal !important;
}
.ui26 .mr-field__textarea {
  width: 100% !important;
  height: auto !important;
  border: 1px solid var(--ui-border-input) !important;
  font-family: var(--ui-font) !important;
  letter-spacing: normal !important;
}
/* Persönliche Headline (#personal, max. 140 characters, registration step 1 and Stammdaten):
   a textarea, but mostly one line. Same height as the inputs with the text vertically centred
   (legacy rules set height 40px and padding 0 0 0 5px). It grows with a wrapped headline where
   the browser supports field-sizing; otherwise two lines on small screens. */
.ui26 #personal.mr-field__textarea {
  height: 44px !important;
  min-height: 44px;
  padding: 11px 12px !important;
  line-height: 20px !important;
  overflow-y: auto;
}
@supports (field-sizing: content) {
  .ui26 #personal.mr-field__textarea { field-sizing: content; height: auto !important; max-height: 132px; }
}
@media (max-width: 767px) {
  .ui26 #personal.mr-field__textarea { height: 64px !important; }
  @supports (field-sizing: content) {
    .ui26 #personal.mr-field__textarea { height: auto !important; }
  }
}
.ui26 .mr-field__input:focus,
.ui26 .mr-field__select:focus,
.ui26 .mr-field__textarea:focus {
  outline: none;
  border-color: var(--ui-red) !important;
  box-shadow: 0 0 0 3px rgba(227,6,19,0.12);
}

/* Joomla form validator marks invalid fields/labels. */
.ui26 .mr-field__input.invalid,
.ui26 .mr-field__select.invalid,
.ui26 .mr-field__textarea.invalid { border-color: #B30808 !important; }
.ui26 .mr-field__label.invalid,
.ui26 label.invalid { color: #B30808; }
.ui26 .mr-checkbox-label input.invalid { outline: 2px solid #B30808; }

/* Labels are Bootstrap 3 labels (bold, margin). */
.ui26 .mr-field,
.ui26 .mr-checkbox-label { font-weight: 400; max-width: none; }
.ui26 .mr-field__label { font-weight: 700; }

/* Info icon with the existing tooltip texts. */
.ui26 .mr-field__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--ui-bg-light);
  border: 1px solid var(--ui-border-strong);
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
  cursor: help;
}
.ui26 .mr-field__info:hover { color: var(--ui-red); border-color: var(--ui-red); }

/* Password: show/hide toggle and match indicator. */
.ui26 .mr-password { position: relative; }
.ui26 .mr-password .mr-field__input { padding-right: 42px; }
.ui26 .mr-password__toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ui-muted);
}
.ui26 .mr-password__toggle:hover { color: var(--ui-red); }
.ui26 #passMatch:not(:empty) { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ui-muted); }

/* Character counters of the jquery.maxlength plugin, styled as hints. */
.ui26 .maxlength-feedback {
  float: none;
  display: block;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ui-muted);
}

/* Intro module (position managerRegistration): the guide callout icon comes
   from CSS so the module content can stay plain HTML. */
.ui26 .mr-guide-callout::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6841C' stroke-width='1.8'%3E%3Cpath d='M12 3v13m0 0l-5-5m5 5l5-5'/%3E%3Cpath d='M4 19h16'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ui26 .mr-intro p { text-align: left; }
.ui26 .mr-packages-callout__list { list-style: none; }

/* Submit button: legacy `#manabsenden { padding: 10px !important }`. */
.ui26 #manabsenden.mr-submit-btn { padding: 15px 40px !important; width: auto !important; }

/* Wrapper of the intro modules (also the partner variants ACP/BFM/CBA). */
.ui26 .mr-intro__inner { max-width: 1220px; margin: 0 auto; }
.ui26 .mr-intro__inner > .moduletable { margin: 0; padding-bottom: 0 !important; } /* legacy: 20px padding */

/* ==========================================================================
   Step 2 (form2.php) and "Stammdaten bearbeiten" (update.php).
   No separate design exists: same building blocks as step 1.
   ========================================================================== */

/* Links like update.php#dailyrate: keep the field below the fixed header. */
.ui26 .mr-field__input,
.ui26 .mr-field__select,
.ui26 .mr-field__textarea { scroll-margin-top: calc(var(--ui-header-height) + 40px); }

/* Notice above the form (60-minute session hint). */
.ui26 .mr-notice {
  padding: 18px 24px;
  background: #FAFAFB;
  border: 1px solid var(--ui-divider-light);
  border-left: 4px solid var(--ui-red);
  border-radius: 6px;
}
.ui26 .mr-notice p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ui-body-text-strong);
}

/* File upload. */
.ui26 .mr-field__file {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px dashed var(--ui-border-strong);
  border-radius: 4px;
  background: var(--ui-bg-light);
  font-family: var(--ui-font);
  font-size: 14px;
  color: var(--ui-body-text);
  cursor: pointer;
}
.ui26 .mr-field__file::file-selector-button {
  margin-right: 14px;
  padding: 7px 16px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 3px;
  background: var(--ui-white);
  font-family: var(--ui-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-near-black);
  cursor: pointer;
}
.ui26 .mr-field__file:hover::file-selector-button { border-color: var(--ui-red); color: var(--ui-red); }

/* Category info icons: getSub() shows the one of the selected category. */
.ui26 .iconmain { display: none; }

/* Criteria tree (jquery.treeview). Legacy: .treeselection-edit 330px wide. */
.ui26 .treeselection-edit.mr-tree {
  width: 100%;
  max-width: 100%;
  height: 300px;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
  background: var(--ui-white);
  border: 1px solid var(--ui-border-input) !important;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-body-text-strong);
}
.ui26 .mr-tree:not(:has(.showdata))::before {
  content: attr(data-empty);
  display: block;
  padding-top: 4px;
  color: var(--ui-muted);
}
.ui26 .mr-tree .treeview li { padding-top: 2px; padding-bottom: 2px; }
.ui26 .mr-tree .treeview span { cursor: pointer; }
.ui26 .mr-tree .treeview span:hover { color: var(--ui-red) !important; }

/* Value, duration and "Hinzufügen" on one row. */
.ui26 .mr-field-grid__value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px auto;
  gap: 16px 20px;
  align-items: end;
}
@media (max-width: 640px) {
  .ui26 .mr-field-grid__value { grid-template-columns: 1fr; }
}

/* Duration: number input with -/+ buttons. Legacy .quantity-nav is
   display:block !important, the attribute rule lets jQuery .hide() win. */
.ui26 .mr-quantity {
  position: relative;
  display: flex;
  height: 44px;
}
.ui26 .mr-quantity input[type="number"] {
  flex: 1 1 auto;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--ui-border-input) !important;
  border-radius: 0 !important;
  background: var(--ui-white);
  font-family: var(--ui-font) !important;
  font-size: 15px;
  letter-spacing: normal !important;
  color: var(--ui-near-black) !important;
  text-align: center;
  -moz-appearance: textfield;
}
.ui26 .mr-quantity input[type="number"]::-webkit-inner-spin-button,
.ui26 .mr-quantity input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ui26 .mr-quantity input[type="number"]:focus { outline: none; border-color: var(--ui-red) !important; }
.ui26 .mr-quantity input[type="number"]:disabled { background: var(--ui-bg-light); color: #9AA0AC !important; }
.ui26 .mr-quantity .quantity-nav { display: contents !important; }
.ui26 .mr-quantity .quantity-nav[style*="none"] { display: none !important; }
.ui26 .mr-quantity .quantity-button {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 44px;
  transform: none;
  border: 1px solid var(--ui-border-input);
  background: var(--ui-bg-light);
  font-family: var(--ui-font) !important;
  font-size: 17px;
  line-height: 1;
  color: var(--ui-near-black);
}
.ui26 .mr-quantity .quantity-button.quantity-down { order: -1; border-right: 0; border-radius: 4px 0 0 4px; }
.ui26 .mr-quantity .quantity-button.quantity-up { border-left: 0; border-radius: 0 4px 4px 0; }
.ui26 .mr-quantity .quantity-button:hover { color: var(--ui-red); }
.ui26 .mr-quantity:has(.quantity-nav[style*="none"]) input[type="number"] { border-radius: 4px !important; }

/* Secondary buttons. */
.ui26 .mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--ui-near-black);
  border: 1px solid var(--ui-near-black);
  border-radius: 3px;
  color: var(--ui-white);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  white-space: nowrap;
  cursor: pointer;
}
.ui26 .mr-btn:hover { background: var(--ui-red); border-color: var(--ui-red); }
.ui26 .mr-btn--outline {
  background: var(--ui-white);
  border-color: var(--ui-border-strong);
  color: var(--ui-near-black);
}
.ui26 .mr-btn--outline:hover { background: var(--ui-white); border-color: var(--ui-red); color: var(--ui-red); }
.ui26 #hinzufugen.mr-btn { background: var(--ui-near-black) !important; }
.ui26 #hinzufugen.mr-btn:hover { background: var(--ui-red) !important; }

.ui26 .mr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Selected criteria (multi-select list). */
.ui26 .mr-field__list {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  margin: 0 !important;
  padding: 8px 6px !important;
  border: 1px solid var(--ui-border-input) !important;
  border-radius: 4px;
  font-family: var(--ui-font) !important;
  font-size: 14px;
  letter-spacing: normal !important;
  color: var(--ui-near-black) !important;
}
.ui26 .mr-field__list option { padding: 5px 8px; border-radius: 3px; }
.ui26 .mr-field__list:focus { outline: none; border-color: var(--ui-red) !important; }

/* Submit buttons: legacy `button[type="submit"] { width: 27% !important;
   padding: 7px 20px !important }` and `#absenden { padding: 10px !important }`. */
.ui26 button.mr-submit-btn { width: auto !important; padding: 15px 40px !important; font-size: 15px; }
.ui26 #absenden.mr-submit-btn { height: auto; background: var(--ui-red) !important; }
.ui26 #absenden.mr-submit-btn:hover { background: var(--ui-red-dark) !important; }

/* Dialogs: softskills hint and the contract confirmation of step 2. */
.ui26 .softskills-popup-content {
  width: min(520px, calc(100% - 32px));
  padding: 36px 40px;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  top: 50%;
}
.ui26 .softskills-popup-content h2,
.ui26 #confirmBoxEl h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ui-ink);
}
.ui26 .softskills-popup-content p,
.ui26 #confirmBoxEl p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ui-body-text-strong);
}
.ui26 .softskills-popup-content a,
.ui26 #confirmBoxEl a { color: var(--ui-red); }
.ui26 .mr-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--ui-muted);
  cursor: pointer;
}
.ui26 .mr-modal__close:hover { color: var(--ui-red); }

.ui26 #confirmBoxEl {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px 44px 36px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(28, 29, 33, 0.55), 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 100001;
}
/* Above the fixed header (z-index 1000). */
.ui26 .softskills-popup { z-index: 100001; }
.ui26 .mr-confirm__stamp {
  display: block;
  width: 72px;
  margin: 14px 0 0;
}
.ui26 .mr-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.ui26 .mr-modal__actions .mr-btn { height: auto; padding: 15px 32px; }

/* Company registration (views/jcompanies/tmpl/default.php). */
.ui26 .mr-hero__lead {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ui-body-text);
}
/* Legacy: a#contractbtn { background: #f70303 !important; width: 27% !important; ... } */
.ui26 a#contractbtn.mr-btn {
  float: none;
  width: auto !important;
  height: auto;
  padding: 14px 28px !important;
  border: 1px solid var(--ui-border-strong);
  background: var(--ui-white) !important;
  color: var(--ui-near-black) !important;
  font-size: 15px;
  text-decoration: none;
}
/* Legacy: #absenden3 { padding: 10px !important; width: 275px; background: url(...) } */
.ui26 #absenden3.mr-submit-btn {
  width: auto !important;
  height: auto;
  padding: 15px 40px !important;
  background: var(--ui-red) !important;
}
.ui26 #absenden3.mr-submit-btn:hover { background: var(--ui-red-dark) !important; }
.ui26 a#contractbtn.mr-btn:hover { border-color: var(--ui-red); color: var(--ui-red) !important; }

@media (max-width: 640px) {
  .ui26 .softskills-popup-content { padding: 30px 22px; }
  .ui26 #confirmBoxEl { padding: 32px 22px 26px; }
}

/* ==========================================================================
   Tender form ("Projekt ausschreiben", com_jmanager tmpl tender.php).
   Rendered in the legacy content area (page hero + breadcrumbs), 1300px.
   ========================================================================== */
.ui26.tender-2026 {
  max-width: var(--ui-container-max);
  margin: 0 auto;
  padding: 40px 0 90px;
  font-family: var(--ui-font);
}
.ui26.tender-2026 .mr-form { max-width: none; }

/* Title and criteria share the first section (no heading, as in the old form). */
.ui26 .tender-title { margin-bottom: 22px; }

/* Criteria row: category, autosuggest, duration, add button. Legacy sizes
   (.jmanagerlight select#category2 400px, ul.as-selections 530px,
   #duration2 130px) are replaced by the grid. */
.ui26 .tender-criteria {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 170px auto;
  gap: 14px 16px;
  align-items: center;
}
/* Duration with the Linien/Branchen info icon next to it. */
.ui26 .tender-criteria__dur {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ui26 .tender-criteria__dur #duration2 { flex: 1 1 auto; min-width: 0; }
.ui26 .tender-criteria__dur .mr-field__info { margin-left: 0; }
.ui26 .tender-criteria select#category2,
.ui26 .tender-criteria #duration2 {
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--ui-border-input) !important;
  border-radius: 4px !important;
  background: var(--ui-white);
  font-family: var(--ui-font) !important;
  font-size: 15px;
  letter-spacing: normal !important;
  color: var(--ui-near-black) !important;
}
.ui26 .tender-criteria__term { position: relative; }
.ui26 .tender-criteria ul.as-selections {
  float: none;
  width: 100% !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--ui-border-input) !important;
  border-radius: 4px !important;
  background: var(--ui-white);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
}
.ui26 .tender-criteria ul.as-selections li { float: none; margin: 0; padding: 0; background: none; }
.ui26 .tender-criteria ul.as-selections li.as-original { flex: 1 1 auto; }
.ui26 .tender-criteria ul.as-selections input.as-input {
  width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  font-family: var(--ui-font) !important;
  font-size: 15px;
  letter-spacing: normal !important;
  color: var(--ui-near-black) !important;
}
.ui26 .tender-criteria ul.as-selections li.as-selection-item {
  margin: 0 8px 0 0;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--ui-bg-light);
  font-size: 14px;
  color: var(--ui-near-black);
}
.ui26 .tender-criteria ul.as-selections li.as-selection-item:last-child { margin-left: 0; }
.ui26 .tender-criteria ul.as-selections.as-focus { border-color: var(--ui-red) !important; }
.ui26 .tender-criteria .as-results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
}
.ui26 .tender-criteria #duration2.grey,
.ui26 .tender-criteria #duration2:disabled { background: var(--ui-bg-light); color: #8A8F9B !important; }
.ui26 .tender-criteria__add .mr-btn { height: 44px; }
/* "Hinzufügen" is the main action of the criteria row: red (a legacy rule
   made it red on desktop only). */
.ui26 #shortaddto.mr-btn { background: var(--ui-red) !important; border-color: var(--ui-red) !important; color: var(--ui-white) !important; }
.ui26 #shortaddto.mr-btn:hover { background: var(--ui-red-dark) !important; border-color: var(--ui-red-dark) !important; }

.ui26 .tender-selection { margin-top: 18px; }
.ui26 .tender-selection .mr-field__list { height: 180px !important; }
.ui26.tender-2026 .mr-actions { margin-top: 14px; }
.ui26 .tender-error:not(:empty) {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #B30808;
}

/* Company and contact person side by side. */
.ui26 .tender-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ui26 .tender-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.ui26 .tender-contact__wide { grid-column: 1 / -1; }

/* validateForm() marks empty required fields with .redborder. */
.ui26 .mr-field__input.redborder { border-color: #B30808 !important; }
/* Legacy: #comments { padding: 2px 5px !important }. */
.ui26 #comments.mr-field__textarea { padding: 10px 12px !important; min-height: 180px; }

/* Submit: legacy input[type="submit"] (27% width, 7px 20px padding). */
.ui26.tender-2026 .shortsearchbtn input.mr-submit-btn {
  width: auto !important;
  height: auto !important;
  padding: 15px 40px !important;
  border: 0;
  border-radius: 3px;
  background: var(--ui-red) !important;
  color: var(--ui-white) !important;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
}
.ui26.tender-2026 .shortsearchbtn input.mr-submit-btn:hover { background: var(--ui-red-dark) !important; }

/* Below 1340px the 1300px box would touch the window edges. */
@media (max-width: 1340px) {
  .ui26.tender-2026 { padding-left: var(--ui-container-pad); padding-right: var(--ui-container-pad); }
}
@media (max-width: 1100px) {
  .ui26 .tender-criteria { grid-template-columns: 220px minmax(0, 1fr); }
  .ui26 .tender-criteria__dur { grid-column: 1; }
  .ui26 .tender-criteria__add { grid-column: 2; justify-self: start; }
}
@media (max-width: 1000px) {
  .ui26 .tender-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ui26.tender-2026 { padding-top: 28px; padding-bottom: 60px; }
  .ui26 .tender-criteria { grid-template-columns: minmax(0, 1fr) auto; }
  .ui26 .tender-criteria__cat,
  .ui26 .tender-criteria__term { grid-column: 1 / -1; }
  .ui26 .tender-criteria__dur { grid-column: 1; }
  .ui26 .tender-criteria__add { grid-column: 2; }
  .ui26 .tender-contact__grid { grid-template-columns: 1fr; }
  .ui26 .tender-contact__wide { grid-column: auto; }
  .ui26.tender-2026 .mr-fieldset { padding: 24px 18px; }
  .ui26.tender-2026 .shortsearchbtn input.mr-submit-btn { width: 100% !important; }
}
/* template-man.css (loaded by tender.php) sets the input padding with !important. */
.ui26.tender-2026 .mr-field__input { padding: 0 12px !important; }

/* ==========================================================================
   Shortlist (com_jmanager view jwishlist, tmpl default.php).
   Legacy content area (page hero + breadcrumbs), 1300px.
   ========================================================================== */
.ui26.wl-2026 {
  max-width: var(--ui-container-max);
  margin: 0 auto;
  padding: 40px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: var(--ui-font);
}
.ui26 .wl-card__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ui-ink) !important;
}
.ui26 .wl-card__lead {
  margin: -6px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  color: var(--ui-body-text-strong);
}

/* Table */
/* Legacy (style.css, mobile): table { display: block; float: left; width: 100% !important }. */
.ui26 .wl-table {
  float: none;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ui26 .wl-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-bg-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ui-muted);
}
.ui26 .wl-table td {
  padding: 12px;
  border-bottom: 1px solid var(--ui-divider);
  vertical-align: middle;
  color: var(--ui-body-text-strong);
}
.ui26 .wl-table tbody tr:hover td { background: #FAFBFC; }
.ui26 .wl-table__check { width: 44px; text-align: center !important; }
.ui26 .wl-table__check input[type="checkbox"] { width: 17px; height: 17px; margin: 0; vertical-align: middle; cursor: pointer; }
.ui26 .wl-table__date { width: 190px; white-space: nowrap; }
.ui26 .wl-table__manager a { font-weight: 600; color: var(--ui-near-black); text-decoration: none; }
.ui26 .wl-table__manager a:hover { color: #D10511; }
.ui26 .wl-name { font-weight: 400; color: var(--ui-body-text-strong); }
.ui26 .wl-table__empty td { padding: 22px 12px; text-align: center; color: var(--ui-muted); }

/* Availability status */
.ui26 .wl-status {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: 1px;
}
.ui26 .wl-status--yes { background: #E4F4EC; color: #137A4F; }
.ui26 .wl-status--no { background: #FBECEA; color: #B3392E; }
.ui26 .wl-status--pending { background: #FFF4E0; color: #8A5300; }

/* Comments link (pool partners) */
.ui26 .wl-comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  font-size: 13px;
  color: var(--ui-muted);
  cursor: pointer;
}
.ui26 .wl-comments:hover { color: #D10511; }

/* Actions */
.ui26 .wl-actions {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.ui26 .wl-actions .mr-btn { height: auto; min-height: 44px; padding: 10px 20px; white-space: normal; text-align: center; text-decoration: none; }
/* All actions on one line where the 1300px box has room (pool partners
   have six buttons). */
@media (min-width: 1340px) {
  .ui26 .wl-actions { flex-wrap: nowrap; gap: 8px; }
  .ui26 .wl-actions .mr-btn { flex: 0 1 auto; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
}
.ui26 .wl-actions .wl-btn--primary { background: var(--ui-red) !important; border-color: var(--ui-red); color: var(--ui-white) !important; }
.ui26 .wl-actions .wl-btn--primary:hover { background: var(--ui-red-dark) !important; border-color: var(--ui-red-dark); }

@media (max-width: 1340px) {
  .ui26.wl-2026 { padding-left: var(--ui-container-pad); padding-right: var(--ui-container-pad); }
}
/* Phones: each row becomes a small card (checkbox + manager, date below). */
@media (max-width: 640px) {
  .ui26.wl-2026 { padding-top: 28px; padding-bottom: 60px; }
  .ui26.wl-2026 .mr-fieldset { padding: 24px 18px; }
  .ui26 .wl-card__title { font-size: 19px; }
  .ui26 .wl-table thead { display: none; }
  .ui26 .wl-table, .ui26 .wl-table tbody { display: block; width: 100%; }
  .ui26 .wl-table tr {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ui-divider);
  }
  .ui26 .wl-table td { display: block; padding: 0; border: 0; }
  .ui26 .wl-table tbody tr:hover td { background: none; }
  .ui26 .wl-table__check { width: auto; grid-row: 1 / span 2; text-align: left !important; padding-top: 2px !important; }
  .ui26 .wl-table__date { width: auto; grid-column: 2; font-size: 13px; color: var(--ui-muted); }
  .ui26 .wl-status { margin: 6px 0 0; }
  .ui26 .wl-table__manager .wl-status { display: table; }
  .ui26 .wl-comments { display: flex; margin: 6px 0 0; }
  .ui26 .wl-table__empty { display: block !important; }
  .ui26 .wl-table__empty td { grid-column: 1 / -1; text-align: left; padding: 6px 0; }
  .ui26 .wl-actions .mr-btn { width: 100%; }
  /* Legacy mobile rules for the old markup (style.css): injected "Freischaltdatum"
     labels and forced widths on #formular2 cells and inputs. */
  .ui26 #formular2 .wl-table td { width: auto !important; }
  .ui26 #formular2 .wl-table td::before { content: none; display: none; }
  .ui26 #formular2 .wl-table input[type="checkbox"] { float: none; margin: 0; }
}

/* ==========================================================================
   Manager pages in the legacy content area (hero + breadcrumbs), 1300px:
   "Profildaten bearbeiten" (tmpl criteria.php, same blocks as form2) and
   "Datenbank-Historie" (tmpl history.php).
   ========================================================================== */
.ui26.jm-page {
  max-width: var(--ui-container-max);
  margin: 0 auto;
  padding: 40px 0 90px;
  font-family: var(--ui-font);
}
.ui26.jm-page .mr-form { max-width: none; }
.ui26 .jm-card__title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ui-ink) !important;
}

/* Tables (history) */
.ui26 .jm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ui26 .jm-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-bg-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ui-muted);
}
.ui26 .jm-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--ui-divider);
  vertical-align: top;
  color: var(--ui-body-text-strong);
}
.ui26 .jm-history__id { width: 110px; }
.ui26 .jm-history__date { width: 170px; white-space: nowrap; }
.ui26 .jm-history__action { display: block; font-weight: 600; color: var(--ui-near-black); }
.ui26 .jm-table--inner { margin-top: 10px; border: 1px solid var(--ui-divider); border-radius: 6px; overflow: hidden; }
.ui26 .jm-table--inner th { padding: 8px 10px; font-size: 11px; }
.ui26 .jm-table--inner td { padding: 8px 10px; font-size: 13.5px; overflow-wrap: anywhere; }
.ui26 .jm-table--inner tr:last-child td { border-bottom: 0; }
.ui26 .jm-table--inner .jm-field { width: 26%; font-weight: 600; color: var(--ui-near-black); }
.ui26 .jm-table--inner .jm-old { width: 37%; color: var(--ui-muted); text-decoration: line-through; text-decoration-color: rgba(99,104,122,0.4); }
.ui26 .jm-table--inner .jm-new { width: 37%; color: var(--ui-near-black); }
.ui26 .jm-empty { margin: 0; color: var(--ui-muted); }
/* Legacy (style.css, mobile): table { display: block; float: left; width: 100% !important }. */
.ui26 .jm-table { display: table; float: none; }
.ui26 .jm-table thead { display: table-header-group; }
.ui26 .jm-table tbody { display: table-row-group; }
.ui26 .jm-table tr { display: table-row; float: none; width: auto !important; }
.ui26 .jm-table th, .ui26 .jm-table td { display: table-cell; float: none; width: auto !important; }
.ui26 .jm-history__id { width: 110px !important; }
.ui26 .jm-history__date { width: 170px !important; }
.ui26 .jm-table--inner .jm-field { width: 26% !important; }
.ui26 .jm-table--inner .jm-old,
.ui26 .jm-table--inner .jm-new { width: 37% !important; }
.ui26 .jm-card { display: flow-root; }
/* "Hinzufügen" on the criteria page: red at every width (legacy rules
   made it red on desktop only). */
.ui26.mr-page--criteria #hinzufugen.mr-btn { background: var(--ui-red) !important; border-color: var(--ui-red); color: var(--ui-white); }
.ui26.mr-page--criteria #hinzufugen.mr-btn:hover { background: var(--ui-red-dark) !important; border-color: var(--ui-red-dark); }

@media (max-width: 1340px) {
  .ui26.jm-page { padding-left: var(--ui-container-pad); padding-right: var(--ui-container-pad); }
}
@media (max-width: 640px) {
  .ui26.jm-page { padding-top: 28px; padding-bottom: 60px; }
  .ui26.jm-page .mr-fieldset { padding: 24px 18px; }
  /* History: rows as blocks */
  .ui26 .jm-history > thead { display: none; }
  .ui26 .jm-history, .ui26 .jm-history > tbody { display: block; }
  .ui26 .jm-history > tbody > tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--ui-divider); }
  .ui26 .jm-history > tbody > tr > td { display: block; padding: 0; border: 0; }
  .ui26 .jm-history .jm-history__id { display: none; }
  .ui26 .jm-history .jm-history__date { margin-top: 6px; font-size: 13px; color: var(--ui-muted); width: auto !important; }
  /* Changes: field name on top, old and new value side by side. */
  .ui26 .jm-table--inner { display: block; }
  .ui26 .jm-table--inner thead { display: none; }
  .ui26 .jm-table--inner tbody { display: block; }
  .ui26 .jm-table--inner tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px 12px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ui-divider);
  }
  .ui26 .jm-table--inner tr:last-child { border-bottom: 0; }
  .ui26 .jm-table--inner td,
  .ui26 .jm-table--inner td.jm-field,
  .ui26 .jm-table--inner td.jm-old,
  .ui26 .jm-table--inner td.jm-new { display: block; padding: 0; border: 0; width: auto !important; }
  .ui26 .jm-table--inner .jm-field { grid-column: 1 / -1; }
}
/* Legacy: #absenden { padding: 10px !important } (criteria, update). */
.ui26 #absenden.mr-submit-btn { width: auto !important; padding: 15px 40px !important; font-size: 15px; font-weight: 700; }
/* template-man.css (criteria) makes the tree text tiny. */
.ui26 .mr-tree .treeview li,
.ui26 .mr-tree .treeview span { font-size: 14px !important; line-height: 1.5; }

/* ==========================================================================
   Manager upload pages (legacy content area, 1300px): Video (tmpl video.php),
   PSA (personalitypdf.php), Lebenslauf und Bild (upload.php),
   Referenzschreiben (refpdf.php). Same card as criteria/history.
   ========================================================================== */
.ui26.jm-upload-page .mr-fieldset { margin-bottom: 0; }
.ui26 .jm-lead,
.ui26 .jm-text p,
.ui26 .jm-existing {
  margin: 0 0 16px;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ui-body-text-strong);
}
.ui26 .jm-lead strong { font-weight: 600; color: var(--ui-near-black); }
.ui26 .jm-existing { padding-left: 28px; position: relative; }
.ui26 .jm-existing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1E8E3E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ui26 .jm-notice { margin: 0 0 22px; max-width: 900px; }
.ui26 .jm-text .jm-notice p { margin: 0; }
.ui26 .jm-notice strong { font-weight: 700; color: var(--ui-near-black); }

/* Upload row: file field left, current file + actions right. */
.ui26 .jm-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
  padding: 22px 0;
  border-top: 1px solid var(--ui-divider);
}
.ui26 .jm-upload:last-child { padding-bottom: 0; }
.ui26 .jm-upload + .jm-submit { margin-top: 0; }
.ui26 .jm-upload__field { flex: 1 1 360px; min-width: 0; max-width: 620px; }
.ui26 .jm-upload__field .mr-field__label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.5; color: var(--ui-near-black); }
.ui26 .jm-upload__field .mr-field__file { margin: 0; padding: 9px 12px !important; border: 1px dashed var(--ui-border-strong) !important; border-radius: 4px !important; height: auto; }
.ui26 .jm-upload__current { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ui26 .jm-upload__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E7A36;
}
.ui26 .jm-upload__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E8E3E; }
.ui26 .jm-upload--option { align-items: center; }
.ui26 .jm-check.mr-checkbox-label { margin: 0; font-weight: 600; color: var(--ui-near-black); }
.ui26 .jm-check input[type="checkbox"] { margin: 0; padding: 0 !important; accent-color: var(--ui-red); }
.ui26 .jm-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 22px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ui-divider);
}
.ui26 .jm-upload-grid .jm-upload__field { max-width: none; display: flex; flex-direction: column; justify-content: space-between; }

/* Small outline buttons for links to the stored file. */
.ui26 a.jm-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 3px;
  background: var(--ui-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ui-near-black) !important;
  text-decoration: none !important;
  cursor: pointer;
}
.ui26 a.jm-link-btn:hover,
.ui26 a.jm-link-btn:focus-visible { border-color: var(--ui-red); color: #D10511 !important; }
.ui26 a.jm-link-btn--danger { color: #B30808 !important; }

/* Submit row below the card; loading bar (template.css) next to the button. */
.ui26 .jm-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ui-divider); }
.ui26 .jm-submit .loadingbar { order: 2; }
.ui26 .jm-submit input#absenden.mr-submit-btn {
  width: auto !important;
  height: auto;
  margin: 0;
  padding: 15px 40px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: var(--ui-red) !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--ui-white);
  cursor: pointer;
}
.ui26 .jm-submit input#absenden.mr-submit-btn:hover { background: var(--ui-red-dark) !important; }

/* Video player popup (closeVideo()/playVideo() toggle display). */
.ui26.jm-video-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100050;
  width: min(720px, calc(100vw - 32px));
  padding: 44px 16px 16px;
  transform: translate(-50%, -50%);
  background: var(--ui-white);
  border-radius: 8px;
  box-shadow: 0 0 0 100vmax rgba(18, 20, 26, 0.55), 0 20px 50px rgba(0,0,0,0.3);
}
.ui26.jm-video-modal video { display: block; width: 100%; height: auto; max-height: 70vh; background: #000; }
.ui26.jm-video-modal #closeVideo {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--ui-near-black);
  text-decoration: none;
  cursor: pointer;
}
.ui26.jm-video-modal #closeVideo:hover { color: #D10511; }

@media (max-width: 640px) {
  .ui26 .jm-upload__current { width: 100%; }
  .ui26 .jm-submit input#absenden.mr-submit-btn { width: 100% !important; }
}
/* Legacy (style.css): #manger-signup { padding: 0 40px }. */
.ui26.jm-page#manger-signup { padding: 40px 0 90px; }
.ui26.jm-upload-page .mr-field__label { letter-spacing: normal !important; }
.ui26 .jm-check span { letter-spacing: normal !important; }
@media (max-width: 1340px) {
  .ui26.jm-page#manger-signup { padding-left: var(--ui-container-pad); padding-right: var(--ui-container-pad); }
}
@media (max-width: 640px) {
  .ui26.jm-page#manger-signup { padding-top: 28px; padding-bottom: 60px; }
}
/* Upload pages: spacing instead of separator lines. */
.ui26 .jm-upload,
.ui26 .jm-upload-grid,
.ui26 .jm-submit { border-top: 0; }
.ui26 .jm-upload { padding: 12px 0; }
.ui26 .jm-notice + .jm-upload,
.ui26 .jm-text + .jm-upload,
.ui26 .jm-lead + .jm-upload { padding-top: 6px; }
.ui26 .jm-upload-grid { padding-top: 8px; }
.ui26 .jm-submit,
.ui26 .jm-upload + .jm-submit { margin-top: 18px; padding-top: 0; }

/* ==========================================================================
   Playbook request form (tmpl playbook.php; hero = "Playbook für …").
   ========================================================================== */
.ui26.pb-2026 .pb-card { max-width: 900px; margin: 0 auto; }
.ui26 .pb-notice { margin: 0 0 26px; }
.ui26 .pb-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px 24px; }
.ui26 .pb-grid .mr-field__label { letter-spacing: normal !important; }
/* The fields carry "invalid" from the start (legacy markup): red only once
   the validator has checked them. */
.ui26.pb-2026 .mr-field__input.invalid:not([aria-invalid="true"]) { border-color: var(--ui-border-strong) !important; background: var(--ui-white); box-shadow: none; }
.ui26.pb-2026 .jm-submit input#playbook.mr-submit-btn {
  width: auto !important;
  height: auto;
  margin: 0;
  padding: 15px 40px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: var(--ui-red) !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--ui-white);
  cursor: pointer;
}
.ui26.pb-2026 .jm-submit input#playbook.mr-submit-btn:hover { background: var(--ui-red-dark) !important; }
@media (max-width: 640px) {
  .ui26.pb-2026 .jm-submit input#playbook.mr-submit-btn { width: 100% !important; }
}

/* "Freischalten von Profilen" (jwishlist tmpl buy.php): Shortlist card with a
   one-column list (no checkbox column). */
.ui26 .wl-table--plain .wl-table__manager { font-weight: 600; color: var(--ui-near-black); }
.ui26.wl-buy .wl-actions { margin-top: 22px !important; }
@media (max-width: 640px) {
  .ui26 .wl-table--plain, .ui26 .wl-table--plain tbody, .ui26 .wl-table--plain tr, .ui26 .wl-table--plain td { float: none !important; }
  .ui26 .wl-table--plain tr { display: block !important; padding: 12px 0; }
  .ui26.wl-buy .wl-actions .mr-btn { width: 100% !important; }
}
/* "Versenden / Herunterladen von Profilen" (jwishlist tmpl email.php): same
   card as buy.php plus the recipient field and the PDF note. */
.ui26.wl-email .wl-email__field { max-width: 520px; margin: 24px 0 0; }
.ui26.wl-email .wl-email__field .mr-field__label { letter-spacing: normal; }
.ui26.wl-email .wl-email__note { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--ui-muted); }
.ui26.wl-email .wl-email__note a { color: #D10511; font-weight: 600; }

/* Registration thank-you page (jmanager tmpl confirm.php; ?source=cba|acp|bfm
   show the partner logo instead of the check icon). */
.ui26 .jm-confirm { max-width: 760px; margin: 0 auto; padding: 40px 44px; text-align: center; }
.ui26 .jm-confirm p { margin: 0; font-size: 16px; line-height: 1.7; text-align: center !important; color: var(--ui-body-text-strong); }
.ui26 .jm-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 0 22px;
  border-radius: 50%;
  background: #E4F4EC;
  color: #137A4F;
}
.ui26 .jm-confirm .jm-confirm__logo { margin: 0 0 26px; }
.ui26 .jm-confirm__logo img { display: inline-block; max-width: min(260px, 100%) !important; max-height: 90px; width: auto !important; height: auto !important; }
.ui26 .jm-confirm__logo--bfm img { max-width: min(320px, 100%) !important; }
.ui26 .jm-confirm p + p { margin-top: 12px; }
.ui26 .jm-confirm .jm-confirm__title { margin-bottom: 4px; font-size: 20px; color: var(--ui-ink); }
.ui26 .jm-confirm .jm-confirm__title strong { font-weight: 600; }
.ui26 .jm-confirm .jm-confirm__links { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ui-divider); font-size: 15px; }
.ui26 .jm-confirm a { color: #D10511; font-weight: 600; }
@media (max-width: 640px) {
  .ui26 .jm-confirm { padding: 28px 20px !important; }
  .ui26 .jm-confirm p { font-size: 15px; }
}

/* Statistik (jmanager tmpl stats.php): one card per group; each row = text,
   "Anzahl" and "Zuletzt". */
.ui26.jm-stats .st-card { margin-bottom: 22px; }
.ui26.jm-stats .st-card:last-child { margin-bottom: 0; }
.ui26 .st-head,
.ui26 .st-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 150px;
  gap: 8px 24px;
  align-items: baseline;
}
.ui26 .st-head { padding-bottom: 12px; border-bottom: 1px solid var(--ui-border); }
.ui26 .st-head .jm-card__title { margin: 0; }
.ui26 .st-head__col {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ui-muted);
}
.ui26 .st-head__col:last-child,
.ui26 .st-row__date { text-align: right; }
.ui26 .st-head__col:nth-child(2),
.ui26 .st-row__count { text-align: right; }
.ui26 .st-row { padding: 16px 0; border-bottom: 1px solid var(--ui-divider); }
.ui26 .st-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ui26 .st-row__text { font-size: 14.5px; line-height: 1.6; color: var(--ui-body-text-strong); }
.ui26 .st-row__text strong { font-weight: 600; color: var(--ui-ink); }
.ui26 .st-row__hint { display: block; margin-top: 4px; font-size: 13px; color: var(--ui-muted); }
.ui26 .st-row__count {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ui-ink);
}
.ui26 .st-row__date { font-size: 14px; color: var(--ui-body-text-strong); font-variant-numeric: tabular-nums; }
.ui26 .st-row__empty { grid-column: 2 / -1; text-align: right; font-size: 14px; color: var(--ui-muted); }
.ui26 .st-row--highlight, .ui26 .st-row--highlight:last-child { margin: 0 -14px; padding: 14px; border-radius: 6px; background: #F1FAF4; border-bottom-color: transparent; }
.ui26 .st-green { color: #137A4F !important; }
.ui26 .st-red { color: #D10511; font-weight: 600; }
@media (max-width: 640px) {
  .ui26 .st-head { grid-template-columns: minmax(0, 1fr); }
  .ui26 .st-head__col { display: none; }
  .ui26 .st-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ui26 .st-row__text { grid-column: 1 / -1; }
  .ui26 .st-row__count,
  .ui26 .st-row__date { text-align: left; }
  .ui26 .st-row__count::before,
  .ui26 .st-row__date::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ui-muted);
  }
  .ui26 .st-row__date { text-align: right; }
  .ui26 .st-row__empty { grid-column: 1 / -1; text-align: left; }
}

/* Tagessatzstatistik (jmanager tmpl tagessatzstats.php) */
.ui26 .rt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ui26 table.rt-table { display: table !important; width: 100% !important; min-width: 560px; border-collapse: collapse; float: none !important; font-size: 14px; }
/* Legacy mobile rules (style.css) turn table parts into blocks: keep a real table. */
.ui26 .rt-table thead { display: table-header-group !important; float: none !important; }
.ui26 .rt-table tbody { display: table-row-group !important; float: none !important; width: auto !important; }
.ui26 .rt-table tfoot { display: table-footer-group !important; float: none !important; }
.ui26 .rt-table tr { display: table-row !important; float: none !important; width: auto !important; }
.ui26 .rt-table th,
.ui26 .rt-table td { display: table-cell !important; float: none !important; width: auto !important; padding: 12px 14px; border-bottom: 1px solid var(--ui-divider); }
.ui26 .rt-table thead th {
  background: var(--ui-bg-light);
  border-bottom: 1px solid var(--ui-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ui-muted);
}
.ui26 .rt-table .rt-name { text-align: left; color: var(--ui-ink); }
.ui26 .rt-table .rt-num { width: 120px !important; text-align: right; font-variant-numeric: tabular-nums; color: var(--ui-body-text-strong); }
.ui26 .rt-table tbody tr:hover td { background: #FAFBFC; }
.ui26 .rt-table .rt-total td { border-top: 2px solid var(--ui-ink); border-bottom: 0; background: #FAFAFB; font-weight: 700; color: var(--ui-ink); }

/* Bonitäts- und Wirtschaftsauskunft (jmanager tmpl business.php) */
.ui26.jm-business .bz-card { max-width: 900px; }
.ui26 .bz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.ui26 .bz-grid .bz-field--wide { grid-column: 1 / -1; }
.ui26 .bz-grid .mr-field__label { letter-spacing: normal; }
.ui26 .bz-submit { justify-content: space-between; }
.ui26 .bz-required { order: 2; font-size: 13px; color: var(--ui-muted); }
.ui26.jm-business .jm-submit input#absenden.mr-submit-btn { order: 1; }
@media (max-width: 640px) {
  .ui26 .bz-grid { grid-template-columns: minmax(0, 1fr); }
}
