/* Phone-friendly form fields for every page that takes input (body class "ge-boxed").
   Same look as New Dispatch: the theme's floating label is pinned ABOVE a boxed field, boxes are
   48px high with 16px+ text (no iOS zoom on tap), dropdowns - native and Chosen - get the same
   box, an arrow and finger-sized options. Markup is untouched; only CSS. js/form-boxed.js adds
   keypad hints. Bump ?v= on every page's link when this changes - sw.js serves css cache-first.
   BYTE-IDENTICAL in order/, app/ and dealer_live/ (css/ and js/): change all three and cmp them. */

/* ---------- label above, boxed field ---------- */
.ge-boxed .form-group-proj {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.ge-boxed .form-group-proj > .input-border { order: -1; position: static; }
.ge-boxed .input-border::after { display: none; }
.ge-boxed .input-placeholder,
.ge-boxed .form-control-proj ~ .input-border > .input-placeholder,
.ge-boxed textarea.form-control-proj ~ .input-border > .input-placeholder {
  color: #555 !important;
  font: 1.3rem/1.4 "Montserrat-Medium", sans-serif !important;
  letter-spacing: 0;
  margin-bottom: 4px;
  padding: 0 !important;
  position: static;
  top: auto;
  transform: none !important;
}
.ge-boxed .form-control-proj,
.ge-boxed .form-group-proj .form-control {
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  color: #111;
  font: 16px/1.3 sans-serif;
  height: 48px;
  letter-spacing: 0;
  padding: 0 12px;
}
.ge-boxed .form-control-proj:focus,
.ge-boxed .form-group-proj .form-control:focus {
  border-color: #45b649;
  box-shadow: 0 0 0 3px rgba(69,182,73,.25);
}
.ge-boxed .form-control-proj[readonly],
.ge-boxed .form-group-proj .form-control[readonly] {
  background-color: #f1f1f1;
  border-color: #e0e0e0;
  color: #444;
}
.ge-boxed .form-control-proj::placeholder { color: #aaa; }
.ge-boxed textarea.form-control-proj,
.ge-boxed .form-group-proj textarea.form-control { height: auto; min-height: 72px; padding: 10px 12px; }
/* Fields side by side in a Bootstrap row (product + qty) keep a small gap. */
.ge-boxed [class*="col-xs-"].form-group-proj { padding-left: 4px; padding-right: 4px; }

/* ---------- native dropdowns ---------- */
.ge-boxed select.form-control-proj,
.ge-boxed .form-group-proj select.form-control,
.ge-boxed .ge-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 34px;
  text-overflow: ellipsis;
}
.ge-boxed select.form-control-proj[multiple],
.ge-boxed .form-group-proj select.form-control[multiple] { background-image: none; height: auto; min-height: 96px; padding: 6px; }

/* ---------- open dropdowns are not cut off (06/11/2026) ----------
   The theme's .wrapper-container is overflow:hidden (for the slide-out menu) and only as tall as
   the content, so on a short form (Place Order before a dealer is picked) a Chosen list opening
   downward was clipped at the frame's bottom edge: the names were "hidden in back" and could not be
   tapped. Make the frame at least screen-high and clip only sideways (overflow-x: clip, unlike
   hidden, lets overflow-y stay visible). Browsers without `clip` keep hidden + the min-height
   (visible + hidden there would turn the frame into a scroll box, hence @supports). */
.ge-boxed .wrapper-container { min-height: 100vh; }
@supports (overflow-x: clip) {
  .ge-boxed .wrapper-container { overflow-x: clip; overflow-y: visible; }
}

/* ---------- Chosen (searchable dropdowns; forced on for phones in this app) ---------- */
.ge-boxed .chosen-container { font-size: 16px; width: 100% !important; }
.ge-boxed .chosen-container-single .chosen-single {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  box-shadow: none;
  color: #111;
  height: 48px;
  line-height: 46px;
  padding: 0 34px 0 12px;
}
.ge-boxed .chosen-container-single .chosen-single span { margin-right: 0; }
.ge-boxed .chosen-container-single .chosen-single div { right: 6px; width: 24px; }
/* Arrow: the same chevron as native selects, flipped while open. Chosen's sprite in a 46px-high
   box also showed the NEXT sprite image under the arrow (a stray mark at the bottom right).
   !important beats chosen.min.css's retina sprite rule, which is itself !important. */
.ge-boxed .chosen-container-single .chosen-single div b {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 12px 8px !important;
  transition: transform .15s;
}
.ge-boxed .chosen-container-active.chosen-with-drop .chosen-single div b { transform: rotate(180deg); }
.ge-boxed .chosen-container-single .chosen-single span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ge-boxed .chosen-container-single .chosen-default { color: #888; }
.ge-boxed .chosen-container-active.chosen-with-drop .chosen-single { border-radius: 8px 8px 0 0; }
.ge-boxed .chosen-container-multi .chosen-choices {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  min-height: 48px;
  padding: 5px 8px;
}
.ge-boxed .chosen-container-multi .chosen-choices li.search-field input[type="text"] { font-size: 16px; height: 36px; }
.ge-boxed .chosen-container-multi .chosen-choices li.search-choice { line-height: 20px; margin: 4px 6px 4px 0; padding: 6px 26px 6px 10px; }
.ge-boxed .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { top: 9px; }
.ge-boxed .chosen-container-active .chosen-single,
.ge-boxed .chosen-container-active .chosen-choices {
  border-color: #45b649;
  box-shadow: 0 0 0 3px rgba(69,182,73,.25);
}
.ge-boxed .chosen-container .chosen-drop {
  border: 1px solid #45b649;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.ge-boxed .chosen-container .chosen-search input[type="text"] {
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 16px;
  height: 42px;
  padding: 4px 30px 4px 10px;
}
.ge-boxed .chosen-container .chosen-drop { background: #fff; margin-top: -1px; z-index: 1010; }
.ge-boxed .chosen-container .chosen-search { padding: 8px; }
.ge-boxed .chosen-container .chosen-results { max-height: 50vh; margin: 0; padding: 0; -webkit-overflow-scrolling: touch; }
.ge-boxed .chosen-container .chosen-results li.no-results { background: #f9f9f9; color: #666; }
.ge-boxed .chosen-container .chosen-results li {
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.35;
  padding: 12px 10px;
}
.ge-boxed .chosen-container .chosen-results li.highlighted { background: #45b649; color: #fff; }
.ge-boxed .chosen-container .chosen-results li.result-selected { font-weight: bold; }

/* ---------- select2, where a page uses it ---------- */
.ge-boxed .select2-container .select2-selection--single {
  border: 1px solid #bbb;
  border-radius: 8px;
  height: 48px;
}
.ge-boxed .select2-container .select2-selection--single .select2-selection__rendered { font-size: 16px; line-height: 46px; padding-left: 12px; }
.ge-boxed .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.ge-boxed .select2-results__option { padding: 12px 10px; }
.ge-boxed .select2-search__field { font-size: 16px; height: 40px; }

/* ---------- choices, uploads, buttons ---------- */
/* The theme's radio rows: a bigger tap area. */
.ge-boxed .inline-block-label-radio-btn-proj,
.ge-boxed .block-label-radio-btn-proj { min-height: 32px; padding: 6px 0; }
/* Per MT / Ucchak (include/freight.php, shared by four apps - restyled only here). */
.ge-boxed .ge-fr-choice { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 10px !important; }
.ge-boxed .ge-fr-choice > div { color: #555; flex-basis: 100%; font: 1.3rem "Montserrat-Medium", sans-serif; }
.ge-boxed .ge-fr-choice label {
  align-items: center;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  display: flex;
  flex: 1 1 140px;
  font-size: 14px;
  gap: 8px;
  letter-spacing: 0;
  margin: 0 !important;
  min-height: 48px;
  padding: 8px 12px;
}
.ge-boxed .ge-fr-choice label:has(input:checked) { background: #effaf0; border: 2px solid #45b649; font-weight: 600 !important; }
.ge-boxed .ge-fr-choice input { accent-color: #45b649; flex: 0 0 auto; height: 20px; margin: 0; width: 20px; }
.ge-boxed input[name="tfreight"] { font-size: 18px; font-weight: bold; }
.ge-boxed .input-file-trigger { border-radius: 8px; display: block; font-size: 16px; min-height: 48px; padding: 14px; text-align: center; }
.ge-boxed #veh_input { font-size: 18px; font-weight: bold; letter-spacing: 1px; }

/* Date and time pickers: boxed field + joined calendar / clock button. */
.ge-boxed .input-group.date,
.ge-boxed .input-group.clockpicker { display: flex; width: 100%; }
.ge-boxed .input-group.date .form-control-proj,
.ge-boxed .input-group.clockpicker .form-control-proj { border-radius: 8px 0 0 8px; flex: 1 1 auto; }
.ge-boxed .input-group-addon-datepicker,
.ge-boxed .input-group-addon-clockpicker {
  align-items: center;
  background: #f1f1f1;
  border: 1px solid #bbb;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #444;
  display: flex;
  font-size: 18px;
  justify-content: center;
  width: 52px;
}
.ge-boxed .datepicker.dropdown-menu td,
.ge-boxed .datepicker.dropdown-menu th { font-size: 15px; height: 38px; width: 38px; }

/* Split Order's own quantity boxes. */
.ge-boxed .split-grid input { font-size: 18px; min-height: 48px; }

/* ---------- buttons ---------- */
/* The theme's gradient Submit/Save/Search: a full-width, 50px, rounded bar that is easy to hit
   and shows a press. The round "+" buttons (box-add-num-icon-circle) keep their shape. */
.ge-boxed .btn-proj:not(.box-add-num-icon-circle) {
  border-radius: 10px;
  font-size: 16px;
  letter-spacing: .5px;
  max-width: 420px;
  min-height: 50px;
  padding: 12px 16px;
  touch-action: manipulation;
  width: 100%;
}
.ge-boxed .btn-proj:active { filter: brightness(.93); transform: translateY(1px); }
.ge-boxed .btn-proj:focus-visible { outline: 3px solid rgba(69,182,73,.45); outline-offset: 2px; }
.ge-boxed .btn-proj:disabled,
.ge-boxed .btn-proj[disabled] { filter: grayscale(1); opacity: .55; }
/* Bootstrap buttons inside forms (Add row, Remove, Upload ...) get a finger-sized target. */
.ge-boxed form .btn:not(.btn-xs):not(.btn-sm) {
  border-radius: 8px;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 16px;
  touch-action: manipulation;
}
