:root{
  --ht-side:#23412b;
  --ht-side-2:#2f5638;
  --ht-cream:#f7f3ec;
  --ht-danger:#8e2c2c;
  --ht-warning:#8a5a14;
}
.ht-page--portal{background:linear-gradient(180deg,#f8f5ef 0%,#f1ece3 100%)}
.ht-portal-shell{max-width:1280px;margin:0 auto;padding:24px 20px 36px;display:grid;grid-template-columns:280px 1fr;gap:20px}
.ht-sidebar{display:flex;flex-direction:column;gap:16px}
.ht-side-card{background:linear-gradient(180deg,var(--ht-side) 0%,var(--ht-side-2) 100%);border-radius:24px;color:#fff;padding:20px;box-shadow:var(--ht-shadow)}
.ht-side-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;opacity:.82;margin-bottom:8px}
.ht-side-icon-card{width:84px;height:84px;border-radius:22px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;margin-bottom:14px;border:1px solid rgba(255,255,255,.15)}
.ht-side-icon-img{width:68px;height:68px;display:block}
.ht-side-user{font-size:23px;font-weight:700;line-height:1.1}
.ht-side-sub{font-size:13px;opacity:.82;margin-top:4px}
.ht-role-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ht-role-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:700}
.ht-side-nav{display:flex;flex-direction:column;gap:14px}

.ht-side-group{gap:8px}
.ht-side-group-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-weight:800;text-align:left}
.ht-side-group-toggle:hover{background:rgba(255,255,255,.12)}
.ht-side-group-title{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--ht-side);font-weight:800;padding:0;margin:0}
.ht-side-group-toggle-arrow{font-size:16px;line-height:1;transition:transform .2s ease;color:var(--ht-green-2)}
.ht-side-group.is-open .ht-side-group-toggle-arrow{transform:rotate(180deg)}
.ht-side-group-body{display:flex;flex-direction:column;gap:10px;padding-top:2px}
.ht-side-group-body[hidden]{display:none}
.ht-side-group .ht-side-link{margin-left:6px}

.ht-sale-stock{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#eef7ef;border:1px solid #cfe4d2;color:#2d6137;font-size:12px;font-weight:700}
.ht-sale-stock.is-negative{background:#fff0f0;border-color:#e5bbbb;color:#8d2d2d}
.ht-sale-total{font-size:18px;font-weight:800;color:#224b2d}
.ht-side-link{display:block;padding:13px 14px;background:#fff;border:1px solid var(--ht-border);border-radius:14px;color:var(--ht-text);font-weight:700;box-shadow:var(--ht-shadow)}
.ht-side-link.is-active{background:var(--ht-green);color:#fff;border-color:var(--ht-green)}
.ht-side-placeholder{padding:13px 14px;background:#fbf8f2;border:1px dashed var(--ht-border);border-radius:14px;color:#6e675e;font-size:13px;line-height:1.45}
.ht-main{min-width:0}
.ht-page-head{margin-bottom:18px}
.ht-page-title{font-size:34px;line-height:1.05;margin:6px 0 8px 0}
.ht-page-copy{font-size:15px;color:#5b564e;line-height:1.5}
.ht-top-actions{display:flex;align-items:center;gap:10px}
.ht-nav-link--with-badge{position:relative;display:inline-flex;align-items:center;gap:8px}
.ht-nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#d71920;color:#fff;font-size:13px;font-weight:900;line-height:1;box-shadow:0 0 0 4px rgba(215,25,32,.14),0 8px 18px rgba(130,16,16,.24)}
.ht-table tr.ht-row-unread td{background:#fff7ea}
.ht-shop-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.ht-shop-card{border:1px solid var(--ht-border);border-radius:18px;background:#fff;padding:16px;box-shadow:var(--ht-shadow)}
.ht-shop-meta{margin-top:8px;color:#5e5851;line-height:1.5;font-size:14px}
.ht-stand-badge{display:inline-flex;align-items:center;padding:10px 14px;border-radius:999px;border:1px solid var(--ht-border);background:#fff;color:var(--ht-text);font-weight:700;margin:0 8px 8px 0;text-decoration:none}
.ht-top-clock{font-size:13px;color:var(--ht-muted);padding:10px 12px;background:#fff;border:1px solid var(--ht-border);border-radius:12px}
.ht-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ht-module-card{border-radius:24px}
.ht-module-body{padding:0 20px 20px 20px}
.ht-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ht-field{display:flex;flex-direction:column;gap:6px}
.ht-field label{font-size:13px;font-weight:700;color:#4f4a43}
.ht-field input,.ht-field textarea,.ht-field select{width:100%;padding:11px 12px;border:1px solid var(--ht-border);border-radius:12px;background:#fff;color:var(--ht-text);font:inherit}
.ht-field textarea{min-height:120px;resize:vertical}
.ht-inline{grid-column:1 / -1}
.ht-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.ht-table-wrap{overflow:auto;border:1px solid var(--ht-border);border-radius:18px;background:#fff}
.ht-table{width:100%;border-collapse:collapse}
.ht-table th,.ht-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #ece5d9;vertical-align:top}
.ht-table th{background:#faf7f2;font-size:13px;color:#5e5851}
.ht-table tr:last-child td{border-bottom:0}
.ht-success{padding:12px 14px;border:1px solid #a8d5b2;background:#edf8ef;color:#255d31;border-radius:12px;margin-bottom:16px}
.ht-error{padding:12px 14px;border:1px solid #e3a7a7;background:#fff0f0;color:#8d1c1c;border-radius:12px;margin-bottom:16px}
.ht-note{padding:12px 14px;border:1px dashed var(--ht-border);border-radius:14px;background:#fbf8f2;color:#625c54;font-size:14px;line-height:1.5}
.ht-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}
.ht-kpi{background:#fff;border:1px solid var(--ht-border);border-radius:22px;padding:18px;box-shadow:var(--ht-shadow)}
.ht-kpi strong{display:block;font-size:13px;color:var(--ht-muted);margin-bottom:10px}
.ht-kpi span{display:block;font-size:34px;font-weight:800;line-height:1}
.ht-mini-list{margin:0;padding-left:20px;color:#5e5851;line-height:1.6}
.ht-welcome-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin-bottom:18px}
.ht-login-box{max-width:520px;margin:48px auto}
.ht-login-help{font-size:13px;color:#5d5750;line-height:1.55}
.ht-empty{padding:18px;border:1px dashed var(--ht-border);border-radius:18px;background:#fcfaf7;color:#6b645b}
.ht-brand-tile{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f7efe5 100%);border:1px solid var(--ht-border)}
.ht-brand-tile-img{width:72px;height:72px;display:block;flex:0 0 auto}
@media (max-width:1024px){.ht-portal-shell{grid-template-columns:1fr}.ht-sidebar{order:2}.ht-kpi-grid,.ht-module-grid,.ht-welcome-grid,.ht-form-grid{grid-template-columns:1fr}}

.ht-form-title{font-size:18px;font-weight:800;margin:0 0 14px 0}
.ht-form-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.ht-record-hint{font-size:13px;color:var(--ht-muted);margin-bottom:12px}
.ht-table tr[data-record]{cursor:pointer}
.ht-table tr.is-selected-record td{background:#fff7dc}
.ht-tabs{margin-top:12px}
.ht-tab-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px 0;border-bottom:1px solid var(--ht-border);padding-bottom:10px}
.ht-tab-btn{border:1px solid var(--ht-border);background:#fff;border-radius:12px;padding:10px 14px;font-weight:800;color:var(--ht-text);cursor:pointer;box-shadow:0 7px 18px rgba(58,43,31,.07)}
.ht-tab-btn.is-active{background:var(--ht-green);border-color:var(--ht-green);color:#fff}
.ht-tab-panel{display:none}
.ht-tab-panel.is-active{display:block}
.ht-readonly-note{padding:12px 14px;border:1px dashed #d8c7a0;background:#fff9e7;color:#6f5b2c;border-radius:12px;margin-bottom:16px}
.ht-muted{color:var(--ht-muted);font-size:12px}


.ht-side-link{position:relative;display:flex;align-items:center;gap:12px}
.ht-menu-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#d71920;color:#fff;font-size:12px;font-weight:900;line-height:1;box-shadow:0 0 0 3px rgba(215,25,32,.14)}
.ht-menu-badge--compact{position:absolute;right:4px;top:4px;margin-left:0}
.ht-side-link-icon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#f4efe6;border:1px solid #e7dfd2;font-size:15px;flex:0 0 auto}
.ht-side-link.is-active .ht-side-link-icon{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.25)}
.ht-side-link-label{display:block;min-width:0}

.ht-menu-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;color:#7b355f}
.ht-menu-icon svg{width:18px;height:18px;display:block;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.ht-menu-icon--leitstand{color:#a03c78}
.ht-menu-icon--verkauf{color:#2f7c43}
.ht-menu-icon--transport{color:#c96b1f}
.ht-menu-icon--produktion{color:#247a3b}
.ht-menu-icon--personal{color:#2f63b4}
.ht-side-link:hover .ht-menu-icon,.ht-mobile-nav-link:hover .ht-menu-icon{transform:scale(1.08);transition:transform .15s ease}
.ht-side-link.is-active .ht-menu-icon,.ht-mobile-nav-link.is-active .ht-menu-icon{color:#fff}
.ht-mobile-nav,.ht-mobile-nav-backdrop{display:none}
@media (max-width:1024px) and (orientation:portrait){
  body{padding-bottom:94px}
  .ht-sidebar{display:none}
  .ht-portal-shell{padding-bottom:20px}
  .ht-mobile-nav{display:block}
  .ht-mobile-nav-toggle{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:90;display:inline-flex;align-items:center;gap:10px;padding:14px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.24);background:linear-gradient(180deg,var(--ht-side) 0%,var(--ht-side-2) 100%);color:#fff;box-shadow:0 14px 36px rgba(0,0,0,.24);font:inherit;font-weight:800}
  .ht-mobile-nav-toggle-icon{width:26px;height:26px;border-radius:999px;background:rgba(255,255,255,.16);display:inline-flex;align-items:center;justify-content:center}
  .ht-mobile-nav-panel{position:fixed;left:12px;right:12px;bottom:82px;max-height:70vh;overflow:auto;z-index:95;background:#fff;border:1px solid var(--ht-border);border-radius:24px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.24)}
  .ht-mobile-nav-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
  .ht-mobile-nav-sub{font-size:12px;color:var(--ht-muted);margin-top:4px}
  .ht-mobile-nav-close{width:38px;height:38px;border-radius:999px;border:1px solid var(--ht-border);background:#f8f4ee;font-size:28px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  .ht-mobile-nav-section{margin-top:14px}
  .ht-mobile-nav-section:first-child{margin-top:0}
  .ht-mobile-nav-section-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--ht-green-2);font-weight:800;margin:0 0 8px 2px}
  .ht-mobile-nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--ht-border);border-radius:14px;color:var(--ht-text);font-weight:700;margin-bottom:8px}
  .ht-mobile-nav-link-icon{width:30px;height:30px;border-radius:10px;background:#f4efe6;border:1px solid #e7dfd2;display:inline-flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 auto}
  .ht-mobile-nav-link.is-active{background:var(--ht-green);border-color:var(--ht-green);color:#fff}
  .ht-mobile-nav-link.is-active .ht-mobile-nav-link-icon{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.25)}
  .ht-mobile-nav-backdrop{position:fixed;inset:0;z-index:91;background:rgba(19,22,18,.45);border:0;padding:0}
  body.ht-mobile-nav-open{overflow:hidden}
  body.ht-mobile-nav-open .ht-mobile-nav-backdrop{display:block}
}


.ht-phone-link{display:inline-flex;align-items:center;gap:8px;color:var(--ht-green);font-weight:700;text-decoration:none}
.ht-phone-link:hover{text-decoration:underline}
.ht-quick-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ht-icon-action{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid var(--ht-border);background:#f8f4ee;text-decoration:none;font-size:18px;line-height:1;box-shadow:var(--ht-shadow)}
.ht-icon-action:hover{transform:translateY(-1px);background:#fff}
.ht-icon-action.is-disabled{opacity:.45;pointer-events:none}

.ht-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:14px}
.ht-quick-link{display:block;text-decoration:none;color:inherit;border:1px solid #d9dfd7;border-radius:16px;padding:14px;background:#fff;box-shadow:0 10px 24px rgba(26,52,36,.06)}
.ht-quick-link strong{display:block;font-size:16px;margin-bottom:6px;color:#1e412b}
.ht-quick-link span{display:block;color:#4e5f54;font-size:14px;line-height:1.45}
.ht-shop-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:14px}
.ht-shop-card{border:1px solid #d9dfd7;border-radius:18px;padding:16px;background:#fff}
.ht-shop-meta{font-size:14px;color:#526358;line-height:1.55;margin-top:8px}
.ht-stand-badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#edf4ee;color:#1e412b;font-size:13px;font-weight:700;margin:0 8px 8px 0}


.ht-theme-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.ht-theme-choice{position:relative;display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--ht-border);border-radius:16px;background:#fff;cursor:pointer;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;box-shadow:0 8px 18px rgba(26,52,36,.05)}
.ht-theme-choice:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(26,52,36,.08)}
.ht-theme-choice input{position:absolute;opacity:0;pointer-events:none}
.ht-theme-choice-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ht-theme-choice-swatches{display:flex;align-items:center;gap:6px}
.ht-theme-choice-swatches span{display:block;width:18px;height:18px;border-radius:999px;border:1px solid rgba(0,0,0,.08)}
.ht-theme-choice-title{font-weight:800;color:var(--ht-text)}
.ht-theme-choice-sub{font-size:12px;color:var(--ht-muted);text-transform:uppercase;letter-spacing:.06em}
.ht-theme-choice.is-selected,.ht-theme-choice:has(input:checked){border-color:var(--ht-green);box-shadow:0 0 0 3px rgba(34,75,45,.10)}
.ht-theme-preview-blau-dezent .ht-theme-choice-swatches span:nth-child(1){background:#27415f}.ht-theme-preview-blau-dezent .ht-theme-choice-swatches span:nth-child(2){background:#5f7ea8}.ht-theme-preview-blau-dezent .ht-theme-choice-swatches span:nth-child(3){background:#f4f1eb}
.ht-theme-preview-magenta-dezent .ht-theme-choice-swatches span:nth-child(1){background:#6d3455}.ht-theme-preview-magenta-dezent .ht-theme-choice-swatches span:nth-child(2){background:#b36a92}.ht-theme-preview-magenta-dezent .ht-theme-choice-swatches span:nth-child(3){background:#f6f0f4}
.ht-theme-preview-orange-dezent .ht-theme-choice-swatches span:nth-child(1){background:#8a4f1e}.ht-theme-preview-orange-dezent .ht-theme-choice-swatches span:nth-child(2){background:#cc8451}.ht-theme-preview-orange-dezent .ht-theme-choice-swatches span:nth-child(3){background:#f8f3ec}
.ht-theme-preview-rot-dezent .ht-theme-choice-swatches span:nth-child(1){background:#743434}.ht-theme-preview-rot-dezent .ht-theme-choice-swatches span:nth-child(2){background:#ba6666}.ht-theme-preview-rot-dezent .ht-theme-choice-swatches span:nth-child(3){background:#f7f1f1}
.ht-theme-preview-grau-dezent .ht-theme-choice-swatches span:nth-child(1){background:#494d53}.ht-theme-preview-grau-dezent .ht-theme-choice-swatches span:nth-child(2){background:#858a91}.ht-theme-preview-grau-dezent .ht-theme-choice-swatches span:nth-child(3){background:#f3f3f1}
.ht-theme-preview-gruen-dezent .ht-theme-choice-swatches span:nth-child(1){background:#34583a}.ht-theme-preview-gruen-dezent .ht-theme-choice-swatches span:nth-child(2){background:#67946c}.ht-theme-preview-gruen-dezent .ht-theme-choice-swatches span:nth-child(3){background:#f1f5f0}
.ht-theme-preview-blau-knallig .ht-theme-choice-swatches span:nth-child(1){background:#0049b5}.ht-theme-preview-blau-knallig .ht-theme-choice-swatches span:nth-child(2){background:#3f8dff}.ht-theme-preview-blau-knallig .ht-theme-choice-swatches span:nth-child(3){background:#eef5ff}
.ht-theme-preview-magenta-knallig .ht-theme-choice-swatches span:nth-child(1){background:#a00060}.ht-theme-preview-magenta-knallig .ht-theme-choice-swatches span:nth-child(2){background:#ec4fa6}.ht-theme-preview-magenta-knallig .ht-theme-choice-swatches span:nth-child(3){background:#fff0fb}
.ht-theme-preview-orange-knallig .ht-theme-choice-swatches span:nth-child(1){background:#c45b00}.ht-theme-preview-orange-knallig .ht-theme-choice-swatches span:nth-child(2){background:#ff983e}.ht-theme-preview-orange-knallig .ht-theme-choice-swatches span:nth-child(3){background:#fff3ea}
.ht-theme-preview-rot-knallig .ht-theme-choice-swatches span:nth-child(1){background:#a91818}.ht-theme-preview-rot-knallig .ht-theme-choice-swatches span:nth-child(2){background:#ef5959}.ht-theme-preview-rot-knallig .ht-theme-choice-swatches span:nth-child(3){background:#fff1f1}
.ht-theme-preview-grau-knallig .ht-theme-choice-swatches span:nth-child(1){background:#2f3740}.ht-theme-preview-grau-knallig .ht-theme-choice-swatches span:nth-child(2){background:#6b7682}.ht-theme-preview-grau-knallig .ht-theme-choice-swatches span:nth-child(3){background:#f0f2f4}
.ht-theme-preview-gruen-knallig .ht-theme-choice-swatches span:nth-child(1){background:#127228}.ht-theme-preview-gruen-knallig .ht-theme-choice-swatches span:nth-child(2){background:#49c65f}.ht-theme-preview-gruen-knallig .ht-theme-choice-swatches span:nth-child(3){background:#effaf1}


.ht-sale-form{display:grid;gap:16px;margin-top:18px}
.ht-sale-row-card{border:1px solid var(--ht-border);border-radius:18px;background:#fff;padding:16px;box-shadow:0 8px 18px rgba(26,52,36,.05)}
.ht-sale-row-grid{display:grid;grid-template-columns:1.1fr 2fr .8fr 1fr 1fr;gap:12px}
.ht-sale-row-grid--second{grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.ht-sale-row-summary{margin-top:12px;padding:10px 12px;border-radius:14px;background:#faf7f2;border:1px dashed var(--ht-border);font-size:14px;line-height:1.5}
.ht-sale-row-summary.is-warning{background:#fff6e6;border-color:#e6c98d;color:#7c5710}
.ht-sale-row-summary.is-error{background:#fff1f1;border-color:#e4b8b8;color:#7a2525}
.ht-sale-summary-list{display:grid;gap:8px}
.ht-sale-summary-item{padding:10px 12px;border-radius:12px;background:#fbf8f2;border:1px solid #ece2d3;font-size:14px}
.ht-sale-summary-item strong{color:#1e412b}
.ht-sale-error-list{margin:0 0 16px 0;padding:12px 16px 12px 34px;border:1px solid #e3a7a7;background:#fff0f0;color:#8d1c1c;border-radius:14px}
.ht-filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.ht-filter-chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;border:1px solid var(--ht-border);background:#fff;font-weight:700}
.ht-filter-chip.is-active{background:var(--ht-green);border-color:var(--ht-green);color:#fff}
.ht-row-actions{display:flex;gap:10px;flex-wrap:wrap}
.ht-theme-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.ht-theme-quick-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px;border:1px solid var(--ht-border);border-radius:16px;background:#fff;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(26,52,36,.05)}
.ht-theme-quick-btn small{display:block;font-size:12px;color:var(--ht-muted);font-weight:600}
.ht-theme-quick-swatches{display:flex;gap:6px}
.ht-theme-quick-swatches span{display:block;width:16px;height:16px;border-radius:999px;border:1px solid rgba(0,0,0,.08)}
.ht-theme-quick-blau span:nth-child(1){background:#0049b5}.ht-theme-quick-blau span:nth-child(2){background:#5f7ea8}.ht-theme-quick-blau span:nth-child(3){background:#dfe9f8}
.ht-theme-quick-magenta span:nth-child(1){background:#a00060}.ht-theme-quick-magenta span:nth-child(2){background:#b36a92}.ht-theme-quick-magenta span:nth-child(3){background:#f2deea}
.ht-theme-quick-orange span:nth-child(1){background:#c45b00}.ht-theme-quick-orange span:nth-child(2){background:#cc8451}.ht-theme-quick-orange span:nth-child(3){background:#f7e7d8}
.ht-theme-quick-rot span:nth-child(1){background:#a91818}.ht-theme-quick-rot span:nth-child(2){background:#ba6666}.ht-theme-quick-rot span:nth-child(3){background:#f0dddd}
.ht-theme-quick-grau span:nth-child(1){background:#2f3740}.ht-theme-quick-grau span:nth-child(2){background:#858a91}.ht-theme-quick-grau span:nth-child(3){background:#e3e6ea}
.ht-theme-quick-gruen span:nth-child(1){background:#127228}.ht-theme-quick-gruen span:nth-child(2){background:#67946c}.ht-theme-quick-gruen span:nth-child(3){background:#dceadf}
@media (max-width:1180px){.ht-sale-row-grid{grid-template-columns:1fr 1fr 1fr}.ht-sale-row-grid > .ht-field:nth-child(4),.ht-sale-row-grid > .ht-field:nth-child(5){grid-column:span 1}}
@media (max-width:760px){.ht-sale-row-grid,.ht-sale-row-grid--second,.ht-theme-quick-grid{grid-template-columns:1fr}.ht-sale-row-card{padding:14px}}

.ht-theme-quick-btn.is-active{border-color:var(--ht-green);box-shadow:0 0 0 2px rgba(0,0,0,.04),0 0 0 4px color-mix(in srgb,var(--ht-green) 18%, transparent)}
.ht-theme-quick-btn.is-active strong{color:var(--ht-green)}

.ht-jahreslogik-hinweis{margin-top:12px;padding:10px 12px;border:1px solid rgba(60,101,69,.18);border-radius:12px;background:rgba(255,255,255,.72);font-size:13px;line-height:1.45;color:#2f3f35}.ht-main>.ht-jahreslogik-hinweis{margin:0 0 16px 0;background:#f7f4ec}


.ht-list-filter-box{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 14px 0}
.ht-list-filter-field{margin:0;max-width:420px;flex:1 1 320px}
.ht-filter-counter{font-weight:700;color:#4f4a43;padding-bottom:12px}
.ht-inline-search{margin:0 0 10px 0;max-width:420px}
.ht-inline-search input{width:100%;padding:11px 12px;border:1px solid var(--ht-border);border-radius:12px;background:#fff;color:var(--ht-text);font:inherit}

.ht-role-clarity{border-width:2px}
.ht-role-clarity-head,.ht-role-clarity-state{margin-bottom:6px}
.ht-role-clarity-copy{line-height:1.55}
.ht-note--ok{border-color:#9fc7a8;background:#f4fbf4;color:#214b2c}
.ht-note--info{border-color:#b7c8df;background:#f7fbff;color:#23415f}
.ht-note--warn{border-color:#d8bf8a;background:#fff9ee;color:#6a4b0f}


/* 8.2.11 Messenger-Kompaktansicht */
.ht-page--messenger-compact .ht-portal-shell{max-width:1600px;grid-template-columns:82px 1fr;gap:16px}
.ht-page--messenger-compact .ht-sidebar--compact{position:sticky;top:18px;align-self:start}
.ht-page--messenger-compact .ht-side-nav--compact{display:flex;flex-direction:column;gap:10px;padding:10px;border-radius:24px;background:linear-gradient(180deg,var(--ht-side) 0%,var(--ht-side-2) 100%);box-shadow:var(--ht-shadow)}
.ht-page--messenger-compact .ht-side-link--compact{width:60px;height:60px;padding:0;justify-content:center;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);box-shadow:none}
.ht-page--messenger-compact .ht-side-link--compact .ht-side-link-label{display:none}
.ht-page--messenger-compact .ht-side-link--compact .ht-side-link-icon{width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.94);border-color:rgba(255,255,255,.35)}
.ht-page--messenger-compact .ht-side-link--compact.is-active{background:var(--ht-green);border-color:rgba(255,255,255,.28)}
.ht-page--messenger-compact .ht-page-head{margin-bottom:14px}
.ht-page--messenger-compact .ht-brand-tile{padding:12px 14px}
.ht-page--messenger-compact .ht-brand-tile-img{width:58px;height:58px}
.ht-page--messenger-compact .ht-page-title{font-size:30px}
@media (max-width:1024px){.ht-page--messenger-compact .ht-portal-shell{grid-template-columns:1fr}}

.ht-person-image-preview,.ht-person-thumb{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--ht-border);background:rgba(255,255,255,.92)}
.ht-person-image-preview{width:96px;height:96px;border-radius:24px;margin-bottom:10px}
.ht-person-thumb{width:44px;height:44px;border-radius:14px}
.ht-person-image-preview img,.ht-person-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ht-field--file input[type=file]{padding:10px 0;border:none;background:transparent}
.ht-sensitive-document-box{max-width:520px;margin:8px 0 10px 0}
.ht-sensitive-document{position:relative;width:100%;aspect-ratio:13/8;border-radius:16px;overflow:hidden;border:1px solid var(--ht-border);background:#f7f1e8;box-shadow:0 10px 24px rgba(48,36,26,.08);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.ht-sensitive-document img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
.ht-sensitive-document:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(-35deg,rgba(255,255,255,.05) 0,rgba(255,255,255,.05) 12px,rgba(11,143,130,.06) 12px,rgba(11,143,130,.06) 24px);pointer-events:none}
.ht-sensitive-document-label{margin-top:6px;font-size:12px;font-weight:900;color:#6b4d35;text-align:center}
.ht-sensitive-document-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px 0}
.ht-field-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.ht-btn--danger{border-color:rgba(142,44,44,.28)!important;color:var(--ht-danger)!important;background:#fff7f7!important}
.ht-btn--danger:hover{background:#ffecec!important;border-color:rgba(142,44,44,.42)!important}
.ht-sensitive-document.is-protected-blur{filter:blur(14px);transform:scale(.985)}
.ht-sensitive-document-empty{display:flex;align-items:center;justify-content:center;min-height:120px;margin:8px 0 10px 0;border:1px dashed var(--ht-border);border-radius:16px;background:rgba(255,255,255,.56);color:var(--ht-muted);font-weight:700}
@media print{.ht-sensitive-document{display:none!important}.ht-sensitive-document-empty:after{content:"Dokumentvorschau wird nicht gedruckt."}}

/* V10.9 Saisonsteuerung / Jahresphase */
.ht-saisonphase {
  border-left: 6px solid rgba(38, 89, 62, .45);
  background: rgba(255, 255, 255, .78);
}
.ht-saisonphase--planung { border-left-color: #6d8fbd; }
.ht-saisonphase--bestellung { border-left-color: #b48a37; }
.ht-saisonphase--transport { border-left-color: #8a6fb5; }
.ht-saisonphase--verkauf { border-left-color: #2f8f54; }
.ht-saisonphase--nachbereitung { border-left-color: #8f5d4a; }
.ht-jahreslogik-hinweis small {
  display: block;
  margin-top: 4px;
  opacity: .78;
}

/* V13_68: Kopfbereich bei schmal-hoher Ansicht zusammenfassen */
.ht-top-actions-full{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ht-top-compact-menu{display:none;position:relative}
.ht-top-compact-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:9px;padding:10px 13px;border-radius:999px;border:1px solid var(--ht-border);background:#fff;font-weight:800;box-shadow:0 9px 22px rgba(58,43,31,.09)}
.ht-top-compact-menu summary::-webkit-details-marker{display:none}
.ht-top-compact-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:120;width:min(320px,calc(100vw - 28px));display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:18px;background:#fff;border:1px solid var(--ht-border);box-shadow:0 18px 46px rgba(38,33,24,.20)}
.ht-top-compact-panel .ht-top-clock,.ht-top-compact-panel .ht-nav-link{width:100%;justify-content:flex-start}
@media (max-width:720px), (max-width:1024px) and (orientation:portrait){
  .ht-topbar-inner{align-items:flex-start}
  .ht-top-actions{align-self:flex-start;margin-top:0}
  .ht-top-actions-full{display:none}
  .ht-top-compact-menu{display:block}
}

/* V13.88: Seiteninfo als kleines Plus oben rechts in der Angemeldet-Kachel */
.ht-side-card{position:relative}
.ht-side-info-trigger{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  margin:0;
  width:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}
.ht-side-info-trigger:hover,.ht-side-info-trigger:focus{outline:0}
.ht-side-info-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#fff;
  color:#294e77;
  font-weight:900;
  line-height:1;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
.ht-side-info-text{
  position:absolute;
  top:30px;
  right:0;
  max-width:220px;
  white-space:nowrap;
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(41,78,119,.18);
  background:#fffaf2;
  color:#294e77;
  font-size:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.20);
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
}
.ht-side-info-trigger:hover .ht-side-info-text,
.ht-side-info-trigger:focus .ht-side-info-text,
.ht-side-info-trigger:focus-visible .ht-side-info-text{opacity:1;transform:translateY(0)}
.ht-info-popup[hidden]{display:none!important}
.ht-info-popup{position:fixed;inset:0;z-index:100050;display:flex;align-items:center;justify-content:center;padding:22px}
.ht-info-popup-backdrop{position:absolute;inset:0;background:rgba(30,36,43,.42);backdrop-filter:blur(2px)}
.ht-info-popup-dialog{position:relative;width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 44px);overflow:auto;border-radius:24px;background:#fffaf2;border:1px solid rgba(88,105,80,.28);box-shadow:0 24px 70px rgba(24,31,42,.28);padding:18px}
.ht-info-popup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px;padding:8px 8px 2px 8px}
.ht-info-popup-head h2{margin:0;font-size:1.55rem;color:#142233}
.ht-info-popup-close{border:0;background:#f2eadc;color:#142233;width:38px;height:38px;border-radius:999px;font-size:26px;font-weight:800;line-height:1;cursor:pointer}
.ht-info-popup-close:hover{background:#e7dac7}
.ht-info-popup-body{display:grid;gap:14px}
.ht-info-popup-body .ht-jahreslogik-hinweis,
.ht-info-popup-body .ht-role-clarity{margin-bottom:0!important;border-radius:18px;padding:16px;background:rgba(255,255,255,.72)}
@media (max-width:720px){
  .ht-info-popup{align-items:flex-start;padding:12px}
  .ht-info-popup-dialog{width:100%;max-height:calc(100vh - 24px);border-radius:20px;padding:12px}
  .ht-info-popup-head h2{font-size:1.25rem}
}
