/* v2.99.193 — Master-only proportional alignment, approved reference refinements.
 * Loaded AFTER v191/v192.  No markup, calculations, routes, or functionality changed.
 * Keep both Sales / Financial cards in TWO columns and compliance in FOUR columns on phones. */
body.app-master .snapshot .bc-reference-master-v191{
 --bc193-gold:#e8b73f;--bc193-gold-edge:#bc8121;--bc193-cream:#fff8e9;
 --bc193-radius:18px;--bc193-shadow:0 3px 0 #b47a23,0 6px 11px #56200a27;
}
@media(max-width:700px){
 /* All three approved section footprints share the exact same outer trim and corner system. */
 body.app-master .snapshot .bc-reference-master-v191>.previous-day-sales.sapaad-split-card,
 body.app-master .snapshot .bc-reference-master-v191>.bc-reference-financial-v191,
 body.app-master .snapshot .bc-reference-master-v191>.summary-compliance{
  border:3px solid var(--bc193-gold)!important;border-radius:var(--bc193-radius)!important;
  background:linear-gradient(143deg,#fffdf6 0%,#fff5e0 76%,#ffefce 100%)!important;
  box-shadow:inset 0 0 0 1px #fffcef,0 3px 0 var(--bc193-gold-edge),0 6px 10px #672c1033!important;
  padding:0 8px 11px!important;gap:9px!important;overflow:hidden!important;
 }
 body.app-master .snapshot .snapshot-grid.bc-reference-master-v191{gap:13px!important;padding:6px!important}
 /* HEADER: same curve and gilded underlining on the three sections. */
 body.app-master .bc-reference-master-v191 .sapaad-split-head,
 body.app-master .bc-reference-master-v191 .bc-reference-financial-head,
 body.app-master .snapshot .bc-reference-master-v191>.summary-compliance>span{
  min-height:64px!important;box-sizing:border-box!important;
  margin:0 -8px!important;gap:10px!important;
  border-bottom:5px solid #edb83f!important;
  border-radius:14px 14px 43% 7% / 13px 13px 17px 10px!important;
  box-shadow:0 2px 0 #fff3c5!important;
  background:linear-gradient(120deg,#650015 0%,#940522 54%,#49000f 100%)!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-split-head{padding:8px 13px!important}
 body.app-master .bc-reference-master-v191 .bc-reference-financial-head{padding:8px 13px!important;font-size:clamp(18px,4.7vw,23px)!important}
 body.app-master .bc-reference-master-v191 .sapaad-split-calendar,
 body.app-master .bc-reference-master-v191 .bc-finance-head-icon{
  width:43px!important;height:43px!important;min-width:43px!important;flex:none!important;
  border:2px solid #ffd675!important;border-radius:12px!important;
  box-shadow:inset 0 0 0 1px #fff9db,0 3px 0 #9a621c,0 5px 6px #21000945!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-split-calendar svg,
 body.app-master .bc-reference-master-v191 .bc-finance-head-icon svg{width:27px!important;height:27px!important}
 body.app-master .bc-reference-master-v191 .sapaad-split-title{padding-left:10px!important;max-width:calc(100% - 56px)!important}
 body.app-master .bc-reference-master-v191 .sapaad-split-title b{font-size:clamp(18px,4.6vw,23px)!important;font-weight:900!important;letter-spacing:-.012em!important}
 body.app-master .bc-reference-master-v191 .sapaad-split-title small{font-size:clamp(10px,2.63vw,12px)!important;letter-spacing:.005em!important}
 body.app-master .bc-reference-master-v191 .bc-reference-growth{width:74px!important;height:51px!important;right:7px!important;top:6px!important;opacity:.45!important}
 body.app-master .bc-reference-master-v191 .bc-reference-finance-growth{right:7px!important}
 /* Sales cards: keep heading, amount, comparison and button on the same vertical rhythm. */
 body.app-master .bc-reference-master-v191 .sapaad-split-halves{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  padding:5px 0 2px!important;align-items:stretch!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-split-half{
  border:2px solid #e6b449!important;border-radius:16px!important;
  box-shadow:var(--bc193-shadow)!important;
  padding:7px 7px 11px!important;gap:7px!important;
  min-height:199px!important;height:auto!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-half-heading{
  min-height:45px!important;gap:6px!important;padding:5px 6px!important;
  font-size:clamp(10px,2.85vw,13px)!important;line-height:1.05!important;
  border:2px solid #f0bd54!important;border-bottom:3px solid #ae771a!important;
  border-radius:26px!important;box-shadow:0 2px 0 #a86f18,0 4px 7px #430d1e37!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-half-icon{
  width:26px!important;height:26px!important;min-width:26px!important;
  font-size:19px!important;border:2px solid #f4cf79!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-split-half>strong{
  font-size:clamp(13px,4.2vw,18px)!important;line-height:1.15!important;
  letter-spacing:-.057em!important;font-weight:900!important;
  max-width:100%!important;white-space:nowrap!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-half-sub{font-size:10px!important;line-height:1.2!important}
 body.app-master .bc-reference-master-v191 .sales-change{
  font-size:clamp(8px,2.35vw,11px)!important;padding:6px 7px!important;
  border-radius:11px!important;line-height:1.18!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-state{font-size:clamp(8px,2.15vw,10px)!important;padding:3px 6px!important;line-height:1.15!important}
 body.app-master .bc-reference-master-v191 .sapaad-split-half>small[data-live-pos-date]{font-size:clamp(8px,2.25vw,10px)!important;line-height:1.2!important}
 /* Consistent gilded 3D buttons / touch target sizes without changing their actions. */
 body.app-master .bc-reference-master-v191 .bc-sales-tap-hint,
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>em,
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance>.compliance-view-all{
  min-height:33px!important;max-height:none!important;padding:5px 5px!important;
  border:2px solid #efbe51!important;border-bottom:3px solid #b4781c!important;
  border-radius:27px!important;box-sizing:border-box!important;
  box-shadow:0 3px 0 #a56b1b,0 5px 6px #430d1d30!important;
  font-size:clamp(10px,2.75vw,13px)!important;line-height:1.2!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-split-footer{
  gap:7px!important;padding:3px 2px 0!important;flex-wrap:wrap!important;min-height:22px!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-split-footer>*{
  font-size:clamp(8px,2.15vw,11px)!important;font-weight:700!important;
  border:1px solid #e3bc71!important;border-radius:13px!important;
  padding:4px 7px!important;white-space:nowrap!important;
  background:linear-gradient(#fffdf6,#ffedca)!important;
 }
 /* Financial cards: larger amounts, original substantial progress bar, less dead space. */
 body.app-master .bc-reference-master-v191 .bc-reference-financial-pair{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card{
  min-height:191px!important;max-height:none!important;
  padding:51px 7px 9px!important;gap:7px!important;
  border:2px solid #e6b449!important;border-bottom:3px solid #bb8725!important;
  border-radius:16px!important;box-shadow:var(--bc193-shadow)!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>span:not(.trend-badge){
  top:6px!important;left:5px!important;right:5px!important;
  min-height:39px!important;padding:6px 5px 6px 39px!important;
  font-size:clamp(10px,2.86vw,13px)!important;line-height:1.1!important;
  border:2px solid #efbd4f!important;border-bottom:3px solid #b27a23!important;
  border-radius:24px!important;box-shadow:0 2px 0 #ab751e,0 4px 6px #4a151932!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>.ui-icon{
  width:27px!important;height:27px!important;top:12px!important;left:11px!important;
  border:2px solid #f6d27a!important;padding:4px!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>strong{
  font-size:clamp(12.5px,4vw,19px)!important;line-height:1.18!important;
  letter-spacing:-.058em!important;white-space:nowrap!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>small{
  font-size:clamp(9px,2.5vw,11px)!important;line-height:1.26!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card .target-progress{
  width:100%!important;height:12px!important;min-height:12px!important;
  border:2px solid #c08c2c!important;margin:4px 0 3px!important;
  box-shadow:inset 0 2px 4px #86501d35,0 2px 3px #8f631c35!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>.metric-detail-note{
  font-size:clamp(9px,2.32vw,11px)!important;line-height:1.23!important;
  padding:6px 0 2px!important;border-top:1px solid #d1ad73!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>em{
  margin-top:auto!important;flex:none!important;font-weight:900!important;
 }
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>em b{font-size:16px!important;margin-left:5px!important}
 /* Entry Compliance: four tiles, larger internal icons/numbers, standardized padding. */
 body.app-master .snapshot .bc-reference-master-v191>.summary-compliance>span{
  min-height:64px!important;padding:10px 99px 9px 54px!important;
  font-size:clamp(14px,3.9vw,19px)!important;letter-spacing:.005em!important;
 }
 body.app-master .snapshot .bc-reference-master-v191>.summary-compliance>span:before{
  top:11px!important;left:10px!important;width:36px!important;height:36px!important;
  font-size:24px!important;border:2px solid #edbf56!important;border-radius:11px!important;
 }
 body.app-master .snapshot .bc-reference-master-v191>.summary-compliance>.compliance-live-bar{top:14px!important;right:8px!important;gap:4px!important}
 body.app-master .bc-reference-master-v191 .summary-compliance .live-state,
 body.app-master .bc-reference-master-v191 .summary-compliance .compliance-live-bar button{
  font-size:clamp(8px,2vw,10px)!important;padding:5px 6px!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance>.compliance-tabs{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;margin:6px 0 4px!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button{
  min-height:85px!important;box-sizing:border-box!important;
  grid-template-columns:22px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  gap:3px 4px!important;padding:8px 4px!important;
  border:2px solid #e8b741!important;border-radius:12px!important;
  box-shadow:inset 0 0 0 1px #fff8e4,0 3px 0 #b77a1d,0 5px 6px #672a1530!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button>i{
  width:22px!important;height:22px!important;font-size:16px!important;border:2px solid #d8a843!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button>b{
  font-size:clamp(19px,5.7vw,28px)!important;line-height:1.03!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button>small{
  font-size:clamp(7px,2.2vw,10px)!important;line-height:1.13!important;
  font-weight:850!important;overflow-wrap:anywhere!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance>.compliance-view-all{margin-top:3px!important}
}
@media(max-width:355px){
 body.app-master .bc-reference-master-v191 .sapaad-split-half{padding:6px 4px 9px!important}
 body.app-master .bc-reference-master-v191 .sapaad-half-heading{font-size:9.6px!important;gap:3px!important}
 body.app-master .bc-reference-master-v191 .sapaad-half-icon{width:22px!important;height:22px!important;min-width:22px!important}
 body.app-master .bc-reference-master-v191 .sapaad-split-half>strong{font-size:12.6px!important}
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card{padding-left:5px!important;padding-right:5px!important}
 body.app-master .snapshot .bc-reference-financial-pair>.metric.master-kpi-card>strong{font-size:12.7px!important}
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance>.compliance-tabs{gap:4px!important}
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button{
  grid-template-columns:19px minmax(0,1fr)!important;gap:2px 2px!important;padding:7px 2px!important;
 }
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button>i{width:18px!important;height:18px!important;font-size:13px!important}
 body.app-master .snapshot .bc-reference-master-v191 .summary-compliance .compliance-tabs>button>small{font-size:7.1px!important}
}
@media(max-width:700px){
 /* The POS badge must never increase the height of its heading or offset the amount. */
 body.app-master .bc-reference-master-v191 .sapaad-half-heading{
  position:relative!important;min-height:54px!important;max-height:54px!important;
  align-content:flex-start!important;align-items:center!important;
 }
 body.app-master .bc-reference-master-v191 .sapaad-pos-half .sapaad-state{
  position:absolute!important;right:6px!important;top:32px!important;
  margin:0!important;max-width:calc(100% - 12px)!important;
  padding:2px 5px!important;white-space:nowrap!important;
 }
 /* Reference has the LIVE bar and cards immediately beneath its banner. */
 body.app-master .snapshot .bc-reference-master-v191>.summary-compliance>strong{
  display:none!important;
 }
}
@media(max-width:355px){
 /* Very narrow iPhones need a second heading line and a non-overlapping POS state. */
 body.app-master .bc-reference-master-v191 .sapaad-half-heading{min-height:65px!important;max-height:65px!important}
 body.app-master .bc-reference-master-v191 .sapaad-pos-half .sapaad-state{top:47px!important}
}
