* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f2ee;
  color: #2b2320;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem;
  min-height: 100vh;
}

.screen h1 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.25rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #c9beb2;
  border-radius: 6px;
  background: #fff;
}

textarea {
  min-height: 4rem;
  resize: vertical;
}

button {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #6f4e37;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #e4dcd2;
  color: #2b2320;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.qty-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.qty-hint {
    font-size: 0.8rem;
    color: #6b5f54;
    margin: 0.35rem 0 0;
    text-align: right;
}

input:disabled {
  background: #ececec;
  color: #6b5f54;
}

.error {
  color: #a3231f;
  font-weight: 600;
  margin-top: 0.75rem;
}

.notice {
  background: #fff4d6;
  border: 1px solid #e8cf8a;
  border-radius: 6px;
  padding: 0.6rem;
  margin-top: 0.75rem;
}

.direction-banner {
  background: #dfe9df;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.maps-link {
  display: block;
  color: #2a5db0;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

.progress {
  font-size: 0.85rem;
  color: #6b5f54;
  margin: 0 0 0.5rem;
}

.delivered-qty {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

#pending-list {
  padding-left: 1.25rem;
}

#app-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f5f2ee;
  border-bottom: 1px solid #e4dcd2;
  z-index: 10;
}

#app-title {
  font-weight: 700;
  color: #2b2320;
  font-size: 1.05rem;
}

#menuBtn {
  width: auto;
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: #2b2320;
  font-size: 1.3rem;
  border: 1px solid #c9beb2;
  border-radius: 6px;
}

#menuDropdown {
  position: absolute;
  top: 2.5rem;
  right: 1rem;
  background: #fff;
  border: 1px solid #c9beb2;
  border-radius: 6px;
  padding: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#menuDropdown button {
  margin: 0;
  width: auto;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #a3231f;
}
