/* Hamyara 0.15.27 — dashboard figures, summary stack, product intro polish, unified switches */

/* Data-mining figures: maximize legibility while keeping long values on one line. */
body .data-mining-v17 .mining-grid-v17 strong,
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170{
  font-size:clamp(20px,1.55vw,29px)!important;
  line-height:1.12!important;
  font-weight:900!important;
  letter-spacing:-.7px!important;
  white-space:nowrap!important;
  max-width:100%!important;
}
body .data-mining-v17 .mining-grid-v17 strong small,
body .data-mining-v17 .mining-grid-v17 .money-with-unit-v170 small{font-size:12px!important;font-weight:800!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(18px,2vw,25px)!important}}

/* Transaction summary: centered header/copy and received/remaining vertically stacked. */
body.transaction-page .summary-panel-v5>header{
  justify-content:center!important;
  text-align:center!important;
}
body.transaction-page .summary-panel-v5>header>div{text-align:center!important}
body.transaction-page .summary-party-v5{text-align:center!important}
body.transaction-page .summary-party-v5 :is(span,strong,small){text-align:center!important}
body.transaction-page .summary-money-stack-v177{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  margin-inline:0!important;
  width:100%!important;
}
body.transaction-page .summary-money-stack-v177>div{
  width:100%!important;
  min-height:72px!important;
  padding:10px 12px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
}
body.transaction-page .summary-money-stack-v177>div>span{grid-column:1/-1!important;text-align:center!important}
body.transaction-page .summary-money-stack-v177>div>small{grid-column:1!important;grid-row:2!important}
body.transaction-page .summary-money-stack-v177>div>strong{grid-column:2!important;grid-row:2!important;text-align:left!important}

/* Product introduction: consistent clean cards and a tighter, balanced top section. */
body .product-intro-card-v177 .product-intro-v176{gap:12px!important}
body .product-intro-card-v177 .product-intro-top-v176{
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
body .product-intro-card-v177 .product-image-uploader-v176{
  height:126px!important;
  min-height:126px!important;
  max-height:126px!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  padding:10px!important;
  border-radius:13px!important;
}
body .product-intro-card-v177 .product-image-uploader-v176 img{width:78px!important;height:78px!important;border-radius:10px!important}
body .product-intro-card-v177 .product-core-fields-v176{gap:8px!important}
body .product-intro-card-v177 .product-core-fields-v176 textarea{height:56px!important;min-height:56px!important}
body .product-intro-card-v177 .product-quick-fields-v176{
  grid-template-columns:repeat(4,minmax(0,1fr))!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{
  height:112px!important;
  min-height:112px!important;
  padding:10px!important;
  border:1px solid #dfe7ef!important;
  border-radius:12px!important;
  background:#fbfcfe!important;
  box-sizing:border-box!important;
  margin:0!important;
}
body .product-intro-card-v177 .product-quick-fields-v176>.field>.field-label{min-height:20px!important;margin:0!important}
body .product-intro-card-v177 .purchase-price-readonly-v175 .purchase-price-value-v175{background:#f3f7fa!important}
body .product-intro-card-v177 .purchase-history-v175{border-top:1px solid #e8eef3!important;padding-top:12px!important}
body .product-intro-card-v177 .purchase-history-v175>header{align-items:center!important}
@media(max-width:1180px){body .product-intro-card-v177 .product-quick-fields-v176{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body .product-intro-card-v177 .product-intro-top-v176,body .product-intro-card-v177 .product-quick-fields-v176{grid-template-columns:1fr!important}body .product-intro-card-v177 .product-image-uploader-v176{width:100%!important}}

/* One switch language across administrative checkbox controls. Variant color/size chips are intentionally excluded. */
body :is(.store-copy-options-v150,.user-store-grid-v150,.switch-row,.simple-check,.toggle-row,.size-add-row,.attribute-flags-v154) 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) 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,.20)!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) 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) input[type="checkbox"]:checked::after{transform:translateX(20px)!important}
body .store-copy-options-v150 label,
body .user-store-grid-v150 label,
body .switch-row{align-items:center!important}
body .store-copy-options-v150 label>span,
body .user-store-grid-v150 label>span,
body .switch-row>span{min-width:0!important;flex:1 1 auto!important}

/* Existing dedicated toggle-field already uses a custom track; keep it visually identical. */
body .toggle-field>i{width:46px!important;height:26px!important;background:#cbd8e1!important}
body .toggle-field>i:after{width:20px!important;height:20px!important;top:3px!important;right:auto!important;left:3px!important}
body .toggle-field input:checked+i{background:#12a477!important}
body .toggle-field input:checked+i:after{right:auto!important;left:3px!important;transform:translateX(20px)!important}
