/* Phase 6: assembly on the phone (montage/*, abnahme/*), Plantafel, Lager */

.mt-page {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mt-page h2 {
  font-size: 1.3rem;
  line-height: 1.3;
}

.mt-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--main-green);
  padding: .5rem 0;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid black;
}

.mt-bar .pill-btn {
  min-width: 0;
  padding: .4rem .9rem;
}

.mt-step {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid #ccc;
}

.mt-step input[type=checkbox] {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 1.7rem;
  accent-color: #2e7d5b;
}

.mt-step.done .mt-step-label {
  text-decoration: line-through;
  opacity: .55;
}

.mt-step-label {
  font-size: 1rem;
  line-height: 1.35;
}

.mt-step-sub {
  font-family: 'Martian Mono', monospace;
  font-size: .72rem;
  font-weight: 100;
  opacity: .75;
  margin-top: .15rem;
}

.mt-step-note {
  margin-left: auto;
  font-size: .75rem;
  white-space: nowrap;
}

.mt-progress {
  height: .6rem;
  border: 1px solid black;
  border-radius: 1rem;
  overflow: hidden;
}

.mt-progress > div {
  height: 100%;
  background: #2e7d5b;
}

.mt-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: .4rem;
}

.mt-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.mt-big {
  font-size: 1rem;
  padding: .8rem 1rem;
  width: 100%;
  justify-content: center;
}

.mt-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.mt-form textarea,
.mt-form input,
.mt-form select {
  font-size: 1rem;
  border-radius: 10px;
}

.mt-sig {
  width: 100%;
  height: 11rem;
  border: 1px dashed black;
  border-radius: 10px;
  touch-action: none;
  background: white;
}

/* Plantafel */
.pt-wrap {
  overflow-x: auto;
}

.pt-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 60rem;
  font-size: .78rem;
}

.pt-grid th,
.pt-grid td {
  border: 1px solid #bbb;
  vertical-align: top;
  padding: .25rem;
}

.pt-grid th {
  font-family: 'Martian Mono', monospace;
  font-weight: 400;
  background: #f4f4f4;
  position: sticky;
  top: 0;
}

.pt-grid td.pt-name {
  white-space: nowrap;
  font-family: 'Martian Mono', monospace;
  font-weight: 100;
}

.pt-grid td.pt-today {
  background: #f3faf6;
}

.pt-grid tr.pt-team td {
  background: #222;
  color: white;
  font-family: 'Martian Mono', monospace;
  font-size: .72rem;
}

.pt-card {
  display: block;
  border: 1px solid black;
  border-radius: 6px;
  padding: .2rem .35rem;
  margin-bottom: .2rem;
  background: white;
  cursor: pointer;
  line-height: 1.25;
}

.pt-card.vorl {
  border-style: dashed;
}

.pt-card.konflikt {
  border-color: #c2561f;
  box-shadow: 0 0 0 2px #c2561f33;
}

.pt-card.bad {
  background: #fff4ec;
}

.pt-card small {
  opacity: .75;
}

.pt-panel {
  position: fixed;
  right: 1rem;
  top: 5rem;
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  background: var(--main-green);
  border: 1px solid black;
  border-radius: 10px;
  padding: 1rem;
  z-index: 50;
  box-shadow: 0 6px 30px #0003;
}
