:root {
  --navy: #07224f;
  --navy-2: #0b3a7a;
  --blue: #1c74f2;
  --sky: #3ea0ff;
  --cyan: #22c7ff;
  --gold: #f0b429;
  --teal: #0d9488;
  --coral: #f97316;
  --violet: #7c3aed;
  --rose: #e11d48;
  --bg: #eef3fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d7e3f4;
  --side: 240px;
  --shadow: 0 14px 40px rgba(7, 34, 79, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body:has(.login-wrap) { height: auto; min-height: 100%; overflow: auto; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(34, 199, 255, .18), transparent 50%),
    radial-gradient(900px 420px at -10% 0%, rgba(28, 116, 242, .16), transparent 46%),
    var(--bg);
  color: var(--ink);
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

.app, .shell {
  display: flex;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}
.nav { padding: 10px 12px 28px; }
.nav-label {
  display: none;
}
.nav-section {
  margin: 0 0 6px;
}
.nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #d7e6ff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.nav-parent .nav-ico,
.nav > a .nav-ico,
.nav-children a .nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  background: rgba(255,255,255,.08);
  color: #c8e9ff;
  font-size: 14px;
}
.nav-parent .nav-ico i,
.nav > a .nav-ico i,
.nav-children a .nav-ico i { width: auto; color: inherit; }
.nav-caret {
  margin-left: auto;
  font-size: 12px;
  color: #7ea6dc;
  transition: transform .18s ease;
}
.nav-section.is-open > .nav-parent .nav-caret { transform: rotate(180deg); }
.nav-parent:hover,
.nav-section.is-open > .nav-parent {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-section.has-active > .nav-parent {
  background: rgba(159, 212, 255, .16);
  color: #fff;
}
.nav-children {
  display: none;
  padding: 2px 0 8px 12px;
  margin: 0 4px 4px 14px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.nav-section.is-open > .nav-children { display: block; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  color: #d7e6ff; padding: 8px 12px; margin: 0;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
}
.nav > a {
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 12px;
}
.nav a i { width: 18px; color: #c8e9ff; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a:hover i { color: #fff; }
.nav a.active {
  background: linear-gradient(90deg, #9fd4ff, #d7f4ff);
  color: #08305c;
  box-shadow: 0 6px 16px rgba(80, 170, 255, .28);
}
.nav a.active i,
.nav a.active .nav-ico { color: #0b4a8a; background: rgba(8, 48, 92, .08); }
.nav-children a {
  padding: 8px 10px;
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(215, 230, 255, .86);
}
.nav-sub {
  display: none;
  padding: 2px 0 8px;
  margin: 0 0 6px 18px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.nav-sub.is-open { display: block; }
.nav-sub a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  margin: 1px 0 1px 8px;
  border-radius: 8px;
  color: rgba(215, 230, 255, .78);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  background: transparent;
  box-shadow: none;
}
.nav-sub a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}
.nav-sub a.active {
  background: rgba(159, 212, 255, .22);
  color: #fff;
  box-shadow: none;
}
.nav-sub a.active i { color: #fff; }
.nav-sub-n {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #7ec8ff;
  line-height: 1.35;
}
.nav-sub a.active .nav-sub-n { color: #d7f4ff; }
.nav-sub a.done .nav-sub-n { color: #7ddea8; font-size: 10px; }
.nav-sub a.done:not(.active) { color: rgba(215, 230, 255, .92); }
.nav-sub-phase {
  margin: 10px 8px 4px 18px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(126, 168, 220, .85);
}

.nav-sub-hint {
  padding: 6px 10px 2px 18px;
  font-size: 11px;
  color: rgba(255,255,255,.42);
  line-height: 1.35;
}
.merch-step-pane { display: none !important; }
.merch-step-pane.is-active { display: block !important; }
.merch-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}
.merch-step-nav .step-meta {
  font-size: 13px;
  font-weight: 700;
  color: #5b7aa8;
}
.merch-step-nav .step-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.brand .name { font-family: "Playfair Display", "Libre Baskerville", Georgia, serif; font-size: 20px; font-weight: 700; }
.brand .name small { display: block; color: #9ec4ff; font-size: 11px; font-weight: 600; font-family: "Plus Jakarta Sans", Outfit, sans-serif; }
.flash { background: #d1fae5; color: #065f46; padding: 10px 12px; border-radius: 12px; margin: 0 24px 8px; font-weight: 700; border: 1px solid #a7f3d0; }

.toast-stack {
  position: fixed; top: 18px; right: 18px; z-index: 200000;
  display: flex; flex-direction: column; gap: 10px;
  width: min(400px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border-radius: 18px; padding: 16px 16px 18px 16px;
  box-shadow: 0 22px 48px rgba(7, 34, 79, .2);
  border: 1px solid #e8eef7;
  animation: toastIn .32s ease;
}
.toast.updated {
  background: linear-gradient(180deg, #f6faff 0%, #fff 55%);
  border-color: #d7e6ff;
  box-shadow: 0 22px 48px rgba(28, 116, 242, .18);
}
.toast.created { border-color: #c8f0d8; }
.toast.deleted { border-color: #ffd6dc; }
.toast.err { border-color: #fecaca; }
.toast-ico {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; flex-shrink: 0; font-size: 20px;
}
.toast.saved .toast-ico, .toast.created .toast-ico { background: #eefaf4; color: #16a34a; }
.toast.updated .toast-ico {
  background: linear-gradient(135deg, #1c74f2, #22c7ff);
  color: #fff;
  box-shadow: 0 8px 16px rgba(28, 116, 242, .28);
}
.toast.deleted .toast-ico { background: #fff1f2; color: #e11d48; }
.toast.err .toast-ico { background: #fff1f2; color: #e11d48; }
.toast-body { flex: 1; min-width: 0; padding-top: 2px; }
.toast-body strong { display: block; font-size: 14px; font-weight: 800; color: #0b3a7a; letter-spacing: .01em; }
.toast.updated .toast-body strong { color: #1556c8; }
.toast-body span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #64748b; line-height: 1.4; }
.toast-x {
  border: 0; background: #f4f7fb; color: #94a3b8; cursor: pointer;
  padding: 6px; border-radius: 10px; line-height: 1; width: 28px; height: 28px;
}
.toast-x:hover { background: #e8eef7; color: #334155; }
.toast-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  transform-origin: left center;
  animation: toastBar 4.8s linear forwards;
}
.toast.updated .toast-bar { background: linear-gradient(90deg, #1c74f2, #22c7ff); }
.toast.created .toast-bar, .toast.saved .toast-bar { background: linear-gradient(90deg, #16a34a, #4ade80); }
.toast.deleted .toast-bar, .toast.err .toast-bar { background: linear-gradient(90deg, #e11d48, #fb7185); }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.dx-modal {
  display: none; position: fixed; inset: 0; z-index: 200010;
  align-items: center; justify-content: center; padding: 20px;
}
.dx-modal.open { display: flex; }
.dx-lock { overflow: hidden; }
.dx-modal-backdrop {
  position: absolute; inset: 0; background: rgba(7, 34, 79, .52);
  backdrop-filter: blur(6px);
}
.dx-modal-card {
  position: relative; width: min(420px, 100%);
  background: #fff; border-radius: 22px; padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(7, 34, 79, .28);
  text-align: center;
  animation: toastIn .25s ease;
}
.dx-modal-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center;
  background: #fff1f2; color: #e11d48; font-size: 22px;
}
.dx-modal-card h3 { margin: 0 0 8px; font-size: 20px; color: #0b3a7a; }
.dx-modal-card p { margin: 0 0 20px; color: #64748b; font-size: 14px; font-weight: 500; line-height: 1.5; }
.dx-modal-actions { display: flex; gap: 10px; justify-content: center; }
.dx-modal-actions .btn { min-width: 120px; justify-content: center; }

.dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13px; }
.dl dt { color: #64748b; font-weight: 700; }
.dl dd { margin: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.actions { display: inline-flex; gap: 4px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
input.search { min-width: 240px; border-radius: 999px; }
.userchip small { display: block; color: #64748b; font-size: 11px; }
.topbar h1 { margin: 0; font-size: 22px; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1c74f2, #22c7ff); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.sidebar {
  width: var(--side);
  flex-shrink: 0;
  background: linear-gradient(180deg, #041633 0%, #0a2d66 55%, #0d3d86 100%);
  color: #fff;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-width: none;
  box-shadow: 8px 0 30px rgba(4, 22, 51, .18);
}
.sidebar::-webkit-scrollbar { width: 0; height: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img,
.brand .brand-mark {
  width: 52px; height: 52px; object-fit: contain;
  background: #fff; border-radius: 14px; padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.brand .name { font-family: "Playfair Display", "Libre Baskerville", Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1.15; color: #fff; }
.brand .name small { display: block; color: #9ec4ff; font-size: 11px; font-weight: 600; font-family: "Plus Jakarta Sans", Outfit, sans-serif; margin-top: 2px; }
.brand h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px; margin: 0; letter-spacing: .02em;
}
.brand small { display: block; color: #9ec4ff; font-size: 11px; font-weight: 600; }
.nav-group { padding: 12px 10px 4px; }
.nav-group h3 {
  margin: 0 10px 6px; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: #7ea6dc; font-weight: 700;
}
.nav-group a {
  display: flex; align-items: center; gap: 10px;
  color: #d7e6ff; padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
}
.nav-group a i { width: 18px; color: #7ec8ff; }
.nav-group a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-group a.active {
  background: linear-gradient(90deg, #1c74f2, #22c7ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(28, 116, 242, .35);
}
.nav-group a.active i { color: #fff; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.page-kicker { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-kicker + h2, .topbar h2 { margin: 2px 0 0; font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.search {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; display: flex; gap: 8px; align-items: center; min-width: 240px;
}
.search input { border: 0; outline: 0; width: 100%; font: inherit; }
.userchip {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); padding: 6px 10px 6px 6px; border-radius: 999px;
}
.ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #1c74f2, #22c7ff);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.content, .main > .hero, .main > .stats, .main > .grid-2, .main > .card, .main > .toolbar, .main > .show-grid, .main > .timeline, .main > .grid-3 { margin-left: 24px; margin-right: 24px; }
.main > .card, .main > .hero, .main > .stats, .main > .grid-2, .main > .toolbar { margin-top: 14px; }
.content { padding: 22px 24px 64px; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; }

.hero {
  background: linear-gradient(120deg, #07224f 0%, #1554c0 48%, #1ea7e8 100%);
  color: #fff; border-radius: 22px; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  box-shadow: 0 18px 40px rgba(7, 34, 79, .22); margin-bottom: 18px; overflow: hidden;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hero h3 { margin: 0 0 6px; font-size: 24px; }
.hero p { margin: 0; opacity: .9; }
.hero img { width: 92px; background: #fff; border-radius: 16px; padding: 6px; position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8); position: relative; overflow: hidden;
}
.stat i {
  position: absolute; right: 10px; top: 10px; font-size: 22px; opacity: .9;
}
.stat .lbl { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .num { font-size: 26px; font-weight: 800; margin-top: 6px; }
.stat.c1 { background: linear-gradient(180deg, #fff, #eaf3ff); }
.stat.c1 i, .stat.c1 .num { color: #1c74f2; }
.stat.c2 { background: linear-gradient(180deg, #fff, #e7fbff); }
.stat.c2 i, .stat.c2 .num { color: #0891b2; }
.stat.c3 { background: linear-gradient(180deg, #fff, #fff4e8); }
.stat.c3 i, .stat.c3 .num { color: #ea580c; }
.stat.c4 { background: linear-gradient(180deg, #fff, #eefcf6); }
.stat.c4 i, .stat.c4 .num { color: #0d9488; }
.stat.c5 { background: linear-gradient(180deg, #fff, #f4eeff); }
.stat.c5 i, .stat.c5 .num { color: #7c3aed; }

.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid #e8eef7; padding: 16px;
}
.card h4 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: flex-start; }
.toolbar-filters { align-items: flex-start; }
.list-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}
.list-filters > input[type="hidden"] { display: none !important; }
.lf-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 0; }
.lf-item span {
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #7aa0d4;
  white-space: nowrap;
}
.lf-item input, .lf-item .select2-container, .lf-item .select2-container .select2-selection--single {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
}
.lf-item input {
  border: 1px solid #e2eaf4; background: #f7fbff;
  border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600;
  color: #1e293b;
}
.lf-item input:focus {
  outline: 0; background: #fff; border-color: #9ec4ff;
  box-shadow: 0 0 0 3px rgba(28, 116, 242, .12);
}
.lf-item .select2-container .select2-selection--single { height: 38px; }
.lf-item .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; }
.lf-actions {
  display: flex; align-items: flex-end; gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.list-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 6px 4px 14px; min-width: min(100%, 520px); flex: 1;
}
.list-search > i { color: #7aa0d4; font-size: 15px; }
.list-search input.search {
  border: 0; outline: 0; background: transparent; box-shadow: none;
  min-width: 0; flex: 1; padding: 8px 4px; border-radius: 0;
  font: inherit; font-weight: 600; color: #1e293b;
}
.list-search .btn { padding: 7px 12px; border-radius: 999px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, #1556c8, #1ea0ea); color: #fff;
  padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 16px rgba(21, 86, 200, .25);
}
.btn.ghost { background: #fff; color: var(--navy-2); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: linear-gradient(90deg, #e11d48, #f97316); }
.btn.gold { background: linear-gradient(90deg, #d97706, #f0b429); }

table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #64748b; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
tr:hover td { background: #f7fbff; }
tr:hover td.actions { background: #f7fbff; }

.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
}
.badge.ok { background: #eefaf4; color: #6aa88a; }
.badge.warn { background: #fff6e8; color: #c9a06a; }
.badge.info { background: #eef4ff; color: #7aa0d4; }
.badge.transit { background: #eef9f7; color: #6bb5a8; }
.badge.bad { background: #fff1f2; color: #d4a0a8; }
.badge.muted { background: #f4f6f8; color: #94a3b8; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; font: inherit; background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
.alert { background: #d1fae5; color: #065f46; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-weight: 700; }
.alert.err { background: #fee2e2; color: #991b1b; }

.timeline { display: flex; flex-wrap: wrap; gap: 6px; }
.step {
  font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 999px;
  background: #eef2ff; color: #3730a3;
}
.step.on { background: linear-gradient(90deg, #1c74f2, #22c7ff); color: #fff; }
.step.done { background: #d1fae5; color: #047857; }

.progress { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #1c74f2, #22c7ff); }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(135deg, #041633, #0b3a7a 45%, #1ea7e8);
}
.login-card {
  width: min(920px, 100%); background: #fff; border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.login-art {
  background: linear-gradient(160deg, #07224f, #1c74f2 70%, #22c7ff);
  color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-art img { width: 180px; background: #fff; border-radius: 18px; padding: 10px; }
.login-form { padding: 40px 36px; }
.login-form h2 { margin: 0 0 6px; font-family: "Playfair Display", serif; }
.hint { background: #eef6ff; border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #1e3a8a; margin: 12px 0 18px; }

.show-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #e8eef7; }
.kv b { color: #64748b; font-weight: 700; }

.track { display: flex; gap: 0; overflow: auto; padding: 8px 0 16px; }
.track .node { min-width: 110px; text-align: center; position: relative; }
.track .node::after {
  content: ""; position: absolute; top: 14px; left: 50%; width: 100%; height: 3px;
  background: #dbe7f8; z-index: 0;
}
.track .node:last-child::after { display: none; }
.dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px; position: relative; z-index: 1;
  background: #dbe7f8; color: #1e3a8a; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.node.on .dot { background: linear-gradient(135deg, #1c74f2, #22c7ff); color: #fff; }
.node.done .dot { background: #10b981; color: #fff; }
.node small { font-size: 11px; font-weight: 700; color: #475569; }

/* Shipment tracking board */
.tboard { display: grid; gap: 16px; }
.tboard-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.tboard-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(7, 34, 79, .04);
}
.tboard-kpi-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #eef4ff; color: #1c74f2; font-size: 18px; flex-shrink: 0;
}
.tboard-kpi small {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #7aa0d4;
}
.tboard-kpi strong { display: block; margin-top: 2px; font-size: 22px; color: #0b3a7a; line-height: 1.1; }
.tboard-kpi.is-docs .tboard-kpi-ico { background: #f3eefc; color: #7c5cbf; }
.tboard-kpi.is-transit .tboard-kpi-ico { background: #eef9f7; color: #0d9488; }
.tboard-kpi.is-arrived .tboard-kpi-ico { background: #fff6e8; color: #c9a06a; }
.tboard-kpi.is-done .tboard-kpi-ico { background: #eefaf4; color: #0f766e; }

.tboard-legend {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px !important;
  background:
    linear-gradient(135deg, rgba(28, 116, 242, .06), transparent 42%),
    #fff;
  overflow: hidden;
  position: relative;
}
.tboard-legend::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 199, 255, .18), transparent 70%);
  pointer-events: none;
}
.tboard-kicker {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #1c74f2; margin-bottom: 6px;
}
.tboard-legend-copy h4 { margin: 0 0 4px; font-size: 16px; color: #0b3a7a; }
.tboard-legend-copy p { margin: 0; color: #64748b; font-size: 13px; font-weight: 600; line-height: 1.45; max-width: 42ch; }
.tboard-legend-flow {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
.tboard-legend-flow li { margin: 0; padding: 0; }
.tboard-legend-flow a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: #f7fbff; border: 1px solid #e2eaf4;
  color: #0b3a7a; font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tboard-legend-flow a i { color: #1c74f2; }
.tboard-legend-flow a:hover {
  background: #eef4ff;
  border-color: #1c74f2;
  color: #07224f;
  box-shadow: 0 4px 12px rgba(28, 116, 242, .12);
}
.tboard-legend-flow a.is-on {
  background: linear-gradient(90deg, #9fd4ff, #d7f4ff);
  border-color: #9fd4ff;
  color: #08305c;
}
.tboard-legend-flow a.is-on i { color: #0b4a8a; }
.tboard-legend-flow li:not(:last-child)::after {
  content: none;
}

.tboard-list { display: grid; gap: 18px; }
.tcard { padding: 0 !important; overflow: visible; }
.tcard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 16px 8px;
}
.tcard-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tcard-title h3 { margin: 0; font-size: 16px; color: #0b3a7a; font-weight: 800; }
.tcard-title p { margin: 2px 0 0; color: #64748b; font-size: 12px; font-weight: 600; }
.tcard-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}
.tcard-pct {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d7e3f4;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(7, 34, 79, .04);
}
.tcard-pct strong {
  font-size: 12px;
  font-weight: 800;
  color: #1c74f2;
  line-height: 1;
}
.tcard-acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tcard-acts .ico {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #d7e3f4;
  border-radius: 10px;
  color: #1c74f2;
  box-shadow: 0 1px 2px rgba(7, 34, 79, .04);
}
.tcard-acts .ico:hover {
  background: #f7fbff;
  border-color: #1c74f2;
  color: #0b3a7a;
}
.tcard-acts .ico.edit { color: #0f766e; }
.tcard-acts .ico.edit:hover { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
.tcard-acts .ico.view { color: #2563eb; }
.tcard-acts .ico.view:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

.tcard-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 16px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  overflow: hidden;
  background: #fafcff;
}
.tcard-fact {
  padding: 8px 12px;
  border-right: 1px solid #eef2f7;
  min-width: 0;
}
.tcard-fact:last-child { border-right: 0; }
.tcard-fact i { display: block; color: #7aa0d4; font-size: 12px; margin-bottom: 2px; }
.tcard-fact small {
  display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8;
}
.tcard-fact strong {
  display: block; margin-top: 1px; font-size: 12px; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tcard-progress { padding: 8px 16px 4px; }
.tcard-progress-bar {
  height: 5px; border-radius: 99px; background: #e8eef7; overflow: hidden;
}
.tcard-progress-bar > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #1c74f2, #22c7ff);
  box-shadow: 0 0 12px rgba(28, 116, 242, .35);
  transition: width .35s ease;
}

.ttrack {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 6px 10px 12px;
  scrollbar-width: thin;
}
.tnode {
  flex: 1 0 84px;
  min-width: 84px;
  text-align: center;
  position: relative;
  padding: 0 2px;
}
.tnode::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 50%;
  height: 2px;
  background: #dbe7f8;
  z-index: 0;
}
.tnode::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  right: 0;
  height: 2px;
  background: #dbe7f8;
  z-index: 0;
}
.tnode:first-child::before { display: none; }
.tnode:last-child::after { display: none; }
.tnode.done::before,
.tnode.done::after,
.tnode.on::before { background: linear-gradient(90deg, #34d399, #22c7ff); }
.tnode-dot {
  width: 28px; height: 28px; border-radius: 50%;
  margin: 0 auto 6px; position: relative; z-index: 1;
  display: grid; place-items: center;
  background: #eef4ff; color: #7aa0d4;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d7e3f4;
  font-size: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tnode.done .tnode-dot {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  box-shadow: 0 6px 14px rgba(16, 185, 129, .28);
}
.tnode.on .tnode-dot {
  background: linear-gradient(135deg, #1c74f2, #22c7ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(28, 116, 242, .35);
  transform: scale(1.08);
  animation: tpulse 1.8s ease-in-out infinite;
}
.tnode small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: #64748b;
}
.tnode.done small { color: #0f766e; }
.tnode.on small { color: #1c74f2; font-weight: 800; }

@keyframes tpulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(28, 116, 242, .35); }
  50% { box-shadow: 0 8px 22px rgba(28, 116, 242, .55), 0 0 0 6px rgba(28, 116, 242, .12); }
}

.ttrack-inline {
  padding: 8px 12px 18px;
}
.tboard-empty-ico {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 18px; display: grid; place-items: center;
  background: #eef4ff; color: #1c74f2; font-size: 28px;
}
.tboard-empty h4 { margin: 0 0 6px; color: #0b3a7a; }
.tboard-empty p { margin: 0 0 16px; color: #64748b; font-weight: 600; }

@media (max-width: 1100px) {
  .tboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tcard-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tcard-fact:nth-child(3n) { border-right: 0; }
  .tcard-fact:nth-child(n+4) { border-top: 1px solid #eef2f7; }
}
@media (max-width: 800px) {
  .tboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tboard-legend { grid-template-columns: 1fr; }
  .tboard-legend-flow { justify-content: flex-start; }
  .tcard-head { grid-template-columns: 1fr; }
  .tcard-side { justify-content: flex-start; }
  .tcard-facts { grid-template-columns: 1fr 1fr; }
  .tcard-fact { border-right: 1px solid #eef2f7; }
  .tcard-fact:nth-child(2n) { border-right: 0; }
  .tcard-fact:nth-child(n+3) { border-top: 1px solid #eef2f7; }
}

.calc-box { background: linear-gradient(90deg, #0b3a7a, #1c74f2); color: #fff; border-radius: 14px; padding: 14px; display: flex; gap: 24px; }
.calc-box span { display: block; font-size: 11px; opacity: .85; }
.calc-box strong { font-size: 20px; }

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 14px 0; }
.kpi {
  background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: transform .15s, box-shadow .15s;
}
a.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7, 34, 79, .12);
}
.kpi i { position: absolute; right: 10px; top: 10px; font-size: 22px; }
.kpi .label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 6px; }
.kpi.b1 { background: linear-gradient(180deg, #fff, #eaf3ff); }
.kpi.b1 i, .kpi.b1 .value { color: #1c74f2; }
.kpi.b2 { background: linear-gradient(180deg, #fff, #e7fbff); }
.kpi.b2 i, .kpi.b2 .value { color: #0891b2; }
.kpi.b3 { background: linear-gradient(180deg, #fff, #fff4e8); }
.kpi.b3 i, .kpi.b3 .value { color: #ea580c; }
.kpi.b4 { background: linear-gradient(180deg, #fff, #eefcf6); }
.kpi.b4 i, .kpi.b4 .value { color: #0d9488; }
.kpi.b5 { background: linear-gradient(180deg, #fff, #f4eeff); }
.kpi.b5 i, .kpi.b5 .value { color: #7c3aed; }
.hero h2 { margin: 0 0 6px; font-size: 24px; }
.dash-hero { align-items: center; gap: 18px; overflow: visible; }
.dash-hero-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.dash-hero-lead {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  opacity: .88;
  line-height: 1.45;
}
.dash-pipe-card {
  margin: 0 0 16px;
  padding: 16px 18px;
  overflow: visible;
}
.dash-pipe-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.dash-pipe-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7aa0d4;
}
.dash-pipe-head strong {
  font-size: 15px;
  color: #0b3a7a;
}
.dash-pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
}
.dash-pipe li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  max-width: 100%;
}
.dash-pipe a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0b3a7a;
  background: #f4f8ff;
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.dash-pipe a span {
  display: inline;
  overflow: visible;
  white-space: nowrap;
}
.dash-pipe a i {
  font-size: 13px;
  color: #1c74f2;
  flex-shrink: 0;
}
.dash-pipe a:hover {
  background: #e8f1ff;
  border-color: #9ec4ff;
  color: #07224f;
}
.dash-pipe-sep {
  color: #94a3b8;
  font-size: 12px;
  margin: 0 2px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .dash-hero { flex-wrap: wrap; }
}

.title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title-row > div { min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.actions {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.actions form { margin: 0; display: inline-flex; flex-shrink: 0; }
th.col-actions, td.actions {
  width: 156px;
  min-width: 156px;
  max-width: 156px;
  white-space: nowrap;
  vertical-align: middle;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 2;
  box-shadow: none;
}
.ico {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #64748b;
  position: relative;
  cursor: pointer;
  flex: 0 0 34px;
  padding: 0;
  font: inherit;
  box-shadow: none;
  transition: background .15s ease, color .15s ease;
}
.ico i { font-size: 16px; pointer-events: none; line-height: 1; }
.ico:hover { transform: none; box-shadow: none; background: #f1f5f9; color: #0f172a; }
.ico.view { color: #2563eb; }
.ico.view:hover { background: #eff6ff; color: #1d4ed8; }
.ico.edit { color: #0f766e; }
.ico.edit:hover { background: #f0fdfa; color: #0f766e; }
.ico.del, .ico.danger { color: #e11d48; }
.ico.del:hover, .ico.danger:hover { background: #fff1f2; color: #be123c; }
.ico.back, .ico.cancel {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.ico.back:hover, .ico.cancel:hover { background: #f8fafc; color: #0f172a; }
.ico.add {
  background: #1c74f2;
  color: #fff;
  border: 0;
  box-shadow: none;
}
.ico.add:hover { background: #155fd6; color: #fff; transform: none; }
.ico.merch { color: #1c74f2; }
.ico.merch:hover { background: #eef4ff; color: #1556c8; }
.ico.quote { color: #7c3aed; }
.ico.quote:hover { background: #f3eefc; color: #6d28d9; }
.ico.sample { color: #0f766e; }
.ico.sample:hover { background: #eefaf7; color: #0f766e; }
.ico.prod { color: #b45309; }
.ico.prod:hover { background: #fff7ed; color: #9a3412; }
.ico.qc-done { color: #15803d; }
.ico.qc-done:hover { background: #f0fdf4; color: #166534; }
.ico.qc-sent { color: #2563eb; }
.ico.qc-sent:hover { background: #eff6ff; color: #1d4ed8; }
.ico.qc-send { color: #7c3aed; }
.ico.qc-send:hover { background: #f3eefc; color: #6d28d9; }
.ico.qc-wait { color: #94a3b8; }
.ico.qc-wait:hover { background: #f8fafc; color: #64748b; }
.ico.ship-create { color: #0f766e; }
.ico.ship-create:hover { background: #eefaf7; color: #0f766e; }
.ico.ship-mark { color: #c2410c; }
.ico.ship-mark:hover { background: #fff7ed; color: #9a3412; }
.ico.ship-done { color: #15803d; }
.ico.ship-done:hover { background: #f0fdf4; color: #166534; }
.ico.doc-create { color: #0369a1; }
.ico.doc-create:hover { background: #f0f9ff; color: #075985; }
.ico.doc-open { color: #1d4ed8; }
.ico.doc-open:hover { background: #eff6ff; color: #1e40af; }
.ico.doc-send { color: #7c3aed; }
.ico.doc-send:hover { background: #f3eefc; color: #6d28d9; }
.ico.doc-wait { color: #94a3b8; }
.ico.doc-wait:hover { background: #f8fafc; color: #64748b; }
.ico.track-done { color: #0f766e; }
.ico.track-done:hover { background: #eefaf7; color: #0f766e; }

.com-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 18px 18px;
}
.com-docs-card > h4,
.com-upload-card > h4 {
  margin: 0;
  padding: 16px 18px 12px;
}
.com-docs-card > .oform-hint {
  margin: 0 18px 0 !important;
  padding: 0 !important;
}
.com-doc {
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #f7fbff;
  padding: 12px 14px;
}
.com-doc.is-ok {
  border-color: #d7e6fb;
  background: #f7fbff;
}
.com-doc.is-need {
  border-color: #e2eaf4;
  background: #f7fbff;
}
.com-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.com-doc-head strong { font-size: 13px; color: #0b3a7a; }
.com-req, .com-opt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.com-req { background: #eef4ff; color: #1763d6; }
.com-opt { background: #eef2f7; color: #64748b; }
.com-upload {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed #d7e3f4;
  border-radius: 12px;
  background: #fff;
  color: #1c74f2;
  font-size: 12px;
  font-weight: 700;
}
.com-upload > i { grid-column: 1; grid-row: 1; }
.com-upload-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.com-upload .com-file-input,
.com-upload input.merch-file-input {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block !important;
  width: 100%;
  min-height: 42px;
  margin: 0;
  cursor: pointer;
}
.com-upload.has-file {
  border-color: #1c74f2;
  background: #f7fbff;
}
.com-upload.is-replace {
  border-style: solid;
  border-color: #c5d7ef;
  background: #fafcff;
}
.com-upload.is-replace .com-upload-label { color: #0b3a7a; }
.com-upload:hover { background: #f7fbff; border-color: #1c74f2; }
.com-doc-acts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.com-docs .merch-docs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 900px) {
  .com-docs { grid-template-columns: 1fr; }
}
.mlist-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px;
  margin: 0 0 14px; padding: 12px 16px;
  background: #fff; border: 1px solid #e8eef7; border-radius: 14px;
  color: #475569; font-size: 12px; font-weight: 700;
}
.mlist-flow a {
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px 8px;
  transition: color .15s ease, background .15s ease;
}
.mlist-flow a:hover {
  color: #0f4ea8;
  background: #eef5ff;
}
.mlist-flow a.on,
.mlist-flow span.on { color: #1c74f2; font-weight: 800; background: #eef5ff; }
.mlist-flow i { color: #94a3b8; font-size: 11px; }
.btn.sm {
  padding: 6px 10px; font-size: 11px; border-radius: 9px; font-weight: 700;
  white-space: nowrap;
}
.merch-act-form { display: inline-flex; margin: 0; }
.ico[data-tip]:hover::after,
.ico[data-tip]:focus::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
}
.ico[data-tip]:hover::before,
.ico[data-tip]:focus::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  z-index: 50;
  pointer-events: none;
}

.mlist-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mlist { padding: 0; overflow: hidden; }
.mlist .table-wrap { margin: 0; }
.mlist table { min-width: 980px; }
.mlist thead th {
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 11px;
  position: sticky; top: 0; z-index: 1;
}
.mlist td { padding: 14px; vertical-align: middle; }
.mlist td strong { display: block; font-size: 13px; }
.mlist .muted { color: #64748b; font-size: 12px; font-weight: 500; }
.mlist .style-no {
  display: inline-block;
  background: #f3eefc;
  color: #a78bc8;
  font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 6px;
}
.mlist a.order-no, .order-no {
  display: inline-block;
  background: #e8f4fc;
  color: #7eb8d4;
  font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 6px;
}
.order-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.prod-line { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.prod-line .mbar { flex: 1; height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.prod-line .mbar span { display: block; height: 100%; background: #1c74f2; }
.prod-line small { font-weight: 700; color: #334155; min-width: 32px; }

.oshow { display: flex; flex-direction: column; gap: 20px; }
.oshow-hero {
  position: relative; overflow: visible;
  background: linear-gradient(125deg, #0a2a63 0%, #1763d6 50%, #4db4ff 100%);
  color: #fff; border-radius: 22px; padding: 26px 28px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  box-shadow: 0 18px 40px rgba(7, 34, 79, .2);
}
.oshow-hero::before {
  content: ""; position: absolute; right: -50px; top: -70px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
}
.oshow-hero::after {
  content: ""; position: absolute; left: 18%; bottom: -50px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(34, 199, 255, .28), transparent 70%);
}
.oshow-hero > * { position: relative; z-index: 1; }
.oshow-hero h2 {
  margin: 12px 0 8px; font-size: 26px; font-weight: 700;
  font-family: "Libre Baskerville", Georgia, serif; letter-spacing: -.02em;
}
.oshow-hero p, .oshow-kicker {
  margin: 0; opacity: .9; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.oshow-hero p i { opacity: .8; }
.oshow-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.style-no,
.order-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.style-no { background: #f3eefc; color: #a78bc8; }
.order-no { background: #e8f4fc; color: #7eb8d4; }
a.order-no:hover { opacity: .92; }
.oshow-hero .style-no,
.oshow-hero .order-no,
.oshow-hero .badge {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22);
}
.oshow-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.oshow-hero .oform-hero-btns,
.oform-hero-btns {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  position: relative; z-index: 1; flex-shrink: 0;
}
.oshow-hero .btn,
.oform-hero .btn {
  white-space: nowrap;
  width: auto;
  height: auto;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 11px;
}
.oshow-hero .btn:not(.ghost):not(.danger),
.oform-hero .btn:not(.ghost):not(.danger) {
  background: #fff;
  color: #1556c8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}
.oshow-hero .btn.ghost,
.oform-hero .btn.ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
}
.oshow-hero .btn.ghost:hover,
.oform-hero .btn.ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.oshow-hero .btn.danger,
.oform-hero .btn.danger {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: none;
}
.oshow-hero .btn.danger:hover,
.oform-hero .btn.danger:hover {
  background: #fff;
  color: #be123c;
}
.title-row > .btn { flex-shrink: 0; }

.oshow-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.oshow-kpi {
  background: #fff; border-radius: 18px; padding: 16px 18px 18px;
  box-shadow: 0 10px 24px rgba(7, 34, 79, .06);
  border: 1px solid #eef3f9;
  border-top: 3px solid #cfe0f8;
}
.oshow-kpi span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.oshow-kpi strong { display: block; margin-top: 8px; font-size: 22px; color: #0f172a; }
.oshow-kpi small { color: #94a3b8; font-size: 12px; }
.oshow-kpi.k1 { border-top-color: #b7d4f6; }
.oshow-kpi.k2 { border-top-color: #b8e4d4; }
.oshow-kpi.k3 { border-top-color: #f0d6a8; }
.oshow-kpi.k4 { border-top-color: #b5e4dc; }
.oshow-kpi.k5 { border-top-color: #d5c6f0; }
.oshow-kpi.k1 strong { color: #7aa0d4; }
.oshow-kpi.k2 strong { color: #6aa88a; }
.oshow-kpi.k3 strong { color: #c9a06a; }
.oshow-kpi.k4 strong { color: #6bb5a8; }
.oshow-kpi.k5 strong { color: #a78bc8; font-size: 16px; }

.oshow-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  background: #fff; border: 1px solid #eef3f9; border-radius: 18px;
  padding: 14px 18px; box-shadow: 0 10px 24px rgba(7, 34, 79, .05);
}
.oshow-flow > i { color: #c5d4e8; font-size: 12px; }

.pipe-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  background: #fff; border: 1px solid #eef3f9; border-radius: 16px;
  padding: 12px 16px; box-shadow: 0 10px 24px rgba(7, 34, 79, .05);
}
.pipe-nav > i { color: #c5d4e8; font-size: 12px; }
.pipe-step {
  display: inline-flex; align-items: center; gap: 8px;
  color: #94a3b8; font-size: 12px; font-weight: 700;
  text-decoration: none; padding: 4px 8px 4px 4px; border-radius: 999px;
}
a.pipe-step:hover { background: #f4f8ff; color: #1556c8; }
.pipe-step b {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2f7; color: #94a3b8; font-size: 11px;
}
.pipe-step.done { color: #6aa88a; }
.pipe-step.done b { background: #eefaf4; color: #6aa88a; }
.pipe-step.ready { color: #5b7aa8; }
.pipe-step.ready b { background: #eef4ff; color: #7aa0d4; }
.pipe-step.on { color: #1763d6; background: #eef4ff; }
.pipe-step.on b { background: #1763d6; color: #fff; box-shadow: 0 0 0 4px rgba(23, 99, 214, .16); }
.pipe-step.wait { cursor: default; opacity: .7; }
.pipe-step.wait.is-blocked { opacity: .55; color: #b91c1c; }
.pipe-step.wait.is-blocked b { background: #fef2f2; color: #b91c1c; }
.oshow-step { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 12px; font-weight: 700; }
.oshow-step b {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2f7; color: #94a3b8; font-size: 11px;
}
.oshow-step.done { color: #6aa88a; }
.oshow-step.done b { background: #eefaf4; color: #6aa88a; }
.oshow-step.on { color: #7aa0d4; }
.oshow-step.on b { background: #eef4ff; color: #7aa0d4; box-shadow: 0 0 0 4px rgba(122, 160, 212, .18); }

.oshow-progress {
  background: #fff; border: 1px solid #eef3f9; border-radius: 18px;
  padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
  box-shadow: 0 10px 24px rgba(7, 34, 79, .05);
}
.oshow-progress h4 { margin: 0; font-size: 14px; }
.oshow-progress p { margin: 2px 0 0; color: #94a3b8; font-size: 12px; }
.oshow-progress strong { font-size: 22px; color: #7aa0d4; }
.oshow-bar { grid-column: 1 / -1; height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.oshow-bar span { display: block; height: 100%; background: linear-gradient(90deg, #7aa0d4, #6bb5a8); }
.oshow-stages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.oshow-stages span {
  background: #f8fafc; color: #64748b; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

.oshow-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.oshow-grid .oform-wide { grid-column: 1 / -1; }
.oshow .card, .oform .card, .oshow-rel {
  padding: 0; overflow: hidden;
  border: 1px solid #eef3f9;
  box-shadow: 0 10px 26px rgba(7, 34, 79, .05);
  border-radius: 18px;
}
.oshow .card > h4, .oform .card > h4, .oshow-rel > h4 {
  margin: 0; padding: 14px 18px;
  background: linear-gradient(180deg, #f8fbff, #f3f7fc);
  border-bottom: 1px solid #eef3f9;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: #5b7aa8; font-weight: 800;
}
.oshow .card > h4 i, .oform .card > h4 i, .oshow-rel > h4 i {
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-grid; place-items: center;
  background: #eef4ff; color: #7aa0d4; font-size: 14px; font-style: normal;
}
.oshow-kv {
  display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: start;
  margin: 0 18px; padding: 12px 0; border-bottom: 1px dashed #eef2f7; font-size: 13px;
}
.oshow-kv:last-child { border-bottom: 0; padding-bottom: 16px; }
.oshow-kv b { color: #94a3b8; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.oshow-kv span { color: #1e293b; font-weight: 600; }
.oshow-rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oshow-rel .table-wrap, .oshow-rel .oshow-empty { padding: 8px 14px 14px; }
.oshow-empty { margin: 0; color: #94a3b8; font-size: 13px; }
.oshow-table { min-width: 0 !important; }
.oshow-table th, .oshow-table td { padding: 8px 6px; }

.oform {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}
.oform-hero { align-items: center; }
.oform-hero .btn { box-shadow: 0 8px 18px rgba(0,0,0,.12); }
@media (max-width: 860px) {
  .oshow-hero,
  .oform-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .oshow-hero .oform-hero-btns,
  .oform-hero-btns {
    width: 100%;
    justify-content: flex-end;
  }
}
.oform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oform-wide { grid-column: 1 / -1; }
.oform-hint { margin: 0; padding: 0 18px 16px; font-size: 13px; line-height: 1.45; color: #5a6a80; }
.oform-hint.ok { color: #3d7a5c; }
.oform-hint.warn { color: #8a7348; }
.mdesk-hint-inline { color: #3d6ea8; font-size: 13px; font-weight: 500; }
.prod-stage-err {
  margin: 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  border-top: 1px solid #fecaca;
}
.oform-bar {
  display: flex; justify-content: flex-end; gap: 10px; align-items: center;
  background: #fff;
  border: 1px solid #eef3f9; border-radius: 16px;
  padding: 14px 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(7, 34, 79, .06);
}
.card > .oform-bar {
  position: static;
  box-shadow: none;
  background: #f8fbff;
  border: 0;
  border-top: 1px solid #eef3f9;
  margin-top: 28px;
  padding-top: 14px;
}
.oform .card > .form-grid { padding: 16px 18px 18px; gap: 14px 16px; }
.oshow .card > .form-grid { padding: 16px 18px 20px; gap: 14px 16px; }
.file-hint {
  display: block;
  margin: 6px 0 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0b3a7a;
  line-height: 1.45;
  background: #eef4ff;
  border: 1px solid #d7e6fb;
  border-radius: 10px;
}
.file-field { min-width: 0; padding-bottom: 6px; }
.oform input[type="text"],
.oform input[type="number"],
.oform input[type="email"],
.oform input[type="password"],
.oform textarea {
  height: 42px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: #f7fbff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  box-shadow: none;
}
.oform textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.45;
}
.oform input:focus,
.oform textarea:focus {
  outline: 0;
  border-color: #1c74f2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
}
.oform .select2-container--default .select2-selection--single.dx-s2-sel,
.oform .dx-s2 .select2-selection--single {
  border: 1.5px solid #c5d7ef;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-radius: 12px;
  height: 44px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
#trackFinal input[type="text"],
#trackFinal input[type="number"],
#trackFinal input[type="email"],
#trackFinal textarea,
#trackFinal .picker-wrap .picker-visible,
#trackFinal .picker-wrap input.js-date,
#trackFinal .picker-wrap input.js-time,
#trackFinal .picker-wrap input.flatpickr-input,
#trackFinal .picker-wrap input.picker-visible {
  height: 44px;
  border: 1.5px solid #c5d7ef !important;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%) !important;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
#trackFinal textarea {
  height: auto;
  min-height: 108px;
  padding: 12px 14px;
  line-height: 1.45;
}
#trackFinal .picker-wrap .picker-visible,
#trackFinal .picker-wrap input.js-date,
#trackFinal .picker-wrap input.js-time,
#trackFinal .picker-wrap input.flatpickr-input,
#trackFinal .picker-wrap input.picker-visible {
  padding-left: 38px !important;
}
#trackFinal input[type="text"]:focus,
#trackFinal input[type="number"]:focus,
#trackFinal textarea:focus,
#trackFinal .picker-wrap .picker-visible:focus,
#trackFinal .picker-wrap input.js-date:focus,
#trackFinal .picker-wrap input.picker-visible:focus {
  outline: 0;
  border-color: #1c74f2 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
}
#trackFinal .select2-container--default .select2-selection--single.dx-s2-sel,
#trackFinal .dx-s2 .select2-selection--single {
  border: 1.5px solid #c5d7ef;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-radius: 12px;
  height: 44px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
#trackFinal .select2-container { display: block !important; width: 100% !important; }
#trackFinal .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 14px;
  padding-right: 56px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}
#trackFinal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  width: 32px;
  right: 4px;
}
#trackFinal .select2-container--default.select2-container--focus .select2-selection--single,
#trackFinal .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #1c74f2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
}
#payFinal input[type="text"],
#payFinal input[type="number"],
#payFinal textarea,
#payFinal .picker-wrap .picker-visible,
#payFinal .picker-wrap input.js-date,
#payFinal .picker-wrap input.js-time,
#payFinal .picker-wrap input.flatpickr-input,
#payFinal .picker-wrap input.picker-visible {
  height: 44px;
  border: 1.5px solid #c5d7ef !important;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%) !important;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
#payFinal textarea {
  height: auto;
  min-height: 108px;
  padding: 12px 14px;
  line-height: 1.45;
}
#payFinal .picker-wrap .picker-visible,
#payFinal .picker-wrap input.js-date,
#payFinal .picker-wrap input.js-time,
#payFinal .picker-wrap input.flatpickr-input,
#payFinal .picker-wrap input.picker-visible {
  padding-left: 38px !important;
}
#payFinal input:focus,
#payFinal textarea:focus,
#payFinal .picker-wrap .picker-visible:focus {
  outline: 0;
  border-color: #1c74f2 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
}
#payFinal .select2-container { display: block !important; width: 100% !important; }
#payFinal .select2-container--default .select2-selection--single.dx-s2-sel,
#payFinal .dx-s2 .select2-selection--single {
  border: 1.5px solid #c5d7ef;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-radius: 12px;
  height: 44px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
#payFinal .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 14px;
  padding-right: 56px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}
#payFinal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  width: 32px;
  right: 4px;
}
#payFinal .select2-container--default.select2-container--focus .select2-selection--single,
#payFinal .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #1c74f2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
}
.oform .select2-container { display: block !important; width: 100% !important; }
.oform label {
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #7b8ca3;
  font-weight: 700; margin-bottom: 6px; display: block;
}
.oform input, .oform select, .oform textarea {
  border: 1px solid #e2eaf4; background: #f7fbff;
  padding: 10px 12px; border-radius: 12px;
  transition: border .15s, box-shadow .15s, background .15s;
}
.oform input:focus, .oform select:focus, .oform textarea:focus {
  outline: 0; background: #fff; border-color: #9ec4ff;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .12);
}
.oform textarea { min-height: 108px; }

.bprof-hero { align-items: center; }
.bprof-top { display: flex; gap: 18px; align-items: center; min-width: 0; }
.bprof-avatar {
  width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 22px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.38);
  font-size: 26px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.bprof-brand {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.22);
}
.bprof-reach {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.bprof-tile {
  background: #fff; border: 1px solid #eef3f9; border-radius: 16px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  box-shadow: 0 10px 24px rgba(7, 34, 79, .05);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.bprof-tile i { color: #7aa0d4; font-size: 18px; }
.bprof-tile small {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: #94a3b8;
}
.bprof-tile strong {
  font-size: 13px; color: #1e293b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.bprof-tile:hover { border-color: #c5daf5; background: #f8fbff; }

.blist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.blist-hero { align-items: center; }
.blist-markets {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.blist-markets span {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #eef3f9; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; color: #5b7aa8;
  box-shadow: 0 8px 18px rgba(7, 34, 79, .04);
}
.blist-markets span i { color: #7aa0d4; }
.blist-markets b { color: #0b3a7a; }

@media (max-width: 1440px) {
  :root { --side: 220px; }
  .content { padding: 16px 18px 32px; }
  .kpis .value, .stat .num { font-size: 22px; }
}

@media (max-width: 1280px) {
  .kpis, .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2, .show-grid, .oshow-grid, .oshow-rel-grid, .oform-grid { grid-template-columns: 1fr; }
  .oshow-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bprof-reach { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .nav a { font-size: 13px; padding: 7px 12px; }
}

@media (max-width: 1024px) {
  .kpis, .stats, .oshow-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-card { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .sidebar { display: none; }
  .form-grid, .grid-3 { grid-template-columns: 1fr; }
  .inq-hero .oform-hero-btns {
    width: 100%;
    justify-content: flex-end;
  }
}

.is-autogen {
  background: #eef4fb !important;
  color: #5b7aa8;
  cursor: default;
  font-weight: 700;
  letter-spacing: .02em;
}
.field-hint {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.picker-wrap { position: relative; }
.picker-wrap > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #7aa0d4; z-index: 3; pointer-events: none; font-size: 15px;
}
.picker-wrap .picker-visible {
  width: 100%;
  border: 1px solid #e2eaf4;
  background: #f7fbff;
  padding: 10px 12px 10px 38px !important;
  border-radius: 12px;
  font: inherit;
  color: #1e293b;
  height: 42px;
  box-sizing: border-box;
}
.oform .picker-wrap input.picker-visible,
.oform .picker-wrap input.js-date,
.oform .picker-wrap input.js-time,
.oform .picker-wrap input.flatpickr-input {
  padding-left: 38px !important;
}
.picker-wrap .picker-visible:focus {
  outline: 0;
  background: #fff;
  border-color: #9ec4ff;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .12);
}

.select2-container { width: 100% !important; font-family: "Outfit", "Segoe UI", sans-serif; }
.select2-container .select2-selection--single {
  height: 42px; border: 1px solid #d7e3f4; border-radius: 12px;
  background: #f7fbff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px; padding-left: 14px; padding-right: 52px;
  color: #0f172a; font-size: 13px; font-weight: 600;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8; font-weight: 500;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px; width: 32px; right: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c74f2' d='M1.2 1.4 6 6.2l4.8-4.8'/%3E%3C/svg%3E") center no-repeat;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right: 28px;
  color: #64748b;
  font-size: 18px;
  font-weight: 700;
  height: 40px;
  line-height: 40px;
  padding: 0 8px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: #e11d48;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #1c74f2;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
  background: #fff;
}
.select2-container--open .select2-selection--single .select2-selection__arrow {
  transform: rotate(180deg);
}
.select2-dropdown,
.select2-dropdown.dx-s2-dd {
  border: 1px solid #d7e3f4; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(7, 34, 79, .16);
  overflow: hidden; z-index: 99999 !important;
  background: #fff; margin-top: 4px;
}
.select2-search--dropdown { padding: 10px 10px 6px; }
.select2-search--dropdown .select2-search__field {
  border: 1px solid #d7e3f4; border-radius: 10px; padding: 9px 12px 9px 34px;
  font: inherit; font-size: 13px; font-weight: 600; color: #0b3a7a;
  background: #f7fbff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237aa0d4' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3-3'/%3E%3C/svg%3E") 10px 50% no-repeat;
  outline: 0;
}
.select2-search--dropdown .select2-search__field:focus {
  border-color: #1c74f2; background-color: #fff;
  box-shadow: 0 0 0 3px rgba(28, 116, 242, .12);
}
.select2-results__option { font-size: 13px; padding: 9px 12px; font-weight: 600; color: #334155; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: linear-gradient(90deg, #eef4ff, #f4fbff); color: #0b3a7a;
}
.select2-container--default .select2-results__option--selected {
  background: #eef6ff; color: #1c74f2; font-weight: 700;
}
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
  background: linear-gradient(90deg, #1c74f2, #3ea0ff); color: #fff;
}
.select2-results__message { color: #94a3b8; font-weight: 600; padding: 10px 12px; }
.dx-s2 .select2-selection--single,
.select2-container--default .select2-selection--single.dx-s2-sel {
  border: 1.5px solid #c5d7ef;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-radius: 12px;
  height: 44px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
.oform .select2-container { display: block; width: 100% !important; }
.oform .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px; padding-left: 14px;
}
.oform .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}
.select2-container--default.select2-container--focus .select2-selection--single.dx-s2-sel,
.select2-container--default.select2-container--open .select2-selection--single.dx-s2-sel {
  border-color: #1c74f2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
}
.select2-dropdown.dx-s2-dd .select2-results__option {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5fb;
}
.select2-dropdown.dx-s2-dd .select2-results__option:last-child { border-bottom: 0; }
.merch-doc-box { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 8px; }
.merch-doc-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}
.merch-form select.select2-hidden-accessible,
.oform select.select2-hidden-accessible {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.merch-form .select2-container { display: block !important; width: 100% !important; }
.merch-form .select2-container--default .select2-selection--single.dx-s2-sel,
.merch-form .dx-s2 .select2-selection--single {
  border: 1.5px solid #c5d7ef;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-radius: 12px;
  height: 44px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(7, 34, 79, .04);
}
.merch-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 14px;
  padding-right: 36px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}
.merch-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  width: 32px;
  right: 4px;
}
.merch-form .select2-container--default .select2-selection--single .select2-selection__clear {
  display: none;
}
.oform input.merch-file-input,
.merch-file-input {
  display: block;
  width: 100%;
  height: auto;
  min-height: 48px;
  cursor: pointer;
  border: 1.5px dashed #1c74f2 !important;
  background: #f4f8ff !important;
  color: #0b3a7a;
  font-weight: 700;
  padding: 10px 12px !important;
  overflow: visible;
  line-height: 1.4;
}

.flatpickr-calendar {
  width: 248px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
  border: 1px solid #e8eef7 !important;
  box-shadow: 0 12px 28px rgba(7, 34, 79, .14) !important;
  font-family: "Outfit", "Segoe UI", sans-serif !important;
  overflow: hidden;
}
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
  width: 248px !important;
  min-width: 248px !important;
  max-width: 248px !important;
}
.flatpickr-months {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 0;
}
.flatpickr-month {
  flex: 1;
  min-width: 0;
  height: auto !important;
}
.flatpickr-current-month {
  position: static !important;
  width: 100% !important;
  left: auto !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 700;
  color: #0b3a7a;
}
.flatpickr-prev-month,
.flatpickr-next-month {
  position: relative !important;
  z-index: 4;
  top: auto !important;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #0b3a7a;
  flex-shrink: 0;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #eef4ff;
}
.flatpickr-monthDropdown-months,
.flatpickr-current-month .numInput.cur-year {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #eef4ff;
  border: 1px solid #d7e6ff;
  border-radius: 8px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 12px !important;
  font-weight: 700;
  color: #0b3a7a;
  cursor: pointer;
  outline: none;
}
.flatpickr-monthDropdown-months {
  min-width: 108px;
  max-width: 118px;
  padding: 4px 24px 4px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237aa0d4' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.flatpickr-current-month .numInput.cur-year {
  width: 68px !important;
  padding: 4px 8px;
  text-align: center;
}
.flatpickr-current-month .numInputWrapper {
  width: auto !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
  opacity: 1;
  border-color: #d7e6ff;
}
.flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .numInput.cur-year:hover,
.flatpickr-monthDropdown-months:focus,
.flatpickr-current-month .numInput.cur-year:focus {
  border-color: #7aa0d4;
  background-color: #f8fbff;
}
.flatpickr-current-month .select2-container.dx-fp-month {
  width: 104px !important;
  min-width: 104px;
  max-width: 104px;
  flex-shrink: 0;
}
.select2-container.dx-fp-month .select2-selection--single.dx-fp-month-sel {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  border-radius: 8px;
  border: 1px solid #d7e6ff !important;
  background: #eef4ff !important;
  box-shadow: none !important;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  position: relative;
}
.select2-container.dx-fp-month .select2-selection--single .select2-selection__rendered {
  line-height: 1 !important;
  padding: 0 22px 0 8px !important;
  font-size: 12px !important;
  font-weight: 700;
  color: #0b3a7a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  display: block;
}
.select2-container.dx-fp-month .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  width: 20px !important;
  top: 0 !important;
  right: 0 !important;
  position: absolute !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 10px 6px;
}
.select2-container--default.select2-container--focus.dx-fp-month .select2-selection--single,
.select2-container--default.select2-container--open.dx-fp-month .select2-selection--single {
  border-color: #7aa0d4 !important;
  background: #f8fbff !important;
  box-shadow: 0 0 0 3px rgba(28, 116, 242, .12) !important;
}
.select2-dropdown.dx-fp-month-dd {
  min-width: 120px;
  border-radius: 10px;
  margin-top: 2px;
}
.select2-dropdown.dx-fp-month-dd .select2-results__option {
  padding: 7px 10px;
  font-size: 12px;
}
.select2-dropdown.dx-fp-month-dd .select2-search--dropdown {
  display: none;
}
.flatpickr-weekdays { background: #f8fbff; }
.flatpickr-weekday { color: #7aa0d4 !important; font-weight: 700; font-size: 10px !important; }
.flatpickr-day {
  width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 12px;
  border-radius: 8px;
}
.flatpickr-day.today { border-color: #7aa0d4; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #1c74f2 !important;
  border-color: #1c74f2 !important;
}
.flatpickr-day:hover { background: #eef4ff; border-color: #eef4ff; }
.flatpickr-time {
  border-top: 1px solid #eef3f9 !important;
  max-height: 42px;
}
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm {
  font-weight: 700; color: #0b3a7a; font-size: 13px;
}
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:focus {
  background: #eef4ff;
}
.mrows { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 8px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 140px 40px; gap: 8px; align-items: center; }
.mrow-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 18px 16px; flex-wrap: wrap;
}
.mrow-sum { font-size: 12px; font-weight: 700; color: #5b7aa8; }
.mrow-sum .js-remain-hint { font-weight: 600; color: #3d6ea8; margin-left: 4px; }
.mrow-sum.bad { color: #c24141; }
.mrow-sum.bad .js-remain-hint { color: #c24141; }
.mrow-sum.ok { color: #15803d; }
.mrow-sum.ok .js-remain-hint { color: #15803d; }
.fa-remain-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid #d5e6fb;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 600;
}
.fa-remain-bar b { font-weight: 800; color: #0b3a7a; }
.fa-remain-sep { color: #8aa0bf; }
.fa-remain-left b { color: #1d6feb; }
.fa-remain-bar.is-ok { background: #eefaf4; border-color: #c8f0d8; }
.fa-remain-bar.is-ok .fa-remain-left b { color: #15803d; }
.fa-remain-bar.is-bad { background: #fff1f2; border-color: #fecaca; }
.fa-remain-bar.is-bad .fa-remain-left b { color: #c24141; }

.fa-blocks { padding: 4px 18px 8px; display: flex; flex-direction: column; gap: 12px; }
.fa-block {
  background: #f7fafd;
  border: 1px solid #e2eaf5;
  border-radius: 14px;
  padding: 12px;
}
.fa-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: end;
  margin-bottom: 6px;
}
.fa-factory-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fa-factory-field > label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.fa-factory-field .select2-container { width: 100% !important; display: block !important; }
.fa-lines { display: flex; flex-direction: column; gap: 10px; }
.fa-line {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px 40px;
  gap: 8px;
  align-items: end;
}
.fa-field {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.fa-field > label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.fa-field .select2-container { width: 100% !important; max-width: 100% !important; display: block !important; }
.fa-field input.js-fa-qty {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
}
.fa-field-del {
  align-items: stretch;
}
.fa-field-del .ico {
  height: 44px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fa-block-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 10px;
}
.fa-block-sum { font-size: 12px; font-weight: 700; color: #5b7aa8; }
.alloc-lines {
  display: flex; flex-direction: column; gap: 4px; min-width: 140px;
}
.alloc-line {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; font-weight: 600; color: #334155;
}
.alloc-line .alloc-meta { color: #64748b; font-weight: 500; }
.alloc-empty { color: #94a3b8; font-size: 12px; }

@media (max-width: 720px) {
  .fa-line { grid-template-columns: 1fr 1fr; }
  .fa-field-del { grid-column: 1 / -1; }
}
.merch-docs { list-style: none; margin: 0; padding: 16px 18px 0; display: flex; flex-direction: column; gap: 8px; }
.merch-docs li {
  display: flex; align-items: center; gap: 10px;
  background: #f7fafd; border-radius: 10px; padding: 8px 10px;
}
.merch-docs a { font-weight: 700; color: #0b3a7a; }
.merch-docs .muted { margin-left: auto; font-size: 12px; }
.merch-confirm {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; font-weight: 600; color: #334155;
}
.merch-confirm input { width: 18px; height: 18px; margin-top: 2px; }
.qshow-act-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; align-items: center; }
.qshow-actions .oform-hint { padding: 0 18px 12px; margin: 0; }
.oshow-kv.full { grid-column: 1 / -1; }

.qshow { gap: 18px; }
.qshow-hero { align-items: stretch; }
.qshow-hero .oshow-kicker {
  margin: 0 0 8px; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; opacity: .72;
}
.qshow-style-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.qshow-hero-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.qshow-total {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  border-radius: 16px; padding: 14px 18px; min-width: 240px; text-align: right;
}
.qshow-total span {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; opacity: .78;
}
.qshow-total strong {
  display: block; margin-top: 4px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
.qshow-total small { display: block; margin-top: 4px; font-size: 12px; opacity: .8; }
.qshow-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  background: #fff; border: 1px solid #eef3f9; border-radius: 16px;
  padding: 12px 18px; box-shadow: 0 10px 24px rgba(7, 34, 79, .05);
}
.qshow-flow > i { color: #c5d4e8; font-size: 12px; }
.oshow-step.fail { color: #be123c; }
.oshow-step.fail b { background: #fff1f2; color: #be123c; }
.oshow-step.wait { color: #94a3b8; }
.qshow-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qshow-kpis .oshow-kpi.k4 strong { font-size: 18px; color: #6bb5a8; }

.qshow-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; padding: 16px 18px 8px;
}
.qshow-fact {
  background: #f7fafd; border: 1px solid #eef3f9; border-radius: 14px;
  padding: 14px 14px 12px; min-width: 0;
}
.qshow-fact i {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #eef4ff; color: #7aa0d4; font-size: 14px; margin-bottom: 8px;
}
.qshow-fact small {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #94a3b8;
}
.qshow-fact strong {
  display: block; margin-top: 4px; font-size: 14px; color: #0f172a;
  overflow-wrap: anywhere;
}
.qshow-fact.accent {
  background: linear-gradient(180deg, #fff8ee, #fff);
  border-color: #f3e2c4;
}
.qshow-fact.accent i { background: #fff6e8; color: #c9a06a; }
.qshow-fact.accent strong { color: #9a6b28; }

.qshow-break {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 8px 18px 18px;
}
.qshow-break > div {
  background: #fff; border: 1px dashed #e4edf7; border-radius: 14px;
  padding: 12px 14px;
}
.qshow-break small, .qshow-prose small {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #94a3b8;
}
.qshow-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qshow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef4ff; color: #1e3a6e;
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px;
}
.qshow-pill b { font-weight: 800; }
.qshow-pill small { color: #5b7aa8; font-weight: 700; }
.qshow-muted { color: #94a3b8; font-weight: 600; font-size: 13px; }

.qshow-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 4px 6px 8px;
}
.qshow-mini-item {
  padding: 12px 12px 10px; border-bottom: 1px dashed #eef2f7;
}
.qshow-mini-item:nth-child(odd) { border-right: 1px dashed #eef2f7; }
.qshow-mini-item i { color: #7aa0d4; font-size: 14px; }
.qshow-mini-item small {
  display: block; margin-top: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #94a3b8;
}
.qshow-mini-item strong {
  display: block; margin-top: 2px; font-size: 13px; color: #1e293b; font-weight: 700;
}
.qshow-prose { padding: 4px 18px 16px; }
.qshow-note {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: #f7fafd; border: 1px solid #eef3f9;
  color: #334155; font-size: 13px; font-weight: 600; line-height: 1.55;
}

.sspec {
  margin: 8px 18px 16px;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 42%);
  overflow: hidden;
}
.sspec-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eef3f9;
}
.sspec-head > i {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: #eef4ff; color: #1763d6; font-size: 16px; flex: 0 0 auto;
}
.sspec-head strong {
  display: block; font-size: 14px; color: #0f274f; font-weight: 800;
}
.sspec-head span {
  display: block; margin-top: 2px;
  font-size: 12px; color: #94a3b8; font-weight: 600;
}
.sspec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.sspec-item {
  padding: 12px 14px 12px;
  border-bottom: 1px dashed #eef2f7;
}
.sspec-item:nth-child(odd) { border-right: 1px dashed #eef2f7; }
.sspec-item i { color: #7aa0d4; font-size: 14px; }
.sspec-item small {
  display: block; margin-top: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #94a3b8;
}
.sspec-item strong {
  display: block; margin-top: 3px;
  font-size: 13px; color: #1e293b; font-weight: 700; line-height: 1.35;
}
@media (max-width: 720px) {
  .sspec-grid { grid-template-columns: 1fr; }
  .sspec-item:nth-child(odd) { border-right: 0; }
}

.qshow-dlv {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; padding: 16px 18px 18px;
}
.qshow-dlv > div {
  background: linear-gradient(180deg, #f8fbff, #fff);
  border: 1px solid #eef3f9; border-radius: 14px;
  padding: 14px 14px 12px;
}
.qshow-dlv i {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #eef4ff; color: #7aa0d4; margin-bottom: 8px;
}
.qshow-dlv small {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #94a3b8;
}
.qshow-dlv strong { display: block; margin-top: 4px; font-size: 14px; color: #0f172a; }

.qshow-prose .merch-docs { padding: 0; }
.qshow-prose .merch-docs li { margin: 0; }
.qshow-mini-item:last-child:nth-child(odd) {
  grid-column: 1 / -1; border-right: 0;
}
.qshow-cta {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  margin: 0 12px 14px; padding: 16px 16px;
  background: linear-gradient(90deg, #f5f9ff, #fff);
  border: 1px solid #e8f0fa; border-radius: 16px;
}
.qshow-cta-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: #eef4ff; color: #7aa0d4; font-size: 24px;
}
.qshow-cta-copy strong { display: block; font-size: 15px; color: #0f172a; }
.qshow-cta-copy p { margin: 4px 0 0; color: #64748b; font-size: 13px; font-weight: 600; }
.qshow-actions.is-ready .qshow-cta-icon { background: #eefaf4; color: #6aa88a; }
.qshow-actions.is-done .qshow-cta-icon { background: #eef4ff; color: #1763d6; }
.qshow-actions.is-reject .qshow-cta-icon { background: #fff1f2; color: #be123c; }
.qshow-actions.is-short { border-color: #f0dfc4; }
.qshow-actions.is-wait { border-color: #dbe8fb; }
.qshow-actions .qshow-act-row .btn { min-height: 42px; padding: 10px 18px; }
.dx-buyer-note { display: block; margin: 0 12px 14px; width: auto; }
.dx-buyer-note-card { margin: 0; }
.dx-buyer-note-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.dx-buyer-note-metrics div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #f0dfc4;
}
.dx-buyer-note-metrics em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a07848;
  margin-bottom: 2px;
}
.dx-buyer-note-metrics b {
  font-size: 18px;
  letter-spacing: -.02em;
  color: #0f2744;
  font-variant-numeric: tabular-nums;
}
.dx-buyer-note .mshow-status-next {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 220px;
}
.dx-buyer-note-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ead7b8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #5c4a2e;
}
.dx-buyer-note-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #c47a20;
  flex-shrink: 0;
}
.dx-buyer-note .btn { width: 100%; justify-content: center; }
@media (max-width: 1100px) {
  .dx-buyer-note .mshow-status { grid-template-columns: auto 1fr; }
  .dx-buyer-note .mshow-status-next { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dx-buyer-note-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .qshow-facts, .qshow-dlv { grid-template-columns: 1fr 1fr; }
  .qshow-cta { grid-template-columns: auto 1fr; }
  .qshow-cta .qshow-act-row { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .qshow-hero-side { align-items: stretch; width: 100%; }
  .qshow-total { text-align: left; min-width: 0; }
  .qshow-facts, .qshow-break, .qshow-mini, .qshow-dlv, .qshow-kpis { grid-template-columns: 1fr; }
  .qshow-mini-item:nth-child(odd) { border-right: 0; }
}

.cshow-mix { padding: 0; }
.cshow-mix-body { padding: 16px 18px 18px; }
.cshow-stack {
  display: flex; height: 16px; border-radius: 99px; overflow: hidden;
  background: #eef2f7; box-shadow: inset 0 1px 2px rgba(7, 34, 79, .06);
}
.cshow-stack span { display: block; height: 100%; min-width: 2px; }
.cshow-legend {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 12px;
}
.cshow-legend span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: .02em;
}
.cshow-legend i {
  width: 8px; height: 8px; border-radius: 99px; display: inline-block;
}
.cshow-lines { padding: 4px 0 8px; }
.cshow-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 64px 92px;
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #f1f5fb;
}
.cshow-line:last-child { border-bottom: 0; }
.cshow-line > i {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f8fbff; font-size: 15px;
}
.cshow-line strong { display: block; font-size: 13px; color: #0f172a; }
.cshow-mini {
  margin-top: 6px; height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden;
}
.cshow-mini span { display: block; height: 100%; border-radius: 99px; }
.cshow-line em { font-style: normal; font-size: 12px; font-weight: 700; color: #94a3b8; text-align: right; }
.cshow-line b { font-size: 14px; color: #0b3a7a; text-align: right; font-variant-numeric: tabular-nums; }
.cshow-line.is-empty strong { color: #94a3b8; font-weight: 600; }
.cshow-line.is-empty b, .cshow-line.is-empty em { color: #cbd5e1; }
.cshow-line.is-total {
  background: linear-gradient(90deg, #f8fbff, #fff);
  border-top: 1px solid #e8eef7;
  margin-top: 4px;
}
.cshow-line.is-total b { font-size: 16px; color: #1556c8; }
.cshow-line.is-total em { color: #1556c8; }
@media (max-width: 720px) {
  .cshow-line { grid-template-columns: 32px minmax(0, 1fr) 72px; }
  .cshow-line em { display: none; }
}

/* Inquiry desk */
.inq-hero {
  align-items: center;
  overflow: visible;
  padding: 24px 28px;
}
.inq-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 320px;
}
.inq-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.inq-hero-copy { min-width: 0; flex: 1; }
.inq-hero-copy h2 { margin-top: 10px; }
.inq-hero .oshow-kicker span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.inq-intake-note {
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef4ff, #f8fbff);
  border: 1px solid #d8e6fb;
  color: #3d5a80;
  font-size: 13px;
  line-height: 1.5;
}
.inq-intake-note i { color: #5b7db0; margin-right: 6px; }
.inq-complete-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff8f0;
  border: 1px solid #f0e0c8;
}
.inq-complete-banner p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7a6040;
  line-height: 1.45;
}
.inq-complete-banner h4 {
  margin: 0;
  font-size: 15px;
  color: #9a7040;
}
.inq-complete-banner .btn { flex-shrink: 0; }

.inq-prio, .inq-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.inq-prio.is-urgent { background: #fff1f2; color: #c45b6a; }
.inq-prio.is-high { background: #fff6e8; color: #c9a06a; }
.inq-prio.is-normal { background: #f4f6f8; color: #64748b; }
.inq-chip { background: #eef4ff; color: #5b7db0; }
.inq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
}
.inq-main, .inq-side { display: flex; flex-direction: column; gap: 16px; }
.inq-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.inq-check {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid #e8eef7; background: #fbfcfe;
  font-size: 13px; font-weight: 600; color: #334155;
}
.inq-check.is-ok { background: #f3fbf7; border-color: #d5ebe0; color: #3d7a5c; }
.inq-check.is-ok i { color: #5fad88; }
.inq-check.is-miss { background: #fff8f0; border-color: #f0e0c8; color: #9a7040; }
.inq-check.is-miss i { color: #d4a06a; }
.inq-hint {
  margin: 12px 0 0;
  font-size: 13px; color: #64748b; line-height: 1.45;
}
.inq-hint.ok { color: #3d7a5c; }
.inq-flow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.inq-flow-step {
  position: relative;
  padding: 8px 12px 8px 28px;
  border-radius: 10px;
  font-size: 12px; font-weight: 700; color: #94a3b8;
  background: #f8fafc;
}
.inq-flow-step::before {
  content: '';
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #cbd5e1;
}
.inq-flow-step.done { color: #3d7a5c; background: #f3fbf7; }
.inq-flow-step.done::before { background: #5fad88; }
.inq-flow-step.active { color: #1556c8; background: #eef4ff; }
.inq-flow-step.active::before { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.inq-flow-step.bad { color: #c45b6a; background: #fff1f2; }
.inq-flow-step.bad::before { background: #d4a0a8; }
.inq-actions { display: flex; flex-direction: column; gap: 8px; }
.inq-act { margin: 0; }
.inq-act .btn { width: 100%; justify-content: center; }
.inq-reason {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e8eef7;
}
.inq-reason textarea {
  width: 100%; min-height: 64px; border-radius: 10px;
  border: 1px solid #d5e0ef; padding: 10px 12px; font: inherit;
}
.inqdesk .muted { color: #94a3b8; }

.inq-notes-card > .oform-hint {
  margin: 0 18px 0;
  padding-bottom: 4px;
}
.inq-notes-grid {
  grid-template-columns: 1fr;
}
.inq-notes-grid > div textarea {
  min-height: 88px;
  resize: vertical;
}
.inq-notes-grid > div:nth-child(-n+2) textarea,
.inq-notes-grid > div:last-child textarea {
  min-height: 110px;
}
.merch-dash { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.merch-dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.merch-dash-hero-copy { position: relative; z-index: 1; min-width: 0; flex: 1; }
.merch-dash-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .82;
}
.merch-dash-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.merch-dash-btn {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}
.merch-dash-btn:hover { background: rgba(255,255,255,.24) !important; }
.merch-dash-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 12px;
}
.merch-dash-stat-pill strong { font-size: 15px; }
.merch-dash-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.merch-dash-quick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.merch-dash-quick a:hover { background: rgba(255,255,255,.2); }
.merch-dash-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.merch-dash-section-head { margin: 18px 0 10px; }
.merch-dash-section-head h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}
.merch-dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.merch-dash-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.merch-dash-panel { padding: 0; overflow: hidden; }
.merch-dash-panel h4 {
  margin: 0;
  padding: 14px 16px 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef2f7;
}
.merch-dash-panel .table-wrap { padding: 0 8px 10px; }
.merch-dash-table { font-size: 13px; }
.merch-dash-table th { font-size: 11px; }
.merch-dash-task-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}
.merch-dash-task-list li { display: flex; flex-direction: column; gap: 2px; }
.merch-dash-task-list li strong { font-size: 13px; color: #1e293b; }
.merch-dash-task-list li span { font-size: 12px; color: #64748b; }
.merch-dash-task-list li.is-late strong { color: #b45309; }
.merch-dash-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 16px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1c74f2;
  text-decoration: none;
  border-top: 1px solid #eef2f7;
}
.merch-dash-more:hover { color: #1554c0; }
@media (max-width: 1280px) {
  .merch-dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .merch-dash-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .merch-dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merch-dash-grid-3, .merch-dash-grid-4 { grid-template-columns: 1fr; }
}
.ta-act-table input, .ta-act-table select { width:100%; min-width:0; }
.ta-act-table td { vertical-align: middle; }

.inq-size-head,
.inq-size-row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 10px;
  align-items: center;
}
.inq-size-head {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}
.inq-size-rows { display: flex; flex-direction: column; gap: 8px; }
.inq-size-row select {
  width: 100%;
}
.inq-size-row input[type="number"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d5e0ef;
  padding: 10px 12px;
  font: inherit;
}
.inq-size-row .ico.del {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #f0d4d8;
  background: #fff8f9;
  color: #c45b6a;
}

.inq-details {
  padding: 0;
  overflow: hidden;
}
.inq-details-top {
  padding: 18px 20px 0;
}
.inq-details-top h4 {
  margin: 0;
}
.inq-details-top p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.inq-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px 20px;
}
.inq-details-panel {
  border: 1px solid #e8eef5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
  overflow: hidden;
}
.inq-details-panel.is-buyer { border-top: 3px solid #7aa0d4; }
.inq-details-panel.is-intake { border-top: 3px solid #5b8fd9; }
.inq-details-panel.is-program { border-top: 3px solid #6aa88a; }
.inq-details-panel.is-fabric { border-top: 3px solid #c9a06a; }
.inq-details-panel.is-qty { border-top: 3px solid #a78bc8; }
.inq-details-panel.is-ship { border-top: 3px solid #6bb5a8; }
.inq-details-panel.is-sample { border-top: 3px solid #a78bc8; }
.inq-details-panel.is-intake .inq-details-icon { background: #eef4ff; color: #4a72b8; }
.inq-details-panel.is-qty .inq-details-icon { background: #f5f0ff; color: #7c5fae; }
.inq-detail-empty { color: #cbd5e1; font-weight: 600; }

.inqshow .qshow-hero { align-items: stretch; }
.inqshow-hero-main { min-width: 0; flex: 1; position: relative; z-index: 1; }
.inqshow-sub { margin: 8px 0 0; opacity: .92; font-size: 14px; }
.inqshow-total { text-align: right; }
.inqshow-flow { margin: 4px 0 2px; overflow-x: auto; padding-bottom: 4px; }
.inqshow-kpis { margin-bottom: 4px; }
.inqshow-size { padding-bottom: 16px; }
.inqshow-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 18px 8px;
}
.inqshow-size-total {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 13px;
  color: #64748b;
}
.inqshow-size-total strong { color: #0f172a; }
.inqshow-files { padding: 8px 18px 16px; }
.inqshow-actions .inq-actions { padding: 0 18px 16px; }

.inq-status-card { padding: 0; overflow: hidden; border-color: #dbe8fb; }
.inq-status-top {
  padding: 18px 20px;
  background: linear-gradient(90deg, #f5f9ff 0%, #fff 100%);
  border-bottom: 1px solid #e8f0fa;
}
.inq-status-current {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.inq-status-current-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #5b8fd9;
  font-size: 22px;
  flex-shrink: 0;
}
.inq-status-current small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.inq-status-current strong { display: inline-block; margin-top: 4px; }
.inq-status-current p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 600;
}
.inq-status-group { padding: 16px 18px 6px; }
.inq-status-group.is-close {
  padding-top: 8px;
  padding-bottom: 16px;
  border-top: 1px dashed #e8eef5;
  background: linear-gradient(180deg, #fcfdff 0%, #fafbfd 100%);
}
.inq-status-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.inq-status-group.is-close .inq-status-group-head { color: #94a3b8; }
.inq-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.inq-status-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inq-status-pick { margin: 0; }
.inq-status-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.inq-status-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7, 34, 79, .08);
  border-color: #d4e3f8;
}
.inq-status-option-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.inq-status-option-copy { min-width: 0; }
.inq-status-option-copy strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.inq-status-option-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 600;
}
.inq-status-option-go {
  color: #cbd5e1;
  font-size: 14px;
  transition: color .15s, transform .15s;
}
.inq-status-option:hover .inq-status-option-go {
  color: #7aa0d4;
  transform: translateX(2px);
}
.inq-status-option.is-review .inq-status-option-ico { background: #eef4ff; color: #4a72b8; }
.inq-status-option.is-pending .inq-status-option-ico { background: #fff6e8; color: #c9a06a; }
.inq-status-option.is-quote .inq-status-option-ico { background: #eefaf8; color: #3d8a7a; }
.inq-status-option.is-negotiation .inq-status-option-ico { background: #f5f0ff; color: #7c5fae; }
.inq-status-option.is-confirmed .inq-status-option-ico { background: #eefaf4; color: #3d7a5c; }
.inq-status-option.is-reject .inq-status-option-ico,
.inq-status-option.is-cancel .inq-status-option-ico { background: #fff1f2; color: #c45b6a; }
.inq-status-option.is-danger:hover { border-color: #f0d4d8; }
@media (max-width: 760px) {
  .inq-status-grid, .inq-status-grid.is-compact { grid-template-columns: 1fr; }
}
.inqshow .card > h4 {
  padding: 16px 18px 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inqshow .card .table-wrap { padding: 8px 12px 14px; }
.inq-details-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  background: rgba(255,255,255,.72);
}
.inq-details-head strong {
  font-size: 13px;
  color: #0f172a;
}
.inq-details-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #5b7db0;
  font-size: 15px;
}
.inq-details-panel.is-program .inq-details-icon { background: #eefaf4; color: #3d7a5c; }
.inq-details-panel.is-fabric .inq-details-icon { background: #fff6e8; color: #9a7040; }
.inq-details-panel.is-ship .inq-details-icon { background: #eefaf8; color: #3d7a72; }
.inq-details-panel.is-sample .inq-details-icon { background: #f5f0ff; color: #7c5fae; }
.inq-details-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px 14px;
}
.inq-detail-tile {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #edf2f7;
  min-height: 58px;
}
.inq-detail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.inq-detail-label i { font-size: 11px; opacity: .85; }
.inq-detail-value {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 700;
  word-break: break-word;
}

@media (max-width: 980px) {
  .inq-details-grid { grid-template-columns: 1fr; }
  .inq-layout { grid-template-columns: 1fr; }
  .inq-checks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .inq-details-tiles { grid-template-columns: 1fr; }
}

/* Merchandising desk */
.mdesk { display: flex; flex-direction: column; gap: 16px; }
.mdesk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr);
  gap: 16px;
  align-items: start;
}
.mdesk-main, .mdesk-side { display: flex; flex-direction: column; gap: 16px; }
.mdesk-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mdesk-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8eef7;
  background: #fbfcfe;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}
.mdesk-step:hover { border-color: #c5daf5; background: #f8fbff; }
.mdesk-step.is-done { background: #f3fbf7; border-color: #d5ebe0; }
.mdesk-step.is-pending { background: #fff8f0; border-color: #f0e0c8; }
.mdesk-step-n {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: #eef4ff; color: #0b3a7a; font-size: 11px; font-weight: 800;
}
.mdesk-step.is-done .mdesk-step-n { background: #e8f8ef; color: #3d7a5c; }
.mdesk-step-l small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 2px; }

/* Color-size matrix */
.mx-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 8px;
}
.mx-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px 40px;
  gap: 8px;
  align-items: end;
}
.mx-field {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.mx-field > label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.mx-field select { width: 100%; max-width: 100%; }
.mx-field .select2-container { width: 100% !important; max-width: 100% !important; display: block !important; }
.mx-field input.js-cs-qty {
  width: 100%;
  max-width: 100%;
  height: 44px;
  box-sizing: border-box;
}
.mx-field-del { align-items: stretch; }
.mx-field-del .ico {
  height: 44px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .mx-row { grid-template-columns: 1fr 1fr; }
  .mx-field-qty { grid-column: 1 / 2; }
  .mx-field-del { grid-column: 2 / 3; }
}

.line-head, .line-row {
  display: grid;
  gap: 8px;
  align-items: center;
}
.line-head {
  padding: 0 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.line-rows { display: flex; flex-direction: column; gap: 8px; }
.line-cell input, .line-cell select { width: 100%; }
.line-card .select2-container { display: block !important; width: 100% !important; }
.line-card .select2-container--default .select2-selection--single.dx-s2-sel,
.line-card .dx-s2 .select2-selection--single {
  height: 42px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: #f7fbff;
}
.line-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 12px;
  padding-right: 52px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}
.line-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  width: 32px;
  right: 4px;
}
.line-card .select2-container--default .select2-selection--single .select2-selection__clear {
  height: 40px;
  line-height: 40px;
  margin-right: 28px;
}
.line-card .select2-container--default.select2-container--focus .select2-selection--single,
.line-card .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #1c74f2;
  box-shadow: 0 0 0 4px rgba(28, 116, 242, .14);
  background: #fff;
}
.line-price-hint {
  min-height: 42px;
  border-radius: 12px;
  border: 1px dashed #d7e3f4;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}
.line-price-hint.is-ready {
  border-style: solid;
  border-color: #d5ebe0;
  background: #f3fbf7;
  color: #3d7a5c;
}
.line-price-hint small {
  display: block;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
}
.line-price-hint b {
  font-size: 13px;
  color: #0f172a;
  font-weight: 800;
}

.mdesk-step > .bi-chevron-right { color: #94a3b8; font-size: 12px; }
.mdesk-hint { margin: 12px 0 0; font-size: 13px; color: #5a6a80; line-height: 1.45; }
.mdesk-hint.ok { color: #3d7a5c; }
.mdesk-hint.warn { color: #8a7348; }
.mdesk-hint-inline { color: #3d6ea8; font-size: 13px; font-weight: 500; }
.mdesk-prog {
  height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin-bottom: 4px;
}
.mdesk-prog span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1c74f2, #22c7ff); }
.mdesk-dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
a.oshow-kpi { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.oshow-kpi:hover { border-color: #c5daf5; box-shadow: 0 6px 18px rgba(28, 116, 242, .08); transform: translateY(-1px); }
a.oshow-kpi.is-active { border-color: #1c74f2; background: #f5f9ff; }
.mdesk-jump {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.mdesk-jump-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 14px;
  border: 1px solid #e8eef7; background: #fff;
  color: #0f172a;
}
.mdesk-jump-card i { font-size: 18px; color: #1c74f2; }
.mdesk-jump-card strong { font-size: 13px; }
.mdesk-jump-card span { font-size: 12px; color: #64748b; font-weight: 600; }
.mdesk-jump-card:hover { border-color: #c5daf5; background: #f8fbff; }
.mdesk-attn { margin: 0; padding-left: 18px; color: #334155; font-size: 13px; line-height: 1.6; }
.mdesk-dash-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .mdesk-dash-kpis, .mdesk-jump, .mdesk-dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .mdesk-layout { grid-template-columns: 1fr; }
  .mdesk-steps { grid-template-columns: 1fr; }
}

/* Merchandising file desk (show) */
.mshow { display: flex; flex-direction: column; gap: 18px; }
.mshow > .card.mshow-card,
.mshow .mdesk-layout .card.mshow-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4ecf6;
  box-shadow: 0 10px 28px rgba(15, 39, 68, .05);
}
.mshow .card.mshow-card > h4 { margin: 0; }

.mshow-status {
  display: grid;
  grid-template-columns: auto 1.35fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f9ff 0%, #eef5fc 100%);
  border: 1px solid #d9e6f5;
  box-shadow: 0 12px 30px rgba(28, 116, 242, .06);
}
.mshow-status.is-ok {
  background: linear-gradient(135deg, #f2fbf6 0%, #eaf7f0 100%);
  border-color: #cfe8da;
  box-shadow: 0 12px 30px rgba(45, 140, 90, .06);
}
.mshow-status.is-warn {
  background: linear-gradient(135deg, #fff9f2 0%, #fff3e6 100%);
  border-color: #f0dfc4;
  box-shadow: 0 12px 30px rgba(200, 130, 40, .06);
}
.mshow-status.is-info { /* default */ }
.mshow-status-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #dce8f6;
  color: #1c74f2; font-size: 24px;
  box-shadow: 0 6px 16px rgba(15, 39, 68, .06);
}
.mshow-status.is-ok .mshow-status-icon { color: #2f8a5b; border-color: #d0eadc; }
.mshow-status.is-warn .mshow-status-icon { color: #c47a20; border-color: #f0dfc4; }
.mshow-status-main small,
.mshow-status-next small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #7b8da6;
  margin-bottom: 4px;
}
.mshow-status-main strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.02em;
  color: #0f2744;
  margin-bottom: 12px;
}
.mshow-prog {
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(15, 39, 68, .06);
  overflow: hidden;
  margin-bottom: 8px;
}
.mshow-prog span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1565d8, #3aa0ff);
}
.mshow-status.is-ok .mshow-prog span { background: linear-gradient(90deg, #2f8a5b, #4cba86); }
.mshow-status.is-warn .mshow-prog span { background: linear-gradient(90deg, #c47a20, #e0a045); }
.mshow-status-main em,
.mshow-status-next em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.4;
}
.mshow-status-next {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15, 39, 68, .06);
}
.mshow-status-next a,
.mshow-status-next > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0f2744;
  text-decoration: none;
}
.mshow-status-next a:hover { color: #1c74f2; }
.mshow-status-next a i { font-size: 14px; }

.mshow-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mshow-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(15, 39, 68, .04);
  position: relative;
  overflow: hidden;
}
.mshow-fact::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: #94a3b8;
}
.mshow-fact.f1::before { background: linear-gradient(180deg, #1c74f2, #5aa4ff); }
.mshow-fact.f2::before { background: linear-gradient(180deg, #0f9f6e, #4cba86); }
.mshow-fact.f3::before { background: linear-gradient(180deg, #c47a20, #e0a045); }
.mshow-fact.f4::before { background: linear-gradient(180deg, #5b6bcf, #8490e0); }
.mshow-fact > i {
  width: 36px; height: 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4f8fd; color: #3d6ea8; font-size: 16px; flex-shrink: 0;
}
.mshow-fact.f1 > i { background: #eef5ff; color: #1c74f2; }
.mshow-fact.f2 > i { background: #eefaf4; color: #0f9f6e; }
.mshow-fact.f3 > i { background: #fff6ea; color: #c47a20; }
.mshow-fact.f4 > i { background: #f0f2ff; color: #5b6bcf; }
.mshow-fact span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.mshow-fact strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -.02em;
  color: #0f2744;
  line-height: 1.2;
}
.mshow-fact small { font-size: 12px; color: #64748b; font-weight: 700; }

.mshow-rail-card .mshow-card-head { padding-bottom: 4px; }
.mshow-rail {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 4px 16px 18px;
  overflow-x: auto;
}
.mshow-rail-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  max-width: 120px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  flex: 1 1 0;
}
.mshow-rail-n {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: #eef2f7; color: #64748b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #d7e2ef;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mshow-rail-step:hover .mshow-rail-n { transform: translateY(-1px); }
.mshow-rail-step.is-done .mshow-rail-n {
  background: #e8f8ef; color: #2f8a5b; box-shadow: 0 0 0 2px #b9dfc9;
}
.mshow-rail-step.is-next .mshow-rail-n {
  background: #1c74f2; color: #fff; box-shadow: 0 0 0 2px #a8c9f7, 0 8px 18px rgba(28,116,242,.28);
}
.mshow-rail-l {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.3;
}
.mshow-rail-step.is-done .mshow-rail-l { color: #2f8a5b; }
.mshow-rail-step.is-next .mshow-rail-l { color: #1c74f2; }
.mshow-rail-line {
  flex: 0 0 18px;
  height: 2px;
  margin-top: 17px;
  background: #d7e2ef;
  border-radius: 99px;
  align-self: flex-start;
}
.mshow-rail-line.is-done { background: #9fd0b4; }

.mshow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}
.mshow-card-head h4 {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #0f2744;
}
.mshow-card-head span,
.mshow-card-head a {
  font-size: 12px;
  font-weight: 700;
  color: #1c74f2;
  text-decoration: none;
  white-space: nowrap;
}
.mshow-card-head a:hover { text-decoration: underline; }
.mshow-num {
  width: 24px; height: 24px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: #eef5ff; color: #1c74f2;
}

.mshow-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  padding: 0 16px 8px;
}
.mshow-kv-stack { grid-template-columns: 1fr; }
.mshow-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f7;
  align-items: start;
}
.mshow-kv:last-child { border-bottom: 0; }
.mshow-kv span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-top: 3px;
}
.mshow-kv strong {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.mshow-note {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7fafd;
  border: 1px dashed #d7e2ef;
}
.mshow-note span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}
.mshow-note p { margin: 0; font-size: 13px; color: #334155; line-height: 1.5; font-weight: 600; }

.mshow-table-wrap { padding: 0 16px 16px; overflow-x: auto; }
.mshow-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 360px; }
.mshow-table th,
.mshow-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
}
.mshow-table thead th {
  background: #f7fafd;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  border-bottom: 1px solid #e4ecf6;
}
.mshow-table thead th:first-child { border-radius: 10px 0 0 10px; }
.mshow-table thead th:last-child { border-radius: 0 10px 10px 0; }
.mshow-table tbody tr:hover td { background: #fafcff; }
.mshow-table td { color: #1e293b; font-weight: 600; }
.mshow-table td:last-child,
.mshow-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mshow-empty {
  margin: 0 16px 16px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d7e2ef;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.mshow-docs { list-style: none; margin: 0; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.mshow-docs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f7fafd;
  border: 1px solid #e8eef7;
  font-size: 13px;
  font-weight: 600;
}
.mshow-docs span { color: #64748b; }
.mshow-docs a { color: #1c74f2; text-decoration: none; }
.mshow-docs a:hover { text-decoration: underline; }
.mshow-link-row { padding: 0 16px 16px; }
.mshow-link-row a { font-size: 13px; font-weight: 700; color: #1c74f2; text-decoration: none; }

.mshow-pipe { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 14px; }
.mshow-pipe-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8fafc;
  font-size: 13px;
}
.mshow-pipe-item.has-item { background: #fff; border-color: #e8eef7; }
.mshow-pipe-item span { color: #94a3b8; font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.mshow-pipe-item a,
.mshow-pipe-item strong { color: #0f2744; font-weight: 700; text-decoration: none; }
.mshow-pipe-item a:hover { color: #1c74f2; }
.mshow-pipe-item em { color: #94a3b8; font-style: normal; font-weight: 600; }
.mshow-pipe-item.is-here {
  background: #eef5ff;
  border-color: #c5daf5;
  box-shadow: inset 3px 0 0 #1c74f2;
}

.mshow-cost { display: grid; gap: 8px; padding: 0 16px 8px; }
.mshow-cost > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
}
.mshow-cost > div.is-profit {
  background: #eefaf4;
  border: 1px solid #d0eadc;
}
.mshow-cost span { color: #64748b; font-weight: 600; }
.mshow-cost strong { color: #0f2744; font-weight: 800; font-variant-numeric: tabular-nums; }
.mshow-cost > div.is-profit strong { color: #2f8a5b; }
.mshow-cost-note {
  margin: 0 16px 16px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .mshow-rail-step { min-width: 80px; }
}
@media (max-width: 980px) {
  .mshow-status { grid-template-columns: auto 1fr; }
  .mshow-status-next { grid-column: 1 / -1; }
  .mshow-facts,
  .mshow-kv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mshow-status { grid-template-columns: 1fr; }
  .mshow-status-icon { width: 44px; height: 44px; }
  .mshow-facts,
  .mshow-kv-grid { grid-template-columns: 1fr; }
  .mshow-kv { grid-template-columns: 1fr; gap: 4px; }
  .mshow-rail-l { font-size: 11px; }
}


