/* Hamyara 0.15.28 — pre-v1 guide + product/pricing/summary finishing pass */

/* Dashboard decision figures: use more of the available card height without wrapping. */
body .data-mining-v17 .mining-grid-v17 strong,
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170{
  font-size:clamp(24px,1.9vw,34px)!important;
  line-height:1.06!important;
  font-weight:900!important;
  letter-spacing:-.9px!important;
  transform-origin:right center!important;
}
body .data-mining-v17 .mining-grid-v17 strong small,
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170 small{font-size:12.5px!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(20px,2.25vw,29px)!important}}

/* Transaction summary: every title/copy centered; received/paid and remaining are stacked. */
body.transaction-page .summary-panel-v5>header,
body.transaction-page .summary-panel-v5>header>div,
body.transaction-page .summary-party-v5,
body.transaction-page .money-hero{text-align:center!important;justify-items:center!important}
body.transaction-page .summary-panel-v5>header :is(small,h2),
body.transaction-page .summary-party-v5 :is(span,strong,small),
body.transaction-page .money-hero :is(span,strong,small){text-align:center!important;width:100%!important}
body.transaction-page .summary-money-stack-v177,
body.transaction-page .money-grid.summary-money-stack-v177{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
body.transaction-page .summary-money-stack-v177>div{width:100%!important}

/* Product introduction: first row Unit/Active; second row Latest purchase/Low-stock warning. */
body .product-intro-card-v177 .product-quick-fields-v176{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:10px!important;
  align-items:stretch!important;
}
body .product-intro-card-v177 .product-quick-fields-v176>.field,
body .product-intro-card-v177 .product-active-toggle-v176{
  min-height:86px!important;
  height:auto!important;
  padding:10px!important;
  overflow:hidden!important;
}
body .product-intro-card-v177 .product-quick-fields-v176>.field>.field-hint{margin-top:5px!important;line-height:1.55!important;overflow-wrap:anywhere!important}
body .product-intro-card-v177 .product-unit-field-v178,
body .product-intro-card-v177 .product-active-toggle-v176{grid-row:1!important}
body .product-intro-card-v177 .purchase-price-readonly-v175,
body .product-intro-card-v177 .product-quick-fields-v176>label.field:last-child{grid-row:2!important}
body .product-intro-card-v177 .product-active-toggle-v176{display:flex!important;align-items:center!important;justify-content:space-between!important}
body .product-intro-card-v177 .product-active-toggle-v176>span{display:flex!important;align-items:center!important;min-height:48px!important}
body .product-intro-card-v177 .product-active-toggle-v176>span>small{display:none!important}
body .product-intro-card-v177 .product-unit-field-v178>.field-hint{display:none!important}
body .product-intro-card-v177 .purchase-history-v175>header small{line-height:1.7!important}
body .product-intro-card-v177 .purchase-history-list-v175>div{align-items:center!important}
@media(max-width:720px){body .product-intro-card-v177 .product-quick-fields-v176{grid-template-columns:1fr!important}body .product-intro-card-v177 .product-unit-field-v178,body .product-intro-card-v177 .product-active-toggle-v176,body .product-intro-card-v177 .purchase-price-readonly-v175,body .product-intro-card-v177 .product-quick-fields-v176>label.field:last-child{grid-row:auto!important}}

/* One switch language for plain administrative checkbox controls. */
body :is(.store-copy-options-v150,.user-store-grid-v150,.switch-row,.simple-check,.toggle-row,.size-add-row,.attribute-flags-v154,label.remember,.checkbox) input[type="checkbox"]{
  appearance:none!important;-webkit-appearance:none!important;
  width:46px!important;height:26px!important;min-width:46px!important;flex:0 0 46px!important;
  border:0!important;border-radius:999px!important;background:#cbd8e1!important;position:relative!important;
  cursor:pointer!important;opacity:1!important;pointer-events:auto!important;
  box-shadow:inset 0 0 0 1px rgba(20,55,82,.06)!important;transition:background .17s ease!important;
}
body :is(.store-copy-options-v150,.user-store-grid-v150,.switch-row,.simple-check,.toggle-row,.size-add-row,.attribute-flags-v154,label.remember,.checkbox) input[type="checkbox"]::after{
  content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.2)!important;transition:transform .17s ease!important;
}
body :is(.store-copy-options-v150,.user-store-grid-v150,.switch-row,.simple-check,.toggle-row,.size-add-row,.attribute-flags-v154,label.remember,.checkbox) input[type="checkbox"]:checked{background:#12a477!important}
body :is(.store-copy-options-v150,.user-store-grid-v150,.switch-row,.simple-check,.toggle-row,.size-add-row,.attribute-flags-v154,label.remember,.checkbox) input[type="checkbox"]:checked::after{transform:translateX(20px)!important}
body :is(.store-copy-options-v150,.user-store-grid-v150,.switch-row,.simple-check,.toggle-row,.size-add-row,.attribute-flags-v154,label.remember,.checkbox) input[type="checkbox"]:disabled{opacity:.55!important;cursor:not-allowed!important}

/* User guide reporting card. */
body .report-card-v17.user-guide-card-v178{background:linear-gradient(135deg,#f3fbff,#f2fff9)!important;border-color:#cfe8e2!important}
body .report-card-v17.user-guide-card-v178 i{background:#e6f8f2!important;color:#13876b!important}

/* Pricing list should visually run alongside all workspace content. */
body .pricing-page-v10{align-items:stretch!important}
body .pricing-product-list{align-self:stretch!important;min-height:100%!important}
body .pricing-product-scroll{max-height:none!important;height:auto!important}

/* Narrow desktop hardening: prevent item controls from escaping the content area beside the fixed sidebar. */
@media (min-width:901px) and (max-width:1120px){
  body.transaction-page .transaction-workbench .retail-item-main{
    display:grid!important;
    grid-template-columns:64px repeat(3,minmax(0,1fr)) 34px!important;
    grid-template-areas:'image product product product remove' '. qty price total remove'!important;
    column-gap:10px!important;
    row-gap:8px!important;
    min-width:0!important;
    width:100%!important;
  }
  body.transaction-page .transaction-workbench .item-image-v13{
    grid-area:image!important;
    width:64px!important;
    min-width:64px!important;
    height:64px!important;
  }
  body.transaction-page .transaction-workbench .product-field{grid-area:product!important;min-width:0!important;width:100%!important}
  body.transaction-page .transaction-workbench .quantity-field{grid-area:qty!important;min-width:0!important;width:100%!important}
  body.transaction-page .transaction-workbench .price-field{grid-area:price!important;min-width:0!important;width:100%!important}
  body.transaction-page .transaction-workbench .retail-line-total{grid-area:total!important;min-width:0!important;width:100%!important}
  body.transaction-page .transaction-workbench .retail-item-main>.row-action{grid-area:remove!important;margin:0!important;align-self:start!important}
}
