/* HACCP employee UI polish v24 — kitchen-first density & touch targets */
.batch-temp-row {
  gap: 10px;
  padding: 12px 12px 14px;
  margin-bottom: 0;
}

.batch-temp-row .temperature-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.batch-temp-row .temperature-meta strong,
.batch-temp-row .temperature-meta span {
  text-align: left;
  display: inline;
}

.batch-temp-row .temperature-meta strong {
  font-size: 17px;
}

.batch-device-label {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.batch-device-label strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.batch-device-photo,
.batch-device-code {
  width: 42px;
  height: 42px;
  display: grid !important;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b9d8ec;
  border-radius: 6px;
  color: #17669c;
  background: var(--blue-soft);
  font-size: 15px !important;
  font-weight: 850 !important;
}

.batch-device-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-temp-row .temperature-meta span {
  margin-top: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.batch-temp-row .temperature-input {
  min-height: 56px;
  font-size: 26px;
  padding: 8px 42px 8px 14px;
}

.batch-quick {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.batch-quick .quick-value {
  min-height: 48px;
  font-size: 15px;
  font-weight: 850;
  padding: 8px 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.batch-quick .quick-value.is-active {
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(22, 115, 60, 0.18);
}

.workflow-temperature {
  padding: 12px !important;
  display: grid;
  gap: 10px;
}

.workflow-temperature .inline-note {
  margin: 0 0 4px;
}

.dialog-footer .button-primary {
  min-height: 56px;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.task-button,
.action-tile,
.module-tile,
.nav-item,
.quick-value,
.settings-row {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.task-button:active,
.action-tile:active,
.module-tile:active,
.quick-value:active,
.button:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.nav-item.is-active {
  color: var(--green);
  background: var(--green-soft);
}

.today-summary {
  padding: 16px 14px;
}

.progress-value {
  font-size: 36px;
}

.module-tile {
  min-height: 120px;
  gap: 12px;
  padding: 14px;
}

.action-tile {
  min-height: 120px;
  padding: 14px;
}

.count-badge.is-urgent {
  background: var(--amber);
}

.count-badge.is-danger {
  background: var(--red);
}

.cleaning-config-row {
  padding: 12px;
}

.cleaning-config-heading strong {
  font-size: 15px;
}

/* Higher contrast for bright kitchen lighting */
:root {
  --ink: #0f1614;
  --muted: #5a6561;
  --line: #d5dcd8;
}

.temperature-row.is-danger .temperature-input {
  border-color: #c94a40;
  color: var(--red);
}

.temperature-row.is-normal .temperature-input {
  border-color: #5aad72;
}

@media (max-width: 420px) {
  .batch-temp-row .temperature-input {
    min-height: 52px;
    font-size: 24px;
  }

  .batch-quick .quick-value {
    min-height: 46px;
    font-size: 14px;
  }

  .dialog-body {
    padding: 12px 10px;
  }
}
