/* PROFITECH Design System v18.0 — responsive behavior and density */
@media(max-width:1200px){
 body.pt-ds-ready.pt-page-dashboard :is(.stats,.stat-grid,.metrics-grid,.pt-kpi-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 body.pt-ds-ready :is(.form-grid,.fields-grid,.form-row-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pt-ds-ready.pt-page-dashboard :is(.module-grid,.actions,.pt-command-grid,.dashboard-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 body.pt-ds-ready>.container,body.pt-ds-ready>main.container,body.pt-ds-ready>.wrap,body.pt-ds-ready>.page-container,body.pt-ds-ready>.ci-page{width:calc(100% - 22px)!important;margin:14px auto 40px!important}
 body.pt-ds-ready :is(.box,.panel,.card){padding:14px!important;border-radius:13px!important}
 body.pt-ds-ready :is(.page-head,.page-header,.page-title-row,.pt-page-head,.head){align-items:stretch;flex-direction:column}
 body.pt-ds-ready .page-actions{margin-inline-start:0;justify-content:flex-start}
 body.pt-ds-ready :is(.form-grid,.fields-grid,.form-row-grid){grid-template-columns:1fr}
 body.pt-ds-ready.pt-page-dashboard :is(.stats,.stat-grid,.metrics-grid,.pt-kpi-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.pt-ds-ready.pt-page-dashboard :is(.stats>.stat,.stat-grid>.stat,.metric-card,.pt-kpi){padding:12px!important;min-height:88px}
 body.pt-ds-ready.pt-page-dashboard :is(.module-grid,.actions,.pt-command-grid,.dashboard-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.pt-ds-ready.pt-page-dashboard :is(.module-grid>a,.actions>.action,.pt-command-grid>a,.dashboard-grid>a){padding:12px!important;min-height:105px}
 body.pt-ds-ready.pt-page-form :is(.form-section,.form-card,.form-block,.section){padding:13px}
 body.pt-ds-ready.pt-page-detail :is(.document-hero,.document-header,.detail-header,.doc-head){padding:15px}
 body.pt-ds-ready.pt-page-detail :is(.document-meta,.detail-meta,.doc-meta,.meta-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pt-ds-ready.pt-page-analytics :is(.kpi-grid,.stats,.metrics-grid,.pt-kpi-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.pt-ds-ready :is(.toolbar,.filters,.filter-bar,.page-actions,.actions-row){align-items:stretch}
 body.pt-ds-ready :is(.toolbar,.filters,.filter-bar,.page-actions,.actions-row)>*{max-width:100%}
 body.pt-ds-ready :is(.table-wrap,.table-responsive,.table-container){border-radius:10px}
 body.pt-ds-ready table{min-width:650px}
}
@media(max-width:390px){
 body.pt-ds-ready.pt-page-dashboard :is(.stats,.stat-grid,.metrics-grid,.pt-kpi-grid){grid-template-columns:1fr 1fr}
 body.pt-ds-ready.pt-page-dashboard :is(.module-grid,.actions,.pt-command-grid,.dashboard-grid){grid-template-columns:1fr 1fr}
 body.pt-ds-ready.pt-page-detail :is(.document-meta,.detail-meta,.doc-meta,.meta-grid){grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.pt-ds-ready *{transition:none!important;animation:none!important}}

body.pt-ds-pos{font-family:var(--pt-font)!important;color:var(--pt-ink)!important;background:var(--pt-canvas)!important}
body.pt-ds-pos .pos-shell{font-family:var(--pt-font)!important;color:var(--pt-ink)!important}
body.pt-ds-pos .pos-topbar{border-bottom-color:var(--pt-border)!important}
body.pt-ds-pos .pos-brand strong{font-family:var(--pt-font-mono)!important}
body.pt-ds-pos :is(.pos-icon-btn,.pos-btn,.order-type,.category-btn,.cart-actions button){font-family:var(--pt-font)!important}
body.pt-ds-pos :is(.product-card,.pos-cart,.pos-toolbar,.pos-modal,.setup-card,.kds-card){border-color:var(--pt-border)!important}
