:root {
  --lkw-blue: #1e2a78;
  --lkw-blue-2: #26389c;
  --lkw-pink: #ff6b9a;
  --lkw-bg: #f6f7fb;
  --lkw-card: #ffffff;
  --lkw-text: #172044;
  --lkw-muted: #6b7280;
  --lkw-border: #e7e9f3;
  --lkw-success: #18794e;
  --lkw-error: #b42318;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(30, 42, 120, 0.10);
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--lkw-text); background: var(--lkw-bg); }
a { color: inherit; text-decoration: none; }
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; height: 100vh; padding: 28px 20px; background: linear-gradient(180deg, var(--lkw-blue), #111947); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 34px; }
.brand strong { font-size: 24px; letter-spacing: -0.03em; }
.brand span { color: rgba(255,255,255,.72); font-size: 13px; }
.nav { display: grid; gap: 8px; }
.nav a, .nav button { width: 100%; border: 0; color: rgba(255,255,255,.86); background: transparent; text-align: left; padding: 12px 14px; border-radius: 14px; font: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.10); color: #fff; }
.logout-form { margin-top: 24px; }
.sidebar-footer { margin-top: auto; padding-top: 22px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.version-trigger { justify-self: center; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 14px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; text-align: center; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.version-trigger:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.sidebar-copyright { text-align: center; font-size: 11px; line-height: 1.55; color: rgba(255,255,255,.72); }
.main { margin-left: 270px; padding: 34px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 18px; }
.topbar h1 { margin: 0; font-size: 30px; letter-spacing: -0.04em; color: var(--lkw-blue); }
.topbar p { margin: 7px 0 0; color: var(--lkw-muted); }
.user-pill { padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--lkw-border); color: var(--lkw-blue); box-shadow: 0 10px 26px rgba(30,42,120,.06); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--lkw-card); border: 1px solid var(--lkw-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h2, .card h3 { margin: 0 0 14px; color: var(--lkw-blue); letter-spacing: -0.03em; }
.import-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.import-card h2 { margin-bottom: 8px; }
.import-card .hint { margin: 0; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat span { color: var(--lkw-muted); font-size: 14px; }
.stat strong { font-size: 34px; color: var(--lkw-blue); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--lkw-blue); color: #fff; font-weight: 700; padding: 11px 16px; cursor: pointer; box-shadow: 0 12px 25px rgba(30,42,120,.18); }
.btn.secondary { background: #fff; color: var(--lkw-blue); border: 1px solid var(--lkw-border); box-shadow: none; }
.btn.pink { background: var(--lkw-pink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--lkw-border); vertical-align: middle; }
th { color: var(--lkw-blue); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
td { color: #273052; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #edf0ff; color: var(--lkw-blue); }
.badge.success { background: #e9f8f0; color: var(--lkw-success); }
.badge.error { background: #fff0ed; color: var(--lkw-error); }
.form-grid { display: grid; gap: 16px; max-width: 820px; }
label { display: grid; gap: 7px; color: var(--lkw-blue); font-weight: 700; }
input { width: 100%; border: 1px solid var(--lkw-border); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--lkw-text); }
.hint { color: var(--lkw-muted); font-size: 14px; line-height: 1.55; }
.flash { display: grid; gap: 10px; margin-bottom: 18px; }
.flash-item { padding: 13px 15px; border-radius: 16px; border: 1px solid var(--lkw-border); background: #fff; }
.flash-item.success { border-color: #bde8d0; color: var(--lkw-success); background: #effaf4; }
.flash-item.error { border-color: #ffd0c7; color: var(--lkw-error); background: #fff5f2; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top left, rgba(255,107,154,.22), transparent 32%), linear-gradient(135deg, #f7f7fb, #eef1ff); }
.auth-card { width: min(100%, 520px); background: #fff; border: 1px solid var(--lkw-border); border-radius: 30px; box-shadow: var(--shadow); padding: 34px; }
.auth-card h1 { color: var(--lkw-blue); margin: 0 0 8px; }
.auth-card p { margin: 0 0 22px; color: var(--lkw-muted); }
pre.raw-json { white-space: pre-wrap; word-break: break-word; background: #111827; color: #f9fafb; border-radius: 18px; padding: 18px; overflow-x: auto; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { width: 95px; padding: 9px 10px; }
.inline-form .btn { padding: 9px 12px; }
.full { grid-column: 1 / -1; }
.setup-page { align-items: start; }
.setup-card { width: min(100%, 980px); background: #fff; border: 1px solid var(--lkw-border); border-radius: 30px; box-shadow: var(--shadow); padding: 34px; margin: 20px auto; }
.setup-head { margin-bottom: 22px; }
.setup-kicker { display: inline-flex; border-radius: 999px; padding: 6px 10px; background: #edf0ff; color: var(--lkw-blue); font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.setup-head h1 { color: var(--lkw-blue); margin: 0 0 8px; letter-spacing: -0.04em; }
.setup-head p { margin: 0; color: var(--lkw-muted); line-height: 1.55; }
.setup-form { max-width: none; }
.setup-section { border: 1px solid var(--lkw-border); border-radius: 22px; padding: 20px; background: #fbfcff; }
.setup-section h2 { margin: 0 0 16px; color: var(--lkw-blue); font-size: 20px; letter-spacing: -0.03em; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.setup-requirements { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.requirement { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 800; border: 1px solid var(--lkw-border); background: #fff; }
.requirement.ok { color: var(--lkw-success); border-color: #bde8d0; background: #effaf4; }
.requirement.fail { color: var(--lkw-error); border-color: #ffd0c7; background: #fff5f2; }
@media (max-width: 720px) { .two-columns { grid-template-columns: 1fr; } .setup-card { padding: 24px; } }

.status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.status-item { border: 1px solid var(--lkw-border); border-radius: 18px; padding: 14px; background: #fff; display: grid; gap: 5px; }
.status-item strong { color: var(--lkw-blue); }
.status-item span { color: var(--lkw-muted); font-size: 14px; }
.status-item.ok { border-color: #bde8d0; background: #effaf4; }
.status-item.ok span { color: var(--lkw-success); font-weight: 700; }
.status-item.fail { border-color: #ffd0c7; background: #fff5f2; }
.status-item.fail span { color: var(--lkw-error); font-weight: 700; }
.connector-warning { border: 1px solid #ffd0c7; background: #fff5f2; color: #7a271a; border-radius: 18px; padding: 15px 16px; margin: 0 0 18px; }
.connector-warning strong { display: block; margin-bottom: 5px; color: var(--lkw-error); }
.connector-warning p { margin: 0 0 8px; }
.connector-warning ul { margin: 0; padding-left: 20px; }
button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
@media (max-width: 860px) { .status-list { grid-template-columns: 1fr; } }

body.modal-open { overflow: hidden; }
.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 18, 56, .55); backdrop-filter: blur(4px); }
.modal-card { width: min(100%, 860px); max-height: min(85vh, 900px); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--lkw-border); border-radius: 28px; box-shadow: 0 30px 80px rgba(17, 25, 71, .28); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 18px; border-bottom: 1px solid var(--lkw-border); }
.modal-head h2 { margin: 8px 0 0; color: var(--lkw-blue); letter-spacing: -0.03em; }
.modal-kicker { display: inline-flex; border-radius: 999px; padding: 6px 10px; background: #edf0ff; color: var(--lkw-blue); font-size: 12px; font-weight: 800; }
.modal-close { width: 42px; height: 42px; border: 1px solid var(--lkw-border); border-radius: 999px; background: #fff; color: var(--lkw-blue); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #f7f8ff; }
.changelog-modal-card { grid-template-rows: auto minmax(0, 1fr); }
.changelog-browser { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.changelog-tabs { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--lkw-border); background: #fff; }
.changelog-tab { flex: 0 0 auto; min-height: 36px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--lkw-muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.changelog-tab:hover { border-color: var(--lkw-border); color: var(--lkw-blue); background: #f7f8ff; }
.changelog-tab.is-active { border-color: #d9defa; color: var(--lkw-blue); background: #edf0ff; }
.changelog-tab:focus-visible { outline: 2px solid var(--lkw-blue); outline-offset: 2px; }
.changelog-more { position: relative; margin-left: auto; }
.changelog-more > summary { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--lkw-border); border-radius: 7px; color: var(--lkw-blue); background: #fff; font-size: 20px; font-weight: 900; cursor: pointer; list-style: none; }
.changelog-more > summary span { display: block; line-height: 1; }
.changelog-more > summary::-webkit-details-marker { display: none; }
.changelog-more > summary:hover, .changelog-more.is-active > summary { background: #edf0ff; border-color: #d9defa; }
.changelog-more-menu { position: fixed; z-index: 1001; width: 230px; padding: 6px; border: 1px solid var(--lkw-border); border-radius: 7px; background: #fff; box-shadow: 0 16px 38px rgba(17, 25, 71, .16); }
.changelog-more-menu button, .changelog-more-menu a { width: 100%; min-height: 36px; display: flex; align-items: center; padding: 8px 10px; border: 0; border-radius: 5px; color: var(--lkw-blue); background: transparent; font: inherit; font-size: 13px; font-weight: 750; text-align: left; text-decoration: none; cursor: pointer; }
.changelog-more-menu button:hover, .changelog-more-menu a:hover { background: #f2f4ff; }
.changelog-more-menu button.is-active { background: #edf0ff; color: var(--lkw-blue); }
.changelog-more-menu a { margin-top: 5px; border-top: 1px solid var(--lkw-border); border-radius: 0 0 5px 5px; }
.changelog-panel { min-height: 0; overflow: auto; background: #fbfcff; }
.changelog-panel[hidden] { display: none; }
.changelog-content { min-height: 0; margin: 0; padding: 24px; overflow: visible; white-space: pre-wrap; word-break: break-word; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #243056; background: #fbfcff; }
.changelog-beta-history { border-top: 1px solid var(--lkw-border); background: #fff; }
.changelog-beta-history summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px; color: var(--lkw-blue); font-weight: 800; cursor: pointer; }
.changelog-beta-history summary:hover { background: #f7f8ff; }
.changelog-beta-history summary span { color: var(--lkw-muted); font-size: 12px; }
.changelog-beta-history[open] summary { border-bottom: 1px solid var(--lkw-border); }
.changelog-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.changelog-page-head h2 { margin: 8px 0 6px; color: var(--lkw-blue); }
.changelog-search { width: min(100%, 280px); display: grid; gap: 7px; color: var(--lkw-blue); font-size: 13px; font-weight: 800; }
.changelog-search input { width: 100%; min-height: 42px; }
.changelog-history { border-top: 1px solid var(--lkw-border); }
.changelog-history-item { border-bottom: 1px solid var(--lkw-border); background: #fff; }
.changelog-history-item > summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; color: var(--lkw-blue); font-weight: 850; cursor: pointer; }
.changelog-history-item > summary strong { padding: 4px 8px; border-radius: 999px; background: #e8f7ef; color: #176b43; font-size: 11px; }
.changelog-history-content { border-top: 1px solid var(--lkw-border); background: #fbfcff; }
.changelog-empty { padding: 28px 4px; color: var(--lkw-muted); }
@media (max-width: 720px) {
    .changelog-tabs { flex-wrap: wrap; gap: 4px; padding-inline: 12px; }
    .changelog-tab { padding-inline: 9px; }
    .changelog-page-head { align-items: stretch; flex-direction: column; }
    .changelog-search { width: 100%; }
}

.confirm-modal-card {
  width: min(100%, 560px);
  max-height: none;
  grid-template-rows: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 154, .12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.confirm-modal-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #edf0ff;
  color: var(--lkw-blue);
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #dfe4ff;
}
.confirm-modal-body { min-width: 0; }
.confirm-modal-body h2 { margin: 10px 0 8px; color: var(--lkw-blue); letter-spacing: -0.04em; }
.confirm-modal-body p { margin: 0; color: #36405f; line-height: 1.6; font-weight: 650; }
.confirm-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.confirm-modal-backdrop.is-danger .confirm-modal-icon {
  background: #fff0ed;
  color: var(--lkw-error);
  box-shadow: inset 0 0 0 1px #ffd0c7;
}
.confirm-modal-backdrop.is-danger .modal-kicker {
  background: #fff0ed;
  color: var(--lkw-error);
}
.confirm-modal-backdrop.is-danger .confirm-modal-card {
  background:
    radial-gradient(circle at top right, rgba(180, 35, 24, .11), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}
@media (max-width: 640px) {
  .confirm-modal-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .confirm-modal-actions {
    flex-direction: column-reverse;
  }
  .confirm-modal-actions .btn {
    width: 100%;
  }
}
@media (max-width: 980px) { .sidebar { position: static; width: auto; height: auto; } .main { margin-left: 0; padding: 22px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .auth-card { padding: 24px; } .modal-card { width: 100%; max-height: 88vh; } .modal-head { padding: 20px 20px 16px; } .changelog-content { padding: 20px; font-size: 13px; } }

@media (max-width: 760px) { .import-card { align-items: stretch; flex-direction: column; } .import-card .btn { width: 100%; } }

.settings-layout { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { padding: 14px; display: grid; gap: 10px; position: sticky; top: 24px; }
.settings-nav-item { display: grid; gap: 6px; padding: 14px 15px; border: 1px solid transparent; border-radius: 18px; background: #fff; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.settings-nav-item strong { color: var(--lkw-blue); }
.settings-nav-item span { color: var(--lkw-muted); font-size: 13px; line-height: 1.45; }
.settings-nav-item:hover { border-color: var(--lkw-border); background: #fbfcff; transform: translateY(-1px); }
.settings-nav-item.active { border-color: #d9defa; background: #f1f3ff; box-shadow: inset 3px 0 0 var(--lkw-blue); }
.settings-content { min-width: 0; }
.settings-import-card { align-items: flex-start; }
.sync-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.system-status-list { margin-top: 18px; }
@media (max-width: 1100px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; } .sync-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sync-stats-grid { grid-template-columns: 1fr; } }

.settings-section-head { display: grid; gap: 8px; }
.settings-section-head h2 { margin: 0; color: var(--lkw-blue); letter-spacing: -0.03em; }
.settings-kicker { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 10px; background: #edf0ff; color: var(--lkw-blue); font-size: 12px; font-weight: 800; }
.system-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-small { font-size: 15px !important; line-height: 1.35; word-break: break-word; }
.card-head-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.card-head-row h2 { margin: 0 0 8px; }
.update-card { display: grid; gap: 18px; }
.update-settings-form { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.update-panel { border: 1px solid var(--lkw-border); border-radius: 22px; padding: 18px; background: #fbfcff; display: grid; gap: 14px; }
.update-progress { height: 14px; border-radius: 999px; overflow: hidden; background: #e8ebf7; border: 1px solid #dce1f3; }
.update-progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lkw-blue), var(--lkw-pink)); transition: width .35s ease; }
.update-result { min-height: 42px; display: flex; align-items: center; border-radius: 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--lkw-border); color: #273052; font-weight: 700; }
.update-actions { align-items: center; }

.update-version-choice {
  display: grid;
  gap: 6px;
  max-width: 360px;
}

.update-version-choice[hidden] { display: none; }

.update-version-choice span {
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
}
.update-panel code { background: #eef1ff; color: var(--lkw-blue); padding: 2px 6px; border-radius: 8px; }
.nav-parent { position: relative; }
@media (max-width: 1180px) { .system-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .update-settings-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .system-overview-grid { grid-template-columns: 1fr; } .card-head-row { flex-direction: column; } }

.nav a.active, .nav button.active { background: rgba(255,255,255,.14); color: #fff !important; }

.page-actions { display: flex; justify-content: flex-start; margin-bottom: 18px; }
.order-hero { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.order-hero h2 { margin: 8px 0 6px; font-size: 30px; }
.order-hero-total { display: grid; gap: 6px; text-align: right; }
.order-hero-total span { color: var(--lkw-muted); font-size: 14px; }
.order-hero-total strong { color: var(--lkw-blue); font-size: 32px; letter-spacing: -0.04em; }
.order-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.order-detail-grid-equal { align-items: stretch; }
.order-detail-grid-equal > .card { height: 100%; display: flex; flex-direction: column; }
.info-list, .summary-list { display: grid; gap: 12px; }
.info-list div, .summary-list div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--lkw-border); padding-bottom: 10px; }
.info-list div:last-child, .summary-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list span, .summary-list span { color: var(--lkw-muted); }
.info-list strong, .summary-list strong { color: var(--lkw-blue); text-align: right; }
.summary-total { margin-top: 4px; padding-top: 12px; border-top: 2px solid #e4e8ff; font-size: 18px; }
.address-block { margin: 0; min-height: 150px; white-space: pre-wrap; font: inherit; color: #273052; line-height: 1.7; background: #fbfcff; border: 1px solid var(--lkw-border); border-radius: 18px; padding: 16px; }
textarea { width: 100%; border: 1px solid var(--lkw-border); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--lkw-text); resize: vertical; }
.html-editor {
  display: grid;
  gap: 0;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.html-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--lkw-border);
  background: #f7f8ff;
}

.html-editor-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(32, 52, 142, 0.14);
  border-radius: 9px;
  background: #fff;
  color: var(--lkw-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.html-editor-toolbar button:hover,
.html-editor-toolbar button.active {
  border-color: rgba(32, 52, 142, 0.38);
  background: #edf0ff;
}

.html-editor-content,
.html-editor-source {
  width: 100%;
  min-height: 360px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--lkw-text);
  font: inherit;
  line-height: 1.65;
  outline: none;
  overflow: auto;
}

.html-editor-content:focus,
.html-editor-source:focus {
  box-shadow: inset 0 0 0 2px rgba(32, 52, 142, 0.18);
}

.html-editor-content h1,
.html-editor-content h2,
.html-editor-content h3 {
  margin: 0 0 12px;
  color: var(--lkw-blue);
}

.html-editor-content p,
.html-editor-content ul,
.html-editor-content ol,
.html-editor-content blockquote {
  margin: 0 0 14px;
}

.html-editor-content blockquote {
  padding: 10px 14px;
  border-left: 4px solid var(--lkw-blue);
  background: #f7f8ff;
  border-radius: 0 12px 12px 0;
}

.html-editor-source {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}
.note-form { max-width: none; }
.raw-data-card summary { cursor: pointer; color: var(--lkw-blue); font-weight: 800; }
.raw-data-card details[open] summary { margin-bottom: 14px; }
@media (max-width: 1100px) { .order-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .order-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .order-hero { align-items: flex-start; flex-direction: column; } .order-hero-total { text-align: left; } .order-status-grid { grid-template-columns: 1fr; } .info-list div, .summary-list div { flex-direction: column; gap: 4px; } .info-list strong, .summary-list strong { text-align: left; } }

.status-mapping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mapping-card { border: 1px solid var(--lkw-border); border-radius: 22px; padding: 18px; background: #fbfcff; display: grid; gap: 14px; }
.mapping-card h3 { margin: 0; color: var(--lkw-blue); letter-spacing: -0.03em; }
.mapping-card label { gap: 8px; }
.mapping-card textarea { min-height: 200px; background: #fff; }
.mapping-preview { border: 1px solid var(--lkw-border); border-radius: 18px; padding: 14px; background: #fff; display: grid; gap: 10px; }
.mapping-preview strong { color: var(--lkw-blue); }
.mapping-preview-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mapping-preview-list li { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--lkw-border); padding-bottom: 8px; }
.mapping-preview-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mapping-preview-list li span { color: var(--lkw-muted); }
.mapping-preview-list li strong { color: var(--lkw-blue); text-align: right; }
@media (max-width: 1180px) { .status-mapping-grid { grid-template-columns: 1fr; } }
.packdesk-form { display: block; }
.packdesk-actions-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mini-progress { width: 150px; max-width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: #e8ebf7; border: 1px solid #dce1f3; margin-bottom: 6px; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lkw-blue), var(--lkw-pink)); }
.pack-status-open { background: #edf0ff; color: var(--lkw-blue); }
.pack-status-partial { background: #fff7df; color: #8a6100; }
.pack-status-picked, .pack-status-packed { background: #e9f8f0; color: var(--lkw-success); }
.pack-status-shipped { background: #eef1ff; color: var(--lkw-blue); }
.pick-checkbox { width: auto; min-width: 22px; height: 22px; accent-color: var(--lkw-blue); }
@media (max-width: 920px) { .packdesk-actions-card { align-items: stretch; flex-direction: column; } .packdesk-actions-card .actions { width: 100%; } }

.api-endpoint-list { display: grid; gap: 10px; }
.api-endpoint-list code { display: block; padding: 12px 14px; border-radius: 14px; background: #eef1ff; color: var(--lkw-blue); border: 1px solid var(--lkw-border); font-weight: 800; }
.scanner-device-form { max-width: 720px; }

.scanner-rename-form input { width: min(260px, 100%); }

.scanner-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 520px));
    gap: 16px;
    justify-content: start;
    margin-top: 18px;
}

.scanner-device-item {
    border: 1px solid var(--lkw-border);
    border-radius: 8px;
    padding: 18px;
    min-width: 0;
}

.scanner-device-item-head,
.scanner-device-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scanner-device-item-head { justify-content: space-between; }
.scanner-device-item-head > div { display: grid; gap: 3px; min-width: 0; }
.scanner-device-item-head strong { font-size: 1.05rem; }
.scanner-device-item-head span:not(.badge),
.scanner-device-workflows { color: var(--lkw-muted); font-size: 0.88rem; }

.scanner-device-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 14px;
}

.scanner-device-facts div { min-width: 0; }
.scanner-device-facts dt { color: var(--lkw-muted); font-size: 0.76rem; font-weight: 700; margin-bottom: 3px; }
.scanner-device-facts dd { margin: 0; overflow-wrap: anywhere; }
.scanner-device-workflows { margin: 0 0 16px; min-height: 2.6em; }
.scanner-device-actions { flex-wrap: wrap; }
.scanner-device-actions form { margin: 0; }

.scanner-profile-modal-card { display: flex; flex-direction: column; width: min(880px, calc(100vw - 32px)); max-height: min(880px, calc(100vh - 32px)); overflow: hidden; }
.scanner-profile-form { min-height: 0; padding: 20px 24px 24px; overflow-y: auto; }
.scanner-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scanner-profile-section { border: 0; border-top: 1px solid var(--lkw-border); margin: 22px 0 0; padding: 18px 0 0; }
.scanner-profile-section legend { color: var(--lkw-text); font-weight: 800; padding-right: 12px; }
.scanner-workflow-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.scanner-workflow-options .checkbox-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.scanner-workflow-options .checkbox-label input { width: auto; flex: 0 0 auto; margin: 0; }
.scanner-action-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.scanner-action-options label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); align-items: center; gap: 10px; }
.scanner-profile-form .modal-actions { margin-top: 22px; }

.scanner-pairing-modal-card {
    width: min(660px, calc(100vw - 32px));
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.scanner-pairing-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
}
.scanner-pairing-qr { width: 190px; aspect-ratio: 1; flex: 0 0 190px; padding: 10px; border: 1px solid var(--lkw-border); border-radius: 8px; background: #fff; }
.scanner-pairing-qr svg { display: block; width: 100%; height: 100%; }
.scanner-pairing-details { min-width: 0; }
.scanner-pairing-intro { margin: 0 0 18px; color: var(--lkw-muted); line-height: 1.55; }
.scanner-pairing-code-block { display: grid; gap: 5px; }
.scanner-pairing-code-block span { color: var(--lkw-muted); font-size: 0.78rem; font-weight: 700; }
.scanner-pairing-code { color: var(--lkw-blue); font-size: 1.75rem; overflow-wrap: anywhere; }
.scanner-pairing-validity { display: grid; gap: 4px; margin: 18px 0 0; color: var(--lkw-muted); font-size: 0.88rem; line-height: 1.45; }
.scanner-pairing-validity span { color: var(--lkw-text); font-weight: 700; }
.scanner-pairing-actions { display: flex; justify-content: flex-end; padding: 16px 24px 20px; border-top: 1px solid var(--lkw-border); }

@media (max-width: 720px) {
    .scanner-profile-fields,
    .scanner-action-options,
    .scanner-workflow-options { grid-template-columns: 1fr; }
    .scanner-action-options label { grid-template-columns: 1fr; }
    .scanner-pairing-body { grid-template-columns: 1fr; justify-items: center; gap: 20px; padding: 20px; }
    .scanner-pairing-qr { width: min(190px, 100%); flex-basis: auto; }
    .scanner-pairing-details { width: 100%; text-align: center; }
    .scanner-pairing-actions { padding: 14px 20px 18px; }
    .scanner-pairing-actions .btn { width: 100%; }
}
.api-endpoint-list { display: grid; gap: 10px; }
.api-endpoint-list code { display: block; padding: 12px 14px; border-radius: 14px; background: #eef1ff; color: var(--lkw-blue); border: 1px solid var(--lkw-border); font-weight: 800; }

.update-details summary { cursor: pointer; color: var(--lkw-blue); font-weight: 800; }
.update-details ul { margin: 10px 0 0; padding-left: 18px; color: var(--lkw-muted); }
.update-details li { margin-bottom: 5px; }


/* Packtisch: etwas mehr Luft zwischen den oberen Aktionsbuttons */
.page-actions,
.packdesk-actions,
.order-actions {
  gap: 14px;
}

.page-actions .btn,
.packdesk-actions .btn,
.order-actions .btn {
  margin-right: 0;
}


.packdesk-warning-card {
  border-color: #ffd7b8;
  background: #fff8f1;
}

.missing-items-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.missing-items-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ffd7b8;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.missing-items-list strong {
  color: var(--lkw-blue);
}

.missing-items-list span,
.action-warning {
  color: #9a4f00;
  font-weight: 700;
}

tr.is-missing {
  background: #fff8f1;
}

tr.is-missing td:first-child {
  box-shadow: inset 4px 0 0 #ffb25c;
}

.confirm-no-tracking {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: #9a4f00;
  font-weight: 800;
  border: 1px solid #ffd7b8;
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff8f1;
}

.confirm-no-tracking input {
  width: auto;
}


.compatibility-page-head .card-head-row {
  flex-wrap: wrap;
}

.compatibility-page-head .card-head-row > :first-child {
  flex: 1 1 300px;
  min-width: 0;
}

.compatibility-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1 1 566px;
  min-width: 0;
  max-width: 100%;
}

.compatibility-head-actions form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: min(100%, 566px);
}

.compatibility-head-actions select,
.compatibility-head-actions .btn {
  min-height: 44px;
}

.compatibility-head-actions .btn {
  white-space: nowrap;
}

.compatibility-groups {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.compatibility-group h3 {
  margin: 0 0 10px;
  color: var(--lkw-blue);
  font-size: 1rem;
}

.compatibility-check-list {
  border-top: 1px solid var(--lkw-border);
}

.compatibility-check-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lkw-border);
}

.compatibility-check-row > .badge {
  justify-self: start;
}

.compatibility-check-copy strong {
  color: var(--lkw-blue);
}

.compatibility-check-copy p {
  margin: 4px 0 0;
  color: var(--lkw-muted);
}

.compatibility-check-details {
  max-width: 540px;
}

.compat-details-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f4f6ff;
  border: 1px solid var(--lkw-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: #172044;
  max-width: 520px;
  overflow: auto;
}
.compatibility-overview-grid .stat-small { font-size: 0.92rem; }

.compatibility-log-card > summary {
  cursor: pointer;
  color: var(--lkw-blue);
  font-weight: 800;
}

.compatibility-log-card[open] > summary {
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .compatibility-head-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: flex-start;
  }

  .compatibility-head-actions form {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .compatibility-check-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .compatibility-check-details {
    grid-column: 2;
    max-width: 100%;
  }
}

.integration-catalog-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.integration-catalog-head > div {
  display: grid;
  gap: 8px;
}

.integration-catalog-head h2,
.integration-detail h2 {
  margin: 0;
  color: var(--lkw-blue);
}

.integration-catalog-head p {
  max-width: 760px;
  margin: 0;
}

.integration-catalog-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 800;
}

.integration-catalog-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.integration-catalog-action {
  white-space: nowrap;
}

.integration-appstore-modal-card {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
}

.integration-appstore-modal-body {
  min-height: 0;
  padding: 22px 24px 26px;
  overflow: auto;
}

.integration-app-channel-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #f9faff;
}

.integration-app-channel-form label {
  display: grid;
  gap: 3px;
}

.integration-app-channel-form label span {
  color: var(--lkw-muted);
  font-size: 0.82rem;
}

.integration-app-channel-form select,
.integration-app-channel-form .btn {
  min-height: 42px;
}

.integration-catalog-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f0d69c;
  border-radius: 8px;
  background: #fff8e8;
  color: #765009;
  font-weight: 700;
}

.integration-appstore-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(170px, .7fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.integration-appstore-tools label {
  display: grid;
  gap: 6px;
}

.integration-appstore-tools label > span {
  color: var(--lkw-blue);
  font-size: 13px;
  font-weight: 800;
}

.integration-appstore-tools input,
.integration-appstore-tools select {
  width: 100%;
}

.integration-appstore-tools .btn {
  min-height: 46px;
}

.integration-appstore-tools .btn[hidden],
.integration-app-card[hidden],
.integration-catalog-empty[hidden],
[data-appstore-catalog-panel][hidden],
.integration-store-detail[hidden] {
  display: none;
}

.integration-appstore-modal-summary {
  display: flex;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--lkw-muted);
}

.integration-appstore-modal-summary strong {
  color: var(--lkw-blue);
}

.integration-catalog-search {
  display: grid;
  max-width: 680px;
  gap: 7px;
  margin-bottom: 20px;
}

.integration-catalog-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.integration-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 440px));
  gap: 16px;
  align-items: stretch;
}

.integration-app-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
  min-height: 240px;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(25, 38, 92, .07);
}

.integration-app-card.is-connected {
  border-color: #b9ddca;
}

.integration-app-card-top {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.integration-app-mark {
  position: relative;
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--lkw-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.integration-app-mark.has-logo {
  background: #fff;
  color: var(--lkw-blue);
  border: 1px solid #e1e5f0;
  overflow: hidden;
}

.integration-app-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #fff;
}

.integration-app-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.integration-app-identity h3 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 19px;
}

.integration-app-identity > span:last-child,
.integration-app-description,
.integration-app-status small {
  color: var(--lkw-muted);
}

.integration-app-category {
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 800;
}

.integration-app-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.integration-app-channel {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf0f7;
  color: #56617c;
  font-size: 10px;
  font-weight: 800;
}

.integration-app-channel.beta {
  background: #fff0f5;
  color: #a8325b;
}

.integration-app-description {
  margin: 0;
  line-height: 1.55;
}

.integration-app-installation-status {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
}

.integration-app-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--lkw-border);
}

.integration-app-card-facts > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.integration-app-card-facts dt,
.integration-app-card-facts dd {
  margin: 0;
}

.integration-app-card-facts dt {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-app-card-facts dd {
  color: var(--lkw-blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.integration-app-card-facts .badge {
  justify-self: start;
}

.integration-app-card-footer {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--lkw-border);
}

.integration-app-status {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.integration-app-status .badge {
  justify-self: start;
}

.integration-app-status small {
  line-height: 1.35;
}

.integration-catalog-empty {
  display: grid;
  max-width: 680px;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.integration-catalog-empty p {
  margin: 0;
}

.integration-catalog-empty .btn {
  justify-self: start;
  margin-top: 6px;
}

.integration-detail {
  display: grid;
  gap: 24px;
  scroll-margin-top: 24px;
}

.integration-detail-back {
  justify-self: start;
  color: var(--lkw-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.integration-detail-back:hover {
  text-decoration: underline;
}

button.integration-detail-back {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.integration-store-detail {
  display: grid;
  gap: 20px;
}

.integration-store-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.integration-store-detail-description {
  max-width: 820px;
  margin: -8px 0 0 64px;
  color: var(--lkw-muted);
  line-height: 1.55;
}

.integration-store-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--lkw-border);
  border-bottom: 1px solid var(--lkw-border);
}

.integration-store-detail-panel {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 20px 22px 20px 0;
}

.integration-store-detail-panel + .integration-store-detail-panel {
  padding-right: 0;
  padding-left: 22px;
  border-left: 1px solid var(--lkw-border);
}

.integration-store-detail-panel h3 {
  margin: 0;
  color: var(--lkw-blue);
}

.integration-store-detail-panel p {
  margin: 0;
  color: var(--lkw-muted);
  line-height: 1.5;
}

.integration-store-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 4px 0 8px;
}

.integration-store-facts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.integration-store-facts .wide {
  grid-column: 1 / -1;
}

.integration-store-facts dt,
.integration-store-facts dd {
  margin: 0;
}

.integration-store-facts dt {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-store-facts dd {
  color: var(--lkw-blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.integration-store-detail-panel ul {
  display: grid;
  gap: 8px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.integration-store-detail-panel li {
  position: relative;
  padding-left: 22px;
  line-height: 1.4;
}

.integration-store-detail-panel li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--lkw-success);
  content: "\2713";
  font-weight: 900;
}

.integration-store-changelog details {
  border-bottom: 1px solid var(--lkw-border);
}

.integration-store-changelog summary {
  padding: 0 0 14px;
  color: var(--lkw-blue);
  cursor: pointer;
  font-weight: 800;
}

.integration-store-changelog details > div {
  padding: 0 0 16px;
  color: var(--lkw-muted);
  line-height: 1.55;
}

.integration-store-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.integration-store-actions > div {
  display: grid;
  gap: 3px;
}

.integration-store-actions strong {
  color: var(--lkw-blue);
}

.integration-store-actions span {
  color: var(--lkw-muted);
  font-size: 14px;
}

.integration-store-actions form {
  margin: 0;
}

.integration-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.integration-detail-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.integration-detail-identity h2 {
  margin: 0;
  font-size: 25px;
}

.integration-detail-identity > span:last-child,
.integration-detail-description,
.integration-detail-summary p,
.integration-detail-access p {
  color: var(--lkw-muted);
}

.integration-detail-description {
  max-width: 820px;
  margin: -10px 0 0 64px;
  line-height: 1.55;
}

.integration-app-lifecycle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.integration-app-lifecycle form {
  margin: 0;
}

.integration-app-lifecycle > span {
  color: var(--muted);
  font-size: 14px;
  margin-right: auto;
}

.integration-app-version {
  display: grid;
  gap: 2px;
  color: var(--lkw-muted);
  font-size: 12px;
}

.integration-app-version strong {
  color: var(--lkw-blue);
  font-size: 14px;
}

.integration-app-management {
  display: grid;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--lkw-border);
  border-bottom: 1px solid var(--lkw-border);
}

.integration-app-management-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.integration-app-management-head > div {
  display: grid;
  gap: 6px;
}

.integration-app-management-head h3,
.integration-app-management-head p {
  margin: 0;
}

.integration-app-management-head h3 {
  color: var(--lkw-blue);
}

.integration-app-management-head p {
  color: var(--lkw-muted);
}

.integration-app-management-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: var(--lkw-border);
}

.integration-app-management-facts > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 14px 16px;
  background: #fff;
}

.integration-app-management-facts dt,
.integration-app-management-facts dd {
  margin: 0;
}

.integration-app-management-facts dt {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-app-management-facts dd {
  color: var(--lkw-blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.integration-app-management-facts .badge {
  justify-self: start;
}

.integration-app-management-notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 4px solid #d9a227;
  background: #fff8e8;
  color: #76520a;
}

.integration-app-management-notice.error {
  border-left-color: #d34b45;
  background: #fff0ee;
  color: #922e2a;
}

.integration-app-management-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-app-management-actions form {
  margin: 0;
}

.integration-detail-overview {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(320px, 1.25fr);
  gap: 16px;
}

.integration-detail-summary,
.integration-detail-access {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.integration-detail-summary h3,
.integration-detail-access h3,
.integration-detail-settings h2,
.support-integration-panel .card-head-row h3 {
  margin: 0;
  color: var(--lkw-blue);
}

.integration-detail-summary p,
.integration-detail-access p {
  margin: 0;
  line-height: 1.5;
}

.integration-health-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
}

.integration-health-facts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--lkw-border);
  border-radius: 6px;
  background: var(--lkw-bg);
}

.integration-health-facts dt,
.integration-health-facts dd {
  margin: 0;
}

.integration-health-facts dt {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-health-facts dd {
  color: var(--lkw-blue);
  font-weight: 800;
}

.integration-health-next {
  font-size: 14px;
}

.integration-health-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.integration-health-check small {
  color: var(--lkw-muted);
  line-height: 1.35;
}

.integration-check-result {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 6px;
  background: var(--lkw-bg);
}

.integration-check-result.success {
  border-color: #b9ddca;
  background: #edf8f2;
}

.integration-check-result.warning {
  border-color: #efd69b;
  background: #fff9eb;
}

.integration-check-result span,
.integration-check-result small {
  color: var(--lkw-muted);
}

.integration-detail-access ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.integration-detail-access li {
  position: relative;
  padding-left: 22px;
  line-height: 1.4;
}

.integration-detail-access li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--lkw-success);
  content: "\2713";
  font-weight: 900;
}

.integration-detail-settings {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.integration-detail-settings-head {
  display: grid;
  gap: 6px;
}

.integration-detail-settings-head h2 {
  font-size: 21px;
}

.support-integration-panel .card-head-row > div:first-child {
  display: grid;
  gap: 4px;
}

.support-integration-panel .card-head-row > div:first-child p {
  margin: 0;
}

.support-integration-token {
  display: grid;
  gap: 16px;
  border-color: #bcc8f5;
}

.support-integration-token h3 {
  margin: 4px 0 0;
  color: var(--lkw-blue);
}

.support-integration-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.support-integration-token-row input {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.support-integration-panel {
  width: 100%;
}

.support-integration-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.support-integration-heading h3 {
  margin: 3px 0 4px;
  color: var(--lkw-blue);
}

.support-integration-heading p {
  margin: 0;
}

.support-integration-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--lkw-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.support-integration-head-actions,
.support-integration-row .table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.support-integration-empty {
  display: grid;
  gap: 4px;
  padding: 18px 0 2px 58px;
  border-top: 1px solid var(--lkw-border);
}

.support-integration-empty strong {
  color: var(--lkw-blue);
}

.support-integration-empty span,
.support-integration-row small,
.support-integration-label {
  color: var(--lkw-muted);
}

.support-integration-list {
  display: grid;
  border-top: 1px solid var(--lkw-border);
}

.support-integration-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(180px, .8fr) minmax(180px, .8fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
}

.support-integration-row + .support-integration-row {
  border-top: 1px solid var(--lkw-border);
}

.support-integration-row > div:not(.table-actions) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.support-integration-label {
  font-size: 12px;
  font-weight: 700;
}

.support-integration-state {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-self: start;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.support-integration-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a94ad;
}

.support-integration-state.is-active {
  color: var(--lkw-success);
}

.support-integration-state.is-active .support-integration-state-dot {
  background: var(--lkw-success);
}

.support-integration-state.is-expired .support-integration-state-dot {
  background: #b07a12;
}

.support-integration-modal-card {
  width: min(100%, 560px);
}

.support-integration-modal-form {
  display: grid;
  gap: 20px;
  padding: 22px 24px 24px;
  overflow: auto;
}

.support-integration-modal-form .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.support-integration-scope {
  display: flex;
  gap: 10px;
  min-height: 48px;
  align-items: flex-start;
}

.support-integration-scope input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.support-integration-scope span {
  display: grid;
  gap: 3px;
}

.support-integration-scope small {
  color: var(--lkw-muted);
  line-height: 1.35;
}

.integration-activity {
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.integration-activity > summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--lkw-blue);
  cursor: pointer;
  list-style: none;
}

.integration-activity > summary::-webkit-details-marker {
  display: none;
}

.integration-activity > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.integration-activity > summary small {
  color: var(--lkw-muted);
  font-weight: 400;
}

.integration-activity-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--lkw-border);
}

.integration-activity-filter {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  gap: 7px 10px;
  align-items: end;
  padding-top: 16px;
}

.integration-activity-filter label {
  grid-column: 1 / -1;
}

.integration-technical-details {
  padding-top: 4px;
}

.integration-technical-details > summary {
  color: var(--lkw-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.integration-technical-details dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.integration-technical-details dl > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
}

.integration-technical-details dt {
  color: var(--lkw-muted);
  font-weight: 700;
}

.integration-technical-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .integration-appstore-tools {
    grid-template-columns: 1fr 1fr;
  }

  .integration-appstore-search {
    grid-column: 1 / -1;
  }

  .integration-catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }

  .support-integration-token-row {
    grid-template-columns: 1fr;
  }

  .support-integration-token-row .btn {
    width: 100%;
  }

  .support-integration-row {
    grid-template-columns: 1fr 1fr;
  }

  .integration-detail-overview {
    grid-template-columns: 1fr;
  }

  .integration-app-management-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-store-detail-grid {
    grid-template-columns: 1fr;
  }

  .integration-store-detail-panel,
  .integration-store-detail-panel + .integration-store-detail-panel {
    padding: 18px 0;
    border-left: 0;
  }

  .integration-store-detail-panel + .integration-store-detail-panel {
    border-top: 1px solid var(--lkw-border);
  }

  .integration-health-check {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-integration-row > :first-child,
  .support-integration-row .table-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .integration-app-channel-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .integration-catalog-head,
  .integration-app-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-app-card-facts,
  .integration-app-management-facts {
    grid-template-columns: 1fr;
  }

  .integration-app-management-head {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-app-management-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-app-management-actions form,
  .integration-app-management-actions .btn {
    width: 100%;
  }

  .integration-catalog-count {
    align-self: flex-start;
  }

  .integration-catalog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-catalog-action {
    width: 100%;
  }

  .integration-appstore-modal-body {
    padding: 16px;
  }

  .integration-appstore-modal-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .integration-appstore-tools {
    grid-template-columns: 1fr;
  }

  .integration-appstore-search {
    grid-column: auto;
  }

  .integration-catalog-search > div {
    grid-template-columns: 1fr;
  }

  .integration-catalog-search .btn,
  .integration-app-card-footer .btn {
    width: 100%;
  }

  .integration-app-card {
    min-height: 0;
    padding: 18px;
  }

  .integration-detail-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .integration-store-detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .integration-store-detail-hero > .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .integration-store-detail-description {
    margin-left: 0;
  }

  .integration-store-facts {
    grid-template-columns: 1fr;
  }

  .integration-store-facts .wide {
    grid-column: auto;
  }

  .integration-store-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-store-actions form,
  .integration-store-actions .btn {
    width: 100%;
  }

  .integration-detail-hero > .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .integration-detail-description {
    margin-left: 0;
  }

  .support-integration-heading {
    align-items: flex-start;
  }

  .support-integration-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .support-integration-empty {
    padding-left: 0;
  }

  .support-integration-row {
    grid-template-columns: 1fr;
  }

  .support-integration-row > :first-child,
  .support-integration-row .table-actions {
    grid-column: auto;
  }

  .support-integration-row .table-actions,
  .support-integration-row .table-actions form,
  .support-integration-row .table-actions .btn,
  .support-integration-modal-form .modal-actions,
  .support-integration-modal-form .modal-actions .btn {
    width: 100%;
  }

  .support-integration-modal-form .modal-actions {
    flex-direction: column-reverse;
  }

  .integration-health-facts,
  .integration-activity-filter,
  .integration-technical-details dl > div {
    grid-template-columns: 1fr;
  }

  .integration-activity-filter .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .compatibility-head-actions form {
    grid-template-columns: 1fr;
  }
}


select {
  width: 100%;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--lkw-text);
}

.badge.warning { background: #fff7df; color: #8a6100; }

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,107,154,.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
}

.dashboard-hero h2 {
  font-size: 32px;
  margin: 8px 0 8px;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpi small {
  color: var(--lkw-muted);
  font-weight: 700;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-module-card {
  display: grid;
  gap: 9px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(30,42,120,.14);
}

.dashboard-module-card .module-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef1ff;
  font-size: 24px;
}

.dashboard-module-card strong {
  color: var(--lkw-blue);
  font-size: 18px;
}

.dashboard-module-card p {
  margin: 0;
  color: var(--lkw-muted);
  line-height: 1.45;
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-list-item {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fbfcff;
}

.dashboard-list-item strong {
  color: var(--lkw-blue);
}

.dashboard-list-item span {
  color: #273052;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list-item em {
  font-style: normal;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 800;
}

.stock-overview-grid,
.product-detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-page-actions {
  justify-content: flex-end;
  margin: -4px 0 18px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.product-create-page {
  display: grid;
  gap: 18px;
}

.product-create-hero,
.product-create-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.product-create-hero h2,
.product-create-footer h2,
.product-create-main h2,
.product-create-side h2,
.product-create-description h2 {
  margin: 8px 0 8px;
}

.product-create-submit,
.product-create-footer .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.product-create-page .checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  width: auto;
  color: var(--lkw-blue);
  font-weight: 850;
  line-height: 1.25;
}

.product-create-page .checkbox-line input {
  width: auto;
  min-width: 16px;
  height: 16px;
}

.product-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.product-create-main .form-grid {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-create-main .form-grid .full,
.product-create-description .full {
  grid-column: 1 / -1;
}

.product-create-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.soft-check-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.soft-check-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #273052;
  font-weight: 800;
  padding: 10px 12px;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  background: #fbfcff;
}

.soft-check-list span::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e9fbf3;
  border: 5px solid #05784f;
  box-shadow: inset 0 0 0 4px #e9fbf3;
  flex: 0 0 auto;
}

.product-create-description textarea {
  min-height: 240px;
}

.stock-row-critical {
  background: #fff5f2;
}

.stock-row-low {
  background: #fffaf0;
}

.product-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.product-hero h2 {
  margin: 8px 0 6px;
  font-size: 30px;
}

.product-stock-pill {
  min-width: 180px;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 8px;
  text-align: right;
  border: 1px solid var(--lkw-border);
  background: #f7f8ff;
}

.product-stock-pill span {
  color: var(--lkw-muted);
  font-size: 14px;
}

.product-stock-pill strong {
  color: var(--lkw-blue);
  font-size: 38px;
  line-height: 1;
}

.product-stock-pill.ok { background: #effaf4; border-color: #bde8d0; }
.product-stock-pill.low { background: #fff7df; border-color: #ffe5a0; }
.product-stock-pill.critical { background: #fff5f2; border-color: #ffd0c7; }

.stock-adjust-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stock-sync-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--lkw-blue);
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfcff;
}

.stock-sync-check input {
  width: auto;
}

@media (max-width: 1180px) {
  .dashboard-kpi-grid,
  .dashboard-module-grid,
  .stock-overview-grid,
  .product-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }

  .product-toolbar,
  .dashboard-hero,
  .product-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .product-create-hero,
  .product-create-footer {
    grid-template-columns: 1fr;
  }

  .product-create-layout {
    grid-template-columns: 1fr;
  }

  .product-stock-pill {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .dashboard-kpi-grid,
  .dashboard-module-grid,
  .stock-overview-grid,
  .product-detail-stats {
    grid-template-columns: 1fr;
  }

  .product-create-main .form-grid,
  .stock-adjust-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .product-page-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .product-page-actions .btn,
  .product-create-submit .btn,
  .product-create-footer .btn {
    width: 100%;
  }

  .product-create-submit,
  .product-create-footer .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-list-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


.dashboard-balanced-grid {
  align-items: stretch;
}

.dashboard-balanced-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard-balanced-grid .dashboard-list {
  flex: 1;
}

.dashboard-scroll-card {
  min-height: 430px;
}

.dashboard-scroll-area {
  flex: 1;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
}

.dashboard-scroll-area table {
  min-width: 640px;
}

.dashboard-scroll-area thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.dashboard-scroll-area td,
.dashboard-scroll-area th {
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  .dashboard-scroll-card {
    min-height: 0;
  }

  .dashboard-scroll-area {
    max-height: 340px;
  }
}


.product-detail-equal-grid {
  align-items: stretch;
}

.product-detail-equal-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-detail-equal-grid .form-grid,
.product-detail-equal-grid .info-list {
  flex: 1;
}

.goods-receipt-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goods-receipt-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: min(100%, 760px);
}

.goods-receipt-detail-grid {
  align-items: stretch;
}

.goods-receipt-detail-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.goods-receipt-detail-grid .form-grid,
.goods-receipt-detail-grid .info-list {
  flex: 1;
}

.goods-receipt-sync {
  margin-bottom: 10px;
}

@media (max-width: 1180px) {
  .goods-receipt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goods-receipt-create-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .goods-receipt-stats {
    grid-template-columns: 1fr;
  }
}


.inventory-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: min(100%, 620px);
}

.inventory-detail-grid {
  align-items: stretch;
}

.inventory-detail-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inventory-detail-grid .form-grid,
.inventory-detail-grid .info-list {
  flex: 1;
}

.inventory-row-difference {
  background: #fffaf0;
}

.inventory-inline-form {
  flex-wrap: nowrap;
}

.inventory-inline-form input[type="text"] {
  min-width: 180px;
}

@media (max-width: 1180px) {
  .inventory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-create-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .inventory-stats {
    grid-template-columns: 1fr;
  }

  .inventory-inline-form {
    flex-wrap: wrap;
  }

  .inventory-inline-form input[type="text"] {
    min-width: 100%;
  }
}


.goods-receipt-status-actions,
.inventory-actions-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.goods-receipt-row-deviation,
.inventory-row-difference {
  background: #fffaf0;
}

.goods-receipt-inline-form {
  flex-wrap: nowrap;
}

.goods-receipt-inline-form input[type="text"],
.inventory-inline-form input[type="text"] {
  min-width: 180px;
}

.goods-stock-now {
  display: inline-flex;
  align-items: center;
  min-width: 70px;
  min-height: 38px;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--lkw-blue);
  font-weight: 800;
  background: #fbfcff;
}

@media (max-width: 980px) {
  .goods-receipt-status-actions,
  .inventory-actions-card {
    align-items: stretch;
    flex-direction: column;
  }

  .goods-receipt-inline-form,
  .inventory-inline-form {
    flex-wrap: wrap;
  }

  .goods-receipt-inline-form input[type="text"],
  .inventory-inline-form input[type="text"] {
    min-width: 100%;
  }
}


.inventory-movement-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-movement-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) minmax(160px, .7fr) minmax(150px, .6fr) minmax(150px, .6fr) auto;
  gap: 12px;
  align-items: end;
}

.inventory-movement-filter-actions {
  align-self: end;
}

.product-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-quick-action {
  display: grid;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(30,42,120,.14);
}

.product-quick-action span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef1ff;
  font-size: 23px;
}

.product-quick-action strong {
  color: var(--lkw-blue);
  font-size: 18px;
}

.product-quick-action em {
  color: var(--lkw-muted);
  font-style: normal;
  line-height: 1.45;
}

.product-related-grid {
  align-items: stretch;
}

.product-related-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-related-grid .table-wrap {
  flex: 1;
}

.min-stock-form {
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: end;
  max-width: none;
}

@media (max-width: 1280px) {
  .inventory-movement-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-movement-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .product-quick-actions {
    grid-template-columns: 1fr;
  }

  .inventory-movement-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .min-stock-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inventory-movement-filter,
  .inventory-movement-stats {
    grid-template-columns: 1fr;
  }
}


.dashboard-task-board {
  background:
    radial-gradient(circle at top right, rgba(255,107,154,.12), transparent 28%),
    #ffffff;
}

.dashboard-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-task-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 15px;
  background: #fbfcff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30,42,120,.10);
}

.dashboard-task-card strong {
  color: var(--lkw-blue);
}

.dashboard-task-card span {
  color: var(--lkw-muted);
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-task-card.ok {
  border-color: #bde8d0;
  background: #effaf4;
}

.dashboard-task-card.warning {
  border-color: #ffe5a0;
  background: #fffaf0;
}

.dashboard-task-card.danger {
  border-color: #ffd0c7;
  background: #fff5f2;
}

.booking-check-card {
  border-color: #d9defa;
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 28%),
    #ffffff;
}

.booking-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.booking-check-grid > div {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
  display: grid;
  gap: 5px;
}

.booking-check-grid span {
  color: var(--lkw-muted);
  font-size: 13px;
}

.booking-check-grid strong {
  color: var(--lkw-blue);
  font-size: 20px;
}

.booking-check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.booking-check-form .stock-sync-check {
  margin: 0;
}

.update-result.is-success {
  border-color: #bde8d0;
  background: #effaf4;
  color: var(--lkw-success);
}

.update-result.is-warning {
  border-color: #ffe5a0;
  background: #fffaf0;
  color: #8a6100;
}

.update-result.is-error {
  border-color: #ffd0c7;
  background: #fff5f2;
  color: var(--lkw-error);
}

.update-result.is-info {
  border-color: #d9defa;
  background: #f1f3ff;
  color: var(--lkw-blue);
}

@media (max-width: 1100px) {
  .dashboard-task-grid,
  .booking-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-check-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .dashboard-task-grid,
  .booking-check-grid {
    grid-template-columns: 1fr;
  }
}


.returns-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.returns-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, .9fr) minmax(170px, .8fr) auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 980px);
}

.returns-actions-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.returns-detail-grid {
  align-items: stretch;
}

.returns-detail-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.returns-detail-grid .form-grid,
.returns-detail-grid .info-list {
  flex: 1;
}

.returns-inline-form {
  flex-wrap: nowrap;
}

.returns-inline-form input[type="text"] {
  min-width: 170px;
}

.returns-inline-form select {
  min-width: 150px;
}

.return-row-restock {
  background: #effaf4;
}

.return-row-check {
  background: #fffaf0;
}

@media (max-width: 1180px) {
  .returns-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .returns-actions-card {
    align-items: stretch;
    flex-direction: column;
  }

  .returns-inline-form {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .returns-stats,
  .returns-create-form {
    grid-template-columns: 1fr;
  }

  .returns-inline-form input[type="text"],
  .returns-inline-form select {
    min-width: 100%;
  }
}


.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-badge.is-draft,
.status-badge.is-open,
.status-badge.is-partial,
.status-badge.is-review,
.status-badge.is-received,
.status-badge.is-checked {
  background: #fffaf0;
  color: #8a6100;
  border-color: #ffe5a0;
}

.status-badge.is-booked,
.status-badge.is-completed,
.status-badge.is-shipped,
.status-badge.is-success,
.status-badge.is-ok {
  background: #effaf4;
  color: var(--lkw-success);
  border-color: #bde8d0;
}

.status-badge.is-cancelled,
.status-badge.is-error,
.status-badge.is-critical,
.status-badge.is-failed {
  background: #fff5f2;
  color: var(--lkw-error);
  border-color: #ffd0c7;
}

.status-badge.is-neutral,
.status-badge.is-info {
  background: #f1f3ff;
  color: var(--lkw-blue);
  border-color: #d9defa;
}

.btn.danger {
  background: #fff5f2;
  color: var(--lkw-error);
  border: 1px solid #ffd0c7;
}

.btn.danger:hover {
  background: #ffe9e3;
}

.btn.commit {
  background: linear-gradient(135deg, #1e2a78 0%, #3948b9 100%);
  color: #fff;
  border: 0;
}

.confirm-hint {
  margin-top: 10px;
  color: var(--lkw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


.product-barcode-card {
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 28%),
    #ffffff;
}

.barcode-preview-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(260px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.product-barcode-card .barcode-preview-grid {
  grid-template-columns: 1fr;
}

.barcode-preview,
.barcode-actions-box {
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fbfcff;
  padding: 16px;
}

.barcode-preview {
  display: grid;
  gap: 10px;
  text-align: center;
  align-content: center;
}

.barcode-preview strong {
  color: var(--lkw-blue);
  font-size: 17px;
}

.barcode-preview span {
  font-weight: 850;
  letter-spacing: .08em;
  color: #172044;
  overflow-wrap: anywhere;
}

.barcode-svg {
  width: 100%;
  max-width: 420px;
  height: 74px;
  justify-self: center;
}

.barcode-actions-box {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.barcode-actions-box form {
  width: 100%;
  min-width: 0;
}

.barcode-actions-box .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.barcode-add-form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) minmax(200px, .8fr) minmax(190px, .8fr) auto;
  align-items: end;
  max-width: none;
}

@media (max-width: 1120px) {
  .barcode-preview-grid,
  .barcode-add-form {
    grid-template-columns: 1fr;
  }
}


.label-branding-form {
  display: grid;
  gap: 20px;
  max-width: none;
}

.branding-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.branding-edit-link { width: fit-content; color: var(--lkw-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.branding-edit-link:hover { text-decoration-thickness: 2px; }
.branding-edit-link:focus-visible { outline: 2px solid var(--lkw-blue); outline-offset: 4px; border-radius: 2px; }
.branding-color { display: flex; align-items: center; gap: 16px; }
.branding-color input { width: 64px; height: 40px; padding: 4px; flex: 0 0 64px; }

.fake-barcode {
  height: 54px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #111 0 3px, #fff 3px 6px, #111 6px 8px, #fff 8px 13px);
}

.supplier-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.supplier-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .7fr) minmax(190px, .9fr) auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 900px);
}

.supplier-detail-grid {
  align-items: stretch;
}

.supplier-detail-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.supplier-detail-grid .form-grid {
  flex: 1;
}

@media (max-width: 980px) {
  .supplier-stats,
  .supplier-create-form {
    grid-template-columns: 1fr;
  }
}


.supplier-product-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.supplier-product-form .supplier-product-main,
.supplier-product-form .supplier-product-note {
  grid-column: 1 / -1;
}

.supplier-product-form label {
  min-width: 0;
}

.supplier-product-form input,
.supplier-product-form select,
.supplier-product-form textarea {
  min-height: 48px;
}

.supplier-product-form textarea {
  resize: vertical;
  min-height: 76px;
}

.supplier-product-actions {
  justify-content: flex-start;
  margin-top: 2px;
}

.supplier-product-actions .btn {
  width: auto;
  min-width: 190px;
  min-height: 46px;
  padding-inline: 20px;
}

.supplier-detail-grid > .card h2 + .hint {
  margin-top: -4px;
}

@media (max-width: 720px) {
  .supplier-product-form {
    grid-template-columns: 1fr;
  }

  .supplier-product-actions .btn {
    width: 100%;
  }
}


.purchase-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purchase-create-form,
.purchase-suggestion-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, .7fr) minmax(220px, .9fr) auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 1000px);
}

.purchase-suggestion-form {
  grid-template-columns: minmax(260px, 1fr) auto;
  margin: 12px 0 16px;
  min-width: 0;
}

.purchase-actions-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.purchase-primary-action { position: relative; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.purchase-action-menu { position: relative; }
.purchase-action-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--lkw-border); border-radius: 50%; background: #fff; color: var(--lkw-blue); font-weight: 900; cursor: pointer; list-style: none; }
.purchase-action-menu summary::-webkit-details-marker { display: none; }
.purchase-action-menu[open] summary { background: #f7f8ff; }
.purchase-action-menu > div { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; min-width: 260px; padding: 8px; border: 1px solid var(--lkw-border); border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgba(30,42,120,.16); }
.purchase-action-menu form { margin: 0; }
.purchase-action-menu button { width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--lkw-blue); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.purchase-action-menu button:hover { background: #f7f8ff; }
.purchase-action-menu button.is-danger { color: #b42318; }

.purchase-detail-grid {
  align-items: stretch;
}

.purchase-detail-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.purchase-detail-grid .form-grid {
  flex: 1;
}

.purchase-item-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.purchase-record-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 18px; border-bottom: 1px solid var(--lkw-border); }
.purchase-record-tabs button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 12px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--lkw-muted); font: inherit; font-weight: 750; cursor: pointer; }
.purchase-record-tabs button[aria-selected="true"] { border-bottom-color: var(--lkw-blue); color: var(--lkw-blue); }
.purchase-record-tabs button:focus-visible { outline: 2px solid var(--lkw-blue); outline-offset: -2px; }
.purchase-record-tabs button span { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #edf0ff; color: var(--lkw-blue); font-size: 11px; text-align: center; }
.purchase-record-panel { display: grid; gap: 18px; }
.purchase-record-panel[hidden] { display: none; }
.purchase-panel-head-actions { display: flex; align-items: center; gap: 10px; }
.purchase-head-data-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.purchase-record-modal-card { width: min(100%, 760px); }
.purchase-record-modal-body { overflow: auto; padding: 24px; }
.purchase-record-modal-body .form-grid { max-width: none; }

.purchase-inline-form {
  flex-wrap: wrap;
}

.purchase-inline-form input[type="text"] {
  min-width: 130px;
}

.purchase-inline-form input[name="note"] {
  min-width: 190px;
}

@media (max-width: 1120px) {
  .purchase-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .purchase-actions-card {
    align-items: stretch;
    flex-direction: column;
  }
  .purchase-primary-action { justify-content: space-between; }
}

@media (max-width: 760px) {
  .purchase-head-data-list { grid-template-columns: 1fr; }
  .purchase-stats,
  .purchase-create-form,
  .purchase-suggestion-form,
  .purchase-item-form {
    grid-template-columns: 1fr;
  }
}


.report-filter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.report-filter-form {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(150px, .7fr) auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 620px);
}

.report-filter-form.has-shop-filter {
  grid-template-columns: repeat(3, minmax(150px, .7fr)) auto;
  min-width: min(100%, 820px);
}

.report-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-shop-comparison tbody tr.is-selected {
  background: #f1f5ff;
}

.report-shop-comparison td:not(:first-child),
.report-shop-comparison th:not(:first-child) {
  text-align: right;
}

.report-balanced-grid {
  align-items: stretch;
}

.report-balanced-grid > .card {
  height: 100%;
}

.report-scroll-card {
  display: flex;
  flex-direction: column;
}

.report-scroll-area {
  max-height: 420px;
  overflow: auto;
}

.report-type-list {
  display: grid;
  gap: 10px;
}

.report-type-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  padding: 12px;
  background: #fbfcff;
}

.report-type-row strong {
  color: var(--lkw-blue);
}

.report-type-row span {
  color: var(--lkw-muted);
}

.report-type-row em {
  font-style: normal;
  font-weight: 800;
  color: var(--lkw-blue);
}

.report-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-process-grid > div {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
  display: grid;
  gap: 6px;
}

.report-process-grid span {
  color: var(--lkw-muted);
  font-size: 13px;
}

.report-process-grid strong {
  color: var(--lkw-blue);
  font-size: 20px;
}

@media (max-width: 1120px) {
  .report-filter-card {
    align-items: stretch;
    flex-direction: column;
  }

  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-form {
    min-width: 0;
  }

  .report-filter-form.has-shop-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .report-kpi-grid,
  .report-filter-form,
  .report-filter-form.has-shop-filter,
  .report-process-grid,
  .report-type-row {
    grid-template-columns: 1fr;
  }
}


.nav-grouped {
  gap: 5px;
}

.nav-group-label {
  margin: 15px 8px 5px;
  padding: 0 6px;
  color: rgba(255,255,255,.46);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-grouped a,
.nav-grouped button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.nav-grouped a.active {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 3px 0 0 var(--lkw-pink);
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  font-size: 13px;
  flex: 0 0 auto;
}

.nav-dashboard {
  margin-bottom: 8px;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.dashboard-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 30%),
    #ffffff;
}

.dashboard-module-head h2 {
  margin-bottom: 6px;
}

.dashboard-module-head .hint {
  margin: 0;
}

.dashboard-module-settings-form {
  display: grid;
  gap: 18px;
}

.dashboard-module-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-module-toggle {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  min-height: 108px;
}

.dashboard-module-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.dashboard-module-toggle span {
  display: grid;
  gap: 5px;
}

.dashboard-module-toggle strong {
  color: var(--lkw-blue);
}

.dashboard-module-toggle em {
  color: var(--lkw-muted);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 500;
}

.dashboard-module-settings-help {
  background: #fbfcff;
}

@media (max-width: 1180px) {
  .dashboard-module-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-module-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-module-settings-grid {
    grid-template-columns: 1fr;
  }

  .nav-group-label {
    margin-top: 12px;
  }
}


/* Beta 43: kompakteres Seitenmenü und Benutzer-Menü */
.sidebar {
  padding: 18px 14px;
}

.brand {
  gap: 2px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.brand strong {
  font-size: 20px;
}

.brand span {
  font-size: 11px;
  line-height: 1.25;
}

.nav-grouped {
  gap: 3px;
}

.nav-group-label {
  margin: 10px 8px 3px;
  font-size: 10px;
  letter-spacing: .11em;
}

.nav-grouped a,
.nav-grouped button {
  padding: 8px 10px;
  min-height: 38px;
  border-radius: 12px;
  font-size: 13px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 12px;
}

.nav-dashboard {
  margin-bottom: 5px;
}

.sidebar-footer {
  padding-top: 14px;
  gap: 8px;
}

.version-trigger {
  padding: 7px 11px;
  font-size: 12px;
}

.sidebar-copyright {
  font-size: 10px;
  line-height: 1.35;
}

.user-menu {
  position: relative;
  flex: 0 0 auto;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--lkw-border);
  cursor: pointer;
  font: inherit;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #edf0ff;
  color: var(--lkw-blue);
  font-weight: 900;
  font-size: 13px;
}

.user-menu-chevron {
  color: var(--lkw-muted);
  font-size: 14px;
  transform: translateY(-1px);
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  width: min(280px, 90vw);
  padding: 10px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(30,42,120,.18);
}

.user-menu-head {
  display: grid;
  gap: 3px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid var(--lkw-border);
  margin-bottom: 8px;
}

.user-menu-head strong {
  color: var(--lkw-blue);
}

.user-menu-head span {
  color: var(--lkw-muted);
  font-size: 12px;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 13px;
  background: transparent;
  padding: 10px 11px;
  color: var(--lkw-text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.user-menu-item:hover {
  background: #f6f7fb;
}

.user-menu-item.is-disabled {
  color: var(--lkw-muted);
  cursor: not-allowed;
  opacity: .65;
}

.user-menu-item.logout {
  color: var(--lkw-error);
}

@media (max-width: 980px) {
  .sidebar {
    padding: 18px;
  }

  .brand {
    margin-bottom: 14px;
  }

  .topbar {
    align-items: stretch;
  }

  .user-menu {
    align-self: flex-start;
  }
}


/* Beta 44: Profilseiten und sauberer Benutzer-Menü-Pfeil */
.user-menu-chevron {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--lkw-blue);
  background: #f3f5ff;
  transition: transform .18s ease, background .18s ease;
}

.user-menu-chevron svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
  background: #e9edff;
}

.user-menu-item {
  text-decoration: none;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 30%),
    #ffffff;
}

.account-avatar-large {
  width: 74px;
  height: 74px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef1ff 0%, #ffe8f1 100%);
  color: var(--lkw-blue);
  font-size: 28px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(30,42,120,.08);
}

.account-detail-grid {
  align-items: stretch;
}

.account-detail-grid > .card {
  height: 100%;
}

.account-form {
  max-width: none;
}

.account-future-note {
  margin-top: 16px;
}

.account-security-card {
  background:
    radial-gradient(circle at top right, rgba(255,107,154,.10), transparent 30%),
    #ffffff;
}

.account-security-list {
  display: grid;
  gap: 12px;
}

.account-security-list > div {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
  display: grid;
  gap: 5px;
}

.account-security-list strong {
  color: var(--lkw-blue);
}

.account-security-list span {
  color: var(--lkw-muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .account-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}


.purchase-link-card {
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 30%),
    #ffffff;
}

.purchase-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* Beta 46: Dashboard-Personalisierung und Berichts-Exporte */
.dashboard-module-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.dashboard-module-grid--compact .dashboard-module-card {
  padding: 16px;
  min-height: 150px;
}

.dashboard-module-grid--compact .module-icon {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.dashboard-module-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.dashboard-module-grid--large .dashboard-module-card {
  min-height: 230px;
  padding: 26px;
}

.dashboard-density-card {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.dashboard-density-card label {
  max-width: 360px;
}

.dashboard-module-settings-grid--ordered {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-module-toggle--ordered {
  min-height: 132px;
}

.dashboard-module-toggle--ordered small {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.dashboard-module-toggle--ordered input[type="number"] {
  max-width: 110px;
  padding: 9px 10px;
  border-radius: 12px;
}

.report-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.report-export-actions .btn {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .dashboard-module-settings-grid--ordered {
    grid-template-columns: 1fr;
  }

  .report-export-actions {
    justify-content: flex-start;
  }
}


/* Beta 47: Rollen/Rechte und korrigierte Dashboard-Positionsfelder */
.dashboard-module-toggle > input[type="checkbox"],
.dashboard-module-toggle--ordered > input[type="checkbox"],
.role-permission-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.dashboard-module-toggle--ordered input[type="number"] {
  width: 96px !important;
  max-width: 96px;
  min-height: 38px !important;
  height: 38px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--lkw-border);
  border-radius: 12px !important;
  background: #fff;
  color: var(--lkw-text);
  font-weight: 800;
  box-shadow: none;
}

.dashboard-module-toggle--ordered span > input[type="number"] {
  display: block;
  margin-top: 4px;
}

.role-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.role-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.role-card.is-admin {
  background:
    radial-gradient(circle at top right, rgba(26,127,55,.10), transparent 32%),
    #ffffff;
}

.role-permission-card {
  display: grid;
  gap: 16px;
}

.role-permission-form {
  display: grid;
  gap: 18px;
}

.role-permission-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-permission-group {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 14px;
  background: #fbfcff;
  display: grid;
  gap: 10px;
}

.role-permission-group legend {
  padding: 0 6px;
  color: var(--lkw-blue);
  font-weight: 900;
}

.role-permission-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--lkw-text);
  font-weight: 750;
}

.role-permission-toggle span {
  line-height: 1.35;
}

@media (max-width: 980px) {
  .role-permission-groups {
    grid-template-columns: 1fr;
  }
}

/* Beta 48: Einkauf/Wareneingang-Verfeinerung und Rollen-Karten-Ausrichtung */
.purchase-progress-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 30%),
    #ffffff;
}

.purchase-progress-bar,
.mini-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #edf0ff;
  overflow: hidden;
  border: 1px solid var(--lkw-border);
}

.purchase-progress-bar span,
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1e2a78 0%, #6a74d8 100%);
}

.mini-progress {
  min-width: 120px;
  height: 8px;
  margin-bottom: 4px;
}

.purchase-open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.purchase-open-pill.warning {
  background: #fffaf0;
  color: #8a6100;
  border: 1px solid #ffe5a0;
}

.purchase-open-pill.success {
  background: #effaf4;
  color: var(--lkw-success);
  border: 1px solid #bde8d0;
}

.purchase-refinement-grid {
  align-items: stretch;
}

.purchase-refinement-grid > .card {
  height: 100%;
}

.supplier-review-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  align-items: end;
}

.purchase-history-scroll {
  max-height: 330px;
  overflow: auto;
}

.purchase-link-suggestions {
  display: grid;
  gap: 14px;
}

.purchase-candidate-list {
  display: grid;
  gap: 10px;
}

.purchase-candidate-list form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fbfcff;
}

.purchase-candidate-list strong {
  color: var(--lkw-blue);
}

.purchase-candidate-list span {
  display: block;
  color: var(--lkw-muted);
  font-size: 13px;
  margin-top: 4px;
}

.linked-purchase-items {
  margin-top: 14px;
}

.role-overview-grid {
  align-items: stretch;
}

.role-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 250px;
}

.role-card .hint {
  flex: 1 1 auto;
}

.role-rights-badge {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 980px) {
  .supplier-review-form,
  .purchase-candidate-list form {
    grid-template-columns: 1fr;
  }
}


/* Beta 50: Benutzerverwaltung für Rollen & Rechte */
.user-create-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-access-table td {
  vertical-align: top;
}

.table-subline {
  display: block;
  margin-top: 4px;
  color: var(--lkw-muted);
  font-size: 12px;
  line-height: 1.35;
}

.table-subline.warning {
  color: var(--lkw-error);
  font-weight: 800;
}

.user-role-form {
  min-width: 260px;
}

.user-role-form select,
.user-create-form select {
  min-height: 42px;
}

.user-action-stack {
  display: grid;
  gap: 8px;
  min-width: 230px;
}

.user-action-stack form {
  display: grid;
  gap: 8px;
}

.user-action-stack input[type="text"] {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
}

.btn.small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.btn.danger-soft {
  border-color: #ffd0c7;
  color: var(--lkw-error);
  background: #fff7f5;
}

.status-badge.is-error {
  background: #fff0ed;
  color: var(--lkw-error);
  border: 1px solid #ffd0c7;
}

@media (max-width: 900px) {
  .user-create-form {
    grid-template-columns: 1fr;
  }

  .user-role-form {
    min-width: 0;
  }

  .user-action-stack {
    min-width: 0;
  }
}


/* Beta 51: Stabilitätsrunde */
.stability-card {
  display: grid;
  gap: 16px;
}

.stability-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stability-summary > div {
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fbfcff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.stability-summary strong {
  color: var(--lkw-blue);
  font-size: 18px;
}

.stability-summary span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 800;
}

.stability-details {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  padding: 12px 14px;
}

.stability-details summary {
  cursor: pointer;
  color: var(--lkw-blue);
  font-weight: 900;
}

.stability-check-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
}

.stability-check {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

.stability-check strong {
  color: var(--lkw-text);
}

.stability-check span {
  color: var(--lkw-muted);
  font-size: 13px;
  text-align: right;
}

.stability-check--ok {
  border-color: #bde8d0;
  background: #f5fcf8;
}

.stability-check--error {
  border-color: #ffd0c7;
  background: #fff7f5;
}

.stability-check--warning {
  border-color: #ffe5a0;
  background: #fffaf0;
}

@media (max-width: 900px) {
  .stability-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stability-check {
    grid-template-columns: 1fr;
  }

  .stability-check span {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .stability-summary {
    grid-template-columns: 1fr;
  }
}

.customer-overview-grid,
.customer-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-toolbar {
  align-items: flex-start;
}

.customer-search-form {
  width: min(980px, 100%);
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 210px) minmax(160px, 200px) auto;
}

.table-main-link {
  color: var(--lkw-blue);
  font-weight: 800;
}

.clickable-row {
  cursor: pointer;
  transition: background .18s ease;
}

.clickable-row:hover {
  background: #fbfcff;
}

.customer-hero .hint {
  max-width: 760px;
}

.customer-note-grid {
  align-items: stretch;
}

.customer-notes-list {
  display: grid;
  gap: 12px;
}

.customer-note-item {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  padding: 14px;
}

.customer-note-item div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.customer-note-item strong {
  color: var(--lkw-blue);
}

.customer-note-item span {
  color: var(--lkw-muted);
  font-size: 13px;
}

.customer-note-item p {
  margin: 0;
  line-height: 1.65;
  color: #273052;
}

@media (max-width: 1180px) {
  .customer-search-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .customer-overview-grid,
  .customer-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .customer-overview-grid,
  .customer-stat-grid,
  .customer-search-form {
    grid-template-columns: 1fr;
  }

  .customer-note-item div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

.customer-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.customer-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--lkw-border);
  white-space: nowrap;
}
.customer-status.is-active { background: #e9f8f0; color: var(--lkw-success); border-color: #bde8d0; }
.customer-status.is-watch { background: #fff7df; color: #8a6100; border-color: #ffe4a3; }
.customer-status.is-vip { background: #fff0f6; color: #bc2b67; border-color: #ffd1e3; }
.customer-status.is-locked { background: #fff5f2; color: var(--lkw-error); border-color: #ffd0c7; }
.table-subline {
  display: block;
  color: var(--lkw-muted);
  font-size: 12px;
  margin-top: 3px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--lkw-blue);
  background: #edf0ff;
  border: 1px solid #dbe1ff;
}
.tag-list.compact { gap: 5px; }
.tag-list.compact span { padding: 4px 8px; font-size: 11px; }
.customer-meta-form { max-width: none; }
.customer-tags-card { display: grid; gap: 18px; align-content: start; }
.compact-info-list { margin-top: 4px; }
.customer-activity-card { overflow: hidden; }
.activity-timeline {
  display: grid;
  gap: 14px;
  position: relative;
}
.activity-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
}
.activity-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--lkw-blue);
  box-shadow: 0 0 0 5px rgba(30,42,120,.08);
}
.activity-item.is-return .activity-dot { background: #8a6100; box-shadow: 0 0 0 5px rgba(138,97,0,.10); }
.activity-item.is-note .activity-dot,
.activity-item.is-note_added .activity-dot { background: var(--lkw-pink); box-shadow: 0 0 0 5px rgba(255,107,154,.12); }
.activity-item.is-profile_updated .activity-dot { background: var(--lkw-success); box-shadow: 0 0 0 5px rgba(24,121,78,.12); }
.activity-item span { display: block; color: var(--lkw-muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.activity-item strong { display: block; color: var(--lkw-blue); }
.activity-item p { margin: 6px 0 0; color: #3f486b; line-height: 1.5; }
.customer-note-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.customer-note-item.is-important {
  border-color: #ffe4a3;
  background: #fffaf0;
}
.customer-important-note {
  align-self: end;
}
.customer-search-form input[name="tag"] {
  min-width: 140px;
}
@media (max-width: 1100px) {
  .customer-management-grid { grid-template-columns: 1fr; }
}

.customer-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-quality-card,
.customer-contact-task-grid .card,
.customer-communication-grid .card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.quality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #edf0ff;
  color: var(--lkw-blue);
  border: 1px solid #dbe1ff;
}

.quality-pill.warning {
  background: #fff7df;
  color: #8a6100;
  border-color: #ffe4a3;
}

.quality-pill.info {
  background: #eef5ff;
  color: #1e4b8f;
  border-color: #d5e6ff;
}

.customer-list-block {
  display: grid;
  gap: 12px;
}

.customer-contact-item,
.customer-task-item,
.customer-communication-item {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.customer-contact-item > div,
.customer-task-item > div,
.customer-communication-item > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.customer-contact-item strong,
.customer-task-item strong,
.customer-communication-item strong {
  color: var(--lkw-blue);
}

.customer-contact-item p,
.customer-task-item p,
.customer-communication-item p {
  margin: 0;
  color: #3f486b;
  line-height: 1.55;
}

.customer-contact-item span,
.customer-task-item span,
.customer-communication-item span,
.customer-contact-item em {
  color: var(--lkw-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.customer-task-item form {
  margin-top: 4px;
}

.customer-task-item.is-done {
  opacity: .72;
  background: #f7faf8;
}

.customer-task-item.is-done strong {
  text-decoration: line-through;
}

.customer-inline-form {
  max-width: none;
  border-top: 1px solid var(--lkw-border);
  padding-top: 16px;
}

.customer-inline-form textarea {
  min-height: 88px;
}

.activity-item.is-task .activity-dot,
.activity-item.is-task_added .activity-dot,
.activity-item.is-task_done .activity-dot,
.activity-item.is-task_reopened .activity-dot {
  background: #1e4b8f;
  box-shadow: 0 0 0 5px rgba(30,75,143,.11);
}

.activity-item.is-communication .activity-dot,
.activity-item.is-communication_added .activity-dot,
.activity-item.is-contact_added .activity-dot {
  background: #7051a8;
  box-shadow: 0 0 0 5px rgba(112,81,168,.12);
}

@media (max-width: 1180px) {
  .customer-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .customer-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .customer-contact-task-grid,
  .customer-communication-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .customer-overview-grid {
    grid-template-columns: 1fr;
  }
  .customer-contact-item > div,
  .customer-task-item > div,
  .customer-communication-item > div {
    flex-direction: column;
    gap: 5px;
  }
}

.dashboard-customer-radar {
  display: grid;
  gap: 18px;
}

.dashboard-customer-radar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-radar-card {
  border: 1px solid var(--lkw-border);
  border-radius: 22px;
  background: #fbfcff;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.dashboard-radar-card h3 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 16px;
}

.dashboard-list.compact {
  gap: 8px;
}

.dashboard-list.compact .dashboard-list-item {
  padding: 11px 12px;
}

@media (max-width: 1220px) {
  .dashboard-customer-radar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-customer-radar-grid {
    grid-template-columns: 1fr;
  }
}

.customer-page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-page-actions form {
  margin: 0;
}

.customer-tabs {
  margin: 18px 0 20px;
  padding: 12px;
}

.customer-tabs-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f6f8ff;
  color: var(--lkw-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.customer-tab-link:hover {
  transform: translateY(-1px);
  background: #eef2ff;
  border-color: #dbe1ff;
}

.customer-tab-link.active {
  background: var(--lkw-blue);
  border-color: var(--lkw-blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 42, 120, .18);
}

.customer-tab-link em {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--lkw-blue);
  font-size: 11px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-tab-link.active em {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.customer-tabs-select {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.customer-tabs-select label {
  margin: 0;
}

.customer-overview-stats {
  margin-bottom: 20px;
}

.customer-overview-grid-panels {
  margin-bottom: 20px;
}

.button-row-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-mini-list {
  display: grid;
  gap: 10px;
}

.customer-mini-list a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fbfcff;
  color: inherit;
  text-decoration: none;
}

.customer-mini-list a:hover {
  border-color: #dbe1ff;
  background: #f7f9ff;
}

.customer-mini-list strong {
  color: var(--lkw-blue);
}

.customer-mini-list span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}

.customer-notes-list.compact .customer-note-item {
  padding: 13px;
}

.activity-timeline.compact {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.customer-inline-form.no-border {
  border-top: 0;
  padding-top: 0;
}

.quality-pill.success {
  background: #e9f8f0;
  color: var(--lkw-success);
  border-color: #bde8d0;
}

@media (max-width: 980px) {
  .customer-tabs-links {
    display: none;
  }

  .customer-tabs-select {
    display: grid;
  }
}

@media (max-width: 640px) {
  .customer-page-actions,
  .customer-tabs-select,
  .button-row-inline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-page-actions .btn,
  .customer-page-actions button,
  .customer-tabs-select .btn {
    width: 100%;
  }
}

.customer-dossier-grid {
  gap: 22px;
  align-items: stretch !important;
  margin-bottom: 22px;
}

.customer-dossier-grid > .card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.customer-dossier-grid > .card > .card-head-row {
  flex-shrink: 0;
}

.customer-dossier-grid .form-grid,
.customer-dossier-grid .customer-list-block,
.customer-dossier-grid .customer-notes-list,
.customer-dossier-grid .activity-timeline,
.customer-dossier-grid .table-wrap,
.customer-dossier-grid .info-list,
.customer-dossier-grid .quality-list,
.customer-dossier-grid .customer-mini-list {
  min-width: 0;
}

.customer-dossier-grid .table-wrap,
.customer-dossier-grid .customer-list-block,
.customer-dossier-grid .customer-notes-list,
.customer-dossier-grid .activity-timeline,
.customer-dossier-grid .customer-mini-list {
  flex: 1 1 auto;
}

.customer-dossier-grid:last-child {
  margin-bottom: 0;
}

.customer-tab-section-card {
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .customer-dossier-grid {
    gap: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .customer-dossier-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
}

.return-dossier-grid {
  gap: 22px;
  align-items: stretch !important;
  margin-bottom: 22px;
}

.return-dossier-grid > .card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.return-dossier-grid > .card > .card-head-row {
  flex-shrink: 0;
}

.return-dossier-grid .form-grid,
.return-dossier-grid .info-list,
.return-dossier-grid .table-wrap,
.return-dossier-grid .activity-timeline,
.return-dossier-grid .customer-notes-list,
.return-dossier-grid .return-mini-list {
  min-width: 0;
}

.return-dossier-grid .info-list,
.return-dossier-grid .table-wrap,
.return-dossier-grid .activity-timeline,
.return-dossier-grid .customer-notes-list,
.return-dossier-grid .return-mini-list {
  flex: 1 1 auto;
}

.return-tab-section-card {
  margin-bottom: 22px;
}

.returns-tabs {
  margin: 18px 0 20px;
}

.returns-overview-stats,
.returns-index-stats {
  gap: 18px;
  margin-bottom: 20px;
}

.returns-index-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.return-mini-list {
  display: grid;
  gap: 10px;
}

.return-mini-list a,
.return-mini-row {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fbfcff;
  color: inherit;
  text-decoration: none;
}

.return-mini-list a:hover {
  border-color: #dbe1ff;
  background: #f7f9ff;
}

.return-mini-list strong,
.return-mini-row strong {
  color: var(--lkw-blue);
}

.return-mini-list span,
.return-mini-row span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}

.returns-actions-card-vertical {
  gap: 18px;
}

.return-status-actions {
  align-items: stretch;
}

.return-status-actions form {
  margin: 0;
}

.returns-inline-form-wide select {
  min-width: 170px;
}

@media (max-width: 1280px) {
  .returns-index-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .return-dossier-grid {
    gap: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 760px) {
  .returns-index-stats,
  .returns-overview-stats {
    grid-template-columns: 1fr;
  }

  .return-status-actions,
  .return-status-actions form,
  .return-status-actions button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .return-dossier-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
}


.inventory-dossier-grid {
  gap: 22px;
  align-items: stretch !important;
  margin-bottom: 22px;
}

.inventory-dossier-grid > .card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inventory-dossier-grid .form-grid,
.inventory-dossier-grid .info-list,
.inventory-dossier-grid .table-wrap,
.inventory-dossier-grid .booking-check-grid,
.inventory-dossier-grid .actions {
  min-width: 0;
}

.inventory-tab-section-card {
  margin-bottom: 22px;
}

.inventory-row-uncounted {
  background: #f7f9ff;
}

.inventory-row-uncounted td:first-child {
  border-left: 4px solid #8ba2dc;
}

.inventory-row-difference td:first-child {
  border-left: 4px solid #ffb36b;
}

.badge.neutral {
  background: #eef2ff;
  color: #324277;
  border-color: #dbe1ff;
}

.activity-item.is-created .activity-dot,
.activity-item.is-bulk_added .activity-dot,
.activity-item.is-item_added .activity-dot {
  background: #3867c8;
  box-shadow: 0 0 0 5px rgba(56,103,200,.12);
}

.activity-item.is-item_counted .activity-dot,
.activity-item.is-items_confirmed .activity-dot,
.activity-item.is-zero_marked .activity-dot {
  background: #1f9254;
  box-shadow: 0 0 0 5px rgba(31,146,84,.12);
}

.activity-item.is-items_removed .activity-dot,
.activity-item.is-item_removed .activity-dot,
.activity-item.is-status_changed .activity-dot {
  background: #d35b1f;
  box-shadow: 0 0 0 5px rgba(211,91,31,.12);
}

.activity-item.is-booked .activity-dot {
  background: #153082;
  box-shadow: 0 0 0 5px rgba(21,48,130,.14);
}

@media (max-width: 1100px) {
  .inventory-dossier-grid {
    gap: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .inventory-dossier-grid {
    gap: 18px;
    margin-bottom: 18px;
  }

  .inventory-inline-form {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Beta 64: Untertabs für lange Einstellungsbereiche */
.settings-tabs {
  margin: 0 0 18px;
  padding: 12px;
}

.settings-tabs-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f6f8ff;
  color: var(--lkw-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.settings-tab-link:hover {
  transform: translateY(-1px);
  background: #eef2ff;
  border-color: #dbe1ff;
}

.settings-tab-link.active {
  background: var(--lkw-blue);
  border-color: var(--lkw-blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 42, 120, .18);
}

.settings-tabs-select {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.settings-tabs-select label {
  margin: 0;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.is-active {
  display: block;
}

.settings-tab-panel > .card,
.settings-tab-panel > .grid {
  margin-bottom: 18px;
}

.settings-tab-panel > .card:last-child,
.settings-tab-panel > .grid:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .settings-tabs-links {
    display: none;
  }

  .settings-tabs-select {
    display: grid;
  }
}

/* Beta 65: Produkt- und Lagerakte */
.product-dossier-tabs {
  margin-top: 18px;
  margin-bottom: 18px;
}

.product-area-tabs {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-area-tabs-primary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.product-area-tab {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  color: inherit;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-area-tab:hover {
  background: #f6f8ff;
  border-color: #dbe1ff;
}

.product-area-tab.active {
  background: #f1f3ff;
  border-color: #cfd8ff;
  box-shadow: inset 0 3px 0 var(--lkw-blue);
}

.product-area-tab strong {
  color: var(--lkw-blue);
  font-size: 14px;
}

.product-area-tab span {
  color: var(--lkw-muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-area-tab em {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--lkw-blue);
  border: 1px solid #dbe1ff;
  font-size: 11px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-area-tabs-secondary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--lkw-border);
}

.product-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.product-shop-stock-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-shop-stock-row {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(250px, 1.4fr) auto 40px;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
}

.product-shop-stock-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-shop-stock-name strong {
  color: var(--lkw-blue);
}

.product-shop-stock-name span,
.product-shop-stock-values em {
  color: var(--lkw-muted);
  font-size: 12px;
  font-style: normal;
}

.product-shop-stock-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(60px, 1fr));
  gap: 12px;
}

.product-shop-stock-values span {
  display: grid;
  gap: 3px;
}

.product-shop-stock-state {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.product-shop-stock-risk,
.product-shop-stock-error {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 12px;
}

.product-shop-stock-risk {
  color: #8a6100;
}

.product-shop-stock-error {
  color: var(--lkw-danger);
}

.product-workspace-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-workspace-primary {
  min-height: 100%;
}

.product-workspace-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.product-workspace-action {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-workspace-action:hover {
  background: #f6f8ff;
  border-color: #dbe1ff;
  box-shadow: 0 16px 34px rgba(30, 42, 120, .09);
}

.product-workspace-action {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 13px;
  align-content: start;
}

.product-workspace-action span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 900;
}

.product-workspace-action strong {
  color: var(--lkw-blue);
  line-height: 1.2;
}

.product-workspace-action em {
  color: var(--lkw-muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.product-dossier-grid {
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}

.product-dossier-grid-equal > .card,
.product-dossier-grid-equal > section.card,
.product-dossier-grid-equal .product-tab-section-card {
  height: 100%;
}

.product-tab-section-card {
  margin-bottom: 18px;
}

.product-tab-section-card .table-wrap {
  max-height: 520px;
  overflow: auto;
}

.product-dossier-actions {
  margin-top: 0;
  margin-bottom: 18px;
}

.product-dossier-hero {
  margin-bottom: 18px;
}

.product-edit-workspace {
  margin-bottom: 18px;
}

.product-edit-jump-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.product-edit-jump {
  min-width: 0;
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 13px;
  align-content: center;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-edit-jump:hover {
  background: #f6f8ff;
  border-color: #dbe1ff;
  box-shadow: 0 16px 34px rgba(30, 42, 120, .09);
}

.product-edit-jump strong {
  color: var(--lkw-blue);
  line-height: 1.2;
}

.product-edit-jump em {
  color: var(--lkw-muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.product-edit-section {
  scroll-margin-top: 24px;
}

.product-edit-save-row {
  justify-content: flex-end;
  margin-top: 4px;
}

.product-shop-hub {
  margin-bottom: 18px;
}

.product-shop-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-shop-hub-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 13px;
  align-content: center;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-shop-hub-item:hover {
  background: #f6f8ff;
  border-color: #dbe1ff;
  box-shadow: 0 16px 34px rgba(30, 42, 120, .09);
}

.product-shop-hub-item strong {
  color: var(--lkw-blue);
  line-height: 1.2;
}

.product-shop-hub-item span {
  color: var(--lkw-muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-shop-form-actions {
  justify-content: flex-end;
}

.product-shop-context {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.product-shop-context > span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-shop-context > div {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}

.product-shop-context a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--lkw-blue);
  text-decoration: none;
  border-radius: 6px;
}

.product-shop-context a.active {
  color: #fff;
  background: var(--lkw-blue);
}

.product-shop-sales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.product-shop-sales-grid fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
}

.product-shop-sales-grid legend {
  padding: 0 6px;
  color: var(--lkw-blue);
  font-weight: 700;
}

.product-price-section-head {
  margin: 22px 0 10px;
}

.product-price-section-head h3 {
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .product-shop-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-shop-context > div {
    width: 100%;
  }

  .product-shop-sales-grid {
    grid-template-columns: 1fr;
  }
}

.product-shop-profiles-card,
.product-barcode-card {
  grid-column: 1 / -1;
}

.product-shop-profile-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-shop-profile {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.5fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
}

.product-shop-profile.is-inactive {
  opacity: .68;
}

.product-shop-profile-main,
.product-shop-profile-title,
.product-shop-profile-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.product-shop-profile-main,
.product-shop-profile-title {
  align-items: flex-start;
  flex-direction: column;
}

.product-shop-profile-title strong {
  color: var(--lkw-blue);
  line-height: 1.3;
}

.product-shop-profile-title span,
.product-shop-profile-meta span {
  color: var(--lkw-muted);
  font-size: 12px;
}

.product-shop-profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-shop-profile-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-shop-profile-meta strong {
  overflow-wrap: anywhere;
  color: var(--lkw-blue);
  font-size: 13px;
  line-height: 1.35;
}

.product-shop-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-shop-profile-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--lkw-danger);
  font-size: 12px;
}

.product-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--lkw-border);
}

.product-empty-state > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-empty-state strong {
  color: var(--lkw-blue);
  font-size: 14px;
}

.product-empty-state span {
  color: var(--lkw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-empty-state > .btn,
.product-empty-state > .property-plus-button {
  flex: 0 0 auto;
}

.product-action-dialog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-action-dialog-card > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-action-dialog-card strong {
  color: var(--lkw-blue);
  font-size: 16px;
  font-weight: 900;
}

.product-action-dialog-card .btn {
  flex: 0 0 auto;
}

.product-action-dialog-card--inline {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
}

.product-action-modal-card {
  width: min(100%, 620px);
}

@media (max-width: 860px) {
  .product-dossier-grid {
    gap: 14px;
  }

  .product-workspace-grid {
    grid-template-columns: 1fr;
  }

  .product-workspace-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-edit-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-shop-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-area-tabs-primary,
  .product-area-tabs-secondary {
    display: none;
  }

  .product-area-tabs-select {
    display: grid;
  }

  .product-tab-section-card .table-wrap {
    max-height: none;
  }

  .product-action-dialog-card {
    align-items: stretch;
    flex-direction: column;
  }

  .product-action-dialog-card .btn {
    width: 100%;
  }

  .product-empty-state {
    align-items: flex-start;
  }

  .product-shop-profile {
    grid-template-columns: 1fr;
  }

  .product-shop-profile-actions {
    justify-content: flex-start;
  }

  .product-shop-stock-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .product-shop-stock-values,
  .product-shop-stock-state {
    grid-column: 1 / -1;
  }

  .product-shop-stock-state {
    justify-content: flex-start;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .product-area-tabs-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-workspace-actions,
  .product-edit-jump-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-shop-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-workspace-actions,
  .product-edit-jump-grid,
  .product-shop-hub-grid {
    grid-template-columns: 1fr;
  }

  .product-workspace-action,
  .product-edit-jump,
  .product-shop-hub-item {
    min-height: auto;
  }

  .product-shop-profile-meta {
    grid-template-columns: 1fr;
  }
}

/* Beta 68: Zentrale Status-/Mapping-Darstellung */
.mapping-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}

.mapping-summary-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef3ff 100%);
}

.mapping-summary-card strong {
  color: var(--lkw-blue);
}

.mapping-summary-card span,
.mapping-summary-card em {
  color: var(--lkw-muted);
  font-style: normal;
  line-height: 1.45;
}

.api-endpoint-groups {
  display: grid;
  gap: 16px;
}

.api-endpoint-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
}

.api-endpoint-group-head {
  display: grid;
  gap: 4px;
}

.api-endpoint-group-head strong {
  color: var(--lkw-blue);
  font-size: 1.02rem;
}

.api-endpoint-group-head span,
.api-endpoint-row span {
  color: var(--lkw-muted);
  line-height: 1.45;
}

.api-endpoint-row {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.api-endpoint-row code {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef1ff;
  color: var(--lkw-blue);
  border: 1px solid var(--lkw-border);
  font-weight: 800;
  white-space: normal;
}

@media (max-width: 860px) {
  .mapping-summary-grid {
    grid-template-columns: 1fr;
  }

  .api-endpoint-row {
    grid-template-columns: 1fr;
  }
}

.movement-reference-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lkw-blue);
  font-weight: 800;
  text-decoration: none;
}

.movement-reference-link::after {
  content: "↗";
  font-size: 12px;
  opacity: .65;
}

.movement-reference-link:hover {
  color: var(--lkw-blue-2);
  text-decoration: underline;
}

.inventory-movement-filter-wide {
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, .8fr) minmax(150px, .7fr) minmax(150px, .7fr) minmax(135px, .6fr) minmax(135px, .6fr) auto;
}

@media (max-width: 1280px) {
  .inventory-movement-filter-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Beta 70: Lagerverwaltung */
.warehouse-hero {
  margin-bottom: 18px;
}

.warehouse-stats {
  margin-bottom: 18px;
}

.warehouse-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.warehouse-module {
  display: grid;
  gap: 8px;
  min-height: 152px;
  text-decoration: none;
  color: inherit;
}

.warehouse-module span {
  font-size: 28px;
}

.warehouse-module strong {
  color: var(--lkw-blue);
  font-size: 1.05rem;
}

.warehouse-module em {
  color: var(--lkw-muted);
  font-style: normal;
  line-height: 1.45;
}

.warehouse-location-form {
  align-items: end;
}

.warehouse-label-preview-card {
  display: grid;
  gap: 16px;
}

.warehouse-label-preview {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  padding: 18px;
  border: 1.5px dashed var(--lkw-border);
  border-radius: 20px;
  background: #fbfcff;
  text-align: center;
}

.warehouse-label-preview strong {
  color: var(--lkw-blue);
  font-size: 1.4rem;
  letter-spacing: .04em;
}

.warehouse-label-preview span {
  color: #172044;
  font-weight: 800;
}

.warehouse-label-preview em {
  color: var(--lkw-muted);
  font-style: normal;
}

.warehouse-label-preview .barcode-svg {
  width: 100%;
  max-width: 360px;
  height: 76px;
}

@media (max-width: 1180px) {
  .warehouse-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .warehouse-module-grid {
    grid-template-columns: 1fr;
  }
}

.pick-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pick-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  padding: 7px 10px;
  background: #f4f7ff;
  color: var(--lkw-blue);
  font-weight: 800;
  line-height: 1.2;
}

.pick-location-badge span {
  color: var(--lkw-text);
}

.pick-location-badge small {
  color: var(--lkw-muted);
  font-weight: 700;
}

.pick-location-warning {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffd7b8;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff8f1;
  color: #9a4f00;
  font-weight: 800;
}

@media (max-width: 740px) {
  .pick-location-badge,
  .pick-location-warning {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
  }
}

.license-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.license-overview-grid .card {
  height: 100%;
}
.license-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.license-settings-form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.license-monitor-warning {
  margin-top: 4px;
}
.license-settings-form input[readonly] {
  background: #f7f8ff;
  color: #4a5273;
}
@media (max-width: 900px) {
  .license-overview-grid,
  .license-settings-form {
    grid-template-columns: 1fr;
  }
}

.nav a[data-license-badge] {
  position: relative;
  padding-right: 70px;
}
.nav a[data-license-badge]::after {
  content: attr(data-license-badge);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}
.license-page-notice {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #ffe1a6;
  border-radius: 20px;
  background: #fff8e6;
  color: #6f4b00;
}
.license-page-notice strong {
  color: #7a5200;
}
.license-page-notice p {
  margin: 6px 0 0;
  line-height: 1.5;
}
.license-page-missing {
  font-size: 13px;
}
@media (max-width: 760px) {
  .license-page-notice {
    flex-direction: column;
  }
  .license-page-notice .btn {
    width: 100%;
  }
}


.license-page-notice.is-locked {
    border-color: #f2c76a;
    background: #fff8e5;
}

.license-write-locked .license-locked-form {
    position: relative;
}

.license-form-lock-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #f2c76a;
    border-radius: 16px;
    background: #fff8e5;
    color: #5c3b00;
    box-shadow: 0 10px 24px rgba(118, 80, 0, .08);
}

.license-form-lock-note strong {
    color: #7a4b00;
    font-weight: 850;
}

.license-form-lock-note span {
    color: #6a4d17;
    font-size: .92rem;
    line-height: 1.45;
}

.license-write-locked form[method=post] input:not([type=hidden]),
.license-write-locked form[method=post] select,
.license-write-locked form[method=post] textarea {
    background: #f4f6fb;
    color: #7d879f;
    border-color: #d9deed;
    cursor: not-allowed;
}

.license-write-locked form[method=post] button,
.license-write-locked form[method=post] .btn {
    opacity: .48;
    filter: grayscale(.15);
    cursor: not-allowed;
    box-shadow: none;
}

.license-write-locked .packdesk-actions-card,
.license-write-locked .settings-actions,
.license-write-locked .actions {
    position: relative;
}

@media (max-width: 760px) {
    .license-form-lock-note {
        align-items: flex-start;
        flex-direction: column;
    }
}

.version-update-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.version-update-link:hover {
  background: rgba(255, 255, 255, .22);
}

.update-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.update-status-card {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fff;
  padding: 15px;
  display: grid;
  gap: 6px;
}

.update-status-card span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}

.update-status-card strong {
  color: var(--lkw-blue);
  font-size: 17px;
  line-height: 1.35;
}

.update-status-card.is-highlight {
  border-color: #ffe5a0;
  background: #fffaf0;
}

.update-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.update-panel-head strong {
  display: block;
  color: var(--lkw-blue);
  font-size: 18px;
}

.update-panel-head span:not(.badge) {
  display: block;
  color: var(--lkw-muted);
  margin-top: 4px;
  font-size: 13px;
}

.update-changelog-card {
  display: none;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
}

.update-changelog-card.is-visible {
  display: block;
}

.update-changelog-card h3 {
  margin-bottom: 10px;
}

.update-changelog-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.55;
  color: var(--lkw-text);
}

.update-technical-details {
  border-top: 1px solid var(--lkw-border);
  padding-top: 12px;
}

.dashboard-update-notice {
  border-color: #ffe5a0;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.dashboard-update-notice .card-head-row {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .update-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .update-status-grid { grid-template-columns: 1fr; }
  .update-panel-head { flex-direction: column; }
}

.dashboard-modern {
  display: grid;
  gap: 24px;
}

.dashboard-modern .card {
  box-shadow: 0 16px 42px rgba(30, 42, 120, .08);
}

.dashboard-hero--modern {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  padding: 28px;
  min-height: 220px;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 107, 154, .20), transparent 28%),
    radial-gradient(circle at 10% 0%, rgba(30, 42, 120, .12), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f5f7ff 56%, #fff7fb 100%);
}

.dashboard-hero--modern::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -74px;
  bottom: -92px;
  border-radius: 999px;
  background: rgba(30, 42, 120, .06);
  pointer-events: none;
}

.dashboard-hero-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.dashboard-hero--modern h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.055em;
  color: var(--lkw-blue);
}

.dashboard-hero--modern .hint {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
}

.dashboard-hero--modern .dashboard-hero-actions {
  position: relative;
  z-index: 1;
  align-content: center;
  align-items: flex-end;
  flex-direction: column;
  min-width: 190px;
}

.dashboard-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.dashboard-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #dfe4f8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #273052;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(30, 42, 120, .06);
}

.dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 0;
}

.dashboard-section-head h2 {
  margin: 8px 0 6px;
  color: var(--lkw-blue);
  font-size: 24px;
  letter-spacing: -.04em;
}

.dashboard-section-head .hint {
  margin: 0;
}

.dashboard-focus-grid {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}

.dashboard-focus-card {
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 330px;
  min-height: 150px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1)),
    #fff;
  box-shadow: 0 14px 34px rgba(30, 42, 120, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-focus-card::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b9c0d9;
}

.dashboard-focus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(30, 42, 120, .12);
  border-color: #d7dcf1;
}

.dashboard-focus-card span {
  padding-right: 22px;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .01em;
}

.dashboard-focus-card strong {
  align-self: center;
  color: var(--lkw-blue);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.05em;
}

.dashboard-focus-card em {
  min-height: 19px;
  color: #465170;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-focus-card.ok {
  border-color: #dfe5f5;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.dashboard-focus-card.ok::before {
  background: #8ea0c9;
}

.dashboard-focus-card.warning {
  border-color: #ffe4a3;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.dashboard-focus-card.warning::before {
  background: #c57a00;
}

.dashboard-focus-card.danger {
  border-color: #ffcfc6;
  background: linear-gradient(180deg, #fff6f4, #ffffff);
}

.dashboard-focus-card.danger::before {
  background: var(--lkw-error);
}

.dashboard-module-head--modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #fbfcff);
}

.dashboard-module-head--modern h2 {
  margin-top: 8px;
}

.dashboard-module-grid--modern {
  gap: 14px;
}

.dashboard-module-card--modern {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 118px;
  padding: 18px;
  gap: 14px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(30, 42, 120, .065);
}

.dashboard-module-card--modern .module-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef1ff, #fff4f8);
  box-shadow: inset 0 0 0 1px rgba(30, 42, 120, .04);
}

.dashboard-module-card--modern .dashboard-module-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-module-card--modern strong {
  font-size: 17px;
}

.dashboard-module-card--modern small,
.dashboard-module-card--modern em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.dashboard-module-card--modern small {
  color: #273052;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-module-card--modern em {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-module-grid--compact .dashboard-module-card--modern {
  min-height: 92px;
  padding: 14px;
}

.dashboard-module-grid--large .dashboard-module-card--modern {
  min-height: 146px;
  align-content: center;
}

.dashboard-task-board--modern {
  background:
    radial-gradient(circle at top right, rgba(30, 42, 120, .08), transparent 28%),
    linear-gradient(135deg, #ffffff, #fbfcff);
}

.dashboard-task-groups {
  display: grid;
  gap: 20px;
}

.dashboard-task-group {
  display: grid;
  gap: 12px;
}

.dashboard-task-group h3 {
  margin: 0;
  color: #273052;
  font-size: 15px;
  letter-spacing: -.02em;
}

.dashboard-task-grid--modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-task-grid--modern .dashboard-task-card {
  min-height: 94px;
  border-radius: 18px;
  padding: 16px;
  box-shadow: none;
}

.dashboard-task-grid--modern .dashboard-task-card strong {
  font-size: 15px;
}

.dashboard-task-grid--modern .dashboard-task-card span {
  font-weight: 700;
}

.dashboard-list-card {
  min-height: 100%;
}

.dashboard-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-flow-grid .card-head-row {
  align-items: flex-start;
}

.dashboard-list-item {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.dashboard-list-item:hover {
  transform: translateY(-1px);
  border-color: #d8def6;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 42, 120, .06);
}

.dashboard-soft-status {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  color: var(--lkw-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-soft-status.ok {
  border-color: #cfe9da;
  background: #f4fff8;
  color: var(--lkw-success);
}

.dashboard-empty-card {
  display: grid;
  gap: 10px;
}

.dashboard-notice-inline {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.dashboard-notice-inline h2 {
  margin: 8px 0 4px;
}

.dashboard-notice-inline .hint {
  margin: 0;
}

.dashboard-notice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff4d8;
  color: #8a6100;
  font-size: 24px;
  font-weight: 900;
}

.dashboard-customer-radar--modern {
  background: linear-gradient(135deg, #ffffff, #fbfcff);
}

.dashboard-customer-radar--modern .dashboard-radar-card {
  min-height: 270px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 42, 120, .055);
}

.dashboard-customer-radar--modern .dashboard-radar-card h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lkw-border);
}

.dashboard-section-head--system {
  margin-top: 4px;
}

.dashboard-system-card {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.dashboard-system-card .table-wrap {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fff;
}

.dashboard-system-card table th,
.dashboard-system-card table td {
  font-size: 13px;
}

@media (max-width: 1480px) {
  .dashboard-focus-grid {
    max-width: 1040px;
  }
}

@media (max-width: 1180px) {
  .dashboard-focus-grid {
    max-width: 700px;
  }

  .dashboard-task-grid--modern,
  .dashboard-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-hero--modern {
    flex-direction: column;
    min-height: auto;
  }

  .dashboard-hero--modern .dashboard-hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .dashboard-focus-grid {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .dashboard-task-grid--modern,
  .dashboard-flow-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-module-head--modern,
  .dashboard-section-head,
  .dashboard-notice-inline {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-notice-icon {
    display: none;
  }
}

@media (max-width: 700px) {
  .dashboard-modern {
    gap: 18px;
  }

  .dashboard-hero--modern {
    padding: 22px;
  }

  .dashboard-hero-meta span {
    width: 100%;
    justify-content: center;
  }

  .dashboard-module-card--modern {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 94px;
  }

  .dashboard-module-card--modern .module-icon {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }
}

.backup-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 154, .16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.backup-hero-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.backup-hero-main h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.045em;
}

.backup-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #dfe4ff;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #273052;
  font-size: 13px;
  font-weight: 800;
}

.backup-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.backup-status-card {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.backup-status-card span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.backup-status-card strong {
  color: var(--lkw-blue);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.backup-status-card.is-ok {
  border-color: #cfe9da;
  background: linear-gradient(180deg, #ffffff, #f4fff8);
}

.backup-status-card.is-error {
  border-color: #ffd0c7;
  background: linear-gradient(180deg, #ffffff, #fff5f2);
}

.backup-list-card {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.backup-table-wrap table td:first-child strong {
  color: #273052;
  word-break: break-word;
}

.backup-hash {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 9px;
  background: #eef1ff;
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 800;
}

.backup-actions {
  flex-wrap: nowrap;
}

@media (max-width: 1180px) {
  .backup-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .backup-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-hero .btn,
  .backup-hero form {
    width: 100%;
  }

  .backup-status-grid {
    grid-template-columns: 1fr;
  }

  .backup-actions {
    flex-wrap: wrap;
  }
}

.sync-connection-context {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 18px;
  padding: 0 2px 16px;
  border-bottom: 1px solid var(--lkw-border);
}

.sync-connection-context > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sync-connection-context > div span,
.sync-connection-context > div small {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.sync-connection-context > div strong {
  color: var(--lkw-blue);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.sync-connection-picker {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.sync-connection-picker label {
  width: min(100%, 360px);
  margin: 0;
}

.sync-connection-picker label > span {
  font-size: 12px;
  color: var(--lkw-muted);
}

.sync-connection-picker select {
  width: 100%;
}

.shopware-sync-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(31, 94, 255, .12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
}

.shopware-sync-hero-main,
.shopware-sync-import > div {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.shopware-sync-hero-main h2,
.shopware-sync-import h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.045em;
}

.shopware-sync-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopware-sync-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #dfe4ff;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #273052;
  font-size: 13px;
  font-weight: 800;
}

.shopware-sync-hero-status {
  min-width: 180px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid #dfe4ff;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 34px rgba(30, 42, 120, .075);
}

.shopware-sync-hero-status span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shopware-sync-hero-status strong {
  color: var(--lkw-blue);
  font-size: 24px;
  letter-spacing: -.04em;
}

.shopware-sync-hero-status.is-running {
  border-color: #ffe1a7;
  background: #fffaf0;
}

.shopware-sync-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.shopware-sync-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.shopware-sync-card--primary {
  border-color: #dfe4ff;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 154, .12), transparent 38%),
    linear-gradient(180deg, #ffffff, #fbfcff);
}

.shopware-sync-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.shopware-sync-card-head div {
  display: grid;
  gap: 6px;
}

.shopware-sync-card-head span:not(.badge) {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shopware-sync-card-head strong {
  color: #172033;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.sync-run-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.sync-run-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1fb;
}

.sync-run-facts div:last-child {
  border-bottom: 0;
}

.sync-run-facts dt,
.sync-run-facts dd {
  margin: 0;
  font-size: 13px;
}

.sync-run-facts dt {
  color: var(--lkw-muted);
  font-weight: 800;
}

.sync-run-facts dd {
  color: #273052;
  font-weight: 900;
  text-align: right;
}

.shopware-sync-card form {
  margin-top: auto;
}

.shopware-sync-card .btn,
.shopware-sync-card form {
  width: 100%;
}

.shopware-sync-import {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 154, .12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f9f8ff 100%);
}

.shopware-sync-recent,
.shopware-sync-protocol {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.shopware-sync-recent .table-wrap,
.shopware-sync-protocol .table-wrap {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fff;
}

.shopware-sync-recent table th,
.shopware-sync-recent table td,
.shopware-sync-protocol table th,
.shopware-sync-protocol table td {
  font-size: 13px;
}

@media (max-width: 1480px) {
  .shopware-sync-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sync-connection-context {
    align-items: stretch;
    flex-direction: column;
  }

  .sync-connection-context > .btn {
    width: 100%;
  }

  .sync-connection-picker {
    justify-content: stretch;
  }

  .sync-connection-picker label {
    width: 100%;
  }

  .shopware-sync-hero,
  .shopware-sync-import {
    flex-direction: column;
    align-items: stretch;
  }

  .shopware-sync-cards {
    grid-template-columns: 1fr;
  }

  .shopware-sync-card {
    min-height: 0;
  }
}

.check-center {
  display: grid;
  gap: 24px;
}

.check-center-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 107, 154, .18), transparent 30%),
    radial-gradient(circle at 6% 0%, rgba(30, 42, 120, .12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6f7ff 58%, #fff7fb 100%);
}

.check-center-hero-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.check-center-hero-main h2 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.check-center-hero-main .hint {
  max-width: 720px;
  margin: 0;
}

.check-center-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.check-center-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #dfe4f8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #273052;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(30, 42, 120, .06);
}

.check-center-score {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 38px;
  border: 1px solid #dfe4f8;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 20px 46px rgba(30, 42, 120, .10);
}

.check-center-score strong {
  color: var(--lkw-blue);
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.06em;
}

.check-center-score span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.check-center-score--attention {
  border-color: #ffe5a0;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.check-center-score--ok {
  border-color: #cfe9da;
  background: linear-gradient(180deg, #f4fff8, #ffffff);
}

.check-center-priority {
  background:
    radial-gradient(circle at top right, rgba(30, 42, 120, .08), transparent 28%),
    linear-gradient(135deg, #ffffff, #fbfcff);
}

.check-center-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.check-center-priority-item {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 42, 120, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.check-center-priority-item:hover {
  transform: translateY(-2px);
  border-color: #d8def6;
  box-shadow: 0 18px 36px rgba(30, 42, 120, .10);
}

.check-center-priority-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef1ff, #fff4f8);
  font-size: 22px;
}

.check-center-priority-item strong {
  color: var(--lkw-blue);
  font-size: 16px;
}

.check-center-priority-item em {
  color: var(--lkw-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.check-center-priority-item.warning {
  border-color: #ffe5a0;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.check-center-priority-item.danger {
  border-color: #ffcfc6;
  background: linear-gradient(180deg, #fff6f4, #ffffff);
}

.check-center-section {
  display: grid;
  gap: 14px;
}

.check-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.check-card {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 42, 120, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.check-card:hover {
  transform: translateY(-3px);
  border-color: #d7dcf1;
  box-shadow: 0 22px 48px rgba(30, 42, 120, .12);
}

.check-card::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b9c0d9;
}

.check-card--ok {
  border-color: #cfe9da;
  background: linear-gradient(180deg, #f8fffb, #ffffff);
}

.check-card--ok::before {
  background: var(--lkw-success);
}

.check-card--warning {
  border-color: #ffe4a3;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.check-card--warning::before {
  background: #c57a00;
}

.check-card--danger {
  border-color: #ffcfc6;
  background: linear-gradient(180deg, #fff6f4, #ffffff);
}

.check-card--danger::before {
  background: var(--lkw-error);
}

.check-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef1ff, #fff4f8);
  font-size: 25px;
}

.check-card-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.check-card-kicker {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.check-card strong {
  color: var(--lkw-blue);
  font-size: 18px;
  letter-spacing: -.03em;
}

.check-card em {
  color: #465170;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.check-card-action {
  grid-column: 2;
  align-self: end;
  color: var(--lkw-blue);
  font-size: 13px;
  font-weight: 900;
}

.check-center-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.check-center-list-grid .dashboard-list-card {
  min-height: 100%;
}

@media (max-width: 1320px) {
  .check-center-grid,
  .check-center-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-center-priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .check-center-hero {
    grid-template-columns: 1fr;
  }

  .check-center-score {
    width: 100%;
    height: auto;
    min-height: 112px;
    border-radius: 28px;
  }

  .check-center-grid,
  .check-center-list-grid,
  .check-center-priority-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .check-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }

  .check-card-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .check-card-action {
    grid-column: 1 / -1;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.notification-menu {
  position: relative;
  flex: 0 0 auto;
}

.notification-trigger {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lkw-blue);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(30,42,120,.06);
}

.notification-trigger span {
  font-size: 19px;
  line-height: 1;
}

.notification-trigger strong {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--lkw-pink);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  width: min(390px, 92vw);
  overflow: hidden;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(30,42,120,.20);
}

.notification-dropdown[hidden] {
  display: none !important;
}

.notification-dropdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--lkw-border);
  background: linear-gradient(135deg, #fbfcff, #fff7fb);
}

.notification-dropdown-head div {
  display: grid;
  gap: 3px;
}

.notification-dropdown-head strong {
  color: var(--lkw-blue);
  font-size: 16px;
}

.notification-dropdown-head span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-dropdown-head a {
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 900;
}

.notification-dropdown-list {
  display: grid;
  max-height: 365px;
  overflow: auto;
  padding: 8px;
}

.notification-dropdown-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon text";
  gap: 4px 10px;
  padding: 11px;
  border-radius: 16px;
}

.notification-dropdown-item:hover {
  background: #f7f8ff;
}

.notification-dropdown-item span {
  grid-area: icon;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eef1ff;
}

.notification-dropdown-item strong {
  grid-area: title;
  color: var(--lkw-blue);
  font-size: 13px;
  line-height: 1.25;
}

.notification-dropdown-item em {
  grid-area: text;
  color: var(--lkw-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.notification-dropdown-item--danger span {
  background: #fff0ed;
}

.notification-dropdown-item--warning span {
  background: #fff7df;
}

.notification-dropdown-item.is-read {
  opacity: .68;
}

.notification-dropdown-empty {
  margin: 0;
  padding: 22px 12px;
  color: var(--lkw-muted);
  text-align: center;
  font-weight: 800;
}

.notification-dropdown-form {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--lkw-border);
  background: #fbfcff;
}

.notification-dropdown-form button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: #edf0ff;
  color: var(--lkw-blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.badge.danger {
  background: #fff0ed;
  color: var(--lkw-error);
}

.badge.info {
  background: #edf0ff;
  color: var(--lkw-blue);
}

.notifications-page {
  display: grid;
  gap: 24px;
}

.notification-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 107, 154, .18), transparent 30%),
    radial-gradient(circle at 0% 0%, rgba(30, 42, 120, .12), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f6f7ff 64%, #fff7fb 100%);
}

.notification-hero h2 {
  margin: 8px 0 6px;
  color: var(--lkw-blue);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.notification-hero .hint {
  max-width: 720px;
  margin: 0;
}

.notification-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.notification-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #dfe4f8;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #273052;
  font-size: 13px;
  font-weight: 900;
}

.notification-section {
  display: grid;
  gap: 14px;
}

.notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.notification-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--lkw-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30,42,120,.07);
}

.notification-card--danger {
  border-color: #ffcfc6;
  background: linear-gradient(180deg, #fff6f4, #ffffff);
}

.notification-card--warning {
  border-color: #ffe4a3;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.notification-card--info {
  border-color: #dfe4f8;
  background: linear-gradient(180deg, #fbfcff, #ffffff);
}

.notification-card.is-read {
  opacity: .72;
}

.notification-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef1ff, #fff4f8);
  font-size: 25px;
}

.notification-card-body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.notification-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notification-read-label {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
}

.notification-card h3 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 20px;
  letter-spacing: -.035em;
}

.notification-card p {
  margin: 0;
  color: #465170;
  line-height: 1.5;
  font-weight: 750;
}

.notification-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.notification-card-actions form {
  margin: 0;
}

.notification-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 24px;
}

.notification-empty-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: #effaf4;
  color: var(--lkw-success);
  font-size: 34px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .topbar-actions {
    align-self: flex-start;
  }

  .notification-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-actions {
    flex-wrap: wrap;
  }

  .notification-card {
    grid-template-columns: 1fr;
  }

  .notification-dropdown {
    right: auto;
    left: 0;
  }
}

.task-center-page {
  align-items: stretch;
}

.task-center-hero {
  align-items: flex-start;
}

.task-center-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.task-center-hero-actions form {
  margin: 0;
}

.task-center-grid {
  align-items: stretch;
}

.task-card {
  min-height: 100%;
}

.task-card.is-overdue {
  box-shadow: 0 16px 36px rgba(185, 28, 28, .12);
}

.task-priority {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid #dfe4f8;
  background: #f6f8ff;
  color: #273052;
}

.task-priority--urgent {
  border-color: #ffc4c4;
  background: #fff1f1;
  color: #b91c1c;
}

.task-priority--high {
  border-color: #ffd8a8;
  background: #fff7ed;
  color: #b45309;
}

.task-priority--normal {
  border-color: #d8e2ff;
  background: #f3f6ff;
  color: var(--lkw-blue);
}

.task-priority--low {
  border-color: #d6f2df;
  background: #f0fdf4;
  color: #15803d;
}

.task-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-meta-grid div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e6ebf7;
  border-radius: 16px;
  background: #fbfcff;
}

.task-meta-grid span,
.task-edit-form label span,
.task-note-field span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
}

.task-meta-grid strong {
  color: var(--lkw-blue);
  font-size: 14px;
}

.task-note {
  padding: 12px 14px;
  border: 1px solid #e7eaf4;
  border-radius: 18px;
  background: #fbfbff;
  color: #3f4865;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 750;
}

.task-card-actions {
  align-items: center;
}

.task-card-actions form,
.completed-task-actions form {
  margin: 0;
}

.task-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid #e5e9f6;
  border-radius: 22px;
  background: #fbfcff;
}

.task-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-edit-form label,
.task-note-field {
  display: grid;
  gap: 6px;
}

.task-edit-form select,
.task-edit-form input,
.task-edit-form textarea {
  width: 100%;
  border: 1px solid #dfe5f3;
  border-radius: 14px;
  background: #fff;
  color: #1f2a44;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  padding: 10px 11px;
  outline: none;
}

.task-edit-form textarea {
  resize: vertical;
  min-height: 72px;
}

.task-edit-form select:focus,
.task-edit-form input:focus,
.task-edit-form textarea:focus {
  border-color: var(--lkw-blue-2);
  box-shadow: 0 0 0 3px rgba(63, 95, 255, .10);
}

.task-form-actions {
  display: flex;
  justify-content: flex-end;
}

.completed-task-section {
  margin-top: 4px;
}

.completed-task-list {
  display: grid;
  gap: 12px;
}

.completed-task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #dbeedd;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fff8, #ffffff);
  box-shadow: 0 10px 24px rgba(15, 118, 65, .06);
}

.completed-task-card > div:first-child {
  display: grid;
  gap: 4px;
}

.completed-task-card strong {
  color: var(--lkw-blue);
  font-size: 16px;
}

.completed-task-card span,
.completed-task-card em {
  color: var(--lkw-muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
}

.completed-task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 980px) {
  .task-center-hero-actions {
    justify-content: flex-start;
  }

  .task-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .task-meta-grid {
    grid-template-columns: 1fr;
  }

  .completed-task-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .completed-task-actions {
    justify-content: flex-start;
  }
}

.maintenance-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.maintenance-hero h2 {
  margin: 8px 0 8px;
  color: var(--lkw-blue);
  letter-spacing: -0.03em;
}

.maintenance-hero-version {
  min-width: 220px;
  border: 1px solid var(--lkw-border);
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 5px;
}

.maintenance-hero-version span,
.maintenance-card span,
.update-preview-grid span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 800;
}

.maintenance-hero-version strong {
  color: var(--lkw-blue);
  font-size: 22px;
  line-height: 1.25;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.maintenance-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border-top: 4px solid #dce5f5;
}

.maintenance-card strong {
  color: var(--lkw-blue);
  font-size: 21px;
  line-height: 1.25;
}

.maintenance-card p {
  margin: 0;
  color: var(--lkw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.maintenance-card--success { border-top-color: #31a46c; }
.maintenance-card--warning { border-top-color: #f3a712; background: #fffaf0; }
.maintenance-card--error { border-top-color: #dc3545; background: #fff6f7; }

.maintenance-actions-card { display: grid; gap: 2px; }
.maintenance-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.maintenance-action {
  display: grid;
  gap: 8px;
  border: 1px solid var(--lkw-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.maintenance-action:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 94, 255, .28);
  box-shadow: 0 14px 34px rgba(20, 42, 80, .10);
}

.maintenance-action strong {
  color: var(--lkw-blue);
  font-size: 16px;
}

.maintenance-action span {
  color: var(--lkw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.update-preview-card,
.update-preflight-card {
  border: 1px solid var(--lkw-border);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
}

.update-preview-card h3,
.update-preflight-card h3 {
  margin: 0 0 6px;
  color: var(--lkw-blue);
}

.update-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.update-preview-grid > div {
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fbfcff;
  padding: 13px;
  display: grid;
  gap: 6px;
}

.update-preview-grid strong {
  color: var(--lkw-blue);
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.update-preflight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.update-preflight-item {
  border: 1px solid var(--lkw-border);
  border-left: 5px solid #dce5f5;
  border-radius: 16px;
  background: #fbfcff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.update-preflight-item strong {
  color: var(--lkw-blue);
}

.update-preflight-item span {
  color: var(--lkw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.update-preflight-item--success { border-left-color: #31a46c; background: #f5fff9; }
.update-preflight-item--warning { border-left-color: #f3a712; background: #fffaf0; }
.update-preflight-item--error { border-left-color: #dc3545; background: #fff6f7; }

.update-confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  color: var(--lkw-text);
  font-weight: 800;
}

.update-confirm-check input {
  width: 18px;
  height: 18px;
}

@media (max-width: 1250px) {
  .maintenance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maintenance-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .maintenance-hero { flex-direction: column; }
  .maintenance-hero-version { width: 100%; min-width: 0; }
  .maintenance-grid,
  .maintenance-action-grid,
  .update-preview-grid,
  .update-preflight-grid { grid-template-columns: 1fr; }
}

.version-update-link--critical {
  background: rgba(220, 53, 69, .92);
  border-color: rgba(255, 208, 199, .72);
  color: #fff;
}

.version-update-link--critical:hover {
  background: rgba(184, 36, 24, .96);
}

.dashboard-update-notice--critical {
  border-color: #ffcfc6;
  background: linear-gradient(135deg, #fff6f4, #ffffff);
}

.dashboard-update-notice--critical .dashboard-notice-icon {
  background: #fff0ed;
  color: var(--lkw-error);
}

.maintenance-details-card {
  display: block;
}

.maintenance-details-card summary,
.update-technical-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--lkw-text);
}

.maintenance-details-card .system-overview-grid {
  margin-top: 16px;
}

.update-preview-grid--compact .update-preview-grid-note {
  grid-column: 1 / -1;
}

.update-status-card.is-critical {
  border-color: #ffcfc6;
  background: #fff6f4;
}

.update-status-card.is-critical strong {
  color: var(--lkw-error);
}

.backup-restore-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
}

.backup-restore-card h2 {
  margin: 4px 0 8px;
}

.backup-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.backup-select-col {
  width: 44px;
  text-align: center;
}

.backup-select-col input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lkw-blue);
}

.backup-actions {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .backup-restore-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .backup-bulk-actions .btn {
    width: 100%;
  }
}

.log-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff, #f8faff);
}

.log-hero h2 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.log-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.log-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #dfe4ff;
  border-radius: 999px;
  background: #fff;
  padding: 7px 11px;
  color: var(--lkw-blue);
  font-size: 13px;
  font-weight: 850;
}

.log-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.log-summary-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  border-top: 4px solid #dce5f5;
}

.log-summary-card span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.log-summary-card strong {
  color: var(--lkw-blue);
  font-size: 30px;
  letter-spacing: -.04em;
}

.log-summary-card.is-success { border-top-color: #31a46c; }
.log-summary-card.is-warning { border-top-color: #f3a712; background: #fffaf0; }
.log-summary-card.is-error { border-top-color: #dc3545; background: #fff6f7; }

.log-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  align-items: end;
}

.log-filter-form select,
.log-filter-form input {
  width: 100%;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: var(--lkw-text);
}

.log-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.log-list-card {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.log-table th,
.log-table td {
  vertical-align: top;
}

.log-time {
  min-width: 132px;
  color: var(--lkw-blue);
  font-weight: 750;
}

.log-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #dfe5f3;
  background: #f7f9ff;
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.log-message-cell {
  min-width: 260px;
  max-width: 520px;
}

.log-message-cell strong {
  display: block;
  color: #243056;
  line-height: 1.35;
}

.log-message-cell small {
  display: inline-flex;
  margin-top: 6px;
  color: var(--lkw-muted);
  font-weight: 750;
}

.log-details summary {
  cursor: pointer;
  color: var(--lkw-blue);
  font-weight: 850;
  white-space: nowrap;
}

.log-detail-grid {
  display: grid;
  gap: 10px;
  min-width: min(760px, 70vw);
  margin-top: 12px;
}

.log-detail-grid > div {
  display: grid;
  gap: 6px;
  border: 1px solid #e3e7f2;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.log-detail-grid span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.log-detail-grid strong {
  color: var(--lkw-blue);
}

.log-detail-grid pre {
  max-width: min(980px, 72vw);
  max-height: 280px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 14px;
  background: #111827;
  color: #f9fafb;
  padding: 13px;
  font-size: 12px;
  line-height: 1.55;
}

.backup-version-cell {
  min-width: 150px;
}

.backup-version-cell strong {
  display: block;
  color: var(--lkw-blue);
  line-height: 1.3;
}

.backup-version-cell small {
  display: block;
  margin-top: 4px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .log-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .log-filter-actions {
    justify-content: flex-start;
  }
  .log-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .log-hero {
    flex-direction: column;
  }
  .log-hero-meta {
    justify-content: flex-start;
  }
  .log-filter-form,
  .log-summary-grid {
    grid-template-columns: 1fr;
  }
  .log-filter-actions .btn {
    width: 100%;
  }
  .log-detail-grid,
  .log-detail-grid pre {
    min-width: 0;
    max-width: 100%;
  }
}

.log-section-tabs {
  margin-bottom: 18px;
}

.log-summary-grid--audit .log-summary-card:nth-child(2) { border-top-color: #3858e9; }
.log-summary-grid--audit .log-summary-card:nth-child(3) { border-top-color: #f3a712; }
.log-summary-grid--audit .log-summary-card:nth-child(4) { border-top-color: #7c3aed; }

.log-filter-form--audit {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.log-action-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e7ddff;
  background: #f8f5ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.log-actor-cell {
  min-width: 170px;
}

.log-actor-cell strong,
.log-actor-cell small {
  display: block;
}

.log-actor-cell strong {
  color: #243056;
}

.log-actor-cell small {
  margin-top: 4px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 750;
}

.log-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5eaf4;
}

.log-pagination > span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 800;
}

.log-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-pagination strong {
  color: var(--lkw-blue);
  font-size: 13px;
  white-space: nowrap;
}

.log-pagination .is-disabled {
  opacity: .48;
  pointer-events: none;
}

.log-pagination--compact {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .log-filter-form--audit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .log-pagination,
  .log-pagination > div {
    align-items: stretch;
    flex-direction: column;
  }

  .log-pagination .btn {
    width: 100%;
  }
}

/* Beta 131: Lagerplätze übersichtlicher strukturieren */
.warehouse-page-actions {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.warehouse-location-stats .stat {
  min-height: 108px;
}

.warehouse-warning-stat strong {
  color: #b42318;
}

.warehouse-location-overview-card {
  display: grid;
  gap: 18px;
}

.warehouse-location-toolbar {
  align-items: flex-start;
}

.warehouse-location-toolbar h2 {
  margin: 8px 0 4px;
}

.warehouse-view-toggle {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.warehouse-view-toggle .btn.is-active {
  background: var(--lkw-blue);
  border-color: var(--lkw-blue);
  color: #fff;
}

.warehouse-location-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(130px, .8fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: #f8faff;
}

.warehouse-location-filters label {
  min-width: 0;
}

.warehouse-location-filters input,
.warehouse-location-filters select {
  background: #fff;
}

.warehouse-filter-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.warehouse-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 750;
}

.warehouse-list-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f5ff;
  color: var(--lkw-blue);
}

.warehouse-location-table table th,
.warehouse-location-table table td {
  vertical-align: middle;
}

.warehouse-location-path {
  color: #47506e;
  font-weight: 700;
}

.warehouse-location-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.warehouse-location-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 14px 32px rgba(22, 36, 89, .06);
}

.warehouse-location-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.warehouse-location-card-head span:first-child {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--lkw-blue);
  font-weight: 900;
  letter-spacing: .03em;
}

.warehouse-location-card h3 {
  margin: 0;
  color: #151f46;
  font-size: 1.05rem;
}

.warehouse-location-card p {
  margin: 0;
  min-height: 22px;
  color: var(--lkw-muted);
  line-height: 1.45;
  font-weight: 650;
}

.warehouse-location-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.warehouse-location-card-stats div {
  padding: 12px;
  border-radius: 18px;
  background: #f3f6ff;
}

.warehouse-location-card-stats dt {
  margin: 0 0 4px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 800;
}

.warehouse-location-card-stats dd {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.warehouse-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px dashed var(--lkw-border);
  border-radius: 24px;
  background: #fbfcff;
  color: var(--lkw-muted);
  text-align: center;
}

.warehouse-empty-state strong {
  color: var(--lkw-blue);
}

.warehouse-create-modal-card {
  width: min(100%, 980px);
}

.warehouse-create-modal-body {
  overflow: auto;
  padding: 24px;
}

.warehouse-create-location-form {
  align-items: end;
}

@media (max-width: 1500px) {
  .warehouse-location-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .warehouse-filter-search {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .warehouse-location-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .warehouse-location-toolbar,
  .warehouse-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-view-toggle {
    justify-content: stretch;
  }

  .warehouse-view-toggle .btn,
  .warehouse-page-actions .btn {
    width: 100%;
  }

  .warehouse-location-filters {
    grid-template-columns: 1fr;
  }

  .warehouse-filter-search {
    grid-column: auto;
  }

  .warehouse-location-card-grid,
  .warehouse-location-card-stats {
    grid-template-columns: 1fr;
  }
}

.warehouse-location-detail-actions {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.warehouse-location-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 30%),
    #fff;
}

.warehouse-location-detail-hero h2 {
  margin: 8px 0 6px;
  color: var(--lkw-blue);
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.04em;
}

.warehouse-location-detail-hero p {
  margin: 0;
  color: var(--lkw-muted);
  font-weight: 750;
}

.warehouse-location-detail-stats {
  margin-bottom: 18px;
}

.warehouse-location-detail-grid {
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.warehouse-location-info-card,
.warehouse-location-label-card,
.warehouse-location-products-card {
  display: grid;
  gap: 16px;
}

.warehouse-location-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.warehouse-location-detail-list div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #f8faff;
}

.warehouse-location-detail-list dt {
  margin: 0 0 6px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
}

.warehouse-location-detail-list dd {
  margin: 0;
  color: #151f46;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.warehouse-location-note-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.warehouse-location-note-box span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
}

.warehouse-location-note-box p {
  margin: 0;
  color: #273151;
  line-height: 1.55;
  font-weight: 650;
}

.warehouse-location-detail-label-preview {
  min-height: 260px;
  justify-content: center;
}

.warehouse-location-products-head {
  align-items: center;
}

.warehouse-location-products-table .btn {
  white-space: nowrap;
}

.warehouse-location-products-table table th,
.warehouse-location-products-table table td {
  vertical-align: middle;
}

@media (max-width: 980px) {
  .warehouse-location-detail-actions,
  .warehouse-location-detail-hero,
  .warehouse-location-products-head {
    align-items: stretch;
    flex-direction: column;
  }

  .warehouse-location-detail-actions .action-cluster,
  .warehouse-location-products-head .action-cluster {
    width: 100%;
  }

  .warehouse-location-detail-actions .btn,
  .warehouse-location-products-head .btn {
    width: 100%;
  }

  .warehouse-location-detail-list {
    grid-template-columns: 1fr;
  }
}

/* Beta 133: Lieferanten-Detailseite übersichtlicher strukturieren */
.supplier-detail-actions {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.supplier-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(30,42,120,.08), transparent 32%),
    #fff;
}

.supplier-detail-hero h2 {
  margin: 8px 0 6px;
  color: var(--lkw-blue);
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.04em;
}

.supplier-detail-hero p {
  margin: 0;
  color: var(--lkw-muted);
  font-weight: 750;
}

.supplier-detail-stats {
  margin-bottom: 18px;
}

.supplier-warning-stat strong {
  color: #b42318;
}

.supplier-detail-grid-modern {
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.supplier-info-card,
.supplier-purchase-card,
.supplier-products-card {
  display: grid;
  gap: 16px;
}

.supplier-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.supplier-detail-list div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #f8faff;
}

.supplier-detail-list .supplier-detail-list-wide {
  grid-column: 1 / -1;
}

.supplier-detail-list dt {
  margin: 0 0 6px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
}

.supplier-detail-list dd {
  margin: 0;
  color: #151f46;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.supplier-detail-list a {
  color: var(--lkw-blue);
  text-decoration: none;
}

.supplier-detail-list a:hover {
  text-decoration: underline;
}

.supplier-note-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.supplier-note-box span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
}

.supplier-note-box p {
  margin: 0;
  color: #273151;
  line-height: 1.55;
  font-weight: 650;
}

.supplier-purchase-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.supplier-purchase-summary div {
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #f8faff;
}

.supplier-purchase-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
}

.supplier-purchase-summary strong {
  color: var(--lkw-blue);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.supplier-purchase-summary .is-warning strong {
  color: #b42318;
}

.supplier-purchase-actions,
.supplier-products-head {
  align-items: center;
}

.supplier-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supplier-products-table table th,
.supplier-products-table table td {
  vertical-align: middle;
}

.supplier-products-table .btn {
  white-space: nowrap;
}

.supplier-modal-card {
  width: min(100%, 980px);
}

.supplier-modal-body {
  overflow: auto;
  padding: 24px;
}

.supplier-edit-form,
.supplier-product-form {
  align-items: end;
}

@media (max-width: 980px) {
  .supplier-detail-actions,
  .supplier-detail-hero,
  .supplier-products-head {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-detail-actions .action-cluster,
  .supplier-products-head .action-cluster,
  .supplier-purchase-actions {
    width: 100%;
  }

  .supplier-detail-actions .btn,
  .supplier-products-head .btn,
  .supplier-purchase-actions .btn {
    width: 100%;
  }

  .supplier-detail-list,
  .supplier-purchase-summary {
    grid-template-columns: 1fr;
  }
}

/* Beta 134: kompaktere Filter und Shopware-Varianten */
.warehouse-filter-card {
  margin-bottom: 18px;
}

.warehouse-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(190px, .75fr) auto;
  gap: 14px;
  align-items: end;
}

.warehouse-filter-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--lkw-blue);
  font-weight: 850;
}

.warehouse-filter-form input,
.warehouse-filter-form select {
  width: 100%;
  min-height: 46px;
}

.warehouse-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn.ghost {
  color: var(--lkw-blue);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn.ghost:hover {
  background: #f1f4ff;
  border-color: var(--lkw-border);
}

.product-search-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, .55fr) minmax(170px, .45fr) auto;
  gap: 10px;
  align-items: center;
  flex: 1 1 820px;
  min-width: min(100%, 820px);
}

@media (max-width: 1180px) {
  .warehouse-filter-form,
  .product-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .warehouse-filter-actions,
  .product-search-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .warehouse-filter-form,
  .product-search-form {
    grid-template-columns: 1fr;
  }

  .warehouse-filter-actions .btn {
    width: 100%;
  }
}

.product-dossier-modern-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(31, 94, 255, .12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
}

.product-hero-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-hero-main h2 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.product-hero-main .hint a,
.product-context-link {
  color: var(--lkw-blue);
  font-weight: 850;
  text-decoration: none;
}

.product-hero-main .hint a:hover,
.product-context-link:hover {
  text-decoration: underline;
}

.product-hero-badges,
.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.product-hero-side {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 14px;
  min-width: 240px;
}

.product-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.product-context-panel {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border-color: rgba(31, 94, 255, .12);
  background: #fff;
}

.product-context-panel h3 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.product-context-panel p {
  margin: 0;
  color: var(--lkw-muted);
  line-height: 1.55;
  font-weight: 700;
}

.product-variant-spotlight {
  display: grid;
  gap: 18px;
}

.product-variant-summary-grid {
  margin-bottom: 0;
}

.product-variant-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-variant-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 42, 80, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-variant-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 94, 255, .26);
  box-shadow: 0 18px 38px rgba(20, 42, 80, .11);
}

.product-variant-card.needs-review {
  border-color: #f3d48a;
  background: linear-gradient(180deg, #fffdf7 0%, #fff9e8 100%);
}

.product-variant-card.is-current {
  border-color: rgba(31, 94, 255, .34);
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.product-variant-card span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
}

.product-variant-card strong {
  color: var(--lkw-blue);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-variant-card em {
  color: #465270;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-variant-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.product-variant-card b,
.product-variant-card small {
  display: block;
  min-width: 0;
}

.product-variant-card b {
  color: #17234c;
  font-size: 18px;
}

.product-variant-card small {
  color: var(--lkw-muted);
  font-size: 11px;
  font-weight: 800;
}

.product-variant-card mark {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3d6;
  color: #946200;
  font-size: 12px;
  font-weight: 900;
}

.product-variant-card mark.ok {
  background: #eaf7ef;
  color: #26724d;
}

.product-variant-table-details {
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
}

.product-variant-table-details summary {
  cursor: pointer;
  color: var(--lkw-blue);
  font-weight: 850;
}

.product-variant-table-details .table-wrap {
  margin-top: 14px;
}

.product-variant-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(126, 142, 177, .18);
  border-radius: 8px;
  background: rgba(248, 250, 252, .74);
}

.product-variant-options-form {
  margin-top: 18px;
}

.product-parent-highlight {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(31, 94, 255, .14);
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.product-parent-highlight span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
}

.product-parent-highlight strong {
  color: var(--lkw-blue);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.product-parent-highlight p {
  margin: 0;
  color: #273151;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .product-context-grid,
  .product-variant-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-dossier-modern-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .product-hero-side {
    justify-items: stretch;
    min-width: 0;
  }

  .product-hero-actions .btn {
    width: 100%;
  }

  .product-context-grid,
  .product-variant-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Beta 139: Varianten-/Lagerprüfungen */
.warehouse-filter-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dashboard-list-item small {
  display: block;
  margin-top: 4px;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 750;
}

.procurement-top-grid {
  display: grid;
  align-items: stretch;
}

.procurement-worklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 35, 76, .07);
}

.procurement-worklist-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--lkw-border);
  color: #17234c;
  text-decoration: none;
}

.procurement-worklist-item:last-child {
  border-right: 0;
}

.procurement-worklist-item:hover {
  background: #f7f9ff;
}

.procurement-worklist-item.is-active {
  background: #f5f8ff;
  box-shadow: inset 0 -3px 0 var(--lkw-blue);
}

.procurement-worklist-item span {
  font-weight: 850;
}

.procurement-worklist-item strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--lkw-blue);
  font-size: 24px;
}

.procurement-worklist-item small {
  overflow: hidden;
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.procurement-flow-card,
.procurement-create-card,
.procurement-filter-card,
.procurement-suggestions-card {
  border: 1px solid rgba(31, 94, 255, .12);
  box-shadow: 0 18px 46px rgba(23, 35, 76, .08);
}

.procurement-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.procurement-flow-steps a {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  color: inherit;
  text-decoration: none;
}

.procurement-flow-steps a:hover {
  border-color: rgba(31, 94, 255, .3);
  transform: translateY(-1px);
}

.procurement-flow-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(31, 94, 255, .1);
  color: var(--lkw-blue);
  font-weight: 900;
}

.procurement-flow-steps strong {
  color: #17234c;
  font-size: 16px;
}

.procurement-flow-steps small {
  color: var(--lkw-muted);
  font-weight: 800;
}

.procurement-filter-actions,
.procurement-supplier-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.procurement-supplier-filter {
  margin-top: 14px;
}

.procurement-supplier-filter label {
  min-width: min(100%, 320px);
}

.btn.active-filter {
  background: var(--lkw-blue);
  color: #fff;
  border-color: var(--lkw-blue);
}

.procurement-create-card .purchase-create-form,
.procurement-create-card .goods-receipt-create-form,
.procurement-suggestions-card .purchase-suggestion-form {
  display: grid;
  gap: 12px;
}

.procurement-suggestions-card table small,
.procurement-filter-card small {
  color: var(--lkw-muted);
  font-weight: 750;
}

.purchase-suggestion-selection { display: grid; gap: 12px; }
.purchase-supplier-groups { display: grid; gap: 22px; margin-top: 18px; }
.purchase-supplier-group { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--lkw-border); }
.purchase-supplier-group:first-child { padding-top: 0; border-top: 0; }
.purchase-supplier-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.purchase-supplier-group-head h3 { margin: 0 0 3px; font-size: 18px; }
.purchase-suggestion-toolbar { display: flex; justify-content: flex-end; }
.purchase-suggestion-help { margin: 0; }
.purchase-suggestion-check { width: 42px; text-align: center; }
.purchase-suggestion-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lkw-blue); }
.purchase-suggestion-quantity { width: 92px; min-width: 76px; padding: 9px 10px; border-radius: 10px; }
.purchase-suggestion-quantity:disabled { background: #f3f4f8; color: var(--lkw-muted); }
.purchase-planning-cell { min-width: 190px; }
.purchase-planning-cell .status-badge { margin-left: 6px; }
.purchase-planning-cell small { display: block; margin-top: 5px; color: var(--lkw-muted); line-height: 1.35; white-space: nowrap; }
.purchase-price-cell { min-width: 150px; }
.purchase-price-cell small, .purchase-price-cell a { display: block; margin-top: 4px; }
.purchase-price-cell .status-badge { margin-top: 6px; }
.purchase-price-comparison { font-size: 12px; color: var(--lkw-muted); white-space: nowrap; }
.purchase-price-comparison.is-relevant { color: #b91c1c; font-weight: 800; }
.purchase-list-head-actions { display: flex; align-items: center; gap: 10px; }
.purchase-create-modal-card { width: min(100%, 720px); }
.purchase-create-modal-body { overflow: auto; padding: 24px; }
.purchase-create-modal-body .purchase-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.purchase-create-modal-body .purchase-create-form .full { grid-column: 1 / -1; }
.purchase-create-modal-body textarea { width: 100%; resize: vertical; }
.procurement-list-table-wrap { overflow-x: visible; }
.procurement-list-table { table-layout: fixed; }
.procurement-list-table td:first-child,
.procurement-list-table td:nth-child(2) { overflow-wrap: anywhere; }
.procurement-list-table th:last-child,
.procurement-list-table td:last-child { width: 104px; text-align: right; }
.procurement-list-meta { display: block; margin-top: 5px; color: var(--lkw-muted); font-size: 12px; font-weight: 650; line-height: 1.4; }
.procurement-list-meta a { font-weight: 750; }
.procurement-list-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.procurement-list-flags:empty { display: none; }
.procurement-empty-state { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lkw-border); }
.procurement-empty-state-standalone { margin-top: 0; padding-top: 0; border-top: 0; }
.procurement-empty-state > div { display: grid; gap: 4px; min-width: 0; }
.procurement-empty-state strong { color: var(--lkw-blue); font-size: 14px; }
.procurement-empty-state span { color: var(--lkw-muted); font-size: 13px; line-height: 1.45; }
.procurement-empty-state .btn { flex: 0 0 auto; }

@media (max-width: 1180px) {
  .procurement-stats,
  .procurement-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .procurement-empty-state { align-items: flex-start; flex-direction: column; }
  .procurement-empty-state .btn { width: 100%; }
  .procurement-list-table-wrap { overflow: visible; }
  .procurement-list-table { display: block; min-width: 0; }
  .procurement-list-table thead { display: none; }
  .procurement-list-table tbody { display: grid; gap: 12px; }
  .procurement-list-table tr { display: grid; grid-template-columns: 1fr; padding: 8px 14px; border: 1px solid var(--lkw-border); border-radius: 8px; background: #fff; }
  .procurement-list-table td { display: grid; grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--lkw-border); overflow-wrap: anywhere; }
  .procurement-list-table td::before { content: attr(data-label); color: var(--lkw-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .procurement-list-table td:last-child { width: auto; border-bottom: 0; text-align: left; }
  .procurement-list-table td:last-child .btn { width: 100%; }
  .purchase-suggestion-table { display: block; min-width: 0; }
  .purchase-suggestion-table thead { display: none; }
  .purchase-suggestion-table tbody { display: grid; gap: 12px; }
  .purchase-suggestion-table tr { display: grid; grid-template-columns: 1fr; padding: 8px 14px; border: 1px solid var(--lkw-border); border-radius: 8px; background: #fff; }
  .purchase-suggestion-table td { display: grid; grid-template-columns: minmax(106px, .42fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--lkw-border); text-align: left; }
  .purchase-suggestion-table td::before { content: attr(data-label); color: var(--lkw-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
  .purchase-suggestion-table td:last-child { border-bottom: 0; }
  .purchase-suggestion-table .purchase-suggestion-check { width: auto; text-align: left; }
  .purchase-suggestion-table .purchase-suggestion-quantity { width: 100%; }
  .purchase-create-modal-body .purchase-create-form { grid-template-columns: 1fr; }
  .purchase-suggestion-toolbar .btn { width: 100%; }
  .purchase-record-tabs { margin-inline: -4px; }
  .purchase-record-tabs button { padding-inline: 11px; }
  .purchase-record-modal-body,
  .goods-receipt-record-modal-body,
  .purchase-create-modal-body { padding: 16px; }
  .purchase-primary-action { align-items: stretch; flex-direction: column; }
  .purchase-primary-action > form,
  .purchase-primary-action > form .btn,
  .purchase-primary-action > .btn { width: 100%; }
  .purchase-action-menu { align-self: flex-end; }
  .purchase-action-menu > div { width: min(280px, calc(100vw - 44px)); }
  .procurement-stats,
  .procurement-flow-steps {
    grid-template-columns: 1fr;
  }

  .procurement-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .procurement-filter-actions .btn,
  .procurement-supplier-filter .btn {
    width: 100%;
  }
}

.procurement-top-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.procurement-flow-card,
.procurement-create-card,
.procurement-filter-card,
.procurement-suggestions-card {
  overflow: hidden;
}

.procurement-create-card.import-card {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 22px;
}

.procurement-create-card > div,
.procurement-create-card form,
.procurement-create-card label,
.procurement-create-card input,
.procurement-create-card select {
  min-width: 0;
}

.procurement-create-card h2 {
  line-height: 1.12;
}

.procurement-create-card .hint {
  max-width: 34rem;
}

.procurement-create-card .purchase-create-form,
.procurement-create-card .goods-receipt-create-form {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.procurement-create-card .purchase-create-form label:first-of-type {
  grid-column: 1 / -1;
}

.procurement-create-card .purchase-create-form .btn,
.procurement-create-card .goods-receipt-create-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 210px;
}

.procurement-create-card .goods-receipt-create-form input,
.procurement-create-card .purchase-create-form input,
.procurement-create-card .purchase-create-form select {
  min-height: 48px;
}

.procurement-flow-steps a {
  min-width: 0;
  word-break: normal;
}

.procurement-flow-steps strong,
.procurement-flow-steps small {
  line-height: 1.35;
}

.procurement-filter-card .card-head-row,
.procurement-suggestions-card .card-head-row {
  align-items: center;
}

.procurement-filter-actions .btn {
  white-space: nowrap;
}

.procurement-supplier-filter {
  align-items: end;
}

.procurement-supplier-filter label {
  flex: 1 1 320px;
}

@media (max-width: 1280px) {
  .procurement-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .procurement-worklist {
    grid-template-columns: 1fr;
  }

  .procurement-worklist-item {
    border-right: 0;
    border-bottom: 1px solid var(--lkw-border);
  }

  .procurement-worklist-item:last-child {
    border-bottom: 0;
  }

  .procurement-create-card.import-card,
  .procurement-create-card .purchase-create-form,
  .procurement-create-card .goods-receipt-create-form {
    grid-template-columns: 1fr;
  }

  .procurement-create-card .purchase-create-form .btn,
  .procurement-create-card .goods-receipt-create-form .btn {
    justify-self: stretch;
    min-width: 0;
    width: 100%;
  }

  .procurement-filter-card .card-head-row,
  .procurement-suggestions-card .card-head-row {
    align-items: stretch;
  }

  .procurement-filter-actions .btn {
    white-space: normal;
  }
}

/* Beta 142: Wareneingang und Einkauf */
.procurement-action-card {
  display: grid;
  grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.procurement-action-heading {
  display: grid;
  gap: 8px;
  align-content: start;
}

.procurement-action-heading h2 {
  margin: 0;
  line-height: 1.16;
}

.procurement-action-form {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(31, 94, 255, .1);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.procurement-action-form label {
  min-width: 0;
}

.procurement-action-form input,
.procurement-action-form select {
  min-width: 0;
  width: 100%;
  min-height: 48px;
}

.procurement-action-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 220px;
}

.goods-receipt-modern-hero {
  align-items: center;
}

.goods-receipt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.goods-receipt-detail-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.goods-receipt-workflow-card,
.goods-receipt-items-card,
.goods-receipt-booking-card,
.goods-receipt-data-card,
.goods-receipt-add-card {
  border: 1px solid rgba(31, 94, 255, .12);
  box-shadow: 0 18px 46px rgba(23, 35, 76, .08);
}

.goods-receipt-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.goods-receipt-workflow-steps > div {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--lkw-border);
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
}

.goods-receipt-workflow-steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(31, 94, 255, .1);
  color: var(--lkw-blue);
  font-weight: 900;
}

.goods-receipt-workflow-steps .is-ready span {
  background: rgba(39, 174, 96, .12);
  color: #167a41;
}

.goods-receipt-workflow-steps strong {
  color: #17234c;
  font-size: 15px;
}

.goods-receipt-workflow-steps small {
  color: var(--lkw-muted);
  font-weight: 800;
}

.goods-receipt-check-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.goods-receipt-priority-checks { display: grid; gap: 8px; margin-top: 16px; }
.goods-receipt-priority-checks a { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1fr); gap: 14px; padding: 11px 13px; border-left: 3px solid #d97706; background: #fffaf0; color: inherit; }
.goods-receipt-priority-checks a strong { color: #8a4b00; }
.goods-receipt-priority-checks a span { color: var(--lkw-muted); font-size: 13px; }
.goods-receipt-priority-checks.is-ready a { border-left-color: var(--lkw-success); background: #effaf4; }
.goods-receipt-priority-checks.is-ready a strong { color: var(--lkw-success); }
.goods-receipt-compact-data-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.goods-receipt-items-head-actions { display: flex; align-items: center; gap: 10px; }
.goods-receipt-record-modal-card { width: min(100%, 820px); }
.goods-receipt-record-modal-body { overflow: auto; padding: 24px; }
.goods-receipt-record-modal-body .form-grid { max-width: none; }
.goods-receipt-deviation-confirm { flex-basis: 100%; }

.goods-receipt-linked-items {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.goods-receipt-linked-items > div {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fff;
}

.goods-receipt-linked-items span,
.goods-receipt-linked-items small {
  color: var(--lkw-muted);
  font-weight: 750;
}

.goods-receipt-entry-grid {
  align-items: stretch;
}

.goods-receipt-head-form,
.goods-receipt-add-form {
  gap: 14px;
}

.goods-receipt-add-form select,
.goods-receipt-add-form input,
.goods-receipt-add-form textarea,
.goods-receipt-head-form input,
.goods-receipt-head-form textarea {
  min-width: 0;
}

.goods-receipt-item-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.goods-receipt-item-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.goods-receipt-item-card.has-deviation {
  border-color: rgba(245, 158, 11, .38);
  background: linear-gradient(135deg, #fff 0%, #fff8eb 100%);
}

.goods-receipt-item-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.goods-receipt-item-main > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.goods-receipt-item-main strong {
  color: #17234c;
  font-size: 16px;
}

.goods-receipt-item-main span,
.goods-receipt-item-main small {
  color: var(--lkw-muted);
  font-weight: 750;
}

.goods-receipt-item-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.goods-receipt-item-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.goods-receipt-item-facts > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
}

.goods-receipt-item-facts span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 800;
}

.goods-receipt-item-facts strong {
  color: #17234c;
  font-size: 14px;
}

.goods-receipt-item-edit-grid {
  display: grid;
  grid-template-columns: minmax(90px, .7fr) minmax(90px, .7fr) minmax(220px, 1.4fr) minmax(180px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}

.goods-receipt-item-edit-grid label,
.goods-receipt-item-edit-grid input,
.goods-receipt-item-edit-grid select {
  min-width: 0;
}

.goods-receipt-item-edit-grid .wide {
  min-width: 0;
}

.goods-receipt-item-remove {
  display: flex;
  justify-content: flex-end;
}

.goods-receipt-booking-card .booking-check-form {
  margin-top: 16px;
}

@media (max-width: 1380px) {
  .goods-receipt-item-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goods-receipt-item-edit-grid .btn {
    justify-self: start;
  }
}

@media (max-width: 1180px) {
  .procurement-action-card {
    grid-template-columns: 1fr;
  }

  .goods-receipt-detail-stats,
  .goods-receipt-workflow-steps,
  .goods-receipt-item-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .procurement-action-form,
  .goods-receipt-detail-stats,
  .goods-receipt-workflow-steps,
  .goods-receipt-item-facts,
  .goods-receipt-item-edit-grid {
    grid-template-columns: 1fr;
  }

  .procurement-action-form .btn {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .goods-receipt-item-main {
    display: grid;
  }

  .goods-receipt-item-badges {
    justify-content: flex-start;
  }

  .goods-receipt-priority-checks a,
  .goods-receipt-compact-data-list {
    grid-template-columns: 1fr;
  }
}

.order-workspace-hero,
.order-dossier-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.order-workspace-hero h2,
.order-dossier-hero h2 {
  margin: 8px 0 6px;
}

.order-workspace-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  min-width: min(100%, 760px);
}

.order-workspace-stats a {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.order-workspace-stats a:hover {
  transform: translateY(-1px);
  border-color: #dbe1ff;
  background: #f7f9ff;
}

.order-workspace-stats span,
.muted-small {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}

.order-workspace-stats strong {
  color: var(--lkw-blue);
  font-size: 25px;
  line-height: 1;
}

.order-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.order-filter-form label,
.order-card-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--lkw-blue);
}

.order-filter-form select,
.order-card-form select,
.shopware-action-list select {
  width: 100%;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--lkw-text);
}

.order-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 360px;
}

.orders-table td {
  vertical-align: top;
}

.order-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-process-card {
  display: grid;
  gap: 18px;
}

.order-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.order-process-step {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fbfcff;
}

.order-process-step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf0ff;
  color: var(--lkw-blue);
  font-weight: 900;
}

.order-process-step strong {
  color: var(--lkw-blue);
}

.order-process-step small {
  color: var(--lkw-muted);
  font-weight: 700;
}

.order-process-step.is-active {
  border-color: #d9defa;
  background: #f7f9ff;
}

.order-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.order-card-form {
  display: grid;
  gap: 14px;
}

.order-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shopware-action-list {
  display: grid;
  gap: 12px;
}

.shopware-action-list form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
}

.shopware-action-list form:has(input[type="text"]) {
  grid-template-columns: minmax(150px, .65fr) minmax(150px, .65fr) minmax(220px, 1fr) auto;
}

.shopware-action-list strong {
  display: block;
  color: var(--lkw-blue);
  margin-bottom: 4px;
}

.shopware-action-list span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}

.order-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--lkw-border);
  background: #fbfcff;
}

.order-alert.is-warning {
  background: #fff8f1;
  border-color: #ffd7b8;
  color: #8a5100;
}

.order-alert.is-info {
  background: #eef8ff;
  border-color: #b9ddf5;
  color: #15557f;
}

.order-line-card-grid {
  display: grid;
  gap: 12px;
}

.order-line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fbfcff;
}

.order-line-card.is-warning {
  border-color: #ffe4a3;
  background: #fffaf0;
}

.order-line-card.is-adjustment {
  border-style: dashed;
  background: #f7f8fc;
}

.order-line-main,
.order-line-status {
  display: grid;
  gap: 8px;
}

.order-line-main strong {
  color: var(--lkw-blue);
}

.order-line-main small {
  color: var(--lkw-muted);
  font-weight: 700;
}

.order-line-status {
  justify-items: end;
  min-width: 230px;
}

.order-task-list,
.order-event-timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.order-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
}

.order-task-item.is-done {
  opacity: .72;
  background: #f7f9ff;
}

.order-task-item strong {
  color: var(--lkw-blue);
}

.order-task-item span,
.order-task-item p {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 0;
}

.order-event-timeline {
  position: relative;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.order-event-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

.order-event-item > span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--lkw-blue);
  margin-top: 6px;
  box-shadow: 0 0 0 5px #edf0ff;
}

.order-event-item > div {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  padding: 13px;
  background: #fbfcff;
}

.order-event-item strong {
  color: var(--lkw-blue);
}

.order-event-item small,
.order-event-item p,
.order-event-item em {
  display: block;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 5px;
}

@media (max-width: 1180px) {
  .order-workspace-hero,
  .order-dossier-hero {
    flex-direction: column;
  }

  .order-workspace-stats,
  .order-filter-form,
  .order-process-steps,
  .order-management-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shopware-action-list form,
  .shopware-action-list form:has(input[type="text"]) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .order-workspace-stats,
  .order-filter-form,
  .order-process-steps,
  .order-management-grid,
  .order-form-row,
  .order-line-card,
  .order-task-item {
    grid-template-columns: 1fr;
  }

  .order-line-status {
    justify-items: start;
    min-width: 0;
  }

  .order-filter-actions,
  .order-page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-filter-actions .btn,
  .order-page-actions .btn {
    width: 100%;
  }
}

/* Bestellakte: ruhigere Struktur ab 0.1.0-beta.145 */
.order-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.order-tabs {
  margin: 18px 0 20px;
  padding: 12px;
}

.order-dossier-hero {
  margin-bottom: 0;
}

.order-stat-grid {
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.order-stat-grid > .card,
.order-process-step,
.order-workspace-stats a {
  min-height: 100%;
}

.order-process-card {
  margin-bottom: 20px;
}

.order-process-steps {
  align-items: stretch;
}

.order-process-step {
  min-height: 132px;
}

.order-dossier-grid {
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.order-dossier-grid > .card,
.order-management-grid.order-dossier-grid > .card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.order-dossier-grid > .card > .card-head-row {
  flex-shrink: 0;
}

.order-overview-grid-panels .quality-list,
.order-quality-list {
  margin-bottom: 14px;
}

.compact-info-list {
  margin-top: 0;
}

.order-shop-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-payment-summary,
.order-payment-history,
.order-payment-activity {
  margin-bottom: 22px;
}

.order-payment-summary {
  border-top: 4px solid var(--lkw-border);
}

.order-payment-summary.is-positive { border-top-color: var(--lkw-success); }
.order-payment-summary.is-open { border-top-color: #d97706; }
.order-payment-summary.is-authorized { border-top-color: var(--lkw-blue-2); }
.order-payment-summary.is-refund { border-top-color: var(--lkw-pink); }
.order-payment-summary.is-negative { border-top-color: var(--lkw-error); }

.order-payment-history .card-head-row form {
  flex: 0 0 auto;
}

.order-payment-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.order-payment-facts > div,
.order-payment-entry-facts > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: var(--lkw-bg);
}

.order-payment-facts span,
.order-payment-entry-facts span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 5px;
}

.order-payment-facts strong,
.order-payment-entry-facts strong {
  display: block;
  overflow-wrap: anywhere;
}

.order-payment-facts > .is-positive {
  border-color: #bde8d0;
  background: #effaf4;
}

.order-payment-facts > .is-positive strong { color: var(--lkw-success); }

.order-payment-facts > .is-open {
  border-color: #ffd0c7;
  background: #fff5f2;
}

.order-payment-facts > .is-open strong { color: var(--lkw-error); }

.order-payment-facts > .is-authorized {
  border-color: #cfd6ff;
  background: #f3f5ff;
}

.order-payment-facts > .is-authorized strong { color: var(--lkw-blue-2); }

.order-payment-facts > .is-refund {
  border-color: #ffd0df;
  background: #fff3f7;
}

.order-payment-facts > .is-refund strong { color: #a93661; }

.order-payment-list {
  margin-top: 20px;
  border-top: 1px solid var(--lkw-border);
}

.order-payment-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--lkw-border);
  border-left: 3px solid transparent;
  padding-left: 14px;
}

.order-payment-entry.is-positive { border-left-color: var(--lkw-success); }
.order-payment-entry.is-open { border-left-color: #d97706; }
.order-payment-entry.is-authorized { border-left-color: var(--lkw-blue-2); }
.order-payment-entry.is-refund { border-left-color: var(--lkw-pink); }
.order-payment-entry.is-negative { border-left-color: var(--lkw-error); }

.order-payment-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-payment-entry-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.order-payment-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.order-payment-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-refund-modal-card,
.payment-authorization-modal-card,
.payment-request-modal-card {
  width: min(680px, calc(100vw - 32px));
}

.payment-refund-modal-body,
.payment-authorization-modal-body,
.payment-request-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 24px;
}

.payment-refund-overview,
.payment-authorization-overview,
.payment-request-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.payment-refund-overview > div,
.payment-authorization-overview > div,
.payment-request-overview > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: var(--lkw-bg);
}

.payment-refund-overview span,
.payment-authorization-overview span,
.payment-request-overview span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .82rem;
}

.payment-refund-overview strong,
.payment-authorization-overview strong,
.payment-request-overview strong {
  display: block;
  overflow-wrap: anywhere;
}

.payment-refund-overview .is-refund {
  border-color: #ffd0df;
  background: #fff3f7;
}

.payment-refund-overview .is-refund strong { color: #a93661; }

.payment-refund-form,
.payment-authorization-form,
.payment-request-form,
.manual-payment-form {
  gap: 16px;
}

.manual-payment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-payment-amount-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.manual-payment-amount-input span {
  color: var(--lkw-blue);
  font-weight: 800;
}

.payment-request-notice {
  margin: 0 0 20px;
}

.payment-request-link-field input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88rem;
}

.payment-request-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-authorization-notice {
  margin: 0 0 20px;
}

.payment-authorization-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-authorization-mode legend,
.payment-authorization-items-title {
  width: 100%;
  margin-bottom: 2px;
  color: var(--lkw-blue);
  font-weight: 800;
}

.payment-authorization-mode label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: var(--lkw-bg);
}

.payment-authorization-mode input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.payment-authorization-items {
  display: grid;
  gap: 8px;
}

.payment-authorization-items[hidden] {
  display: none;
}

.payment-authorization-items > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
}

.payment-authorization-items > label span,
.payment-authorization-items > label strong,
.payment-authorization-items > label small {
  min-width: 0;
}

.payment-authorization-items > label span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.payment-authorization-items > label > small {
  white-space: nowrap;
  color: var(--muted);
}

.payment-refund-amount-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.payment-refund-amount-field strong {
  color: var(--lkw-blue);
}

.payment-refund-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.payment-refund-confirmation input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.payment-refund-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.order-payment-entry-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.order-payment-alert {
  margin-top: 14px;
}

.order-payment-technical {
  margin-top: 14px;
}

.order-payment-technical summary {
  width: fit-content;
  cursor: pointer;
  color: var(--lkw-blue);
  font-weight: 700;
}

.order-payment-technical dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 14px 0 0;
}

.order-payment-technical dl > div {
  min-width: 0;
}

.order-payment-technical dt {
  color: var(--muted);
  font-size: .82rem;
}

.order-payment-technical dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.order-payment-empty {
  margin-top: 18px;
}

.order-payment-action-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-payment-action-event-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-payment-action-event-head .status-badge {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .order-payment-facts,
  .order-payment-entry-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .order-payment-summary .card-head-row,
  .order-payment-history .card-head-row,
  .order-payment-entry-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-payment-entry-actions,
  .payment-refund-actions,
  .payment-request-result-actions,
  .order-payment-summary-actions {
    justify-content: stretch;
  }

  .order-payment-action-event-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-payment-entry-actions .btn,
  .payment-refund-actions .btn {
    flex: 1 1 0;
  }

  .payment-refund-overview,
  .payment-authorization-overview,
  .payment-request-overview,
  .manual-payment-fields {
    grid-template-columns: 1fr;
  }

  .payment-authorization-mode {
    display: grid;
  }

  .payment-authorization-items > label {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .payment-authorization-items > label > small {
    grid-column: 2;
  }

  .order-payment-history .card-head-row form,
  .order-payment-history .card-head-row .btn,
  .payment-request-result-actions .btn {
    width: 100%;
  }

  .order-payment-facts,
  .order-payment-entry-facts,
  .order-payment-technical dl {
    grid-template-columns: 1fr;
  }
}

.order-management-card .order-card-form,
.order-management-card .shopware-action-list,
.order-management-card .order-task-list {
  flex: 1;
}

.order-task-list.without-form-gap {
  margin-top: 0;
}

.shopware-action-list form,
.shopware-action-list form:has(input[type="text"]) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.shopware-action-list form.has-fields {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr) auto;
}

.shopware-action-text {
  min-width: 0;
}

.shopware-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.shopware-action-fields input {
  min-width: 0;
}

.order-line-card-grid {
  gap: 14px;
}

.order-line-card {
  align-items: stretch;
}

.order-line-main,
.order-line-status {
  align-self: center;
}

.order-line-status .mini-progress {
  width: 180px;
}

.order-history-card .order-event-timeline,
.order-event-timeline.is-wide {
  max-height: none;
  margin-top: 0;
}

.order-filter-card {
  margin-bottom: 20px;
}

.order-filter-form {
  align-items: end;
}

.order-filter-form label {
  min-width: 0;
}

.order-filter-actions .btn {
  min-height: 46px;
}

.order-workspace-stats a {
  align-content: space-between;
  min-height: 92px;
}

.orders-table .btn {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .shopware-action-list form.has-fields {
    grid-template-columns: 1fr;
  }

  .shopware-action-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .order-tabs-links {
    display: none;
  }

  .order-tabs-select {
    display: grid;
  }

  .shopware-action-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .order-page-actions,
  .order-tabs-select,
  .order-filter-actions,
  .shopware-action-list form,
  .shopware-action-list form.has-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-page-actions .btn,
  .order-tabs-select .btn,
  .order-filter-actions .btn,
  .shopware-action-list .btn {
    width: 100%;
  }
}


/* Order workspace refinements */
.order-status-grid {
  margin-top: 18px;
}

.order-status-grid .card.stat {
  min-height: 118px;
  justify-content: center;
}

.order-process-card,
.order-payment-flow-card,
.order-overview-grid-panels {
  margin-top: 18px;
}

.order-overview-grid-panels {
  align-items: stretch;
}

.order-overview-grid-panels > .card {
  min-height: 260px;
}

.status-stack.is-compact {
  max-width: 260px;
  gap: 6px;
}

.status-stack.is-compact .badge,
.status-stack.is-compact .status-badge {
  white-space: nowrap;
}

.orders-table td:nth-child(4) {
  min-width: 190px;
}

.orders-table td:nth-child(5) {
  min-width: 170px;
}

.order-external-fulfillment {
  margin-top: 18px;
}

.order-external-fulfillment strong,
.order-external-fulfillment span {
  display: block;
}

.order-external-fulfillment span {
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .orders-table td:nth-child(4),
  .orders-table td:nth-child(5) {
    min-width: 0;
  }

  .status-stack.is-compact {
    max-width: none;
  }
}

.packdesk-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.packdesk-hero h2 {
  margin: 8px 0 6px;
}

.packdesk-release-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  min-width: min(100%, 820px);
}

.packdesk-release-stats a {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.packdesk-release-stats a:hover,
.packdesk-release-stats a.active {
  transform: translateY(-1px);
  border-color: #dbe1ff;
  background: #f7f9ff;
}

.packdesk-release-stats span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}

.packdesk-release-stats strong {
  color: var(--lkw-blue);
  font-size: 25px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .packdesk-hero {
    flex-direction: column;
  }

  .packdesk-release-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .packdesk-release-stats {
    grid-template-columns: 1fr;
  }
}

/* Beta 152: Einkauf direkt in der Produktakte */
.product-context-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-procurement-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.product-procurement-summary .stat {
  min-height: 118px;
}

@media (max-width: 1280px) {
  .product-context-grid,
  .product-procurement-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-context-grid,
  .product-procurement-summary {
    grid-template-columns: 1fr;
  }
}

.work-check-center {
  gap: 26px;
}

.work-check-hero {
  background:
    radial-gradient(circle at 84% 10%, rgba(30, 42, 120, .13), transparent 30%),
    radial-gradient(circle at 5% 8%, rgba(42, 147, 255, .12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 62%, #f7fbff 100%);
}

.work-check-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-check-summary-card {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(30, 42, 120, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.work-check-summary-card:hover,
.work-check-summary-card.is-active {
  transform: translateY(-2px);
  border-color: #d7dcf1;
  box-shadow: 0 22px 48px rgba(30, 42, 120, .12);
}

.work-check-summary-card span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.work-check-summary-card strong {
  color: var(--lkw-blue);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.05em;
}

.work-check-summary-card em {
  color: #465170;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.work-check-board {
  display: grid;
  gap: 18px;
}

.work-check-board-head {
  align-items: flex-start;
}

.work-check-area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-check-area-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  background: #fff;
  color: #273052;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.work-check-area-tabs a.is-active,
.work-check-area-tabs a:hover {
  border-color: #cfd6f0;
  background: #f6f8ff;
  color: var(--lkw-blue);
}

.work-check-area-tabs strong {
  min-width: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--lkw-blue);
  font-size: 12px;
}

.work-check-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.work-check-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 900;
}

.work-check-filter-form input,
.work-check-filter-form select {
  min-height: 44px;
}

.work-check-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.work-check-section {
  display: grid;
  gap: 16px;
}

.work-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-check-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 42, 120, .07);
}

.work-check-card--danger {
  border-color: #ffcfc6;
  background: linear-gradient(180deg, #fff7f5, #fff);
}

.work-check-card--warning {
  border-color: #ffe4a3;
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.work-check-card.is-overdue {
  box-shadow: 0 18px 44px rgba(210, 75, 52, .12);
}

.work-check-card.is-completed {
  border-color: #cfe9da;
  background: linear-gradient(180deg, #f7fff9, #fff);
}

.work-check-card-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
}

.work-check-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef1ff, #fff4f8);
  font-size: 25px;
}

.work-check-card-content {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.work-check-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.work-check-card h3 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.work-check-card p {
  margin: 0;
  color: #465170;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.work-check-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 900;
}

.work-check-status--in_progress {
  background: #e8f2ff;
  color: #0e5aa8;
}

.work-check-status--deferred {
  background: #f2f3f7;
  color: #5b647a;
}

.work-check-status--completed {
  background: #e9f8ee;
  color: #267247;
}

.work-check-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.work-check-meta div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e8ecf8;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.work-check-meta span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
}

.work-check-meta strong {
  color: #273052;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.work-check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.work-check-actions form {
  margin: 0;
}

.work-check-task-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7ebf7;
  border-radius: 22px;
  background: rgba(248,250,255,.78);
}

.work-check-task-form .task-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-check-task-form label,
.work-check-task-form .task-note-field {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 900;
}

.work-check-task-form textarea {
  resize: vertical;
}

.work-check-empty {
  text-align: center;
}

@media (max-width: 1280px) {
  .work-check-summary-grid,
  .work-check-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-check-filter-actions {
    justify-content: flex-start;
  }

  .work-check-task-form .task-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .work-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .work-check-summary-grid,
  .work-check-filter-form,
  .work-check-meta,
  .work-check-task-form .task-form-grid {
    grid-template-columns: 1fr;
  }

  .work-check-card-main {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .work-check-card-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

/* Beta 155: Benutzer, Rollen und Arbeitsbereiche übersichtlicher darstellen */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.workspace-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 245px;
}

.workspace-card-section {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.workspace-card-section strong {
  color: var(--lkw-blue);
}

.workspace-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.workspace-badge-list.compact {
  max-width: 260px;
}

.workspace-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(30, 42, 120, .14);
  background: #f5f7ff;
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.workspace-badge.is-muted {
  border-color: var(--lkw-border);
  background: #f7f8fb;
  color: var(--lkw-muted);
}

.role-card .workspace-badge-list {
  margin-top: 2px;
}

.user-access-table th:nth-child(3),
.user-access-table td:nth-child(3) {
  min-width: 220px;
}

@media (max-width: 980px) {
  .workspace-card {
    min-height: 0;
  }

  .workspace-badge-list.compact {
    max-width: none;
  }
}

.dashboard-workspace-panel {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(30, 42, 120, .08), transparent 30%),
    linear-gradient(135deg, #ffffff, #fbfcff);
}

.dashboard-workspace-head {
  align-items: flex-start;
}

.dashboard-workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-workspace-card {
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: 230px;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(30, 42, 120, .06);
  position: relative;
  overflow: hidden;
}

.dashboard-workspace-card::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b9c0d9;
}

.dashboard-workspace-card.ok {
  border-color: #cfe9da;
  background: linear-gradient(180deg, #f8fffb, #ffffff);
}

.dashboard-workspace-card.ok::before {
  background: var(--lkw-success);
}

.dashboard-workspace-card.warning {
  border-color: #ffe4a3;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.dashboard-workspace-card.warning::before {
  background: #c57a00;
}

.dashboard-workspace-card.danger {
  border-color: #ffcfc6;
  background: linear-gradient(180deg, #fff6f4, #ffffff);
}

.dashboard-workspace-card.danger::before {
  background: var(--lkw-error);
}

.dashboard-workspace-main {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.dashboard-workspace-main span {
  color: var(--lkw-blue);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.dashboard-workspace-main strong {
  color: #465170;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  padding-right: 12px;
}

.dashboard-workspace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-workspace-metrics span {
  min-height: 64px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(30, 42, 120, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--lkw-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.dashboard-workspace-metrics strong {
  color: var(--lkw-blue);
  font-size: 22px;
  line-height: 1;
}

.dashboard-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-workspace-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--lkw-blue);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-workspace-actions a:hover {
  border-color: #cbd2ed;
  background: #f8f9ff;
}

.dashboard-my-worklist {
  display: grid;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff, #fbfcff);
}

.dashboard-worklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-worklist-item {
  min-height: 116px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #ffffff;
  text-decoration: none;
}

.dashboard-worklist-item span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-worklist-item strong {
  color: var(--lkw-blue);
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-worklist-item em {
  color: #465170;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.dashboard-worklist-item.danger {
  border-color: #ffcfc6;
  background: #fff6f4;
}

.dashboard-worklist-item.warning {
  border-color: #ffe4a3;
  background: #fffaf0;
}

.dashboard-worklist-item.success {
  border-color: #cfe9da;
  background: #f8fffb;
}

@media (max-width: 1480px) {
  .dashboard-workspace-grid,
  .dashboard-worklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-workspace-grid,
  .dashboard-worklist-grid,
  .dashboard-workspace-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-workspace-card {
    min-height: auto;
  }
}

/* Beta 158: Produktakte Prüfstatus */
.product-check-overview {
  margin-bottom: 18px;
}

.product-check-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-check-pill,
.product-check-card {
  border: 1px solid var(--lkw-border);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(30, 42, 120, .06);
}

.product-check-pill {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 14px;
  align-content: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-check-pill:hover {
  transform: translateY(-2px);
  border-color: #d7dcf1;
  box-shadow: 0 18px 40px rgba(30, 42, 120, .10);
}

.product-check-pill span,
.product-check-pill em {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 850;
  font-style: normal;
}

.product-check-pill strong {
  color: var(--lkw-blue);
  font-size: 15px;
  line-height: 1.25;
}

.product-check-pill.is-critical,
.product-check-card.is-critical {
  border-color: #ffd1d1;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.product-check-pill.is-review,
.product-check-card.is-review {
  border-color: #ffe5a0;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.product-check-pill.is-note,
.product-check-card.is-note {
  border-color: #dfe7ff;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.product-check-pill.is-ok,
.product-check-card.is-ok {
  border-color: #cfe9da;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
}

.product-check-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-check-card {
  min-height: 220px;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-check-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-check-card h3 {
  margin: 0;
  color: var(--lkw-blue);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.product-check-card p {
  margin: 0;
  color: var(--lkw-muted);
  line-height: 1.55;
  font-weight: 700;
}

.product-check-card .btn {
  align-self: end;
  justify-self: start;
}

@media (max-width: 1180px) {
  .product-check-strip,
  .product-check-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-check-strip,
  .product-check-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile usability refinements for dashboard and recurring work areas */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main {
    padding: 16px;
    max-width: 100vw;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 18px;
  }

  .topbar h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .topbar p,
  .hint {
    font-size: 13px;
  }

  .user-pill {
    align-self: stretch;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .card-head-row {
    gap: 12px;
    margin-bottom: 14px;
  }

  .card-head-row .btn,
  .dashboard-module-head--modern .btn,
  .dashboard-notice-inline .btn,
  .actions .btn,
  .import-card .btn {
    width: 100%;
  }

  .btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form input {
    width: 100%;
  }

  input,
  select,
  textarea {
    min-width: 0;
    font-size: 16px;
  }

  .dashboard-modern {
    gap: 18px;
  }

  .dashboard-hero--modern {
    padding: 20px;
    border-radius: 24px;
  }

  .dashboard-hero--modern h2 {
    font-size: 30px;
  }

  .dashboard-hero--modern .dashboard-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .dashboard-hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dashboard-hero-meta span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .dashboard-section-head,
  .dashboard-module-head--modern,
  .dashboard-notice-inline {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .dashboard-section-head h2,
  .dashboard-module-head--modern h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .dashboard-focus-grid {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 12px;
  }

  .dashboard-focus-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 128px;
    padding: 16px;
    border-radius: 20px;
  }

  .dashboard-focus-card strong {
    font-size: 34px;
  }

  .dashboard-kpi-grid,
  .dashboard-module-grid,
  .dashboard-module-grid--modern,
  .dashboard-split-grid,
  .dashboard-balanced-grid,
  .dashboard-flow-grid,
  .dashboard-task-grid,
  .dashboard-task-grid--modern,
  .dashboard-task-groups,
  .dashboard-module-settings-grid,
  .product-detail-equal-grid,
  .goods-receipt-detail-grid,
  .goods-receipt-stats,
  .inventory-stats,
  .system-overview-grid,
  .sync-stats-grid,
  .status-list {
    grid-template-columns: 1fr !important;
  }

  .dashboard-module-card--modern {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 94px;
    padding: 16px;
    border-radius: 20px;
  }

  .dashboard-module-card--modern .module-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .dashboard-task-board--modern {
    padding: 18px;
  }

  .dashboard-task-grid--modern .dashboard-task-card {
    min-height: 0;
  }

  .dashboard-list-item {
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
  }

  .dashboard-list-item em {
    justify-self: start;
  }

  .dashboard-scroll-card {
    min-height: 0;
  }

  .dashboard-scroll-area {
    max-height: none;
    overflow-x: auto;
  }

  .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 11px 10px;
  }
}

@media (max-width: 520px) {
  .main {
    padding: 12px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .card,
  .dashboard-hero--modern,
  .dashboard-module-head--modern,
  .dashboard-task-board--modern {
    padding: 16px;
    border-radius: 20px;
  }

  .settings-kicker,
  .badge {
    white-space: normal;
    text-align: center;
  }

  .dashboard-focus-card strong {
    font-size: 31px;
  }
}


/* Beta 161: Mobile Navigation und Dashboard-Überlauf */
.sidebar-mobile-head {
  display: block;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 980px) {
  html,
  body,
  .app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app,
  .main,
  .topbar,
  .topbar-actions,
  .dashboard-modern,
  .dashboard-modern > *,
  .card,
  .table-wrap {
    min-width: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    inset: auto;
    z-index: 120;
    width: 100%;
    height: auto;
    max-height: 100vh;
    padding: 10px 12px;
    overflow: visible;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 16px 38px rgba(17, 25, 71, .20);
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sidebar .brand {
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .sidebar .brand strong {
    font-size: 19px;
    line-height: 1.1;
  }

  .sidebar .brand span {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-nav-toggle-icon {
    display: grid;
    gap: 3px;
  }

  .mobile-nav-toggle-icon span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .sidebar .nav,
  .sidebar .sidebar-footer {
    display: none;
  }

  .sidebar.is-mobile-nav-open .nav {
    display: grid;
    max-height: calc(100vh - 72px);
    margin-top: 10px;
    padding: 6px 0 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.is-mobile-nav-open .sidebar-footer {
    display: grid;
    padding-top: 10px;
  }

  .sidebar.is-mobile-nav-open .mobile-nav-toggle {
    background: rgba(255,255,255,.20);
    border-color: rgba(255,255,255,.32);
  }

  .nav-group-label {
    margin: 12px 4px 4px;
  }

  .nav-grouped a,
  .nav-grouped button {
    min-height: 42px;
    padding: 10px 11px;
  }

  .main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    overflow-x: hidden;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
  }

  .topbar-actions {
    max-width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .main {
    width: 100%;
    max-width: 100vw;
    padding: 14px;
  }

  .dashboard-modern {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-modern *,
  .dashboard-modern *::before,
  .dashboard-modern *::after {
    min-width: 0;
  }

  .dashboard-hero--modern {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-hero-main,
  .dashboard-hero--modern .dashboard-hero-actions,
  .dashboard-hero-meta {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-hero--modern .dashboard-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .dashboard-hero--modern .dashboard-hero-actions .btn {
    width: 100%;
  }

  .dashboard-hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-hero-meta span {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .dashboard-section-head,
  .dashboard-module-head--modern,
  .dashboard-notice-inline,
  .card-head-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-focus-grid,
  .dashboard-module-grid,
  .dashboard-module-grid--modern,
  .dashboard-task-grid,
  .dashboard-task-grid--modern,
  .dashboard-task-groups,
  .dashboard-split-grid,
  .dashboard-balanced-grid,
  .dashboard-flow-grid,
  .dashboard-customer-radar-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .dashboard-focus-card {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .dashboard-module-card--modern {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    width: 100%;
  }

  .dashboard-module-card--modern small,
  .dashboard-module-card--modern em,
  .dashboard-list-item strong,
  .dashboard-list-item span,
  .dashboard-list-item em {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-list-item {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .dashboard-scroll-area {
    overflow-x: auto;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .user-menu,
  .user-menu-trigger {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .user-pill {
    width: 100%;
    min-width: 0;
  }

  .user-pill > span:not(.user-avatar):not(.user-menu-chevron) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notification-dropdown,
  .user-menu-dropdown {
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 520px) {
  .main {
    padding: 12px;
  }

  .dashboard-hero--modern,
  .card,
  .dashboard-task-board--modern,
  .dashboard-module-head--modern {
    border-radius: 18px;
  }

  .dashboard-module-card--modern {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 12px;
  }

  .dashboard-module-card--modern .module-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 20px;
  }
}

/* Shop-Anbindungen */
.shop-connection-page-head {
  display: grid;
  gap: 16px;
  padding: 8px 2px 18px;
  border-bottom: 1px solid var(--lkw-border);
}
.shop-connection-page-head .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.shop-connection-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}
.shop-connection-overview strong { color: var(--lkw-blue); }
.shop-connection-overview .is-warning { color: var(--lkw-warning); }
.shop-connector-limit {
  border: 1px solid var(--lkw-border);
  border-radius: 18px;
  background: #fbfcff;
  padding: 14px 16px;
  display: grid;
  gap: 5px;
}
.shop-connector-limit span,
.shop-connection-meta span {
  color: var(--lkw-muted);
  font-size: 13px;
  font-weight: 700;
}
.shop-connector-limit strong,
.shop-connection-meta strong {
  color: var(--lkw-blue);
  font-size: 22px;
  word-break: break-word;
}
.shop-connection-card-grid,
.shop-connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}
.shop-connector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shop-connection-card,
.shop-connector-card {
  border: 1px solid var(--lkw-border);
  border-radius: 24px;
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 16px;
  min-width: 0;
}
.shop-connector-card.is-planned { background: #fbfcff; }
.shop-connection-card-head,
.shop-connector-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.shop-connection-card h3,
.shop-connector-card h3 {
  margin: 8px 0 0;
  color: var(--lkw-blue);
  letter-spacing: -0.03em;
}
.shop-connection-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.shop-connection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--lkw-border);
}
.shop-connection-actions form { margin: 0; }
.shop-connection-modal-card { width: min(680px, calc(100vw - 32px)); }
.shop-connection-modal-body { min-height: 0; overflow: auto; padding: 22px 24px 24px; }
.shop-connection-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--lkw-border);
}
.shop-connection-modal-actions form { margin: 0; }
.shop-authority-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--lkw-border);
}
.shop-authority-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.shop-authority-form legend {
  margin-bottom: 12px;
  color: var(--lkw-blue);
  font-weight: 800;
}
.shop-authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shop-authority-form .btn { justify-self: start; }
.shop-webhook-settings {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--lkw-border);
}
.shop-webhook-settings-head,
.shop-webhook-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-webhook-settings h3 { margin: 0; color: var(--lkw-blue); }
.shop-webhook-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.shop-webhook-status-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.shop-webhook-status-grid span { color: var(--lkw-muted); font-size: 12px; font-weight: 700; }
.shop-webhook-status-grid strong { color: var(--lkw-blue); font-size: 14px; overflow-wrap: anywhere; }
.shop-webhook-actions { justify-content: flex-start; }
.shop-webhook-actions form { margin: 0; }
.webhook-monitoring {
  display: grid;
  gap: 20px;
  scroll-margin-top: 24px;
}
.webhook-monitoring-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--lkw-border);
}
.webhook-monitoring-facts div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid var(--lkw-border);
}
.webhook-monitoring-facts div:last-child { border-right: 0; }
.webhook-monitoring-facts span { color: var(--lkw-muted); font-size: 12px; font-weight: 700; }
.webhook-monitoring-facts strong { color: var(--lkw-blue); font-size: 14px; overflow-wrap: anywhere; }
.webhook-event-table-wrap { margin: 0; }
.webhook-event-table { min-width: 860px; }
.webhook-event-table td:last-child { text-align: right; }
.webhook-event-table form { margin: 0; }
.shop-connection-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.shop-connection-meta div {
  border: 1px solid var(--lkw-border);
  border-radius: 16px;
  padding: 12px;
  background: #fbfcff;
  display: grid;
  gap: 4px;
}
.shop-connection-meta strong { font-size: 15px; }
.connector-warning.compact { margin: 0; }
.shop-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-capability {
  display: inline-flex;
  border: 1px solid var(--lkw-border);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--lkw-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.shop-capability.is-enabled {
  color: var(--lkw-success);
  background: #effaf4;
  border-color: #bde8d0;
}
@media (max-width: 1180px) {
  .shop-connector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-connection-meta { grid-template-columns: 1fr; }
  .webhook-monitoring-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .webhook-monitoring-facts div:nth-child(2) { border-right: 0; }
  .webhook-monitoring-facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--lkw-border); }
}
@media (max-width: 780px) {
  .shop-connection-card-grid,
  .shop-connector-grid { grid-template-columns: 1fr; }
  .shop-connection-card-head,
  .shop-connector-card-head { flex-direction: column; }
  .shop-connection-badges { justify-content: flex-start; }
  .shop-connection-page-head .btn { width: 100%; }
  .shop-connection-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .shop-connection-modal-body { padding: 18px; }
  .shop-authority-grid { grid-template-columns: 1fr; }
  .shop-webhook-status-grid { grid-template-columns: 1fr; }
  .webhook-monitoring-facts { grid-template-columns: 1fr; }
  .webhook-monitoring-facts div,
  .webhook-monitoring-facts div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--lkw-border); }
  .webhook-monitoring-facts div:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .shop-connection-overview { grid-template-columns: 1fr; }
  .shop-connection-modal-actions,
  .shop-connection-modal-actions form,
  .shop-connection-modal-actions .btn { width: 100%; }
}

.shop-connection-map-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.payment-provider-section {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.payment-provider-section > .card-head-row {
  align-items: center;
}

.payment-provider-section h2,
.payment-provider-card h3 {
  margin: 0;
  color: var(--lkw-blue);
}

.payment-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.payment-provider-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 44, 98, 0.07);
}

.payment-provider-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payment-provider-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 18px;
}

.payment-provider-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-provider-facts span {
  color: var(--lkw-muted);
  font-size: 0.82rem;
}

.payment-provider-facts strong {
  overflow-wrap: anywhere;
}

.payment-provider-empty {
  min-height: 92px;
  padding: 20px;
  border: 1px dashed var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--lkw-muted);
}

.payment-provider-empty > div {
  display: grid;
  gap: 6px;
}

.payment-provider-empty strong { color: var(--lkw-blue); }

.payment-provider-shop-selection {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
}

.payment-provider-shop-selection legend {
  padding: 0 6px;
  color: var(--lkw-blue);
  font-weight: 700;
}

.payment-provider-shop-selection > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.payment-provider-shop-selection label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}

.payment-provider-shop-selection input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.payment-provider-shop-selection span { overflow-wrap: anywhere; }
.payment-provider-form [hidden] { display: none; }

@media (max-width: 900px) {
  .payment-provider-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .payment-provider-card-head { align-items: flex-start; flex-direction: column; }
  .payment-provider-facts,
  .payment-provider-shop-selection > div { grid-template-columns: 1fr; }
}

.shop-connection-map-summary span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 52, 142, 0.10);
  border-radius: 14px;
  background: rgba(247, 249, 255, 0.76);
  color: var(--muted);
  font-weight: 700;
}

.shop-connection-map-summary strong {
  color: var(--primary);
  font-size: 1.1rem;
}

@media (max-width: 680px) {
  .shop-connection-map-summary {
    grid-template-columns: 1fr;
  }
}
/* Kategorieverwaltung */
.category-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.category-stats .card {
  min-height: 92px;
  padding: 18px 20px;
}

.category-detail-hero,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.category-create-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(520px, 1.55fr);
  gap: 32px;
  align-items: center;
  padding: 26px 28px;
  margin-bottom: 18px;
}

.category-create-intro {
  max-width: 440px;
}

.category-create-intro .hint {
  max-width: 410px;
  margin-bottom: 0;
  line-height: 1.6;
}

.category-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(230px, 1.15fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.category-create-form input,
.category-create-form select,
.category-create-form .btn {
  min-height: 46px;
}

.category-create-form .btn {
  white-space: nowrap;
}

.category-list-toolbar {
  gap: 28px;
  padding: 22px 28px;
  margin-bottom: 14px;
}

.category-list-toolbar > div {
  min-width: 260px;
}

.category-list-toolbar .product-search-form {
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.55fr) auto;
  min-width: min(100%, 660px);
}

.category-list-toolbar .product-search-form input,
.category-list-toolbar .product-search-form select,
.category-list-toolbar .product-search-form .btn {
  min-height: 44px;
}

.category-tree-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: calc(var(--category-level, 0) * 22px);
}

.category-tree-toggle,
.category-tree-spacer {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.category-tree-toggle {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(32, 52, 142, 0.16);
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

.category-tree-toggle:hover,
.category-tree-toggle:focus-visible {
  border-color: rgba(32, 52, 142, 0.38);
  background: rgba(247, 249, 255, 0.96);
}

.category-tree-toggle span {
  display: block;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.category-tree-toggle[aria-expanded="true"] span {
  transform: rotate(90deg) translateX(-1px);
}

.category-tree-name div {
  display: grid;
  gap: 3px;
}

.category-tree-name small {
  color: var(--muted);
}

.category-detail-hero h2,
.category-create-card h2,
.section-heading h2,
.custom-field-set h3 {
  margin: 4px 0;
}

.category-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.category-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-form-grid label {
  display: grid;
  gap: 7px;
}

.category-form-grid label small {
  color: var(--muted);
  line-height: 1.45;
}

.category-form-grid .full {
  grid-column: 1 / -1;
}

.category-form-grid .checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.category-form-grid .checkbox-line input {
  width: auto;
}

.category-sync-card {
  position: sticky;
  top: 20px;
}

.category-sync-card code {
  word-break: break-all;
}

.category-custom-fields {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 36px;
}

.custom-field-set {
  margin: 0;
  padding: 28px;
}

.custom-field-set .card-head-row {
  margin-bottom: 24px;
}

.custom-field-set .category-form-grid {
  gap: 20px 24px;
}

.category-products-card {
  margin-top: 0;
}

.product-category-multiselect {
  width: 100%;
  min-height: 280px;
  padding: 12px;
  border: 1px solid rgba(32, 52, 142, 0.16);
  border-radius: 12px;
  background: #fff;
}

.product-category-multiselect option {
  padding: 8px 10px;
}

.product-custom-fields {
  margin-top: 28px;
}

.product-custom-field-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
}

.product-custom-field-group {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
}

.product-custom-field-group legend {
  padding: 0 7px;
  color: var(--lkw-blue);
  font-size: 14px;
  font-weight: 800;
}

.product-custom-field-group--single {
  padding: 0;
  border: 0;
  background: transparent;
}

.product-custom-field-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px;
}

.product-custom-field-control {
  min-width: 0;
  align-content: start;
}

.product-custom-field-control small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.product-custom-field-control--full {
  grid-column: 1 / -1;
}

@media (max-width: 1450px) {
  .product-custom-field-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .product-custom-field-group {
    padding: 14px;
  }

  .product-custom-field-group--single {
    padding: 0;
  }

  .product-custom-field-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-properties-card form {
  margin: 0;
}

.product-property-group-list {
  display: grid;
  gap: 18px;
}

.product-property-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcff;
  overflow: hidden;
  margin: 0;
}

.product-property-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

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

.product-property-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-property-summary-title {
  color: var(--lkw-blue);
  font-weight: 900;
}

.product-property-summary-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-property-summary-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--lkw-blue);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 12px;
}

.product-property-group[open] .product-property-summary-toggle {
  background: rgba(32, 52, 142, 0.08);
}

.product-property-group[open] .product-property-summary-toggle::before {
  content: "Einklappen";
}

.product-property-group[open] .product-property-summary-toggle {
  font-size: 0;
}

.product-property-group[open] .product-property-summary-toggle::before {
  font-size: 12px;
}

.product-property-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.product-property-group > .hint {
  padding: 0 18px 18px;
}

.product-property-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
}

.product-property-option input {
  width: auto;
  min-width: 16px;
}

.product-master-stats {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.product-master-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.product-master-card {
  display: grid;
  gap: 24px;
}

.product-master-card--wide {
  grid-column: 1 / -1;
}

.product-master-card h2 {
  margin-bottom: 8px;
}

.product-master-card-head {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(32, 52, 142, 0.1);
}

.product-master-create,
.product-master-existing {
  display: grid;
  gap: 16px;
}

.product-master-create {
  padding: 18px;
  border: 1px solid rgba(32, 52, 142, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 52, 142, 0.06), rgba(255, 255, 255, 0.96));
}

.product-master-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-master-section-head div {
  display: grid;
  gap: 4px;
}

.product-master-section-head strong {
  color: var(--lkw-blue);
  font-size: 16px;
  font-weight: 900;
}

.product-master-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-master-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.product-master-form--tax {
  grid-template-columns: minmax(170px, 1.4fr) minmax(110px, 0.75fr) minmax(88px, 0.45fr) auto;
  align-items: end;
}

.product-master-form--manufacturer {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}

.product-master-form--manufacturer input[type="file"] {
  padding: 10px 12px;
}

.product-master-form--tag {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.product-master-form--manufacturer .btn,
.product-master-form .full {
  grid-column: 1 / -1;
}

.product-master-form--existing {
  padding-top: 14px;
}

.product-master-record {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcff;
}

.product-master-record-head,
.product-master-record-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-master-record-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-master-record-head strong {
  color: var(--lkw-blue);
  font-weight: 900;
}

.product-master-record-head span,
.product-master-record-foot small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-master-manufacturer-media {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(32, 52, 142, 0.12);
  border-radius: 8px;
  background: #fff;
}

.product-master-manufacturer-media img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  background: #f6f8ff;
}

.product-master-manufacturer-media span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-master-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.product-master-tag-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.product-master-tag-record {
  align-content: start;
}

.product-master-tag-record .product-master-form--tag {
  grid-template-columns: minmax(0, 1fr);
}

.product-master-tag-record .product-master-actions {
  justify-content: flex-start;
}

@media (max-width: 1400px) {
  .product-master-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-master-stats,
  .product-master-form--tax,
  .product-master-form--manufacturer,
  .product-master-form--tag {
    grid-template-columns: 1fr;
  }

  .product-master-record-head,
  .product-master-record-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-master-actions {
    justify-content: flex-start;
  }

  .product-card-actions {
    justify-content: flex-start;
  }

  .field-action-button {
    width: 100%;
  }
}

.product-property-option em {
  border-radius: 999px;
  background: #fff7df;
  color: #8a6100;
  font-size: 11px;
  font-style: normal;
  padding: 3px 7px;
}

.product-tags-card form {
  margin: 0;
}

.product-card-actions,
.field-with-inline-action,
.product-property-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.product-card-actions {
  justify-content: flex-end;
}

.field-with-inline-action {
  align-items: flex-end;
}

.field-with-inline-action label {
  flex: 1 1 220px;
  min-width: 0;
}

.field-with-inline-action--compact {
  align-self: end;
  padding: 8px 0;
}

.field-inline-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field-action-button {
  white-space: nowrap;
}

.field-with-plus {
  min-width: 0;
}

.field-with-plus-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.field-with-plus-control select {
  width: 100%;
  min-width: 0;
}

.field-plus-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  background: #fff;
  color: var(--lkw-blue);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(14, 31, 92, 0.08);
}

.field-plus-button:hover,
.field-plus-button:focus-visible {
  border-color: rgba(33, 45, 135, 0.34);
  background: #f7f8ff;
}

.product-edit-active-toggle {
  min-height: 50px;
  align-self: end;
  padding: 0 2px 2px;
}

.product-property-inline-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.product-property-tab-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.property-plus-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--lkw-border);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(14, 31, 92, 0.08);
  color: var(--lkw-blue);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.property-plus-button.is-small {
  border-radius: 12px;
  font-size: 21px;
  height: 34px;
  width: 34px;
}

.property-plus-button:hover,
.property-plus-button:focus-visible {
  background: #f7f8ff;
  border-color: rgba(33, 45, 135, 0.34);
}

.product-edit-icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid var(--lkw-border);
  border-radius: 50%;
  background: #fff;
  color: var(--lkw-blue);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.product-edit-icon-button:hover,
.product-edit-icon-button:focus-visible {
  border-color: #c9d2ff;
  background: #eef2ff;
}

.product-property-summary-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.product-inline-modal-card {
  width: min(100%, 560px);
  max-height: none;
  grid-template-rows: auto auto;
  border-radius: 24px;
}

.product-inline-modal-body {
  padding: 26px 28px 28px;
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.product-inline-modal-body form {
  max-width: none;
  margin: 0;
}

.product-inline-modal-body .category-form-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.product-inline-modal-body .stock-adjust-form,
.product-inline-modal-body .min-stock-form,
.product-inline-modal-body .barcode-add-form {
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
}

.product-inline-modal-body label {
  gap: 9px;
  min-width: 0;
}

.product-inline-modal-body .property-checkbox-row {
  display: inline-flex;
}

.product-inline-modal-body input,
.product-inline-modal-body select,
.product-inline-modal-body textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
}

.product-inline-modal-body .stock-sync-check input {
  width: auto;
  min-height: 0;
}

.product-inline-modal-body .btn.full {
  grid-column: 1 / -1;
  justify-self: end;
  width: auto;
  min-width: 180px;
  margin-top: 4px;
  padding-inline: 22px;
}

.product-publish-preview-body {
  display: grid;
  gap: 18px;
}

.product-publish-multi-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(92vh, 960px);
  grid-template-rows: auto minmax(0, 1fr);
}

.product-publish-multi-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #f8f9fd;
  color: var(--lkw-muted);
}

.product-publish-multi-summary strong {
  color: var(--lkw-blue);
  font-size: 18px;
}

.product-publish-multi-form,
.product-publish-target-list {
  display: grid;
  gap: 14px;
}

.product-publish-target {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.product-publish-target.has-conflict {
  border-color: #e4bf76;
  background: #fffdf7;
}

.product-publish-target-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
}

.product-publish-target-choice {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.product-publish-target-choice input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.product-publish-target-choice span {
  display: grid;
  gap: 2px;
}

.product-publish-target-choice strong {
  color: var(--lkw-blue);
  font-size: 16px;
}

.product-publish-target-choice small,
.product-publish-target-notice {
  color: var(--lkw-muted);
}

.product-publish-target-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.product-publish-target-details summary,
.product-publish-omitted summary {
  color: var(--lkw-blue);
  font-weight: 800;
  cursor: pointer;
}

.product-publish-target-details .table-wrap {
  margin-top: 12px;
}

.product-publish-comparison {
  table-layout: fixed;
}

.product-publish-comparison th:first-child {
  width: 20%;
}

.product-publish-comparison th:last-child {
  width: 15%;
}

.product-publish-comparison tbody tr.is-unchanged {
  color: var(--lkw-muted);
}

.product-publish-comparison tbody tr.is-changed,
.product-publish-comparison tbody tr.is-new {
  background: #f8f9ff;
}

.product-publish-omitted {
  border-top: 1px solid var(--lkw-border);
  padding-top: 12px;
}

.product-publish-omitted ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--lkw-muted);
}

@media (max-width: 700px) {
  .product-publish-multi-modal {
    width: 100%;
    max-height: 92vh;
  }

  .product-publish-target-head {
    display: grid;
  }

  .product-publish-target-badges {
    justify-content: flex-start;
  }

  .product-publish-comparison,
  .product-publish-comparison tbody,
  .product-publish-comparison tr,
  .product-publish-comparison th,
  .product-publish-comparison td {
    display: block;
    width: 100%;
  }

  .product-publish-target-details .table-wrap {
    overflow: visible;
  }

  .product-publish-comparison {
    min-width: 0;
  }

  .product-publish-comparison thead {
    display: none;
  }

  .product-publish-comparison tbody tr {
    padding: 12px;
    border-bottom: 1px solid var(--lkw-border);
  }

  .product-publish-comparison tbody th,
  .product-publish-comparison tbody td {
    padding: 4px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-publish-comparison tbody th:first-child,
  .product-publish-comparison tbody td:last-child {
    width: 100%;
  }

  .product-publish-comparison tbody td::before {
    content: attr(data-label) ": ";
    color: var(--lkw-muted);
    font-weight: 700;
  }
}

.product-relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-relation-panel {
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.product-relation-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-relation-panel-head h3 {
  margin: 0 0 6px;
  color: var(--lkw-blue);
}

.product-relation-panel select[multiple] {
  min-height: 260px;
}

.product-relations-actions {
  margin-top: 18px;
}

.product-relation-imported-list {
  display: grid;
  gap: 12px;
}

.product-relation-imported {
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fbfcff;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.product-relation-imported strong {
  color: var(--lkw-blue);
}

.product-relation-imported span,
.product-relation-imported em {
  color: var(--lkw-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .product-relation-grid {
    grid-template-columns: 1fr;
  }
}

.product-price-table {
  min-width: 960px;
  table-layout: fixed;
}

.product-price-table input,
.product-price-table select {
  min-height: 42px;
  min-width: 0;
}

.product-price-table select {
  padding-inline: 12px 36px;
}

.product-price-table td,
.product-price-table th {
  padding-inline: 8px;
  vertical-align: middle;
}

.product-price-table th:nth-child(1),
.product-price-table td:nth-child(1) {
  width: 230px;
}

.product-price-table th:nth-child(2),
.product-price-table td:nth-child(2),
.product-price-table th:nth-child(3),
.product-price-table td:nth-child(3) {
  width: 80px;
}

.product-price-table th:nth-child(4),
.product-price-table td:nth-child(4),
.product-price-table th:nth-child(5),
.product-price-table td:nth-child(5) {
  width: 122px;
}

.product-price-table th:nth-child(6),
.product-price-table td:nth-child(6) {
  width: 84px;
}

.product-price-table th:nth-child(7),
.product-price-table td:nth-child(7) {
  width: 160px;
}

.product-price-table th:nth-child(8),
.product-price-table td:nth-child(8) {
  width: 94px;
}

.product-price-currency {
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  align-items: center;
}

.product-translations-card form {
  display: grid;
  gap: 18px;
}

.product-translation-main-language,
.product-translation-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.product-translation-main-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.product-translation-main-language h3,
.product-translation-panel h3 {
  margin: 0;
}

.product-translation-main-language dl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 8px 0 0;
}

.product-translation-main-language dl div {
  min-width: 180px;
}

.product-translation-main-language dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.product-translation-main-language dd {
  margin: 0;
  font-weight: 800;
}

.product-translation-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-translation-language-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.product-translation-language-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.product-translation-language-list a.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 35, 83, .08);
}

.product-translation-language-list strong,
.product-translation-language-list small {
  display: block;
}

.product-translation-language-list small {
  color: var(--muted);
  margin-top: 2px;
}

.product-translation-panel {
  padding: 16px;
}

.product-translation-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.product-translation-panel-head span:not(.badge) {
  color: var(--muted);
  font-weight: 700;
}

.product-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
}

.product-tag-option input {
  width: auto;
  min-width: 16px;
}

.product-tag-option em {
  border-radius: 999px;
  background: #fff7df;
  color: #8a6100;
  font-size: 11px;
  font-style: normal;
  padding: 3px 7px;
}

.property-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .18);
  flex: 0 0 auto;
}

.product-properties-actions {
  margin-top: 18px;
}

.property-master-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.property-master-create-card,
.property-master-list-card {
  display: grid;
  gap: 22px;
}

.property-master-form {
  align-items: start;
}

.property-checkbox-row {
  align-items: center;
  align-self: end;
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
  margin: 0;
}

.property-checkbox-row input {
  height: 16px;
  margin: 0;
  min-width: 16px;
  width: 16px;
}

.property-checkbox-row span {
  color: var(--primary);
  font-weight: 900;
}

.property-master-list {
  display: grid;
  gap: 14px;
}

.property-master-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcff;
  overflow: hidden;
}

.property-master-group summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  min-height: 62px;
  padding: 14px 18px;
}

.property-master-group summary::-webkit-details-marker {
  display: none;
}

.property-master-group summary strong {
  color: var(--primary);
  display: block;
  font-weight: 900;
}

.property-master-group summary small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.property-master-group-body {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 22px;
  padding: 18px;
}

.property-option-editor {
  display: grid;
  gap: 12px;
}

.property-option-editor h3 {
  margin: 0;
}

.property-option-list {
  display: grid;
  gap: 10px;
}

.property-option-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.5fr) minmax(120px, .7fr) minmax(90px, .45fr) auto auto auto;
}

.property-option-row input {
  min-width: 0;
}

.property-option-row.is-delete-pending {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px;
}

.property-delete-button {
  color: #991b1b;
}

.property-option-row--new {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.product-visibility-card form {
  margin: 0;
}

.product-visibility-list {
  display: grid;
  gap: 12px;
}

.product-visibility-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcff;
}

.product-visibility-main {
  display: grid;
  gap: 5px;
}

.product-visibility-main strong {
  color: var(--lkw-blue);
}

.product-visibility-main span,
.product-visibility-row label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-visibility-row label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.product-visibility-state {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.product-visibility-actions {
  margin-top: 16px;
}

.product-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.product-media-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
}

.product-media-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 240px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fd;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.product-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-media-preview em {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: #e8fff4;
  color: #08784f;
  border: 1px solid #b7efd7;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.product-media-fields {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-media-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  font-size: .82rem;
}

.product-media-fields input {
  width: 100%;
}

.product-media-field-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(170px, 220px);
  gap: 12px;
  align-items: end;
}

.product-media-cover-choice {
  min-height: 47px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--primary);
  background: #fbfcff;
}

.product-media-cover-choice input {
  width: auto;
  min-width: 16px;
}

.product-media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
}

.product-media-meta span {
  border-radius: 999px;
  background: #f4f6fb;
  padding: 5px 9px;
}

.product-media-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.product-media-save-form > .form-actions {
  margin-top: 18px;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .product-media-card {
    grid-template-columns: 1fr;
  }

  .product-media-preview {
    max-height: 340px;
  }

  .product-media-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .product-media-field-row {
    grid-template-columns: 1fr;
  }

  .product-visibility-row {
    grid-template-columns: 1fr;
  }

  .product-visibility-state {
    justify-content: flex-start;
  }

  .product-translation-main-language {
    display: grid;
  }

  .product-translation-workspace {
    grid-template-columns: 1fr;
  }

  .product-translation-language-list {
    max-height: 320px;
  }

  .product-property-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-property-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-property-summary-toggle {
    align-self: flex-start;
  }

  .product-property-option {
    border-radius: 8px;
  }

  .property-master-stats {
    grid-template-columns: 1fr;
  }

  .property-master-group summary,
  .property-option-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .property-master-group summary {
    flex-direction: column;
  }

  .property-option-row .btn,
  .property-option-row .status-badge {
    justify-self: start;
  }
}

.product-change-summary {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-bottom: 20px;
}

.product-change-summary .metric-card {
  min-height: 112px;
}

.product-change-card .card-head-row {
  align-items: flex-start;
  gap: 16px;
}

.product-change-table th,
.product-change-table td {
  vertical-align: top;
}

.product-change-table code {
  display: block;
  max-width: 280px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.product-history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.product-history-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(20, 34, 72, .12);
  border-radius: 6px;
  background: #fff;
  color: #1b2a5f;
  font-weight: 700;
  text-decoration: none;
}

.product-history-filter a.active,
.product-history-filter a:hover {
  border-color: rgba(41, 55, 145, .34);
  background: rgba(41, 55, 145, .08);
  color: #111a55;
}

.product-history-filter-primary {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 34, 72, .1);
}

.product-history-filter-primary a {
  min-width: 110px;
  justify-content: center;
}

.product-history-filter-secondary {
  margin-top: -10px;
  margin-bottom: 22px;
}

.product-history-list {
  display: grid;
  gap: 14px;
}

.product-history-entry {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(20, 34, 72, .1);
  border-radius: 8px;
  background: #fff;
}

.product-history-entry-time {
  display: grid;
  gap: 6px;
  align-content: start;
}

.product-history-entry-time strong {
  color: #111a55;
}

.product-history-entry-time span {
  color: #66708f;
  font-weight: 700;
}

.product-history-entry-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-history-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-history-entry-head h3 {
  margin: 0;
  min-width: 0;
  color: #111a55;
  font-size: 18px;
}

.product-history-entry-body p {
  margin: 0;
  color: #33405f;
}

.product-history-change-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(17, 26, 85, .04);
}

.product-history-change-values code {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 760px) {
  .product-history-entry {
    grid-template-columns: 1fr;
  }

  .product-history-entry-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-history-change-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .category-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-detail-hero,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .category-editor-grid {
    grid-template-columns: 1fr;
  }

  .category-sync-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .category-create-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-create-intro {
    max-width: 680px;
  }

  .category-create-form {
    grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.1fr) auto;
  }

  .category-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-list-toolbar .product-search-form {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .category-stats,
  .category-form-grid {
    grid-template-columns: 1fr;
  }

  .category-create-card,
  .category-list-toolbar {
    padding: 20px;
  }

  .category-create-form,
  .category-list-toolbar .product-search-form {
    grid-template-columns: 1fr;
  }

  .category-tree-name {
    padding-left: 0;
  }
}

.product-select-cell {
  width: 44px;
  min-width: 44px;
  text-align: center;
}

.product-select-cell input,
.product-bulk-shop-list input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--lkw-blue);
}

.product-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.product-bulk-toolbar > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.product-bulk-toolbar strong {
  color: var(--lkw-blue);
}

.product-bulk-modal-card {
  width: min(100%, 720px);
}

.product-bulk-modal-body {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 22px;
  overflow: auto;
  padding: 24px;
}

.product-bulk-modal-body > label {
  display: grid;
  gap: 8px;
  color: var(--lkw-blue);
  font-weight: 750;
}

.product-bulk-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  overflow: hidden;
}

.product-bulk-scope > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.product-bulk-scope > div + div {
  border-left: 1px solid var(--lkw-border);
}

.product-bulk-scope span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.product-bulk-scope strong {
  color: var(--lkw-blue);
  font-size: 24px;
}

.product-bulk-shop-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-bulk-shop-list legend {
  margin-bottom: 8px;
  color: var(--lkw-blue);
  font-weight: 750;
}

.product-bulk-shop-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  cursor: pointer;
}

.product-bulk-shop-list label:has(input:checked) {
  border-color: var(--lkw-blue);
  background: #f7f8ff;
}

.product-bulk-shop-list span {
  display: grid;
  gap: 2px;
}

.product-bulk-shop-list small {
  color: var(--lkw-muted);
}

.product-bulk-notice {
  padding: 12px 14px;
  border-left: 3px solid var(--lkw-blue);
  background: #f7f8ff;
  color: #36405f;
  line-height: 1.5;
}

.product-bulk-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.product-bulk-result {
  border-left: 4px solid #1b9a66;
}

.product-bulk-result.has-errors {
  border-left-color: #d49316;
}

.product-bulk-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.product-bulk-result-head h2 {
  margin: 10px 0 5px;
}

.product-bulk-result details {
  margin-top: 18px;
  border-top: 1px solid var(--lkw-border);
  padding-top: 14px;
}

.product-bulk-result summary {
  color: var(--lkw-blue);
  font-weight: 750;
  cursor: pointer;
}

.product-bulk-result-table {
  margin-top: 12px;
}

@media (max-width: 700px) {
  .product-bulk-toolbar,
  .product-bulk-result-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-bulk-toolbar .btn {
    width: 100%;
  }

  .product-bulk-scope {
    grid-template-columns: 1fr;
  }

  .product-bulk-scope > div + div {
    border-top: 1px solid var(--lkw-border);
    border-left: 0;
  }

  .product-bulk-modal-actions {
    flex-direction: column-reverse;
  }

.product-bulk-modal-actions .btn {
    width: 100%;
  }
}

.data-conflict-page {
  display: grid;
  gap: 18px;
}

.data-conflict-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lkw-border);
}

.data-conflict-header h2,
.data-conflict-history h2,
.data-conflict-empty h2 {
  margin: 8px 0 6px;
  color: var(--lkw-blue);
}

.data-conflict-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.data-conflict-summary span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  color: var(--lkw-muted);
}

.data-conflict-summary span + span {
  border-left: 1px solid var(--lkw-border);
}

.data-conflict-summary strong {
  color: var(--lkw-blue);
  font-size: 22px;
}

.data-conflict-list {
  display: grid;
  gap: 12px;
}

.data-conflict-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-left: 4px solid #6d77a8;
  border-radius: 8px;
  background: #fff;
}

.data-conflict-item--warning {
  border-left-color: #d49316;
}

.data-conflict-item--danger {
  border-left-color: #d54552;
}

.data-conflict-item-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.data-conflict-item-heading h3 {
  margin: 0 0 5px;
  color: var(--lkw-blue);
  font-size: 17px;
}

.data-conflict-item-heading p {
  margin: 0;
  color: var(--lkw-muted);
}

.data-conflict-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.data-conflict-comparison > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--lkw-border);
  border-radius: 6px;
  background: #fafbff;
}

.data-conflict-comparison span,
.data-conflict-comparison small {
  color: var(--lkw-muted);
}

.data-conflict-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 14px 0 0;
}

.data-conflict-details div {
  display: grid;
  gap: 3px;
}

.data-conflict-details dt {
  color: var(--lkw-muted);
  font-size: 12px;
}

.data-conflict-details dd {
  margin: 0;
  color: var(--lkw-blue);
  font-weight: 700;
}

.data-conflict-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.data-conflict-actions form {
  margin: 0;
}

.data-conflict-empty {
  padding: 34px;
  border: 1px dashed var(--lkw-border);
  border-radius: 8px;
  text-align: center;
}

.data-conflict-empty p {
  margin: 0;
  color: var(--lkw-muted);
}

.data-conflict-history {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--lkw-border);
}

.data-conflict-modal-card {
  width: min(920px, calc(100vw - 32px));
}

.data-conflict-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 24px;
}

.data-conflict-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.data-conflict-customer-grid section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
}

.data-conflict-customer-grid section > span {
  color: var(--lkw-muted);
  font-size: 12px;
  font-weight: 700;
}

.data-conflict-customer-grid h3 {
  margin: 5px 0 14px;
  color: var(--lkw-blue);
}

.data-conflict-customer-grid dl {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.data-conflict-customer-grid dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.data-conflict-customer-grid dt {
  color: var(--lkw-muted);
}

.data-conflict-customer-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.data-conflict-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.data-conflict-modal-actions form {
  margin: 0;
}

.customer-identity-section {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--lkw-border);
  border-radius: 8px;
  background: #fff;
}

.customer-identity-heading,
.customer-identity-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.customer-identity-heading h2 {
  margin: 8px 0 5px;
  color: var(--lkw-blue);
}

.customer-identity-list {
  display: grid;
  border-top: 1px solid var(--lkw-border);
}

.customer-identity-list article {
  align-items: center;
  padding: 13px 0;
}

.customer-identity-list article + article {
  border-top: 1px solid var(--lkw-border);
}

.customer-identity-list article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-identity-list span,
.customer-identity-list small {
  color: var(--lkw-muted);
}

.customer-identity-list form {
  margin: 0;
}

@media (max-width: 760px) {
  .data-conflict-header,
  .data-conflict-item {
    grid-template-columns: 1fr;
  }

  .data-conflict-header {
    display: grid;
  }

  .data-conflict-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-conflict-summary span:nth-child(3) {
    border-top: 1px solid var(--lkw-border);
    border-left: 0;
  }

  .data-conflict-summary span:nth-child(4) {
    border-top: 1px solid var(--lkw-border);
  }

  .data-conflict-actions,
  .data-conflict-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .data-conflict-actions form,
  .data-conflict-actions .btn,
  .data-conflict-modal-actions form,
  .data-conflict-modal-actions .btn {
    width: 100%;
  }

  .data-conflict-customer-grid {
    grid-template-columns: 1fr;
  }

  .customer-identity-heading,
  .customer-identity-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-identity-list form,
  .customer-identity-list .btn {
    width: 100%;
  }

  .data-conflict-modal-body {
    padding: 18px;
  }
}
