#warehouse-receipt-root {
  width: 100%;
  max-width: 1100px;
}

#warehouse-receipt-form.warehouse-receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1100px;
  gap: 16px;
}

#warehouse-receipt-form > .panel {
  width: 100%;
  margin: 0;
}

.warehouse-receipt-steps {
  width: 100%;
  max-width: 1100px;
}
.warehouse-receipt-steps li{padding:0}
.warehouse-receipt-steps li button{display:flex;align-items:center;gap:8px;width:100%;min-height:56px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left}
.warehouse-receipt-steps li button:hover{background:#f1f5f9}
.warehouse-receipt-steps li button:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}
.warehouse-receipt-steps li.active button{cursor:default}

.warehouse-receipt-grid input,
.warehouse-receipt-grid select,
.warehouse-receipt-grid textarea {
  width: 100%;
  min-width: 0;
}

.warehouse-receipt-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.warehouse-branch-editor {
  display: grid;
  align-content: start;
  gap: 7px;
}

.warehouse-branch-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.warehouse-branch-create label {
  font-size: 0;
}

.warehouse-branch-create input {
  width: 100%;
  min-height: 40px;
  font-size: 14px;
}

.warehouse-partner-editor {
  display: grid;
  align-content: start;
  gap: 7px;
}

.warehouse-receipt-grid > .warehouse-branch-editor,
.warehouse-receipt-grid > label:has([name="receivedAt"]) {
  min-width: 0;
  width: 100%;
}

.warehouse-receipt-grid [name="branchName"],
.warehouse-receipt-grid [name="receivedAt"] {
  width: 100%;
  min-height: 50px;
  height: 50px;
  padding-inline: 14px;
}

.warehouse-wheel-count-control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  margin-top: 6px;
}

.warehouse-wheel-count-control input {
  height: 50px;
  border-radius: 0;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
}

.warehouse-wheel-count-control input::-webkit-inner-spin-button,
.warehouse-wheel-count-control input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.warehouse-wheel-count-control button {
  min-width: 48px;
  min-height: 50px;
  padding: 0;
  border: 1px solid #b8d4fb;
  border-radius: 9px 0 0 9px;
  background: #e8f2ff;
  color: #174b8c;
  font-size: 25px;
  font-weight: 800;
  touch-action: manipulation;
}

.warehouse-wheel-count-control button:last-child {
  border-radius: 0 9px 9px 0;
}

.warehouse-wheel-count-control button:disabled {
  opacity: .42;
  cursor: default;
}

.warehouse-wheel-count-control button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .3);
  outline-offset: 2px;
}

.warehouse-requester > .warehouse-partner-editor {
  width: 33.333%;
}

.warehouse-partner-editor > button {
  justify-self: start;
  min-height: 38px;
}

.warehouse-partner-editor > .warehouse-partner-delete {
  border-color: #fecaca;
  color: #b91c1c;
}

.warehouse-partner-editor option[value^="__DELETE_PARTNER__"] {
  color: #c1121f;
  font-weight: 800;
}

.warehouse-branch-editor option[value^="__DELETE_BRANCH__"] {
  color: #c1121f;
  font-weight: 800;
}

.warehouse-partner-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.warehouse-partner-create input,
.warehouse-partner-create button {
  min-height: 40px;
}

.warehouse-partner-hint {
  color: var(--muted);
  font-size: 12px;
}

.warehouse-catalog-create-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.warehouse-catalog-create-actions button {
  min-height: 40px;
  white-space: nowrap;
}

.warehouse-catalog-search {
  margin: 6px 0;
  min-height: 38px;
}

.warehouse-catalog-message {
  max-width: 1100px;
  margin: 0 0 14px;
  padding: 12px 15px;
  border: 1px solid #86efac;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}

.warehouse-receipt-next-slot {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.warehouse-receipt-next-slot button {
  width: min(100%, 238px);
  min-height: 58px;
  font-size: 16px;
  font-weight: 800;
}
.warehouse-receipt-next-slot{display:grid;grid-template-columns:repeat(2,minmax(0,300px));gap:12px}
.warehouse-receipt-next-slot button{width:100%}
.warehouse-conditional-action{display:grid;gap:6px;text-align:center}
.warehouse-conditional-action small{color:#9a3412;font-size:12px;font-weight:700}
.warehouse-receipt-next-slot .warehouse-conditional-receipt{background:#fff7ed;color:#9a3412;border:2px solid #f97316}
.warehouse-receipt-next-slot .warehouse-conditional-receipt:hover{background:#ffedd5}
.warehouse-conditional-status{padding:12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-weight:800}
.warehouse-conditional-error-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.62)}
.warehouse-conditional-error-dialog{width:min(100%,520px);padding:28px;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.35);text-align:center}
.warehouse-conditional-error-dialog h2{margin:6px 0 12px}
.warehouse-conditional-error-dialog p:not(.warehouse-confirm-kicker){font-size:18px;line-height:1.5}
.warehouse-conditional-error-dialog button{width:min(100%,240px);min-height:54px;margin-top:12px;font-size:18px;font-weight:800}

.warehouse-intake-photo {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.warehouse-intake-photo h3,
.warehouse-intake-photo p {
  margin: 0;
}

.warehouse-intake-photo h3 span {
  color: #dc2626;
}

.warehouse-photo-picker {
  display: grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 100%;
  min-height: 124px;
  padding: 17px 22px;
  border: 2px dashed #8bb7f1;
  border-radius: 16px;
  background: #eef6ff;
  color: #153e75;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.warehouse-photo-picker-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  border-radius: 14px;
  background: #dbeafe;
  font-size: 22px;
}

.warehouse-photo-picker strong {
  font-size: 18px;
}

.warehouse-photo-picker small {
  margin-top: 3px;
  color: #5d7390;
  font-size: 13px;
  font-weight: 600;
}

.warehouse-photo-picker:hover {
  border-color: #2563eb;
  background: #e5f1ff;
  transform: translateY(-1px);
}

.warehouse-photo-picker:focus-within {
  outline: 3px solid rgba(31, 111, 229, .3);
  outline-offset: 3px;
}

.warehouse-photo-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.warehouse-photo-picker.has-photo {
  display: none;
}

.warehouse-intake-photo .warehouse-receipt-file-name {
  justify-self: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #1e4f8f;
  font-size: 13px;
  font-weight: 700;
}

.warehouse-intake-photo .warehouse-receipt-file-name.is-empty {
  background: #eef2f7;
  color: #64748b;
}

.warehouse-partner-editor.has-selected-partner select{border-color:#3b82f6;background:#eff6ff;color:#123f78;font-weight:750;box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.warehouse-partner-editor.has-selected-partner label{color:#1e4f8f;font-weight:750}

.warehouse-photo-preview {
  display: grid;
  gap: 12px;
  margin: 14px auto 8px;
  max-width: 520px;
}

.warehouse-photo-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
}

.warehouse-photo-preview-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.warehouse-photo-preview-actions button{min-height:48px}
.warehouse-photo-quality{margin:0;padding:9px 11px;border-radius:10px;text-align:center;font-weight:700}
.warehouse-photo-quality.is-good{background:#ecfdf5;color:#166534}
.warehouse-photo-quality.is-warning{background:#fff7ed;color:#9a3412}
.warehouse-ocr-review{display:grid;gap:14px;padding:16px;border:2px solid #2563eb;border-radius:14px;background:#eff6ff}
.warehouse-ocr-review h4,.warehouse-ocr-review p{margin:0}.warehouse-ocr-review>div:first-child{display:grid;gap:5px}.warehouse-ocr-review>div:first-child>span{font-size:12px;font-weight:900;letter-spacing:.08em;color:#1d4ed8}
.warehouse-ocr-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-ocr-review-grid label{display:grid;gap:6px;font-weight:700}.warehouse-ocr-review-grid input{min-width:0;min-height:48px;background:#fff}

.warehouse-vehicle-history{display:grid;gap:12px;padding-top:16px;border-top:1px solid #dbe5f1}
.warehouse-vehicle-history h4,.warehouse-vehicle-history-hint{margin:0}
.warehouse-vehicle-history-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.warehouse-vehicle-source{padding:6px 9px;border-radius:999px;background:#eef2f7;color:#475569;font-size:12px;font-weight:800}
.warehouse-vehicle-source.is-automatic{background:#dcfce7;color:#166534}
.warehouse-vehicle-history-hint{color:var(--muted)}
.warehouse-vehicle-identity{display:grid;grid-template-columns:1fr;gap:12px}
.warehouse-vehicle-identity label{display:grid;gap:6px}
.warehouse-vehicle-identity input{min-height:52px;font-size:18px;font-weight:700;text-transform:uppercase}
.warehouse-vehicle-identity button{width:100%;min-height:54px;font-size:17px}
.warehouse-vin-hint{color:#9a3412;font-weight:700}
.warehouse-vehicle-history>p[role="status"]{margin:0;padding:9px 11px;border-radius:10px;background:#eff6ff;color:#1e4f8f;font-weight:700}
.warehouse-vehicle-history article{display:grid;gap:6px;padding:12px;border:1px solid #86efac;border-radius:12px;background:#f0fdf4;color:#166534}
.warehouse-vehicle-history article span{color:#367451}
.warehouse-vehicle-history article b{padding-top:4px;color:#166534}
.warehouse-vehicle-history article button{justify-self:start}

@media (min-width: 820px) {
  .warehouse-vehicle-identity{grid-template-columns:1fr 1.25fr}
  .warehouse-vehicle-identity button{grid-column:1/-1}
}

@media (max-width: 600px) {
  .warehouse-ocr-review-grid{grid-template-columns:1fr}
  .warehouse-photo-preview-actions {
    grid-template-columns: 1fr;
  }
}

.warehouse-quick-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.warehouse-quick-note input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.warehouse-photo-note-editor,
.warehouse-photo-note-create {
  display: grid;
  gap: 8px;
}

.warehouse-photo-note-label{display:block;margin-bottom:8px;font-weight:600;color:var(--muted)}
.warehouse-photo-note-toggle{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;background:#fff;color:var(--text);border:1px solid var(--line)}
.warehouse-photo-note-toggle span:first-child{min-width:0;overflow-wrap:anywhere}
.warehouse-photo-note-menu{display:grid;gap:4px;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff}
.warehouse-photo-note-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}
.warehouse-photo-note-row label{display:flex;flex:1;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:10px 6px;color:var(--text)}
.warehouse-photo-note-row input{width:20px;height:20px;margin:0}
.warehouse-photo-note-delete{width:auto;padding:8px;background:transparent;color:#b42318;border:0;font-weight:700}
.warehouse-photo-note-clear,.warehouse-photo-note-add-trigger{width:100%;text-align:left;background:transparent;color:var(--text);border:0}
.warehouse-photo-note-clear.is-selected{font-weight:800;color:var(--primary)}

.warehouse-common-wheel-sizes{margin-bottom:18px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.warehouse-common-wheel-sizes h3{margin:0 0 12px}
.warehouse-different-sizes{display:flex;align-items:center;gap:10px;margin-top:14px;font-weight:700}
.warehouse-different-sizes input{width:20px;height:20px;margin:0}
.warehouse-guide-count{margin:0 0 6px;color:var(--primary);font-weight:800}
.warehouse-guide-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 18px;padding:0 2px 16px;border-bottom:1px solid #e2e8f0;list-style:none}
.warehouse-guide-progress li{position:relative;display:grid;justify-items:center;gap:4px;color:#94a3b8;text-align:center}
.warehouse-guide-progress li:not(:last-child)::after{content:"";position:absolute;top:14px;left:calc(50% + 17px);width:calc(100% - 34px);height:3px;background:#dbe5f1}
.warehouse-guide-progress li.is-done:not(:last-child)::after{background:#60a5fa}
.warehouse-guide-progress li span{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e2e8f0;color:#64748b;font-weight:800}
.warehouse-guide-progress li.is-current span,.warehouse-guide-progress li.is-done span{background:#2563eb;color:#fff}
.warehouse-guide-progress li.is-current small{color:#1e3a8a;font-weight:800}
.warehouse-guide-progress li.is-done small{color:#475569}
.warehouse-common-wheel-sizes select,.warehouse-common-wheel-sizes input{width:100%;min-height:48px}
.warehouse-rim-size-field{display:grid;gap:7px}
.warehouse-rim-size-control{display:grid;grid-template-columns:60px minmax(0,1fr) 60px}
.warehouse-rim-size-control button{min-width:60px;min-height:58px;padding:0;border:1px solid #b8d4fb;border-radius:10px 0 0 10px;background:#e8f2ff;color:#174b8c;font-size:27px;font-weight:800;touch-action:manipulation}
.warehouse-rim-size-control button:last-child{border-radius:0 10px 10px 0}
.warehouse-rim-size-control button:disabled{opacity:.42;cursor:default}
.warehouse-rim-size-control output{display:flex;align-items:center;justify-content:center;min-height:58px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;color:#0f172a;font-size:23px;font-weight:900}
.warehouse-rim-size-control output small{margin-left:2px;font-size:16px}
.warehouse-history-prefill{margin:0 0 12px;padding:9px 11px;border-radius:10px;background:#ecfdf5;color:#166534;font-weight:700}
.warehouse-mixed-rim-stage{display:grid;gap:4px;margin:2px 0 12px;padding:11px 12px;border-radius:10px;background:#eaf3ff;color:#1e4f8f}
.warehouse-mixed-rim-stage span{font-size:12px;font-weight:800;text-transform:uppercase}
.warehouse-mixed-rim-stage strong{font-size:17px}
.warehouse-mixed-rim-stage small{color:#496b98;font-weight:700}
.warehouse-confirm-rim{width:100%;min-height:54px;margin-top:14px}
.warehouse-tire-size-selects.warehouse-tire-size-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.warehouse-selected-tire-size{display:grid;gap:11px;margin:10px 0 4px;padding:12px 14px;border:1px solid;border-radius:12px}
.warehouse-selected-tire-size.is-complete{border-color:#86efac;background:#f0fdf4;color:#166534}
.warehouse-selected-tire-size.is-incomplete{border-color:#fed7aa;background:#fff7ed;color:#9a3412}
.warehouse-selected-tire-size header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.warehouse-selected-tire-size header span{padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.72);font-size:12px;font-weight:800}
.warehouse-selected-tire-size header strong{font-size:13px}
.warehouse-selected-tire-size>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px}
.warehouse-selected-tire-size>div .warehouse-tire-size-choice,.warehouse-selected-tire-size>div .warehouse-tire-size-fixed{position:relative;display:grid;justify-items:center;gap:2px;min-width:0;padding:10px 6px;border:2px solid transparent;border-radius:9px;background:#fff}
.warehouse-tire-size-choice{cursor:pointer;touch-action:manipulation}
.warehouse-tire-size-choice:hover,.warehouse-tire-size-choice:focus-within{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.warehouse-tire-size-choice select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.warehouse-tire-size-choice em{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:#1e4f8f;font-size:18px;font-style:normal;font-weight:900}
.warehouse-selected-tire-size b{font-size:22px;line-height:1.1}
.warehouse-selected-tire-size small{color:#64748b;font-size:11px;font-weight:700}
.warehouse-selected-tire-size i{font-size:22px;font-style:normal;font-weight:800}
.warehouse-tire-size-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.warehouse-tire-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.warehouse-tire-catalog-editor{min-width:0}
.warehouse-tire-catalog-editor select.needs-brand{color:#64748b;background-color:#f8fafc}
.warehouse-tire-catalog-create{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;margin-top:8px}
.warehouse-tire-catalog-create input,.warehouse-tire-catalog-create select{min-width:0}
.warehouse-receipt-wheel summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;list-style:none}
.warehouse-receipt-wheel summary::-webkit-details-marker{display:none}
.warehouse-receipt-wheel summary span{color:var(--muted);font-size:.9rem;text-align:right}
.warehouse-receipt-wheel{transition:border-color .2s,background .2s,box-shadow .2s}.warehouse-receipt-wheel.wheel-is-current{border-color:#3b82f6;background:#f8fbff;box-shadow:0 0 0 2px #dbeafe}.warehouse-receipt-wheel.wheel-is-complete{border-color:#86efac;background:#f7fef9}.warehouse-receipt-wheel.wheel-needs-check{border-color:#fdba74;background:#fffaf5}.warehouse-receipt-wheel>summary{display:grid;grid-template-columns:44px minmax(120px,.8fr) minmax(210px,1.5fr) 24px!important;min-height:62px}.warehouse-wheel-number{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e8f2ff;color:#1d4ed8!important;font-size:18px!important;font-weight:900}.wheel-is-complete .warehouse-wheel-number{background:#dcfce7;color:#166534!important}.wheel-needs-check .warehouse-wheel-number{background:#ffedd5;color:#c2410c!important}.warehouse-wheel-summary-title{display:grid;gap:2px;text-align:left!important}.warehouse-wheel-summary-title strong{color:#0f172a;font-size:16px}.warehouse-wheel-summary-title small{color:#64748b;font-size:12px}.warehouse-wheel-summary-status{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.warehouse-wheel-summary-status em{padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-style:normal;font-weight:750;white-space:nowrap}.wheel-is-complete .warehouse-wheel-summary-status em{background:#dcfce7;color:#166534}.wheel-needs-check .warehouse-wheel-summary-status em{background:#ffedd5;color:#9a3412}.warehouse-wheel-chevron{color:#64748b!important;font-size:28px!important;line-height:1;transition:transform .2s}.warehouse-receipt-wheel[open] .warehouse-wheel-chevron{transform:rotate(90deg)}
.warehouse-wheel-card-body{display:grid;gap:14px;margin-top:14px}
.warehouse-wheel-position{display:grid;border:1px solid #dbe5f1;border-radius:12px;background:#f8fafc;overflow:hidden}
.warehouse-wheel-position-trigger{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:58px;padding:10px 12px;border:0;border-radius:0;background:#f8fafc;color:#0f172a;text-align:left}
.warehouse-wheel-position-trigger>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#e8f2ff;color:#1e4f8f;font-size:20px}
.warehouse-wheel-position-trigger.is-complete{border-color:#86efac;background:#f0fdf4;color:#166534}
.warehouse-wheel-position-trigger.is-complete>span{background:#dcfce7;color:#166534}
.warehouse-wheel-position-trigger strong{font-size:16px}
.warehouse-wheel-position-trigger small{color:#64748b;font-weight:700;text-align:right}
.warehouse-wheel-position-picker{display:grid;gap:10px;padding:12px;border-top:1px solid #dbe5f1}
.warehouse-wheel-position-picker>p{margin:0;color:#475569;font-weight:700}
.warehouse-receipt-wheel-fields.has-remarks-only{grid-template-columns:1fr}
.warehouse-wheel-position-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.warehouse-wheel-position-options button{min-width:0;min-height:48px;padding:8px;border:2px solid #d7e0ec;background:#fff;color:#334155}
.warehouse-wheel-position-options button.is-selected{border-color:#2563eb;background:#eaf3ff;color:#1e4f8f;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.warehouse-wheel-position-options button:disabled{opacity:.38;cursor:not-allowed}
.warehouse-wheel-position-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.warehouse-wheel-position-actions button{min-height:48px}
.warehouse-wheel-damage-tags{display:flex;flex-wrap:wrap;gap:8px}
.warehouse-wheel-damage-tags button{min-height:38px;padding:8px 12px}
.warehouse-wheel-photo-list{display:grid;gap:12px}
.warehouse-wheel-photo-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.warehouse-wheel-photo-card img{width:160px;height:130px;object-fit:cover;border-radius:10px}
.warehouse-wheel-photo-card>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}.warehouse-wheel-photo-card .warehouse-wheel-photo-ocr{grid-column:1/-1}.warehouse-wheel-photo-remove{grid-column:1/-1;justify-self:end;min-width:150px}
.warehouse-wheel-photo-add{display:grid;place-items:center;min-height:64px;padding:14px;border-radius:12px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer;text-align:center}
.warehouse-wheel-photo-add input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.warehouse-wheel-guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.warehouse-wheel-guide-actions button{width:100%;min-height:48px}
.warehouse-size-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.warehouse-size-mode button{min-height:48px}
.warehouse-size-mode .is-active{box-shadow:0 0 0 3px rgba(37,99,235,.18)}
.warehouse-storage-type{margin:0;padding:0 0 16px;border:0;border-bottom:1px solid var(--line)}
.warehouse-storage-type legend{margin-bottom:10px;font-size:18px;font-weight:800}
.warehouse-storage-type>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.warehouse-storage-type button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:84px;padding:10px;background:#fff;color:var(--text);border:2px solid var(--line);transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease}
.warehouse-storage-type button:not(.is-active){opacity:.78}
.warehouse-storage-type button:not(.is-active):hover{opacity:1;border-color:#93c5fd}
.warehouse-storage-type .warehouse-storage-icon{font-size:24px;line-height:1}
.warehouse-storage-type button.is-active{z-index:1;color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(37,99,235,.2),0 8px 18px rgba(37,99,235,.22);transform:translateY(-2px)}
.warehouse-storage-selected{font-size:12px;font-weight:800;color:#dbeafe}
.warehouse-storage-choice{display:none}
.warehouse-storage-type small{display:block;margin-top:10px;color:var(--muted)}
.warehouse-required-mark,.warehouse-required-hint>span{color:#dc2626;font-weight:900}.warehouse-required-hint{margin:4px 0 12px;color:#64748b;font-size:14px}.warehouse-required-hint>span{margin-right:4px}
.warehouse-tire-scan-shortcut{display:grid;grid-template-columns:minmax(190px,.72fr) minmax(320px,1.28fr);align-items:center;gap:18px;margin:14px 0 18px;padding:14px;border:2px solid #93c5fd;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f8fbff);box-shadow:0 8px 20px rgba(37,99,235,.08)}
.warehouse-tire-scan-shortcut>div{display:grid;gap:3px;min-width:0}.warehouse-tire-scan-shortcut strong{color:#0f3f79;font-size:17px}.warehouse-tire-scan-shortcut small{color:#526b8d;font-weight:650}
.warehouse-tire-scan-button{position:relative;display:grid;place-items:center;min-height:48px;padding:10px 18px;border-radius:10px;background:#2563eb;color:#fff;font-weight:800;cursor:pointer;white-space:nowrap;box-shadow:0 5px 12px rgba(37,99,235,.2)}
.warehouse-tire-scan-button:hover{background:#1d4ed8}.warehouse-tire-scan-button:focus-within{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}.warehouse-tire-scan-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.warehouse-tire-scan-shortcut .fjn-photo-picker-icon{width:64px;height:64px;margin:0;border-radius:18px;font-size:34px}.warehouse-tire-scan-shortcut .fjn-photo-picker strong{margin-top:14px;font-size:21px}
.warehouse-requester{display:grid;gap:12px}
.warehouse-requester-label{margin:0;font-weight:700;color:var(--muted)}
.warehouse-requester-label span{color:#dc2626}
.warehouse-requester-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.warehouse-requester-types button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:68px;background:#fff;color:var(--text);border:2px solid var(--line);opacity:.8;transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease}
.warehouse-requester-types button:hover{opacity:1;border-color:#93c5fd}
.warehouse-requester-types button.is-active{z-index:1;color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(37,99,235,.2),0 8px 18px rgba(37,99,235,.22);opacity:1;transform:translateY(-2px)}
.warehouse-requester-types button span{font-size:12px;font-weight:800;color:#dbeafe}
.warehouse-company-nip-lookup{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:12px;border-radius:10px;background:#eff6ff}
.warehouse-company-nip-lookup button{min-height:48px}
.warehouse-customer-search{display:grid;gap:10px;padding:12px;border-radius:12px;background:#eff6ff}
.warehouse-customer-search>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.warehouse-customer-search>div:first-child button{min-height:48px}
.warehouse-customer-search>p{margin:0;color:#1e4f8f;font-weight:700}
.warehouse-customer-results{display:grid;gap:8px}
.warehouse-customer-create-new{justify-self:start;background:transparent;color:#1e4f8f}
.warehouse-customer-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #bfdbfe;border-radius:10px;background:#fff}
.warehouse-customer-result>div{display:grid;gap:3px;min-width:0}
.warehouse-customer-result span,.warehouse-customer-result small{color:var(--muted);overflow-wrap:anywhere}
.warehouse-customer-result button{min-height:42px}
.warehouse-receipt-grid textarea[name="notes"]{min-height:96px;height:96px}
.warehouse-gus-hint{color:var(--muted)}
.warehouse-gus-message{margin:0;padding:10px 12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-weight:700}
.warehouse-gus-company{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:8px;padding:14px;border:1px solid #86efac;border-radius:12px;background:#f0fdf4;color:#166534}
.warehouse-gus-company strong,.warehouse-gus-company span:last-of-type,.warehouse-gus-company small{grid-column:1/-1}
.warehouse-gus-company small{color:#367451}
.warehouse-company-found{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:8px;padding:12px;border:1px solid #86efac;border-radius:10px;background:#f0fdf4;color:#166534}
.warehouse-company-found span{overflow-wrap:anywhere}
.warehouse-customer-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.warehouse-customer-create .warehouse-catalog-create-actions{grid-column:1/-1}
@media(max-width:900px){.warehouse-storage-type>div{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-storage-type button{min-height:68px;font-size:14px}.warehouse-wheel-guide-actions{grid-template-columns:1fr}.warehouse-wheel-guide-actions span{display:none}.warehouse-receipt-actions{grid-template-columns:1fr}.warehouse-receipt-actions button{width:100%}}
@media(max-width:600px){.warehouse-requester-types,.warehouse-customer-create,.warehouse-company-nip-lookup,.warehouse-company-found,.warehouse-gus-company,.warehouse-customer-search>div:first-child,.warehouse-customer-result{grid-template-columns:1fr}.warehouse-customer-result button{width:100%}}
@media(max-width:600px){.warehouse-tire-scan-shortcut{grid-template-columns:1fr;padding:12px}.warehouse-tire-scan-button{width:100%}.warehouse-tire-scan-shortcut .fjn-photo-picker-icon{width:58px;height:58px;font-size:31px}}
.warehouse-axle-sizes{grid-template-columns:1fr 1fr}
.warehouse-common-wheel-sizes h4{margin:16px 0 8px}
.warehouse-guide-error{margin-top:14px;font-weight:700}
@media(max-width:600px){.warehouse-tire-size-selects,.warehouse-tire-catalog-grid{grid-template-columns:1fr}.warehouse-tire-catalog-create{grid-template-columns:1fr}.warehouse-wheel-guide-actions{grid-template-columns:1fr}.warehouse-wheel-guide-actions span{display:none}.warehouse-receipt-wheel summary,.warehouse-wheel-photo-card{grid-template-columns:1fr;display:grid}.warehouse-receipt-wheel summary span{text-align:left}.warehouse-wheel-photo-card img{width:100%;height:210px}.warehouse-wheel-photo-card>div{grid-template-columns:1fr}.warehouse-copy-wheel-state{width:100%}.warehouse-receipt-wheel>summary{grid-template-columns:40px minmax(0,1fr) 22px!important;gap:8px}.warehouse-wheel-number{width:36px;height:36px}.warehouse-wheel-summary-status{grid-column:1/-1;justify-content:flex-start;padding-left:0}.warehouse-wheel-summary-status em{font-size:11px}.warehouse-wheel-chevron{grid-column:3;grid-row:1;align-self:center}}
@media(max-width:600px){.warehouse-wheel-position-actions{grid-template-columns:1fr}}
@media(max-width:600px){.warehouse-wheel-position-trigger{grid-template-columns:36px minmax(0,1fr)}.warehouse-wheel-position-trigger small{grid-column:2;text-align:left}}
@media(max-width:600px){.warehouse-tire-size-selects.warehouse-tire-size-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.warehouse-selected-tire-size{padding:11px}.warehouse-selected-tire-size b{font-size:20px}}
@media(max-width:600px){.warehouse-receipt-next-slot{grid-template-columns:1fr}.warehouse-receipt-next-slot button{width:100%}}

.warehouse-photo-note-editor select,
.warehouse-photo-note-create input {
  width: 100%;
  min-height: 44px;
}

.warehouse-photo-note-editor option[value^="__DELETE_PHOTO_NOTE__"] {
  color: #c1121f;
  font-weight: 800;
}

.warehouse-confirm-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .7);
}

.warehouse-confirm-dialog {
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
}

.warehouse-confirm-dialog h2 {
  margin: 6px 0 12px;
  font-size: 25px;
}

.warehouse-confirm-dialog p {
  font-size: 16px;
  line-height: 1.55;
}

.warehouse-confirm-kicker {
  margin: 0 !important;
  color: #b91c1c;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .08em;
}

.warehouse-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.warehouse-confirm-actions button {
  min-height: 50px;
  font-size: 15px;
}

#warehouse-receipt-form > .warehouse-receipt-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#warehouse-receipt-form > .warehouse-receipt-actions button {
  width: auto;
  min-width: 190px;
  min-height: 46px;
}

.warehouse-wheel-condition-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.warehouse-wheel-condition-heading h4,
.warehouse-wheel-damage-group h5 {
  margin: 0;
}

.warehouse-wheel-condition-heading p,
.warehouse-wheel-damage-group h5 small {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.warehouse-wheel-condition-heading p {
  margin: 4px 0 0;
}

.warehouse-wheel-condition-heading > button {
  flex: 0 0 auto;
  min-height: 46px;
}

.warehouse-wheel-damage-group + .warehouse-wheel-damage-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.warehouse-wheel-damage-group h5 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 9px;
  font-size: 14px;
}

.warehouse-wheel-damage-tags button > span:nth-child(2) {
  display: grid;
  gap: 2px;
  text-align: left;
}

.warehouse-wheel-damage-tags button small {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.warehouse-wheel-damage-tags button.is-active small {
  color: inherit;
}

@media (max-width: 700px) {
  .warehouse-receipt-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .warehouse-receipt-wide {
    grid-column: auto;
  }

  #warehouse-receipt-form > .warehouse-receipt-actions button {
    width: 100%;
  }

  .warehouse-branch-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .warehouse-branch-create > button {
    width: 100%;
  }

  .warehouse-partner-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .warehouse-catalog-create-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .warehouse-partner-editor > button,
  .warehouse-partner-create button {
    width: 100%;
  }

  .warehouse-confirm-dialog {
    padding: 22px;
  }

  .warehouse-receipt-next-slot button {
    width: 100%;
  }

  .warehouse-confirm-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .warehouse-wheel-condition-heading {
    display: grid;
  }

  .warehouse-wheel-condition-heading > button {
    width: 100%;
  }
}

/* Mobile intake density: keep the complete first step visible without sacrificing tap targets. */
@media (max-width: 600px) {
  #warehouse-receipt-form.warehouse-receipt-layout {gap:10px}
  #warehouse-receipt-form > .panel {padding:12px}
  .warehouse-receipt-steps {gap:4px;margin-bottom:8px}
  .warehouse-receipt-steps li button {min-height:44px;gap:5px;padding:5px 6px;justify-content:center}
  .warehouse-receipt-steps li span {flex:0 0 24px;height:24px;font-size:12px}
  .warehouse-receipt-steps li small {font-size:11px;line-height:1.05;white-space:nowrap}
  .warehouse-receipt-grid {gap:10px}
  .warehouse-requester {display:grid;gap:7px}
  .warehouse-requester-types {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .warehouse-requester-types button {min-height:48px;padding:6px 4px;font-size:12px;line-height:1.15}
  .warehouse-requester-types button span {font-size:10px}
  .warehouse-intake-photo {gap:8px;padding:12px;border-radius:14px}
  .warehouse-intake-photo > p.muted {font-size:12px;line-height:1.35}
  .warehouse-photo-picker {min-height:84px;padding:9px 12px;border-radius:12px}
  .warehouse-photo-picker-icon {width:34px;height:34px;margin-bottom:2px;font-size:18px}
  .warehouse-photo-picker strong {font-size:15px}
  .warehouse-photo-picker small {font-size:11px}
  .warehouse-intake-photo .warehouse-receipt-file-name {margin:0;padding:5px 9px;font-size:11px}
  .warehouse-receipt-grid textarea[name="notes"] {min-height:68px;height:68px}
  .warehouse-intake-photo textarea[name="photoComment"] {min-height:62px}
  .warehouse-partner-editor.is-required select:invalid {border-color:#dc2626;background:#fff7f7}
}

@media (max-width: 480px) {
  .warehouse-requester > .warehouse-partner-editor {
    width: 100%;
  }
}

.warehouse-completion-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 2px solid #82b4ff;
  border-radius: 18px;
  background: #eef6ff;
}
.warehouse-completion-image { position: relative; width: 180px; height: 124px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 14px; background: #dbeafe; box-shadow: 0 4px 14px #143e7624; }
.warehouse-completion-image img,
.warehouse-completion-photo { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: #dbeafe; font-size: 30px; }
.warehouse-completion-image span { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 99px; background: #092f65d9; color: #fff; font-size: 12px; }
.warehouse-completion-summary dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; }
.warehouse-completion-summary dt { color: #61708a; font-size: 13px; }
.warehouse-completion-summary dd { margin: 3px 0 0; font-weight: 800; color: #0b376f; }
.warehouse-completion-summary p { grid-column: 2; margin: 0; color: #315b8f; }
@media (max-width: 700px) {
  .warehouse-completion-summary { grid-template-columns: 118px minmax(0,1fr); gap: 12px; }
  .warehouse-completion-image { width: 118px; height: 92px; }
  .warehouse-completion-photo { width: 118px; height: 92px; }
  .warehouse-completion-summary dl { grid-template-columns: 1fr 1fr; }
  .warehouse-completion-summary p { grid-column: 1 / -1; }
}
.warehouse-tire-scan-result{grid-column:1/-1;display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.warehouse-tire-scan-result img{display:block;width:112px;height:86px;object-fit:cover;border-radius:9px;background:#e5e7eb}.warehouse-tire-scan-result p{margin:0;font-weight:700}.warehouse-tire-scan-result.is-warning{border-color:#f59e0b;background:#fffbeb}.warehouse-tire-scan-confirm{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.warehouse-tire-scan-result>div>button{margin-top:10px}
@media(max-width:600px){.warehouse-tire-scan-result{grid-template-columns:88px minmax(0,1fr);padding:10px}.warehouse-tire-scan-result img{width:88px;height:76px}.warehouse-tire-scan-confirm{display:grid}.warehouse-tire-scan-confirm button,.warehouse-tire-scan-result>div>button{width:100%;min-height:44px}}
