/* Page/card headings match Masa & QR Menü > Tüm İşlemler.
   Keep numeric KPIs, navigation, table labels and body-level dialogs out of this rule. */
:root{--rs-page-heading-size:25px;--rs-page-heading-weight:600}
#router-view :is(.qa-title,.pricing-dist-heading,.fin-quick h2,.fin-hero h2,.fin-cash-heading h2,.fin-page-header h2,.fin-card-header h2,.fin-card-header h3,.sales-heading h1,.sales-card-heading h2,.exp-quick h2,.exp-card>h3,.exp-head h3,.ae-quick h2,.ae-panel>header h2,.eops-page-header h2,.ss-card h2,.ss-card h3,.pre-batch-card h3,#inv-quick-actions-title,#btn-recent-products>span,#btn-click-stats>div>div:first-child>span),
#router-view .pricing-summary-final [class]:is(.qa-title,.pricing-dist-heading),
#router-view #inv-table-card .qa-title{font-family:var(--font-display,Outfit,sans-serif)!important;font-size:var(--rs-page-heading-size)!important;font-weight:var(--rs-page-heading-weight)!important;line-height:1.15!important;letter-spacing:0!important}

/* The icon/text gap has one owner. This spacing-only layer also covers
   page renderers with legacy inline/important title rules; controls keep their gaps. */
@layer rs-heading-spacing {
 body.admin-brand :is(#router-view,#center-root,.access-management) :is(
  .rs-section-heading,.rs-action-title,.ss-section-title,.qa-title,
  .el-header-heading,
  h1:has(> :is(svg,i[data-lucide])),
  h2:has(> :is(svg,i[data-lucide])),
  h3:has(> :is(svg,i[data-lucide]))
 ) { column-gap:var(--rs-heading-icon-gap,8px)!important; }
 body.admin-brand :is(#router-view,#center-root) .pricing-dist-heading>div:first-child:has(>svg) { column-gap:var(--rs-heading-icon-gap,8px)!important; }
}

/* One geometry for equivalent section headings across the panel. */
:root{--rs-heading-icon-size:var(--rs-title-icon,24px);--rs-heading-icon-gap:var(--rs-title-gap,8px);--rs-heading-row-height:var(--rs-title-row,40px);--rs-heading-inset-top:var(--rs-card-top,10px)}
#router-view :is(.qa-title,.pricing-dist-heading,.fin-quick h2,.fin-hero h2,.fin-cash-heading h2,.fin-page-header h2,.fin-card-header h2,.fin-card-header h3,.sales-heading h1,.sales-card-heading h2,.exp-quick h2,.exp-card>h3,.exp-head h3,.ae-quick h2,.ae-panel>header h2,.ss-card h2,.ss-card h3,.pre-batch-card h3,#inv-quick-actions-title,#btn-recent-products>span,#btn-click-stats>div>div:first-child>span){display:flex!important;align-items:center!important;gap:var(--rs-heading-icon-gap)!important;min-height:var(--rs-heading-row-height);transform:none!important}
#router-view :is(.qa-title,.pricing-dist-heading,.fin-quick h2,.fin-cash-heading h2,.fin-page-header h2,.fin-card-header h2,.fin-card-header h3,.sales-heading h1,.sales-card-heading h2,.exp-quick h2,.exp-card>h3,.exp-head h3,.ae-quick h2,.ae-panel>header h2,.ss-card h2,.ss-card h3,.pre-batch-card h3,#inv-quick-actions-title,#btn-recent-products>span,#btn-click-stats>div>div:first-child>span)>:is(svg,i[data-lucide]),
#router-view :is(.qa-title,.pricing-dist-heading)>div:first-child>:is(svg,i[data-lucide]){display:block!important;width:var(--rs-heading-icon-size)!important;height:var(--rs-heading-icon-size)!important;min-width:var(--rs-heading-icon-size)!important;flex:0 0 var(--rs-heading-icon-size)!important;stroke-width:2!important;margin:0!important;position:static!important;transform:none!important}
#router-view .qa-title>div:has(>svg):not(:has(span)){width:var(--rs-heading-icon-size)!important;height:var(--rs-heading-icon-size)!important;flex:0 0 var(--rs-heading-icon-size)!important;display:flex!important;align-items:center!important;justify-content:center!important}
#router-view .pricing-dist-heading>div:first-child{display:flex;align-items:center!important;gap:var(--rs-heading-icon-gap)!important}
/* Matching left action cards and right table cards share the same heading row. */
#router-view :is(#products-actions-box,#channel-actions-box,#recipe-actions-box,#inv-actions-box){padding-top:12px!important}
#router-view :is(#products-actions-box,#channel-actions-box,#recipe-actions-box,#inv-actions-box) .qa-header{margin-top:0!important}
#router-view :is(#products-actions-box,#channel-actions-box,#recipe-actions-box,#inv-actions-box) .qa-title{height:auto!important;min-height:40px!important}
#router-view .rs-table-header{align-items:center!important}
#router-view .rs-table-header .products-search-wrapper{top:0!important}
/* Action icons retain their own shared scale; arrows remain smaller. */
#router-view :is(.qa-action-card,.fin-action,.ss-action,.exp-actions button,.ae-quick-action)>svg:first-child{width:22px!important;height:22px!important;flex:0 0 22px!important;stroke-width:2!important}
#router-view :is(.qa-action-card,.fin-action,.ss-action,.exp-actions button,.ae-quick-action)>:is(.qa-chevron,.exp-arrow,svg:last-child:not(:first-child)){width:14px!important;height:14px!important;flex:0 0 14px!important;stroke-width:2!important}
/* Popup headings use the same icon box without changing navigation icons. */
.rs-popup :is(.rs-popup-header,.ae-detail>header,.sales-dialog-header,.eops-dialog-header) :is(h2,h3){display:flex;align-items:center;gap:12px!important}
.rs-popup :is(.rs-popup-header,.ae-detail>header,.sales-dialog-header,.eops-dialog-header) :is(h2,h3)>svg{width:24px!important;height:24px!important;flex:0 0 24px!important;stroke-width:2!important}
/* Move tools to a second row when a long title needs its own width. */
@media(min-width:769px){
 #router-view .rs-table-header{flex-wrap:wrap!important}
 #router-view .rs-table-header>div:first-child{flex:1 1 max-content}
 #router-view .rs-table-header .products-filter-actions{flex:0 0 auto}
}
.rs-popup-header svg:not(button svg),.rs-popup>header svg:not(button svg){width:24px!important;height:24px!important;flex-shrink:0;stroke-width:2!important}
#router-view .ss-sidebar :is(.ss-distribution,.ss-recent){padding-top:18px!important}
#router-view :is(#btn-recent-products>span,#btn-click-stats>div>div:first-child>span)>svg{width:24px!important;height:24px!important;flex:0 0 24px!important;stroke-width:2!important}
#router-view :is(#btn-recent-products,#btn-click-stats>div>div:first-child)>svg{width:14px!important;height:14px!important;flex:0 0 14px!important;stroke-width:2!important}
#router-view #inv-quick-actions-title>svg{width:24px!important;height:24px!important;flex:0 0 24px!important;stroke-width:2!important}
.rs-popup :is(.rs-popup-header,.sales-dialog-header,.eops-dialog-header,.ae-detail>header) :is(h2,h3),dialog.rs-popup>header :is(h2,h3){font-family:var(--font-display,Outfit,sans-serif)!important;font-size:var(--rs-page-heading-size)!important;font-weight:var(--rs-page-heading-weight)!important;line-height:1.15!important;letter-spacing:0!important}
#router-view .ae-panel>header{align-items:flex-start!important}
#router-view .ae-panel>header h2{flex:1 1 max-content}
@media(max-width:1350px){
 #router-view .ae-bottom .ae-panel>header{flex-direction:column!important;align-items:stretch!important}
 #router-view .ae-bottom .ae-panel-actions{min-height:36px;justify-content:flex-start!important}
}

/* Approved 25px / 600 section heading contract, including every large chart. */
body.admin-brand #router-view :is(#inv-root-view,.products-container,.pricing-summary-final,.finance-page,.exp-dashboard,.sales-analysis,.all-expenses,.pre-batch-cards) :is(.rs-section-heading,#inv-quick-actions-title){
 display:flex!important;align-items:center!important;gap:var(--rs-heading-icon-gap)!important;min-height:40px!important;height:auto!important;
 font-family:var(--font-display,Outfit,sans-serif)!important;font-size:25px!important;font-weight:600!important;
 line-height:1.15!important;letter-spacing:-.4px!important;margin:0!important;transform:none!important;
}
body.admin-brand #router-view :is(#inv-root-view,.products-container,.pricing-summary-final,.finance-page,.exp-dashboard,.sales-analysis,.all-expenses) :is(.rs-section-heading,#inv-quick-actions-title)>svg,
body.admin-brand #router-view .rs-section-heading>div:first-child>svg{width:24px!important;height:24px!important;min-width:24px!important;flex:0 0 24px!important;stroke-width:2!important;transform:none!important}
/* Matching action and table headings begin at the same card inset. */
body.admin-brand #router-view :is(#products-actions-box,#channel-actions-box,#recipe-actions-box,#inv-actions-box){padding:var(--rs-heading-inset-top) 24px 16px!important}
body.admin-brand #router-view :is(#products-actions-box,#channel-actions-box,#recipe-actions-box,#inv-actions-box) .qa-header{margin:0 0 12px!important;gap:0!important}
body.admin-brand #router-view :is(#products-table-card,#channel-table-card,#recipe-table-card,#inv-table-card) .rs-table-toolbar{padding:var(--rs-heading-inset-top) 24px 12px!important}
body.admin-brand #router-view :is(#products-table-card,#channel-table-card,#recipe-table-card,#inv-table-card) .rs-table-header{padding-top:0!important;padding-bottom:0!important;margin-bottom:12px!important;align-items:center!important}
body.admin-brand #router-view #inv-root-view .stock-summary .ss-card{padding-top:var(--rs-heading-inset-top)!important}
body.admin-brand #router-view #inv-root-view .stock-summary .ss-quick h2{margin-bottom:0!important}
body.admin-brand #router-view :is(.fin-card,.fin-quick,.exp-quick,.exp-category-card,.exp-insights-card,.sales-card){padding-top:var(--rs-heading-inset-top)!important}
body.admin-brand #router-view .el-sidebar{padding-top:var(--rs-heading-inset-top)!important}
body.admin-brand #router-view .el-sided .el-header{padding-top:var(--rs-heading-inset-top)!important;align-items:flex-start!important}
body.admin-brand #router-view .el-sided .el-title-icon{width:var(--rs-box-title-icon,26px)!important;height:var(--rs-box-title-icon,26px)!important;align-self:center!important}
body.admin-brand #router-view .fin-revenue-bar{align-items:center!important;gap:12px!important;flex-wrap:wrap}
body.admin-brand #router-view :is(.sales-card-heading,.fin-card-header,.exp-head){min-height:40px;align-items:center!important;margin-bottom:12px!important;gap:12px!important;flex-wrap:wrap}
@media(max-width:768px){
 body.admin-brand #router-view :is(#inv-root-view,.products-container,.pricing-summary-final,.finance-page,.exp-dashboard,.sales-analysis,.all-expenses,.pre-batch-cards) :is(.rs-section-heading,#inv-quick-actions-title){font-size:22px!important}
 body.admin-brand #router-view :is(#products-actions-box,#channel-actions-box,#recipe-actions-box,#inv-actions-box){padding:12px 16px 16px!important}
 body.admin-brand #router-view :is(#products-table-card,#channel-table-card,#recipe-table-card,#inv-table-card) .rs-table-toolbar{padding:12px 16px!important}
}
