:root {
  --bg: #F6F6F6;
  --bg-soft: #ffffff;
  --primary: #AD093D;
  --radius-sm: 4px;
  --radius-md: 6px;
  --color-primary: #AD093D;
  --color-ink: #1E0C13;
  --color-muted: #7A5060;
  --color-border: #E4D4DA;
  --color-bg: #F6F6F6;
  --font-size-label: 9px;
  --font-size-body: 12px;
  --font-size-value: 13px;
  --blue: #C05D7E;
  --muted: #C4C2C2;
  --text: #5A2236;
  --text-muted: #7B4A5D;
  --surface-tint: #FAEDF2;
  --surface-soft: #FDF7FA;
  --surface-track: #F5E8EE;
  --shadow: 0 16px 40px rgba(23, 32, 43, 0.08);
  --radius: 18px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Futura, "Futura PT", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  background:
    radial-gradient(circle at 0% 0%, rgba(173, 9, 61, 0.08), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(173, 9, 61, 0.05), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.18s ease, transform 0.18s ease;
}

.landing::before,
.landing::after {
  content: "";
  position: absolute;
  left: -15%;
  width: 130%;
  height: 46%;
  border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
  z-index: -1;
  filter: blur(1px);
}

.landing::before {
  top: 10%;
  background: linear-gradient(120deg, rgba(173, 9, 61, 0.18) 0%, rgba(173, 9, 61, 0.03) 65%);
  animation: landingWaveA 12s ease-in-out infinite alternate;
}

.landing::after {
  bottom: 6%;
  background: linear-gradient(120deg, rgba(173, 9, 61, 0.12) 0%, rgba(214, 111, 146, 0.04) 68%);
  animation: landingWaveB 14s ease-in-out infinite alternate;
}

.landing.login-burst {
  background:
    radial-gradient(circle at 18% 22%, rgba(173, 9, 61, 0.16), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(214, 111, 146, 0.12), transparent 26%),
    var(--bg);
}

.landing.login-burst::before {
  animation: loginWaveScreenA 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  filter: blur(0);
}

.landing.login-burst::after {
  animation: loginWaveScreenB 0.46s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  filter: blur(0);
}

.landing-card {
  width: min(680px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(173, 9, 61, 0.22);
  border-radius: 22px;
  padding: 1.6rem 1.45rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 3;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  backdrop-filter: none;
}

.landing-corner-left,
.landing-corner-right {
  position: absolute;
  top: 1.2rem;
  z-index: 2;
}

.landing-corner-left {
  left: 1.4rem;
}

.landing-corner-right {
  right: 1.4rem;
}

.landing-corner-logo {
  width: clamp(128px, 12.8vw, 208px);
  height: auto;
  display: block;
}

.landing-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(173, 9, 61, 0.22);
  box-shadow: 0 6px 16px rgba(173, 9, 61, 0.1);
}

.landing-lang-btn {
  display: grid;
  place-items: center;
  min-height: 34px;
  min-width: 48px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: none;
  padding: 0 0.7rem;
  vertical-align: middle;
  text-align: center;
}

.landing-lang-btn:hover {
  border-color: rgba(173, 9, 61, 0.22);
  background: rgba(173, 9, 61, 0.05);
  color: var(--text);
  transform: none;
}

.landing-lang-btn.active {
  border-color: rgba(173, 9, 61, 0.36);
  background: #ffffff;
  color: var(--primary);
}

.landing-lang-btn:focus,
.landing-lang-btn:focus-visible {
  outline: none;
  border-color: rgba(173, 9, 61, 0.36);
  box-shadow: 0 0 0 2px rgba(173, 9, 61, 0.1);
}

.landing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.6) 46%, transparent 100%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

@keyframes landingWaveA {
  0% { transform: translate3d(-1%, 0, 0) rotate(-2deg) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) rotate(1deg) scale(1.03); }
  100% { transform: translate3d(0, 2%, 0) rotate(-1deg) scale(1.01); }
}

@keyframes landingWaveB {
  0% { transform: translate3d(0, 0, 0) rotate(1deg) scale(1); }
  50% { transform: translate3d(-2%, 3%, 0) rotate(-1deg) scale(1.02); }
  100% { transform: translate3d(1%, -2%, 0) rotate(2deg) scale(1.01); }
}

@keyframes loginSweep {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

@keyframes loginWaveScreenA {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.35;
  }
  38% {
    transform: translate3d(2%, -3%, 0) scale(1.14);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(6%, -6%, 0) scale(1.24);
    opacity: 0;
  }
}

@keyframes loginWaveScreenB {
  0% {
    transform: translate3d(2%, 0, 0) scale(1);
    opacity: 0.34;
  }
  42% {
    transform: translate3d(-3%, 4%, 0) scale(1.13);
    opacity: 0.68;
  }
  100% {
    transform: translate3d(-7%, 7%, 0) scale(1.22);
    opacity: 0;
  }
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
}

.landing-brand > div {
  display: grid;
  align-content: end;
  gap: 0.08rem;
}

.landing-form {
  margin-top: 1.15rem;
  display: grid;
  gap: 1rem;
}

.landing .brand-kicker {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.landing .landing-brand h1 {
  font-size: 3.2rem;
  line-height: 1.05;
}

.landing .hint,
#tokenFlowTitle {
  font-size: 1.16rem;
  line-height: 1.5;
}

.landing .landing-form input,
.landing .landing-form button {
  font-size: 1.14rem;
  min-height: 52px;
}

.landing .landing-form input {
  background: #fcf6f9 !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

.landing .landing-form input:focus {
  background: #ffffff !important;
}

.landing .landing-form button {
  margin-top: 0.1rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px #fcf6f9 inset !important;
  box-shadow: 0 0 0 1000px #fcf6f9 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.landing input::-webkit-credentials-auto-fill-button,
.landing input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
}

.landing-exit .landing-card {
  transform: translateY(-10px) scale(0.985);
  opacity: 0;
  filter: blur(4px);
  box-shadow: 0 30px 60px rgba(23, 32, 43, 0.12);
}

.landing-card.login-success-flash::after {
  animation: loginSweep 0.34s ease forwards;
}

.landing-card.login-success-flash {
  box-shadow: 0 20px 48px rgba(173, 9, 61, 0.16);
}

.landing-card.login-error-shake {
  animation: loginShake 0.22s ease;
}

#appShell.app-enter {
  opacity: 0;
  transform: translateY(14px);
}

#appShell.app-enter.app-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem 1.1rem;
  background: linear-gradient(120deg, #fff 0%, #fdf6f8 100%);
  border-bottom: 1px solid rgba(173, 9, 61, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.brand-kicker {
  margin: 0;
  color: var(--blue);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand h1 {
  margin: 0.1rem 0 0;
  font-size: 1.75rem;
  color: var(--primary);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(173, 9, 61, 0.3);
  border: 1px solid rgba(196, 194, 194, 0.6);
  padding: 0.35rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.6);
  border-radius: 999px;
  padding: 0.35rem;
  min-height: 46px;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.app-lang-switch {
  margin-bottom: 0;
}

.app-lang-switch select {
  height: 38px;
  min-height: 38px;
  padding: 0.35rem 0.72rem;
  font-size: 14px;
  line-height: 1.15;
  border-radius: 999px;
  background-image: none !important;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 0.72rem;
}

.user-badge {
  margin: 0;
  min-width: 42px;
  height: 42px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, var(--surface-tint) 100%);
  border: 1px solid rgba(173, 9, 61, 0.22);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(173, 9, 61, 0.08);
}

.user-menu-wrap {
  position: relative;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.55);
  border-radius: 12px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(173, 9, 61, 0.2);
  width: fit-content;
}

.user-menu .btn-subtle {
  width: 100%;
  text-align: left;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 33, 42, 0.42);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 1rem;
}

.overlay-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.55);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.overlay-card h3 {
  margin: 0 0 0.5rem;
}

.success-overlay-card {
  width: min(520px, 100%);
  border-color: rgba(48, 136, 93, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #f6fcf9 100%);
}

.success-overlay-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.success-badge {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #C43A6A 0%, var(--primary) 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(173, 9, 61, 0.18);
  flex: 0 0 auto;
}

.success-summary-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.success-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(196, 194, 194, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.success-summary-label {
  color: var(--text);
  font-size: 0.95rem;
}

.success-summary-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.ui-dialog-card {
  width: min(560px, 100%);
}

.ui-dialog-head {
  margin-bottom: 0.3rem;
}

.ui-dialog-head h3 {
  margin: 0;
}

.ui-dialog-message {
  display: grid;
  gap: 0.45rem;
  margin: 0.25rem 0 0.9rem;
}

.ui-dialog-message-line {
  color: var(--text);
  line-height: 1.45;
  padding: 0.15rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ui-dialog-message-line.is-emphasis {
  color: var(--primary);
  font-weight: 700;
}

.ui-dialog-message-line.is-link {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(196, 194, 194, 0.4);
  border-radius: 12px;
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
}

.ui-dialog-card.dialog-tone-success {
  border-color: rgba(48, 136, 93, 0.24);
  background: linear-gradient(145deg, #ffffff 0%, #f6fcf9 100%);
}

.ui-dialog-card.dialog-tone-warning {
  border-color: rgba(173, 137, 9, 0.24);
  background: linear-gradient(145deg, #ffffff 0%, #fffaf2 100%);
}

.ui-dialog-card.dialog-tone-danger {
  border-color: rgba(173, 9, 61, 0.2);
  background: linear-gradient(145deg, #ffffff 0%, #fff7fa 100%);
}

#uiDialogForm {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

#uiDialogForm label {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

#uiDialogForm label input,
#uiDialogForm label select {
  width: 100%;
  min-width: 0;
}

#uiDialogForm > input,
#uiDialogForm > select {
  width: 100%;
}

#uiDialogActions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

#userAdminPanel .actions.import-card {
  margin-bottom: 0.8rem;
  align-items: center;
}

#newUserUsername {
  min-width: 180px;
  flex: 1 1 180px;
}

#newUserEmail {
  min-width: 280px;
  flex: 1.35 1 320px;
}

#newUserRole {
  min-width: 220px;
  flex: 1 1 260px;
}

#createUserBtn {
  flex: 0 0 auto;
}

.user-admin-card {
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #f8fbfe 100%);
}

.user-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.user-admin-identity {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 200px;
}

.user-admin-name {
  color: var(--text);
  font-size: 1rem;
}

.user-admin-mail {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.user-admin-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.role-chip {
  font-size: 0.79rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.role-admin {
  color: #7a1a3a;
  background: #fceaf0;
}

.role-advanced {
  color: #7d4c08;
  background: #fff4de;
}

.role-basic {
  color: #3f5f73;
  background: #eef6fb;
}

.user-admin-actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.user-admin-actions button {
  min-width: 122px;
}

.auth .hint {
  margin: 0;
  align-self: center;
  padding: 0 0.4rem;
}

input, select, button {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  background: #ffffff;
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(90, 34, 54, 0.85) 50%),
    linear-gradient(135deg, rgba(90, 34, 54, 0.85) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 3px),
    calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.8rem;
}

#pricing-eur-rate {
  -moz-appearance: textfield;
  appearance: textfield;
}

#pricing-eur-rate::-webkit-outer-spin-button,
#pricing-eur-rate::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(173, 9, 61, 0.5);
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.1);
}

.landing .landing-form input::placeholder {
  color: #9ea0a5;
  opacity: 1;
}

#landingUsername,
#landingPassword {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, #ffffff 0%, var(--surface-tint) 100%);
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(173, 9, 61, 0.24);
  line-height: 1.2;
  min-height: 38px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
  box-shadow: 0 6px 14px rgba(173, 9, 61, 0.1);
}

.btn-main,
.save-btn {
  background: linear-gradient(135deg, #C43A6A 0%, var(--primary) 100%);
  color: #ffffff;
  border-color: rgba(173, 9, 61, 0.92);
  box-shadow: 0 8px 18px rgba(173, 9, 61, 0.16);
}

.btn-main:hover,
.btn-main:focus-visible,
.save-btn:hover,
.save-btn:focus-visible {
  background: linear-gradient(135deg, #CF4A79 0%, #B70F47 100%);
  color: #ffffff;
  border-color: rgba(173, 9, 61, 1);
  box-shadow:
    0 0 0 3px rgba(173, 9, 61, 0.12),
    0 10px 20px rgba(173, 9, 61, 0.18);
}

.edit-btn {
  background: linear-gradient(130deg, #ffffff 0%, var(--surface-tint) 100%);
  color: var(--text);
  border-color: rgba(173, 9, 61, 0.28);
  box-shadow: 0 5px 12px rgba(173, 9, 61, 0.08);
}

.edit-btn:hover,
.edit-btn:focus-visible {
  background: linear-gradient(130deg, #ffffff 0%, #F8E8EE 55%, var(--surface-soft) 100%);
  color: var(--text);
  border-color: rgba(173, 9, 61, 0.35);
}

.btn-subtle,
.cancel-btn {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid rgba(173, 9, 61, 0.14);
  box-shadow: none;
}

.btn-subtle:hover,
.btn-subtle:focus-visible,
.cancel-btn:hover,
.cancel-btn:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
  border-color: rgba(173, 9, 61, 0.22);
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.06);
}

#landingLoginBtn {
  position: relative;
  overflow: hidden;
  min-height: 46px;
}

#landingLoginBtn.is-loading {
  background: linear-gradient(135deg, #C05D7E, #AD093D);
  color: #fff;
  box-shadow: 0 12px 24px rgba(173, 9, 61, 0.14);
}

#landingLoginBtn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 0.55rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: inline-block;
  vertical-align: -3px;
  animation: spin 0.48s linear infinite;
}

#landingLoginBtn.is-success {
  background: linear-gradient(135deg, #C43A6A 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(173, 9, 61, 0.18);
}

button:hover {
  filter: brightness(1.01);
  border-color: rgba(173, 9, 61, 0.35);
  background: linear-gradient(130deg, #ffffff 0%, #F8E8EE 55%, var(--surface-soft) 100%);
  box-shadow: 0 8px 18px rgba(173, 9, 61, 0.12);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(173, 9, 61, 0.18),
    0 8px 18px rgba(173, 9, 61, 0.14);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tabs {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem 0.95rem;
  background: transparent;
  overflow-x: auto;
}

.tabs button {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid rgba(173, 9, 61, 0.18);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(173, 9, 61, 0.08);
  padding: 0.72rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

main { padding: 0.45rem 1rem 1.2rem; }
.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  background: var(--bg-soft);
  border: 1px solid rgba(196, 194, 194, 0.4);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.tab-panel.active h2,
.tab-panel.active h3,
.tab-panel.active h4 {
  color: var(--text-muted);
}

#master h2,
#master h3,
#master h4 {
  color: var(--text);
}

.tab-panel.active input,
.tab-panel.active select,
.tab-panel.active textarea {
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-welcome {
  margin: 0.3rem 0 1rem;
  font-size: 2.45rem;
  color: var(--text);
}

.dashboard-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(173, 9, 61, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, var(--surface-soft) 100%);
}

.dashboard-search-card input {
  min-height: 54px;
  font-size: 1.02rem;
  padding: 0.85rem 1rem;
}

.dashboard-search-card button {
  min-height: 54px;
  padding: 0.85rem 1.1rem;
}

.card {
  background: linear-gradient(145deg, #fff 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(196, 194, 194, 0.5);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  position: relative;
  overflow: hidden;
  min-height: 142px;
  display: flex;
  flex-direction: column;
}

.card::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  right: -14px;
  top: -14px;
  background: rgba(173, 9, 61, 0.12);
}

.card h3 {
  margin: 0;
  color: var(--text-muted);
}

.card p { font-size: 1.6rem; margin: 0.3rem 0 0; }

.cards .card[data-metric] {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cards .card[data-metric]:hover,
.cards .card[data-metric]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(173, 9, 61, 0.45);
  box-shadow: 0 12px 24px rgba(173, 9, 61, 0.16);
  outline: none;
}

.card-action {
  margin-top: auto;
  padding: 0.4rem 0.56rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.import-summary-cards .card {
  min-height: 110px;
}

.import-summary-cards .card p {
  font-size: 1.45rem;
}

.import-step {
  margin-bottom: 0.75rem;
}

#dashboardDetailWrap {
  margin-bottom: 0.8rem;
}

.dashboard-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.audit-filters {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  gap: 0.45rem;
}

.audit-filters select {
  min-width: 130px;
}

#auditWrap {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(196, 194, 194, 0.45);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.35rem;
}

#audit {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.audit-line {
  font-size: 0.86rem;
  color: var(--text);
  padding: 0.34rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(196, 194, 194, 0.4);
  background: #fffafb;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  border-bottom: 1px solid rgba(196, 194, 194, 0.45);
  padding: 0.62rem;
  text-align: left;
  vertical-align: middle;
}
th {
  background: var(--surface-tint);
  color: var(--text);
}
tr:last-child td {
  border-bottom: none;
}

#pricesTable tr.manual-price-row td {
  background: #FBEFF4;
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-bottom: 0.35rem;
}

.price-toggles-row {
  margin-top: -0.15rem;
  margin-bottom: 0.25rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
}

.condition-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.cond-toggle-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.22rem;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
  text-align: left;
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: max-content;
}

input[type="checkbox"] {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  width: 16px;
  height: 16px;
  min-width: 16px;
  box-shadow: none !important;
  appearance: auto;
  -webkit-appearance: checkbox;
}

.price-toggles-row input[type="checkbox"] {
  min-width: 0 !important;
  flex: 0 0 auto !important;
}

input[type="checkbox"]:focus,
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: none !important;
}

#mappingEditor label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.9rem;
}

#pricesTable th,
#pricesTable td {
  padding: 0.42rem 0.5rem;
  color: var(--text);
}

.prices-table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  border: 1px solid rgba(196, 194, 194, 0.45);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.prices-table-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-gutter: stable;
}

.prices-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.prices-table-wrap::-webkit-scrollbar-track {
  background: var(--surface-track);
  border-top: 1px solid rgba(196, 194, 194, 0.35);
}

.prices-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(173, 9, 61, 0.32);
  border-radius: 999px;
  border: 2px solid var(--surface-track);
}

.prices-actions-wrap {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(196, 194, 194, 0.45);
  background: #ffffff;
}

.prices-actions-wrap::after {
  content: "";
  display: block;
  flex: 0 0 10px;
  background: #eef3f7;
  border-top: 1px solid rgba(196, 194, 194, 0.35);
}

#pricesTable,
#pricesActionTable {
  border: none;
  border-radius: 0;
  background: transparent;
}

#pricesTable {
  width: max-content;
  min-width: 100%;
}

#pricesActionTable {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  table-layout: fixed;
}

#pricesTable th,
#pricesActionTable th {
  line-height: 1.15;
}

#pricesTable thead tr:first-child th,
#pricesActionTable thead tr:first-child th {
  height: 52px;
}

#pricesTable .filter-row th,
#pricesActionTable .filter-row th {
  height: 52px;
  padding: 0.35rem 0.4rem;
  background: var(--surface-soft);
}

#pricesTable tbody tr,
#pricesActionTable tbody tr {
  height: 62px;
}

#pricesTable input,
#pricesTable select {
  padding: 0.4rem 0.45rem;
  min-width: 88px;
}

#pricesTable .filter-row input,
#pricesTable .filter-row select {
  min-width: 78px;
  width: 100%;
  padding: 0.34rem 0.4rem;
  font-size: 0.82rem;
}

#pricesTable th.price-col-head,
#pricesTable td.price-value-cell,
#pricesTable .filter-row th.price-filter-cell {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}

#pricesTable .filter-row th.price-filter-cell input {
  min-width: 0;
  width: 100%;
  text-align: right;
}

#pricesTable .price-name-input {
  min-width: 260px;
  width: min(32vw, 420px);
}

#pricesTable .price-manual-vk-input {
  min-width: 110px;
  width: 110px;
  text-align: right;
}

#pricesActionTable th,
#pricesActionTable td {
  padding: 0.42rem 0.5rem;
  color: var(--text);
}

#pricesActionTable .action-col-head {
  background: var(--surface-tint);
  text-align: center;
}

#pricesActionTable .action-col-filter {
  background: var(--surface-soft);
}

#pricesActionTable tbody td {
  background: #ffffff;
}

#pricesActionTable tbody tr.manual-price-row td {
  background: #FBEFF4;
}

.action-cell-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: 100%;
}

.price-action-btn {
  min-height: 30px;
  padding: 0.34rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

#manualProductName {
  min-width: 220px;
  flex: 1 1 220px;
}

#manualProductSkuZumstein,
#manualProductVkA {
  min-width: 140px;
}

.csv-import-head {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hidden-file-input {
  display: none;
}

.inline-info {
  position: relative;
  display: inline-flex;
}

.inline-info summary {
  list-style: none;
  width: 1.5rem;
  min-width: 1.5rem;
  max-width: 1.5rem;
  height: 1.5rem;
  min-height: 1.5rem;
  max-height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(173, 9, 61, 0.22);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  background: var(--surface-soft);
  font-weight: 700;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 1.5rem;
}

.inline-info summary::-webkit-details-marker {
  display: none;
}

.inline-info-body {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  width: min(26rem, 70vw);
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(196, 194, 194, 0.45);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(173, 9, 61, 0.1);
}

#effective .actions.import-card {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.table-tools input {
  min-width: 250px;
  flex: 1;
}

th input[type="checkbox"] {
  transform: scale(1.05);
}

.hint {
  color: var(--text-muted);
  margin: 0.65rem 0 0.1rem;
}

.hidden {
  display: none !important;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.pagination p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.1rem;
}

.grid-3 > div {
  flex: 0 0 auto;
  min-width: 320px;
  max-width: 430px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.import-finish-actions {
  margin-top: 1rem;
  padding-top: 0.15rem;
}

.actions p {
  margin: 0;
}

.dropzone {
  border: 2px dashed rgba(173, 9, 61, 0.42);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #ffffff 0%, var(--surface-soft) 100%);
  min-width: 260px;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 1;
}

.format-hints {
  background: var(--surface-soft);
  border: 1px solid rgba(173, 9, 61, 0.14);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.75rem;
}

.format-hints p {
  margin: 0.2rem 0;
  color: var(--text);
  font-size: 0.93rem;
}

.import-card {
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.5);
  border-radius: 14px;
  padding: 0.7rem;
}

#newAiConnectionName {
  min-width: 280px;
  flex: 1 1 280px;
}

#imports .actions {
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.45);
  border-radius: 14px;
  padding: 0.7rem;
  margin-bottom: 0.7rem;
  align-items: center;
}

#imports .actions.import-card {
  border-color: rgba(196, 194, 194, 0.55);
  background: linear-gradient(145deg, #fff 0%, #f7fafc 100%);
}

.connections-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.55);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
}

.status-active,
.status-inactive,
.status-unknown {
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.status-active {
  color: #1f6a45;
  background: #eaf8f1;
}

.status-inactive {
  color: var(--text-muted);
  background: #FCF1F5;
}

.status-unknown {
  color: var(--text-muted);
  background: var(--surface-tint);
}

.ai-inline-row {
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  gap: 0.5rem;
}

.ai-inline-row button {
  white-space: nowrap;
  min-height: 36px;
  line-height: 1.2;
}

.ai-status-pill {
  margin-left: 0;
  text-align: left;
  align-self: center;
}

.ai-status-pill.status-active {
  color: #1f6b3c;
  background: #e9f7ef;
  border: 1px solid rgba(31, 107, 60, 0.18);
}

.ai-status-pill.status-error {
  color: #8a0730;
  background: #fbeff3;
  border: 1px solid rgba(173, 9, 61, 0.2);
}

.ai-status-pill.status-key-missing {
  color: #7a5060;
  background: #f6edf0;
  border: 1px solid #e4d4da;
}

.import-card textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  resize: vertical;
}

.auto-fetch-row {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  align-items: center;
  gap: 0.5rem;
}

.auto-fetch-row > * {
  flex: 0 0 auto;
}

.auto-fetch-row input[type="number"] {
  width: 88px;
}

#backupStatus {
  margin: 0.55rem 0 0.2rem;
}

.backup-actions-row {
  align-items: center;
}

.backup-status-line {
  padding-left: 0.15rem;
  margin-top: 0.7rem !important;
}

.progress {
  width: 100%;
  height: 12px;
  background: var(--surface-track);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 0.9rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D67B9A, #AD093D);
  transition: width 0.12s ease;
}

.info-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.info-btn {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  border-radius: 50%;
  padding: 0;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.file-input-hidden {
  position: absolute;
  left: -9999px;
}

.file-picker-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(173, 9, 61, 0.22);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(173, 9, 61, 0.12);
}

.file-picker-btn:hover {
  background: var(--surface-soft);
}

.record {
  background: #ffffff;
  border: 1px solid rgba(196, 194, 194, 0.55);
  border-radius: 14px;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.4rem;
  position: relative;
  display: block;
  width: 100%;
}

.record-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  flex-wrap: wrap;
}

#groups .record-row[id^="group-row-"],
#catalog .record-row[id^="catalog-row-"],
#classes .record-row[id^="class-row-"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
  align-items: center;
  gap: 0.6rem;
}

#groups .record-row[id^="group-row-"] input,
#catalog .record-row[id^="catalog-row-"] input,
#classes .record-row[id^="class-row-"] input {
  width: 100%;
  min-width: 0;
}

.record-row label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.record-row input {
  min-width: 0;
  padding: 0.42rem 0.5rem;
}

.record-row input[readonly] {
  background: var(--surface-soft);
  color: var(--text);
  border-color: rgba(173, 9, 61, 0.12);
}

.record-row input[type="number"] {
  max-width: 110px;
}

.record-row button {
  padding: 0.42rem 0.58rem;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
}

#groups .record-row[id^="group-row-"] button,
#catalog .record-row[id^="catalog-row-"] button,
#classes .record-row[id^="class-row-"] button {
  justify-self: start;
}

#groups .record-row[id^="group-row-"] .btn-subtle,
#catalog .record-row[id^="catalog-row-"] .btn-subtle,
#classes .record-row[id^="class-row-"] .btn-subtle {
  margin-left: 0.08rem;
}

.factors-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 0.9rem;
}

.factor-col {
  background: linear-gradient(145deg, #ffffff 0%, var(--surface-soft) 100%);
  border: 1px solid rgba(196, 194, 194, 0.55);
  border-radius: 16px;
  padding: 0.75rem;
}

.factor-col > h3 {
  margin: 0 0 0.55rem;
}

#vkFactors,
#ekFactors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#vkFactors .record,
#ekFactors .record {
  margin-bottom: 0;
}

#vkFactors .record h4,
#ekFactors .record h4 {
  margin: 0 0 0.55rem;
  color: var(--text);
}

#vkFactors .record-row strong,
#ekFactors .record-row strong {
  color: var(--text);
  font-weight: 700;
}

#pricing-vk-settings-row,
#pricing-ek-settings-row {
  align-items: flex-end;
}

#pricing-vk-settings-row label,
#pricing-ek-settings-row label {
  flex: 1 1 120px;
  min-width: 112px;
}

#pricing-vk-settings-row .ecb-inline-hint {
  align-self: center;
  margin-left: 0.25rem;
  white-space: nowrap;
}

#vkFactors .record-row[id^="vk-class-row-"],
#ekFactors .record-row[id^="ek-class-row-"] {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 92px auto auto auto;
  align-items: center;
  gap: 0.45rem;
}

#vkFactors .record-row[id^="cond-row-"] {
  display: grid;
  grid-template-columns: 42px 92px max-content max-content max-content max-content;
  align-items: center;
  gap: 0.55rem;
  justify-content: start;
}

#vkFactors .record-row[id^="cond-row-"] .edit-btn,
#vkFactors .record-row[id^="cond-row-"] .save-btn,
#vkFactors .record-row[id^="cond-row-"] .cancel-btn,
#vkFactors .record-row[id^="cond-row-"] .delete-cond-btn {
  min-width: 96px;
  max-width: 96px;
  width: 96px;
  justify-self: start;
  justify-content: center;
}

#cond-create-row {
  display: grid;
  grid-template-columns: 170px 110px max-content;
  align-items: center;
  gap: 0.6rem;
  justify-content: start;
  margin-top: 0.4rem;
  padding-top: 0.15rem;
}

#cond-create-row input {
  min-width: 0;
}

.cond-code {
  width: 36px;
  color: var(--text);
}

.delete-icon-btn {
  position: static;
  transform: none;
  margin-left: 0.2rem;
  width: 34px;
  height: 34px;
  max-width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: #b30a3f;
  font-size: 0.95rem;
}

.record:hover .delete-icon-btn {
  opacity: 1;
  pointer-events: auto;
}

#groups,
#catalog,
#classes,
#conditions,
#aiConnectionsList {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .auth {
    width: 100%;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }
  .tab-panel.active {
    padding: 0.75rem;
  }
  .factors-two-col {
    grid-template-columns: 1fr;
  }
  #vkFactors .record-row[id^="vk-class-row-"],
  #ekFactors .record-row[id^="ek-class-row-"] {
    grid-template-columns: 1fr;
  }
  #vkFactors .record-row[id^="cond-row-"] {
    grid-template-columns: 1fr;
  }
  #cond-create-row {
    grid-template-columns: 1fr;
  }
  #groups .record-row[id^="group-row-"],
  #catalog .record-row[id^="catalog-row-"],
  #classes .record-row[id^="class-row-"] {
    grid-template-columns: 1fr;
  }
  .dashboard-search-card {
    grid-template-columns: 1fr;
  }
  #uiDialogForm label {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
#groups .record.flash-focus,
#catalog .record.flash-focus,
#classes .record.flash-focus {
  outline: 2px solid rgba(173, 9, 61, 0.4);
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.12);
  border-radius: 12px;
}

/* --- 2026-03 Corporate Redesign Override (Photo Vision Zumstein AG) --- */
@font-face {
  font-family: "Futura PT";
  src: local("Futura PT Book"), local("Futura PT Medium"), local("Futura PT");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ci-primary: #AD093D;
  --ci-primary-dark: #8A0730;
  --ci-primary-light: #F5E8ED;
  --ci-info: #69839A;
  --ci-panel-dark: #1E0C13;
  --ci-bg: #F6F6F6;
  --ci-surface: #FFFFFF;
  --ci-border: #E4D4DA;
  --ci-muted: #7A5060;
  --ci-focus: 0 0 0 3px rgba(173, 9, 61, 0.08);
  --sidebar-width: 200px;
  --topbar-height: 52px;
  --detail-panel-width: 420px;
  --ci-font-family: "Futura PT", "Avenir Next", "Avenir", "Gill Sans MT", "Trebuchet MS", sans-serif;
}

* {
  font-family: var(--ci-font-family) !important;
  box-shadow: none;
}

html,
body {
  background: var(--ci-bg) !important;
  color: var(--ci-panel-dark) !important;
}

body {
  line-height: 1.38;
  overflow-x: hidden;
}

input,
select,
textarea,
button,
a,
th,
td,
.card,
.tab-panel,
.topbar,
.tabs button,
.actions,
.import-card,
.overlay-card {
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease, transform 0.2s ease !important;
}

#appShell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ci-bg);
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  padding: 0 18px;
  background: #fff !important;
  border-bottom: 1px solid var(--ci-border) !important;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}

.brand-kicker {
  font-size: 9px !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ci-primary) !important;
  line-height: 1.2;
}

.brand h1 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--ci-panel-dark) !important;
}

.auth {
  background: transparent !important;
  border: 0 !important;
  min-height: 0;
  padding: 0;
}

.tabs {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background: var(--ci-panel-dark) !important;
  border-right: 1px solid rgba(228, 212, 218, 0.18);
  padding: 10px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  z-index: 80;
}

.sidebar-brand {
  padding: 14px 20px 16px;
  border-bottom: 1px solid rgba(228, 212, 218, 0.18);
  margin-bottom: 6px;
}

.sidebar-brand .brand-kicker {
  color: rgba(255, 255, 255, 0.82) !important;
  margin: 0 0 6px;
}

.sidebar-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tabs button {
  width: 100%;
  justify-content: flex-start;
  border: 0 !important;
  border-left: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 20px;
}

.tabs button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: none !important;
}

.tabs button.active {
  border-left-color: var(--ci-primary) !important;
  background: rgba(173, 9, 61, 0.12) !important;
  color: #fff !important;
}

main {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 28px !important;
  background: var(--ci-bg);
  transition: margin-right 0.25s ease-out;
}

#appShell.detail-panel-open main {
  margin-right: var(--detail-panel-width);
}

.tab-panel.active {
  border: 1px solid transparent !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.tab-panel > h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 22px !important;
  line-height: 1.15;
  color: var(--ci-panel-dark) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.tab-panel > h2::before {
  content: attr(data-eyebrow);
  display: block;
  margin-bottom: 10px;
  color: var(--ci-primary);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.tab-panel > h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ci-primary);
  margin-top: 10px;
}

.tab-panel h3,
.tab-panel h4,
label,
th {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.tab-panel h3,
.tab-panel h4 {
  position: relative;
  color: var(--ci-panel-dark) !important;
  font-weight: 700;
  font-size: 13px;
  padding-left: 24px;
}

.tab-panel h3::before,
.tab-panel h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--ci-primary);
  transform: translateY(-50%);
}

.hint,
.pagination p,
.user-admin-mail,
.auth .hint,
.brand-kicker,
.ui-dialog-message-line {
  color: var(--ci-muted) !important;
}

.cards,
.import-card,
.actions,
.table-wrap,
#auditWrap,
.connection-row,
.user-admin-card,
.dropzone,
.format-hints,
.dashboard-search-card,
.prices-table-layout,
.prices-actions-wrap,
.overlay-card,
.success-summary-item {
  background: #fff !important;
  border: 1px solid var(--ci-border) !important;
  border-radius: 0 !important;
}

.dashboard-search-card,
.import-card,
.actions,
.user-admin-card,
.table-wrap,
.overlay-card {
  padding: 14px !important;
}

.card {
  background: var(--ci-surface) !important;
  border: 1px solid var(--ci-border) !important;
  border-top: 2px solid var(--ci-border) !important;
  border-radius: 0 !important;
  min-height: 124px;
}

.card[data-metric="langeNichtGeprueft"] {
  border-top-color: var(--ci-info) !important;
}

.card[data-metric="total"] {
  border-top-color: var(--ci-primary) !important;
}

.card[data-metric]:not([data-metric="total"]):not([data-metric="langeNichtGeprueft"]) {
  border-top-color: var(--ci-border) !important;
}

.card::after {
  display: none !important;
}

.card h3 {
  color: var(--ci-muted) !important;
  font-size: 11px;
  margin-bottom: 8px;
}

.card p {
  font-size: 31px !important;
  line-height: 1;
  color: var(--ci-panel-dark) !important;
  font-weight: 700;
}

.cards .card[data-metric]:hover,
.cards .card[data-metric]:focus-visible {
  border-color: var(--ci-border) !important;
  transform: translateY(-1px) !important;
}

input,
select,
textarea,
button {
  border: 1px solid var(--ci-border) !important;
  border-radius: 0 !important;
  color: var(--ci-panel-dark) !important;
  background: #fff !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--ci-muted) !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none !important;
  border-color: var(--ci-primary) !important;
  box-shadow: var(--ci-focus) !important;
}

.btn-main,
.save-btn,
button:not(.btn-subtle):not(.cancel-btn):not(.landing-lang-btn) {
  background: var(--ci-panel-dark) !important;
  color: #fff !important;
  border-color: var(--ci-panel-dark) !important;
}

#landingLoginBtn {
  background: var(--ci-primary) !important;
  border-color: var(--ci-primary) !important;
  color: #fff !important;
}

#landingLoginBtn:hover {
  background: var(--ci-primary-dark) !important;
  border-color: var(--ci-primary-dark) !important;
}

.btn-main:hover,
.save-btn:hover,
button:not(.btn-subtle):not(.cancel-btn):not(.landing-lang-btn):hover {
  background: var(--ci-primary-dark) !important;
  border-color: var(--ci-primary-dark) !important;
  transform: translateY(-1px) !important;
}

.btn-main:active,
.save-btn:active,
button:not(.btn-subtle):not(.cancel-btn):not(.landing-lang-btn):active {
  transform: scale(0.98) !important;
}

.btn-subtle,
.cancel-btn,
.edit-btn {
  background: #fff !important;
  color: var(--ci-panel-dark) !important;
  border-color: var(--ci-border) !important;
}

.btn-subtle:hover,
.cancel-btn:hover,
.edit-btn:hover {
  background: var(--ci-primary-light) !important;
  border-color: var(--ci-border) !important;
}

table {
  border-collapse: collapse;
  background: #fff !important;
  border: 1px solid var(--ci-border) !important;
  border-radius: 0 !important;
}

th,
td {
  border-bottom: 1px solid var(--ci-border) !important;
  background: #fff;
  color: var(--ci-panel-dark) !important;
  padding: 10px;
}

th {
  background: #fff !important;
  font-size: 11px;
  font-weight: 700;
}

tbody tr td {
  transition: background-color 0.15s ease, padding-left 0.2s ease;
}

tbody tr:hover td {
  background: #fdf5f8 !important;
  padding-left: 14px;
}

#pricesTable,
#pricesActionTable {
  table-layout: fixed;
}

.prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 100px !important;
}

#pricesActionTable {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
}

#pricesTable th.price-col-head,
#pricesTable td.price-value-cell {
  width: 80px !important;
  max-width: 80px !important;
  text-align: right;
}

#pricesTable th.col-sku,
#pricesTable td.col-sku {
  width: 120px;
  max-width: 120px;
}

#pricesActionTable th.col-action,
#pricesActionTable td.col-action {
  width: 100px;
  max-width: 100px;
}

#dashboardDetailWrap {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--detail-panel-width);
  max-width: calc(100vw - 24px);
  z-index: 95;
  background: #fff !important;
  border-left: 1px solid var(--ci-border);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(30, 12, 19, 0.08);
  transition: transform 0.25s ease-out, opacity 0.2s ease;
}

#dashboardDetailWrap:not(.hidden) {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#dashboardDetailWrap .dashboard-audit-head {
  margin: 0;
  padding: 14px 16px;
  background: var(--ci-panel-dark);
  border-bottom: 1px solid var(--ci-border);
}

#dashboardDetailWrap h3 {
  color: #fff !important;
  padding-left: 0;
}

#dashboardDetailWrap h3::before {
  display: none;
}

#dashboardDetailWrap table {
  border: 0 !important;
  border-top: 1px solid var(--ci-border) !important;
  border-radius: 0 !important;
}

.overlay {
  background: rgba(30, 12, 19, 0.48) !important;
}

.ui-dialog-message-line.is-link {
  font-family: "Futura PT" !important;
}

.landing .landing-brand h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

#landingHint.notice-success {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  background: #e8f5ee;
  color: #1a5c36 !important;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 9px !important;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(26, 92, 54, 0.2);
}

.landing-lang-btn {
  border: 1px solid rgba(173, 9, 61, 0.36) !important;
  background: transparent !important;
  color: var(--ci-primary) !important;
}

.landing-lang-btn.active {
  background: var(--ci-primary) !important;
  color: #fff !important;
  border-color: var(--ci-primary) !important;
}

.pagination button:disabled {
  opacity: 0.5;
  transform: none !important;
}

.ki-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  padding: 3px 8px;
  border: 1px solid var(--ci-border);
  color: var(--ci-info);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.ki-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #378ADD;
  animation: kiPulse 1.8s infinite;
}

.ki-live-badge.is-reviewed {
  color: #2f6c47;
  transform: scale(1.1);
  transition: transform 0.2s ease, color 0.15s ease;
}

.suggestion-row-exit {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes kiPulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(0.9); }
}

.stagger-in {
  opacity: 0;
  transform: translateY(16px);
  animation: staggerReveal 0.32s ease forwards;
  animation-delay: var(--stagger-delay, 0ms);
}

@keyframes staggerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skeleton-row td {
  padding-top: 11px;
  padding-bottom: 11px;
  background: #fff !important;
}

.skeleton-shimmer {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #EDE6E9 25%, #F5EEF1 50%, #EDE6E9 75%);
  background-size: 240% 100%;
  animation: skeletonShimmer 1.2s linear infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#suggestionsEmpty,
#effectiveEmpty,
#clarificationsEmpty,
#backupEmpty {
  margin-top: 16px;
  border: 1px solid var(--ci-border);
  background: #fff;
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--ci-muted) !important;
  position: relative;
}

#suggestionsEmpty::before,
#effectiveEmpty::before,
#clarificationsEmpty::before,
#backupEmpty::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23AD093D'/%3E%3C/svg%3E");
}

#audit .empty-state-block {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ci-muted);
  text-align: center;
}

#audit .empty-state-icon {
  width: 12px;
  height: 12px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23AD093D'/%3E%3C/svg%3E");
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--ci-border);
}

::-webkit-scrollbar-thumb {
  background: var(--ci-primary);
  border-radius: 2px;
}

.prices-table-wrap::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.prices-table-wrap::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: #E4D4DA;
}

.prices-table-wrap::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: #AD093D;
  border-radius: 2px;
}

.dashboard-search-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.dashboard-search-card input {
  flex: 0 1 60%;
  max-width: 60%;
}

#dashboardProductSearchBtn {
  padding: 8px 20px !important;
  min-height: 0 !important;
}

.manual-product-card {
  display: grid;
  gap: 10px;
}

.manual-product-main-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.manual-product-main-row #manualProductName,
.manual-product-main-row #manualProductSkuZumstein {
  min-width: 220px;
  flex: 0 1 260px;
}

.manual-product-main-row #manualProductVkA {
  width: 140px;
}

.manual-product-more summary {
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--ci-muted);
}

.manual-product-more-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 3px !important;
  background: #fff !important;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: center / 10px 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4 4.7 8.9 9.8 3.8' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 1080px) {
  .tabs {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 6px;
  }

  .tabs button {
    border-left: 0 !important;
    border-bottom: 2px solid transparent !important;
    padding: 10px 12px;
    font-size: 10px;
  }

  .sidebar-brand {
    display: none;
  }

  .tabs button.active {
    border-bottom-color: var(--ci-primary) !important;
  }

  .topbar,
  main {
    margin-left: 0;
    left: 0;
  }

  .topbar {
    position: sticky;
  }

  main {
    margin-top: 0;
    padding: 18px !important;
  }

  .dashboard-search-card input {
    flex-basis: 100%;
    max-width: 100%;
  }

  #appShell.detail-panel-open main {
    margin-right: 0;
  }

  #dashboardDetailWrap {
    width: min(420px, 92vw);
  }
}

/* --- 2026-03 Precision Refinements --- */
main {
  padding: 40px !important;
}

.tab-panel.active > * + * {
  margin-top: 32px !important;
}

.topbar {
  justify-content: space-between !important;
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.topbar-brand .brand-kicker {
  margin: 0;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  color: var(--ci-muted) !important;
}

.topbar-brand h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ci-panel-dark);
}

.tabs {
  padding-top: 10px !important;
}

.sidebar-brand {
  display: none !important;
}

.tabs .sidebar-user {
  margin-top: auto;
  padding: 14px 12px 16px;
  width: 100%;
}

.tabs .sidebar-user .user-badge {
  width: 100%;
  min-height: 36px;
  border-radius: 4px !important;
  border-color: rgba(228, 212, 218, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.tabs .sidebar-user .user-menu {
  right: 12px;
  left: 12px;
  min-width: 0;
}

.tab-panel > h2 {
  font-size: 20px !important;
  letter-spacing: 0.08em !important;
}

.tab-panel > h2::before {
  content: none !important;
  display: none !important;
}

.tab-panel > h2::after {
  width: 32px !important;
  height: 2px !important;
}

.tab-panel h3::before,
.tab-panel h4::before {
  content: none !important;
  display: none !important;
}

.tab-panel h3,
.tab-panel h4 {
  padding-left: 0 !important;
}

.cards,
.dashboard-search-card,
.actions,
.import-card,
.table-wrap,
#auditWrap,
.prices-table-layout,
.prices-actions-wrap,
.user-admin-card,
.connection-row,
.dropzone,
.format-hints {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.card {
  padding: 20px !important;
  border: 0 !important;
  border-top: 2px solid var(--ci-border) !important;
}

.dashboard-search-card {
  max-width: 100%;
}

.dashboard-search-card input {
  max-width: 60% !important;
  flex-basis: 60% !important;
}

#dashboardProductSearchBtn {
  padding: 8px 20px !important;
}

#pricesTable {
  border: 1px solid var(--ci-border) !important;
}

#pricesActionTable {
  border-top: 1px solid var(--ci-border) !important;
  border-right: 1px solid var(--ci-border) !important;
  border-bottom: 1px solid var(--ci-border) !important;
}

.landing-card {
  border-radius: 6px !important;
}

.landing .landing-form input,
.landing .landing-form button,
#landingLangDe,
#landingLangFr {
  border-radius: 4px !important;
}

.landing-lang-toggle,
.user-lang-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 8px !important;
}

.landing-lang-btn {
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  padding: 5px 12px !important;
  min-height: 0 !important;
  height: auto !important;
}

.landing .brand-kicker {
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
}

#landingLoginBtn {
  border-radius: 4px !important;
}

.manual-product-main-row,
.manual-product-more-grid {
  gap: 12px !important;
}

.manual-product-main-row input,
.manual-product-main-row select,
.manual-product-main-row button,
.manual-product-more-grid input,
.manual-product-more-grid select {
  min-height: 40px !important;
  height: 40px !important;
}

.manual-product-main-row input::placeholder,
.manual-product-more-grid input::placeholder {
  font-size: 12px !important;
  color: #9a7080 !important;
  font-weight: 400;
}

.manual-product-more {
  margin-top: 2px;
}

.manual-product-more summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: #7A5060 !important;
  list-style: none;
  padding: 0;
}

.manual-product-more summary::-webkit-details-marker {
  display: none;
}

.manual-product-more summary::after {
  content: '\203A';
  font-size: 11px;
  transform: translateY(-1px);
}

.manual-product-more[open] summary::after {
  transform: rotate(90deg);
}

body,
button,
.card,
.import-card,
.actions,
.dashboard-search-card,
.landing,
.tab-panel,
.topbar,
.tabs,
.overlay-card {
  background-image: none !important;
}

.card::after,
.landing::before,
.landing::after,
.landing-card::after {
  display: none !important;
}

@media (max-width: 1080px) {
  main {
    padding: 24px !important;
  }

  .tabs .sidebar-user {
    margin-top: 0;
    margin-left: auto;
    width: auto;
    padding: 0;
  }

  .tabs .sidebar-user .user-badge {
    width: auto;
    min-width: 42px;
    color: var(--ci-panel-dark) !important;
    background: #fff !important;
  }

  .dashboard-search-card input {
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* --- 2026-03 Refinement v4: Dashboard & Navigation --- */
.topbar {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  background: #fff !important;
  border-bottom: 1px solid #E4D4DA !important;
}

.topbar-page-name {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1E0C13;
}

.topbar-brand {
  display: none !important;
}

.auth {
  display: flex;
  align-items: center;
  gap: 0;
}

.tabs {
  height: 100vh !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: block !important;
  padding: 14px 20px 10px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(228, 212, 218, 0.18);
}

.sidebar-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tabs button:last-of-type {
  margin-bottom: 0;
}

.tabs .sidebar-user {
  display: none !important;
}

.user-badge {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #AD093D !important;
  background: #AD093D !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700;
}

.user-menu {
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  border: 1px solid #E4D4DA !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(30, 12, 19, 0.08) !important;
  padding: 4px 0;
}

.user-menu .btn-subtle {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1E0C13 !important;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  justify-content: flex-start;
  padding: 10px 16px !important;
}

.user-menu .btn-subtle:hover {
  background: #F5E8ED !important;
  color: #AD093D !important;
}

.card {
  border: 1px solid #E4D4DA !important;
  border-top-width: 2px !important;
  background: #FFFFFF !important;
}

.dashboard-search-card {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.cards,
#auditWrap,
.dashboard-audit-head,
.actions,
.import-card,
.prices-table-layout,
.prices-actions-wrap,
.table-wrap {
  border: 0 !important;
  box-shadow: none !important;
}

#auditWrap {
  background: transparent !important;
  padding: 0 !important;
  min-height: 220px;
}

#audit {
  min-height: 220px;
}

#audit .empty-state-block {
  min-height: 220px;
  justify-content: center;
  gap: 12px;
}

#audit .empty-state-icon {
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 3.5h7l4 4V20a.5.5 0 0 1-.5.5h-10A.5.5 0 0 1 7 20V3.5Z' stroke='%23AD093D' stroke-width='1.4'/%3E%3Cpath d='M14 3.5V8h4' stroke='%23AD093D' stroke-width='1.4'/%3E%3Cpath d='M9.5 12.5h5M9.5 15.5h5' stroke='%23AD093D' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

#audit .empty-state-block p {
  margin: 0;
  font-size: 9px;
  color: #9a7080;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tab-panel h3,
.tab-panel h4,
.card h3 {
  padding-left: 0 !important;
}

.card h3::before,
.tab-panel h3::before,
.tab-panel h4::before {
  content: none !important;
}

@media (max-width: 1080px) {
  .topbar-page-name {
    display: none;
  }
}

/* --- 2026-03 Refinement v5: Comprehensive Fixes --- */
.topbar {
  display: none !important;
}

main {
  margin-top: 0 !important;
  margin-left: var(--sidebar-width) !important;
}

.tabs {
  height: 100vh !important;
  padding: 0 !important;
}

.sidebar-brand {
  padding: 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(228, 212, 218, 0.18);
}

.sidebar-brand img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.sidebar-brand p {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tabs button {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  color: rgba(255, 255, 255, 0.5) !important;
  padding: 8px 20px 8px 22px !important;
}

.tabs button.active {
  border-left: 2px solid #AD093D !important;
  background: rgba(173, 9, 61, 0.1) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding-left: 20px !important;
}

.tabs .sidebar-user {
  display: block !important;
  margin-top: auto !important;
  padding: 12px 14px 14px !important;
}

.tabs .sidebar-user .user-badge {
  margin-left: auto;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 1px solid #AD093D !important;
  background: #AD093D !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.tabs .sidebar-user .user-menu {
  right: 0;
  left: auto;
  min-width: 190px;
  border: 1px solid #E4D4DA !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(30, 12, 19, 0.08) !important;
  padding: 4px 0;
}

.tabs .sidebar-user .user-menu .btn-subtle {
  font-family: "Futura PT";
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: #1E0C13 !important;
  border-radius: 0 !important;
}

.tabs .sidebar-user .user-menu .btn-subtle:hover {
  background: #F5E8ED !important;
  color: #AD093D !important;
}

#dashboardWelcome {
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  margin: 0 !important;
  color: #1E0C13 !important;
}

#dashboardWelcome::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #AD093D;
  margin-top: 12px;
}

.audit-filters select,
.audit-filters button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  font-family: "Futura PT";
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #7A5060 !important;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 !important;
  background: #fff;
  border: 1px solid #E4D4DA;
}

.card {
  border: 0 !important;
  border-right: 1px solid #E4D4DA !important;
  border-top: 1px solid #E4D4DA !important;
  border-radius: 0 !important;
  background: #fff !important;
  min-height: 0;
}

.cards .card:last-child {
  border-right: 0 !important;
}

.card[data-metric="total"] {
  border-top: 2px solid #AD093D !important;
}

.card[data-metric="langeNichtGeprueft"] {
  border-top: 2px solid #69839A !important;
}

.card[data-metric]:not([data-metric="total"]):not([data-metric="langeNichtGeprueft"]) {
  border-top: 1px solid #E4D4DA !important;
}

.dashboard-search-card,
.dashboard-audit-head,
#auditWrap {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#pricesTable {
  table-layout: fixed !important;
}

#pricesTable th,
#pricesTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pricesTable th.col-sku-mpb,
#pricesTable td.col-sku-mpb {
  width: 100px !important;
  max-width: 100px !important;
}

#pricesTable th.col-sku-zs,
#pricesTable td.col-sku-zs {
  width: 110px !important;
  max-width: 110px !important;
}

#pricesTable th.price-col-head,
#pricesTable td.price-value-cell {
  width: 80px !important;
  max-width: 80px !important;
  text-align: right !important;
}

#pricesTable th:nth-child(7),
#pricesTable td:nth-child(7) {
  width: 90px !important;
  max-width: 90px !important;
}

#pricesActionTable,
#pricesActionTable th,
#pricesActionTable td {
  width: 100px !important;
  max-width: 100px !important;
}

#pricesTable th.col-name,
#pricesTable td.col-name {
  width: auto !important;
}

body:not(.show-extended-prices) #pricesTable th:nth-child(n+8),
body:not(.show-extended-prices) #pricesTable td:nth-child(n+8) {
  display: none;
}

#effective .manual-product-more summary {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  color: #7A5060 !important;
}

#effective .manual-product-more summary::after {
  content: '\203A';
  margin-left: 4px;
}

.record-row .edit-btn {
  display: none !important;
}

.record-row .save-btn,
.record-row .cancel-btn {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  font-size: 13px;
  border-radius: 4px !important;
}

.record-row .btn-subtle {
  opacity: 0;
  color: #AD093D !important;
  font-size: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.record-row:hover .btn-subtle {
  opacity: 1;
}

input,
select,
button,
.card,
.overlay-card,
.user-menu,
.import-card,
.actions,
.table-wrap {
  border-radius: 4px !important;
}

.card { border-radius: 6px !important; }

.btn-main,
.save-btn,
button:not(.btn-subtle):not(.cancel-btn):not(.landing-lang-btn) {
  background: #AD093D !important;
  border: 1px solid #AD093D !important;
  border-radius: 4px !important;
  color: #fff !important;
}

.btn-subtle,
.cancel-btn,
.edit-btn {
  background: transparent !important;
  border: 1px solid #C9A8B5 !important;
  border-radius: 4px !important;
  color: #7A5060 !important;
}

.details-panel,
#dashboardDetailWrap {
  box-shadow: -4px 0 24px rgba(30, 12, 19, 0.08) !important;
}

.cards,
.import-card,
.actions,
.table-wrap,
#auditWrap,
.overlay-card,
.user-admin-card,
.connection-row,
.dropzone,
.format-hints,
.dashboard-search-card,
.prices-table-layout,
.prices-actions-wrap,
.tab-panel,
main,
.landing,
.landing-card {
  box-shadow: none !important;
  background-image: none !important;
}

@media (max-width: 1080px) {
  .tabs {
    height: auto !important;
  }

  .tabs .sidebar-user {
    margin-top: 0 !important;
    margin-left: auto;
  }
}

/* --- 2026-03 Refinement v6: CI & Usability --- */
:root {
  --radius-btn: 4px;
  --radius-input: 4px;
  --radius-card: 6px;
  --radius-pill: 3px;
}

button,
input,
select,
textarea {
  border-radius: var(--radius-input) !important;
}

button,
.btn-main,
.btn-subtle,
.save-btn,
.cancel-btn,
.edit-btn {
  border-radius: var(--radius-btn) !important;
}

.card,
.import-card,
.actions,
.table-wrap,
.overlay-card,
.user-menu,
.record,
.record-row,
.dashboard-search-card,
#auditWrap,
.prices-table-layout,
.prices-actions-wrap {
  border-radius: var(--radius-card) !important;
}

.status-active,
.status-inactive,
.status-unknown,
.reviewed-badge,
.ki-live-badge,
.pagination button {
  border-radius: var(--radius-pill) !important;
}

.tabs {
  padding-bottom: 0 !important;
}

.tabs button {
  color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
}

.tabs button.active {
  background: rgba(173, 9, 61, 0.12) !important;
  border-left: 2px solid #AD093D !important;
  color: #fff !important;
}

.sidebar-brand {
  padding: 0 !important;
  border: 0 !important;
}

.sidebar-brand img {
  max-width: 120px !important;
  margin: 20px auto 8px 16px;
}

.sidebar-brand p {
  margin: 0 0 10px 16px;
  font-size: 9px !important;
  letter-spacing: 0.18em !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

#dashboardWelcome {
  margin: 0 !important;
}

.dashboard-greeting-kicker {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #AD093D;
  margin-bottom: 6px;
}

.dashboard-greeting-name {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1E0C13;
}

#dashboardWelcome::after {
  width: 32px !important;
}

.cards {
  border: 0 !important;
  background: transparent !important;
}

.card {
  border-radius: 0 !important;
  border-left: 1px solid #E4D4DA !important;
  border-right: 0 !important;
}

.cards .card:first-child {
  border-left: 1px solid #E4D4DA !important;
}

.audit-filters {
  gap: 8px !important;
}

.audit-filters select,
.audit-filters button {
  height: 28px !important;
  min-height: 28px !important;
  width: fit-content !important;
  padding: 0 12px !important;
  font-size: 9px !important;
}

.prices-table-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.prices-actions-wrap {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #fff !important;
}

.action-cell-inner {
  justify-content: flex-end !important;
}

.reviewed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  background: #e8f5ee;
  color: #1a5c36;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delete-mini-btn {
  font-size: 10px !important;
  padding: 4px 8px !important;
  border: 1px solid #E4D4DA !important;
  color: #7A5060 !important;
  background: transparent !important;
}

.kebab-wrap {
  position: relative;
}

.kebab-btn {
  width: 24px;
  height: 24px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #7A5060 !important;
  font-size: 18px;
  line-height: 1;
}

.kebab-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  border: 1px solid #E4D4DA;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 12, 19, 0.08);
  padding: 4px 0;
  z-index: 15;
}

.kebab-menu button {
  width: 100%;
  justify-content: flex-start;
  border: 0 !important;
  background: transparent !important;
  color: #1E0C13 !important;
  padding: 8px 12px !important;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kebab-menu button:hover {
  background: #F5E8ED !important;
  color: #AD093D !important;
}

#imports .settings-accordion-section {
  border-bottom: 1px solid #E4D4DA;
}

#imports .settings-accordion-trigger {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: #1E0C13;
  padding: 14px 0 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: space-between;
}

#imports .settings-accordion-trigger:hover {
  color: #AD093D;
}

#imports .settings-accordion-trigger .chevron {
  transition: transform 0.2s ease;
}

#imports .settings-accordion-section:not(.is-open) .settings-accordion-content {
  display: none;
}

#imports .settings-accordion-section.is-open .settings-accordion-trigger .chevron {
  transform: rotate(90deg);
}

input[type="file"] {
  display: none !important;
}

.file-picker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #C9A8B5;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7A5060;
  background: transparent;
  cursor: pointer;
}

.ui-dialog-card {
  border-radius: 6px !important;
  border: 1px solid #E4D4DA !important;
  box-shadow: 0 8px 32px rgba(30, 12, 19, 0.12) !important;
}

.ui-dialog-head h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.ui-dialog-message-line {
  font-family: "Jost", "Futura PT", sans-serif !important;
  font-size: 13px !important;
}

.ui-dialog-card.dialog-tone-danger {
  border-top: 3px solid #AD093D !important;
}

.landing {
  background: #F6F6F6 !important;
}

.landing::before,
.landing::after {
  display: block !important;
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
}

.landing::before {
  top: -120px;
  left: -100px;
  width: 420px;
  height: 300px;
  background: #E8C4D0;
  opacity: 0.35;
}

.landing::after {
  right: -120px;
  bottom: -100px;
  width: 380px;
  height: 280px;
  background: #D4A8BC;
  opacity: 0.25;
}

.landing-card {
  position: relative;
  z-index: 2;
}

/* --- 2026-03 Refinement v7: Final Consistency Pass --- */
:root {
  --radius-input: 4px;
  --radius-btn: 4px;
  --radius-card: 6px;
  --radius-pill: 3px;
}

input,
select,
textarea {
  border-radius: var(--radius-input) !important;
}

button,
.btn-main,
.btn-subtle,
.pagination button,
#landingLoginBtn,
#suggestionsPrev,
#suggestionsNext {
  border-radius: var(--radius-btn) !important;
}

.card,
.record,
.import-card,
.table-wrap,
.prices-table-layout,
#auditWrap,
#dashboardDetailWrap,
.user-menu,
.ui-dialog-card,
.landing-card {
  border-radius: var(--radius-card) !important;
}

.reviewed-badge,
.ki-live-badge,
.role-chip,
.status-active,
.status-inactive {
  border-radius: var(--radius-pill) !important;
}

button:not(.kebab-btn):not(.settings-accordion-trigger):not(.user-badge):not(.landing-lang-btn):not(.inline-field-save):not(.icon-btn):not(.jump-btn),
.save-btn,
.edit-btn,
.cancel-btn,
.pagination button,
#landingLoginBtn {
  min-height: 34px;
  padding: 8px 18px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

button:not(.btn-main):not(.kebab-btn):not(.settings-accordion-trigger):not(.user-badge):not(.landing-lang-btn):not(.inline-field-save):not(.icon-btn):not(.jump-btn),
.btn-subtle,
.edit-btn,
.cancel-btn,
.delete-mini-btn {
  background: transparent !important;
  border: 1px solid #C9A8B5 !important;
  color: #7A5060 !important;
}

button.btn-main,
.save-btn,
#landingLoginBtn,
#createManualProductBtn,
#previewManualBulkBtn,
#importManualBulkBtn,
#acceptSelectedBtn,
#openImportStep1Btn {
  background: #AD093D !important;
  border: 1px solid #AD093D !important;
  color: #fff !important;
}

button:disabled,
.btn-main:disabled,
.btn-subtle:disabled,
#landingLoginBtn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.tabs {
  height: 100vh !important;
}

.sidebar-brand {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 0 !important;
}

.sidebar-brand img {
  max-width: 120px !important;
  margin: 20px auto 8px 16px !important;
}

.sidebar-brand p {
  margin: 0 0 10px 16px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35) !important;
}

.tabs button {
  color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
  border-left: 2px solid transparent !important;
}

.tabs button.active {
  border-left: 2px solid #AD093D !important;
  background: rgba(173, 9, 61, 0.15) !important;
  color: #fff !important;
}

#dashboardWelcome {
  margin: 0 !important;
}

.dashboard-greeting-kicker {
  display: block;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: #AD093D !important;
  margin-bottom: 6px;
}

.dashboard-greeting-name {
  display: block;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: #1E0C13;
}

#dashboardWelcome::after {
  width: 32px !important;
  height: 2px !important;
}

.cards {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cards .card {
  border: 1px solid #E4D4DA !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.cards .card[data-metric="total"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="langeNichtGeprueft"] { border-top: 2px solid #69839A !important; }
.cards .card:not([data-metric="total"]):not([data-metric="langeNichtGeprueft"]) { border-top: 2px solid #E4D4DA !important; }

.cards::before,
.cards::after,
.dashboard-search-card::before,
.dashboard-search-card::after {
  content: none !important;
}

.dashboard-audit-head,
#auditWrap,
.dashboard-search-card,
.actions,
.import-card,
.prices-table-layout {
  border: 0 !important;
  box-shadow: none !important;
}

.audit-filters {
  gap: 8px !important;
}

.audit-filters select,
.audit-filters button,
#auditMonths,
#auditUser,
#toggleAuditBtn {
  width: fit-content !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #7A5060 !important;
}

#pricesTable {
  table-layout: fixed !important;
}

.prices-table-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.prices-actions-wrap {
  position: sticky !important;
  right: 0 !important;
  z-index: 6 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#pricesActionTable th.col-action,
#pricesActionTable td.col-action {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  text-align: right !important;
}

.action-cell-inner {
  justify-content: flex-end !important;
}

.reviewed-badge {
  background: #e8f5ee !important;
  border: 1px solid #cbe4d6 !important;
  color: #1a5c36 !important;
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}

.delete-mini-btn {
  padding: 4px 10px !important;
  font-size: 10px !important;
  border: 1px solid #E4D4DA !important;
  color: #7A5060 !important;
  background: transparent !important;
}

#master .record-row input {
  background: #F6F6F6 !important;
  border: 1px solid #E4D4DA !important;
}

#master .record-row.editing input:not([disabled]) {
  background: #fff !important;
}

#master .record-row.editing input:not([disabled]):focus {
  border-color: #AD093D !important;
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.08) !important;
}

#master .record-row .inline-field-save {
  margin-left: 8px;
  min-height: 28px;
  padding: 4px 10px !important;
  border: 1px solid #AD093D !important;
  background: #AD093D !important;
  color: #fff !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  border-radius: 4px !important;
}

#master .record-row .save-btn,
#master .record-row .cancel-btn {
  display: none !important;
}

#classes .record-row[id^="class-row-"] .edit-btn,
#classes .record-row[id^="class-row-"] .btn-subtle {
  opacity: 0;
  pointer-events: none;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #9A7080 !important;
  font-size: 0 !important;
}

#classes .record-row[id^="class-row-"] .edit-btn::before {
  content: "\270E";
  font-size: 14px;
  line-height: 1;
  color: #AD093D;
}

#classes .record-row[id^="class-row-"] .btn-subtle::before {
  content: "\1F5D1";
  font-size: 14px;
  line-height: 1;
  color: #9A7080;
}

#classes .record-row[id^="class-row-"]:hover {
  background: #fdf5f8 !important;
}

#classes .record-row[id^="class-row-"]:hover .edit-btn,
#classes .record-row[id^="class-row-"]:hover .btn-subtle {
  opacity: 1;
  pointer-events: auto;
}

#suggestionSearch,
#suggestionConfidenceFilter,
#suggestionPageSize {
  height: 36px !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  font-family: "Jost", "Futura PT", sans-serif !important;
  font-size: 12px !important;
  padding: 0 12px !important;
}

.pagination button {
  border-radius: 4px !important;
}

.pagination button:disabled {
  opacity: 0.35 !important;
}

.pagination p {
  color: #7A5060 !important;
  font-family: "Jost", "Futura PT", sans-serif !important;
  font-size: 12px !important;
}

#imports .settings-accordion-trigger {
  color: #1E0C13 !important;
  background: #F6F6F6 !important;
  border-bottom: 1px solid #E4D4DA !important;
  padding: 14px 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

#imports .settings-accordion-section.is-open .settings-accordion-trigger {
  background: #fff !important;
  border-left: 2px solid #AD093D;
  padding-left: 10px !important;
}

#imports .settings-accordion-trigger .chevron {
  color: #AD093D !important;
}

.landing {
  position: relative;
  overflow: hidden;
  background: #F6F6F6 !important;
}

.landing::before,
.landing::after {
  position: fixed !important;
  z-index: 0 !important;
}

.landing-card {
  position: relative !important;
  z-index: 1 !important;
}

/* --- 2026-03 Refinement v8: Live Review Fixes --- */
.tabs button {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 8px 20px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  border-left: none !important;
}

.tabs button.active {
  border-left: 3px solid #AD093D !important;
  background: rgba(173, 9, 61, 0.2) !important;
  color: #ffffff !important;
  padding-left: 17px !important;
}

.dashboard-search-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#dashboardProductSearch {
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  background: #fff !important;
}

.cards .card[data-metric="total"] {
  border-top: 2px solid #AD093D !important;
}

.cards .card[data-metric="langeNichtGeprueft"] {
  border-top: 2px solid #69839A !important;
}

.cards .card[data-metric="nieGeprueft"],
.cards .card[data-metric="noBuyback"],
.cards .card[data-metric="kiPending"] {
  border-top: 2px solid #E4D4DA !important;
}

#toggleManualBulkBtn {
  border: 1px solid #C9A8B5 !important;
  color: #7A5060 !important;
  font-size: 10px !important;
  padding: 7px 14px !important;
  border-radius: 4px !important;
  background: transparent !important;
}

#master input,
#master select,
#master textarea,
#master .record-row input,
#master .record-row select,
#master .record-row textarea {
  border-radius: 4px !important;
  background: #F6F6F6 !important;
  border: 1px solid #E4D4DA !important;
}

#master input:focus,
#master select:focus,
#master textarea:focus,
#master .record-row.editing input:not([disabled]):focus {
  background: #fff !important;
  border-color: #AD093D !important;
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.08) !important;
}

#vkFactors .record-row strong,
#ekFactors .record-row strong,
#classes .record-row[id^="class-row-"] input {
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #1E0C13 !important;
}

#master .factor-col > h3,
#master #vkFactors .record h4,
#master #ekFactors .record h4,
#master .grid-3 > div > h3 {
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: #1E0C13 !important;
  border-bottom: 1px solid #E4D4DA !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
}

#master .record-row .inline-field-save {
  display: none !important;
}

#master .record-row .inline-row-save {
  margin-left: auto;
  min-height: 28px;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  border: 1px solid #AD093D !important;
  background: #AD093D !important;
  color: #fff !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

#master .record-row .inline-row-save.is-submitting {
  background: #1a5c36 !important;
  border-color: #1a5c36 !important;
}

.landing::before,
.landing::after {
  opacity: 1 !important;
}

.landing.login-burst::before,
.landing.login-burst::after {
  opacity: 1 !important;
}

.landing-lang-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 6px !important;
}

.landing-lang-btn {
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  padding: 4px 12px !important;
  min-height: 30px !important;
  min-width: auto !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  background: transparent !important;
  color: #7A5060 !important;
}

.landing-lang-btn.active {
  background: #AD093D !important;
  color: #fff !important;
  border-color: #AD093D !important;
}

/* --- 2026-03 Refinement v9: Technical CSS Cleanup --- */
:root {
  --fs-9: 9px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-16: 16px;
  --fs-28: 28px;
  --r-4: 4px;
  --r-6: 6px;
}

/* Font-size system: only 9 / 12 / 13 / 16 / 28 */
body {
  font-size: var(--fs-13) !important;
}

h1,
h2,
h3,
h4,
.topbar-page-name,
.tab-panel > h2,
.tab-panel > h3,
.tab-panel > h4 {
  font-size: var(--fs-16) !important;
}

p,
span,
div,
label,
li,
input,
select,
textarea,
table,
th,
td,
.hint,
.ui-dialog-message-line,
.pagination p {
  font-size: var(--fs-12) !important;
}

button,
.btn-main,
.btn-subtle,
.tabs button,
.landing-lang-btn,
.reviewed-badge,
.role-chip,
.status-active,
.status-inactive,
.ki-live-label,
.dashboard-greeting-kicker {
  font-size: var(--fs-9) !important;
}

.dashboard-greeting-name,
.cards .card p,
#import-summary-imported,
#import-summary-inserted,
#import-summary-updated,
#import-summary-clarifications,
#card-total,
#card-nie,
#card-stale,
#card-no-buyback,
#card-ki {
  font-size: var(--fs-28) !important;
}

/* Shadow cleanup: only focus ring + detail panel shadow allowed */
*,
*::before,
*::after {
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
#master .record-row.editing input:not([disabled]):focus {
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.08) !important;
}

#dashboardDetailWrap,
.dashboard-detail-panel {
  box-shadow: -4px 0 24px rgba(30, 12, 19, 0.08) !important;
}

/* Radius system: only 4 / 6 / 50% */
input,
select,
textarea,
button,
.btn-main,
.btn-subtle,
.reviewed-badge,
.ki-live-badge,
.role-chip,
.status-active,
.status-inactive,
.pagination button,
.landing-lang-btn,
.file-picker-btn {
  border-radius: var(--r-4) !important;
}

.card,
.record,
.import-card,
.table-wrap,
.prices-table-layout,
#auditWrap,
#dashboardDetailWrap,
.user-menu,
.ui-dialog-card,
.landing-card,
.factor-col,
.tab-panel.active {
  border-radius: var(--r-6) !important;
}

.user-badge,
.avatar,
.user-avatar {
  border-radius: 50% !important;
}

/* Sidebar nav items: no box borders, only active left border */
.tabs button,
.nav-item {
  border: none !important;
  border-left: none !important;
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  padding-left: 20px !important;
}

.tabs button.active,
.nav-item.active {
  border-left: 3px solid #AD093D !important;
  background: rgba(173, 9, 61, 0.2) !important;
  color: #ffffff !important;
  padding-left: 17px !important;
}

/* KPI cards: all five have top border */
.cards .card[data-metric="total"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="langeNichtGeprueft"] { border-top: 2px solid #69839A !important; }
.cards .card[data-metric="nieGeprueft"],
.cards .card[data-metric="noBuyback"],
.cards .card[data-metric="kiPending"] { border-top: 2px solid #E4D4DA !important; }

/* Dashboard search container unboxed */
.dashboard-search-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

#dashboardProductSearch {
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  background: #fff !important;
}

/* Import button hierarchy and states */
#acceptSelectedBtn {
  background: #AD093D !important;
  border: 1px solid #AD093D !important;
  color: #fff !important;
}

#undoSuggestionsBtn {
  background: transparent !important;
  border: 1px solid #C9A8B5 !important;
  color: #7A5060 !important;
}

#suggestionsPrev,
#suggestionsNext {
  border-radius: 4px !important;
}

#suggestionsPrev:disabled,
#suggestionsNext:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

/* Import filter inputs unified */
#suggestionConfidenceFilter,
#suggestionPageSize {
  height: 36px !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  background: #fff !important;
}

/* Settings accordion hierarchy */
#imports .settings-accordion-section {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #E4D4DA !important;
}

#imports .settings-accordion-trigger {
  color: #1E0C13 !important;
}

#imports .settings-accordion-section.is-open .settings-accordion-trigger {
  color: #AD093D !important;
}

/* Login waves: visible from first render, no delayed reveal */
.landing::before,
.landing::after {
  opacity: 1 !important;
  animation: none !important;
}

/* v9 shadow hard reset for interactive/components */
button,
.btn-main,
.btn-subtle,
.edit-btn,
.save-btn,
.cancel-btn,
.card,
.record,
.import-card,
.table-wrap,
.prices-table-layout,
.prices-actions-wrap,
.user-menu,
.user-menu-wrap,
.dropdown,
.kebab-menu,
.file-picker-btn,
.landing-card,
.factor-col,
.tab-panel,
.tab-panel.active {
  box-shadow: none !important;
}

/* --- 2026-03 Refinement v10: Visual Alignment Pass --- */
.tabs {
  background: #1E0C13 !important;
  border-right: 1px solid rgba(228, 212, 218, 0.2) !important;
}

.sidebar-brand {
  padding: 18px 16px 10px 16px !important;
}

.sidebar-brand img {
  max-width: 110px !important;
  width: 110px !important;
  filter: brightness(0) invert(1) !important;
  margin: 0 0 8px 0 !important;
}

.sidebar-brand p {
  margin: 0 !important;
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  letter-spacing: 0.18em !important;
}

.tabs button,
.nav-item {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  padding: 9px 20px !important;
}

.tabs button.active,
.nav-item.active {
  border-left: 3px solid #AD093D !important;
  background: rgba(173, 9, 61, 0.22) !important;
  color: #fff !important;
}

.tabs .sidebar-user,
#userMenuWrap.sidebar-user {
  display: flex !important;
  margin-top: auto !important;
  margin-left: 14px !important;
  margin-bottom: 16px !important;
  align-self: flex-start !important;
}

.tabs .sidebar-user .user-badge,
#userBadge.user-badge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  border: 1px solid #AD093D !important;
  background: #AD093D !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
}

.dashboard-greeting-kicker {
  font-size: 14px !important;
  letter-spacing: 0.18em !important;
  color: #AD093D !important;
}

.tab-panel > h2,
#dashboard > h2,
#effective > h2,
#suggestions > h2,
#master > h2,
#imports > h2,
#export > h2,
#backup > h2 {
  font-size: 24px !important;
  letter-spacing: 0.08em !important;
  color: #1E0C13 !important;
}

.card,
.record,
.import-card,
.factor-col,
.table-wrap,
.prices-table-layout,
#dashboardDetailWrap,
#auditWrap,
#imports .settings-accordion-section,
#imports .settings-accordion-content {
  background: #fff !important;
  border: 1px solid #E4D4DA !important;
}

.cards .card[data-metric="total"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="langeNichtGeprueft"] { border-top: 2px solid #69839A !important; }
.cards .card[data-metric="nieGeprueft"],
.cards .card[data-metric="noBuyback"],
.cards .card[data-metric="kiPending"] { border-top: 2px solid #E4D4DA !important; }

#imports .settings-accordion-section {
  margin-bottom: 0 !important;
}

.landing {
  background: #F6F6F6 !important;
}

.landing::before,
.landing::after {
  filter: none !important;
  border-radius: 0 !important;
  opacity: 0.22 !important;
  animation: none !important;
}

.landing::before {
  top: -140px !important;
  left: -180px !important;
  width: 560px !important;
  height: 420px !important;
  background: #E8C4D0 !important;
  clip-path: polygon(0 18%, 78% 0, 100% 42%, 34% 84%, 0 60%) !important;
}

.landing::after {
  right: -220px !important;
  bottom: -170px !important;
  width: 600px !important;
  height: 430px !important;
  background: #D4A8BC !important;
  clip-path: polygon(20% 0, 100% 24%, 86% 100%, 0 76%) !important;
}

/* --- 2026-03 Refinement v10.1: Sidebar Hard Override --- */
#appShell > nav.tabs {
  background: #1E0C13 !important;
  border-right: 1px solid rgba(228, 212, 218, 0.2) !important;
}

#appShell > nav.tabs .sidebar-brand {
  padding: 18px 16px 10px 16px !important;
  border: none !important;
  background: transparent !important;
}

#appShell > nav.tabs .sidebar-brand img {
  width: 112px !important;
  max-width: 112px !important;
  height: auto !important;
  margin: 0 0 6px 0 !important;
  filter: brightness(0) invert(1) !important;
}

#appShell > nav.tabs .sidebar-brand p {
  margin: 0 !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

#appShell > nav.tabs > button {
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.46) !important;
  margin: 0 !important;
  padding: 9px 20px !important;
}

#appShell > nav.tabs > button::before,
#appShell > nav.tabs > button::after {
  content: none !important;
  border: none !important;
  box-shadow: none !important;
}

#appShell > nav.tabs > button.active {
  border-left: 3px solid #AD093D !important;
  border-radius: 0 !important;
  background: rgba(173, 9, 61, 0.2) !important;
  color: #fff !important;
}

#appShell > nav.tabs > button:not(.active):hover {
  background: rgba(173, 9, 61, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* --- 2026-03 Refinement v11: Consistency Sweep --- */
:root {
  --radius-sm: 4px;
  --radius-md: 6px;
  --color-primary: #AD093D;
  --color-ink: #1E0C13;
  --color-muted: #7A5060;
  --color-border: #E4D4DA;
  --color-bg: #F6F6F6;
  --font-size-label: 9px;
  --font-size-body: 12px;
  --font-size-value: 13px;
}

* {
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.08) !important;
}

#userBadge,
.user-badge,
.avatar {
  box-shadow: none !important;
  border-radius: 50% !important;
}

input,
select,
textarea,
button,
.btn-main,
.btn-subtle,
.reviewed-badge,
.ki-live-badge,
.role-chip,
.status-active,
.status-inactive,
.pagination button {
  border-radius: var(--radius-sm) !important;
}

.card,
.record,
.import-card,
.factor-col,
.table-wrap,
.prices-table-layout,
#dashboardDetailWrap,
#auditWrap,
.ui-dialog-card,
.landing-card,
.settings-accordion-section,
.settings-accordion-content {
  border-radius: var(--radius-md) !important;
}

#appShell > nav.tabs {
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #1E0C13 !important;
}

#appShell > nav.tabs > button {
  border: none !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

#appShell > nav.tabs > button.active {
  border-left: 3px solid var(--color-primary) !important;
  background: rgba(173, 9, 61, 0.2) !important;
  color: #fff !important;
}

#userMenuWrap.sidebar-user {
  margin-top: auto !important;
  width: 100% !important;
  padding: 16px 20px !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  display: flex !important;
  justify-content: flex-start !important;
}

#appShell > nav.tabs .sidebar-brand p {
  font-size: var(--font-size-label) !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

#newwareRowsBody input[type="text"],
#newwareRowsBody input[type="date"],
#newwareRowsBody input:not([type]),
#newwareRowsBody select {
  width: 100%;
  min-width: 110px;
}

#newwareRowsBody td:first-child {
  width: 36px;
}

#newwareFeed .newware-feed-status-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#newwareFeed .newware-feed-status-card .hint {
  margin: 0;
}

#newwareFeed .newware-feed-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#newwareFeed .newware-feed-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

#newwareFeed #newwareExportTxtLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 380px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

#newwareFeed #pushNewwareExportTabBtn {
  min-width: 260px;
  min-height: 44px;
}

#newwareFeed .table-wrap {
  overflow-x: auto;
}

#newwareFeed .table-wrap table {
  min-width: 1680px;
}

#newwareFeed .newware-filter-row th {
  padding-top: 8px;
  padding-bottom: 8px;
}

#newwareFeed .newware-filter-row input {
  width: 100%;
  min-width: 120px;
}

#newwareFeed #newwareOnlyActiveActions {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid #c9a8b5;
  border-radius: 4px;
  background: #fff;
  padding: 0 !important;
  margin: 0;
  margin-right: 8px;
  vertical-align: middle !important;
  transform: translateY(0);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#newwareFeed #newwareOnlyActiveActions:checked {
  background-color: #ad093d;
  border-color: #ad093d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.2 6.3 11.5 13 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

#newwareFeed #newwareSelectAllVisible {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border: 2px solid #c9a8b5;
  border-radius: 3px;
  background: #fff;
  padding: 0 !important;
  margin: 0;
  vertical-align: middle !important;
  cursor: pointer;
}

#newwareFeed #newwareSelectAllVisible:checked {
  background-color: #ad093d;
  border-color: #ad093d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' d='M3 8.2 6.3 11.5 13 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

#newwareFeed .auto-fetch-row .cond-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

#newwareRowsBody tr.newware-action-active .newware-action-cell {
  background: #f5e8ed !important;
}

#master label,
#effective label,
#imports label,
.record-row label,
.manual-product-card label,
.auto-fetch-row label,
#mappingEditor label {
  color: var(--color-muted) !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: var(--font-size-label) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

input,
select,
textarea,
#master input,
#master select,
#master textarea,
#effective input,
#effective select,
#imports input,
#imports select {
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 10px !important;
  font-size: var(--font-size-value) !important;
  color: var(--color-ink) !important;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff !important;
  border-color: var(--color-primary) !important;
}

#master h3,
#master h4,
#effective h3,
#suggestions h3,
#imports h3,
#imports h4,
.factor-col > h3,
#vkFactors .record h4,
#ekFactors .record h4 {
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--color-ink) !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
}

.cards .card h3 {
  font-size: 8px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
  line-height: 1.2 !important;
}

#pricesTable thead th,
#pricesActionTable thead th {
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
}

#effective .manual-product-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#effective .manual-product-card::before,
#effective .manual-product-card::after {
  content: none !important;
}

.landing::before,
.landing::after {
  opacity: 1 !important;
  animation: none !important;
}

/* --- 2026-03 Refinement v12: Brand, Avatar Dropdown, Landing Split --- */
#appShell > nav.tabs {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  background: #1E0C13 !important;
}

#appShell > nav.tabs .sidebar-brand {
  padding: 24px 20px 28px !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
}

#appShell > nav.tabs .sidebar-brand img {
  max-width: 130px !important;
  width: 130px !important;
  display: block !important;
  margin: 0 0 6px 0 !important;
  filter: brightness(0) invert(1) !important;
}

#appShell > nav.tabs .sidebar-brand p {
  margin: 0 !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

#appShell > nav.tabs > button[data-tab] {
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 9px 20px !important;
}

#appShell > nav.tabs > button[data-tab]:first-of-type {
  margin-top: 20px !important;
}

#userMenuWrap.sidebar-user {
  position: relative !important;
  margin-top: auto !important;
  padding: 16px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

#userBadge {
  cursor: pointer !important;
  position: relative !important;
}

#userMenu {
  position: absolute !important;
  bottom: 56px !important;
  left: 12px !important;
  width: 176px !important;
  min-width: 176px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  z-index: 100 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#userMenuName {
  padding: 12px 16px !important;
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.35) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#userMenu .btn-subtle {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
  padding: 10px 16px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

#userMenu .btn-subtle:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* --- 2026-03 Refinement v12.1: Landing + Sidebar + Avatar Final --- */
#appShell > nav.tabs .sidebar-brand {
  padding: 24px 20px 28px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#appShell > nav.tabs .sidebar-brand img {
  max-width: 130px !important;
  width: 130px !important;
  margin-bottom: 6px !important;
}

#appShell > nav.tabs .sidebar-brand p {
  font-size: 9px !important;
  letter-spacing: 0.3em !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

#appShell > nav.tabs > button[data-tab]:first-of-type {
  margin-top: 16px !important;
}

#userMenuWrap.sidebar-user {
  margin-top: auto !important;
  padding: 16px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#userBadge {
  cursor: pointer !important;
  position: relative !important;
}

#userMenu {
  position: fixed !important;
  bottom: 64px !important;
  left: 12px !important;
  width: 180px !important;
  min-width: 180px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  z-index: 200 !important;
  overflow: hidden !important;
}

#userMenuName {
  padding: 12px 16px !important;
  font-size: 9px !important;
  color: rgba(255, 255, 255, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

#userMenu .btn-subtle {
  padding: 10px 16px !important;
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  cursor: pointer !important;
}

#userMenu .btn-subtle:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* Clean landing layout without !important specificity conflicts */
.landing {
  display: flex;
  min-height: 100vh;
  background: #F6F6F6;
  position: relative;
}

.landing-split {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
}

.landing-side-left {
  flex: 0 0 45%;
  background: #1E0C13;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.landing-side-right {
  flex: 1;
  background: #F6F6F6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 10% 48px 8%;
  position: relative;
}

.landing-side-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(320px, 100%);
}

.landing-side-logo {
  width: 100%;
  max-width: 260px;
  filter: brightness(0) invert(1);
}

.landing-side-accent {
  display: block;
  width: 32px;
  height: 2px;
  background: #AD093D;
  margin: 16px 0 12px;
}

.landing-side-claim {
  font-family: "Futura PT", "Jost", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

.landing::before,
.landing::after {
  content: none;
}

.landing-corner-left {
  display: none;
}

.landing-corner-right {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 40;
}

.landing-lang-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
}

#landingLangDe,
#landingLangFr {
  font-family: "Futura PT", "Jost", sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 5px 12px;
}

#landingLangDe.active {
  background: #AD093D;
  color: #fff;
  border: 1px solid #AD093D;
}

#landingLangFr,
#landingLangDe:not(.active),
#landingLangFr:not(.active) {
  background: transparent;
  color: #7A5060;
  border: 1px solid #E4D4DA;
}

.landing-card {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.landing-form {
  width: 100%;
  max-width: 400px;
}

.landing-form input,
.landing-form button,
#landingLoginBtn {
  width: 100%;
}

.landing-form input {
  height: 44px;
  border: 1px solid #E4D4DA;
  border-radius: 4px;
  padding: 0 14px;
  font-size: 13px;
  background: #fff;
}

#landingLoginBtn {
  height: 44px;
  background: #AD093D;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: "Futura PT", "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .landing-split {
    flex-direction: column;
  }
  .landing-side-left,
  .landing-side-right {
    flex: 1 1 auto;
    width: 100%;
    padding: 24px;
  }
  .landing-corner-right {
    top: 12px;
    right: 16px;
  }
}

/* --- 2026-03 Refinement v12.2: Avatar Menu Visibility Hard Fix --- */
#userMenu.hidden {
  display: none !important;
}

#userMenu:not(.hidden) {
  display: block !important;
}

/* --- 2026-03 Refinement v12.3: Sidebar Position + JU Click Hard Fix --- */
#appShell > nav.tabs {
  justify-content: flex-start !important;
}

#appShell > nav.tabs .sidebar-brand {
  order: 0 !important;
  margin-top: 0 !important;
  align-self: stretch !important;
}

#appShell > nav.tabs > button[data-tab] {
  order: 1 !important;
  flex: 0 0 auto !important;
}

#userMenuWrap.sidebar-user {
  order: 2 !important;
  margin-top: auto !important;
  z-index: 260 !important;
}

#userBadge {
  pointer-events: auto !important;
  z-index: 261 !important;
}

#userMenu {
  z-index: 262 !important;
}

/* --- 2026-03 Refinement v12.4: JS-Independent User Menu Fallback --- */
#userMenuWrap.sidebar-user #userMenu {
  display: none !important;
}

#userMenuWrap.sidebar-user:hover #userMenu,
#userMenuWrap.sidebar-user:focus-within #userMenu,
#userMenuWrap.sidebar-user #userMenu:not(.hidden) {
  display: block !important;
}

#userMenuWrap.sidebar-user {
  pointer-events: auto !important;
}

#userBadge {
  pointer-events: auto !important;
}

/* --- 2026-03 Refinement v12.5: Force Visible User Menu Content --- */
#userMenuWrap.sidebar-user:hover #userMenu.hidden,
#userMenuWrap.sidebar-user:focus-within #userMenu.hidden,
#userMenuWrap.sidebar-user:hover #userMenu,
#userMenuWrap.sidebar-user:focus-within #userMenu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 12px !important;
  bottom: 72px !important;
  width: 180px !important;
  min-height: 112px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  z-index: 9999 !important;
}

#userMenuWrap.sidebar-user:hover #userMenuName,
#userMenuWrap.sidebar-user:focus-within #userMenuName {
  display: block !important;
  color: rgba(255,255,255,0.45) !important;
  background: transparent !important;
}

#userMenuWrap.sidebar-user:hover #userMenu .btn-subtle,
#userMenuWrap.sidebar-user:focus-within #userMenu .btn-subtle {
  display: flex !important;
  width: 100% !important;
  padding: 10px 16px !important;
  color: rgba(255,255,255,0.78) !important;
  background: transparent !important;
  border: 0 !important;
}

/* --- 2026-03 Refinement v12.6: Wrapper-State User Menu --- */
#userMenuWrap.sidebar-user {
  position: relative !important;
}

#userMenuWrap.sidebar-user #userMenu {
  display: none !important;
}

#userMenuWrap.sidebar-user.menu-open #userMenu,
#userMenuWrap.sidebar-user:hover #userMenu,
#userMenuWrap.sidebar-user:focus-within #userMenu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 12px !important;
  bottom: 72px !important;
  width: 180px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 6px !important;
  z-index: 10001 !important;
}

#userMenuWrap.sidebar-user.menu-open #userMenuName,
#userMenuWrap.sidebar-user.menu-open #userMenu .btn-subtle {
  display: block !important;
}

/* --- 2026-03 Refinement v12.7: Persistent Sidebar User Menu Fallback --- */
#userMenuWrap.sidebar-user {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

#userMenuWrap.sidebar-user #userMenu {
  display: block !important;
  position: static !important;
  width: calc(100% - 0px) !important;
  min-width: 0 !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  background: rgba(42, 16, 24, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  z-index: auto !important;
}

#userMenuWrap.sidebar-user #userMenuName {
  display: block !important;
}

#userMenuWrap.sidebar-user #userMenu .btn-subtle {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

/* --- 2026-03 Refinement v12.8: Stop User Menu Flicker --- */
#userMenuWrap.sidebar-user,
#userMenuWrap.sidebar-user:hover,
#userMenuWrap.sidebar-user:focus-within,
#userMenuWrap.sidebar-user.menu-open {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

#userMenuWrap.sidebar-user #userMenu,
#userMenuWrap.sidebar-user:hover #userMenu,
#userMenuWrap.sidebar-user:focus-within #userMenu,
#userMenuWrap.sidebar-user.menu-open #userMenu,
#userMenuWrap.sidebar-user #userMenu.hidden {
  display: block !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  background: rgba(42, 16, 24, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  z-index: auto !important;
}

#userMenuWrap.sidebar-user #userMenuName,
#userMenuWrap.sidebar-user:hover #userMenuName,
#userMenuWrap.sidebar-user:focus-within #userMenuName {
  display: block !important;
}

#userMenuWrap.sidebar-user #userMenu .btn-subtle,
#userMenuWrap.sidebar-user:hover #userMenu .btn-subtle,
#userMenuWrap.sidebar-user:focus-within #userMenu .btn-subtle {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

/* --- 2026-03 Refinement v13: Static Sidebar User Area --- */
#userMenuWrap.sidebar-user {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding: 16px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#userMenu,
#userBadge,
#userMenuPortal {
  display: none !important;
}

#userMenuWrap .user-static-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  background: rgba(42, 16, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 10px 12px;
}

#userStaticName {
  font-family: "Futura PT", "Jost", sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

#userMenuWrap .user-logout-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 4px !important;
  padding: 8px 10px !important;
  font-size: 10px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#userMenuWrap .user-logout-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

#userMenuWrap .user-lang-toggle {
  display: inline-flex !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn {
  min-width: 40px !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn.active {
  background: #AD093D !important;
  color: #fff !important;
  border: 1px solid #AD093D !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn:not(.active) {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: rgba(255, 255, 255, 0.74) !important;
}

/* --- 2026-03 Refinement v14: Landing Edge-to-Edge + Cleanup --- */
#landing.landing:not(.hidden) {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#landing .landing-split {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

#landing .landing-side-left,
#landing .landing-side-right {
  height: 100dvh;
  min-height: 100dvh;
}

/* Remove accent + claim under logo */
#landing .landing-side-accent,
#landing .landing-side-claim {
  display: none !important;
}

/* Hide red scrollbar on landing */
#landing,
#landing * {
  scrollbar-width: none;
}

#landing::-webkit-scrollbar,
#landing *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* --- 2026-03 Refinement v15: Minimal Sidebar Footer --- */
#userMenuWrap.sidebar-user {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
}

#userMenuWrap .user-static-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  gap: 6px !important;
}

#userStaticName {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

#userMenuWrap .user-logout-btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-size: 18px !important;
  letter-spacing: 0 !important;
  line-height: 1;
}

#userMenuWrap .user-logout-btn:hover {
  background: transparent !important;
  color: #fff !important;
}

/* --- 2026-03 Refinement v16: Sidebar Footer Polish --- */
#userStaticName {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: #ffffff !important;
}

#userMenuWrap .user-logout-btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

#userMenuWrap .user-logout-btn .door-icon {
  display: inline-block;
  width: 10px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  position: relative;
  box-sizing: border-box;
}

#userMenuWrap .user-logout-btn .door-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 5px;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

#userMenuWrap .user-logout-btn:hover {
  color: #fff !important;
}

#userMenuWrap .user-lang-toggle {
  gap: 6px !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn {
  min-width: 38px !important;
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 2px !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn.active {
  background: #AD093D !important;
  color: #fff !important;
  border-color: #AD093D !important;
}

/* --- 2026-03 Refinement v17: Clean Sidebar Footer Row --- */
#userMenuWrap.sidebar-user {
  margin-top: auto !important;
  padding: 16px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-direction: row !important;
  position: relative !important;
  background: transparent !important;
}

#userBadge {
  display: inline-flex !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #AD093D !important;
  color: #fff !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

#userNameBtn {
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0 !important;
  cursor: pointer !important;
}

#logoutIconBtn {
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  padding: 0 !important;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
}

#logoutIconBtn:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

#logoutIconBtn svg {
  display: block;
}

#userMenuWrap .user-lang-toggle {
  margin-left: 8px !important;
  display: inline-flex !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn {
  min-width: 34px !important;
  min-height: 24px !important;
  padding: 4px 8px !important;
  border-radius: 2px !important;
  font-size: 9px !important;
  letter-spacing: 0.1em !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  background: transparent !important;
  color: rgba(255,255,255,0.65) !important;
}

#userMenuWrap .user-lang-toggle .landing-lang-btn.active {
  border-color: #AD093D !important;
  background: #AD093D !important;
  color: #fff !important;
}

/* dropdown only for avatar/name click */
#userMenuWrap #userMenu {
  display: none !important;
  position: absolute !important;
  left: 12px !important;
  bottom: 64px !important;
  width: 180px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  z-index: 300 !important;
}

#userMenuWrap.menu-open #userMenu {
  display: block !important;
}

#userMenuWrap #userMenu .btn-subtle {
  width: 100% !important;
  text-align: left !important;
  padding: 10px 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
}

#userMenuWrap #userMenu .btn-subtle:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

/* remove obsolete static panel remnants */
#userMenuWrap .user-static-panel,
#userStaticName,
#userMenuWrap .user-logout-btn,
#userMenuWrap .door-icon,
#userMenuPortal,
#userMenuName {
  display: none !important;
}

/* --- 2026-03 Refinement v18: Preise Layout Stabilization --- */
#effective {
  overflow-x: hidden !important;
}

#effective .manual-product-card {
  width: 100% !important;
  max-width: 100% !important;
}

#effective .manual-product-main-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) 140px auto auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}

#effective #manualProductName,
#effective #manualProductSkuZumstein,
#effective #manualProductVkA,
#effective #createManualProductBtn,
#effective #toggleManualBulkBtn {
  width: 100% !important;
  max-width: 100% !important;
}

#effective .manual-product-main-row .cond-toggle-item {
  white-space: nowrap !important;
}

#effective .prices-table-layout {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) 120px !important;
  overflow: hidden !important;
}

#effective .prices-table-wrap {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#effective #pricesTable,
#effective #pricesActionTable {
  table-layout: fixed !important;
}

#effective #pricesActionTable,
#effective #pricesActionTable th,
#effective #pricesActionTable td {
  width: 120px !important;
  max-width: 120px !important;
  min-width: 120px !important;
}

#effective #pricesActionTable td,
#effective #pricesActionTable th {
  text-align: center !important;
}

#effective .action-cell-inner {
  justify-content: center !important;
}

@media (max-width: 1280px) {
  #effective .manual-product-main-row {
    grid-template-columns: 1fr 1fr 140px auto !important;
  }
  #effective #createManualProductBtn,
  #effective #toggleManualBulkBtn {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  #effective .manual-product-main-row {
    grid-template-columns: 1fr !important;
  }
  #effective #createManualProductBtn,
  #effective #toggleManualBulkBtn {
    grid-column: auto;
  }
}

/* --- 2026-03 Refinement v19: Sidebar Footer & Dropdown Final --- */
#userMenuWrap.sidebar-user {
  padding: 14px 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: auto !important;
}

#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: #AD093D !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  box-shadow: none !important;
}

#userNameBtn {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  color: rgba(255,255,255,0.45) !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  text-transform: uppercase !important;
}

#logoutIconBtn {
  margin-left: auto !important;
  opacity: 0.35 !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
}

#logoutIconBtn:hover {
  opacity: 0.8 !important;
}

#logoutIconBtn svg {
  width: 14px !important;
  height: 14px !important;
}

#userMenuWrap .user-lang-toggle {
  display: none !important;
}

#userMenuWrap #userMenu {
  position: fixed !important;
  left: 0 !important;
  bottom: 60px !important;
  width: 200px !important;
  min-width: 200px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  z-index: 200 !important;
}

#userMenuWrap #userMenu .btn-subtle {
  display: block !important;
  width: 100% !important;
  padding: 11px 16px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.6) !important;
  cursor: pointer !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#userMenuWrap #userMenu .btn-subtle:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

#userMenuName {
  display: none !important;
}

/* --- 2026-03 Refinement v20: Sidebar Dropdown Width + Backend Language --- */
#userMenuWrap.sidebar-user {
  padding: 14px 16px !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: #AD093D !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  box-shadow: none !important;
}

#userNameBtn {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  color: rgba(255,255,255,0.45) !important;
  text-transform: uppercase !important;
}

#logoutIconBtn {
  margin-left: auto !important;
  opacity: 0.3 !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.95) !important;
}

#logoutIconBtn:hover {
  opacity: 0.8 !important;
}

#userMenuWrap #userMenu {
  position: fixed !important;
  bottom: 56px !important;
  left: 8px !important;
  width: 184px !important;
  min-width: 184px !important;
  max-width: 184px !important;
  right: auto !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  z-index: 300 !important;
}

#userMenuWrap.menu-open #userMenu {
  display: block !important;
}

#userMenuWrap #userMenu .user-menu-lang-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  background: transparent !important;
}

#userMenuWrap #userMenu .user-menu-lang-label {
  margin-right: auto !important;
  font-size: 8px !important;
  color: rgba(255,255,255,0.3) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn {
  padding: 3px 8px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  border-radius: 3px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.5) !important;
  background: transparent !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn.active {
  background: #AD093D !important;
  color: #fff !important;
  border-color: #AD093D !important;
}

#userMenuWrap #userMenu .btn-subtle {
  display: block !important;
  width: 100% !important;
  padding: 11px 14px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.6) !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#userMenuWrap #userMenu .btn-subtle:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

/* --- 2026-03 Refinement v21: Sidebar footer dropdown final override --- */
#userMenuWrap.sidebar-user {
  margin-top: auto !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: visible !important;
}

#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #AD093D !important;
  color: #fff !important;
  border: none !important;
}

#userNameBtn {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.72) !important;
  text-transform: uppercase !important;
}

#logoutIconBtn {
  margin-left: auto !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.95) !important;
  opacity: 0.38 !important;
}

#logoutIconBtn:hover {
  opacity: 0.82 !important;
}

#userMenuWrap .user-lang-toggle,
#userMenuWrap #userMenu .user-menu-lang-row {
  display: flex !important;
}

#userMenuWrap #userMenu {
  position: fixed !important;
  left: 8px !important;
  right: auto !important;
  bottom: 56px !important;
  width: 184px !important;
  min-width: 184px !important;
  max-width: 184px !important;
  z-index: 300 !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

#userMenuWrap #userMenu .user-menu-lang-row {
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

#userMenuWrap #userMenu .user-menu-lang-label {
  margin-right: auto !important;
  font-size: 8px !important;
  color: rgba(255,255,255,0.34) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn {
  border-radius: 3px !important;
  padding: 2px 8px !important;
  min-height: 0 !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.5) !important;
  background: transparent !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn.active {
  background: #AD093D !important;
  color: #fff !important;
  border-color: #AD093D !important;
}

#userMenuWrap #userMenu .btn-subtle {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.68) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#userMenuWrap #userMenu .btn-subtle:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

#dashboardWelcome {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

#dashboardWelcome .dashboard-greeting-kicker,
#dashboardWelcome .dashboard-greeting-name {
  display: inline !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

#dashboardWelcome .dashboard-greeting-kicker {
  font-size: 26px !important;
  font-weight: 400 !important;
  color: #AD093D !important;
  letter-spacing: 0.06em !important;
}

#dashboardWelcome .dashboard-greeting-name {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1E0C13 !important;
  letter-spacing: 0.06em !important;
}

#dashboardProductSearchBtn {
  min-width: 140px !important;
  height: 44px !important;
  padding: 0 24px !important;
}

.cards .card[data-metric="total"] {
  border-top: 2px solid #E4D4DA !important;
}

.cards .card[data-metric="nieGeprueft"],
.cards .card[data-metric="langeNichtGeprueft"] {
  border-top: 2px solid #AD093D !important;
}

.cards .card[data-metric="noBuyback"] {
  border-top: 2px solid #C4C2C2 !important;
}

.cards .card[data-metric="kiPending"] {
  border-top: 2px solid #69839A !important;
}

.tabs button[data-tab="backup"] {
  display: none !important;
}

/* --- 2026-03 Refinement v22: Full Sweep v14 --- */
/* Sidebar dropdown: fixed, full-width inside 200px sidebar */
#userMenuWrap #userMenu {
  position: fixed !important;
  left: 8px !important;
  bottom: 56px !important;
  right: auto !important;
  width: 188px !important;
  min-width: 188px !important;
  max-width: 188px !important;
  z-index: 320 !important;
}

#userMenuWrap #userMenu .user-menu-lang-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

#userMenuWrap #userMenu .user-menu-lang-label {
  margin-right: auto !important;
  font-size: 8px !important;
  color: rgba(255,255,255,0.3) !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn {
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  padding: 2px 7px !important;
  border-radius: 3px !important;
  cursor: pointer !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn.active {
  border: none !important;
  background: #AD093D !important;
  color: #fff !important;
}

#userMenuWrap #userMenu .user-menu-lang-row .landing-lang-btn:not(.active) {
  background: transparent !important;
  color: rgba(255,255,255,0.4) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

#userMenuWrap #userMenu .btn-subtle {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  letter-spacing: 0.08em !important;
}

/* Avatar roundness */
#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* Dashboard greeting: no inline trailing accent mark */
#dashboardWelcome {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 8px !important;
}

#dashboardWelcome::after {
  flex-basis: 100% !important;
  width: 32px !important;
  max-width: 32px !important;
  margin-top: 8px !important;
}

/* KPI consistency */
.cards .card {
  border-radius: 6px !important;
}

.cards .card[data-metric="total"] {
  border-top: 2px solid #E4D4DA !important;
}

.cards .card[data-metric="nieGeprueft"] {
  border-top: 2px solid #AD093D !important;
}

.cards .card[data-metric="langeNichtGeprueft"] {
  border-top: 2px solid #AD093D !important;
}

.cards .card[data-metric="noBuyback"] {
  border-top: 2px solid #C4C2C2 !important;
}

.cards .card[data-metric="kiPending"] {
  border-top: 2px solid #69839A !important;
}

/* Prices: keep action column visible */
.prices-table-layout {
  overflow-x: auto !important;
}

.prices-actions-wrap {
  position: sticky !important;
  right: 0 !important;
  z-index: 2 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#pricesActionTable thead th,
#pricesActionTable tbody td {
  position: sticky !important;
  right: 0 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  z-index: 2 !important;
}

/* Custom toggle switches in prices area */
#manualProductNoBuyback,
#showAllConditionPrices,
#hideNoBuybackRows {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 34px !important;
  height: 20px !important;
  border-radius: 10px !important;
  border: 1px solid #E4D4DA !important;
  background: #E4D4DA !important;
  position: relative !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  transition: background 0.2s ease !important;
}

#manualProductNoBuyback::after,
#showAllConditionPrices::after,
#hideNoBuybackRows::after {
  content: '' !important;
  position: absolute !important;
  top: 1px !important;
  left: 2px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #fff !important;
  transition: left 0.2s ease !important;
}

#manualProductNoBuyback:checked,
#showAllConditionPrices:checked,
#hideNoBuybackRows:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

#manualProductNoBuyback:checked::after,
#showAllConditionPrices:checked::after,
#hideNoBuybackRows:checked::after {
  left: 16px !important;
}

/* Settings accordion: no boxed cards, only separators */
#imports .settings-accordion-section {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #E4D4DA !important;
}

#imports .settings-accordion-trigger {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 14px 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
}

#imports .settings-accordion-content {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 16px 0 24px !important;
}

#imports .settings-accordion-trigger .chevron {
  transition: transform 0.2s ease !important;
  transform: rotate(0deg) !important;
}

#imports .settings-accordion-section.is-open .settings-accordion-trigger .chevron,
#imports .settings-accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(90deg) !important;
}

/* Master data typography consistency */
#master .factor-card h4,
#master .cond-code,
#master .class-name,
#master .factor-label,
#master .status-label {
  font-family: "Futura PT", "Jost", sans-serif !important;
  color: #1E0C13 !important;
}

#master .cond-code,
#master .factor-label,
#master .status-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

#master .class-name {
  font-size: 12px !important;
  font-weight: 400 !important;
}

#master input,
#master .factor-input,
#master .editable-value {
  border-radius: 4px !important;
  border: 1px solid #E4D4DA !important;
  background: #F6F6F6 !important;
  font-size: 13px !important;
}

/* Keep backup tab visible in sidebar */
.tabs button[data-tab="backup"] {
  display: block !important;
}

/* --- 2026-03 Refinement v23: Final sweep v15 --- */
/* Dropdown fully visible and readable */
#userMenuWrap #userMenu {
  position: fixed !important;
  left: 0 !important;
  bottom: 56px !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  overflow: visible !important;
  z-index: 340 !important;
}

#userMenuWrap #userMenu .user-menu-lang-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
}

#userMenuWrap #userMenu .user-menu-lang-label {
  margin-right: auto !important;
  white-space: nowrap !important;
}

#userMenuWrap #userMenu .btn-subtle {
  display: block !important;
  width: 100% !important;
  padding: 10px 16px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  letter-spacing: 0.06em !important;
}

/* Greeting accent line removed from inline title */
#dashboardWelcome::after {
  content: none !important;
}

/* KPI top-border mapping */
.cards .card[data-metric="total"] { border-top: 2px solid #E4D4DA !important; }
.cards .card[data-metric="nieGeprueft"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="langeNichtGeprueft"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="noBuyback"] { border-top: 2px solid #C4C2C2 !important; }
.cards .card[data-metric="kiPending"] { border-top: 2px solid #69839A !important; }
.cards .card { border-radius: 6px !important; }

/* Custom switches for no-buyback and filter checkboxes */
.cond-toggle-item input[type="checkbox"]#manualProductNoBuyback,
.cond-toggle-item input[type="checkbox"]#hideNoBuybackRows,
.cond-toggle-item input[type="checkbox"]#showAllConditionPrices {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 32px !important;
  height: 18px !important;
  min-width: 32px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  border: 1px solid #E4D4DA !important;
  background: #E4D4DA !important;
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

.cond-toggle-item input[type="checkbox"]#manualProductNoBuyback::after,
.cond-toggle-item input[type="checkbox"]#hideNoBuybackRows::after,
.cond-toggle-item input[type="checkbox"]#showAllConditionPrices::after {
  content: '' !important;
  position: absolute !important;
  top: 1px !important;
  left: 1px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #fff !important;
  transition: left 0.2s ease !important;
}

.cond-toggle-item input[type="checkbox"]#manualProductNoBuyback:checked,
.cond-toggle-item input[type="checkbox"]#hideNoBuybackRows:checked,
.cond-toggle-item input[type="checkbox"]#showAllConditionPrices:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

.cond-toggle-item input[type="checkbox"]#manualProductNoBuyback:checked::after,
.cond-toggle-item input[type="checkbox"]#hideNoBuybackRows:checked::after,
.cond-toggle-item input[type="checkbox"]#showAllConditionPrices:checked::after {
  left: 15px !important;
}

/* Prices action column sticky and visible */
.prices-table-wrap {
  overflow-x: auto !important;
}

.prices-actions-wrap {
  position: sticky !important;
  right: 0 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  z-index: 3 !important;
}

#pricesActionTable,
#pricesActionTable thead,
#pricesActionTable tbody,
#pricesActionTable tr,
#pricesActionTable th,
#pricesActionTable td {
  background: #fff !important;
}

#pricesActionTable th,
#pricesActionTable td {
  position: sticky !important;
  right: 0 !important;
  border-left: 1px solid #E4D4DA !important;
  z-index: 3 !important;
}

/* Accordion chevron rotation */
#imports .settings-accordion-trigger .chevron {
  transition: transform 0.2s ease !important;
  transform: rotate(0deg) !important;
}

#imports .settings-accordion-section.is-open .settings-accordion-trigger .chevron,
#imports .settings-accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(90deg) !important;
}

/* Avatar perfectly round */
#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Sidebar nav alignment consistency */
.tabs button[data-tab] {
  padding: 9px 20px !important;
  text-align: left !important;
}

/* --- 2026-03 Fix v17: Footer/Dropdown hard reset --- */
#appShell > nav.tabs {
  overflow: visible !important;
}

#userMenuWrap {
  margin-top: auto !important;
  padding: 14px 16px !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  position: relative !important;
  overflow: visible !important;
}

#userFooterRow {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: #AD093D !important;
  color: #fff !important;
  font-family: 'Futura PT', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

#userFooterName {
  font-family: 'Futura PT', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.7) !important;
  flex: 1 !important;
}

#userLogoutDirectBtn {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.3) !important;
  cursor: pointer !important;
  padding: 4px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  border-radius: 4px !important;
}

#userLogoutDirectBtn:hover {
  color: rgba(255,255,255,0.8) !important;
}

#userMenu {
  position: fixed !important;
  bottom: 60px !important;
  left: 0 !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  background: #2a1018 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  z-index: 9999 !important;
  overflow: visible !important;
}

#userMenu.hidden {
  display: none !important;
}

#userMenu:not(.hidden) {
  display: block !important;
}

#userMenuLangRow {
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#userMenuLangRow span {
  font-family: 'Futura PT', sans-serif !important;
  font-size: 8px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.3) !important;
  margin-right: auto !important;
  white-space: nowrap !important;
}

#userMenuLangToggle {
  font-family: 'Futura PT', sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  cursor: pointer !important;
}

#userMenuLangToggle.active {
  background: #AD093D !important;
  color: #fff !important;
  border: 1px solid #AD093D !important;
}

#userMenuLangToggle:not(.active) {
  background: transparent !important;
  color: rgba(255,255,255,0.4) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

#userSettingsMenuBtn,
#userLogoutMenuBtn {
  display: block !important;
  width: 100% !important;
  padding: 11px 16px !important;
  border: none !important;
  background: transparent !important;
  text-align: left !important;
  font-family: 'Futura PT', sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.65) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#userSettingsMenuBtn:hover,
#userLogoutMenuBtn:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

/* --- 2026-03 Fix v18: Sidebar nav back to top --- */
#appShell > nav.tabs {
  justify-content: flex-start !important;
}

#appShell > nav.tabs .sidebar-brand {
  padding: 16px 16px 10px 16px !important;
}

#appShell > nav.tabs > button[data-tab]:first-of-type,
#appShell > nav.tabs > button:first-of-type {
  margin-top: 6px !important;
}

#appShell > nav.tabs > button[data-tab] {
  margin-top: 0 !important;
}

/* --- 2026-03 Fix v19: Sidebar order hard fix --- */
#appShell > nav.tabs {
  display: flex !important;
  flex-direction: column !important;
}

#appShell > nav.tabs .sidebar-brand {
  order: 0 !important;
}

#appShell > nav.tabs > button[data-tab] {
  order: 1 !important;
  flex: 0 0 auto !important;
}

#appShell > nav.tabs > #userMenuWrap {
  order: 2 !important;
  margin-top: auto !important;
}

/* --- 2026-03 Fix v20: Final polish --- */
/* Dashboard KPI border mapping (final) */
.cards .card[data-metric="total"] { border-top: 2px solid #E4D4DA !important; }
.cards .card[data-metric="nieGeprueft"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="langeNichtGeprueft"] { border-top: 2px solid #AD093D !important; }
.cards .card[data-metric="noBuyback"] { border-top: 2px solid #C4C2C2 !important; }
.cards .card[data-metric="kiPending"] { border-top: 2px solid #69839A !important; }

/* Preise action column: sticky and readable */
#effective .prices-table-layout {
  display: block !important;
  overflow-x: auto !important;
}

#effective .prices-table-wrap {
  display: block !important;
  overflow-x: auto !important;
}

#effective .prices-actions-wrap {
  position: sticky !important;
  right: 0 !important;
  top: 0 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  z-index: 8 !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
}

#effective #pricesActionTable,
#effective #pricesActionTable th,
#effective #pricesActionTable td {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
}

#effective #pricesActionTable th,
#effective #pricesActionTable td,
#effective #pricesActionTable .col-action {
  position: sticky !important;
  right: 0 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  z-index: 9 !important;
}

#effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  align-items: stretch !important;
}

#effective #pricesActionTable .price-action-btn,
#effective #pricesActionTable .reviewed-badge {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

/* Landing center alignment */
#landing .landing-side-left,
#landing .landing-side-right {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#landing .landing-side-content {
  margin: 0 auto !important;
}

#landing .landing-card {
  width: min(380px, 90%) !important;
  margin: 0 auto !important;
}

/* Landing DE/FR pills standalone (no shared frame) */
#landing .landing-lang-toggle {
  display: inline-flex !important;
  gap: 6px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#landing #landingLangDe,
#landing #landingLangFr {
  border-radius: 4px !important;
  padding: 5px 12px !important;
  font-size: 9px !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  text-transform: uppercase !important;
}

#landing #landingLangDe.active,
#landing #landingLangFr.active {
  background: #AD093D !important;
  color: #fff !important;
  border: 1px solid #AD093D !important;
}

#landing #landingLangDe:not(.active),
#landing #landingLangFr:not(.active) {
  background: transparent !important;
  color: #7A5060 !important;
  border: 1px solid #E4D4DA !important;
}

/* Sidebar avatar exact circle */
#userBadge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* --- 2026-03 Fix v21: Prices action row inline --- */
#effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

#effective #pricesActionTable .price-action-btn,
#effective #pricesActionTable .reviewed-badge {
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* --- 2026-03 Fix v22: Preise table/action alignment restore --- */
#effective .prices-table-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

#effective .prices-table-wrap {
  display: block !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#effective .prices-actions-wrap {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  z-index: 3 !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  border-left: 1px solid #E4D4DA !important;
  background: #fff !important;
}

#effective #pricesActionTable {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  table-layout: fixed !important;
}

#effective #pricesActionTable th,
#effective #pricesActionTable td,
#effective #pricesActionTable .col-action {
  position: static !important;
  right: auto !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
}

#effective #pricesActionTable .price-action-btn,
#effective #pricesActionTable .reviewed-badge {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* --- 2026-03 Fix v23: Preise seam + corner alignment --- */
#effective .prices-table-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
}

#effective .prices-table-wrap,
#effective .prices-actions-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

#effective .prices-actions-wrap {
  border-left: 1px solid #E4D4DA !important;
}

#effective #pricesTable,
#effective #pricesActionTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

#effective #pricesTable thead tr,
#effective #pricesActionTable thead tr,
#effective #pricesTable tbody tr,
#effective #pricesActionTable tbody tr {
  border: 0 !important;
}

#effective #pricesActionTable th,
#effective #pricesActionTable td {
  border-top: 1px solid #E4D4DA !important;
  border-bottom: 0 !important;
}

#effective #pricesActionTable thead tr:first-child th {
  border-top: 0 !important;
}

#effective #pricesActionTable .action-col-head,
#effective #pricesActionTable .action-col-filter,
#effective #pricesActionTable td.col-action {
  border-radius: 0 !important;
}

/* remove decorative tail causing bottom misalignment */
#effective .prices-actions-wrap::after {
  display: none !important;
  content: none !important;
}

/* --- 2026-03 Fix v24: Row height/line alignment (SKU MPB vs Aktion) --- */
#effective #pricesTable thead tr:first-child th,
#effective #pricesActionTable thead tr:first-child th {
  height: 56px !important;
  min-height: 56px !important;
  vertical-align: middle !important;
}

#effective #pricesTable .filter-row th,
#effective #pricesActionTable .filter-row th {
  height: 52px !important;
  min-height: 52px !important;
  vertical-align: middle !important;
}

#effective #pricesTable tbody tr,
#effective #pricesActionTable tbody tr {
  height: 72px !important;
  min-height: 72px !important;
}

#effective #pricesTable tbody tr td,
#effective #pricesActionTable tbody tr td {
  vertical-align: middle !important;
  border-top: 1px solid #E4D4DA !important;
}

#effective #pricesActionTable tbody tr:first-child td,
#effective #pricesTable tbody tr:first-child td {
  border-top: 1px solid #E4D4DA !important;
}

#effective #pricesActionTable .action-cell {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#effective #pricesActionTable .action-cell-inner {
  margin: 0 !important;
  padding: 0 !important;
}

/* --- 2026-03 Fix v25: Unified action column in main prices table --- */
#effective .prices-table-layout {
  display: block !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
}

#effective .prices-actions-wrap {
  display: none !important;
}

#effective .prices-table-wrap {
  display: block !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#effective #pricesTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: max-content !important;
  min-width: 100% !important;
}

#effective #pricesTable th.col-action,
#effective #pricesTable td.col-action {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  position: sticky !important;
  right: 0 !important;
  z-index: 6 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  vertical-align: middle !important;
}

#effective #pricesTable tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

#effective #pricesTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
}

#effective #pricesTable .price-action-btn,
#effective #pricesTable .reviewed-badge {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* --- 2026-03 Fix v26: Restore sticky action column --- */
#effective .prices-table-layout {
  overflow: visible !important;
}

#effective .prices-table-wrap {
  position: relative !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#effective #pricesTable th.col-action {
  position: sticky !important;
  right: 0 !important;
  z-index: 20 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#effective #pricesTable td.col-action {
  position: sticky !important;
  right: 0 !important;
  z-index: 15 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#effective #pricesTable tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

/* --- 2026-03 Fix v27: Sticky action column hard (single table, Safari-safe) --- */
#effective .prices-table-layout,
#effective .prices-table-wrap {
  overflow: visible !important;
}

#effective .prices-table-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#effective #pricesTable {
  width: max-content !important;
  min-width: 100% !important;
}

#effective #pricesTable thead th:last-child,
#effective #pricesTable tbody td:last-child,
#effective #pricesTable th.col-action,
#effective #pricesTable td.col-action {
  position: -webkit-sticky !important;
  position: sticky !important;
  right: 0 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#effective #pricesTable thead th:last-child,
#effective #pricesTable th.col-action {
  z-index: 30 !important;
}

#effective #pricesTable tbody td:last-child,
#effective #pricesTable td.col-action {
  z-index: 20 !important;
}

#effective #pricesTable tr.manual-price-row td:last-child,
#effective #pricesTable tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

/* --- 2026-03 Fix v28: Ensure action/buttons + extended info visibility --- */
/* Never clip action controls */
#effective #pricesTable th.col-action,
#effective #pricesTable td.col-action {
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
}

#effective #pricesTable .action-cell-inner {
  gap: 8px !important;
}

#effective #pricesTable .price-action-btn,
#effective #pricesTable .reviewed-badge {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Keep all extended columns visible when toggle is active/default */
body.show-extended-prices #pricesTable th:nth-child(n+8),
body.show-extended-prices #pricesTable td:nth-child(n+8) {
  display: table-cell !important;
}

/* --- 2026-03 Fix v29: Final sticky action column lock --- */
#appShell #effective .prices-table-wrap {
  position: relative !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#appShell #effective #pricesTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: max-content !important;
  min-width: 100% !important;
}

#appShell #effective #pricesTable thead th.col-action,
#appShell #effective #pricesTable tbody td.col-action,
#appShell #effective #pricesTable thead th:last-child,
#appShell #effective #pricesTable tbody td:last-child {
  position: -webkit-sticky !important;
  position: sticky !important;
  right: 0 !important;
  left: auto !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#appShell #effective #pricesTable thead th.col-action,
#appShell #effective #pricesTable thead th:last-child {
  z-index: 50 !important;
}

#appShell #effective #pricesTable tbody td.col-action,
#appShell #effective #pricesTable tbody td:last-child {
  z-index: 40 !important;
}

#appShell #effective #pricesTable tbody tr.manual-price-row td.col-action,
#appShell #effective #pricesTable tbody tr.manual-price-row td:last-child {
  background: #FBEFF4 !important;
}

/* --- 2026-03 Fix v30: Extended mode visibility + sticky guarantee --- */
#appShell #effective #pricesTable th.col-action,
#appShell #effective #pricesTable td.col-action {
  display: table-cell !important;
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#appShell #effective #pricesTable thead th.col-action {
  z-index: 80 !important;
}

#appShell #effective #pricesTable tbody td.col-action {
  z-index: 70 !important;
}

#appShell #effective #pricesTable tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

/* When extended is active, all extended columns + action must stay visible */
body.show-extended-prices #pricesTable th:nth-child(n+8),
body.show-extended-prices #pricesTable td:nth-child(n+8),
body.show-extended-prices #pricesTable th.col-action,
body.show-extended-prices #pricesTable td.col-action {
  display: table-cell !important;
}

/* --- 2026-03 Fix v31: Never hide action column in extended mode --- */
#effective #pricesTable th.col-action,
#effective #pricesTable td.col-action {
  display: table-cell !important;
}

body.show-extended-prices #pricesTable th.col-action,
body.show-extended-prices #pricesTable td.col-action {
  display: table-cell !important;
}

/* --- 2026-03 Fix v32: JS-pinned action column (disable sticky conflicts) --- */
#appShell #effective #pricesTable th.col-action,
#appShell #effective #pricesTable td.col-action,
#appShell #effective #pricesTable thead th:last-child,
#appShell #effective #pricesTable tbody td:last-child {
  position: relative !important;
  right: auto !important;
  left: auto !important;
}

/* --- 2026-03 Fix v33: Final sticky action column (normal + extended) --- */
#appShell #effective .prices-table-layout {
  display: block !important;
  overflow: visible !important;
}

#appShell #effective .prices-table-wrap {
  position: relative !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#appShell #effective #pricesTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: max-content !important;
  min-width: 100% !important;
}

#appShell #effective #pricesTable thead th.col-action,
#appShell #effective #pricesTable tbody td.col-action {
  display: table-cell !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
}

#appShell #effective #pricesTable thead th.col-action {
  z-index: 96 !important;
}

#appShell #effective #pricesTable tbody td.col-action {
  z-index: 92 !important;
}

#appShell #effective #pricesTable tbody tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

#appShell #effective #pricesTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

#appShell #effective #pricesTable .action-cell-inner > * {
  width: 100% !important;
}

body.show-extended-prices #appShell #effective #pricesTable thead th.col-action,
body.show-extended-prices #appShell #effective #pricesTable tbody td.col-action {
  display: table-cell !important;
  position: -webkit-sticky !important;
  position: sticky !important;
}

/* --- 2026-03 Fix v34: Dedicated sticky action rail (always visible incl. extended) --- */
#appShell #effective .prices-table-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 176px !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
}

#appShell #effective .prices-table-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#appShell #effective .prices-actions-wrap {
  display: block !important;
  overflow: hidden !important;
  border-left: 1px solid #E4D4DA !important;
  background: #fff !important;
}

#appShell #effective #pricesActionTable {
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #fff !important;
}

#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  width: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  background: #fff !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

#appShell #effective #pricesActionTable .action-col-head {
  z-index: 3 !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > * {
  width: 100% !important;
}

#appShell #effective #pricesActionTable .price-action-btn,
#appShell #effective #pricesActionTable .reviewed-badge {
  width: 100% !important;
  white-space: nowrap !important;
}

/* --- 2026-03 Fix v35: Width + line alignment polish (SKU Zumstein + Aktion) --- */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 196px !important;
}

#appShell #effective #pricesTable th.col-sku-zs,
#appShell #effective #pricesTable td.col-sku-zs {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
}

#appShell #effective #pricesTable td.col-sku-zs input {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesActionTable {
  width: 196px !important;
  min-width: 196px !important;
  max-width: 196px !important;
}

#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  width: 196px !important;
  min-width: 196px !important;
  max-width: 196px !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesActionTable .action-cell {
  padding: 10px 12px !important;
}

#appShell #effective #pricesActionTable .price-action-btn,
#appShell #effective #pricesActionTable .reviewed-badge {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

#appShell #effective #pricesTable thead tr:first-child th,
#appShell #effective #pricesActionTable thead tr:first-child th {
  height: auto !important;
  min-height: 56px !important;
}

#appShell #effective #pricesTable thead tr.filter-row th,
#appShell #effective #pricesActionTable thead tr.filter-row th {
  height: auto !important;
  min-height: 52px !important;
}

#appShell #effective #pricesTable tbody tr,
#appShell #effective #pricesActionTable tbody tr {
  height: auto !important;
  min-height: 72px !important;
}

#appShell #effective .prices-actions-wrap::after {
  display: none !important;
  content: none !important;
}

#appShell #effective #pricesActionTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* --- 2026-03 Fix v39: absolute final override for action alignment --- */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 250px !important;
}

#appShell #effective #pricesTable,
#appShell #effective #pricesActionTable {
  table-layout: fixed !important;
}

#appShell #effective #pricesTable th,
#appShell #effective #pricesTable td,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  vertical-align: middle !important;
  height: auto !important;
  min-height: 0 !important;
}

#appShell #effective #pricesActionTable,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td,
#appShell #effective #pricesActionTable .action-col-head,
#appShell #effective #pricesActionTable .action-col-filter,
#appShell #effective #pricesActionTable td.action-cell {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesActionTable td.action-cell {
  padding: 8px 12px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 8px !important;
  height: 100% !important;
  overflow: visible !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* --- 2026-03 Fix v38: Definitive row/button alignment override --- */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 250px !important;
}

#appShell #effective #pricesActionTable,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td,
#appShell #effective #pricesActionTable .action-col-head,
#appShell #effective #pricesActionTable .action-col-filter,
#appShell #effective #pricesActionTable td.action-cell {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* Let JS sync set exact matched heights for each row/header/filter */
#appShell #effective #pricesTable thead tr:first-child th,
#appShell #effective #pricesActionTable thead tr:first-child th,
#appShell #effective #pricesTable thead tr.filter-row th,
#appShell #effective #pricesActionTable thead tr.filter-row th,
#appShell #effective #pricesTable tbody tr,
#appShell #effective #pricesActionTable tbody tr,
#appShell #effective #pricesTable tbody tr td,
#appShell #effective #pricesActionTable tbody tr td {
  height: auto !important;
  min-height: 0 !important;
}

#appShell #effective #pricesActionTable td.action-cell {
  padding: 8px 12px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 8px !important;
  height: 100% !important;
  overflow: visible !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* --- 2026-03 Fix v36: Final action rail sizing/alignment --- */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 220px !important;
}

#appShell #effective #pricesActionTable,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
}

#appShell #effective #pricesActionTable .action-cell {
  padding: 10px 14px !important;
}

#appShell #effective #pricesActionTable .price-action-btn,
#appShell #effective #pricesActionTable .reviewed-badge {
  min-height: 54px !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#appShell #effective .prices-actions-wrap {
  overflow: visible !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  overflow: visible !important;
}

/* --- 2026-03 Fix v37: Trade-in row/action alignment (hard final) --- */
#appShell #effective #pricesTable,
#appShell #effective #pricesActionTable {
  table-layout: fixed !important;
}

#appShell #effective #pricesTable th,
#appShell #effective #pricesTable td,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  vertical-align: middle !important;
}

/* Consistent row heights across main + action tables */
#appShell #effective #pricesTable thead tr:first-child th,
#appShell #effective #pricesActionTable thead tr:first-child th {
  height: 56px !important;
  min-height: 56px !important;
}

#appShell #effective #pricesTable thead tr.filter-row th,
#appShell #effective #pricesActionTable thead tr.filter-row th {
  height: 52px !important;
  min-height: 52px !important;
}

#appShell #effective #pricesTable tbody tr,
#appShell #effective #pricesActionTable tbody tr {
  height: 86px !important;
  min-height: 86px !important;
}

/* Keep action header exactly aligned to action column */
#appShell #effective #pricesActionTable .action-col-head,
#appShell #effective #pricesActionTable .action-col-filter,
#appShell #effective #pricesActionTable td.action-cell {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  box-sizing: border-box !important;
}

/* Action cell content anchored to its own row */
#appShell #effective #pricesActionTable td.action-cell {
  padding: 8px 12px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 6px !important;
  height: 100% !important;
}

/* Buttons fill the cell width minus padding, no clipping */
#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 34px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Remove trailing visual line in action rail */
#appShell #effective #pricesActionTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* --- 2026-03 Fix v40: terminal override (must be last) --- */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 250px !important;
}

#appShell #effective #pricesTable,
#appShell #effective #pricesActionTable {
  table-layout: fixed !important;
}

#appShell #effective #pricesTable th,
#appShell #effective #pricesTable td,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  vertical-align: middle !important;
  height: auto !important;
  min-height: 0 !important;
}

#appShell #effective #pricesActionTable,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td,
#appShell #effective #pricesActionTable .action-col-head,
#appShell #effective #pricesActionTable .action-col-filter,
#appShell #effective #pricesActionTable td.action-cell {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesActionTable td.action-cell {
  padding: 8px 12px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 8px !important;
  height: 100% !important;
  overflow: visible !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* --- 2026-03 Fix v41: terminal override for clipped action buttons + row alignment --- */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  width: 100% !important;
  max-width: 100% !important;
}

#appShell #effective .prices-table-wrap {
  min-width: 0 !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#appShell #effective .prices-actions-wrap,
#appShell #effective #pricesActionTable,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td,
#appShell #effective #pricesActionTable .action-col-head,
#appShell #effective #pricesActionTable .action-col-filter,
#appShell #effective #pricesActionTable td.action-cell {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  box-sizing: border-box !important;
}

/* clear all old forced row heights and let JS sync per row */
#appShell #effective #pricesTable thead tr,
#appShell #effective #pricesActionTable thead tr,
#appShell #effective #pricesTable tbody tr,
#appShell #effective #pricesActionTable tbody tr,
#appShell #effective #pricesTable thead th,
#appShell #effective #pricesActionTable thead th,
#appShell #effective #pricesTable tbody td,
#appShell #effective #pricesActionTable tbody td {
  height: auto !important;
  min-height: 0 !important;
  vertical-align: middle !important;
}

#appShell #effective #pricesActionTable td.action-cell {
  padding: 4px 10px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 6px !important;
  height: 100% !important;
  overflow: hidden !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* --- 2026-03 Fix v42: single-table action column for exact line alignment --- */
#appShell #effective .prices-actions-wrap,
#appShell #effective #pricesActionTable {
  display: none !important;
}

#appShell #effective .prices-table-layout {
  display: block !important;
  grid-template-columns: none !important;
}

#appShell #effective .prices-table-wrap {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#appShell #effective #pricesTable {
  width: max-content !important;
  min-width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

#appShell #effective #pricesTable th.col-action,
#appShell #effective #pricesTable td.col-action {
  display: table-cell !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  position: sticky !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  z-index: 30 !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesTable tbody td.col-action {
  z-index: 24 !important;
  padding: 6px 10px !important;
}

#appShell #effective #pricesTable tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

#appShell #effective #pricesTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  height: 100% !important;
}

#appShell #effective #pricesTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* --- 2026-03 Fix v50: name + image url column sizing --- */
#appShell #effective #pricesTable th.col-name,
#appShell #effective #pricesTable td.col-name {
  width: 520px !important;
  min-width: 520px !important;
  max-width: 520px !important;
}

#appShell #effective #pricesTable td.col-name .price-name-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

#appShell #effective #pricesTable th.col-sku-zs,
#appShell #effective #pricesTable td.col-sku-zs {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}

#appShell #effective #pricesTable th.col-image-url,
#appShell #effective #pricesTable td.col-image-url {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
}

#appShell #effective #pricesTable td.col-image-url input {
  width: 100% !important;
  min-width: 0 !important;
}

/* --- 2026-03 Fix v43: final row-line lock (prices + action column) --- */
#appShell #effective #pricesTable {
  /* sticky right column is reliable with separate table borders */
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#appShell #effective #pricesTable th,
#appShell #effective #pricesTable td {
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th {
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesTable thead > tr.filter-row > th {
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesTable tbody > tr > td {
  height: 126px !important;
  min-height: 126px !important;
  max-height: 126px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesTable tbody > tr > td.col-action {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

#appShell #effective #pricesTable tbody > tr > td.col-action .action-cell-inner {
  height: auto !important;
  min-height: 0 !important;
  justify-content: center !important;
}

/* keep action column sticky in normal + extended mode */
#appShell #effective #pricesTable thead > tr > th.col-action,
#appShell #effective #pricesTable tbody > tr > td.col-action,
body.show-extended-prices #appShell #effective #pricesTable thead > tr > th.col-action,
body.show-extended-prices #appShell #effective #pricesTable tbody > tr > td.col-action {
  position: -webkit-sticky !important;
  position: sticky !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  z-index: 40 !important;
  background: #fff !important;
}

/* --- 2026-03 Fix v44: first-render visibility lock for right-side columns --- */
#appShell #effective #pricesTable thead th:nth-child(n+8),
#appShell #effective #pricesTable tbody td:nth-child(n+8),
#appShell #effective #pricesTable thead th.col-action,
#appShell #effective #pricesTable tbody td.col-action {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* --- 2026-03 Fix v45: permanent right action rail (always visible) --- */
#appShell #effective .prices-table-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  width: 100% !important;
  overflow: hidden !important;
}

#appShell #effective .prices-table-wrap {
  width: 100% !important;
  min-width: 0 !important;
  overflow-y: hidden !important;
}

body:not(.show-extended-prices) #appShell #effective .prices-table-wrap {
  overflow-x: hidden !important;
}

body.show-extended-prices #appShell #effective .prices-table-wrap {
  overflow-x: auto !important;
}

#appShell #effective .prices-actions-wrap {
  display: block !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  border-left: 1px solid #E4D4DA !important;
  background: #fff !important;
  overflow: hidden !important;
}

#appShell #effective .prices-actions-wrap::after {
  display: none !important;
  content: none !important;
}

#appShell #effective #pricesActionTable {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th,
#appShell #effective #pricesActionTable thead > tr:first-child > th {
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesTable thead > tr.filter-row > th,
#appShell #effective #pricesActionTable thead > tr.filter-row > th {
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesTable tbody > tr > td,
#appShell #effective #pricesActionTable tbody > tr > td {
  height: 126px !important;
  min-height: 126px !important;
  max-height: 126px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesActionTable td.action-cell {
  padding: 0 12px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* internal action column stays hidden when using external action rail */
#appShell #effective #pricesTable th.col-action,
#appShell #effective #pricesTable td.col-action {
  display: none !important;
}

/* --- 2026-03 Fix v46: remove SKU/URL separator + tighter action sizing + row alignment --- */
#appShell #effective #pricesTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

/* remove the unnecessary vertical divider between SKU Zumstein and Bild URL */
#appShell #effective #pricesTable th.col-sku-zs,
#appShell #effective #pricesTable td.col-sku-zs {
  border-right: 0 !important;
}

#appShell #effective #pricesTable th.col-sku-zs + th,
#appShell #effective #pricesTable td.col-sku-zs + td {
  border-left: 0 !important;
}

/* action rail narrower so buttons are not oversized */
#appShell #effective .prices-table-layout {
  grid-template-columns: minmax(0, 1fr) 220px !important;
}

#appShell #effective .prices-actions-wrap,
#appShell #effective #pricesActionTable,
#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
}

/* lock row heights on both tables to keep all horizontal lines on same level */
#appShell #effective #pricesTable thead > tr:first-child > th,
#appShell #effective #pricesActionTable thead > tr:first-child > th {
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
}

#appShell #effective #pricesTable thead > tr.filter-row > th,
#appShell #effective #pricesActionTable thead > tr.filter-row > th {
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
}

#appShell #effective #pricesTable tbody > tr > td,
#appShell #effective #pricesActionTable tbody > tr > td {
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
}

#appShell #effective #pricesActionTable td.action-cell {
  padding: 0 10px !important;
}

#appShell #effective #pricesActionTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesActionTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesActionTable .action-cell-inner > .delete-mini-btn {
  height: 32px !important;
  min-height: 32px !important;
}

/* --- 2026-03 Fix v47: keep sticky, restore compact row spacing/lines --- */
#appShell #effective #pricesTable thead > tr:first-child > th,
#appShell #effective #pricesActionTable thead > tr:first-child > th {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
}

#appShell #effective #pricesTable thead > tr.filter-row > th,
#appShell #effective #pricesActionTable thead > tr.filter-row > th {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
}

#appShell #effective #pricesTable tbody > tr > td,
#appShell #effective #pricesActionTable tbody > tr > td {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
}

#appShell #effective #pricesTable tbody > tr > td,
#appShell #effective #pricesActionTable tbody > tr > td {
  border-top: 1px solid #E4D4DA !important;
  vertical-align: middle !important;
}

/* Landing: forgot password action */
#landing .landing-forgot-link {
  margin-top: -2px !important;
  align-self: flex-start !important;
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #7A5060 !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
}

#landing .landing-forgot-link:hover,
#landing .landing-forgot-link:focus-visible {
  color: #AD093D !important;
}

/* --- 2026-03 Fix v60: remove stray dots + force unified prices table alignment --- */
#appShell #effective .prices-actions-wrap,
#appShell #effective #pricesActionTable {
  display: none !important;
}

#appShell #effective .prices-table-layout {
  display: block !important;
  grid-template-columns: none !important;
  overflow: visible !important;
}

#appShell #effective .prices-table-wrap {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

#appShell #effective #pricesTable {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th,
#appShell #effective #pricesTable thead > tr.filter-row > th,
#appShell #effective #pricesTable tbody > tr > td {
  vertical-align: middle !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
}

#appShell #effective #pricesTable thead > tr.filter-row > th {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
}

#appShell #effective #pricesTable tbody > tr > td {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
}

/* Header checkbox cell: no pseudo text / no stray "..." */
#appShell #effective #pricesTable thead > tr:first-child > th.col-select,
#appShell #effective #pricesTable thead > tr.filter-row > th.col-select,
#appShell #effective #pricesTable tbody > tr > td.col-select {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  text-align: center !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  color: transparent !important;
  white-space: normal !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th.col-select::before,
#appShell #effective #pricesTable thead > tr:first-child > th.col-select::after,
#appShell #effective #pricesTable thead > tr.filter-row > th.col-select::before,
#appShell #effective #pricesTable thead > tr.filter-row > th.col-select::after {
  content: none !important;
  display: none !important;
}

#appShell #effective #pricesTable th.col-select input[type="checkbox"],
#appShell #effective #pricesTable td.col-select input[type="checkbox"] {
  margin: 0 auto !important;
  display: block !important;
}

/* Action column aligned to same row grid and sticky at right edge */
#appShell #effective #pricesTable th.col-action,
#appShell #effective #pricesTable td.col-action {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  position: sticky !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  box-sizing: border-box !important;
  z-index: 24 !important;
}

#appShell #effective #pricesTable th.col-action {
  z-index: 34 !important;
}

#appShell #effective #pricesTable tr.manual-price-row td.col-action {
  background: #FBEFF4 !important;
}

#appShell #effective #pricesTable td.col-action {
  padding: 10px 12px !important;
}

#appShell #effective #pricesTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
}

#appShell #effective #pricesTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* --- 2026-03 Fix v61: import/search/popup/switcher polish --- */
/* Remove wobble on row hover globally (no horizontal jump) */
tbody tr td {
  transition: background-color 0.15s ease !important;
}

tbody tr:hover td {
  padding-left: 10px !important;
}

/* Import step: Tabellenblatt selector should be larger */
#fixedSheetSelect {
  min-width: 180px !important;
  width: 180px !important;
}

/* Suggestions table action buttons: cleaner placement */
#suggestionsBody td:last-child {
  vertical-align: middle !important;
}

#suggestionsBody td:last-child .ki-live-badge {
  margin-bottom: 8px !important;
}

#suggestionsBody td:last-child .btn-main,
#suggestionsBody td:last-child .btn-subtle {
  min-width: 160px !important;
}

/* Assistant button/panel spacing */
#openAssistantBtn.assistant-fab {
  top: 20px !important;
  right: 24px !important;
}

#openAssistantBtn.assistant-fab.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

#assistantPanel.assistant-panel {
  padding: 16px 16px 16px 16px !important;
}

#assistantPanel .assistant-head-tools {
  padding-right: 8px !important;
}

#closeAssistantBtn {
  margin-right: 8px !important;
}

/* Small, consistent switchers in form/tool rows */
.cond-toggle-item > input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 30px !important;
  height: 16px !important;
  min-width: 30px !important;
  min-height: 16px !important;
  border-radius: 8px !important;
  border: 1px solid #C9A8B5 !important;
  background: #EFE8EB !important;
  position: relative !important;
  cursor: pointer !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.cond-toggle-item > input[type="checkbox"]::after {
  content: '' !important;
  position: absolute !important;
  top: 1px !important;
  left: 1px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #fff !important;
  transition: left 0.15s ease !important;
}

.cond-toggle-item > input[type="checkbox"]:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

.cond-toggle-item > input[type="checkbox"]:checked::after {
  left: 15px !important;
}

/* Global fix: regular checkboxes inside cond-toggle rows must stay square (no slider knob) */
.cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices) {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border: 1px solid #B88FA0 !important;
  border-radius: 3px !important;
  background: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices)::after {
  content: none !important;
}

.cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

.cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked::before {
  content: "" !important;
  position: absolute !important;
  left: 3px !important;
  top: 0px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

/* --- 2026-03 Fix v48: single divider + strict compact row geometry --- */
#appShell #effective #pricesTable,
#appShell #effective #pricesActionTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th,
#appShell #effective #pricesActionTable thead > tr:first-child > th {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 0 12px !important;
}

#appShell #effective #pricesTable thead > tr.filter-row > th,
#appShell #effective #pricesActionTable thead > tr.filter-row > th {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 10px !important;
}

#appShell #effective #pricesTable tbody > tr > td,
#appShell #effective #pricesActionTable tbody > tr > td {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 0 10px !important;
}

/* avoid double-thick separator at table/action boundary */
#appShell #effective #pricesTable thead > tr > th:last-child,
#appShell #effective #pricesTable tbody > tr > td:last-child {
  border-right: 0 !important;
}

#appShell #effective .prices-actions-wrap {
  border-left: 1px solid #E4D4DA !important;
}

#appShell #effective #pricesActionTable th,
#appShell #effective #pricesActionTable td {
  border-left: 0 !important;
}

/* --- 2026-03 Fix v49: single-table sticky action column (final alignment) --- */
#appShell #effective .prices-actions-wrap,
#appShell #effective #pricesActionTable {
  display: none !important;
}

#appShell #effective .prices-table-layout {
  display: block !important;
  grid-template-columns: none !important;
  overflow: visible !important;
}

#appShell #effective .prices-table-wrap {
  overflow-y: hidden !important;
}

body.show-extended-prices #appShell #effective .prices-table-wrap {
  overflow-x: auto !important;
}

body:not(.show-extended-prices) #appShell #effective .prices-table-wrap {
  overflow-x: hidden !important;
}

#appShell #effective #pricesTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: max-content !important;
  min-width: 100% !important;
}

#appShell #effective #pricesTable th.col-action,
#appShell #effective #pricesTable td.col-action {
  display: table-cell !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  position: sticky !important;
  right: 0 !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  z-index: 100 !important;
  vertical-align: middle !important;
}

#appShell #effective #pricesTable thead th.col-action {
  z-index: 110 !important;
}

#appShell #effective #pricesTable tbody td.col-action {
  z-index: 105 !important;
}

#appShell #effective #pricesTable .action-cell-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 6px !important;
}

#appShell #effective #pricesTable .action-cell-inner > .price-action-btn,
#appShell #effective #pricesTable .action-cell-inner > .reviewed-badge,
#appShell #effective #pricesTable .action-cell-inner > .delete-mini-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Fix: clip table overflow so sticky right:0 binds to .prices-table-wrap scroll container, not the table itself */
#appShell #effective #pricesTable {
  overflow-x: clip !important;
  overflow-y: clip !important;
}

/* Fix: clip layout to border-radius so separator line reaches corners cleanly and backgrounds don't bleed out */
#appShell #effective .prices-table-layout {
  overflow: clip !important;
}

/* Fix: padding-right on wrap creates 14px gap right of sticky col-action; remove it */
#appShell #effective .prices-table-wrap {
  padding-right: 0 !important;
}

/* Sidebar brand fine-tune: move PRICING TOOL slightly right */
#appShell > nav.tabs .sidebar-brand p {
  padding-left: 8px !important;
}

/* Prices: No Buyback must stay clickable in its own column */
#appShell #effective .prices-actions-wrap,
#appShell #effective #pricesActionTable {
  display: none !important;
  pointer-events: none !important;
}

#appShell #effective #pricesTable th.col-no-buyback,
#appShell #effective #pricesTable td.col-no-buyback {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  text-align: center !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

#appShell #effective #pricesTable th.col-reviewed-at,
#appShell #effective #pricesTable td.col-reviewed-at {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}

#appShell #effective #pricesTable td.col-no-buyback input[type="checkbox"] {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Prices table: No Buyback checkbox must be clearly visible and square */
#appShell #effective #pricesTable td.col-no-buyback input[type="checkbox"],
#appShell #effective #pricesTable .filter-row th.col-no-buyback input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border: 1px solid #C9A8B5 !important;
  border-radius: 2px !important;
  background: #FFFFFF !important;
  display: inline-block !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

#appShell #effective #pricesTable td.col-no-buyback input[type="checkbox"]:checked,
#appShell #effective #pricesTable .filter-row th.col-no-buyback input[type="checkbox"]:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

#appShell #effective #pricesTable td.col-no-buyback input[type="checkbox"]:checked::after,
#appShell #effective #pricesTable .filter-row th.col-no-buyback input[type="checkbox"]:checked::after {
  content: '' !important;
  position: absolute !important;
  left: 3px !important;
  top: 0px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

/* Hard reset for row-level No Buyback checkboxes (prevents oversized icon/square) */
#appShell #effective #pricesTable input[id^="price-no-buyback-"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border: 1px solid #C9A8B5 !important;
  border-radius: 2px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  line-height: 14px !important;
  vertical-align: middle !important;
  position: relative !important;
  display: inline-block !important;
  cursor: pointer !important;
  z-index: 1 !important;
}

#appShell #effective #pricesTable input[id^="price-no-buyback-"]:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

#appShell #effective #pricesTable input[id^="price-no-buyback-"]:checked::after {
  content: '' !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 5px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 1.8px 1.8px 0 !important;
  transform: rotate(45deg) !important;
  background: none !important;
}

/* Prices width lock: compact mode must fully fit, extended mode may scroll */
body:not(.show-extended-prices) #appShell #effective .prices-table-wrap {
  overflow-x: hidden !important;
}

body:not(.show-extended-prices) #appShell #effective #pricesTable {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

body:not(.show-extended-prices) #appShell #effective #pricesTable th.col-name,
body:not(.show-extended-prices) #appShell #effective #pricesTable td.col-name {
  width: auto !important;
  min-width: 300px !important;
  max-width: none !important;
}

body:not(.show-extended-prices) #appShell #effective #pricesTable th.col-reviewed-at,
body:not(.show-extended-prices) #appShell #effective #pricesTable td.col-reviewed-at {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
}

body:not(.show-extended-prices) #appShell #effective #pricesTable th.col-no-buyback,
body:not(.show-extended-prices) #appShell #effective #pricesTable td.col-no-buyback {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
}

body:not(.show-extended-prices) #appShell #effective #pricesTable th.col-action,
body:not(.show-extended-prices) #appShell #effective #pricesTable td.col-action {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
}

body.show-extended-prices #appShell #effective #pricesTable {
  width: max-content !important;
  min-width: 100% !important;
}

/* Fix scroll layering: No Buyback must not overlap sticky action column */
#appShell #effective #pricesTable th.col-no-buyback,
#appShell #effective #pricesTable td.col-no-buyback {
  position: static !important;
  z-index: auto !important;
}

#appShell #effective #pricesTable th.col-action {
  z-index: 260 !important;
}

#appShell #effective #pricesTable td.col-action {
  z-index: 250 !important;
}

#appShell #effective #pricesTable td.col-action .action-cell-inner,
#appShell #effective #pricesTable td.col-action .price-action-btn,
#appShell #effective #pricesTable td.col-action .reviewed-badge,
#appShell #effective #pricesTable td.col-action .delete-mini-btn {
  position: relative !important;
  z-index: 251 !important;
}

/* No Buyback must scroll normally (only action column is sticky) */
body.show-extended-prices #appShell #effective #pricesTable th.col-no-buyback,
body.show-extended-prices #appShell #effective #pricesTable td.col-no-buyback {
  position: static !important;
  right: auto !important;
  inset-inline-end: auto !important;
  z-index: auto !important;
}

/* Global checkbox visibility pass (except custom toggle switches) */
#appShell input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices),
#landing input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices) {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border: 1px solid #B88FA0 !important;
  border-radius: 3px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  position: relative !important;
  vertical-align: middle !important;
}

#appShell input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked,
#landing input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

#appShell input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked::after,
#landing input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked::after {
  content: "" !important;
  position: absolute !important;
  left: 3px !important;
  top: 0px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

#appShell input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):focus-visible,
#landing input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(173, 9, 61, 0.12) !important;
}

/* Final checkbox normalization (prevents oversized gray/red blocks) */
#appShell input[type="checkbox"],
#landing input[type="checkbox"] {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  background-clip: padding-box !important;
}

#appShell th input[type="checkbox"],
#landing th input[type="checkbox"] {
  transform: none !important;
}

/* Final: all checkboxes unified and clearly visible (including imports/settings) */
#appShell input[type="checkbox"],
#landing input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  flex: 0 0 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #B88FA0 !important;
  border-radius: 3px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

#appShell input[type="checkbox"]:checked,
#landing input[type="checkbox"]:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

#appShell input[type="checkbox"]:checked::after,
#landing input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 3px !important;
  top: 0px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  background: none !important;
}

/* Preise: short white-check animation on "Geprüft" click */
#appShell #effective #pricesTable .price-action-btn.is-review-animating {
  color: #fff !important;
  position: relative !important;
  animation: priceReviewedButtonPop 0.5s ease !important;
}

@keyframes priceReviewedButtonPop {
  0% {
    transform: scale(0.96);
    opacity: 0.9;
  }
  35% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Assistant quick-help (top-right) */
#appShell main {
  position: relative;
}

#openAssistantBtn.assistant-fab {
  position: fixed !important;
  top: 16px !important;
  right: 18px !important;
  z-index: 360 !important;
  border-radius: 4px !important;
  padding: 8px 14px !important;
  background: #fff !important;
  color: #7A5060 !important;
  border: 1px solid #E4D4DA !important;
  font-family: "Futura PT", "Jost", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

#assistantPanel.assistant-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 420px !important;
  max-width: min(100vw, 420px) !important;
  height: 100vh !important;
  background: #fff !important;
  border-left: 1px solid #E4D4DA !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  padding: 14px !important;
  z-index: 361 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -4px 0 24px rgba(30,12,19,0.08) !important;
}

#assistantPanel .assistant-panel-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

#assistantPanel .assistant-panel-head h3 {
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #1E0C13 !important;
}

#assistantQuestionInput {
  width: 100% !important;
  min-height: 92px !important;
  resize: vertical !important;
  margin: 0 !important;
}

#assistantAnswer.assistant-answer {
  margin-top: 10px !important;
  border-top: 1px solid #E4D4DA !important;
  padding-top: 10px !important;
  white-space: pre-wrap !important;
  color: #1E0C13 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Sidebar footer compact mode: icons only + inline language */
#userFooterName {
  display: none !important;
}

#userFooterRow {
  gap: 8px !important;
}

#userSettingsDirectBtn,
#userLogoutDirectBtn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: rgba(255,255,255,0.72) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#userSettingsDirectBtn:hover,
#userLogoutDirectBtn:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

#footerLangToggle.landing-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 4px !important;
  padding: 0 !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  margin-left: auto !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: transparent !important;
  color: rgba(255,255,255,0.55) !important;
}

#footerLangToggle.landing-lang-btn.active {
  background: #AD093D !important;
  border-color: #AD093D !important;
  color: #fff !important;
}

/* Assistant panel as chat */
#assistantPanel.assistant-panel {
  padding: 14px !important;
}

#assistantPanel.hidden {
  display: none !important;
}

#assistantPanel .assistant-panel-head {
  margin-bottom: 10px !important;
}

#assistantMessages.assistant-messages {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 280px !important;
  overflow-y: auto !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
  padding: 8px !important;
  background: #fff !important;
}

.assistant-msg {
  display: flex !important;
  margin-bottom: 8px !important;
}

.assistant-msg-user {
  justify-content: flex-end !important;
}

.assistant-msg-assistant {
  justify-content: flex-start !important;
}

.assistant-msg-bubble {
  max-width: 90% !important;
  border-radius: 4px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  white-space: pre-wrap !important;
}

.assistant-msg-user .assistant-msg-bubble {
  background: #F5E8ED !important;
  border: 1px solid #E4D4DA !important;
  color: #1E0C13 !important;
}

.assistant-msg-assistant .assistant-msg-bubble {
  background: #fff !important;
  border: 1px solid #E4D4DA !important;
  color: #1E0C13 !important;
}

/* Footer controls: no JU popup, proportional spacing, low-color SW style */
#userMenu,
#userMenu.hidden,
#userMenu:not(.hidden) {
  display: none !important;
}

#userFooterRow {
  display: grid !important;
  grid-template-columns: 36px 36px 28px 28px !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 14px !important;
  width: auto !important;
}

#userBadge {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

#footerLangToggle.landing-lang-btn,
#footerLangToggle.landing-lang-btn.active {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  margin-left: 0 !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  background: transparent !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

#userSettingsDirectBtn,
#userLogoutDirectBtn {
  border: none !important;
  background: transparent !important;
  color: rgba(255,255,255,0.76) !important;
}

#userSettingsDirectBtn:hover,
#userLogoutDirectBtn:hover,
#userBadge:hover,
#footerLangToggle.landing-lang-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.52) !important;
}

/* Dashboard audit filters: remove white box, keep CI-flat styling */
#dashboard > .dashboard-audit-head {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#dashboard > .dashboard-audit-head .audit-filters {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 12px !important;
}

#dashboard > .dashboard-audit-head .audit-filters select,
#dashboard > .dashboard-audit-head .audit-filters button {
  min-height: 32px !important;
  padding: 0 14px !important;
  background: rgba(245, 232, 237, 0.42) !important;
  border: 1px solid #E4D4DA !important;
  border-radius: 4px !important;
}

/* Prices table header cleanup: remove stray "..." and align all header lines */
#appShell #effective #pricesTable thead > tr:first-child > th,
#appShell #effective #pricesActionTable thead > tr:first-child > th {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  vertical-align: middle !important;
  line-height: 1.1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th.col-select {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th.col-select::before,
#appShell #effective #pricesTable thead > tr:first-child > th.col-select::after {
  content: none !important;
  display: none !important;
}

#appShell #effective #pricesTable thead > tr:first-child > th.col-select > input[type="checkbox"] {
  display: block !important;
  margin: 0 auto !important;
  width: 18px !important;
  height: 18px !important;
}

.assistant-compose {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-top: 10px !important;
  align-items: stretch !important;
}

.assistant-head-tools {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 6px !important;
  align-items: center !important;
  width: min(250px, 100%) !important;
}

#assistantSessionSelect {
  width: 100% !important;
  min-width: 0 !important;
}

#closeAssistantBtn {
  min-width: 0 !important;
  padding: 8px 10px !important;
}

#effective #pricesTable .col-select {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  text-align: center !important;
}

#effective #pricesTable .col-select input[type="checkbox"] {
  margin: 0 !important;
}

#assistantQuestionInput {
  min-height: 52px !important;
  max-height: 130px !important;
  margin: 0 !important;
}

#assistantAskBtn {
  min-height: 38px !important;
}

/* FINAL HARD RESET: remove any slider-circle overlay from regular checkboxes */
#appShell .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices),
#landing .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices),
#appShell #newwareFeed #newwareOnlyActiveActions,
#appShell #newwareFeed #newwareSelectAllVisible {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  border: 1px solid #B88FA0 !important;
  border-radius: 3px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transform: none !important;
}

#appShell .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices)::after,
#landing .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices)::after,
#appShell #newwareFeed #newwareOnlyActiveActions::after,
#appShell #newwareFeed #newwareSelectAllVisible::after {
  content: none !important;
  display: none !important;
}

#appShell .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked,
#landing .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked,
#appShell #newwareFeed #newwareOnlyActiveActions:checked,
#appShell #newwareFeed #newwareSelectAllVisible:checked {
  background: #AD093D !important;
  border-color: #AD093D !important;
}

#appShell .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked::before,
#landing .cond-toggle-item > input[type="checkbox"]:not(#manualProductNoBuyback):not(#hideNoBuybackRows):not(#showAllConditionPrices):checked::before,
#appShell #newwareFeed #newwareOnlyActiveActions:checked::before,
#appShell #newwareFeed #newwareSelectAllVisible:checked::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 4px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  background: none !important;
}
