/* Produzione Settimana */

.prod-week {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 6px;
}

.prod-nav {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
}

.prod-week-title {
  display: grid;
  gap: 2px;
  place-content: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}

.prod-week-title b {
  font-size: 20px;
}

.prod-week-title span {
  color: var(--muted);
  font-size: 14px;
}

.prod-today {
  display: block;
  margin: 4px auto 10px;
}

.prod-total {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

.prod-total > div {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-1, none);
}

.prod-total > div:first-child {
  background: linear-gradient(135deg, #2c6a52, #1d4636);
  color: #fff;
}

.prod-total span {
  font-size: 14px;
  opacity: 0.85;
}

.prod-total b {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.prod-total em {
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
}

.prod-total em.up {
  color: #2f8a5a;
}

.prod-total em.down {
  color: var(--red);
}

.prod-add {
  min-height: 60px;
  margin-bottom: 14px;
  font-size: 19px;
}

.prod-days {
  display: grid;
  gap: 12px;
}

.prod-day {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.prod-day.empty {
  background: transparent;
  border-style: dashed;
}

.prod-day header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.prod-day header b {
  font-size: 17px;
}

.prod-day header small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.prod-day header strong {
  font-size: 18px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prod-rows {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.prod-rows li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 6px 4px;
  border-top: 1px solid var(--soft);
  cursor: pointer;
}

.prod-rows li:active {
  background: var(--soft);
}

.prod-rows .art {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.prod-rows .bol {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.prod-rows .pai {
  min-width: 64px;
  font-weight: 800;
  font-size: 17px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.prod-day-add {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}

.prod-actions {
  margin-top: 18px;
}

.prod-import {
  margin-top: 14px;
}

.prod-form .field {
  margin-bottom: 14px;
}

.prod-form input {
  min-height: 52px;
  font-size: 18px;
}

.prod-form .big-number {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip-row.suggest:empty {
  display: none;
}

.chip-choice {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font-weight: 700;
}

.chip-choice.small {
  min-height: 42px;
  font-size: 14px;
}

.chip-choice.on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.bolla-info:empty {
  display: none;
}

.prod-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prod-form-actions .button.primary {
  grid-column: 1 / -1;
  min-height: 56px;
  font-size: 18px;
}

.form-error {
  color: var(--red);
  font-weight: 700;
}

.prod-history,
.prod-report {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.prod-weeks {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.prod-weeks li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
}

.prod-weeks li span {
  color: var(--muted);
  font-size: 14px;
}

.prod-weeks li strong {
  font-variant-numeric: tabular-nums;
}

.prod-weeks li i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #c9762f;
}

@media (min-width: 781px) {
  .prod-page {
    max-width: 860px;
  }
}
