/* SIMMER — modal / drawer layer */

.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(34,37,30,.44);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .14s ease-out;
}
@keyframes fade { from { opacity: 0; } }

.modal {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  animation: pop .16s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
.modal.wide { max-width: 900px; }
.modal.tall { max-width: 1040px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }

.modal-head {
  padding: 15px 18px; border-bottom: 1px solid var(--shade);
  display: flex; align-items: center; gap: 12px; flex: none;
}
.modal-head h2 { font-size: 19px; flex: 1; }
.modal-head .x {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-size: 21px; line-height: 1; color: var(--ink-3); padding: 4px 8px; border-radius: var(--r-sm);
}
.modal-head .x:hover { background: var(--shade); color: var(--ink); }

.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 13px 18px; border-top: 1px solid var(--shade);
  display: flex; gap: 9px; justify-content: flex-end; flex: none;
  background: var(--paper);
}
.modal-foot .spread { margin-right: auto; }

/* location picker — cascading zone > shelf */
.locpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.locpick-col { border: 1px solid var(--shade-2); border-radius: var(--r); overflow: hidden; background: var(--enamel); }
.locpick-col .h { padding: 6px 10px; background: var(--paper); border-bottom: 1px solid var(--shade); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.locpick-col .opts { max-height: 190px; overflow-y: auto; }
.locpick-opt {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  font: inherit; font-size: 13.5px; padding: 8px 11px; cursor: pointer;
  border-bottom: 1px solid var(--shade);
}
.locpick-opt:hover { background: var(--pine-lt); }
.locpick-opt.on { background: var(--pine); color: #fff; font-weight: 600; }

/* quick-date buttons on the receive form */
.datequick { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.datequick .btn { font-size: 11.5px; padding: 3px 9px; }

/* the "use it" consume stepper */
.stepper { display: flex; align-items: center; gap: 0; }
.stepper button {
  width: 38px; height: 38px; border: 1px solid var(--shade-2); background: var(--paper-2);
  cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink-2);
}
.stepper button:first-child { border-radius: var(--r) 0 0 var(--r); }
.stepper button:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.stepper button:hover { background: var(--shade); }
.stepper input {
  width: 78px; text-align: center; border-radius: 0; border-left: 0; border-right: 0;
  font-size: 15px; font-weight: 600; height: 38px;
}

/* lot list inside the item drawer (rotation order) */
.lotrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--shade); border-radius: var(--r);
  margin-bottom: 6px; background: var(--enamel); font-size: 13.5px;
}
.lotrow .oldest { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--copper); }
.lotrow .li { flex: 1; min-width: 0; }
.lotrow .lsub { font-size: 11.5px; color: var(--ink-3); }

/* tiny inline list used in confirmations */
ul.plain { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
