/* Quality navigation only; desktop overview cards retain their existing look. */
.quality-entry-symbol {
  display: none;
}

.mobile-preview #qualityPanel .quality-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-preview #qualityPanel .quality-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 158px;
  gap: 7px;
  padding: 16px 10px;
  text-align: center;
  border-color: #dce5f2;
  background: #fff;
  box-shadow: 0 3px 10px #30467506;
}

.mobile-preview #qualityPanel .quality-entry-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-bottom: 3px;
  border-radius: 14px;
  color: #fff;
}

.mobile-preview #qualityPanel .quality-entry-symbol svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quality-symbol-incoming { background: linear-gradient(140deg, #289ade, #2871d7); }
.quality-symbol-process { background: linear-gradient(140deg, #8184eb, #6560cf); }
.quality-symbol-finished { background: linear-gradient(140deg, #30b7a1, #1a917e); }
.quality-symbol-complaint { background: linear-gradient(140deg, #efa951, #df8743); }

.mobile-preview #qualityPanel .quality-entry-code {
  color: #74829a;
  font-size: 12px;
  line-height: 1.2;
}

.mobile-preview #qualityPanel .quality-entry-card strong {
  font-size: 18px;
  line-height: 1.4;
}

.mobile-preview #qualityPanel .quality-entry-card > span:last-child {
  display: none;
}

.quality-module[data-quality-stage] > .panel-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quality-module[data-quality-stage] > .panel-head > h2 {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
}

.quality-module .panel-head > .quality-return {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #687990;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.quality-module .panel-head > .quality-return:hover {
  background: #edf3fb;
  color: #315781;
}

.quality-module .panel-head > .quality-return:focus-visible {
  outline: 2px solid #3276cf;
  outline-offset: 2px;
}

.mobile-preview .quality-module[data-quality-stage] > .panel-head > h2 {
  font-size: clamp(20px, 4.8vw, 26px);
  line-height: 1.3;
}
