/* Servis Takip V4.1 — Kurulum / Teklifler / Muhasebe mobile refinements.
   Only active on narrow screens; desktop remains unchanged. */
@media (max-width: 767px) {
  html, body { max-width:100%; overflow-x:clip; }
  body main, body .main { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  body .head, body .top, body .ps-report-row { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:10px!important; min-width:0!important; }
  body .banner, body .top-banner, body .ps-report-hero { min-width:0!important; max-width:100%!important; width:100%!important; box-sizing:border-box!important; overflow-wrap:anywhere; }
  body .banner, body .top-banner h1, body .ps-hero-title { font-size:clamp(19px,5.5vw,26px)!important; line-height:1.25!important; }
  body .head>.action, body .top>.btn.primary { display:flex!important; justify-content:center!important; align-items:center!important; width:100%!important; max-width:100%!important; min-height:44px!important; box-sizing:border-box!important; white-space:normal!important; text-align:center!important; }
  body .stats, body .kpis { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; }
  body .stats>*, body .kpis>* { min-width:0!important; box-sizing:border-box!important; overflow-wrap:anywhere; }
  body .filters, body .filterbar, body .toolbar { min-width:0!important; width:100%!important; max-width:100%!important; box-sizing:border-box!important; }
  body .filters { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:9px!important; }
  body .filters input, body .filters select { width:100%!important; min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  body .filterbar { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:10px!important; }
  body .filterbar>*, body .filterbar .searchField { width:100%!important; min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  body .filterbar input, body .filterbar select { display:block!important; width:100%!important; min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  body .ps-report-row .ps-hero-actions { display:flex!important; flex-wrap:wrap!important; gap:8px!important; width:100%!important; min-width:0!important; }
  body .ps-report-row .ps-hero-actions button { flex:1 1 85px!important; min-width:0!important; min-height:42px!important; }
  body .toolbar { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:9px!important; }
  body .toolbar label { display:flex!important; flex-direction:column!important; min-width:0!important; max-width:100%!important; gap:5px!important; }
  body .toolbar label:first-child { grid-column:1/-1; }
  body .toolbar label select, body .toolbar label input { width:100%!important; min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  body .toolbar>button { width:100%!important; min-width:0!important; min-height:42px!important; box-sizing:border-box!important; white-space:normal!important; }
  body .tabs { display:flex!important; flex-wrap:nowrap!important; overflow-x:auto!important; max-width:100%!important; width:100%!important; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
  body .tabs .tab { flex:0 0 auto!important; white-space:nowrap!important; min-height:42px!important; }
  body .panel, body .card, body .tablewrap, body .listwrap, body .section { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
  body .tablewrap, body .listwrap { overflow-x:auto!important; -webkit-overflow-scrolling:touch; }
  body .tablewrap table, body .listwrap table { min-width:100%; }
  body input, body select, body textarea { font-size:16px; }
}
