:root {
  --primary-50: #f6edf8;
  --primary-100: #ecdaf1;
  --primary-200: #d8b5e2;
  --primary-300: #bd85cf;
  --primary-400: #9956ad;
  --primary-500: #6e2f80;
  --primary-600: #3d1a47;
  --primary-700: #32133b;
  --primary-800: #260f2d;
  --primary-900: #1d0a23;
  --bju-accent: #3d1a47;
  --bju-accent-dark: #2d1235;
  --bju-accent-soft: #f6edf8;
  --bju-border: #e7e8ef;
  --bju-muted: #64748b;
  --bju-soft-bg: #f5f6fa;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bju-soft-bg);
  color: var(--text-primary-light);
  letter-spacing: 0.01em;
}

body .sidebar.bjusys-sidebar {
  border-inline-end: 1px solid var(--border-color);
}

.bjusys-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary-light);
  text-decoration: none;
}

.bjusys-logo:hover {
  color: var(--primary-600);
}

.bjusys-logo__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.bjusys-logo__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.1;
}

.bjusys-logo__text strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bjusys-logo__text small {
  margin-top: 3px;
  color: var(--text-secondary-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar.active .bjusys-logo__text {
  display: none;
}

.sidebar.active:hover .bjusys-logo__text {
  display: flex;
}

.bjusys-navbar {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-color);
}

[data-theme='dark'] .bjusys-navbar {
  background: rgba(17, 17, 28, 0.86);
}

.bjusys-navbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.bjusys-navbar__title span {
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bjusys-navbar__title strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary-light);
}

.bjusys-theme-toggle,
.bjusys-user-menu {
  min-height: 40px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-primary-light);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.bjusys-theme-toggle {
  width: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bjusys-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
}

.bjusys-user-menu__avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  font-weight: 600;
}

.bjusys-user-menu strong,
.bjusys-user-menu small {
  display: block;
  line-height: 1.1;
}

.bjusys-user-menu strong {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.bjusys-user-menu small {
  margin-top: 3px;
  color: var(--text-secondary-light);
  font-size: 11px;
}

.bjusys-footer {
  border-top: 1px solid var(--border-color);
}

.bju-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.bju-card-header {
  padding: 18px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.bju-kpi,
.bju-mini-stat {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.bju-kpi {
  min-height: 116px;
  padding: 20px;
}

.bju-kpi::after,
.bju-mini-stat::after {
  position: absolute;
  right: -32px;
  top: -32px;
  width: 86px;
  height: 86px;
  content: '';
  border-radius: 50%;
  background: var(--primary-50);
}

.bju-kpi span,
.bju-mini-stat span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bju-kpi strong,
.bju-mini-stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--text-primary-light);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bju-kpi strong {
  font-size: clamp(30px, 3vw, 42px);
}

.bju-mini-stat {
  min-height: 92px;
  padding: 16px;
}

.bju-mini-stat strong {
  font-size: 28px;
}

.btn-bju {
  --bs-btn-bg: var(--primary-600);
  --bs-btn-border-color: var(--primary-600);
  --bs-btn-hover-bg: var(--primary-700);
  --bs-btn-hover-border-color: var(--primary-700);
  --bs-btn-active-bg: var(--primary-800);
  --bs-btn-active-border-color: var(--primary-800);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  border-radius: 10px;
  font-weight: 600;
  padding-inline: 18px;
}

.bju-badge {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid rgba(61, 26, 71, 0.12);
  border-radius: 999px;
}

.text-muted-small {
  color: var(--text-secondary-light);
  font-size: 13px;
}

.table {
  color: var(--text-primary-light);
}

.table thead th {
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody td {
  vertical-align: middle;
}

.table-responsive {
  scrollbar-width: thin;
}

.dt-container {
  padding: 0;
}

.dt-container .dt-layout-row {
  padding: 14px 18px;
}

.dt-container .dt-layout-table {
  padding: 0;
}

.dt-container .dt-search input,
.dt-container .dt-length select,
.form-control,
.form-select {
  border-color: var(--border-color);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--text-primary-light);
}

.form-control:focus,
.form-select:focus,
.dt-container .dt-search input:focus,
.dt-container .dt-length select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 0.2rem rgba(61, 26, 71, 0.12);
}

form table {
  width: 100%;
}

form th {
  width: 210px;
  padding: 10px 18px 10px 0;
  color: var(--text-primary-light);
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

form td {
  padding: 8px 0;
}

form input[type='text'],
form input[type='email'],
form input[type='password'],
form input[type='number'],
form input[type='file'],
form select,
form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-primary-light);
  padding: 10px 12px;
}

form textarea {
  min-height: 120px;
}

form input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
}

form input[type='submit'],
form button[type='submit'] {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--primary-600);
  border-radius: 10px;
  background: var(--primary-600);
  color: #fff;
  font-weight: 600;
}

form input[type='submit']:hover,
form button[type='submit']:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
}

.error,
form .error {
  display: block;
  margin-top: 6px;
  color: var(--danger-main);
  font-size: 13px;
  font-weight: 700;
}

.bjusys-auth {
  min-height: 100vh;
}

.bjusys-auth__left {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(135deg, var(--primary-700), #111827);
  color: #fff;
}

.bjusys-auth__left::after {
  position: absolute;
  inset: 0;
  content: '';
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(84%, 560px) auto;
  opacity: 0.94;
}

.bjusys-auth__content {
  position: relative;
  z-index: 1;
  max-width: 470px;
}

.bjusys-auth__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.bjusys-auth__card {
  width: min(100%, 460px);
}

.bju-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-600);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bju-login-brand::before {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  content: 'b';
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  color: #fff;
  font-size: 28px;
}

.pricing-dl dt {
  color: var(--text-secondary-light);
  font-size: 13px;
}

.pricing-dl dd {
  color: var(--text-primary-light);
  font-weight: 700;
}

.bju-card canvas {
  max-width: 100%;
}

.list-group-item-action strong {
  color: var(--text-primary-light);
}

.pricing-sample-table {
  font-size: 12px;
}

.pricing-sample-table th,
.pricing-sample-table td {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-sample-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--white);
}

pre {
  color: var(--text-primary-light);
}

@media (max-width: 991.98px) {
  form th,
  form td {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  form th {
    padding-bottom: 0;
  }

  .bju-card-header {
    padding: 16px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-main-body {
    padding: 14px;
  }

  .bju-kpi {
    min-height: 96px;
  }

  .bjusys-user-menu {
    padding-right: 6px;
  }
}

.fw-black {
  font-weight: 600;
}

.bju-order-add-col {
  width: 170px;
}

/* bju:sys visual polish v2 */
.dashboard-main-body {
  padding: 24px;
}

.bju-page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(61, 26, 71, 0.12), transparent 34%),
    linear-gradient(135deg, var(--white), rgba(246, 237, 248, 0.72));
  box-shadow: 0 16px 45px rgba(17, 24, 39, 0.055);
  overflow: hidden;
}

.bju-page-hero::after {
  position: absolute;
  right: -58px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  content: '';
  border-radius: 50%;
  background: rgba(61, 26, 71, 0.07);
}

.bju-page-hero > * {
  position: relative;
  z-index: 1;
}

.bju-page-hero__title {
  margin: 8px 0 8px;
  color: var(--text-primary-light);
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bju-page-hero__text {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary-light);
  font-size: 15px;
}

.bju-page-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.bju-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bju-eyebrow-muted {
  color: var(--text-secondary-light);
  letter-spacing: 0.065em;
}

.bju-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text-secondary-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bju-back-link:hover {
  color: var(--primary-600);
}

.bju-stat-card {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.045);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.bju-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 26, 71, 0.2);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
}

.bju-stat-card::after {
  position: absolute;
  right: -34px;
  top: -42px;
  width: 114px;
  height: 114px;
  content: '';
  border-radius: 999px;
  background: var(--primary-50);
}

.bju-stat-card__icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  font-size: 21px;
}

.bju-stat-card span,
.bju-mini-stat span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text-secondary-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.bju-stat-card strong,
.bju-mini-stat strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text-primary-light);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bju-stat-card strong {
  margin-top: 6px;
  font-size: clamp(27px, 2.35vw, 38px);
  line-height: 1;
}

.bju-stat-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--text-secondary-light);
  font-size: 12px;
}

.bju-mini-stat {
  min-height: 106px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--white), rgba(246, 247, 251, 0.72));
}

.bju-mini-stat strong {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
}

.bju-table-card,
.bju-form-card,
.bju-filter-card,
.bju-info-card,
.bju-help-card,
.bju-chart-card,
.bju-auth-card {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.048);
  overflow: hidden;
}

.bju-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
}

.bju-card-toolbar .card-title {
  color: var(--text-primary-light);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bju-toolbar-text {
  margin-top: 4px;
  color: var(--text-secondary-light);
  font-size: 13px;
}

.bju-table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.bju-table thead th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(246, 247, 251, 0.72);
  color: var(--text-secondary-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bju-table tbody td {
  padding: 15px 18px;
  border-color: var(--border-color);
}

.bju-table tbody tr:last-child td {
  border-bottom: 0;
}

.bju-table tbody tr:hover td {
  background: rgba(61, 26, 71, 0.025);
}

.bju-file-cell {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bju-table-icon,
.bju-list-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 18px;
}

.bju-entity,
.bju-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bju-list-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.bju-list-item:last-child {
  border-bottom: 0;
}

.bju-list-item-link {
  color: var(--text-primary-light);
  text-decoration: none;
  transition: background 0.16s ease;
}

.bju-list-item-link:hover {
  background: rgba(61, 26, 71, 0.035);
  color: var(--text-primary-light);
}

.bju-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  color: #fff;
  font-weight: 600;
}

.bju-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 14px;
}

.bju-empty {
  padding: 26px 18px;
  color: var(--text-secondary-light);
  text-align: center;
  font-size: 14px;
}

.bju-empty-sm {
  padding: 16px 10px;
}

.bju-form-card .card-body,
.bju-filter-card .card-body,
.bju-info-card .card-body,
.bju-help-card .card-body,
.bju-chart-card .card-body {
  padding: 22px;
}

.bju-form .form-label {
  margin-bottom: 7px;
  color: var(--text-primary-light);
  font-size: 13px;
  font-weight: 600;
}

.bju-form .form-control,
.bju-form .form-select,
.bju-filter-card .form-control,
.bju-filter-card .form-select,
.bju-auth-input .form-control {
  min-height: 46px;
  border-color: var(--border-color);
  border-radius: 12px;
  background-color: var(--white);
  color: var(--text-primary-light);
}

.bju-form textarea.form-control {
  min-height: 120px;
}

.bju-code-textarea,
.bju-code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
}

.bju-code-block {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--text-primary-light);
}

.bju-form .form-text {
  color: var(--text-secondary-light);
  font-size: 12px;
}

.bju-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(246, 247, 251, 0.55);
}

.bju-check .form-check-input {
  width: 17px;
  height: 17px;
  margin-left: -24px;
  margin-right: 0;
}

.bju-check .form-check-label {
  color: var(--text-primary-light);
  font-size: 13px;
  font-weight: 600;
}

.bju-multiselect {
  min-height: 128px;
}

.bju-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bju-role-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 11px 42px 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white);
  color: var(--text-primary-light);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.bju-role-option:hover {
  border-color: rgba(61, 26, 71, 0.36);
  background: rgba(61, 26, 71, 0.025);
  transform: translateY(-1px);
}

.bju-role-option:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 0.2rem rgba(61, 26, 71, 0.1);
}

.bju-role-option:has(.form-check-input:checked) {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: inset 0 0 0 1px rgba(61, 26, 71, 0.08);
}

.bju-role-option .form-check-input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.bju-role-option__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.bju-role-option__title {
  overflow: hidden;
  color: var(--text-primary-light);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bju-role-option__key {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-secondary-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bju-role-option__check {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-600);
  color: var(--white);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-50%) scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.bju-role-option:has(.form-check-input:checked) .bju-role-option__check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.bju-role-grid.is-invalid .bju-role-option {
  border-color: var(--danger-600, #dc3545);
}

@media (max-width: 575.98px) {
  .bju-role-grid {
    grid-template-columns: 1fr;
  }
}

.bju-divider {
  margin: 4px 0;
  border-color: var(--border-color);
}

.bju-help-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 26, 71, 0.11), transparent 32%),
    var(--white);
}

.bju-help-card__icon,
.bju-error-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 28px;
}

.bju-help-card h5,
.bju-info-card h5 {
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bju-help-card p {
  margin-bottom: 0;
  color: var(--text-secondary-light);
}

.bju-info-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.bju-info-card__heading i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 22px;
}

.bju-info-card__heading h5 {
  margin: 0;
}

.bju-detail-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  gap: 12px 16px;
}

.bju-detail-list dt {
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bju-detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text-primary-light);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bju-detail-box {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(246, 247, 251, 0.5);
}

.bju-detail-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bju-detail-box strong,
.bju-detail-box code {
  color: var(--text-primary-light);
  font-weight: 600;
}

.bju-inner-card,
.bju-note {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(246, 247, 251, 0.58);
}

.bju-inner-card {
  padding: 18px;
}

.bju-note {
  padding: 14px 16px;
  color: var(--text-secondary-light);
  font-size: 13px;
}

.bju-badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

.bju-auth-card {
  width: min(100%, 470px);
}

.bju-auth-input .input-group-text,
.bju-filter-card .input-group-text {
  border-color: var(--border-color);
  background: rgba(246, 247, 251, 0.7);
  color: var(--text-secondary-light);
}

.dt-container {
  padding: 0;
}

.dt-container .dt-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.dt-container .dt-layout-row:last-child {
  border-top: 1px solid var(--border-color);
  border-bottom: 0;
}

.dt-container .dt-layout-table {
  padding: 0;
}

.dt-container .dt-search,
.dt-container .dt-length {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary-light);
  font-size: 13px;
  font-weight: 700;
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  min-height: 38px;
  border-color: var(--border-color);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--text-primary-light);
}

.dt-container .dt-search input {
  min-width: 230px;
}

.dt-container .dt-info {
  color: var(--text-secondary-light);
  font-size: 13px;
}

.dt-container .dt-paging {
  display: flex;
  gap: 5px;
}

.dt-container .dt-paging .dt-paging-button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-primary-light);
  font-weight: 600;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button:hover {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: #fff;
}

.bju-add-item .form-control {
  max-width: 70px;
}

[data-theme='dark'] .bju-page-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(153, 86, 173, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(23, 23, 35, 0.98), rgba(28, 24, 34, 0.98));
}

[data-theme='dark'] .bju-table thead th,
[data-theme='dark'] .bju-check,
[data-theme='dark'] .bju-detail-box,
[data-theme='dark'] .bju-inner-card,
[data-theme='dark'] .bju-note,
[data-theme='dark'] .bju-code-block {
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 991.98px) {
  .bju-page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .bju-page-hero__actions {
    justify-content: flex-start;
  }

  .dt-container .dt-layout-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dt-container .dt-search input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .dashboard-main-body {
    padding: 14px;
  }

  .bju-card-toolbar,
  .bju-form-card .card-body,
  .bju-filter-card .card-body,
  .bju-info-card .card-body,
  .bju-help-card .card-body,
  .bju-chart-card .card-body {
    padding: 16px;
  }

  .bju-detail-list {
    grid-template-columns: 1fr;
  }
}


/* bju:sys visual polish v3 - closer to Wowdash admin density */
body.bjusys-app {
  --bju-page-gap: 24px;
  --bju-card-radius: 16px;
  background: #f5f6fa;
  font-size: 14px;
}

body.bjusys-app .dashboard-main-body {
  padding: var(--bju-page-gap);
}

body.bjusys-app .bju-page-hero {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.bjusys-app .bju-page-hero::after {
  display: none;
}

body.bjusys-app .bju-page-hero__title {
  margin: 6px 0 8px;
  font-size: clamp(30px, 2.2vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

body.bjusys-app .bju-page-hero__text {
  max-width: 860px;
  color: var(--text-secondary-light);
  font-size: 14px;
}

body.bjusys-app .bju-eyebrow {
  color: var(--text-primary-light);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

body.bjusys-app .bju-eyebrow-muted {
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.bjusys-app .card,
body.bjusys-app .bju-table-card,
body.bjusys-app .bju-form-card,
body.bjusys-app .bju-filter-card,
body.bjusys-app .bju-info-card,
body.bjusys-app .bju-help-card,
body.bjusys-app .bju-chart-card,
body.bjusys-app .bju-auth-card {
  border-radius: var(--bju-card-radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.035);
}

body.bjusys-app .bju-card-toolbar {
  min-height: 68px;
  padding: 16px 20px;
}

body.bjusys-app .bju-card-toolbar .card-title {
  font-size: 17px;
  letter-spacing: 0.01em;
}

body.bjusys-app .bju-toolbar-text {
  font-size: 12px;
  line-height: 1.45;
}

body.bjusys-app .bju-metric-card {
  border-radius: 16px;
  overflow: hidden;
}

body.bjusys-app .bju-metric-card h6 {
  color: var(--text-primary-light);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

body.bjusys-app .bju-metric-card__icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
}

body.bjusys-app .bju-metric-card p {
  line-height: 1.35;
}

body.bjusys-app .bju-table-card > .table-responsive,
body.bjusys-app .bju-table-card .dt-layout-table {
  overflow-x: auto;
  scrollbar-width: thin;
}

body.bjusys-app .bju-table {
  width: 100%;
  color: var(--text-primary-light);
  font-size: 13px;
}

body.bjusys-app .bju-table thead th {
  padding: 12px 16px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

body.bjusys-app .bju-table tbody td {
  padding: 12px 16px;
  color: var(--text-primary-light);
  line-height: 1.35;
  vertical-align: middle;
}

body.bjusys-app .bju-table-dense tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
}

body.bjusys-app .bju-table strong {
  font-weight: 600;
}

body.bjusys-app .bju-table .badge {
  font-size: 11px;
  font-weight: 700;
}

body.bjusys-app .bju-file-cell {
  max-width: 260px;
  min-width: 0;
}

body.bjusys-app .bju-address-cell {
  display: flex;
  max-width: 240px;
  flex-direction: column;
  gap: 2px;
}

body.bjusys-app .bju-address-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-entity {
  max-width: 320px;
}

body.bjusys-app .bju-avatar,
body.bjusys-app .bju-table-icon,
body.bjusys-app .bju-list-icon {
  box-shadow: none;
}

body.bjusys-app .bju-table-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 16px;
}

body.bjusys-app .bju-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.bjusys-app .bju-action-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.bjusys-app .bju-action-btn:hover {
  transform: translateY(-1px);
}

body.bjusys-app .bju-action-primary {
  background: var(--primary-light);
  color: var(--primary-600);
}

body.bjusys-app .bju-action-neutral {
  background: var(--success-focus);
  color: var(--success-main);
}

body.bjusys-app .bju-action-danger {
  background: var(--danger-focus);
  color: var(--danger-main);
}

body.bjusys-app .bju-table-card--datatable > .table-responsive {
  overflow-x: visible;
}

body.bjusys-app div.dt-container {
  padding: 0;
}

body.bjusys-app div.dt-container .dt-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 20px;
  border-color: var(--border-color);
}

body.bjusys-app div.dt-container .dt-layout-row:first-child {
  border-bottom: 1px solid var(--border-color);
}

body.bjusys-app div.dt-container .dt-layout-row:last-child {
  border-top: 1px solid var(--border-color);
}

body.bjusys-app div.dt-container .dt-search,
body.bjusys-app div.dt-container .dt-length {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary-light);
  font-size: 13px;
  font-weight: 700;
}

body.bjusys-app div.dt-container .dt-input,
body.bjusys-app div.dt-container .dt-search input,
body.bjusys-app div.dt-container .dt-length select {
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--text-primary-light);
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
}

body.bjusys-app div.dt-container .dt-search input {
  width: 240px;
  max-width: 100%;
}

body.bjusys-app div.dt-container .dt-length select {
  width: 78px;
}

body.bjusys-app div.dt-container .dt-input:focus,
body.bjusys-app div.dt-container .dt-search input:focus,
body.bjusys-app div.dt-container .dt-length select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(61, 26, 71, 0.08);
}

body.bjusys-app div.dt-container .dt-info {
  color: var(--text-secondary-light);
  font-size: 13px;
}

body.bjusys-app div.dt-container .dt-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: var(--white);
  color: var(--text-secondary-light);
  font-size: 13px;
  font-weight: 700;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button.current,
body.bjusys-app div.dt-container .dt-paging .dt-paging-button:hover {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: #fff;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button.disabled,
body.bjusys-app div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary-light);
  opacity: 0.55;
}

body.bjusys-app .bju-table-card--static .table-responsive {
  border-top: 0;
}

body.bjusys-app .bju-empty {
  padding: 30px 18px;
  color: var(--text-secondary-light);
  font-size: 13px;
}

body.bjusys-app .bju-empty::before {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  content: '\ef44';
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--text-secondary-light);
  font-family: remixicon;
  font-size: 22px;
  line-height: 42px;
}

body.bjusys-app .bju-form-card .card-body,
body.bjusys-app .bju-filter-card .card-body,
body.bjusys-app .bju-info-card .card-body,
body.bjusys-app .bju-help-card .card-body,
body.bjusys-app .bju-chart-card .card-body {
  padding: 20px;
}

body.bjusys-app .form-control,
body.bjusys-app .form-select,
body.bjusys-app .bju-form .form-control,
body.bjusys-app .bju-form .form-select,
body.bjusys-app .bju-filter-card .form-control,
body.bjusys-app .bju-filter-card .form-select {
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
}

body.bjusys-app .btn {
  font-weight: 700;
}

body.bjusys-app .btn-sm {
  --bs-btn-padding-y: 0.45rem;
  --bs-btn-padding-x: 0.75rem;
}

body.bjusys-app .bjusys-navbar {
  min-height: 64px;
}

body.bjusys-app .bjusys-logo__mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 13px;
  font-size: 13px;
}

body.bjusys-app .bjusys-logo__text strong {
  font-size: 20px;
}

body.bjusys-app .bjusys-logo__text small {
  font-size: 10px;
}

@media (min-width: 1600px) {
  body.bjusys-app .dashboard-main-body {
    padding: 28px 32px;
  }
}

@media (max-width: 1199.98px) {
  body.bjusys-app .bju-table-card--datatable > .table-responsive {
    overflow-x: auto;
  }
}

@media (max-width: 991.98px) {
  body.bjusys-app .bju-page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  body.bjusys-app div.dt-container .dt-layout-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.bjusys-app div.dt-container .dt-search input {
    width: 100%;
  }
}

/* bju:sys dashboard polish v4 - closer to Wowdash primitives */
body.bjusys-app .bjusys-logo {
  min-width: 0;
  gap: 0;
  padding-inline: 22px 16px;
}

body.bjusys-app .bjusys-logo-wordmark {
  color: var(--text-primary-light);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.bjusys-app .bjusys-logo-wordmark::first-letter {
  letter-spacing: 0.01em;
}

body.bjusys-app .sidebar.active .bjusys-logo-wordmark {
  display: none;
}

body.bjusys-app .sidebar.active:hover .bjusys-logo-wordmark {
  display: inline-block;
}

body.bjusys-app .bjusys-profile-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-primary-light);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  line-height: 1;
}

body.bjusys-app .dropdown > button.bjusys-profile-trigger.show {
  background: var(--primary-50);
  color: var(--primary-600);
}

body.bjusys-app .bjusys-profile-trigger__avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

body.bjusys-app .bjusys-profile-trigger__meta {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}

body.bjusys-app .bjusys-profile-trigger__meta strong {
  max-width: 150px;
  display: block;
  overflow: hidden;
  color: var(--text-primary-light);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bjusys-profile-trigger__meta small {
  display: block;
  color: var(--text-secondary-light);
  font-size: 11px;
  font-weight: 700;
}

body.bjusys-app .bjusys-profile-trigger__chevron {
  color: var(--text-secondary-light);
  font-size: 18px;
}

body.bjusys-app .bjusys-profile-dropdown {
  width: 312px;
}

body.bjusys-app .bjusys-profile-dropdown .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
}

body.bjusys-app .bju-page-hero {
  margin-top: 2px;
}

body.bjusys-app .bju-page-hero__title {
  margin: 5px 0 8px;
  font-size: clamp(32px, 3vw, 46px);
}

body.bjusys-app .bju-page-hero__actions .btn {
  min-height: 42px;
}

body.bjusys-app .bju-dashboard-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.035);
}

body.bjusys-app .bju-dashboard-card .card-header {
  min-height: 74px;
}

body.bjusys-app .bju-dashboard-table {
  min-width: 760px;
  color: var(--text-primary-light);
}

body.bjusys-app .bju-dashboard-table thead th {
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

body.bjusys-app .bju-dashboard-table tbody td {
  color: var(--text-primary-light);
  font-size: 13px;
  vertical-align: middle;
}

body.bjusys-app .bju-dashboard-table .bju-sync-type {
  max-width: 250px;
}

body.bjusys-app .bju-dashboard-table .bju-file-cell {
  max-width: 280px;
}

body.bjusys-app .bju-user-row {
  border-bottom: 1px solid var(--border-color);
}

body.bjusys-app .bju-user-row:last-child {
  border-bottom: 0;
}

body.bjusys-app .bju-metric-card h6 {
  font-size: 26px;
}

@media (max-width: 575.98px) {
  body.bjusys-app .bjusys-profile-trigger {
    padding: 4px;
  }

  body.bjusys-app .bjusys-profile-trigger__chevron {
    display: none;
  }
}

/* bju:sys v5 - Wowdash-consistent tables, cards and top user menu */
body.bjusys-app .navbar-header.bjusys-navbar {
  min-height: 66px;
  padding: 0 24px;
}

body.bjusys-app .bjusys-navbar .row {
  width: 100%;
}

body.bjusys-app .bjusys-navbar-actions {
  min-width: 0;
  flex-wrap: nowrap !important;
}

body.bjusys-app .bjusys-theme-toggle {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--text-primary-light);
  box-shadow: none;
}

body.bjusys-app .bjusys-profile-menu {
  line-height: 1;
}

body.bjusys-app button.bjusys-profile-avatar,
body.bjusys-app button.bjusys-profile-avatar:hover,
body.bjusys-app button.bjusys-profile-avatar:focus,
body.bjusys-app button.bjusys-profile-avatar.show {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1 !important;
  outline: none;
}

body.bjusys-app .bjusys-profile-avatar > span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(61, 26, 71, 0.18);
}


body.bjusys-app .bjusys-profile-avatar > img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(61, 26, 71, 0.14);
}

body.bjusys-app button.bjusys-profile-avatar.show > img,
body.bjusys-app button.bjusys-profile-avatar:hover > img {
  box-shadow: 0 12px 28px rgba(61, 26, 71, 0.2);
}

body.bjusys-app button.bjusys-profile-avatar.show > span,
body.bjusys-app button.bjusys-profile-avatar:hover > span {
  background: var(--primary-700);
}

body.bjusys-app .bjusys-profile-dropdown {
  width: 280px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

body.bjusys-app .bjusys-profile-dropdown .to-top-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.bjusys-app .bjusys-profile-dropdown .dropdown-item {
  border-radius: 10px;
  color: var(--text-primary-light) !important;
  font-weight: 700;
}

body.bjusys-app .bju-page-hero {
  margin-bottom: 20px !important;
}

body.bjusys-app .bju-page-hero__title {
  font-size: clamp(30px, 3.2vw, 52px);
}

body.bjusys-app .bju-theme-card {
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  background: var(--white) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
  overflow: hidden;
}

body.bjusys-app .bju-theme-card .card-header {
  min-height: 64px;
  background: var(--white) !important;
}

body.bjusys-app .bju-card-toolbar {
  gap: 12px;
}

body.bjusys-app .bju-card-toolbar .card-title {
  color: var(--text-primary-light);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.bjusys-app .bju-eyebrow-muted {
  margin-bottom: 2px;
  color: var(--text-secondary-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.bjusys-app .bju-table-responsive,
body.bjusys-app .bju-theme-card .table-responsive.scroll-sm {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

body.bjusys-app .bju-theme-table {
  --bs-table-bg: transparent;
  width: 100% !important;
  color: var(--text-primary-light);
  font-size: 13px;
}

body.bjusys-app .bju-theme-table thead th {
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--border-color) !important;
  background: transparent !important;
  color: var(--text-primary-light) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none !important;
  white-space: nowrap;
  vertical-align: middle;
}

body.bjusys-app .bju-theme-table tbody td {
  padding: 13px 20px !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary-light);
  font-size: 13px;
  line-height: 1.35;
  vertical-align: middle;
}

body.bjusys-app .bju-theme-table.table-py-8 tbody td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.bjusys-app .bju-theme-table tbody tr:last-child td {
  border-bottom: 0;
}

body.bjusys-app .bju-theme-table tbody tr:hover > * {
  background: rgba(61, 26, 71, 0.025) !important;
}

body.bjusys-app .bju-theme-table .bju-entity {
  gap: 12px;
}

body.bjusys-app .bju-theme-table .bju-avatar,
body.bjusys-app .bju-theme-table .bju-avatar-sm {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 17px;
}

body.bjusys-app .bju-theme-table .text-muted-small,
body.bjusys-app .text-muted-small {
  color: var(--text-secondary-light) !important;
  font-size: 12px;
  line-height: 1.35;
}

body.bjusys-app .bju-theme-table .bju-file-cell {
  max-width: 340px;
}

body.bjusys-app .bju-address-cell {
  max-width: 360px;
}

body.bjusys-app .bju-row-actions {
  gap: 6px;
}

body.bjusys-app .bju-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
}

body.bjusys-app .bju-action-primary {
  background: var(--primary-50);
  color: var(--primary-600);
}

body.bjusys-app .bju-action-neutral {
  background: var(--neutral-100);
  color: var(--text-secondary-light);
}

body.bjusys-app .bju-action-danger {
  background: var(--danger-focus);
  color: var(--danger-main);
}

body.bjusys-app .bju-badge,
body.bjusys-app .bju-theme-table .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

body.bjusys-app .bju-badge {
  background: var(--primary-50);
  color: var(--primary-600);
}

body.bjusys-app .bju-table-card--datatable > .bju-table-responsive,
body.bjusys-app .bju-table-card--datatable > .table-responsive {
  overflow-x: auto;
}

body.bjusys-app div.dt-container {
  padding: 0;
}

body.bjusys-app div.dt-container .dt-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 20px;
  background: var(--white);
}

body.bjusys-app div.dt-container .dt-layout-row:first-child {
  border-bottom: 1px solid var(--border-color);
}

body.bjusys-app div.dt-container .dt-layout-row:last-child {
  border-top: 1px solid var(--border-color);
}

body.bjusys-app div.dt-container .dt-layout-cell {
  display: flex;
  align-items: center;
}

body.bjusys-app div.dt-container .dt-search,
body.bjusys-app div.dt-container .dt-length {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-secondary-light);
  font-size: 13px;
  font-weight: 600;
}

body.bjusys-app div.dt-container .dt-search label,
body.bjusys-app div.dt-container .dt-length label {
  margin: 0;
}

body.bjusys-app div.dt-container .dt-input,
body.bjusys-app div.dt-container .dt-search input,
body.bjusys-app div.dt-container .dt-length select {
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  background-color: var(--white) !important;
  color: var(--text-primary-light) !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  outline: none;
}

body.bjusys-app div.dt-container .dt-search input {
  width: min(260px, 35vw);
}

body.bjusys-app div.dt-container .dt-length select {
  width: 78px;
}

body.bjusys-app div.dt-container .dt-info {
  color: var(--text-secondary-light);
  font-size: 13px;
}

body.bjusys-app div.dt-container .dt-paging {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button {
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 10px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  background: var(--white) !important;
  color: var(--text-secondary-light) !important;
  font-size: 12px;
  font-weight: 700;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button.current,
body.bjusys-app div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled) {
  border-color: var(--primary-600) !important;
  background: var(--primary-600) !important;
  color: #fff !important;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button.disabled,
body.bjusys-app div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  border-color: transparent !important;
  background: transparent !important;
  opacity: 0.55;
}

body.bjusys-app .bju-empty {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 28px 18px;
  color: var(--text-secondary-light);
  font-size: 13px;
}

body.bjusys-app .bju-form-card .card-body,
body.bjusys-app .bju-filter-card .card-body,
body.bjusys-app .bju-info-card .card-body,
body.bjusys-app .bju-help-card .card-body,
body.bjusys-app .bju-chart-card .card-body {
  padding: 20px 24px;
}

body.bjusys-app .bju-help-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 22px;
}

@media (max-width: 991.98px) {
  body.bjusys-app .navbar-header.bjusys-navbar {
    padding: 0 16px;
  }

  body.bjusys-app div.dt-container .dt-layout-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.bjusys-app div.dt-container .dt-layout-cell,
  body.bjusys-app div.dt-container .dt-search,
  body.bjusys-app div.dt-container .dt-length {
    width: 100%;
  }

  body.bjusys-app div.dt-container .dt-search input {
    width: 100%;
  }
}

/* v7 — Customers list UX polish */
body.bjusys-app .bju-page-hero--compact {
  margin-bottom: 18px;
}

body.bjusys-app .bju-page-hero--compact .bju-page-hero__title {
  margin: 6px 0 12px;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

body.bjusys-app .bju-page-hero--compact .bju-page-hero__text {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text-secondary-light);
}

body.bjusys-app .bju-table-card--premium {
  border: 1px solid rgba(231, 232, 239, 0.95);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.045);
  overflow: hidden;
}

body.bjusys-app .bju-table-card--premium .card-header {
  padding-top: 14px;
  padding-bottom: 14px;
}

body.bjusys-app .bju-table-card--premium .card-title {
  font-size: 18px;
  letter-spacing: 0.01em;
}

body.bjusys-app .bju-table-responsive--flush {
  border-radius: 0 0 16px 16px;
}

body.bjusys-app .bju-customers-table {
  min-width: 1120px;
  table-layout: fixed;
}

body.bjusys-app .bju-customers-table .bju-col-customer {
  width: 210px;
}

body.bjusys-app .bju-customers-table .bju-col-contact {
  width: 250px;
}

body.bjusys-app .bju-customers-table .bju-col-address {
  width: auto;
}

body.bjusys-app .bju-customers-table .bju-col-salesmen {
  width: 110px;
}

body.bjusys-app .bju-customers-table .bju-col-actions {
  width: 275px;
}

body.bjusys-app .bju-customers-table thead th {
  padding: 11px 16px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body.bjusys-app .bju-customers-table tbody td {
  padding: 9px 16px;
  color: #111827;
  font-size: 13px;
  vertical-align: middle;
}

body.bjusys-app .bju-customers-table tbody tr:hover td {
  background: #fafbff;
}

body.bjusys-app .bju-customer-cell,
body.bjusys-app .bju-contact-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

body.bjusys-app .bju-customer-name,
body.bjusys-app .bju-contact-email {
  display: block;
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

body.bjusys-app .bju-contact-email:hover {
  color: var(--primary-600);
}

body.bjusys-app .bju-customer-meta,
body.bjusys-app .bju-contact-phone {
  color: var(--text-secondary-light);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

body.bjusys-app .bju-address-cell--stacked {
  display: block;
  max-width: 460px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.32;
}

body.bjusys-app .bju-address-cell--stacked span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-customers-table .badge {
  min-height: 22px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
}

body.bjusys-app .bju-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

body.bjusys-app .bju-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.bjusys-app .bju-action-button i {
  font-size: 15px;
  line-height: 1;
}

body.bjusys-app .bju-action-button:hover {
  transform: translateY(-1px);
}

body.bjusys-app .bju-action-button-primary {
  background: var(--primary-50);
  border-color: rgba(61, 26, 71, 0.14);
  color: var(--primary-600);
}

body.bjusys-app .bju-action-button-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

body.bjusys-app .bju-action-button-neutral {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

body.bjusys-app .bju-action-button-neutral:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

body.bjusys-app .bju-action-button-danger {
  background: #fff5f5;
  border-color: #fecaca;
  color: #e11d48;
}

body.bjusys-app .bju-action-button-danger:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

body.bjusys-app .bju-table-card--premium div.dt-container .dt-layout-row {
  padding: 10px 16px;
}

body.bjusys-app .bju-table-card--premium div.dt-container .dt-search,
body.bjusys-app .bju-table-card--premium div.dt-container .dt-length,
body.bjusys-app .bju-table-card--premium div.dt-container .dt-info {
  font-size: 12px;
}

body.bjusys-app .bju-table-card--premium div.dt-container .dt-input,
body.bjusys-app .bju-table-card--premium div.dt-container .dt-search input,
body.bjusys-app .bju-table-card--premium div.dt-container .dt-length select {
  height: 34px;
  min-height: 34px;
  border-radius: 8px;
  font-size: 12px;
}

body.bjusys-app .bju-table-card--premium div.dt-container .dt-search input {
  width: min(220px, 28vw);
}

body.bjusys-app .bju-table-card--premium div.dt-container .dt-paging .dt-paging-button {
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
}

@media (max-width: 1399.98px) {
  body.bjusys-app .bju-customers-table {
    min-width: 1080px;
  }

  body.bjusys-app .bju-customers-table .bju-col-customer {
    width: 190px;
  }

  body.bjusys-app .bju-customers-table .bju-col-contact {
    width: 235px;
  }

  body.bjusys-app .bju-customers-table .bju-col-salesmen {
    width: 100px;
  }

  body.bjusys-app .bju-customers-table .bju-col-actions {
    width: 250px;
  }

  body.bjusys-app .bju-action-button {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 991.98px) {
  body.bjusys-app .bju-page-hero--compact .bju-page-hero__title {
    font-size: clamp(34px, 11vw, 46px);
  }

  body.bjusys-app .bju-action-button span {
    display: none;
  }

  body.bjusys-app .bju-action-button {
    width: 34px;
    min-width: 34px;
    padding-right: 0;
    padding-left: 0;
  }

  body.bjusys-app .bju-customers-table .bju-col-actions {
    width: 132px;
  }
}

/* bju:sys v8.1 — safe DataTables layout hotfix */
body.bjusys-app .bju-table-card,
body.bjusys-app .bju-table-responsive,
body.bjusys-app .bju-theme-card .table-responsive,
body.bjusys-app div.dt-container {
  width: 100%;
  max-width: 100%;
}

body.bjusys-app .bju-table-card--datatable > .bju-table-responsive,
body.bjusys-app .bju-table-card--datatable > .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
}

body.bjusys-app div.dt-container .dt-layout-row {
  min-width: 0;
}

body.bjusys-app div.dt-container .dt-layout-row.dt-layout-table {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

body.bjusys-app div.dt-container .dt-layout-row.dt-layout-table > .dt-layout-cell {
  display: block;
  width: 100%;
  min-width: 0;
}

body.bjusys-app div.dt-container table.dataTable,
body.bjusys-app .bju-theme-table,
body.bjusys-app .bju-table {
  width: 100%;
  margin: 0;
}

body.bjusys-app .bju-customers-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

body.bjusys-app .bju-customers-table .bju-col-customer {
  width: 190px;
}

body.bjusys-app .bju-customers-table .bju-col-contact {
  width: 230px;
}

body.bjusys-app .bju-customers-table .bju-col-address {
  width: auto;
}

body.bjusys-app .bju-customers-table .bju-col-salesmen {
  width: 105px;
}

body.bjusys-app .bju-customers-table .bju-col-actions {
  width: 260px;
}

body.bjusys-app .bju-customers-table tbody td {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.bjusys-app .bju-customer-cell,
body.bjusys-app .bju-contact-cell {
  min-width: 0;
}

body.bjusys-app .bju-customer-name,
body.bjusys-app .bju-contact-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-address-cell--stacked {
  max-width: 100%;
}

body.bjusys-app .bju-address-cell--stacked span {
  white-space: normal;
  overflow-wrap: anywhere;
}

body.bjusys-app .bju-action-group {
  white-space: nowrap;
}

body.bjusys-app div.dt-container .dt-paging {
  justify-content: flex-end;
  max-width: 100%;
  flex-wrap: nowrap;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button,
body.bjusys-app div.dt-container .dt-paging .ellipsis {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button {
  min-width: 32px;
  width: auto;
  padding-right: 10px;
  padding-left: 10px;
  line-height: 30px;
}

body.bjusys-app div.dt-container .dt-paging .dt-paging-button.previous,
body.bjusys-app div.dt-container .dt-paging .dt-paging-button.next {
  min-width: 34px;
  font-size: 16px;
}

@media (max-width: 1399.98px) {
  body.bjusys-app .bju-customers-table {
    min-width: 1080px;
  }

  body.bjusys-app .bju-customers-table .bju-col-customer {
    width: 180px;
  }

  body.bjusys-app .bju-customers-table .bju-col-contact {
    width: 220px;
  }

  body.bjusys-app .bju-customers-table .bju-col-salesmen {
    width: 100px;
  }

  body.bjusys-app .bju-customers-table .bju-col-actions {
    width: 245px;
  }
}

@media (max-width: 991.98px) {
  body.bjusys-app .bju-customers-table {
    min-width: 980px;
  }

  body.bjusys-app .bju-customers-table .bju-col-actions {
    width: 132px;
  }

  body.bjusys-app div.dt-container .dt-paging {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

/* bju:sys v8.3 — Customers DataTable semantic layout
   Customer table must not depend on an author colgroup. DataTables creates
   its own colgroup during init, so widths are defined on semantic header/cell
   classes and the JS removes DataTables' calculated inline widths after init. */
body.bjusys-app .bju-table-card--customers > .bju-table-responsive,
body.bjusys-app .bju-table-card--customers > .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
}

body.bjusys-app .bju-table-card--customers div.dt-container,
body.bjusys-app .bju-table-card--customers div.dt-container .dt-layout-table,
body.bjusys-app .bju-table-card--customers div.dt-container .dt-layout-table > .dt-layout-cell {
  width: 100%;
  max-width: 100%;
}

body.bjusys-app .bju-table-card--customers div.dt-container .dt-layout-row.dt-layout-table {
  display: flex;
  align-items: stretch;
  padding-right: 0;
  padding-left: 0;
}

body.bjusys-app .bju-table-card--customers div.dt-container .dt-layout-row.dt-layout-table > .dt-layout-cell {
  display: block;
  flex: 1 1 100%;
  min-width: 0;
}

body.bjusys-app .bju-table-card--customers table.dataTable.bju-customers-table,
body.bjusys-app .bju-table-card--customers .bju-customers-table {
  width: 100%;
  min-width: 1100px;
  margin: 0;
  table-layout: fixed;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__customer,
body.bjusys-app .bju-customers-table td.bju-customers-table__customer {
  width: 190px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__contact,
body.bjusys-app .bju-customers-table td.bju-customers-table__contact {
  width: 220px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__salesmen,
body.bjusys-app .bju-customers-table td.bju-customers-table__salesmen {
  width: 115px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__actions,
body.bjusys-app .bju-customers-table td.bju-customers-table__actions {
  width: 282px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__address,
body.bjusys-app .bju-customers-table td.bju-customers-table__address {
  width: auto;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__actions,
body.bjusys-app .bju-customers-table td.bju-customers-table__actions {
  text-align: right;
}

body.bjusys-app .bju-customers-table .bju-address-cell--stacked {
  max-width: 100%;
}

body.bjusys-app .bju-customers-table .bju-address-cell--stacked span {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.bjusys-app .bju-customers-table .bju-action-group {
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 1399.98px) {
  body.bjusys-app .bju-table-card--customers table.dataTable.bju-customers-table,
  body.bjusys-app .bju-table-card--customers .bju-customers-table {
    min-width: 1040px;
  }

  body.bjusys-app .bju-customers-table th.bju-customers-table__customer,
  body.bjusys-app .bju-customers-table td.bju-customers-table__customer {
    width: 170px;
  }

  body.bjusys-app .bju-customers-table th.bju-customers-table__contact,
  body.bjusys-app .bju-customers-table td.bju-customers-table__contact {
    width: 205px;
  }

  body.bjusys-app .bju-customers-table th.bju-customers-table__actions,
  body.bjusys-app .bju-customers-table td.bju-customers-table__actions {
    width: 265px;
  }
}

@media (max-width: 991.98px) {
  body.bjusys-app .bju-table-card--customers table.dataTable.bju-customers-table,
  body.bjusys-app .bju-table-card--customers .bju-customers-table {
    min-width: 940px;
  }

  body.bjusys-app .bju-customers-table th.bju-customers-table__actions,
  body.bjusys-app .bju-customers-table td.bju-customers-table__actions {
    width: 132px;
  }
}

/* bju:sys v8.4 — AJAX order builder */
body.bjusys-app .bju-order-builder .bju-form-card,
body.bjusys-app .bju-order-cart-card,
body.bjusys-app .bju-order-product-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}

body.bjusys-app .bju-order-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px auto;
  gap: 8px;
}

body.bjusys-app .bju-order-lookup > .form-control,
body.bjusys-app .bju-order-lookup > .btn {
  width: 100%;
  border-radius: 10px;
}

body.bjusys-app .bju-order-message {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

body.bjusys-app .bju-order-message.is-visible {
  display: block;
}

body.bjusys-app .bju-order-message.is-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

body.bjusys-app .bju-order-message.is-warning,
body.bjusys-app .bju-order-message.is-info {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

body.bjusys-app .bju-order-message.is-danger {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

body.bjusys-app .bju-order-cart-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--bs-primary, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  font-size: 12px;
  font-weight: 700;
}

body.bjusys-app .bju-order-cart-table-wrap {
  min-height: 358px;
}

body.bjusys-app .bju-order-cart-table {
  min-width: 850px;
}

body.bjusys-app .bju-order-cart-table th {
  padding: 12px 14px;
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.bjusys-app .bju-order-cart-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

body.bjusys-app .bju-order-cart-table tbody tr {
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

body.bjusys-app .bju-order-cart-table tbody tr.is-invalid {
  background: #fff7ed;
  box-shadow: inset 3px 0 0 #f97316;
}

body.bjusys-app .bju-order-product-cell strong {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-order-row-warning {
  display: block;
  min-height: 16px;
  margin-top: 3px;
  color: #c2410c;
  font-weight: 700;
}

body.bjusys-app .bju-order-input-cell {
  width: 86px;
}

body.bjusys-app .bju-order-price-cell {
  position: relative;
  width: 132px;
}

body.bjusys-app .bju-order-input-cell .form-control,
body.bjusys-app .bju-order-price-cell .form-control {
  min-width: 76px;
  border-radius: 9px;
}

body.bjusys-app .bju-order-price-cell .form-control {
  padding-right: 44px;
}

body.bjusys-app .bju-order-price-currency {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

body.bjusys-app .bju-order-empty {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
  text-align: center;
}

body.bjusys-app .bju-order-empty i {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 24px;
}

body.bjusys-app .bju-order-empty strong {
  color: #334155;
  font-size: 15px;
}

body.bjusys-app .bju-order-empty span {
  max-width: 320px;
  font-size: 13px;
}

body.bjusys-app .bju-order-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

body.bjusys-app .bju-order-summary > div {
  display: flex;
  min-width: 128px;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

body.bjusys-app .bju-order-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body.bjusys-app .bju-order-summary strong {
  color: #0f172a;
  font-size: 17px;
}

body.bjusys-app .bju-add-item {
  flex-wrap: nowrap;
}

body.bjusys-app .bju-add-item .js-order-qty {
  max-width: 74px;
}

body.bjusys-app .bju-add-item .btn {
  white-space: nowrap;
}

body.bjusys-app .bju-order-add-col {
  min-width: 156px;
}

body.bjusys-app .bju-order-products-table td:first-child strong {
  display: block;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .js-order-ean-add.is-loading,
body.bjusys-app .js-add-order-item.is-loading {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 1199.98px) {
  body.bjusys-app .bju-order-cart-table-wrap {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  body.bjusys-app .bju-order-lookup {
    grid-template-columns: 1fr;
  }

  body.bjusys-app .bju-order-summary {
    justify-content: space-between;
  }

  body.bjusys-app .bju-order-summary > div {
    align-items: flex-start;
  }
}

/* bju:sys v8.5 — bulk order entry */
body.bjusys-app .bju-form-errors {
  white-space: pre-line;
}

body.bjusys-app .bju-order-entry-tabs {
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

body.bjusys-app .bju-order-entry-tabs .nav-link {
  border-radius: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

body.bjusys-app .bju-order-entry-tabs .nav-link.active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.bjusys-app .bju-order-entry-content {
  margin-top: 14px;
}

body.bjusys-app .bju-order-bulk-textarea {
  min-height: 220px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

body.bjusys-app .bju-order-bulk-result {
  display: none;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

body.bjusys-app .bju-order-bulk-result.is-success,
body.bjusys-app .bju-order-bulk-result.is-warning {
  display: block;
}

body.bjusys-app .bju-order-bulk-result.is-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

body.bjusys-app .bju-order-bulk-result.is-warning {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

body.bjusys-app .bju-order-bulk-result ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

body.bjusys-app .bju-order-bulk-result li + li {
  margin-top: 3px;
}

body.bjusys-app .js-order-bulk-add.is-loading {
  opacity: 0.72;
  cursor: wait;
}

/* bju:sys v9 — UX pass: action cockpit, denser tables, stock/status signals */
body.bjusys-app .bju-page-hero--compact {
  padding: 22px 26px;
  min-height: auto;
}

body.bjusys-app .bju-page-hero--compact .bju-page-hero__title {
  margin: 4px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
}

body.bjusys-app .bju-page-hero--compact .bju-page-hero__text {
  max-width: 780px;
  font-size: 14px;
}

body.bjusys-app .bju-command-card .card-body {
  padding: 16px 20px;
}

body.bjusys-app .bju-command-bar {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.1fr) auto;
  gap: 14px;
  align-items: center;
}

body.bjusys-app .bju-command-search {
  position: relative;
}

body.bjusys-app .bju-command-search i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

body.bjusys-app .bju-command-search .form-control {
  padding-left: 42px;
  border-radius: 12px;
}

body.bjusys-app .bju-command-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

body.bjusys-app .bju-command-action,
body.bjusys-app .bju-filter-chip,
body.bjusys-app .bju-action-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

body.bjusys-app .bju-command-action {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 10px;
}

body.bjusys-app .bju-command-action:hover,
body.bjusys-app .bju-filter-chip:hover,
body.bjusys-app .bju-action-menu:hover {
  border-color: rgba(61, 26, 71, 0.24);
  color: var(--primary-600);
  background: var(--primary-50);
}

body.bjusys-app .bju-card-toolbar--stack {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.bjusys-app .bju-table-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.bjusys-app .bju-filter-chip {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

body.bjusys-app .bju-filter-chip.is-active {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: #fff;
}

body.bjusys-app .bju-action-group--compact {
  gap: 7px;
}

body.bjusys-app .bju-action-menu {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
}

body.bjusys-app .bju-row-menu {
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

body.bjusys-app .bju-row-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

body.bjusys-app .bju-table-card--orders .bju-theme-table tbody td,
body.bjusys-app .bju-table-card--products .bju-theme-table tbody td,
body.bjusys-app .bju-table-card--customers .bju-theme-table tbody td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.bjusys-app .bju-orders-table {
  min-width: 900px;
}

body.bjusys-app .bju-products-table {
  min-width: 860px;
}

body.bjusys-app .bju-order-number {
  color: var(--primary-600);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.bjusys-app .bju-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body.bjusys-app .bju-status-pill > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

body.bjusys-app .bju-status-pill--success { background: #f0fdf4; color: #15803d; }
body.bjusys-app .bju-status-pill--warning { background: #fffbeb; color: #b45309; }
body.bjusys-app .bju-status-pill--danger { background: #fef2f2; color: #b91c1c; }
body.bjusys-app .bju-status-pill--neutral { background: #f1f5f9; color: #475569; }
body.bjusys-app .bju-status-pill--pohoda { background: var(--primary-50); color: var(--primary-600); }

body.bjusys-app .bju-stock-badge {
  display: inline-flex;
  min-width: 44px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.bjusys-app .bju-stock-badge.is-ok { background: #f0fdf4; color: #15803d; }
body.bjusys-app .bju-stock-badge.is-low { background: #fffbeb; color: #b45309; }
body.bjusys-app .bju-stock-badge.is-out { background: #f1f5f9; color: #64748b; }

body.bjusys-app .bju-product-name {
  display: block;
  max-width: 540px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-filter-card--compact .card-body {
  padding: 16px 20px;
}

body.bjusys-app .bju-order-summary--sticky {
  position: sticky;
  bottom: 0;
  z-index: 6;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94) !important;
}

body.bjusys-app .bju-qty-stepper {
  display: inline-grid;
  grid-template-columns: 30px 58px 30px;
  align-items: center;
  gap: 4px;
}

body.bjusys-app .bju-qty-stepper .form-control {
  width: 58px;
  min-width: 58px !important;
  padding-right: 6px;
  padding-left: 6px;
}

body.bjusys-app .bju-qty-step {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 15px;
}

body.bjusys-app .bju-qty-step:hover {
  border-color: var(--primary-600);
  color: #fff;
  background: var(--primary-600);
}

body.bjusys-app .bju-metrics-row .bju-metric-card .card-body {
  padding: 16px !important;
}

@media (max-width: 1199.98px) {
  body.bjusys-app .bju-command-bar {
    grid-template-columns: 1fr;
  }

  body.bjusys-app .bju-command-actions {
    justify-content: flex-start;
  }
}

/* UX pass 2026-07-02: compact application chrome + more operational dashboard */
body.bjusys-app .bju-page-hero {
  min-height: auto;
  padding: 14px 18px;
  margin-bottom: 14px !important;
  border-radius: 14px;
  gap: 14px;
}

body.bjusys-app .bju-page-hero::after {
  opacity: 0.45;
}

body.bjusys-app .bju-page-hero .bju-eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

body.bjusys-app .bju-page-hero__title,
body.bjusys-app .bju-page-hero--compact .bju-page-hero__title {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  margin-bottom: 3px;
  letter-spacing: -0.035em;
}

body.bjusys-app .bju-page-hero__text,
body.bjusys-app .bju-page-hero--compact .bju-page-hero__text {
  max-width: 780px;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 0;
}

body.bjusys-app .bju-page-hero__actions .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}

body.bjusys-app .bju-dashboard-hero {
  margin-bottom: 12px !important;
}

body.bjusys-app .bju-command-card {
  margin-bottom: 14px !important;
}

body.bjusys-app .bju-command-card .card-body,
body.bjusys-app .bju-filter-card--compact .card-body {
  padding: 12px 16px;
}

body.bjusys-app .bju-command-bar {
  grid-template-columns: minmax(160px, 0.65fr) minmax(280px, 1.15fr) auto;
  gap: 10px;
}

body.bjusys-app .bju-command-bar h5 {
  font-size: 15px;
}

body.bjusys-app .bju-command-search .form-control {
  min-height: 38px;
  font-size: 13px;
}

body.bjusys-app .bju-command-action {
  min-height: 32px;
  padding: 7px 10px;
}

body.bjusys-app .bju-action-overview {
  margin-bottom: 16px !important;
}

body.bjusys-app .bju-action-tile {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas: "icon number" "icon label";
  align-items: center;
  gap: 0 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.bjusys-app .bju-action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 26, 71, 0.25);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
}

body.bjusys-app .bju-action-tile span {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #f8fafc;
  font-size: 20px;
}

body.bjusys-app .bju-action-tile strong {
  grid-area: number;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.bjusys-app .bju-action-tile em {
  grid-area: label;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

body.bjusys-app .bju-action-tile--primary span { background: var(--primary-50); color: var(--primary-600); }
body.bjusys-app .bju-action-tile--success span { background: #f0fdf4; color: #15803d; }
body.bjusys-app .bju-action-tile--warning span { background: #fffbeb; color: #b45309; }
body.bjusys-app .bju-action-tile--danger span { background: #fef2f2; color: #b91c1c; }
body.bjusys-app .bju-action-tile--neutral span { background: #f1f5f9; color: #475569; }

body.bjusys-app .bju-metrics-row {
  margin-bottom: 16px !important;
}

body.bjusys-app .bju-metrics-row .bju-metric-card .card-body {
  padding: 12px 14px !important;
}

body.bjusys-app .bju-metrics-row .bju-metric-card .w-50-px {
  width: 38px !important;
  height: 38px !important;
}

body.bjusys-app .bju-dashboard-card .card-header,
body.bjusys-app .bju-table-card .card-header {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.bjusys-app .bju-toolbar-text {
  max-width: 760px;
  font-size: 12px;
  line-height: 1.35;
}

body.bjusys-app .bju-sync-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

body.bjusys-app .bju-side-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 11px 18px;
  border-bottom: 1px solid #eef2f7;
}

body.bjusys-app .bju-side-row:last-child {
  border-bottom: 0;
}

body.bjusys-app .bju-side-row__title {
  color: var(--primary-600);
  font-weight: 850;
  text-decoration: none;
}

body.bjusys-app .bju-side-row span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-side-row strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  white-space: nowrap;
}

body.bjusys-app .bju-table.bju-table-dense tbody td {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

body.bjusys-app .dataTables_wrapper .dataTables_length,
body.bjusys-app .dataTables_wrapper .dataTables_filter {
  margin-bottom: 8px;
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-page-hero {
    padding: 12px 14px;
  }
  body.bjusys-app .bju-page-hero__text {
    display: none;
  }
}

.bju-analytics-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--white);
}

.bju-analytics-note strong {
  min-width: 48px;
  color: var(--primary-600);
  font-size: 28px;
  line-height: 1;
}

.bju-analytics-note span {
  color: var(--text-secondary-light);
  font-size: 14px;
  line-height: 1.45;
}

/* Sales order workflow */
body.bjusys-app .bju-stack-form .form-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .045em;
    margin-bottom: .4rem;
}

body.bjusys-app .bju-stack-form .form-control,
body.bjusys-app .bju-stack-form .form-select {
    border-color: #e2e8f0;
    border-radius: 12px;
    min-height: 44px;
}

body.bjusys-app .bju-timeline {
    display: grid;
    gap: 14px;
}

body.bjusys-app .bju-timeline-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    position: relative;
}

body.bjusys-app .bju-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 34px;
    bottom: -14px;
    width: 1px;
    background: #e2e8f0;
}

body.bjusys-app .bju-timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

body.bjusys-app .bju-timeline-content {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.035);
}

/* Customer CRM context */
body.bjusys-app .bju-table-card--customers table.dataTable.bju-customers-table,
body.bjusys-app .bju-table-card--customers .bju-customers-table,
body.bjusys-app .bju-customers-table {
  min-width: 1260px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__customer,
body.bjusys-app .bju-customers-table td.bju-customers-table__customer {
  width: 220px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__contact,
body.bjusys-app .bju-customers-table td.bju-customers-table__contact {
  width: 210px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__commerce,
body.bjusys-app .bju-customers-table td.bju-customers-table__commerce {
  width: 180px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__notes,
body.bjusys-app .bju-customers-table td.bju-customers-table__notes {
  width: 150px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__salesmen,
body.bjusys-app .bju-customers-table td.bju-customers-table__salesmen {
  width: 140px;
}

body.bjusys-app .bju-customers-table th.bju-customers-table__actions,
body.bjusys-app .bju-customers-table td.bju-customers-table__actions {
  width: 230px;
}

body.bjusys-app .bju-customer-address {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-customer-commerce {
  display: grid;
  gap: 3px;
}

body.bjusys-app .bju-commerce-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #0f172a;
  text-decoration: none;
}

body.bjusys-app .bju-commerce-link strong {
  color: var(--primary-600);
  font-size: 17px;
  line-height: 1;
}

body.bjusys-app .bju-commerce-link span,
body.bjusys-app .bju-commerce-meta {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

body.bjusys-app .bju-commerce-money {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

body.bjusys-app .bju-note-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

body.bjusys-app .bju-note-trigger:hover {
  border-color: #bfdbfe;
  background: #dbeafe;
}

body.bjusys-app .bju-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.bjusys-app .bju-note-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}

body.bjusys-app .bju-note-modal .modal-content,
body.bjusys-app .bju-note-modal {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .16);
}

body.bjusys-app .bju-note-block {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

body.bjusys-app .bju-note-block + .bju-note-block {
  margin-top: 12px;
}

body.bjusys-app .bju-note-block span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.bjusys-app .bju-note-block p {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

body.bjusys-app .bju-customer-filter-card .card-body {
  padding: 18px 22px;
}

/* Customer detail business card */
body.bjusys-app .bju-customer-name {
  text-decoration: none;
}

body.bjusys-app .bju-customer-name:hover {
  color: var(--primary-600);
}

body.bjusys-app .bju-avatar-xl {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 850;
}

body.bjusys-app .bju-customer-card-hero .card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

body.bjusys-app .bju-customer-card-hero__main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

body.bjusys-app .bju-customer-card-hero__main h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.bjusys-app .bju-customer-card-hero__meta,
body.bjusys-app .bju-customer-card-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.bjusys-app .bju-customer-card-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

body.bjusys-app .bju-customer-card-hero__meta i {
  color: var(--primary-600);
}

body.bjusys-app .bju-detail-list {
  display: grid;
  gap: 10px;
}

body.bjusys-app .bju-detail-list > div {
  display: grid;
  grid-template-columns: minmax(90px, .7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}

body.bjusys-app .bju-detail-list > div:last-child {
  border-bottom: 0;
}

body.bjusys-app .bju-detail-list span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.bjusys-app .bju-detail-list strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

body.bjusys-app .bju-detail-list--large > div {
  grid-template-columns: minmax(110px, .55fr) minmax(0, 1fr);
  padding: 10px 0;
}

body.bjusys-app .bju-salesmen-list {
  min-height: 32px;
}

body.bjusys-app .bju-customer-notes-stack {
  display: grid;
  gap: 12px;
}

body.bjusys-app .bju-customer-notes-stack .bju-note-block + .bju-note-block {
  margin-top: 0;
}

body.bjusys-app .bju-note-block em {
  color: #94a3b8;
  font-style: normal;
}

body.bjusys-app .bju-attention-list {
  display: grid;
  gap: 10px;
}

body.bjusys-app .bju-attention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

body.bjusys-app .bju-attention-item i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

body.bjusys-app .bju-attention-item strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
}

body.bjusys-app .bju-attention-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

body.bjusys-app .bju-attention-item.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

body.bjusys-app .bju-attention-item.is-warning i {
  color: #b45309;
  border-color: #fde68a;
}

body.bjusys-app .bju-attention-item.is-danger {
  border-color: #fecaca;
  background: #fef2f2;
}

body.bjusys-app .bju-attention-item.is-danger i {
  color: #dc2626;
  border-color: #fecaca;
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-customer-card-hero .card-body,
  body.bjusys-app .bju-customer-card-hero__main,
  body.bjusys-app .bju-customer-card-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.bjusys-app .bju-customer-card-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Customer business card readability hotfix - 2026-07-05 */
body.bjusys-app .bju-customer-card-hero__actions .bju-contact-quick-link {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  color: #334155;
  font-weight: 750;
  box-shadow: none;
}

body.bjusys-app .bju-customer-card-hero__actions .bju-contact-quick-link:hover,
body.bjusys-app .bju-customer-card-hero__actions .bju-contact-quick-link:focus {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.bjusys-app .bju-customer-card-hero__actions .bju-contact-quick-link i {
  color: var(--primary-600);
}

body.bjusys-app .bju-detail-list--stacked {
  grid-template-columns: 1fr;
}

body.bjusys-app .bju-detail-list--stacked > div {
  grid-template-columns: minmax(118px, 0.36fr) minmax(0, 1fr);
  column-gap: 16px;
}

body.bjusys-app .bju-detail-list--stacked.bju-detail-list--large > div {
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
}

body.bjusys-app .bju-detail-list--stacked strong,
body.bjusys-app .bju-detail-list--stacked strong a {
  color: #0f172a;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}

body.bjusys-app .bju-detail-list--stacked strong a {
  text-decoration: none;
}

body.bjusys-app .bju-detail-list--stacked strong a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  body.bjusys-app .bju-detail-list--stacked > div,
  body.bjusys-app .bju-detail-list--stacked.bju-detail-list--large > div {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
}

/* Customer CRM timeline - 2026-07-05 */
body.bjusys-app .bju-selected-customer-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

body.bjusys-app .bju-selected-customer-chip i {
  color: var(--primary-600);
}

body.bjusys-app .bju-selected-customer-chip strong {
  color: #0f172a;
}

body.bjusys-app .bju-selected-customer-chip a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 800;
}

body.bjusys-app .bju-selected-customer-chip a:hover {
  text-decoration: underline;
}

body.bjusys-app .bju-activity-form .form-label {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

body.bjusys-app .bju-crm-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

body.bjusys-app .bju-crm-timeline__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

body.bjusys-app .bju-crm-timeline__item.is-pinned {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 70%);
}

body.bjusys-app .bju-crm-timeline__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 18px;
}

body.bjusys-app .bju-crm-timeline__item--call .bju-crm-timeline__icon {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}

body.bjusys-app .bju-crm-timeline__item--email .bju-crm-timeline__icon {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ede9fe;
}

body.bjusys-app .bju-crm-timeline__item--discount .bju-crm-timeline__icon {
  background: #ecfdf5;
  color: #059669;
  border-color: #d1fae5;
}

body.bjusys-app .bju-crm-timeline__item--payment .bju-crm-timeline__icon,
body.bjusys-app .bju-crm-timeline__item--task .bju-crm-timeline__icon {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}

body.bjusys-app .bju-crm-timeline__body {
  min-width: 0;
}

body.bjusys-app .bju-crm-timeline__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

body.bjusys-app .bju-crm-timeline__head strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

body.bjusys-app .bju-crm-timeline__head span:not(.badge) {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

body.bjusys-app .bju-crm-timeline__body p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.bjusys-app .bju-crm-timeline__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

body.bjusys-app .bju-crm-timeline__meta i {
  color: var(--primary-600);
}

@media (max-width: 575.98px) {
  body.bjusys-app .bju-selected-customer-chip {
    border-radius: 14px;
  }

  body.bjusys-app .bju-crm-timeline__item {
    grid-template-columns: 1fr;
  }

  body.bjusys-app .bju-crm-timeline__head {
    flex-direction: column;
  }
}

/* Sales dashboard - 2026-07-05 */
body.bjusys-app .bju-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.bjusys-app .bju-section-title {
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.bjusys-app .bju-section-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

body.bjusys-app .bju-sales-kpi {
  min-height: 132px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .05);
  color: #0f172a;
  text-decoration: none;
}

body.bjusys-app .bju-sales-kpi i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--primary-600);
  font-size: 18px;
}

body.bjusys-app .bju-sales-kpi strong {
  display: block;
  color: #0f172a;
  font-size: 34px;
  line-height: .95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

body.bjusys-app .bju-sales-kpi span,
body.bjusys-app .bju-sales-kpi em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  font-style: normal;
}

body.bjusys-app .bju-sales-kpi em {
  color: #b45309;
}

body.bjusys-app .bju-sales-kpi-link:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
}

body.bjusys-app .bju-sales-kpi.is-warning {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 68%);
}

body.bjusys-app .bju-sales-kpi.is-danger {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 68%);
}

body.bjusys-app .bju-sales-kpi.is-danger i {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

body.bjusys-app .bju-sales-kpi.is-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, #7c3aed 100%);
  border-color: transparent;
}

body.bjusys-app .bju-sales-kpi.is-primary i,
body.bjusys-app .bju-sales-kpi.is-primary strong,
body.bjusys-app .bju-sales-kpi.is-primary span {
  color: #ffffff;
}

body.bjusys-app .bju-sales-kpi.is-primary i {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .22);
}

body.bjusys-app .bju-sales-panel .card-body {
  max-height: 520px;
  overflow: auto;
}

body.bjusys-app .bju-sales-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #eef2f7;
}

body.bjusys-app .bju-sales-list-item:last-child {
  border-bottom: 0;
}

body.bjusys-app .bju-sales-list-item.is-danger {
  background: linear-gradient(90deg, rgba(254, 242, 242, .85) 0%, #ffffff 72%);
}

body.bjusys-app .bju-sales-list-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--primary-600);
  border: 1px solid #e2e8f0;
}

body.bjusys-app .bju-sales-list-item.is-danger .bju-sales-list-icon {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

body.bjusys-app .bju-sales-list-title {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.25;
}

body.bjusys-app .bju-sales-list-title:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

body.bjusys-app .bju-sales-list-item p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.bjusys-app .bju-sales-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 9px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

body.bjusys-app .bju-sales-list-meta span,
body.bjusys-app .bju-sales-list-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.bjusys-app .bju-sales-list-meta a {
  color: var(--primary-600);
  text-decoration: none;
}

body.bjusys-app .bju-sales-list-meta a:hover {
  text-decoration: underline;
}

body.bjusys-app .btn-xs {
  --bs-btn-padding-y: .18rem;
  --bs-btn-padding-x: .45rem;
  --bs-btn-font-size: .72rem;
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  body.bjusys-app .bju-sales-list-item {
    padding: 14px 16px;
  }
}

/* bju:sys v9.6 — order concept workflow */
body.bjusys-app .bju-order-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.bjusys-app .bju-order-flow__step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

body.bjusys-app .bju-order-flow__step i {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 16px;
}

body.bjusys-app .bju-order-flow__step.is-active {
  color: #0f172a;
  border-color: rgba(61, 26, 71, 0.16);
  background: linear-gradient(135deg, #fff, var(--primary-50));
}

body.bjusys-app .bju-order-flow__step.is-active i {
  color: var(--primary-600);
  background: rgba(61, 26, 71, 0.1);
}

body.bjusys-app .bju-order-customer-context {
  padding: 14px;
  border: 1px solid rgba(61, 26, 71, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, rgba(61, 26, 71, 0.035));
}

body.bjusys-app .bju-order-customer-context__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.bjusys-app .bju-order-customer-context__head span,
body.bjusys-app .bju-order-customer-context__grid small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.bjusys-app .bju-order-customer-context__head strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
}

body.bjusys-app .bju-order-customer-context__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.bjusys-app .bju-order-customer-context__grid > div {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

body.bjusys-app .bju-order-customer-context__grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-order-customer-notes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.bjusys-app .bju-order-customer-notes p {
  margin: 0;
  padding: 10px 11px;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
}

body.bjusys-app .bju-order-action-hint {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body.bjusys-app .js-order-repeat-last.is-loading {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-order-flow {
    grid-template-columns: 1fr;
  }

  body.bjusys-app .bju-order-customer-context__grid {
    grid-template-columns: 1fr;
  }
}

/* bju:sys v9.7 — Pohoda live sync monitor */
body.bjusys-app .bju-sync-status {
  position: relative;
}

body.bjusys-app .bju-sync-status__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.bjusys-app .bju-sync-status__button:hover {
  border-color: rgba(61, 26, 71, 0.16);
  background: #fbfafc;
}

body.bjusys-app .bju-sync-status__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14);
}

body.bjusys-app .bju-sync-status__dot--success { background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14); }
body.bjusys-app .bju-sync-status__dot--info { background: #38bdf8; box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.16); }
body.bjusys-app .bju-sync-status__dot--warning { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16); }
body.bjusys-app .bju-sync-status__dot--danger { background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.16); }
body.bjusys-app .bju-sync-status__dot--secondary { background: #94a3b8; box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14); }

body.bjusys-app .bju-sync-status__main {
  display: grid;
  min-width: 0;
  text-align: left;
}

body.bjusys-app .bju-sync-status__main strong {
  max-width: 180px;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-sync-status__main small {
  max-width: 180px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-sync-status__dropdown {
  width: min(420px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 18px;
}

body.bjusys-app .bju-sync-status__dropdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

body.bjusys-app .bju-sync-status__dropdown-head h6 {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

body.bjusys-app .bju-sync-status__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

body.bjusys-app .bju-sync-status__stats div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8fafc;
}

body.bjusys-app .bju-sync-status__stats small {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.bjusys-app .bju-sync-status__stats strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-sync-status__channels {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

body.bjusys-app .bju-sync-status__channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #ffffff;
}

body.bjusys-app .bju-sync-status__channel strong,
body.bjusys-app .bju-sync-channel-card strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

body.bjusys-app .bju-sync-status__channel small,
body.bjusys-app .bju-sync-channel-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

body.bjusys-app .bju-sync-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.bjusys-app .bju-sync-channel-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

body.bjusys-app .bju-sync-channel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.bjusys-app .bju-sync-channel-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

body.bjusys-app .bju-sync-channel-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1399.98px) {
  body.bjusys-app .bju-sync-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-sync-status__main small {
    display: none;
  }

  body.bjusys-app .bju-sync-status__main strong {
    max-width: 120px;
  }

  body.bjusys-app .bju-sync-status__stats,
  body.bjusys-app .bju-sync-channel-grid {
    grid-template-columns: 1fr;
  }
}

/* bju:sys v9.10 — Order editor v2 validation cockpit */
body.bjusys-app .bju-order-validation-panel {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f8fafc);
}

body.bjusys-app .bju-order-validation-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.bjusys-app .bju-order-validation-panel__grid > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.bjusys-app .bju-order-validation-panel small {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.bjusys-app .bju-order-validation-panel strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

body.bjusys-app .bju-order-validation-panel p {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

body.bjusys-app .bju-order-issue-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

body.bjusys-app .bju-order-issue-list:empty {
  display: none;
}

body.bjusys-app .bju-order-cart-table tbody tr.is-warning {
  background: #fffbeb;
  box-shadow: inset 3px 0 0 #f59e0b;
}

body.bjusys-app .js-order-clear-cart {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  body.bjusys-app .bju-order-validation-panel__grid {
    grid-template-columns: 1fr;
  }
}

/* Sales order pricing editor: currency, target pricing and live profitability. */
body.bjusys-app .bju-order-currency-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

body.bjusys-app .bju-order-currency-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

body.bjusys-app .bju-order-currency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.bjusys-app .bju-order-currency-option span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.bjusys-app .bju-order-currency-option strong {
  font-size: 14px;
  font-weight: 900;
}

body.bjusys-app .bju-order-currency-option small {
  font-size: 10px;
  font-weight: 700;
}

body.bjusys-app .bju-order-currency-option input:checked + span {
  border-color: rgba(61, 26, 71, 0.2);
  color: #3d1a47;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
}

body.bjusys-app .bju-order-currency-option input:focus-visible + span {
  outline: 3px solid rgba(61, 26, 71, 0.16);
  outline-offset: 2px;
}

body.bjusys-app .bju-order-cart-table {
  min-width: 1320px;
}

body.bjusys-app .bju-order-money-cell {
  min-width: 112px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.bjusys-app .bju-order-margin-cell {
  min-width: 116px;
  font-variant-numeric: tabular-nums;
}

body.bjusys-app .bju-order-margin-cell strong,
body.bjusys-app .bju-order-margin-cell small {
  display: block;
  white-space: nowrap;
}

body.bjusys-app .bju-order-margin-cell small {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

body.bjusys-app .bju-order-rule-label {
  display: block;
  max-width: 280px;
  margin-top: 3px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-order-margin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.bjusys-app .bju-order-margin-badge.is-target {
  color: #166534;
  background: #dcfce7;
}

body.bjusys-app .bju-order-margin-badge.is-below-target {
  color: #92400e;
  background: #fef3c7;
}

body.bjusys-app .bju-order-margin-badge.is-negative {
  color: #991b1b;
  background: #fee2e2;
}

body.bjusys-app .bju-order-margin-badge.is-unknown {
  color: #475569;
  background: #e2e8f0;
}

body.bjusys-app .bju-order-cart-table tbody tr.is-loss {
  background: #fef2f2;
  box-shadow: inset 3px 0 0 #dc2626;
}

body.bjusys-app .bju-order-cart-table tbody tr.is-below-target {
  background: #fffbeb;
  box-shadow: inset 3px 0 0 #f59e0b;
}

body.bjusys-app .bju-order-cart-table tbody tr.is-profitable {
  box-shadow: inset 3px 0 0 #16a34a;
}

body.bjusys-app .bju-order-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  justify-content: stretch;
  gap: 12px;
}

body.bjusys-app .bju-order-summary > div {
  min-width: 0;
}

body.bjusys-app .bju-order-summary strong.is-negative {
  color: #b91c1c;
}

body.bjusys-app .bju-order-summary strong.is-positive {
  color: #15803d;
}

@media (max-width: 1399.98px) {
  body.bjusys-app .bju-order-summary {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

@media (max-width: 575.98px) {
  body.bjusys-app .bju-order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.bjusys-app .bju-order-summary > div {
    align-items: flex-start;
  }
}

/* bju:sys v8.8 — order product autocomplete and price diagnostics */
body.bjusys-app .bju-order-lookup-shell {
  position: relative;
}

body.bjusys-app .bju-order-suggestions {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

body.bjusys-app .bju-order-suggestion {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: #0f172a;
  background: transparent;
  text-align: left;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

body.bjusys-app .bju-order-suggestion:hover,
body.bjusys-app .bju-order-suggestion.is-active,
body.bjusys-app .bju-order-suggestion[aria-selected="true"] {
  background: #f6f0f8;
}

body.bjusys-app .bju-order-suggestion__main,
body.bjusys-app .bju-order-suggestion__prices {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

body.bjusys-app .bju-order-suggestion__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

body.bjusys-app .bju-order-suggestion__main small,
body.bjusys-app .bju-order-suggestion__prices small {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

body.bjusys-app .bju-order-suggestion__prices {
  align-items: flex-end;
  white-space: nowrap;
}

body.bjusys-app .bju-order-suggestion__prices > strong {
  font-size: 13px;
}

body.bjusys-app .bju-order-suggestion__status {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

body.bjusys-app .bju-order-suggestion__status.is-negative {
  color: #b91c1c;
  background: #fef2f2;
}

body.bjusys-app .bju-order-suggestion-empty {
  padding: 14px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

body.bjusys-app .bju-order-products-table tbody tr.is-price-loss {
  background: #fff7f7;
  box-shadow: inset 3px 0 0 #dc2626;
}

body.bjusys-app .bju-order-products-table tbody tr.is-price-loss .js-order-catalog-price,
body.bjusys-app .bju-order-products-table tbody tr.is-price-loss .js-order-catalog-buy {
  color: #b91c1c;
}

@media (max-width: 575.98px) {
  body.bjusys-app .bju-order-suggestion {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bjusys-app .bju-order-suggestion__prices {
    align-items: flex-start;
  }
}


/* Effective POHODA price source */
.bju-order-price-source-label {
  display: block;
  margin-top: .2rem;
  color: #5f6777;
  font-size: .72rem;
  line-height: 1.25;
}
.bju-autocomplete-price-source {
  color: #5f6777;
  font-size: .68rem;
  line-height: 1.2;
}
.bju-product-price-source {
  display: block;
  margin-top: .2rem;
  color: #7b8494;
  font-size: .68rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Customer price list */
body.bjusys-app .bju-recipient-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.bjusys-app .bju-recipient-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.bjusys-app .bju-recipient-option:hover {
  border-color: #8b5cf6;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

body.bjusys-app .bju-recipient-option:has(input:checked) {
  border-color: #5b2167;
  background: #fbf7fc;
  box-shadow: 0 0 0 3px rgba(91, 33, 103, .08);
}

body.bjusys-app .bju-recipient-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.bjusys-app .bju-recipient-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f3eef5;
  color: #5b2167;
  font-size: 21px;
}

body.bjusys-app .bju-recipient-option strong,
body.bjusys-app .bju-recipient-option small {
  display: block;
}

body.bjusys-app .bju-recipient-option strong {
  color: #111827;
  font-size: 14px;
}

body.bjusys-app .bju-recipient-option small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

body.bjusys-app .bju-price-list-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

body.bjusys-app .bju-price-list-summary > div {
  padding: 13px 14px;
  border-right: 1px solid #e5e7eb;
}

body.bjusys-app .bju-price-list-summary > div:last-child {
  border-right: 0;
}

body.bjusys-app .bju-price-list-summary span,
body.bjusys-app .bju-price-list-summary strong {
  display: block;
}

body.bjusys-app .bju-price-list-summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.bjusys-app .bju-price-list-summary strong {
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
}

body.bjusys-app .bju-excel-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #f4fbf6;
}

body.bjusys-app .bju-excel-preview__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #15803d;
  color: #fff;
  font-size: 24px;
}

body.bjusys-app .bju-excel-preview strong,
body.bjusys-app .bju-excel-preview span {
  display: block;
}

body.bjusys-app .bju-excel-preview strong {
  color: #111827;
  font-size: 14px;
}

body.bjusys-app .bju-excel-preview span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

body.bjusys-app .bju-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.bjusys-app .bju-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #334155;
  font-size: 13px;
}

body.bjusys-app .bju-check-list i {
  color: #15803d;
  font-size: 17px;
}

/* Focused products catalogue */
body.bjusys-app .bju-products-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.bjusys-app .bju-products-kpi {
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035);
}

body.bjusys-app .bju-products-kpi span,
body.bjusys-app .bju-products-kpi strong,
body.bjusys-app .bju-products-kpi small {
  display: block;
}

body.bjusys-app .bju-products-kpi span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.bjusys-app .bju-products-kpi strong {
  margin-top: 5px;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

body.bjusys-app .bju-products-kpi small {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
}

body.bjusys-app .bju-products-kpi.is-success {
  border-color: #bbf7d0;
  background: #f7fef9;
}

body.bjusys-app .bju-products-kpi.is-warning {
  border-color: #fde68a;
  background: #fffdf5;
}

body.bjusys-app .bju-products-kpi.is-danger {
  border-color: #fecaca;
  background: #fff8f8;
}

body.bjusys-app .bju-products-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(150px, 1fr)) auto;
  gap: 12px;
}

body.bjusys-app .bju-products-filter-actions {
  display: flex;
  gap: 8px;
}

body.bjusys-app .bju-products-table--focused td {
  vertical-align: middle;
}

body.bjusys-app .bju-products-table--focused tr.is-price-loss {
  background: #fff8f8;
  box-shadow: inset 3px 0 0 #dc2626;
}

body.bjusys-app .bju-price-source-badge {
  display: inline-flex;
  align-items: center;
  max-width: 230px;
  padding: 5px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

body.bjusys-app .bju-price-source-badge.is-fixed {
  border-color: #c4b5fd;
  color: #5b21b6;
  background: #f5f3ff;
}

body.bjusys-app .bju-price-source-badge.is-calculated {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

body.bjusys-app .bju-price-source-badge.is-pohoda {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

body.bjusys-app .bju-price-source-badge.is-missing {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

@media (max-width: 1399.98px) {
  body.bjusys-app .bju-products-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.bjusys-app .bju-products-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.bjusys-app .bju-products-filter-search {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-recipient-switch,
  body.bjusys-app .bju-price-list-summary,
  body.bjusys-app .bju-products-kpi-grid,
  body.bjusys-app .bju-products-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bjusys-app .bju-price-list-summary > div {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  body.bjusys-app .bju-price-list-summary > div:last-child {
    border-bottom: 0;
  }

  body.bjusys-app .bju-products-filter-search {
    grid-column: auto;
  }
}

/* bju:sys Integrator v1 */
body.bjusys-app .bju-status-pill--info {
  background: #eff6ff;
  color: #1d4ed8;
}

body.bjusys-app .bju-status-pill--primary {
  background: var(--primary-50);
  color: var(--primary-600);
}

body.bjusys-app .bju-integrator-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.bjusys-app .bju-integrator-kpi .card-body {
  display: flex;
  flex-direction: column;
  min-height: 128px;
  padding: 20px 22px;
}

body.bjusys-app .bju-integrator-kpi span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.bjusys-app .bju-integrator-kpi strong {
  margin: 7px 0 3px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

body.bjusys-app .bju-integrator-kpi small {
  margin-top: auto;
  color: #94a3b8;
  font-weight: 600;
}

body.bjusys-app .bju-shop-grid {
  display: grid;
  gap: 12px;
}

body.bjusys-app .bju-shop-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.bjusys-app .bju-shop-card:hover {
  border-color: var(--primary-200);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
  color: inherit;
  transform: translateY(-1px);
}

body.bjusys-app .bju-shop-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-size: 23px;
}

body.bjusys-app .bju-shop-card strong {
  color: #111827;
  font-size: 15px;
}

body.bjusys-app .bju-shop-card span,
body.bjusys-app .bju-shop-card small {
  display: block;
  color: #64748b;
}

body.bjusys-app .bju-shop-card small {
  margin-top: 3px;
  font-size: 11px;
}

body.bjusys-app .bju-shop-card__arrow {
  color: #94a3b8;
  font-size: 22px;
}

body.bjusys-app .bju-flow-list {
  display: grid;
  gap: 15px;
}

body.bjusys-app .bju-flow-list > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body.bjusys-app .bju-flow-list > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 800;
}

body.bjusys-app .bju-flow-list p {
  margin: 0;
}

body.bjusys-app .bju-flow-list strong,
body.bjusys-app .bju-flow-list small {
  display: block;
}

body.bjusys-app .bju-flow-list small {
  margin-top: 2px;
  color: #64748b;
}

body.bjusys-app .bju-integrator-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(200px, .9fr) minmax(280px, 1.5fr) auto;
  gap: 14px;
  align-items: end;
}

body.bjusys-app .bju-api-endpoint {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-bottom: 9px;
}

body.bjusys-app .bju-api-endpoint > span {
  padding: 4px 7px;
  border-radius: 7px;
  color: #166534;
  background: #dcfce7;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

body.bjusys-app .bju-api-endpoint code,
body.bjusys-app .bju-code-block {
  color: #334155;
  font-size: 11px;
}

body.bjusys-app .bju-code-block {
  display: block;
  overflow: auto;
  margin-top: 5px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  line-height: 1.7;
}

body.bjusys-app .bju-request-log {
  max-height: 520px;
  overflow: auto;
}

body.bjusys-app .bju-request-log__item {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f7;
}

body.bjusys-app .bju-request-log__status {
  align-self: start;
  padding: 4px 6px;
  border-radius: 7px;
  color: #166534;
  background: #dcfce7;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

body.bjusys-app .bju-request-log__status.is-error {
  color: #b91c1c;
  background: #fee2e2;
}

body.bjusys-app .bju-request-log__item strong,
body.bjusys-app .bju-request-log__item small {
  display: block;
}

body.bjusys-app .bju-request-log__item strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bjusys-app .bju-request-log__item small {
  color: #94a3b8;
  font-size: 10px;
}

body.bjusys-app .bju-request-log__item p {
  margin: 4px 0 0;
  color: #b91c1c;
  font-size: 11px;
}

body.bjusys-app .bju-order-state-stack {
  display: grid;
  gap: 12px;
}

body.bjusys-app .bju-order-state-stack > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #eef2f7;
}

body.bjusys-app .bju-order-state-stack > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.bjusys-app .bju-order-state-stack small {
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  body.bjusys-app .bju-integrator-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.bjusys-app .bju-integrator-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.bjusys-app .bju-integrator-kpis,
  body.bjusys-app .bju-integrator-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
