:root {
  color-scheme: light;
  --ink: #1c2b35;
  --muted: #64727b;
  --line: #dce3e7;
  --surface: #ffffff;
  --surface-alt: #f4f7f8;
  --navy: #14334a;
  --navy-2: #204b66;
  --teal: #2b827f;
  --teal-pale: #e9f5f3;
  --danger: #a33b38;
  --danger-pale: #fff0ef;
  --success: #247657;
  --success-pale: #e9f6ef;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #f5f7f8; }
body { margin: 0; color: var(--ink); background: #f5f7f8; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 12px clamp(20px, 5vw, 76px); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark, .card-symbol { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: #fff; background: var(--navy); font-weight: 800; font-size: 19px; letter-spacing: -.04em; }
.brand strong, .brand small, .topbar-user strong, .topbar-user small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .12em; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.topbar-right { display: flex; align-items: center; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user strong { font-size: 13px; }
.topbar-user small { color: var(--muted); font-size: 11px; }
.user-initial { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--teal-pale); color: var(--navy); font-weight: 750; }
.page-wrap { width: min(1160px, calc(100% - 36px)); min-height: calc(100vh - 143px); margin: 0 auto; padding: 42px 0 54px; }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; }
.eyebrow { margin-bottom: 13px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; font-size: clamp(30px, 4vw, 47px); line-height: 1.08; letter-spacing: -.045em; font-weight: 760; }
h2 { margin-bottom: 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.015em; }
.lead { max-width: 660px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.muted { color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 445px); align-items: center; gap: clamp(38px, 7vw, 94px); min-height: 590px; }
.auth-intro { padding: 16px 0; }
.auth-intro .lead { margin-bottom: 32px; }
.trust-list { display: grid; gap: 18px; max-width: 450px; }
.trust-list > div { display: flex; align-items: center; gap: 12px; }
.trust-list strong, .trust-list small { display: block; }
.trust-list strong { font-size: 13px; }
.trust-list small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.trust-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: var(--teal); background: var(--teal-pale); font-size: 17px; font-weight: 800; }
.auth-card { padding: clamp(26px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 22px 60px rgba(20, 51, 74, .075); }
.card-symbol { margin-bottom: 22px; width: 47px; height: 47px; font-size: 21px; }
.auth-card h2 { font-size: 26px; }
.auth-card > .muted { margin-bottom: 25px; font-size: 13px; }
.form-stack { display: grid; gap: 10px; }
.form-stack label { margin-top: 4px; color: #30434e; font-size: 12px; font-weight: 700; }
.form-stack input { width: 100%; min-width: 0; min-height: 47px; padding: 11px 13px; border: 1px solid #cbd6dc; border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
.form-stack input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 130, 127, .13); }
.form-stack button { margin-top: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; text-decoration: none; font: inherit; font-size: 13px; font-weight: 750; transition: background .15s ease, border-color .15s ease; }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button-secondary:hover { background: var(--surface-alt); }
.button-wide { width: 100%; min-height: 49px; }
.small-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.field-help { color: var(--muted); font-size: 11px; }
.setup-card { align-self: center; }
.notice { padding: 16px 18px; border: 1px solid #dbe9e7; border-left: 4px solid var(--teal); border-radius: 10px; background: #f8fbfb; }
.notice strong { display: block; margin-bottom: 4px; font-size: 13px; }
.notice p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.notice-page { max-width: 810px; margin: 34px auto; padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.status-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.status-points span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt); color: #465b66; font-size: 12px; }
.alert { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #dce6ed; border-radius: 10px; background: #f1f7fb; color: #284e66; font-size: 13px; }
.alert-error { border-color: #f0c5c2; color: var(--danger); background: var(--danger-pale); }
.alert-success { border-color: #c1e4cf; color: var(--success); background: var(--success-pale); }
.welcome-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.welcome-row h1 { font-size: clamp(30px, 3.5vw, 42px); }
.welcome-row .lead { max-width: 750px; margin-bottom: 0; font-size: 15px; }
.logout-form { flex-shrink: 0; }
.status-banner { display: flex; align-items: center; gap: 13px; padding: 17px 19px; margin-bottom: 37px; border: 1px solid #cde7dc; border-radius: 13px; background: #f3fbf7; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a9a6a; box-shadow: 0 0 0 4px #d9f2e5; }
.status-banner > div { flex: 1; }
.status-banner strong { display: block; font-size: 13px; }
.status-banner p { margin: 3px 0 0; color: #5d766b; font-size: 12px; }
.environment-pill { padding: 5px 9px; border-radius: 6px; background: #dff2e9; color: #21704e; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 17px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p { color: var(--muted); font-size: 13px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.module-card { min-height: 204px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.module-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
.module-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-pale); color: var(--teal); font-size: 12px; font-weight: 850; }
.module-status { color: #78858c; font-size: 10px; text-align: right; }
.module-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.account-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 35px; margin-top: 27px; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.account-panel h2 { font-size: 21px; }
.account-panel p { margin-bottom: 0; max-width: 520px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-panel dl { margin: 0; display: grid; gap: 13px; }
.account-panel dl div { display: grid; grid-template-columns: minmax(100px, .7fr) 1.2fr; gap: 10px; }
.account-panel dt { color: var(--muted); font-size: 11px; }
.account-panel dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.disclaimer { margin: 19px 0 0; color: #77848a; font-size: 11px; line-height: 1.6; }
@media (max-width: 850px) {
  .auth-layout { grid-template-columns: 1fr; gap: 25px; max-width: 520px; margin: 0 auto; }
  .auth-intro { padding: 0; }
  .auth-intro .lead { margin-bottom: 22px; font-size: 15px; }
  .trust-list { display: none; }
  .page-wrap { padding-top: 28px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-panel { grid-template-columns: 1fr; gap: 23px; }
}
@media (max-width: 560px) {
  .topbar { min-height: 66px; padding: 10px 16px; }
  .brand-mark { width: 39px; height: 39px; }
  .topbar-user strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-wrap { width: min(100% - 28px, 500px); padding-top: 22px; padding-bottom: 35px; }
  .auth-layout { min-height: auto; }
  .auth-card { padding: 23px 19px; border-radius: 15px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; }
  .welcome-row { flex-direction: column; }
  .logout-form, .logout-form .button { width: 100%; }
  .status-banner { align-items: flex-start; padding: 15px; }
  .environment-pill { margin-left: auto; }
  .account-panel { padding: 19px; }
  .account-panel dl div { grid-template-columns: 100px 1fr; }
  .footer { padding: 15px 16px; gap: 6px; }
}

/* WAYAND Intern v0.3 design refinement: clearer hierarchy and polished module overview. */
:root {
  --ink: #182d3a;
  --muted: #60727e;
  --line: #dbe4e9;
  --surface-alt: #f2f6f8;
  --navy: #15374f;
  --navy-2: #245570;
  --teal: #267c7a;
  --teal-pale: #e7f4f2;
}
html, body { background: linear-gradient(180deg, #f8fafb 0%, #f1f5f7 100%); }
.topbar {
  min-height: 74px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 12px rgba(20, 51, 74, .025);
}
.brand-mark {
  box-shadow: 0 5px 12px rgba(20, 51, 74, .12);
}
.brand small { letter-spacing: .025em; }
.topbar-user {
  padding: 7px 11px 7px 7px;
  border: 1px solid #e1e8ec;
  border-radius: 999px;
  background: #fff;
}
.page-wrap { padding-top: 38px; }
.eyebrow { letter-spacing: .13em; }
.welcome-row { align-items: center; margin-bottom: 25px; }
.welcome-row h1 { margin-bottom: 11px; }
.logout-form .button { min-height: 42px; }
.status-banner {
  box-shadow: 0 6px 18px rgba(36, 118, 87, .035);
  margin-bottom: 34px;
}
.section-heading { align-items: end; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p { margin-bottom: 0; }
.module-grid { gap: 16px; }
.module-card {
  position: relative;
  min-height: 205px;
  padding: 22px;
  border-color: #dde6ea;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(20, 51, 74, .025);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.module-card:hover {
  border-color: #c4d7dd;
  box-shadow: 0 8px 24px rgba(20, 51, 74, .055);
  transform: translateY(-1px);
}
.module-card-top {
  display: grid;
  grid-template-columns: 42px auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
}
.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d1e9e5;
  border-radius: 12px;
  background: linear-gradient(145deg, #f0faf8, #e4f3f0);
  color: #267c7a;
}
.module-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.module-number {
  color: #83919a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.module-status {
  justify-self: end;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #e1e8ec;
  border-radius: 999px;
  background: #f7f9fa;
  color: #687a85;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.module-card h3 { margin-bottom: 9px; font-size: 16px; }
.module-card p { color: #60727e; font-size: 12px; }
.account-panel {
  margin-top: 26px;
  padding: clamp(21px, 3vw, 28px);
  border-color: #dce5e9;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(20, 51, 74, .025);
}
.account-panel .eyebrow { margin-bottom: 8px; }
.account-panel h2 { margin-bottom: 10px; }
.account-panel dl { align-content: center; }
.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid #d4e8e4;
  border-radius: 999px;
  background: #eef8f6;
  color: #226b69;
  font-size: 11px;
  font-weight: 750;
}
.disclaimer {
  padding: 12px 14px;
  border-left: 3px solid #b9c9d0;
  border-radius: 0 8px 8px 0;
  background: rgba(255,255,255,.65);
  color: #61747f;
}
.button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(38, 124, 122, .3);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .module-card-top { grid-template-columns: 42px auto; }
  .module-status { grid-column: 1 / -1; justify-self: start; }
  .module-card { min-height: 192px; }
}
@media (max-width: 560px) {
  .page-wrap { padding-top: 22px; }
  .topbar-user { padding-right: 8px; }
  .module-card { padding: 19px; }
  .module-card-top { margin-bottom: 15px; }
  .status-banner { margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* WAYAND v0.4 account security / password change */
.account-password-link { margin-top: 16px; }
.security-page { max-width: 820px; margin: 0 auto; }
.security-page .section-heading { margin-bottom: 20px; }
.security-page .section-heading h1 { margin-bottom: 10px; }
.security-page .section-heading p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.security-card { max-width: 650px; }
.security-back-link { margin-top: 16px; }
@media (max-width: 560px) { .account-password-link { width: 100%; } .security-card { padding: 23px 19px; } }


/* WAYAND v0.5 offline recovery link */
.recovery-link-wrap { margin: 12px 0 0; text-align: center; font-size: 12px; }
.text-link { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--teal); }


/* WAYAND v0.6 user administration, permission controls and audit log */
.dashboard-actions { display:flex; flex-wrap:wrap; gap:10px; margin:-10px 0 30px; }
.admin-page { max-width:1100px; margin:0 auto; }
.admin-page > .section-heading { align-items:flex-end; gap:16px; }
.admin-page .section-heading h1 { font-size:clamp(28px,3.5vw,38px); }
.admin-page .section-heading p { max-width:760px; margin-bottom:0; }
.admin-panel { margin:20px 0; padding:clamp(18px,3vw,28px); border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 4px 16px rgba(20,51,74,.025); }
.admin-panel .section-heading { margin-bottom:18px; }
.admin-panel .section-heading h2 { font-size:21px; }
.admin-panel .section-heading p { margin:0; }
.admin-form { max-width:100%; }
.admin-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.admin-form-grid > div { min-width:0; display:grid; align-content:start; gap:7px; }
.admin-form label, .inline-admin-form label { color:#30434e; font-size:12px; font-weight:700; }
.admin-form input, .admin-form select, .inline-admin-form select, .permission-row select { width:100%; min-width:0; min-height:43px; padding:9px 11px; border:1px solid #cbd6dc; border-radius:9px; background:#fff; color:var(--ink); font:inherit; font-size:13px; }
.admin-form input:focus, .admin-form select:focus, .inline-admin-form select:focus, .permission-row select:focus { outline:0; border-color:var(--teal); box-shadow:0 0 0 3px rgba(43,130,127,.13); }
.user-list { display:grid; gap:14px; }
.user-card { min-width:0; padding:18px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.user-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.user-card-heading h3 { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 5px; }
.user-subtitle { margin:0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.account-status { display:inline-flex; flex-shrink:0; padding:5px 9px; border:1px solid var(--line); border-radius:999px; font-size:11px; font-weight:750; }
.status-active { background:var(--success-pale); border-color:#c5e5d1; color:var(--success); }
.status-disabled { background:var(--danger-pale); border-color:#efd0ce; color:var(--danger); }
.user-metadata { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:17px 0; }
.user-metadata div { min-width:0; }
.user-metadata dt { margin-bottom:4px; color:var(--muted); font-size:10px; }
.user-metadata dd { margin:0; overflow-wrap:anywhere; font-size:12px; font-weight:650; }
.user-actions { display:grid; gap:10px; border-top:1px solid var(--line); padding-top:14px; }
.inline-admin-form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.inline-admin-form select { flex:1 1 180px; max-width:300px; }
.role-form label { margin-right:2px; }
.button-danger { color:#fff; background:#a33b38; border-color:#a33b38; }
.button-danger:hover { background:#8d302d; }
.user-detail { padding:12px 0; border-top:1px solid #edf1f3; }
.user-detail summary { cursor:pointer; color:var(--navy); font-size:13px; font-weight:750; }
.user-detail > p { margin:10px 0; font-size:12px; }
.compact-form { max-width:450px; margin-top:12px; }
.permissions-form { margin-top:12px; }
.permissions-list { display:grid; gap:8px; }
.permission-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(145px,220px); align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #edf1f3; }
.permission-row label { display:grid; gap:3px; min-width:0; }
.permission-row label strong { font-size:12px; }
.permission-row label small { color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.table-scroll { width:100%; overflow-x:auto; }
.audit-table { width:100%; border-collapse:collapse; font-size:12px; }
.audit-table th, .audit-table td { padding:12px 11px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.audit-table th { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; white-space:nowrap; }
.audit-table td { overflow-wrap:anywhere; }
@media (max-width:720px) {
  .admin-page > .section-heading { align-items:flex-start; flex-direction:column; }
  .admin-form-grid { grid-template-columns:1fr; }
  .user-metadata { grid-template-columns:1fr 1fr; }
  .permission-row { grid-template-columns:1fr; gap:7px; }
  .permission-row select { max-width:320px; }
  .audit-table { min-width:650px; }
}
@media (max-width:460px) {
  .admin-panel { padding:15px; }
  .user-card { padding:14px; }
  .user-card-heading { flex-direction:column; }
  .user-metadata { grid-template-columns:1fr; gap:10px; }
  .inline-admin-form, .inline-admin-form button { width:100%; }
  .inline-admin-form select { max-width:none; }
  .dashboard-actions > .button { width:100%; }
}

/* WAYAND Lagerbuchungen – guarded form */
.inventory-booking-panel { margin: 20px 0; }
.inventory-booking-panel h2 { margin-bottom: 8px; }
.inventory-booking-form { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.inventory-booking-form label { margin-top: 4px; }
.inventory-booking-form input, .inventory-booking-form select { width: 100%; min-width: 0; }
.inventory-booking-form button { justify-self: start; grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 680px) { .inventory-booking-form { grid-template-columns: minmax(0, 1fr); } }

/* WAYAND Lageransicht – Bestand und Buchungshistorie */
.inventory-page > .section-heading { align-items: flex-start; gap: 18px; }
.inventory-page > .section-heading h1 { font-size: clamp(28px, 3.5vw, 38px); }
.inventory-page > .section-heading p { max-width: 760px; margin-bottom: 0; }
.inventory-toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 22px 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.88); }
.inventory-result-count { color: var(--muted); font-size: 12px; }
.inventory-result-count strong { color: var(--ink); font-size: 16px; margin-right: 4px; }
.inventory-search { display: grid; gap: 6px; min-width: min(100%, 390px); }
.inventory-search > label { color: #30434e; font-size: 11px; font-weight: 750; }
.inventory-search-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.inventory-search input { flex: 1 1 190px; width: 100%; min-width: 120px; min-height: 43px; padding: 9px 11px; border: 1px solid #cbd6dc; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.inventory-search input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,130,127,.13); }
.inventory-search .button { min-height: 43px; }
.inventory-reset-link { color: var(--navy-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.inventory-panel { margin-top: 0; }
.inventory-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inventory-table th, .inventory-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.inventory-table th { color: var(--muted); background: #f7f9fa; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.inventory-table tbody tr:last-child td { border-bottom: 0; }
.inventory-table tbody tr:hover { background: #fbfdfd; }
.inventory-code { color: #526773; font-size: 12px; white-space: nowrap; }
.inventory-product strong, .inventory-product small { display: block; }
.inventory-product strong { color: var(--ink); font-size: 13px; }
.inventory-product small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.inventory-quantity-heading { text-align: right !important; }
.inventory-quantity { min-width: 115px; text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inventory-quantity strong { color: var(--navy); font-size: 15px; }
.inventory-quantity span { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 11px; }
.inventory-readonly-note { margin-top: 14px; }
.inventory-empty { margin-top: 0; padding: clamp(28px, 5vw, 50px) 22px; border: 1px dashed #cad8de; border-radius: 15px; background: rgba(255,255,255,.75); text-align: center; }
.inventory-empty-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 13px; background: var(--teal-pale); color: var(--teal); font-size: 25px; }
.inventory-empty h2 { font-size: 20px; }
.inventory-empty p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 620px) {
  .inventory-page > .section-heading { flex-direction: column; }
  .inventory-page > .section-heading > .button { width: 100%; }
  .inventory-toolbar { align-items: stretch; padding: 14px; }
  .inventory-search { min-width: 100%; }
  .inventory-search-controls .button { flex: 1 1 auto; }
  .inventory-table { min-width: 620px; }
}


/* WAYAND product catalog admin route — local integration stage; no live activation until migration 004 is released. */
.catalog-page { max-width: 1120px; }
.catalog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.catalog-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 750; }
.catalog-tab:hover { background: var(--surface-alt); }
.catalog-tab.is-current { color: #fff; background: var(--navy); }
.catalog-safety-note { display: grid; gap: 3px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid #d9e6ea; border-left: 4px solid var(--teal); border-radius: 9px; background: #f8fbfc; color: #52636c; font-size: 12px; }
.catalog-safety-note strong { color: var(--navy); }
.catalog-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt); }
.catalog-filter label { display: block; color: #30434e; font-size: 12px; font-weight: 750; }
.catalog-filter input[type="search"], .catalog-filter select { display: block; width: 100%; min-width: 0; min-height: 42px; margin-top: 5px; padding: 9px 10px; border: 1px solid #cbd6dc; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.catalog-filter .catalog-check { display: flex; align-items: center; gap: 7px; min-height: 42px; font-size: 11px; white-space: nowrap; }
.catalog-filter .catalog-check input { accent-color: var(--teal); }
.catalog-count { margin-top: 0; }
.catalog-editor { margin: 12px 0; padding: 12px 14px; border: 1px solid #dbe4e9; border-radius: 11px; background: #fbfcfd; }
.catalog-editor > summary { cursor: pointer; color: var(--navy); font-size: 13px; font-weight: 800; }
.catalog-editor[open] > summary { margin-bottom: 13px; }
.catalog-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.catalog-form > .catalog-field { min-width: 0; display: grid; align-content: start; gap: 6px; }
.catalog-form > .catalog-field label { color: #30434e; font-size: 12px; font-weight: 750; }
.catalog-form > .catalog-field input, .catalog-form > .catalog-field select, .catalog-form > .catalog-field textarea { width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid #cbd6dc; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.catalog-form > .catalog-field textarea { resize: vertical; min-height: 76px; }
.catalog-form > .catalog-field input:focus, .catalog-form > .catalog-field select:focus, .catalog-form > .catalog-field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 130, 127, .13); }
.catalog-form > button, .catalog-form > .small-note { grid-column: 1 / -1; }
.catalog-field strong { font-size: 12px; }
.catalog-record { margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.catalog-record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.catalog-record-head h3 { margin: 0 0 5px; font-size: 15px; }
.catalog-record-head p { margin: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.catalog-record-head code { color: #315266; font-size: 11px; }
.catalog-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0 0; }
.catalog-meta dt { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.catalog-meta dd { margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.catalog-description { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #edf1f3; color: #53646d; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.catalog-record-actions { display: grid; gap: 8px; justify-items: start; margin-top: 12px; }
.catalog-inline-action { display: inline-flex; margin: 8px 7px 0 0; }
.catalog-empty { margin: 12px 0; padding: 14px; border: 1px dashed #cbd7dc; border-radius: 10px; background: #fbfcfd; color: #62737d; font-size: 12px; }
.catalog-selected-product { display: grid; gap: 3px; margin: 14px 0; padding: 12px 14px; border: 1px solid #dce6e9; border-radius: 10px; background: #f6fafb; }
.catalog-selected-product strong { color: var(--navy); font-size: 14px; }
.catalog-selected-product span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.catalog-price-table { min-width: 680px; }
.catalog-page .button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 780px) {
  .catalog-filter { grid-template-columns: 1fr; align-items: stretch; }
  .catalog-filter .catalog-check { white-space: normal; }
  .catalog-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .catalog-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tab { padding: 8px 6px; font-size: 11px; }
  .catalog-form { grid-template-columns: 1fr; }
  .catalog-form > button, .catalog-form > .small-note { grid-column: auto; }
  .catalog-record { padding: 13px; }
  .catalog-record-head { flex-direction: column; }
  .catalog-meta { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* WAYAND Lagerbewegungshistorie */
.inventory-history-panel { margin-top: 20px; }
.inventory-history-table { min-width: 880px; }
.inventory-history-table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* WAYAND material-cost tiles — price per base unit plus optional consumption formula. */
.material-cost-panel { overflow: visible; }
.catalog-live-tag { align-self: flex-start; display: inline-flex; padding: 6px 9px; border: 1px solid #b9d7cd; border-radius: 999px; background: #f1f8f5; color: #2b6556; font-size: 10px; font-weight: 800; white-space: nowrap; }
.material-cost-method { display: grid; gap: 4px; margin: 4px 0 16px; padding: 11px 13px; border: 1px solid #d9e6e4; border-left: 4px solid var(--teal); border-radius: 9px; background: #f8fbfa; color: #566b6b; font-size: 11px; line-height: 1.5; }
.material-cost-method strong { color: var(--navy); }
.material-cost-search { display: grid; gap: 5px; margin: 0 0 14px; }
.material-cost-search label { color: #30434e; font-size: 12px; font-weight: 800; }
.material-cost-search > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.material-cost-search input { flex: 1 1 240px; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd6dc; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.quick-material-panel { margin: 14px 0 18px; border: 1px solid #e2c68b; border-left: 5px solid #ed9b19; border-radius: 12px; background: #fffaf0; overflow: hidden; }
.quick-material-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.quick-material-panel > summary::-webkit-details-marker { display: none; }
.quick-material-panel > summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.quick-material-panel > summary strong { color: #543a13; font-size: 13px; }
.quick-material-panel > summary small { color: #806b48; font-size: 11px; line-height: 1.4; }
.quick-material-plus { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: #f8e6bd; color: #6b4810; font-size: 20px; font-weight: 700; }
.quick-material-panel[open] > summary { border-bottom: 1px solid #f0dfbb; }
.quick-material-form { padding: 14px; }
.quick-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-material-grid label, .material-cost-edit label { display: grid; gap: 5px; min-width: 0; color: #30434e; font-size: 11px; font-weight: 800; }
.quick-material-grid input, .quick-material-grid select, .material-cost-edit input, .material-cost-edit select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #cbd6dc; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.quick-material-grid input:focus, .quick-material-grid select:focus, .material-cost-edit input:focus, .material-cost-edit select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 130, 127, .13); }
.quick-material-grid .span-2 { grid-column: 1 / -1; }
.quick-material-divider { display: grid; gap: 4px; margin-top: 3px; padding-top: 12px; border-top: 1px solid #ead7b0; }
.quick-material-divider strong { color: #5b4219; font-size: 12px; }
.quick-material-divider span { color: #77684f; font-size: 10px; line-height: 1.45; }
.quick-material-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; padding: 11px; border: 1px solid #d2e3d6; border-radius: 10px; background: #f4faf5; }
.quick-material-preview > div { display: grid; gap: 4px; min-width: 0; }
.quick-material-preview span { color: #5f7762; font-size: 10px; }
.quick-material-preview strong { color: #244c2e; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quick-material-preview p { grid-column: 1 / -1; margin: 0; color: #68786a; font-size: 9px; line-height: 1.45; }
.quick-material-form > button { width: 100%; }
.material-cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px; margin: 12px 0 17px; }
.material-cost-card { min-width: 0; padding: 14px; border: 1px solid #dce5e8; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(28, 51, 62, .045); }
.material-cost-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #edf1f3; }
.material-cost-card-head > div { min-width: 0; }
.material-cost-kicker { margin: 0 0 4px; color: #64808a; font-size: 9px; font-weight: 850; letter-spacing: .06em; overflow-wrap: anywhere; }
.material-cost-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.material-cost-package { margin: 0; color: #6d7a80; font-size: 10px; line-height: 1.4; }
.material-cost-status { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; font-size: 9px; font-weight: 850; }
.material-cost-status.is-stored { border: 1px solid #c8e0d0; background: #f1f8f3; color: #2e6a43; }
.material-cost-status.is-review { border: 1px solid #edcf8b; background: #fff7e5; color: #80560d; }
.material-cost-status.is-missing { border: 1px solid #e6d5d5; background: #fff6f6; color: #8a4141; }
.material-cost-description { margin: 9px 0 0; color: #697980; font-size: 10px; line-height: 1.45; }
.material-cost-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.material-cost-numbers > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px; border-radius: 8px; background: #f5f8f9; }
.material-cost-numbers span { color: #6a7d84; font-size: 9px; line-height: 1.3; }
.material-cost-numbers strong { color: #273f4b; font-size: 16px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.material-cost-numbers small { color: #809097; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.material-cost-primary { display: grid; gap: 4px; margin-top: 9px; padding: 12px; border: 1px solid #cde2d1; border-radius: 9px; background: #f2f8f3; }
.material-cost-primary > span { color: #5b7860; font-size: 10px; font-weight: 800; }
.material-cost-primary > strong { color: #235332; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.material-cost-primary > small { color: #6b806f; font-size: 9px; line-height: 1.4; }
.material-cost-primary.is-unset { border-color: #eadfca; background: #fcfaf5; }
.material-cost-primary.is-unset > span, .material-cost-primary.is-unset > small { color: #8a7859; }
.material-cost-primary.is-unset > strong { color: #7a5c25; font-size: 15px; }
.material-cost-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 11px; font-size: 10px; }
.material-cost-links a, .material-cost-card-footer a { color: #315f71; font-weight: 800; text-underline-offset: 2px; overflow-wrap: anywhere; }
.material-cost-links > span { color: #819097; }
.material-cost-source { margin: 9px 0 0; color: #7a6a4c; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.material-cost-source strong { color: #6a542f; }
.material-cost-edit { margin-top: 9px; padding-top: 9px; border-top: 1px solid #edf1f3; }
.material-cost-edit > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #365b69; font-size: 10px; font-weight: 850; list-style: none; }
.material-cost-edit > summary::-webkit-details-marker { display: none; }
.material-cost-edit > summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #edf4f6; font-size: 13px; }
.material-cost-edit[open] > summary::before { content: '−'; }
.material-cost-edit[open] > summary { margin-bottom: 8px; }
.material-cost-edit form { display: grid; gap: 9px; padding: 10px; border: 1px solid #e1eaed; border-radius: 9px; background: #fafcfc; }
.material-cost-edit .small-note { margin: 0; font-size: 9px; line-height: 1.4; }
.material-cost-edit .button { justify-self: start; }
.material-cost-card-footer { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #edf1f3; font-size: 10px; }
@media (max-width: 900px) { .material-cost-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .quick-material-form { padding: 11px; }
  .quick-material-grid { grid-template-columns: 1fr; }
  .quick-material-grid .span-2 { grid-column: auto; }
  .quick-material-preview { grid-template-columns: 1fr; }
  .quick-material-preview p { grid-column: auto; }
  .material-cost-card { padding: 12px; }
  .material-cost-card-head { flex-direction: column; }
  .material-cost-status { align-self: flex-start; }
  .material-cost-numbers { grid-template-columns: 1fr 1fr; }
  .material-cost-numbers strong { font-size: 14px; }
  .material-cost-primary > strong { font-size: 22px; }
}
.material-cost-coverage { display: grid; gap: 4px; margin-top: 8px; padding: 9px 11px; border: 1px solid #e4eaf0; border-radius: 8px; background: #f8fafc; }
.material-cost-coverage > span { color: #667984; font-size: 9px; font-weight: 800; }
.material-cost-coverage > strong { color: #2f5364; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.material-cost-coverage > small { color: #7c8b91; font-size: 9px; line-height: 1.35; }
.quick-material-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .quick-material-preview { grid-template-columns: 1fr; } }
