.qw {
  max-width: 1450px;
  margin: auto;
}
.qw-heading,
.qw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.qw-row {
  justify-content: flex-start;
  margin: 14px 0;
}
.qw-heading h1 {
  margin-bottom: 5px;
}
.qw-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  margin: 20px 0;
  border-bottom: 2px solid var(--line, #dae3ea);
}
.qw-tabs button {
  background: transparent;
  border: 0;
  padding: 14px 16px;
  white-space: nowrap;
  color: var(--navy, #183c61);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 4px solid transparent;
}
.qw-tabs .active {
  border-color: var(--sea, #3479a2);
  background: #eaf2f7;
}
.qw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.qw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  font-weight: 600;
  font-size: 13px;
}
.qw input:not([type="checkbox"]),
.qw select,
.qw textarea,
.qw-dialog input,
.qw-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--line, #cad8e2);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: #18334a;
}
.qw input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.qw small {
  display: block;
  margin-top: 5px;
  color: var(--mut, #536875);
}
.qw-card,
.qw-preview {
  padding: 20px;
  border: 1px solid var(--line, #d4dfe7);
  background: #fff;
  border-radius: 10px;
  margin: 14px 0;
}
.qw-preview {
  max-width: 1000px;
}
.qw-preview h3 {
  text-transform: capitalize;
}
.qw-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.qw-message {
  padding: 12px;
  background: #eef4f8;
  border-left: 4px solid #497b9c;
  color: #355064;
}
.qw-message.error,
.qw-blockers {
  background: #fff1e8;
  color: #803c13;
  border-left: 4px solid #b76528;
  padding: 12px 22px;
}
.qw-scroll {
  overflow: auto;
}
.qw table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  text-align: left;
}
.qw th,
.qw td {
  padding: 12px;
  border-bottom: 1px solid #d9e2e8;
  vertical-align: top;
}
.qw th {
  font-size: 12px;
  color: var(--mut, #48606f);
  background: #f1f5f8;
}
.qw-predict {
  position: relative;
}
.qw-suggestions {
  display: grid;
  gap: 3px;
  max-height: 260px;
  overflow: auto;
  position: relative;
  z-index: 1;
}
.qw-suggestions button {
  text-align: left;
}
.qw-catalogue {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #dce6eb;
  padding: 14px;
}
.qw-totals {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px;
  background: #e8f2f8;
  position: sticky;
  bottom: 0;
}
.qw-totals small {
  width: 100%;
}
.qw-total {
  font-weight: 700;
}
.qw-status:empty {
  display: none;
}
.qw-history li {
  padding: 8px;
}
.qw-dialog {
  width: min(640px, 90vw);
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #cedbe4;
  border-radius: 12px;
  color: #18334a;
}
.qw-dialog::backdrop {
  background: #102f4977;
}
.qw-dialog .b {
  margin-top: 10px;
}
.qw button:focus-visible,
.qw input:focus-visible,
.qw a:focus-visible {
  outline: 3px solid #e8ad3b;
  outline-offset: 2px;
}
@media (max-width: 850px) {
  .qw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qw-tabs button {
    padding: 12px 8px;
  }
}
@media (max-width: 540px) {
  .qw-grid {
    grid-template-columns: 1fr;
  }
  .qw-card {
    padding: 12px;
  }
  .qw-preview {
    overflow: auto;
  }
  .qw-heading {
    align-items: flex-start;
  }
  .qw-totals {
    position: static;
  }
}
