/* P5-125 PARTS INVENTORY. Phone first: glove floors (every tap target at
   least 56 px tall, 18 px text). At desk widths (>= 900 px) the office
   layout: count on the left, on hand on the right. */

/* hidden always wins (the DVIR lesson, 2026-09-25) */
.inv-main [hidden] { display: none !important; }

.inv-main { padding: 12px; font-size: 18px; max-width: 1400px; margin: 0 auto; }
.inv-status:empty { display: none; }
.inv-status { font-weight: 600; }
.inv-field { display: block; margin: 10px 0; }
.inv-field span { display: block; margin-bottom: 4px; }
.inv-field select, .inv-field input, .inv-line input, .inv-line select {
  width: 100%; min-height: 56px; font-size: 18px; box-sizing: border-box; padding: 8px; }
.inv-btn { display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; min-width: 120px; padding: 0 18px; margin: 6px 6px 6px 0;
  font-size: 18px; font-weight: 600; border-radius: 10px; border: 2px solid currentColor;
  cursor: pointer; text-decoration: none; box-sizing: border-box; }
.inv-photo-btn { width: 100%; }
.inv-secondary { font-weight: 400; }

/* the wait: the hurricane, counter-clockwise like page-wait.css */
@keyframes inv-hspin { to { transform: rotate(-360deg); } }
.inv-wait { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.inv-hurricane { width: 72px; height: 72px; flex: none;
  background: url(img/hurricane-512.png) center / contain no-repeat;
  animation: inv-hspin 1.2s linear infinite; }

.inv-proposal { display: flex; flex-direction: column; gap: 12px; }
.inv-photo { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 8px; }
.inv-line { border: 1px solid rgba(127, 127, 127, .5); border-radius: 10px; padding: 10px; }
.inv-line-name { font-weight: 700; }
.inv-line-meta { opacity: .8; font-size: 16px; }
.inv-line-count { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.inv-unsure { color: #b26b00; font-weight: 700; }
.inv-done { font-weight: 700; }

.inv-rack { margin: 14px 0; }
.inv-rack h3 { margin: 6px 0; }
.inv-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(127, 127, 127, .3); }
.inv-low { color: #fff; background: #b00020; border-radius: 6px; padding: 2px 8px;
  font-weight: 700; margin-left: 8px; }
.inv-row-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.inv-row-tools input { width: 120px; min-height: 56px; font-size: 18px; }

@media (min-width: 900px) {
  .inv-main { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.3fr);
    gap: 28px; align-items: start; font-size: 16px; }
  .inv-status { grid-column: 1 / -1; }
  .inv-proposal { flex-direction: row; align-items: flex-start; }
  .inv-photo { width: 50%; }
  .inv-lines { flex: 1; }
  .inv-row { grid-template-columns: 2fr 1fr 1fr auto; }
  .inv-row-tools { grid-column: auto; }
}
