/* ============================================================
   JBREWS DMS — modern.css (theme refinement overlay)
   Loads LAST (after colors_and_type.css → chrome.css → era.css →
   jbrews.css). No component code is touched: this file only
   re-tunes the existing --jb-* tokens and the shared class names
   (.k2b-*, .jb-*, .fipro-*) plus native inputs/tables.
   `!important` is used only where jbrews.css / chrome.css already
   use it (so we can win the cascade) or where a component sets an
   inline style that should be normalised (e.g. #C0C0C0 windows).
   Print styles are deliberately untouched.
   ============================================================ */

/* ── 1. Tokens ──────────────────────────────────────────────── */
:root {
  --jb-navy:        #0E1430;
  --jb-navy-2:      #1A2350;
  --jb-navy-deep:   #070B1F;
  --jb-yellow:      #FFD24A;
  --jb-yellow-2:    #E5B82A;
  --jb-yellow-tint: #FFF6D6;
  --jb-blue:        #1B66A8;
  --jb-blue-2:      #2A7CC2;
  --jb-blue-tint:   #EAF2FB;
  --jb-green:       #15803D;
  --jb-green-tint:  #E6F6EC;
  --jb-red:         #BE3144;
  --jb-red-tint:    #FCEBEE;
  --jb-amber:       #A85F00;
  --jb-amber-tint:  #FFF4DB;

  /* Surfaces — very light cool grey canvas, white surfaces, lighter borders */
  --jb-bg:            #F5F7FA;
  --jb-surface:       #FFFFFF;
  --jb-surface-2:     #F8FAFC;
  --jb-surface-3:     #F1F4F8;
  --jb-border:        #E3E8EF;
  --jb-border-strong: #CBD3DE;
  --jb-text:          #101828;
  --jb-text-dim:      #5B6577;
  --jb-text-muted:    #8A94A6;

  /* Type — Inter when installed, otherwise the platform UI stack. No web-font loads. */
  --jb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --jb-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Shape — one notch rounder */
  --jb-r-sm:  6px;
  --jb-r:     8px;
  --jb-r-md:  10px;
  --jb-r-lg:  12px;
  --jb-r-pill: 999px;

  /* Shadows — softer, cooler */
  --jb-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --jb-shadow:    0 2px 4px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --jb-shadow-lg: 0 4px 8px rgba(16, 24, 40, 0.06), 0 24px 56px rgba(16, 24, 40, 0.14);

  --jb-focus: 0 0 0 3px rgba(27, 102, 168, 0.22);

  /* Control metrics */
  --jb-ctl-h:   34px;   /* inputs */
  --jb-btn-h:   32px;   /* buttons */
  --jb-btn-h-sm: 26px;

  /* Legacy k2b / fipro tokens that screens still reference inline
     (pure #0000FF / #000080 / #FFFF00 → calmer brand-aligned values) */
  --k2b-navy:         #0E1430;
  --k2b-navy-deep:    #070B1F;
  --k2b-maroon:       #A32D3F;
  --k2b-blue-data:    #1B4FA8;
  --k2b-blue-data-dk: #0F3E8A;
  --k2b-green:        #15803D;
  --k2b-cream:        #FFFDF4;
  --k2b-yellow:       #FFEB8A;   /* editable-field yellow — still yellow, no longer neon */
  --fipro-surface:    #F5F7FA;
  --fipro-field-bg:   #FFFFFF;
  --fipro-field-hi:   #FFD24A;
  --fipro-value:      #0F3E8A;
  --fipro-label:      #101828;
  --fipro-divider:    #E3E8EF;
  --fipro-big:        #0E1430;
  --win-face:         #F5F7FA;   /* classic-grey sub-window surfaces */
}

/* ── 2. Base ────────────────────────────────────────────────── */
html, body {
  background: var(--jb-bg) !important;
  color: var(--jb-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body, .k2b-host, .fipro-form, .k2b-button, .tb-btn, input, button, select, textarea, table {
  font-variant-numeric: tabular-nums;
}
.fipro-readout, .fipro-label, .fipro-field, .k2b-active-field, .k2b-signon-form .field,
[style*="jb-mono"], [style*="Courier"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
::selection { background: rgba(27, 102, 168, 0.18); }

/* Thin rounded scrollbars (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 40, 0.18);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(16, 24, 40, 0.32); background-clip: padding-box; }
.jb-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }
.jb-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.30); background-clip: padding-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(16, 24, 40, 0.22) transparent; }
.jb-sidebar { scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }

/* ── 3. App shell: sidebar ──────────────────────────────────── */
.jb-shell { grid-template-columns: 220px 1fr; }
.jb-sidebar {
  background: linear-gradient(180deg, #131B3F 0%, var(--jb-navy) 42%, var(--jb-navy-deep) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #E4E9F5;
}
.jb-sidebar .brand {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 11px;
}
.jb-sidebar .brand img { border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.jb-sidebar .brand .name { font-size: 15px; letter-spacing: 0.06em; color: #FFFFFF; line-height: 1.2; }
.jb-sidebar .brand .sub  { font-size: 10.5px; color: #8E98B4; margin-top: 2px; letter-spacing: 0.01em; }
.jb-sidebar .section-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: #6C7897;
  padding: 16px 16px 5px;
}
.jb-sidebar .nav-item {
  height: 36px; box-sizing: border-box;
  margin: 1px 8px;
  padding: 0 10px 0 8px;
  gap: 8px;
  border-left: 0;
  border-radius: var(--jb-r);
  color: #C3CBDF;
  font-size: 13px; font-weight: 500;
  position: relative;
  transition: background .12s, color .12s;
  white-space: nowrap; overflow: hidden;
}
.jb-sidebar .nav-item > span.lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jb-sidebar .nav-item { user-select: none; -webkit-user-select: none; }
.jb-sidebar .nav-item::before {
  /* the active yellow bar — lives inside the rounded pill */
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--jb-yellow);
  opacity: 0; transition: opacity .12s;
}
.jb-sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.jb-sidebar .nav-item.active {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  border-left: 0;
}
.jb-sidebar .nav-item.active::before { opacity: 1; }
.jb-sidebar .nav-item .ic {
  width: 22px; flex: 0 0 22px; text-align: center;
  font-size: 13px; opacity: 0.9; line-height: 1;
}
.jb-sidebar .nav-item.active .ic { opacity: 1; }
/* footer sign-off (inline-styled button — keep it small & quiet) */
.jb-sidebar .k2b-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #E4E9F5 !important;
  box-shadow: none !important;
  height: 26px; min-height: 26px;
}
.jb-sidebar .k2b-button:hover { background: rgba(255, 255, 255, 0.16) !important; border-color: rgba(255, 255, 255, 0.28) !important; }

/* ── 4. App shell: topbar / content ─────────────────────────── */
.jb-topbar {
  height: 56px;
  background: var(--jb-surface);
  border-bottom: 1px solid var(--jb-border);
  padding: 0 18px 0 20px;
  gap: 8px;
}
.jb-topbar .crumbs { gap: 10px; font-size: 13px; color: var(--jb-text-dim); }
.jb-topbar .crumbs .here { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: var(--jb-text); }
.jb-topbar .k2b-button {
  border-radius: var(--jb-r-pill) !important;
  height: 32px;
  padding: 0 14px !important;
  font-weight: 500;
}
.jb-topbar .crumbs .k2b-button { height: 28px; padding: 0 10px !important; font-size: 12px; }
.jb-content { background: var(--jb-bg); }

/* ── 5. Buttons ─────────────────────────────────────────────── */
.k2b-button, button.k2b-button {
  height: var(--jb-btn-h);
  min-height: var(--jb-btn-h);
  min-width: 0;
  padding: 0 14px !important;
  border: 1px solid var(--jb-border-strong) !important;
  border-radius: var(--jb-r) !important;
  background: var(--jb-surface) !important;
  color: var(--jb-text) !important;
  box-shadow: var(--jb-shadow-sm) !important;
  font-size: 12.5px; font-weight: 500; line-height: 1;
  white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s, color .12s;
}
.k2b-button:hover {
  background: var(--jb-surface) !important;
  border-color: var(--jb-blue) !important;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08) !important;
  transform: translateY(-1px);
}
.k2b-button:active { transform: translateY(0); box-shadow: none !important; background: var(--jb-surface-2) !important; }
.k2b-button:focus-visible { outline: none; box-shadow: var(--jb-focus) !important; border-color: var(--jb-blue) !important; }
.k2b-button:disabled, .k2b-button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none !important; }
.k2b-button.small { height: var(--jb-btn-h-sm); min-height: var(--jb-btn-h-sm); padding: 0 10px !important; font-size: 11.5px; border-radius: var(--jb-r-sm) !important; }
.k2b-button.wide  { padding: 0 20px !important; min-width: 120px; }
.k2b-button.icon  { gap: 6px; }

/* Primary — yellow CTA (jbrews.css keys on the inline yellow bg; keep that trick) */
.k2b-button[style*="FFE9B0"], .k2b-button[style*="FFD24A"], .k2b-button[style*="jb-yellow"] {
  background: var(--jb-yellow) !important;
  border-color: var(--jb-yellow-2) !important;
  color: var(--jb-navy) !important;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(229, 184, 42, 0.35) !important;
}
.k2b-button[style*="FFE9B0"]:hover, .k2b-button[style*="FFD24A"]:hover, .k2b-button[style*="jb-yellow"]:hover {
  background: #FFDA66 !important;
  border-color: var(--jb-yellow-2) !important;
  box-shadow: 0 3px 8px rgba(229, 184, 42, 0.35) !important;
}
/* Navy / blue filled variants some screens set inline */
.k2b-button[style*="jb-navy"]:not([style*="color: var(--jb-navy)"]):not([style*="FFD24A"]):not([style*="jb-yellow"]),
.k2b-button[style*="background: var(--jb-blue)"], .k2b-button[style*="background:#1B66A8"], .k2b-button[style*="background: #1B66A8"] {
  background: var(--jb-blue) !important;
  border-color: var(--jb-blue) !important;
  color: #FFFFFF !important;
}
/* Red / danger variants */
.k2b-button[style*="background: var(--jb-red)"], .k2b-button[style*="background:#C03546"], .k2b-button[style*="background: #C03546"] {
  background: var(--jb-red) !important; border-color: var(--jb-red) !important; color: #FFFFFF !important;
}
.k2b-button u { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0; }

/* Help "?" — circular */
.k2b-help-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--jb-surface) !important;
  border: 1px solid var(--jb-border-strong) !important;
  color: var(--jb-text-dim) !important;
  box-shadow: var(--jb-shadow-sm) !important;
  font: 600 13px var(--jb-font) !important; font-style: normal !important;
  cursor: pointer;
}
.k2b-help-btn:hover { background: var(--jb-blue-tint) !important; color: var(--jb-blue) !important; border-color: var(--jb-blue) !important; }
.k2b-help-btn:focus-visible { outline: none; box-shadow: var(--jb-focus) !important; }

/* Plain <button>s without the class (SignOn, small inline controls) */
button { font-family: var(--jb-font); }
button:focus-visible { outline: 2px solid var(--jb-blue); outline-offset: 2px; }
.k2b-button:focus-visible, .tb-btn:focus-visible, .k2b-help-btn:focus-visible { outline: none; }

/* ── 6. Inputs / selects / textarea ─────────────────────────── */
/* Sizing is padding-based (18px line + 7px×2 + 1px border = 34px) rather than a
   hard `height`, so the dense grids that set their own inline padding (Desking
   4-square, CRM lists, JBLive* fields) keep the exact box they were laid out for. */
input[type="text"], input[type="number"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="date"], input[type="url"], input:not([type]),
select, textarea {
  box-sizing: border-box;
  background: var(--jb-surface);
  color: var(--jb-text);
  border: 1px solid var(--jb-border-strong);
  border-radius: var(--jb-r);
  padding: 7px 10px;
  font: 13px/18px var(--jb-font);
  outline: none;
  box-shadow: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
textarea { min-height: 68px; padding: 8px 10px; line-height: 1.45; resize: vertical; }
/* compact inline-padded inputs (padding: 0 4px etc.) get a tighter radius */
input[style*="padding: 0px"], input[style*="padding: 1px"], input[style*="padding: 2px"] { border-radius: var(--jb-r-sm); line-height: 17px; }
select {
  padding: 7px 28px 7px 10px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%235B6577' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
  cursor: pointer;
}
select[multiple], select[size] { background-image: none; padding-right: 10px; }
input:hover:not(:focus):not([readonly]):not(:disabled), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #AEB9C8; }
input:focus, select:focus, textarea:focus {
  border-color: var(--jb-blue) !important;
  box-shadow: var(--jb-focus) !important;
  background: var(--jb-surface);
}
input::placeholder, textarea::placeholder { color: var(--jb-text-muted); opacity: 1; }
input:disabled, select:disabled, textarea:disabled { background: var(--jb-surface-3); color: var(--jb-text-muted); cursor: not-allowed; }
input[readonly]:not(.fipro-field) { background: var(--jb-surface-2); }
input[type="checkbox"], input[type="radio"] {
  height: 15px; width: 15px; accent-color: var(--jb-blue); margin: 0 4px 0 0; vertical-align: -2px;
  border-radius: 4px; cursor: pointer;
}
input[type="range"] { border: 0; padding: 0; background: transparent; accent-color: var(--jb-blue); }
input[type="file"] { padding: 6px 10px; }
input[type="color"] { padding: 2px; width: 40px; height: 34px; }
label { color: var(--jb-text-dim); }

/* Inline-styled inputs in screens (CRM etc.) set border/radius — pull them into line */
input[style*="C8CCD2"], input[style*="border-radius: 4px"] { border-color: var(--jb-border-strong) !important; border-radius: var(--jb-r) !important; }

/* ── 7. Windows / modals / titlebars ────────────────────────── */
.k2b-window {
  background: var(--jb-surface) !important;
  border: 1px solid var(--jb-border) !important;
  border-radius: var(--jb-r-lg);
  box-shadow: var(--jb-shadow);
  overflow: hidden;
}
/* Modal windows sit on a dimmed backdrop — deeper shadow */
[data-k2b-modal] > .k2b-window {
  box-shadow: var(--jb-shadow-lg);
  border-color: rgba(16, 24, 40, 0.06) !important;
  animation: jb-modal-in .16s ease-out;
}
[data-k2b-modal] { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes jb-modal-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

.k2b-titlebar, .k2b-child-titlebar {
  background: var(--jb-surface) !important;
  color: var(--jb-navy) !important;
  border-bottom: 1px solid var(--jb-border) !important;
  font-weight: 700;
  letter-spacing: -0.005em;
  gap: 10px;
  flex: 0 0 auto;
}
.k2b-titlebar { height: 46px; padding: 0 12px 0 16px; font-size: 13.5px; }
.k2b-child-titlebar { height: 40px; padding: 0 10px 0 14px; font-size: 13px; }
.k2b-titlebar .tb-title, .k2b-child-titlebar .tb-title {
  color: var(--jb-navy); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k2b-titlebar .tb-mark, .k2b-child-titlebar .tb-mark { width: 22px; height: 22px; border-radius: 6px; margin-right: 0; }
.k2b-titlebar .tb-buttons, .k2b-child-titlebar .tb-buttons { gap: 2px; }
.k2b-titlebar .tb-btn, .k2b-child-titlebar .tb-btn {
  width: 28px; height: 28px;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important; box-shadow: none !important;
  color: var(--jb-text-dim) !important;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.k2b-titlebar .tb-btn:hover, .k2b-child-titlebar .tb-btn:hover { background: var(--jb-surface-3) !important; color: var(--jb-text) !important; }
.k2b-titlebar .tb-btn:last-child:hover, .k2b-child-titlebar .tb-btn:last-child:hover { background: var(--jb-red-tint) !important; color: var(--jb-red) !important; }
.k2b-titlebar .tb-btn:focus-visible, .k2b-child-titlebar .tb-btn:focus-visible { box-shadow: var(--jb-focus) !important; }

/* Legacy grey inner surfaces on windows / modal bodies */
.k2b-window[style*="C0C0C0"], .k2b-window[style*="F4F4F4"] { background: var(--jb-surface) !important; }

/* Action bar (Esc-Close / Setup etc.) */
.k2b-action-bar { gap: 8px; padding: 8px 12px; }
.k2b-action-bar .k2b-button { min-width: 0; }

/* Section head inside windows */
.k2b-section-head {
  color: var(--jb-text-dim) !important;
  font-size: 11.5px !important;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--jb-border);
  margin: 16px 0 8px !important;
}

/* ── 8. Legacy F&I Pro forms (.fipro-*) ─────────────────────── */
.fipro-form {
  background: var(--jb-surface) !important;
  color: var(--jb-text);
  font-family: var(--jb-mono) !important;
  font-size: 13px;
  line-height: 1.35;
  padding: 12px 16px !important;
}
.fipro-title { background: var(--jb-surface-2); border-bottom: 1px solid var(--jb-border); color: var(--jb-text-dim); font: 600 11px var(--jb-font); padding: 4px 8px; }
.fipro-row { padding: 3px 0; gap: 6px; align-items: center; }
.fipro-label { color: var(--jb-text-dim) !important; font-size: 12.5px; }
.fipro-field, input.fipro-field, .jb-field, .k2b-active-field {
  height: 26px; min-height: 26px; line-height: 24px;
  box-sizing: border-box;
  background: var(--jb-surface) !important;
  color: var(--fipro-value) !important;
  border: 1px solid var(--jb-border) !important;
  border-radius: var(--jb-r-sm);
  padding: 0 8px;
  box-shadow: none !important;
  font-family: var(--jb-mono) !important;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  display: inline-flex; align-items: center;
  vertical-align: middle;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
input.fipro-field, input.jb-field { display: inline-block; }
.fipro-field.text { text-align: left; }
.fipro-field:hover:not(:focus) { border-color: var(--jb-border-strong) !important; }
.fipro-field:focus, input.fipro-field:focus {
  border-color: var(--jb-blue) !important;
  box-shadow: var(--jb-focus) !important;
  background: var(--jb-surface) !important;
  color: var(--jb-text) !important;
}
.fipro-field[readonly] { background: var(--jb-surface-2) !important; color: var(--jb-text-dim) !important; }
.fipro-field.selected { background: var(--jb-blue-tint) !important; border-color: #BFD5EC !important; color: var(--jb-blue) !important; font-weight: 600; }
.fipro-field.hi, .k2b-active-field {
  background: var(--jb-yellow) !important;
  color: var(--jb-navy) !important;
  border-color: var(--jb-yellow-2) !important;
  font-weight: 700;
}
.fipro-readout {
  background: transparent; color: var(--jb-text); font-family: var(--jb-mono) !important;
  height: 26px; line-height: 26px; padding: 0 6px;
}
.fipro-divider-v { background: var(--jb-border) !important; width: 1px; justify-self: center; }
.fipro-divider-h { background: var(--jb-border) !important; height: 1px; margin: 8px 0; }
.fipro-big {
  background: transparent; box-shadow: none;
  color: var(--jb-navy) !important;
  font-family: var(--jb-font) !important;
  font-weight: 700; font-style: normal !important;
  font-size: 40px; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
}
.fipro-btn {
  background: var(--jb-surface); color: var(--jb-text);
  border: 1px solid var(--jb-border-strong); border-radius: var(--jb-r-sm);
  box-shadow: var(--jb-shadow-sm); font: 600 11.5px var(--jb-font);
  height: 26px; min-width: 0; padding: 0 10px; cursor: pointer;
}
.fipro-btn:hover { border-color: var(--jb-blue); }
.fipro-btn:active { box-shadow: none; padding-top: 0; }
.fipro-headerbar {
  background: var(--jb-surface-2); color: var(--jb-text-dim);
  border-bottom: 1px solid var(--jb-border);
  font: 600 12px var(--jb-mono); padding: 6px 12px; gap: 14px;
}

/* ── 9. Tables ──────────────────────────────────────────────── */
table { border-collapse: collapse; font-family: var(--jb-font); font-size: 12.5px; font-variant-numeric: tabular-nums; }
table thead tr { background: var(--jb-surface-2) !important; }
table thead th, table thead tr th {
  position: sticky; top: 0; z-index: 1;
  background: var(--jb-surface-2) !important;
  color: var(--jb-text-dim) !important;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--jb-border);
  box-shadow: inset 0 -1px 0 var(--jb-border);
  white-space: nowrap;
}
table tbody td { padding: 7px 10px; border-bottom: 1px solid var(--jb-surface-3); vertical-align: middle; }
table tbody tr:last-child td { border-bottom-color: transparent; }
/* zebra off, hover tint on */
table tbody tr[style*="FAFAFA"], table tbody tr[style*="jb-surface-2"], table tbody tr[style*="F9FAFC"] { background: var(--jb-surface) !important; }
table tbody tr:hover td { background: var(--jb-blue-tint); }
table tbody tr:hover { background: var(--jb-blue-tint) !important; }
table td[style*="text-align: right"], table th[style*="text-align: right"] { font-variant-numeric: tabular-nums; }
/* legacy Courier data grids (Inventory list etc.) */
table[style*="Courier"] { font-family: var(--jb-mono) !important; font-size: 12.5px; }
table[style*="Courier"] thead tr[style*="C0C0C0"] { background: var(--jb-surface-2) !important; color: var(--jb-text-dim) !important; border-bottom-color: var(--jb-border) !important; }
/* explicit inline header colours used in Settings */
thead tr[style*="F2F2F2"], thead tr[style*="FAFAFA"] { background: var(--jb-surface-2) !important; color: var(--jb-text-dim) !important; }

/* ── 10. Badges / pills / chips ─────────────────────────────── */
[style*="border-radius: 999px"], [style*="borderRadius: 999"] {
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
span[style*="border-radius: 999px"] { letter-spacing: 0.01em; }
.jb-menu-chip { border-radius: var(--jb-r-pill); font-weight: 700; }

/* ── 11. Toasts (inline-styled in chrome.jsx; classless) ────── */
div[style*="z-index: 9999"][style*="position: fixed"] > div {
  background: var(--jb-surface) !important;
  border: 1px solid var(--jb-border) !important;
  border-radius: var(--jb-r-md) !important;
  box-shadow: var(--jb-shadow-lg) !important;
  color: var(--jb-text) !important;
  font-family: var(--jb-font) !important;
  font-size: 12.5px !important;
  padding: 10px 14px 10px 10px !important;
  gap: 10px !important;
  animation: jb-toast-in .22s cubic-bezier(.2,.8,.2,1);
}
div[style*="z-index: 9999"][style*="position: fixed"] > div > span:first-child {
  width: 22px !important; height: 22px !important;
  border-radius: 50% !important;
  font-size: 11px !important;
}
@keyframes jb-toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ── 12. Sign-on ────────────────────────────────────────────── */
.k2b-host { background: linear-gradient(180deg, #0F1730 0%, #18224A 100%) !important; }
/* login card (inline: width 460, gold border, hard corners) */
.k2b-host > div > div[style*="width: 460px"] {
  border-radius: var(--jb-r-lg) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: var(--jb-shadow-lg) !important;
  overflow: hidden;
  font-family: var(--jb-font) !important;
}
.k2b-host input[type="text"], .k2b-host input[type="password"] {
  font-family: var(--jb-font);
}
.k2b-host button:not(.k2b-button):not(.tb-btn):not(.k2b-help-btn) {
  border-radius: var(--jb-r) !important;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s;
}
.k2b-host button:not(.k2b-button):not(.tb-btn):not(.k2b-help-btn):hover { transform: translateY(-1px); }
/* the classic .k2b-signon-* re-skin (kept from jbrews.css, softened) */
.k2b-signon-panel { border-radius: var(--jb-r-lg) !important; box-shadow: var(--jb-shadow-lg) !important; }
.k2b-signon-form .field { border-radius: var(--jb-r-sm); background: var(--jb-surface) !important; }

/* ── 13. Menu screens / landing cards ───────────────────────── */
.k2b-menu-btn { border-radius: var(--jb-r-lg) !important; }
.jb-menu-card { border-radius: var(--jb-r-lg); }
.jb-menu-card-ic { border-radius: var(--jb-r-md); }
.k2b-upload-menubar { border-radius: 0; }

/* ── 14. Misc surfaces components paint inline ──────────────── */
/* dark-navy hero cards (Desking payment panel) keep their gradient; give them the radius */
[style*="linear-gradient(165deg, var(--jb-navy)"] { border-radius: var(--jb-r-lg) !important; }
/* hard-coded #808080 separators inside windows (Finance WS strips) */
.k2b-window [style*="border-bottom: 1px solid rgb(128, 128, 128)"] { border-bottom-color: var(--jb-border) !important; }
.k2b-window [style*="border-bottom: 1px solid #808080"] { border-bottom-color: var(--jb-border) !important; }
/* old k2b navy strips → brand navy */
.k2b-window [style*="background: var(--k2b-navy)"] { background: var(--jb-navy) !important; }
hr { border: 0; border-top: 1px solid var(--jb-border); margin: 12px 0; }
a { color: var(--jb-blue); }
code, kbd { font-family: var(--jb-mono); font-size: 0.92em; }
kbd {
  background: var(--jb-surface-3); border: 1px solid var(--jb-border-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; font-size: 11px; color: var(--jb-text-dim);
}

/* ── 15. Motion preferences ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .k2b-button:hover, .jb-menu-card:hover, .k2b-host button:hover { transform: none !important; }
}

/* ── 16. Fit-to-screen shell + pop-out windows ─────────────────
   Owner: "every screen you have to scroll". The shell is a fixed-height
   app: sidebar + topbar never move, the page never scrolls, and at most ONE
   inner pane scrolls. app.jsx wraps the routed screen in <div.jb-screen>:
     • a .k2b-window child fills the box (its inline `height: calc(100vh-…)`
       / 460 / 700 / 800px / min-height 490 are overridden) and its BODY is
       the scroll container — the inline `flex: 1` child the screens already
       mark, else the last non-titlebar child. Header strips + footer action
       bars stay put.
     • plain flow screens (Dashboard, Deal Pipeline, Customers, menus) scroll
       inside .jb-screen itself.
   Screen-only: print styles are untouched. */
@media screen {
  .jb-shell { height: 100%; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
  .jb-sidebar { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .jb-main { min-height: 0; height: 100%; overflow: hidden; }
  .jb-topbar { flex: 0 0 auto; }
  .jb-content {
    flex: 1 1 auto; min-height: 0;
    overflow: hidden;                       /* the pane, not the page, owns scrolling */
    display: flex; flex-direction: column;
    position: relative;
  }
  .jb-screen {
    flex: 1 1 auto; height: 100%; min-height: 0; min-width: 0;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    padding: 10px 12px;
    overflow: auto;                         /* (c) flow screens scroll here */
    overscroll-behavior: contain;
  }
  /* flow content: fill the box, never get squashed (a taller screen scrolls .jb-screen) */
  .jb-screen > * { flex: 1 0 auto; min-width: 0; }
  /* inline `min-height: 100%` + padding (Dashboard, menus) must not overshoot
     the box by its own padding; full width like the old block layout */
  .jb-screen > :not(.k2b-window) { box-sizing: border-box; width: 100%; }
  /* (a/b) window screens: fill the box exactly; the box itself never scrolls */
  .jb-screen:has(> .k2b-window) { overflow: hidden; }
  /* flow screens bring their own page padding (20px) — don't double it */
  .jb-screen:not(:has(> .k2b-window)) { padding: 0; }
  .jb-screen > .k2b-window {
    flex: 1 1 auto;
    height: 100% !important; max-height: 100% !important; min-height: 0 !important;
    margin-top: 0 !important; margin-bottom: 0 !important;
    display: flex !important; flex-direction: column !important;
    box-sizing: border-box;
  }
  /* header strips / banners / footer action bars keep their natural height */
  .jb-screen > .k2b-window > * { flex-shrink: 0; }
  /* the body the screen already marks with inline `flex: 1` scrolls (an inline
     overflow on that element still wins — this rule is not !important) */
  .jb-screen > .k2b-window > [style*="flex: 1"] { flex-shrink: 1; min-height: 0; overflow: auto; }
  /* windows with no flex:1 body (e.g. General Ledger) — the last pane is the body */
  .jb-screen > .k2b-window:not(:has(> [style*="flex: 1"])) > :last-child:not(.k2b-titlebar):not(.k2b-child-titlebar) {
    flex: 1 1 auto; min-height: 0; overflow: auto;
  }
  /* a fixed pixel/100vh height nested one level down (window body grids) must not push past the box */
  .jb-screen > .k2b-window > * [style*="height: calc(100vh"] { max-height: 100%; }

  /* ── ⧉ pop-out affordances ── */
  .jb-sidebar .nav-item .jb-nav-pop {
    flex: 0 0 auto; margin-left: auto;
    width: 22px; height: 22px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1; color: #DCE3F2; cursor: pointer;
    opacity: 0; transition: opacity .12s, background .12s, color .12s;
  }
  .jb-sidebar .nav-item:hover .jb-nav-pop, .jb-sidebar .nav-item:focus-within .jb-nav-pop { opacity: 1; background: rgba(255, 255, 255, 0.06); }
  .jb-sidebar .nav-item .jb-nav-pop:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
  .jb-topbar .jb-popout-btn { font-weight: 600; }

  /* ── Pop-out window layout (app.jsx ?popout=<route>) ── */
  .jb-popshell {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    background: var(--jb-bg); overflow: hidden;
  }
  .jb-popbar {
    flex: 0 0 auto; height: 44px; box-sizing: border-box;
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px 0 14px;
    background: linear-gradient(180deg, #131B3F 0%, var(--jb-navy) 100%);
    color: #E4E9F5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    font-family: var(--jb-font);
  }
  .jb-popbar-logo { width: 24px; height: 24px; border-radius: 6px; }
  .jb-popbar-title { font-size: 14px; font-weight: 700; color: #FFFFFF; white-space: nowrap; }
  .jb-popbar-sub { font-size: 11px; color: #8E98B4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .jb-popbar-user { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #FFFFFF; white-space: nowrap; }
  .jb-popbar-user .av {
    width: 24px; height: 24px; border-radius: 50%; color: #FFF; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .jb-popbar .k2b-button {
    height: 28px; min-height: 28px; padding: 0 12px !important; font-size: 12px;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #E4E9F5 !important; box-shadow: none !important;
  }
  .jb-popbar .k2b-button:hover { background: rgba(255, 255, 255, 0.16) !important; border-color: rgba(255, 255, 255, 0.32) !important; }
  .jb-popbar .jb-pop-main { background: var(--jb-yellow) !important; border-color: var(--jb-yellow-2) !important; color: var(--jb-navy) !important; font-weight: 700; }
  .jb-popbar .jb-pop-main:hover { background: #FFDA66 !important; }
  /* shown over SignOn when a pop-out has no session */
  .jb-popbar-float { position: fixed; top: 0; left: 0; right: 0; z-index: 9400; }
  /* pop-outs are 1280×860 — a little less chrome around the window */
  .jb-popshell .jb-screen { padding: 8px 10px; }
}

/* view-only notice above a window screen: the window takes the REST of the height */
@media screen {
  .jb-screen > .jb-viewonly { flex: 0 0 auto !important; width: 100%; }
  .jb-screen > .jb-viewonly + .k2b-window { height: auto !important; flex: 1 1 0 !important; }
}

/* ── 17. Overlap guards (controls never sit under another panel) ─────────
   • K2BModal (chrome.jsx) is a flex column capped at the viewport: titlebar +
     sticky button row keep their height, only the body scrolls.
   • Buyer's Order: fields shrink to their card instead of running under the
     neighbouring card / the action column. */
@media screen {
  .k2b-modal-window > .k2b-child-titlebar, .k2b-modal-window > .k2b-titlebar { flex: 0 0 auto; }
  .k2b-modal-window > .k2b-modal-foot { position: relative; z-index: 1; background: inherit; }
  .bo-fields > input, .bo-fields > .jb-field { min-width: 0 !important; max-width: 100%; flex: 0 1 auto; box-sizing: border-box; }
  /* F-key columns (Finance / Cash / Buyer's Order / VIN Decode / Credit App) are their own
     column beside the scrolling form; on short screens (1366×768 @125 % = 614px tall)
     the buttons tighten so the whole stack — incl. Post / Save — stays on screen. */
  .fw-fkeys > .k2b-button, .cw-fkeys > .k2b-button, .bo-fkeys > .k2b-button, .jb-fkeys > .k2b-button { flex: 0 0 auto; }
}
@media screen and (max-height: 720px) {
  .fw-fkeys, .cw-fkeys, .bo-fkeys, .jb-fkeys { gap: 2px !important; padding-top: 4px !important; }
  .fw-fkeys > .k2b-button, .cw-fkeys > .k2b-button, .bo-fkeys > .k2b-button, .jb-fkeys > .k2b-button {
    height: 25px !important; min-height: 25px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 11.5px !important;
  }
  .bo-fkeys > div[style*="height"] { height: 4px !important; }
}

/* ── 18. RC32 (lane ros): the service screens on tablets and phones (owner Q6: service screens first) ──────
   Only while a service route is open (.jb-shell.jb-svc-route — app.jsx): the page fits the device (viewport tag), the left menu folds to
   icons under 1100 px, and on a phone (≤ 640 px) the menu and the top bar step aside — "☰ Menu" in the RO window opens the menu over
   the screen. The rest of the program is unchanged. */
@media screen and (max-width: 1099px) {
  .jb-shell.jb-svc-route { grid-template-columns: 56px minmax(0, 1fr) !important; }
  .jb-shell.jb-svc-route > .jb-sidebar { overflow-x: hidden !important; }
  .jb-shell.jb-svc-route > .jb-sidebar .brand > div,
  .jb-shell.jb-svc-route > .jb-sidebar .section-label,
  .jb-shell.jb-svc-route > .jb-sidebar .nav-item .lbl,
  .jb-shell.jb-svc-route > .jb-sidebar .nav-item .jb-nav-pop { display: none !important; }
  .jb-shell.jb-svc-route > .jb-sidebar .brand { padding: 10px 4px !important; justify-content: center; }
  .jb-shell.jb-svc-route > .jb-sidebar .brand img { width: 32px !important; }
  .jb-shell.jb-svc-route > .jb-sidebar .nav-item { margin: 2px 6px !important; padding: 0 !important; justify-content: center; height: 44px !important; }
  .jb-shell.jb-svc-route > .jb-sidebar .nav-item .ic { font-size: 16px; }
  .jb-shell.jb-svc-route > .jb-sidebar > div[style*="border-top"] { flex-direction: column; align-items: stretch !important; padding: 8px 4px !important; gap: 6px !important; }
  .jb-shell.jb-svc-route > .jb-sidebar > div[style*="border-top"] > div { display: none !important; }
  .jb-shell.jb-svc-route > .jb-sidebar > div[style*="border-top"] > span { align-self: center; }
  .jb-shell.jb-svc-route > .jb-sidebar > div[style*="border-top"] .k2b-button { padding: 4px 2px !important; font-size: 10px !important; white-space: normal; height: auto !important; min-height: 32px; }
  .jb-shell.jb-svc-route > .jb-sidebar > div:last-child:not([style*="border-top"]) { display: none !important; }
  .jb-shell.jb-svc-route .jb-screen { padding: 6px 6px !important; }
}
@media screen and (max-width: 640px) {
  .jb-shell.jb-svc-route { grid-template-columns: minmax(0, 1fr) !important; }
  .jb-shell.jb-svc-route > .jb-sidebar { display: none !important; }
  .jb-shell.jb-svc-route .jb-topbar { display: none !important; }
  .jb-shell.jb-svc-route .jb-screen { padding: 0 !important; }
  .jb-shell.jb-svc-route .jb-screen > .k2b-window { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
  .jb-shell.jb-svc-route .k2b-child-titlebar { padding: 0 6px 0 10px !important; gap: 6px !important; }
  .jb-shell.jb-svc-route .k2b-child-titlebar .tb-btn { width: 40px !important; height: 40px !important; }
  /* ☰ Menu: the left menu opens over the screen, labels shown */
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar { display: flex !important; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 9600; overflow-y: auto; box-shadow: 0 0 24px rgba(0,0,0,.35); }
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar .brand > div,
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar .section-label { display: block !important; }
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar .nav-item .lbl { display: inline !important; }
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar .brand { padding: 14px 16px !important; justify-content: flex-start; }
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar .nav-item { margin: 1px 8px !important; padding: 0 10px 0 8px !important; justify-content: flex-start; height: 44px !important; }
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar > div[style*="border-top"] > div { display: block !important; }
  .jb-svc-menu-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 40, 0.35); z-index: 9590; }
}
/* RC32 fix (r32-aud H1/H2): the service windows' title bars stay ONE row that nothing covers — the RO window's + New RO / ☰ Menu /
   Aa My view / ⚙ (sales tax) / × never wrap under the RO list, even when the shared chrome.css did not load (a stale cache, a test
   rig without the parent folder). The title text shrinks (… ) instead; the buttons keep their size. */
@media screen {
  .jb-shell.jb-svc-route .k2b-child-titlebar, .jb-shell.jb-svc-route .k2b-titlebar, [data-ro-screen] > .k2b-child-titlebar {
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important; min-width: 0; }
  .jb-shell.jb-svc-route .k2b-child-titlebar > .tb-title, .jb-shell.jb-svc-route .k2b-titlebar > .tb-title, [data-ro-screen] > .k2b-child-titlebar > .tb-title {
    flex: 1 1 auto !important; min-width: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jb-shell.jb-svc-route .k2b-child-titlebar > .tb-mark, [data-ro-screen] > .k2b-child-titlebar > .tb-mark { flex: 0 0 auto; }
  .jb-shell.jb-svc-route .k2b-child-titlebar > .tb-buttons, .jb-shell.jb-svc-route .k2b-titlebar > .tb-buttons, [data-ro-screen] > .k2b-child-titlebar > .tb-buttons,
  [data-ro-screen] > .k2b-child-titlebar > [data-ro-titlebar-extra] { display: inline-flex !important; flex: 0 0 auto !important; align-items: center; }
}
/* RC32: the RO screen on a phone — every button a finger-sized target */
@media screen {
  [data-ro-screen] .k2b-button.small { font-size: 12px; }
  [data-ro-screen][data-ro-layout="phone"] .k2b-button { height: auto !important; min-height: 40px !important; }
  [data-ro-screen][data-ro-layout="phone"] .k2b-child-titlebar .tb-btn { width: 40px !important; height: 40px !important; }
  [data-ro-screen][data-ro-layout="phone"] select, [data-ro-screen][data-ro-layout="phone"] input:not([type="radio"]):not([type="checkbox"]) { min-height: 40px; }
}
/* RC32: the technician's phone (TechJobs.jsx.txt) — the Service menu button in the bottom bar is finger-sized too */
@media screen {
  .tj-menu-slot .k2b-button { height: auto !important; min-height: 48px !important; width: 100%; font-size: 15px !important; border-radius: 10px !important; }
}

/* ── 19. RC35 (lane brd): the store you are in (StoreKit.jsx.txt) ─────────────────────────────────────────────────────────────────────
   The color stripe is its own 4 px row at the very top (never over anything; only once the server has 2+ stores). The store chip sits
   in the top bar's crumbs LEFT of the bell / helper and shrinks first; on a phone it is the store's short code. On a phone's service
   screens nothing is added to the RO title bar: the store and "Switch store" are at the top of the ☰ Menu. */
.k2b-store-band { flex: 0 0 4px; height: 4px; min-height: 4px; width: 100%; background: var(--store-primary, #0E1430); }
.jb-popshell > .k2b-store-band, .jb-main > .k2b-store-band { order: -1; }
.jb-topbar .crumbs [data-store-chip] { min-width: 0; }
.jb-topbar .crumbs .k2b-store-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 30ch; flex: 0 1 auto; overflow: hidden;
  height: 30px; padding: 0 10px !important; font-size: 12.5px; font-weight: 600; color: var(--jb-text); background: transparent; border: 1px solid var(--jb-border, #D6DAE3); border-radius: 8px; cursor: pointer; }
.k2b-store-chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.k2b-store-chip .code { display: none; }
.k2b-store-chip .car { flex: 0 0 auto; font-size: 10px; color: var(--jb-text-dim); }
.k2b-store-dot { flex: 0 0 auto; display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.k2b-store-menu { position: fixed; z-index: 9700; min-width: 240px; max-width: min(320px, calc(100vw - 16px)); background: #fff; border: 1px solid #C9CFDB;
  border-radius: 10px; box-shadow: 0 10px 32px rgba(10,20,40,.22); padding: 6px; font-family: var(--font-ui); }
.k2b-store-menu-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6B7488; padding: 4px 8px 6px; }
.k2b-store-opt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; background: transparent; border-radius: 8px;
  font-size: 13.5px; text-align: left; cursor: pointer; color: #111827; }
.k2b-store-opt:hover { background: #F1F4F9; }
.k2b-store-opt.here { font-weight: 700; cursor: default; }
.k2b-store-opt .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k2b-store-opt .you { flex: 0 0 auto; font-size: 11px; color: #6B7488; font-weight: 600; }
.jb-sidebar .brand .k2b-store-name { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.15; }
.k2b-store-block { display: none; }
.k2b-store-modal-bg { position: fixed; inset: 0; z-index: 99000; background: rgba(10,20,40,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.k2b-store-modal { width: min(460px, 100%); background: #fff; border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.35); padding: 18px 20px; font-family: var(--font-ui); color: #111827; }
.k2b-store-modal h3 { margin: 0 0 8px; font-size: 16px; }
.k2b-store-modal p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; }
.k2b-store-modal ul { margin: 0 0 12px 18px; padding: 0; font-size: 13.5px; }
.k2b-store-modal .btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.k2b-store-modal .btns .k2b-button { min-height: 40px; padding: 0 14px !important; }
@media screen and (max-width: 767px) {
  .jb-topbar .crumbs .k2b-store-chip { display: inline-flex !important; min-width: 48px; max-width: 64px; height: 34px; min-height: 32px; padding: 0 8px !important; gap: 5px; }
  .jb-topbar .crumbs .k2b-store-chip .nm { display: none; }
  .jb-topbar .crumbs .k2b-store-chip .code { display: inline; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
  .jb-topbar .crumbs .k2b-store-chip .car { display: none; }
}
@media screen and (max-width: 640px) {
  .jb-shell.jb-svc-route.jb-svc-menu-open > .jb-sidebar .k2b-store-block { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .k2b-store-block .row { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-weight: 700; font-size: 14px; }
  .k2b-store-block .row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .k2b-store-block .k2b-store-switch { min-height: 40px !important; height: auto !important; width: 100%; font-size: 14px !important; }
}
/* RC35 (brd): Owner Panel > Stores (OwnerStores.jsx.txt) */
.os-store-list { display: flex; flex-direction: column; gap: 6px; }
.os-store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #E2E5EA; border-radius: 8px; background: #FAFBFD; }
.os-store-nm { flex: 1 1 260px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.os-store-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.os-store-acts .k2b-button, .os-user-card .k2b-button { min-height: 32px; }
.os-tag { display: inline-block; font-size: 11px; background: #EEF2FA; border: 1px solid #C9D3E6; color: #1F3D7A; border-radius: 10px; padding: 0 7px; margin: 1px 0 1px 6px; white-space: nowrap; }
.os-tag.off { background: #FBE9EC; border-color: #E3A1AC; color: #8A1C2B; }
.os-mono { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 11px; }
.os-modal-bg { position: fixed; inset: 0; z-index: 9800; background: rgba(10,20,40,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.os-modal { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #F7F8FA; border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.35); font-family: var(--font-ui); color: #111827; }
.os-modal.wide { width: min(920px, 100%); }
.os-modal-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #E2E5EA; font-size: 15px; background: #fff; border-radius: 12px 12px 0 0; }
.os-modal-b { flex: 1 1 auto; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.os-modal-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; padding: 10px 14px; border-top: 1px solid #E2E5EA; background: #fff; border-radius: 0 0 12px 12px; }
.os-modal-f .k2b-button { min-height: 40px; padding: 0 14px !important; }
.os-box { background: #fff; border: 1px solid #E2E5EA; border-radius: 8px; padding: 10px 12px; }
.os-box-h { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #1F3D7A; margin-bottom: 8px; }
.os-row { display: flex; flex-wrap: wrap; gap: 10px; }
.os-note { font-size: 12px; color: #555; line-height: 1.45; background: #F5F8FF; border: 1px solid #D6E2F6; border-radius: 6px; padding: 6px 9px; }
.os-check { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 36px; cursor: pointer; }
.os-check input[type="checkbox"], .os-check input[type="radio"] { width: 20px; height: 20px; flex: 0 0 auto; }
.os-band-preview { height: 4px; margin: 10px 0 8px; border-radius: 2px; }
.os-print-preview { background: #fff; border: 1px dashed #C9CFDB; border-radius: 6px; padding: 10px; overflow-x: auto; }
.os-access-list { display: flex; flex-direction: column; gap: 4px; }
.os-user-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border: 1px solid #ECEEF2; border-radius: 6px; background: #fff; }
@media screen and (max-width: 767px) {
  .os-modal-bg { padding: 0; }
  .os-modal, .os-modal.wide { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .os-modal-h, .os-modal-f { border-radius: 0; }
  .os-check input[type="checkbox"], .os-check input[type="radio"] { width: 24px; height: 24px; }
  .os-check { min-height: 44px; }
}
