/* PrimeTaste Build 25 — global desktop efficiency layer. Mobile <=991.98px untouched. */
@media (min-width: 992px) {
  :root{--ptd-gap:14px;--ptd-radius:12px;--ptd-border:#dfe5ec;--ptd-bg:#f5f7fa;--ptd-card:#fff;--ptd-muted:#667085}
  body{background:var(--ptd-bg)}
  main,.main-content,.content,.app-content{min-width:0}
  .container,.container-fluid,.pt-page,.fp2-shell,.mobile-shell,.mobile-page{max-width:none!important;width:100%!important}
  .pt-page--narrow{max-width:none!important}
  h1,.h1{font-size:1.65rem!important} h2,.h2{font-size:1.3rem!important}
  .card,.pt-card,.fp2-card,.mobile-card{border:1px solid var(--ptd-border)!important;border-radius:var(--ptd-radius)!important;box-shadow:none!important;background:var(--ptd-card)}
  .card-body,.pt-card,.fp2-card{padding:14px!important}
  .btn{min-height:36px;padding:.42rem .72rem}
  .btn.w-100{width:auto!important;min-width:120px}
  .py-3{padding-top:.55rem!important;padding-bottom:.55rem!important}
  .mb-3{margin-bottom:.7rem!important}.mt-3{margin-top:.7rem!important}
  .form-control,.form-select{min-height:38px}
  .form-label{margin-bottom:.25rem;font-size:.82rem;color:#475467;font-weight:600}
  table{font-size:.9rem} .table>:not(caption)>*>*{padding:.58rem .65rem;vertical-align:middle}
  .table-responsive{border:1px solid var(--ptd-border);border-radius:var(--ptd-radius);background:#fff}
  .badge{font-size:.72rem;padding:.32rem .48rem}
  .row.g-2,.row.g-3{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem}
  /* Convert common phone two-up action grids into compact desktop rows. */
  .fp2-shell .row>.col-6,.mobile-shell .row>.col-6{flex:0 0 auto;width:auto;min-width:150px}
  /* Dense lists instead of oversized stacked mobile cards. */
  .fp2-shell>.border.rounded-3,.fp2-card>.border.rounded-3,.mobile-card>.border.rounded-3{padding:10px 12px!important;margin-bottom:8px!important}
  /* Common product/inventory/admin grids. */
  .pt-inventory-grid,.inventory-grid,.product-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  .admin-grid,.pt-admin-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
  /* Forms become usable desktop forms instead of one very long phone column. */
  form.pt-form-grid,form.mobile-form,.fp2-card form:not(.d-inline):not(.inline-form){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-items:end}
  form.pt-form-grid .full,form.mobile-form .full,.fp2-card form .full,form .alert,form .form-text,form hr,form h1,form h2,form h3{grid-column:1/-1}
  /* Keep destructive/confirmation screens readable and deliberate. */
  .alert,.modal-content{max-width:100%}
  /* Desktop scroll regions: keep page controls visible while long lists scroll. */
  .pt-scroll-list,.list-scroll,.directory-list{max-height:calc(100vh - 300px);overflow:auto}
  /* Reports/dashboard cards fit more information per viewport. */
  .dashboard-grid,.report-grid,.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  /* Build 24 Customers remains authoritative and is not overridden. */
  .pt-desktop-customers .btn.w-100{width:100%!important}
}
@media (min-width: 992px) and (max-width: 1250px){
  .pt-inventory-grid,.inventory-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-grid,.pt-admin-grid,.dashboard-grid,.report-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
