:root {
  --customer-sidebar-width: 270px;
  --customer-blue: #0969da;
  --customer-teal: #0f8c79;
  --customer-coral: #df6657;
  --customer-ink: #172033;
  --customer-glass: rgba(255, 255, 255, .78);
  --customer-glass-strong: rgba(255, 255, 255, .9);
  --customer-glass-border: rgba(255, 255, 255, .72);
  --customer-glass-shadow: 0 18px 50px rgba(42, 64, 86, .12);
}

.columns-dialog-panel {
  width: min(520px, calc(100vw - 24px));
}

.column-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.column-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--tblr-border-color, #dce1e7);
  border-radius: 6px;
  background: var(--tblr-bg-surface, #fff);
}

.column-order-actions,
.columns-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.columns-dialog-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.share-list-detail {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.share-record-status {
  width: max-content;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e7f6ec;
  color: #087443;
  font-size: 11px;
  font-weight: 700;
}

.share-record-status.is-expired,
.share-record-status.is-revoked {
  background: #eef1f4;
  color: #667382;
}

@media (max-width: 575px) {
  .columns-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .columns-dialog-actions .btn {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}

body {
  letter-spacing: 0;
}

.customer-query-body.theme-glass {
  min-height: 100dvh;
  color: var(--customer-ink);
  background-color: #edf2f5;
  background-image:
    linear-gradient(rgba(71, 91, 112, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 91, 112, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  isolation: isolate;
}

.query-backdrop {
  display: none;
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.customer-query-body.theme-glass .query-backdrop {
  display: block;
}

.query-shape {
  position: absolute;
  display: block;
}

.query-shape-blue {
  top: -88px;
  right: -78px;
  width: 430px;
  height: 320px;
  background: rgba(9, 105, 218, .14);
  clip-path: polygon(18% 0, 100% 0, 100% 72%, 68% 100%, 0 62%);
}

.query-shape-coral {
  top: 38%;
  left: -145px;
  width: 340px;
  height: 270px;
  background: rgba(223, 102, 87, .11);
  clip-path: polygon(0 18%, 72% 0, 100% 50%, 58% 100%, 0 82%);
}

.query-shape-teal {
  right: 12%;
  bottom: -125px;
  width: 390px;
  height: 285px;
  background: rgba(15, 140, 121, .12);
  clip-path: polygon(12% 18%, 86% 0, 100% 74%, 42% 100%, 0 68%);
}

.query-shape-outline {
  top: 18%;
  right: 7%;
  width: 190px;
  height: 145px;
  border: 1px solid rgba(15, 140, 121, .25);
  clip-path: polygon(22% 0, 100% 16%, 78% 100%, 0 72%);
  transform: rotate(-8deg);
}

.customer-query-body.theme-glass > #login,
.customer-query-body.theme-glass > #app {
  position: relative;
  z-index: 1;
}

.auth-screen {
  background: var(--tblr-bg-surface-secondary);
}

.customer-query-body.theme-glass .auth-screen {
  min-height: 100dvh;
  background: transparent;
}

.auth-screen .card {
  border-radius: var(--tblr-border-radius);
}

#loginStatus:empty {
  display: none;
}

.auth-purchase-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: .875rem 1rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  text-decoration: none;
}

.auth-purchase-link:hover,
.auth-purchase-link:focus-visible {
  color: var(--tblr-body-color);
  background: var(--tblr-primary-bg-subtle);
  border-color: var(--tblr-primary-border-subtle);
  text-decoration: none;
}

.auth-purchase-copy,
.auth-purchase-action {
  display: grid;
  gap: .15rem;
}

.auth-purchase-copy {
  min-width: 0;
}

.auth-purchase-title {
  font-size: .875rem;
  font-weight: 600;
}

.auth-purchase-note,
.auth-purchase-price {
  color: var(--tblr-secondary-color);
  font-size: .75rem;
}

.auth-purchase-action {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.auth-purchase-label {
  color: var(--tblr-primary);
  font-size: .875rem;
  font-weight: 600;
}

.customer-query-body.theme-glass .auth-purchase-link {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(103, 126, 148, .22);
}

.customer-query-body.theme-glass .auth-purchase-link:hover,
.customer-query-body.theme-glass .auth-purchase-link:focus-visible {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(9, 105, 218, .32);
}

.customer-query-body.theme-glass .auth-screen .container-tight {
  position: relative;
}

.customer-query-body.theme-glass .auth-screen .container-tight::before {
  position: absolute;
  z-index: -1;
  top: 26px;
  left: -24px;
  width: 76px;
  height: 62px;
  content: "";
  background: rgba(223, 102, 87, .2);
  clip-path: polygon(0 20%, 78% 0, 100% 68%, 30% 100%);
}

.customer-query-body.theme-glass .auth-screen .card {
  overflow: hidden;
  background: var(--customer-glass);
  border: 1px solid var(--customer-glass-border);
  box-shadow: var(--customer-glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.customer-query-body.theme-glass .auth-screen .card::before {
  display: block;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--customer-blue) 0 48%, var(--customer-teal) 48% 78%, var(--customer-coral) 78%);
}

.customer-navbar {
  min-height: 64px;
  background: var(--tblr-bg-surface);
  border-bottom: 1px solid var(--tblr-border-color);
}

.customer-query-body.theme-glass .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(248, 251, 252, .76);
  border-bottom-color: rgba(103, 126, 148, .2);
  box-shadow: 0 8px 30px rgba(43, 65, 86, .07);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.customer-navbar .container-xl {
  min-height: 64px;
}

.customer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  margin-right: .65rem;
  color: var(--tblr-primary);
  border: 1px solid currentColor;
  border-radius: var(--tblr-border-radius-sm);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.customer-query-body.theme-glass .customer-brand-mark {
  color: #fff;
  background: var(--customer-blue);
  border-color: transparent;
  box-shadow: inset -8px 0 0 rgba(15, 140, 121, .72);
  clip-path: polygon(0 0, 88% 0, 100% 28%, 100% 100%, 12% 100%, 0 72%);
}

.customer-brand-copy {
  font-size: 1rem;
  font-weight: 600;
}

.customer-account {
  max-width: 440px;
  overflow: hidden;
  font-size: .8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-menu {
  position: relative;
}

.customer-menu > summary {
  list-style: none;
}

.customer-menu > summary::-webkit-details-marker {
  display: none;
}

.customer-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + .5rem);
  right: 0;
  width: 240px;
  padding: .5rem;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  box-shadow: var(--tblr-box-shadow-dropdown);
}

.customer-query-body.theme-glass .customer-menu-panel {
  background: var(--customer-glass-strong);
  border-color: var(--customer-glass-border);
  box-shadow: var(--customer-glass-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.customer-menu-panel .dropdown-item {
  border-radius: var(--tblr-border-radius-sm);
}

.results-more-actions {
  position: relative;
}

.results-more-actions .customer-menu-panel {
  top: calc(100% + .35rem);
  right: 0;
  width: 190px;
}

#appInitError {
  margin-bottom: 1rem;
}

.customer-announcement,
.clear-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.query-card .card-header,
.results-header {
  justify-content: space-between;
  gap: 1rem;
}

.customer-query-body.theme-glass .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-glass .page-header {
  position: relative;
  overflow: hidden;
}

.customer-query-body.theme-glass .page-header .container-xl {
  position: relative;
}

.customer-query-body.theme-glass .page-header .container-xl::after {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: 21%;
  width: 118px;
  height: 74px;
  content: "";
  background: rgba(15, 140, 121, .13);
  clip-path: polygon(8% 24%, 100% 0, 76% 100%, 0 72%);
}

.customer-query-body.theme-glass .page-pretitle {
  color: var(--customer-teal);
}

.customer-query-body.theme-glass .page-title,
.customer-query-body.theme-glass .card-title {
  color: var(--customer-ink);
}

.customer-query-body.theme-glass .query-card {
  position: relative;
  overflow: hidden;
  background: var(--customer-glass);
  border-color: var(--customer-glass-border);
  box-shadow: var(--customer-glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.customer-query-body.theme-glass .query-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--customer-blue) 0 58%, var(--customer-teal) 58% 84%, var(--customer-coral) 84%);
}

.customer-query-body.theme-glass .query-card .card-header {
  background: rgba(255, 255, 255, .32);
  border-bottom-color: rgba(103, 126, 148, .16);
}

.customer-query-body.theme-glass .query-input {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(80, 107, 132, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.customer-query-body.theme-glass .query-input:focus {
  background: #fff;
  border-color: var(--customer-blue);
  box-shadow: 0 0 0 .25rem rgba(9, 105, 218, .12);
}

.customer-query-body.theme-glass .progress {
  overflow: hidden;
  background: rgba(58, 79, 100, .11);
}

.customer-query-body.theme-glass .progress-bar {
  background: linear-gradient(90deg, var(--customer-blue), var(--customer-teal));
}

.customer-query-body.theme-glass .customer-announcement,
.customer-query-body.theme-glass #expiryWarning,
.customer-query-body.theme-glass .clear-confirm {
  background: rgba(255, 255, 255, .72);
  border-color: var(--customer-glass-border);
  box-shadow: 0 12px 34px rgba(42, 64, 86, .09);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

.customer-query-body.theme-glass .customer-announcement {
  color: #175b67;
  border-left: 3px solid var(--customer-teal);
}

.customer-query-body.theme-glass #expiryWarning {
  color: #7a4d00;
  border-left: 3px solid #e6a400;
}

.customer-query-body.theme-glass .btn-primary {
  background: var(--customer-blue);
  border-color: var(--customer-blue);
  box-shadow: 0 5px 14px rgba(9, 105, 218, .18);
}

.customer-query-body.theme-glass .btn-primary:hover,
.customer-query-body.theme-glass .btn-primary:focus-visible {
  background: #075fca;
  border-color: #075fca;
}

.customer-query-body.theme-glass .btn:active {
  transform: translateY(1px);
}

.query-input {
  min-height: 132px;
  resize: vertical;
  font-family: var(--tblr-font-monospace);
  line-height: 1.65;
}

.batch-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.query-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 32px;
  margin-top: .625rem;
}

.query-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  margin-top: .75rem;
  padding: .65rem .8rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-left: 3px solid var(--tblr-primary);
  border-radius: var(--tblr-border-radius-sm);
}

.query-preview.is-invalid {
  border-left-color: var(--tblr-danger);
}

.query-preview-summary {
  font-weight: 600;
}

.query-preview-details {
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  text-align: right;
}

.query-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  align-items: end;
  gap: 1.5rem;
  margin-top: 1rem;
}

.query-progress-wrap {
  width: min(100%, 560px);
  justify-self: end;
}

.clear-confirm {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.batch-results-layout {
  display: block;
  min-height: 0;
}

.customer-query-body.theme-glass .results-card {
  overflow: hidden;
  background: #fff;
  border-color: rgba(83, 105, 126, .2);
  box-shadow: 0 18px 45px rgba(42, 64, 86, .1);
}

.customer-query-body.theme-glass .results-header {
  background: rgba(248, 251, 252, .96);
  border-bottom-color: rgba(83, 105, 126, .16);
}

.batch-sidebar {
  min-width: 0;
  background: var(--tblr-bg-surface-secondary);
  border-bottom: 1px solid var(--tblr-border-color);
}

.customer-query-body.theme-glass .batch-sidebar {
  background: #f3f7f8;
}

.batch-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.batch-list {
  display: flex;
  gap: .5rem;
  max-height: none;
  padding: .625rem;
  overflow-x: auto;
}

.batch-item {
  display: block;
  flex: 0 0 230px;
  width: 230px;
  padding: .75rem;
  color: var(--tblr-body-color);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--tblr-border-radius);
}

.batch-item + .batch-item {
  margin-top: 0;
}

.batch-item:hover {
  background: var(--tblr-bg-surface);
}

.batch-item.active {
  color: var(--tblr-primary);
  background: var(--tblr-bg-surface);
  border-color: var(--tblr-primary);
}

.customer-query-body.theme-glass .batch-item:hover {
  background: rgba(255, 255, 255, .82);
}

.customer-query-body.theme-glass .batch-item.active {
  color: var(--customer-blue);
  background: #fff;
  border-color: var(--customer-blue);
  box-shadow: inset 3px 0 0 var(--customer-teal), 0 5px 14px rgba(42, 64, 86, .07);
}

.batch-item-title,
.batch-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.batch-item-title {
  font-weight: 600;
}

.batch-item-meta {
  margin-top: .35rem;
  flex-wrap: wrap;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
}

.batch-item-note {
  display: block;
  margin-top: .4rem;
  overflow: hidden;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-main {
  min-width: 0;
}

.results-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  align-items: center;
  gap: .75rem;
  min-height: 53px;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.customer-query-body.theme-glass .results-toolbar {
  background: #fbfcfd;
  border-bottom-color: rgba(83, 105, 126, .15);
}

.customer-query-body.theme-glass .results-table-wrap,
.customer-query-body.theme-glass .results-table,
.customer-query-body.theme-glass .results-card .card-footer {
  background: #fff;
}

.customer-query-body.theme-glass .results-table thead th {
  background: #f7f9fb;
}

.image-export-control {
  position: relative;
  display: inline-flex;
}

.image-export-control > .btn {
  min-width: 104px;
}

.image-export-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + .5rem);
  right: 0;
  width: 250px;
  padding: .4rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  background: var(--tblr-bg-surface);
  box-shadow: 0 14px 34px rgba(24, 36, 51, .16);
}

.image-export-heading {
  padding: .45rem .65rem .35rem;
  color: var(--tblr-secondary-color);
  font-size: .72rem;
  font-weight: 600;
}

.image-export-option {
  display: grid;
  width: 100%;
  gap: .15rem;
  padding: .65rem;
  border: 0;
  border-radius: var(--tblr-border-radius-sm);
  color: var(--tblr-body-color);
  background: transparent;
  text-align: left;
}

.image-export-option:hover,
.image-export-option:focus-visible {
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  outline: none;
}

.image-export-option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tblr-primary);
}

.image-export-option strong,
.image-export-option small {
  display: block;
}

.image-export-option small {
  color: var(--tblr-secondary-color);
  font-size: .72rem;
}

.customer-query-body.theme-glass .image-export-menu {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(103, 126, 148, .24);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.customer-query-body.theme-primer .image-export-menu {
  background: #fff;
  border-color: #d0d7de;
  box-shadow: 0 8px 24px rgba(140, 149, 159, .2);
}

.customer-query-body.theme-carbon .image-export-menu,
.customer-query-body.theme-carbon .image-export-option {
  border-radius: 0;
}

.customer-query-body.theme-carbon .image-export-menu {
  background: #fff;
  border-color: #8d8d8d;
  box-shadow: none;
}

.customer-query-body.theme-midnight .image-export-menu {
  color: #e6edf3;
  background: #161b22;
  border-color: #30363d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .36);
}

.customer-query-body.theme-midnight .image-export-option {
  color: #e6edf3;
}

.customer-query-body.theme-midnight .image-export-option:hover,
.customer-query-body.theme-midnight .image-export-option:focus-visible {
  color: #fff;
  background: #21262d;
}

.customer-query-body.theme-primer {
  --tblr-primary: #0969da;
  --tblr-primary-rgb: 9, 105, 218;
  --tblr-body-bg: #f6f8fa;
  --tblr-body-color: #1f2328;
  --tblr-secondary-color: #656d76;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f6f8fa;
  --tblr-border-color: #d0d7de;
  --tblr-border-radius: 6px;
  --tblr-border-radius-sm: 4px;
  min-height: 100dvh;
  color: #1f2328;
  background-color: #f6f8fa;
  background-image: linear-gradient(rgba(208, 215, 222, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(208, 215, 222, .32) 1px, transparent 1px);
  background-size: 32px 32px;
}

.customer-query-body.theme-primer .auth-screen,
.customer-query-body.theme-primer .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-primer .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #d0d7de;
  box-shadow: 0 1px 0 rgba(31, 35, 40, .04);
}

.customer-query-body.theme-primer .customer-brand-mark {
  color: #fff;
  background: #24292f;
  border-color: #24292f;
  border-radius: 6px;
}

.customer-query-body.theme-primer .auth-screen .card,
.customer-query-body.theme-primer .query-card,
.customer-query-body.theme-primer .results-card,
.customer-query-body.theme-primer .customer-menu-panel {
  background: #fff;
  border-color: #d0d7de;
  box-shadow: 0 1px 0 rgba(31, 35, 40, .04);
}

.customer-query-body.theme-primer .auth-screen .card,
.customer-query-body.theme-primer .query-card {
  border-top: 3px solid #0969da;
}

.customer-query-body.theme-primer .auth-purchase-link,
.customer-query-body.theme-primer .batch-sidebar,
.customer-query-body.theme-primer .results-toolbar,
.customer-query-body.theme-primer .results-table thead th {
  background: #f6f8fa;
}

.customer-query-body.theme-primer .query-input:focus,
.customer-query-body.theme-primer .form-control:focus,
.customer-query-body.theme-primer .form-select:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, .15);
}

.customer-query-body.theme-primer .batch-item.active {
  color: #0969da;
  background: #ddf4ff;
  border-color: #54aeff;
  box-shadow: inset 3px 0 0 #0969da;
}

.customer-query-body.theme-primer .customer-announcement {
  color: #0550ae;
  background: #ddf4ff;
  border-color: #54aeff;
}

.customer-query-body.theme-primer .results-table tbody tr:hover {
  background: #f6f8fa;
}

.customer-query-body.theme-carbon {
  --tblr-primary: #0f62fe;
  --tblr-primary-rgb: 15, 98, 254;
  --tblr-body-bg: #f4f4f4;
  --tblr-body-color: #161616;
  --tblr-secondary-color: #525252;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #e8e8e8;
  --tblr-border-color: #c6c6c6;
  --tblr-border-radius: 0;
  --tblr-border-radius-sm: 0;
  min-height: 100dvh;
  color: #161616;
  background: #f4f4f4;
}

.customer-query-body.theme-carbon .auth-screen {
  background: linear-gradient(180deg, #161616 0 34%, #f4f4f4 34%);
}

.customer-query-body.theme-carbon .page-wrapper {
  background: #f4f4f4;
}

.customer-query-body.theme-carbon .customer-navbar {
  background: #161616;
  border: 0;
}

.customer-query-body.theme-carbon .customer-navbar,
.customer-query-body.theme-carbon .customer-navbar .text-secondary,
.customer-query-body.theme-carbon .customer-navbar .btn {
  color: #f4f4f4 !important;
}

.customer-query-body.theme-carbon .customer-brand-mark {
  color: #fff;
  background: #0f62fe;
  border-color: #0f62fe;
  border-radius: 0;
}

.customer-query-body.theme-carbon .auth-screen .card,
.customer-query-body.theme-carbon .query-card,
.customer-query-body.theme-carbon .results-card,
.customer-query-body.theme-carbon .customer-menu-panel {
  background: #fff;
  border-color: #c6c6c6;
  border-radius: 0;
  box-shadow: none;
}

.customer-query-body.theme-carbon .auth-screen .card,
.customer-query-body.theme-carbon .query-card {
  border-top: 4px solid #0f62fe;
}

.customer-query-body.theme-carbon .card-header,
.customer-query-body.theme-carbon .results-header,
.customer-query-body.theme-carbon .batch-sidebar,
.customer-query-body.theme-carbon .results-toolbar,
.customer-query-body.theme-carbon .results-table thead th {
  background: #e8e8e8;
  border-color: #c6c6c6;
}

.customer-query-body.theme-carbon .btn,
.customer-query-body.theme-carbon .form-control,
.customer-query-body.theme-carbon .form-select,
.customer-query-body.theme-carbon .auth-purchase-link,
.customer-query-body.theme-carbon .batch-item {
  border-radius: 0;
}

.customer-query-body.theme-carbon .form-control,
.customer-query-body.theme-carbon .form-select {
  background-color: #f4f4f4;
  border-color: transparent transparent #8d8d8d;
}

.customer-query-body.theme-carbon .form-control:focus,
.customer-query-body.theme-carbon .form-select:focus {
  background-color: #fff;
  border-color: #0f62fe;
  box-shadow: inset 0 0 0 1px #0f62fe;
}

.customer-query-body.theme-carbon .btn-primary {
  background: #0f62fe;
  border-color: #0f62fe;
}

.customer-query-body.theme-carbon .btn-primary:hover,
.customer-query-body.theme-carbon .btn-primary:focus-visible {
  background: #0353e9;
  border-color: #0353e9;
}

.customer-query-body.theme-carbon .batch-item.active {
  color: #161616;
  background: #fff;
  border-color: #0f62fe;
  box-shadow: inset 4px 0 0 #0f62fe;
}

.customer-query-body.theme-carbon .customer-announcement {
  color: #004144;
  background: #d9fbfb;
  border-color: #007d79;
  border-radius: 0;
}

.customer-query-body.theme-carbon .results-table tbody tr:hover {
  background: #e8e8e8;
}

.customer-query-body.theme-midnight {
  --tblr-primary: #2f81f7;
  --tblr-primary-rgb: 47, 129, 247;
  --tblr-body-bg: #0d1117;
  --tblr-body-color: #e6edf3;
  --tblr-secondary-color: #8b949e;
  --tblr-bg-surface: #161b22;
  --tblr-bg-surface-secondary: #0d1117;
  --tblr-border-color: #30363d;
  --tblr-border-radius: 6px;
  --tblr-border-radius-sm: 4px;
  min-height: 100dvh;
  color: #e6edf3;
  background-color: #0d1117;
  background-image: linear-gradient(rgba(48, 54, 61, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(48, 54, 61, .18) 1px, transparent 1px);
  background-size: 32px 32px;
}

.customer-query-body.theme-midnight .auth-screen,
.customer-query-body.theme-midnight .page-wrapper {
  color: #e6edf3;
  background: transparent;
}

.customer-query-body.theme-midnight .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #010409;
  border-bottom-color: #30363d;
}

.customer-query-body.theme-midnight .customer-brand-mark {
  color: #fff;
  background: #2f81f7;
  border-color: #2f81f7;
}

.customer-query-body.theme-midnight .navbar-brand,
.customer-query-body.theme-midnight .page-title,
.customer-query-body.theme-midnight .card-title,
.customer-query-body.theme-midnight .form-label,
.customer-query-body.theme-midnight .batch-item,
.customer-query-body.theme-midnight .table,
.customer-query-body.theme-midnight .customer-menu-panel .dropdown-item {
  color: #e6edf3;
}

.customer-query-body.theme-midnight .text-secondary,
.customer-query-body.theme-midnight .form-hint,
.customer-query-body.theme-midnight .batch-item-meta,
.customer-query-body.theme-midnight .auth-purchase-note,
.customer-query-body.theme-midnight .auth-purchase-price {
  color: #8b949e !important;
}

.customer-query-body.theme-midnight .auth-screen .card,
.customer-query-body.theme-midnight .query-card,
.customer-query-body.theme-midnight .results-card,
.customer-query-body.theme-midnight .customer-menu-panel {
  color: #e6edf3;
  background: #161b22;
  border-color: #30363d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.customer-query-body.theme-midnight .auth-screen .card,
.customer-query-body.theme-midnight .query-card {
  border-top: 3px solid #2f81f7;
}

.customer-query-body.theme-midnight .card-header,
.customer-query-body.theme-midnight .results-header,
.customer-query-body.theme-midnight .batch-sidebar,
.customer-query-body.theme-midnight .results-toolbar,
.customer-query-body.theme-midnight .results-table-wrap,
.customer-query-body.theme-midnight .results-card .card-footer,
.customer-query-body.theme-midnight .results-table {
  color: #e6edf3;
  background: #161b22;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .results-table thead th {
  color: #c9d1d9;
  background: #0d1117;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .results-table td {
  color: #e6edf3;
  border-color: #21262d;
}

.customer-query-body.theme-midnight .form-control,
.customer-query-body.theme-midnight .form-select,
.customer-query-body.theme-midnight .auth-purchase-link {
  color: #e6edf3;
  background-color: #0d1117;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .form-control::placeholder {
  color: #6e7681;
}

.customer-query-body.theme-midnight .form-control:focus,
.customer-query-body.theme-midnight .form-select:focus {
  color: #e6edf3;
  background-color: #0d1117;
  border-color: #2f81f7;
  box-shadow: 0 0 0 3px rgba(47, 129, 247, .18);
}

.customer-query-body.theme-midnight .btn-outline-secondary {
  color: #c9d1d9;
  border-color: #484f58;
}

.customer-query-body.theme-midnight .btn-outline-secondary:hover,
.customer-query-body.theme-midnight .btn-outline-secondary:focus-visible {
  color: #fff;
  background: #30363d;
  border-color: #8b949e;
}

.customer-query-body.theme-midnight .batch-item:hover {
  background: #21262d;
}

.customer-query-body.theme-midnight .batch-item.active {
  color: #fff;
  background: #1f6feb;
  border-color: #58a6ff;
}

.customer-query-body.theme-midnight .customer-announcement {
  color: #a5d6ff;
  background: #0c2d4a;
  border-color: #1f6feb;
}

.customer-query-body.theme-midnight #expiryWarning {
  color: #f2cc60;
  background: #322b15;
  border-color: #9e6a03;
}

.customer-query-body.theme-midnight .clear-confirm {
  color: #e6edf3;
  background: #21262d;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .progress {
  background: #30363d;
}

.customer-query-body.theme-midnight .results-table tbody tr:hover {
  background: #21262d;
}

.customer-query-body.theme-linecard {
  --tblr-primary: #206bc4;
  --tblr-primary-rgb: 32, 107, 196;
  --tblr-body-bg: #f3f6fa;
  --tblr-body-color: #172033;
  --tblr-secondary-color: #53657d;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f7f9fc;
  --tblr-border-color: #d8e0eb;
  --tblr-border-radius: 12px;
  --tblr-border-radius-sm: 8px;
  min-height: 100dvh;
  color: #172033;
  background:
    linear-gradient(180deg, #f8fafd 0, #f2f5f9 42%, #eef2f7 100%);
}

.customer-query-body.theme-linecard .auth-screen,
.customer-query-body.theme-linecard .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-linecard .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .97);
  border-bottom-color: #d8e0eb;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
}

.customer-query-body.theme-linecard .customer-brand-mark {
  color: #fff;
  background: #172033;
  border-color: #172033;
  border-radius: 10px;
  letter-spacing: .08em;
}

.customer-query-body.theme-linecard .auth-screen .card,
.customer-query-body.theme-linecard .query-card,
.customer-query-body.theme-linecard .results-card,
.customer-query-body.theme-linecard .customer-menu-panel {
  background: #fff;
  border-color: #d8e0eb;
  box-shadow: 0 16px 44px rgba(29, 39, 59, .08);
}

.customer-query-body.theme-linecard .auth-screen .card,
.customer-query-body.theme-linecard .query-card {
  border-top: 4px solid #206bc4;
}

.customer-query-body.theme-linecard .page-pretitle {
  color: #206bc4;
  letter-spacing: .12em;
}

.customer-query-body.theme-linecard .results-header,
.customer-query-body.theme-linecard .results-toolbar,
.customer-query-body.theme-linecard .batch-sidebar,
.customer-query-body.theme-linecard .results-table thead th {
  background: #f7f9fc;
  border-color: #d8e0eb;
}

.customer-query-body.theme-linecard .results-table {
  min-width: 1420px;
}

.customer-query-body.theme-linecard .results-table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #53657d;
  font-size: .78rem;
  font-weight: 800;
}

.customer-query-body.theme-linecard .results-table td {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  border-color: #e3e9f2;
  vertical-align: top;
}

.customer-query-body.theme-linecard .results-table td.sn {
  color: #131c2f;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.customer-query-body.theme-linecard .results-table tbody tr:nth-child(odd):not(.comparison-row) {
  background: #fbfdff;
}

.customer-query-body.theme-linecard .results-table tbody tr:hover:not(.comparison-row) {
  background: #eef6ff;
}

.customer-query-body.theme-linecard .badge {
  min-height: 1.75rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(23, 32, 51, .08);
}

.customer-query-body.theme-linecard .query-source,
.customer-query-body.theme-linecard .batch-item-meta,
.customer-query-body.theme-linecard .batch-item-note {
  color: #53657d;
}

.customer-query-body.theme-linecard .batch-item.active {
  color: #185aa6;
  background: #edf5ff;
  border-color: #bdd7f6;
  box-shadow: inset 4px 0 0 #206bc4;
}

.customer-query-body.theme-linecard .comparison-toggle {
  border-color: #d8e0eb;
  background: #fff;
}

.customer-query-body.theme-batchcard {
  --tblr-primary: #185aa6;
  --tblr-primary-rgb: 24, 90, 166;
  --tblr-body-bg: #eef4fb;
  --tblr-body-color: #172033;
  --tblr-secondary-color: #53657d;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f3f7fc;
  --tblr-border-color: #d3deeb;
  --tblr-border-radius: 14px;
  --tblr-border-radius-sm: 10px;
  min-height: 100dvh;
  color: #172033;
  background:
    radial-gradient(circle at 8% 8%, rgba(32, 107, 196, .12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0, #eef4fb 100%);
}

.customer-query-body.theme-batchcard .auth-screen,
.customer-query-body.theme-batchcard .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-batchcard .customer-navbar {
  background: #fff;
  border-bottom-color: #d3deeb;
  box-shadow: 0 12px 30px rgba(24, 46, 75, .08);
}

.customer-query-body.theme-batchcard .customer-brand-mark {
  color: #fff;
  background: #185aa6;
  border-color: #185aa6;
  border-radius: 12px;
}

.customer-query-body.theme-batchcard .auth-screen .card,
.customer-query-body.theme-batchcard .query-card,
.customer-query-body.theme-batchcard .results-card,
.customer-query-body.theme-batchcard .customer-menu-panel {
  background: #fff;
  border-color: #d3deeb;
  box-shadow: 0 18px 50px rgba(24, 46, 75, .1);
}

.customer-query-body.theme-batchcard .query-card {
  overflow: hidden;
}

.customer-query-body.theme-batchcard .query-card .card-header,
.customer-query-body.theme-batchcard .results-header {
  background: #fff;
  border-color: #e0e7f1;
}

.customer-query-body.theme-batchcard .batch-results-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 540px;
}

.customer-query-body.theme-batchcard .batch-sidebar {
  border-right: 1px solid #d3deeb;
  border-bottom: 0;
  background: #f6f9fd;
}

.customer-query-body.theme-batchcard .batch-sidebar-head {
  min-height: 60px;
  padding: 1rem;
  background: #fff;
}

.customer-query-body.theme-batchcard .batch-list {
  display: grid;
  gap: .75rem;
  max-height: 520px;
  padding: .85rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.customer-query-body.theme-batchcard .batch-item {
  flex: none;
  width: 100%;
  padding: .95rem;
  background: #fff;
  border-color: #e0e7f1;
  border-radius: 12px;
}

.customer-query-body.theme-batchcard .batch-item:hover {
  border-color: #bdd7f6;
  background: #fbfdff;
}

.customer-query-body.theme-batchcard .batch-item.active {
  color: #185aa6;
  background: #edf5ff;
  border-color: #9ec5f3;
  box-shadow: inset 4px 0 0 #185aa6, 0 10px 22px rgba(24, 90, 166, .1);
}

.customer-query-body.theme-batchcard .results-toolbar {
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  background: #fff;
  border-color: #e0e7f1;
}

.customer-query-body.theme-batchcard .results-table-wrap,
.customer-query-body.theme-batchcard .results-table,
.customer-query-body.theme-batchcard .results-card .card-footer {
  background: #fff;
}

.customer-query-body.theme-batchcard .results-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 1320px;
  padding: 0 .65rem;
}

.customer-query-body.theme-batchcard .results-table thead th {
  color: #53657d;
  background: transparent;
  border-bottom: 0;
}

.customer-query-body.theme-batchcard .results-table tbody tr:not(.comparison-row) td {
  background: #fbfdff;
  border-top: 1px solid #e0e7f1;
  border-bottom: 1px solid #e0e7f1;
}

.customer-query-body.theme-batchcard .results-table tbody tr:not(.comparison-row) td:first-child {
  border-left: 1px solid #e0e7f1;
  border-radius: 12px 0 0 12px;
}

.customer-query-body.theme-batchcard .results-table tbody tr:not(.comparison-row) td:last-child {
  border-right: 1px solid #e0e7f1;
  border-radius: 0 12px 12px 0;
}

.customer-query-body.theme-batchcard .results-table tbody tr:hover:not(.comparison-row) td {
  border-color: #bdd7f6;
  background: #f5faff;
}

.customer-query-body.theme-batchcard .results-table td.sn {
  color: #172033;
  font-weight: 800;
}

.customer-query-body.theme-batchcard .result-badge-stack .badge {
  border-radius: 999px;
}

.customer-query-body.theme-batchcard .comparison-row td {
  border-radius: 12px;
  background: #f6f9fd;
}

.customer-query-body.theme-compact {
  --tblr-primary: #243044;
  --tblr-primary-rgb: 36, 48, 68;
  --tblr-body-bg: #f3f5f8;
  --tblr-body-color: #1f2937;
  --tblr-secondary-color: #667085;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f5f7fa;
  --tblr-border-color: #d7dee8;
  --tblr-border-radius: 4px;
  --tblr-border-radius-sm: 3px;
  min-height: 100dvh;
  color: #1f2937;
  background: #f3f5f8;
}

.customer-query-body.theme-compact .auth-screen,
.customer-query-body.theme-compact .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-compact .customer-navbar {
  min-height: 52px;
  background: #243044;
  border: 0;
}

.customer-query-body.theme-compact .customer-navbar,
.customer-query-body.theme-compact .customer-navbar .text-secondary,
.customer-query-body.theme-compact .customer-navbar .btn {
  color: #fff !important;
}

.customer-query-body.theme-compact .customer-brand-mark {
  color: #243044;
  background: #fff;
  border-color: #fff;
  border-radius: 4px;
}

.customer-query-body.theme-compact .page-header {
  padding-top: 1rem;
  padding-bottom: .65rem;
}

.customer-query-body.theme-compact .page-title {
  font-size: 1.25rem;
}

.customer-query-body.theme-compact .auth-screen .card,
.customer-query-body.theme-compact .query-card,
.customer-query-body.theme-compact .results-card,
.customer-query-body.theme-compact .customer-menu-panel {
  border-color: #d7dee8;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.customer-query-body.theme-compact .card-header,
.customer-query-body.theme-compact .card-body,
.customer-query-body.theme-compact .results-header,
.customer-query-body.theme-compact .results-toolbar,
.customer-query-body.theme-compact .batch-sidebar-head,
.customer-query-body.theme-compact .card-footer {
  padding: .75rem 1rem;
}

.customer-query-body.theme-compact .query-input {
  min-height: 130px;
}

.customer-query-body.theme-compact .batch-list {
  gap: .35rem;
  padding: .45rem;
}

.customer-query-body.theme-compact .batch-item {
  flex-basis: 210px;
  width: 210px;
  padding: .55rem .65rem;
  border-radius: 4px;
}

.customer-query-body.theme-compact .batch-item.active {
  color: #172033;
  background: #eef2f7;
  border-color: #243044;
  box-shadow: inset 3px 0 0 #243044;
}

.customer-query-body.theme-compact .results-toolbar {
  grid-template-columns: minmax(220px, 1fr) 140px auto auto;
  gap: .5rem;
  min-height: 44px;
}

.customer-query-body.theme-compact .results-table {
  min-width: 1220px;
  font-size: .82rem;
}

.customer-query-body.theme-compact .results-table thead th {
  padding: .55rem .7rem;
  color: #667085;
  background: #eef2f7;
  border-color: #d7dee8;
  font-size: .72rem;
  font-weight: 800;
}

.customer-query-body.theme-compact .results-table td {
  padding: .58rem .7rem;
  border-color: #e3e8ef;
}

.customer-query-body.theme-compact .results-table td.sn {
  color: #111827;
  font-size: .78rem;
  font-weight: 800;
}

.customer-query-body.theme-compact .badge {
  min-height: 1.25rem;
  padding: .2rem .42rem;
  border-radius: 3px;
  font-size: .68rem;
}

.customer-query-body.theme-compact .result-badge-stack {
  gap: .2rem;
}

.customer-query-body.theme-compact .query-source {
  font-size: .65rem;
}

.customer-query-body.theme-compact .comparison-toggle {
  min-width: 58px;
  padding: .12rem .32rem;
  border-radius: 3px;
  font-size: .68rem;
}

.customer-query-body.theme-compact .comparison-row td {
  padding: .55rem .75rem;
}

.results-table-wrap {
  min-height: 370px;
}

.results-table {
  min-width: 1290px;
  margin: 0;
}

.results-table th,
.results-table td {
  white-space: nowrap;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  background: transparent;
  cursor: pointer;
}

.table-sort:hover,
.table-sort:focus-visible {
  color: var(--tblr-primary);
}

.table-sort:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
  outline-offset: 3px;
}

.table-sort-icon {
  min-width: 1em;
  color: var(--tblr-secondary);
  text-align: center;
}

.results-table td.sn {
  min-width: 165px;
  white-space: normal;
}

.serial-value,
.serial-meta {
  display: block;
}

.serial-value {
  color: var(--tblr-body-color);
  font-family: var(--tblr-font-monospace);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.serial-meta {
  margin-top: .25rem;
  color: var(--tblr-secondary-color);
  font-family: var(--tblr-font-sans-serif);
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.serial-meta.is-history {
  color: var(--tblr-warning);
}

.results-table td.product-info-cell {
  min-width: 200px;
  white-space: normal;
  vertical-align: middle;
}

/* Keep desktop result columns compact instead of distributing empty space. */
@media (min-width: 901px) {
  .results-table {
    width: max-content;
    min-width: 0;
    table-layout: fixed;
  }

  .results-table th,
  .results-table td {
    padding-left: .7rem;
    padding-right: .7rem;
  }

  .results-table th.result-select-cell,
  .results-table td.result-select-cell {
    width: 44px;
    min-width: 44px;
  }

  .results-table th[data-result-fixed="serial"],
  .results-table td.sn {
    width: 175px;
    min-width: 175px;
  }

  .results-table th[data-result-column="product_info"],
  .results-table td[data-result-column="product_info"] {
    width: 220px;
    min-width: 220px;
  }

  .results-table th[data-result-column="activated"],
  .results-table td[data-result-column="activated"],
  .results-table th[data-result-column="warranty_status"],
  .results-table td[data-result-column="warranty_status"] {
    width: 116px;
    min-width: 116px;
  }

  .results-table th[data-result-column="warranty"],
  .results-table td[data-result-column="warranty"] {
    width: 128px;
    min-width: 128px;
  }

  .results-table th[data-result-column="result"],
  .results-table td[data-result-column="result"] {
    width: 112px;
    min-width: 112px;
  }

  .results-table th[data-result-column="comparison"],
  .results-table td[data-result-column="comparison"] {
    width: 126px;
    min-width: 126px;
  }
}

.product-info-name,
.product-info-model {
  display: block;
}

.product-info-name {
  color: var(--tblr-body-color);
  font-weight: 700;
  line-height: 1.35;
}

.product-info-model {
  margin-top: .2rem;
  color: var(--tblr-secondary-color);
  font-size: .72rem;
  line-height: 1.35;
}

.result-select-cell {
  width: 44px;
  min-width: 44px;
  text-align: center;
}

.result-row-changed > td {
  background: color-mix(in srgb, var(--tblr-warning) 8%, var(--tblr-bg-surface));
}

.result-badge-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}

.result-missing {
  color: var(--tblr-secondary-color);
  font-style: italic;
}

.release-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border: 1px solid color-mix(in srgb, var(--tblr-primary) 22%, var(--tblr-border-color));
  border-left: 3px solid var(--tblr-primary);
  border-radius: var(--tblr-border-radius);
}

.release-notice-copy {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

.release-notice-title {
  font-weight: 700;
}

.release-notice-body {
  overflow: hidden;
  color: var(--tblr-secondary-color);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-notice-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
}

body.share-dialog-open {
  overflow: hidden;
}

.share-dialog[hidden] {
  display: none !important;
}

.share-dialog {
  position: fixed;
  z-index: 1050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.share-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(12, 22, 35, .58);
  border: 0;
}

.share-dialog-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 2rem));
  overflow: auto;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15, 27, 43, .28);
}

.share-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.share-dialog-header h2 {
  margin: .2rem 0 0;
  font-size: 1.25rem;
}

.share-dialog-body {
  padding: 1.4rem;
}

.customer-announcement {
  align-items: center;
  gap: .75rem;
}

.announcement-dialog-panel {
  width: min(620px, 100%);
}

.announcement-dialog-copy {
  max-height: min(60vh, 520px);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--tblr-body-color);
  line-height: 1.75;
}

.announcement-dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.group-qr-dialog-panel { width: min(430px, 100%); }
.group-qr-body { text-align: center; }
.group-qr-body img { display: block; width: min(320px, 100%); margin: 0 auto; }
.group-qr-admin-preview { width: 220px; max-width: 100%; border: 1px solid var(--tblr-border-color); border-radius: 8px; }

.release-dialog-panel {
  width: min(560px, 100%);
}

.release-date {
  color: var(--tblr-secondary-color);
  font-size: .78rem;
}

.release-summary {
  margin: .55rem 0 1rem;
  color: var(--tblr-body-color);
  font-size: .94rem;
  line-height: 1.7;
}

.release-items {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-items li {
  position: relative;
  padding: .75rem .85rem .75rem 2rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: 6px;
  font-size: .86rem;
  line-height: 1.6;
}

.release-items li::before {
  position: absolute;
  top: .86rem;
  left: .8rem;
  width: .55rem;
  height: .55rem;
  background: var(--tblr-primary);
  border-radius: 50%;
  content: "";
}

.release-dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tblr-border-color);
}

.share-scope {
  padding: .8rem 1rem;
  color: var(--tblr-primary-text-emphasis, #164c91);
  background: var(--tblr-primary-lt, #e9f2ff);
  border-left: 3px solid var(--tblr-primary);
  font-size: .86rem;
  font-weight: 700;
}

.share-create-row {
  display: grid;
  grid-template-columns: auto minmax(130px, 180px) auto;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.share-create-row label {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.share-security-note,
.share-status {
  margin-top: .75rem;
  font-size: .76rem;
  line-height: 1.6;
}

.share-security-note {
  color: var(--tblr-warning-text-emphasis, #8a5a00);
}

.share-created {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--tblr-border-color);
}

.share-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tblr-border-color);
}

.share-list-header h3 {
  margin: 0;
  font-size: .95rem;
}

.share-list {
  display: grid;
  gap: .55rem;
  margin-top: .75rem;
}

.share-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: 6px;
}

.share-list-item strong,
.share-list-item small {
  display: block;
}

.share-list-item small {
  margin-top: .2rem;
  color: var(--tblr-secondary-color);
  font-size: .73rem;
}

.share-list-empty {
  padding: 1.2rem;
  color: var(--tblr-secondary-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px dashed var(--tblr-border-color);
  border-radius: 6px;
  text-align: center;
  font-size: .8rem;
}

.query-time-value,
.query-source {
  display: block;
}

.query-source {
  margin-top: .15rem;
  color: var(--tblr-secondary-color);
  font-size: .7rem;
}

.query-source.is-history {
  color: var(--tblr-warning);
}

.comparison-toggle {
  min-width: 72px;
  padding: .2rem .45rem;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  background: transparent;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-sm);
}

.comparison-toggle.has-change {
  color: var(--tblr-warning-text-emphasis, #8a5a00);
  background: var(--tblr-warning-lt, #fff4cc);
  border-color: color-mix(in srgb, var(--tblr-warning) 35%, var(--tblr-border-color));
}

.comparison-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
  outline-offset: 2px;
}

.result-empty {
  padding: 3rem 1rem;
}

.results-card.is-empty .batch-results-layout {
  min-height: 0;
}

.results-card.is-empty-no-batches .batch-sidebar,
.results-card.is-empty-no-batches .results-toolbar,
.results-card.is-empty-no-batches #resultsPagination {
  display: none;
}

.results-card.is-empty .results-table-wrap {
  width: 100%;
  min-height: 132px;
  overflow: visible;
}

.results-card.is-empty .results-table {
  display: none;
}

.results-card.is-empty .result-empty {
  display: flex;
  min-height: 132px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
}

.results-card.is-empty .result-empty .empty-header {
  margin-bottom: .45rem;
  color: var(--tblr-secondary-color);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.results-card.is-empty .result-empty .empty-title {
  max-width: 100%;
  margin: 0 auto;
  color: var(--tblr-secondary-color);
  font-size: .85rem;
  line-height: 1.5;
}

.results-card.is-empty-no-batches .batch-results-layout {
  display: block;
}

.results-card.is-empty-no-batches .results-main,
.results-card.is-empty-no-batches .results-table-wrap {
  width: 100%;
}

.results-card.is-empty-no-batches #resultsPagination {
  display: none;
}

.results-card.is-empty-no-batches .results-header {
  border-bottom: 0;
}

.advanced-filters {
  position: relative;
}

.advanced-filter-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + .35rem);
  right: 0;
  width: min(260px, calc(100vw - 2rem));
  padding: .75rem;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  box-shadow: 0 10px 24px rgba(35, 46, 60, .12);
}

.advanced-filter-panel .form-label {
  margin-bottom: .35rem;
  font-size: .75rem;
}

.purchase-body {
  background: var(--tblr-bg-surface-secondary);
}

.purchase-container {
  max-width: 1080px;
}

.purchase-plan,
.purchase-checkout {
  overflow: hidden;
}

.purchase-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.purchase-price small {
  font-size: 1.25rem;
}

.purchase-package-options {
  display: grid;
  gap: .65rem;
}

.purchase-package-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 72px;
  border: 1px solid #dce1e7;
  border-radius: 6px;
  background: #fff;
  padding: .8rem .9rem;
  cursor: pointer;
}

.purchase-package-option:has(input:checked) {
  border-color: #206bc4;
  box-shadow: 0 0 0 1px #206bc4;
}

.purchase-package-option input {
  width: 1rem;
  height: 1rem;
  accent-color: #206bc4;
}

.purchase-package-option span {
  min-width: 0;
}

.purchase-package-option strong,
.purchase-package-option small {
  display: block;
}

.purchase-package-option small {
  margin-top: .2rem;
  color: #667085;
}

.purchase-package-option b {
  color: #182433;
  font-size: 1rem;
  white-space: nowrap;
}

.purchase-mode .btn {
  min-height: 40px;
}

.purchase-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.purchase-fact span {
  color: var(--tblr-secondary-color);
}

.form-selectgroup-boxes .form-selectgroup-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.payment-provider-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.qr-frame {
  display: inline-grid;
  place-items: center;
  width: 248px;
  height: 248px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
}

.payment-qr {
  display: block;
  width: 222px;
  height: 222px;
  object-fit: contain;
}

.payment-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
}

.access-code {
  padding: 1rem;
  overflow-wrap: anywhere;
  background: var(--tblr-bg-surface-secondary);
  border: 1px dashed var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  font-family: var(--tblr-font-monospace);
  font-size: 1.25rem;
  font-weight: 700;
}

.purchase-recovery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.purchase-order-find {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: .5rem;
}

.purchase-order-table {
  min-width: 720px;
}

.purchase-order-id {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .customer-query-body.theme-glass .auth-screen .card,
  .customer-query-body.theme-glass .customer-navbar,
  .customer-query-body.theme-glass .customer-menu-panel,
  .customer-query-body.theme-glass .query-card,
  .customer-query-body.theme-glass .customer-announcement,
  .customer-query-body.theme-glass #expiryWarning,
  .customer-query-body.theme-glass .clear-confirm {
    background: #f8fbfc;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .customer-query-body.theme-glass .auth-screen .card,
  .customer-query-body.theme-glass .customer-navbar,
  .customer-query-body.theme-glass .customer-menu-panel,
  .customer-query-body.theme-glass .query-card,
  .customer-query-body.theme-glass .customer-announcement,
  .customer-query-body.theme-glass #expiryWarning,
  .customer-query-body.theme-glass .clear-confirm {
    background: #f8fbfc;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 767.98px) {
  .query-shape-blue {
    top: -72px;
    right: -150px;
    opacity: .72;
  }

  .query-shape-coral {
    left: -220px;
    opacity: .65;
  }

  .query-shape-teal,
  .query-shape-outline {
    opacity: .6;
  }

  .customer-query-body.theme-glass .auth-screen .card,
  .customer-query-body.theme-glass .customer-navbar,
  .customer-query-body.theme-glass .customer-menu-panel,
  .customer-query-body.theme-glass .query-card,
  .customer-query-body.theme-glass .customer-announcement,
  .customer-query-body.theme-glass #expiryWarning,
  .customer-query-body.theme-glass .clear-confirm {
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
  }

  .purchase-container > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .purchase-recovery-header {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-order-find {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .purchase-order-table {
    min-width: 0;
  }

  .purchase-order-table thead {
    display: none;
  }

  .purchase-order-table tbody,
  .purchase-order-table tr,
  .purchase-order-table td {
    display: block;
    width: 100%;
  }

  .purchase-order-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--tblr-border-color);
  }

  .purchase-order-table tr:last-child {
    border-bottom: 0;
  }

  .purchase-order-table td {
    padding: 0;
    border: 0;
  }

  .purchase-order-table td::before {
    display: block;
    margin-bottom: .2rem;
    color: var(--tblr-secondary-color);
    font-size: .75rem;
    font-weight: 600;
    content: attr(data-label);
  }

  .purchase-order-table td:first-child {
    grid-column: 1 / -1;
  }

  .purchase-order-table td:nth-child(4) {
    align-self: end;
  }

  .purchase-order-table td:last-child {
    align-self: end;
    text-align: right;
  }

  .purchase-order-id {
    max-width: 100%;
  }

  .customer-brand-copy {
    display: none;
  }

  .page-header .row {
    align-items: flex-start !important;
  }

  .page-header .col-auto {
    width: 100%;
  }

  .page-header .btn-list,
  .query-footer .btn-list,
  .results-header .btn-list,
  .clear-confirm .btn-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .query-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .batch-details-grid {
    grid-template-columns: 1fr;
  }

  .query-progress-wrap {
    width: 100%;
    justify-self: stretch;
  }

  .query-options {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .query-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .query-preview-details {
    text-align: left;
  }

  .results-header,
  .customer-announcement,
  .clear-confirm {
    align-items: stretch;
    flex-direction: column;
  }

  #appInitError {
    align-items: flex-start !important;
    flex-direction: column;
  }

  #appInitError .btn {
    width: 100%;
  }

  .results-toolbar {
    grid-template-columns: 1fr 130px;
  }

  .results-toolbar #resultSearch {
    grid-column: 1 / -1;
  }

  .results-toolbar #resultCount {
    grid-column: 1 / -1;
  }

  .customer-query-body.theme-batchcard .batch-results-layout {
    display: block;
  }

  .customer-query-body.theme-batchcard .batch-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--tblr-border-color);
  }

  .customer-query-body.theme-batchcard .batch-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-query-body.theme-batchcard .batch-item {
    flex: 0 0 230px;
    width: 230px;
  }

  .image-export-control,
  .image-export-control > .btn {
    width: 100%;
  }

  .image-export-menu {
    width: min(260px, calc(100vw - 2rem));
  }

  .share-dialog {
    align-items: end;
    padding: 0;
  }

  .share-dialog-panel {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .share-dialog-header,
  .share-dialog-body {
    padding: 1rem;
  }

  .share-create-row {
    grid-template-columns: 1fr;
  }

  .share-created .input-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .share-created .input-group > * {
    width: 100%;
    border-radius: var(--tblr-border-radius) !important;
  }
}

/* Desktop is the primary workflow: reduce vertical travel and clarify action weight. */
@media (min-width: 768px) {
  .customer-query-body .page-body {
    padding-top: 1rem;
  }

  .customer-query-body .query-card .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .customer-query-body .query-input {
    min-height: 112px;
  }

  .customer-query-body .query-options {
    margin-top: .45rem;
  }

  .customer-query-body .query-footer {
    gap: .75rem;
    margin-top: .75rem;
  }

  .customer-query-body .results-header {
    padding-top: .85rem;
    padding-bottom: .85rem;
  }

  .customer-query-body .results-toolbar {
    min-height: 52px;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .customer-query-body .customer-announcement,
  .customer-query-body .release-notice,
  .customer-query-body #expiryWarning {
    padding-top: .65rem;
    padding-bottom: .65rem;
  }

  .customer-query-body .results-header .btn-list {
    gap: .45rem;
  }

  .customer-query-body .results-header #shareResults {
    color: var(--tblr-secondary-color);
    border-color: var(--tblr-border-color);
  }

  .customer-query-body .results-header #shareResults:hover,
  .customer-query-body .results-header #shareResults:focus-visible {
    color: var(--tblr-primary);
    border-color: var(--tblr-primary);
    background: var(--tblr-bg-surface-secondary);
  }

  .customer-query-body .customer-menu-panel {
    padding: .4rem;
  }
}

@media (max-width: 420px) {
  .customer-query-body.theme-glass {
    background-size: 24px 24px;
  }

  .customer-query-body.theme-glass .auth-screen .container-tight::before,
  .customer-query-body.theme-glass .page-header .container-xl::after {
    display: none;
  }

  .customer-navbar .container-xl {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .customer-menu-panel {
    position: fixed;
    top: 64px;
    right: .75rem;
    left: .75rem;
    width: auto;
  }

  .page-header .btn-list,
  .query-footer .btn-list,
  .clear-confirm .btn-list {
    grid-template-columns: 1fr;
  }

  .results-header .btn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-more-actions,
  .results-more-actions > summary {
    width: 100%;
  }

  .results-more-actions .customer-menu-panel {
    right: 0;
    left: 0;
    width: auto;
  }

  .results-toolbar {
    grid-template-columns: 1fr;
  }

  .results-toolbar #resultCount {
    grid-column: auto;
  }

  .results-table {
    min-width: 860px;
  }

  .results-table th.result-select-cell,
  .results-table td.result-select-cell {
    position: sticky;
    z-index: 3;
    left: 0;
    background: var(--tblr-bg-surface);
  }

  .results-table th:nth-child(2),
  .results-table td:nth-child(2) {
    position: sticky;
    z-index: 2;
    left: 44px;
    background: var(--tblr-bg-surface);
    box-shadow: 6px 0 8px -8px rgba(35, 46, 60, .55);
  }

  .results-table thead th:nth-child(2) {
    z-index: 4;
    background: var(--tblr-bg-surface-secondary);
  }

  .results-table td.sn {
    min-width: 172px;
  }

  .batch-item {
    flex-basis: 205px;
  }

  .qr-frame {
    width: min(248px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .payment-qr {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

/* Final desktop polish: the result table is the primary work surface. */
@media (min-width: 768px) {
  .customer-query-body .batch-metadata-toggle {
    min-height: 38px;
    padding-top: .55rem;
    padding-bottom: .55rem;
  }

  .customer-query-body .batch-details-grid {
    gap: .75rem;
    margin-bottom: .75rem;
  }

  .customer-query-body .results-table tbody td {
    padding-top: .65rem !important;
    padding-bottom: .65rem !important;
  }

  .customer-query-body .results-table .serial-meta {
    margin-top: .15rem;
  }

  .customer-query-body .results-table .product-info-name {
    line-height: 1.25;
  }

  .customer-query-body .results-table .product-info-model {
    line-height: 1.2;
  }

  .customer-query-body .batch-item {
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .customer-query-body .batch-item-meta {
    margin-top: .25rem;
  }

  .customer-query-body .release-notice {
    min-height: 48px;
  }
}


/* UI/UX Optimizations */
.form-selectgroup-input:focus + .form-selectgroup-label {
  border-color: var(--tblr-primary) !important;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25) !important;
}

.results-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn, .nav-link, .batch-item, .form-selectgroup-label {
  transition: color .2s ease-in-out, background-color .2s ease-in-out,
    border-color .2s ease-in-out, box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

/* Keep the customer workflow calm and task-focused across themes. */
.customer-query-body.theme-classic {
  --customer-work-border: #d9e0e7;
  --customer-work-muted: #f6f8fa;
  min-height: 100dvh;
  color: #1f2937;
  background: #f4f6f8;
}

.customer-query-body.theme-classic .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--customer-work-border);
  box-shadow: 0 1px 0 rgba(31, 41, 55, .04);
}

.customer-query-body.theme-classic .query-backdrop,
.customer-query-body.theme-glass .query-backdrop {
  display: none;
}

.customer-query-body.theme-glass {
  background: #f4f6f8;
  background-image: none;
}

.customer-query-body.theme-glass .auth-screen .card::before,
.customer-query-body.theme-glass .query-card::before,
.customer-query-body.theme-glass .page-header .container-xl::after {
  display: none;
}

.customer-query-body.theme-classic .auth-screen,
.customer-query-body.theme-classic .page-wrapper,
.customer-query-body.theme-glass .auth-screen,
.customer-query-body.theme-glass .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-classic .auth-screen .card,
.customer-query-body.theme-classic .query-card,
.customer-query-body.theme-classic .results-card,
.customer-query-body.theme-glass .auth-screen .card,
.customer-query-body.theme-glass .query-card,
.customer-query-body.theme-glass .results-card {
  border-color: #d9e0e7;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .06);
}

.page-header {
  padding-top: 1rem;
  padding-bottom: .75rem;
}

.page-pretitle {
  display: none;
}

.page-title {
  letter-spacing: 0;
}

.batch-metadata {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.batch-metadata-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding: .5rem .75rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-sm);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.batch-metadata-toggle::-webkit-details-marker {
  display: none;
}

.batch-metadata-toggle::after {
  width: .45rem;
  height: .45rem;
  margin-left: auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.batch-metadata[open] .batch-metadata-toggle::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.batch-metadata .batch-details-grid {
  margin: .9rem 0 .1rem;
}

.query-input-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
}

.query-input {
  min-height: 112px;
  padding: .85rem 1rem;
}

.query-footer {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.query-footer .btn-list {
  align-items: center;
}

#query {
  min-width: 132px;
}

#retry:disabled {
  display: none;
}

.batch-results-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  min-height: 0;
}

.batch-sidebar {
  border-right: 1px solid var(--tblr-border-color);
  border-bottom: 0;
}

.batch-list {
  display: grid;
  max-height: 500px;
  padding: .6rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.batch-item {
  width: 100%;
  padding: .7rem .75rem;
}

.batch-item + .batch-item {
  margin-top: .25rem;
}

.results-toolbar {
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  background: var(--tblr-bg-surface);
}

.results-more-actions .customer-menu-panel,
.export-actions .customer-menu-panel {
  width: 220px;
}

.export-actions .customer-menu-panel {
  display: grid;
  gap: .2rem;
}

.export-actions .dropdown-item,
.export-actions .image-export-control > .dropdown-item {
  width: 100%;
  margin: 0;
  text-align: left;
}

.export-actions .image-export-control {
  display: block;
  width: 100%;
}

.export-actions .image-export-menu {
  top: -.35rem;
  right: auto;
  left: calc(100% + .4rem);
}

.results-table-wrap {
  scrollbar-color: #b7c1cc transparent;
  scrollbar-width: thin;
}

@media (max-width: 767.98px) {
  .page-header {
    padding-top: 1rem;
    padding-bottom: .75rem;
  }

  .query-input-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .query-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .query-progress-wrap {
    width: 100%;
  }

  .batch-results-layout {
    display: block;
  }

  .batch-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--tblr-border-color);
  }

  .batch-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .batch-item {
    flex: 0 0 220px;
    width: 220px;
  }

  .results-header .btn-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .results-header .btn-list > .btn,
  .results-header .btn-list > .customer-menu {
    flex: 1 1 auto;
  }

  .results-header .btn-list > .customer-menu > summary {
    width: 100%;
  }

  .export-actions .image-export-menu {
    top: calc(100% + .35rem);
    right: 0;
    left: auto;
  }

  .export-actions .customer-menu-panel,
  .results-more-actions .customer-menu-panel {
    width: min(260px, calc(100vw - 2rem));
  }
}

@media (max-width: 420px) {
  .batch-metadata-toggle {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .batch-metadata-toggle::after {
    position: absolute;
    right: 1.1rem;
    margin-top: .25rem;
  }

  .results-header .btn-list > .btn,
  .results-header .btn-list > .customer-menu {
    flex-basis: calc(50% - .25rem);
  }
}

.batch-search-wrap {
  padding: .6rem .6rem .15rem;
}

.batch-search-wrap .form-control {
  min-height: 34px;
}

.status-quick-filters {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-width: 0;
  padding: .2rem;
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-sm);
}

.status-quick-filter {
  min-height: 40px;
  padding: .2rem .55rem;
  color: var(--tblr-secondary-color);
  background: transparent;
  border: 0;
  border-radius: var(--tblr-border-radius-sm);
  font-size: .76rem;
  line-height: 1.25;
  white-space: nowrap;
}

.status-quick-filter:hover,
.status-quick-filter:focus-visible {
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
}

.status-quick-filter.active {
  color: var(--tblr-primary);
  background: var(--tblr-bg-surface);
  box-shadow: 0 1px 3px rgba(35, 46, 60, .12);
  font-weight: 700;
}

/* Keep the legacy state available to the API without making it a primary customer filter. */
.status-quick-filter[data-status="official_pending"] {
  display: none;
}

.status-quick-filter:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
  outline-offset: -2px;
}

.result-cards {
  display: none;
}

.result-card {
  padding: 1rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  box-shadow: 0 4px 14px rgba(35, 46, 60, .06);
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.result-card-identity {
  min-width: 0;
}

.result-card-serial,
.result-card-meta {
  display: block;
}

.result-card-serial {
  overflow-wrap: anywhere;
  color: var(--tblr-body-color);
  font-family: var(--tblr-font-monospace);
  font-size: .9rem;
  line-height: 1.4;
}

.result-card-meta {
  margin-top: .2rem;
  color: var(--tblr-secondary-color);
  font-size: .7rem;
  line-height: 1.4;
}

.result-card-meta.is-history {
  color: var(--tblr-warning);
}

.result-card-select {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .35rem;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  white-space: nowrap;
}

.result-card-field {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--tblr-border-color);
}

.result-card-field:last-child {
  border-bottom: 0;
}

.result-card-label {
  color: var(--tblr-secondary-color);
  font-size: .76rem;
  line-height: 1.55;
}

.result-card-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
  line-height: 1.55;
}

.result-card-value .product-info-name,
.result-card-value .product-info-model {
  display: block;
}

.result-card-changed {
  border-color: color-mix(in srgb, var(--tblr-warning) 45%, var(--tblr-border-color));
  box-shadow: inset 3px 0 0 var(--tblr-warning), 0 4px 14px rgba(35, 46, 60, .06);
}

.customer-query-body.theme-midnight .status-quick-filters,
.customer-query-body.theme-midnight .result-card {
  background: #161b22;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .status-quick-filter:hover,
.customer-query-body.theme-midnight .status-quick-filter:focus-visible,
.customer-query-body.theme-midnight .status-quick-filter.active {
  color: #fff;
  background: #21262d;
}

.customer-query-body.theme-carbon .status-quick-filters,
.customer-query-body.theme-carbon .result-card {
  border-radius: 0;
}

.customer-query-body.theme-carbon .status-quick-filters {
  background: #e8e8e8;
}

.customer-query-body.theme-compact .status-quick-filter {
  min-height: 32px;
  padding: .15rem .42rem;
  font-size: .7rem;
}

.customer-query-body.theme-compact .result-card {
  border-radius: 4px;
  box-shadow: none;
}

.results-toolbar,
.customer-query-body.theme-batchcard .results-toolbar,
.customer-query-body.theme-compact .results-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(250px, auto) 150px auto auto;
}

@media (max-width: 767.98px) {
  .results-toolbar,
  .customer-query-body.theme-batchcard .results-toolbar,
  .customer-query-body.theme-compact .results-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-toolbar #resultSearch,
  .results-toolbar #statusQuickFilters,
  .results-toolbar #resultStatus,
  .results-toolbar #changedOnly,
  .results-toolbar #resultCount {
    grid-column: 1 / -1;
  }

  .status-quick-filters {
    justify-content: stretch;
    width: 100%;
  }

  .status-quick-filter {
    flex: 1 1 0;
  }

  .results-table-wrap {
    min-height: 0;
    overflow: visible;
  }

  .results-table-wrap .results-table {
    display: none;
  }

  .result-cards {
    display: grid;
    gap: .65rem;
    padding: .75rem;
  }

  .result-card-field[data-result-column="result"] .result-card-value {
    min-width: 0;
  }

  .release-notice {
    align-items: flex-start;
  }

  .release-notice-body {
    white-space: normal;
  }

  .release-notice-actions {
    align-items: flex-start;
  }

  .result-card {
    padding: .85rem;
    box-shadow: 0 2px 8px rgba(35, 46, 60, .05);
  }

  .result-card-field {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    padding: .5rem 0;
  }

  .customer-query-body.theme-glass .result-card {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(103, 126, 148, .22);
  }

  .customer-query-body.theme-batchcard .result-card {
    border-color: #e0e7f1;
    box-shadow: 0 8px 20px rgba(24, 46, 75, .08);
  }
}

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

/* Keep the customer table dense and operational, with minimal decoration. */
@media (min-width: 901px) {
  .customer-query-body .results-table {
    min-width: 0;
    width: max-content;
    table-layout: fixed;
    box-shadow: none;
    border-radius: 0;
  }

  .customer-query-body .results-table thead th {
    padding-top: .7rem;
    padding-bottom: .7rem;
    color: #667085;
    background: #fafbfc;
    border-bottom: 1px solid #e4e7ec;
    font-size: .75rem;
    font-weight: 600;
  }

  .customer-query-body .results-table tbody td {
    padding-top: .85rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
  }

  .customer-query-body .results-table tbody tr:hover td {
    background: #fbfcfd;
  }

  .customer-query-body .results-table .result-badge-stack {
    gap: .25rem;
  }

  .customer-query-body .results-table .badge {
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
  }
}

.warranty-activation-content {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.warranty-activation-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
}

.warranty-activation-label {
  color: var(--tblr-secondary-color);
  font-size: .72rem;
}

.warranty-activation-value {
  min-width: 0;
  color: var(--tblr-body-color);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.warranty-activation-value.is-missing {
  color: var(--tblr-secondary-color);
}

/* Shared control scale: keep login, query, and purchase actions visually related. */
.customer-query-body .btn,
.purchase-body .btn {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 600;
}

.customer-query-body .btn-sm,
.purchase-body .btn-sm {
  min-height: 32px;
  padding-top: .35rem;
  padding-bottom: .35rem;
  font-size: .8125rem;
}

.customer-query-body .btn-lg,
.purchase-body .btn-lg {
  min-height: 46px;
}

.customer-query-body .form-control,
.customer-query-body .form-select,
.purchase-body .form-control,
.purchase-body .form-select {
  border-radius: 6px;
}

.customer-query-body .password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  min-height: 46px;
  padding: 0;
  color: var(--app-muted, #667382);
  border: 1px solid var(--app-line, #d8dee6);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #fff;
  transition: color .15s ease, background-color .15s ease;
}

.customer-query-body .password-toggle:hover,
.customer-query-body .password-toggle:focus-visible {
  color: var(--app-primary, #206bc4);
  background: #f4f8fc;
}

.customer-query-body .password-toggle:focus-visible {
  outline: 2px solid rgba(32, 107, 196, .32);
  outline-offset: -2px;
}

.customer-query-body .query-progress-wrap .progress {
  min-height: 6px;
  overflow: hidden;
  border-radius: 999px;
}

.customer-query-body .query-progress-wrap .progress-bar {
  transition: width .35s ease;
}

.customer-query-body .card,
.purchase-body .card {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(35, 46, 60, .05);
}

.customer-query-body .customer-menu-panel,
.purchase-body .customer-menu-panel {
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(35, 46, 60, .12);
}

.customer-query-body .dropdown-item,
.purchase-body .dropdown-item {
  min-height: 36px;
  border-radius: 4px;
}

.customer-query-body #changedOnly[aria-pressed="true"] {
  color: var(--tblr-primary);
  background: var(--tblr-bg-surface-secondary);
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .customer-query-body .btn,
  .purchase-body .btn {
    min-height: 40px;
  }

  .customer-query-body .btn-sm,
  .purchase-body .btn-sm {
    min-height: 36px;
  }
}

/* One operational density across themes; themes keep color accents only. */
@media (min-width: 901px) {
  .customer-query-body .batch-results-layout {
    min-height: 0;
  }

  .customer-query-body .query-input {
    min-height: 112px;
  }

  .customer-query-body .results-table {
    width: 100%;
    min-width: 860px !important;
  }

  .customer-query-body .results-card.is-empty .results-table {
    display: none;
  }

  .customer-query-body .results-table thead th {
    padding-top: .7rem !important;
    padding-bottom: .7rem !important;
  }

  .customer-query-body .results-table tbody td {
    padding-top: .85rem !important;
    padding-bottom: .85rem !important;
  }

  .customer-query-body .results-table th[data-result-column="warranty_activation"],
  .customer-query-body .results-table td[data-result-column="warranty_activation"] {
    width: 230px;
    min-width: 230px;
  }

  .customer-query-body .results-table .badge {
    box-shadow: none !important;
  }
}

/* Keep the desktop workspace dense; mobile gets only the three frequent actions. */
.batch-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  margin-top: .45rem;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.batch-summary > span + span {
  padding-left: .75rem;
  border-left: 1px solid var(--tblr-border-color);
}

.batch-summary > span:nth-child(2) {
  color: var(--tblr-success);
}

.batch-summary > span:nth-child(3) {
  color: var(--tblr-danger);
}

.batch-history-toggle {
  width: calc(100% - 1.2rem);
  margin: .15rem .6rem .6rem;
  border-style: dashed;
}

.mobile-quick-actions {
  display: none;
}

@media (max-width: 767.98px) {
  .customer-query-body {
    padding-bottom: 4.75rem;
  }

  .batch-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
    max-height: 300px;
    padding: .6rem;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .batch-item,
  .customer-query-body.theme-batchcard .batch-item {
    width: 100% !important;
    min-width: 0;
    flex: none !important;
    margin: 0 !important;
  }

  .batch-item-title,
  .batch-item-meta,
  .batch-item-note {
    min-width: 0;
  }

  .batch-item-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .batch-summary {
    gap: .2rem .55rem;
    margin-top: .35rem;
  }

  .batch-summary > span + span {
    padding-left: .55rem;
  }

  .mobile-quick-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: .5rem;
    padding: .6rem max(.75rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--tblr-bg-surface) 94%, transparent);
    border-top: 1px solid var(--tblr-border-color);
    box-shadow: 0 -4px 18px rgba(35, 46, 60, .08);
    backdrop-filter: blur(10px);
  }

  .mobile-quick-actions .btn {
    min-width: 0;
    min-height: 38px;
    padding-right: .45rem;
    padding-left: .45rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
