/* ==========================================================================
   Ledger UI — redesigned Product, Brand, Business Settings and Purchase screens
   Everything is scoped under .lx so the rest of the app is untouched.
   Loaded after theme2026.css (layouts/partials/css.blade.php).
   ========================================================================== */

@font-face { font-family: 'Geist'; src: url('../fonts/ledger/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/ledger/geist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/ledger/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/ledger/geist-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/ledger/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/ledger/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/ledger/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

.lx {
  --lx-canvas: #F4F5F8; --lx-surface: #FFFFFF; --lx-sunken: #F8F9FB;
  --lx-ink: #14171F; --lx-ink2: #4A5263; --lx-muted: #8990A0; --lx-faint: #B4BAC6;
  --lx-line: #E5E8EE; --lx-line2: #D6DBE4;
  --lx-pri: #2F45D8; --lx-pri-d: #2336B8; --lx-pri-s: #EEF0FD; --lx-pri-t: #C9CFF7;
  --lx-lane: #D99A0E; --lx-lane-s: #FFF7E0;
  --lx-ok: #17875A; --lx-ok-s: #E4F5EC; --lx-warn: #A96A00; --lx-warn-s: #FFF3D9;
  --lx-err: #CC3B35; --lx-err-s: #FDECEA; --lx-info: #2F6FD8; --lx-info-s: #E7F0FD;
  --lx-r: 8px; --lx-sh: 0 1px 2px rgba(20,23,31,.05);
  --lx-sh2: 0 12px 32px -8px rgba(20,23,31,.18), 0 2px 6px rgba(20,23,31,.06);
  font-family: 'Geist', 'Inter', system-ui, sans-serif !important;
  color: var(--lx-ink);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.lx *, .lx *::before, .lx *::after { box-sizing: border-box; }
.lx label, .lx .control-label { font-weight: 500; color: var(--lx-ink2); font-size: 12.5px; margin-bottom: 6px; }
.lx .lx-mono, .lx .lx-num { font-family: 'Geist Mono', ui-monospace, monospace !important; font-feature-settings: "tnum"; letter-spacing: -.01em; }
.lx .hide { display: none !important; }
.lx a { color: var(--lx-pri); }

/* ---------- page header ---------- */
.lx-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 6px 0 18px; }
.lx-head .lx-title { font-family: 'Bricolage', 'Geist', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: var(--lx-ink); margin: 0; line-height: 1.15; }
.lx-head .lx-sub { color: var(--lx-ink2); margin-top: 3px; }
.lx-head .lx-sp { flex: 1; }
.lx-crumb { font-size: 12.5px; color: var(--lx-muted); margin-bottom: 4px; }
.lx-crumb a { color: var(--lx-muted); }

/* ---------- cards ---------- */
.lx .lx-card { background: var(--lx-surface); border: 1px solid var(--lx-line); border-radius: 12px; box-shadow: var(--lx-sh); margin-bottom: 16px; position: relative; }
.lx .lx-card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.lx .lx-card-h h3, .lx .lx-card-h .lx-h { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--lx-ink); }
.lx .lx-card-h .lx-d { color: var(--lx-muted); font-size: 12.5px; }
.lx .lx-card-h .lx-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lx .lx-card-b { padding: 16px 20px 20px; }
.lx .lx-card-b > .row { margin-left: -8px; margin-right: -8px; }
.lx .lx-card-b > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.lx .lx-card.lx-collapsed .lx-card-b { display: none; }
.lx .lx-card .lx-chev { transition: transform .15s ease; color: var(--lx-muted); }
.lx .lx-card.lx-collapsed .lx-chev { transform: rotate(-90deg); }
.lx .lx-card-h[data-lx-collapse] { cursor: pointer; user-select: none; padding-bottom: 16px; }
.lx .lx-card:not(.lx-collapsed) .lx-card-h[data-lx-collapse] { padding-bottom: 0; }
.lx .lx-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--lx-sunken); border: 1px solid var(--lx-line); display: inline-grid; place-items: center; color: var(--lx-ink2); flex: none; }
.lx .lx-ico.pri { background: var(--lx-pri-s); border-color: var(--lx-pri-t); color: var(--lx-pri); }

/* override AdminLTE widget boxes inside lx */
.lx .box { border-radius: 12px !important; box-shadow: var(--lx-sh) !important; border: 1px solid var(--lx-line) !important; }
.lx .box:hover { box-shadow: var(--lx-sh) !important; }

/* ---------- form controls ---------- */
.lx .form-group { margin-bottom: 14px; }
.lx .form-control,
.lx input[type="text"].form-control, .lx input[type="number"].form-control, .lx input[type="email"].form-control,
.lx input[type="password"].form-control, .lx textarea.form-control, .lx select.form-control {
  height: 36px; border: 1px solid var(--lx-line2) !important; border-radius: var(--lx-r) !important;
  background: #fff !important; color: var(--lx-ink) !important; font-size: 13.5px !important;
  box-shadow: var(--lx-sh) !important; padding: 6px 10px; font-family: inherit;
}
.lx textarea.form-control { height: auto; min-height: 76px; }
.lx .form-control:focus { border-color: var(--lx-pri) !important; box-shadow: 0 0 0 3px var(--lx-pri-t) !important; }
.lx .form-control[readonly], .lx .form-control[disabled] { background: var(--lx-sunken) !important; color: var(--lx-ink2) !important; }
.lx .form-control::placeholder { color: var(--lx-faint); }
.lx .has-error .form-control, .lx .form-control.error { border-color: var(--lx-err) !important; box-shadow: 0 0 0 3px #F7D4D2 !important; }
.lx label.error, .lx .help-block.error { color: var(--lx-err) !important; font-size: 12px; font-weight: 500; margin-top: 4px; }
.lx .help-block, .lx .lx-help { font-size: 12px; color: var(--lx-muted); margin: 5px 0 0; line-height: 1.45; }
.lx .help-block i { font-style: normal; }
.lx .input-group { display: flex; width: 100%; align-items: stretch; }
.lx .input-group .form-control { flex: 1; min-width: 0; }
.lx .input-group > .select2-container { flex: 1; min-width: 0; width: auto !important; }
.lx .input-group-addon { background: var(--lx-sunken) !important; border: 1px solid var(--lx-line2) !important; color: var(--lx-muted) !important; border-radius: var(--lx-r) !important; display: flex; align-items: center; width: auto; padding: 0 10px; font-size: 12.5px; }
.lx .input-group-addon:first-child { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important; }
.lx .input-group-addon:last-child { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; border-left: 0 !important; }
.lx .input-group-addon:first-child + .form-control, .lx .input-group-addon:first-child + .select2-container .select2-selection { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.lx .input-group .form-control:not(:last-child), .lx .input-group > .select2-container:not(:last-child) .select2-selection { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.lx .input-group-btn { display: flex; width: auto; }
.lx .input-group-btn > .btn { height: 36px; border: 1px solid var(--lx-line2) !important; border-left: 0 !important; border-radius: 0 var(--lx-r) var(--lx-r) 0 !important; background: #fff !important; box-shadow: none !important; padding: 0 11px !important; color: var(--lx-pri) !important; }
.lx .input-group-btn > .btn:hover { background: var(--lx-pri-s) !important; }
.lx .input-group-btn > .btn .fa, .lx .input-group-btn > .btn i { color: var(--lx-pri) !important; }

/* select2 */
.lx .select2-container--default .select2-selection--single { height: 36px !important; border: 1px solid var(--lx-line2) !important; border-radius: var(--lx-r) !important; box-shadow: var(--lx-sh); background: #fff; }
.lx .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px !important; padding-left: 10px; color: var(--lx-ink); font-size: 13.5px; }
.lx .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px !important; }
.lx .select2-container--default .select2-selection--multiple { min-height: 36px !important; border: 1px solid var(--lx-line2) !important; border-radius: var(--lx-r) !important; box-shadow: var(--lx-sh); padding: 2px 4px; }
.lx .select2-container--default .select2-selection--multiple .select2-selection__choice { background: #fff !important; border: 1px solid var(--lx-line2) !important; color: var(--lx-ink) !important; border-radius: 6px !important; font-size: 12.5px; font-weight: 500; padding: 2px 8px 2px 6px !important; margin-top: 4px !important; }
.lx .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--lx-muted) !important; margin-right: 4px; }
.lx .select2-container--default.select2-container--focus .select2-selection--single,
.lx .select2-container--default.select2-container--focus .select2-selection--multiple,
.lx .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--lx-pri) !important; box-shadow: 0 0 0 3px var(--lx-pri-t) !important; }

/* ---------- switches (iCheck checkboxes & native checkboxes) ---------- */
.lx .lx-switch-wrap [class^="icheckbox_"], .lx .lx-switch-wrap [class*=" icheckbox_"],
.lx .lx-row-c > [class^="icheckbox_"], .lx .lx-tile [class^="icheckbox_"] {
  width: 34px !important; height: 20px !important; border-radius: 10px !important; background: #D3D8E1 !important;
  border: 0 !important; position: relative !important; margin: 0 !important; cursor: pointer; flex: none; transition: background .15s ease;
}
.lx .lx-switch-wrap [class^="icheckbox_"]::after, .lx .lx-switch-wrap [class*=" icheckbox_"]::after,
.lx .lx-row-c > [class^="icheckbox_"]::after, .lx .lx-tile [class^="icheckbox_"]::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s ease;
}
.lx .lx-switch-wrap [class^="icheckbox_"].checked, .lx .lx-switch-wrap [class*=" icheckbox_"].checked,
.lx .lx-row-c > [class^="icheckbox_"].checked, .lx .lx-tile [class^="icheckbox_"].checked { background: var(--lx-pri) !important; }
.lx .lx-switch-wrap [class^="icheckbox_"].checked::after, .lx .lx-switch-wrap [class*=" icheckbox_"].checked::after,
.lx .lx-row-c > [class^="icheckbox_"].checked::after, .lx .lx-tile [class^="icheckbox_"].checked::after { left: 16px; }
.lx .lx-switch-wrap [class^="icheckbox_"].disabled, .lx .lx-row-c > [class^="icheckbox_"].disabled { opacity: .5; }
.lx input[type="checkbox"].lx-native-switch { -webkit-appearance: none; appearance: none; width: 34px !important; height: 20px !important; border-radius: 10px !important; background: #D3D8E1 !important; position: relative; cursor: pointer; margin: 0; border: 0 !important; box-shadow: none !important; flex: none; transition: background .15s ease; }
.lx input[type="checkbox"].lx-native-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s ease; }
.lx input[type="checkbox"].lx-native-switch:checked { background: var(--lx-pri) !important; }
.lx input[type="checkbox"].lx-native-switch:checked::after { left: 16px; }
.lx input[type="checkbox"].lx-native-switch:focus-visible { outline: 2px solid var(--lx-pri); outline-offset: 2px; }

/* ---------- settings-style rows ---------- */
.lx .lx-rows { background: var(--lx-surface); border: 1px solid var(--lx-line); border-radius: 12px; box-shadow: var(--lx-sh); overflow: hidden; }
.lx .lx-row { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 12px 28px; padding: 14px 20px; border-bottom: 1px solid var(--lx-line); align-items: center; position: relative; }
.lx .lx-row:last-child { border-bottom: 0; }
.lx .lx-row > .lx-row-l > label, .lx .lx-row .lx-t { font-weight: 500; color: var(--lx-ink); font-size: 13.5px; margin: 0; display: inline; }
.lx .lx-row .lx-row-l .lx-help { margin-top: 2px; }
.lx .lx-row-c { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.lx .lx-row-c > .form-group { margin: 0; flex: 1; min-width: 0; }
.lx .lx-row-c .form-control, .lx .lx-row-c > .select2-container { max-width: 440px; }
.lx .lx-row-c .lx-w-sm { max-width: 140px !important; }
.lx .lx-row-c .lx-w-md { max-width: 260px !important; }
.lx .lx-row.lx-child { padding-left: 44px; background: #FBFCFD; }
.lx .lx-row.lx-child > .lx-row-l > label::before, .lx .lx-row.lx-child .lx-t::before { content: '↳'; color: var(--lx-faint); margin-right: 6px; }
.lx .lx-row.lx-dirty { background: var(--lx-lane-s); }
.lx .lx-row.lx-dirty::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--lx-lane); }
.lx .lx-row.lx-stack { grid-template-columns: 1fr; }
.lx .lx-group { margin-top: 24px; }
.lx .lx-group:first-child { margin-top: 8px; }
.lx .lx-group > h4, .lx .lx-group-h { font-size: 14px !important; font-weight: 600 !important; margin: 0 0 2px !important; color: var(--lx-ink) !important; }
.lx .lx-group > p.lx-group-d { color: var(--lx-muted); font-size: 12.5px; margin: 0 0 10px; }

/* two-column toggle tiles */
.lx .lx-tiles { display: grid; grid-template-columns: 1fr 1fr; }
.lx .lx-tile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--lx-line); border-right: 1px solid var(--lx-line); min-width: 0; }
.lx .lx-tile:nth-child(2n) { border-right: 0; }
.lx .lx-tile > label, .lx .lx-tile .lx-t { font-weight: 500; color: var(--lx-ink); margin: 0; font-size: 13.5px; }
.lx .lx-tile .lx-help { margin-top: 2px; }

/* ---------- buttons ---------- */
.lx .lx-btn { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: var(--lx-r) !important; font-weight: 600 !important; font-size: 13px !important; border: 1px solid var(--lx-line2) !important; background: #fff !important; color: var(--lx-ink) !important; box-shadow: var(--lx-sh) !important; white-space: nowrap; cursor: pointer; text-decoration: none !important; line-height: 1; font-family: inherit; }
.lx .lx-btn:hover { background: var(--lx-sunken) !important; }
.lx .lx-btn:disabled, .lx .lx-btn[disabled] { opacity: .5; cursor: not-allowed; }
.lx .lx-btn.lx-pri { background: var(--lx-pri) !important; border-color: var(--lx-pri-d) !important; color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 1px 2px rgba(35,54,184,.4) !important; }
.lx .lx-btn.lx-pri:hover { background: var(--lx-pri-d) !important; }
.lx .lx-btn.lx-ghost { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: var(--lx-ink2) !important; }
.lx .lx-btn.lx-ghost:hover { background: rgba(20,23,31,.05) !important; }
.lx .lx-btn.lx-soft { background: var(--lx-pri-s) !important; border-color: var(--lx-pri-s) !important; color: var(--lx-pri-d) !important; box-shadow: none !important; }
.lx .lx-btn.lx-danger { color: var(--lx-err) !important; }
.lx .lx-btn.lx-sm { height: 30px; padding: 0 10px; font-size: 12.5px !important; }
.lx .lx-btn.lx-lg { height: 42px; padding: 0 18px; font-size: 14px !important; }
.lx kbd, .lx .lx-kbd { font: 500 11px 'Geist Mono', monospace; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--lx-line2); border-bottom-width: 2px; background: #fff; color: var(--lx-ink2); display: inline-grid; place-items: center; box-shadow: none; vertical-align: middle; }
.lx .lx-btn.lx-pri kbd { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- segmented ---------- */
.lx .lx-seg { display: inline-flex; background: #EDEFF3; border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.lx .lx-seg > button, .lx .lx-seg > a, .lx .lx-seg > label { height: 30px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; font-weight: 500; color: var(--lx-ink2) !important; font-size: 13px; background: transparent; border: 0; cursor: pointer; margin: 0; text-decoration: none !important; font-family: inherit; }
.lx .lx-seg > .on, .lx .lx-seg > button[aria-pressed="true"] { background: #fff !important; color: var(--lx-ink) !important; box-shadow: 0 1px 2px rgba(20,23,31,.12); }
.lx .lx-seg > label input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.lx .lx-seg > label:has(input:checked) { background: #fff !important; color: var(--lx-ink) !important; box-shadow: 0 1px 2px rgba(20,23,31,.12); }

/* ---------- badges ---------- */
.lx .lx-badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #EEF0F4; color: var(--lx-ink2); white-space: nowrap; }
.lx .lx-badge.ok { background: var(--lx-ok-s); color: var(--lx-ok); }
.lx .lx-badge.warn { background: var(--lx-warn-s); color: var(--lx-warn); }
.lx .lx-badge.err { background: var(--lx-err-s); color: var(--lx-err); }
.lx .lx-badge.pri { background: var(--lx-pri-s); color: var(--lx-pri-d); }
.lx .lx-badge.info { background: var(--lx-info-s); color: var(--lx-info); }
.lx .lx-moved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lx-ink2); background: #fff; border: 1px solid var(--lx-line); border-radius: 999px; padding: 3px 10px; margin-top: 10px; }

/* ---------- sticky action bar ---------- */
.lx .lx-bar { position: sticky; bottom: 0; z-index: 30; margin: 20px -15px -15px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--lx-line); display: flex; align-items: center; gap: 10px; padding: 12px 24px; flex-wrap: wrap; }
.lx .lx-bar .lx-sp { flex: 1; }
.lx .lx-unsaved { display: inline-flex; align-items: center; gap: 8px; color: var(--lx-ink2); font-weight: 500; }
.lx .lx-unsaved i.lx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lx-lane); display: inline-block; box-shadow: 0 0 0 3px var(--lx-lane-s); }
.lx .lx-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--lx-muted); font-size: 12.5px; }
.lx .lx-bar .btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- side section rail ---------- */
.lx .lx-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.lx .lx-rail .lx-rail-t { font-size: 11px; font-weight: 600; color: var(--lx-faint); letter-spacing: .06em; text-transform: uppercase; padding: 0 10px 8px; }
.lx .lx-rail a { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--lx-ink2) !important; font-weight: 500; position: relative; text-decoration: none !important; }
.lx .lx-rail a:hover { background: rgba(20,23,31,.04); }
.lx .lx-rail a.on { background: var(--lx-lane-s); color: var(--lx-ink) !important; }
.lx .lx-rail a.on::before { content: ''; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--lx-lane); }
.lx .lx-rail .lx-st { margin-left: auto; font-size: 11px; color: var(--lx-faint); }
.lx .lx-rail .lx-st.ok { color: var(--lx-ok); }
.lx .lx-shortcuts { margin-top: 18px; padding: 12px; border: 1px solid var(--lx-line); border-radius: 10px; background: var(--lx-surface); font-size: 12px; color: var(--lx-ink2); }
.lx .lx-shortcuts > div { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.lx .lx-shortcuts > b { display: block; color: var(--lx-ink); font-weight: 600; }

/* ---------- settings layout ---------- */
.lx-settings .lx-set { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.lx-settings .lx-snav { position: sticky; top: 76px; background: var(--lx-surface); border: 1px solid var(--lx-line); border-radius: 12px; padding: 12px 10px; max-height: calc(100vh - 100px); overflow: auto; }
.lx-settings .lx-snav .lx-snav-search { display: flex; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--lx-line2); border-radius: 8px; padding: 0 10px; background: var(--lx-sunken); margin-bottom: 6px; }
.lx-settings .lx-snav .lx-snav-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; flex: 1; min-width: 0; height: 30px; padding: 0 !important; outline: none; font-size: 13px !important; }
.lx-settings .lx-snav .lx-g { font-size: 11px; font-weight: 600; color: var(--lx-faint); letter-spacing: .06em; text-transform: uppercase; padding: 12px 10px 4px; }
.lx-settings .lx-snav a { display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 10px; border-radius: 7px; color: var(--lx-ink2) !important; font-weight: 500; font-size: 13px; text-decoration: none !important; }
.lx-settings .lx-snav a i { width: 16px; text-align: center; color: var(--lx-muted); font-size: 13px; }
.lx-settings .lx-snav a:hover { background: rgba(20,23,31,.04); }
.lx-settings .lx-snav a.active { background: var(--lx-pri-s); color: var(--lx-pri-d) !important; }
.lx-settings .lx-snav a.active i { color: var(--lx-pri); }
.lx-settings .lx-snav a .lx-ext { margin-left: auto; color: var(--lx-faint); font-size: 11px; }
.lx-settings .lx-snav a .lx-badge { margin-left: auto; height: 18px; font-size: 10.5px; }
.lx-settings .lx-snav .lx-nomatch { padding: 10px 12px; font-size: 12.5px; color: var(--lx-muted); }
.lx-settings .lx-snav a.lx-has-changes::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lx-lane); margin-left: auto; flex: none; }
.lx-settings .lx-snav a.lx-has-changes .lx-badge { margin-left: 6px; }
.lx-settings .pos-tab-content { display: none; }
.lx-settings .pos-tab-content.active { display: block; }
.lx-settings .lx-pane-h { margin-bottom: 4px; }
.lx-settings .lx-pane-h h2 { font-family: 'Bricolage', 'Geist', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 0; color: var(--lx-ink); }
.lx-settings .lx-pane-h p { color: var(--lx-ink2); margin: 3px 0 0; }
.lx-settings .pos-tab-content > .row { margin-left: 0; margin-right: 0; }
/* legacy markup inside panes (partials that keep bootstrap grid) */
.lx-settings .lx-legacy { background: var(--lx-surface); border: 1px solid var(--lx-line); border-radius: 12px; box-shadow: var(--lx-sh); padding: 18px 20px 6px; margin-top: 14px; }
.lx-settings .lx-legacy h4 { font-size: 14px; font-weight: 600; margin: 8px 0 10px; color: var(--lx-ink); }
.lx-settings .lx-legacy h4:not(:first-child) { border-top: 1px solid var(--lx-line); padding-top: 16px; margin-top: 18px; }
.lx-settings .lx-legacy .form-group.lx-dirty, .lx .lx-tile.lx-dirty { background: var(--lx-lane-s); border-radius: 8px; }
.lx-settings .lx-legacy .table { background: transparent; }
.lx-settings .lx-legacy .checkbox label { font-weight: 500; color: var(--lx-ink); }
.lx-settings .lx-highlight { animation: lxflash 2.4s ease; }
@keyframes lxflash { 0%, 60% { background: #FFF1B8; } 100% { background: transparent; } }

/* ---------- tables ---------- */
.lx .lx-table { width: 100%; border-collapse: collapse; }
.lx .lx-table th { font-size: 11.5px; font-weight: 500; color: var(--lx-muted); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--lx-line); background: var(--lx-sunken); white-space: nowrap; }
.lx .lx-table td { padding: 9px 14px; border-bottom: 1px solid var(--lx-line); vertical-align: middle; }
.lx .lx-table tr:last-child td { border-bottom: 0; }
.lx .lx-table .form-control { height: 32px; }

/* ---------- product form ---------- */
.lx-product .lx-pwrap { display: grid; grid-template-columns: 190px minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.lx-product .lx-form { min-width: 0; }
.lx-product .lx-summary { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.lx-product .lx-pv { padding: 16px; }
.lx-product .lx-pv-img { height: 130px; border-radius: 10px; background: linear-gradient(135deg, #EEF1F7, #E3E7F0); display: grid; place-items: center; color: var(--lx-muted); margin-bottom: 12px; overflow: hidden; }
.lx-product .lx-pv-img img { width: 100%; height: 100%; object-fit: cover; }
.lx-product .lx-pv-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; word-break: break-word; }
.lx-product .lx-pv-sub { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--lx-muted); margin-top: 3px; }
.lx-product .lx-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.lx-product .lx-kv span:first-child { color: var(--lx-muted); }
.lx-product .lx-kv span:last-child { font-family: 'Geist Mono', monospace; }
.lx-product .lx-ladder { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #D8DCE5, #BFE6D2); margin: 28px 2px 30px; }
.lx-product .lx-ladder .mk { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--lx-ink); }
.lx-product .lx-ladder .mk span { position: absolute; white-space: nowrap; font-size: 11px; transform: translateX(-50%); }
.lx-product .lx-ladder .mk .a { top: -19px; color: var(--lx-muted); }
.lx-product .lx-ladder .mk .b { top: 18px; font-family: 'Geist Mono', monospace; color: var(--lx-ink); font-weight: 500; }
.lx-product .lx-chk { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; color: var(--lx-ink2); }
.lx-product .lx-chk i { width: 15px; text-align: center; }
.lx-product .lx-chk.ok i { color: var(--lx-ok); }
.lx-product .lx-chk.todo { color: var(--lx-muted); }
.lx-product .lx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lx-product .lx-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.lx-product .lx-grid2 > .hide, .lx-product .lx-grid3 > .hide { display: none !important; }
.lx-product .lx-typeseg { margin-left: 18px; }
.lx-product .lx-imgdrop { border: 1.5px dashed var(--lx-line2); border-radius: 12px; background: var(--lx-sunken); padding: 12px; }
.lx-product .lx-imgdrop .file-input { margin: 0; }
.lx-product .lx-price { border: 1px solid var(--lx-line); border-radius: 10px; overflow: hidden; }
/* single product pricing table → price strip */
.lx-product table.add-product-price-table { border: 0 !important; margin: 0; background: transparent; }
.lx-product table.add-product-price-table > tbody > tr > th, .lx-product table.add-product-price-table > tr > th { background: var(--lx-sunken) !important; color: var(--lx-muted) !important; font-size: 11.5px !important; font-weight: 500 !important; border: 0 !important; border-bottom: 1px solid var(--lx-line) !important; padding: 9px 12px !important; text-transform: none; }
.lx-product table.add-product-price-table > tbody > tr > td, .lx-product table.add-product-price-table > tr > td { border: 0 !important; border-right: 1px solid var(--lx-line) !important; padding: 10px 12px !important; vertical-align: top; background: #fff !important; }
.lx-product table.add-product-price-table td:last-child { border-right: 0 !important; }
.lx-product table.add-product-price-table td br { display: none; }
.lx-product table.add-product-price-table td .col-sm-12 { padding: 0; }
.lx-product table.add-product-price-table .form-control.input-sm { height: 36px; font-family: 'Geist Mono', monospace; font-size: 13.5px !important; }
.lx-product .lx-margin-chip { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font: 500 12px 'Geist Mono', monospace; color: var(--lx-ok); }
.lx-product .lx-margin-chip.neg { color: var(--lx-err); }
/* variations */
.lx-product #product_variation_form_part { border: 0 !important; background: transparent; }
.lx-product #product_variation_form_part > thead > tr > th { background: var(--lx-sunken) !important; font-size: 11.5px !important; font-weight: 500 !important; color: var(--lx-muted) !important; border: 0 !important; border-bottom: 1px solid var(--lx-line) !important; }
.lx-product #product_variation_form_part > tbody > tr.variation_row > td { border: 0 !important; border-bottom: 1px dashed var(--lx-line2) !important; padding: 14px 8px !important; vertical-align: top; background: #fff !important; }
.lx-product .variation_value_table { border: 1px solid var(--lx-line) !important; border-radius: 10px; overflow: hidden; margin: 0; }
.lx-product .variation_value_table > thead > tr > th { background: var(--lx-sunken) !important; color: var(--lx-muted) !important; font-size: 11px !important; font-weight: 500 !important; border: 0 !important; border-bottom: 1px solid var(--lx-line) !important; padding: 8px !important; text-transform: none !important; }
.lx-product .variation_value_table > tbody > tr > td { border: 0 !important; border-bottom: 1px solid var(--lx-line) !important; padding: 6px !important; vertical-align: middle; }
.lx-product .variation_value_table > tbody > tr:last-child > td { border-bottom: 0 !important; }
.lx-product .variation_value_table .form-control.input-sm { height: 32px; font-size: 12.5px !important; }
.lx-product .variation_value_table .variable_dpp, .lx-product .variation_value_table .variable_dsp, .lx-product .variation_value_table .variable_dsp_inc_tax, .lx-product .variation_value_table .variable_profit_percent { font-family: 'Geist Mono', monospace; text-align: right; }
.lx-product .variation_value_table .variable_dsp_inc_tax { margin-top: 4px; }
.lx-product .variation-upload-btn { height: 30px; width: 34px; display: inline-grid !important; place-items: center; border-radius: 8px !important; border: 1.5px dashed var(--lx-line2) !important; background: var(--lx-sunken) !important; color: var(--lx-muted) !important; }
.lx-product .lx-sku-seg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lx-product .lx-sku-seg .lx-seg label { font-size: 12.5px; }
.lx-product .variation_template_values_div { margin-top: 10px; }
.lx-product .delete_complete_row, .lx-product .remove_variation_value_row { border-radius: 7px !important; }
.lx-product #add_variation { border-radius: 8px !important; }
/* combo */
.lx-product #product_form_part_body .table { background: #fff; }

/* ---------- brand modal (drawer look) ---------- */
.modal .modal-dialog.lx-drawer-dialog { position: fixed; right: 0; top: 0; bottom: 0; margin: 0; width: 460px; max-width: 100%; }
.modal.fade .modal-dialog.lx-drawer-dialog { transform: translateX(40px); transition: transform .2s ease-out; }
.modal.in .modal-dialog.lx-drawer-dialog { transform: translateX(0); }
.modal .lx-drawer-dialog .modal-content { height: 100%; border-radius: 0 !important; display: flex; flex-direction: column; border: 0 !important; box-shadow: -20px 0 50px -20px rgba(20,23,31,.35) !important; }
.modal .lx-drawer-dialog .modal-content > form { display: flex; flex-direction: column; height: 100%; }
.modal .lx-drawer-dialog .modal-body { flex: 1; overflow: auto; padding: 20px 22px; }
.lx .lx-drawer-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px !important; border-bottom: 1px solid var(--lx-line) !important; }
.lx .lx-drawer-h .modal-title { font-family: 'Geist', sans-serif !important; font-size: 16px !important; font-weight: 600 !important; margin: 0; color: var(--lx-ink) !important; }
.lx .lx-drawer-h .lx-d { color: var(--lx-muted); font-size: 12.5px; }
.lx .lx-drawer-h .close { margin-left: auto; opacity: .6; font-size: 22px; }
.lx .lx-drawer-f { display: flex; align-items: center; gap: 8px; padding: 14px 22px !important; border-top: 1px solid var(--lx-line) !important; background: var(--lx-sunken) !important; }
.lx .lx-drawer-f .lx-sp { flex: 1; }

/* ---------- purchase ---------- */
.lx-purchase .lx-phead-fields { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; align-items: start; }
.lx-purchase .lx-phead-fields > .hide { display: none !important; }
.lx-purchase #supplier_address_div { font-size: 12px; color: var(--lx-ink2); line-height: 1.4; }
.lx-purchase .lx-supplier-meta { font-size: 12px; color: var(--lx-ink2); margin-top: -6px; margin-bottom: 8px; }
.lx-purchase .lx-scanbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lx-purchase .lx-scanbar .lx-scan { flex: 1; min-width: 280px; position: relative; }
.lx-purchase .lx-scanbar .lx-scan .form-control { height: 46px !important; font-size: 15px !important; border-radius: 11px !important; padding-left: 42px !important; padding-right: 70px !important; }
.lx-purchase .lx-scanbar .lx-scan > i.fa { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--lx-muted); font-size: 16px; z-index: 2; }
.lx-purchase .lx-scanbar .lx-scan .lx-kbds { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; z-index: 2; pointer-events: none; }
.lx-purchase .lx-scanbar .form-group { margin: 0; }
.lx-purchase .lx-gridwrap { border: 1px solid var(--lx-line); border-radius: 12px; overflow: auto; background: #fff; max-height: 70vh; }
.lx-purchase #purchase_entry_table { margin: 0 !important; border: 0 !important; font-size: 13px !important; background: #fff; }
.lx-purchase #purchase_entry_table > thead > tr > th { position: sticky; top: 0; z-index: 3; background: var(--lx-sunken) !important; color: var(--lx-muted) !important; font-size: 11px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0; border: 0 !important; border-bottom: 1px solid var(--lx-line) !important; padding: 9px 6px !important; white-space: nowrap; }
.lx-purchase #purchase_entry_table > tbody > tr > td { border: 0 !important; border-bottom: 1px solid var(--lx-line) !important; background: #fff !important; }
.lx-purchase #purchase_entry_table > tbody > tr:nth-of-type(odd) > td { background: #fff !important; }
.lx-purchase #purchase_entry_table > tbody > tr.lx-active > td { background: var(--lx-lane-s) !important; }
.lx-purchase #purchase_entry_table > tbody > tr.lx-active > td:first-child { box-shadow: inset 3px 0 0 var(--lx-lane); }
.lx-purchase #purchase_entry_table .form-control { border-radius: 6px !important; box-shadow: none !important; font-family: 'Geist Mono', monospace; font-size: 12.5px !important; }
.lx-purchase #purchase_entry_table .form-control:hover { border-color: var(--lx-line2) !important; }
.lx-purchase #purchase_entry_table td:nth-child(2) { text-align: left; font-family: 'Geist', sans-serif; }
.lx-purchase .lx-hide-pricing #purchase_entry_table .lx-pcol { display: none; }
.lx-purchase .lx-empty { text-align: center; padding: 34px 20px; color: var(--lx-muted); }
.lx-purchase .lx-empty .lx-empty-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lx-pri-s); color: var(--lx-pri); display: grid; place-items: center; margin: 0 auto 10px; font-size: 18px; }
.lx-purchase .lx-empty b { color: var(--lx-ink); display: block; font-weight: 600; }
.lx-purchase .lx-pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.lx-purchase .lx-pside { position: sticky; top: 76px; }
.lx-purchase .lx-tot { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; color: var(--lx-ink2); gap: 10px; }
.lx-purchase .lx-tot .display_currency, .lx-purchase .lx-tot .lx-mono { font-family: 'Geist Mono', monospace; color: var(--lx-ink); }
.lx-purchase .lx-grand { font-family: 'Geist Mono', monospace; font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--lx-ink); }
.lx-purchase .lx-pside .form-group { margin-bottom: 10px; }
.lx-purchase .lx-pside .payment_row .row > [class*="col-"] { width: 100% !important; float: none !important; }
.lx-purchase .lx-pside .payment_row .row { margin: 0; }
.lx-purchase .lx-pside .payment_row [class*="col-"] { padding-left: 0; padding-right: 0; }
.lx-purchase .lx-hints { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--lx-muted); padding: 10px 2px 0; }
.lx-purchase .lx-hints span { display: inline-flex; align-items: center; gap: 5px; }
.lx-purchase .lx-bar .lx-bar-total { font-family: 'Geist Mono', monospace; font-size: 18px; font-weight: 500; color: var(--lx-ink); }
.lx-purchase .table-th-green th { background: var(--lx-sunken) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .lx-purchase .lx-pgrid { grid-template-columns: 1fr; }
  .lx-purchase .lx-pside { position: static; }
  .lx-purchase .lx-pside-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
}
@media (max-width: 1280px) {
  .lx-product .lx-pwrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .lx-product .lx-rail-col { display: none; }
}
@media (max-width: 991px) {
  .lx-product .lx-pwrap { grid-template-columns: 1fr; }
  .lx-product .lx-summary { position: static; }
  .lx-product .lx-grid2, .lx-product .lx-grid3 { grid-template-columns: 1fr; }
  .lx-settings .lx-set { grid-template-columns: 1fr; }
  .lx-settings .lx-snav { position: static; max-height: none; }
  .lx .lx-row { grid-template-columns: 1fr; gap: 8px; }
  .lx .lx-tiles { grid-template-columns: 1fr; }
  .lx .lx-tile { border-right: 0; }
  .lx-purchase .lx-phead-fields { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lx *, .modal .lx-drawer-dialog { transition: none !important; animation: none !important; }
}

/* Customer display: carousel image uploads */
.lx .lx-tiles-files { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); background: var(--lx-surface); border: 1px solid var(--lx-line); border-radius: 12px; overflow: hidden; }
.lx .lx-tiles-files .lx-file-tile { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; border-right: 1px solid var(--lx-line) !important; }
.lx .lx-tiles-files .lx-file-tile .file-input { margin: 0; }
.lx .lx-row-c.multi-input { flex-wrap: wrap; }
.lx .lx-muted { color: var(--lx-muted) !important; }
.lx .lx-margin-chip.lx-good, .lx .lx-good { color: var(--lx-ok) !important; }
.lx .lx-margin-chip.lx-bad, .lx .lx-bad { color: var(--lx-err) !important; }
.lx textarea#display_screen_heading { min-height: 120px; }

/* product: section sub-heading + misc */
.lx .lx-subh { font-size: 13px; font-weight: 600; color: var(--lx-ink); margin: 6px 0 12px; padding-top: 14px; border-top: 1px solid var(--lx-line); }
.lx-product .lx-card { scroll-margin-top: 80px; }
.lx-product .lx-head .lx-typeseg > button[disabled] { cursor: not-allowed; opacity: .75; }
.lx-product .lx-head .lx-typeseg > button[disabled].on { opacity: 1; }
.lx-product #product_form_part_body .lx-empty { text-align: center; padding: 24px; color: var(--lx-muted); }
.lx-product .lx-imgdrop.has-file { border-color: var(--lx-pri); background: var(--lx-pri-s); }
.lx-product .lx-bar .lx-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* purchase: summary + items footer */
.lx-purchase .lx-pside-inner { display: flex; flex-direction: column; gap: 0; }
.lx-purchase .lx-grand-row { flex-wrap: wrap; }
.lx-purchase .lx-grand-row b { font-weight: 500; color: var(--lx-ink2); font-size: 13px; }
.lx-purchase .lx-grand-row .lx-grand { margin-left: auto; }
.lx-purchase .lx-items-foot { margin-top: 14px; float: none !important; margin-left: auto; width: 100%; max-width: 420px; padding: 0; }
.lx-purchase .lx-items-foot table { width: 100%; float: none !important; }
.lx-purchase .lx-items-foot th, .lx-purchase .lx-items-foot td { padding: 4px 0 !important; font-size: 13px; }
.lx-purchase .lx-items-foot th { font-weight: 500; color: var(--lx-ink2); }
.lx-purchase .lx-items-foot td { font-family: 'Geist Mono', monospace; text-align: right !important; }
.lx-purchase #lx_toggle_pricing.on { background: var(--lx-pri-s) !important; color: var(--lx-pri-d) !important; border-color: var(--lx-pri-t) !important; }
.lx-purchase .lx-pmain .table > tbody > tr > td { border-top: 0; padding-left: 0; }
.lx-purchase .lx-phead .row { margin-left: -8px; margin-right: -8px; }
.lx-purchase .lx-phead [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.lx-purchase .lx-bar .lx-btn.lx-lg { margin-left: 12px; }

/* fixes from live review */
.lx [class^="icheckbox_"]::after, .lx [class^="icheckbox_"]::before { pointer-events: none; }
.lx [class^="icheckbox_"] > ins.iCheck-helper { z-index: 2; cursor: pointer; }
.lx-settings .lx-snav a.list-group-item { border: 0 !important; margin: 0 !important; background: transparent; border-radius: 7px !important; box-shadow: none !important; padding-top: 0; padding-bottom: 0; }
.lx-settings .lx-snav a.list-group-item.active, .lx-settings .lx-snav a.list-group-item.active:hover, .lx-settings .lx-snav a.list-group-item.active:focus { background: var(--lx-pri-s) !important; color: var(--lx-pri-d) !important; border: 0 !important; }
.lx-settings .lx-snav a.list-group-item:hover { background: rgba(20,23,31,.04); }

/* ---------- product view (page + quick-view modal) ---------- */
.lx .lx-pv-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lx .lx-muted { color: var(--lx-muted); }
.lx .lx-strong { font-weight: 600; color: var(--lx-ink); }
.lx .lx-card-b.lx-flush { padding: 14px 0 0; }
.lx .lx-card-b.lx-flush .lx-table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.lx .lx-table th.text-right, .lx .lx-table td.text-right { text-align: right; }
.lx-pview .lx-pv-hero { display: flex; gap: 22px; padding: 20px; align-items: stretch; }
.lx-pview .lx-pv-hero-img { flex: none; width: 168px; height: 168px; border-radius: 12px; background: linear-gradient(135deg, #EEF1F7, #E3E7F0); display: grid; place-items: center; color: var(--lx-faint); overflow: hidden; border: 1px solid var(--lx-line); }
.lx-pview .lx-pv-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.lx-pview .lx-pv-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lx-pview .lx-pv-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-pview .lx-pv-hero-name { font-family: 'Bricolage', 'Geist', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin: 10px 0 4px; color: var(--lx-ink); word-break: break-word; }
.lx-pview .lx-pv-hero-meta { color: var(--lx-ink2); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lx-pview .lx-pv-hero-meta .lx-mono { color: var(--lx-muted); }
.lx-pview .lx-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--lx-faint); display: inline-block; }
.lx-pview .lx-pv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: auto; padding-top: 16px; }
.lx-pview .lx-pv-stat { background: var(--lx-sunken); border: 1px solid var(--lx-line); border-radius: 10px; padding: 10px 12px; }
.lx-pview .lx-pv-stat-l { font-size: 11.5px; color: var(--lx-muted); font-weight: 500; }
.lx-pview .lx-pv-stat-v { font-size: 17px; font-weight: 600; margin-top: 2px; color: var(--lx-ink); line-height: 1.3; overflow-wrap: anywhere; }
.lx-pview .lx-pv-stat-v small { font-size: 12px; color: var(--lx-muted); font-weight: 500; }
.lx-pview .lx-pv-stat-v.lx-ok { color: var(--lx-ok); }
.lx-pview .lx-pv-stat-v.lx-warn { color: var(--lx-warn); }
.lx-pview .lx-pv-stat-v.lx-err { color: var(--lx-err); }
.lx-pview .lx-pv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.lx-pview .lx-pv-col-main, .lx-pview .lx-pv-col-side { min-width: 0; }
.lx-pview .lx-pv-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13px; }
.lx-pview .lx-pv-dl dt { color: var(--lx-muted); font-weight: 400; white-space: nowrap; }
.lx-pview .lx-pv-dl dd { margin: 0; text-align: right; color: var(--lx-ink); font-weight: 500; word-break: break-word; }
.lx-pview .lx-pv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: var(--lx-sunken); border: 1px solid var(--lx-line); font-size: 12.5px; color: var(--lx-ink2); }
.lx-pview .lx-pv-chip i { color: var(--lx-muted); font-size: 11px; }
.lx-pview .lx-pv-gp-row td { background: var(--lx-sunken); padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; }
.lx-pview .lx-pv-gp-row .lx-pv-chip { margin: 2px 4px 2px 0; background: #fff; }
.lx-pview .lx-pv-var { display: flex; align-items: center; gap: 10px; }
.lx-pview .lx-pv-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid var(--lx-line); }
.lx-pview .lx-mono.lx-muted { font-size: 12px; }
.lx-pview .lx-pv-empty { padding: 22px 20px 26px; color: var(--lx-muted); text-align: center; }
.lx-pview .lx-pv-empty i { margin-right: 6px; }
.lx-pview .lx-pv-desc { color: var(--lx-ink2); }
.lx-pview-modal { background: var(--lx-canvas) !important; border-radius: 14px !important; overflow: hidden; }
.lx-pview-modal .modal-header { background: #fff; border-bottom: 1px solid var(--lx-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; }
.lx-pview-modal .modal-header .modal-title { font-weight: 600; font-size: 15px; margin-right: auto; order: 0; }
.lx-pview-modal .modal-header .lx-pv-actions { order: 1; }
.lx-pview-modal .modal-header .close { order: 2; margin: 0 0 0 4px; }
.lx-pview-modal .modal-body { padding: 18px 20px 4px; }
.lx-pview-modal .modal-footer { background: #fff; border-top: 1px solid var(--lx-line); display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 1100px) {
  .lx-pview .lx-pv-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lx-pview .lx-pv-hero { flex-direction: column; padding: 16px; }
  .lx-pview .lx-pv-hero-img { width: 100%; height: 190px; }
  .lx-pview .lx-pv-hero-name { font-size: 20px; }
  .lx-pview-page .lx-pv-actions { width: 100%; }
}
@media print {
  .lx-pview .lx-pv-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .lx-pview .lx-card { box-shadow: none; break-inside: avoid; }
}

/* ---------- product form: stock quick actions in the section rail ---------- */
.lx-product .lx-rail-col { position: sticky; top: 76px; align-self: start; }
.lx-product .lx-rail-col .lx-rail { position: static; }
.lx-product .lx-qa { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.lx-product .lx-qa .lx-rail-t { font-size: 11px; font-weight: 600; color: var(--lx-faint); letter-spacing: .06em; text-transform: uppercase; padding: 0 10px 8px; }
.lx-product .lx-qa a, .lx-product .lx-qa .lx-qa-off { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 10px; border-radius: 7px; color: var(--lx-ink2) !important; font-weight: 500; line-height: 1.25; text-decoration: none !important; }
.lx-product .lx-qa a i, .lx-product .lx-qa .lx-qa-off i { width: 16px; text-align: center; flex: none; }
.lx-product .lx-qa a:hover { background: var(--lx-pri-s); color: var(--lx-pri-d) !important; }
.lx-product .lx-qa .lx-qa-off { color: var(--lx-faint) !important; cursor: not-allowed; }
.lx-product .lx-qa-note { font-size: 11.5px; color: var(--lx-muted); padding: 2px 10px 0; margin: 0; }
.lx-product .lx-rail-fallback { display: none; }
@media (max-width: 1280px) {
  .lx-product .lx-rail-fallback { display: flex; }
}
