/* top inline fields final sizing fix */
.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field--cash,
.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field--date{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  direction:rtl;
  gap:8px !important;
}

.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field--cash{
  flex:0 1 292px !important;
  min-width:292px !important;
}

.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field--date{
  flex:0 1 205px !important;
  min-width:205px !important;
}

.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field__inline-label{
  width:auto !important;
  flex:0 0 auto !important;
  margin:0 !important;
  white-space:nowrap;
  text-align:right !important;
}

.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field--cash > .entries-voucher-choice-picker,
.sales-purchase-topdock-layout--inline-fields .sales-purchase-top-field--date > .entries-voucher-date{
  flex:1 1 auto !important;
  min-width:0 !important;
}

.sales-purchase-topdock-layout--inline-fields :is(
  .sales-purchase-top-field__trigger.entries-voucher-choice-picker__trigger,
  .sales-purchase-top-field__date-trigger.entries-voucher-date__trigger
){
  min-height:36px;
  height:36px;
}


/* top-left navigator vertical alignment only */
.sales-purchase-topdock .sales-purchase-navstack .entries-voucher-navstack__title,
.sales-purchase-topdock .sales-purchase-navstack .entries-voucher-navstack__title--ghost{
  display:none !important;
  min-height:0 !important;
  height:0 !important;
  margin:0 !important;
}

.sales-purchase-topdock .sales-purchase-navstack{
  justify-content:center !important;
}


/* separator line between upper section and name/notes section */
.sales-purchase-side-panel__extras--name-notes{
  border-top:1px solid rgba(143,163,197,.45);
  padding-top:8px;
  margin-top:2px;
}


/* hybrid top header rebuild */
.sales-purchase-topdock-layout--hybrid-header{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  direction:rtl;
  flex-wrap:nowrap;
  width:100%;
}

.sales-purchase-topdock-layout--hybrid-header > *{
  min-width:0;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field--beneficiary,
.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field--cash,
.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field--date{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  text-align:center;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field--beneficiary{
  flex:.98 1 0;
  min-width:200px;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field--cash{
  flex:.82 1 0;
  min-width:212px;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field--date{
  flex:0 0 138px;
  min-width:138px;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__inline-label,
.sales-purchase-top-field__stack-label{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  line-height:1.15;
  text-align:center;
  margin:0;
  padding-inline:0;
  white-space:nowrap;
}

.sales-purchase-top-field__text-input.entries-voucher-field__control{
  min-height:36px;
  height:36px;
  padding-inline:12px;
  font-size:14px;
  font-weight:800;
  text-align:right;
}

.sales-purchase-top-field__name-row{
  position:relative;
  min-width:0;
  display:block;
}

.sales-purchase-top-field__text-input--with-launcher.entries-voucher-field__control{
  padding-left:42px;
}

.sales-purchase-top-field__text-input--with-launcher.entries-voucher-field__control::placeholder{
  color:#94a3b8;
  font-size:12px;
  font-weight:700;
  opacity:1;
}

.sales-purchase-top-field__icon-button{
  position:absolute;
  left:3px;
  top:50%;
  transform:translateY(-50%) scale(1);
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:none;
  border-radius:9px;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  transition:transform .16s ease, filter .16s ease, opacity .16s ease, background-color .16s ease, box-shadow .16s ease;
  z-index:1;
}

.sales-purchase-top-field__icon-button:hover{
  background:rgba(59,130,246,.06);
  border-color:transparent;
  box-shadow:0 0 0 1px rgba(59,130,246,.10);
  filter:brightness(1.03);
  transform:translateY(-50%) scale(1.035) !important;
}

.sales-purchase-top-field__icon-button:focus-visible{
  outline:none;
  background:rgba(59,130,246,.07);
  border-color:transparent;
  box-shadow:0 0 0 2px rgba(59,130,246,.14);
  transform:translateY(-50%) scale(1.035) !important;
}

.sales-purchase-top-field__icon-button:active{
  background:rgba(59,130,246,.09);
  box-shadow:0 0 0 1px rgba(59,130,246,.12);
  transform:translateY(-50%) scale(.975) !important;
}

.sales-purchase-top-field__icon-button:is(:hover, :focus, :focus-visible){
  box-shadow:0 0 0 1px rgba(59,130,246,.10);
}

.sales-purchase-top-field__avatar{
  width:100%;
  height:100%;
  display:block;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__name-row,
.sales-purchase-topdock-layout--hybrid-header .entries-voucher-choice-picker,
.sales-purchase-topdock-layout--hybrid-header .entries-voucher-date{
  width:100%;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__text-input.entries-voucher-field__control{
  text-align:center;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__text-input--with-launcher.entries-voucher-field__control{
  padding-right:14px;
  padding-left:44px;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__trigger .entries-voucher-choice-picker__value,
.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__trigger .entries-voucher-choice-popover__label,
.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__date-trigger .entries-voucher-date__trigger-value{
  text-align:center;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__trigger .entries-voucher-choice-picker__value-layout{
  justify-content:center;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-top-field__date-trigger.entries-voucher-date__trigger{
  justify-content:center;
  gap:8px;
}

.sales-purchase-topdock-layout--hybrid-header :is(
  .sales-purchase-top-field__trigger.entries-voucher-choice-picker__trigger,
  .sales-purchase-top-field__date-trigger.entries-voucher-date__trigger
){
  min-height:36px;
  height:36px;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-topdock-inline-nav{
  flex:0 0 auto;
  align-self:flex-start;
  margin-top:20px;
  margin-bottom:0;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-topdock-inline-nav .entries-voucher-navcluster{
  display:flex;
  align-items:center;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-topdock-inline-count{
  flex:0 0 auto;
  min-width:auto;
  min-height:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  margin-top:20px;
  margin-bottom:0;
  gap:3px;
  padding-inline:2px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.sales-purchase-topdock-inline-count__label{
  color:#334155;
  font-size:12px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.sales-purchase-topdock-inline-count__value{
  color:#0f172a;
  font-size:13px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.sales-purchase-topdock-layout--hybrid-header .sales-purchase-topdock-inline-lookup{
  flex:0 0 44px;
  min-width:44px;
  display:block;
  position:relative;
  align-self:flex-start;
  margin-top:20px;
  margin-bottom:0;
}

.sales-purchase-topdock-inline-lookup__label{
  position:absolute;
  inset-inline-end:0;
  inset-inline-start:0;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.sales-purchase-topdock-inline-lookup__input.entries-voucher-navbox__input{
  width:100%;
  min-height:30px;
  height:30px;
}
