:root{--red:#24518b;--ink:#202838;--muted:#6e7889;--line:#e5e8ee;--bg:#f5f7fa;--green:#23966c;--blue:#477be5;--orange:#d58b25;--shadow:0 5px 20px #1c29400b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.hidden{display:none!important}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:32px;position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #1e293b08}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;min-width:205px}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--red);color:white;display:grid;place-items:center;font-weight:900;font-size:24px;box-shadow:0 5px 12px #d5001933}.brand b{font-size:17px;display:block}.brand small{font-size:9px;letter-spacing:1.6px;color:var(--muted);font-weight:700}.nav{display:flex;align-items:center;gap:4px;flex:1;overflow-x:auto;scrollbar-width:none}.nav button{border:0;background:transparent;color:#596477;font-weight:650;padding:12px 13px;border-radius:11px;white-space:nowrap;cursor:pointer;font-size:13px}.nav button:hover{background:#f6f7f9;color:var(--red)}.nav button.active{background:#fff0f1;color:var(--red)}.user-area{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:650;white-space:nowrap}.icon-btn{border:1px solid var(--line);background:white;border-radius:10px;padding:9px 11px;cursor:pointer;color:#536074}.main{max-width:1600px;margin:auto;padding:30px 32px 24px}.page-head{display:flex;justify-content:space-between;align-items:center;margin:8px 0 25px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:var(--red);margin-bottom:8px}.page-head h1{font-size:30px;letter-spacing:-.8px;margin:0 0 5px;color:#222b3a}.page-head p{margin:0;color:var(--muted)}.head-actions{display:flex;gap:12px;align-items:center}.online{font-size:12px;color:var(--green);font-weight:700}.online i{display:inline-block;width:7px;height:7px;background:#28a879;border-radius:50%;margin-right:6px}.btn{border:1px solid var(--line);background:white;color:#344054;padding:11px 16px;border-radius:10px;font-weight:700;cursor:pointer}.btn.primary{background:var(--red);border-color:var(--red);color:white;box-shadow:0 5px 12px #d5001926}.btn:hover{filter:brightness(.97)}.wide{width:100%;margin-top:8px}.grid{display:grid;gap:17px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.kpi{display:flex;justify-content:space-between;align-items:flex-start;min-height:132px}.kpi .label{font-size:13px;color:var(--muted);font-weight:650}.kpi strong{display:block;font-size:29px;letter-spacing:-1px;margin:12px 0 4px;color:#202838}.kpi small{color:var(--muted);font-size:12px}.kpi-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;font-size:21px}.red{background:#ffebed;color:var(--red)}.green{background:#e7f7ef;color:var(--green)}.blue{background:#eaf1ff;color:var(--blue)}.orange{background:#fff4df;color:var(--orange)}.dash-grid{grid-template-columns:1.55fr 1fr;margin-bottom:18px}.card h2{font-size:17px;margin:0 0 16px}.chart{height:190px;display:flex;align-items:end;gap:13px;padding:14px 8px 0;border-bottom:1px solid var(--line)}.bar{flex:1;min-width:12px;background:linear-gradient(180deg,#ef6472,var(--red));border-radius:7px 7px 0 0;position:relative}.bar span{position:absolute;bottom:-23px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--muted)}.chart-legend{display:flex;justify-content:space-between;margin-top:30px;color:var(--muted);font-size:11px}.insight{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #eff1f4}.insight:last-child{border:0}.insight-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#fff0f1;color:var(--red);display:grid;place-items:center}.insight b{font-size:13px}.insight p{margin:4px 0 0;color:var(--muted);font-size:12px}.section-grid{grid-template-columns:1fr 1fr}.table-card{padding:0;overflow:hidden}.table-head{padding:19px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.table-head h2{margin:0}.search{border:1px solid var(--line);border-radius:9px;padding:9px 12px;min-width:220px;outline-color:#f2a0a8}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 17px;border-bottom:1px solid #eff1f4;font-size:12px}th{color:#778194;font-size:10px;text-transform:uppercase;letter-spacing:.7px;background:#fbfcfd}td{color:#354052}tr:last-child td{border-bottom:0}.pill{display:inline-block;padding:5px 9px;border-radius:20px;background:#f0f2f5;color:#5c6676;font-size:10px;font-weight:750}.pill.danger{background:#ffebed;color:var(--red)}.pill.good{background:#e8f7ef;color:var(--green)}.pill.warn{background:#fff4df;color:#a66a0c}.empty{padding:35px;text-align:center;color:var(--muted)}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px}.toolbar .search{flex:1;max-width:380px}.data-card{padding:0;overflow:hidden}.data-card table{min-width:700px}.scroll{overflow:auto}footer{padding:28px 4px 4px;color:#98a1af;font-size:11px}footer span{float:right}.modal{position:fixed;inset:0;background:#18203388;z-index:30;display:grid;place-items:center;padding:20px}.modal-card{background:white;border-radius:17px;width:min(650px,100%);max-height:90vh;overflow:auto;box-shadow:0 20px 60px #10182840}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:18px}.form-grid{padding:22px 24px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#536074}.field input,.field select,.field textarea{width:100%;border:1px solid #dce1e8;border-radius:9px;padding:11px 12px;font:inherit;font-size:13px;outline-color:#ed9aa2;background:white}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line)}.toast{position:fixed;right:24px;bottom:24px;background:#202838;color:#fff;padding:13px 18px;border-radius:11px;box-shadow:var(--shadow);z-index:50;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:none}.login-wrap{position:fixed;inset:0;background:linear-gradient(130deg,#f6f7fa,#fff0f1);display:grid;place-items:center;padding:20px;z-index:100}.login-card{background:#fff;padding:38px;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 55px #26334a12;width:min(410px,100%)}.login-card .brand-mark{margin:auto}.login-card h1{text-align:center;margin:14px 0 4px}.login-card p{text-align:center;color:var(--muted);margin:0 0 25px;font-size:13px}.login-card label{display:block;font-size:12px;font-weight:700;margin:14px 0}.login-card input{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:9px}.error{color:var(--red);font-size:12px;margin-top:12px}@media(max-width:1150px){.topbar{gap:12px;padding:0 16px}.brand{min-width:175px}.nav button{padding:10px 9px}.main{padding:24px 18px}.kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 15px}.brand{flex:1}.user-area{margin-left:auto}.nav{order:3;flex-basis:100%;display:flex;overflow-x:auto}.nav button{font-size:12px}.main{padding:20px 13px}.page-head{align-items:flex-start;gap:12px;flex-direction:column}.page-head h1{font-size:25px}.head-actions{width:100%;justify-content:space-between}.kpis{gap:10px}.card{padding:15px}.kpi strong{font-size:24px}.dash-grid,.section-grid{grid-template-columns:1fr}.search{min-width:0}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.table-head{gap:10px;flex-wrap:wrap}}

/* Artikel-Editor: klare, helle Formularoberfläche */
.item-editor{display:flex;flex-direction:column;gap:14px}.item-editor-head{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:16px 20px;border:1px solid var(--line);border-radius:12px}.item-editor-head h2{margin:0;font-size:20px}.item-editor-head p,.muted{margin:4px 0 0;color:var(--muted);font-size:13px}.item-editor-actions{display:flex;justify-content:flex-end;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}.item-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px;background:#f5f8fc;border:1px solid var(--line);border-radius:11px}.item-tabs button{border:1px solid transparent;background:transparent;border-radius:8px;padding:12px 10px;font-weight:700;color:#26364e;cursor:pointer}.item-tabs button.active{background:#fff;border-color:#d9e4f4;color:#24518b;box-shadow:0 1px 3px #1820330d}.item-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.item-panel h3{margin:0 0 4px;font-size:16px}.editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.editor-grid>label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#52627a;min-width:0}.editor-grid input,.editor-grid select,.editor-grid textarea{width:100%;border:1px solid #d9e2ef;border-radius:7px;padding:9px 10px;font:inherit;font-size:14px;color:#182230;background:#fff;min-height:38px}.editor-grid textarea{resize:vertical}.editor-grid .wide{grid-column:1/-1}.inline-fields{display:flex;gap:8px}.inline-fields input{max-width:95px}.inline-fields select{max-width:220px}.editor-separator{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.price-grid{align-items:end}.price-summary{grid-column:3;background:#edf5ff;border-radius:9px;padding:13px;display:flex;flex-direction:column;gap:7px;color:#214d85;min-height:100px}.price-summary small{font-size:11px}.price-summary strong{font-size:18px}.hint{background:#f7f9fc;border-radius:8px;padding:12px;color:var(--muted);font-size:12px}.item-panel .empty{margin-top:18px;padding:22px;background:#f7f9fc;border-radius:9px}@media(max-width:800px){.editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.price-summary{grid-column:1/-1}.item-editor-head{align-items:flex-start;gap:10px;flex-direction:column}}@media(max-width:520px){.editor-grid{grid-template-columns:1fr}.editor-grid .wide{grid-column:auto}.item-tabs button{font-size:12px;padding:10px 4px}.item-panel{padding:13px}}

/* 1.02.02: Artikel direkt über Artikelname und Artikelnummer öffnen */
.item-link{color:var(--primary,#24518a);font-weight:650;text-decoration:underline;text-decoration-color:rgba(36,81,138,.35);text-underline-offset:3px;cursor:pointer}.item-link:hover{color:#163b6d;text-decoration-color:currentColor}

/* 1.02.03: deutlich sichtbare Artikel-Direktlinks */
a.item-link{display:inline-block;color:#174b87!important;font-weight:750;text-decoration:underline!important;text-decoration-thickness:1.5px;text-underline-offset:3px;cursor:pointer;padding:2px 0}a.item-link:hover{color:#0b2f5c!important;background:#edf4ff;border-radius:4px}


/* Artikelübersicht 1.04.00 */
.sort-head{border:0;background:transparent;padding:4px 2px;font:inherit;font-weight:800;color:inherit;cursor:pointer;white-space:nowrap}
.item-link{color:#d90416;text-decoration:underline;font-weight:700;cursor:pointer}
.supplier-edit-row{display:grid;grid-template-columns:1.4fr 1fr 1fr .65fr auto auto;gap:8px;align-items:center;margin:8px 0;padding:10px;border:1px solid var(--line,#dbe3ef);border-radius:10px;background:var(--surface,#fff)}
.supplier-edit-row input,.supplier-edit-row select{min-width:0;width:100%}
.supplier-edit-row label{white-space:nowrap}
.price-chart-wrap{padding:12px;border:1px solid var(--line,#dbe3ef);border-radius:12px;margin:10px 0}
.price-chart-wrap svg{width:100%;max-height:250px}
#itemPriceHistory{margin-top:12px}
@media(max-width:900px){.supplier-edit-row{grid-template-columns:1fr 1fr}.supplier-edit-row label{grid-column:auto}}

/* 1.04.02: Artikel-Reiter bleiben beim Scrollen direkt unter der Hauptnavigation sichtbar. */
.item-tabs{position:sticky;top:76px;z-index:9;background:#f5f8fc;box-shadow:0 5px 14px #1820330a}
.item-panel [data-panel]{scroll-margin-top:150px}
@media(max-width:760px){.item-tabs{top:68px}}

/* 1.04.03: Verlässliche Fixierung der Artikel-Reiter unter der Hauptnavigation. */
.topbar{position:sticky!important;top:0!important;z-index:100!important}
.item-tabs{position:sticky!important;top:76px!important;z-index:90!important;background:#f5f8fc!important;box-shadow:0 6px 14px rgba(20,35,60,.08)}
.item-editor{overflow:visible!important}
.item-tabs button{white-space:nowrap}
.brand #syncStatus{margin-left:14px;padding:6px 9px;border-radius:20px;background:#eef8f3;font-size:11px;white-space:nowrap}
.page-head .head-actions #editorHeaderBack{margin-left:auto}
@media(max-width:760px){.item-tabs{top:64px!important}.brand #syncStatus{font-size:9px;margin-left:4px;padding:4px}}

/* 1.04.04 – Toolbar und dauerhaft positionierter Live-Sync */
.brand{min-width:270px;gap:12px}
.brand-sync{display:inline-flex;align-items:center;white-space:nowrap;margin-left:8px;padding:6px 9px;border-radius:20px;background:#eef8f3;font-size:11px;line-height:1.2}
.brand-sync i{flex:0 0 7px}
.toolbar #clearSelection{white-space:nowrap}
.toolbar{align-items:center}
@media(max-width:900px){
 .brand{min-width:220px;gap:8px}
 .brand-sync{font-size:9px;padding:4px 6px;margin-left:2px}
}
@media(max-width:700px){
 .brand{min-width:0}
 .brand-sync{font-size:0;padding:5px}
 .brand-sync i{margin:0}
}

/* 1.04.05 – Verkaufspreis hervorgehoben nach Vorschlag 2; nur der Preiswert ist zentriert. */
.sale-price-highlight{
  grid-column:1/-1;
  display:grid!important;
  grid-template-columns:minmax(220px, 34%) minmax(0, 1fr);
  align-items:center;
  gap:18px!important;
  padding:13px 18px;
  margin-top:2px;
  color:#fff!important;
  background:#214f87;
  border:1px solid #1b477b;
  border-radius:12px;
  box-shadow:0 5px 12px rgba(25,65,115,.12);
  font-size:14px!important;
  font-weight:800!important;
}
.sale-price-highlight span{color:#fff;font-size:14px;letter-spacing:.02em}
.sale-price-highlight input{
  min-height:52px!important;
  padding:10px 16px!important;
  border:1px solid #d7e5f7!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#173f70!important;
  font-size:25px!important;
  font-weight:800!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums;
}
@media(max-width:650px){
  .sale-price-highlight{grid-template-columns:1fr;gap:9px!important;padding:12px}
  .sale-price-highlight input{font-size:22px!important}
}

/* 1.04.06 – Dezimalstellenabhängige Preis-Schrittsteuerung */
.sale-price-control{display:flex;align-items:stretch;gap:0;min-width:0}
.sale-price-highlight .sale-price-control input{
  flex:1 1 auto;min-width:0;border-top-right-radius:0!important;border-bottom-right-radius:0!important;
  text-align:center!important;
}
.sale-price-stepper{display:flex;flex-direction:column;flex:0 0 42px;overflow:hidden;border:1px solid #d7e5f7;border-left:0;border-radius:0 9px 9px 0;background:#f4f7fb}
.sale-price-stepper button{flex:1;border:0;background:transparent;color:#214f87;font-size:12px;font-weight:800;cursor:pointer;line-height:1}
.sale-price-stepper button+button{border-top:1px solid #d7e5f7}
.sale-price-stepper button:hover{background:#e4eefb}

/* 1.04.08 – dynamische Fixierung der Artikel-Reiter unter der Hauptnavigation */
.item-tabs-spacer{height:0;flex:0 0 auto}
.item-tabs.tabs-fixed{
 position:fixed!important;z-index:120!important;margin:0!important;
 background:#f5f8fc!important;box-shadow:0 7px 18px rgba(20,35,60,.16)!important;
 border:1px solid #dbe3ee!important;border-radius:0 0 11px 11px!important;
}

/* 1.04.09 – Native sticky tabs; verhindert Flex-Stretch der Reiterleiste. */
.item-editor{overflow:visible!important;align-items:stretch}
.item-tabs{
 position:-webkit-sticky!important;position:sticky!important;
 top:var(--item-tabs-top,76px)!important;
 align-self:flex-start!important;width:100%!important;flex:0 0 auto!important;
 z-index:150!important;background:#f5f8fc!important;
 box-shadow:0 7px 18px rgba(20,35,60,.14)!important;
 border:1px solid #dbe3ee!important;border-radius:11px!important;
}

/* 1.04.10 – Reiter-Fixierung vollständig ohne JavaScript */
.item-editor{display:flex!important;flex-direction:column!important;gap:14px!important;overflow:visible!important;align-items:stretch!important}
.item-tabs{
  position:-webkit-sticky!important;
  position:sticky!important;
  top:76px!important;
  align-self:flex-start!important;
  width:100%!important;
  flex:0 0 auto!important;
  z-index:150!important;
  background:#f5f8fc!important;
  box-shadow:0 7px 18px rgba(20,35,60,.14)!important;
  border:1px solid #dbe3ee!important;
  border-radius:11px!important;
}
@media(max-width:760px){
  .item-tabs{top:68px!important}
}

/* 1.04.11 – Gemeinsamer fixierter Kopfbereich der Artikelmaske */
.item-editor{overflow:visible!important;align-items:stretch!important}
.item-editor-sticky{
 position:-webkit-sticky!important;position:sticky!important;top:76px!important;
 z-index:180!important;align-self:stretch!important;flex:0 0 auto!important;
 display:flex!important;flex-direction:column!important;gap:7px!important;
 padding:8px!important;margin:0!important;background:rgba(245,248,252,.98)!important;
 border:1px solid #dbe3ee!important;border-radius:0 0 12px 12px!important;
 box-shadow:0 8px 20px rgba(20,35,60,.15)!important;backdrop-filter:blur(8px);
}
.item-editor-sticky .item-editor-actions{
 display:flex!important;justify-content:flex-end!important;align-items:center!important;
 gap:10px!important;padding:0 2px 6px!important;margin:0!important;border:0!important;
}
.item-editor-sticky .item-tabs{
 position:static!important;align-self:stretch!important;width:100%!important;
 flex:0 0 auto!important;margin:0!important;box-shadow:none!important;border-radius:9px!important;
}
@media(max-width:760px){
 .item-editor-sticky{top:116px!important;padding:6px!important}
 .item-editor-sticky .item-editor-actions{justify-content:stretch!important;flex-wrap:wrap}
 .item-editor-sticky .item-editor-actions .btn{flex:1 1 auto}
}

/* 1.04.12 – Vollständiger fixierter Artikel-Kopf inkl. Titel und Zurück */
.item-editor-sticky{top:76px!important}
.item-editor-sticky .page-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0!important;padding:8px 10px 12px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.item-editor-sticky .page-head .eyebrow{display:none!important}
.item-editor-sticky .page-head h1{font-size:24px!important;margin:0 0 3px!important}
.item-editor-sticky .page-head p{font-size:13px!important;margin:0!important}
.item-editor-sticky .page-head .head-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important}
.item-editor-sticky .item-editor-actions{padding-top:4px!important}
@media(max-width:760px){
 .item-editor-sticky{top:68px!important}
 .item-editor-sticky .page-head{align-items:flex-start!important;flex-direction:column!important}
 .item-editor-sticky .page-head .head-actions{width:100%!important}
}

/* 1.04.13 – Fixierter Kopfbereich auch auf der Artikel-Hauptübersicht */
.items-overview-sticky{
 position:-webkit-sticky!important;
 position:sticky!important;
 top:76px!important;
 z-index:170!important;
 display:flex!important;
 flex-direction:column!important;
 gap:8px!important;
 padding:8px 10px 4px!important;
 margin:0 0 12px!important;
 background:rgba(245,248,252,.98)!important;
 border:1px solid #dbe3ee!important;
 border-radius:0 0 12px 12px!important;
 box-shadow:0 8px 20px rgba(20,35,60,.13)!important;
 backdrop-filter:blur(8px);
}
.items-overview-sticky .page-head{
 display:block!important;
 margin:0!important;
 padding:4px 8px 8px!important;
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
}
.items-overview-sticky .page-head .eyebrow{display:none!important}
.items-overview-sticky .page-head h1{font-size:26px!important;margin:0 0 3px!important}
.items-overview-sticky .page-head p{font-size:14px!important;margin:0!important}
.items-overview-sticky .toolbar{margin:0!important;gap:10px!important}
.items-overview-sticky .items-selection-bar{margin:0!important;background:#fff!important}
.items-overview-sticky #itemExtraFilters{margin:0!important}
@media(max-width:760px){
 .items-overview-sticky{top:68px!important;padding:6px!important}
 .items-overview-sticky .toolbar{flex-wrap:wrap!important}
 .items-overview-sticky .toolbar .search{min-width:150px!important;flex:1 1 180px!important}
}

/* 1.04.14 – Einheitlicher, zentraler Sticky-Kopf für alle Hauptmenüs.
   Neue Menüs verwenden automatisch .shared-page-sticky; Artikelseiten behalten ihr eigenes Layout. */
.shared-page-sticky{
 position:-webkit-sticky!important;
 position:sticky!important;
 top:76px!important;
 z-index:160!important;
 display:flex!important;
 flex-direction:column!important;
 gap:8px!important;
 padding:8px 10px!important;
 margin:0 0 14px!important;
 background:rgba(245,248,252,.98)!important;
 border:1px solid #dbe3ee!important;
 border-radius:0 0 12px 12px!important;
 box-shadow:0 8px 20px rgba(20,35,60,.13)!important;
 backdrop-filter:blur(8px);
}
.shared-page-sticky .page-head{
 display:block!important;
 margin:0!important;
 padding:4px 8px 8px!important;
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
}
.shared-page-sticky .page-head .eyebrow{display:none!important}
.shared-page-sticky .page-head h1{font-size:26px!important;margin:0 0 3px!important}
.shared-page-sticky .page-head p{font-size:14px!important;margin:0!important}
.shared-page-sticky > .toolbar{margin:0!important}
@media(max-width:760px){
 .shared-page-sticky{top:68px!important;padding:6px!important}
 .shared-page-sticky > .toolbar{flex-wrap:wrap!important}
}

/* Portal 2.0: Smart-Inventory-Designsystem, ohne Eingriff in Smart Inventory */
.portal-nav{display:flex;align-items:center;gap:4px;flex:1;overflow-x:auto;scrollbar-width:none}
.portal-nav button,.portal-nav a{border:0;background:transparent;color:#596477;font-weight:650;padding:12px 11px;border-radius:11px;white-space:nowrap;cursor:pointer;font-size:12px;text-decoration:none}
.portal-nav button:hover,.portal-nav a:hover{background:#f6f7f9;color:var(--red)}
.portal-nav button.active{background:#fff0f1;color:var(--red)}
.portal-shell{min-height:100vh}
.portal-head-status{font-size:11px;color:var(--green);font-weight:700;white-space:nowrap}
.portal-head-status i{display:inline-block;width:7px;height:7px;background:#28a879;border-radius:50%;margin-right:6px}
.portal-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px;margin-bottom:20px}
.portal-stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);min-height:120px}
.portal-stat span{display:block;color:var(--muted);font-size:13px;font-weight:650}
.portal-stat strong{display:block;font-size:29px;letter-spacing:-1px;margin:12px 0 4px;color:#202838}
.portal-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);margin-bottom:18px}
.portal-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.portal-panel h3{font-size:17px;margin:0}
.portal-welcome{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin-bottom:18px;box-shadow:var(--shadow)}
.portal-welcome h2{margin:0 0 6px;font-size:22px}
.portal-welcome p{margin:0;color:var(--muted);font-size:13px}
.portal-milestones{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.portal-milestones div{padding:13px;border-radius:10px;background:#f5f7fa;color:#7a879b;font-size:12px}
.portal-milestones .done{background:#e8f7ef;color:#23966c}
.portal-milestones .current{background:#fff0f1;color:var(--red);font-weight:700}
.portal-notice{padding:12px 15px;border-radius:10px;background:#fff4df;color:#865d14;margin-bottom:15px}
.portal-error{color:#b42318;font-size:13px;min-height:18px}
.portal-table-wrap{overflow:auto}
.portal-table-wrap table{min-width:650px}
.portal-secondary{border:1px solid var(--line);background:white;color:#344054;padding:9px 13px;border-radius:9px;font-weight:700;cursor:pointer}
.portal-empty{padding:35px;text-align:center;color:var(--muted)}
.portal-empty h3{color:var(--ink);margin:0 0 8px}
.portal-footer{padding:28px 4px 4px;color:#98a1af;font-size:11px}
@media(max-width:1250px){.topbar{gap:12px;padding:0 16px}.brand{min-width:175px}.portal-nav button,.portal-nav a{padding:10px 8px;font-size:11px}.portal-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 15px}.brand{flex:1}.user-area{margin-left:auto}.portal-nav{order:3;flex-basis:100%;display:flex;overflow-x:auto}.portal-nav button,.portal-nav a{font-size:12px}.main{padding:20px 13px}.page-head{align-items:flex-start;gap:12px;flex-direction:column}.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-milestones{grid-template-columns:1fr 1fr}.portal-footer span{float:none;display:block;margin-top:5px}}

/* Benutzerverwaltung 0.3.3 */
#view-users .portal-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#view-users .portal-panel-head h3{margin:0 0 4px}
#view-users .portal-panel-head p{margin:0;color:var(--muted);font-size:13px}
#view-users table{min-width:850px}
#userModal .modal-card{width:min(720px,100%)}
#userModal .field span{font-size:12px;font-weight:700;color:#536074}
#userModal .field input,#userModal .field select{width:100%;border:1px solid #dce1e8;border-radius:9px;padding:11px 12px;font:inherit;font-size:13px;background:white}
#userModal .field small{font-size:11px}
#userModal .error{margin:0;min-height:18px}
@media(max-width:760px){#view-users .portal-panel-head>div:last-child{display:flex;gap:7px;flex-wrap:wrap}}

/* Version 0.3.6 – Einstellungen */
.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.settings-tabs button{border:1px solid #e4e8ef;background:#fff;color:#263246;border-radius:10px;padding:11px 14px;font:inherit;font-weight:650;cursor:pointer}
.settings-tabs button.active{background:#fff0f1;border-color:#ffe0e3;color:#24518b}
.settings-form{padding:22px}
