/* CAPSTORE UI CONSOLIDATION V1
   Presentation only: no business data, financial rule or stock calculation is changed. */

/* Dashboard: keep the daily decision layer, remove secondary repetition. */
.nativeDashHead p{display:none}
.nativeDashKpis .card:nth-child(1),
.nativeDashKpis .card:nth-child(2),
.nativeDashKpis .card:nth-child(4){display:none}
.nativeDashKpis{grid-template-columns:minmax(180px,320px)!important}
.nativeDashKpis + .dashboardCards .card:nth-child(2){display:none}
section.panel.wide:has(.nativeDashRank) .panelTitle .muted{display:none}
.nativeDashHero ~ section.panel.wide:has(.panelTitle .badge) .panelTitle .muted,
.nativeDashHero ~ section.panel.wide:has(.panelTitle .badge) > p.muted{display:none}

/* Network / points: the list panel has no h2; detail panels do. Scope the redundant
   action column there only so the Payment column in store sales is never hidden. */
main:has(.networkTabs button:first-child.primary) > section.panel.wide:not(:has(h2)) table th:last-child,
main:has(.networkTabs button:first-child.primary) > section.panel.wide:not(:has(h2)) table td:last-child{display:none}

/* Store sales payment summary styling retained for the canonical period component. */
.salesPaymentSummary{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:12px;margin:14px 0 18px}
.salesPaymentSummary>div{border:1px solid #dfe5ec;border-radius:10px;padding:12px 14px;background:#fff}
.salesPaymentSummary span{display:block;font-size:11px;color:#6b7280;margin-bottom:5px}
.salesPaymentSummary strong{font-size:18px}
.salesPaymentSummary small{display:block;margin-top:4px;font-size:12px;color:#6b7280}

/* Structure network: remove decorative hero and duplicate context already available elsewhere. */
main:has(.networkTabs button:nth-child(3).primary) .pointHero{display:none}
main:has(.networkTabs button:nth-child(3).primary) .detailCards .card:nth-child(3),
main:has(.networkTabs button:nth-child(3).primary) .detailCards .card:nth-child(5){display:none}
main:has(.networkTabs button:nth-child(3).primary) .detailCards{grid-template-columns:repeat(3,minmax(135px,1fr))}
main:has(.networkTabs button:nth-child(3).primary) > section.panel.wide table th:nth-child(3),
main:has(.networkTabs button:nth-child(3).primary) > section.panel.wide table td:nth-child(3),
main:has(.networkTabs button:nth-child(3).primary) > section.panel.wide table th:nth-child(5),
main:has(.networkTabs button:nth-child(3).primary) > section.panel.wide table td:nth-child(5){display:none}

/* Keep compact stock summary readable on both desktop and mobile. */
@media(max-width:800px){
 .nativeDashKpis{grid-template-columns:1fr!important}
 .salesPaymentSummary{grid-template-columns:1fr}
 main:has(.networkTabs button:nth-child(3).primary) .detailCards{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
 main:has(.networkTabs button:nth-child(3).primary) .detailCards{grid-template-columns:1fr}
}
