/* Project plan: consistent inline editing and stable reported-row presentation. */
.delivery-sheet .plan-grid tbody input:not([type="checkbox"]):not([type="radio"]),
.delivery-sheet .plan-grid tbody textarea {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.delivery-sheet .plan-grid tbody td:hover input:not([type="checkbox"]):not([type="radio"]):not(:disabled),
.delivery-sheet .plan-grid tbody td:hover textarea:not(:disabled) {
  border-color: #a9beb4 !important;
  background: #fff !important;
}
.delivery-sheet .plan-grid tbody input:not([type="checkbox"]):not([type="radio"]):focus,
.delivery-sheet .plan-grid tbody textarea:focus {
  border-color: var(--ui-color-primary-500) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgb(31 122 85 / 13%) !important;
}
.delivery-sheet .plan-grid tbody tr.reported > td {
  height: 34px !important;
  background: #e9f0f6 !important;
  color: #4d5f69 !important;
  border-bottom-color: #d4e0e8 !important;
}
.delivery-sheet .plan-grid tbody tr.reported:hover > td { background:#e3ecf3 !important; }
.delivery-sheet .plan-grid tbody tr.reported input:not([type="hidden"]):not([type="checkbox"]),
.delivery-sheet .plan-grid tbody tr.reported textarea,
.delivery-sheet .plan-grid tbody tr.reported select {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  opacity: 1 !important;
  pointer-events: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.delivery-sheet .plan-grid tbody tr.reported td.check input { visibility:hidden !important; }
.delivery-sheet .plan-grid td.num,.delivery-sheet .plan-grid .wrap-number {
  min-width: 11ch !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}
.delivery-sheet .delivery-totals > div { min-width:0; }
.delivery-sheet .delivery-totals strong { white-space:nowrap; }

/* Delivery total values never wrap or truncate. */
.delivery-sheet .delivery-totals strong{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}


/* Stable project-plan table geometry across distribution, landscape and E/F. */
.delivery-sheet .plan-grid tbody td.remaining {
  display: table-cell !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  text-align: center !important;
}
.delivery-sheet .plan-grid tbody td.remaining > span {
  display: inline-block !important;
  min-width: 2.5ch !important;
  margin: 0 !important;
  text-align: right !important;
  vertical-align: middle !important;
  font-variant-numeric: tabular-nums;
}
.delivery-sheet .plan-grid .detail-remaining {
  padding-left: .25rem !important;
  white-space: nowrap !important;
}
.delivery-sheet .plan-grid .detail-remaining .add-lot {
  position: relative;
  display: inline-block !important;
  box-sizing: border-box;
  width: 15px !important;
  min-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  margin: 0 .28rem 0 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
}
.delivery-sheet .plan-grid .detail-remaining .add-lot::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #2b654b;
}
.delivery-sheet .plan-grid .detail-remaining .add-lot:disabled::before {
  border-top-color: #a6b4ad;
}
.delivery-sheet .plan-grid .detail-remaining .add-lot:not(:disabled):hover::before,
.delivery-sheet .plan-grid .detail-remaining .add-lot:not(:disabled):focus-visible::before {
  border-top-color: #123f2d;
}

/* All editable plan cells use the same quiet/readable interaction style. */
.estimate-table tbody input:not([type="checkbox"]):not([type="radio"]),
.estimate-grid tbody input:not([type="checkbox"]):not([type="radio"]),
.estimate-grid tbody select,
.delivery-sheet .plan-grid tbody input:not([type="checkbox"]):not([type="radio"]),
.delivery-sheet .plan-grid tbody select {
  box-sizing: border-box !important;
  min-height: 27px !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.estimate-table tbody td:hover input:not(:disabled),
.estimate-grid tbody td:hover input:not(:disabled),
.estimate-grid tbody td:hover select:not(:disabled),
.delivery-sheet .plan-grid tbody td:hover input:not(:disabled),
.delivery-sheet .plan-grid tbody td:hover select:not(:disabled) {
  border-color: #afc5b9 !important;
  background: #fff !important;
}
.estimate-table tbody input:focus,
.estimate-grid tbody input:focus,
.estimate-grid tbody select:focus,
.delivery-sheet .plan-grid tbody input:focus,
.delivery-sheet .plan-grid tbody select:focus {
  border-color: #287653 !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgb(40 118 83 / 12%) !important;
  outline: 0 !important;
}
.estimate-table tbody input:disabled,
.estimate-grid tbody input:disabled,
.estimate-grid tbody select:disabled,
.delivery-sheet .plan-grid tbody input:disabled,
.delivery-sheet .plan-grid tbody select:disabled {
  opacity: 1 !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
