/* =========================================================
   JUST KANBAN / PLATFORM DESIGN SYSTEM
   Industrial Premium UI Foundation
   Version: v2
   ========================================================= */

/* =========================================================
   1. ROOT TOKENS
   ========================================================= */
:root {
  /* Brand / identity */
  --jk-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --jk-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Core surfaces */
  --jk-bg: #0a0f17;
  --jk-bg-alt: #0d1420;
  --jk-bg-elevated: #121b29;
  --jk-bg-panel: #162131;
  --jk-surface: rgba(18, 27, 41, 0.88);
  --jk-surface-strong: rgba(22, 33, 49, 0.96);
  --jk-surface-soft: rgba(255, 255, 255, 0.04);
  --jk-surface-frost: rgba(255, 255, 255, 0.06);

  /* Text */
  --jk-text: #edf3fb;
  --jk-text-soft: #b2bfd1;
  --jk-text-muted: #7f8ca0;
  --jk-text-inverse: #0a0f17;

  /* Lines */
  --jk-line: rgba(255, 255, 255, 0.08);
  --jk-line-strong: rgba(255, 255, 255, 0.14);
  --jk-line-soft: rgba(255, 255, 255, 0.04);

  /* Accent system */
  --jk-accent: #5aa2ff;
  --jk-accent-strong: #2f7cf6;
  --jk-accent-deep: #114ea8;
  --jk-accent-soft: rgba(90, 162, 255, 0.16);
  --jk-accent-glow: rgba(90, 162, 255, 0.22);

  /* Status */
  --jk-success: #31c48d;
  --jk-success-soft: rgba(49, 196, 141, 0.14);

  --jk-warning: #f4b740;
  --jk-warning-soft: rgba(244, 183, 64, 0.14);

  --jk-danger: #ef5a6f;
  --jk-danger-soft: rgba(239, 90, 111, 0.14);

  --jk-info: #57b5ff;
  --jk-info-soft: rgba(87, 181, 255, 0.14);

  /* Layout */
  --jk-max-width: 1280px;
  --jk-max-width-narrow: 920px;
  --jk-page-x: 24px;
  --jk-page-x-mobile: 16px;

  /* Radius */
  --jk-radius-xs: 10px;
  --jk-radius-sm: 14px;
  --jk-radius-md: 18px;
  --jk-radius-lg: 24px;
  --jk-radius-xl: 32px;

  /* Shadows */
  --jk-shadow-1:
    0 10px 30px rgba(0, 0, 0, 0.22);
  --jk-shadow-2:
    0 24px 60px rgba(0, 0, 0, 0.32);
  --jk-shadow-3:
    0 40px 100px rgba(0, 0, 0, 0.42);
  --jk-shadow-focus:
    0 0 0 4px rgba(90, 162, 255, 0.16);

  /* Spacing rhythm */
  --jk-space-1: 4px;
  --jk-space-2: 8px;
  --jk-space-3: 12px;
  --jk-space-4: 16px;
  --jk-space-5: 20px;
  --jk-space-6: 24px;
  --jk-space-7: 32px;
  --jk-space-8: 40px;
  --jk-space-9: 48px;
  --jk-space-10: 64px;
  --jk-space-11: 80px;

  /* Component sizing */
  --jk-topbar-height: 80px;
  --jk-input-height: 52px;
  --jk-btn-height: 50px;

  /* Motion */
  --jk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jk-transition-fast: 140ms var(--jk-ease);
  --jk-transition: 220ms var(--jk-ease);
}

.jk-rack-workmode-card {
  background: rgba(185, 28, 28, .14);
  border-color: rgba(248, 113, 113, .55);
}

.jk-rack-workmode-card .customer-admin-title strong {
  color: #fecaca;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--jk-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--jk-text);
  background:
    radial-gradient(1200px 700px at 0% -10%, rgba(90, 162, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(30, 70, 130, 0.20), transparent 60%),
    linear-gradient(180deg, #081019 0%, #0a0f17 36%, #0d1420 100%);
  background-color: var(--jk-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: block;
}

footer {
  flex-shrink: 0;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

input,
textarea,
select,
button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(90, 162, 255, 0.24);
  color: #ffffff;
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.jk-display {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.jk-title-xl {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  font-weight: 850;
}

.jk-title-lg {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.jk-title-md {
  font-size: 1.25rem;
  line-height: 1.15;
}

.jk-text-lg {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--jk-text-soft);
}

.jk-text-md {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--jk-text-soft);
}

.jk-text-sm {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--jk-text-muted);
}

.jk-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jk-accent);
}

.jk-overline::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

/* =========================================================
   4. LAYOUT / CONTAINERS
   ========================================================= */
.jk-container {
  width: min(calc(100% - (var(--jk-page-x) * 2)), var(--jk-max-width));
  margin-inline: auto;
}

.jk-container--narrow {
  width: min(calc(100% - (var(--jk-page-x) * 2)), var(--jk-max-width-narrow));
  margin-inline: auto;
}

.jk-section {
  padding: var(--jk-space-11) 0;
}

.jk-section--tight {
  padding: var(--jk-space-10) 0;
}

.jk-grid {
  display: grid;
  gap: var(--jk-space-6);
}

/* =========================================================
   5. TOPBAR / BRAND SYSTEM
   ========================================================= */
.jk-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--jk-line);
  background:
    linear-gradient(180deg, rgba(8, 14, 23, 0.92), rgba(8, 14, 23, 0.78));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.jk-topbar-inner {
  min-height: var(--jk-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jk-space-5);
}

.jk-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.jk-brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(145deg, #122033, #0c1624);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 24px rgba(0,0,0,0.28);
  flex: 0 0 auto;
}

.jk-brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.02);
}

.jk-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.jk-brand-title {
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f6f9fd;
}

.jk-brand-sub {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--jk-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   6. SURFACES / CARDS
   ========================================================= */
.jk-panel,
.jk-card {
  position: relative;
  border-radius: var(--jk-radius-lg);
  border: 1px solid var(--jk-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    var(--jk-surface);
  box-shadow: var(--jk-shadow-2);
  overflow: hidden;
}

.jk-panel::before,
.jk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 26%);
  pointer-events: none;
}

.jk-card--soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(16, 23, 35, 0.72);
  box-shadow: var(--jk-shadow-1);
}

.jk-card--compact {
  border-radius: var(--jk-radius-md);
}

.jk-card-body {
  position: relative;
  padding: 32px;
  z-index: 1;
}

/* =========================================================
   7. BUTTON SYSTEM
   ========================================================= */
.jk-btn,
.jk-btn-secondary,
.jk-btn-ghost {
  min-height: var(--jk-btn-height);
  padding: 0 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform var(--jk-transition),
    box-shadow var(--jk-transition),
    border-color var(--jk-transition),
    background var(--jk-transition),
    color var(--jk-transition),
    opacity var(--jk-transition);
  white-space: nowrap;
  user-select: none;
}

.jk-btn {
  color: #ffffff;
  border: 1px solid rgba(111, 177, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    linear-gradient(135deg, var(--jk-accent) 0%, var(--jk-accent-strong) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 14px 28px rgba(17, 78, 168, 0.38);
}

.jk-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 18px 34px rgba(17, 78, 168, 0.42);
}

.jk-btn-secondary {
  color: var(--jk-text);
  border: 1px solid var(--jk-line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 24px rgba(0,0,0,0.20);
}

.jk-btn-secondary:hover {
  border-color: rgba(255,255,255,0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.jk-btn-ghost {
  color: var(--jk-text-soft);
  border: 1px solid transparent;
  background: transparent;
}

.jk-btn-ghost:hover {
  color: var(--jk-text);
  background: rgba(255,255,255,0.04);
}

.jk-btn:focus-visible,
.jk-btn-secondary:focus-visible,
.jk-btn-ghost:focus-visible {
  outline: none;
  box-shadow: var(--jk-shadow-focus);
}

/* =========================================================
   8. FORM SYSTEM
   ========================================================= */
.jk-form-shell {
  padding: var(--jk-space-11) 0;
}

.jk-form-card {
  width: min(100%, 560px);
  margin: 0 auto;
}

.jk-form-card .jk-card-body {
  padding: 34px;
}

.jk-form-head {
  margin-bottom: 24px;
}

.jk-form-title {
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.jk-form-sub {
  margin-top: 10px;
  color: var(--jk-text-soft);
  line-height: 1.7;
}

.jk-form {
  display: grid;
  gap: 16px;
}

.jk-field {
  display: grid;
  gap: 8px;
}

.jk-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jk-text);
}

.jk-input,
.jk-select,
.jk-textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  transition:
    border-color var(--jk-transition-fast),
    box-shadow var(--jk-transition-fast),
    background var(--jk-transition-fast);
  outline: none;
}

.jk-input,
.jk-select {
  width: 100%;
  min-height: var(--jk-input-height);
  padding: 0 16px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);

  /* Glas / edel */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)),
    rgba(255,255,255,0.12);

  color: #ffffff;

  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),   /* Spiegelung oben */
    inset 0 -1px 0 rgba(0,0,0,0.25),        /* Tiefe unten */
    0 8px 18px rgba(0,0,0,0.35);

  outline: none;
  transition:
    border-color var(--jk-transition-fast),
    box-shadow var(--jk-transition-fast),
    background var(--jk-transition-fast),
    transform var(--jk-transition-fast);
}

.jk-select {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.jk-select option {
  color: #000000;
  background: #ffffff;
}

.jk-textarea {
  width: 100%;
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)),
    rgba(255,255,255,0.12);

  color: #ffffff;

  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 8px 18px rgba(0,0,0,0.35);

  outline: none;
}

/* Placeholder deutlich sichtbar */
.jk-input::placeholder,
.jk-textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

/* Hover = leicht hervorheben */
.jk-input:hover,
.jk-select:hover,
.jk-textarea:hover {
  border-color: rgba(255,255,255,0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.10)),
    rgba(255,255,255,0.18);

  transform: translateY(-1px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 12px 24px rgba(0,0,0,0.45);
}

/* Fokus = klarer Fokus (sehr wichtig UX) */
.jk-input:focus,
.jk-select:focus,
.jk-textarea:focus {
  border-color: #5aa2ff;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.12)),
    rgba(255,255,255,0.22);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(0,0,0,0.30),
    0 0 0 4px rgba(90,162,255,0.25),
    0 16px 32px rgba(0,0,0,0.50);
}

/* =========================================================
   9. ALERTS / STATUS
   ========================================================= */
.jk-alert {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--jk-line);
  background: rgba(255,255,255,0.04);
  font-size: 0.95rem;
  line-height: 1.6;
}

.jk-alert--success {
  border-color: rgba(49, 196, 141, 0.26);
  background: var(--jk-success-soft);
}

.jk-alert--warning {
  border-color: rgba(244, 183, 64, 0.26);
  background: var(--jk-warning-soft);
}

.jk-alert--error {
  border-color: rgba(239, 90, 111, 0.26);
  background: var(--jk-danger-soft);
}

.jk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--jk-line);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jk-text-soft);
}

.jk-badge--info {
  color: var(--jk-info);
  border-color: rgba(87, 181, 255, 0.24);
  background: var(--jk-info-soft);
}

.jk-badge--success {
  color: var(--jk-success);
  border-color: rgba(49, 196, 141, 0.24);
  background: var(--jk-success-soft);
}

.jk-badge--warning {
  color: var(--jk-warning);
  border-color: rgba(244, 183, 64, 0.24);
  background: var(--jk-warning-soft);
}

.jk-badge--danger {
  color: var(--jk-danger);
  border-color: rgba(239, 90, 111, 0.24);
  background: var(--jk-danger-soft);
}

/* =========================================================
   10. HERO / LANDING
   ========================================================= */
.jk-hero {
  position: relative;
  padding: 110px 0 88px;
}

.jk-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.jk-hero-panel {
  position: relative;
  border-radius: var(--jk-radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(135deg, rgba(15, 24, 38, 0.98), rgba(11, 18, 29, 0.96));
  box-shadow: var(--jk-shadow-3);
  overflow: hidden;
}

.jk-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(90, 162, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 22%);
  pointer-events: none;
}

.jk-hero-body {
  position: relative;
  z-index: 1;
  padding: 64px 56px;
}

.jk-hero-kicker {
  margin-bottom: 18px;
}

.jk-hero-title {
  max-width: 900px;
}

.jk-hero-text {
  margin-top: 24px;
  max-width: 760px;
}

.jk-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.jk-hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   11. TABLES / APP AREAS
   ========================================================= */
.jk-table-wrap {
  border-radius: var(--jk-radius-lg);
  border: 1px solid var(--jk-line);
  background: var(--jk-surface);
  overflow: hidden;
  box-shadow: var(--jk-shadow-1);
}

.jk-table {
  width: 100%;
  border-collapse: collapse;
}

.jk-table th,
.jk-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
}

.jk-table thead th {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jk-text-muted);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--jk-line);
}

.jk-table tbody td {
  border-bottom: 1px solid var(--jk-line-soft);
  color: var(--jk-text-soft);
}

.jk-table tbody tr:hover {
  background: rgba(255,255,255,0.025);
}

/* =========================================================
   12. FOOTER
   ========================================================= */
.jk-footer {
  border-top: 1px solid var(--jk-line);
  background: rgba(7, 12, 19, 0.72);
}

.jk-footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--jk-text-muted);
  font-size: 0.92rem;
}

/* =========================================================
   13. UTILITIES
   ========================================================= */
.jk-muted {
  color: var(--jk-text-muted);
}

.jk-soft {
  color: var(--jk-text-soft);
}

.jk-center {
  text-align: center;
}

.jk-stack {
  display: grid;
  gap: 16px;
}

.jk-hidden {
  display: none !important;
}

/* =========================================================
   14. INTERACTION STATES
   ========================================================= */
a,
button,
input,
select,
textarea {
  transition:
    color var(--jk-transition-fast),
    background var(--jk-transition-fast),
    border-color var(--jk-transition-fast),
    box-shadow var(--jk-transition-fast),
    transform var(--jk-transition-fast),
    opacity var(--jk-transition-fast);
}

a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
}

/* =========================================================
   15. RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .jk-section,
  .jk-form-shell {
    padding: 64px 0;
  }

  .jk-hero {
    padding: 84px 0 64px;
  }

  .jk-hero-body {
    padding: 44px 32px;
  }

  .jk-footer-inner {
    min-height: auto;
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --jk-topbar-height: 72px;
  }

  .jk-container,
  .jk-container--narrow {
    width: min(calc(100% - (var(--jk-page-x-mobile) * 2)), 100%);
  }

  .jk-topbar-inner {
    min-height: var(--jk-topbar-height);
  }

  .jk-brand {
    gap: 12px;
  }

  .jk-brand-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .jk-brand-logo-img {
    height: 28px;
  }

  .jk-brand-sub {
    max-width: 170px;
  }

  .jk-display {
    font-size: 2.35rem;
  }

  .jk-title-xl {
    font-size: 1.85rem;
  }

  .jk-text-lg {
    font-size: 1rem;
    line-height: 1.75;
  }

  .jk-hero {
    padding: 56px 0 44px;
  }

  .jk-hero-body {
    padding: 32px 22px;
  }

  .jk-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jk-hero-actions .jk-btn,
  .jk-hero-actions .jk-btn-secondary,
  .jk-hero-actions .jk-btn-ghost {
    width: 100%;
  }

  .jk-card-body,
  .jk-form-card .jk-card-body {
    padding: 22px;
  }

  .jk-table-wrap {
    overflow-x: auto;
  }

  .jk-table {
    min-width: 680px;
  }
}

.jk-exec-top--compact {
  align-items: end;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  margin-bottom: 10px;
}

.jk-exec-menu--top {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 10px 0 18px;
}

.jk-command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1.25fr) minmax(260px, 0.85fr) minmax(260px, 0.75fr);
  margin-top: 16px;
}

.jk-dashboard-head-actions {
  align-items: end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.jk-start-quick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 18px;
}

.jk-start-quick-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  text-decoration: none;
}

.jk-start-quick-card:hover {
  background: rgba(255, 255, 255, 0.075);
}

.jk-start-quick-card span {
  color: var(--jk-text-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-start-quick-card strong {
  color: var(--jk-text);
  font-size: 1.25rem;
  line-height: 1.1;
}

.jk-start-quick-card em {
  color: var(--jk-text-soft);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 800;
}

.jk-start-quick-card--danger,
.jk-start-quick-card--kanban {
  border-color: rgba(239, 68, 68, 0.34);
}

.jk-start-quick-card--chat {
  border-color: rgba(34, 197, 94, 0.34);
}

.jk-start-quick-card--planning {
  border-color: rgba(234, 179, 8, 0.34);
}

.jk-start-quick-card--danger.is-active,
.jk-start-quick-card--kanban.is-active {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.94), rgba(153, 27, 27, 0.76));
  border-color: rgba(248, 113, 113, 0.78);
}

.jk-start-quick-card--chat.is-active {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.92), rgba(21, 128, 61, 0.76));
  border-color: rgba(74, 222, 128, 0.72);
}

.jk-start-quick-card--planning.is-active {
  background: linear-gradient(180deg, rgba(202, 138, 4, 0.94), rgba(161, 98, 7, 0.78));
  border-color: rgba(250, 204, 21, 0.76);
}

.jk-start-quick-card.is-active span,
.jk-start-quick-card.is-active strong,
.jk-start-quick-card.is-active em {
  color: #ffffff;
}

.jk-home-menu {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 12px 0 18px;
}

.jk-home-menu-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 12px;
  text-decoration: none;
}

.jk-home-menu-link:hover {
  background: rgba(255, 255, 255, 0.075);
}

.jk-home-menu-link span {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-home-menu-link strong {
  color: var(--jk-text);
  font-size: 0.98rem;
  line-height: 1.15;
}

.jk-home-menu-link small {
  color: var(--jk-text-soft);
  font-size: 0.78rem;
  line-height: 1.25;
}

.jk-home-menu-link--finance {
  border-color: rgba(245, 158, 11, 0.38);
}

.jk-home-control-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin-top: 14px;
}

.jk-finance-overview,
.jk-finance-path-panel,
.jk-finance-control-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
}

.jk-finance-overview {
  padding: 16px;
}

.jk-inline-link {
  color: #dff6ff;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.jk-section-kicker {
  color: var(--jk-text-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 3px;
}

.jk-finance-kpi-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-finance-kpi-row div {
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.jk-finance-kpi-row span,
.jk-finance-mini-list span,
.jk-finance-control-card span {
  color: var(--jk-text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-finance-kpi-row strong,
.jk-finance-control-card strong {
  color: var(--jk-text);
  font-size: 1.7rem;
  line-height: 1;
}

.jk-finance-mini-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.jk-finance-mini-list a,
.jk-muted-line {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
  text-decoration: none;
}

.jk-finance-mini-list a.needs-action {
  border-color: rgba(245, 158, 11, 0.38);
}

.jk-finance-mini-list strong {
  color: var(--jk-text);
  font-size: 0.84rem;
  text-align: right;
}

.jk-command-grid--secondary {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.jk-command-grid--primary {
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.8fr) minmax(260px, 0.8fr);
}

.jk-command-revenue,
.jk-command-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  min-width: 0;
}

.jk-command-revenue {
  background: linear-gradient(180deg, rgba(47, 124, 246, 0.2), rgba(255, 255, 255, 0.035));
  display: grid;
  gap: 10px;
  padding: 20px;
}

.jk-command-revenue h2 {
  color: var(--jk-text);
  font-size: 1.25rem;
  margin: 0;
}

.jk-command-revenue > strong {
  color: var(--jk-text);
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1;
}

.jk-command-revenue--compact > strong {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.jk-command-revenue > small {
  color: #9ee6c2;
  font-weight: 850;
}

.jk-command-revenue-split {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
}

.jk-command-revenue-split div {
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.jk-command-revenue-split span,
.jk-command-driver span,
.jk-origin-row span {
  color: var(--jk-text-muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-command-revenue-split b {
  color: var(--jk-text);
  font-size: 1.25rem;
  line-height: 1;
}

.jk-command-revenue-split small,
.jk-command-driver small {
  color: var(--jk-text-soft);
  font-size: 0.78rem;
}

.jk-command-panel {
  padding: 16px;
}

.jk-exec-section-head--tight {
  margin-bottom: 10px;
}

.jk-exec-section-head--tight h2 {
  font-size: 1.05rem;
}

.jk-command-driver-list,
.jk-origin-list {
  display: grid;
  gap: 11px;
}

.jk-command-driver {
  display: grid;
  gap: 7px;
}

.jk-pricing-dashboard {
  min-height: calc(100vh - 70px);
}

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

.jk-pricing-kpi {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 16px;
}

.jk-pricing-kpi span,
.jk-pricing-module span,
.jk-pricing-module em {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-pricing-kpi strong {
  color: var(--jk-text);
  font-size: 1.95rem;
  line-height: 1;
}

.jk-pricing-kpi small,
.jk-pricing-module small,
.jk-pricing-change-list small,
.jk-pricing-table small {
  color: var(--jk-text-soft);
}

.jk-pricing-overview-grid {
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  margin-bottom: 24px;
}

.jk-pricing-sync-card > strong {
  text-transform: capitalize;
}

.jk-pricing-module-list,
.jk-pricing-change-list {
  display: grid;
  gap: 9px;
}

.jk-pricing-module,
.jk-pricing-change-list div {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

a.jk-pricing-module {
  text-decoration: none;
}

a.jk-pricing-module:hover,
a.jk-pricing-module:focus {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(20, 184, 166, 0.12);
}

.jk-pricing-module strong,
.jk-pricing-change-list strong,
.jk-pricing-table strong {
  color: var(--jk-text);
}

.jk-pricing-module small,
.jk-pricing-table small {
  display: block;
  margin-top: 3px;
}

.jk-pricing-module em,
.jk-pricing-change-list small {
  grid-column: 1 / -1;
  letter-spacing: 0;
  text-transform: none;
}

.jk-pricing-table-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.jk-pricing-table-wrap {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  overflow: auto;
}

.jk-pricing-work-form {
  display: grid;
  gap: 10px;
}

.jk-pricing-bulkbar {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  position: sticky;
  top: 8px;
  z-index: 4;
}

.jk-pricing-bulkbar label,
.jk-pricing-bulkbar span {
  align-items: center;
  color: var(--jk-text);
  display: inline-flex;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 800;
}

.jk-pricing-bulkbar button {
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-radius: 7px;
  color: var(--jk-text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.jk-pricing-bulkbar button:hover,
.jk-pricing-bulkbar button:focus-visible {
  background: rgba(20, 184, 166, 0.24);
}

.jk-pricing-workflow-state {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jk-pricing-workflow-state span {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  color: var(--jk-text-soft);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 9px;
}

.jk-pricing-table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.jk-pricing-table th,
.jk-pricing-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--jk-text);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.jk-pricing-table th {
  background: rgba(15, 23, 42, 0.64);
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 5px;
  min-height: 24px;
  white-space: nowrap;
}

.jk-sortable-th {
  cursor: pointer;
  user-select: none;
}

.jk-sortable-th:focus {
  outline: 2px solid rgba(20, 184, 166, 0.72);
  outline-offset: -2px;
}

.jk-sortable-th:hover .jk-sort-link,
.jk-sortable-th:focus .jk-sort-link,
.jk-sort-link:hover,
.jk-sort-link:focus,
.jk-sort-link.is-active {
  color: var(--jk-text);
}

.jk-sort-link span {
  color: #14b8a6;
  font-size: 0.82rem;
  line-height: 1;
}

.jk-pricing-select-col {
  min-width: 88px;
  width: 88px;
}

.jk-pricing-select-cell {
  width: 88px;
}

.jk-pricing-select-target {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
}

.jk-pricing-thumb {
  align-items: center;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  display: flex;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.jk-pricing-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.jk-pricing-thumb em {
  color: var(--jk-text-soft);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.jk-pricing-risk {
  color: #fbbf24;
  font-weight: 900;
}

.jk-pricing-home-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jk-pricing-home-card,
.jk-pricing-note-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
}

.jk-pricing-home-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  text-decoration: none;
}

.jk-pricing-home-card:hover,
.jk-pricing-home-card:focus {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(45, 212, 191, 0.42);
}

.jk-pricing-home-card span,
.jk-pricing-home-card em {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-pricing-home-card strong,
.jk-pricing-note-panel strong {
  color: var(--jk-text);
  font-size: 1.25rem;
}

.jk-pricing-home-card small,
.jk-pricing-note-panel small {
  color: var(--jk-text-soft);
}

.jk-pricing-home-card em {
  align-self: end;
}

.jk-pricing-note-panel {
  margin-top: 16px;
  padding: 18px;
}

.jk-pricing-note-panel div {
  display: grid;
  gap: 6px;
}

.jk-pricing-import-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  margin-top: 16px;
}

.jk-pricing-import-form,
.jk-pricing-import-side,
.jk-pricing-rule-list {
  display: grid;
  gap: 14px;
}

.jk-pricing-form-grid,
.jk-pricing-column-map {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-pricing-form-grid label,
.jk-pricing-column-map label {
  display: grid;
  gap: 6px;
}

.jk-pricing-form-grid span,
.jk-pricing-column-map span {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-pricing-form-grid input,
.jk-pricing-form-grid select,
.jk-pricing-column-map input {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: var(--jk-text);
  min-height: 42px;
  padding: 0 11px;
  width: 100%;
}

.jk-pricing-rule-list div,
.jk-pricing-check-grid div {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 11px;
}

.jk-pricing-rule-list strong,
.jk-pricing-check-grid strong {
  color: var(--jk-text);
}

.jk-pricing-rule-list small,
.jk-pricing-check-grid small,
.jk-pricing-action-row span {
  color: var(--jk-text-soft);
}

.jk-pricing-rule-list code {
  color: #99f6e4;
}

.jk-pricing-action-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.jk-pricing-check-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-pricing-import-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.jk-pricing-import-summary article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 13px;
}

.jk-pricing-import-summary--quiet article {
  background: rgba(255, 255, 255, 0.025);
}

.jk-pricing-import-summary span {
  color: var(--jk-text-muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-pricing-import-summary strong {
  color: var(--jk-text);
  font-size: 1.45rem;
  line-height: 1;
}

.jk-pricing-import-summary small {
  color: var(--jk-text-soft);
}

.jk-pricing-section-block {
  margin-bottom: 16px;
}

.jk-pricing-work-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-pricing-work-grid a,
.jk-pricing-work-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

button.jk-pricing-work-card {
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.jk-pricing-work-grid a:hover,
.jk-pricing-work-grid button.jk-pricing-work-card:hover,
.jk-pricing-work-grid button.jk-pricing-work-card:focus,
.jk-pricing-work-grid a:focus {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(45, 212, 191, 0.32);
  transform: translateY(-1px);
}

.jk-pricing-work-grid a.is-complete,
.jk-pricing-work-card.is-complete {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(34, 197, 94, 0.42);
}

.jk-pricing-work-grid a.is-complete strong,
.jk-pricing-work-card.is-complete strong {
  color: #86efac;
}

.jk-pricing-work-grid span {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-pricing-work-grid strong {
  color: var(--jk-text);
  font-size: 1.7rem;
  line-height: 1;
}

.jk-pricing-work-grid small {
  color: var(--jk-text-soft);
  line-height: 1.35;
}

.jk-pricing-next-panel {
  align-items: center;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
}

.jk-pricing-next-panel div {
  display: grid;
  gap: 5px;
}

.jk-pricing-next-panel strong {
  color: var(--jk-text);
}

.jk-pricing-next-panel small {
  color: var(--jk-text-soft);
}

.jk-action-card-link {
  align-items: center;
  background: #14b8a6;
  border-radius: 8px;
  color: #042f2e;
  display: inline-flex;
  font-weight: 850;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.jk-pricing-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.jk-pricing-export-row a {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

.jk-pricing-loading {
  align-items: center;
  background: rgba(2, 6, 23, 0.72);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 200;
}

.jk-pricing-loading[hidden] {
  display: none;
}

.jk-pricing-loading div {
  background: rgba(8, 14, 23, 0.98);
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 8px;
  max-width: 460px;
  padding: 22px;
}

.jk-pricing-loading strong {
  color: var(--jk-text);
  font-size: 1.2rem;
}

.jk-pricing-loading span {
  color: var(--jk-text-soft);
}

@media (max-width: 980px) {
  .jk-pricing-dashboard .jk-container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .jk-pricing-dashboard .jk-exec-top {
    align-items: start;
    gap: 10px;
  }

  .jk-pricing-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-pricing-check-grid,
  .jk-pricing-home-grid,
  .jk-pricing-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-pricing-import-layout {
    grid-template-columns: 1fr;
  }

  .jk-pricing-table {
    min-width: 980px;
  }
}

@media (max-width: 720px) {
  .jk-pricing-dashboard {
    min-height: auto;
  }

  .jk-pricing-dashboard .jk-dashboard-title {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .jk-pricing-dashboard .jk-dashboard-subtitle {
    font-size: 0.92rem;
  }

  .jk-pricing-dashboard .jk-cockpit-tabs,
  .jk-pricing-export-row {
    flex-wrap: nowrap;
    margin-left: -14px;
    margin-right: -14px;
    overflow-x: auto;
    padding: 0 14px 8px;
    scroll-snap-type: x proximity;
  }

  .jk-pricing-dashboard .jk-cockpit-tabs {
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .jk-pricing-dashboard .jk-cockpit-tabs a,
  .jk-pricing-export-row a {
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .jk-pricing-import-summary,
  .jk-pricing-check-grid,
  .jk-pricing-home-grid,
  .jk-pricing-work-grid,
  .jk-pricing-form-grid,
  .jk-pricing-column-map,
  .jk-pricing-action-row {
    grid-template-columns: 1fr;
  }

  .jk-pricing-import-summary article {
    min-height: 78px;
  }

  .jk-pricing-next-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .jk-action-card-link {
    justify-content: center;
    width: 100%;
  }

  .jk-pricing-table-wrap {
    margin-left: -14px;
    margin-right: -14px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .jk-pricing-table {
    font-size: 0.86rem;
    min-width: 920px;
  }

  .jk-pricing-table th,
  .jk-pricing-table td {
    padding: 9px 10px;
  }

  .jk-pricing-loading {
    padding: 14px;
  }

  .jk-pricing-loading div {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .jk-pricing-dashboard .jk-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .jk-pricing-dashboard .jk-cockpit-tabs,
  .jk-pricing-export-row,
  .jk-pricing-table-wrap {
    margin-left: -10px;
    margin-right: -10px;
  }

  .jk-pricing-dashboard .jk-cockpit-tabs,
  .jk-pricing-export-row {
    padding-left: 10px;
    padding-right: 10px;
  }

  .jk-pricing-home-card,
  .jk-pricing-note-panel,
  .jk-command-panel,
  .jk-pricing-work-grid a,
  .jk-pricing-work-card,
  .jk-pricing-import-summary article {
    padding: 12px;
  }

  .jk-pricing-import-summary strong {
    font-size: 1.32rem;
  }

  .jk-pricing-table {
    min-width: 860px;
  }
}

.jk-command-driver div:first-child,
.jk-origin-row {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.jk-command-driver strong,
.jk-origin-row strong {
  color: var(--jk-text);
  font-size: 1.25rem;
}

.jk-origin-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.jk-origin-row .jk-exec-progress {
  grid-column: 1 / -1;
}

.jk-origin-row em {
  color: var(--jk-text);
  font-style: normal;
  font-weight: 900;
}

.jk-exec-month-grid--large .jk-exec-month-card {
  min-height: 132px;
  padding: 16px;
}

.jk-exec-month-grid--large .jk-exec-month-card strong {
  font-size: 2rem;
}

.jk-exec-section-head--chart {
  margin-top: 24px;
}

.jk-exec-chart-grid--wide {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.jk-exec-chart-grid--daily {
  grid-template-columns: 1fr;
}

.jk-exec-chart-grid--wide .jk-exec-chart {
  min-height: 340px;
}

.jk-exec-chart-grid--wide .jk-exec-bars {
  height: 240px;
}

.jk-exec-task-grid--large .jk-exec-task {
  min-height: 170px;
  padding: 17px;
}

.jk-exec-task-grid--large .jk-exec-task h3 {
  font-size: 1.16rem;
}

@media (max-width: 1160px) {
  .jk-command-grid,
  .jk-command-grid--primary,
  .jk-pricing-overview-grid,
  .jk-pricing-table-grid,
  .jk-pricing-import-layout,
  .jk-pricing-check-grid,
  .jk-pricing-home-grid,
  .jk-pricing-import-summary,
  .jk-exec-chart-grid--wide {
    grid-template-columns: 1fr;
  }

  .jk-command-revenue-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .jk-exec-top--compact,
  .jk-command-revenue-split,
  .jk-pricing-kpi-grid,
  .jk-pricing-form-grid,
  .jk-pricing-column-map,
  .jk-pricing-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .jk-actions {
    gap: 10px;
  }

  .jk-btn,
  .jk-btn-secondary,
  .jk-btn-ghost {
    min-height: 48px;
    padding: 0 16px;
  }

  .jk-form-title {
    font-size: 1.5rem;
  }

  .jk-overline {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }
}


/* =========================================================
   16. DASHBOARD
   ========================================================= */
.jk-appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--jk-line);
  background: rgba(8, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.jk-appbar-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.jk-appbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.jk-appbar-mark {
  width: 56px;
  height: 38px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.jk-appbar-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.jk-appbar-title,
.jk-appbar-subtitle {
  display: block;
}

.jk-appbar-title {
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.jk-appbar-subtitle {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.jk-appbar-nav,
.jk-appbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.jk-appbar-nav {
  justify-content: center;
  overflow: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jk-appbar-nav::-webkit-scrollbar {
  display: none;
}

.jk-appbar-actions {
  justify-content: flex-end;
}

.jk-appbar-menu {
  position: relative;
}

.jk-appbar-menu::after {
  content: "";
  display: block;
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.jk-appbar-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--jk-text-soft);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--jk-transition-fast), border-color var(--jk-transition-fast), color var(--jk-transition-fast);
}

.jk-appbar-link:hover,
.jk-appbar-link.is-active,
.jk-appbar-menu.is-active > .jk-appbar-link,
.jk-appbar-menu:hover > .jk-appbar-link,
.jk-appbar-menu:focus-within > .jk-appbar-link {
  color: var(--jk-text);
  border-color: var(--jk-line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.jk-appbar-link--button {
  appearance: none;
}

.jk-appbar-dropdown {
  background: rgba(8, 14, 23, 0.98);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 2px;
  left: 0;
  min-width: 210px;
  opacity: 0;
  padding: 7px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 2px);
  transform: translateY(-4px);
  transition: opacity var(--jk-transition-fast), transform var(--jk-transition-fast);
  z-index: 80;
}

.jk-appbar-dropdown--right {
  left: auto;
  right: 0;
}

.jk-appbar-menu:hover .jk-appbar-dropdown,
.jk-appbar-menu:focus-within .jk-appbar-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jk-appbar-dropdown a {
  border-radius: 6px;
  color: var(--jk-text-soft);
  font-size: 0.86rem;
  font-weight: 760;
  padding: 10px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.jk-appbar-dropdown a:hover,
.jk-appbar-dropdown a:focus {
  background: rgba(255, 255, 255, 0.075);
  color: var(--jk-text);
  outline: none;
}

.jk-appbar-dropdown-status {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.jk-appbar-dropdown-status em {
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  padding: 4px 7px;
}

.jk-appbar-dropdown-status--danger em {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.jk-appbar-dropdown-status--success em {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.jk-dashboard {
  padding: var(--jk-space-8) 0 var(--jk-space-10);
}

.jk-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--jk-space-5);
  margin-bottom: var(--jk-space-7);
}

.jk-dashboard-head-copy {
  display: grid;
  gap: 10px;
}

.jk-dashboard-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.jk-dashboard-subtitle {
  max-width: 760px;
  color: var(--jk-text-soft);
  line-height: 1.7;
}

.jk-dashboard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jk-space-5);
  margin-bottom: var(--jk-space-8);
}

.jk-kpi-card .jk-card-body {
  display: grid;
  gap: 10px;
}

.jk-kpi-label {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jk-text-muted);
}

.jk-kpi-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--jk-text);
}

.jk-kpi-sub {
  font-size: 0.92rem;
  color: var(--jk-text-soft);
}

.jk-dashboard-section {
  margin-top: var(--jk-space-8);
}

.jk-ops-dashboard {
  padding-top: 30px;
}

.jk-ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.jk-ops-hero-copy,
.jk-ops-hero-panel {
  border: 1px solid var(--jk-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 22, 34, 0.76);
}

.jk-ops-hero-copy {
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.jk-ops-hero-panel {
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.jk-ops-hero-date {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-ops-hero-focus {
  color: var(--jk-text);
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 760;
}

.jk-ops-kpi-groups {
  display: grid;
  gap: 20px;
}

.jk-ops-kpi-group {
  display: grid;
  gap: 14px;
}

.jk-ops-group-head,
.jk-ops-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.jk-ops-group-head h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.jk-ops-group-head span {
  color: var(--jk-text-muted);
  font-size: 0.9rem;
}

.jk-ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.jk-ops-kpi-group:first-child .jk-ops-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-ops-metric-card,
.jk-ops-action-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--jk-transition-fast), border-color var(--jk-transition-fast), background var(--jk-transition-fast);
}

.jk-ops-metric-card {
  min-height: 158px;
  padding: 18px;
  gap: 8px;
}

.jk-ops-metric-card:hover,
.jk-ops-action-card:hover,
.jk-ops-pipeline-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
}

.jk-ops-metric-label {
  color: var(--jk-text-soft);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.jk-ops-metric-value {
  color: var(--jk-text);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.jk-ops-metric-sub {
  color: var(--jk-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.jk-ops-metric-trend {
  align-self: end;
  color: var(--jk-text);
  font-size: 0.82rem;
  font-weight: 780;
}

.jk-ops-metric-card--kanban,
.jk-ops-action-card--kanban {
  border-color: rgba(87, 181, 255, 0.24);
  background: linear-gradient(180deg, rgba(47, 124, 246, 0.18), rgba(255, 255, 255, 0.025));
}

.jk-ops-metric-card--shipping,
.jk-ops-action-card--warehouse {
  border-color: rgba(244, 183, 64, 0.22);
  background: linear-gradient(180deg, rgba(244, 183, 64, 0.15), rgba(255, 255, 255, 0.025));
}

.jk-ops-metric-card--orders,
.jk-ops-action-card--orders {
  border-color: rgba(49, 196, 141, 0.22);
  background: linear-gradient(180deg, rgba(49, 196, 141, 0.15), rgba(255, 255, 255, 0.025));
}

.jk-ops-metric-card--quotes,
.jk-ops-action-card--crm {
  border-color: rgba(181, 120, 255, 0.22);
  background: linear-gradient(180deg, rgba(181, 120, 255, 0.14), rgba(255, 255, 255, 0.025));
}

.jk-ops-metric-card--purchases,
.jk-ops-action-card--purchases {
  border-color: rgba(239, 90, 111, 0.22);
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.13), rgba(255, 255, 255, 0.025));
}

.jk-ops-metric-card--positions,
.jk-ops-action-card--admin {
  border-color: rgba(120, 160, 220, 0.22);
  background: linear-gradient(180deg, rgba(120, 160, 220, 0.13), rgba(255, 255, 255, 0.025));
}

.jk-work-hub {
  margin-top: 28px;
}

.jk-work-hub--top {
  margin: 16px 0 24px;
}

.jk-kanban-work-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.jk-kanban-work-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--jk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--jk-transition-fast), border-color var(--jk-transition-fast), background var(--jk-transition-fast);
}

.jk-kanban-work-card:hover,
.jk-classic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
}

.jk-kanban-work-card > span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-kanban-work-card > strong {
  color: var(--jk-text);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.jk-kanban-work-card h3 {
  color: var(--jk-text);
  font-size: 1.18rem;
  line-height: 1.15;
}

.jk-kanban-work-card p {
  color: var(--jk-text-soft);
  line-height: 1.45;
}

.jk-kanban-work-card--kanban {
  border-color: rgba(87, 181, 255, 0.3);
  background: linear-gradient(180deg, rgba(47, 124, 246, 0.22), rgba(255, 255, 255, 0.03));
}

.jk-kanban-work-card--shipping {
  border-color: rgba(244, 183, 64, 0.28);
  background: linear-gradient(180deg, rgba(244, 183, 64, 0.17), rgba(255, 255, 255, 0.03));
}

.jk-kanban-work-card--critical {
  border-color: rgba(239, 90, 111, 0.32);
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.18), rgba(255, 255, 255, 0.03));
}

.jk-kanban-command-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.jk-kanban-command-card {
  min-height: 138px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.jk-kanban-command-card:hover,
.jk-kanban-command-card.is-active {
  border-color: rgba(87, 181, 255, 0.56);
  box-shadow: 0 0 0 1px rgba(87, 181, 255, 0.2), 0 16px 36px rgba(4, 21, 45, 0.18);
  transform: translateY(-1px);
}

.jk-kanban-command-card span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-kanban-command-card strong {
  color: var(--jk-text);
  font-size: 3rem;
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.jk-kanban-command-card small {
  color: var(--jk-text-soft);
  line-height: 1.35;
}

.jk-kanban-command-card--review {
  border-color: rgba(87, 181, 255, 0.26);
  background: linear-gradient(180deg, rgba(87, 181, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.jk-kanban-command-card--open {
  border-color: rgba(244, 183, 64, 0.3);
  background: linear-gradient(180deg, rgba(244, 183, 64, 0.16), rgba(255, 255, 255, 0.03));
}

.jk-kanban-command-card--shipping {
  border-color: rgba(49, 196, 141, 0.28);
  background: linear-gradient(180deg, rgba(49, 196, 141, 0.14), rgba(255, 255, 255, 0.03));
}

.jk-kanban-command-card--danger {
  border-color: rgba(239, 90, 111, 0.34);
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.18), rgba(255, 255, 255, 0.03));
}

.jk-kanban-orders-card {
  margin-top: 22px;
}

.jk-kanban-order-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.jk-kanban-order-card {
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.jk-kanban-order-card.is-overdue {
  border-color: rgba(239, 90, 111, 0.58);
  box-shadow: inset 0 0 0 2px rgba(239, 90, 111, 0.14);
}

.jk-kanban-order-card summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.jk-kanban-order-card summary::-webkit-details-marker {
  display: none;
}

.jk-kanban-order-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-kanban-order-main strong {
  color: var(--jk-text);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.jk-kanban-order-main span {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-copy-token {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(90, 162, 255, 0.26);
  border-radius: 7px;
  color: var(--jk-text);
  background: rgba(90, 162, 255, 0.11);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.jk-copy-token:hover,
.jk-copy-token.is-copied {
  border-color: rgba(49, 196, 141, 0.5);
  background: rgba(49, 196, 141, 0.16);
}

.jk-kanban-order-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(66px, auto));
  gap: 10px;
}

.jk-kanban-order-counts div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.jk-kanban-order-counts small,
.jk-kanban-position-row dt {
  color: var(--jk-text-muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-kanban-order-counts strong {
  color: var(--jk-text);
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 920;
}

.jk-kanban-position-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.jk-kanban-position-list--completed {
  padding: 10px 0 0;
}

.jk-kanban-position-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(690px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-kanban-position-row.is-completed {
  opacity: 0.78;
  background: rgba(255, 255, 255, 0.02);
}

.jk-kanban-completed-positions {
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.jk-kanban-completed-positions summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--jk-text-muted);
  cursor: pointer;
  list-style: none;
}

.jk-kanban-completed-positions summary::-webkit-details-marker {
  display: none;
}

.jk-kanban-completed-positions summary span {
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-kanban-completed-positions summary strong {
  min-width: 30px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--jk-text);
  background: rgba(49, 196, 141, 0.14);
}

.jk-kanban-position-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-kanban-position-row strong {
  color: var(--jk-text);
}

.jk-kanban-position-row span:not(.jk-badge) {
  color: var(--jk-text-soft);
  line-height: 1.35;
}

.jk-kanban-position-row dl {
  display: grid;
  grid-template-columns: 58px minmax(94px, auto) 68px 64px 82px 74px 86px 96px;
  gap: 10px;
  margin: 0;
}

.jk-kanban-position-row dl div {
  display: grid;
  gap: 3px;
}

.jk-kanban-position-row dd {
  margin: 0;
  color: var(--jk-text);
  font-weight: 800;
}

.jk-classic-strip {
  margin-top: 24px;
}

.jk-classic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.jk-classic-card {
  min-height: 104px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--jk-transition-fast), border-color var(--jk-transition-fast), background var(--jk-transition-fast);
}

.jk-classic-card span {
  color: var(--jk-text-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.jk-classic-card strong {
  color: var(--jk-text);
  font-size: 2rem;
  line-height: 1;
  font-weight: 920;
}

.jk-classic-card small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-ops-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
  margin-top: 28px;
}

.jk-ops-dashboard-grid--bottom {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.jk-ops-pipeline,
.jk-ops-today-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.jk-ops-pipeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--jk-line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--jk-transition-fast), border-color var(--jk-transition-fast), background var(--jk-transition-fast);
}

.jk-ops-pipeline-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-ops-pipeline-main strong {
  overflow-wrap: anywhere;
}

.jk-ops-pipeline-main small,
.jk-ops-today-item small {
  color: var(--jk-text-muted);
  line-height: 1.45;
}

.jk-ops-pipeline-value {
  min-width: 46px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
}

.jk-ops-today-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--jk-line);
}

.jk-ops-today-item:last-child {
  border-bottom: 0;
}

.jk-ops-today-item span {
  color: var(--jk-text-soft);
  font-weight: 760;
}

.jk-ops-today-item strong {
  color: var(--jk-text);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 900;
}

.jk-ops-today-item small {
  grid-column: 1 / -1;
}

.jk-ops-action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.jk-ops-action-section {
  margin-top: 26px;
}

.jk-ops-action-card {
  min-height: 154px;
  align-content: start;
  gap: 9px;
  padding: 18px;
}

.jk-ops-action-kicker {
  color: var(--jk-text-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-ops-action-card strong {
  color: var(--jk-text);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.jk-ops-action-card span:last-child {
  color: var(--jk-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.jk-ops-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-top: 24px;
}

.jk-ops-chart-card .jk-card-body {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.jk-ops-chart-summary {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.jk-ops-chart-summary strong {
  color: var(--jk-text);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.jk-ops-chart-summary span {
  color: var(--jk-text-muted);
  font-size: 0.9rem;
}

.jk-ops-bar-chart {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
}

.jk-ops-bar-col {
  height: 150px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.jk-ops-bar {
  width: 100%;
  min-height: 14px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.95), rgba(49, 196, 141, 0.78));
  box-shadow: 0 12px 28px rgba(47, 124, 246, 0.18);
}

.jk-ops-bar-col small {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  text-align: center;
}

.jk-ops-value-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.jk-ops-value-item {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--jk-line);
}

.jk-ops-value-item:last-child {
  border-bottom: 0;
}

.jk-ops-value-item span {
  color: var(--jk-text-soft);
  font-size: 0.86rem;
  font-weight: 780;
}

.jk-ops-value-item strong {
  color: var(--jk-text);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.jk-ops-value-item small,
.jk-ops-donut-item small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-ops-donut-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.jk-ops-donut-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.jk-ops-donut {
  width: 112px;
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--jk-bg-elevated) 0 54%, transparent 55%),
    conic-gradient(var(--jk-accent) calc(var(--value) * 1%), rgba(255, 255, 255, 0.08) 0);
  border: 1px solid var(--jk-line);
}

.jk-ops-donut strong {
  color: var(--jk-text);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.jk-ops-donut-item > span:not(.jk-ops-donut) {
  color: var(--jk-text-soft);
  font-weight: 820;
}

.jk-kiosk-dashboard {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: 10px 0;
  overflow: hidden;
}

.jk-kiosk-container {
  width: min(calc(100% - 28px), 820px);
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.jk-kiosk-container--wide {
  width: min(calc(100% - 28px), 1040px);
}

.jk-kiosk-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--jk-line);
  border-radius: 16px;
  background: rgba(14, 22, 34, 0.76);
}

.jk-kiosk-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 12px;
  align-items: stretch;
}

.jk-kiosk-head > div,
.jk-kiosk-context {
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(14, 22, 34, 0.76);
  padding: 14px 16px;
}

.jk-kiosk-brand-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.jk-kiosk-logo {
  width: min(100%, 116px);
  height: auto;
  display: block;
}

.jk-kiosk-catalog-link {
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(90, 162, 255, 0.22);
  border-radius: 12px;
  color: var(--jk-text);
  background: rgba(90, 162, 255, 0.08);
}

.jk-kiosk-catalog-link strong,
.jk-kiosk-catalog-link small {
  display: block;
}

.jk-kiosk-catalog-link strong {
  color: var(--jk-text);
  font-size: 0.95rem;
}

.jk-kiosk-catalog-link small {
  margin-top: 2px;
  color: var(--jk-text-soft);
  font-size: 0.82rem;
}

.jk-kiosk-catalog-link em {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.07);
  font-style: normal;
  font-weight: 850;
}

.jk-kiosk-context {
  display: grid;
  gap: 6px;
  align-content: center;
}

.jk-kiosk-context span,
.jk-kiosk-context small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-kiosk-context strong {
  color: var(--jk-text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.jk-kiosk-primary {
  min-height: clamp(128px, 22svh, 168px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(90, 162, 255, 0.35);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    linear-gradient(135deg, #2f7cf6 0%, #31c48d 100%);
  box-shadow: 0 24px 56px rgba(47, 124, 246, 0.28);
}

.jk-kiosk-primary span {
  font-size: 1rem;
  font-weight: 820;
}

.jk-kiosk-primary strong {
  font-size: clamp(2.3rem, 6.2vw, 3.75rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.jk-kiosk-primary small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 720;
}

.jk-kiosk-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jk-kiosk-secondary a {
  min-height: clamp(76px, 12svh, 96px);
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.jk-kiosk-secondary strong {
  color: var(--jk-text);
  font-size: 1.02rem;
}

.jk-kiosk-secondary span {
  color: var(--jk-text-soft);
  font-size: 0.92rem;
}

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

.jk-approval-card,
.jk-approval-card-link {
  display: block;
}

.jk-approval-card {
  min-height: 100%;
  transition: transform var(--jk-transition-fast), border-color var(--jk-transition-fast);
}

.jk-approval-card-link {
  color: inherit;
  display: grid;
  gap: 20px;
  text-decoration: none;
}

.jk-approval-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.jk-approval-card .jk-card-body,
.jk-kanban-review-layout .jk-card-body,
.jk-kanban-scan-layout .jk-card-body {
  display: grid;
  gap: 20px;
}

.jk-approval-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.jk-approval-meta {
  display: grid;
  gap: 8px;
  color: var(--jk-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.jk-approval-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jk-approval-stats div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-approval-stats strong {
  color: var(--jk-text);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.jk-approval-stats span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.jk-kanban-review-layout,
.jk-kanban-scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 20px;
}

.jk-kanban-scan-layout {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.jk-kanban-review-layout--single {
  grid-template-columns: 1fr;
}

.jk-position-list,
.jk-status-list,
.jk-review-actions {
  display: grid;
  gap: 12px;
}

.jk-position-row,
.jk-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-position-row--approval {
  grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 18px;
}

.jk-kanban-approval-actions {
  margin-top: 14px;
}

.jk-kanban-approval-actions .jk-btn,
.jk-kanban-approval-actions form {
  width: 100%;
}

.jk-delete-confirm-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(74px, 0.4fr) minmax(0, 1fr);
  align-items: center;
}

.jk-delete-confirm-form--compact {
  border-top: 1px solid var(--jk-line);
  margin-top: 2px;
  padding-top: 12px;
}

.jk-delete-confirm-input {
  background: rgba(127, 29, 29, 0.28);
  border-color: rgba(248, 113, 113, 0.72);
  color: #ffffff;
  font-weight: 950;
  text-align: center;
}

.jk-delete-confirm-input::placeholder {
  color: rgba(254, 202, 202, 0.82);
}

.jk-delete-confirm-input:focus {
  background: rgba(20, 83, 45, 0.42);
  border-color: rgba(74, 222, 128, 0.96);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.jk-delete-confirm-input:focus::placeholder {
  color: transparent;
}

.jk-btn-danger {
  align-items: center;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.96), rgba(153, 27, 27, 0.86));
  border: 1px solid rgba(248, 113, 113, 0.78);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.jk-btn-danger:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.98), rgba(185, 28, 28, 0.9));
}

.jk-position-image.is-empty {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--jk-line);
  color: var(--jk-text-muted);
}

.jk-position-row--approval .jk-position-image {
  width: 88px;
}

.jk-kanban-approval-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.jk-kanban-approval-meta div {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
}

.jk-kanban-approval-meta span,
.jk-kanban-approval-meta small {
  color: var(--jk-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.jk-kanban-approval-meta span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-kanban-approval-meta strong {
  color: var(--jk-text);
  font-size: 0.98rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.jk-kanban-order-comment {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 2px solid rgba(49, 196, 141, 0.62);
  border-radius: 10px;
  background: rgba(49, 196, 141, 0.18);
  box-shadow: inset 0 0 0 1px rgba(49, 196, 141, 0.16);
}

.jk-kanban-order-comment--hero {
  margin-top: 16px;
  margin-bottom: 0;
}

.jk-kanban-order-comment span {
  color: #91f2c9;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jk-kanban-order-comment strong {
  color: var(--jk-text);
  font-size: 1.08rem;
  line-height: 1.45;
}

.jk-position-note-alert {
  display: grid;
  gap: 6px;
  max-width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(49, 196, 141, 0.62);
  border-radius: 10px;
  color: var(--jk-text);
  background: rgba(49, 196, 141, 0.18);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.42;
  box-shadow: inset 0 0 0 1px rgba(49, 196, 141, 0.16);
}

.jk-position-note-alert b {
  color: #91f2c9;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.jk-approval-order-comment {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 196, 141, 0.42);
  border-radius: 8px;
  background: rgba(49, 196, 141, 0.12);
}

.jk-approval-order-comment b {
  color: #91f2c9;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.jk-approval-order-comment span {
  color: var(--jk-text);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.jk-position-main,
.jk-status-main,
.jk-status-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-position-main strong,
.jk-status-main strong {
  color: var(--jk-text);
  overflow-wrap: anywhere;
}

.jk-position-main span,
.jk-status-main span,
.jk-status-meta span {
  color: var(--jk-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.jk-status-draft-alert {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 90, 111, 0.36);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.16), rgba(255, 255, 255, 0.035));
}

.jk-status-draft-alert div {
  display: grid;
  gap: 4px;
}

.jk-status-draft-alert strong {
  color: var(--jk-text);
  font-size: 1.05rem;
}

.jk-status-draft-alert span {
  color: var(--jk-text-soft);
  line-height: 1.45;
}

.jk-status-page {
  padding-top: 24px;
}

.jk-status-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.jk-status-header .jk-dashboard-subtitle {
  max-width: 760px;
}

.jk-status-draft-pill {
  min-width: 152px;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(239, 90, 111, 0.36);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.2), rgba(255, 255, 255, 0.04));
}

.jk-status-draft-pill strong {
  font-size: 1.6rem;
  line-height: 1;
}

.jk-status-draft-pill span {
  color: var(--jk-text-soft);
  font-size: 0.86rem;
  font-weight: 820;
}

.jk-status-filter-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.jk-status-filter-card strong {
  color: var(--jk-text);
  margin-right: 4px;
}

.jk-status-filter-card a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  color: var(--jk-text-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.88rem;
  font-weight: 760;
}

.jk-status-accordion {
  display: grid;
  gap: 12px;
}

.jk-status-group {
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.jk-status-group.has-draft {
  border-color: rgba(239, 90, 111, 0.44);
}

.jk-status-group summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.jk-status-group summary::-webkit-details-marker {
  display: none;
}

.jk-status-group summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-status-group summary strong {
  color: var(--jk-text);
  font-size: 1.18rem;
}

.jk-status-group summary small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-status-group summary em {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-weight: 850;
}

.jk-status-group-note {
  margin: 0 18px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 90, 111, 0.28);
  border-radius: 12px;
  color: var(--jk-text-soft);
  background: rgba(239, 90, 111, 0.11);
  line-height: 1.45;
}

.jk-status-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--jk-line);
}

.jk-status-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.jk-status-table th,
.jk-status-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--jk-line-soft);
}

.jk-status-table th {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-status-table td {
  color: var(--jk-text-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.jk-status-table td:first-child {
  color: var(--jk-text);
  font-weight: 820;
  white-space: nowrap;
}

.jk-status-table td:nth-child(3) {
  color: var(--jk-text);
  font-weight: 850;
  text-align: center;
}

.jk-status-group-tools {
  margin: 0 18px 14px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.jk-status-group-tools label {
  display: grid;
  gap: 6px;
}

.jk-status-group-tools label span {
  color: var(--jk-text-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-status-group-tools input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--jk-line);
  border-radius: 10px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}

.jk-status-group-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jk-status-group-tools button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  color: var(--jk-text-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 820;
}

.jk-status-group-tools button.is-active {
  color: #ffffff;
  border-color: rgba(90, 162, 255, 0.4);
  background: var(--jk-accent-soft);
}

.jk-status-position-list {
  display: grid;
  gap: 8px;
  padding: 0 0 0;
}

.jk-status-order-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.jk-status-order-card {
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.jk-status-order-card summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.jk-status-order-card summary::-webkit-details-marker {
  display: none;
}

.jk-status-order-card summary > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-status-order-card summary strong {
  color: var(--jk-text);
  font-size: 1.04rem;
}

.jk-status-order-card summary span:not(.jk-badge) {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-status-order-card summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, auto));
  gap: 10px;
  margin: 0;
}

.jk-status-order-card summary dl div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.jk-status-order-card summary dt {
  color: var(--jk-text-muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-status-order-card summary dd {
  margin: 0;
  color: var(--jk-text);
  font-size: 1.08rem;
  font-weight: 900;
}

.jk-status-order-card .jk-status-position-list {
  padding: 0 12px 12px;
}

.jk-status-position-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-status-position-card > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jk-status-position-card strong {
  color: var(--jk-text);
  font-size: 0.95rem;
}

.jk-status-position-card span {
  color: var(--jk-text-soft);
  line-height: 1.35;
}

.jk-status-position-card dl {
  display: grid;
  grid-template-columns: 62px minmax(110px, auto);
  gap: 10px;
  margin: 0;
}

.jk-status-position-card dl div {
  display: grid;
  gap: 3px;
}

.jk-status-position-card dt {
  color: var(--jk-text-muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-status-position-card dd {
  margin: 0;
  color: var(--jk-text);
  font-size: 0.9rem;
  font-weight: 760;
}

.jk-status-empty {
  padding: 0 18px 18px;
  color: var(--jk-text-muted);
}

.jk-status-area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.jk-status-area-card {
  min-height: 160px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-status-area-card strong {
  color: var(--jk-text);
  font-size: 1.12rem;
}

.jk-status-area-card span,
.jk-status-area-card small {
  color: var(--jk-text-soft);
  line-height: 1.35;
}

.jk-status-area-card div {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jk-status-area-card em {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 820;
}

.jk-status-page {
  background: #eef3f7;
  color: #17202a;
}

.jk-status-page .jk-overline {
  color: #476275;
}

.jk-status-page .jk-dashboard-title {
  color: #12344d;
}

.jk-status-header .jk-dashboard-subtitle {
  color: #465363;
}

.jk-status-draft-pill {
  background: #fff1f3;
  border-color: #d18a9a;
  border-radius: 8px;
  color: #6e1428;
  text-decoration: none;
}

.jk-status-draft-pill span {
  color: #7c2d3b;
}

.jk-status-filter-card {
  background: #f8fafc;
  border-color: #b8c2cc;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.jk-status-filter-card strong {
  color: #12344d;
}

.jk-status-filter-card a,
.jk-status-group-tools button {
  background: #ffffff;
  border-color: #c5ced8;
  border-radius: 6px;
  color: #2b4054;
}

.jk-status-filter-card a:hover,
.jk-status-group-tools button:hover {
  background: #e8f2ff;
  color: #12344d;
}

.jk-status-group {
  background: #edf1f5;
  border-color: #aeb9c6;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.jk-status-group.has-draft {
  border-color: #d18a9a;
}

.jk-status-group summary {
  background: linear-gradient(180deg, #dfe8f3, #c9d6e4);
}

.jk-status-group summary strong,
.jk-status-order-card summary strong {
  color: #12344d;
}

.jk-status-group summary small,
.jk-status-order-card summary span:not(.jk-badge),
.jk-status-position-card span,
.jk-status-group-tools label span,
.jk-status-empty {
  color: #465363;
}

.jk-status-group summary em {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(174, 185, 198, 0.78);
  border-radius: 6px;
  color: #17202a;
}

.jk-status-group-note {
  background: #fff1f3;
  border-color: #d18a9a;
  border-radius: 6px;
  color: #6e1428;
}

.jk-status-group-tools input {
  background: #ffffff;
  border-color: #b8c2cc;
  border-radius: 6px;
  color: #17202a;
}

.jk-status-group-tools button.is-active {
  background: #e8f2ff;
  border-color: #82add2;
  color: #12344d;
}

.jk-status-order-card {
  background: #ffffff;
  border-color: #b8c2cc;
  border-radius: 7px;
}

.jk-status-order-card summary {
  background: #f8fafc;
}

.jk-status-order-card summary dt,
.jk-status-position-card dt {
  color: #465363;
}

.jk-status-order-card summary dd,
.jk-status-position-card dd,
.jk-status-position-card strong {
  color: #17202a;
}

.jk-status-position-card {
  background: #ffffff;
  border-color: #d7dee6;
  border-radius: 6px;
}

.jk-status-position-card:hover {
  background: #e8f2ff;
}

.jk-status-table-wrap {
  border-top-color: #aeb9c6;
}

.jk-status-table th {
  background: #dfe8f3;
  color: #12344d;
}

.jk-status-table td {
  background: #ffffff;
  border-bottom-color: #d7dee6;
  color: #2b4054;
}

.jk-status-page {
  background: transparent;
  color: var(--jk-text);
}

.jk-status-page .jk-overline {
  color: var(--jk-text-muted);
}

.jk-status-page .jk-dashboard-title {
  color: var(--jk-text);
}

.jk-status-header .jk-dashboard-subtitle {
  color: var(--jk-text-soft);
}

.jk-status-draft-pill {
  background: rgba(239, 90, 111, 0.16);
  border-color: rgba(239, 90, 111, 0.36);
  color: #ffffff;
}

.jk-status-draft-pill span {
  color: var(--jk-text-soft);
}

.jk-status-filter-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--jk-line);
  box-shadow: none;
}

.jk-status-filter-card strong {
  color: var(--jk-text);
}

.jk-status-filter-card a,
.jk-status-group-tools button {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--jk-line);
  color: var(--jk-text-soft);
}

.jk-status-filter-card a:hover,
.jk-status-group-tools button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--jk-text);
}

.jk-status-group {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--jk-line);
  box-shadow: none;
}

.jk-status-group summary {
  background: rgba(255, 255, 255, 0.035);
}

.jk-status-group summary strong,
.jk-status-order-card summary strong {
  color: var(--jk-text);
}

.jk-status-group summary small,
.jk-status-order-card summary span:not(.jk-badge),
.jk-status-position-card span,
.jk-status-group-tools label span,
.jk-status-empty {
  color: var(--jk-text-muted);
}

.jk-status-group summary em {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
}

.jk-status-group-note {
  background: rgba(239, 90, 111, 0.12);
  border-color: rgba(239, 90, 111, 0.28);
  color: var(--jk-text-soft);
}

.jk-status-group-tools input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--jk-line);
  color: var(--jk-text);
}

.jk-status-group-tools button.is-active {
  background: var(--jk-accent-soft);
  border-color: rgba(90, 162, 255, 0.4);
  color: #ffffff;
}

.jk-status-order-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--jk-line);
}

.jk-status-order-card summary {
  background: rgba(255, 255, 255, 0.03);
}

.jk-status-order-card summary dt,
.jk-status-position-card dt {
  color: var(--jk-text-muted);
}

.jk-status-order-card summary dd,
.jk-status-position-card dd,
.jk-status-position-card strong {
  color: var(--jk-text);
}

.jk-status-position-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--jk-line);
}

.jk-status-position-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.jk-status-position-product {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0, 1fr);
}

.jk-status-position-image {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: flex;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.jk-status-position-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.jk-status-position-image span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.jk-status-position-product strong {
  color: var(--jk-text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.jk-status-position-product span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.jk-status-page {
  background: transparent;
  color: var(--jk-text);
}

.jk-status-page .jk-overline {
  color: var(--jk-text-muted);
}

.jk-status-page .jk-dashboard-title {
  color: var(--jk-text);
}

.jk-status-header .jk-dashboard-subtitle {
  color: var(--jk-text-soft);
}

.jk-status-filter-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--jk-line);
  box-shadow: none;
}

.jk-status-filter-card strong {
  color: var(--jk-text);
}

.jk-status-filter-card a,
.jk-status-group-tools button {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--jk-line);
  color: var(--jk-text-soft);
}

.jk-status-filter-card a:hover,
.jk-status-group-tools button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--jk-text);
}

.jk-status-draft-pill {
  background: rgba(239, 90, 111, 0.16);
  border-color: rgba(239, 90, 111, 0.36);
  color: #ffffff;
}

.jk-status-draft-pill span {
  color: var(--jk-text-soft);
}

.jk-status-group {
  background: #edf1f5;
  border-color: #aeb9c6;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.jk-status-group.has-draft {
  border-color: #d18a9a;
}

.jk-status-group summary {
  background: linear-gradient(180deg, #dfe8f3, #c9d6e4);
}

.jk-status-group summary strong {
  color: #12344d;
}

.jk-status-group summary small {
  color: #465363;
}

.jk-status-group summary em {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(174, 185, 198, 0.78);
  border-radius: 6px;
  color: #17202a;
}

.jk-status-group-note {
  background: #fff1f3;
  border-color: #d18a9a;
  color: #6e1428;
}

.jk-status-group-tools label span {
  color: #465363;
}

.jk-status-group-tools input {
  background: #ffffff;
  border-color: #b8c2cc;
  color: #17202a;
}

.jk-status-group-tools button {
  background: #ffffff;
  border-color: #c5ced8;
  color: #2b4054;
}

.jk-status-group-tools button.is-active {
  background: #e8f2ff;
  border-color: #82add2;
  color: #12344d;
}

.jk-status-order-card {
  background: #ffffff;
  border-color: #b8c2cc;
  border-radius: 7px;
}

.jk-status-order-card summary {
  background: #f8fafc;
}

.jk-status-order-card summary strong {
  color: #12344d;
}

.jk-status-order-card summary span:not(.jk-badge),
.jk-status-order-card summary dt {
  color: #465363;
}

.jk-status-order-card summary dd {
  color: #17202a;
}

.jk-status-position-card {
  background: #ffffff;
  border-color: #d7dee6;
  border-radius: 6px;
}

.jk-status-position-card:hover {
  background: #e8f2ff;
}

.jk-status-position-card dt,
.jk-status-position-card span,
.jk-status-position-product span {
  color: #465363;
}

.jk-status-position-product em {
  background: #fff7c2;
  border: 1px solid #d2bd61;
  border-radius: 4px;
  color: #4b3b00;
  display: inline-flex;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
  margin-top: 7px;
  padding: 3px 7px;
  width: fit-content;
}

.jk-status-position-image.is-empty::before {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.34), rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  content: "";
  height: 18px;
  width: 18px;
}

.jk-status-position-card dd,
.jk-status-position-card strong,
.jk-status-position-product strong {
  color: #17202a;
}

.jk-status-position-image {
  background: #f4f6f8;
  border-color: #c8d0d8;
}

.jk-status-position-image span {
  color: #607080;
}

.jk-status-empty {
  color: #465363;
}

.jk-status-position-table-wrap {
  border-radius: 0;
  border-width: 1px 0 0;
  margin: 0;
}

.jk-status-position-table {
  min-width: 760px;
}

.jk-status-position-table td:nth-child(4),
.jk-status-position-table td:nth-child(5) {
  white-space: nowrap;
}

.jk-status-customer-no {
  background: #fff7c2;
  border: 1px solid #d2bd61;
  border-radius: 4px;
  color: #4b3b00;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 3px 7px;
  white-space: nowrap;
}

.jk-status-search-panel {
  align-items: end;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 22px 0;
  padding: 16px;
}

.jk-status-search-panel label {
  display: grid;
  gap: 7px;
}

.jk-status-search-panel label span {
  color: var(--jk-text-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.jk-status-search-panel input {
  background: #ffffff;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  color: #17202a;
  font-size: 1rem;
  font-weight: 750;
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.jk-status-search-panel input:focus {
  border-color: #6fa7d8;
  box-shadow: 0 0 0 3px rgba(111, 167, 216, 0.25);
}

.jk-status-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.jk-status-filter-actions button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  color: var(--jk-text-soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 38px;
  padding: 0 13px;
}

.jk-status-filter-actions button:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--jk-text);
}

.jk-status-filter-actions button.is-active {
  background: #ffffff;
  border-color: #6fa7d8;
  color: #12344d;
}

.jk-status-no-results {
  background: #fff7c2;
  border: 1px solid #d2bd61;
  border-radius: 8px;
  color: #4b3b00;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.jk-status-no-results a {
  color: #12344d;
  margin-left: 10px;
}

.jk-status-section-stack {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.jk-status-section {
  background: #f8fafc;
  border: 1px solid #c5ced8;
  border-radius: 7px;
  overflow: hidden;
}

.jk-status-section--action {
  border-color: #d8c071;
}

.jk-status-section--work {
  border-color: #d79b62;
}

.jk-status-section--shipping {
  border-color: #72a7cf;
}

.jk-status-section-head {
  align-items: center;
  background: #eef3f8;
  border-bottom: 1px solid #c5ced8;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 13px;
}

.jk-status-section--action .jk-status-section-head {
  background: #fff6d8;
  border-bottom-color: #d8c071;
}

.jk-status-section--work .jk-status-section-head {
  background: #fff0e4;
  border-bottom-color: #d79b62;
}

.jk-status-section--shipping .jk-status-section-head {
  background: #e7f4ff;
  border-bottom-color: #72a7cf;
}

.jk-status-section-head h2 {
  color: #12344d;
  font-size: 0.92rem;
  line-height: 1.2;
  margin: 0;
}

.jk-status-section-head span {
  color: #465363;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.jk-status-article-grid {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.jk-status-article {
  background: #ffffff;
  border: 1px solid #d7dee6;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.jk-status-article--action {
  border-left: 5px solid #d8b84f;
}

.jk-status-article--work {
  border-left: 5px solid #d7833c;
}

.jk-status-article--shipping {
  border-left: 5px solid #4f97cc;
}

.jk-status-article-top {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 12px;
}

.jk-status-article-image {
  align-items: center;
  aspect-ratio: 1;
  background: #f4f6f8;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.jk-status-article-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.jk-status-article-image span {
  color: #607080;
  font-size: 0.74rem;
  font-weight: 850;
}

.jk-status-article-image.is-empty::before {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.34), rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  content: "";
  height: 18px;
  width: 18px;
}

.jk-status-article-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.jk-status-article-main strong {
  color: #17202a;
  font-size: 0.98rem;
  line-height: 1.35;
}

.jk-status-article-main div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jk-status-item-code {
  background: #eef3f8;
  border: 1px solid #c5ced8;
  border-radius: 4px;
  color: #465363;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 7px;
}

.jk-status-article-facts {
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.jk-status-article-facts div {
  border-right: 1px solid #e2e8f0;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.jk-status-article-facts div:last-child {
  border-right: 0;
}

.jk-status-article-facts dt {
  color: #607080;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-status-article-facts dd {
  color: #17202a;
  font-size: 0.9rem;
  font-weight: 850;
  margin: 0;
}

.jk-status-elsewhere {
  background: #eef6ff;
  border-top: 1px solid #c7ddf2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
}

.jk-status-elsewhere span {
  color: #12344d;
  font-size: 0.78rem;
  font-weight: 900;
}

.jk-status-elsewhere em {
  background: #ffffff;
  border: 1px solid #c7ddf2;
  border-radius: 999px;
  color: #2b4054;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  padding: 3px 8px;
}

.jk-status-article-detail {
  border-top: 1px solid #e2e8f0;
}

.jk-status-article-detail summary {
  color: #12344d;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 10px 12px;
}

.jk-status-article-detail .jk-status-position-table {
  min-width: 0;
}

@media (max-width: 780px) {
  .jk-status-search-panel {
    grid-template-columns: 1fr;
  }

  .jk-status-filter-actions {
    justify-content: flex-start;
  }

  .jk-status-article-top {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .jk-status-article-top > .jk-badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .jk-status-article-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-status-article-facts div:nth-child(2n) {
    border-right: 0;
  }

  .jk-status-position-table,
  .jk-status-position-table thead,
  .jk-status-position-table tbody,
  .jk-status-position-table tr,
  .jk-status-position-table th,
  .jk-status-position-table td {
    display: block;
    width: 100%;
  }

  .jk-status-position-table thead {
    display: none;
  }

  .jk-status-position-table tr {
    border-bottom: 1px solid #d7dee6;
    padding: 8px 0;
  }

  .jk-status-position-table td {
    align-items: center;
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    text-align: right;
    white-space: normal;
  }

  .jk-status-position-table td::before {
    color: #607080;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
  }
}

.jk-position-qty {
  min-width: 58px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
}

.jk-review-step {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-left: 3px solid var(--jk-line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0;
}

.jk-review-step.is-active {
  border-left-color: var(--jk-warning);
  background: var(--jk-warning-soft);
}

.jk-review-step strong {
  color: var(--jk-text);
}

.jk-review-step span {
  color: var(--jk-text-soft);
  line-height: 1.45;
}

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

.jk-department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jk-department-grid--kiosk {
  gap: 16px;
}

.jk-department-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--jk-transition-fast), border-color var(--jk-transition-fast), background var(--jk-transition-fast);
}

.jk-department-grid--kiosk .jk-department-card {
  min-height: 190px;
  padding: 24px;
}

.jk-department-grid--kiosk .jk-department-card strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.jk-department-grid--kiosk .jk-department-card em {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
}

.jk-department-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 162, 255, 0.34);
  background: var(--jk-accent-soft);
}

.jk-department-card strong {
  color: var(--jk-text);
  font-size: 1.08rem;
}

.jk-department-card span,
.jk-department-card small {
  color: var(--jk-text-soft);
  line-height: 1.45;
}

.jk-department-card em {
  align-self: end;
  color: var(--jk-text);
  font-style: normal;
  font-weight: 820;
}

.jk-department-card > b {
  align-self: end;
  background: rgba(59, 130, 246, .24);
  border: 1px solid rgba(147, 197, 253, .42);
  border-radius: 7px;
  color: #dbeafe;
  display: inline-flex;
  font-size: .86rem;
  justify-self: start;
  padding: 8px 10px;
}

.jk-department-card-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.jk-department-card-actions .jk-btn,
.jk-department-card-actions .jk-btn-secondary {
  min-height: 38px;
}

.jk-department-card--blue {
  border-color: rgba(90, 162, 255, 0.35);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.2), rgba(255, 255, 255, 0.035));
}

.jk-department-card--green {
  border-color: rgba(49, 196, 141, 0.34);
  background: linear-gradient(180deg, rgba(49, 196, 141, 0.2), rgba(255, 255, 255, 0.035));
}

.jk-department-card--amber {
  border-color: rgba(244, 183, 64, 0.34);
  background: linear-gradient(180deg, rgba(244, 183, 64, 0.2), rgba(255, 255, 255, 0.035));
}

.jk-department-card--violet {
  border-color: rgba(181, 120, 255, 0.34);
  background: linear-gradient(180deg, rgba(181, 120, 255, 0.2), rgba(255, 255, 255, 0.035));
}

.jk-department-card--red {
  border-color: rgba(239, 90, 111, 0.34);
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.19), rgba(255, 255, 255, 0.035));
}

.jk-department-card.has-draft {
  border-color: rgba(239, 90, 111, 0.58);
  box-shadow: inset 0 0 0 2px rgba(239, 90, 111, 0.24), 0 18px 40px rgba(239, 90, 111, 0.12);
}

.jk-department-card.has-draft em {
  color: #ffffff;
  background: rgba(239, 90, 111, 0.78);
}

.jk-location-tile {
  min-height: 118px;
  display: grid;
  gap: 6px;
  align-content: center;
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--jk-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--jk-text);
}

.jk-location-tile.is-active,
.jk-location-tile:hover {
  border-color: rgba(90, 162, 255, 0.36);
  background: var(--jk-accent-soft);
}

.jk-location-tile span,
.jk-location-tile small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-scan-input {
  min-height: 92px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(95, 169, 255, 0.45);
  border-radius: 10px;
  background: rgba(222, 240, 255, 0.12);
}

.jk-scan-card .jk-card-body {
  display: grid;
  gap: 20px;
}

.jk-scan-topline,
.jk-scan-submit-row,
.jk-scan-topline-actions,
.jk-scan-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.jk-scan-area-context {
  min-width: 220px;
  display: grid;
  gap: 3px;
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(90, 162, 255, 0.22);
  border-radius: 12px;
  background: rgba(90, 162, 255, 0.1);
}

.jk-scan-area-context span,
.jk-scan-area-context small {
  color: var(--jk-text-muted);
  line-height: 1.3;
}

.jk-scan-area-context strong {
  color: var(--jk-text);
}

.jk-scan-input--large {
  min-height: 112px;
  border-width: 2px;
  border-color: rgba(153, 205, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(232, 246, 255, 0.22), rgba(123, 193, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 34px rgba(47, 124, 246, 0.18);
}

.jk-scan-input--large input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.jk-scan-input--large input::placeholder {
  color: #ffffff;
  opacity: 0.96;
}

.jk-scan-input small,
.jk-scan-submit-row span {
  color: var(--jk-text-muted);
  line-height: 1.4;
}

.jk-scan-message {
  padding: 12px 14px;
  border: 1px solid rgba(244, 183, 64, 0.28);
  border-radius: 12px;
  color: var(--jk-text);
  background: var(--jk-warning-soft);
  font-weight: 780;
  line-height: 1.45;
}

.jk-scan-message[hidden] {
  display: none;
}

.jk-scan-rule-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 183, 64, 0.22);
  border-radius: 12px;
  background: var(--jk-warning-soft);
}

.jk-scan-rule-strip strong {
  color: var(--jk-text);
}

.jk-scan-rule-strip span {
  color: var(--jk-text-soft);
  line-height: 1.45;
}

.jk-phone-scan-panel {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-phone-scan-panel[hidden] {
  display: none;
}

.jk-phone-scan-panel video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #05080d;
}

.jk-phone-scan-panel span {
  color: var(--jk-text-soft);
  line-height: 1.45;
}

.jk-scan-divider {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(90, 162, 255, 0), rgba(90, 162, 255, 0.95), rgba(49, 196, 141, 0.45));
}

.jk-scan-empty {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px dashed var(--jk-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.jk-scan-empty[hidden] {
  display: none;
}

.jk-scan-empty strong {
  color: var(--jk-text);
}

.jk-scan-empty span {
  color: var(--jk-text-muted);
  line-height: 1.45;
}

.jk-position-list--scan {
  gap: 14px;
}

.jk-position-row--scan {
  min-height: 72px;
  grid-template-columns: 144px minmax(0, 1fr) minmax(112px, auto);
  gap: 14px;
  padding: 12px;
}

.jk-position-row--scan .jk-position-image {
  grid-row: 1 / span 2;
}

.jk-position-row--scan .jk-position-main strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.jk-position-row--foreign_article {
  border-color: rgba(87, 181, 255, 0.36);
  background: rgba(87, 181, 255, 0.075);
}

.jk-position-row--review_article {
  border-color: rgba(244, 183, 64, 0.42);
  background: rgba(244, 183, 64, 0.07);
}

.jk-position-main .jk-position-kind {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 999px;
  color: var(--jk-text-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.jk-position-row--foreign_article .jk-position-kind {
  color: #dff3ff;
  border-color: rgba(87, 181, 255, 0.42);
  background: rgba(87, 181, 255, 0.16);
}

.jk-position-row--review_article .jk-position-kind {
  color: #fff0c2;
  border-color: rgba(244, 183, 64, 0.45);
  background: rgba(244, 183, 64, 0.16);
}

.jk-position-main .jk-customer-catalog-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(245, 183, 77, 0.55);
  border-radius: 8px;
  color: #fff7dc;
  background: rgba(154, 96, 7, 0.48);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 212, 110, 0.12) inset;
}

.jk-customer-workbench {
  min-height: calc(100vh - 78px);
}

.jk-customer-workbench .jk-dashboard-head {
  margin-bottom: 18px;
}

.jk-customer-home {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: start;
  padding: 8px 0 28px;
}

.jk-customer-station-shell {
  width: min(calc(100% - 28px), 1040px);
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.jk-customer-home .jk-customer-main {
  gap: 10px;
}

.jk-customer-work-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.jk-customer-work-section--status,
.jk-customer-work-section--documents,
.jk-customer-work-section--kanban-admin {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  padding: 14px;
}

.jk-customer-work-section--status {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(49, 196, 141, 0.06));
  border-color: rgba(87, 181, 255, 0.28);
}

.jk-customer-work-section--documents {
  background: linear-gradient(90deg, rgba(244, 183, 64, 0.14), rgba(255, 255, 255, 0.025));
  border-color: rgba(244, 183, 64, 0.28);
}

.jk-customer-work-section--kanban-admin {
  background: linear-gradient(90deg, rgba(49, 196, 141, 0.13), rgba(14, 165, 233, 0.065));
  border-color: rgba(49, 196, 141, 0.26);
}

.jk-customer-work-section .jk-exec-section-head {
  margin-bottom: 0;
}

.jk-customer-work-section .jk-exec-section-head h2 {
  font-size: 1.16rem;
  letter-spacing: 0;
}

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

.jk-customer-topic-menu {
  margin: 0;
}

.jk-customer-topic-menu .jk-exec-menu-link {
  min-height: 58px;
}

.jk-customer-home .jk-kiosk-primary {
  min-height: clamp(104px, 15svh, 132px);
}

.jk-customer-order-panel .jk-kiosk-primary {
  margin-top: 0;
}

.jk-customer-home .jk-kiosk-primary strong {
  font-size: clamp(2.2rem, 5.5vw, 3.45rem);
}

.jk-customer-home .jk-customer-section {
  gap: 8px;
}

.jk-customer-home .jk-customer-section-head h2 {
  font-size: 0.95rem;
}

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

.jk-customer-home-top {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.jk-order-hero {
  margin-top: 8px;
}

.jk-order-main-button {
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--jk-text);
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 24px;
  text-decoration: none;
}

.jk-order-main-button span {
  color: var(--jk-accent-soft);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-order-main-button strong {
  color: var(--jk-text);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.1;
}

.jk-order-path-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-customer-order-paths {
  margin-top: 0;
}

.jk-order-path,
.jk-customer-simple-card {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.jk-order-path {
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
}

.jk-order-path--kanban {
  border-color: rgba(49, 196, 141, 0.38);
  background: rgba(49, 196, 141, 0.09);
}

.jk-order-path--shop {
  border-color: rgba(87, 181, 255, 0.38);
  background: rgba(87, 181, 255, 0.08);
}

.jk-order-path--customer {
  border-color: rgba(87, 181, 255, 0.38);
  background: rgba(87, 181, 255, 0.08);
}

.jk-order-path--request {
  border-color: rgba(244, 183, 64, 0.42);
  background: rgba(244, 183, 64, 0.08);
}

.jk-order-path strong {
  color: var(--jk-text);
  font-size: 1.08rem;
  font-weight: 950;
}

.jk-order-path span,
.jk-order-path small,
.jk-customer-simple-card small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-order-path small {
  align-self: end;
  color: var(--jk-text-soft);
  font-size: 0.8rem;
}

.jk-customer-simple-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-customer-simple-grid--management {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-customer-simple-card {
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px 14px;
}

.jk-customer-simple-card > span {
  color: var(--jk-accent-soft);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.jk-customer-simple-card strong {
  color: var(--jk-text);
  font-size: 0.98rem;
  font-weight: 950;
}

.jk-customer-simple-card--kanban {
  border-color: rgba(49, 196, 141, 0.32);
  background: rgba(49, 196, 141, 0.07);
}

.jk-customer-simple-card--planner {
  border-color: rgba(14, 165, 233, 0.36);
  background: rgba(14, 165, 233, 0.075);
}

.jk-customer-simple-card--orders {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
}

.jk-customer-simple-card--history,
.jk-customer-simple-card--documents {
  border-color: rgba(244, 183, 64, 0.32);
  background: rgba(244, 183, 64, 0.065);
}

.jk-customer-simple-card--shop,
.jk-customer-simple-card--delivery,
.jk-customer-simple-card--customer {
  border-color: rgba(87, 181, 255, 0.32);
  background: rgba(87, 181, 255, 0.065);
}

.jk-customer-simple-card--chat,
.jk-customer-simple-card--offer {
  border-color: rgba(167, 139, 250, 0.32);
  background: rgba(167, 139, 250, 0.065);
}

.jk-exec-menu-link--offer {
  background: rgba(167, 139, 250, 0.08);
}

.jk-exec-menu-link--offer span,
.jk-exec-menu-link--offer strong,
.jk-exec-menu-link--offer em {
  color: #f0e9ff;
}

.jk-exec-menu-link--orders {
  background: rgba(37, 99, 235, 0.08);
}

.jk-exec-menu-link--orders span,
.jk-exec-menu-link--orders strong,
.jk-exec-menu-link--orders em {
  color: #dbeafe;
}

.jk-exec-menu-link--documents {
  background: rgba(244, 183, 64, 0.07);
}

.jk-customer-simple-card--request {
  border-color: rgba(244, 183, 64, 0.34);
  background: rgba(244, 183, 64, 0.075);
}

.jk-customer-simple-card.is-alert {
  box-shadow: 0 0 0 1px rgba(244, 183, 64, 0.16) inset, 0 12px 28px rgba(244, 183, 64, 0.08);
}

.jk-kanban-config {
  padding: 18px 0 34px;
}

.jk-kanban-config-shell {
  display: grid;
  gap: 18px;
}

.jk-kanban-config-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.jk-warehouse-hall-panel {
  background: #edf2f7;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.jk-warehouse-hall-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.jk-warehouse-hall-head small {
  color: var(--jk-text-muted);
  line-height: 1.35;
  max-width: 520px;
  text-align: right;
}

.jk-warehouse-hall-map {
  align-items: stretch;
  background:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 24px 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  height: 2400px;
  min-height: 2400px;
  min-width: 2600px;
  overflow: auto;
  padding: 0;
  position: relative;
}

.jk-kanban-config--warehouse-view .jk-warehouse-layout-builder {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  overflow: hidden;
}

.jk-kanban-config--warehouse-view .jk-warehouse-hall-map {
  background:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    #eef6ff;
  height: min(72vh, 920px);
  max-width: 100%;
  min-height: 620px;
  min-width: 0;
  width: 100%;
}

.jk-kanban-config--warehouse-view .jk-warehouse-zone {
  cursor: pointer;
  touch-action: manipulation;
}

.jk-warehouse-zone,
.jk-warehouse-aisle {
  border-radius: 7px;
  min-width: 0;
}

.jk-warehouse-zone {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
  color: var(--jk-text);
  display: grid;
  gap: 7px;
  grid-template-rows: minmax(0, 1fr);
  justify-items: start;
  min-height: 28px;
  min-width: 28px;
  padding: 12px;
  position: absolute;
  text-align: left;
  touch-action: none;
  overflow: hidden;
}

.jk-warehouse-zone-title {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.jk-warehouse-hall-map .jk-warehouse-zone-title {
  display: none;
}

.jk-warehouse-zone-title strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.jk-warehouse-zone-title span,
.jk-warehouse-zone-title em {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.25;
}

.jk-warehouse-zone.is-active {
  border-color: rgba(15, 118, 110, 0.56);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.jk-warehouse-zone.is-layout-selected {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  z-index: 20;
}

.jk-warehouse-layout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.jk-warehouse-layout-builder {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.jk-warehouse-layout-builder--readonly {
  grid-template-columns: minmax(0, 1fr);
}

.jk-warehouse-area-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
}

.jk-warehouse-area-tabs button,
.jk-warehouse-area-tabs a {
  appearance: none;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 140px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
}

.jk-warehouse-area-tabs button.is-active,
.jk-warehouse-area-tabs a.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.jk-warehouse-area-tabs span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.jk-warehouse-area-tabs strong {
  color: #0f172a;
  font-size: 0.82rem;
}

.jk-kanban-config--compact-hall .jk-warehouse-hall-map {
  height: 760px;
  min-height: 760px;
  min-width: 1120px;
}

.jk-kanban-config--hall-readonly .jk-warehouse-zone {
  cursor: pointer;
  touch-action: auto;
}

.jk-kanban-config--hall-readonly .jk-warehouse-resize,
.jk-kanban-config--hall-readonly .jk-warehouse-rack-chip--add {
  display: none;
}

.jk-warehouse-toolbox {
  align-content: start;
  background: #172033;
  border: 1px solid rgba(15, 23, 42, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.jk-warehouse-search-panel .jk-label,
.jk-warehouse-search-panel .jk-rack-search-results {
  color: #334155;
}

.jk-warehouse-search-panel .jk-input {
  background: #ffffff;
  color: #0f172a;
}

.jk-warehouse-search-panel .jk-input::placeholder {
  color: #64748b;
}

.jk-warehouse-toolbox strong {
  color: #ffffff;
  font-weight: 950;
}

.jk-warehouse-toolbox button.jk-warehouse-tool {
  appearance: none;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 7px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  gap: 4px 9px;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 72px;
  padding: 9px;
  text-align: left;
}

.jk-warehouse-tool b,
.jk-warehouse-tool small {
  min-width: 0;
}

.jk-warehouse-tool b {
  font-size: 0.86rem;
  font-weight: 950;
}

.jk-warehouse-tool small {
  color: #64748b;
  font-size: 0.76rem;
  grid-column: 2;
}

.jk-warehouse-tool-icon {
  background: #f8fafc;
  border: 2px solid #0f172a;
  display: block;
  grid-row: span 2;
  min-height: 42px;
}

.jk-warehouse-tool-icon--vertical {
  height: 54px;
  width: 22px;
}

.jk-warehouse-tool-icon--horizontal,
.jk-warehouse-tool-icon--head {
  height: 22px;
  width: 54px;
}

.jk-warehouse-tool-icon--cart {
  border-color: #6366f1;
  border-radius: 4px;
  height: 34px;
  position: relative;
  width: 48px;
}

.jk-warehouse-tool-icon--cart::before,
.jk-warehouse-tool-icon--cart::after {
  background: #6366f1;
  border-radius: 99px;
  bottom: -8px;
  content: "";
  height: 8px;
  position: absolute;
  width: 8px;
}

.jk-warehouse-tool-icon--cart::before {
  left: 6px;
}

.jk-warehouse-tool-icon--cart::after {
  right: 6px;
}

.jk-warehouse-tool-icon--workbench {
  border-color: #7c3aed;
  border-bottom-width: 8px;
  height: 28px;
  width: 58px;
}

.jk-warehouse-toolbox label {
  display: grid;
  gap: 4px;
}

.jk-warehouse-toolbox label span,
.jk-warehouse-toolbox small {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 850;
}

.jk-warehouse-canvas-empty {
  align-items: center;
  border: 2px dashed rgba(100, 116, 139, 0.35);
  border-radius: 8px;
  color: #64748b;
  display: flex;
  font-weight: 900;
  inset: 18px;
  justify-content: center;
  pointer-events: none;
  position: absolute;
}

.jk-warehouse-canvas-empty[hidden] {
  display: none;
}

.jk-warehouse-resize {
  background: #f97316;
  border: 2px solid #ffffff;
  bottom: -6px;
  cursor: nwse-resize;
  height: 14px;
  position: absolute;
  right: -6px;
  width: 14px;
}

.jk-warehouse-layout-actions button,
.jk-warehouse-layout-actions a {
  appearance: none;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  color: #0f172a !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
  text-shadow: none;
}

.jk-warehouse-layout-actions [data-layout-zoom-reset] {
  min-width: 54px;
}

.jk-layout-link-dialog {
  max-width: 620px;
}

.jk-layout-link-body {
  display: grid;
  gap: 14px;
}

.jk-layout-link-body p {
  color: #cbd5e1;
  font-weight: 850;
  margin: 0;
}

.jk-layout-link-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.jk-layout-link-option {
  align-items: center;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.jk-layout-link-option:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.jk-layout-link-option input {
  height: 18px;
  width: 18px;
}

.jk-layout-link-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.jk-layout-link-option strong {
  color: #f8fafc;
  font-size: 0.92rem;
}

.jk-layout-link-option em,
.jk-layout-link-option small,
.jk-layout-link-empty {
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.jk-layout-link-option small {
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 999px;
  color: #bfdbfe;
  padding: 4px 8px;
}

.jk-warehouse-zone--tower {
  align-content: stretch;
  border-top: 8px solid #2563eb;
  justify-items: stretch;
  padding: 8px;
}

.jk-warehouse-zone--vertical,
.jk-warehouse-zone--wall {
  align-content: start;
  border-left: 8px solid #0f766e;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  justify-items: stretch;
  padding: 8px 8px 8px 10px;
}

.jk-warehouse-zone--vertical .jk-warehouse-zone-title,
.jk-warehouse-zone--wall .jk-warehouse-zone-title {
  align-self: stretch;
  grid-column: 1;
  grid-row: 1;
  justify-items: center;
  min-height: 0;
  writing-mode: vertical-rl;
}

.jk-warehouse-zone--vertical .jk-warehouse-rack-stack,
.jk-warehouse-zone--wall .jk-warehouse-rack-stack {
  grid-column: 1;
  grid-row: 1;
}

.jk-warehouse-zone--vertical .jk-warehouse-zone-title span,
.jk-warehouse-zone--vertical .jk-warehouse-zone-title strong,
.jk-warehouse-zone--vertical .jk-warehouse-zone-title em,
.jk-warehouse-zone--wall .jk-warehouse-zone-title span,
.jk-warehouse-zone--wall .jk-warehouse-zone-title strong,
.jk-warehouse-zone--wall .jk-warehouse-zone-title em {
  line-height: 1.1;
}

.jk-warehouse-zone--vertical .jk-warehouse-zone-title strong,
.jk-warehouse-zone--wall .jk-warehouse-zone-title strong {
  font-size: 0.92rem;
}

.jk-warehouse-zone--horizontal,
.jk-warehouse-zone--row {
  align-content: center;
  border-top: 8px solid #2563eb;
}

.jk-warehouse-zone--horizontal .jk-warehouse-rack-stack {
  align-items: stretch;
  grid-auto-flow: column;
  grid-auto-columns: minmax(56px, 1fr);
  grid-template-columns: none;
  overflow: hidden;
}

.jk-warehouse-zone--horizontal .jk-warehouse-rack-chip {
  min-height: 100%;
}

.jk-warehouse-zone--workbench {
  align-content: center;
  background: #f5f3ff;
  border-top: 8px solid #7c3aed;
}

.jk-warehouse-zone.is-back-to-back {
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.28),
    0 12px 24px rgba(15, 23, 42, 0.12),
    inset 0 -5px 0 #2563eb;
}

.jk-warehouse-zone.is-back-to-back::after {
  background: #2563eb;
  border-radius: 999px;
  bottom: 6px;
  color: #ffffff;
  content: "Rücken an Rücken";
  font-size: 0.58rem;
  font-weight: 950;
  left: 8px;
  line-height: 1;
  padding: 4px 7px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
}

.jk-warehouse-zone--head {
  align-content: start;
  border-top: 8px solid #0f766e;
}

.jk-warehouse-zone--sales {
  align-content: end;
  background: #fff7ed;
  border-right: 8px solid #f97316;
}

.jk-warehouse-search-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.jk-warehouse-rack-stack {
  align-self: stretch;
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  height: 100%;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.jk-warehouse-rack-stack--vertical {
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  grid-template-columns: none;
}

.jk-warehouse-rack-stack--sales {
  align-items: end;
}

.jk-warehouse-zone--tower .jk-warehouse-rack-stack {
  grid-template-columns: 1fr;
}

.jk-warehouse-workbench-label {
  align-self: stretch;
  background: repeating-linear-gradient(90deg, #ede9fe, #ede9fe 14px, #ddd6fe 14px, #ddd6fe 28px);
  border: 2px solid #4c1d95;
  color: #2e1065;
  display: grid;
  font-size: 0.84rem;
  font-weight: 950;
  min-height: 42px;
  place-items: center;
  text-align: center;
}

.jk-warehouse-rack-chip {
  align-items: center;
  appearance: none;
  background: #f8fafc;
  border: 2px solid #0f172a;
  border-radius: 0;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  min-height: 30px;
  min-width: 0;
  overflow: hidden;
  padding: 5px 7px;
  text-align: center;
  white-space: nowrap;
}

.jk-warehouse-rack-chip span,
.jk-warehouse-rack-chip small {
  display: block;
  line-height: 1;
}

.jk-warehouse-rack-chip small {
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 900;
  margin-top: 4px;
}

.jk-warehouse-zone--vertical .jk-warehouse-rack-chip,
.jk-warehouse-zone--wall .jk-warehouse-rack-chip {
  min-height: 100%;
  padding: 4px 2px;
  writing-mode: vertical-rl;
}

.jk-warehouse-zone--vertical .jk-warehouse-rack-chip small,
.jk-warehouse-zone--wall .jk-warehouse-rack-chip small {
  margin-top: 0;
  margin-inline-start: 4px;
}

.jk-warehouse-rack-chip:hover,
.jk-warehouse-rack-chip:focus-visible {
  background: #e0f2fe;
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.jk-warehouse-rack-chip--add {
  background: #ecfdf5;
  border-style: dashed;
  color: #047857;
}

.jk-warehouse-zone--vertical .jk-warehouse-rack-chip--add,
.jk-warehouse-zone--wall .jk-warehouse-rack-chip--add {
  writing-mode: horizontal-tb;
}

.jk-hall-rack-config-dialog {
  max-width: 420px;
}

.jk-hall-rack-config-body {
  display: grid;
  gap: 14px;
}

.jk-hall-rack-config-body .jk-btn-danger {
  border-color: rgba(220, 38, 38, 0.32);
  color: #b91c1c;
}

.jk-status-layout-map {
  background:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 24px 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  height: 280px;
  overflow: auto;
  position: relative;
}

.jk-status-layout-map .jk-warehouse-zone {
  min-height: 28px;
  min-width: 28px;
  padding: 6px;
}

.jk-status-layout-map .jk-warehouse-rack-chip {
  font-size: 0.68rem;
  min-height: 24px;
}

.jk-status-layout-map .jk-warehouse-resize,
.jk-status-layout-map .jk-warehouse-rack-chip--add {
  display: none;
}

.jk-warehouse-layout-actions button:disabled {
  background: #f8fafc;
  color: #475569 !important;
  opacity: 1;
}

.jk-customer-rack-view {
  background: #edf2f7;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.jk-customer-rack-view-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.jk-customer-rack-view-head small {
  color: #475569;
  font-weight: 850;
}

.jk-customer-rack-groups {
  display: grid;
  gap: 14px;
}

.jk-customer-layout-sketch {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.jk-customer-layout-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-top: 8px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 9px;
  min-height: 96px;
  padding: 11px;
}

.jk-customer-layout-card[hidden] {
  display: none !important;
}

.jk-customer-layout-card.is-back-to-back {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12),
    0 10px 20px rgba(15, 23, 42, 0.06);
}

.jk-customer-rack-link-badge {
  align-self: start;
  background: #dbeafe;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 950;
  padding: 4px 8px;
  width: max-content;
}

.jk-customer-layout-card--tower,
.jk-customer-layout-card--vertical,
.jk-customer-layout-card--wall {
  border-left: 8px solid #0f766e;
  border-top-width: 1px;
}

.jk-customer-layout-card--cart {
  border-top-color: #6366f1;
  position: relative;
}

.jk-customer-layout-card--cart::before,
.jk-customer-layout-card--cart::after {
  background: #6366f1;
  border-radius: 99px;
  bottom: 7px;
  content: "";
  height: 10px;
  position: absolute;
  width: 10px;
}

.jk-customer-layout-card--cart::before {
  left: 16px;
}

.jk-customer-layout-card--cart::after {
  right: 16px;
}

.jk-customer-layout-card--workbench {
  border-top-color: #7c3aed;
}

.jk-customer-layout-card--workbench .jk-customer-layout-card-racks {
  display: block;
}

.jk-customer-layout-card--workbench .jk-customer-layout-card-racks::before {
  background: repeating-linear-gradient(90deg, #ede9fe, #ede9fe 14px, #ddd6fe 14px, #ddd6fe 28px);
  border: 2px solid #4c1d95;
  color: #2e1065;
  content: "Arbeitsfläche";
  display: grid;
  font-size: 0.78rem;
  font-weight: 950;
  min-height: 34px;
  place-items: center;
}

.jk-customer-layout-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.jk-customer-layout-card header strong {
  color: #334155;
  font-size: 0.82rem;
}

.jk-customer-layout-card header small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.jk-customer-layout-card-racks {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
}

.jk-customer-layout-card-racks--vertical {
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
}

.jk-customer-layout-card-racks span {
  background: #f8fafc;
  border: 2px solid #0f172a;
  color: #0f172a;
  display: grid;
  font-size: 0.68rem;
  font-weight: 950;
  min-height: 28px;
  place-items: center;
}

.jk-customer-rack-group[hidden] {
  display: none !important;
}

.jk-customer-rack-group {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.jk-customer-rack-group.is-back-to-back {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.1),
    0 12px 26px rgba(15, 23, 42, 0.08);
}

.jk-customer-rack-group header {
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.jk-customer-rack-group header span {
  color: #334155;
  font-weight: 950;
}

.jk-customer-rack-group header strong {
  color: #64748b;
  font-size: 0.82rem;
}

.jk-customer-rack-group header em {
  background: #dbeafe;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  padding: 5px 9px;
}

.jk-customer-rack-stack {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 132px));
}

.jk-customer-rack-stack--vertical {
  grid-template-columns: repeat(auto-fit, minmax(76px, 96px));
}

.jk-customer-rack-wall {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
}

.jk-customer-rack-wall--compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
}

.jk-customer-rack-wall--cart {
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
}

.jk-customer-rack-group--cart .jk-customer-rack-visual {
  background: #eef2ff;
  border-left: 0;
  border-right: 0;
  border-top: 8px solid #6366f1;
  min-height: 245px;
  position: relative;
}

.jk-customer-rack-group--cart .jk-customer-rack-visual::before,
.jk-customer-rack-group--cart .jk-customer-rack-visual::after {
  background: #6366f1;
  border: 2px solid #eef2ff;
  border-radius: 99px;
  bottom: -8px;
  content: "";
  height: 16px;
  position: absolute;
  width: 16px;
}

.jk-customer-rack-group--cart .jk-customer-rack-visual::before {
  left: 28px;
}

.jk-customer-rack-group--cart .jk-customer-rack-visual::after {
  right: 28px;
}

.jk-customer-rack-group--cart .jk-customer-rack-shelf {
  min-height: 34px;
}

.jk-customer-workbench-visual {
  background: repeating-linear-gradient(90deg, #ede9fe, #ede9fe 18px, #ddd6fe 18px, #ddd6fe 36px);
  border: 2px solid #4c1d95;
  border-top: 10px solid #7c3aed;
  border-radius: 8px;
  color: #2e1065;
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 18px;
  place-items: center;
  text-align: center;
}

.jk-customer-workbench-visual strong {
  color: #2e1065;
  font-size: 1rem;
  font-weight: 950;
}

.jk-customer-workbench-visual span {
  color: #5b21b6;
  font-weight: 900;
}

.jk-customer-rack-visual {
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.9) 0 8px, transparent 8px calc(100% - 8px), rgba(226, 232, 240, 0.9) calc(100% - 8px)),
    linear-gradient(180deg, rgba(248, 250, 252, 0.18), rgba(15, 23, 42, 0.12)),
    #394150;
  border: 1px solid rgba(226, 232, 240, 0.38);
  border-radius: 7px;
  box-shadow: inset 18px 0 0 rgba(148, 163, 184, 0.18), inset -18px 0 0 rgba(148, 163, 184, 0.18), 0 18px 40px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0;
  grid-template-rows: auto auto 1fr;
  min-height: 610px;
  padding: 0 22px 20px;
  position: relative;
}

.jk-customer-rack-visual::before,
.jk-customer-rack-visual::after {
  background: repeating-linear-gradient(180deg, rgba(15, 23, 42, 0.34) 0 2px, rgba(226, 232, 240, 0.8) 2px 5px, transparent 5px 18px);
  content: "";
  inset: 42px auto 16px 7px;
  position: absolute;
  width: 8px;
  z-index: 0;
}

.jk-customer-rack-visual::after {
  left: auto;
  right: 7px;
}

.jk-customer-rack-visual--cart {
  background: #eef2ff;
  border-left: 0;
  border-right: 0;
  border-top: 8px solid #6366f1;
  min-height: 245px;
  position: relative;
}

.jk-customer-rack-visual--cart::before,
.jk-customer-rack-visual--cart::after {
  background: #6366f1;
  border: 2px solid #eef2ff;
  border-radius: 99px;
  bottom: -8px;
  content: "";
  height: 16px;
  position: absolute;
  width: 16px;
}

.jk-customer-rack-visual--cart::before {
  left: 28px;
}

.jk-customer-rack-visual--cart::after {
  right: 28px;
}

.jk-customer-rack-visual--cart .jk-customer-rack-shelf {
  min-height: 34px;
}

.jk-customer-rack-visual--cart .jk-customer-rack-shelf i {
  height: 8px;
}

.jk-customer-rack-visual header {
  align-items: start;
  border: 0;
  display: grid;
  gap: 7px;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  margin: 7px 4px 0;
  padding: 0;
  position: relative;
  z-index: 4;
}

.jk-customer-rack-visual header > button {
  appearance: none;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-left: 0;
  border-radius: 8px;
  border-right: 0;
  border-top: 0;
  color: #ffffff;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 0;
  text-align: center;
}

.jk-customer-rack-visual header label {
  display: grid;
  gap: 3px;
}

.jk-customer-rack-visual header label span {
  color: var(--jk-text-soft);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.jk-customer-rack-visual .jk-rack-head-actions-mini {
  display: grid;
  gap: 4px;
  grid-template-columns: 32px;
}

.jk-customer-rack-visual .jk-rack-mini-action {
  pointer-events: none;
}

.jk-customer-rack-visual header > button strong,
.jk-customer-rack-visual header > button small {
  color: #ffffff;
}

.jk-customer-rack-visual header > button small {
  opacity: 0.72;
}

.jk-customer-rack-side-toggle {
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  display: flex;
  padding: 3px;
}

.jk-customer-rack-side-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #cbd5e1;
  cursor: pointer;
  font-weight: 950;
  min-width: 34px;
  padding: 6px 8px;
}

.jk-customer-rack-side-toggle button.is-active {
  background: #2563eb;
  color: #ffffff;
}

.jk-customer-rack-frame {
  display: grid;
  gap: 0;
  grid-auto-rows: minmax(88px, auto);
  padding: 28px 7px 0;
  position: relative;
  z-index: 1;
}

.jk-customer-rack-shelf {
  appearance: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(148, 163, 184, 0.78) 58%, rgba(71, 85, 105, 0.92));
  border: 1px solid rgba(248, 250, 252, 0.48);
  border-radius: 4px;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.24);
  color: #0f172a;
  cursor: pointer;
  display: block;
  margin: 0 3px 12px;
  min-height: 68px;
  overflow: hidden;
  padding: 0 0 5px;
  position: relative;
  text-align: left;
}

.jk-customer-rack-shelf > strong[data-readonly-box-count] {
  background: #2563eb;
  border-radius: 99px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 950;
  padding: 3px 7px;
  position: absolute;
  right: 13px;
  top: 6px;
  z-index: 5;
}

.jk-customer-rack-shelf > strong[data-readonly-box-count]:empty {
  display: none;
}

.jk-customer-rack-shelf span {
  background: rgba(15, 23, 42, 0.86);
  border-radius: 5px;
  color: #ffffff;
  display: block;
  font-size: 0.64rem;
  font-weight: 950;
  left: 12px;
  max-width: calc(100% - 72px);
  overflow: hidden;
  padding: 4px 7px;
  position: absolute;
  text-overflow: ellipsis;
  top: 4px;
  white-space: nowrap;
  z-index: 4;
}

.jk-customer-rack-shelf em {
  color: #cbd5e1;
  display: none;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
  justify-self: end;
}

.jk-customer-rack-shelf i {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 5px;
  inset: 26px 12px 6px 12px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  z-index: 2;
}

.jk-customer-rack-shelf.is-filled i,
.jk-readonly-rack-shelf-row.is-filled i {
  background: transparent;
}

.jk-customer-rack-box-mini,
.jk-customer-rack-box-more {
  align-items: center;
  align-self: stretch;
  background: linear-gradient(180deg, #dbeafe 0%, #60a5fa 54%, #2563eb 100%);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #ffffff;
  display: grid;
  font-style: normal;
  font-weight: 950;
  justify-items: center;
  line-height: 1;
  min-width: 28px;
  padding: 3px 5px;
  text-shadow: 0 1px 0 rgba(15, 23, 42, 0.22);
}

.jk-customer-rack-box-mini span {
  color: #ffffff;
  font-size: 0.62rem;
}

.jk-customer-rack-box-mini small,
.jk-customer-rack-box-mini em {
  color: #e0f2fe;
  font-size: 0.52rem;
  font-style: normal;
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-customer-rack-box-more {
  background: #1e293b;
  font-size: 0.68rem;
}

.jk-customer-rack-shelf:hover,
.jk-customer-rack-shelf:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 2px;
}

.jk-customer-rack-card {
  appearance: none;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  border: 2px solid #0f172a;
  border-radius: 3px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  min-height: 76px;
  padding: 12px 10px;
  place-items: center;
  text-align: center;
}

.jk-customer-rack-card:hover,
.jk-customer-rack-card:focus-visible {
  background: #e0f2fe;
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.jk-customer-rack-card span {
  font-weight: 950;
}

.jk-customer-rack-card small {
  color: #64748b;
  font-weight: 900;
}

.jk-customer-rack-empty {
  background: #ffffff;
  border: 1px dashed rgba(100, 116, 139, 0.45);
  border-radius: 8px;
  color: #475569;
  display: grid;
  gap: 6px;
  padding: 22px;
}

.jk-readonly-rack-detail {
  display: grid;
  gap: 14px;
}

.jk-readonly-rack-detail-dialog {
  max-height: 92vh;
  max-width: 1480px;
  overflow: auto;
  width: min(92vw, 1480px);
}

.jk-readonly-rack-meta {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.jk-readonly-rack-meta span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.jk-readonly-rack-meta strong {
  color: #0f172a;
}

.jk-readonly-rack-shelves {
  display: grid;
  gap: 8px;
}

.jk-readonly-rack-modal-view {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 560px) minmax(260px, 1fr);
}

.jk-readonly-admin-rack {
  width: min(100%, 540px);
}

.jk-readonly-admin-rack .jk-kanban-rack-body {
  max-height: 68vh;
  overflow: auto;
}

.jk-readonly-admin-rack .jk-shelf-name-input,
.jk-readonly-admin-rack .jk-rack-name-input {
  pointer-events: none;
}

.jk-readonly-rack-focus-empty {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #cbd5e1;
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
}

.jk-readonly-rack-focus-empty strong {
  color: #ffffff;
}

.jk-readonly-rack-shelf-row {
  appearance: none;
  background: linear-gradient(180deg, #f8fafc 0%, #b8c4d2 100%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 0 rgba(15, 23, 42, 0.28);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-columns: 38px 1fr;
  min-height: 48px;
  overflow: hidden;
  padding: 7px 9px;
  text-align: left;
}

.jk-readonly-rack-shelf-row span {
  font-weight: 950;
}

.jk-readonly-rack-shelf-row em {
  color: #475569;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  justify-self: end;
}

.jk-readonly-rack-shelf-row i {
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  border-radius: 5px;
  display: flex;
  gap: 5px;
  grid-column: 1 / -1;
  min-height: 18px;
  overflow: hidden;
  padding: 3px;
}

.jk-readonly-rack-shelf-row.is-selected {
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 2px;
}

.jk-readonly-rack-shelves > div:not(.jk-readonly-rack-modal-view) {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #e8eef5 100%);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: 52px 1fr 1fr;
  min-height: 42px;
  padding: 8px 10px;
}

.jk-readonly-rack-shelves > div:not(.jk-readonly-rack-modal-view) strong {
  color: #0f172a;
}

.jk-readonly-rack-shelves > div:not(.jk-readonly-rack-modal-view) span {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 850;
}

.jk-warehouse-zone--cart {
  background: #eef2ff;
  border-color: #6366f1;
  border-top: 8px solid #6366f1;
}

.jk-warehouse-zone--cart::before,
.jk-warehouse-zone--cart::after {
  background: #6366f1;
  border-radius: 99px;
  bottom: 6px;
  content: "";
  height: 10px;
  position: absolute;
  width: 10px;
}

.jk-warehouse-zone--cart::before {
  left: 16px;
}

.jk-warehouse-zone--cart::after {
  right: 16px;
}

.jk-kanban-config--warehouse .jk-rack-overview-layout {
  display: none;
}

.jk-warehouse-aisle {
  align-items: center;
  background: repeating-linear-gradient(180deg, rgba(148, 163, 184, 0.25), rgba(148, 163, 184, 0.25) 8px, rgba(255, 255, 255, 0.75) 8px, rgba(255, 255, 255, 0.75) 18px);
  color: var(--jk-text-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.jk-kanban-config-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.jk-rack-overview-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.jk-kanban-config-panel,
.jk-rack-area-panel,
.jk-kanban-wall {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.jk-kanban-config-panel {
  align-content: start;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.jk-rack-area-panel {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 190px minmax(420px, 1fr) minmax(260px, 0.6fr);
  padding: 16px;
  position: static;
}

.jk-rack-area-panel[hidden] {
  display: none;
}

.jk-rack-panel-head,
.jk-rack-admin-card,
.jk-rack-planning-card {
  display: grid;
  gap: 5px;
}

.jk-rack-panel-head strong,
.jk-rack-admin-card strong,
.jk-rack-planning-card strong {
  color: var(--jk-text);
  font-size: 1.05rem;
  font-weight: 950;
}

.jk-rack-panel-head small,
.jk-rack-admin-card small,
.jk-rack-planning-card small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-rack-admin-card {
  border: 1px solid rgba(87, 181, 255, 0.3);
  border-radius: 8px;
  background: rgba(87, 181, 255, 0.075);
  gap: 8px;
  padding: 12px;
}

.jk-rack-admin-card em {
  color: var(--jk-text-soft);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.jk-rack-area-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-rack-area-card {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 11px;
  position: relative;
  text-align: left;
}

.jk-rack-area-card.is-active {
  border-color: rgba(49, 196, 141, 0.48);
  background: rgba(49, 196, 141, 0.08);
}

.jk-rack-area-card span {
  color: var(--jk-accent-soft);
  font-size: 0.78rem;
  font-weight: 950;
}

.jk-rack-area-card strong {
  color: var(--jk-text);
  font-size: 0.96rem;
  font-weight: 950;
}

.jk-rack-area-card small {
  color: var(--jk-text-muted);
  line-height: 1.3;
}

.jk-rack-area-card em {
  color: var(--jk-text-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 10px;
}

.jk-rack-admin-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-rack-create-card,
.jk-rack-planning-card {
  border: 1px solid rgba(244, 183, 64, 0.28);
  border-radius: 8px;
  background: rgba(244, 183, 64, 0.07);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.jk-rack-create-card {
  border-color: rgba(49, 196, 141, 0.3);
  background: rgba(49, 196, 141, 0.07);
}

.jk-rack-create-card[hidden] {
  display: none;
}

.jk-rack-planning-card[hidden] {
  display: none;
}

.jk-upload-template {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.jk-upload-template input {
  display: none;
}

.jk-upload-template span {
  color: var(--jk-text);
  font-weight: 950;
}

.jk-rack-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.jk-rack-head-actions {
  align-items: end;
  display: grid;
  gap: 7px;
  justify-items: end;
}

.jk-rack-empty-planning {
  align-items: center;
  border: 1px dashed rgba(87, 181, 255, 0.34);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 430px;
  padding: 42px 18px;
  text-align: center;
}

.jk-rack-empty-planning[hidden] {
  display: none;
}

.jk-rack-empty-plus {
  align-items: center;
  appearance: none;
  background: rgba(49, 196, 141, 0.16);
  border: 1px solid rgba(49, 196, 141, 0.45);
  border-radius: 999px;
  color: #bbf7d0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 4.4rem;
  font-weight: 700;
  height: 128px;
  justify-content: center;
  line-height: 1;
  width: 128px;
}

.jk-rack-empty-planning strong {
  color: var(--jk-text);
  font-size: 1.2rem;
  font-weight: 950;
}

.jk-rack-empty-planning small {
  color: var(--jk-text-muted);
}

.jk-rack-toolbar-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jk-workmode-structure {
  align-items: end;
  background: rgba(127, 29, 29, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto;
  padding: 14px;
}

.jk-workmode-structure > div,
.jk-workmode-structure label {
  display: grid;
  gap: 5px;
}

.jk-workmode-structure strong {
  color: var(--jk-text);
  font-size: 1rem;
  font-weight: 950;
}

.jk-workmode-structure small,
.jk-workmode-structure label span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.jk-workmode-structure select.jk-input {
  background: #ffffff;
  border-color: rgba(20, 110, 180, 0.45);
  color: #0f172a;
  font-weight: 850;
}

.jk-workmode-structure select.jk-input option {
  background: #ffffff;
  color: #0f172a;
}

.jk-workmode-save-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #1f8bd1 0%, #146eb4 100%);
  border: 1px solid rgba(117, 190, 255, 0.62);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(20, 110, 180, 0.38);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  min-height: 46px;
  min-width: 140px;
  padding: 0 22px;
}

.jk-workmode-save-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, #2b9be5 0%, #146eb4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 16px 30px rgba(20, 110, 180, 0.44);
  transform: translateY(-1px);
}

#rack-save-status {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

#rack-save-status[data-tone="error"] {
  color: #fca5a5;
}

#rack-save-status[data-tone="synced"] {
  color: #86efac;
}

.jk-rack-search-panel {
  border: 1px solid rgba(87, 181, 255, 0.2);
  border-radius: 8px;
  background: rgba(87, 181, 255, 0.055);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.jk-rack-search-results {
  color: var(--jk-text-muted);
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
}

.jk-rack-search-results button {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 3px;
  grid-template-columns: 100px minmax(0, 1fr) 130px;
  padding: 8px;
  text-align: left;
}

.jk-rack-search-results strong {
  color: var(--jk-accent-soft);
  font-size: 0.82rem;
}

.jk-rack-search-results span {
  color: var(--jk-text);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-rack-search-results em {
  color: var(--jk-text-muted);
  font-size: 0.76rem;
  font-style: normal;
}

.jk-kanban-config-context {
  display: grid;
  gap: 4px;
}

.jk-kanban-config-context span,
.jk-kanban-config-context small,
.jk-kanban-config-stats span,
.jk-kanban-wall-head small,
.jk-kanban-legend,
.jk-kanban-focus-card small {
  color: var(--jk-text-muted);
}

.jk-kanban-config-context strong {
  color: var(--jk-text);
  font-size: 1.35rem;
  font-weight: 950;
}

.jk-kanban-config-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-kanban-config-stats div {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 10px;
}

.jk-kanban-config-stats strong {
  color: var(--jk-text);
  font-size: 1.25rem;
  font-weight: 950;
}

.jk-kanban-config-form {
  display: grid;
  gap: 10px;
}

.jk-kanban-scan-panel {
  border: 1px solid rgba(87, 181, 255, 0.3);
  border-radius: 8px;
  background: rgba(87, 181, 255, 0.07);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.jk-kanban-scan-panel > div {
  display: grid;
  gap: 4px;
}

.jk-kanban-scan-panel strong {
  color: var(--jk-text);
  font-size: 1.02rem;
  font-weight: 950;
}

.jk-kanban-scan-panel small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-kanban-scan-hint {
  color: var(--jk-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.jk-kanban-config-inputs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-kanban-config-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-kanban-wall {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
}

.jk-kanban-wall-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.jk-kanban-wall-head h2 {
  color: var(--jk-text);
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
}

.jk-kanban-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.jk-kanban-legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.jk-rack-layout-summary {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 260px),
    linear-gradient(180deg, #f8fafc 0%, #edf4fb 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.jk-rack-layout-summary-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.jk-rack-layout-summary-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.jk-rack-layout-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.jk-rack-layout-summary-actions .jk-btn-secondary {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.32);
  color: #0f172a;
  min-height: 36px;
  padding: 0 12px;
}

.jk-rack-layout-summary-actions .jk-btn-secondary:hover,
.jk-rack-layout-summary-actions .jk-btn-secondary:focus-visible {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.55);
  color: #0f172a;
}

@media (max-width: 720px) {
  .jk-rack-layout-summary-head {
    display: grid;
  }

  .jk-rack-layout-summary-actions {
    justify-content: flex-start;
  }
}

/*
  Kept as a no-op compatibility hook for older markup variants that used grid.
*/
.jk-rack-layout-summary-head--grid {
  align-items: end;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.jk-rack-layout-summary-head .jk-overline {
  display: block;
}

.jk-rack-layout-summary-head strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.jk-rack-layout-summary-head small {
  color: #475569;
  font-weight: 900;
}

.jk-rack-layout-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.jk-summary-area-section {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.jk-summary-area-section[hidden] {
  display: none;
}

.jk-summary-area-section-head {
  align-items: center;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border-radius: 7px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.jk-summary-area-section-head div {
  display: grid;
  gap: 2px;
}

.jk-summary-area-section-head span {
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 950;
}

.jk-summary-area-section-head strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
}

.jk-summary-area-section-head small {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 900;
}

.jk-summary-area-section-grid {
  display: grid;
  gap: 10px;
}

.jk-rack-layout-summary-card {
  background:
    radial-gradient(circle at 18px 18px, rgba(37, 99, 235, 0.12), transparent 28px),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
  position: relative;
  width: min(100%, 760px);
}

.jk-rack-layout-summary-card[hidden] {
  display: none;
}

.jk-rack-layout-summary-card.is-back-to-back {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 18px 38px rgba(15, 23, 42, 0.14);
}

.jk-summary-area-kicker {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.86));
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 10px 11px;
}

.jk-summary-area-kicker strong {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
}

.jk-summary-area-kicker span {
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 850;
}

.jk-rack-layout-summary-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.jk-rack-layout-summary-card header span,
.jk-rack-layout-summary-card header strong {
  align-items: center;
  color: #334155;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  gap: 8px;
}

.jk-rack-layout-summary-card header i {
  background: #2563eb;
  border-radius: 3px;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.jk-rack-layout-summary-card header strong {
  color: #64748b;
}

.jk-rack-layout-summary-card em {
  background: #dbeafe;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  padding: 4px 8px;
  width: max-content;
}

.jk-summary-rack-track {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(148, 163, 184, 0.12)),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  padding: 12px;
  position: relative;
}

.jk-rack-layout-summary-card.is-back-to-back .jk-summary-rack-track {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0 42%, rgba(219, 234, 254, 0.9) 42% 58%, rgba(248, 250, 252, 0.96) 58% 100%);
  border-color: rgba(37, 99, 235, 0.28);
  gap: 22px;
  grid-template-columns: 1fr;
  padding-bottom: 18px;
  padding-top: 18px;
}

.jk-rack-layout-summary-card.is-back-to-back-paired .jk-summary-rack-track::before,
.jk-rack-layout-summary-card.is-back-to-back-paired .jk-summary-rack-track::after {
  background: #2563eb;
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: calc(50% - 5px);
}

.jk-rack-layout-summary-card.is-back-to-back .jk-summary-rack-track::after {
  top: calc(50% + 5px);
}

.jk-summary-rack-lane {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  position: relative;
  z-index: 1;
}

.jk-summary-rack-lane--rear {
  transform: rotate(180deg);
}

.jk-summary-rack-lane--rear > * {
  transform: rotate(180deg);
}

.jk-summary-rack-track b,
.jk-summary-rack-track button {
  background:
    repeating-linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0 2px, transparent 2px 15px),
    linear-gradient(90deg, #334155 0 7px, transparent 7px calc(100% - 7px), #334155 calc(100% - 7px) 100%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 52%, #cbd5e1 100%);
  border: 0;
  border-radius: 5px 5px 7px 7px;
  color: #0f172a;
  display: grid;
  font-size: 0.8rem;
  font-weight: 950;
  min-height: 48px;
  place-items: center;
  box-shadow:
    inset 0 5px 0 #2563eb,
    inset 0 -9px 0 rgba(51, 65, 85, 0.18),
    0 10px 18px rgba(15, 23, 42, 0.16);
  position: relative;
  z-index: 1;
}

.jk-rack-layout-summary-card--horizontal .jk-summary-rack-track b,
.jk-rack-layout-summary-card--horizontal .jk-summary-rack-track button,
.jk-rack-layout-summary-card--tower .jk-summary-rack-track b,
.jk-rack-layout-summary-card--tower .jk-summary-rack-track button {
  aspect-ratio: 0.72;
  min-height: 72px;
  width: min(100%, 58px);
  justify-self: center;
}

.jk-rack-layout-summary-card--cart .jk-summary-rack-track b,
.jk-rack-layout-summary-card--cart .jk-summary-rack-track button {
  aspect-ratio: 1.8;
  background:
    linear-gradient(90deg, #4f46e5 0 5px, transparent 5px calc(100% - 5px), #4f46e5 calc(100% - 5px) 100%),
    linear-gradient(180deg, #eef2ff 0%, #e0e7ff 58%, #c7d2fe 100%);
  border-radius: 8px 8px 11px 11px;
  box-shadow:
    inset 0 5px 0 #6366f1,
    0 10px 18px rgba(79, 70, 229, 0.16);
  min-height: 42px;
}

.jk-rack-layout-summary-card--cart .jk-summary-rack-track button::before,
.jk-rack-layout-summary-card--cart .jk-summary-rack-track b::before {
  background: linear-gradient(90deg, #c7d2fe, #eef2ff, #c7d2fe);
}

.jk-rack-layout-summary-card--cart .jk-summary-rack-track::after {
  background:
    radial-gradient(circle, #6366f1 0 5px, transparent 6px),
    radial-gradient(circle, #6366f1 0 5px, transparent 6px);
  background-position: 18px bottom, calc(100% - 18px) bottom;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  bottom: 5px;
  content: "";
  height: 16px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.jk-rack-layout-summary-card--workbench .jk-summary-rack-track b,
.jk-rack-layout-summary-card--workbench .jk-summary-rack-track button {
  aspect-ratio: 2.4;
  background:
    linear-gradient(180deg, #7c3aed 0 9px, transparent 9px),
    linear-gradient(90deg, transparent 0 13%, rgba(88, 28, 135, 0.35) 13% 16%, transparent 16% 84%, rgba(88, 28, 135, 0.35) 84% 87%, transparent 87% 100%),
    linear-gradient(180deg, #faf5ff 0%, #ede9fe 100%);
  border-radius: 4px;
  box-shadow:
    0 10px 18px rgba(124, 58, 237, 0.14);
  min-height: 42px;
}

.jk-summary-rack-track b::before,
.jk-summary-rack-track button::before {
  background:
    linear-gradient(90deg, rgba(51, 65, 85, 0.54), rgba(100, 116, 139, 0.18), rgba(51, 65, 85, 0.54));
  border-radius: 1px;
  content: "";
  height: 2px;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 35%;
}

.jk-summary-rack-track b::after {
  background:
    linear-gradient(90deg, rgba(51, 65, 85, 0.54), rgba(100, 116, 139, 0.18), rgba(51, 65, 85, 0.54));
  border-radius: 1px;
  content: "";
  height: 2px;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 62%;
}

.jk-summary-rack-track button::after {
  bottom: 5px;
  color: #64748b;
  content: attr(data-box-count);
  font-size: 0.62rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.jk-summary-rack-track button:empty::after {
  display: none;
}

.jk-summary-rack-track button {
  cursor: pointer;
  font-family: inherit;
  padding-bottom: 12px;
}

.jk-summary-rack-track button:hover {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #2563eb;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.jk-rack-overview-main .jk-kanban-rack-wall--overview {
  display: none;
}

.jk-rack-overview-main.is-row-open .jk-kanban-rack-wall--overview {
  display: flex;
}

.jk-summary-card-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.jk-summary-card-actions button {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(29, 78, 216, 0.7);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 9px 12px;
}

.jk-summary-card-actions button:hover {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.jk-summary-card-actions small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

.jk-rack-layout-summary-card--cart {
  border-top-color: #6366f1;
}

.jk-rack-layout-summary-card--cart header i {
  background: #6366f1;
  border-radius: 4px;
  position: relative;
}

.jk-rack-layout-summary-card--cart header i::before,
.jk-rack-layout-summary-card--cart header i::after {
  background: #6366f1;
  border-radius: 99px;
  bottom: -6px;
  content: "";
  height: 5px;
  position: absolute;
  width: 5px;
}

.jk-rack-layout-summary-card--cart header i::before {
  left: 2px;
}

.jk-rack-layout-summary-card--cart header i::after {
  right: 2px;
}

.jk-rack-layout-summary-card--workbench {
  border-top-color: #7c3aed;
}

.jk-rack-layout-summary-card--workbench header i {
  background: #7c3aed;
  border-radius: 2px;
  height: 12px;
  width: 22px;
}

.jk-rack-area-card--all {
  border-color: rgba(37, 99, 235, 0.35);
}

.jk-kanban-dot {
  border-radius: 99px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.jk-kanban-dot--ok {
  background: #31c48d;
}

.jk-kanban-dot--ordered {
  background: #f4b740;
}

.jk-kanban-dot--single {
  background: #57b5ff;
}

.jk-kanban-dot--external {
  background: #a78bfa;
}

.jk-kanban-rack-wall {
  align-items: stretch;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

.jk-kanban-rack {
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.9) 0 8px, transparent 8px calc(100% - 8px), rgba(226, 232, 240, 0.9) calc(100% - 8px)),
    linear-gradient(180deg, rgba(248, 250, 252, 0.18), rgba(15, 23, 42, 0.12));
  border: 1px solid rgba(226, 232, 240, 0.38);
  border-radius: 7px;
  box-shadow: inset 18px 0 0 rgba(148, 163, 184, 0.18), inset -18px 0 0 rgba(148, 163, 184, 0.18), 0 18px 40px rgba(0, 0, 0, 0.22);
  display: grid;
  flex: 0 0 260px;
  grid-template-rows: auto auto 1fr;
  min-height: 610px;
  padding: 0 22px 20px;
  position: relative;
}

.jk-kanban-rack-head {
  align-items: start;
  display: grid;
  gap: 7px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  margin: 7px 4px 0;
  position: relative;
  z-index: 4;
}

.jk-kanban-rack::before,
.jk-kanban-rack::after {
  background: repeating-linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.34) 0 2px,
    rgba(226, 232, 240, 0.8) 2px 5px,
    transparent 5px 18px
  );
  content: "";
  inset: 42px auto 16px 7px;
  position: absolute;
  width: 8px;
  z-index: 0;
}

.jk-kanban-rack::after {
  left: auto;
  right: 7px;
}

.jk-kanban-rack[hidden] {
  display: none !important;
}

.jk-kanban-rack.is-rack-dragging {
  opacity: 0.55;
}

.jk-kanban-rack.is-rack-drop-target {
  outline: 3px solid rgba(87, 181, 255, 0.72);
  outline-offset: 4px;
}

.jk-kanban-rack-title,
.jk-kanban-rack header {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 8px;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: var(--jk-text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  margin: 0;
  padding: 7px 0;
  text-align: center;
  z-index: 3;
}

.jk-kanban-rack-title:hover {
  background: rgba(87, 181, 255, 0.14);
  color: #ffffff;
}

.jk-kanban-rack-title::after {
  color: var(--jk-text-soft);
  content: "Inhalt";
  display: block;
  font-size: 0.58rem;
  font-weight: 850;
  margin-top: 2px;
}

.jk-kanban-rack-title span,
.jk-kanban-rack-title small {
  display: block;
}

.jk-kanban-rack-title small {
  color: var(--jk-text-soft);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 2px;
}

.jk-kanban-rack-head label {
  display: grid;
  gap: 3px;
}

.jk-kanban-rack-head label span {
  color: var(--jk-text-soft);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.jk-rack-name-input,
.jk-shelf-name-input {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 6px;
  color: var(--jk-text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  min-width: 0;
  padding: 6px 7px;
  width: 100%;
}

.jk-rack-name-input::placeholder,
.jk-shelf-name-input::placeholder {
  color: var(--jk-text-soft);
}

.jk-rack-mini-action,
.jk-kanban-shelf-tools button {
  align-items: center;
  appearance: none;
  background: rgba(49, 196, 141, 0.16);
  border: 1px solid rgba(49, 196, 141, 0.4);
  border-radius: 7px;
  color: #bbf7d0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.jk-rack-head-actions-mini {
  display: grid;
  gap: 4px;
  grid-template-columns: 32px;
}

.jk-rack-head-actions-mini--workmode {
  grid-template-columns: repeat(3, 28px);
}

.jk-rack-head-actions-mini--workmode .jk-rack-mini-action {
  height: 28px;
  width: 28px;
}

.jk-rack-mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.jk-rack-mini-action--danger {
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.jk-kanban-shelf-tools button[data-remove-shelf] {
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.jk-kanban-rack header {
  cursor: default;
}

.jk-kanban-rack-body {
  display: grid;
  gap: 0;
  grid-auto-rows: minmax(88px, auto);
  padding: 28px 7px 0;
  position: relative;
  z-index: 1;
}

.jk-kanban-shelf {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(148, 163, 184, 0.78) 58%, rgba(71, 85, 105, 0.92));
  border: 1px solid rgba(248, 250, 252, 0.48);
  border-radius: 4px;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.24);
  display: block;
  gap: 6px;
  margin: 0 3px 12px;
  min-height: 68px;
  padding: 0 0 5px;
  position: relative;
}

.jk-kanban-shelf[hidden] {
  display: none !important;
}

.jk-kanban-shelf.is-selected {
  background: rgba(87, 181, 255, 0.08);
}

.jk-kanban-shelf.is-two-row-candidate {
  background: rgba(244, 183, 64, 0.08);
  outline: 1px dashed rgba(244, 183, 64, 0.5);
  outline-offset: -3px;
}

.jk-kanban-shelf-label {
  align-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  inset: 0;
  gap: 3px;
  padding: 0;
  position: absolute;
  text-align: left;
  z-index: 1;
}

.jk-kanban-shelf-label span {
  display: none;
}

.jk-kanban-shelf-label small {
  display: none;
}

.jk-kanban-shelf-boxes {
  inset: 26px 12px 6px 12px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.jk-kanban-shelf-tools {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) 26px 26px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 4px;
  z-index: 4;
}

.jk-kanban-shelf-tools .jk-shelf-name-input {
  font-size: 0.64rem;
  height: 22px;
  padding: 3px 6px;
}

.jk-kanban-shelf-tools .jk-shelf-name-input:last-child {
  grid-column: 1 / -1;
}

.jk-kanban-shelf-tools button {
  border-radius: 5px;
  font-size: 0.82rem;
  height: 22px;
  width: 26px;
}

.jk-kanban-shelf-boxes::after {
  display: none;
}

.jk-kanban-shelf-boxes:has(.jk-kanban-box strong)::after {
  display: none;
}

.jk-kanban-box-row {
  display: flex;
  gap: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 27px;
  z-index: 2;
}

.jk-kanban-box-row + .jk-kanban-box-row {
  top: 8px;
  transform: translateY(-1px);
  z-index: 1;
}

.jk-kanban-box {
  align-content: center;
  border: 1px solid rgba(15, 23, 42, 0.32);
  border-radius: 6px 6px 10px 10px;
  color: #082f49;
  cursor: pointer;
  display: grid;
  flex: 1 1 0;
  gap: 1px;
  min-height: 30px;
  min-width: 0;
  padding: 5px 3px 3px;
  pointer-events: auto;
  position: relative;
  text-align: center;
  transform: perspective(90px) rotateX(6deg) skewX(-3deg);
}

.jk-kanban-rack-wall--overview .jk-kanban-box:not(:has(strong)) {
  visibility: hidden;
}

.jk-kanban-config--intake .jk-kanban-rack-wall--overview .jk-kanban-box:not(:has(strong)) {
  background: linear-gradient(180deg, #fee2e2, #fecaca 58%, #ef4444);
  border-color: rgba(185, 28, 28, 0.62);
  border-style: dashed;
  color: #7f1d1d;
  visibility: visible;
}

.jk-kanban-config--intake .jk-kanban-rack-wall--overview .jk-kanban-rack {
  border-color: rgba(220, 38, 38, 0.34);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.jk-kanban-config--intake .jk-kanban-rack-wall--overview .jk-kanban-rack-title {
  border-color: rgba(220, 38, 38, 0.34);
}

.jk-kanban-config--intake .jk-kanban-rack-wall--overview .jk-kanban-rack-title::after {
  content: "";
  display: none;
}

.jk-kanban-config--intake .jk-kanban-rack-wall--overview .jk-kanban-rack-title small {
  color: #fecaca;
}

.jk-kanban-rack-wall--overview .jk-kanban-box-row {
  min-height: 0;
}

.jk-kanban-box.is-selected {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(87, 181, 255, 0.45);
  z-index: 1;
}

.jk-kanban-box.is-dragging {
  opacity: 0.45;
}

.jk-kanban-box.is-move-source {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(37, 99, 235, 0.65);
  z-index: 4;
}

.jk-kanban-box.is-drop-target {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px rgba(15, 118, 110, 0.55);
  z-index: 3;
}

.jk-kanban-box.is-search-hit {
  box-shadow: 0 0 0 2px #fef3c7, 0 0 0 5px rgba(244, 183, 64, 0.42);
  z-index: 2;
}

.jk-kanban-box.is-reconciled {
  box-shadow: 0 0 0 2px #dcfce7, 0 0 0 5px rgba(49, 196, 141, 0.45);
  z-index: 2;
}

.jk-rack-overview-main.is-reconcile-mode {
  border-color: rgba(49, 196, 141, 0.42);
  background: rgba(49, 196, 141, 0.045);
}

.jk-kanban-box::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2));
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 4px 4px 1px 1px;
  content: "";
  height: 8px;
  left: 2px;
  position: absolute;
  right: 2px;
  top: 2px;
}

.jk-kanban-box::after {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 0 0 8px 8px;
  bottom: 2px;
  content: "";
  height: 6px;
  left: 4px;
  position: absolute;
  right: 4px;
}

.jk-kanban-box span {
  font-size: 0;
  font-weight: 950;
  line-height: 1;
  margin-top: 3px;
}

.jk-kanban-box strong {
  display: none;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-kanban-box--ok {
  background: linear-gradient(180deg, #bae6fd, #60a5fa 58%, #2563eb);
}

.jk-kanban-box--reserve {
  background: linear-gradient(180deg, #dbeafe, #93c5fd 58%, #3b82f6);
  border-style: dashed;
  opacity: 0.92;
  transform: perspective(90px) rotateX(6deg) skewX(-3deg);
}

.jk-kanban-box--ordered {
  background: linear-gradient(180deg, #bae6fd, #60a5fa 58%, #2563eb);
  border-color: rgba(30, 64, 175, 0.54);
}

.jk-kanban-box--single {
  background: linear-gradient(180deg, #bfdbfe, #60a5fa 58%, #2563eb);
  border-color: rgba(30, 64, 175, 0.54);
}

.jk-kanban-box--external {
  background: linear-gradient(180deg, #ddd6fe, #a78bfa 58%, #7c3aed);
  border-color: rgba(91, 33, 182, 0.54);
}

.jk-status-rack-preview {
  border: 1px solid rgba(49, 196, 141, 0.24);
  border-radius: 8px;
  background: rgba(49, 196, 141, 0.055);
  display: grid;
  gap: 12px;
  margin: 12px;
  padding: 12px;
}

.jk-status-rack-preview-head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.jk-status-rack-preview-head h2 {
  color: var(--jk-text);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
}

.jk-status-rack-preview-body {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.jk-kanban-rack-wall--status {
  gap: 8px;
  overflow-x: auto;
}

.jk-kanban-rack--status {
  flex-basis: 168px;
  min-height: 460px;
  padding-inline: 6px;
}

.jk-kanban-rack--status .jk-kanban-rack-body {
  grid-template-rows: repeat(6, minmax(62px, 1fr));
}

.jk-kanban-rack--status .jk-kanban-shelf {
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 5px 3px;
}

.jk-kanban-rack--status .jk-kanban-shelf-label small {
  display: none;
}

.jk-kanban-rack--status .jk-kanban-box {
  min-height: 20px;
}

.jk-status-rack-summary {
  align-content: start;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.jk-status-rack-summary strong {
  color: var(--jk-text);
  font-size: 0.95rem;
  font-weight: 950;
}

.jk-status-rack-summary span {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.jk-rack-modal {
  align-items: center;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px 34px;
  position: fixed;
  z-index: 1000;
}

.jk-rack-modal[hidden] {
  display: none;
}

.jk-rack-modal-dialog {
  background: #0f172a;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  width: min(1380px, 100%);
}

.jk-rack-modal-dialog.is-rack-view {
  width: min(1620px, 100%);
}

.jk-rack-modal-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.jk-rack-modal-head h2 {
  color: var(--jk-text);
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
}

.jk-rack-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.jk-rack-modal-nav {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.jk-rack-modal-nav[hidden] {
  display: none;
}

.jk-rack-modal-nav button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.jk-rack-modal-nav button:disabled {
  cursor: default;
  opacity: 0.35;
}

.jk-rack-modal-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.jk-rack-modal-dialog.is-rack-view .jk-rack-modal-layout {
  grid-template-columns: 1fr;
}

.jk-rack-modal-rack-view {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(620px, 0.68fr) minmax(380px, 0.32fr);
  grid-template-rows: auto 1fr;
  min-height: min(760px, calc(100vh - 180px));
}

.jk-rack-modal-rack-nav {
  align-items: center;
  background: rgba(87, 181, 255, 0.12);
  border: 1px solid rgba(87, 181, 255, 0.3);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  padding: 8px;
}

.jk-rack-modal-rack-nav strong {
  color: var(--jk-text);
  font-size: 1.1rem;
  font-weight: 950;
  text-align: center;
}

.jk-rack-modal-rack-nav button {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.7rem;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 48px;
}

.jk-rack-modal-rack-view .jk-kanban-rack {
  flex: 0 0 auto;
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  min-height: min(760px, calc(100vh - 190px));
  width: min(720px, 100%);
  animation: jkRackFocusIn 220ms var(--jk-ease);
}

.jk-rack-modal-rack-view .jk-rack-focus-detail {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.jk-rack-modal-rack-view .jk-kanban-rack-body {
  grid-template-rows: repeat(6, minmax(96px, 1fr));
}

.jk-kanban-rack--focus .jk-kanban-box {
  min-height: 44px;
  padding: 11px 5px 7px;
}

.jk-kanban-rack--focus .jk-kanban-box:not(:has(strong)) {
  visibility: hidden;
}

.jk-kanban-config--edit-targets .jk-kanban-rack--focus .jk-kanban-box:not(:has(strong)) {
  background: rgba(241, 245, 249, 0.92);
  border-style: dashed;
  color: #94a3b8;
  visibility: visible;
}

.jk-kanban-config--intake .jk-kanban-rack--focus .jk-kanban-box:not(:has(strong)) {
  background: linear-gradient(180deg, #fee2e2, #fecaca 58%, #ef4444);
  border-color: rgba(185, 28, 28, 0.62);
  border-style: dashed;
  color: #7f1d1d;
  visibility: visible;
}

.jk-kanban-config--intake .jk-rack-modal-dialog.is-rack-view .jk-kanban-rack--focus .jk-kanban-box:not(:has(strong)) {
  visibility: hidden;
}

.jk-kanban-config--intake .jk-kanban-box--intake-review,
.jk-kanban-config--intake .jk-kanban-box--intake-create_article {
  background: linear-gradient(180deg, #fed7aa, #fb923c 58%, #ea580c);
  border-color: rgba(154, 52, 18, 0.62);
}

.jk-kanban-config--intake .jk-kanban-box--intake-recognized {
  background: linear-gradient(180deg, #bbf7d0, #4ade80 58%, #16a34a);
  border-color: rgba(22, 101, 52, 0.62);
}

.jk-kanban-config--intake .jk-kanban-box--intake-foreign {
  background: linear-gradient(180deg, #fecaca, #f87171 58%, #dc2626);
  border-color: rgba(127, 29, 29, 0.68);
}

.jk-kanban-config--intake .jk-kanban-box--intake-customer_article {
  background: linear-gradient(180deg, #bfdbfe, #60a5fa 58%, #2563eb);
  border-color: rgba(30, 64, 175, 0.62);
}

.jk-intake-review-card {
  margin-top: 18px;
}

.jk-kanban-rack--focus .jk-kanban-box strong {
  color: #082f49;
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.jk-kanban-rack--focus .jk-kanban-box strong b {
  display: block;
  font-size: clamp(0.58rem, 0.85vw, 0.82rem);
  font-weight: 950;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-kanban-rack--focus .jk-kanban-box strong small {
  display: block;
  font-size: clamp(0.46rem, 0.62vw, 0.62rem);
  font-weight: 900;
  line-height: 1;
  max-width: 100%;
  opacity: 0.86;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-rack-focus-detail {
  align-self: stretch;
  border: 1px solid rgba(87, 181, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  min-height: 100%;
  padding: 16px;
}

.jk-rack-focus-card {
  align-content: start;
  display: grid;
  gap: 16px;
}

.jk-rack-focus-card .jk-rack-article-image {
  height: 220px;
  width: 220px;
}

.jk-rack-focus-card .jk-rack-article-main strong {
  font-size: 1.08rem;
}

.jk-rack-focus-card .jk-rack-article-main em {
  align-self: start;
  background: #fff7c2;
  border: 1px solid #d2bd61;
  border-radius: 6px;
  color: #4b3b00;
  display: inline-flex;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
}

.jk-rack-focus-card .jk-rack-article-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-rack-focus-card .jk-rack-article-meta {
  justify-items: start;
  text-align: left;
}

.jk-rack-focus-empty {
  align-self: center;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  color: var(--jk-text-muted);
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.jk-rack-focus-empty strong {
  color: var(--jk-text);
  font-size: 1.05rem;
}

@keyframes jkRackFocusIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.jk-rack-scan-work,
.jk-rack-shelf-content {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.jk-rack-scan-work {
  align-items: end;
  grid-template-columns: minmax(240px, 1fr) auto auto;
}

.jk-rack-scan-work .jk-field {
  margin: 0;
}

.jk-rack-scan-work .jk-kanban-config-actions {
  display: flex;
  gap: 8px;
}

.jk-rack-scan-work .jk-kanban-scan-hint {
  grid-column: 1 / -1;
  margin: 0;
}

.jk-rack-shelf-content-head {
  align-items: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.jk-rack-shelf-content-head strong {
  color: var(--jk-text);
  font-weight: 950;
}

.jk-rack-shelf-content-head small {
  color: var(--jk-text-muted);
}

.jk-rack-scanned-list {
  display: grid;
  gap: 7px;
}

.jk-rack-scanned-item {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px;
}

.jk-rack-scanned-item strong {
  color: var(--jk-text);
  font-size: 0.9rem;
}

.jk-rack-scanned-item span {
  color: var(--jk-accent-soft);
  font-size: 0.8rem;
  font-weight: 950;
}

.jk-rack-article-item {
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr) 160px;
  padding: 14px;
}

.jk-rack-article-item.is-latest {
  border-color: rgba(34, 197, 94, 0.44);
  background: rgba(34, 197, 94, 0.08);
}

.jk-rack-intake-status-badge {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
  justify-self: start;
}

.jk-rack-latest-badge {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.36);
  border-radius: 999px;
  color: #bbf7d0;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 950;
  justify-self: start;
  margin-bottom: 3px;
  padding: 4px 7px;
  text-transform: uppercase;
}

.jk-rack-article-image {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(210, 218, 230, 0.9);
  border-radius: 8px;
  color: #475569;
  display: flex;
  font-size: 0.95rem;
  font-weight: 950;
  height: 104px;
  justify-content: center;
  padding: 7px;
  width: 104px;
  overflow: hidden;
}

.jk-rack-article-image img {
  border-radius: 4px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.jk-rack-article-main,
.jk-rack-article-meta {
  display: grid;
  gap: 3px;
}

.jk-rack-article-main strong {
  color: var(--jk-text);
  font-size: 0.92rem;
  font-weight: 950;
}

.jk-rack-article-main small {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
}

.jk-rack-article-main em {
  color: #facc15;
  font-size: 1.02rem;
  font-style: normal;
  font-weight: 950;
}

.jk-rack-article-specs {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
}

.jk-rack-article-specs b {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--jk-text);
  display: grid;
  font-size: 0.78rem;
  gap: 2px;
  min-height: 46px;
  padding: 7px;
}

.jk-rack-article-specs small {
  color: var(--jk-text-muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.jk-rack-article-meta {
  justify-items: end;
  text-align: right;
}

.jk-rack-article-meta b {
  color: var(--jk-text);
  font-size: 0.76rem;
}

.jk-rack-article-meta small {
  color: var(--jk-text-muted);
  font-size: 0.74rem;
}

.jk-rack-remove-item {
  appearance: none;
  border: 1px solid rgba(248, 113, 113, 0.38);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  justify-self: end;
  margin-top: 8px;
  padding: 7px 10px;
}

.jk-rack-remove-item:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(127, 29, 29, 0.28);
  color: #ffffff;
}

.jk-kanban-focus {
  display: grid;
  gap: 10px;
}

.jk-kanban-focus-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-kanban-focus-card {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 12px;
}

.jk-kanban-focus-card span {
  color: var(--jk-accent-soft);
  font-size: 0.78rem;
  font-weight: 950;
}

.jk-kanban-focus-card strong {
  color: var(--jk-text);
  font-size: 0.95rem;
  font-weight: 950;
}

.jk-kanban-focus-card--ordered {
  border-color: rgba(244, 183, 64, 0.35);
  background: rgba(244, 183, 64, 0.08);
}

.jk-kanban-focus-card--single {
  border-color: rgba(87, 181, 255, 0.35);
  background: rgba(87, 181, 255, 0.08);
}

.jk-order-hub-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-order-hub-card {
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  color: var(--jk-text);
  display: grid;
  gap: 8px;
  min-height: clamp(180px, 28svh, 240px);
  padding: 22px;
  text-align: center;
  text-decoration: none;
  align-content: center;
}

.jk-order-hub-card--kanban {
  border-color: rgba(49, 196, 141, 0.42);
  background: rgba(49, 196, 141, 0.1);
}

.jk-order-hub-card--customer {
  border-color: rgba(87, 181, 255, 0.42);
  background: rgba(87, 181, 255, 0.1);
}

.jk-order-hub-card--request {
  border-color: rgba(244, 183, 64, 0.46);
  background: rgba(244, 183, 64, 0.1);
}

.jk-order-hub-card span {
  color: var(--jk-text-soft);
  font-weight: 850;
}

.jk-order-hub-card strong {
  color: var(--jk-text);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 950;
  line-height: 0.95;
}

.jk-order-hub-card small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

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

.jk-order-choice {
  align-content: center;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  display: grid;
  gap: 10px;
  min-height: clamp(150px, 24svh, 210px);
  padding: 24px;
  text-decoration: none;
}

.jk-order-choice--kanban {
  background: rgba(49, 196, 141, 0.1);
  border-color: rgba(49, 196, 141, 0.42);
}

.jk-order-choice--request {
  background: rgba(244, 183, 64, 0.1);
  border-color: rgba(244, 183, 64, 0.46);
}

.jk-order-choice span {
  color: var(--jk-text-soft);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jk-order-choice strong {
  color: var(--jk-text);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 950;
  line-height: 0.98;
}

.jk-order-choice small {
  color: var(--jk-text-muted);
  font-size: 0.98rem;
  line-height: 1.35;
  max-width: 440px;
}

.jk-order-start-panel {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.jk-order-start-panel--other {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 18px;
  padding-top: 22px;
}

.jk-order-start-panel .jk-exec-section-head {
  margin-bottom: 0;
}

.jk-order-station-groups {
  display: grid;
  gap: 16px;
}

.jk-order-station-group {
  display: grid;
  gap: 10px;
}

.jk-order-station-group--free {
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding-top: 14px;
}

.jk-order-station-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.jk-order-station-head span {
  color: var(--jk-text-soft);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-order-station-head strong {
  color: var(--jk-text);
  font-size: 1rem;
  font-weight: 950;
}

.jk-order-department-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-order-alternative-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.jk-order-department {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  color: var(--jk-text);
  display: grid;
  gap: 10px;
  min-height: 184px;
  padding: 20px;
  text-decoration: none;
}

.jk-order-card-meta {
  color: var(--jk-text-soft);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jk-order-department strong {
  color: var(--jk-text);
  font-size: 1.42rem;
  line-height: 1.1;
}

.jk-order-department small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-order-department em {
  align-self: end;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--jk-text);
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  place-items: center;
}

.jk-order-department--blue,
.jk-order-department--outside {
  background: rgba(37, 99, 235, 0.11);
  border-color: rgba(96, 165, 250, 0.38);
}

.jk-order-department--green {
  background: rgba(49, 196, 141, 0.1);
  border-color: rgba(49, 196, 141, 0.36);
}

.jk-order-department--amber {
  background: rgba(244, 183, 64, 0.1);
  border-color: rgba(244, 183, 64, 0.38);
}

.jk-order-department--special {
  background: rgba(244, 183, 64, 0.13);
  border-color: rgba(244, 183, 64, 0.48);
}

.jk-order-department--violet {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.36);
}

.jk-order-department--red {
  background: rgba(239, 90, 111, 0.1);
  border-color: rgba(239, 90, 111, 0.38);
}

.jk-order-department.has-draft {
  border-color: rgba(239, 90, 111, 0.62);
  box-shadow: inset 0 0 0 1px rgba(239, 90, 111, 0.24);
}

.jk-order-department.has-draft em {
  background: rgba(239, 90, 111, 0.82);
  color: #ffffff;
}

.jk-desktop-order-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.jk-desktop-order-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 18px;
}

.jk-desktop-main-search .jk-input {
  background: rgba(49, 196, 141, 0.12);
  border-color: rgba(49, 196, 141, 0.58);
  box-shadow: 0 0 0 1px rgba(49, 196, 141, 0.12) inset;
}

.jk-desktop-main-search .jk-input:focus {
  border-color: rgba(74, 222, 128, 0.85);
  box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.18);
}

.jk-desktop-area-block {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.jk-desktop-area-block strong {
  color: var(--jk-text);
  font-size: 1.02rem;
  font-weight: 950;
}

.jk-desktop-area-switch {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.jk-desktop-area-switch a {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 10px 12px;
  text-decoration: none;
}

.jk-desktop-area-switch a.is-active {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.54);
}

.jk-desktop-area-switch strong {
  color: var(--jk-text);
  font-size: 0.95rem;
}

.jk-desktop-area-switch small {
  color: var(--jk-text-muted);
}

.jk-desktop-cart-list {
  display: grid;
  gap: 10px;
}

.jk-desktop-cart-row {
  align-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px;
}

.jk-desktop-cart-row span,
.jk-desktop-cart-row small {
  color: var(--jk-text-muted);
  display: block;
  line-height: 1.3;
}

.jk-desktop-cart-row strong {
  color: var(--jk-text);
  display: block;
  margin: 3px 0;
}

.jk-desktop-qty {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 32px 32px 32px;
}

.jk-desktop-qty button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--jk-line);
  border-radius: 6px;
  color: var(--jk-text);
  height: 32px;
}

.jk-desktop-qty strong {
  margin: 0;
  text-align: center;
}

.jk-desktop-submit {
  margin-top: 14px;
  width: 100%;
}

.jk-desktop-submit--primary {
  min-height: 58px;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.02rem;
  font-weight: 950;
}

.jk-desktop-history {
  border-top: 1px solid var(--jk-line);
  margin-top: 18px;
  padding-top: 14px;
}

.jk-desktop-history summary {
  cursor: pointer;
  list-style: none;
}

.jk-desktop-history summary::-webkit-details-marker {
  display: none;
}

.jk-desktop-history summary span {
  display: grid;
  gap: 3px;
}

.jk-desktop-history summary b {
  color: var(--jk-text);
}

.jk-desktop-history summary small {
  color: var(--jk-text-muted);
}

.jk-desktop-history-tools {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  background: rgba(42, 101, 163, 0.07);
  border: 1px solid rgba(42, 101, 163, 0.18);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.jk-desktop-history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.jk-history-top-note {
  align-items: center;
  background: rgba(42, 101, 163, 0.08);
  border: 1px solid rgba(42, 101, 163, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.jk-history-top-note strong {
  color: var(--jk-text);
}

.jk-history-top-note span {
  color: var(--jk-text-muted);
  font-size: 0.85rem;
}

.jk-history-group {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  overflow: hidden;
}

.jk-history-group > summary {
  align-items: center;
  background: rgba(15, 23, 42, 0.035);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.jk-history-group > summary strong {
  color: var(--jk-text);
  overflow-wrap: anywhere;
}

.jk-history-group > summary span {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.jk-history-group-list {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.jk-history-product-title {
  color: var(--jk-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 2px 2px;
  text-transform: uppercase;
}

.jk-history-result {
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 7px;
}

.jk-history-result .jk-position-image {
  border-radius: 6px;
  height: 48px;
  width: 48px;
}

.jk-history-result span,
.jk-history-result small {
  color: var(--jk-text-muted);
  display: block;
  line-height: 1.3;
}

.jk-history-result strong {
  color: var(--jk-text);
  display: block;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.jk-history-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-history-category {
  color: var(--jk-primary);
  font-weight: 700;
}

.jk-document-browser {
  display: grid;
  gap: 14px;
}

.jk-document-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jk-document-tab {
  background: var(--jk-surface);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-decoration: none;
}

.jk-document-tab span {
  color: var(--jk-primary);
  font-size: 0.82rem;
  font-weight: 900;
}

.jk-document-tab strong {
  overflow-wrap: anywhere;
}

.jk-document-tab small {
  color: var(--jk-text-muted);
}

.jk-document-tab.is-active {
  border-color: rgba(42, 101, 163, 0.55);
  box-shadow: inset 0 0 0 1px rgba(42, 101, 163, 0.25);
}

.jk-document-filter {
  align-items: end;
  background: rgba(42, 101, 163, 0.07);
  border: 1px solid rgba(42, 101, 163, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 180px) minmax(150px, 220px) minmax(260px, 1fr) auto auto;
  padding: 12px;
}

.jk-dashboard-document-search {
  align-items: end;
  background: rgba(42, 101, 163, 0.07);
  border: 1px solid rgba(42, 101, 163, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-bottom: 12px;
  padding: 12px;
}

.jk-document-query-note {
  color: var(--jk-text-muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 4px;
}

.jk-document-months {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(13, minmax(0, 1fr));
}

.jk-document-months a {
  align-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 7px;
  color: var(--jk-text);
  display: grid;
  min-height: 48px;
  padding: 7px;
  text-align: center;
  text-decoration: none;
}

.jk-document-months a small {
  color: var(--jk-text-muted);
}

.jk-document-months a.is-active {
  border-color: rgba(42, 101, 163, 0.7);
  font-weight: 900;
}

.jk-document-months a.is-empty {
  opacity: 0.45;
}

.jk-document-table td strong,
.jk-document-table td small {
  display: block;
}

.jk-document-table td small {
  color: var(--jk-text-muted);
  margin-top: 3px;
}

.jk-document-table-wrap {
  border-radius: 7px;
}

.jk-document-article-hits {
  border-left: 4px solid #d8b84f;
}

.jk-document-article-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.jk-document-article-card {
  background: #ffffff;
  border: 1px solid #c5ced8;
  border-left: 5px solid #d8b84f;
  border-radius: 7px;
  color: #17202a;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.jk-document-article-card summary {
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 74px minmax(0, 1fr);
  list-style: none;
}

.jk-document-article-card summary::-webkit-details-marker {
  display: none;
}

.jk-document-article-image {
  align-items: center;
  aspect-ratio: 1;
  background: #f4f6f8;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.jk-document-article-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.jk-document-article-image span {
  color: #607080;
  font-size: 0.72rem;
  font-weight: 850;
}

.jk-document-article-image.is-empty::before {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.34), rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  content: "";
  height: 18px;
  width: 18px;
}

.jk-document-article-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.jk-document-article-card strong {
  color: #17202a;
  line-height: 1.35;
}

.jk-document-article-main > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jk-document-article-main > div span {
  background: #eef3f8;
  border: 1px solid #c5ced8;
  border-radius: 4px;
  color: #465363;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 3px 7px;
}

.jk-document-article-main > div span:first-child {
  background: #fff7c2;
  border-color: #d2bd61;
  color: #4b3b00;
}

.jk-document-kanban-inline {
  align-items: flex-start;
  background: #e8f7ef;
  border: 1px solid rgba(22, 128, 93, 0.22);
  border-radius: 8px;
  display: grid !important;
  gap: 3px;
  margin-top: 8px;
  padding: 8px 10px;
}

.jk-document-kanban-inline b {
  color: #166534;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.jk-document-kanban-inline span {
  background: transparent !important;
  border: 0 !important;
  color: #14532d !important;
  font-size: 0.82rem !important;
  font-weight: 850;
  line-height: 1.35;
  padding: 0 !important;
}

.jk-document-kanban-locations {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
}

.jk-document-kanban-locations strong {
  color: #166534;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.jk-document-kanban-locations span {
  color: #14532d;
  font-size: 0.86rem;
  font-weight: 850;
}

.jk-kanban-article-browser,
.jk-kanban-article-results {
  gap: 16px;
}

.jk-kanban-article-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.jk-kanban-article-stats div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.jk-kanban-article-stats span {
  color: var(--jk-text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-kanban-article-stats strong {
  color: var(--jk-text);
  font-size: 1.42rem;
  font-weight: 950;
}

.jk-kanban-article-filter {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(260px, 1.6fr) auto auto auto;
}

.jk-kanban-article-table-wrap {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  overflow-x: auto;
}

.jk-kanban-article-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.jk-kanban-article-table th,
.jk-kanban-article-table td {
  border-bottom: 1px solid var(--jk-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.jk-kanban-article-table th {
  background: rgba(15, 23, 42, 0.72);
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-kanban-article-table td {
  color: var(--jk-text-soft);
  font-size: 0.88rem;
}

.jk-kanban-article-table td strong,
.jk-kanban-article-table td small {
  display: block;
}

.jk-kanban-article-table td strong {
  color: var(--jk-text);
  font-weight: 950;
}

.jk-kanban-article-table td small {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.jk-kanban-article-customer-no {
  background: #fff7c2;
  border: 1px solid #d2bd61;
  border-radius: 5px;
  color: #4b3b00;
  display: inline-flex;
  font-weight: 950;
  padding: 4px 7px;
  white-space: nowrap;
}

.jk-kanban-article-status {
  background: rgba(87, 181, 255, 0.16);
  border: 1px solid rgba(87, 181, 255, 0.38);
  border-radius: 999px;
  color: var(--jk-text);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 4px 8px;
  white-space: nowrap;
}

.jk-kanban-article-status--bestellt {
  background: rgba(244, 183, 64, 0.2);
  border-color: rgba(244, 183, 64, 0.48);
}

.jk-kanban-article-status--fremdartikel {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.48);
}

.jk-kanban-article-empty {
  border: 1px dashed var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text-muted);
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 34px;
  text-align: center;
}

.jk-kanban-article-empty strong {
  color: var(--jk-text);
}

.jk-kanban-article-search-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  width: 100%;
}

.jk-kanban-article-area-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.jk-kanban-article-area-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 14px;
  text-decoration: none;
}

.jk-kanban-article-area-card.is-active,
.jk-kanban-article-area-card:hover {
  border-color: rgba(87, 181, 255, 0.58);
  background: rgba(87, 181, 255, 0.12);
}

.jk-kanban-article-area-card strong {
  font-size: 1rem;
  font-weight: 950;
}

.jk-kanban-article-area-card small {
  color: var(--jk-text-muted);
  font-weight: 750;
}

.jk-kanban-article-area-card em {
  align-items: end;
  color: var(--jk-text);
  display: flex;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 950;
  gap: 6px;
  margin-top: auto;
}

.jk-kanban-article-area-card em span {
  color: var(--jk-text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.jk-kanban-article-insights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
}

.jk-kanban-article-insights > div {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.jk-kanban-article-insights strong {
  color: var(--jk-text);
  font-weight: 950;
}

.jk-kanban-article-insights small {
  color: var(--jk-text-muted);
}

.jk-kanban-insight-more {
  border-top: 1px solid var(--jk-line);
  margin-top: 8px;
  padding-top: 8px;
}

.jk-kanban-insight-more summary {
  background: #57b5ff;
  border: 1px solid rgba(87, 181, 255, 0.72);
  border-radius: 6px;
  color: #082f49;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
  min-height: 36px;
  padding: 10px 12px;
}

.jk-kanban-insight-more summary::marker {
  content: "";
}

.jk-kanban-insight-more summary::-webkit-details-marker {
  display: none;
}

.jk-kanban-insight-more[open] summary {
  background: #d9eaf7;
  border-color: #9fc5e8;
}

.jk-kanban-insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.jk-kanban-insight-table {
  border-collapse: collapse;
  margin-top: 10px;
  width: 100%;
}

.jk-kanban-insight-table th,
.jk-kanban-insight-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--jk-text-soft);
  font-size: 0.8rem;
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
}

.jk-kanban-insight-table th {
  color: var(--jk-text-muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-kanban-insight-actions button,
.jk-kanban-insight-actions a,
.jk-kanban-list-actions button,
.jk-kanban-list-actions a,
.jk-kanban-article-detail-button {
  background: #57b5ff;
  border: 1px solid rgba(87, 181, 255, 0.72);
  border-radius: 6px;
  color: #082f49;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.jk-kanban-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.jk-kanban-stock-locations {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.jk-kanban-stock-locations strong {
  color: var(--jk-text);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-kanban-stock-locations span,
.jk-kanban-stock-locations em {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.jk-kanban-article-detail-button {
  justify-self: start;
}

.jk-scroll-top-button {
  background: #57b5ff;
  border: 1px solid rgba(8, 47, 73, 0.2);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #082f49;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
  min-height: 42px;
  padding: 0 16px;
  position: fixed;
  right: 24px;
  z-index: 30;
}

.jk-kanban-article-modal-card {
  display: grid;
  gap: 14px;
}

.jk-document-article-card dl {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.jk-document-article-card dl div {
  border-right: 1px solid #e2e8f0;
  display: grid;
  gap: 3px;
  padding-right: 9px;
}

.jk-document-article-card dl div:last-child {
  border-right: 0;
}

.jk-document-article-card dt {
  color: #607080;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jk-document-article-card dd {
  color: #17202a;
  font-weight: 900;
  margin: 0;
}

.jk-document-article-docs {
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.jk-document-year-history {
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  padding-top: 10px;
}

.jk-document-year-history div {
  background: #f8fafc;
  border: 1px solid #d7dee6;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 9px;
}

.jk-document-year-history strong {
  color: #12344d;
}

.jk-document-year-history span {
  color: #607080;
  font-size: 0.78rem;
  font-weight: 850;
}

.jk-document-year-history em {
  color: #17202a;
  font-style: normal;
  font-weight: 900;
}

.jk-document-article-docs-head,
.jk-document-article-doc {
  align-items: center;
  display: grid;
  gap: 8px;
}

.jk-document-article-docs-head {
  grid-template-columns: 1fr auto;
}

.jk-document-article-docs-head span {
  color: #607080;
  font-size: 0.8rem;
  font-weight: 850;
}

.jk-document-article-doc-list {
  display: grid;
  gap: 6px;
}

.jk-document-article-doc-group {
  background: #f8fafc;
  border: 1px solid #d7dee6;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.jk-document-article-doc-group > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
}

.jk-document-article-doc-group > summary::-webkit-details-marker,
.jk-document-article-more-docs > summary::-webkit-details-marker {
  display: none;
}

.jk-document-article-doc-group > summary strong {
  overflow-wrap: anywhere;
}

.jk-document-article-doc-group > summary small {
  color: #607080;
  font-weight: 850;
  white-space: nowrap;
}

.jk-document-article-doc-group[open] > summary {
  border-bottom: 1px solid #d7dee6;
  padding-bottom: 8px;
}

.jk-document-article-more-docs {
  display: grid;
  gap: 8px;
}

.jk-document-article-more-docs > summary {
  color: #12344d;
  cursor: pointer;
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  grid-template-columns: none;
  list-style: none;
  padding: 3px 2px;
}

.jk-document-article-empty {
  color: #607080;
  font-size: 0.82rem;
  font-weight: 850;
  margin: 0;
}

.jk-document-article-doc {
  background: #f8fafc;
  border: 1px solid #d7dee6;
  border-radius: 6px;
  color: #17202a;
  cursor: pointer;
  grid-template-columns: auto minmax(86px, auto) minmax(0, 1fr) auto;
  padding: 8px;
  text-decoration: none;
  text-align: left;
  width: 100%;
}

.jk-document-article-doc small {
  color: #607080;
  overflow-wrap: anywhere;
}

.jk-document-article-doc em {
  color: #17202a;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.jk-document-modal {
  background: rgba(5, 10, 18, 0.78);
  display: grid;
  inset: 0;
  padding: 18px;
  place-items: center;
  position: fixed;
  z-index: 120;
}

.jk-document-modal[hidden] {
  display: none;
}

.jk-modal-open {
  overflow: hidden;
}

.jk-document-modal-backdrop {
  inset: 0;
  position: absolute;
}

.jk-document-modal-dialog {
  background: #111827;
  border: 1px solid rgba(203, 213, 225, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  color: #f8fafc;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(94vh, 980px);
  overflow: hidden;
  position: relative;
  width: min(96vw, 1180px);
}

.jk-document-modal-head {
  align-items: center;
  background: #182232;
  border-bottom: 1px solid rgba(203, 213, 225, 0.16);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.jk-document-modal-head h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0;
}

.jk-document-modal-head small {
  color: #cbd5e1;
  display: block;
  font-weight: 750;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.jk-document-modal-close {
  align-items: center;
  background: #243244;
  border: 1px solid rgba(203, 213, 225, 0.22);
  border-radius: 6px;
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  font-size: 1.4rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.jk-document-modal-actions {
  align-items: center;
  background: #0f172a;
  border-bottom: 1px solid rgba(203, 213, 225, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
}

.jk-document-modal-actions .jk-btn-secondary {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #17202a;
}

.jk-document-table .jk-btn-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  min-height: 34px;
  padding: 0 12px;
}

.jk-document-table .jk-btn-secondary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03)),
    #1d4ed8;
  border-color: #1e40af;
  color: #ffffff;
}

.jk-document-modal-frame-wrap {
  background: #293241;
  min-height: 0;
  padding: 12px;
}

.jk-document-modal-frame-wrap iframe {
  background: #ffffff;
  border: 0;
  border-radius: 4px;
  height: 100%;
  width: 100%;
}

.jk-document-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.jk-document-table th,
.jk-document-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.jk-document-section {
  border-left: 4px solid var(--jk-line-strong);
}

.jk-document-section--orders {
  border-left-color: #2a65a3;
}

.jk-document-section--deliveries {
  border-left-color: #16805d;
}

.jk-document-section--invoices {
  border-left-color: #9a5b13;
}

.jk-document-section--orders .jk-exec-section-head {
  background: rgba(42, 101, 163, 0.08);
  border: 1px solid rgba(42, 101, 163, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
}

.jk-document-section--deliveries .jk-exec-section-head {
  background: rgba(22, 128, 93, 0.08);
  border: 1px solid rgba(22, 128, 93, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
}

.jk-document-section--invoices .jk-exec-section-head {
  background: rgba(154, 91, 19, 0.08);
  border: 1px solid rgba(154, 91, 19, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
}

.jk-document-badge {
  border-radius: 5px;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 900;
  margin-right: 8px;
  min-width: 30px;
  padding: 3px 6px;
  text-align: center;
}

.jk-document-badge--orders {
  background: rgba(42, 101, 163, 0.14);
  color: #1f5f9d;
}

.jk-document-badge--deliveries {
  background: rgba(22, 128, 93, 0.14);
  color: #137655;
}

.jk-document-badge--invoices {
  background: rgba(154, 91, 19, 0.14);
  color: #8a520f;
}

.jk-order-special-strip {
  align-items: center;
  background: rgba(244, 183, 64, 0.095);
  border: 1px solid rgba(244, 183, 64, 0.36);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 18px;
}

.jk-order-special-strip h2 {
  color: var(--jk-text);
  font-size: 1.2rem;
  margin: 4px 0 4px;
}

.jk-order-special-strip p {
  color: var(--jk-text-muted);
  margin: 0;
}

.jk-order-special-strip .jk-btn {
  flex: 0 0 auto;
}

.jk-order-entry-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.jk-order-entry-panel .jk-exec-section-head {
  margin-bottom: 0;
}

.jk-order-entry-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #102033;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.jk-order-work-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
}

.jk-order-entry-toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
}

.jk-order-entry-toolbar label {
  display: grid;
  gap: 5px;
}

.jk-order-entry-toolbar span {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jk-order-entry-toolbar input,
.jk-order-entry-toolbar select,
.jk-order-entry-row input,
.jk-order-request-card textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #102033;
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.jk-order-entry-toolbar input::placeholder,
.jk-order-entry-row input::placeholder,
.jk-order-request-card textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.jk-order-entry-toolbar button {
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 900;
  min-height: 40px;
  padding: 0 16px;
}

.jk-order-recent-block {
  display: grid;
  gap: 7px;
}

.jk-order-recent-block > span {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-order-recent-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-order-recent-list button {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #102033;
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px;
  text-align: left;
}

.jk-order-recent-list b {
  color: #0f172a;
  font-size: 0.9rem;
}

.jk-order-recent-list small {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.25;
}

.jk-order-entry-table {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow: hidden;
}

.jk-order-entry-row {
  background: #ffffff;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(220px, 1.5fr) 110px 120px minmax(180px, 1fr);
}

.jk-order-entry-row + .jk-order-entry-row {
  border-top: 1px solid #e2e8f0;
}

.jk-order-entry-row > span {
  border-right: 1px solid #e2e8f0;
  min-width: 0;
  padding: 8px;
}

.jk-order-entry-row > span:last-child {
  border-right: 0;
}

.jk-order-entry-row--head {
  background: #eaf1f8;
}

.jk-order-entry-row--head span {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 950;
  min-height: 38px;
  text-transform: uppercase;
}

.jk-order-entry-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.jk-order-request-card {
  align-content: start;
}

.jk-order-card-kicker {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jk-order-request-card > strong {
  color: #0f172a;
  font-size: 1.15rem;
}

.jk-order-request-card textarea {
  min-height: 134px;
  resize: vertical;
}

.jk-order-upload-box {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px;
}

.jk-order-upload-box span {
  color: #475569;
  font-size: 0.88rem;
}

.jk-order-upload-box button {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #102033;
  font-weight: 850;
  min-height: 34px;
  padding: 0 12px;
}

.jk-order-entry-card .jk-btn {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.jk-order-entry-card .jk-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #102033;
}

.jk-customer-portal {
  min-height: calc(100vh - 78px);
  padding: 18px 0 32px;
}

.jk-customer-portal-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 230px minmax(0, 1fr);
}

.jk-customer-menu {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  padding: 14px;
  position: sticky;
  top: 92px;
}

.jk-customer-menu-head {
  border-bottom: 1px solid var(--jk-line);
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 12px;
}

.jk-customer-menu-head strong {
  color: var(--jk-text);
  font-size: 0.95rem;
  font-weight: 900;
}

.jk-customer-menu nav {
  display: grid;
  gap: 4px;
}

.jk-customer-menu a {
  border-radius: 7px;
  color: var(--jk-text-muted);
  font-weight: 850;
  padding: 10px;
  text-decoration: none;
}

.jk-customer-menu a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--jk-text);
}

.jk-customer-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.jk-customer-top {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.jk-customer-user {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text-muted);
  display: grid;
  gap: 4px;
  min-width: 260px;
  padding: 12px 14px;
  text-align: right;
}

.jk-customer-user strong {
  color: var(--jk-text);
  font-weight: 900;
}

.jk-customer-user span {
  font-size: 0.82rem;
  line-height: 1.3;
}

.jk-customer-primary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-customer-primary-card,
.jk-customer-module,
.jk-customer-admin-card,
.jk-customer-status-item {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.jk-customer-primary-card {
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px;
}

.jk-customer-primary-card--primary {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.45);
}

.jk-customer-primary-card strong {
  color: var(--jk-text);
  font-size: 1.35rem;
  font-weight: 950;
}

.jk-customer-primary-card span,
.jk-customer-module span,
.jk-customer-admin-card span,
.jk-customer-status-item span {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-customer-status {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jk-customer-status-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.jk-customer-status-item strong {
  color: var(--jk-text);
  font-size: 1.35rem;
  font-weight: 950;
}

.jk-customer-section {
  display: grid;
  gap: 12px;
}

.jk-customer-section-head h2 {
  color: var(--jk-text);
  font-size: 1rem;
  font-weight: 950;
  margin: 0;
}

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

.jk-customer-module,
.jk-customer-admin-card {
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
  padding: 15px;
}

.jk-customer-module strong,
.jk-customer-admin-card strong {
  color: var(--jk-text);
  font-size: 1.05rem;
  font-weight: 950;
}

.jk-customer-module ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.jk-customer-module li {
  color: var(--jk-text-soft);
  font-size: 0.84rem;
  line-height: 1.25;
}

.jk-customer-module li::before {
  color: var(--jk-accent-soft);
  content: "+";
  font-weight: 900;
  margin-right: 7px;
}

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

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

  .jk-customer-menu {
    position: static;
  }

  .jk-customer-menu nav {
    display: flex;
    flex-wrap: wrap;
  }

  .jk-customer-module-grid,
  .jk-customer-status,
  .jk-order-path-grid,
  .jk-order-choice-grid,
  .jk-order-department-grid,
  .jk-order-alternative-grid,
  .jk-document-tabs,
  .jk-document-filter,
  .jk-dashboard-document-search,
  .jk-document-months,
  .jk-desktop-order-layout,
  .jk-customer-simple-grid,
  .jk-customer-simple-grid--management,
  .jk-customer-section-grid,
  .jk-order-work-grid,
  .jk-order-hub-grid,
  .jk-kanban-config-layout,
  .jk-rack-overview-layout,
  .jk-rack-modal-layout,
  .jk-kanban-focus-grid,
  .jk-status-rack-preview-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-rack-overview-layout,
  .jk-rack-area-panel {
    grid-template-columns: 1fr;
  }

  .jk-rack-modal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .jk-customer-top,
  .jk-customer-home-top {
    align-items: stretch;
    flex-direction: column;
  }

  .jk-customer-user {
    min-width: 0;
    text-align: left;
  }

  .jk-document-modal {
    padding: 0;
  }

  .jk-document-modal-dialog {
    border-radius: 0;
    height: 100vh;
    width: 100vw;
  }

  .jk-document-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-document-modal-actions .jk-btn-secondary {
    justify-content: center;
    min-width: 0;
    width: 100%;
  }

  .jk-customer-primary,
  .jk-customer-module-grid,
  .jk-customer-admin-grid,
  .jk-customer-status,
  .jk-document-tabs,
  .jk-document-filter,
  .jk-dashboard-document-search,
  .jk-document-months,
  .jk-document-article-grid,
  .jk-document-article-card dl,
  .jk-document-article-card summary,
  .jk-document-article-doc,
  .jk-document-year-history,
  .jk-order-path-grid,
  .jk-order-choice-grid,
  .jk-order-department-grid,
  .jk-order-alternative-grid,
  .jk-desktop-order-layout,
  .jk-desktop-order-form,
  .jk-desktop-area-switch,
  .jk-desktop-cart-row,
  .jk-desktop-history-tools,
  .jk-history-result,
  .jk-customer-simple-grid,
  .jk-customer-simple-grid--management,
  .jk-customer-section-grid,
  .jk-order-work-grid,
  .jk-order-hub-grid,
  .jk-kanban-config-layout,
  .jk-rack-overview-layout,
  .jk-rack-modal-layout,
  .jk-kanban-focus-grid,
  .jk-status-rack-preview-body {
    grid-template-columns: 1fr;
  }

  .jk-kanban-config-head,
  .jk-warehouse-hall-head,
  .jk-kanban-wall-head,
  .jk-status-rack-preview-head,
  .jk-rack-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .jk-warehouse-hall-head small {
    max-width: none;
    text-align: left;
  }

  .jk-warehouse-hall-map {
    min-height: 520px;
  }

  .jk-warehouse-layout-builder {
    grid-template-columns: 1fr;
  }

  .jk-warehouse-zone {
    position: absolute;
  }

  .jk-warehouse-toolbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-warehouse-toolbox strong,
  .jk-warehouse-toolbox small {
    grid-column: 1 / -1;
  }

  .jk-warehouse-toolbox button.jk-warehouse-tool {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .jk-warehouse-aisle {
    min-height: 42px;
    writing-mode: horizontal-tb;
  }

  .jk-rack-area-panel {
    position: static;
  }

  .jk-rack-search-results button,
  .jk-rack-article-item {
    grid-template-columns: 1fr;
  }

  .jk-rack-article-image {
    height: 96px;
    width: 96px;
  }

  .jk-rack-article-specs {
    grid-template-columns: 1fr 1fr;
  }

  .jk-rack-article-specs b {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(78px, 0.75fr) minmax(0, 1.25fr);
    min-height: 0;
  }

  .jk-rack-article-specs small {
    font-size: 0.7rem;
  }

  .jk-rack-scan-work {
    grid-template-columns: 1fr;
  }

  .jk-rack-scan-work .jk-kanban-config-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jk-rack-article-meta {
    justify-items: start;
    text-align: left;
  }

  .jk-order-entry-toolbar,
  .jk-order-entry-row {
    grid-template-columns: 1fr;
  }

  .jk-order-recent-list {
    grid-template-columns: 1fr;
  }

  .jk-order-special-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .jk-order-entry-row > span {
    border-right: 0;
  }

  .jk-order-upload-box {
    align-items: stretch;
    flex-direction: column;
  }

  .jk-order-entry-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jk-order-main-button strong {
    font-size: 1.55rem;
  }
}

.jk-demand-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.jk-demand-primary {
  min-width: 0;
}

.jk-demand-type-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.jk-demand-type,
.jk-demand-chip-row button {
  appearance: none;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--jk-text);
  cursor: default;
  font: inherit;
  text-align: left;
}

.jk-demand-type {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 14px;
}

.jk-demand-type strong,
.jk-demand-result strong,
.jk-demand-ticket strong {
  color: var(--jk-text);
  font-weight: 900;
  line-height: 1.25;
}

.jk-demand-type span,
.jk-demand-route span,
.jk-demand-result small,
.jk-demand-ticket small {
  color: var(--jk-text-muted);
  line-height: 1.35;
}

.jk-demand-type.is-active {
  border-color: rgba(87, 181, 255, 0.48);
  background: rgba(87, 181, 255, 0.12);
}

.jk-demand-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jk-demand-form-wide {
  grid-column: 1 / -1;
}

.jk-demand-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.jk-demand-route {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.jk-demand-route div {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.jk-demand-route b {
  align-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.jk-demand-board {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-demand-ticket {
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 7px;
  padding: 14px;
}

.jk-demand-ticket span,
.jk-demand-result span {
  color: var(--jk-accent-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jk-demand-search-card {
  margin-bottom: 18px;
}

.jk-demand-search {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.jk-demand-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.jk-demand-chip-row button {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.jk-demand-result-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.jk-demand-result {
  align-items: center;
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.jk-demand-result span,
.jk-demand-result strong,
.jk-demand-result small {
  grid-column: 1;
}

.jk-demand-result .jk-btn-secondary {
  grid-column: 2;
  grid-row: 1 / span 3;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .jk-demand-layout,
  .jk-demand-board {
    grid-template-columns: 1fr;
  }

  .jk-demand-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .jk-demand-form-grid,
  .jk-demand-search,
  .jk-demand-result {
    grid-template-columns: 1fr;
  }

  .jk-demand-result .jk-btn-secondary {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

.jk-position-main .jk-customer-catalog-no b {
  color: #ffd76a;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.jk-position-tech-card {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(86px, auto) 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(90, 162, 255, 0.3);
  border-radius: 12px;
  color: var(--jk-text);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.18), rgba(255, 255, 255, 0.045));
  line-height: 1.15;
}

.jk-position-tech-card > strong {
  color: #ffffff;
  font-size: clamp(1.45rem, 3.1vw, 2.05rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.jk-position-tech-card > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jk-position-tech-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.88rem;
  font-weight: 820;
}

.jk-position-tech-card b {
  color: var(--jk-text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 850;
}

.jk-position-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.jk-position-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  color: var(--jk-text-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  line-height: 1;
}

.jk-position-specs b {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.jk-position-image {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210, 218, 230, 0.9);
  border-radius: 12px;
  background: #ffffff;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 820;
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.jk-position-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.jk-ve-control {
  display: grid;
  grid-template-columns: 32px 34px 32px;
  gap: 4px;
  align-items: center;
  justify-content: end;
}

.jk-ve-control button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 10px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 1.25rem;
  font-weight: 850;
}

.jk-ve-control strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jk-text);
  font-size: 1.25rem;
}

.jk-ve-control small {
  grid-column: 1 / -1;
  color: var(--jk-text-muted);
  text-align: center;
  font-weight: 760;
}

.jk-position-tools {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.jk-position-note {
  display: grid;
  gap: 5px;
}

.jk-position-note span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.jk-position-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--jk-line);
  border-radius: 10px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 0.9rem;
}

.jk-position-delete {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 90, 111, 0.28);
  border-radius: 10px;
  color: var(--jk-danger);
  background: rgba(239, 90, 111, 0.1);
  font-size: 0.88rem;
  font-weight: 820;
  white-space: nowrap;
}

.jk-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 7, 12, 0.68);
  backdrop-filter: blur(10px);
}

.jk-modal[hidden] {
  display: none;
}

.jk-modal-dialog {
  width: min(100%, 480px);
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--jk-bg-elevated);
  box-shadow: var(--jk-shadow-3);
}

.jk-modal-dialog h2 {
  color: var(--jk-text);
  font-size: 1.6rem;
}

.jk-modal-dialog p {
  color: var(--jk-text-soft);
  line-height: 1.55;
}

.jk-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.jk-submit-comment-field {
  display: grid;
  gap: 8px;
}

.jk-submit-comment-field span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.jk-submit-comment-field textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--jk-line-strong);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--jk-text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  line-height: 1.45;
}

.jk-submit-comment-field textarea:focus {
  outline: 0;
  border-color: rgba(49, 196, 141, 0.72);
  box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.16);
}

.jk-scan-input span {
  color: var(--jk-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jk-scan-input strong {
  color: var(--jk-text);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.jk-rack-card {
  margin-top: 20px;
}

.jk-rack-visual {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.jk-rack-shelf {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--jk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.jk-rack-shelf > span {
  color: var(--jk-text-soft);
  font-weight: 820;
}

.jk-rack-bins {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
}

.jk-rack-bin {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--jk-text);
  font-weight: 850;
  border: 1px solid var(--jk-line);
  background: rgba(255, 255, 255, 0.04);
}

.jk-rack-bin.is-ok {
  border-color: rgba(49, 196, 141, 0.28);
  background: var(--jk-success-soft);
}

.jk-rack-bin.is-open {
  border-color: rgba(244, 183, 64, 0.3);
  background: var(--jk-warning-soft);
}

.jk-rack-bin.is-empty {
  border-color: rgba(239, 90, 111, 0.3);
  background: var(--jk-danger-soft);
}

.jk-upload-card,
.jk-placeholder-card {
  margin-top: 24px;
}

.jk-upload-card {
  max-width: 760px;
}

.jk-upload-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.jk-upload-form input[type="file"] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px dashed var(--jk-line-strong);
  color: var(--jk-text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.jk-upload-steps {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-placeholder-pipeline {
  margin-top: 22px;
}

.jk-dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jk-space-4);
  margin-bottom: var(--jk-space-5);
}

.jk-dashboard-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.jk-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jk-space-5);
}

.jk-action-card {
  display: block;
  height: 100%;
}

.jk-action-card .jk-card-body {
  display: grid;
  gap: 12px;
  min-height: 180px;
}

.jk-action-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jk-action-card-text {
  color: var(--jk-text-soft);
  line-height: 1.65;
}

.jk-action-card:hover {
  transform: translateY(-2px);
}

.jk-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--jk-space-5);
  margin-top: var(--jk-space-8);
}

.jk-activity-list,
.jk-mini-list {
  display: grid;
  gap: 14px;
}

.jk-activity-item,
.jk-mini-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--jk-radius-md);
  border: 1px solid var(--jk-line);
  background: rgba(255,255,255,0.03);
}

.jk-activity-copy,
.jk-mini-copy {
  display: grid;
  gap: 4px;
}

.jk-activity-title,
.jk-mini-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--jk-text);
}

.jk-activity-text,
.jk-mini-text {
  font-size: 0.9rem;
  color: var(--jk-text-soft);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .jk-appbar-inner {
    grid-template-columns: 1fr auto;
    padding-block: 12px;
  }

  .jk-appbar-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .jk-appbar-dropdown {
    min-width: 190px;
  }

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

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

  .jk-ops-hero,
  .jk-ops-dashboard-grid,
  .jk-ops-dashboard-grid--bottom {
    grid-template-columns: 1fr;
  }

  .jk-kanban-approval-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-kanban-work-grid {
    grid-template-columns: 1fr;
  }

  .jk-kanban-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-kanban-order-card summary {
    grid-template-columns: 1fr;
  }

  .jk-kanban-order-counts {
    justify-content: start;
  }

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

  .jk-ops-metric-grid,
  .jk-ops-kpi-group:first-child .jk-ops-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-ops-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jk-ops-stats-grid {
    grid-template-columns: 1fr;
  }

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

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

  .jk-status-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-kiosk-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jk-kiosk-brand-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .jk-kiosk-dashboard {
    min-height: calc(100svh - 124px);
    padding: 8px 0;
  }

  .jk-kiosk-container {
    gap: 10px;
  }

  .jk-kiosk-primary {
    min-height: clamp(116px, 19svh, 150px);
  }

  .jk-kiosk-secondary a {
    min-height: clamp(68px, 10svh, 84px);
  }

  .jk-kanban-review-layout,
  .jk-kanban-scan-layout {
    grid-template-columns: 1fr;
  }

  .jk-position-row,
  .jk-status-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .jk-position-row .jk-badge,
  .jk-position-row .jk-btn-ghost,
  .jk-status-row .jk-badge,
  .jk-status-meta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .jk-position-row--scan {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .jk-position-row--approval {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .jk-position-row--scan .jk-position-image {
    grid-column: auto;
  }

  .jk-position-row--approval .jk-position-image {
    grid-column: auto;
    width: 88px;
  }

  .jk-position-image {
    width: 116px;
  }

  .jk-ve-control {
    grid-column: 2 / -1;
    justify-content: start;
  }

  .jk-position-tools,
  .jk-position-note {
    grid-column: 1 / -1;
  }

  .jk-position-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .jk-appbar-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 8px;
  }

  .jk-appbar-brand {
    min-width: 0;
    gap: 10px;
  }

  .jk-appbar-mark {
    width: 48px;
    height: 30px;
  }

  .jk-appbar-subtitle {
    display: none;
  }

  .jk-appbar-link {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  .jk-appbar-actions {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .jk-appbar-nav {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 4px;
    width: 100%;
  }

  .jk-appbar-nav > .jk-appbar-link,
  .jk-appbar-menu {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 86px;
  }

  .jk-appbar-menu > .jk-appbar-link,
  .jk-appbar-nav > .jk-appbar-link {
    width: 100%;
  }

  .jk-appbar-menu {
    position: static;
  }

  .jk-appbar-dropdown {
    left: 0;
    max-width: calc(100vw - 24px);
    min-width: 190px;
    position: absolute;
    top: 100%;
  }

  .jk-dashboard {
    padding: var(--jk-space-7) 0 var(--jk-space-8);
  }

  .jk-dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .jk-status-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .jk-status-draft-pill {
    width: 100%;
    justify-items: start;
  }

  .jk-status-group summary {
    grid-template-columns: 1fr;
  }

  .jk-status-group-tools,
  .jk-status-order-card summary,
  .jk-status-order-card summary dl,
  .jk-kanban-command-grid,
  .jk-kanban-order-counts,
  .jk-kanban-position-row,
  .jk-kanban-position-row dl,
  .jk-status-position-card,
  .jk-status-position-card dl {
    grid-template-columns: 1fr;
  }

  .jk-status-order-card summary dl div {
    text-align: left;
  }

  .jk-kpi-grid,
  .jk-action-grid {
    grid-template-columns: 1fr;
  }

  .jk-ops-dashboard {
    padding-top: 18px;
  }

  .jk-ops-hero-copy,
  .jk-ops-hero-panel,
  .jk-card-body {
    padding: 20px;
  }

  .jk-ops-group-head,
  .jk-ops-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .jk-ops-metric-grid,
  .jk-ops-kpi-group:first-child .jk-ops-metric-grid,
  .jk-ops-action-grid,
  .jk-classic-grid {
    grid-template-columns: 1fr;
  }

  .jk-ops-bar-chart {
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .jk-ops-bar-col {
    min-width: 34px;
  }

  .jk-ops-metric-card,
  .jk-ops-action-card {
    min-height: auto;
  }

  .jk-ops-donut-row {
    grid-template-columns: 1fr;
  }

  .jk-approval-grid,
  .jk-location-grid,
  .jk-department-grid,
  .jk-status-area-grid,
  .jk-approval-card-head,
  .jk-approval-stats {
    grid-template-columns: 1fr;
  }

  .jk-status-draft-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .jk-rack-shelf {
    grid-template-columns: 1fr;
  }

  .jk-rack-bins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-kiosk-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .jk-kiosk-select-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .jk-kiosk-brand-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .jk-kiosk-logo {
    width: 92px;
  }

  .jk-kiosk-primary {
    min-height: 116px;
  }

  .jk-kiosk-head > div,
  .jk-kiosk-context {
    padding: 12px;
  }

  .jk-kiosk-context {
    gap: 3px;
  }

  .jk-kiosk-context span,
  .jk-kiosk-context small {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .jk-kiosk-context strong {
    font-size: 0.95rem;
  }

  .jk-kiosk-primary span {
    font-size: 0.85rem;
  }

  .jk-kiosk-primary strong {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .jk-kiosk-primary small {
    max-width: 260px;
    font-size: 0.8rem;
  }

  .jk-kiosk-secondary a {
    min-height: 72px;
    padding: 10px 8px;
    text-align: center;
    justify-items: center;
  }

  .jk-kiosk-secondary strong {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .jk-kiosk-secondary span {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .jk-position-row--scan {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .jk-position-row--approval {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .jk-position-image {
    width: 96px;
  }

  .jk-position-row--approval .jk-position-image {
    width: 80px;
  }

  .jk-kanban-approval-meta {
    grid-template-columns: 1fr;
  }

  .jk-position-tech-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .jk-phone-scan-panel {
    grid-template-columns: 1fr;
  }
}


.jk-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin-bottom: 20px;
}

.jk-nav-btn {
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.jk-nav-btn:hover {
    background: rgba(255,255,255,0.1);
}



.jk-admin-module-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.jk-admin-module-card-simple {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    min-height: 160px;
    height: 100%;
}

.jk-admin-module-card-simple .jk-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
}

.jk-admin-module-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.jk-admin-module-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.jk-admin-module-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.92;
}

.jk-dashboard-section {
    margin-bottom: 28px;
}

.jk-kpi-grid {
    margin-bottom: 28px;
}

@media (max-width: 1100px) {
    .jk-admin-module-grid-simple {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 700px) {
    .jk-admin-module-grid-simple {
        grid-template-columns: 1fr;
    }
}

.jk-dashboard--admin-clean {
    padding-top: 24px;
}

.jk-dashboard-topbar {
    margin-bottom: 24px;
}

.jk-dashboard-grid--2col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 1000px) {
    .jk-dashboard-grid--2col {
        grid-template-columns: 1fr;
    }
}


.jk-subnav-wrap {
    margin: 22px 0 28px 0;
}

.jk-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(120, 160, 220, 0.16);
    border-radius: 18px;
    background: rgba(16, 24, 40, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.jk-subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #c7d6f3;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.jk-subnav-link:hover {
    color: #ffffff;
    background: rgba(66, 133, 244, 0.14);
    border-color: rgba(66, 133, 244, 0.28);
    transform: translateY(-1px);
}

.jk-subnav-link.is-active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(53, 122, 232, 0.95), rgba(35, 96, 196, 0.95));
    border-color: rgba(116, 170, 255, 0.45);
    box-shadow: 0 8px 24px rgba(22, 77, 168, 0.28);
}


.jk-admin-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.jk-admin-area-card {
    border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 220px;
}

.jk-admin-area-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

.jk-admin-area-card--kanban {
    background:
        linear-gradient(180deg, rgba(33, 67, 126, 0.28) 0%, rgba(18, 25, 42, 0.88) 100%);
    border-color: rgba(74, 144, 226, 0.28);
}

.jk-admin-area-card--warehouse {
    background:
        linear-gradient(180deg, rgba(100, 74, 24, 0.26) 0%, rgba(28, 24, 18, 0.90) 100%);
    border-color: rgba(224, 168, 58, 0.26);
}

.jk-admin-area-card--management {
    background:
        linear-gradient(180deg, rgba(29, 82, 73, 0.26) 0%, rgba(17, 28, 27, 0.90) 100%);
    border-color: rgba(47, 196, 163, 0.22);
}

.jk-admin-area-card--communication {
    background:
        linear-gradient(180deg, rgba(88, 49, 112, 0.26) 0%, rgba(28, 20, 36, 0.90) 100%);
    border-color: rgba(181, 120, 255, 0.24);
}

.jk-admin-area-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.jk-admin-area-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.jk-admin-area-subtitle {
    margin: 8px 0 0 0;
    color: rgba(230, 238, 255, 0.82);
    line-height: 1.55;
    font-size: 0.98rem;
}

.jk-admin-area-points {
    display: grid;
    gap: 12px;
}

.jk-admin-area-point {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: rgba(245, 248, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.45;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 980px) {
    .jk-admin-area-grid {
        grid-template-columns: 1fr;
    }
}

.jk-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.jk-admin-card {
    border-radius: 20px;
    padding: 28px;
    transition: 0.2s;
    text-align: left;
}

.jk-admin-card:hover {
    transform: translateY(-4px);
}

/* Farben */

.jk-admin-card--kanban {
    background: linear-gradient(180deg, rgba(40,90,160,0.25), rgba(15,20,40,0.9));
}

.jk-admin-card--warehouse {
    background: linear-gradient(180deg, rgba(160,110,40,0.25), rgba(25,20,15,0.9));
}

.jk-admin-card--management {
    background: linear-gradient(180deg, rgba(40,140,120,0.25), rgba(15,25,22,0.9));
}

.jk-admin-card--communication {
    background: linear-gradient(180deg, rgba(140,60,180,0.25), rgba(25,15,35,0.9));
}

/* Text */

.jk-admin-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.jk-admin-sub {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.jk-admin-card--critical {
    background: linear-gradient(180deg, rgba(170, 70, 50, 0.26), rgba(30, 18, 18, 0.92));
}

.jk-admin-card--shipping {
    background: linear-gradient(180deg, rgba(52, 110, 170, 0.24), rgba(16, 22, 32, 0.92));
}

.jk-admin-card--stats {
    background: linear-gradient(180deg, rgba(110, 90, 170, 0.24), rgba(20, 18, 32, 0.92));
}

.jk-admin-grid--stats {
    grid-template-columns: repeat(4, 1fr);
}

.jk-admin-card--stats-soft {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
    .jk-admin-grid--stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .jk-admin-grid--stats {
        grid-template-columns: 1fr;
    }
}

.jk-admin-grid--stats {
    grid-template-columns: repeat(4, 1fr);
}

.jk-admin-card--stats-soft {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
    .jk-admin-grid--stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .jk-admin-grid--stats {
        grid-template-columns: 1fr;
    }
}

.jk-artikeltext {
    white-space: normal;
    word-break: break-word;
    max-width: 500px;
    line-height: 1.4;
}


.pdf-article-text {
    color: #ffffff;
    line-height: 1.35;
}

.sap-compare-text {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.35;
    max-width: 360px;
}

.sap-compare-text span {
    color: #60a5fa;
    font-weight: 700;
}

.sap-compare-text--empty {
    color: #64748b;
    border-top: none;
    padding-top: 0;
}


.import-table {
    width: 100%;
    border-collapse: collapse;
}

.import-table th,
.import-table td {
    padding: 8px 6px;
    vertical-align: top;
}

.article-select-cell {
    min-width: 250px;
}

.article-input {
    width: 220px;
    color: #111;
    background: #fff;
    padding: 6px 8px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
}

.sap-under-input {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.35;
    max-width: 280px;
}

.sap-under-input--empty {
    color: #64748b;
}

.center-text {
    text-align: center;
}

.select-candidate-btn {
    margin-top: 6px;
    padding: 5px 10px;
    border: 0;
    border-radius: 6px;
    background: #f59e0b;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
}

.status-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-green {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.status-yellow {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.status-open {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.import-actions {
    margin-top: 24px;
    display: flex;
    gap: 8px;
}

.candidate-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.candidate-modal-box {
    width: 1100px;
    max-width: 95vw;
    background: #111827;
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.candidate-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.candidate-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.candidate-modal-header button {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 30px;
    cursor: pointer;
}

.candidate-source {
    background: rgba(255,255,255,0.06);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.candidate-table {
    width: 100%;
    border-collapse: collapse;
}

.candidate-table th,
.candidate-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}


.import-header-fields {
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr) minmax(240px, 1fr);
    gap: 14px;
    align-items: end;
    max-width: 920px;
    margin-top: 22px;
    margin-bottom: 32px;
}


.import-header-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.import-header-fields span {
    color: #93a4bb;
    font-size: 12px;
    letter-spacing: 0;
}

.import-header-fields input,
.import-header-fields select {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.import-header-fields input::placeholder {
    color: rgba(203, 213, 225, 0.58);
}

.import-header-fields input:focus,
.import-header-fields select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.import-header-fields select option {
    background: #111827;
    color: #f8fafc;
}

@media (max-width: 900px) {
    .import-header-fields {
        grid-template-columns: 1fr;
        max-width: none;
    }
}


.import-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -12px 0 28px;
}

.status-filter-btn {
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    padding: 0 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.status-filter-btn:hover {
    border-color: #60a5fa;
    color: #f8fafc;
}

.status-filter-btn.is-active {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border-color: transparent;
    color: #ffffff;
}

.article-input-wrap {
    position: relative;
    width: 220px;
    z-index: 100;
}

.article-suggestions {
    display: none;
    position: absolute;
    z-index: 9999;
    top: calc(100% + 6px);
    left: 0;
    width: 430px;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 8px;
    background: #0f172a;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}

.article-suggestion-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: transparent;
    color: #f8fafc;
    padding: 9px 12px;
    text-align: left;
    cursor: pointer;
}

.article-suggestion-item:hover {
    background: rgba(59, 130, 246, 0.20);
}

.article-suggestion-item strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    color: #ffffff;
}

.article-suggestion-item span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.3;
    max-width: 390px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.jk-card,
.jk-card-body,
.import-table,
.import-table tbody,
.import-table tr,
.import-table td {
    overflow: visible;
}

.article-select-cell {
    position: relative;
    overflow: visible;
}

.article-input-wrap {
    position: relative;
    z-index: 100;
}

.article-suggestions {
    z-index: 9999;
}


.article-select-cell {
    position: relative;
    overflow: visible;
    z-index: 20;
}

.import-line-row:has(.article-input:focus),
.import-line-row:has(.article-suggestions[style*="block"]) {
    position: relative;
    z-index: 200;
}

.article-input-wrap {
    position: relative;
    width: 220px;
    z-index: 300;
}

.article-suggestions {
    display: none;
    position: absolute;
    z-index: 10000;
    top: calc(100% + 8px);
    left: 0;
    width: 520px;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(96, 165, 250, 0.55);
    border-radius: 10px;
    background: #0b1220;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

.article-suggestion-item {
    width: 100%;
    min-height: 62px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #0b1220;
    color: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
}

.article-suggestion-item:hover {
    background: #172554;
}

.article-suggestion-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    color: #ffffff;
}

.article-suggestion-item span {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.35;
    max-width: 480px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}


.candidate-modal {
    align-items: center;
    padding: 28px;
    overflow: hidden;
}

.candidate-modal-box {
    width: min(1120px, calc(100vw - 56px));
    max-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.candidate-modal-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #111827;
}

.candidate-source {
    flex: 0 0 auto;
}

.candidate-table {
    display: block;
    overflow-y: auto;
    overflow-x: auto;
    max-height: calc(100vh - 260px);
}

.candidate-table thead,
.candidate-table tbody,
.candidate-table tr {
    width: 100%;
}

.candidate-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #111827;
}

.jk-exec-menu-link em {
  color: var(--jk-text);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.jk-exec-menu-link--danger {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.92), rgba(153, 27, 27, 0.74));
  border-color: rgba(248, 113, 113, 0.75);
}

.jk-exec-menu-link--danger span,
.jk-exec-menu-link--danger strong,
.jk-exec-menu-link--danger em {
  color: #ffffff;
}

.jk-exec-menu-link--danger:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.96), rgba(185, 28, 28, 0.84));
}

.jk-exec-menu-link--chat {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.9), rgba(21, 128, 61, 0.74));
  border-color: rgba(74, 222, 128, 0.68);
}

.jk-exec-menu-link--chat span,
.jk-exec-menu-link--chat strong,
.jk-exec-menu-link--chat em {
  color: #ffffff;
}

.jk-exec-menu-link--chat:hover {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.96), rgba(22, 163, 74, 0.82));
}

.jk-exec-menu-link--metrics {
  background: rgba(14, 165, 233, 0.12);
}

.jk-exec-menu-link--metrics span,
.jk-exec-menu-link--metrics strong,
.jk-exec-menu-link--metrics em {
  color: #dff6ff;
}

.jk-exec-menu-link--metrics:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.92), rgba(13, 148, 136, 0.82));
}

.jk-exec-chart-grid--kanban {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

@media (max-width: 900px) {
  .jk-exec-chart-grid--kanban {
    grid-template-columns: 1fr;
  }
}

/* Internal executive dashboard */
.jk-exec-dashboard {
  padding-top: 20px;
}

.jk-exec-top {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  margin-bottom: 14px;
}

.jk-exec-top .jk-dashboard-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.jk-exec-top .jk-dashboard-subtitle {
  max-width: 760px;
}

.jk-exec-role {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px 14px;
}

.jk-exec-role strong {
  color: var(--jk-text);
  font-size: 0.94rem;
  line-height: 1.35;
}

.jk-exec-menu {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 16px 0 20px;
  overflow: hidden;
}

.jk-exec-menu-link {
  border-left: 1px solid var(--jk-line);
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px 13px;
  text-decoration: none;
}

.jk-exec-menu-link:first-child {
  border-left: 0;
}

.jk-exec-menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.jk-exec-menu-link span {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-exec-menu-link strong {
  color: var(--jk-text);
  font-size: 0.98rem;
  line-height: 1.15;
}

.jk-chat-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  margin-top: 18px;
}

.jk-chat-list,
.jk-chat-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
}

.jk-chat-list {
  display: grid;
  overflow: hidden;
}

.jk-chat-thread {
  border-bottom: 1px solid var(--jk-line);
  display: grid;
  gap: 5px;
  padding: 14px;
  text-decoration: none;
}

.jk-chat-thread:last-child {
  border-bottom: 0;
}

.jk-chat-thread:hover,
.jk-chat-thread.is-open {
  background: rgba(34, 197, 94, 0.12);
}

.jk-chat-thread span,
.jk-chat-thread small,
.jk-chat-empty p {
  color: var(--jk-text-muted);
}

.jk-chat-thread span {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-chat-thread strong,
.jk-chat-panel h2,
.jk-chat-empty strong {
  color: var(--jk-text);
}

.jk-chat-panel {
  min-height: 340px;
  padding: 18px;
}

.jk-chat-panel-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.jk-chat-status {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.36);
  border-radius: 999px;
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.jk-chat-empty {
  align-content: center;
  display: grid;
  min-height: 240px;
  max-width: 520px;
}

.jk-chat-empty strong {
  font-size: 1.25rem;
}

.jk-chat-kpi--open {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.06));
  border-color: rgba(34, 197, 94, 0.34);
}

.jk-cockpit-tabs {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 16px 0 20px;
  overflow: hidden;
}

.jk-cockpit-tabs a {
  color: var(--jk-text);
  flex: 1 1 150px;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
}

.jk-cockpit-tabs a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.jk-cockpit-tabs a.is-active {
  background: rgba(14, 165, 233, 0.16);
  color: #dff6ff;
}

.jk-cockpit-tabs a.jk-cockpit-back-link {
  background: #fff7c2;
  color: #3f3000;
}

.jk-cockpit-tabs a.jk-cockpit-back-link:hover {
  background: #ffe88a;
  color: #241b00;
}

.jk-cockpit-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jk-cockpit-kpi,
.jk-cockpit-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
}

.jk-cockpit-kpi {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
  text-decoration: none;
}

a.jk-cockpit-kpi:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.jk-cockpit-kpi span {
  color: var(--jk-text-muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-cockpit-kpi strong {
  color: var(--jk-text);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1;
}

.jk-cockpit-kpi small {
  color: var(--jk-text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.jk-cockpit-kpi--good {
  border-color: rgba(34, 197, 94, 0.28);
}

.jk-cockpit-kpi--watch {
  border-color: rgba(245, 158, 11, 0.34);
}

.jk-cockpit-kpi--danger {
  border-color: rgba(248, 113, 113, 0.4);
}

.jk-cockpit-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 12px;
}

.jk-cockpit-note-list {
  display: grid;
  gap: 10px;
}

.jk-cockpit-note-list p {
  color: var(--jk-text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.jk-cockpit-panel {
  margin-top: 12px;
  padding: 14px;
}

.jk-cockpit-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.jk-cockpit-table div {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.4fr) minmax(100px, 0.6fr) minmax(100px, 0.5fr);
  padding: 10px 12px;
}

.jk-cockpit-table strong,
.jk-cockpit-table b {
  color: var(--jk-text);
}

.jk-cockpit-table strong,
.jk-cockpit-table span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-cockpit-table span {
  color: var(--jk-text-muted);
  font-size: 0.84rem;
}

.jk-cockpit-table b {
  text-align: right;
}

.jk-management-document-table-wrap {
  background: #f4f6f8;
  border-color: #aeb9c6;
}

.jk-management-document-table td strong,
.jk-management-document-table td small {
  display: block;
}

.jk-management-document-table td strong {
  color: #17202a;
  line-height: 1.2;
}

.jk-management-document-table td small {
  color: #465363;
  font-size: 0.78rem;
  line-height: 1.25;
  margin-top: 3px;
}

.jk-management-document-table {
  min-width: 980px;
}

.jk-management-document-table td {
  white-space: nowrap;
}

.jk-management-document-table td:nth-child(2) {
  min-width: 280px;
  white-space: normal;
}

.jk-management-document-table td:nth-child(5),
.jk-management-document-table td:nth-child(6),
.jk-management-document-table td:nth-child(7),
.jk-management-document-table td:nth-child(8) {
  text-align: right;
}

.jk-management-document-table tbody tr:hover td {
  background: #e8f2ff;
}

.jk-management-groups {
  display: grid;
  gap: 10px;
}

.jk-management-group {
  background: #edf1f5;
  border: 1px solid #aeb9c6;
  border-radius: 6px;
  overflow: hidden;
}

.jk-management-group summary {
  align-items: center;
  background: linear-gradient(180deg, #dfe8f3, #c9d6e4);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  list-style: none;
  padding: 10px 12px;
}

.jk-management-group summary::-webkit-details-marker {
  display: none;
}

.jk-management-group summary::before {
  color: #12344d;
  content: "+";
  font-size: 1rem;
  font-weight: 900;
  grid-column: 1 / -1;
  line-height: 1;
  margin-bottom: -18px;
  width: 18px;
}

.jk-management-group[open] summary::before {
  content: "-";
}

.jk-management-group summary > div:first-of-type {
  padding-left: 24px;
}

.jk-management-group summary strong,
.jk-management-group summary span {
  display: block;
}

.jk-management-group summary strong {
  color: #12344d;
  font-size: 0.95rem;
  line-height: 1.2;
}

.jk-management-group summary span {
  color: #465363;
  font-size: 0.78rem;
  margin-top: 2px;
}

.jk-management-group summary dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.jk-management-group summary dl div {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(174, 185, 198, 0.75);
  border-radius: 3px;
  padding: 5px 7px;
}

.jk-management-group summary dt,
.jk-management-group summary dd {
  margin: 0;
}

.jk-management-group summary dt {
  color: #465363;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-management-group summary dd {
  color: #17202a;
  font-size: 0.84rem;
  font-weight: 900;
  margin-top: 2px;
}

.jk-document-link {
  color: #12344d;
  text-decoration: none;
}

.jk-document-link:hover {
  color: #005a9e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jk-document-detail-kpis .jk-cockpit-kpi strong {
  font-size: 1.25rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.jk-sap-document-head {
  background: #edf1f5;
  border: 1px solid #b8c2cc;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  color: #17202a;
  margin-bottom: 14px;
  overflow: hidden;
}

.jk-sap-document-titlebar {
  align-items: center;
  background: linear-gradient(180deg, #dfe8f3, #c9d6e4);
  border-bottom: 1px solid #aeb9c6;
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
}

.jk-sap-document-titlebar strong {
  color: #12344d;
  font-size: 0.95rem;
}

.jk-sap-document-titlebar span {
  background: #fff7c2;
  border: 1px solid #d2bd61;
  border-radius: 3px;
  color: #4b3b00;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 3px 8px;
}

.jk-sap-form-grid {
  display: grid;
  gap: 8px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.jk-sap-form-grid div,
.jk-sap-comments {
  display: grid;
  gap: 3px;
}

.jk-sap-form-grid span,
.jk-sap-comments span {
  color: #465363;
  font-size: 0.72rem;
  font-weight: 800;
}

.jk-sap-form-grid strong,
.jk-sap-comments p {
  background: #fff;
  border: 1px solid #b7c1cc;
  border-radius: 3px;
  color: #17202a;
  font-size: 0.84rem;
  line-height: 1.25;
  margin: 0;
  min-height: 30px;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.jk-sap-comments {
  padding: 0 12px 12px;
}

.jk-document-flow {
  border-top: 1px solid #c2ccd6;
}

.jk-document-flow summary {
  background: #fff7c2;
  color: #3f3000;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
  padding: 10px 12px;
}

.jk-document-flow summary::-webkit-details-marker {
  display: none;
}

.jk-document-flow summary::before {
  content: "+";
  display: inline-block;
  font-weight: 900;
  margin-right: 8px;
  width: 12px;
}

.jk-document-flow[open] summary::before {
  content: "-";
}

.jk-document-flow-body {
  align-items: stretch;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
}

.jk-document-flow-node {
  background: #fff;
  border: 1px solid #b7c1cc;
  border-radius: 5px;
  color: #17202a;
  display: grid;
  flex: 0 0 172px;
  gap: 4px;
  min-height: 82px;
  padding: 9px;
  text-decoration: none;
}

.jk-document-flow-node:hover {
  background: #e8f2ff;
}

.jk-document-flow-node--current {
  background: #eaf4ff;
  border-color: #82add2;
}

.jk-document-flow-node span {
  color: #465363;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-document-flow-node strong {
  color: #12344d;
  font-size: 0.95rem;
  line-height: 1.15;
}

.jk-document-flow-node small {
  color: #465363;
  font-size: 0.72rem;
  line-height: 1.25;
}

.jk-document-flow-edge {
  align-self: center;
  background: #8aa0b5;
  flex: 0 0 28px;
  height: 2px;
  position: relative;
}

.jk-document-flow-edge::after {
  border-bottom: 5px solid transparent;
  border-left: 7px solid #8aa0b5;
  border-top: 5px solid transparent;
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
}

.jk-document-flow-body p {
  color: #465363;
  font-size: 0.84rem;
  margin: 0;
}

.jk-sap-table-wrap {
  background: #f4f6f8;
  border: 1px solid #aeb9c6;
  border-radius: 6px;
  overflow: auto;
}

.jk-sap-position-table {
  border-collapse: collapse;
  color: #17202a;
  font-size: 0.78rem;
  min-width: 1180px;
  width: 100%;
}

.jk-sap-position-table th {
  background: linear-gradient(180deg, #dce6f1, #c7d3df);
  border: 1px solid #aeb9c6;
  color: #12344d;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 7px 8px;
  position: sticky;
  text-align: left;
  top: 0;
  white-space: nowrap;
  z-index: 1;
}

.jk-sap-position-table td {
  background: #fff;
  border: 1px solid #c8d0d8;
  padding: 7px 8px;
  vertical-align: top;
}

.jk-sap-position-table tbody tr:nth-child(even) td {
  background: #f7f9fb;
}

.jk-sap-position-table tbody tr.is-open td {
  background: #fffdf0;
}

.jk-sap-position-table tbody tr:hover td {
  background: #e8f2ff;
}

.jk-document-table-wrap.jk-sap-table-wrap {
  overflow-x: visible;
}

.jk-document-table.jk-sap-position-table {
  min-width: 0;
  table-layout: fixed;
}

.jk-document-table.jk-sap-position-table th,
.jk-document-table.jk-sap-position-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.jk-sap-description {
  line-height: 1.32;
  min-width: 330px;
}

.jk-sap-status {
  background: #eef2f7;
  border: 1px solid #c7d0da;
  border-radius: 3px;
  display: inline-flex;
  font-weight: 850;
  padding: 2px 6px;
  white-space: nowrap;
}

.is-open .jk-sap-status {
  background: #fff4ba;
  border-color: #d1b85d;
  color: #4b3b00;
}

.jk-sap-chain-chip {
  background: #edf7ff;
  border: 1px solid #adcce7;
  border-radius: 3px;
  color: #12344d;
  display: block;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 4px;
  padding: 4px 6px;
  white-space: nowrap;
}

a.jk-sap-chain-chip {
  text-decoration: none;
}

a.jk-sap-chain-chip:hover {
  background: #dbeeff;
  border-color: #7fb0da;
}

.jk-sap-chain-chip--candidate {
  background: #fff7db;
  border-color: #d5bd70;
}

.jk-sap-muted {
  color: #7b8794;
}

.jk-sap-position-table small {
  color: #465363;
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 3px;
}

.jk-document-position-list {
  display: grid;
  gap: 12px;
}

.jk-document-position {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  padding: 14px;
}

.jk-document-position-main {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.jk-document-position h3,
.jk-document-position h4,
.jk-document-position p {
  margin: 0;
}

.jk-document-position h3 {
  color: var(--jk-text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.jk-document-position p {
  color: var(--jk-text-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 4px;
}

.jk-document-position dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.jk-document-position dl div {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
}

.jk-document-position dt {
  color: var(--jk-text-muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.jk-document-position dd {
  color: var(--jk-text);
  font-size: 0.88rem;
  font-weight: 850;
  margin: 3px 0 0;
}

.jk-document-chain-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.jk-document-chain-grid > div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
}

.jk-document-chain-grid h4 {
  color: var(--jk-text);
  font-size: 0.86rem;
}

.jk-document-chain-grid p {
  color: var(--jk-text-soft);
  font-size: 0.84rem;
}

.jk-exec-section-head {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.jk-exec-section-head h2 {
  color: var(--jk-text);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.jk-exec-section-note {
  color: var(--jk-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 420px;
  text-align: right;
}

.jk-exec-today,
.jk-exec-stats {
  margin-top: 22px;
}

.jk-finance-control-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 14px 0;
}

.jk-finance-dashboard .jk-cockpit-tabs,
.jk-finance-dashboard .jk-finance-path-panel,
.jk-finance-control-card {
  background: #f8fafc;
  border-color: #c9d3df;
  color: #17202a;
}

.jk-finance-dashboard .jk-cockpit-tabs {
  box-shadow: 0 10px 24px rgba(8, 14, 23, 0.16);
}

.jk-finance-dashboard .jk-cockpit-tabs a {
  color: #263445;
}

.jk-finance-dashboard .jk-cockpit-tabs a:hover {
  background: #e9f2fb;
}

.jk-finance-dashboard .jk-cockpit-tabs a.is-active {
  background: #dbeafe;
  color: #0f3b63;
}

.jk-finance-search {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #c9d3df;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  margin: 0 0 14px;
  padding: 12px;
}

.jk-finance-search label {
  display: grid;
  gap: 6px;
}

.jk-finance-search label span {
  color: #536170;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-finance-search input {
  background: #fff;
  border: 1px solid #b8c4d1;
  border-radius: 6px;
  color: #17202a;
  font: inherit;
  min-height: 42px;
  padding: 0 12px;
}

.jk-finance-search input:focus {
  border-color: #4f8cc9;
  box-shadow: 0 0 0 3px rgba(79, 140, 201, 0.16);
  outline: 0;
}

.jk-finance-messages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.jk-finance-control-card,
.jk-finance-action-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

a.jk-finance-control-card {
  text-decoration: none;
}

.jk-finance-control-card.is-active {
  box-shadow: 0 0 0 2px rgba(15, 59, 99, 0.22);
}

.jk-finance-action-card {
  background: #f6f7fb;
  border: 1px solid #c9d3df;
  border-radius: 8px;
}

.jk-finance-action-card span,
.jk-finance-docnums {
  color: #536170;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-finance-action-card strong {
  color: #17202a;
  font-size: 1.35rem;
  line-height: 1;
}

.jk-finance-action-card .jk-btn {
  min-height: 40px;
}

.jk-finance-docnums {
  background: #fff7e6;
  border: 1px solid #f2d28d;
  border-radius: 6px;
  color: #6f4b00;
  letter-spacing: 0;
  line-height: 1.35;
  padding: 8px;
  text-transform: none;
}

.jk-finance-control-card small,
.jk-finance-path-panel small,
.jk-finance-document-table small {
  color: #536170;
  font-size: 0.82rem;
}

.jk-finance-control-card span {
  color: #536170;
}

.jk-finance-control-card strong {
  color: #17202a;
}

.jk-finance-control-card--warning {
  background: #fffaf0;
  border-color: #f1c46b;
}

.jk-finance-control-card--info {
  background: #eef7ff;
  border-color: #9bc9f0;
}

.jk-finance-control-card--total {
  background: #eefaf4;
  border-color: #95d8b7;
}

.jk-finance-path-panel {
  background: #f8fafc;
  border-color: #c9d3df;
  margin: 12px 0 10px;
  padding: 14px;
}

.jk-finance-path-panel div {
  display: grid;
  gap: 6px;
}

.jk-finance-path-panel strong {
  color: #17202a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.jk-finance-info-strip {
  align-items: start;
  background: #fff7e6;
  border: 1px solid #f2d28d;
  border-radius: 8px;
  color: #5b3d00;
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.jk-finance-info-strip strong {
  color: #3f2b00;
  font-size: 0.92rem;
}

.jk-finance-info-strip span {
  font-size: 0.86rem;
  line-height: 1.35;
}

.jk-finance-status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 8px;
}

.jk-finance-status.is-ok {
  background: #dcfce7;
  color: #166534;
}

.jk-finance-status.is-open {
  background: #fff3c4;
  color: #704500;
}

.jk-finance-document-table {
  color: #17202a;
  font-size: 0.82rem;
  min-width: 1120px;
}

.jk-finance-document-table th,
.jk-finance-document-table td,
.jk-finance-document-table a {
  color: #17202a;
}

.jk-finance-open-document {
  appearance: none;
  background: transparent;
  border: 0;
  color: #0f3b63;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 2px;
  padding: 0;
  text-align: left;
}

.jk-finance-open-document span {
  color: #536170;
  font-size: 0.72rem;
  font-weight: 850;
}

.jk-finance-open-document strong {
  color: #0f3b63;
  font-size: 0.95rem;
  line-height: 1.1;
}

.jk-finance-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}

.jk-finance-chain span {
  background: #e8f2ff;
  border: 1px solid #b7d4f2;
  border-radius: 999px;
  color: #12344d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 7px;
}

.jk-finance-muted {
  color: #6b7785;
}

.jk-finance-document-table tr.is-warning td {
  background: #fff9ec;
}

.jk-finance-document-table td {
  line-height: 1.25;
}

.jk-finance-document-table td:nth-child(1) {
  min-width: 150px;
}

.jk-finance-document-table td:nth-child(2) {
  min-width: 240px;
}

.jk-finance-document-table td:nth-child(4),
.jk-finance-document-table td:nth-child(5),
.jk-finance-document-table td:nth-child(6) {
  text-align: right;
}

.jk-finance-document-table td:nth-child(7),
.jk-finance-document-table td:nth-child(8) {
  text-align: left;
}

.jk-finance-document-table tbody tr {
  cursor: pointer;
}

.jk-finance-document-table tbody tr:hover td {
  background: #e9f2fb;
}

.jk-finance-modal[hidden] {
  display: none;
}

.jk-modal-open {
  overflow: hidden;
}

.jk-finance-modal {
  inset: 0;
  position: fixed;
  z-index: 120;
}

.jk-finance-modal-backdrop {
  background: rgba(8, 14, 23, 0.72);
  inset: 0;
  position: absolute;
}

.jk-finance-modal-panel {
  background: #f8fafc;
  border: 1px solid #c9d3df;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  inset: 4vh 4vw;
  overflow: hidden;
  position: absolute;
}

.jk-finance-modal-panel header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d6dde6;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.jk-finance-modal-panel header strong {
  color: #17202a;
  font-size: 1rem;
}

.jk-finance-modal-panel header div {
  display: flex;
  gap: 8px;
}

.jk-finance-modal-panel iframe {
  background: #fff;
  border: 0;
  height: 100%;
  width: 100%;
}

.jk-finance-modal-missing {
  align-content: center;
  background: #fff;
  color: #17202a;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.jk-finance-modal-missing[hidden] {
  display: none;
}

.jk-finance-modal-missing strong {
  font-size: 1.25rem;
}

.jk-finance-modal-missing span {
  color: #536170;
  max-width: 520px;
}

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

.jk-exec-task,
.jk-exec-chart,
.jk-exec-month-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
}

.jk-exec-task {
  display: grid;
  gap: 9px;
  min-height: 146px;
  padding: 14px;
  text-decoration: none;
}

a.jk-exec-task:hover {
  background: rgba(255, 255, 255, 0.07);
}

.jk-exec-task-head,
.jk-exec-month-target {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.jk-exec-task-head span,
.jk-exec-month-card span {
  color: var(--jk-text-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-exec-task-head strong {
  color: var(--jk-text);
  font-size: 1.05rem;
}

.jk-exec-task h3 {
  color: var(--jk-text);
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.jk-exec-task p {
  color: var(--jk-text-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.jk-exec-task > small {
  color: var(--jk-text-muted);
  font-size: 0.8rem;
}

.jk-exec-progress {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.jk-exec-progress span {
  background: linear-gradient(90deg, #31c48d, #57b5ff);
  display: block;
  height: 100%;
}

.jk-exec-progress--compact {
  height: 7px;
}

.jk-exec-today-strip,
.jk-exec-month-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.jk-exec-today-metric {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.jk-exec-today-metric span,
.jk-exec-today-metric small {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
}

.jk-exec-today-metric strong {
  color: var(--jk-text);
  font-size: 1.55rem;
  line-height: 1;
}

.jk-exec-chart-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-exec-chart {
  min-height: 280px;
  padding: 14px;
}

.jk-exec-chart-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.jk-exec-chart-head h3 {
  color: var(--jk-text);
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.jk-exec-chart-head span,
.jk-exec-chart-head small {
  color: var(--jk-text-muted);
  font-size: 0.84rem;
}

.jk-exec-bars {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  height: 190px;
  margin-top: 18px;
}

.jk-exec-bar-month {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-rows: 1fr auto auto;
  min-width: 0;
}

.jk-exec-bar-pair {
  align-items: end;
  align-self: stretch;
  display: flex;
  gap: 3px;
  height: 100%;
  justify-self: center;
  max-width: 54px;
  width: 100%;
}

.jk-exec-bar {
  align-items: center;
  border-radius: 5px 5px 2px 2px;
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  min-height: 4px;
  overflow: hidden;
}

.jk-exec-bar-slot {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.jk-exec-bar-slot .jk-exec-bar {
  flex: 0 0 auto;
}

.jk-workday-chart-stack {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.jk-inline-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--jk-line);
  border-radius: 8px;
  color: var(--jk-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.jk-inline-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.jk-workday-chart {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 10px;
  padding: 16px;
}

.jk-workday-rows {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.jk-workday-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.jk-exec-stats--daily:not(.is-expanded) .jk-workday-row.is-hidden-by-default {
  display: none;
}

.jk-day-table-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.jk-day-table-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--jk-line);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.jk-day-table-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.jk-day-table-head h3 {
  color: var(--jk-text);
  font-size: 1rem;
  line-height: 1.15;
  margin: 0 0 4px;
}

.jk-day-table-head span {
  color: var(--jk-text-muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.jk-day-table {
  border-collapse: collapse;
  width: 100%;
}

.jk-day-table th,
.jk-day-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--jk-text);
  font-size: clamp(0.74rem, 2.8vw, 0.84rem);
  padding: 8px 6px;
  text-align: right;
  white-space: nowrap;
}

.jk-day-table th:first-child,
.jk-day-table td:first-child {
  color: var(--jk-text-muted);
  font-weight: 900;
  text-align: left;
}

.jk-day-table th {
  color: var(--jk-text-muted);
  font-size: clamp(0.58rem, 2.4vw, 0.68rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-day-table td:nth-child(3) {
  color: #9ee6c2;
  font-weight: 900;
}

.jk-exec-stats--daily:not(.is-expanded) .jk-day-table tr.is-hidden-by-default {
  display: none;
}

@media (max-width: 720px) {
  .jk-day-table-grid {
    grid-template-columns: 1fr;
  }

  .jk-day-table-card {
    padding: 12px;
  }

  .jk-day-table th,
  .jk-day-table td {
    padding: 7px 4px;
  }
}

.jk-month-chart {
  cursor: pointer;
}

.jk-month-chart:focus-visible {
  outline: 2px solid rgba(87, 181, 255, 0.9);
  outline-offset: 3px;
}

.jk-month-chart:not(.is-expanded) .jk-exec-bar-month[data-month-row].is-hidden-by-default {
  display: none;
}

.jk-month-chart:not(.is-expanded) .jk-exec-bars {
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jk-exec-chart-grid--months .jk-month-chart.is-expanded {
  grid-column: 1 / -1;
}

.jk-exec-chart-grid--months .jk-month-chart.is-expanded .jk-exec-bars {
  gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.jk-workday-row > strong {
  align-self: center;
  color: var(--jk-text);
  font-size: 0.9rem;
  font-weight: 900;
}

.jk-workday-pair {
  display: grid;
  gap: 8px;
}

.jk-workday-line {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr) 90px;
}

.jk-workday-line > span {
  color: var(--jk-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jk-workday-line > b {
  color: var(--jk-text);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.jk-workday-track {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  height: 12px;
  min-width: 0;
  overflow: hidden;
}

.jk-workday-fill {
  display: block;
  height: 100%;
}

.jk-workday-fill--prev {
  background: rgba(148, 163, 184, 0.52);
}

.jk-workday-fill--current {
  background: linear-gradient(90deg, #57b5ff, #31c48d);
}

.jk-exec-bar--prev {
  background: rgba(148, 163, 184, 0.42);
}

.jk-exec-bar--current {
  background: linear-gradient(180deg, #57b5ff, #31c48d);
}

.jk-exec-bar-month small {
  color: var(--jk-text-muted);
  font-size: 0.68rem;
  text-align: center;
}

.jk-month-values {
  display: grid;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.jk-month-values div {
  align-items: baseline;
  display: grid;
  gap: 3px;
  grid-template-columns: 20px minmax(0, 1fr);
}

.jk-month-values dt,
.jk-month-values dd {
  margin: 0;
}

.jk-month-values dt {
  color: var(--jk-text-muted);
  font-size: 0.58rem;
  font-weight: 900;
}

.jk-month-values dd {
  color: var(--jk-text);
  font-size: 0.62rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jk-month-values div:nth-child(2) dd {
  color: #9ee6c2;
}

.jk-exec-month-card {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.jk-exec-month-card strong {
  color: var(--jk-text);
  font-size: 1.6rem;
  line-height: 1;
}

.jk-exec-month-card small,
.jk-exec-month-target em {
  color: var(--jk-text-muted);
  font-size: 0.82rem;
  font-style: normal;
}

.jk-kanban-work-grid--compact .jk-kanban-work-card {
  min-height: 150px;
  border-radius: 8px;
  padding: 16px;
}

.jk-kanban-work-grid--compact .jk-kanban-work-card > strong {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

@media (max-width: 1100px) {
  .jk-exec-menu,
  .jk-home-menu,
  .jk-start-quick-grid,
  .jk-dashboard-head-actions,
  .jk-home-control-grid,
  .jk-finance-control-grid,
  .jk-finance-search,
  .jk-finance-kpi-row,
  .jk-exec-task-grid,
  .jk-exec-chart-grid,
  .jk-exec-today-strip,
  .jk-exec-month-grid,
  .jk-cockpit-card-grid,
  .jk-cockpit-split,
  .jk-document-chain-grid,
  .jk-document-position-main,
  .jk-sap-form-grid,
  .jk-management-group summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jk-management-document-table {
    min-width: 0;
  }

  .jk-management-document-table-wrap {
    overflow: visible;
  }

  .jk-management-document-table thead {
    display: none;
  }

  .jk-management-document-table,
  .jk-management-document-table tbody,
  .jk-management-document-table tr,
  .jk-management-document-table td {
    display: block;
    width: 100%;
  }

  .jk-management-document-table tr {
    background: #fff;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    margin: 8px;
    overflow: hidden;
  }

  .jk-management-document-table td {
    align-items: baseline;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e1e6eb;
    display: grid;
    gap: 10px;
    grid-template-columns: 96px minmax(0, 1fr);
    min-width: 0;
    padding: 8px 10px;
    text-align: left !important;
    white-space: normal;
  }

  .jk-management-document-table td::before {
    color: #465363;
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .jk-management-document-table td:last-child {
    border-bottom: 0;
  }

  .jk-management-document-table td:nth-child(2) {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .jk-workmode-structure {
    grid-template-columns: 1fr;
  }

  .jk-exec-top,
  .jk-exec-menu,
  .jk-home-menu,
  .jk-start-quick-grid,
  .jk-dashboard-head-actions,
  .jk-home-control-grid,
  .jk-finance-control-grid,
  .jk-finance-search,
  .jk-finance-kpi-row,
  .jk-command-grid--secondary,
  .jk-exec-task-grid,
  .jk-exec-chart-grid,
  .jk-exec-today-strip,
  .jk-exec-month-grid,
  .jk-chat-layout,
  .jk-cockpit-card-grid,
  .jk-cockpit-split,
  .jk-cockpit-table div,
  .jk-document-chain-grid,
  .jk-document-position-main,
  .jk-document-position dl,
  .jk-sap-form-grid,
  .jk-management-group summary,
  .jk-management-group summary dl {
    grid-template-columns: 1fr;
  }

  .jk-sap-table-wrap {
    overflow: visible;
  }

  .jk-sap-position-table {
    min-width: 0;
  }

  .jk-sap-position-table thead {
    display: none;
  }

  .jk-sap-position-table,
  .jk-sap-position-table tbody,
  .jk-sap-position-table tr,
  .jk-sap-position-table td {
    display: block;
    width: 100%;
  }

  .jk-sap-position-table tr {
    background: #fff;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    margin: 8px;
    overflow: hidden;
  }

  .jk-sap-position-table td {
    align-items: baseline;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e1e6eb;
    display: grid;
    gap: 10px;
    grid-template-columns: 96px minmax(0, 1fr);
    min-width: 0;
    padding: 8px 10px;
    text-align: left !important;
    white-space: normal;
  }

  .jk-sap-position-table td::before {
    color: #465363;
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .jk-sap-position-table td:last-child {
    border-bottom: 0;
  }

  .jk-management-document-table td:nth-child(2) {
    min-width: 0;
  }

  .jk-sap-description {
    min-width: 0;
  }

  .jk-sap-chain-chip {
    white-space: normal;
  }

  .jk-document-flow-body {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .jk-document-flow-node {
    flex: none;
  }

  .jk-document-flow-edge {
    height: 18px;
    justify-self: start;
    margin-left: 20px;
    width: 2px;
  }

  .jk-document-flow-edge::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #8aa0b5;
    bottom: -1px;
    left: -4px;
    right: auto;
    top: auto;
  }

  .jk-management-group summary {
    gap: 10px;
  }

  .jk-management-group summary::before {
    margin-bottom: -14px;
  }

  .jk-management-group summary dl {
    padding-left: 24px;
  }

  .jk-cockpit-table b {
    text-align: left;
  }

  .jk-exec-menu-link {
    border-left: 0;
    border-top: 1px solid var(--jk-line);
  }

  .jk-exec-menu-link:first-child {
    border-top: 0;
  }

  .jk-exec-section-head {
    align-items: start;
    flex-direction: column;
  }

  .jk-exec-section-note {
    max-width: none;
    text-align: left;
  }
}
