/* Varevix 0.7.3.42 Beta — identity refresh. Edit these brand tokens for future themes. */
:root {
  --vx-navy: #0B1B35;
  --vx-blue: #1749B9;
  --vx-turquoise: #58C4F4;
  --vx-surface: #F5F8FC;
  --vx-paper: #FFFFFF;
  --vx-text: #17243B;
  --vx-muted: #64748B;
  --vx-border: #E2E8F0;
  --blue: var(--vx-blue);
  --navy: var(--vx-navy);
  --muted: var(--vx-muted);
  --line: var(--vx-border);
  --blue-light: #EAF3FE;
  color: var(--vx-text);
  background: var(--vx-surface);
}
body { background: var(--vx-surface); color: var(--vx-text); }
input, select, textarea { color: var(--vx-text); border-color: var(--vx-border); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--vx-blue); }
button.primary, .primary { background: var(--vx-blue); color: #fff; }
/* Desktop navigation: deep navy, luminous accent, high contrast selection. */
.sidebar { background: var(--vx-navy); border-right-color: #203552; }
.sidebar .brand { margin: 2px 6px 32px; }
.sidebar .brand img { width: 100%; max-width: 186px; height: auto; }
.sidebar .side-label { color: #9FB8D6; }
.sidebar .nav button { color: #CFDCF0; }
.sidebar .nav button:hover:not(.active) { background: #1A3456; color: #fff; }
.sidebar .nav button.active, .sidebar .nav .nav-subitem.active { background: var(--vx-blue); color: #fff; }
.sidebar .nav .nav-caret { color: #B7CBDF; }
.sidebar .nav .nav-submenu { border-left-color: #34516F; }
.sidebar .sidebar-bottom { border-top-color: #34516F; }
.sidebar .sidebar-bottom .version { color: #A9BDD6; }
/* Header and profile area. White controls stay readable on dark header. */
.topbar { background: var(--vx-navy); border-bottom-color: #203552; }
.topbar .top-caption, .topbar .connection-status, .topbar .user-profile-button,
.topbar .user-name, .topbar .user-profile-button small { color: #EDF5FF; }
.topbar .user-profile-button:hover, .topbar .user-profile-button.active { background: #1A3456; }
.topbar .user-profile-button .nav-profile-chevron { color: #EDF5FF; }
.topbar .user-avatar { background: var(--vx-turquoise); color: var(--vx-navy); }
.topbar .company-switcher-trigger { border-color: #CDD8E6; background: #fff; color: var(--vx-text); }
.topbar .company-add-button { background: #fff; color: var(--vx-blue); }
.topbar .user-menu-options { color: var(--vx-text); }
.topbar .user-menu-options .user-menu-heading strong { color: var(--vx-text); }
.topbar .user-menu-options button { color: var(--vx-text); }
.topbar .user-menu-options button:hover { color: var(--vx-blue); }
/* Preserve company action colours (success, warning, danger) and tenant styling. */
.auth-story { background: var(--vx-navy); }
.auth-story .auth-mark { background: #fff; }
.auth-logo { width: 205px; max-width: 100%; }
.auth-card, .setup-panel, .panel, .stat { background-color: #fff; }
.auth-card button.primary { background: var(--vx-blue); }
:where(.vx-document-inbox-page, .editor-section, .inv-doc-panel) a:not(.danger) { color: var(--vx-blue); }
::selection { background: #B6E9FF; color: var(--vx-navy); }
@media(max-width:760px) {
  .sidebar { background: var(--vx-navy); }
  .sidebar .sidebar-bottom .version { color: #A9BDD6; }
}

/* v0.7.3.42 — clear light-mode navigation + turquoise primary actions. */
:root { --vx-action: #58C4F4; --vx-action-text: #0B1B35; --vx-action-hover: #39ADE8; }
body, .main, #page { background: #F5F8FC; }
.sidebar,.topbar { background: #FFFFFF !important; border-color: #E2E8F0 !important; }
.sidebar { box-shadow:none; }
.sidebar .side-label { color: #71839C; }
.sidebar .nav button { color: #334760; }
.sidebar .nav button:hover:not(.active) { background: #F2F7FC; color: #1749B9; }
.sidebar .nav button.active,.sidebar .nav .nav-subitem.active { color: #0B1B35; background: #DDF4FD; box-shadow: inset 3px 0 0 #1749B9; }
.sidebar .nav .nav-caret { color: #607893; }
.sidebar .nav .nav-submenu { border-left-color: #E2E8F0; }
.sidebar .sidebar-bottom { border-top-color: #E2E8F0; }
.sidebar .sidebar-bottom .version { color: #64748B; }
.topbar .top-caption,.topbar .connection-status,.topbar .user-profile-button,.topbar .user-name,.topbar .user-profile-button small { color: #17243B; }
.topbar .user-profile-button:hover,.topbar .user-profile-button.active { background: #F0F6FC; }
.topbar .user-profile-button .nav-profile-chevron { color: #4B627B; }
.topbar .user-avatar { background: #E0ECFC; color: #1749B9; }
.topbar .company-add-button { background: #ECF8FD; color: #1749B9; }
button.primary, .primary, #page label.primary, .auth-card button.primary { background: var(--vx-action); color: var(--vx-action-text); }
button.primary:hover:not(:disabled), .primary:hover:not(:disabled) { background: var(--vx-action-hover); color: #0B1B35; }
.auth-story { background: #F0F8FE; color: #17243B; }
@media(max-width:760px) {.sidebar{background:#FFFFFF!important}.sidebar .sidebar-bottom .version{color:#64748B}}

/* Varevix 0.7.3.44 Clarity — calm enterprise interface. */
:root { --vx-action:#1749B9; --vx-action-text:#FFFFFF; --vx-action-hover:#103A91; --blue-light:#EEF3FC; }
html,body,.app-shell, .main {font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.sidebar,.topbar {background:#FFFFFF!important;border-color:#E6EBF3!important;box-shadow:none!important}
.sidebar .nav button.active,.sidebar .nav .nav-subitem.active {
  background:#EEF3FC;box-shadow:none;color:#1749B9;font-weight:650;
}
.sidebar .nav button:hover:not(.active){background:#F4F7FC;color:#1749B9}
.sidebar .nav .nav-submenu {border-left:none!important;margin-left:0!important;padding-left:16px!important}
.sidebar .nav .nav-subitem {border-left:none!important;box-shadow:none!important}
button.primary,.primary,#page label.primary,.auth-card button.primary {
  background:#1749B9;color:#FFFFFF;border-color:#1749B9;
}
button.primary:hover:not(:disabled),.primary:hover:not(:disabled),#page label.primary:hover:not(:disabled) {
  background:#103A91;color:#FFFFFF;border-color:#103A91;
}
.topbar .top-caption{display:flex;gap:12px;align-items:center;min-width:0}
.vx-top-inbox,.vx-top-help>summary {position:relative;display:grid;place-items:center;flex:none;width:39px;height:39px;border:0;border-radius:10px;background:transparent;color:#3C5270;cursor:pointer;list-style:none}
.vx-top-inbox svg,.vx-top-help svg{width:20px;height:20px}
.vx-top-help>summary::-webkit-details-marker{display:none}
.vx-top-inbox:hover,.vx-top-help>summary:hover{background:#EFF4FC;color:#1749B9}
.vx-top-inbox.current{background:#EEF3FC;color:#1749B9}
.vx-top-inbox-count{position:absolute;top:1px;right:0;min-width:15px;height:15px;padding:0 3px;border-radius:9px;background:#1749B9;color:#FFFFFF;display:grid;place-items:center;font-size:10px;line-height:1;font-weight:700;box-sizing:border-box}
.vx-top-inbox-count[hidden]{display:none}
.vx-top-help{position:relative;flex:none}
.vx-top-help-panel{position:absolute;right:0;top:44px;width:min(310px,calc(100vw - 30px));box-sizing:border-box;z-index:40;background:#FFFFFF;border:1px solid #E2E8F0;border-radius:12px;box-shadow:0 15px 45px #1023421C;padding:17px;font-size:12px;color:#40536C;line-height:1.55}
.vx-top-help-panel strong{font-size:14px;color:#17243B}
.vx-top-help-panel p{margin:10px 0}
.vx-top-help-panel button{color:#1749B9;font-size:12px;font-weight:650;padding:5px;border:0;background:transparent;cursor:pointer}
:focus-visible {outline-color:#1749B9;outline-offset:2px}
@media(max-width:610px){.topbar .top-caption{gap:5px}.vx-top-inbox,.vx-top-help>summary{width:35px;height:35px}.topbar .connection-status{display:none}}

.topbar .company-add-button { background:#EEF3FC; color:#1749B9; }
.topbar .company-add-button:hover { background:#E2EAFA; color:#103A91; }

/* v0.7.3.55 STAGING — password reveal for typed text only. */
.vx-password-field{display:flex;align-items:center;position:relative;width:100%}
.vx-password-field>input{width:100%;padding-right:48px!important;min-width:0}
.vx-password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-height:36px;min-width:36px;display:grid;place-items:center;border:0!important;border-radius:8px;background:transparent!important;color:#516480!important;cursor:pointer}
.vx-password-toggle:hover,.vx-password-toggle:focus-visible{background:#eef3fc!important;color:#1749b9!important;outline-offset:2px}
.vx-password-toggle.is-visible svg{color:#1749b9}

/* v0.7.3.56 STAGING — global compact table-heading standard.
   Applies to the table THEAD only: data rows, section headings and form labels stay unchanged.
   Extra selector weight supersedes legacy Inventory v55 !important rules. */
#page table thead th,
#page .vx-grid-table thead th,
#page .inv-doc-panel .table-scroll > table thead th,
#page .vx-stock-main-table thead th,
#page .catalog-group-table thead th,
#page #product-editor .variant-table thead th {
  font-size:11px!important;
  font-weight:650!important;
  letter-spacing:.025em!important;
  line-height:1.35!important;
}
/* Quantities stay centred. Monetary cells retain existing right alignment. */
#page .vx-grid-table th.inv-history-qty,
#page .vx-grid-table td.inv-history-qty,
#page .inv-doc-panel .table-scroll th.inv-quantity-cell,
#page .inv-doc-panel .table-scroll td.inv-quantity-cell {
  text-align:center!important;
}


/* v0.7.3.57 STAGING — compact Quantity column in inventory document lines.
   The prior auto table layout awarded almost all unused width to Quantity.
   Keep Product / SKU flexible, cap Quantity to the real stepper, preserve centred values.
   Supplier receipt price tables have their own compact column grid and are excluded. */
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) {
  table-layout: fixed;
  min-width: 760px;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > thead > tr > th.inv-quantity-cell {
  width: 220px;
  min-width: 0;
  text-align: center!important;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > thead > tr > th.inv-transfer-available-col {
  width: 136px;
  min-width: 115px;
  text-align: center!important;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > thead > tr > th.inv-transfer-row-actions {
  width: 92px;
  min-width: 92px;
  text-align: center!important;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > thead > tr > th:last-child:not(.inv-quantity-cell):not(.inv-transfer-row-actions) {
  width: 70px;
  min-width: 70px;
  text-align: center!important;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > tbody > tr > td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > tbody > tr > td.inv-quantity-cell {
  text-align: center!important;
  font-variant-numeric: tabular-nums;
}
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > tbody > tr > td.inv-quantity-cell .inv-document-stepper {
  margin-inline: auto;
}

/* v0.7.3.59 STAGING — approved compact quantity C, 120 × 38 px.
   These rules change appearance only; min/max and inventory calculations remain in JS. */
#page .inv-stepper,
#page .inv-document-stepper,
#page .inv-doc-panel .inv-receipt-products-table .inv-document-stepper {
  box-sizing:border-box;
  width:120px!important;
  min-width:120px!important;
  max-width:120px!important;
  height:38px;
  min-height:38px;
  gap:0;
  border-radius:999px;
  margin-inline:auto;
}
#page .inv-stepper > button,
#page .inv-doc-panel .inv-receipt-products-table .inv-document-stepper > button {
  box-sizing:border-box;
  width:33px!important;
  min-width:33px;
  flex:0 0 33px!important;
  height:36px;
  min-height:36px;
  font-size:19px!important;
  line-height:1;
}
#page .inv-stepper > .inv-picker-qty,
#page .inv-doc-panel .inv-receipt-products-table .inv-document-stepper > .inv-picker-qty {
  box-sizing:border-box;
  flex:1 1 auto;
  min-width:0;
  width:52px!important;
  height:36px!important;
  min-height:36px!important;
  font-size:13px!important;
  text-align:center!important;
  padding:0 1px!important;
}
/* Product name has priority over non-monetary quantity columns. */
#page .inv-doc-panel .table-scroll > table:has(> thead > tr > th.inv-quantity-cell):not(.inv-receipt-products-table) > thead > tr > th.inv-quantity-cell {
  width:165px;
}
/* Existing 11 px table-header standard is maintained, with stronger contrast.
   The quantity column is centered, without altering monetary alignments. */
#page table thead th {font-size:11px!important;font-weight:650!important;letter-spacing:.025em!important;color:#526580!important;}
#page .inv-picker-variants th:last-child,
#page .inv-picker-variants td:last-child,
#page .inv-mini th.num,
#page .inv-mini td.num {text-align:center!important;}
/* Empty document: no floating table header with no data; distinct hint block. */
#page .inv-doc-panel .vx-empty-line-table {display:none!important;}
#page .inv-doc-panel .vx-document-empty-wrap {margin:10px 0 0;}
#page .inv-doc-panel .vx-document-empty-wrap .inv-product-empty {background:#f8faff!important;}
/* Robust movement history loading and recoverable errors. */
#page .inv-history-loading {display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 14px;color:#61738d;font-size:12px;}
#page .inv-history-spinner {display:inline-block;width:15px;height:15px;border:2px solid #dae5f7;border-top-color:#1749b9;border-radius:50%;animation:inv-history-spin .8s linear infinite;flex-shrink:0;}
@keyframes inv-history-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#page .inv-history-spinner{animation:none}}
#page .inv-history-error {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border:1px solid #efdbd8;background:#fff9f8;border-radius:8px;padding:12px 14px;color:#8b3442;font-size:12px;}
#page .inv-history-error button {min-height:34px;font-size:12px;}
#page .inv-history-empty {padding:12px 15px;font-size:12px;color:#61738d;}

.vx-password-toggle .vx-eye-strike{display:none}.vx-password-toggle.is-visible .vx-eye-strike{display:block;}


/* v0.7.3.59 STAGING — shared browse picker, count stepper, receipt spacing. */
#page .vx-count-table .vx-count-input-wrap{display:flex;align-items:center;justify-content:center;gap:0;min-width:140px}
#page .vx-count-table .vx-count-stepper{width:120px!important;min-width:120px!important;max-width:120px!important;height:38px;min-height:38px;display:flex;align-items:center;margin-inline:auto;overflow:hidden}
#page .vx-count-table .vx-count-stepper > button{width:33px!important;min-width:33px!important;flex:0 0 33px!important;height:36px!important;min-height:36px!important;padding:0}
#page .vx-count-table .vx-count-stepper > input.vx-count-input{box-sizing:border-box;flex:1 1 auto;width:52px!important;min-width:0!important;max-width:none;height:36px!important;min-height:36px!important;padding:0 2px!important;border:0!important;border-radius:0!important;outline:0;box-shadow:none;background:transparent;text-align:center!important;font-size:13px;font-weight:650}
#page .vx-count-table .vx-count-stepper > input.vx-count-input:focus{outline:0;box-shadow:none}
#page .vx-count-table .vx-count-stepper > input.vx-count-input::placeholder{color:#8798af;opacity:1}
#page .vx-count-table .vx-count-stepper:focus-within{border-color:#1749b9;box-shadow:0 0 0 2px #1749b922}
#page .vx-count-table .vx-count-stepper > input::-webkit-outer-spin-button,
#page .vx-count-table .vx-count-stepper > input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#page .vx-count-stage-note{font-size:13px;color:#586e88;margin:8px 0 14px;line-height:1.5}
#page .vx-count-stage-empty{margin:8px 0 16px;padding:22px 18px;text-align:center;background:#f8fafd;border:1px dashed #dbe4f0;border-radius:10px;color:#536984;font-size:13px}
#page .inv-doc-panel .inv-receipt-products-table th.inv-qty-col{width:15%!important;text-align:center!important}
#page .inv-doc-panel .inv-receipt-products-table th:first-child{width:26%!important}
#page .inv-doc-panel .inv-receipt-products-table th.inv-catalog-col{width:15%!important}
#page .inv-doc-panel .inv-receipt-products-table th.inv-line-col{width:13%!important}
#page .inv-doc-panel .inv-receipt-products-table td.inv-quantity-cell{box-sizing:border-box;vertical-align:middle;text-align:center!important;padding:16px 11px!important}
#page .inv-doc-panel .inv-receipt-products-table td.inv-quantity-cell .inv-document-stepper{display:flex;width:120px!important;min-width:120px!important;max-width:120px!important;margin:0 auto!important}
