/*
 * Morsix app replica, matched to screenshots of the real app (Morsix Screenshots/Web and /Mobile).
 * Everything is scoped under .mx (web) or .mxp (mobile app). Sizes are the app's own; the page
 * scales whole screens down with .fit when it shows them as pictures.
 */
.mx {
	/* The app is always light: keeps native fields white when the page is in dark mode. */
	color-scheme: light;
	--navy: #173151;
	--cyan: #18aee3;
	--cyan-text: #106f92;
	--blue: #1a73e8;
	--ink: #25313c;
	--ink-2: #3d4a58;
	--muted: #6b7684;
	--subtle: #9aa4ad;
	--line: #e6e9ee;
	--line-2: #edf0f4;
	--page: #fcfcfc;
	--placed: #00a181;
	--picked: #ffab00;
	--qc: #f55f44;
	--packed: #5379ff;
	--shipped: #d67d3e;
	--completed: #18aee3;
	position: relative;
	display: flex;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ink);
	background: var(--page);
	text-align: left;
	letter-spacing: 0;
	overflow: hidden;
	/* clip, unlike hidden, can't be scrolled by focus or scrollIntoView toward the parked drawer. */
	overflow: clip;
	-webkit-font-smoothing: antialiased;
}
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
:where(.mx) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:where(.mx) input, :where(.mx) select { font: inherit; color: inherit; }
.mx svg { display: block; width: 14px; height: 14px; flex: 0 0 auto; }
.mx [hidden] { display: none !important; }
.mx :focus-visible { outline: 2px solid var(--cyan-text); outline-offset: 2px; }

/* ---------- Shell: sidebar, top bar, Kore systems rail ---------- */
.mx-side { flex: 0 0 230px; display: flex; flex-direction: column; background: var(--navy); color: #fff; min-height: 100%; position: relative; z-index: 2; }
.mx-logo { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px 16px; }
.mx-logo img { height: 34px; width: auto; display: block; }
.mx-collapse { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 11px; }
.mx-ws { margin: 4px 14px 12px; padding: 6px 10px 7px; border-radius: 6px; background: #1f4a73; font-size: 13px; position: relative; }
.mx-ws::before { content: ''; display: block; width: 21px; height: 5px; margin: 2px 0 5px; background: url('../img/nav/window-circles.svg') no-repeat 0 0 / contain; }
.mx-ws small { display: block; font-size: 9.5px; opacity: .75; }
.mx-ws i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; opacity: .85; }
.mx-side-label { padding: 2px 16px 12px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.mx-nav { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mx-nav-group { display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 16px; font-size: 13px; color: rgba(255,255,255,.92); position: relative; }
.mx-nav-ic { width: 16px; height: 16px; flex: 0 0 16px; background: #aaa; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.mx-nav-group.has-page .mx-nav-ic, .mx-nav-group:hover .mx-nav-ic, .mx-nav-item.is-top.is-active .mx-nav-ic, .mx-nav-item.is-top:hover .mx-nav-ic { background: #fff; }
.mx-nav-ic[data-ic="dashboard"] { -webkit-mask-image: url('../img/nav/dashboard.svg'); mask-image: url('../img/nav/dashboard.svg'); }
.mx-nav-ic[data-ic="warehouse"] { -webkit-mask-image: url('../img/nav/warehouse.svg'); mask-image: url('../img/nav/warehouse.svg'); }
.mx-nav-ic[data-ic="inventory"] { -webkit-mask-image: url('../img/nav/inventory.svg'); mask-image: url('../img/nav/inventory.svg'); }
.mx-nav-ic[data-ic="production"] { -webkit-mask-image: url('../img/nav/production.svg'); mask-image: url('../img/nav/production.svg'); }
.mx-nav-ic[data-ic="billing"] { -webkit-mask-image: url('../img/nav/billing.svg'); mask-image: url('../img/nav/billing.svg'); }
.mx-nav-ic[data-ic="reports"] { -webkit-mask-image: url('../img/nav/reports.svg'); mask-image: url('../img/nav/reports.svg'); }
.mx-nav-ic[data-ic="settings"] { -webkit-mask-image: url('../img/nav/settings.svg'); mask-image: url('../img/nav/settings.svg'); }
.mx .mx-nav-group .chev { margin-left: auto; width: 10px; height: 10px; opacity: .6; }
.mx-nav-item { display: flex; align-items: center; width: 100%; height: 30px; padding: 0 16px 0 36px; font-size: 12.5px; color: rgba(255,255,255,.88); position: relative; }
.mx-nav-item::before { content: ''; position: absolute; left: 26px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: rgba(255,255,255,.75); }
.mx-nav-item.is-top { padding-left: 16px; gap: 9px; height: 34px; font-size: 13px; }
.mx-nav-item.is-top::before { display: none; }
.mx-nav-item:hover, .mx-nav-group:hover { background: linear-gradient(90deg, rgba(255,255,255,.09), transparent); }
.mx-nav-item.is-active { background: #14273f; color: #fff; }
.mx-nav-hint { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: mxPing 1.8s ease-out infinite; }
@keyframes mxPing { 0% { box-shadow: 0 0 0 0 rgba(24,174,227,.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(24,174,227,0); } }
.mx-user { display: flex; align-items: center; gap: 9px; padding: 12px 14px 12px 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.mx-user small { display: block; opacity: .7; font-size: 10px; }
.mx-user .dots { margin-left: auto; letter-spacing: 1px; opacity: .8; }
.mx-av { border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-weight: 600; flex: 0 0 auto; }
.mx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-top { height: 44px; flex: 0 0 44px; background: var(--navy); display: flex; align-items: center; gap: 10px; padding: 0 16px 0 14px; color: rgba(255,255,255,.75); font-size: 12px; }
.mx-top .mx-search { display: flex; align-items: center; gap: 7px; }
.mx-top-r { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.mx-top-r small { font-size: 9.5px; opacity: .85; }
.mx-bell { position: relative; }
.mx-bell b { position: absolute; top: -6px; right: -9px; min-width: 15px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--cyan); color: #fff; font-size: 8px; display: grid; place-items: center; }
.mx-flag { width: 16px; height: 16px; border-radius: 50%; background: repeating-linear-gradient(#c8102e 0 2px, #fff 2px 4px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; overflow: hidden; }
.mx-flag::before { content: ''; position: absolute; left: 0; top: 0; width: 8px; height: 8px; background: #233e8b; }
.mx-rail { flex: 0 0 32px; background: var(--navy); display: flex; flex-direction: column; padding-top: 44px; border-left: 1px solid rgba(255,255,255,.06); }
.mx-rail span { height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-bottom: 1px solid rgba(164,178,210,.193); }
.mx-rail span.is-on { background: rgba(255,255,255,.08); }
.mx-rail img { width: 15px; height: 15px; object-fit: contain; display: block; }
.mx-main { flex: 1; min-height: 0; overflow: auto; padding: 22px 26px 26px; position: relative; scrollbar-width: thin; background: var(--page); }

/* ---------- Page heads ---------- */
.mx-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.mx-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.mx-title.is-blue { color: #1f5f8b; font-weight: 500; font-size: 17px; }
.mx-star { color: #ffc107; font-size: 16px; line-height: 1; }
.mx-star.is-off { color: #c6ccd3; }
.mx-sub { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.mx-head-r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mx-count-head { margin: 0 0 10px; font-size: 25px; font-weight: 400; color: var(--ink); }
.mx-count-head b { font-weight: 700; }
.mx-progress { display: flex; height: 7px; border-radius: 4px; overflow: hidden; max-width: 500px; }
.mx-progress i { display: block; height: 100%; }
.mx-legend-row { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); margin: 8px 0 30px; max-width: 560px; }
.mx-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.mx-legend-row span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mx-legend-row b { font-weight: 600; margin-left: -3px; }

/* ---------- Controls ---------- */
.mx-btn { height: 32px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; border: 1px solid #e2e9f0; background: #fff; font-size: 12px; font-weight: 500; color: #3d4a58; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s, transform .15s; }
.mx-btn:hover { border-color: var(--cyan); color: var(--cyan-text); }
.mx .mx-btn svg { width: 13px; height: 13px; }
.mx-btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 4px 12px -3px rgba(26,115,232,.5); }
.mx-btn--blue:hover { background: #2b7ff0; border-color: #2b7ff0; color: #fff; }
.mx-btn--cyan { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.mx-btn--cyan:hover { background: #13a0d2; border-color: #13a0d2; color: #fff; }
.mx-btn--outline { border-color: #18aee3; color: #106f92; }
.mx-btn--lg { height: 38px; padding: 0 18px; font-size: 13px; }
.mx-btn--block { width: 100%; }
.mx-btn.is-disabled, .mx-btn[disabled] { opacity: .45; pointer-events: none; }
.mx-btn kbd { font: 600 9px/1 'Poppins', sans-serif; padding: 3px 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.mx-btn:not(.mx-btn--blue):not(.mx-btn--cyan) kbd { background: #eef2f6; color: var(--muted); }
.mx-seg { display: inline-flex; border: 1px solid #e2e9f0; border-radius: 6px; overflow: hidden; background: #fff; height: 32px; }
.mx-seg > * { padding: 0 12px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: #3d4a58; }
.mx-seg > .is-on { background: var(--blue); color: #fff; }
.mx .mx-seg svg { width: 13px; height: 13px; }
.mx-input { height: 32px; width: 100%; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; padding: 0 11px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; outline: none; color: var(--ink); }
.mx-input.is-focus, .mx-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(24,174,227,.14); }
.mx-input--search { padding-left: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239aa4ad' stroke-width='1.8'%3E%3Ccircle cx='5' cy='5' r='4'/%3E%3Cpath d='m8 8 3 3'/%3E%3C/svg%3E") 11px 50% no-repeat; color: #9aa4ad; }
.mx-select { justify-content: space-between; }
.mx-select::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid #8a96a3; border-bottom: 1.5px solid #8a96a3; transform: rotate(45deg) translate(-2px, -2px); flex: 0 0 7px; }
.mx-label { display: block; font-size: 12px; color: #444; margin-bottom: 7px; font-weight: 500; }
.mx-cap { font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #8a96a3; display: block; }
.mx-check { width: 14px; height: 14px; border: 1.5px solid #c4cdd6; border-radius: 3px; display: inline-grid; place-items: center; background: #fff; flex: 0 0 14px; }
.mx-check.is-on { background: #2f6feb; border-color: #2f6feb; }
.mx-check.is-on::after { content: ''; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- Chips ---------- */
.mx-chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 1.15; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
.mx-chip--solid { background: var(--c); color: #fff; border-radius: 3px; }
.mx-chip[data-s="placed"], .mx-chip[data-s="picking"] { --c: #00876c; }
.mx-chip[data-s="picked"] { --c: #b07800; }
.mx-chip[data-s="qc"] { --c: #d8432a; }
.mx-chip[data-s="packed"] { --c: #3f63e6; }
.mx-chip[data-s="shipped"] { --c: #b8642a; }
.mx-chip[data-s="completed"] { --c: #0f86b3; }
.mx-chip--solid[data-s="placed"] { --c: #00a181; }
.mx-chip--solid[data-s="picking"], .mx-chip--solid[data-s="picked"] { --c: #ffab00; }
.mx-chip--solid[data-s="qc"] { --c: #3cbc78; }
.mx-chip--solid[data-s="packed"] { --c: #5379ff; }
.mx-chip--solid[data-s="shipped"] { --c: #d67d3e; }
.mx-chip--solid[data-s="completed"] { --c: #18aee3; }
.mx-chip[data-s="ok"] { --c: #15803d; }
.mx-chip[data-s="paid"] { --c: #3b9b5f; }
.mx-chip[data-s="unpaid"] { --c: #d32607; }
.mx-chip[data-s="out"] { --c: #c0392b; }
.mx-chip[data-s="low"] { --c: #b45309; }
.mx-chip[data-s="muted"] { --c: #6b7684; }
.mx-chip[data-s="info"] { --c: #2563eb; }
.mx-chip[data-s="new"] { --c: #1a9a5c; font-size: 9px; letter-spacing: .04em; }
.mx-chip[data-s="active"] { --c: #1a8f4c; }
.mx-chip[data-s="salable"] { --c: #2f5fe0; }

/* ---------- Cards and tables ---------- */
.mx-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mx-card-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; }
.mx-card-h small { font-weight: 500; font-size: 10.5px; color: var(--muted); padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line); }
.mx-card-hr { margin-left: auto; display: flex; gap: 8px; align-items: center; font-weight: 400; }
.mx-card-b { padding: 14px; }
.mx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mx-table th { text-align: left; font-weight: 600; color: #3d4a58; font-size: 11.5px; background: #f8fafc; padding: 10px 12px; border-bottom: 1px solid #dfe5ec; border-right: 1px solid #edf0f4; white-space: nowrap; }
.mx-table td { padding: 9px 12px; border-bottom: 1px solid #edf0f4; border-right: 1px solid #f1f3f6; vertical-align: middle; white-space: nowrap; }
.mx-table th:last-child, .mx-table td:last-child { border-right: 0; }
.mx-table tbody tr:nth-child(even) td { background: #fafbfc; }
.mx-table tr.is-click { cursor: pointer; }
.mx-table tr.is-click:hover td { background: #f7faff; }
.mx-table tr.is-sel td { background: #e5ecfb !important; }
.mx-table tr.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.mx-table tr.is-flash td { animation: mxFlash 1.6s ease-out; }
@keyframes mxFlash { 0% { background: #dff4fc; } 100% { background: transparent; } }
.mx-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mx-table .sort::after { content: ' ↕'; color: #b7c0c9; font-weight: 400; }
.mx-table.is-plain th { background: transparent; border-right: 0; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #8a96a3; font-weight: 500; }
.mx-table.is-plain td { border-right: 0; }
.mx-table.is-plain tbody tr:nth-child(even) td { background: transparent; }
.mx-table.is-pick th, .mx-table.is-pick td { padding-left: 8px; padding-right: 8px; }
.mx-table.is-pick th { white-space: normal; }
.mx-pick-loc { display: none; }
.mx-link { color: var(--blue); font-weight: 500; }
.mx-code { font-weight: 600; letter-spacing: .01em; }
.mx-qty { display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 4px; background: #eef2f6; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.mx-thumb { width: 28px; height: 28px; border-radius: 5px; background: #f1f4f7; display: inline-grid; place-items: center; flex: 0 0 28px; overflow: hidden; }
.mx .mx-thumb svg, .mxp .mx-thumb svg { width: 80%; height: 80%; }
.mx-namecell { display: flex; align-items: center; gap: 9px; }
.mx-namecell small { display: block; color: var(--muted); font-size: 10.5px; }
.mx-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 11.5px; color: var(--muted); }
.mx-pages { display: flex; gap: 5px; }
.mx-pages b, .mx-pages i { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-weight: 500; border: 1px solid #e2e9f0; background: #fff; font-size: 11px; }
.mx-pages b { background: var(--blue); border-color: var(--blue); color: #fff; }
.mx-tabs { display: flex; gap: 6px; padding: 12px 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-items: center; }
.mx-tab { --c: var(--blue); height: 32px; padding: 0 11px; border-radius: 5px; border: 1px solid #e2e9f0; background: #fff; font-size: 11.5px; font-weight: 500; color: #3d4a58; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mx-tab span { font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #eef2f6; color: #5a6878; }
.mx-tab.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.mx-tab.is-on span { background: rgba(255,255,255,.28); color: #fff; }
.mx-tab[data-s="placed"] { --c: #00a181; } .mx-tab[data-s="picked"] { --c: #e09a00; } .mx-tab[data-s="qc"] { --c: #f55f44; }
.mx-tab[data-s="packed"] { --c: #5379ff; } .mx-tab[data-s="shipped"] { --c: #d67d3e; } .mx-tab[data-s="completed"] { --c: #129bcb; }
.mx-paytabs { display: flex; gap: 6px; padding: 0 14px 12px; align-items: center; font-size: 11.5px; color: #3d4a58; }
.mx-paytabs .mx-tab { height: 28px; }

/* ---------- Orders board ---------- */
.mx-board { display: grid; grid-auto-flow: column; grid-auto-columns: 238px; gap: 9px; align-items: start; }
.mx-col { background: #f5f6f8; border-radius: 4px; min-width: 0; padding-bottom: 6px; }
.mx-col-h { --c: var(--placed); display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 9px; background: var(--c); color: #fff; border-radius: 4px 4px 0 0; font-size: 11.5px; font-weight: 600; }
.mx-col-h span { font-size: 9.5px; padding: 1px 7px; border-radius: 9px; background: rgba(0,0,0,.18); font-weight: 600; }
.mx-col[data-s="picked"] .mx-col-h { --c: var(--picked); }
.mx-col[data-s="qc"] .mx-col-h { --c: var(--qc); }
.mx-col[data-s="packed"] .mx-col-h { --c: var(--packed); }
.mx-col[data-s="shipped"] .mx-col-h { --c: var(--shipped); }
.mx-col[data-s="completed"] .mx-col-h { --c: var(--completed); }
.mx-col-b { padding: 8px 8px 2px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mx-ocard { display: block; width: 100%; background: #fff; border: 1px solid #e6e8eb; border-radius: 4px; padding: 10px 11px 8px; font-size: 11px; color: var(--ink); transition: box-shadow .2s, border-color .2s; text-align: left; }
.mx-ocard:hover { border-color: #b9d6e3; }
.mx-ocard.is-hl { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(24,174,227,.3), 0 10px 22px -12px rgba(16,111,146,.55); }
.mx-ocard-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mx-ocard-top b { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.mx .mx-ocard-top .copy { width: 11px; height: 11px; color: #8a96a3; }
.mx-ocard-top .mx-check { margin-left: auto; }
.mx-ocard-row { display: flex; align-items: center; gap: 6px; color: #4a5868; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx .mx-ocard-row svg { width: 11px; height: 11px; color: #8a96a3; }
.mx-ocard-chips { display: flex; gap: 5px; margin: 8px 0 7px; }
.mx-ocard-meta { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; margin: 0; font-size: 10px; color: #8a96a3; }
.mx-ocard-meta dd { margin: 0; text-align: right; color: #6b7684; }
.mx-ocard-meta { font-size: 9.5px; }
.mx-ocard-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #f1f3f6; color: #6b7684; font-size: 10.5px; }
.mx-ocard-foot span { display: inline-flex; align-items: center; gap: 4px; }
.mx .mx-ocard-foot svg { width: 11px; height: 11px; }
.mx-resume { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 4px; background: #e6f3fd; color: #1a73e8; font-weight: 600; font-size: 10px; }
.mx-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.mx-col-more { display: block; text-align: center; font-size: 10.5px; color: var(--muted); padding: 4px 0 2px; }

/* ---------- Drawer ---------- */
.mx-drawer-scrim { position: absolute; inset: 0 0 0 230px; background: rgba(20,32,48,.38); z-index: 5; opacity: 0; transition: opacity .25s; }
.mx-drawer-scrim.is-on { opacity: 1; }
.mx-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: min(560px, 62%); background: #fff; box-shadow: -18px 0 40px -18px rgba(20,30,45,.35); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.mx-drawer.is-on { transform: none; }
.mx-drawer.is-wide { width: min(860px, 74%); }
.mx-drawer-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.mx-drawer-h h5 { margin: 0; font-size: 17px; font-weight: 500; }
.mx-drawer-h h5 small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.mx-x { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #18aee3; background: #eaf7fd; font-size: 13px; }
.mx .mx-x svg { width: 12px; height: 12px; }
.mx-drawer-b { flex: 1; overflow: auto; padding: 18px 20px; }
.mx-drawer-f { padding: 14px 20px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; border-top: 1px solid var(--line-2); }
.mx-count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 4px; background: #e6f3fd; color: var(--blue); font-size: 10px; font-weight: 600; margin-left: 5px; vertical-align: 2px; }
.mx-notice { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 4px; background: #fffaeb; border: 1px solid #fde9b4; color: #d18f00; font-size: 11px; margin-bottom: 18px; }
.mx-timer-lg { font-size: 26px; font-weight: 500; color: var(--cyan); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.mx-pickbtn { height: 24px; padding: 0 12px; border-radius: 4px; background: #e6f3fd; color: #1a73e8; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; }
.mx-holdbtn { height: 24px; padding: 0 10px; border-radius: 4px; background: #fff3d6; color: #d38b00; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; }
.mx-pickedchip { height: 24px; padding: 0 14px; border-radius: 4px; background: #e3f7ea; color: #22a06b; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; }

/* ---------- Timeline ---------- */
.mx-tl { list-style: none; margin: 0; padding: 0; }
.mx-tl li { position: relative; padding: 0 0 11px 20px; font-size: 12px; }
.mx-tl li::before { content: ''; position: absolute; left: 3px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #c4cdd6); }
.mx-tl li::after { content: ''; position: absolute; left: 7px; top: 15px; bottom: 0; width: 1px; background: #e2e7ec; }
.mx-tl li:last-child::after { display: none; }
.mx-tl li small { color: var(--muted); margin-left: 6px; }
.mx-tl li.is-todo { color: var(--subtle); }
.mx-tl li.is-todo::before { background: #fff; border: 1.5px solid #c4cdd6; }

/* ---------- Steps, box rows, quantity and changes (order wizard, feature cards) ---------- */
.mx-steps { display: flex; gap: 14px; margin-bottom: 12px; font-size: 11.5px; color: var(--subtle); flex-wrap: wrap; }
.mx-steps span { display: inline-flex; align-items: center; gap: 6px; }
.mx-steps span::before { content: attr(data-n); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #e5e9ee; color: #6b7684; }
.mx-steps span.is-done::before { content: '✓'; background: transparent; color: var(--cyan); font-size: 12px; }
.mx-steps span.is-now { color: var(--ink); font-weight: 600; }
.mx-steps span.is-now::before { background: var(--cyan); color: #fff; }
.mx-fig { text-align: right; }
.mx-fig small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mx-fig b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-block; }
.mx-fig b.is-bump { animation: mxBump .7s cubic-bezier(.2,.7,.2,1); color: #15803d; }
@keyframes mxBump { 0% { transform: translateY(5px); opacity: .2; } 60% { transform: translateY(-2px); } 100% { transform: none; opacity: 1; } }
.mx-boxrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border-top: 1px solid #f1f3f6; font-size: 12px; text-align: left; }
.mx-boxrow:hover { background: #f7faff; }
.mx-boxrow.is-on { background: #eef9fd; box-shadow: inset 3px 0 0 var(--cyan); }
.mx-boxpath { flex: 1; min-width: 0; }
.mx-boxpath small { display: block; color: var(--muted); font-size: 10.5px; }
.mx-boxrow .mx-qty.is-bump { animation: mxBump .7s; background: #dcfce7; color: #15803d; }
.mx-boxicon { width: 24px; height: 24px; border-radius: 6px; background: #fff7e6; color: #e59500; display: grid; place-items: center; flex: 0 0 24px; }
.mx .mx-boxicon svg { width: 14px; height: 14px; }
.mx-qtyrow { display: flex; gap: 8px; align-items: center; }
.mx-qtyrow .mx-input { width: 120px; font-size: 15px; font-weight: 600; text-align: center; justify-content: center; }
.mx-stepbtn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid #d9d9d9; display: grid; place-items: center; background: #fff; font-size: 15px; }
.mx-changes { border-radius: 8px; background: #f6f8fa; padding: 12px 14px; font-size: 12px; display: grid; gap: 5px; }
.mx-changes div { display: flex; justify-content: space-between; }
.mx-changes b { font-variant-numeric: tabular-nums; }
.mx-changes .to { color: #15803d; }
@keyframes mxFlashBg { 0% { background: #dff4fc; } 100% { background: transparent; } }

/* ---------- Locations: a tree of columns joined by connector lines ---------- */
.mx-loc-tools { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.mx-loc-tools .mx-btn { color: #1a73e8; border-color: #dde6f0; font-size: 11px; height: 30px; }
.mx-loc-tools .mx-btn--blue { color: #fff; border-color: var(--blue); }
.mx-tree { position: relative; display: grid; grid-template-columns: repeat(3, 236px) 250px; column-gap: 72px; align-items: start; padding: 18px 16px 20px; background: #fff; border-radius: 6px; }
.mx-tree-col { position: relative; z-index: 1; }
.mx-tree-col h6 { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.mx-tree-col > p { margin: 0 0 22px; font-size: 12px; color: #9aa4ad; }
.mx-loc { position: relative; display: block; width: 100%; margin-bottom: 12px; padding: 12px 40px 11px 14px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(20,32,48,.06), 0 4px 14px -6px rgba(20,32,48,.14); font-size: 13px; text-align: left; }
.mx-loc b { display: block; font-weight: 500; font-size: 13.5px; }
.mx-loc small { display: block; font-size: 10.5px; color: #b0b8c1; margin: 5px 0 6px; }
.mx-loc small em { font-style: normal; color: #4a5868; }
.mx-loc .mx-chip { font-size: 10px; padding: 2px 6px; margin-right: 3px; }
.mx-loc .vchev { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1px solid #e6e9ee; color: #8a96a3; display: grid; place-items: center; font-size: 9px; }
.mx-loc .bubble { position: absolute; right: -38px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; background: #e6f4fb; color: #1f5f8b; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.mx-loc.is-on { box-shadow: inset 3px 0 0 #18aee3, 0 1px 3px rgba(20,32,48,.06), 0 4px 14px -6px rgba(20,32,48,.14); }
.mx-loc.is-on .bubble { background: #d6eef9; font-size: 15px; }
.mx-loc.is-box { border: 1.5px solid #f5b72a; box-shadow: none; padding-top: 12px; }
.mx-loc.is-box .boxtag { position: absolute; right: 12px; top: 10px; display: flex; align-items: center; gap: 4px; color: #f0a500; font-size: 12px; }
.mx .mx-loc.is-box .boxtag svg { width: 18px; height: 18px; }
.mx-loc.is-box .boxtag i { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ffc21a; color: #fff; font-style: normal; font-weight: 700; font-size: 10px; display: grid; place-items: center; }
.mx-loc.is-box.is-on { box-shadow: inset 3px 0 0 #f0a500; }
.mx-loc-search { height: 34px; border: 1px solid #dfe5ec; border-radius: 2px; margin-bottom: 22px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #9aa4ad; font-size: 11.5px; }
.mx-tree-add { width: 24px; height: 24px; border-radius: 50%; background: #e6f4fb; color: #18aee3; display: grid; place-items: center; margin: 4px auto 0; font-size: 16px; }
.mx-tree svg.lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.mx-qr { display: grid; place-items: center; background: #fff; padding: 6px; border-radius: 6px; border: 1px solid var(--line); }
.mx-qr svg { width: 100% !important; height: auto !important; }
/* Products list: a product's variants, opened inline under its row (the app's mdt-expand card). */
.mx-table tbody tr.mx-pexp-tr td { padding: 0; background: #fff; border-right: 0; white-space: normal; }
.mx-pexp { padding: 11px 20px 13px; }
/* Sticky and capped to the visible table width, as in the app; screens are always 1440 wide, so that's 1124px. */
.mx-pexp-card { position: sticky; left: 20px; max-width: 1084px; border: 1px solid #e5eaf0; border-radius: 6px; overflow: hidden; background: #fff; }
.mx-pexp-row { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr 1fr 1.2fr .9fr .9fr .9fr; gap: 14px; padding: 8px 15px; align-items: center; border-top: 1px solid #f0f3f6; }
.mx-pexp-row.is-head { padding: 7px 15px; background: #f8fafc; border-top: 0; }
.mx-pexp-row.is-head span { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #9aa7b6; text-transform: uppercase; }
.mx-pexp-row .nm { font-size: 12.5px; font-weight: 500; color: #2b3a4b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-pexp-row .sk { font-size: 11.5px; color: #6b7a8a; white-space: nowrap; }
.mx-pexp-row .q { font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap; justify-self: center; }
.mx-pexp-row .q.short { color: #e04b32; }

/* ---------- Update by SKU (sizes and colors from the app's update_by_sku.css) ---------- */
.mx-ubs { container-type: inline-size; font-size: 14px; }
.mx-ubs .mx-head { margin-bottom: 12px; }
.mx-ubs-muted { color: #666; font-size: 12px; margin: 0; }
.mx-ubs-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.mx-ubs-help { flex: 1 1 260px; margin: 0; font-size: 13px; color: #666; }
.mx-ubs-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 16px; font-size: 13px; font-weight: 600; }
.mx-ubs-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #e6e6e6; border-radius: 6px; background: #f5f5f5; }
.mx-ubs-segbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 5px; color: #666; font-size: 13px; font-weight: 500; white-space: nowrap; }
.mx-ubs-segbtn:hover { color: var(--cyan-text); }
.mx-ubs-segbtn.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px #d9d9d9; }
.mx .mx-ubs-segbtn svg { width: 15px; height: 15px; }
.mx-ubs-seg.is-mini .mx-ubs-segbtn { height: 26px; padding: 0 10px; font-size: 12px; }
.mx-ubs-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.mx-ubs-work { flex: 3 1 620px; min-width: 0; }
.mx-ubs-log { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.mx-ubs-label { display: block; margin-bottom: 5px; font-size: 13px; color: #666; }
.mx-ubs-label i { font-style: normal; color: #e5484d; margin-right: 3px; }
.mx-ubs-find { padding: 16px 20px 14px; }
.mx-ubs-combo, .mx-ubs-pickwrap { position: relative; }
.mx-ubs-scan { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.mx-ubs-scan:focus-within, .mx-ubs-scan.is-current, .mx-ubs-pickbox.is-current, .mx-ubs-pickbox.is-open, .mx-ubs-stepper.is-current, .mx-ubs-stepper:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24,174,227,.18); }
.mx .mx-ubs-scan > svg { width: 18px; height: 18px; color: #666; }
.mx-ubs-q { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; border: 0; outline: none; background: transparent; font-size: 15px; font-weight: 500; }
.mx-ubs-q::placeholder, .mx-ubs-input::placeholder, .mx-ubs .is-ph { color: #bfbfbf; font-weight: 400; }
.mx-ubs-scan.is-panel { flex: none; height: 38px; }
.mx-ubs-scan.is-panel .mx-ubs-q { font-size: 14px; font-weight: 400; }
.mx-ubs-btn { display: inline-flex; align-items: center; flex: none; height: 30px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 12px; }
.mx-ubs-btn:hover { border-color: var(--cyan); color: var(--cyan-text); }
.mx-ubs-dd, .mx-ubs-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.mx-ubs-dd { padding: 6px; max-height: 300px; overflow-y: auto; }
.mx-ubs-panel { display: flex; flex-direction: column; max-height: 320px; padding: 8px; }
.mx-ubs-list { min-height: 0; margin-top: 4px; overflow-y: auto; scrollbar-width: thin; }
.mx-ubs-grp { margin: 0; padding: 10px 8px 4px; font-size: 12px; font-weight: 600; color: #666; }
.mx-ubs-none { margin: 0; padding: 10px 8px; font-size: 12px; color: #666; }
.mx-ubs-opt { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; padding: 7px 8px; border-radius: 6px; }
.mx-ubs-opt:hover { background: #f9f9f9; }
.mx-ubs-opt.is-on { background: #e6f7fd; }
.mx-ubs-opt.mx-pulse::after { inset: 1px; border-radius: 6px; }
.mx-ubs-opt .m { display: flex; flex: 1 1 160px; flex-direction: column; min-width: 0; }
.mx-ubs-opt .m b { font-weight: 500; }
.mx-ubs-opt .m small { font-size: 12px; color: #666; }
.mx-ubs-opt .c { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.mx-ubs-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #666; }
.mx-ubs-ritem { display: inline-flex; height: 30px; overflow: hidden; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.mx-ubs-ritem:hover { border-color: var(--cyan); }
.mx-ubs-rchip { display: inline-flex; align-items: center; padding: 0 6px 0 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.mx-ubs-ritem .x { display: inline-flex; align-items: center; justify-content: center; width: 26px; color: #666; }
.mx-ubs-ritem .x:hover { background: #f9f9f9; }
.mx-ubs-empty { margin: 0 20px 20px; padding: 22px; border: 1px dashed #d9d9d9; border-radius: 8px; color: #666; font-size: 13px; text-align: center; }
.mx-ubs-product { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 20px; padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 8px; background: #f9f9f9; }
.mx-ubs-product .main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mx-ubs-thumb { flex: none; width: 44px; height: 44px; border-radius: 6px; background: #eef1f5; display: grid; place-items: center; overflow: hidden; }
.mx .mx-ubs-thumb svg { width: 34px; height: 34px; }
.mx-ubs-product .name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.mx-ubs-product .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mx-ubs-product .stats, .mx-ubs-product .levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.mx-ubs-product .levels { padding-left: 22px; border-left: 1px solid #e6e6e6; }
.mx-ubs-product .stat { display: flex; flex-direction: column; min-width: 64px; }
.mx-ubs-product .stat span { font-size: 12px; color: #666; }
.mx-ubs-product .stat b { font-size: 17px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.mx-ubs-product .stat b.unset { color: #666; font-size: 13px; font-weight: 500; line-height: 25px; }
.mx-ubs-product .stat b.is-bump { animation: mxBump .7s cubic-bezier(.2,.7,.2,1); color: #15803d; }
.mx-ubs-product .pen { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -10px; color: #666; }
.mx-ubs-chip { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: #f5f5f5; color: #666; }
.mx-ubs-chip[data-k="ok"] { background: #f0fdf4; color: #15803d; }
.mx-ubs-chip[data-k="danger"] { background: #fef2f2; color: #b91c1c; }
.mx-ubs-chip[data-k="warn"] { background: #fff8eb; color: #92400e; }
.mx-ubs-chip[data-k="info"] { background: #e6f7fd; color: #106f92; }
.mx-ubs-chip[data-k="sku"] { color: var(--ink); }
.mx-ubs-saved, .mx-ubs-info { display: flex; align-items: center; gap: 8px; margin: 14px 20px 0; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.mx-ubs-saved { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; }
.mx-ubs-info { border: 1px solid #bae7f7; background: #e6f7fd; color: #106f92; font-size: 12px; }
.mx-ubs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px 20px; padding: 16px 20px 0; }
.mx-ubs-fields.is-one { grid-template-columns: minmax(0, 1fr); }
.mx-ubs-field, .mx-ubs-slot { min-width: 0; }
.mx-ubs-field.is-wide { grid-column: 1 / -1; }
.mx-ubs-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 0 10px; }
.mx-ubs-arrow { display: inline-flex; align-items: center; height: 44px; color: #9aa4ad; }
.mx .mx-ubs-arrow svg { width: 18px; height: 18px; }
.mx-ubs-pickbox { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 10px 4px 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 14px; text-align: left; }
.mx-ubs-pickbox:hover { border-color: var(--cyan); }
.mx-ubs-pickbox .t { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.mx-ubs-pickbox .t.ph { color: #bfbfbf; }
.mx-ubs-pickbox .t b, .mx-ubs-pickbox .t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-ubs-pickbox .t b { font-weight: 500; }
.mx-ubs-pickbox .t small { font-size: 12px; color: #666; }
.mx .mx-ubs-pickbox > svg { color: #666; }
.mx-ubs-qhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mx-ubs-all { color: var(--cyan-text); font-size: 13px; text-decoration: underline; }
.mx-ubs-stepper { display: flex; align-items: stretch; height: 44px; overflow: hidden; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.mx-ubs-stepbtn { display: grid; place-items: center; flex: none; width: 44px; background: #f9f9f9; }
.mx-ubs-stepbtn:hover { background: #e6f7fd; color: var(--cyan-text); }
.mx .mx-ubs-stepbtn svg { width: 16px; height: 16px; }
.mx-ubs-qty { display: flex; align-items: center; flex: 1; min-width: 0; padding: 0 12px; border: 0; border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; outline: none; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-ubs-qty.is-invalid { color: #b91c1c; }
.mx-ubs-err { margin: 5px 0 0; font-size: 12px; color: #b91c1c; }
.mx-ubs-input { display: flex; align-items: center; width: 100%; height: 36px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 14px; outline: none; }
.mx-ubs-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(24,174,227,.12); }
.mx-ubs-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 20px 16px; border-top: 1px solid #e6e6e6; }
.mx-ubs-changes { flex: 1 1 300px; min-width: 0; }
.mx-ubs-impact { display: grid; grid-template-columns: minmax(0, max-content) auto auto auto auto; justify-content: start; align-items: baseline; gap: 4px 6px; font-variant-numeric: tabular-nums; }
.mx-ubs-impact .lab { grid-column: 1; min-width: 0; padding-right: 10px; overflow: hidden; color: #666; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mx-ubs-impact .lab em { margin-right: 4px; color: #9aa4ad; font-size: 12px; font-style: normal; font-weight: 600; text-transform: uppercase; }
.mx-ubs-impact .lab.is-text, .mx-ubs-impact .txt, .mx-ubs-impact .full { grid-column: 1 / -1; }
.mx-ubs-impact .txt { margin-top: -2px; overflow-wrap: anywhere; }
.mx-ubs-impact .from { grid-column: 2; justify-self: end; color: #666; font-size: 13px; }
.mx-ubs-impact .arr { grid-column: 3; color: #9aa4ad; }
.mx-ubs-impact .to { grid-column: 4; justify-self: end; font-weight: 600; }
.mx-ubs-impact .dl { grid-column: 5; justify-self: end; padding-left: 6px; font-size: 12px; font-weight: 600; }
.mx-ubs-impact .dl.up { color: #15803d; }
.mx-ubs-impact .dl.down { color: #b91c1c; }
.mx-ubs-save { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; height: 40px; padding: 0 15px; border-radius: 6px; background: var(--cyan); color: #fff; font-size: 14px; font-weight: 500; text-align: center; }
.mx-ubs-save:hover { background: #13a0d2; }
.mx-ubs-save.is-disabled { opacity: .38; cursor: default; }
.mx-ubs-loghead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.mx-ubs-loghead h4 { margin: 0; font-size: 16px; font-weight: 500; }
.mx-ubs-log ol { margin: 0; padding: 0; list-style: none; }
.mx-ubs-logitem { padding: 8px 16px; border-top: 1px solid #e6e6e6; font-size: 13px; }
.mx-ubs-logitem.is-new { animation: mxFlashBg 1.8s ease-out; }
.mx-ubs-logitem .top { display: flex; align-items: baseline; gap: 8px; }
.mx-ubs-logitem .txt { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.mx-ubs-logitem .where { color: #666; font-weight: 400; }
.mx-ubs-logitem .meta { margin-top: 2px; color: #666; font-size: 12px; overflow-wrap: anywhere; }
.mx-ubs-feat-log { margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid #e6e6e6; border-radius: 8px; overflow: hidden; }
.mx-ubs-feat-log .mx-ubs-logitem { border-top: 0; }
.mx-ubs-full { display: block; width: 100%; padding: 10px 16px 14px; border-top: 1px solid #e6e6e6; color: var(--cyan-text); font-size: 13px; text-align: left; text-decoration: underline; }
/* The log goes under the work card once both can't sit side by side (620 + 16 + 340). */
@container (max-width: 975px) { .mx-ubs-log { flex-basis: 100%; max-width: none; } }
/* Narrow cards: the four mode labels only fit without their icons. */
@container (max-width: 380px) { .mx-ubs-modes .mx-ubs-segbtn svg { display: none; } }
@container (max-width: 560px) {
	.mx-ubs-modes .mx-ubs-seg, .mx-ubs-kind .mx-ubs-seg { display: flex; width: 100%; }
	.mx-ubs-modes .mx-ubs-segbtn, .mx-ubs-kind .mx-ubs-segbtn { flex: 1; min-width: 0; gap: 5px; padding: 0 8px; }
	.mx-ubs-find, .mx-ubs-fields, .mx-ubs-foot { padding-left: 14px; padding-right: 14px; }
	.mx-ubs-fields, .mx-ubs-pair { grid-template-columns: minmax(0, 1fr); }
	.mx-ubs-arrow { display: none; }
	.mx-ubs-product, .mx-ubs-empty, .mx-ubs-saved, .mx-ubs-info { margin-left: 14px; margin-right: 14px; }
	.mx-ubs-product .levels { padding-left: 0; border-left: 0; }
	.mx-ubs-save { width: 100%; height: 48px; }
}

/* ---------- Shipping station ---------- */
.mx-ship { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.mx-ship-bar { display: flex; gap: 9px; align-items: center; padding: 10px 12px; margin-bottom: 12px; }
.mx-ship-bar .mx-input--search { width: 230px; color: var(--ink); }
.mx-ship-bar .mx-q { margin-left: auto; font-size: 11px; color: var(--muted); }
.mx-ord-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 16px; }
.mx-ord-head .num b, .mx-checks span { white-space: nowrap; }
.mx-ord-head .num { padding-right: 18px; border-right: 1px solid var(--line-2); }
.mx-ord-head .num b { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mx-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11.5px; }
.mx-checks span { display: inline-flex; gap: 6px; align-items: flex-start; }
.mx-checks span i { width: 14px; height: 14px; border-radius: 50%; color: #22a06b; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 800; border: 1.5px solid #9ed8b9; margin-top: 1px; }
.mx-checks small { display: block; color: #22a06b; font-size: 10.5px; }
.mx-req { margin-left: auto; text-align: right; }
.mx-req b { display: block; font-size: 12px; }
.mx-table.is-stock :is(th, td):last-child { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -10px 0 12px -10px rgba(20,30,45,.28); }
.mx-table.is-stock th:last-child { background: #f8fafc; }
.mx-table.is-stock tbody tr:nth-child(even) td:last-child { background: #fafbfc; }
.mx-table.is-items :is(th, td) { padding-left: 8px; padding-right: 8px; }
.mx-table.is-items td:first-child { white-space: normal; }
.mx-step-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 13px 14px; white-space: nowrap; }
.mx-step-h em { font-style: normal; width: 17px; height: 17px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; display: grid; place-items: center; }
.mx-step-h em.is-ok { background: #22a06b; }
.mx-step-h small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 11px; white-space: normal; text-align: right; }
.mx-ratetabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 11.5px; text-align: center; }
.mx-ratetabs span { padding: 7px; color: var(--muted); background: #f6f8fa; }
.mx-ratetabs span.is-on { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px #c9dcf6; }
.mx-rate { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; border-top: 1px solid #f1f3f6; text-align: left; font-size: 12px; }
.mx-rate:hover { background: #f7faff; }
.mx-rate.is-on { background: #eef7fe; box-shadow: inset 3px 0 0 var(--blue); }
.mx-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c4cdd6; flex: 0 0 14px; display: grid; place-items: center; }
.mx-rate.is-on .mx-radio { border-color: var(--blue); }
.mx-rate.is-on .mx-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.mx-carrier { width: 36px; font-size: 10px; font-weight: 800; letter-spacing: -.02em; flex: 0 0 36px; text-align: center; }
.mx-carrier[data-c="UPS"] { color: #5b3a1a; } .mx-carrier[data-c="USPS"] { color: #1f3d73; } .mx-carrier[data-c="FedEx"] { color: #4d148c; } .mx-carrier[data-c="DHL"] { color: #c8102e; }
.mx-rate-n { flex: 1; min-width: 0; font-weight: 600; text-transform: uppercase; font-size: 11.5px; }
.mx-rate-n small { display: block; color: var(--muted); font-size: 10.5px; text-transform: none; font-weight: 400; }
.mx-rate-p { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.mx-tag { font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; background: #eef2f6; color: #5a6878; margin-left: 7px; vertical-align: 1px; }
.mx-note { margin: 10px 14px 0; padding: 9px 11px; border-radius: 6px; background: #f6f8fa; font-size: 10.5px; color: #5a6878; }
.mx-hintline { padding: 9px 14px 14px; font-size: 10.5px; color: #5a6878; }
.mx-buybar { display: flex; align-items: center; gap: 24px; padding: 12px 16px; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mx-buybar small { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.mx-buybar b { font-size: 12.5px; display: block; }
.mx-buybar .big { font-size: 16px; }
.mx-buybar .mx-btn { margin-left: auto; }
.mx-shipped-banner { display: flex; gap: 8px; align-items: center; padding: 11px 14px; border-radius: 6px; background: #f0fdf4; border: 1px solid #c7ecd5; color: #15803d; font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.mx-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; font-size: 12px; }
.mx-kv b { font-weight: 500; display: block; }
.mx-label4x6 { width: 168px; aspect-ratio: 4 / 6; background: #fff; border: 1px solid #222; border-radius: 3px; padding: 9px; font-size: 7.5px; line-height: 1.35; color: #111; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 16px 30px -14px rgba(0,0,0,.45); }
.mx-label4x6 .l-big { font-size: 22px; font-weight: 800; letter-spacing: -.03em; border-bottom: 2px solid #111; padding-bottom: 2px; }
.mx-label4x6 .l-bars { height: 44px; background: repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 3px, #111 3px 5px, transparent 5px 6px, #111 6px 7px, transparent 7px 9px); }
.mx-label4x6 .l-row { display: flex; justify-content: space-between; border-bottom: 1px solid #111; padding-bottom: 3px; }

/* ---------- Production ---------- */
/* Production Jobs board and job card (production-board.css). */
.mx-jb { display: grid; grid-auto-flow: column; grid-auto-columns: 214px; gap: 9px; align-items: start; }
.mx-jb-colh { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 7px 10px; background: var(--c); border-radius: 5px 5px 0 0; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.mx-jb-colh span { overflow: hidden; text-overflow: ellipsis; }
.mx-jb-colh i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(0,0,0,.22); font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center; }
.mx-jb-body { display: flex; flex-direction: column; gap: 9px; padding: 9px; background: #f1f3f6; border-radius: 0 0 5px 5px; min-height: 90px; }
.mx-jb-empty { margin: 0; padding: 14px 6px; font-size: 11.5px; color: #9aa5b1; text-align: center; }
.mx-jb-more { padding: 6px; border: 1px dashed #cfdbe8; border-radius: 4px; font-size: 11.5px; color: #18527d; text-align: center; }
.mx-jb-card { display: flex; flex-direction: column; gap: 5px; padding: 10px 11px 7px; background: #fff; border: 1px solid #e8eef5; border-radius: 4px; box-shadow: 0 1px 2px rgba(20,42,70,.05); text-align: left; }
.mx-jb-card.is-sel { border-color: #18aee3; box-shadow: 0 0 0 1px #18aee3; }
.mx-jb-head { display: flex; align-items: center; gap: 6px; }
.mx-jb-head .code { font-size: 12.5px; font-weight: 600; color: #25313c; letter-spacing: .01em; }
.mx-jb-pick { margin-left: auto; width: 13px; height: 13px; border: 1.5px solid #9aa5b1; border-radius: 3px; opacity: 0; }
.mx-jb-pick.is-on { opacity: 1; background: #18aee3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Cpath d='m2 5.2 2 2 4-4.4'/%3E%3C/svg%3E") center / 9px no-repeat; border-color: #18aee3; }
.mx-jb-line { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; color: #5c6b7a; }
.mx .mx-jb-line svg { flex: 0 0 11px; width: 11px; height: 11px; color: #9aa5b1; }
.mx-jb-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-jb-line.is-empty span { color: #9aa5b1; font-style: italic; }
.mx-jb-status { align-self: flex-start; margin: 2px 0 1px; padding: 2px 8px; border-radius: 3px; background: var(--p); color: #fff; font-size: 10.5px; font-weight: 500; line-height: 17px; }
.mx-jb-presence { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 3px; background: rgba(24,174,227,.14); color: #0e8cba; font-size: 9.5px; font-weight: 600; line-height: 15px; white-space: nowrap; }
.mx-jb-presence::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mx-jb-meta { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 2px; }
.mx-jb-row { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; line-height: 17px; color: #a4adba; }
.mx-jb-row span:first-child { white-space: nowrap; }
.mx-jb-row span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-jb-row.is-strong span:last-child { color: #5c6b7a; font-weight: 500; }
.mx-jb-row.is-alert span:last-child { color: #e4572e; }
.mx-jb-note { display: flex; gap: 5px; padding: 4px 6px; border-radius: 3px; background: #f7f9fc; font-size: 10.5px; line-height: 15px; color: #8a9bb5; }
.mx .mx-jb-note svg { flex: 0 0 11px; width: 11px; height: 11px; margin-top: 2px; }
.mx-jb-note.is-alert { background: rgba(228,87,46,.08); color: #c33f2a; }
.mx-jb-acts { display: flex; align-items: center; gap: 3px; padding-top: 5px; margin-top: 1px; border-top: 1px solid #eef2f7; }
.mx-jb-acts .sp { margin-left: auto; }
.mx-jb-act { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 3px; color: #9aa5b1; }
.mx .mx-jb-act svg { width: 13px; height: 13px; }
.mx-jb-act.is-primary { width: auto; gap: 4px; padding: 0 8px; background: rgba(24,174,227,.11); color: #0d7fa6; font-size: 10.5px; font-weight: 500; }
.mx .mx-jb-act.is-primary svg { width: 10px; height: 10px; }
/* Pinned to the bottom of the visible board and centred in it, however far the board is scrolled. */
.mx-jb-selwrap { position: sticky; left: 0; bottom: 16px; z-index: 4; display: flex; justify-content: center; margin-top: 16px; pointer-events: none; }
.mx-jb-selbar { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 10px; background: #2d3b49; box-shadow: 0 14px 30px -12px rgba(15,25,40,.5); color: #fff; font-size: 11.5px; white-space: nowrap; }
.mx-jb-selbar .n { padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,.1); font-weight: 600; }
.mx-jb-selbar .b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 6px; color: #dbe4ee; }
.mx .mx-jb-selbar svg { width: 12px; height: 12px; }
.mx-jb-selbar .b.is-danger { color: #ff8a7a; }
.mx-jb-selbar .b.is-clear { color: #8c9aab; }
/* Production side panels: create (two steps), Assign Job, Quality Control, Move to Location. */
.mx-passign .mx-select, .mx-pfield { height: 42px; margin-bottom: 16px; }
.mx-passign .mx-select { margin-bottom: 16px; }
.mx-pfield.is-num { color: #2b9a49; }
.mx-pfield.is-area { height: 72px; }
.mx-pinfo { display: inline-grid; place-items: center; width: 11px; height: 11px; margin-left: 2px; border: 1px solid #e0a800; border-radius: 50%; color: #e0a800; font: 600 7px/1 'Poppins', sans-serif; vertical-align: 1px; }
.mx-pchk { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line-2); border-radius: 6px; min-height: 230px; }
.mx-pchk .l { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 12px; border-right: 1px solid var(--line-2); text-align: center; }
.mx-pchk .l .t { font-size: 13px; font-weight: 700; color: #18aee3; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); width: 100%; }
.mx-pchk .l .s { font-size: 15px; font-weight: 700; color: #111; }
.mx-pchk .l .e { padding: 8px 6px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; color: #111; }
.mx-pchk .l .e i { font-style: normal; color: #18aee3; font-weight: 500; }
.mx-pchk .r { padding: 8px 10px; }
.mx-pchk-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr; gap: 6px; align-items: center; padding: 8px 4px 6px; font-size: 11px; }
.mx-pchk-row.is-head { font-size: 8px; font-weight: 600; text-transform: uppercase; color: #3d4a58; }
.mx-pchk-row.is-head span:last-child, .mx-pchk-row .skip { color: #18aee3; }
.mx-pchk-row .sku { font-weight: 600; }
.mx-pchk-row .sku i { font-style: normal; color: #18aee3; font-size: 9px; }
.mx-pchk-msg { display: flex; align-items: center; gap: 5px; margin: 0 4px 4px; padding: 6px 8px; background: #f4faf6; color: #22a06b; font-size: 9px; }
.mx .mx-pchk-msg svg { width: 10px; height: 10px; }
.mx-pchk-msg.is-short { background: #fdf2f2; color: #c0392b; }
.mx-pqc-h .ic { width: 22px; height: 22px; color: #c5ccd4; }
.mx .mx-pqc-h .ic svg { width: 22px; height: 22px; }
.mx-pqc-row { display: grid; grid-template-columns: 1.4fr 1fr 2.4fr; align-items: center; gap: 8px; padding: 9px 4px; font-size: 11.5px; }
.mx-pqc-row.is-head { font-size: 11px; font-weight: 600; color: #1f5f8b; }
.mx-pqc-row .n { color: #1a73e8; }
.mx-pqc-row .btns { display: flex; gap: 6px; justify-content: flex-end; }
.mx-pqc-btn { padding: 6px 10px; border: 1px solid #e2e9f0; border-radius: 3px; background: #fff; font-size: 10.5px; color: #25313c; }
.mx-pqc-btn.is-pass { background: #e7f7ee; border-color: #e7f7ee; color: #22a06b; }
.mx-pqc-btn.is-partial { background: #fff4dc; border-color: #fff4dc; color: #a36c09; }
.mx-pqc-btn.is-fail { background: #fdecec; border-color: #fdecec; color: #c0392b; }
.mx-pqc-partial { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; padding: 10px 4px; border-top: 1px dashed var(--line-2); }
.mx-pmove { margin: 10px 0 0 18px; padding-left: 14px; border-left: 2px solid #18aee3; display: grid; gap: 8px; }
.mx-pmove .mx-select { height: 34px; }
.mx-btn--blueline { color: #1a73e8; border-color: #1a73e8; }
.mx-btn--demo { border-style: dashed; color: var(--muted); }
/* Recipe page card (recipe_cards.css). */
/* Three columns: the app's layout for a window this wide (recipe_cards.css, max-width 1799px). */
.mx-rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mx-rc { overflow: hidden; border: 1px solid #e4eaf0; border-radius: 16px; background: #fff; color: #173151; }
.mx-rc .lbl { display: block; margin-bottom: 5px; color: #8996a7; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.mx-rc-h { display: flex; justify-content: space-between; gap: 14px; min-height: 96px; padding: 20px 20px 15px; }
.mx-rc-h h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; color: #173151; }
.mx-rc-h .acts { display: flex; gap: 5px; }
.mx-rc-h .acts span { display: flex; align-items: center; gap: 5px; padding: 7px 8px; font-size: 12px; color: #617187; }
.mx .mx-rc-h .acts svg { width: 12px; height: 12px; }
.mx-rc-meta, .mx-rc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 20px 17px; }
.mx-rc-meta b { font-size: 13px; font-weight: 600; color: #344960; }
.mx-rc-meta .tl { display: flex; align-items: center; gap: 6px; color: #0c91c2; }
.mx .mx-rc-meta .tl svg { width: 13px; height: 13px; }
.mx-rc-info { min-height: 88px; padding-top: 15px; border-top: 1px solid #edf1f5; background: rgba(245,248,251,.55); }
.mx-rc-info .tags span { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #eaf8fd; color: #087da8; font-size: 11px; }
.mx-rc-info .tags em { font-style: normal; color: #a1adba; font-size: 12px; }
.mx-rc-exp { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-top: 1px solid #e8edf2; color: #607188; font-size: 12px; }
.mx-rc-exp > span:first-child { flex: 1; }
.mx-rc-exp .v { color: #159bc9; font-weight: 600; }
.mx .mx-rc-exp svg { width: 10px; height: 10px; transform: rotate(180deg); color: #607188; }
.mx-rc-comps { padding: 0 20px 18px; border-top: 1px solid #edf1f5; }
.mx-rc-ch, .mx-rc-comp { display: grid; grid-template-columns: minmax(0, 1fr) 60px 58px; align-items: center; gap: 8px; }
.mx-rc-ch { padding: 13px 0 7px; color: #98a4b2; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.mx-rc-comp { padding: 10px 0; border-top: 1px dashed #e2e8ee; }
.mx-rc-comp .m { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mx-rc-comp .dot { width: 7px; height: 7px; border-radius: 50%; background: #18aee3; }
.mx-rc-comp b { display: block; font-size: 12px; color: #2c425a; }
.mx-rc-comp small { display: block; margin-top: 2px; font-size: 10px; color: #909dac; }
.mx-rc-comp .q { display: flex; align-items: baseline; gap: 5px; }
.mx-rc-comp .q span { font-size: 9px; color: #98a4b2; }
.mx-rc-comp .q b { font-size: 13px; color: #344960; }
.mx-rc-skip { padding: 4px 7px; border-radius: 10px; background: #edf1f5; color: #69798d; font-size: 9px; text-align: center; }
.mx-rc-skip.is-opt { background: #fff2d8; color: #a36c09; }
.mx-rc-count { margin: 16px 0 0; font-size: 11px; color: #8a96a3; }
.mx-prod-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; position: relative; box-shadow: 0 4px 14px -8px rgba(20,32,48,.18); }
.mx-prod-legend { position: absolute; right: 16px; top: 14px; font-size: 10.5px; display: grid; gap: 4px; }
.mx-prod-legend span { display: flex; align-items: center; gap: 6px; }
.mx-prod-legend span::before { content: ''; width: 16px; height: 3px; border-radius: 2px; background: var(--c); }
.mx-ring { position: relative; width: 140px; height: 140px; margin: 26px auto 10px; }
.mx .mx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mx-ring div { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 400; }
.mx-ring div b { font-weight: 400; color: #f0a500; }
.mx-ring div i { font-style: normal; color: #1a9fd8; }
.mx-health { display: grid; gap: 9px; font-size: 11.5px; }
.mx-health div { display: grid; grid-template-columns: 90px 1fr 36px 44px; align-items: center; gap: 10px; }
.mx-health div span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.mx-health i { display: block; height: 6px; border-radius: 3px; background: #edf0f4; overflow: hidden; }
.mx-health i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 3px; }
.mx-health b { text-align: right; font-weight: 600; }
.mx-health em { font-style: normal; text-align: right; color: var(--muted); }
.mx-kpi-stack { display: grid; gap: 8px; }
.mx-kpi-s { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.mx-kpi-s small { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b7684; display: block; }
.mx-kpi-s b { font-size: 19px; font-weight: 600; }
.mx-kpi-s em { font-style: normal; float: right; margin-top: 8px; font-size: 9.5px; color: var(--muted); }
.mx-delta { font-weight: 600; color: #c0392b; font-variant-numeric: tabular-nums; }

/* ---------- Dashboard ---------- */
.mx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.mx-kpi { background: #fff; border: 1px solid var(--line); border-radius: 6px; position: relative; }
.mx-kpi h4 { margin: 0; padding: 9px 12px 8px; font-size: 11.5px; font-weight: 500; color: #3d4a58; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 6px; }
.mx-kpi h4::after { content: 'i'; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #c4cdd6; color: #9aa4ad; font-size: 7px; display: grid; place-items: center; font-weight: 700; }
.mx-kpi strong { display: block; padding: 10px 12px 0; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mx-kpi strong small { font-size: 12px; font-weight: 500; color: var(--muted); }
.mx-kpi-f { display: flex; justify-content: space-between; padding: 6px 12px 9px; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: #9aa4ad; }
.mx-kpi-f .up { color: #15803d; letter-spacing: 0; font-size: 10px; font-weight: 600; text-transform: none; }
.mx-kpi .warn { color: #e08a00; }
.mx-kpi .bad { color: #dc2626; }
/* Manage Dashboard: every widget outlined, a grip before its title and a delete button in its corner. */
.mx-dash.is-arranging .mx-kpi, .mx-dash.is-arranging .mx-card { position: relative; border-color: #a9bff5; box-shadow: 0 0 0 1px #c9d7fa; }
.mx-kpis.is-arranging .mx-kpi { cursor: grab; }
.mx-w-grip { color: #b4bcc6; font-size: 11px; letter-spacing: -1px; }
.mx-w-del { position: absolute; top: 7px; right: 8px; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #f3b5ae; border-radius: 4px; color: #e2483b; background: #fff; }
.mx-w-del svg { width: 11px; height: 11px; }
.mx-dash .mx-card-h::after { content: 'i'; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #c4cdd6; color: #9aa4ad; font-size: 7px; display: grid; place-items: center; font-weight: 700; }
.mx-btn--discard { border-color: transparent; background: none; color: #e2483b; }
.mx-bar-x { display: flex; padding: 2px 0 0; }
.mx-bar-x span { flex: 1; font-size: 8.5px; color: #98a1b0; text-align: center; white-space: nowrap; }
.mx-kpi.is-dragging { opacity: .4; }
.mx-kpi.is-over { box-shadow: 0 0 0 2px var(--cyan); }
.mx-arrange-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 12px; border-radius: 6px; background: #e6f7fd; color: var(--cyan-text); font-size: 12px; font-weight: 500; }
.mx-arrange-bar .mx-btn { margin-left: auto; }
.mx-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 12px; }
.mx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.mx-chart { position: relative; }
.mx .mx-chart svg { width: 100%; height: auto; overflow: visible; }
.mx .mx-chart svg[aria-label='Orders per day'] { height: 200px; }
.mx .mx-chart svg.donut { width: 130px; height: 130px; flex: 0 0 130px; }
.mx-chart-cap { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: #9aa4ad; padding: 0 14px 10px; }
.mx-tip { position: absolute; pointer-events: none; background: #1f2933; color: #fff; font-size: 10.5px; font-weight: 500; padding: 4px 8px; border-radius: 5px; white-space: nowrap; transform: translate(-50%, -130%); opacity: 0; transition: opacity .12s; }
.mx-tip.is-on { opacity: 1; }
.mx-legend { display: grid; gap: 7px; font-size: 11.5px; }
.mx-legend div { display: flex; align-items: center; gap: 8px; }
.mx-legend i { width: 8px; height: 8px; border-radius: 2px; }
.mx-legend b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }

/* ---------- Toast, selection bar, hints ---------- */
.mx-toast { position: absolute; left: 50%; bottom: 16px; z-index: 9; transform: translate(-50%, 16px); opacity: 0; background: #2d3b49; color: #fff; border-radius: 10px; padding: 10px 15px; font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(10,16,23,.26), 0 12px 30px rgba(10,16,23,.32); display: flex; gap: 8px; align-items: center; max-width: calc(100% - 24px); transition: opacity .25s, transform .25s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.mx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.mx-toast i { color: #4ade80; font-style: normal; }
.mx-selbar { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); bottom: 16px; z-index: 4; background: #2d3b49; color: #fff; border-radius: 12px; padding: 6px; font-size: 11.5px; display: flex; gap: 4px; align-items: center; box-shadow: 0 1px 2px rgba(10,16,23,.26), 0 12px 30px rgba(10,16,23,.32); white-space: nowrap; }
/* The demo's main area scrolls, so there the bar sticks to its bottom edge instead of scrolling away. */
.try-app .mx-main > .mx-selbar { position: sticky; margin: 16px auto 0; }
.mx-selbar > span { padding: 6px 12px; border-radius: 8px; }
.mx-selbar > .sel { background: #1f2a36; color: #6ccff2; }
.mx-sbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; color: #fff; }
.mx-sbtn:hover { background: rgba(255,255,255,.08); }
.mx-sbtn.is-main { background: #18aee3; }
.mx .mx-sbtn svg { width: 13px; height: 13px; }
.mx-hint { position: absolute; z-index: 8; display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; background: #0f2236; color: #fff; font-size: 12px; font-weight: 500; box-shadow: 0 10px 22px -10px rgba(15,34,54,.7); pointer-events: none; white-space: nowrap; animation: mxHintIn .4s cubic-bezier(.2,.7,.2,1) both; }
.mx-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: mxPing 1.6s ease-out infinite; }
@keyframes mxHintIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mx-pulse { position: relative; }
.mx-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 3px solid var(--cyan); box-shadow: 0 0 0 4px rgba(24,174,227,.18); animation: mxRing 1.6s ease-out infinite; pointer-events: none; }
/* "Show me" in the guide bar flashes the next thing to click. */
.mx-flash, [data-demo-tab].mx-flash { animation: mxFlash .6s ease 2; }
@keyframes mxFlash { 50% { box-shadow: 0 0 0 6px rgba(24,174,227,.45); background-color: #e6f7fd; } }
.mx-boxrow.mx-pulse::after, .mx-rate.mx-pulse::after { inset: 1px; border-radius: 6px; }
/* A board card the hint points at makes room above itself, so the hint never sits on the card before it. */
.mx-ocard.mx-pulse-on { margin-top: 44px; }
@keyframes mxRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.mx-art { width: 100%; height: 100%; }

/* ---------- Scaled whole screens (pictures of the app) ---------- */
.fit { position: relative; overflow: hidden; }
.fit > .mx, .fit > .mxp { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); }

/* ---------- The Morsix mobile app ---------- */
.mxp-dev { width: 100%; aspect-ratio: 430 / 932; border-radius: 13% / 6%; padding: 3.4%; background: #0d141c; box-shadow: 0 0 0 1.5px #2b3644 inset, 0 30px 60px -24px rgba(16,24,40,.55); position: relative; }
.mxp-dev.is-land { aspect-ratio: 932 / 430; border-radius: 6% / 13%; padding: 1.6%; }
.mxp-dev > .fit { width: 100%; height: 100%; border-radius: 10.5% / 4.8%; }
.mxp-dev.is-land > .fit { border-radius: 4.8% / 10.5%; }
.mxp { width: 430px; height: 932px; background: #fff; font-family: 'Poppins', system-ui, sans-serif; color: #1f3d5a; overflow: hidden; display: flex; flex-direction: column; font-size: 15px; text-align: left; -webkit-font-smoothing: antialiased; line-height: 1.4; }
.mxp.is-land { width: 932px; height: 430px; background: #173151; }
.mxp *, .mxp *::before, .mxp *::after { box-sizing: border-box; }
.mxp svg { display: block; }
.mxp-status { height: 54px; flex: 0 0 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 48px; font-size: 17px; font-weight: 600; color: #111; position: relative; }
.mxp-island { width: 124px; height: 36px; border-radius: 20px; background: #0d141c; position: absolute; left: 50%; top: 11px; margin-left: -62px; }
.mxp-sig { display: flex; gap: 7px; align-items: center; }
.mxp-bars4 { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.mxp-bars4 i { width: 3.5px; background: #111; border-radius: 1px; }
.mxp-batt { width: 27px; height: 13px; border-radius: 4px; border: 1.5px solid #111; padding: 1.5px; }
.mxp-batt::after { content: ''; display: block; height: 100%; background: #111; border-radius: 1.5px; }
.mxp-head { height: 58px; flex: 0 0 58px; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; text-align: center; font-size: 17px; font-weight: 700; color: #1f4a73; }
.mxp-head .back { font-size: 28px; font-weight: 300; color: #1f4a73; line-height: 1; }
.mxp-head .ic { color: #1f4a73; display: grid; place-items: center; }
.mxp-head .ic svg { width: 22px; height: 22px; }
.mxp-body { flex: 1; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.mxp-tabs { display: flex; gap: 4px; align-items: center; font-size: 15px; color: #3d4a58; }
.mxp-tabs span { padding: 7px 14px; border-radius: 8px; white-space: nowrap; }
.mxp-tabs span.is-on { background: #e1f4fb; color: #18aee3; }
.mxp-tabs span.is-green { background: #def5ea; color: #1a9a5c; }
.mxp-tabs span.is-dim { color: #b7c0c9; }
.mxp-field { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border: 1px solid #e6e9ee; border-radius: 10px; font-size: 15px; color: #9aa4ad; background: #fff; }
.mxp-field.is-on { border: 1.5px solid #18aee3; color: #1f3d5a; font-weight: 500; }
.mxp-field .lbl { position: absolute; top: -10px; left: 14px; background: #fff; padding: 0 5px; font-size: 12.5px; color: #18aee3; font-weight: 400; }
.mxp-field .x { margin-left: auto; color: #18aee3; font-size: 20px; }
.mxp-field svg { width: 22px; height: 22px; color: #18aee3; }
.mxp-help { font-size: 12.5px; color: #9aa4ad; line-height: 1.45; margin: -6px 0 0; }
.mxp-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 12px rgba(20,40,60,.08); }
.mxp-card.is-pick { border: 2.5px solid #ffc21a; box-shadow: 0 10px 22px -12px rgba(160,107,0,.4); }
.mxp-card.is-done { border: 2.5px solid #22a06b; }
.mxp-muted { color: #9aa4ad; }
.mxp-row { display: flex; align-items: center; gap: 12px; }
.mxp-chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; background: #fff3d6; color: #e2a400; white-space: nowrap; }
.mxp-chip.is-green { background: #def5ea; color: #1a9a5c; }
.mxp-chip.is-ship { background: #fbeee4; color: #b8642a; }
.mxp-chip.is-purple { background: #ece8fb; color: #6c4fd6; }
.mxp-chip.is-blue { background: #e1f4fb; color: #18aee3; }
.mxp-btn { display: block; width: 100%; text-align: center; padding: 17px; border-radius: 10px; background: #18aee3; color: #fff; font-weight: 600; font-size: 16px; }
.mxp-btn.is-soft { background: #e3f7ea; color: #22a06b; width: auto; padding: 13px 24px; }
.mxp-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 38px; border-top: 1px solid #edf0f4; background: #fff; }
.mxp-foot b { font-size: 28px; color: #1f4a73; font-variant-numeric: tabular-nums; font-weight: 600; }
.mxp-tabbar { flex: 0 0 96px; display: flex; justify-content: space-around; align-items: center; padding-bottom: 28px; background: #173151; border-radius: 24px 24px 0 0; color: rgba(255,255,255,.6); }
.mxp-tabbar span { position: relative; display: grid; place-items: center; }
.mxp-tabbar svg { width: 30px; height: 30px; }
.mxp-tabbar span.is-on { color: #18aee3; }
.mxp-tabbar span.is-on::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #ffbe1d; }
.mxp-dim { position: absolute; inset: 0; background: rgba(15,25,35,.45); z-index: 2; }
.mxp-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 20px 38px; display: grid; gap: 16px; }
.mxp-sheet h4 { margin: 0; font-size: 16px; display: flex; justify-content: space-between; color: #1f3d5a; font-weight: 600; }
.mxp-modal { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); z-index: 3; background: #fff; border-radius: 16px; padding: 26px 22px 22px; text-align: center; display: grid; gap: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.mxp-modal h4 { margin: 0; font-size: 22px; color: #1f3d5a; font-weight: 600; }
.mxp-modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mxp-modal .two span { padding: 13px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid #edf0f4; }
.mxp-loc { background: #f4f6f9; border-radius: 10px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #1f3d5a; }
.mxp-loc em { margin-left: auto; font-style: normal; color: #9aa4ad; font-weight: 400; white-space: nowrap; }
.mxp-loc svg { width: 18px; height: 18px; color: #1f4a73; flex: 0 0 18px; }
.mxp-ws { background: linear-gradient(135deg, #173151, #1f5a8a); color: #fff; border-radius: 18px; padding: 20px; position: relative; }
.mxp-ws small { font-size: 11px; letter-spacing: .14em; opacity: .7; font-weight: 600; }
.mxp-ws b { display: block; font-size: 25px; font-weight: 700; margin: 4px 0 2px; }
.mxp-ws em { font-style: normal; opacity: .75; font-size: 14px; }
.mxp-ws .box { position: absolute; right: 18px; top: 18px; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.12); }
.mxp-seg { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(0,0,0,.2); border-radius: 10px; padding: 4px; font-size: 13.5px; text-align: center; margin-top: 16px; }
.mxp-seg span { padding: 8px 0; border-radius: 8px; }
.mxp-seg span.is-on { background: #18aee3; font-weight: 600; }
.mxp-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mxp-stat > div { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 12px rgba(20,40,60,.08); }
.mxp-stat i { display: block; width: 34px; height: 34px; border-radius: 9px; background: #e1f4fb; margin-bottom: 8px; }
.mxp-stat b { font-size: 26px; color: #1f4a73; display: block; line-height: 1.1; }
.mxp-stat small { color: #9aa4ad; font-size: 12.5px; }
.mxp-bars > div { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; }
.mxp-bars > div::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 8px; }
.mxp-bars i { flex: 0 0 140px; height: 6px; border-radius: 3px; background: #edf0f4; position: relative; overflow: hidden; margin-left: auto; }
.mxp-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 3px; }
.mxp-bars b { width: 34px; text-align: right; color: #1f4a73; }
.mxp-sec { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: #5a7690; display: flex; justify-content: space-between; }
.mxp-ocard { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(20,40,60,.07); display: grid; grid-template-columns: 1fr auto; gap: 8px 6px; font-size: 13px; align-items: center; }
.mxp-ocard b { font-size: 15px; letter-spacing: .02em; color: #1f3d5a; }
.mxp-ocard .p { color: #1f4a73; font-weight: 700; }
.mxp-ocard .p span { color: #9aa4ad; font-weight: 400; margin-left: 4px; }
.mxp-ocard .d { color: #9aa4ad; text-align: right; font-size: 12px; }
.mxp-ocard.is-sel { box-shadow: 0 0 0 2px #18aee3; }
.mxp-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.mxp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mxp-ring div { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.mxp-ring b { font-size: 28px; font-weight: 500; color: #1f4a73; display: block; line-height: 1.1; }
.mxp-ring small { font-size: 9.5px; color: #9aa4ad; letter-spacing: .06em; text-transform: uppercase; }
.mxp-land-head { padding: 22px 30px 14px; color: #fff; display: flex; align-items: flex-start; gap: 14px; }
.mxp-land-head b { font-size: 21px; display: block; }
.mxp-land-head small { display: block; font-size: 12.5px; opacity: .78; margin-top: 3px; }
.mxp-land-head .rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; opacity: .95; }
.mxp-land-head .rec svg { width: 18px; height: 18px; }
.mxp-ring small:last-child { text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.mxp-land-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 30px; }
.mxp-land-cards > div { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 14px; }
.mxp-land-foot { display: flex; gap: 14px; padding: 16px 30px; }
.mxp-big { padding: 14px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .05em; color: #fff; }
.mxp-good { display: grid; place-items: center; gap: 4px; }
.mxp-good svg { width: 64px; height: 64px; }

/* ---------- Fulfilment flow: selection, QC, pack, station, phone ---------- */
.mx-ocard.is-sel { border-color: #2f6feb; background: #f7f9ff; }
.mx-ocard-open { display: inline-flex; cursor: pointer; }
.mx-ocard-open:hover { color: var(--blue); }
.mx-sbtn.is-note { color: #9fb0c2; font-size: 11px; }
.mx-chip[data-s="controlling"] { --c: #d8432a; }
.mx-chip--solid[data-s="controlling"] { --c: #f55f44; }
.mx-chip[data-s="packing"] { --c: #3f63e6; }
.mx-chip--solid[data-s="packing"] { --c: #5379ff; }
button.mx-pickedchip, .mx-failchip { cursor: pointer; }
.mx-failchip { height: 24px; padding: 0 14px; border-radius: 4px; background: #fdecec; color: #c0392b; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; }
.mx-holdchip { height: 24px; padding: 0 10px; border-radius: 4px; background: #fff3d6; color: #a87800; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; }
.mx-pickbtn.is-pass { background: #e3f7ea; color: #22a06b; }
.mx-holdbtn.is-fail { background: #fdecec; color: #c0392b; }
.mx-inlinerow td { background: #fbfcfd; }
.mx-inlineform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; font-size: 11.5px; white-space: normal; }
.mx-inlineform > b { width: 100%; font-size: 12px; }
.mx-inlineform label { display: grid; gap: 4px; color: #5a6878; }
.mx-inlineform select { height: 30px; border: 1px solid #dfe5ec; border-radius: 6px; padding: 0 8px; font: inherit; color: var(--ink); background: #fff; }
.mx-inlineform .mx-input { height: 30px; width: 56px; justify-content: center; }
.mx-qc-order td { background: #f8fafc; font-size: 12.5px; }
.mx-qc-lines > td { padding: 0 0 10px; }
.mx-ship-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 64px 20px; color: #5a6878; font-size: 12.5px; }
.mx .mx-ship-empty svg { width: 34px; height: 34px; color: var(--cyan); }
.mx-ship-empty b { font-size: 15px; color: var(--ink); }
.mx-ship-empty span { max-width: 380px; }
.mx-ship-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 11px 14px; border-radius: 8px; background: #fff7e6; border: 1px solid #f3d9a4; color: #92400e; font-size: 12.5px; font-weight: 600; }
.mx .mx-ship-alert svg { width: 14px; height: 14px; }
.mx-ship-alert small { width: 100%; font-weight: 400; color: #8a5a12; }
.mx-phone-live { position: absolute; left: 20px; bottom: 16px; width: 262px; z-index: 7; animation: mxPhoneIn .4s cubic-bezier(.2,.7,.2,1); }
.mx-phone-live[hidden] { display: none; }
.has-selbar > .mx-toast { bottom: 72px; }
.mxp-card.is-done { border: 2px solid #3cc47c; }
.mxp-scan { width: 100%; text-align: left; }
.mxp-btn.is-off { opacity: .45; }
.mxp-modal .two button { padding: 13px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid #edf0f4; background: #fff; }
.mx-phone-live.is-land { width: 540px; bottom: 225px; }
.mxp-qcrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mxp-qcrow button { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 4px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .03em; line-height: 1.2; }
.mxp-qcrow button.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1f3d5a; }
.mxp-big.is-disabled { opacity: .5; }
.mxp-boxpick { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 12px 14px; }
.mxp-boxpick.is-sel { box-shadow: 0 0 0 2px #18aee3; }
.mxp-boxic { display: grid; place-items: center; margin-right: 12px; color: #9aa4ad; }
.mxp-boxic svg { width: 22px; height: 22px; }
/* Production app: the Jobs list (production-jobs screenshots). */
.mxp-tabs.is-pill { overflow: hidden; margin-right: -18px; }
.mxp-jcard { display: grid; gap: 9px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20,40,60,.08); }
.mxp-jcard .t { display: flex; justify-content: space-between; align-items: center; }
.mxp-jcard .t b { font-size: 17px; font-weight: 600; color: #6c87a3; letter-spacing: .02em; }
.mxp-jcard .t span { padding: 5px 12px; border-radius: 6px; background: #edf0f4; color: #8a9bb5; font-size: 13px; font-weight: 600; }
.mxp-jcard .s { font-size: 13px; color: #b0bac5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxp-jcard .s b { color: #6c87a3; }
.mxp-jcard .m { display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: #b0bac5; }
.mxp-jcard .m > b { color: #6c87a3; }
.mxp-jcard .m span b { color: #1f4a73; }
.mxp-jcard .m .d { margin-left: auto; font-size: 12px; }
.mxp-jcard .m .d b { color: #6c87a3; font-weight: 500; }
@keyframes mxPhoneIn { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 1199px) { .mx-phone-live { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mx-phone-live { animation: none; } }

/* ---------- The live demo on small screens ---------- */
@media (max-width: 1100px) {
	.try-app .mx-ship { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.try-app .mx-side, .try-app .mx-rail { display: none; }
	.try-app .mx-main { padding: 14px; }
	.try-app .mx-drawer-scrim { left: 0; }
	.try-app .mx-drawer, .try-app .mx-drawer.is-wide { width: 100%; }
	.try-app .mx-kpis { grid-template-columns: 1fr 1fr; }
	.try-app .mx-grid-2, .try-app .mx-grid-3, .try-app .mx-ship { grid-template-columns: minmax(0, 1fr) !important; }
	.try-app .mx-board { grid-template-columns: repeat(6, 210px) !important; overflow-x: auto; padding-bottom: 6px; }
	.try-app .mx-tree { grid-template-columns: repeat(4, 220px); overflow-x: auto; column-gap: 64px; }
	.try-app .mx-loc-tools, .try-app .mx-toolbar .mx-btn:not(.mx-btn--blue) { display: none; }
	.try-app .mx-legend-row { margin-bottom: 18px; }
	.try-app .mx-toast { white-space: normal; width: max-content; }
	.try-app .mx-drawer-f { flex-wrap: wrap; }
	.try-app .mx-table.is-qc :is(th, td) { padding-left: 8px; padding-right: 8px; }
	.try-app .mx-table:is(.is-pick, .is-qc) td:first-child { white-space: normal; }
	.try-app .mx-table.is-pick :is(th, td):is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(6)),
	.try-app .mx-table.is-pick .mx-holdbtn,
	.try-app .mx-table.is-qc :is(th, td):nth-child(2) { display: none; }
	.try-app .mx-pick-loc { display: block; }
	.try-app .mx-ship-bar { flex-wrap: wrap; }
	.try-app .mx-ship-bar .mx-input--search { width: auto; flex: 1 1 120px; }
	.try-app .mx-req { margin-left: 0; text-align: left; }
	.try-app .mx-table.is-items td { white-space: normal; }
	.try-app .mx-table.is-items :is(th, td):is(:nth-child(2), :nth-child(5)) { display: none; }
}

/* ---------- Add Order (orders/create), values from morsix-ui.css + orders/create.css ---------- */
.mx-oc { font-size: 14px; color: #25313c; }
.mx-oc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mx-oc-crumbs { font-size: 12px; color: #9aa4ad; margin-bottom: 4px; }
.mx-oc-crumbs b { font-weight: 400; color: #25313c; }
.mx-oc-title { margin: 0; font-size: 16px; font-weight: 500; color: #18527d; }
.mx-oc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 15px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 14px; color: #25313c; white-space: nowrap; }
.mx-oc-btn svg { width: 14px; height: 14px; }
.mx-oc-btn.is-sm { height: 28px; padding: 0 12px; }
.mx-oc-btn.is-icon { width: 32px; padding: 0; }
.mx-oc-btn.is-primary { margin-left: auto; border-color: #18aee3; background: #18aee3; color: #fff; font-weight: 500; }
.mx-oc-layout { display: flex; align-items: flex-start; gap: 16px; }
.mx-oc-main { flex: 1 1 auto; min-width: 0; }
.mx-oc-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 4px; }
.mx-oc-steps { display: flex; align-items: center; padding: 14px 24px; background: #f9f9f9; border-bottom: 1px solid #e6e6e6; border-radius: 4px 4px 0 0; }
.mx-oc-step { display: flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 14px; color: #9aa4ad; }
.mx-oc-step i { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #ececec; font-size: 12px; font-style: normal; color: #9aa4ad; }
.mx-oc-step.is-current { color: #25313c; }
.mx-oc-step.is-current i { background: #18aee3; color: #fff; font-weight: 500; }
.mx-oc-bar { flex-grow: 1; min-width: 24px; height: 1px; margin: 0 14px; background: #e6e6e6; }
.mx-oc-body { padding: 24px; }
.mx-oc-body h4, .mx-oc-sum h4 { margin: 0 0 2px; font-size: 16px; font-weight: 500; color: #25313c; }
.mx-oc-sub { margin: 0 0 16px; font-size: 14px; color: #9aa4ad; }
.mx-oc-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 150px 100px 32px; column-gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid #e6e6e6; }
.mx-oc-line.is-head { padding: 0 0 6px; border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #9aa4ad; }
.mx-oc-sel, .mx-oc-in { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 14px; color: #25313c; min-width: 0; }
.mx-oc-sel { justify-content: space-between; }
.mx-oc-sel svg { flex-shrink: 0; width: 12px; height: 12px; color: #9aa4ad; }
.mx-oc-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-oc-qty { flex-shrink: 0; display: inline-flex; gap: 4px; padding: 1px 7px; border-radius: 4px; background: #f0fdf4; color: #15803d; font-size: 12px; font-weight: 500; }
.mx-oc-qty small { font-size: 12px; font-weight: 400; opacity: .8; }
.mx-oc-num { text-align: right; font-weight: 500; line-height: 32px; }
.mx-oc-line.is-head .mx-oc-num { line-height: normal; font-weight: 600; }
.mx-oc-rm { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #9aa4ad; }
.mx-oc-rm svg { width: 14px; height: 14px; }
.mx-oc-foot { display: flex; align-items: center; gap: 10px; padding: 14px 2px 0; }
.mx-oc-sum { flex-shrink: 0; width: 300px; padding: 18px 20px; }
.mx-oc-sum h4 { margin-bottom: 14px; font-weight: 600; }
.mx-oc-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.mx-oc-row > span:first-child { color: #666; }
.mx-oc-muted { color: #9aa4ad; }
.mx-oc-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid #e6e6e6; font-weight: 600; }
.mx-oc-total > span:last-child { font-size: 18px; }

/* ---------- Order page (orders/viewsingle), values from shipping_station.css + single_pickpack.css ---------- */
.mx-so { color: #1f2d47; }
.mx-so-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; margin-bottom: 14px; background: #fff; border: 1px solid #e7ebf1; border-radius: 8px; box-shadow: 0 1px 2px rgba(24,82,125,.04), 0 4px 14px rgba(24,82,125,.045); }
.mx-so-bar > div { display: flex; align-items: center; gap: 10px; }
.mx-so-bar b { font-size: 15px; font-weight: 600; color: #16233d; }
.mx-so-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e7ebf1; border-radius: 7px; background: #fff; font-size: 12.5px; font-weight: 500; color: #6b7789; }
.mx-so-btn svg { width: 12px; height: 12px; }
.mx-so-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mx-so-card { margin-bottom: 14px; background: #fff; border: 1px solid #e7ebf1; border-radius: 8px; box-shadow: 0 1px 2px rgba(24,82,125,.04), 0 4px 14px rgba(24,82,125,.045); overflow: hidden; }
.mx-so-card-h { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 11px 16px; border-bottom: 1px solid #e7ebf1; font-size: 13px; font-weight: 600; color: #16233d; }
.mx-so-pill { padding: 3px 10px; border: 1px solid #e7ebf1; border-radius: 20px; background: #f4f6f9; font-size: 11.5px; font-weight: 400; color: #6b7789; }
.mx-so-fields { display: grid; gap: 14px; padding: 16px; }
.mx-so-fields.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mx-so-label { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #97a1b2; }
.mx-so-value { margin: 0; font-size: 13px; line-height: 1.4; color: #1f2d47; word-break: break-word; }
.mx-so-value.is-muted { color: #6b7789; }
.mx-so-paid { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #e8f7ee; color: #1e9e57; font-size: 11.5px; font-weight: 500; }
.mx-so-link { display: inline-flex; align-items: center; gap: 5px; color: #18aee3; white-space: nowrap; }
.mx-so-link svg { width: 12px; height: 12px; }
.mx-so-line { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e7ebf1; }
.mx-so-line:last-child { border-bottom: 0; }
.mx-so-img { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 6px; background: #f4f6f9; }
.mx-so-img svg { width: 34px; height: 34px; }
.mx-so-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mx-so-info b { font-size: 13px; font-weight: 600; color: #16233d; }
.mx-so-info small { font-size: 11.5px; color: #6b7789; }
.mx-so-loc { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6b7789; }
.mx-so-loc svg { width: 11px; height: 11px; color: #18aee3; }
.mx-so-loc i { margin-left: 4px; padding-left: 8px; border-left: 1px solid #e7ebf1; font-style: normal; color: #97a1b2; }
.mx-so-st { justify-self: start; margin-top: 6px; padding: 2px 8px; border-radius: 4px; background: #eef1ff; color: #5379ff; font-size: 11px; font-weight: 500; }
.mx-so-qty { text-align: right; }
.mx-so-qty b { font-size: 15px; font-weight: 600; color: #16233d; }
.mx-so-cust { display: grid; gap: 10px; padding: 12px 16px; }
.mx-so-sub { padding: 11px 16px 2px; border-top: 1px solid #e7ebf1; font-size: 12px; font-weight: 600; color: #16233d; }
.mx-so-hist { margin: 0; padding: 6px 16px 10px; list-style: none; }
.mx-so-hist li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f3f6; }
.mx-so-hist li:last-child { border-bottom: 0; }
.mx-so-tr { font-size: 12.5px; color: #1f2d47; }
.mx-so-hist small { grid-column: 1 / -1; font-size: 11px; color: #97a1b2; }
.mx-oc-step.is-done { color: #25313c; }
.mx-oc-bar.is-done { background: #18aee3; }
.mx-oc-lbl { display: block; margin-bottom: 5px; font-size: 14px; color: #666; }
.mx-oc-lbl i { margin-right: 3px; font-style: normal; color: #ff4d4f; }
.mx-oc-in.is-ph { color: #bfbfbf; }
.mx-oc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.mx-oc-hr { margin: 22px 0 18px; border: 0; border-top: 1px solid #e6e6e6; }
.mx-oc-rates-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mx-oc-rates-h small { font-size: 12px; color: #9aa4ad; }
.mx-oc-rates { border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; overflow: hidden; }
.mx-oc-rate { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f5f5f5; }
.mx-oc-rate:last-child { border-bottom: 0; }
.mx-oc-rate.is-on { background: #e6f7fd; box-shadow: inset 2px 0 0 #18aee3; }
.mx-oc-radio { position: relative; flex: 0 0 auto; width: 15px; height: 15px; border: 2px solid #d9d9d9; border-radius: 50%; }
.mx-oc-rate.is-on .mx-oc-radio { border-color: #18aee3; }
.mx-oc-rate.is-on .mx-oc-radio::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #18aee3; }
.mx-oc-logo { flex: 0 0 34px; font-size: 10px; font-weight: 700; color: #5a6878; text-align: center; }
.mx-oc-rmain { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.mx-oc-rmain > span { display: flex; align-items: center; gap: 6px; }
.mx-oc-rmain b { font-size: 13px; font-weight: 600; color: #25313c; }
.mx-oc-rmain em { padding: 1px 6px; border: 1px solid #e6e6e6; border-radius: 4px; background: #f9f9f9; font-size: 10px; font-style: normal; font-weight: 600; color: #666; }
.mx-oc-rmain small { font-size: 12px; color: #666; }
.mx-oc-price { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #25313c; }
.mx-oc-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #25313c; }
.mx-oc-switch i { position: relative; width: 34px; height: 19px; border-radius: 10px; background: #18aee3; }
.mx-oc-switch i::after { content: ''; position: absolute; top: 2px; left: 17px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.mx-oc-rv { padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 4px; }
.mx-oc-rv-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #9aa4ad; }
.mx-oc-rv-h u { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #106f92; }
.mx-oc-rv-m { font-size: 14px; color: #25313c; }
.mx-oc-rv-l { margin-top: 3px; font-size: 14px; line-height: 1.45; color: #666; }
.mx-oc-rv-i { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.mx-oc-rv-i:last-child { border-bottom: 0; }
.mx-oc-rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mx-oc-btn, .mx-oc-rate { transition: background-color .15s ease, transform .15s ease; }
.mx-oc-btn.is-primary.is-press { background: #13a0d2; border-color: #13a0d2; transform: scale(.96); }
.mx-oc-rate.is-press { background: #d4f0fb; }
/* The Try it demo's working Add Order: real controls dressed like the static ones. */
button.mx-oc-btn, button.mx-oc-rm, button.mx-oc-rate, .mx-oc-edit { font: inherit; cursor: pointer; }
/* Narrow (the phone demo): one column, the summary under the form, each line wrapped. */
.mx-oc { container-type: inline-size; }
@container (max-width: 760px) {
	.mx-oc-layout { flex-direction: column; align-items: stretch; }
	.mx-oc-sum { width: auto; }
	.mx-oc-steps { padding: 12px 14px; }
	.mx-oc-step:not(.is-current) { font-size: 0; gap: 0; }
	.mx-oc-bar { min-width: 10px; margin: 0 8px; }
	.mx-oc-body { padding: 16px 14px; }
	.mx-oc-line { grid-template-columns: minmax(0, 1fr) 80px 32px; row-gap: 8px; }
	.mx-oc-line > :nth-child(1), .mx-oc-line > :nth-child(2) { grid-column: 1 / -1; }
	.mx-oc-line.is-head { display: none; }
	.mx-oc-grid, .mx-oc-rv-grid { grid-template-columns: minmax(0, 1fr); }
}
button.mx-oc-btn:hover:not(.is-primary) { border-color: #18aee3; color: #18aee3; }
button.mx-oc-btn.is-primary:hover { background: #13a0d2; border-color: #13a0d2; }
button.mx-oc-rm { border: 0; background: none; border-radius: 6px; }
button.mx-oc-rm:hover:not(:disabled) { color: #e5484d; background: #fdf0f0; }
button.mx-oc-rm:disabled { opacity: .4; cursor: default; }
button.mx-oc-rate { width: 100%; border: 0; border-bottom: 1px solid #f5f5f5; background: #fff; text-align: left; color: inherit; }
button.mx-oc-rate:hover:not(.is-on) { background: #f7fbfd; }
.mx-oc-sel.is-live { position: relative; cursor: pointer; }
.mx-oc-sel.is-live select { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; }
.mx-oc-sel.is-live:focus-within { border-color: #18aee3; box-shadow: 0 0 0 2px rgba(24,174,227,.18); }
input.mx-oc-in { width: 100%; font: inherit; outline: none; }
input.mx-oc-in:focus { border-color: #18aee3; box-shadow: 0 0 0 2px rgba(24,174,227,.18); }
input.mx-oc-in.is-bad { border-color: #e5484d; }
.mx-oc-err { display: block; margin-top: 4px; font-size: 12px; color: #e5484d; }
.mx-oc-edit { padding: 0; border: 0; background: none; font-size: 14px; letter-spacing: 0; text-transform: none; color: #106f92; text-decoration: underline; }
.mx-table tr.is-new td { background: #eef9fe; }
.mx-so-btn.is-primary { border-color: #18aee3; background: #18aee3; color: #fff; }
.mx-so-st.is-pending { display: inline-flex; align-items: center; background: #f4f6f9; color: #6b7789; }
.mx-so-st.is-pending::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.mx-seg > *, .mx-tab, .mx-link { transition: background-color .15s ease, transform .15s ease; }
.mx-seg > .is-press, .mx-tab.is-press { background: #e6f7fd; transform: scale(.96); }
.mx-link.is-press { text-decoration: underline; }
.mx-ocard-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mx-ocard-chips { flex-wrap: wrap; }
.mx-ocard-meta dd { white-space: nowrap; }
/* Narrow board cards (the Try it board): each label above its date instead of breaking mid-label. */
.mx-ocard { container-type: inline-size; }
@container (max-width: 200px) {
	.mx-ocard-meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mx-ocard-meta dt { white-space: nowrap; }
	.mx-ocard-meta dd { text-align: left; margin-bottom: 3px; }
}

/* ---------- Integrations replicas (Settings → Integrations / API Keys, Vendors, Conversions, Carriers) ---------- */
@keyframes mxFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mx-btn--danger { border-color: #fecaca; color: #b91c1c; }
.mx-btn--danger:hover { border-color: #ff4d4f; background: #fef2f2; color: #b91c1c; }
.mx-count { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 4px; background: #eef2f6; font-weight: 600; text-align: center; color: #3d4a58; }
i.mx-req { margin-right: 3px; font-style: normal; color: #ff4d4f; }
.mx-so-paid.is-unpaid { background: rgba(245,95,68,.1); color: #d32607; }
.mx-so-paid + .mx-so-penc { display: inline; }
.mx .mx-so-penc { width: 11px; height: 11px; margin-left: 6px; vertical-align: -1px; color: #8a96a3; }
.mx-so-paid.is-flash { animation: mxPaidFlash 1.8s ease-out; }
@keyframes mxPaidFlash { 0%, 30% { box-shadow: 0 0 0 4px rgba(30,158,87,.25); } 100% { box-shadow: 0 0 0 0 rgba(30,158,87,0); } }
/* Settings → Integrations */
.mx-int { max-width: 1180px; padding: 20px 24px 24px; border-radius: 8px; font-size: 13px; }
.mx-int-head { display: flex; align-items: center; gap: 12px; }
.mx-int-logo { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 40px; padding: 4px 8px; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; }
.mx-int-logo img { max-width: 100%; max-height: 100%; }
.mx-int-head h4 { margin: 0; font-size: 16px; font-weight: 600; color: #25313c; }
.mx-int-desc { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #666; }
.mx-int-get { margin-left: 2px; color: #106f92; font-weight: 500; white-space: nowrap; }
.mx .mx-int-get svg { display: inline; width: 12px; height: 12px; margin-left: 3px; vertical-align: -2px; }
.mx-int-note { margin: 2px 0 0; font-size: 12px; color: #9aa4ad; }
.mx-int-status { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 8px 12px; border: 1px solid #b7eb8f; border-radius: 8px; background: #f6ffed; line-height: 22px; animation: mxFadeIn .45s ease-out; }
.mx .mx-int-status svg { width: 15px; height: 22px; flex: none; color: #52c41a; }
.mx-int-status p { margin: 0; color: #25313c; }
.mx-int-status .m { color: #666; white-space: nowrap; }
.mx-int-status p > span:not(:last-child)::after { content: '\00B7'; margin: 0 6px; color: #9aa4ad; }
.mx-int-actions { display: flex; gap: 8px; margin-top: 12px; }
.mx-int-form { max-width: 560px; margin-top: 16px; }
.mx-int-row { display: flex; gap: 8px; }
.mx-int-key { flex: 1; justify-content: space-between; }
.mx-int-key em { font-style: normal; color: #bfbfbf; }
.mx-int-key b { font-weight: 400; letter-spacing: .5px; color: #25313c; }
.mx .mx-int-key svg { width: 14px; height: 14px; color: #9aa4ad; }
.mx-int-key.is-error { border-color: #ff4d4f; }
.mx-int-connect.is-busy { background: #cfe9f4; border-color: #cfe9f4; }
.mx-int-help { display: block; margin-top: 6px; font-size: 12px; color: #666; }
.mx-int-err { display: block; margin-top: 4px; font-size: 12px; color: #b91c1c; }
/* Settings → API Keys */
.mx-ak { position: relative; min-height: 100%; }
.mx-ak-key { display: inline-flex; align-items: center; gap: 8px; color: #8a96a3; }
.mx .mx-ak-key svg { width: 13px; height: 13px; }
.mx-ak-key code { font: 12px/1 ui-monospace, Consolas, monospace; color: #3d4a58; }
.mx-ak-req { height: 28px; }
.mx-ak-req.is-on { border-color: #18aee3; color: #106f92; }
.mx-ak-req.is-on svg:last-child { transform: rotate(180deg); }
.mx-ak-m { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #3d4a58; }
.mx-ak-det { display: flex; gap: 12px; font-size: 11.5px; }
.mx-ak-pages { display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 8px 15px; border-top: 1px solid #f0f3f6; font-size: 11px; color: #8a96a3; }
.mx-ak-pages i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #e2e9f0; border-radius: 4px; font-style: normal; }
.mx-dlg-scrim { position: absolute; inset: -22px -26px -26px; background: rgba(20,32,48,.38); z-index: 4; animation: mxFadeIn .3s ease-out; }
.mx-dlg { position: absolute; z-index: 5; left: 50%; top: 120px; width: 480px; margin-left: -240px; padding: 20px 24px; border-radius: 8px; background: #fff; box-shadow: 0 24px 48px -16px rgba(15,34,54,.4); font-size: 13px; animation: mxFadeIn .4s ease-out; }
.mx-dlg-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #25313c; }
.mx .mx-dlg-ok svg { width: 18px; height: 18px; color: #52c41a; display: block; }
.mx-dlg p { margin: 12px 0 14px; color: #666; line-height: 1.55; }
.mx-dlg-key { display: flex; gap: 8px; }
.mx-dlg-key code { flex: 1; min-width: 0; height: 32px; padding: 0 11px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid #d9d9d9; border-radius: 6px; background: #f5f5f5; font: 12px ui-monospace, Consolas, monospace; color: #25313c; }
.mx-dlg-f { display: flex; justify-content: flex-end; margin-top: 18px; }
/* Vendors */
.mx-vtile { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 10.5px; font-weight: 700; }
.mx-vtile.is-lg { width: 56px; height: 56px; flex-basis: 56px; border-radius: 50%; font-size: 17px; }
.mx .mx-vchev { width: 10px; height: 10px; color: #8a96a3; transition: transform .2s; }
.mx .mx-vchev.is-up { transform: rotate(180deg); }
.mx-table tr.is-open td { background: #f7faff; }
.mx-pexp-row .mx-vk { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }
.mx-vk-foot { padding: 9px 15px; border-top: 1px solid #f0f3f6; }
.mx-vk-foot .mx-btn { height: 28px; }
.mx-vd-img { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.mx-vd-img b { display: block; font-size: 13px; font-weight: 600; }
.mx-vd-img .mx-link { font-size: 12px; }
.mx-vd-f { margin-bottom: 14px; }
.mx-vd-sec { margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid #edf0f4; font-size: 13.5px; font-weight: 600; color: #25313c; }
.mx-vd-info { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11.5px; color: #106f92; }
.mx .mx-vd-info svg { width: 13px; height: 13px; flex: none; }
/* Conversions + the CSV import panel */
.mx-table.is-conv td { padding-top: 7px; padding-bottom: 7px; }
.mx-cv-in { width: 150px; height: 28px; font-size: 12px; }
.mx-cv-in.is-filled { animation: mxFlashBg 1.8s ease-out; font-weight: 500; }
.mx-imp-dz { display: flex; flex-direction: column; align-items: center; padding: 26px 0 24px; border-bottom: 1px solid #f3f3f3; text-align: center; }
.mx-imp-ic img { width: 64px; height: 64px; display: block; }
.mx-imp-t { margin: 14px 0 18px; font-size: 14px; font-weight: 500; color: #b0b7c3; }
.mx-imp-t b { color: #18aee3; font-weight: 500; }
.mx-imp-choose { width: 145px; height: 37px; }
.mx-imp-prev p { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: #25313c; }
.mx-imp-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e5eaf0; border-radius: 8px; animation: mxFadeIn .4s ease-out; }
.mx-imp-file img { width: 34px; height: 34px; }
.mx-imp-file b { display: block; font-size: 12.5px; font-weight: 600; }
.mx-imp-file small { font-size: 11px; color: #8a96a3; }
.mx-imp-map { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f3f3; font-size: 12.5px; }
.mx-imp-map.is-head { padding-top: 0; font-weight: 600; color: #25313c; }
.mx-imp-map em { font-style: normal; font-size: 11px; color: #8a96a3; }
.mx-imp-map em b { font-weight: 500; color: #106f92; }
.mx-imp-sel { justify-content: space-between; }
.mx .mx-imp-sel svg { width: 11px; height: 11px; color: #8a96a3; }
.mx-imp-f .mx-btn { flex: 1; }
.mx-toastr { position: absolute; top: 14px; right: 18px; z-index: 7; display: flex; gap: 10px; align-items: flex-start; width: 300px; padding: 13px 15px; border-radius: 4px; background: #51a351; color: #fff; font-size: 12px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); animation: mxFadeIn .45s ease-out; }
.mx-toastr b { display: block; font-size: 12.5px; }
.mx .mx-toastr svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
/* Carriers */
.mx-car-logo { width: 34px; height: 26px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #e5eaf0; border-radius: 5px; background: #fff; overflow: hidden; }
.mx-car-logo img { max-width: 26px; max-height: 18px; }
.mx-car-logo.is-custom { border-radius: 50%; width: 26px; flex-basis: 26px; color: #9aa4ad; background: #f4f6f8; }
.mx .mx-car-logo.is-custom svg { width: 13px; height: 13px; }
.mx-car-n { font-weight: 500; }
.mx-car-s { max-width: 360px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }

/* ---------- iPaymer replicas (its shell, API Keys, Integrations → Morsix, Create Invoice, the invoice page) ---------- */
.ipx { position: relative; flex: 1; display: flex; min-width: 0; background: #f4f4f4; color: #2b3440; font-size: 11.5px; }
.ipx-side { position: relative; width: 210px; flex: none; display: flex; flex-direction: column; background: #fff; border-left: 3px solid #18aee3; border-right: 1px solid #ececec; }
.ipx-logo { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; }
.ipx-logo img { height: 24px; }
.ipx-logo span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #eef1f4; font-size: 10px; color: #5a6878; }
.ipx-ws { position: relative; margin: 4px 10px 10px; padding: 14px 10px 6px; border-radius: 4px; background: #eef0f2; font-size: 11px; font-weight: 500; }
.ipx-ws i { position: absolute; left: 10px; top: 5px; width: 18px; height: 4px; background: radial-gradient(circle, #f55f44 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.ipx-ws small { display: block; font-size: 8.5px; color: #9aa4ad; }
.ipx-ws b { position: absolute; right: 10px; top: 14px; font-weight: 400; color: #5a6878; }
.ipx-lbl { padding: 0 10px 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .02em; color: #18aee3; }
.ipx-navwrap { flex: 1; min-height: 0; overflow: hidden; }
.ipx-item { display: flex; align-items: center; gap: 9px; height: 25px; padding: 0 12px; font-size: 11px; color: #2b3440; }
.ipx .ipx-item svg { width: 12px; height: 12px; color: #7d8894; }
.ipx .ipx-item .ipx-chev { margin-left: auto; width: 10px; height: 10px; }
.ipx .ipx-chev.is-up { transform: rotate(180deg); }
.ipx-sub { display: block; height: 25px; line-height: 25px; padding-left: 18px; font-size: 10.5px; color: #2b3440; position: relative; }
.ipx-sub::before { content: ''; position: absolute; left: 11px; top: 11px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.ipx-sub.is-on { background: linear-gradient(90deg, #4cc4ee, #b9e9f9); color: #fff; }
.ipx-sub-lbl { display: block; padding: 10px 12px 3px; font-size: 8.5px; font-weight: 600; letter-spacing: .03em; color: #8a96a3; }
.ipx-pow { padding: 6px 12px; font-size: 8px; color: #8a96a3; }
.ipx-pow b { color: #18aee3; font-weight: 500; }
.ipx-user { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #f0f0f0; font-size: 10.5px; color: #8a96a3; }
.ipx-user div { flex: 1; min-width: 0; color: #2b3440; }
.ipx-user small { display: block; font-size: 8.5px; color: #8a96a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ipx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ipx-stats { display: flex; justify-content: space-between; gap: 10px; padding: 3px 12px; background: #fff; font-size: 8.5px; color: #2b3440; white-space: nowrap; overflow: hidden; }
.ipx-stats b { margin-left: 8px; font-weight: 400; }
.ipx-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; background: #fff; border-bottom: 1px solid #ececec; color: #8a96a3; font-size: 10.5px; }
.ipx-top > span:first-child { display: flex; align-items: center; gap: 6px; }
.ipx-top-r { display: flex; gap: 10px; color: #2b3440; }
.ipx .ipx-top svg { width: 12px; height: 12px; }
.ipx-main { flex: 1; min-height: 0; padding: 12px 14px; overflow: hidden; }
.ipx-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 10.5px; color: #8a96a3; }
.ipx .ipx-crumbs svg { width: 11px; height: 11px; }
.ipx-crumbs span::before { content: '/'; margin-right: 6px; color: #b7c0c9; }
.ipx-crumbs .is-on { color: #2b3440; }
.ipx-rail { width: 24px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 9px; padding-top: 44px; background: #fff; border-left: 1px solid #ececec; }
.ipx-rail span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; }
.ipx-rail span.is-on { box-shadow: inset 2px 0 0 #18aee3; background: #eaf7fd; }
.ipx-rail img { width: 12px; height: 12px; object-fit: contain; }
.ipx-card { background: #fff; border: 1px solid #ececec; border-radius: 4px; padding: 14px 16px; }
.ipx-btn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border-radius: 3px; background: #18aee3; color: #fff; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.ipx .ipx-btn svg { width: 11px; height: 11px; }
.ipx-btn.is-ghost { background: #fff; border: 1px solid #dfe3e8; color: #2b3440; }
.ipx-btn.is-soon { background: #fff; border: 1px solid #e3e6ea; color: #b7c0c9; }
.ipx-input { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 22px; padding: 0 7px; border: 1px solid #e3e6ea; border-radius: 3px; background: #fff; font-size: 10.5px; color: #2b3440; }
.ipx-input.is-ph, .ipx-input em { color: #c1c8cf; font-style: normal; }
.ipx-input.is-focus { border-color: #18aee3; box-shadow: 0 0 0 2px rgba(24,174,227,.15); }
.ipx .ipx-input svg { width: 10px; height: 10px; color: #8a96a3; }
.ipx-table { width: 100%; border-collapse: collapse; background: #fff; }
.ipx-table th { padding: 7px 8px; text-align: left; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #2b3440; border-bottom: 1px solid #ececec; background: #fafafa; }
.ipx-table td { padding: 6px 8px; border-bottom: 1px solid #f2f2f2; font-size: 10.5px; white-space: nowrap; }
/* API Keys */
.ipx-akhead { margin-bottom: 10px; }
.ipx-akhead h4 { margin: 0; font-size: 13px; font-weight: 600; }
.ipx-akhead p { margin: 4px 0 8px; font-size: 10.5px; color: #6b7684; }
.ipx-info { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #b9dcf3; border-radius: 3px; background: #e9f4fc; font-size: 10.5px; }
.ipx .ipx-info svg { width: 12px; height: 12px; color: #1677ff; }
.ipx-info code { font: 600 10px ui-monospace, Consolas, monospace; }
.ipx-search { display: inline-flex; align-items: center; justify-content: space-between; width: 150px; height: 22px; margin-bottom: 8px; padding: 0 6px; border: 1px solid #e3e6ea; background: #fff; color: #c1c8cf; font-size: 10px; }
.ipx .ipx-search svg { width: 10px; height: 10px; }
.ipx-key { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .5px; }
.ipx-copy { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; color: #6b7684; }
.ipx .ipx-copy svg { width: 12px; height: 12px; }
.ipx-copy.is-press { background: #eaf7fd; color: #18aee3; }
.ipx .ipx-key svg { width: 12px; height: 12px; color: #6b7684; }
/* Integrations + the Morsix dialog */
.ipx-ints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ipx-int { position: relative; padding: 14px; border: 1px solid #ececec; border-radius: 4px; background: #fff; }
.ipx-int .ipx-btn { position: absolute; right: 12px; top: 12px; }
.ipx-int b { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; }
.ipx-int p { margin: 2px 0 0; font-size: 10px; color: #8a96a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipx-int-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.ipx-int-logo.is-img { background: none; }
.ipx-int-logo img { width: 32px; height: 32px; object-fit: contain; }
.ipx-scrim { position: absolute; inset: 0; background: rgba(30,36,44,.45); }
.ipx-dlg { position: absolute; left: 50%; top: 22px; width: 300px; margin-left: -150px; padding: 14px; border-radius: 4px; background: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); }
.ipx-dlg-h { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.ipx-dlg-h span { color: #8a96a3; font-weight: 400; }
.ipx-dlg-lbl { display: block; margin-bottom: 4px; font-size: 9.5px; }
.ipx-dlg-lbl i { font-style: normal; color: #f5222d; }
.ipx-mkey b { font-weight: 400; letter-spacing: .3px; overflow: hidden; white-space: nowrap; }
.ipx-dlg-f { display: flex; justify-content: flex-end; gap: 6px; margin-top: 18px; }
/* Create Invoice */
.ipx-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 10.5px; color: #8a96a3; }
.ipx-steps em { flex: 1; height: 1px; background: #e3e6ea; }
.ipx-step { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ipx-step i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #eef0f2; font-size: 9px; font-style: normal; }
.ipx-step.is-on { color: #2b3440; }
.ipx-step.is-on i { background: #18aee3; color: #fff; }
.ipx-step.is-done { color: #2b3440; }
.ipx-step.is-done i { background: none; color: #18aee3; }
.ipx-steps .is-done + em { background: #18aee3; }
.ipx-inv td { padding: 5px 6px; }
.ipx-inv .ipx-input { min-width: 60px; }
.ipx-inv td:first-child { display: flex; align-items: center; gap: 6px; }
.ipx-n { color: #8a96a3; font-size: 9.5px; }
.ipx-sel { width: 190px; }
.ipx-tick { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: #18aee3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 6 2 2 4-4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ipx-mstock { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid #d6eef8; border-radius: 3px; background: #f1fafe; font-weight: 600; color: #106f92; }
.ipx-mstock img { width: 12px; height: 12px; }
.ipx-add { display: flex; justify-content: flex-end; margin: 10px 0; }
.ipx-sum { width: 380px; margin-left: auto; }
.ipx-sum div { display: flex; justify-content: space-between; align-items: center; min-height: 22px; border-bottom: 1px solid #f2f2f2; font-size: 10.5px; }
.ipx-sum small { margin-left: 4px; font-size: 9px; color: #8a96a3; }
.ipx-sum .ipx-input { width: 110px; }
.ipx-sum .is-total { font-weight: 700; border-bottom: 0; }
.ipx-foot { display: flex; justify-content: space-between; margin-top: 12px; }
/* The invoice page */
.ipx-pub { flex: 1; display: flex; justify-content: center; padding: 26px 0; background: #f4f5f7; overflow: hidden; }
.ipx-doc { width: 620px; padding: 22px 26px; background: #fff; border: 1px solid #e6e8eb; border-radius: 4px; font-size: 12px; color: #2b3440; }
.ipx-doc-h { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: #6b7684; }
.ipx-doc-h b { color: #2b3440; font-size: 13px; }
.ipx-doc-h em { padding: 1px 6px; border-radius: 3px; background: #e3f8ea; color: #1e9e57; font-style: normal; }
.ipx-doc.is-paid .ipx-doc-h em { animation: mxPaidFlash 1.8s ease-out; }
.ipx-doc-h .ipx-btn { margin-top: 6px; height: 28px; font-size: 11.5px; }
.ipx-pm { margin-top: 12px; padding: 12px 14px; border: 1px solid #e6e8eb; border-radius: 4px; display: flex; flex-direction: column; gap: 3px; }
.ipx-pm small { color: #8a96a3; }
.ipx-doc-to { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eceef0; line-height: 1.6; }
.ipx-doc-to b { display: block; }
.ipx-doc-to > div:last-child { text-align: right; }
.ipx-doc-t { width: 100%; margin-top: 16px; border-collapse: collapse; }
.ipx-doc-t th { padding: 8px 0; border-top: 1px solid #eceef0; border-bottom: 1px solid #eceef0; text-align: left; font-weight: 600; }
.ipx-doc-t td { padding: 8px 0; border-bottom: 1px solid #f2f3f5; }
.ipx-doc-t th:not(:first-child), .ipx-doc-t td:not(:first-child) { text-align: right; width: 70px; }
.ipx-doc-t small { display: block; font-size: 10.5px; color: #9aa4ad; }
.ipx-doc-sum { display: grid; grid-template-columns: 1fr 90px; gap: 3px 16px; width: 260px; margin: 12px 0 0 auto; text-align: right; color: #6b7684; }
.ipx-doc-sum b { color: #2b3440; font-weight: 400; }
.ipx-doc-sum .t { color: #2b3440; font-weight: 600; }
.ipx-doc.is-paid .ipx-made { color: #1e9e57; }
.ipx-doc-pd { margin-top: 16px; display: flex; flex-direction: column; gap: 3px; }
.ipx-doc-q { margin: 22px 0 0; text-align: center; font-size: 11px; color: #8a96a3; }
.ipx-scrim { z-index: 4; }
.ipx-dlg { z-index: 5; top: 70px; }
.ipx-table tr.is-new td { animation: mxFlashBg 1.8s ease-out; }
.ipx-drawer { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: 300px; padding: 12px 14px; background: #fff; box-shadow: -12px 0 30px -14px rgba(0,0,0,.35); animation: mxFadeIn .3s ease-out; }
.ipx-drawer-h { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.ipx-drawer-h > span:first-child { color: #8a96a3; }
.ipx-drawer-h b { flex: 1; font-size: 12px; }
.ipx-drawer-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 0 18px; text-align: center; }
.ipx-drawer-b img { width: 28px; height: 28px; margin-bottom: 6px; }
.ipx-drawer-b p { margin: 0; font-size: 13px; }
.ipx-drawer-b small { font-size: 9.5px; color: #106f92; }
.mx-dlg-help { margin: 6px 0 0 !important; font-size: 12px; color: #666; }

/* Add product, step 4 Review (product_form.php / product_form.css) */
.mx-pf { font-size: 13px; }
.mx-pf-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: #9aa4ad; }
.mx-pf-crumbs i { font-style: normal; }
.mx-pf-crumbs b { font-weight: 400; color: #25313c; }
.mx-pf-row { margin: 0 24px; padding: 18px 0; }
.mx-pf-row + .mx-pf-row { border-top: 1px solid #e6e6e6; }
.mx-pf-row h4 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 500; color: #25313c; }
.mx-pf-row h4 small { font-size: 11px; font-weight: 400; color: #9aa4ad; }
.mx-pf-ip { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid #e6e6e6; border-radius: 4px; }
.mx-pf-ip > div { flex: 1; min-width: 0; }
.mx-pf-ip b { font-weight: 500; color: #25313c; }
.mx-pf-ip p { margin: 4px 0 0; font-size: 12.5px; color: #666; }
.mx-pf-switch { position: relative; width: 36px; height: 20px; flex: none; border-radius: 10px; background: #c4cdd6; transition: background-color .2s; }
.mx-pf-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.mx-pf-switch.is-on { background: #18aee3; }
.mx-pf-switch.is-on::after { transform: translateX(16px); }
.mx-pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mx-pf-rv { min-width: 0; padding: 10px 14px; border: 1px solid #e6e6e6; border-radius: 4px; }
.mx-pf-rv.is-wide { grid-column: 1 / -1; }
.mx-pf-rv-h { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; color: #25313c; }
.mx-pf-rv-h .mx-link { font-weight: 500; font-size: 12px; }
.mx-pf-rv-r { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #f2f2f2; font-size: 12px; }
.mx-pf-rv-r:last-child { border-bottom: 0; }
.mx-pf-rv-r > span:first-child { color: #666; }
.mx-pf-rv-r > span:last-child { color: #25313c; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-pf-thumb { display: inline-block; width: 26px; height: 26px; border: 1px solid #e6e6e6; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.mx-pf-thumb svg, .mx-pf-img svg { width: 100%; height: 100%; }
.mx-pf-sum { font-size: 13px; }
.mx-pf-img { height: 120px; margin-bottom: 12px; padding: 14px; border: 1px solid #e6e6e6; border-radius: 6px; background: #f9f9f9; }
.mx-pf-name { display: block; font-size: 16px; font-weight: 600; color: #25313c; }
.mx-pf-sku { display: block; margin: 2px 0 12px; font-size: 12px; color: #9aa4ad; }
.mx-pf-sum dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0 0 14px; padding-top: 12px; border-top: 1px solid #e6e6e6; }
.mx-pf-sum dt { color: #666; }
.mx-pf-sum dd { margin: 0; text-align: right; color: #25313c; }
.mx-pf-sum dd.is-on { color: #106f92; font-weight: 500; animation: mxFlashBg 1.6s ease-out; }
.mx-pf-ready { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: #f0fdf4; color: #15803d; font-size: 12.5px; font-weight: 500; }
.mx .mx-pf-ready svg { width: 13px; height: 13px; }
.mx-pf-note { margin: 12px 0 0; font-size: 12px; color: #666; line-height: 1.5; }
/* iPaymer Products List */
.ipx-pl-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ipx-pl-bar .ipx-search { width: 200px; gap: 6px; }
.ipx-pl-r { display: flex; align-items: center; gap: 10px; }
.ipx-link { color: #1677ff; font-size: 10.5px; }
.ipx-pl-count { margin: 0 0 6px; font-size: 9.5px; color: #8a96a3; }
.ipx-pl-wrap { overflow: hidden; border: 1px solid #ececec; }
.ipx-pl th, .ipx-pl td { padding: 6px 5px; font-size: 9px; }
.ipx-pl th { font-size: 8.5px; text-transform: none; }
.ipx-pn { color: #1677ff; }
.ipx-pl tr.is-new td { animation: mxFlashBg 2s ease-out; }
.ipx-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border: 1px solid #e3e6ea; border-radius: 3px; background: #fafafa; font-size: 8.5px; color: #5a6878; }
.ipx .ipx-chip svg { width: 8px; height: 8px; }
.ipx-chip.is-ok { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.ipx-chip.is-blue { border-color: #91caff; background: #e6f4ff; color: #0958d9; }
.ipx-stock { display: inline-grid; place-items: center; min-width: 15px; height: 15px; margin-right: 5px; padding: 0 4px; border-radius: 8px; background: #f5222d; color: #fff; font-size: 8.5px; font-weight: 600; vertical-align: middle; }
.ipx-pl td .ipx-stock + svg { display: inline; width: 10px; height: 10px; color: #1677ff; vertical-align: middle; }
.ipx-mlink { display: inline-flex; align-items: center; gap: 3px; color: #1677ff; }
.ipx .ipx-mlink svg { width: 9px; height: 9px; }

/* ---------- Reports (DataTable v2 report pages: reports-common.css, inventory_value.css) ---------- */
.mx-rpt-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -6px 0 12px; font-size: 11.5px; color: #7a8ba0; }
.mx-rpt-sum > i { width: 1px; height: 13px; background: #e5e7eb; }
.mx-rpt-count { padding: 1px 8px; border-radius: 4px; border: 1px solid #e5e7eb; background: #f8fafc; color: #1f2937; font-weight: 500; }
.mx-rpt-chip { padding: 2px 8px; border-radius: 4px; background: rgba(24, 174, 227, .1); color: #0f7ba3; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.mx-rpt-chip b { font-weight: 600; }
.mx-rpt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.mx-rpt-tile { display: grid; gap: 3px; padding: 9px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; min-width: 0; }
.mx-rpt-tile > span { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #7a8ba0; }
.mx-rpt-tile > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mx-rpt-tile b { font-size: 19px; font-weight: 600; color: #1c2a38; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-rpt-tile small { font-size: 9.5px; color: #96a3b3; white-space: nowrap; }
.mx-rpt-basis { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 10px; padding: 10px 12px; border: 1px solid #cfe9f5; border-radius: 8px; background: #f2fafd; }
.mx-rpt-basis b { display: block; font-size: 11.5px; font-weight: 600; color: #1c2a38; }
.mx-rpt-basis small { font-size: 10.5px; color: #7a8ba0; }
.mx-rpt-seg { display: flex; gap: 2px; padding: 2px; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; }
.mx-rpt-seg span { padding: 5px 10px; border-radius: 4px; font-size: 10.5px; font-weight: 500; color: #4a5a6b; }
.mx-rpt-seg .is-on { background: #18aee3; color: #fff; }
.mx-rpt-scroll { overflow-x: auto; }
.mx-rpt-table td { color: #2b3846; }
.mx-rpt-mute { color: #b9c3cf; }
.mx-rpt-sub { color: #5a6b7c; }
.mx-rpt-path { color: #5a6b7c; }
.mx-rpt-code { font-weight: 600; color: #1f2937; }
.mx-rpt-name { font-weight: 500; color: #1f2937; }
.mx-rpt-st { padding: 4px 10px; font-size: 10.5px; }
.mx-rpt-st.is-no { --c: #6b7684; }
.mx-rpt-user { display: inline-flex; align-items: center; gap: 8px; }
.mx-rpt-chev { display: inline; width: 10px; height: 10px; margin-left: 6px; vertical-align: -1px; color: #8a96a3; }
.mx-rpt-chev.is-open { transform: rotate(180deg); }
.mx-rpt-exp > td { padding: 6px 12px 10px; background: #fff !important; }
.mx-rpt-expc { border: 1px solid #edf0f4; border-radius: 6px; background: #fafbfc; }
.mx-rpt-expc > div { display: grid; align-items: center; gap: 12px; padding: 6px 12px; border-top: 1px solid #f0f2f5; font-size: 11.5px; }
.mx-rpt-expc > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mx-rpt-expc > .is-head { border-top: 0; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a96a3; }
.mx-rpt-tile-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 5px; background: #eef2f6; color: #8a96a3; vertical-align: middle; font-style: normal; }
.mx-rpt-tile-ic svg { width: 12px; height: 12px; }
.mx-pages .is-gap { border-color: transparent; background: none; }
