/* index_mobile bTNpA: source row bands and nested outline sections. The 1080px
   editor default is not a fixed runtime maximum; source was observed at 1188. */
.mobile-page {
  min-width: 360px;
  min-height: 800px;
  width: 100%;
}
.mobile-page > .header {
  min-width: 360px;
}
.mobile-page .user-line {
  min-width: 360px;
}
.mobile-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  background: #ebf3ff;
  border-radius: 8px;
  padding: 10px 5px;
  margin: 10px 0;
  min-height: 40px;
}
.mobile-config-band {
  margin-top: 20px;
  min-width: 100%;
}
.mobile-section {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  border: 2px solid #f2f2f2;
  border-radius: 8px;
  background: #fff;
  min-width: 134px;
}
.mobile-section.is-open {
  min-width: 364px;
}
.mobile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px;
  min-height: 32px;
}
.mobile-section-header[data-mobile-header-toggle] {
  cursor: pointer;
}
.mobile-caption {
  flex: 1 1 120px;
  min-width: 120px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--primary);
  font:
    600 16px Inter,
    Arial,
    sans-serif;
}
.mobile-caption.selected {
  background: var(--alert);
}
.mobile-section-header input[data-mobile-query] {
  flex: 1 1 200px;
  width: 200px;
  min-width: 120px;
  max-width: 200px;
  min-height: 28px;
  margin-left: 5px;
}
.mobile-po-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mobile-po-tools select {
  width: 120px;
  min-height: 28px;
  margin-left: 5px;
}
.mobile-section-header .icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin-left: 5px;
  color: var(--alert);
}
.mobile-list {
  min-width: 360px;
  min-height: 40px;
  max-height: 600px;
  border: 2px solid #999;
  border-radius: 5px;
  overflow: auto;
}
.mobile-record-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  min-height: 40px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #999;
}
.mobile-record-row:last-child {
  border-bottom: 0;
}
/* Customer inputs retain the source Labelizer offset. The 28px quotation
   control and its 5px top/bottom margins establish the 38px primary row. */
.mobile-customer-row {
  align-items: flex-start;
  min-height: 20px;
  padding-bottom: 0;
}
.mobile-customer-row > .mobile-field {
  height: 38px;
  margin: 0 5px;
  padding-top: 7px;
}
.mobile-section-staffs.is-open {
  width: 660px;
}
.mobile-section-machines.is-open {
  /* bTNpY fits bTNpZ plus both border layers. A fixed 364px outer box
     leaves only 356px for the 360px row and incorrectly wraps its delete.
     Intrinsic sizing also leaves overflow:auto's native gutter data-driven. */
  width: max-content;
}
.mobile-section-parts.is-open,
.mobile-section-pos.is-open {
  width: 100%;
}
.mobile-section-logs.is-open {
  width: 1080px;
}
.mobile-field {
  position: relative;
  display: block;
  flex: 0 1 var(--mobile-field-width);
  min-width: var(--mobile-field-width);
  width: var(--mobile-field-width);
  height: 40px;
  margin: 0 5px;
  padding-top: 12px;
}
.mobile-field > span {
  position: absolute;
  left: 5px;
  top: 0;
  font:
    10px Inter,
    Arial,
    sans-serif;
}
.mobile-field > input,
.mobile-field > select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  border: 0;
  border-bottom: 1px solid #ccc;
  padding: 0 5px;
  background: #fff;
  color: var(--text);
  opacity: 1;
  -webkit-text-fill-color: var(--text);
  font:
    16px "Roboto Condensed",
    Arial,
    sans-serif;
}
.mobile-field > select {
  font-family: Inter, Arial, sans-serif;
}
.mobile-record-row > button,
.mobile-record-row > .icon,
.mobile-po-actions > button {
  flex-shrink: 0;
  margin: 7px 5px 0;
  min-height: 28px;
}
.mobile-record-row .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
}
.mobile-document svg {
  width: 28px;
  height: 28px;
}
.mobile-document {
  color: #fff;
  border-radius: 8px;
}
.mobile-part-row {
  justify-content: flex-end;
}
.mobile-routing {
  min-width: 100px;
}
.mobile-routing.empty-routing {
  border: 2px solid var(--destructive);
}
.mobile-customer-row > button,
.mobile-customer-row > .icon {
  margin: 5px 5px 0;
}
/* bTNpZ retains wrapping: the observed 360px row fits 110px + 210px
   field footprints and the 40px delete footprint without a second line. */
.mobile-machine-row {
  align-items: flex-start;
  justify-content: space-between;
  min-height: 0;
  padding-bottom: 0;
}
.mobile-machine-row > .mobile-field {
  height: 35px;
  padding-top: 7px;
}
.mobile-machine-row > .icon {
  align-self: flex-start;
  margin: 5px 5px 0;
}
.mobile-customer-row > .mobile-quotations {
  flex: 0 0 90px;
  width: 90px;
  min-width: 90px;
  margin: 5px;
  padding-left: 0;
  padding-right: 0;
}
.mobile-po-cell {
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
}
/* The shared quotation frame surrounds this cell, including expanded orders
   and lots. Retain row separators without cutting across the yellow rails. */
.mobile-po-cell[data-po-quotation-frame] > .mobile-po-row {
  border-bottom: 1px dashed #999;
}
.mobile-po-row {
  justify-content: flex-end;
  overflow: auto;
}
.mobile-po-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.mobile-po-status {
  min-width: 110px;
}
.mobile-po-order,
.mobile-completed-quantity,
.mobile-date-arrow {
  margin: 7px 5px 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.mobile-quotation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  padding: 0 20px;
  margin-top: 3px;
}
.mobile-quotation-bar button {
  margin-left: 5px;
}
.mobile-quotation-tail {
  height: 5px;
  background: var(--cream);
  margin-bottom: 3px;
}
.mobile-log-row > span {
  border: 2px solid #eee;
  border-radius: 4px;
  padding: 0 5px;
  min-height: 28px;
  margin: 5px 5px 0;
  line-height: 1.4;
}
.mobile-log-staff,
.mobile-log-action {
  width: 180px;
}
.mobile-log-action {
  background: #eee;
}
.mobile-log-content {
  min-width: 250px;
  max-width: 500px;
  flex: 1 1 250px;
}
.mobile-log-date {
  width: 175px;
}
.mobile-add {
  align-self: center;
  height: 40px;
  padding: 4px;
}
.mobile-add .round-add {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--alert);
  background: transparent;
}
.mobile-column-picker {
  position: relative;
}
.mobile-column-choices {
  position: absolute;
  top: 28px;
  left: calc(5px - 100px);
  z-index: 5;
  width: 125px;
  min-inline-size: 0;
  background: #fff;
  border: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.mobile-section-pos .mobile-column-choices {
  width: 120px;
}
.mobile-column-choices label {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  white-space: nowrap;
}
.mobile-column-choices input {
  width: auto;
  flex-shrink: 0;
  margin: 0 0 0 19px;
}
.mobile-scope-note,
.mobile-message-limit {
  margin: 10px;
  font-size: 13px;
}
.mobile-scope-note button {
  font-size: 13px;
  min-height: 24px;
}
/* Hidden sections, columns and occurrences stay mounted to own exact drafts. */
.mobile-page [hidden] {
  display: none !important;
}
.mobile-section-tools,
.mobile-address-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.mobile-list:has(.mobile-record-cell) {
  display: flex;
  flex-direction: column;
}
.mobile-record-cell {
  flex: 0 0 auto;
  border-bottom: 1px dashed #999;
}
.mobile-section-customers .mobile-record-cell {
  border-bottom-width: 2px;
}
.mobile-record-cell .mobile-record-row {
  border-bottom: 0;
}
.mobile-field.mobile-multiline {
  height: 78px;
  padding-top: 18px;
}
.mobile-field > textarea {
  min-height: 60px;
  width: 100%;
  resize: vertical;
  font:
    16px "Roboto Condensed",
    Arial,
    sans-serif;
}
.mobile-email-effect,
.mobile-row-save {
  margin: 3px 10px;
  font-size: 12px;
  max-width: 880px;
}
.mobile-email-effect {
  display: none;
  color: #555;
}
.mobile-customer-row:has([data-mobile-field="email_text"]:focus)
  + .mobile-email-effect {
  display: block;
}
.mobile-row-save button {
  margin: 3px 5px;
  min-height: 28px;
  font-size: 12px;
}
.mobile-field:has(.mobile-field-review:not([hidden])) {
  height: auto;
}
.mobile-field-review {
  display: block;
  margin: 3px 0;
  min-height: 28px;
  font-size: 12px;
}
/* Source column group stretches its fields; 940/930px was one observed viewport. */
.mobile-address-panel {
  width: 100%;
  min-width: 40px;
  padding: 0 5px 5px;
  flex-direction: column;
  align-items: stretch;
}
.mobile-address-panel .mobile-multiline {
  width: 100%;
  min-width: 300px;
  height: auto;
  padding-top: 0;
  margin: 0;
  flex: 0 0 auto;
}
.mobile-address-panel .mobile-multiline > span:first-child {
  position: static;
  display: block;
  width: fit-content;
  font:
    16px/1.4 Inter,
    Arial,
    sans-serif;
}
.mobile-address-panel textarea {
  display: block;
  height: 60px;
  border: 2px solid #e6e6e6;
  background: transparent;
  padding: 0 5px;
  font:
    16px/22.4px Inter,
    Arial,
    sans-serif;
}
.mobile-customer-row [data-action="mobile-addresses"] {
  color: #0c29ab;
}
.mobile-customer-row [data-action="mobile-addresses"][aria-expanded="true"] {
  color: #1e6df6;
}
.mobile-field > .mobile-field-saved {
  display: block;
  position: static;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.3 Inter,
    Arial,
    sans-serif;
}

/* Read failure recovery does not invent a positive quantity badge. */
.mobile-cart-read {
  position: fixed;
  top: 128px;
  right: 20px;
  max-width: 320px;
  z-index: 3;
  background: white;
  padding: 8px;
}
.mobile-cart-read[hidden] {
  display: none;
}
.mobile-tool-cart-floating .float-chat:disabled {
  opacity: 1;
  cursor: default;
}

/* Source bTNyF hides the complete mobile floating group while Messenger shows. */
.mobile-page .mobile-tool-cart-floating[hidden] {
  display: none;
}
