/* Agile Delivery Challan V1 - Gate Entry standard finishing */
#challanOut.co-ge-framework .co-ge-header-card{background:#fff!important;border:1px solid #aebdca!important;padding:10px 12px!important}
#challanOut.co-ge-framework .advanced-challan-form.co-ge-fields{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 14px!important}
#challanOut.co-ge-framework .field-wrap label{color:#111!important;font-weight:700!important;font-size:13px!important;margin-bottom:5px!important}
#challanOut.co-ge-framework .field-wrap input,
#challanOut.co-ge-framework .field-wrap select{min-height:34px!important;height:34px!important;border:1px solid #9fb3c5!important;border-radius:2px!important;background:#fff!important;color:#111!important;font-size:13px!important;padding:5px 9px!important}
#challanOut.co-ge-framework #outBillRequired:disabled{background:#eef2f5!important;color:#6b7780!important}
#challanOut.co-ge-framework .co-ge-grid-card{margin-top:8px!important}
#challanOut.co-ge-framework .co-ge-grid-title{color:#111!important}
#challanOut.co-ge-framework .co-ge-toolbar button{min-width:82px!important}
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="save"],
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="edit"],
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="delete"],
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="cancel"]{color:#fff!important}
@media(max-width:900px){#challanOut.co-ge-framework .advanced-challan-form.co-ge-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){#challanOut.co-ge-framework .advanced-challan-form.co-ge-fields{grid-template-columns:1fr!important}}

/* Agile Delivery Challan V24 - light/native dropdown polish + anchored part suggestions */
/* Party searchable dropdown: match normal Unit/select visual language (white, compact, dark text). */
html body #challanOut #outPartyListV79{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:calc(100% + 2px)!important;
  z-index:1000000!important;
  background:#fff!important;
  border:1px solid #9fb3c5!important;
  border-radius:2px!important;
  box-shadow:0 5px 14px rgba(35,54,70,.18)!important;
  max-height:230px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0!important;
}
html body #challanOut #outPartyListV79 .item{
  display:block!important;
  padding:7px 10px!important;
  min-height:34px!important;
  cursor:pointer!important;
  color:#111!important;
  background:#fff!important;
  border-bottom:1px solid #d8e0e6!important;
  border-radius:0!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.25!important;
  white-space:normal!important;
}
html body #challanOut #outPartyListV79 .item:last-child{border-bottom:0!important;}
html body #challanOut #outPartyListV79 .item small{
  display:block!important;
  margin-top:2px!important;
  color:#4f5f6c!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.2!important;
}
html body #challanOut #outPartyListV79 .item:hover,
html body #challanOut #outPartyListV79 .item.active{
  color:#111!important;
  background:#eaf3fb!important;
}
html body #challanOut #outPartySearchV79{
  height:34px!important;
  min-height:34px!important;
  padding:5px 9px!important;
  background:#fff!important;
  color:#111!important;
  border:1px solid #9fb3c5!important;
  border-radius:2px!important;
  box-shadow:none!important;
  font-size:13px!important;
}

/* Challan detail part search: dropdown opens immediately below the active field, not below the grid. */
html body #challanOut .co-dispatch-search-cell{
  position:relative!important;
  overflow:visible!important;
  min-width:220px!important;
  width:220px!important;
}
html body #challanOut .co-dispatch-part-search,
html body #challanOut [id^="outPartSearch"]{
  width:100%!important;
  height:32px!important;
  min-height:32px!important;
  box-sizing:border-box!important;
  padding:4px 8px!important;
  background:#fff!important;
  color:#111!important;
  border:1px solid #9fb3c5!important;
  border-radius:2px!important;
  box-shadow:none!important;
  font-size:12px!important;
}
html body #challanOut [id^="outPartSuggestions"],
html body #challanOut .co-dispatch-search-cell > .co-dispatch-suggestions{
  position:absolute!important;
  left:0!important;
  top:calc(100% + 2px)!important;
  right:auto!important;
  transform:none!important;
  margin:0!important;
  width:320px!important;
  max-width:min(420px, 92vw)!important;
  max-height:230px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  z-index:1000001!important;
  background:#fff!important;
  border:1px solid #9fb3c5!important;
  border-radius:2px!important;
  box-shadow:0 5px 14px rgba(35,54,70,.18)!important;
}
html body #challanOut [id^="outPartSuggestions"] .sales-part-option,
html body #challanOut .co-dispatch-search-cell > .co-dispatch-suggestions .sales-part-option{
  padding:7px 9px!important;
  color:#111!important;
  background:#fff!important;
  border-bottom:1px solid #d8e0e6!important;
  border-radius:0!important;
  font-size:12px!important;
  line-height:1.25!important;
}
html body #challanOut [id^="outPartSuggestions"] .sales-part-option small,
html body #challanOut .co-dispatch-search-cell > .co-dispatch-suggestions .sales-part-option small{
  color:#536471!important;
  font-size:11px!important;
}
html body #challanOut [id^="outPartSuggestions"] .sales-part-option:hover,
html body #challanOut .co-dispatch-search-cell > .co-dispatch-suggestions .sales-part-option:hover{
  color:#111!important;
  background:#eaf3fb!important;
}

/* Details grid polish: compact and consistent with Gate Entry / native selects. */
#challanOut.co-ge-framework .co-ge-grid-card{overflow:visible!important;}
#challanOut.co-ge-framework .co-ge-grid-card table{font-size:12px!important;}
#challanOut.co-ge-framework .co-ge-grid-card th{
  height:32px!important;
  padding:6px 8px!important;
  background:#dce8f1!important;
  color:#10212f!important;
  border-color:#aebfcb!important;
  font-weight:700!important;
}
#challanOut.co-ge-framework .co-ge-grid-card td{
  height:38px!important;
  padding:4px 6px!important;
  vertical-align:middle!important;
  border-color:#bdcbd5!important;
  overflow:visible!important;
}
#challanOut.co-ge-framework .co-ge-grid-card td input,
#challanOut.co-ge-framework .co-ge-grid-card td select{
  height:32px!important;
  min-height:32px!important;
  padding:4px 7px!important;
  border:1px solid #9fb3c5!important;
  border-radius:2px!important;
  background:#fff!important;
  color:#111!important;
  font-size:12px!important;
}


/* Agile Delivery Challan V25 - toolbar no-blink lock
   Delivery Challan owns its toolbar state. Kill visual transitions/animations
   from shared/global skins so Add/Find remain steady while focus/dropdowns update. */
#challanOut.co-ge-framework .co-ge-toolbar,
#challanOut.co-ge-framework .co-ge-toolbar *,
#challanOut.co-ge-framework .clean-action-toolbar,
#challanOut.co-ge-framework .clean-action-toolbar *{
  animation:none!important;
  transition:none!important;
}
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="add"],
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="find"],
#challanOut.co-ge-framework .clean-action-toolbar button[data-act="add"],
#challanOut.co-ge-framework .clean-action-toolbar button[data-act="find"]{
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  visibility:visible!important;
  backface-visibility:hidden!important;
  -webkit-font-smoothing:antialiased!important;
}
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="add"]:hover,
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="find"]:hover,
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="add"]:focus,
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="find"]:focus,
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="add"]:active,
#challanOut.co-ge-framework .co-ge-toolbar button[data-act="find"]:active{
  transform:none!important;
  filter:none!important;
}

/* V26 direct Delivery Challan cleanup */
#challanOut.co-ge-framework .co-ge-header-card .professional-module-form,
#challanOut .professional-module-form.advanced-challan-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 14px!important;}
#challanOut .field-wrap label{color:#111!important;font-weight:700!important;}
#challanOut .field-wrap input,#challanOut .field-wrap select{background:#fff!important;color:#111!important;border:1px solid #9fb3c5!important;border-radius:2px!important;}
#challanOut .co-ge-duplicate-toolbar,#challanOut [aria-hidden="true"].clean-action-toolbar{display:none!important;}
#challanOut #outBillRequired:not(:disabled){background:#fff!important;color:#111!important;}
