/* Patoz Defterim v4.1.0 — Android başvuru kaydırma, PWA yükleme ve müşteri hareketleri */

/* Android/telefon: yeni işletme başvurusu uygulama ana kaydırıcısı içinde doğal uzar. */
@media (max-width: 767px){
  body.business-request-open,
  body.business-request-open.patoz-scroll-ready{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.business-request-open #app.app-shell{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
  }
  body.business-request-open .host-main,
  body.business-request-open #view.view.host-content{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
  }
  body.business-request-open .business-request-page{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
    background:#f6f4fb!important;
  }
  body.business-request-open .business-request-visual{display:none!important}
  body.business-request-open .business-request-panel{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
    padding:calc(14px + env(safe-area-inset-top,0px)) 12px calc(34px + env(safe-area-inset-bottom,0px))!important;
    background:#f6f4fb!important;
  }
  body.business-request-open .business-request-card{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 auto!important;
    padding:16px 14px 24px!important;
    overflow:visible!important;
    border:1px solid #e4def1!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(41,31,70,.08)!important;
  }
  body.business-request-open .business-request-form{
    display:grid!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding-bottom:12px!important;
  }
  body.business-request-open .business-request-actions{
    position:static!important;
    bottom:auto!important;
    z-index:auto!important;
    margin-top:8px!important;
    padding:0!important;
    background:transparent!important;
  }
}

/* PWA yükleme düğmesi header içinde; sabit katman içeriklerin üstünü örtmez. */
.host-top-actions .pwa-install-btn{
  position:static!important;
  inset:auto!important;
  order:-1!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  min-height:40px!important;
  height:40px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:12px!important;
  white-space:nowrap!important;
  z-index:auto!important;
}
.pwa-install-btn.is-install-guide{background:linear-gradient(135deg,#8466ed,#5b35cc)!important}
@media(max-width:640px){
  .host-top-actions .pwa-install-btn{width:40px!important;min-width:40px!important;padding:0!important;justify-content:center!important}
  .host-top-actions .pwa-install-btn .pwa-install-label{display:none!important}
}

/* Profesyonel ve kompakt müşteri hareket kartları. */
.customer-movements-card{
  padding:18px!important;
  overflow:hidden!important;
  border:1px solid #e7e1f0!important;
  background:linear-gradient(180deg,#fff 0%,#fcfbfe 100%)!important;
}
.customer-movements-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:13px!important}
.customer-movements-head h2{margin:0!important;font-size:17px!important;line-height:1.25!important;color:#29223a!important}
.customer-movements-head p{margin:3px 0 0!important;font-size:11px!important;line-height:1.4!important;color:#81798e!important}
.customer-movements-count{flex:none!important;padding:5px 9px!important;border:1px solid #ddd4ef!important;border-radius:999px!important;background:#f7f3ff!important;color:#6943b7!important;font-size:10px!important;font-weight:800!important}
.customer-movement-list{display:grid!important;gap:8px!important}
.customer-movement-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  min-height:68px!important;
  padding:11px 12px!important;
  overflow:hidden!important;
  border:1px solid #e9e4f0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 5px 14px rgba(34,25,55,.045)!important;
}
.customer-movement-row:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d18b29}
.customer-movement-row.is-credit:before{background:#6f4bc1}
.customer-movement-icon{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:11px!important;background:#fff4e3!important;color:#a96512!important}
.customer-movement-row.is-credit .customer-movement-icon{background:#f1ebff!important;color:#6843b6!important}
.customer-movement-icon svg{width:17px!important;height:17px!important;fill:currentColor!important}
.customer-movement-main{min-width:0!important}
.customer-movement-title{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;flex-wrap:wrap!important}
.customer-movement-title b{min-width:0!important;font-size:13px!important;line-height:1.3!important;font-weight:800!important;color:#30283f!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.customer-movement-type{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:2px 7px!important;border-radius:999px!important;background:#fff0da!important;color:#92570b!important;font-size:9px!important;font-weight:850!important;letter-spacing:.02em!important}
.customer-movement-type.credit{background:#eee7ff!important;color:#6040a2!important}
.customer-movement-meta{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px 11px!important;margin-top:5px!important;font-size:10px!important;line-height:1.35!important;font-weight:600!important;color:#81798e!important}
.customer-movement-meta span{display:inline-flex!important;align-items:center!important;gap:4px!important}
.customer-movement-meta svg{width:11px!important;height:11px!important;fill:currentColor!important}
.customer-movement-delete{min-height:26px!important;margin-top:6px!important;padding:3px 8px!important;border-radius:8px!important;font-size:9px!important}
.customer-movement-amount{min-width:105px!important;text-align:right!important;white-space:nowrap!important}
.customer-movement-amount small{display:block!important;font-size:8px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.05em!important;text-transform:uppercase!important;color:#8b8496!important}
.customer-movement-amount strong{display:block!important;margin-top:2px!important;font-size:14px!important;line-height:1.25!important;font-weight:850!important;color:#332a42!important}
.customer-movement-row.is-credit .customer-movement-amount strong{color:#6240ad!important}
@media(max-width:600px){
  .customer-movements-card{padding:13px!important}
  .customer-movements-head p{display:none!important}
  .customer-movement-row{grid-template-columns:34px minmax(0,1fr)!important;gap:9px!important;padding:10px!important;min-height:66px!important}
  .customer-movement-icon{width:32px!important;height:32px!important;border-radius:10px!important}
  .customer-movement-title b{font-size:12px!important;white-space:normal!important}
  .customer-movement-meta{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;font-size:9.5px!important}
  .customer-movement-amount{grid-column:2!important;display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;margin-top:3px!important;text-align:left!important}
  .customer-movement-amount small{display:inline!important}
  .customer-movement-amount strong{margin:0!important;font-size:13px!important}
}
