/* Hamyara 0.15.30 — final disclosure, amount alignment and requested UI corrections */

/* Hierarchy disclosure is derived only from aria-expanded. Legacy child text cannot render ×. */
body :is(.tree-toggle-v159,.tree-toggle-v158){
  position:relative!important;display:grid!important;place-items:center!important;
  width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;
  padding:0!important;border-radius:50%!important;overflow:hidden!important;
  font-size:0!important;line-height:1!important;color:transparent!important;
  font-family:Arial,"Segoe UI",sans-serif!important;box-sizing:border-box!important;
}
body :is(.tree-toggle-v159,.tree-toggle-v158)>*{display:none!important}
body :is(.tree-toggle-v159,.tree-toggle-v158)::before{
  content:"+"!important;display:block!important;color:#2f6986!important;
  font-family:Arial,"Segoe UI",sans-serif!important;font-size:22px!important;font-weight:700!important;
  line-height:1!important;text-align:center!important;transform:none!important;
}
body :is(.tree-toggle-v159,.tree-toggle-v158)[aria-expanded="true"]::before{content:"−"!important}

/* Quantity +/- controls: the two buttons are exactly the same box on every row and viewport. */
body.transaction-page .number-field{grid-template-columns:44px minmax(48px,1fr) 44px!important;direction:ltr!important;box-sizing:border-box!important}
body.transaction-page .number-field>button{
  box-sizing:border-box!important;width:44px!important;min-width:44px!important;max-width:44px!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;flex:0 0 44px!important;
  margin:0!important;padding:0!important;display:grid!important;place-items:center!important;
  font-family:Arial,"Segoe UI",sans-serif!important;font-size:22px!important;font-weight:800!important;line-height:1!important;
  text-indent:0!important;transform:none!important
}
body.transaction-page .number-field>button[data-qty-plus],body.transaction-page .number-field>button[data-qty-minus]{padding:0!important}

/* Dashboard data-mining: use the available card width much more aggressively. */
body .data-mining-v17 .mining-grid-v17 strong,body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170{
  font-size:clamp(30px,2.35vw,42px)!important;line-height:1!important;font-weight:950!important;
  letter-spacing:-1.25px!important;white-space:nowrap!important;max-width:100%!important
}
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170{gap:7px!important}
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170>small{font-size:13px!important;letter-spacing:0!important}
@media(max-width:1180px){body .data-mining-v17 .mining-grid-v17 strong,body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170{font-size:clamp(25px,3vw,34px)!important;letter-spacing:-1px!important}}
@media(max-width:620px){body .data-mining-v17 .mining-grid-v17 strong,body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170{font-size:clamp(24px,7vw,32px)!important}}

/* Purchase/sale summary: Paid/Received and Remaining boxes are genuinely left aligned. */
body.transaction-page .summary-money-stack-v177>div{direction:ltr!important;justify-items:start!important;text-align:left!important;grid-template-columns:auto minmax(0,1fr)!important}
body.transaction-page .summary-money-stack-v177>div>span{grid-column:1/-1!important;width:100%!important;text-align:left!important;direction:rtl!important;justify-self:start!important}
body.transaction-page .summary-money-stack-v177>div>small{grid-column:1!important;grid-row:2!important;text-align:left!important;direction:rtl!important;justify-self:start!important}
body.transaction-page .summary-money-stack-v177>div>strong{grid-column:2!important;grid-row:2!important;width:auto!important;max-width:100%!important;text-align:left!important;direction:ltr!important;justify-self:start!important}

/* Reporting guide card spans the whole row exactly like managerial analyses. */
body .report-card-v17.user-guide-card-v178{grid-column:1/-1!important;min-height:116px!important}
body .report-card-v17.user-guide-card-v178 b{font-size:20px!important;line-height:1.35!important}
body .report-card-v17.user-guide-card-v178 small{font-size:12.5px!important;line-height:1.7!important}
body .report-card-v17.user-guide-card-v178>span{font-size:11px!important;font-weight:800!important}

/* Product Active box: requested explanation stays under the title inside the same box. */
body .product-intro-card-v177 .product-active-toggle-v176>span{display:grid!important;align-content:center!important;align-items:start!important;gap:3px!important;min-height:48px!important}
body .product-intro-card-v177 .product-active-toggle-v176>span>strong{display:block!important}
body .product-intro-card-v177 .product-active-toggle-v176>span>small{display:block!important;color:#75879a!important;font-size:11px!important;line-height:1.55!important;font-weight:500!important}

/* Dedicated money pairs keep the currency unit on the visual left of the amount. */
body .money-pair-v169,body .money-with-unit-v165,body .money-with-unit-v170,body .purchase-price-value-v175,body .retail-line-value-v165{direction:ltr!important}

/* Money mining cards use the full row so large amounts remain readable without clipping. */
body .data-mining-v17 .mining-grid-v17>.mining-card-money-v180{grid-column:1/-1!important}

/* Final purchase-summary lock: legacy .remaining rules must not recenter or stretch the amount. */
body.transaction-page .money-grid.summary-money-stack-v177>div>strong[data-paid],
body.transaction-page .money-grid.summary-money-stack-v177>div.remaining>strong[data-remaining]{
  width:auto!important;max-width:100%!important;text-align:left!important;justify-self:start!important;direction:ltr!important
}

/* Critical mining-number fix: legacy generic card span rule must not shrink the actual digits. */
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170>span{
  font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;
  direction:ltr!important;text-align:left!important;white-space:nowrap!important
}


/* Global inline money pair: currency is physically left of the amount. */
body .money-inline-v181{display:inline-flex!important;direction:ltr!important;align-items:baseline!important;justify-content:flex-start!important;gap:5px!important;white-space:nowrap!important}
body .money-inline-v181>small{order:0!important;direction:rtl!important;font-size:.72em!important;font-weight:700!important}
body .money-inline-v181>:is(span,b,strong){order:1!important;direction:ltr!important;unicode-bidi:isolate!important}

body .money-inline-v181>em{order:2!important;direction:rtl!important;font-style:normal!important;font-size:.78em!important;font-weight:700!important}
