/* index_mobile bTNqO → bTNqP → bTNqT. These are declared source constraints;
   wrapping and source-engine geometry remain separate browser observations. */
.mobile-page .mobile-production-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mobile-page .mobile-production-list {
  display: flex;
  flex-direction: column;
  min-height: 20px;
  border: 2px solid #8a8a8a;
  overflow: auto;
}
.mobile-page .mobile-production-order-list {
  min-width: 360px;
  max-width: 1400px;
  align-self: flex-end;
  width: 100%;
  margin: 5px 0 20px;
  border-radius: 5px;
  background: #ebf3ff;
}
.mobile-page .mobile-production-lot-list,
.mobile-page .mobile-production-operation-list {
  margin: 5px 5px 0 40px;
}
.mobile-page .mobile-production-lot-list {
  background: #fdeae7;
}
.mobile-page .mobile-production-operation-list {
  background: #fbd0cb;
}
.mobile-page .mobile-production-cell + .mobile-production-cell {
  border-top: 2px solid #8a8a8a;
}
.mobile-page .mobile-production-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 40px;
  min-height: 40px;
}
.mobile-page .mobile-production-operation-row {
  min-height: 20px;
}
.mobile-page .mobile-production-field {
  display: inline-flex;
  flex: 1 0 var(--mobile-field-width);
  min-width: var(--mobile-field-width);
  width: var(--mobile-field-width);
  min-height: 28px;
  margin: 5px 5px 0;
}
.mobile-page .mobile-production-fixed {
  flex: 0 0 var(--mobile-field-width);
}
.mobile-page .mobile-production-bounded {
  max-width: var(--mobile-field-max);
}
.mobile-page .mobile-production-field > input,
.mobile-page .mobile-production-field > select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  padding: 0 5px;
  border: 2px solid #c7c7c7;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  opacity: 1;
  font:
    400 16px "Roboto Condensed",
    Arial,
    sans-serif;
  transition:
    border-color 200ms ease,
    color 200ms ease;
}
.mobile-page .mobile-production-field > select {
  padding: 0 12px;
  text-align: right;
}
.mobile-page .mobile-production-field > input::placeholder {
  color: #c7c7c7;
  opacity: 1;
}
.mobile-page .mobile-production-number > input {
  text-align: right;
}
.mobile-page .mobile-production-process > select[aria-invalid="true"] {
  border-color: var(--destructive);
}
.mobile-page .mobile-production-date > input {
  border-color: #e6e6e6;
  font-family: Inter, Arial, sans-serif;
}
.mobile-page .mobile-production-date {
  position: relative;
}
/* A presentational rest label only. The native input remains the sole editor. */
.mobile-page .mobile-production-date > [data-mobile-production-date-display] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 5px;
  border: 2px solid #e6e6e6;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  color: var(--text);
  font:
    400 16px Inter,
    Arial,
    sans-serif;
}
.mobile-page
  .mobile-production-date
  > input[data-mobile-production-edit]:not(
    [data-mobile-production-date-editor]
  ) {
  opacity: 0;
}
/* Preserve the 28px slot, including any review controls below it, while the
   same focused input escapes the scrolling list. Its width is native intrinsic
   sizing, bounded/positioned by the host; actual picker fit needs browser QA. */
.mobile-page .mobile-production-date[data-mobile-production-date-open]::before {
  content: "";
  flex: 0 0 28px;
  height: 28px;
}
.mobile-page
  .mobile-production-date
  > input[data-mobile-production-date-editor] {
  position: fixed;
  z-index: 30;
  width: max-content;
  min-width: 0;
  background: #ebf3ff;
  opacity: 1;
  box-shadow: 0 2px 8px #0003;
}
.mobile-page .mobile-production-overdue > input {
  background: var(--destructive);
  color: #fff;
}
.mobile-page .mobile-production-overdue > [data-mobile-production-date-display],
.mobile-page
  .mobile-production-overdue
  > input[data-mobile-production-date-editor] {
  background: var(--destructive);
  color: #fff;
}
.mobile-page .mobile-production-date-separator {
  flex: 0 0 auto;
  margin-top: 8px;
}
.mobile-page .mobile-production-table-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  height: 28px;
  border: 2px solid #c7c7c7;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 16px;
  line-height: 1.4;
  margin: 5px 0 0 5px;
}
.mobile-page .mobile-production-created {
  flex: 0 0 135px;
  min-width: 135px;
  white-space: nowrap;
}
.mobile-page .mobile-production-operation-name {
  flex: 1 0 120px;
  min-width: 120px;
  max-width: 200px;
}
.mobile-page .mobile-production-value-label {
  flex: 0 0 auto;
  min-height: 24px;
  margin: 8px 0 0 5px;
}
.mobile-page .mobile-production-operation-quantity {
  flex: 0 0 auto;
  min-width: 95px;
  min-height: 28px;
  margin: 5px 5px 0;
  text-align: right;
  justify-content: flex-end;
}
.mobile-page .mobile-production-note {
  margin-bottom: 5px;
}
.mobile-page .mobile-production-toggle,
.mobile-page .mobile-production-link,
.mobile-page .mobile-production-unsupported,
.mobile-page .mobile-production-repair,
.mobile-page .mobile-production-qc {
  flex-shrink: 0;
  margin: 5px 5px 0;
  min-height: 28px;
}
.mobile-page .mobile-production-toggle {
  background: var(--primary);
  padding: 0;
  height: 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.mobile-page .mobile-production-toggle[aria-expanded="true"] {
  background: var(--alert);
}
.mobile-page .mobile-production-toggle:not(:disabled):hover {
  background: #091e7c;
  filter: none;
}
.mobile-page .mobile-production-order-toggle {
  margin-top: 7px;
  width: 90px;
  min-width: 90px;
}
.mobile-page .mobile-production-order-toggle:disabled {
  background: #525252;
  opacity: 0.25;
}
.mobile-page .mobile-production-lot-toggle {
  min-width: 70px;
  width: 70px;
}
.mobile-page .mobile-production-operation-toggle {
  width: 30px;
  min-width: 30px;
  padding: 0 5px;
}
.mobile-page .mobile-production-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
  width: 30px;
  min-width: 30px;
  height: 28px;
  padding: 0;
  background: var(--primary);
  color: #fff;
}
.mobile-page .mobile-production-progress {
  margin-top: 7px;
  background: var(--alert);
}
.mobile-page .mobile-production-work,
.mobile-page .mobile-production-qc {
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  margin-top: 2px;
  background: transparent;
  color: var(--primary);
}
.mobile-page .mobile-production-qc.unavailable {
  color: #8a8a8a;
  opacity: 1;
}
.mobile-page .mobile-production-delete {
  min-width: 30px;
  width: 30px;
  height: 28px;
  padding: 0;
  color: #fff;
  background: var(--destructive);
}
.mobile-page .mobile-production-operation-row > .mobile-production-delete {
  min-width: 28px;
  width: 28px;
}
.mobile-page .mobile-production-unsupported {
  cursor: not-allowed;
  opacity: 0.25;
}
.mobile-page .mobile-production-overlap {
  min-width: 28px;
  width: 28px;
  min-height: 20px;
  height: 20px;
  margin: 0 10px 0 -35px;
  padding: 0;
  color: #fff;
  background: var(--alert);
}
.mobile-page .mobile-production-add,
.mobile-page .mobile-production-deficiency {
  align-self: center;
}
.mobile-page .mobile-production-add .round-add,
.mobile-page .mobile-production-deficiency > button {
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  margin: 0 5px 10px;
  padding: 0;
  color: var(--alert);
  background: transparent;
}
.mobile-page .mobile-production-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  min-height: 200px;
}
.mobile-page .mobile-production-image-slot {
  display: flex;
  justify-content: center;
  min-width: 200px;
}
.mobile-page .mobile-production-image-cell {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  max-width: 250px;
  min-height: 200px;
}
.mobile-page .mobile-production-image-cell > img,
.mobile-page .mobile-production-image-open > img,
.mobile-page .mobile-production-image-unavailable {
  min-width: 150px;
  min-height: 200px;
  max-width: 250px;
  border-radius: 4px;
  object-fit: contain;
}
.mobile-page .mobile-production-image-open > img {
  display: block;
  width: 100%;
}
.mobile-page .mobile-production-image-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: #666;
  font-size: 14px;
}
.mobile-page .mobile-production-image-delete {
  align-self: center;
  z-index: 1;
  min-width: 20px;
  width: 20px;
  min-height: 20px;
  height: 20px;
  padding: 0;
  margin: 0 0 -20px;
  color: #fff;
  background: var(--destructive);
  opacity: 0.6;
}
.mobile-page .mobile-production-list[hidden],
.mobile-page .mobile-production-field[hidden],
.mobile-page .mobile-production-add[hidden],
.mobile-page .mobile-production-images[hidden] {
  display: none;
}
/* The referenced built-in-mobile AST breakpoint is 320px (marked deleted in
   client settings). Do not silently substitute the 768px landscape breakpoint. */
@media (max-width: 319px) {
  .mobile-page .mobile-production-value-label,
  .mobile-page .mobile-production-date-separator {
    font-size: 14px;
  }
}

/* Explicit local field/creation/repair feedback. This does not claim source
   Working Show/Hide timing. Default inspection leaves these controls inert. */
.mobile-page .mobile-production-field {
  flex-direction: column;
}
.mobile-page .mobile-production-field-saved {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mobile-page .mobile-production-field-review {
  min-height: 24px;
  padding: 2px 4px;
  font-size: 12px;
}
.mobile-page .mobile-production-save,
.mobile-page .mobile-production-prerequisite,
.mobile-page .mobile-production-repair-status,
.mobile-page .mobile-production-create-status {
  margin: 4px 5px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.mobile-page .mobile-production-save > button,
.mobile-page .mobile-production-repair-status > button,
.mobile-page .mobile-production-create-status > button {
  margin-left: 5px;
  min-height: 26px;
  font-size: 13px;
}
.mobile-page [data-mobile-production-save][hidden],
.mobile-page [data-mobile-production-prerequisite][hidden],
.mobile-page [data-mobile-production-create-status][hidden],
.mobile-page [data-mobile-production-repair-status][hidden],
.mobile-page [data-mobile-production-saved-field][hidden],
.mobile-page [data-mobile-production-review-field][hidden],
.mobile-page [data-mobile-production-save] > button[hidden],
.mobile-page [data-mobile-production-create-status] > button[hidden],
.mobile-page [data-mobile-production-repair-status] > button[hidden],
.mobile-page [data-mobile-production-working][hidden] {
  display: none;
}
.mobile-page [data-mobile-maintenance-row-status] {
  margin: 4px 5px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.mobile-page [data-mobile-maintenance-row-status][hidden],
.mobile-page [data-mobile-maintenance-row-status] > button[hidden] {
  display: none;
}
.mobile-single-work-removal {
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overflow-wrap: anywhere;
}
.mobile-single-work-removal code {
  white-space: normal;
}
.mobile-single-work-removal input {
  width: 100%;
}
