/* MISCHEL | Fixed navigation for the seven existing admin workspaces.
   Admin dialogs remain controlled by their original scripts. */
:is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,
    #test-orders-admin,#business-admin,#mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin)[open] > .mischel-admin-workspace-nav {
  position:fixed!important;
  inset:0 0 auto 0!important;
  z-index:1250!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center;
  gap:14px;
  margin:0!important;
  padding:8px 78px 8px 22px!important;
  width:100%!important;
  min-height:65px;
  color:#342b24;
  background:#f7f3ed;
  border-bottom:1px solid #dfd3c1;
  box-shadow:0 2px 10px rgba(51,37,21,.07);
  font-family:Arial,sans-serif;
}
.mischel-admin-workspace-nav .mischel-workspace-brand {
  flex:0 0 auto;
  font:700 11px/1.3 Arial,sans-serif;
  letter-spacing:.13em;
  color:#80653e;
  white-space:nowrap;
}
.mischel-admin-workspace-nav .mischel-workspace-tabs {
  display:flex;
  flex:1 1 auto;
  min-width:0;
  align-items:center;
  gap:5px;
}
.mischel-admin-workspace-nav :is(.mischel-workspace-tab,.mischel-workspace-logout) {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:0 0 auto;
  min-height:37px;
  padding:8px 10px;
  color:#393027;
  background:transparent;
  border:1px solid transparent;
  border-radius:9px;
  box-shadow:none;
  font:500 12px/1.25 Arial,sans-serif;
  white-space:nowrap;
  cursor:pointer;
  text-decoration:none;
}
.mischel-admin-workspace-nav :is(.mischel-workspace-tab,.mischel-workspace-logout):hover {
  color:#6e4e22;
  background:#efe6d8;
}
.mischel-admin-workspace-nav :is(.mischel-workspace-tab.is-active,.mischel-workspace-tab[aria-current="page"]) {
  background:#e7d5b8;
  border-color:#c8a66d;
  font-weight:700;
  color:#5b3d1f;
}
.mischel-admin-workspace-nav :is(button,select,summary):focus-visible {
  outline:2px solid #a77c40!important;
  outline-offset:2px!important;
}
.mischel-admin-workspace-nav .mischel-workspace-marketing {
  position:relative;
  flex:0 0 auto;
  margin:0;
}
.mischel-admin-workspace-nav .mischel-workspace-marketing > summary {
  list-style:none;
  user-select:none;
}
.mischel-admin-workspace-nav .mischel-workspace-marketing > summary::-webkit-details-marker {display:none}
.mischel-admin-workspace-nav .mischel-workspace-marketing-options {
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:215px;
  padding:6px;
  z-index:1270;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:3px;
  background:#fbf8f2;
  border:1px solid #d8c7ae;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(49,39,24,.14);
}
.mischel-admin-workspace-nav .mischel-workspace-marketing-options .mischel-workspace-tab {
  justify-content:flex-start;
  width:100%;
  white-space:normal;
  text-align:left;
}
.mischel-admin-workspace-nav .mischel-workspace-mobile {display:none;}
.mischel-admin-workspace-nav .mischel-workspace-close {
  position:absolute!important;
  inset:10px 18px auto auto!important;
  z-index:1280!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  color:#342b24!important;
  background:#fbf8f2!important;
  border:1px solid #d9c9b3!important;
  border-radius:50%!important;
  font:normal 27px/1 Arial,sans-serif!important;
  text-decoration:none!important;
  box-shadow:0 2px 7px #31241b18!important;
  cursor:pointer;
}
.mischel-admin-workspace-nav .mischel-workspace-close:hover {background:#eee6da!important}
/* Hide only the old close buttons of admin panels; the new x is the exit. */
:is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,
    #test-orders-admin,#business-admin,#mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin).mischel-has-admin-workspace[open]
    > :is(button.close,button.mischel-dialog-close) {display:none!important;}
/* Leave room above the forms for the fixed admin navigation. */
:is(#catalog-admin,#admin,#promo-admin,#stats-admin,#test-orders-admin,
    #business-admin,#mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin).mischel-has-admin-workspace[open] {
  padding-top:100px!important;
}
#sets-admin.mischel-has-admin-workspace[open] > .mischel-dialog-viewport {
  padding-top:100px!important;
}
/* MISCHEL F14 ResponsiveNavigation 20261106 */
@media (max-width:1220px) {
  .mischel-admin-workspace-nav .mischel-workspace-tabs {display:none!important;}
  .mischel-admin-workspace-nav .mischel-workspace-mobile {
    display:flex;
    flex:1 1 auto;
    min-width:0;
  }
  .mischel-admin-workspace-nav .mischel-workspace-mobile-label {
    display:flex;
    align-items:center;
    flex:1 1 auto;
    gap:10px;
    min-width:0;
    font:500 12px/1.2 Arial,sans-serif;
  }
  .mischel-admin-workspace-nav .mischel-workspace-select {
    flex:1 1 auto;
    min-width:0;
    width:100%;
    max-width:400px;
    height:42px;
    box-sizing:border-box;
    padding:7px 30px 7px 12px;
    font:500 14px/1.2 Arial,sans-serif;
    border:1px solid #cdb896;
    border-radius:9px;
    background:#fffdfa;
    color:#382d22;
  }
}
@media (max-width:520px) {
  :is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,
      #test-orders-admin,#business-admin,#mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin)[open] > .mischel-admin-workspace-nav {
    gap:8px;
    padding:8px 66px 8px 10px!important;
    min-height:61px;
  }
  .mischel-admin-workspace-nav .mischel-workspace-brand {display:none;}
  .mischel-admin-workspace-nav .mischel-workspace-mobile-label {font-size:0;}
  .mischel-admin-workspace-nav .mischel-workspace-select {max-width:none;font-size:16px;}
  .mischel-admin-workspace-nav .mischel-workspace-close {
    top:9px!important;right:10px!important;width:42px!important;height:42px!important;
  }
  :is(#catalog-admin,#admin,#promo-admin,#stats-admin,#test-orders-admin,
      #business-admin,#mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin).mischel-has-admin-workspace[open] {
    padding-top:86px!important;
  }
  #sets-admin.mischel-has-admin-workspace[open] > .mischel-dialog-viewport {padding-top:86px!important;}
}


/* MISCHEL · Rabattaktionen: classic cream-and-gold presentation.
   Scoped exclusively to the existing promotions admin dialog. Do not
   alter the promotion planner's data, event handlers or navigation. */
#promo-admin.mischel-has-admin-workspace[open] {
  color:#30291f;
  background:#f8f5ef;
}
#promo-admin.mischel-has-admin-workspace > h2 {
  max-width:100%;
  margin:0 0 26px;
  padding:0 0 12px;
  font:normal clamp(30px,3.1vw,39px)/1.25 Georgia,'Times New Roman',serif;
  border-bottom:1px solid #ded1bd;
  color:#332b24;
}
#promo-admin .promo-planner-header {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 22px;
  margin:0 0 18px;
}
#promo-admin .promo-planner-header > h3 {
  margin:0;
  font:normal clamp(23px,2.4vw,28px)/1.3 Georgia,'Times New Roman',serif;
  color:#3d3024;
}
#promo-admin #promo-add,
#promo-admin .promo-campaign-actions > button,
#promo-admin #promo-editor :is(.secondary,button.button) {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:41px;
  width:auto;
  padding:10px 16px;
  border:1px solid #d4bfa1;
  border-radius:11px;
  background:#fffaf2;
  box-shadow:0 3px 8px rgba(61,45,22,.08);
  color:#3c3024;
  cursor:pointer;
  font:500 12px/1.3 Arial,Helvetica,sans-serif;
  text-decoration:none;
  white-space:nowrap;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
#promo-admin #promo-add:hover,
#promo-admin .promo-campaign-actions > button:hover,
#promo-admin #promo-editor .secondary:hover {
  background:#f3e6d3;
  border-color:#ae8750;
  box-shadow:0 5px 12px rgba(61,45,22,.12);
}
#promo-admin #promo-add:focus-visible,
#promo-admin .promo-campaign-actions > button:focus-visible {
  outline:2px solid #98703d;
  outline-offset:2px;
}
#promo-admin #promo-editor button.button {
  background:#302b26;
  color:#fff;
  border-color:#302b26;
}
#promo-admin #promo-editor button.button:hover {background:#57432d;}
#promo-admin .promo-campaign-actions > button:last-child {
  border-color:#caa99e;
  color:#8b3f32;
}
#promo-admin .promo-campaign-actions > button:last-child:hover {background:#fff0ed;}
#promo-admin #promo-campaign-list {
  width:100%;
  min-width:0;
  margin:0 0 30px;
}
#promo-admin #promo-campaign-list > p {
  color:#726555;
  background:#f1e9dc;
  padding:15px 18px;
  border:1px solid #e0d2c0;
  border-radius:10px;
  line-height:1.6;
}
#promo-admin table.promo-campaigns-table {
  width:100%;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
  background:#fffdf9;
  border:1px solid #dfd1bf;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(52,42,29,.055);
  font:13px/1.5 Arial,Helvetica,sans-serif;
  color:#3f352c;
}
#promo-admin table.promo-campaigns-table th,
#promo-admin table.promo-campaigns-table td {
  box-sizing:border-box;
  padding:17px 15px;
  text-align:left;
  vertical-align:middle;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  border-bottom:1px solid #e8ded0;
}
#promo-admin table.promo-campaigns-table th {
  background:#ede2d1;
  color:#563f29;
  font-size:12px;
  font-weight:700;
  letter-spacing:.018em;
}
#promo-admin table.promo-campaigns-table tr:last-child td {border-bottom:0;}
#promo-admin table.promo-campaigns-table tbody tr:hover td {background:#faf4ea;}
#promo-admin table.promo-campaigns-table :is(th,td):nth-child(1){width:24%;}
#promo-admin table.promo-campaigns-table :is(th,td):nth-child(2){width:23%;}
#promo-admin table.promo-campaigns-table :is(th,td):nth-child(3){width:9%;text-align:center;}
#promo-admin table.promo-campaigns-table :is(th,td):nth-child(4){width:12%;}
#promo-admin table.promo-campaigns-table :is(th,td):nth-child(5){width:32%;}
#promo-admin td.promo-campaign-actions {
  display:table-cell;
  white-space:normal;
}
#promo-admin td.promo-campaign-actions > button {
  margin:0 7px 5px 0;
}
#promo-admin .promo-campaign-actions button {padding:9px 12px;min-height:37px;}
#promo-admin #promo-editor:not([hidden]) {
  display:block;
  margin-top:22px;
  padding:26px clamp(16px,2.7vw,32px) 30px;
  border:1px solid #dfcfb7;
  border-radius:14px;
  background:#fffaf3;
  box-shadow:0 5px 15px rgba(45,32,15,.05);
}
#promo-admin #promo-editor[hidden] {display:none!important;}
#promo-admin #promo-editor > h3 {
  margin:0 0 22px;
  padding-bottom:13px;
  color:#423023;
  border-bottom:1px solid #e6d9c7;
  font:normal clamp(24px,2.5vw,30px)/1.3 Georgia,'Times New Roman',serif;
}
#promo-admin #promo-editor .mischel-panel-form{margin:0;gap:19px;}
#promo-admin #promo-editor .mischel-panel-form > fieldset{
  margin:8px 0;
  padding:20px clamp(12px,2vw,24px);
  min-width:0;
  border:1px solid #d9c7ac;
  border-radius:7px;
  background:#fffcf7;
}
#promo-admin #promo-editor .mischel-panel-form legend{
  padding:0 9px;
  color:#3b3025;
  font:normal clamp(19px,2vw,23px)/1.3 Georgia,'Times New Roman',serif;
}
#promo-admin #promo-editor :is(input:not([type=checkbox]),select,textarea){
  box-sizing:border-box;
  max-width:100%;
  border:1px solid #dccfbc;
  border-radius:3px;
  background:#fffdf9;
  color:#332b24;
}
#promo-admin #promo-editor :is(input,select,textarea):focus-visible{outline:2px solid #b18c5e;outline-offset:1px;}
#promo-admin #promo-editor .promo-rule-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  padding:12px 4px;
  border-bottom:1px solid #e7ddcf;
}
#promo-admin #promo-editor .promo-rule-row:last-child{border-bottom:0;}
#promo-admin #promo-editor .promo-rule-row label{flex:1 1 180px;min-width:0;display:flex;align-items:center;gap:10px;}
#promo-admin #promo-editor .promo-rule-row input[type=number]{max-width:82px;width:82px;flex:0 0 82px;}
#promo-admin #promo-editor .promo-product-thumb{
  object-fit:contain;
  background:#fff;
  border:1px solid #dfd2c0;
  border-radius:6px;
}
#promo-admin #promo-editor #promo-preview{max-width:100%;overflow-x:auto;}
#promo-admin #promo-editor #promo-preview table{min-width:450px;}
@media(max-width:760px){
  #promo-admin .promo-planner-header {align-items:stretch;}
  #promo-admin #promo-add {width:fit-content;}
  #promo-admin table.promo-campaigns-table,
  #promo-admin table.promo-campaigns-table tbody {display:block;border:0;background:transparent;box-shadow:none;}
  #promo-admin table.promo-campaigns-table thead {display:none;}
  #promo-admin table.promo-campaigns-table tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 16px;
    margin:0 0 14px;
    padding:12px;
    background:#fffdf9;
    border:1px solid #dfd1bf;
    border-radius:12px;
    box-shadow:0 3px 8px rgba(52,42,29,.06);
  }
  #promo-admin table.promo-campaigns-table td,
  #promo-admin table.promo-campaigns-table td:nth-child(n){
    width:auto;
    display:block;
    padding:7px 4px;
    text-align:left;
    border:0;
    overflow-wrap:anywhere;
  }
  #promo-admin table.promo-campaigns-table td::before{
    display:block;
    margin-bottom:4px;
    font:700 10px/1.4 Arial,sans-serif;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:#93764f;
  }
  #promo-admin table.promo-campaigns-table td:nth-child(1)::before{content:'Aktion';}
  #promo-admin table.promo-campaigns-table td:nth-child(2)::before{content:'Zeitraum';}
  #promo-admin table.promo-campaigns-table td:nth-child(3)::before{content:'Produkte';}
  #promo-admin table.promo-campaigns-table td:nth-child(4)::before{content:'Status';}
  #promo-admin table.promo-campaigns-table td:nth-child(5){grid-column:1/-1;padding-top:11px;border-top:1px solid #eadfce;}
  #promo-admin table.promo-campaigns-table td:nth-child(5)::before{content:'';display:none;}
  #promo-admin #promo-editor:not([hidden]){padding:18px 14px;}
}
@media(max-width:440px){
  #promo-admin table.promo-campaigns-table tr{grid-template-columns:1fr;}
  #promo-admin table.promo-campaigns-table td:nth-child(5){grid-column:1;}
  #promo-admin .promo-campaign-actions{gap:7px;}
  #promo-admin .promo-campaign-actions > button{flex:1 1 auto;min-width:0;}
  #promo-admin #promo-editor .mischel-panel-form > fieldset{padding:16px 10px;}
}

/* 2026-10-24 · Original Rabattaktionen editing layout (V2) adapted to the
   new multi-campaign editor; scoped so no other admin pages are affected. */
#promo-admin.mischel-has-admin-workspace[open] {
  background:#f8f5ef;
  color:#352c25;
}
/* The original editor was part of the page rather than a nested rounded card. */
#promo-admin #promo-editor:not([hidden]) {
  margin:32px 0 0;
  padding:24px 0 30px;
  background:transparent;
  border:0;
  border-top:1px solid #d9c9b4;
  border-radius:0;
  box-shadow:none;
}
#promo-admin #promo-editor > h3 {
  margin:0 0 22px;
  padding:0 0 14px;
  border-bottom:1px solid #e1d5c3;
  color:#392d23;
  font:normal clamp(25px,2.2vw,30px)/1.28 Georgia,'Times New Roman',serif;
}
#promo-admin #season-promo-form {
  width:100%;
  min-width:0;
  display:grid;
  gap:20px;
  margin:0;
}
#promo-admin #season-promo-form > label:not(.consent-field),
#promo-admin #season-promo-form .form-row > label {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  color:#382d25;
  font-size:13px;
  line-height:1.4;
}
#promo-admin #season-promo-form > label.consent-field {
  display:flex;
  flex-direction:row;
  justify-content:flex-start;
  align-items:center;
  width:fit-content;
  gap:10px;
  min-height:38px;
  font-size:13px;
}
#promo-admin #season-promo-form > label.consent-field > input[type=checkbox] {
  flex:0 0 auto;
  margin:0;
}
#promo-admin #season-promo-form :is(input:not([type=checkbox]),select,textarea){
  box-sizing:border-box;
  height:46px;
  min-width:0;
  width:100%;
  max-width:100%;
  padding:10px 13px;
  background:#fffcf8;
  border:1px solid #dccfbd;
  border-radius:2px;
  color:#3b3025;
  font:13px/1.35 Arial,sans-serif;
}
#promo-admin #season-promo-form input[type=number][data-group-percent],
#promo-admin #season-promo-form input[type=number][data-product-percent] {
  width:76px;
  height:41px;
  flex:0 0 76px;
  text-align:center;
  margin:0;
  padding:7px 8px;
}
#promo-admin #season-promo-form input[name=allPercent] {
  width:170px;
}
#promo-admin #season-promo-form #promo-seasonal-choice[hidden],
#promo-admin #season-promo-form #promo-manual-dates[hidden],
#promo-admin #promo-editor[hidden] { display:none!important; }
#promo-admin #season-promo-form .form-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:18px;
  min-width:0;
}
#promo-admin #season-promo-form > fieldset {
  min-width:0;
  margin:12px 0 0;
  padding:23px clamp(14px,2vw,23px) 24px;
  background:transparent;
  border:1px solid #d6c8b4;
  border-radius:0;
}
#promo-admin #season-promo-form > fieldset > legend {
  color:#382e25;
  font:normal clamp(21px,2vw,24px)/1.3 Georgia,'Times New Roman',serif;
  padding:0 11px;
}
#promo-admin #season-promo-form fieldset .fine {
  margin:7px 0 19px;
  font-size:12px;
  line-height:1.5;
  color:#7a6a5a;
}
#promo-admin #season-promo-form .promo-rule-row {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-height:51px;
  padding:8px 5px;
  border-bottom:1px solid #e6dacb;
}
#promo-admin #season-promo-form .promo-rule-row label {
  display:flex;
  align-items:center;
  gap:11px;
  flex:1 1 200px;
  min-width:0;
  font-size:13px;
}
#promo-admin #season-promo-form .promo-rule-row label > input[type=checkbox]{
  margin:0;
  flex:0 0 auto;
}
#promo-admin #season-promo-form .promo-product-thumb{
  width:42px;
  height:42px;
  flex:0 0 42px;
  object-fit:contain;
  background:#fff;
  border:1px solid #decfba;
  border-radius:3px;
}
#promo-admin #promo-product-overrides {
  max-height:410px;
  overflow-y:auto;
  overflow-x:hidden;
}
#promo-admin #promo-preview {
  overflow:auto;
  max-height:360px;
  background:#fffcf8;
}
#promo-admin #promo-preview table {width:100%;border-collapse:collapse;min-width:440px;}
#promo-admin #promo-preview :is(th,td){
  text-align:left;
  padding:11px 9px;
  border-bottom:1px solid #e4d9ca;
  font-size:12px;
}
#promo-admin #season-promo-form > button[type=submit] {
  justify-self:start;
  min-height:43px;
  border-radius:10px;
  background:#332c26;
  color:#fff;
  box-shadow:0 3px 7px #32292120;
}
#promo-admin .promo-status-badge {
  display:inline-block;
  padding:6px 10px;
  border:1px solid #c8a873;
  border-radius:16px;
  background:#f2e4ce;
  color:#5e461f;
  font-weight:600;
  font-size:12px;
}
#promo-admin .promo-status-badge[data-status=geplant] {background:#eef1eb;border-color:#bfccb4;color:#455744;}
#promo-admin .promo-status-badge[data-status=beendet],
#promo-admin .promo-status-badge[data-status=deaktiviert] {background:#f3f0eb;border-color:#d8d1c7;color:#756d62;}
#promo-admin .promo-campaigns-table tr.promo-is-selected td {background:#fff7e9;}
@media (max-width:640px){
  #promo-admin #season-promo-form #promo-seasonal-choice[hidden],
#promo-admin #season-promo-form #promo-manual-dates[hidden],
#promo-admin #promo-editor[hidden] { display:none!important; }
#promo-admin #season-promo-form .form-row {grid-template-columns:minmax(0,1fr);}
  #promo-admin #season-promo-form > fieldset{padding:16px 11px;}
  #promo-admin #season-promo-form .promo-rule-row label{flex-basis:140px;}
}

/* Product photos in Rabattaktionen > Preisvorschau (restored with original theme). */
#promo-admin #promo-preview .promo-preview-table{width:100%;table-layout:auto;}
#promo-admin #promo-preview .promo-preview-table :is(th,td):first-child{width:68px;}
#promo-admin #promo-preview .promo-preview-photo-cell{vertical-align:middle;}
#promo-admin #promo-preview .promo-preview-photo{
  display:block;width:52px;height:52px;object-fit:contain;
  background:#fff;border:1px solid #dfd2c0;border-radius:7px;
}
#promo-admin #promo-preview .promo-preview-photo[hidden]{display:none;}
#promo-admin #promo-preview .promo-preview-photo-missing{
  display:flex;align-items:center;justify-content:center;
  width:52px;height:52px;border:1px dashed #dfd2c0;
  border-radius:7px;color:#796b5c;font-size:10px;text-align:center;
}
#promo-admin #promo-preview .promo-preview-photo-missing[hidden]{display:none;}
@media(max-width:620px){
 #promo-admin #promo-editor #promo-preview table.promo-preview-table{min-width:0;}
 #promo-admin #promo-preview .promo-preview-table thead{display:none;}
 #promo-admin #promo-preview .promo-preview-table tbody{display:block;}
 #promo-admin #promo-preview .promo-preview-table tr{
   display:grid;grid-template-columns:56px minmax(0,1fr) auto;
   gap:5px 10px;padding:12px 9px;border-bottom:1px solid #e4d9ca;
 }
 #promo-admin #promo-preview .promo-preview-table td{padding:0;border:0;min-width:0;overflow-wrap:anywhere;}
 #promo-admin #promo-preview .promo-preview-table td:nth-child(1){grid-column:1;grid-row:1/4;}
 #promo-admin #promo-preview .promo-preview-table td:nth-child(2){grid-column:2/4;font-weight:600;}
 #promo-admin #promo-preview .promo-preview-table td:nth-child(3){grid-column:2;}
 #promo-admin #promo-preview .promo-preview-table td:nth-child(4){grid-column:3;text-align:right;}
 #promo-admin #promo-preview .promo-preview-table td:nth-child(5){grid-column:2/4;color:#775624;font-weight:600;}
}


/* ================================================================
   MISCHEL | Produktsets – restore the original compact editor layout
   Compatible with the fixed, fullscreen admin navigation and the
   newer Set-number chooser. All rules are scoped to #sets-admin.
   No changes to set persistence, SKU numbering or the shop.
   ================================================================ */

/* Keep the fullscreen dialog and persistent nav, but restore the
   readable content width and tighter spacing of the original editor. */
#sets-admin.mischel-has-admin-workspace[open] > .mischel-dialog-viewport {
  box-sizing: border-box;
  padding-right: clamp(15px, 3vw, 46px) !important;
  padding-left: clamp(15px, 3vw, 46px) !important;
  padding-bottom: 68px !important;
}
#sets-admin > .mischel-dialog-viewport > :is(#sets-title, p.fine, .form-row, #set-editor) {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}
#sets-admin #sets-title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}
#sets-admin > .mischel-dialog-viewport > p.fine {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
#sets-admin > .mischel-dialog-viewport > .form-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
#sets-admin > .mischel-dialog-viewport > .form-row > label {
  flex: 1 1 auto;
  min-width: 0;
}
#sets-admin > .mischel-dialog-viewport > .form-row > button {
  flex: 0 0 auto;
  min-height: 42px;
}

/* Both labels were left over from earlier numbering versions. The
   current picker + Set-Name already show the number clearly. */
#sets-admin #set-number-display,
#sets-admin #set-number-note {
  display: none !important;
}

/* Bring back the original compact 2-column edit form. Place the new
   number chooser on one neat row, then Type + Produktgruppe side by
   side as in the archived original interface. */
#sets-admin #set-editor {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 13px 18px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-items: start;
}
#sets-admin #set-editor > * { min-width: 0; }
#sets-admin #set-editor > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
}
#sets-admin #set-editor > label:first-child,
#sets-admin #set-editor > #set-number-tools,
#sets-admin #set-editor > label:has(>textarea),
#sets-admin #set-editor > .form-row,
#sets-admin #set-editor > .set-flex-controls,
#sets-admin #set-editor > fieldset,
#sets-admin #set-editor > label.consent-field,
#sets-admin #set-editor > .admin-action-row,
#sets-admin #set-editor > #set-status {
  grid-column: 1 / -1 !important;
}
#sets-admin #set-editor > .form-row {
  gap: 16px !important;
  margin: 0 !important;
}
#sets-admin #set-editor :is(input:not([type="checkbox"]), select) {
  min-height: 43px;
  box-sizing: border-box;
}
#sets-admin #set-editor > label > textarea {
  box-sizing: border-box;
  min-height: 88px;
  resize: vertical;
}
#sets-admin #set-editor > fieldset {
  margin: 4px 0 0 !important;
}
#sets-admin #set-editor > .admin-action-row {
  margin: 7px 0 0 !important;
}

/* Number chooser: keep ALL the new functions, just make it compact. */
#sets-admin #set-editor > #set-number-tools {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 12px 15px !important;
  border-color: #d8c9ad;
  border-radius: 10px;
  background: #f9f5ec;
}
#sets-admin #set-number-tools .mischel-number-caption {
  margin-bottom: 8px !important;
}
#sets-admin #set-number-tools .mischel-number-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: end;
  gap: 9px !important;
}
#sets-admin #set-number-tools .mischel-number-actions > button {
  min-height: 39px !important;
  padding: 8px 12px !important;
}
#sets-admin #set-number-tools .mischel-number-custom {
  max-width: 145px !important;
}
#sets-admin #set-number-tools .mischel-number-custom input {
  min-height: 39px !important;
  height: 39px !important;
}
#sets-admin #set-number-tools .mischel-number-help {
  margin: 8px 0 0 !important;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 750px) {
  #sets-admin #set-editor {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #sets-admin #set-editor > * {
    grid-column: 1 / -1 !important;
  }
  #sets-admin > .mischel-dialog-viewport > .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  #sets-admin > .mischel-dialog-viewport > .form-row > button {
    align-self: stretch;
  }
}
@media (max-width: 460px) {
  #sets-admin #set-number-tools .mischel-number-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #sets-admin #set-number-tools .mischel-number-custom {
    max-width: none !important;
  }
  #sets-admin #set-number-tools .mischel-number-actions > button {
    min-width: 0;
    padding: 7px 6px !important;
  }
}

/* MISCHEL | 2026-10-24 – Two small layout-only refinements.
   1) Align the Set visibility checkbox left, immediately above actions.
   2) Center the desktop admin section tabs in the navigation bar.
   Keep all inputs, IDs, event handlers and other form styling intact. */
#sets-admin #set-editor > label.consent-field {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  align-self: start !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
#sets-admin #set-editor > label.consent-field > input[type="checkbox"] {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
}
@media (min-width: 1221px) {
  .mischel-admin-workspace-nav .mischel-workspace-tabs {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: 0 0 auto;
    width: max-content;
    max-width: calc(100% - 240px);
    justify-content: center;
  }
}

/* Marketing dropdown: do not override the native <details> closed state.
   The preceding display:flex rule was making the submenu visible even
   when Marketing was not expanded. */
.mischel-admin-workspace-nav details.mischel-workspace-marketing:not([open]) > .mischel-workspace-marketing-options {
  display: none !important;
}

/* 2026-10-24 | Statistik: the legacy rule #stats-admin summary
   also catches the Marketing <summary> inserted by the shared nav.
   Restore the same typography as all other admin tabs, only here. */
#stats-admin .mischel-admin-workspace-nav .mischel-workspace-marketing > summary.mischel-workspace-tab {
  font: 500 12px/1.25 Arial, sans-serif;
}


/* MISCHEL | Statistik / Marketing navbar compatibility.
   Existing #stats-admin details applies 25px margin, 15px padding and
   a divider to all descendant details, including the common navigation.
   Reset only the navbar details without changing the statistics content. */
#stats-admin .mischel-admin-workspace-nav details.mischel-workspace-marketing {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 0;
}
#stats-admin .mischel-admin-workspace-nav details.mischel-workspace-marketing > summary.mischel-workspace-tab {
  font: 500 12px/1.25 Arial, sans-serif !important;
  margin: 0 !important;
  min-height: 37px;
  box-sizing: border-box;
}

/* Shared warning for customer account and administrative editors */
.mischel-unsaved-dialog {
  position: fixed; inset: 0; margin: auto;
  box-sizing: border-box; width: min(530px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px); overflow: auto;
  border: 1px solid #dbc7ab; border-radius: 14px;
  padding: 28px; background: #faf7f1; color: #352c24;
  box-shadow: 0 18px 65px rgba(28,24,20,.30);
  z-index: 2147483647;
}
.mischel-unsaved-dialog::backdrop { background: rgba(27,25,22,.50); }
.mischel-unsaved-dialog h2 {font: 29px/1.25 Georgia,serif; margin: 0 0 12px;}
.mischel-unsaved-dialog p {font: 14px/1.5 Arial,sans-serif; margin: 0 0 12px;}
.mischel-unsaved-actions {display:flex;flex-wrap:wrap;gap:10px; margin-top:22px;}
.mischel-unsaved-actions button {cursor:pointer;min-height:42px;border-radius:10px;padding:10px 14px;}
@media(max-width:580px){.mischel-unsaved-dialog{padding:22px 16px}.mischel-unsaved-actions{flex-direction:column}.mischel-unsaved-actions button{width:100%;}}


/* ==============================================================
   MISCHEL | Administrative colour harmony — 24.10.2026
   Reference: Marketing > Rabattaktion bearbeiten.
   ONLY visual colours, borders, accents and surface treatments.
   Scoped to administrative dialogs; no changes to public pages,
   HTML, JavaScript, data, field size, layout or navigation.
   The Marketing reference itself is deliberately left untouched.
   ============================================================== */
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) {
  --cream: #f8f5ef;
  --paper: #fffcf8;
  --ink: #352c25;
  --line: #dccfbd;
  --muted: #796b5c;
  --gold: #b18c5e;
  color: #352c25;
}

/* The same restrained cream backgrounds and light gold borders. */
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(fieldset, .catalog-backup,
    .banner-collapsible, .banner-visual-picker, .banner-picker-grid,
    .set-candidates, .set-candidate, .catalog-bulk) {
  border-color: #d6c8b4;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(h2, h3, legend) {
  color: #392d23;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
    select, textarea) {
  background-color: #fffcf8;
  border-color: #dccfbd;
  color: #3b3025;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(input, select, textarea):focus-visible {
  outline-color: #b18c5e;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: #a77c40;
}

/* Quiet panel surfaces: same warmth as the marketing campaign card. */
#catalog-admin :is(.catalog-group-manager, .catalog-preview-panel,
                  .catalog-edit-mode, .catalog-photo-sticky),
#catalog-duplicate-dialog :is(.catalog-duplicate-results, .catalog-duplicate-filters),
#sets-admin :is(#set-number-tools, .set-candidate),
#admin :is(.banner-collapsible, .banner-photo-choice),
#stats-admin :is(.stats-card, #stats-draft-lines),
#test-orders-admin :is(.mischel-test-order, .mischel-test-save),
#business-admin :is(.business-admin-control, .demo-cost-summary) {
  background-color: #fffaf2;
  border-color: #dfcfb7;
}
#catalog-admin .catalog-photo-stage {
  /* Keep the existing neutral photo-preview surface; only match its frame. */
  border-color: #dfd2c0;
}
#sets-admin #set-number-tools { background-color: #f8f5ef; }

/* Standard secondary controls keep their original dimensions. */
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(button.secondary, label.secondary,
    .import-label, .stats-order-row button.secondary) {
  background-color: #fffaf2;
  border-color: #d4bfa1;
  color: #3c3024;
  box-shadow: 0 3px 8px rgba(61,45,22,.08);
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(button.secondary, label.secondary,
    .import-label):hover:not(:disabled) {
  background-color: #f3e6d3;
  border-color: #ae8750;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin,
    #mischel-community-admin,#mischel-notifications-admin,#mischel-security-admin) :is(button.secondary, label.secondary,
    .import-label).danger {
  border-color: #caa99e;
  color: #8b3f32;
}

/* B2B action selectors: preserve which tab is active. */
#business-admin .business-tabs button:not(.active),
#business-admin .business-admin-row button {
  background-color: #fffaf2;
  border-color: #d4bfa1;
  color: #3c3024;
}
#business-admin .business-tabs button.active {
  background-color: #e7d5b8;
  border-color: #c8a66d;
  color: #5b3d1f;
}

/* Statistics, products and B2B tables share the Marketing table tones. */
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin) table {
  border-color: #dfd1bf;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin) table th {
  background-color: #ede2d1;
  color: #563f29;
  border-color: #e8ded0;
}
:is(#catalog-admin, #catalog-duplicate-dialog, #sets-admin, #admin,
    #stats-admin, #test-orders-admin, #business-admin) table td {
  border-color: #e8ded0;
}

/* Messages/admin mailbox: matching pane borders and warm surfaces.
   Unread/current/selected states retain their own emphasis. */
#mischel-community-admin .mischel-mailbox,
#mischel-community-admin .mischel-mailbox-compose {
  background-color: #fffdf9;
  border-color: #dfd1bf;
}
#mischel-community-admin .mischel-mailbox-sidebar {
  background-color: #f8f5ef;
  border-color: #dfd1bf;
}
#mischel-community-admin .mischel-mailbox-toolbar,
#mischel-community-admin .mischel-mailbox-row {
  border-color: #e8ded0;
}
#mischel-community-admin .mischel-mailbox-posts .mischel-post {
  background-color: #fffaf2;
  border-color: #dfcfb7;
}
#mischel-community-admin .mischel-mailbox-sidebar button.current {
  background-color: #e7d5b8;
  color: #5b3d1f;
}

/* Marketing dropdown regression guard. An explicit button replaces the old
   details/summary toggle; closed content must never cover another menu. */
.mischel-admin-workspace-nav .mischel-workspace-marketing > button.mischel-workspace-tab {
  list-style:none;
  appearance:none;
}
.mischel-admin-workspace-nav .mischel-workspace-marketing-options[hidden] {
  display:none !important;
}


/* 2026-10-24 | Stabiler Marketing-Flyout: intentionally scoped to the
   floating submenu only. No changes to any other administration panel. */
.mischel-workspace-marketing-popup {
  position:fixed !important;
  right:auto !important;
  bottom:auto !important;
  box-sizing:border-box !important;
  z-index:2147483646 !important;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:3px;
  min-width:215px;
  width:max-content;
  max-width:calc(100vw - 16px);
  padding:6px;
  margin:0;
  background:#fbf8f2;
  border:1px solid #d8c7ae;
  border-radius:10px;
  box-shadow:0 10px 25px rgba(49,39,24,.18);
}
.mischel-workspace-marketing-popup[hidden]{display:none !important;}
.mischel-workspace-marketing-popup > .mischel-workspace-tab {
  display:block;
  width:100%;
  min-height:37px;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#393027;
  font:500 12px/1.25 Arial,sans-serif;
  text-align:left;
  white-space:normal;
  cursor:pointer;
}
.mischel-workspace-marketing-popup > .mischel-workspace-tab:hover,
.mischel-workspace-marketing-popup > .mischel-workspace-tab:focus-visible {
  background:#efe6d8;
  color:#6e4e22;
}
.mischel-workspace-marketing-popup > .mischel-workspace-tab.is-active {
  background:#e7d5b8;
  border-color:#c8a66d;
  color:#5b3d1f;
  font-weight:700;
}


/* MISCHEL F14 DesktopNavRefinement 20261106 */
/* Standard desktop navigation must remain visible at normal and 75% zoom.
   Only truly narrow viewports use the existing mobile select. */
@media (min-width:1221px) and (max-width:1720px) {
  :is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,
      #test-orders-admin,#business-admin,#mischel-community-admin,
      #mischel-notifications-admin,#mischel-security-admin)[open]
       > .mischel-admin-workspace-nav {
    gap:8px!important;
    padding:8px 70px 8px 12px!important;
  }
  .mischel-admin-workspace-nav .mischel-workspace-brand {
    font-size:10px;
    letter-spacing:.07em;
  }
  .mischel-admin-workspace-nav .mischel-workspace-tabs {
    position:static!important;
    left:auto!important;
    transform:none!important;
    display:flex!important;
    flex:1 1 auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    justify-content:space-between!important;
    gap:1px!important;
  }
  .mischel-admin-workspace-nav .mischel-workspace-tabs
     :is(.mischel-workspace-tab,.mischel-workspace-logout) {
    padding:7px 5px;
    font-size:11px;
  }
}

/* MISCHEL F14 ExpandedTabs 20261106 – fill the desktop row without scrolling.
   The existing mobile selector remains active at <=1220 CSS px. */
@media (min-width:1221px) {
  .mischel-admin-workspace-nav .mischel-workspace-tabs {
    position:static!important;
    left:auto!important;
    transform:none!important;
    display:flex!important;
    flex:1 1 auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:clamp(2px,.25vw,5px)!important;
  }
  .mischel-admin-workspace-nav .mischel-workspace-tabs >
    :is(.mischel-workspace-tab,.mischel-workspace-logout,.mischel-workspace-marketing) {
    flex:1 1 auto!important;
    min-width:0!important;
  }
  .mischel-admin-workspace-nav .mischel-workspace-tabs >
    .mischel-workspace-marketing > .mischel-workspace-tab {
    width:100%!important;
    box-sizing:border-box!important;
  }
  .mischel-admin-workspace-nav .mischel-workspace-tabs
    :is(.mischel-workspace-tab,.mischel-workspace-logout) {
    min-height:40px!important;
    padding:8px clamp(5px,.55vw,11px)!important;
    font-size:clamp(11.5px,.9vw,13px)!important;
    text-align:center!important;
  }
}

/* MISCHEL F14 LargerLabels 20261106 – typography only; keep expanded tab widths. */
@media (min-width:1221px) {
  .mischel-admin-workspace-nav .mischel-workspace-brand {
    font-size:13px!important;
    letter-spacing:.07em!important;
  }
  .mischel-admin-workspace-nav .mischel-workspace-tabs
    :is(.mischel-workspace-tab,.mischel-workspace-logout) {
    font-size:14px!important;
    line-height:1.2!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
}
