/* Hamyara 0.15.26 — purchase-cost provenance, search polish and control-height hardening */
:root{--v175-row-control:50px;--v175-transfer-control:50px}

/* Global top search: one clean box, no browser-native search/cancel affordances. */
body .topbar-search{position:relative!important;overflow:visible!important;isolation:isolate!important}
body .topbar-search>input[data-global-search]{
  appearance:none!important;-webkit-appearance:none!important;
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
  height:100%!important;min-height:0!important;margin:0!important;padding-block:0!important;
}
body .topbar-search>input[data-global-search]::-webkit-search-cancel-button,
body .topbar-search>input[data-global-search]::-webkit-search-decoration{display:none!important;-webkit-appearance:none!important}
body .topbar-search .search-results{
  top:calc(100% + 8px)!important;inset-inline:0!important;width:100%!important;max-width:none!important;
  max-height:min(430px,60vh)!important;padding:8px!important;border-radius:14px!important;
  border:1px solid #d9e5ef!important;background:#fff!important;box-shadow:0 18px 48px rgba(15,42,67,.18)!important;
  z-index:700!important;overflow:auto!important;text-align:right!important;direction:rtl!important;
}
body .search-result-group{display:grid!important;gap:4px!important;padding:4px!important}
body .search-result-group>strong{padding:4px 8px!important;color:#708398!important;font-size:11px!important}
body .search-result-item{min-height:48px!important;border-radius:10px!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) 16px!important;align-items:center!important;gap:8px!important;padding:6px 8px!important}
body .search-result-copy{min-width:0!important}.search-result-copy b,.search-result-copy small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* Transaction item second row: identical control heights, perfectly centered +/- buttons. */
body.transaction-page .transaction-workbench .quantity-field,
body.transaction-page .transaction-workbench .price-field,
body.transaction-page .transaction-workbench .retail-line-total{
  min-height:74px!important;height:74px!important;max-height:74px!important;
  grid-template-rows:20px var(--v175-row-control)!important;align-content:start!important;
}
body.transaction-page .transaction-workbench .quantity-field>span,
body.transaction-page .transaction-workbench .price-field>span,
body.transaction-page .transaction-workbench .retail-line-total>span{
  height:20px!important;min-height:20px!important;line-height:20px!important;margin:0 0 4px!important;
}
body.transaction-page .number-field{
  display:grid!important;grid-template-columns:44px minmax(48px,1fr) 44px!important;
  direction:ltr!important;height:var(--v175-row-control)!important;min-height:var(--v175-row-control)!important;
  max-height:var(--v175-row-control)!important;overflow:hidden!important;padding:0!important;
  border:1px solid #d6e1ea!important;border-radius:11px!important;background:#fff!important;
}
body.transaction-page .number-field>button{
  width:44px!important;min-width:44px!important;height:var(--v175-row-control)!important;min-height:var(--v175-row-control)!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:0!important;inset:auto!important;
  border:0!important;border-radius:0!important;background:#edf4f9!important;color:#06385d!important;
  font-family:Arial,sans-serif!important;font-size:21px!important;font-weight:800!important;line-height:1!important;text-align:center!important;
}
body.transaction-page .number-field>button:first-child{border-inline-end:1px solid #dce6ee!important}
body.transaction-page .number-field>button:last-child{border-inline-start:1px solid #dce6ee!important}
body.transaction-page .number-field>input{
  height:var(--v175-row-control)!important;min-height:var(--v175-row-control)!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;padding:0 4px!important;text-align:center!important;line-height:var(--v175-row-control)!important;font-weight:700!important;
}
body.transaction-page .price-field .money-input-wrap,
body.transaction-page .price-field .money-input-wrap>.input,
body.transaction-page .retail-line-value-v165{
  height:var(--v175-row-control)!important;min-height:var(--v175-row-control)!important;max-height:var(--v175-row-control)!important;
}
body.transaction-page .price-field .money-input-wrap{border:1px solid #d6e1ea!important;border-radius:11px!important;overflow:hidden!important;background:#fff!important}
body.transaction-page .price-field .money-input-wrap>.input{border:0!important;box-shadow:none!important;border-radius:0!important}
body.transaction-page .retail-line-value-v165{display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #d6e1ea!important;border-radius:11px!important;background:#f8fbfd!important}

/* Payment boxes: account / amount / method share the same visual control height. */
body.transaction-page .retail-payment :is(.payment-account,.payment-amount,.payment-method) :is(.select,.combo-control,.step-control-v153,.money-input-wrap),
body.transaction-page .retail-payment .payment-amount .money-input-wrap>.input{
  height:52px!important;min-height:52px!important;max-height:52px!important;box-sizing:border-box!important;
}
body.transaction-page .retail-payment .payment-account .combo-control,
body.transaction-page .retail-payment .payment-account .step-control-v153{align-items:center!important}

/* Transfer document controls: exactly identical heights. */
body.transaction-page form[data-tx-type="transfer"] :is(.focus-date-v168 .date-composite-v168,.focus-time>.input,.transfer-master-amount-v167 .money-input-wrap,.transfer-master-method-v167>.select){
  height:var(--v175-transfer-control)!important;min-height:var(--v175-transfer-control)!important;max-height:var(--v175-transfer-control)!important;box-sizing:border-box!important;
}
body.transaction-page form[data-tx-type="transfer"] .focus-date-v168 .date-composite-v168 :is(input,.field-action),
body.transaction-page form[data-tx-type="transfer"] .transfer-master-amount-v167 .money-input-wrap>.input{
  height:var(--v175-transfer-control)!important;min-height:var(--v175-transfer-control)!important;max-height:var(--v175-transfer-control)!important;
}

/* Rich transaction descriptions in the transaction center. */
body .transaction-description-v175{display:grid!important;gap:4px!important;min-width:220px!important;max-width:520px!important;white-space:normal!important;line-height:1.6!important}
body .transaction-description-v175>span{font-size:12px!important;color:#26394c!important}
body .transaction-description-v175>small{display:flex!important;gap:5px!important;align-items:center!important;flex-wrap:wrap!important;color:#708398!important;font-size:10.5px!important}
body .transaction-description-v175>small b{font-size:10.5px!important;color:#3b5d77!important;font-weight:700!important}
body .transaction-description-v175>small i{font-style:normal!important;color:#a7b5c2!important}

/* Product form: purchase price is read-only and backed by actual purchase transactions. */
body .purchase-price-readonly-v175{min-width:0!important}
body .purchase-price-value-v175{height:48px!important;border:1px solid #d6e1ea!important;border-radius:11px!important;background:#f5f9fc!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;padding:0 12px!important;direction:ltr!important}
body .purchase-price-value-v175 strong{font-size:17px!important;color:#143b5c!important;font-variant-numeric:tabular-nums!important}
body .purchase-price-value-v175 small{font-size:11px!important;color:#7b8da0!important}
body .purchase-history-v175{grid-column:1/-1!important;border-top:1px solid #e3ebf2!important;margin-top:16px!important;padding-top:16px!important}
body .purchase-history-v175>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:9px!important}
body .purchase-history-v175>header strong,body .purchase-history-v175>header small{display:block!important}
body .purchase-history-v175>header small{color:#8494a5!important;font-size:10.5px!important;margin-top:2px!important}
body .purchase-history-v175>header>b{font-size:14px!important;color:#145d82!important;white-space:nowrap!important}
body .purchase-history-list-v175{display:grid!important;gap:5px!important}
body .purchase-history-list-v175>div{display:grid!important;grid-template-columns:110px minmax(120px,1fr) 90px 150px!important;gap:8px!important;align-items:center!important;padding:8px 10px!important;border-radius:10px!important;background:#f7f9fb!important;font-size:11px!important}
body .purchase-history-list-v175>div>strong{text-align:left!important;direction:rtl!important;color:#174e70!important}
body .purchase-history-list-v175>p{margin:0!important;padding:12px!important;border-radius:10px!important;background:#f7f9fb!important;color:#738497!important}
@media(max-width:760px){body .purchase-history-list-v175>div{grid-template-columns:1fr 1fr!important}}

/* Pricing page: 4 base cards including transparent overhead calculation. */
body .pricing-base-grid-v175{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important}
body .pricing-base-grid-v175>article{min-width:0!important}
body .pricing-base-grid-v175 .overhead-v175{background:#f7fbfd!important;border-color:#cfe2eb!important}
body .pricing-base-grid-v175 .overhead-v175 small{line-height:1.75!important}
body .purchase-transaction-history-v175{margin-top:14px!important}
body [data-pricing-calculator] .tier-field input{font-variant-numeric:tabular-nums!important;direction:ltr!important}
@media(max-width:1260px){body .pricing-base-grid-v175{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){body .pricing-base-grid-v175{grid-template-columns:1fr!important}}
/* Strong final override: legacy v22 minimum height must not make quantity 2px taller. */
body.readable-ui.transaction-page .transaction-workbench .retail-item-main .number-field{
  height:var(--v175-row-control)!important;
  min-height:var(--v175-row-control)!important;
  max-height:var(--v175-row-control)!important;
  box-sizing:border-box!important;
}
body.readable-ui.transaction-page .transaction-workbench .retail-item-main .number-field>button,
body.readable-ui.transaction-page .transaction-workbench .retail-item-main .number-field>input{
  height:calc(var(--v175-row-control) - 2px)!important;
  min-height:calc(var(--v175-row-control) - 2px)!important;
  max-height:calc(var(--v175-row-control) - 2px)!important;
}
