@import url('/vendor/fonts/local-fonts.css');

:root {
  --vr-canvas: #f1f2f5;
  --vr-canvas-deep: #e7e9ee;
  --vr-surface: #ffffff;
  --vr-surface-soft: #f9fcff;
  --vr-surface-muted: #f6f7f9;
  --vr-line: #dfe3e9;
  --vr-line-strong: #c9d0da;
  --vr-text: #1f2937;
  --vr-text-soft: #475569;
  --vr-muted: #6b7280;
  --vr-primary: #356fae;
  --vr-primary-strong: #245786;
  --vr-primary-soft: #eaf2fa;
  --vr-blue: #356fae;
  --vr-blue-soft: #eaf2fa;
  --vr-success: #2f7d62;
  --vr-warning: #a56a16;
  --vr-danger: #b3473f;
  --vr-danger-soft: #fbefed;
  --vr-shadow-sm: 0 1px 2px rgba(31, 41, 55, .05), 0 4px 14px rgba(31, 41, 55, .045);
  --vr-shadow-md: 0 12px 30px rgba(31, 41, 55, .09);
  --vr-radius-sm: 8px;
  --vr-radius: 12px;
  --vr-radius-lg: 18px;
  --vr-shell-height: 48px;
}

html.vr-ui-preview {
  color-scheme: light;
  background: var(--vr-canvas);
}

body.vr-unified {
  --primary-color: var(--vr-primary);
  --secondary-color: var(--vr-muted);
  --background-color: var(--vr-canvas);
  --surface-color: var(--vr-surface);
  --text-color: var(--vr-text);
  --border-color: var(--vr-line);
  --brand-accent: var(--vr-primary);
  --brand-accent-2: var(--vr-blue);
  --accent: var(--vr-primary);
  --accent-soft: var(--vr-primary-soft);
  --forest: var(--vr-primary-strong);
  --mint: var(--vr-primary-soft);
  --lime: var(--vr-primary-soft);
  --paper: var(--vr-surface);
  --card: var(--vr-surface);
  --ink: var(--vr-text);
  --muted: var(--vr-muted);
  --line: var(--vr-line);
  --bg: var(--vr-canvas);
  --surface: var(--vr-surface);
  --text: var(--vr-text);
  margin: 0;
  min-height: 100vh;
  color: var(--vr-text);
  background:
    radial-gradient(circle at 8% -8%, rgba(53, 111, 174, .08), transparent 30rem),
    linear-gradient(180deg, #fcfdff 0, var(--vr-canvas) 38rem, #f6f7f9 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.vr-unified *,
body.vr-unified *::before,
body.vr-unified *::after {
  box-sizing: border-box;
}

body.vr-unified h1,
body.vr-unified h2,
body.vr-unified h3,
body.vr-unified h4,
body.vr-unified h5,
body.vr-unified h6,
body.vr-unified button,
body.vr-unified input,
body.vr-unified select,
body.vr-unified textarea {
  font-family: inherit;
}

body.vr-unified h1,
body.vr-unified h2,
body.vr-unified h3 {
  color: var(--vr-text);
  letter-spacing: -.025em;
}

body.vr-unified a {
  color: var(--vr-primary-strong);
}

.vr-shell {
  position: sticky;
  top: 0;
  z-index: 1090;
  min-height: var(--vr-shell-height);
  color: var(--vr-text);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--vr-line);
  box-shadow: 0 6px 24px rgba(31, 41, 55, .055);
  backdrop-filter: blur(16px);
}

.vr-shell-placeholder {
  width: 100%;
  height: var(--vr-shell-height);
  min-height: var(--vr-shell-height);
}

.vr-shell__row {
  width: min(1880px, 100%);
  min-height: var(--vr-shell-height);
  margin: 0 auto;
  padding: 3px clamp(12px, 1.6vw, 30px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.2vw, 20px);
}

.vr-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: var(--vr-text) !important;
  text-decoration: none !important;
}

.vr-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(53, 111, 174, .18);
  box-shadow: var(--vr-shadow-sm);
}

.vr-brand span,
.vr-brand strong,
.vr-brand small {
  display: block;
}

.vr-brand strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.vr-brand small {
  margin-top: 1px;
  color: var(--vr-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vr-brand--compact img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.vr-brand--compact small {
  display: none;
}

.vr-primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.vr-nav-link {
  min-height: 34px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  color: var(--vr-text-soft) !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.vr-nav-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.vr-nav-link:hover {
  color: var(--vr-primary-strong) !important;
  background: var(--vr-surface-soft);
}

.vr-nav-link.is-active {
  color: var(--vr-primary-strong) !important;
  background: var(--vr-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(53, 111, 174, .08);
}

.vr-shell__account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.vr-account-identity {
  min-width: 0;
  display: grid;
  justify-items: end;
  line-height: 1.15;
}

.vr-account-name {
  max-width: 130px;
  overflow: hidden;
  color: var(--vr-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vr-account-balance {
  margin-top: 2px;
  color: var(--vr-muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vr-account-balance strong {
  color: var(--vr-text-soft);
  font-weight: 800;
}

.vr-account-balance strong.is-debt { color: var(--vr-danger); }
.vr-account-balance strong.is-credit { color: var(--vr-success); }

.vr-account-balance a {
  color: var(--vr-primary-strong) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vr-logout,
.vr-menu-toggle {
  min-height: 30px;
  border: 1px solid var(--vr-line);
  border-radius: 8px;
  color: var(--vr-text-soft);
  background: var(--vr-surface);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.vr-logout {
  padding: 0 10px;
}

.vr-logout:hover {
  color: var(--vr-danger);
  border-color: #e6bbb7;
  background: var(--vr-danger-soft);
}

.vr-menu-toggle {
  display: none;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
}

.vr-menu-toggle span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.vr-menu-toggle b {
  margin-left: 4px;
  font-size: 10px;
}

.vr-skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1200;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff !important;
  background: var(--vr-primary-strong);
  transition: top .15s ease;
}

.vr-skip:focus {
  top: 10px;
}

body.vr-unified .app-header {
  display: none !important;
}

body.vr-unified .analysis-hero {
  padding: 25px clamp(18px, 4vw, 56px);
  color: var(--vr-text);
  background: linear-gradient(115deg, #eaf2fa, #f9fcff 72%);
  border-bottom: 1px solid var(--vr-line);
}

body.vr-unified .analysis-hero h1,
body.vr-unified .analysis-hero p,
body.vr-unified .analysis-hero a {
  color: inherit;
}

body.vr-unified .analysis-hero::after {
  border-color: rgba(53, 111, 174, .07);
}

body.vr-unified .topbar,
body.vr-unified .run-header,
body.vr-unified > header:not(.vr-shell):not(.app-header):not(.analysis-hero),
body.vr-unified .screen-toolbar,
body.vr-unified .report-heading,
body.vr-unified .order-heading {
  color: var(--vr-text);
  background: rgba(255, 255, 255, .92);
  border-color: var(--vr-line);
  box-shadow: none;
}

body.vr-unified .run-header,
body.vr-unified > header:not(.vr-shell):not(.app-header):not(.analysis-hero) {
  top: var(--vr-shell-height);
}

body.vr-unified main,
body.vr-unified .main-container,
body.vr-unified .analysis-shell {
  position: relative;
}

body.vr-unified .container,
body.vr-unified .container-fluid,
body.vr-unified .main-container,
body.vr-unified .analysis-shell {
  --bs-gutter-x: 1.5rem;
}

body.vr-unified .card,
body.vr-unified .controls,
body.vr-unified .workspace,
body.vr-unified .point,
body.vr-unified .point-sidebar,
body.vr-unified .detail-stage,
body.vr-unified .portfolio-section,
body.vr-unified .navigation-panel,
body.vr-unified .carry-panel,
body.vr-unified .point-tools,
body.vr-unified .summary > div,
body.vr-unified .metric-card,
body.vr-unified .insight-card,
body.vr-unified .login-card,
body.vr-unified .modal-content,
body.vr-unified .offcanvas,
body.vr-unified .task,
body.vr-unified .workspace-card {
  border-color: var(--vr-line);
  border-radius: var(--vr-radius);
  color: var(--vr-text);
  background-color: var(--vr-surface);
  box-shadow: var(--vr-shadow-sm);
}

body.vr-unified .card-header,
body.vr-unified .card-footer,
body.vr-unified .point-head,
body.vr-unified .actions,
body.vr-unified .detail-header,
body.vr-unified .section-head {
  color: var(--vr-text);
  background: var(--vr-surface-muted);
  border-color: var(--vr-line);
}

body.vr-unified .kpi-grid,
body.vr-unified .metric-grid,
body.vr-unified .summary {
  gap: 10px;
}

body.vr-unified .kpi-card,
body.vr-unified .metric-card {
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid var(--vr-line);
  border-radius: var(--vr-radius);
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-sm);
}

body.vr-unified .kpi-value,
body.vr-unified .metric-value,
body.vr-unified .summary strong {
  color: var(--vr-text);
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

body.vr-unified .metric-card.accent {
  color: var(--vr-text);
  background: var(--vr-primary-soft);
}

body.vr-unified .metric-card.accent .metric-label {
  color: var(--vr-primary-strong);
}

body.vr-unified .btn,
body.vr-unified button,
body.vr-unified .action,
body.vr-unified .primary-action,
body.vr-unified .secondary-action {
  border-radius: var(--vr-radius-sm);
  font-weight: 700;
  box-shadow: none;
}

body.vr-unified .btn-primary,
body.vr-unified .primary-action,
body.vr-unified button.service,
body.vr-unified button.apply-extra,
body.vr-unified button:not([class]):not(.vr-menu-toggle):not(.vr-logout) {
  border-color: var(--vr-primary);
  color: #fff;
  background-color: var(--vr-primary);
}

body.vr-unified .btn-primary:hover,
body.vr-unified .primary-action:hover,
body.vr-unified button.service:hover {
  border-color: var(--vr-primary-strong);
  background-color: var(--vr-primary-strong);
}

body.vr-unified .btn-outline-primary,
body.vr-unified .secondary-action,
body.vr-unified button.secondary {
  border-color: var(--vr-line-strong);
  color: var(--vr-primary-strong);
  background: var(--vr-surface-soft);
}

body.vr-unified .btn-danger,
body.vr-unified .btn-outline-danger,
body.vr-unified .vr-danger-action {
  border-color: #e6bbb7 !important;
  color: var(--vr-danger) !important;
  background: var(--vr-danger-soft) !important;
}

body.vr-unified button:disabled,
body.vr-unified .btn:disabled,
body.vr-unified .disabled {
  opacity: .52;
  cursor: not-allowed;
}

body.vr-unified .form-control,
body.vr-unified .form-select,
body.vr-unified input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.vr-unified select,
body.vr-unified textarea {
  min-height: 36px;
  border: 1px solid var(--vr-line-strong);
  border-radius: var(--vr-radius-sm);
  color: var(--vr-text);
  background-color: #fff;
  box-shadow: none;
}

body.vr-unified textarea {
  min-height: 72px;
}

body.vr-unified .form-control:focus,
body.vr-unified .form-select:focus,
body.vr-unified input:focus,
body.vr-unified select:focus,
body.vr-unified textarea:focus {
  border-color: var(--vr-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(53, 111, 174, .13);
}

body.vr-unified .form-label,
body.vr-unified label {
  color: var(--vr-text-soft);
  font-weight: 700;
}

body.vr-unified .form-check-input:checked {
  border-color: var(--vr-primary);
  background-color: var(--vr-primary);
}

body.vr-unified .nav-tabs,
body.vr-unified .detail-tabs,
body.vr-unified .credit-view-tabs {
  gap: 3px;
  border-color: var(--vr-line);
}

body.vr-unified .nav-tabs .nav-link,
body.vr-unified .detail-tabs button,
body.vr-unified .credit-view-tabs .nav-link {
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--vr-muted);
  background: transparent;
}

body.vr-unified .nav-tabs .nav-link.active,
body.vr-unified .detail-tabs button.active,
body.vr-unified .credit-view-tabs .nav-link.active {
  color: var(--vr-primary-strong);
  background: var(--vr-primary-soft);
  box-shadow: inset 0 -2px 0 var(--vr-primary);
}

body.vr-unified .table-responsive,
body.vr-unified .table-wrap,
body.vr-unified .inventory-table-wrap,
body.vr-unified .vendista-table-wrap {
  border: 1px solid var(--vr-line);
  border-radius: 10px;
  background: var(--vr-surface);
  box-shadow: none;
  scrollbar-color: #b9c6d5 transparent;
  scrollbar-width: thin;
}

body.vr-unified table {
  color: var(--vr-text);
  background: var(--vr-surface);
}

body.vr-unified table th,
body.vr-unified .table thead th,
body.vr-unified table.vendista-table thead th {
  color: #475569;
  background: #eef2f7;
  border-color: var(--vr-line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.vr-unified table td,
body.vr-unified .table td {
  border-color: #e6e9ee;
}

body.vr-unified table tbody tr:nth-child(even) {
  background: #fafbfc;
}

body.vr-unified table tbody tr:hover {
  background: #eef4fb;
}

body.vr-unified .dropdown-menu,
body.vr-unified .select2-dropdown {
  border-color: var(--vr-line);
  border-radius: 10px;
  color: var(--vr-text);
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-md);
}

body.vr-unified .dropdown-item:hover,
body.vr-unified .dropdown-item:focus,
body.vr-unified .select2-results__option--highlighted {
  color: var(--vr-primary-strong) !important;
  background: var(--vr-primary-soft) !important;
}

body.vr-unified .badge,
body.vr-unified .badge-soft,
body.vr-unified .overview-chip,
body.vr-unified .count-badge {
  border: 1px solid var(--vr-line);
  border-radius: 999px;
  color: var(--vr-text-soft);
  background: var(--vr-surface-soft);
}

body.vr-unified .alert,
body.vr-unified .status,
body.vr-unified .status-panel,
body.vr-unified .admin-mode-notice {
  border: 1px solid var(--vr-line);
  border-radius: 10px;
  color: var(--vr-text-soft);
  background: var(--vr-surface-soft);
}

body.vr-unified .alert-danger,
body.vr-unified .status.error,
body.vr-unified .status-panel.error,
body.vr-unified .point-alert {
  border-color: #ecc9c5;
  color: #8d342e;
  background: var(--vr-danger-soft);
}

body.vr-unified .modal-backdrop.show {
  opacity: .28;
}

body.vr-unified .modal-content {
  overflow: hidden;
}

body.vr-unified .modal-header,
body.vr-unified .modal-footer,
body.vr-unified .offcanvas-header {
  border-color: var(--vr-line);
  background: var(--vr-surface-muted);
}

.vr-inline-logo {
  object-fit: cover;
  border: 1px solid var(--vr-line);
  box-shadow: var(--vr-shadow-sm);
}

.vr-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.vr-login-brand .vr-brand {
  pointer-events: none;
}

body.vr-public .navbar {
  border-bottom: 1px solid var(--vr-line);
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 5px 18px rgba(31, 41, 55, .05);
  backdrop-filter: blur(14px);
}

body.vr-public .navbar-brand.vr-brand {
  margin: -3px 0;
}

body.vr-unified[data-vr-page="login"] {
  background:
    radial-gradient(circle at 15% 10%, rgba(53, 111, 174, .13), transparent 32rem),
    radial-gradient(circle at 90% 90%, rgba(43, 111, 174, .10), transparent 28rem),
    var(--vr-canvas);
}

body.vr-unified[data-vr-page="login"] .login-card {
  max-width: 430px;
  border: 1px solid var(--vr-line);
  box-shadow: var(--vr-shadow-md);
}

body.vr-unified[data-vr-page="route_analysis"] .workspace-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

body.vr-unified[data-vr-page="route_analysis"] .point-item:hover,
body.vr-unified[data-vr-page="route_analysis"] .point-item.active {
  border-color: var(--vr-line-strong);
  background: var(--vr-surface-soft);
}

body.vr-unified[data-vr-page="route_run"] main {
  width: min(820px, calc(100% - 24px));
}

body.vr-unified[data-vr-page="route_run"] .slot {
  color: var(--vr-primary-strong);
  background: var(--vr-primary-soft);
}

body.vr-unified[data-vr-page="terminal"] {
  background: #f1f2f5;
}

body.vr-unified[data-vr-page="terminal"] .terminal-shell,
body.vr-unified[data-vr-page="terminal"] .terminal-card {
  border-color: #4b6380;
}

@media (max-width: 1450px) {
  .vr-shell__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .vr-nav-link {
    padding-inline: 7px;
  }

  .vr-account-name {
    display: none;
  }
}

@media (max-width: 1380px) {
  .vr-shell__row {
    grid-template-columns: auto 1fr auto;
  }

  .vr-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .vr-primary-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    padding: 10px;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    border: 1px solid var(--vr-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--vr-shadow-md);
  }

  .vr-shell.is-menu-open .vr-primary-nav {
    display: flex;
  }

  .vr-nav-link {
    flex: 1 1 140px;
    justify-content: flex-start;
    min-height: 44px;
    padding-inline: 12px;
  }

  .vr-shell__account {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 86px;
  }

  body.vr-unified[data-vr-page="route_analysis"] .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --vr-shell-height: 48px;
  }

  .vr-skip {
    display: none !important;
  }

  body.vr-unified {
    font-size: 13px;
  }

  .vr-shell__row {
    min-height: var(--vr-shell-height);
    padding: 3px 10px;
    gap: 8px;
  }

  .vr-brand img {
    width: 32px;
    height: 32px;
  }

  .vr-brand strong {
    font-size: 14px;
  }

  .vr-brand small,
  .vr-account-name,
  .vr-logout {
    display: none;
  }

  .vr-shell__account {
    display: none;
  }

  .vr-menu-toggle {
    grid-column: 3;
  }

  .vr-primary-nav {
    left: 8px;
    right: 8px;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  .vr-nav-link {
    flex: 0 0 auto;
    width: 100%;
  }

  body.vr-unified .analysis-hero {
    padding: 18px 14px;
  }

  body.vr-unified .analysis-hero h1 {
    font-size: 26px;
  }

  body.vr-unified .controls,
  body.vr-unified .card-body,
  body.vr-unified .detail-content {
    padding: 12px;
  }

  body.vr-unified .kpi-grid,
  body.vr-unified .metric-grid,
  body.vr-unified .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.vr-unified .form-control,
  body.vr-unified .form-select,
  body.vr-unified input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  body.vr-unified select,
  body.vr-unified textarea,
  body.vr-unified .btn,
  body.vr-unified button {
    font-size: 14px;
  }
}

@media print {
  .vr-shell,
  body.vr-unified .app-header,
  body.vr-unified .fab-container,
  body.vr-unified .bottom-dock,
  body.vr-unified .table-tools {
    display: none !important;
  }

  body.vr-unified {
    color: #000;
    background: #fff;
  }

  body.vr-unified .card,
  body.vr-unified .workspace,
  body.vr-unified .point,
  body.vr-unified .table-responsive,
  body.vr-unified .table-wrap {
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-shell *,
  body.vr-unified * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Route analysis: desktop information hierarchy and predictable control states. */
body.vr-unified[data-vr-page="route_analysis"] > .analysis-hero {
  position: static;
  inset: auto;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 22px max(42px, calc((100vw - 1680px) / 2 + 42px)) 24px;
  background: var(--vr-surface);
  overflow: hidden;
}

body.vr-unified[data-vr-page="route_analysis"] .analysis-hero h1 {
  margin: 10px 0 5px;
  max-width: 900px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
}

body.vr-unified[data-vr-page="route_analysis"] .analysis-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--vr-text-soft);
  font-size: 14px;
}

body.vr-unified[data-vr-page="route_analysis"] .analysis-hero .eyebrow {
  margin-top: 15px;
  color: var(--vr-primary);
}

body.vr-unified[data-vr-page="route_analysis"] .back-link {
  color: var(--vr-text-soft);
  font-size: 13px;
  font-weight: 700;
}

body.vr-unified[data-vr-page="route_analysis"] .hero-date {
  align-self: end;
  margin-bottom: 1px;
  border-color: var(--vr-line-strong);
  color: var(--vr-text-soft);
  background: rgba(255, 255, 255, .86);
  white-space: nowrap;
}

body.vr-unified[data-vr-page="route_analysis"] .analysis-shell {
  max-width: 1680px;
  padding: 18px 42px 56px;
}

body.vr-unified[data-vr-page="route_analysis"] .control-rail {
  display: grid;
  grid-template-columns: auto auto minmax(20px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-color: var(--vr-line);
  border-radius: 14px;
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-sm);
}

body.vr-unified[data-vr-page="route_analysis"] .period-control,
body.vr-unified[data-vr-page="route_analysis"] .quick-periods,
body.vr-unified[data-vr-page="route_analysis"] .threshold-control {
  gap: 7px;
}

body.vr-unified[data-vr-page="route_analysis"] .threshold-control {
  grid-column: 4;
  margin-left: 0;
}

body.vr-unified[data-vr-page="route_analysis"] .control-rail input {
  min-height: 38px;
  padding: 7px 10px;
}

body.vr-unified[data-vr-page="route_analysis"] .quick-periods button,
body.vr-unified[data-vr-page="route_analysis"] .attention-filters button {
  border: 1px solid var(--vr-line);
  color: var(--vr-text-soft);
  background: var(--vr-surface-muted);
}

body.vr-unified[data-vr-page="route_analysis"] .quick-periods button:hover,
body.vr-unified[data-vr-page="route_analysis"] .attention-filters button:hover {
  border-color: var(--vr-line-strong);
  color: var(--vr-primary-strong);
  background: var(--vr-surface-soft);
}

body.vr-unified[data-vr-page="route_analysis"] .quick-periods button.active,
body.vr-unified[data-vr-page="route_analysis"] .attention-filters button.active {
  border-color: #b8cde2;
  color: var(--vr-primary-strong);
  background: var(--vr-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(53, 111, 174, .06);
}

body.vr-unified[data-vr-page="route_analysis"] .status-panel {
  margin: 12px 0;
  border: 1px solid var(--vr-line);
  color: var(--vr-text-soft);
  background: var(--vr-surface-soft);
}

body.vr-unified[data-vr-page="route_analysis"] .metric-grid {
  gap: 10px;
  margin: 12px 0 16px;
}

body.vr-unified[data-vr-page="route_analysis"] .metric-card {
  min-height: 98px;
  padding: 13px 14px;
  border-radius: 12px;
  box-shadow: var(--vr-shadow-sm);
}

body.vr-unified[data-vr-page="route_analysis"] .metric-card.accent {
  border-color: #c7d8e9;
  background: var(--vr-primary-soft);
}

body.vr-unified[data-vr-page="route_analysis"] .workspace-grid {
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 14px;
}

body.vr-unified[data-vr-page="route_analysis"] .point-sidebar,
body.vr-unified[data-vr-page="route_analysis"] .detail-stage,
body.vr-unified[data-vr-page="route_analysis"] .portfolio-section {
  border-radius: 14px;
  box-shadow: var(--vr-shadow-sm);
}

body.vr-unified[data-vr-page="route_analysis"] .point-sidebar {
  padding: 16px;
}

body.vr-unified[data-vr-page="route_analysis"] .count-badge {
  border: 1px solid var(--vr-line);
  color: var(--vr-primary-strong);
  background: var(--vr-primary-soft);
}

body.vr-unified[data-vr-page="route_analysis"] .search-input {
  margin: 13px 0 9px;
}

body.vr-unified[data-vr-page="route_analysis"] .attention-filters {
  gap: 6px;
}

body.vr-unified[data-vr-page="route_analysis"] .attention-filters button {
  min-height: 34px;
}

body.vr-unified[data-vr-page="route_analysis"] .detail-header {
  min-height: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--vr-line);
  background: var(--vr-surface-muted);
}

body.vr-unified[data-vr-page="route_analysis"] .detail-header:empty {
  display: none;
}

body.vr-unified[data-vr-page="route_analysis"] .detail-tabs {
  gap: 5px;
  padding: 9px 16px 0;
  background: var(--vr-surface);
}

body.vr-unified[data-vr-page="route_analysis"] .detail-tabs button {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--vr-muted);
  background: transparent;
  box-shadow: none;
}

body.vr-unified[data-vr-page="route_analysis"] .detail-tabs button:hover {
  color: var(--vr-primary-strong);
  background: var(--vr-surface-muted);
}

body.vr-unified[data-vr-page="route_analysis"] .detail-tabs button.active {
  color: var(--vr-primary-strong);
  background: var(--vr-primary-soft);
  box-shadow: inset 0 -2px 0 var(--vr-primary);
}

body.vr-unified[data-vr-page="route_analysis"] .detail-content {
  min-height: 330px;
  padding: 20px;
}

body.vr-unified[data-vr-page="route_analysis"] .detail-empty {
  min-height: 285px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 36px;
  color: var(--vr-muted);
  text-align: center;
  border: 1px dashed var(--vr-line-strong);
  border-radius: 12px;
  background: var(--vr-surface-muted);
}

body.vr-unified[data-vr-page="route_analysis"] .detail-empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--vr-primary);
  background: var(--vr-primary-soft);
  font-size: 20px;
}

body.vr-unified[data-vr-page="route_analysis"] .detail-empty strong {
  color: var(--vr-text);
  font-size: 16px;
}

body.vr-unified[data-vr-page="route_analysis"] .detail-empty p {
  max-width: 430px;
  margin: 6px 0 0;
}

@media (max-width: 1280px) {
  body.vr-unified[data-vr-page="route_analysis"] .analysis-shell {
    padding-inline: 24px;
  }

  body.vr-unified[data-vr-page="route_analysis"] > .analysis-hero {
    padding-inline: 24px;
  }

  body.vr-unified[data-vr-page="route_analysis"] .control-rail {
    grid-template-columns: 1fr auto;
  }

  body.vr-unified[data-vr-page="route_analysis"] .period-control,
  body.vr-unified[data-vr-page="route_analysis"] .quick-periods {
    justify-self: start;
  }

  body.vr-unified[data-vr-page="route_analysis"] .threshold-control {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body.vr-unified[data-vr-page="route_analysis"] .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.vr-unified[data-vr-page="route_analysis"] > .analysis-hero {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  body.vr-unified[data-vr-page="route_analysis"] .analysis-hero h1 {
    font-size: 30px;
  }

  body.vr-unified[data-vr-page="route_analysis"] .analysis-shell {
    padding: 12px 10px 40px;
  }

  body.vr-unified[data-vr-page="route_analysis"] .control-rail {
    display: flex;
    align-items: stretch;
  }

  body.vr-unified[data-vr-page="route_analysis"] .threshold-control {
    margin-left: 0;
  }

  body.vr-unified[data-vr-page="route_analysis"] .detail-content {
    min-height: 260px;
    padding: 12px;
  }

  body.vr-unified[data-vr-page="route_analysis"] .detail-empty {
    min-height: 220px;
    padding: 24px 16px;
  }
}

/* Isolated client-cabinet mode */
.vr-support-bar {
  position: sticky;
  top: var(--vr-shell-height);
  z-index: 1085;
  min-height: 38px;
  padding: 5px clamp(12px, 2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-bottom: 1px solid #c9d8e6;
  color: #294f70;
  background: rgba(238, 245, 251, .97);
  box-shadow: 0 4px 14px rgba(31, 41, 55, .05);
  backdrop-filter: blur(14px);
}

body.vr-unified[data-vr-support] {
  --vr-support-height: 38px;
}

body.vr-unified[data-vr-support] .run-header,
body.vr-unified[data-vr-support] > header:not(.vr-shell):not(.app-header):not(.analysis-hero) {
  top: calc(var(--vr-shell-height) + var(--vr-support-height));
}

.vr-support-bar.is-full {
  border-bottom-color: #dfc49a;
  color: #77501a;
  background: rgba(255, 248, 235, .97);
}

.vr-support-bar__copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vr-support-bar__copy strong {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.vr-support-bar__copy span {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vr-support-bar__stop {
  min-height: 27px !important;
  padding: 3px 9px !important;
  flex: 0 0 auto;
  border: 1px solid currentColor !important;
  border-radius: 7px !important;
  color: inherit !important;
  background: rgba(255, 255, 255, .78) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

/* Mobile typography only: preserve the established canvas and page geometry. */
@media (max-width: 900px) {
  body.vr-unified[data-page="creation"],
  body.vr-unified[data-page="timesheet"] {
    font-size: calc(28px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] .app-title,
  body[data-page="timesheet"] .app-title,
  body[data-page="creation"] h1,
  body[data-page="creation"] h2,
  body[data-page="creation"] h3,
  body[data-page="creation"] h4,
  body[data-page="creation"] h5,
  body[data-page="timesheet"] h1,
  body[data-page="timesheet"] h2,
  body[data-page="timesheet"] h3,
  body[data-page="timesheet"] h4,
  body[data-page="timesheet"] h5 {
    font-size: calc(30px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] .form-control,
  body[data-page="creation"] .form-select,
  body[data-page="creation"] input,
  body[data-page="creation"] select,
  body[data-page="timesheet"] .form-control,
  body[data-page="timesheet"] .form-select,
  body[data-page="timesheet"] input,
  body[data-page="timesheet"] select,
  body.vr-unified[data-vr-page="creation"] .form-control,
  body.vr-unified[data-vr-page="timesheet"] .form-control {
    font-size: calc(27px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] .form-label,
  body[data-page="creation"] .label,
  body[data-page="timesheet"] .form-label,
  body[data-page="timesheet"] label,
  body.vr-unified[data-vr-page="creation"] .form-label,
  body.vr-unified[data-vr-page="timesheet"] .form-label {
    font-size: calc(23px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] .btn,
  body[data-page="timesheet"] .btn,
  body.vr-unified[data-vr-page="creation"] .btn,
  body.vr-unified[data-vr-page="timesheet"] .btn {
    font-size: calc(22px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] .dropdown-menu,
  body[data-page="creation"] .dropdown-item,
  body[data-page="timesheet"] .dropdown-menu,
  body[data-page="timesheet"] .dropdown-item,
  body.vr-unified[data-vr-page="creation"] .dropdown-menu,
  body.vr-unified[data-vr-page="timesheet"] .dropdown-menu {
    font-size: calc(26px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] table,
  body[data-page="timesheet"] table,
  body.vr-unified[data-vr-page="creation"] table,
  body.vr-unified[data-vr-page="timesheet"] table {
    font-size: calc(24px * var(--table-font-mult, 1)) !important;
  }

  body[data-page="timesheet"] .machine-issue-copy h6,
  body[data-page="timesheet"] .machine-issue-status,
  body[data-page="timesheet"] .machine-issue-panel textarea,
  body.vr-unified[data-vr-page="timesheet"] .machine-issue-copy h6,
  body.vr-unified[data-vr-page="timesheet"] .machine-issue-status,
  body.vr-unified[data-vr-page="timesheet"] .machine-issue-panel textarea {
    font-size: calc(22px * var(--ui-mult, 1)) !important;
  }

  body[data-page="creation"] .bottom-dock {
    padding: 3px 4px calc(3px + env(safe-area-inset-bottom)) !important;
    gap: 0 !important;
    transform: none !important;
  }

  body[data-page="creation"] .bottom-dock a {
    gap: 1px !important;
    font-size: 8px !important;
  }

  body[data-page="creation"] .bottom-dock .label {
    max-width: 100%;
    overflow: hidden;
    font-size: 8px !important;
    line-height: 1 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="creation"] .bottom-dock .icon {
    font-size: 16px !important;
  }
}

/* Keep support-session identity visible without changing page layout. */
@media (max-width: 900px) {
  .vr-support-bar {
    top: var(--vr-shell-height);
    padding: 6px 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }
  body.vr-unified[data-vr-support] { --vr-support-height: 70px; }
  .vr-support-bar__copy { display: block; }
  .vr-support-bar__copy strong,
  .vr-support-bar__copy span { display: block; font-size: 9px; }
  .vr-support-bar__stop { width: 100%; }
}

/* Machine control: compact operator workspace without changing command behavior. */
body[data-page="timesheet"] > main.main-container,
body.vr-unified[data-vr-page="timesheet"] > main.main-container {
  width: calc(100% - 48px);
  max-width: 1600px;
  margin: 12px auto 64px !important;
  padding: 0 12px;
}

body[data-page="timesheet"] .control-panel-card,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card {
  margin-bottom: 10px !important;
  border-color: var(--vr-line);
  border-radius: var(--vr-radius);
  box-shadow: var(--vr-shadow-sm);
}

body[data-page="timesheet"] .control-panel-card > .card-body,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card > .card-body {
  padding: 10px 14px 12px;
}

body[data-page="timesheet"] .control-panel-card .card-title,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

body[data-page="timesheet"] .control-panel-card .filters-area,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .filters-area {
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--vr-line);
  border-radius: 9px;
  background: var(--vr-surface-soft);
  box-shadow: none;
}

@media (min-width: 901px) {
  body[data-page="timesheet"] .control-panel-card .top-controls-row,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .top-controls-row {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(420px, 1.25fr);
    gap: 10px;
    margin: 0;
  }

  body[data-page="timesheet"] .control-panel-card .top-controls-row > .filter-cell,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .top-controls-row > .filter-cell {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  body[data-page="timesheet"] .control-panel-card .command-send-row,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row {
    margin: 0;
  }

  body[data-page="timesheet"] .control-panel-card .command-send-row > .filter-cell,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row > .filter-cell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body[data-page="timesheet"] .control-panel-card .command-send-row-content,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row-content {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
  }

  body[data-page="timesheet"] .control-panel-card .command-send-row-content #strParameter1Input,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row-content #strParameter1Input {
    width: 100%;
    min-width: 0;
  }
}

body[data-page="timesheet"] .control-panel-card .form-label,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .form-label {
  margin-bottom: 3px;
  color: var(--vr-text-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .035em;
}

body[data-page="timesheet"] .control-panel-card .form-control,
body[data-page="timesheet"] .control-panel-card .btn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .form-control,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .btn {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
}

body[data-page="timesheet"] .control-panel-card .dropdown-btn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-btn {
  width: 32px;
}

body[data-page="timesheet"] .control-panel-card .dropdown-clear-btn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-clear-btn {
  right: 33px;
  width: 30px;
  font-size: 12px;
}

body[data-page="timesheet"] .control-panel-card #terminalIdInput,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card #terminalIdInput {
  padding-right: 66px;
}

body[data-page="timesheet"] .control-panel-card #productInput,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card #productInput {
  padding-right: 36px;
}

body[data-page="timesheet"] .control-panel-card .product-issue-filter .btn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .product-issue-filter .btn {
  margin-left: 6px;
}

body[data-page="timesheet"] .control-panel-card #issueProductBtn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card #issueProductBtn {
  border-color: var(--vr-success);
  background: var(--vr-success);
}

body[data-page="timesheet"] .control-panel-card #checkStatusCommandBtn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card #checkStatusCommandBtn {
  border-color: #7faabd;
  color: #183b4a;
  background: #e8f3f7;
}

body[data-page="timesheet"] .control-panel-card .dropdown-menu,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-menu {
  font-size: 12px;
}

body[data-page="timesheet"] .control-panel-card .dropdown-item,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-item {
  padding: 5px 8px;
  line-height: 1.25;
}

body[data-page="timesheet"] .control-panel-card .machine-issue-panel,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .machine-issue-panel {
  grid-template-columns: minmax(140px, .35fr) minmax(280px, 1.55fr) auto;
  gap: 3px 8px;
  margin-top: 0;
  padding: 6px 8px;
  border-color: var(--vr-line);
  background: #f7fbfa;
}

body[data-page="timesheet"] .control-panel-card .machine-issue-copy h6,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .machine-issue-copy h6 {
  font-size: 12px;
}

body[data-page="timesheet"] .control-panel-card .machine-issue-panel textarea,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .machine-issue-panel textarea {
  min-height: 32px;
  max-height: 64px;
  padding: 5px 8px;
  font-size: 12px;
}

body[data-page="timesheet"] .control-panel-card .machine-issue-actions .btn,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .machine-issue-actions .btn {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 11px;
}

body[data-page="timesheet"] .control-panel-card .machine-issue-status,
body.vr-unified[data-vr-page="timesheet"] .control-panel-card .machine-issue-status {
  min-height: 12px;
  font-size: 10px;
}

body[data-page="timesheet"] .bulk-actions-card,
body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card {
  margin-bottom: 10px !important;
  border-color: var(--vr-line);
  border-radius: 9px;
  box-shadow: var(--vr-shadow-sm);
}

body[data-page="timesheet"] .bulk-actions-card > .card-body,
body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card > .card-body {
  padding: 6px 10px;
}

body[data-page="timesheet"] .bulk-actions-card .action-btn-container,
body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card .action-btn-container {
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
}

body[data-page="timesheet"] .bulk-actions-card .action-btn,
body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card .action-btn {
  min-height: 30px;
  margin: 0;
  padding: 4px 9px;
  font-size: 11px;
}

@media (max-width: 900px) {
  body[data-page="timesheet"] > main.main-container,
  body.vr-unified[data-vr-page="timesheet"] > main.main-container {
    width: calc(100% - 20px);
    padding: 0;
  }
}

/* Inventory journal: align the legacy report layout with the unified workspace. */
body[data-page="inventory-log"] > main.container,
body.vr-unified[data-vr-page="inventory_log"] > main.container {
  width: calc(100% - 48px);
  max-width: 1600px;
  margin: 16px auto 64px !important;
  padding: 0 12px;
}

body[data-page="inventory-log"] #reportTabs,
body.vr-unified[data-vr-page="inventory_log"] #reportTabs {
  margin: 0 0 14px;
}

body[data-page="inventory-log"] .tab-pane > .filters-card.mt-3,
body.vr-unified[data-vr-page="inventory_log"] .tab-pane > .filters-card.mt-3 {
  margin-top: 0 !important;
}

body[data-page="inventory-log"] .filters-card > .card-header,
body.vr-unified[data-vr-page="inventory_log"] .filters-card > .card-header {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}

body[data-page="inventory-log"] .filters-card > .card-body,
body.vr-unified[data-vr-page="inventory_log"] .filters-card > .card-body {
  padding: 9px 14px 10px;
}

body[data-page="inventory-log"] .filters-card .controls,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="inventory-log"] .filters-card .row.mt-2,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .row.mt-2 {
  margin-top: 6px !important;
}

@media (min-width: 901px) {
  body[data-page="inventory-log"] .filters-card .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls > .row:first-child {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  body[data-page="inventory-log"] .filters-card .controls > .row:first-child > [class*="col-"],
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls > .row:first-child > [class*="col-"] {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body[data-page="inventory-log"] #inventory-log-pane .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] #inventory-log-pane .controls > .row:first-child {
    grid-template-columns: minmax(180px, 1.5fr) minmax(180px, 1.5fr) minmax(130px, .85fr) minmax(135px, .85fr) minmax(135px, .85fr) minmax(120px, .75fr);
  }

  body[data-page="inventory-log"] #service-report-pane .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] #service-report-pane .controls > .row:first-child {
    grid-template-columns: minmax(170px, 1.4fr) minmax(170px, 1.4fr) minmax(130px, .8fr) minmax(130px, .8fr) minmax(115px, .7fr) minmax(100px, .65fr);
  }

  body[data-page="inventory-log"] #incassation-journal-pane .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] #incassation-journal-pane .controls > .row:first-child {
    grid-template-columns: minmax(240px, 1.8fr) minmax(140px, .8fr) minmax(140px, .8fr) minmax(120px, .75fr);
  }

  body[data-page="inventory-log"] #stock-log-pane .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] #stock-log-pane .controls > .row:first-child {
    grid-template-columns: minmax(220px, 1.4fr) minmax(200px, 1.2fr) minmax(135px, .75fr) minmax(135px, .75fr) minmax(120px, .7fr);
  }

  body[data-page="inventory-log"] #profitability-pane .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] #profitability-pane .controls > .row:first-child {
    grid-template-columns: minmax(170px, 1.4fr) minmax(170px, 1.4fr) minmax(130px, .75fr) minmax(130px, .75fr) minmax(115px, .7fr) minmax(145px, 1fr);
  }

  body[data-page="inventory-log"] #expenses-report-pane .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] #expenses-report-pane .controls > .row:first-child {
    grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.6fr) minmax(135px, .75fr) minmax(135px, .75fr) minmax(120px, .7fr);
  }

  body[data-page="inventory-log"] .filters-card .controls > .row:nth-child(2),
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls > .row:nth-child(2) {
    display: flex;
    align-items: center !important;
    gap: 14px;
    margin-right: 0;
    margin-left: 0;
  }

  body[data-page="inventory-log"] .filters-card .controls > .row:nth-child(2) > .col-auto,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls > .row:nth-child(2) > .col-auto {
    width: auto !important;
    margin: 0;
    padding: 0;
  }

  body[data-page="inventory-log"] .filters-card .controls > .row:nth-child(2) > .col-auto:last-child,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls > .row:nth-child(2) > .col-auto:last-child {
    margin-left: auto;
  }

  body[data-page="inventory-log"] #inventory-log-pane #quantityLteFilter,
  body.vr-unified[data-vr-page="inventory_log"] #inventory-log-pane #quantityLteFilter {
    width: 110px;
  }

  body[data-page="inventory-log"] .filters-card .form-label,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .form-label {
    margin-bottom: 3px;
    font-size: 10px;
    line-height: 1.1;
  }

  body[data-page="inventory-log"] .filters-card .form-control,
  body[data-page="inventory-log"] .filters-card .form-select,
  body[data-page="inventory-log"] .filters-card .btn,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .form-control,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .form-select,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .btn {
    min-height: 32px;
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1.2;
  }

  body[data-page="inventory-log"] .filters-card .form-check,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .form-check {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding-left: 0;
  }

  body[data-page="inventory-log"] .filters-card .form-check-input,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
  }

  body[data-page="inventory-log"] .filters-card .form-check-label,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .form-check-label {
    font-size: 10px;
    line-height: 1.15;
  }

  body[data-page="inventory-log"] .filters-card .select2-container--bootstrap-5 .select2-selection--single,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .select2-container--bootstrap-5 .select2-selection--single {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }

  body[data-page="inventory-log"] .filters-card .select2-selection__rendered,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .select2-selection__rendered {
    padding: 0 9px !important;
    font-size: 12px !important;
    line-height: 30px !important;
  }

  body[data-page="inventory-log"] .filters-card .select2-selection__arrow,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .select2-selection__arrow {
    height: 30px !important;
  }
}

body[data-page="inventory-log"] .select2-dropdown,
body.vr-unified[data-vr-page="inventory_log"] .select2-dropdown {
  font-size: 12px !important;
}

body[data-page="inventory-log"] .select2-dropdown .select2-search,
body.vr-unified[data-vr-page="inventory_log"] .select2-dropdown .select2-search {
  padding: 5px !important;
}

body[data-page="inventory-log"] .select2-dropdown .select2-search__field,
body.vr-unified[data-vr-page="inventory_log"] .select2-dropdown .select2-search__field {
  height: 30px !important;
  min-height: 30px !important;
  padding: 4px 7px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body[data-page="inventory-log"] .select2-dropdown .select2-results__option,
body.vr-unified[data-vr-page="inventory_log"] .select2-dropdown .select2-results__option {
  margin: 0 !important;
  padding: 5px 7px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

body[data-page="inventory-log"] .filters-card .dropdown,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .dropdown {
  position: relative;
  width: 100%;
}

body[data-page="inventory-log"] .filters-card,
body[data-page="inventory-log"] .filters-card > .card-body,
body.vr-unified[data-vr-page="inventory_log"] .filters-card,
body.vr-unified[data-vr-page="inventory_log"] .filters-card > .card-body {
  overflow: visible !important;
}

body[data-page="inventory-log"] .filters-card .dropdown-menu,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .dropdown-menu {
  width: 100% !important;
  min-width: 100% !important;
  margin-top: 2px !important;
  padding: 3px !important;
  border-radius: 7px;
  overflow: hidden;
}

body[data-page="inventory-log"] .filters-card .dropdown-menu.show,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .dropdown-menu.show {
  z-index: 1080;
}

body[data-page="inventory-log"] .filters-card .dropdown-menu .dropdown-item,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .dropdown-menu .dropdown-item {
  min-height: 27px;
  padding: 5px 7px !important;
  border: 0;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.2 !important;
  white-space: nowrap;
}

body[data-page="inventory-log"] .filters-card .dropdown-menu li,
body.vr-unified[data-vr-page="inventory_log"] .filters-card .dropdown-menu li {
  margin: 0;
  padding: 0;
}

@media (min-width: 901px) and (max-width: 1250px) {
  body[data-page="inventory-log"] .filters-card .controls > .row:first-child,
  body.vr-unified[data-vr-page="inventory_log"] .filters-card .controls > .row:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="inventory-log"] > main.container,
  body.vr-unified[data-vr-page="inventory_log"] > main.container {
    width: calc(100% - 20px);
    margin-top: 10px !important;
    padding: 0;
  }
}

/* Readable mobile type for the desktop-style Machines workspace. */
@media (max-width: 900px) {
  body[data-page="dashboard"] .machines-hero h4,
  body[data-page="dashboard"] .machines-summary-card__value {
    font-size: calc(34px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-result-count strong {
    font-size: calc(28px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-terminal-id {
    font-size: calc(25px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-hero p,
  body[data-page="dashboard"] .machines-filter-field .form-control,
  body[data-page="dashboard"] .machines-filter-field .form-select,
  body[data-page="dashboard"] .machines-result-count {
    font-size: calc(24px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-hero__eyebrow,
  body[data-page="dashboard"] .machines-updated,
  body[data-page="dashboard"] .machines-filter-actions .form-check-label {
    font-size: calc(22px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-summary-card__label,
  body[data-page="dashboard"] .machines-filter-note,
  body[data-page="dashboard"] .machines-address {
    font-size: calc(21px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-summary-card__sub,
  body[data-page="dashboard"] .machines-filter-field label,
  body[data-page="dashboard"] .machines-legend-item,
  body[data-page="dashboard"] .machines-badge,
  body[data-page="dashboard"] .machines-connection,
  body[data-page="dashboard"] .machines-secondary,
  body[data-page="dashboard"] .machines-progress__label,
  body[data-page="dashboard"] .machines-progress__value,
  body[data-page="dashboard"] .machines-tid-status {
    font-size: calc(19px * var(--ui-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-table {
    font-size: calc(24px * var(--table-font-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-table thead th,
  body[data-page="dashboard"] .machines-table .machines-sort-btn {
    font-size: calc(19px * var(--table-font-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-table .machines-status-online strong,
  body[data-page="dashboard"] .machines-table .machines-online-pair b,
  body[data-page="dashboard"] .machines-table .machines-secondary,
  body[data-page="dashboard"] .machines-table .machines-connection,
  body[data-page="dashboard"] .machines-table .machines-badge,
  body[data-page="dashboard"] .machines-table .machines-progress__label,
  body[data-page="dashboard"] .machines-table .machines-progress__value,
  body[data-page="dashboard"] .machines-table .machines-tid-status {
    font-size: calc(18px * var(--table-font-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-table .machines-terminal-id,
  body[data-page="dashboard"] .machines-table .machines-address--table {
    font-size: calc(24px * var(--table-font-mult, 1)) !important;
  }

  body[data-page="dashboard"] .machines-table .machines-terminal-id {
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    color: #334155 !important;
  }
}

/* Machines stay a table on phones; cards hide the operational comparison columns. */
@media (max-width: 900px) {
  body[data-page="dashboard"] .machines-table-shell,
  body[data-page="dashboard"] .machines-table-scroll {
    display: block !important;
  }

  body[data-page="dashboard"] .machines-card-list {
    display: none !important;
  }
}

/* Creation overlays are outside the scaled canvas and therefore use physical mobile sizes. */
@media (max-width: 900px) {
  body[data-page="creation"] > .product-row-dropdown {
    max-height: 46vh !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  body[data-page="creation"] > .product-row-dropdown .dropdown-item {
    overflow: hidden;
    padding: 6px 8px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="creation"] #filtersOffcanvas {
    font-size: 14px !important;
  }

  body[data-page="creation"] #filtersOffcanvas .offcanvas-header {
    padding: 10px 12px !important;
  }

  body[data-page="creation"] #filtersOffcanvas .offcanvas-title {
    font-size: 16px !important;
  }

  body[data-page="creation"] #filtersOffcanvas .offcanvas-body {
    padding: 10px 12px !important;
  }

  body[data-page="creation"] #filtersOffcanvas .controls h3 {
    margin: 0 0 10px !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  body[data-page="creation"] #filtersOffcanvas .controls .form-grid {
    gap: 8px !important;
  }

  body[data-page="creation"] #filtersOffcanvas .controls .form-field {
    margin-bottom: 7px !important;
  }

  body[data-page="creation"] #filtersOffcanvas .controls .label,
  body[data-page="creation"] #filtersOffcanvas .controls label {
    margin-bottom: 3px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body[data-page="creation"] #filtersOffcanvas .controls input,
  body[data-page="creation"] #filtersOffcanvas .controls select,
  body[data-page="creation"] #filtersOffcanvas .controls .dropdown-input {
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  body[data-page="creation"] #filtersOffcanvas .controls .dropdown-menu,
  body[data-page="creation"] #filtersOffcanvas .controls .dropdown-item {
    font-size: 14px !important;
  }
}

/* Overview KPIs mirror the established production dashboard typography. */
@media (min-width: 901px) {
  body.vr-unified[data-page="dashboard"] #nav-overview .kpi-value {
    margin-bottom: 4px;
    color: var(--text-primary);
    font-family: "Inter", sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    font-variant-numeric: normal;
    letter-spacing: -.03em !important;
    line-height: 1.2;
    white-space: normal;
    word-spacing: normal !important;
  }
}

@media (max-width: 900px) {
  body.vr-unified[data-page="dashboard"] #nav-overview .kpi-value {
    color: var(--text-primary);
    font-family: "Inter", sans-serif !important;
    font-weight: 800 !important;
    font-variant-numeric: normal;
    font-feature-settings: normal;
    letter-spacing: -.03em !important;
    word-spacing: normal !important;
  }
}

/* Sales journal mobile summary: let the total line use the full viewport and wrap naturally. */
@media (max-width: 900px) {
  body.vr-unified[data-page="dashboard"] #nav-sales-list-db .table-header-row {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 6px 8px;
  }

  body.vr-unified[data-page="dashboard"] #nav-sales-list-db .table-header-row .header-left {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin-right: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body.vr-unified[data-page="dashboard"] #nav-sales-list-db .table-header-row .header-right {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* Preserve the scaled operator canvas only on compact tablets. Phones use the native layout below. */
@media (min-width: 681px) and (max-width: 900px) {
  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .card-title {
    font-size: calc(28px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .top-controls-row {
    display: grid !important;
    grid-template-columns: minmax(280px, .95fr) minmax(420px, 1.25fr) !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .top-controls-row > .filter-cell {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-basis: auto !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .product-issue-filter .input-group {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .command-send-row {
    margin: 0 !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .command-send-row > .filter-cell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .command-send-row-content {
    display: grid !important;
    grid-template-columns: minmax(300px, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .command-send-row-content #strParameter1Input {
    width: 100% !important;
    min-width: 0 !important;
    flex-basis: auto !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .form-label {
    font-size: calc(21px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .form-control,
  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .btn {
    font-size: calc(24px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .dropdown-menu,
  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .dropdown-item {
    font-size: calc(23px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .control-panel-card .machine-issue-panel {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 4px 8px !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .machine-issue-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-page="timesheet"] #desktop-scale-root .machine-issue-panel textarea {
    grid-column: 2;
    grid-row: 1;
    font-size: calc(21px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .machine-issue-actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .machine-issue-actions .btn {
    flex: 0 0 auto !important;
    font-size: calc(19px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .machine-issue-copy h6 {
    font-size: calc(19px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .machine-issue-status {
    grid-column: 1;
    grid-row: 2;
    font-size: calc(16px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .bulk-actions-card .action-btn-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .bulk-actions-card .action-btn {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    font-size: calc(20px * var(--ui-mult, 1)) !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .packet-footer {
    gap: 5px !important;
    margin-top: 10px !important;
    padding-top: 6px !important;
  }

  body[data-page="timesheet"] #desktop-scale-root .packet-time {
    font-size: calc(17px * var(--ui-mult, 1)) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }
}


/* Dashboard refresh is a first-class shell action on phones. */
.vr-dashboard-refresh{display:none;min-height:34px;padding:0 10px;align-items:center;justify-content:center;gap:6px;border:1px solid var(--vr-line);border-radius:9px;color:var(--vr-primary-strong);background:var(--vr-primary-soft);font-size:11px;font-weight:800;cursor:pointer}
.vr-dashboard-refresh svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
@media (max-width:680px){
  .vr-shell__row{grid-template-columns:minmax(0,1fr) auto auto}
  .vr-dashboard-refresh{display:inline-flex;grid-column:2;grid-row:1;white-space:nowrap}
  .vr-menu-toggle{grid-column:3;grid-row:1;min-height:34px;padding-inline:10px}
  .vr-primary-nav [data-nav-key="refresh"]{display:none}
  .vr-brand span{display:none}
}


/* Mobile shell: logout lives inside the menu. All work pages share one shell geometry. */
.vr-mobile-logout { display: none; }
@media (max-width: 680px) {
  .vr-mobile-logout {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    color: var(--vr-danger) !important;
    background: var(--vr-danger-soft);
    border: 1px solid #efd1ce;
  }
}

/* Mobile/tablet operator pages: one real header and a native machine-control layout. */
@media (max-width: 900px) {
  body.vr-unified[data-vr-page="creation"],
  body.vr-unified[data-vr-page="timesheet"] {
    --vr-shell-height: 40px;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell,
  body.vr-unified[data-vr-page="timesheet"] > .vr-shell {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-shell__row,
  body.vr-unified[data-vr-page="timesheet"] > .vr-shell .vr-shell__row {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 4px 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-brand,
  body.vr-unified[data-vr-page="timesheet"] > .vr-shell .vr-brand {
    min-width: 0;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-brand img,
  body.vr-unified[data-vr-page="timesheet"] > .vr-shell .vr-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-menu-toggle,
  body.vr-unified[data-vr-page="timesheet"] > .vr-shell .vr-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    height: 30px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 10px;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-menu-toggle b,
  body.vr-unified[data-vr-page="timesheet"] > .vr-shell .vr-menu-toggle b {
    font-size: 10px;
  }

  /* Creation loads Bootstrap and legacy mobile rules; pin shell controls to its real row. */
  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-shell__row {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-shell__brand-slot {
    display: flex !important;
    height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    align-self: center !important;
    line-height: 1 !important;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-brand,
  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-menu-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    align-self: center !important;
    transform: none !important;
  }

  body.vr-unified[data-vr-page="creation"] > .vr-shell .vr-primary-nav {
    top: calc(100% + 8px) !important;
  }

  body.vr-unified[data-vr-page="timesheet"] {
    overflow-x: hidden;
    font-size: 12px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] > #desktop-scale-root {
    width: 100% !important;
    min-height: 0 !important;
    transform: none !important;
    transform-origin: initial !important;
  }

  body.vr-unified[data-vr-page="timesheet"] > #desktop-scale-root > main.main-container {
    width: calc(100% - 10px) !important;
    max-width: none !important;
    margin: 4px auto 84px !important;
    padding: 0 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card,
  body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card {
    margin-bottom: 6px !important;
    border-radius: 9px;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card > .card-body {
    padding: 5px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .card-title {
    margin: 0 0 3px !important;
    font-size: 13px !important;
    line-height: 1.2;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .filters-area {
    display: grid !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 5px !important;
    border-radius: 7px;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .top-controls-row,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .top-controls-row > .filter-cell,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row > .filter-cell {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .form-label {
    margin: 0 0 2px !important;
    font-size: 10px !important;
    line-height: 1.2;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .form-control,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .btn {
    min-height: 32px !important;
    padding: 4px 7px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    border-radius: 7px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .input-group,
  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .products-dropdown-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .product-issue-filter .input-group {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 4px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .product-issue-filter .btn {
    margin: 0 !important;
    white-space: nowrap;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-btn {
    right: 1px;
    width: 32px;
    height: auto;
    min-height: 0;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-clear-btn {
    right: 32px;
    width: 28px;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card #terminalIdInput {
    padding-right: 62px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card #productInput {
    padding-right: 35px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row-content {
    display: grid !important;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr) !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row-content #strParameter1Input {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .command-send-row-content .btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    white-space: normal !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-menu {
    top: calc(100% + 3px);
    left: 0;
    right: auto;
    width: 100% !important;
    max-height: min(48vh, 340px) !important;
    padding: 3px !important;
    overflow-y: auto !important;
    border: 1px solid var(--vr-line-strong) !important;
    border-radius: 8px !important;
    color: var(--vr-text) !important;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(31, 41, 55, .2) !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    z-index: 5000 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-menu.show {
    display: block;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .dropdown-item {
    min-height: 30px;
    padding: 5px 7px !important;
    border-bottom: 1px solid #edf0f4;
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.vr-unified[data-vr-page="timesheet"] .control-panel-card .machine-issue-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 5px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .machine-issue-copy,
  body.vr-unified[data-vr-page="timesheet"] .machine-issue-panel textarea,
  body.vr-unified[data-vr-page="timesheet"] .machine-issue-actions,
  body.vr-unified[data-vr-page="timesheet"] .machine-issue-status {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .machine-issue-copy h6 {
    margin: 0 !important;
    font-size: 11px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .machine-issue-panel textarea {
    min-height: 30px !important;
    max-height: 84px !important;
    font-size: 11px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .machine-issue-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .machine-issue-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .machine-issue-status {
    min-height: 14px;
    font-size: 10px !important;
    line-height: 1.3;
  }

  body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card > .card-body {
    padding: 5px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card .action-btn-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100%;
    margin: 0 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card .action-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 4px 5px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .bulk-actions-card #syncStatesBtn {
    grid-column: 1 / -1;
  }

  body.vr-unified[data-vr-page="timesheet"] #terminalAutoSyncStatus {
    margin-top: 5px !important;
    font-size: 10px !important;
    line-height: 1.35;
  }

  body.vr-unified[data-vr-page="timesheet"] .status-row,
  body.vr-unified[data-vr-page="timesheet"] .command-history-block {
    font-size: 10px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .status-row #commandStatusDisplay.status-message-bar {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .command-history-list {
    margin: 2px 0 4px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .command-history-list li {
    display: grid !important;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    gap: 4px !important;
    min-height: 15px;
    padding: 1px 0 !important;
    align-items: center !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .command-history-list .cmd-param,
  body.vr-unified[data-vr-page="timesheet"] .command-history-list .cmd-state,
  body.vr-unified[data-vr-page="timesheet"] .command-history-list .cmd-time {
    min-width: 0;
    padding: 0 2px !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .command-history-list .cmd-time {
    justify-self: end;
    padding: 0 !important;
    text-align: right;
    overflow-wrap: anywhere;
  }

  body.vr-unified[data-vr-page="timesheet"] .packet-section,
  body.vr-unified[data-vr-page="timesheet"] #allMachinesReportContainer .machine-report-block {
    padding: 5px !important;
    overflow-x: auto;
  }

  body.vr-unified[data-vr-page="timesheet"] #productDataTable {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 5px !important;
    table-layout: fixed !important;
    font-size: 11px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] #productDataTable th,
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td {
    min-width: 0 !important;
    padding: 3px 2px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  body.vr-unified[data-vr-page="timesheet"] #productDataTable th {
    padding: 3px 1px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(1),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(1) { width: 27px !important; }
  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(2),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(2) { width: auto !important; min-width: 0 !important; }
  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(3),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(3) { width: 39px !important; }
  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(4),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(4) { width: 34px !important; }
  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(5),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(5) { width: 34px !important; }
  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(6),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(6) { width: 43px !important; }
  body.vr-unified[data-vr-page="timesheet"] #productDataTable th:nth-child(7),
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(7) { width: 49px !important; }

  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(n + 3) {
    text-align: center !important;
  }

  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(3) input[type="number"],
  body.vr-unified[data-vr-page="timesheet"] #productDataTable td:nth-child(4) input[type="number"] {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    height: 25px !important;
    min-height: 25px !important;
    padding: 1px 2px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .product-table-readonly {
    min-width: 620px;
    font-size: 12px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .other-params-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px !important;
    margin: 5px 0 3px !important;
    padding-top: 4px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .other-params-container label {
    display: flex !important;
    min-width: 0;
    gap: 3px !important;
    align-items: center !important;
    justify-content: flex-end;
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: nowrap;
  }

  body.vr-unified[data-vr-page="timesheet"] .other-params-container input[type="number"] {
    flex: 0 0 48px;
    width: 48px !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 1px 3px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: center;
  }

  body.vr-unified[data-vr-page="timesheet"] .packet-footer {
    gap: 4px !important;
    margin-top: 4px !important;
    padding-top: 4px !important;
  }

  body.vr-unified[data-vr-page="timesheet"] .packet-time {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.vr-unified[data-vr-page="timesheet"] #savePacketParamsBtn {
    width: auto !important;
    max-width: 220px !important;
    min-height: 30px !important;
    margin: 0 auto !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }
}
