/* Pro Yönetim — yönetici paneli telefon kabuğu. Sadece html.py-mgr-mobile */
html.py-mgr-mobile,
html.py-mgr-mobile body {
  overflow-x: hidden;
  max-width: 100vw;
  background: #F0F2F5;
}

html.py-mgr-mobile #dashboard-root {
  display: block !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100dvh;
  transform: none !important;
  overflow-x: hidden;
}

html.py-mgr-mobile #dashboard-root > aside {
  transform: translateX(-105%);
  width: min(86vw, 280px) !important;
  max-width: 280px !important;
  z-index: 80 !important;
  transition: transform 0.2s ease;
  box-shadow: none;
}

html.py-mgr-mobile.py-mgr-nav-open #dashboard-root > aside {
  transform: translateX(0);
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.35);
}

html.py-mgr-mobile #dashboard-root > main {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  overflow-x: hidden;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

html.py-mgr-mobile #py-mgr-nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 70;
}

html.py-mgr-mobile.py-mgr-nav-open #py-mgr-nav-scrim {
  display: block;
}

html.py-mgr-mobile #py-mgr-nav-btn {
  display: flex;
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: calc(10px + env(safe-area-inset-left, 0px));
  z-index: 90;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #2C3E50;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.py-mgr-mobile #py-mgr-nav-btn i {
  font-size: 22px;
  line-height: 1;
}

html.py-mgr-mobile #dashboard-root > main .sticky {
  padding-left: 58px !important;
}

html.py-mgr-mobile #dashboard-root > main [class*="px-6"] {
  padding-left: 12px;
  padding-right: 12px;
}

html.py-mgr-mobile #dashboard-root > main [class*="grid-cols-4"],
html.py-mgr-mobile #dashboard-root > main [class*="grid-cols-3"],
html.py-mgr-mobile #dashboard-root > main [class*="lg:grid-cols"],
html.py-mgr-mobile #dashboard-root > main [class*="md:grid-cols-3"],
html.py-mgr-mobile #dashboard-root > main [class*="md:grid-cols-4"] {
  grid-template-columns: 1fr !important;
}

@media (min-width: 640px) {
  html.py-mgr-mobile #dashboard-root > main [class*="grid-cols-4"],
  html.py-mgr-mobile #dashboard-root > main [class*="md:grid-cols-2"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

html.py-mgr-mobile #dashboard-root > main [class*="flex-wrap"] {
  row-gap: 8px;
}

html.py-mgr-mobile #dashboard-root > main [class*="whitespace-nowrap"] {
  white-space: normal;
}

html.py-mgr-mobile #dashboard-root > main :is(div, section):has(> table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

html.py-mgr-mobile #dashboard-root > main table {
  min-width: 0;
  width: 100%;
}

html.py-mgr-mobile #dashboard-root > main input,
html.py-mgr-mobile #dashboard-root > main select,
html.py-mgr-mobile #dashboard-root > main textarea {
  font-size: 16px !important;
  max-width: 100%;
}

html.py-mgr-mobile #dashboard-root > main button,
html.py-mgr-mobile #dashboard-root > main a {
  min-height: 36px;
}

html.py-mgr-mobile #dashboard-root > main img {
  max-width: 100%;
  height: auto;
}

html.py-mgr-mobile #dashboard-root > main canvas {
  max-width: none;
}

html.py-mgr-mobile #dashboard-root > main [class*="h-[80px]"],
html.py-mgr-mobile #dashboard-root > main [class*="h-[96px]"] {
  height: 72px !important;
}

html.py-mgr-mobile #dashboard-root > main [class*="max-w-[1480px]"] {
  padding-left: 10px;
  padding-right: 10px;
}

/* —— Daireler: 12 kolon + geniş hero sığmaz —— */
html.py-mgr-mobile[data-py-page="units"] [class*="w-72"] {
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 1 !important;
  max-height: 148px;
  overflow: hidden;
}
html.py-mgr-mobile[data-py-page="units"] [class*="items-stretch"] {
  flex-direction: column !important;
}
html.py-mgr-mobile[data-py-page="units"] [class*="grid-cols-5"] {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
html.py-mgr-mobile[data-py-page="units"] [class*="min-w-"] {
  min-width: 0 !important;
}
html.py-mgr-mobile[data-py-page="units"] [class*="grid-cols-12"][class*="uppercase"] {
  display: none !important;
}
html.py-mgr-mobile[data-py-page="units"] [class*="grid-cols-12"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 10px !important;
  padding: 12px !important;
  align-items: start !important;
}
html.py-mgr-mobile[data-py-page="units"] [class*="col-span-"] {
  grid-column: auto !important;
  width: auto !important;
  max-width: 100%;
  text-align: left !important;
  justify-content: flex-start !important;
}
html.py-mgr-mobile[data-py-page="units"] [class*="col-span-"]:last-child {
  grid-column: 1 / -1 !important;
}

/* —— Sakinler: 13 kolonlu tablo sığmaz —— */
html.py-mgr-mobile[data-py-page="residents"] [class*="min-w-"] {
  min-width: 0 !important;
}
html.py-mgr-mobile[data-py-page="residents"] [class*="xl:grid-cols"],
html.py-mgr-mobile[data-py-page="residents"] [class*="lg:grid-cols"] {
  grid-template-columns: 1fr 1fr !important;
}
html.py-mgr-mobile[data-py-page="residents"] .overflow-x-auto {
  overflow-x: visible !important;
}
html.py-mgr-mobile[data-py-page="residents"] table {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse;
}
html.py-mgr-mobile[data-py-page="residents"] thead {
  display: none !important;
}
html.py-mgr-mobile[data-py-page="residents"] tbody {
  display: block;
}
html.py-mgr-mobile[data-py-page="residents"] tbody tr {
  display: block;
  padding: 12px !important;
  margin: 0 0 8px;
  border-bottom: 1px solid #e6ebe5;
  background: #fff;
}
html.py-mgr-mobile[data-py-page="residents"] tbody td {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 5px 0 !important;
  text-align: right !important;
  white-space: normal !important;
}
html.py-mgr-mobile[data-py-page="residents"] tbody td::before {
  flex: 0 0 92px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: #7A8C7E;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(1)::before { content: ""; flex: 0; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(2)::before { content: "Sakin"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(3)::before { content: "Tür"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(4)::before { content: "Blok / Daire"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(5)::before { content: "Kat"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(6)::before { content: "Telefon"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(7)::before { content: "E-posta"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(8)::before { content: "Durum"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(9)::before { content: "Borç"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(10)::before { content: "Bakiye"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(11)::before { content: "Son ödeme"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(12)::before { content: "İletişim"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(13)::before { content: "İşlemler"; }
html.py-mgr-mobile[data-py-page="residents"] tbody td [class*="max-w-"] {
  max-width: 100% !important;
}
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(13),
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(12) {
  justify-content: flex-start;
}
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(13)::before,
html.py-mgr-mobile[data-py-page="residents"] tbody td:nth-child(12)::before {
  flex-basis: 92px;
}

