/* CTR SUITE V129 — smaller workspace typography (replaces V128). Screen only: receipt,
   export and report print sizes are intentionally unchanged. No zoom scaling. */
@media screen {
  html body .main {
    --v128-title:18px;
    --v128-section:15px;
    --v128-hero:18px;
    --v128-dashboard-hero:22px;
    --v128-kpi:17px;
    --v128-label:12px;
    --v128-note:11px;
    --ctr-title-size:var(--v128-title);
    --ctr-section-title-size:var(--v128-section);
  }
  /* Shared heading roles, including the pages that do not use .module-head.
     The first selector matches the legacy layout-polish specificity plus the app shell. */
  html body:not(.ctr-pos-page):not(.ctr-pos-v65) .app .main.main.main.main.main :is(.ws-title-first,.module-head,.page-head,.promo-head) h1 {font-size:var(--v128-title)!important;}
  html body .app .main :is(.page-head,.module-head,.customer-head,.profile-head,.opening-head,.rh-head,.rh-title,.cs-page-head,.cs-head-title,.cr-page-head,.billing-head,.notifications-head,.stock-page-title,.ao-header,.dashboard-head,.hc-hero,.plan-hero,.ctr-stock-page-head,.ctr-supplier-page-head) h1,
  html body .app .main :is(.pb-page-head h1,.pb-title,.invoice-hero h1,.invoice-document-title h1),
  html body .app .main :is(.customer-page,.bon-modern-page,.sales-modern-page,.sales-detail-modern-page,.module-page,.cs-page,.cr-root,.opening-shift-page,.reports-detail-page,.pmx-page,.promo-page,.supplier-page,.ao) :is(.page-head,.module-head,.customer-head,.bon-title-wrap,.sales-onecard-head,.opening-head,.cs-page-head,.cs-head-title,.cr-page-head,.ctr-stock-page-head,.ctr-supplier-page-head,.ao-header,.promo-head) h1 {
    font-size:var(--v128-title)!important;line-height:1.3!important;
    letter-spacing:-.025em!important;overflow-wrap:anywhere;
  }
  html body .app .main :is(.m-card-head,.pb-panel-header,.list-head,.related-list-head,.card-head,.sales-data-head,.panel-head,.cs-card-head,.cr-card-head,.billing-card-head,.report-section-head,.owner-panel-head) :is(h2,h3),
  html body .app .main :is(.section-title,.ctr-section-title,.pb-panel-title,.owner-command h2) {
    font-size:var(--v128-section)!important;line-height:1.35!important;
    letter-spacing:-.015em!important;
  }
  html body.ctr-reports-page .app .main #kpi-analysis .module-head h1 {font-size:var(--v128-title)!important;line-height:1.3!important;}
  /* Main sales card is deliberately one step above other module summaries. */
  html body .main #ctrOwnerHome94 .ctr93-sales #ctr93Revenue,
  html body .main #ctrOwnerHome94 .ctr93-sales strong {
    font-size:var(--v128-dashboard-hero)!important;line-height:1.23!important;
    letter-spacing:-.025em!important;overflow-wrap:anywhere;white-space:normal!important;
  }
  html body .app .main #ctrOwnerHome94 .ctr93-heading h2 {font-size:var(--v128-section)!important;line-height:1.35!important;}
  /* Large analytic totals, closing report and purchase summaries. */
  html body .app .main :is(.report-summary-main,.detail-hero-card) > strong,
  html body.ctr-reports-page .main #kpi-analysis .report-summary-main > strong,
  html body .app .main :is(.cr-hero-omzet-value,.invoice-amount-box .amount-value,.invoice-hero .amount-value,.invoice-total-block strong),
  html body .app .main .summary-card.total .summary-total,
  html body .main #pbSummaryCards > .pb-stat--total .pb-stat-value {
    font-size:var(--v128-hero)!important;line-height:1.3!important;
    letter-spacing:-.02em!important;white-space:normal!important;overflow-wrap:anywhere;
    max-width:100%;text-overflow:clip!important;
  }
  /* Secondary numeric roles only; body text and icon glyphs are not scaled. */
  html body .app .main :is(.owner-kpi,.report-kpi,.finance-kpi,.detail-mini-card,.m-kpi,.att-kpi,.pay-kpi,.team-kpi,.sal-kpi,.rh-dr-kpi) > :is(strong,.k-value),
  html body .app .main :is(.pmx-stat-card .pmx-stat-value,.ao-kpi .ao-stat,.ao-kpi .ao-kpi-value,.pb-stat .pb-stat-value,.cr-kpi-card .cr-kpi-value,.cs-kpi-card .cs-kpi-value,.target-progress-row strong,.kpi-value),
  html body.ctr-salary-master-page .app .main .sal-page .sal-kpi strong,
  html body.ctr-team-page .app .main .team-page .team-kpi .k-value,
  html body:is(.ctr-team-page,.ctr-salary-master-page) .app .main :is(#ctr-attendance-page,.team-page,.sal-page) :is(.team-kpi .k-value,.sal-kpi>strong),
  html body .main #ctr93Advanced .owner-kpi > strong {
    font-size:var(--v128-kpi)!important;line-height:1.3!important;
    letter-spacing:-.015em!important;white-space:normal!important;overflow-wrap:anywhere;
    text-overflow:clip!important;max-width:100%;
  }
  html body.closing-shift-page #ctrClosingWorkflow .cs-sb-timer,
  html body.closing-shift-page .cs-page .ctr-closing-workflow .cs-sb-timer,
  html body .app .main .shift-clock {font-size:24px!important;line-height:1.3!important;}
  /* Setup is a separate shell, not a workspace .main. */
  html body .setup-shell .aside h1 {font-size:26px!important;line-height:1.25!important;}
  html body .setup-shell :is(.top,.done) h2 {font-size:22px!important;line-height:1.3!important;}
  /* Payment amounts remain prominent enough to confirm tender/change. */
  html body.ctr-pos-v65 #modalPayment .posx-change .val,
  html body.ctr-retail-simple-v104 #modalPayment #pmTotal {font-size:22px!important;line-height:1.3!important;overflow-wrap:anywhere;white-space:normal!important;}
}
@media screen and (max-width:767px) {
  html body .main {
    --v128-title:16px;--v128-section:14px;--v128-hero:16px;
    --v128-dashboard-hero:19px;--v128-kpi:15px;--v128-label:11px;--v128-note:11px;
  }
  /* Mobile hero family: keep the V127 gradients and all semantic colors. */
  html body .app .main :is(.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) > strong,
  html body .main #ctr96MobileReport .ctr96-sales > strong {
    font-size:var(--v128-hero)!important;line-height:1.28!important;
    letter-spacing:-.02em!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;
  }
  html body .app .main :is(.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) > span,
  html body .main #ctr96MobileReport .ctr96-sales > span {
    font-size:var(--v128-label)!important;line-height:1.45!important;
  }
  html body .app .main :is(.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) > :is(small,p),
  html body .main #ctr96MobileReport .ctr96-sales > :is(small,p) {
    font-size:var(--v128-note)!important;line-height:1.45!important;
  }
  html body .app .main :is(.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero),
  html body .main #ctr96MobileReport .ctr96-sales {padding:10px 12px!important;min-height:0!important;}
  html body .app .main :is(.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) > strong,
  html body .main #ctr96MobileReport .ctr96-sales > strong {margin:3px 0!important;}
  html body .main #ctrOwnerHome94 .ctr93-sales {padding:12px!important;}
  html body .main #ctrOwnerHome94 .ctr93-sales>div {gap:5px;}
  html body .main #ctrOwnerHome94 .ctr93-sales .ctr127-hero-label {font-size:12px!important;line-height:1.4!important;}
  html body .main #ctrOwnerHome94 .ctr93-sales #ctr93Transactions {font-size:11px!important;}
  html body .main #ctrOwnerHome94 a.ctr93-tile {min-height:116px!important;padding:10px 11px!important;}
  html body .app .main :is(.ctr99-panel,.ctr98-panel,.ctr97-panel,.ctr100-panel)>summary {font-size:13px!important;line-height:1.45!important;}
  html body.closing-shift-page #ctrClosingWorkflow .cs-sb-timer,
  html body.closing-shift-page .cs-page .ctr-closing-workflow .cs-sb-timer,
  html body .app .main .shift-clock {font-size:20px!important;}
  html body.ctr-pos-v65 #modalPayment .posx-change .val,
  html body.ctr-retail-simple-v104 #modalPayment #pmTotal {font-size:20px!important;}
  html body .setup-shell .aside h1 {font-size:22px!important;}
  html body .setup-shell :is(.top,.done) h2 {font-size:19px!important;}
  /* Legacy 8px placeholders are too small; field text stays touch-safe. */
  html body .app .main.main.main.main :is(input,textarea)::placeholder {font-size:12px!important;line-height:1.4!important;}
  /* Preserve readable fields and iOS focus behavior. Do not reduce PIN,
     numeric tender controls or existing tap targets. */
  html body .app .main :is(input[type=search],input[type=email],input[type=tel],input[type=password],textarea),
  html body.ctr-customers-page .app .main .customer-page .related-onecard #customerSearch,
  html body.ctr-bon-page .app .main #bonSearchInput {
    font-size:16px!important;
  }
}
@media screen and (max-width:360px) {
  html body .main {--v128-hero:15px;--v128-dashboard-hero:18px;--v128-kpi:14px;}
}

@media screen and (max-width:767px) {
  html body .main #ctrOwnerHome94 .ctr93-tile strong{font-size:13px!important;line-height:1.35!important;}
  html body .main #ctrOwnerHome94 .ctr93-tile span:not(.ctr94-icon){font-size:11px!important;line-height:1.45!important;}
  html body .main #ctrOwnerHome94 .ctr93-sales .ctr127-hero-label>span:not(.ctr127-hero-icon){font-size:11px!important;line-height:1.4!important;}
  html body .main #ctrOwnerHome94 .ctr93-tile>.ctr94-icon{width:32px;height:32px;}
  html body .app .main :is(.ctr99-panel,.ctr98-panel,.ctr97-panel,.ctr100-panel)>summary{font-size:12px!important;}
  html body .app .main :is(.customer-page,.bon-modern-page) .related-list-head h2{font-size:14px!important;}
}
