
/* Arı İlaç Takip v1.4.3 - Safe WebView Fix from v1.4.0 */
html { -webkit-text-size-adjust: 100%; }
body.ari-safe-webview-fix { overflow-x: hidden; }
body.ari-safe-webview-fix * { box-sizing: border-box; }

body.ari-safe-webview-fix .ait-app,
body.ari-safe-webview-fix .ari-ilac-app,
body.ari-safe-webview-fix .ari-ilac-panel,
body.ari-safe-webview-fix .ait-login-shell,
body.ari-safe-webview-fix .ait-login-card,
body.ari-safe-webview-fix .entry-content {
  max-width: 100% !important;
}

/* APK içinde bir tık kompakt görünüm */
@media (max-width: 768px) {
  body.ari-safe-webview-fix { font-size: 14px !important; }

  body.ari-safe-webview-fix .ait-app,
  body.ari-safe-webview-fix .ari-ilac-app,
  body.ari-safe-webview-fix .ari-ilac-panel {
    padding: 10px !important;
    margin: 0 auto !important;
  }

  body.ari-safe-webview-fix .ait-hero,
  body.ari-safe-webview-fix .ait-panel-card,
  body.ari-safe-webview-fix .ait-login-card,
  body.ari-safe-webview-fix .ait-family-card,
  body.ari-safe-webview-fix .ait-notify-card,
  body.ari-safe-webview-fix .ait-box {
    padding: 14px !important;
    border-radius: 18px !important;
    max-width: calc(100vw - 20px) !important;
  }

  body.ari-safe-webview-fix h1 { font-size: 22px !important; }
  body.ari-safe-webview-fix h2 { font-size: 20px !important; }
  body.ari-safe-webview-fix h3 { font-size: 17px !important; }

  body.ari-safe-webview-fix input,
  body.ari-safe-webview-fix select,
  body.ari-safe-webview-fix textarea {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 15px !important;
  }

  body.ari-safe-webview-fix button {
    max-width: 100% !important;
    font-size: 15px !important;
  }

  body.ari-safe-webview-fix input[type="checkbox"],
  body.ari-safe-webview-fix input[type="radio"] {
    width: auto !important;
  }

  body.ari-safe-webview-fix .ait-mobile-menu a {
    font-size: 13px !important;
    padding: 8px 10px !important;
  }

  body.ari-safe-webview-fix .ait-dose-grid,
  body.ari-safe-webview-fix .ait-family-grid,
  body.ari-safe-webview-fix .ait-time-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Artık APK var: PWA ana ekrana ekle kartları görünmesin */
.ait-install-card,
.ait-pwa-card,
.ait-add-home-card,
.ait-add-to-home,
.ari-pwa-install,
.ari-install-app,
[class*="pwa"][class*="install"],
[class*="install"][class*="app"] {
  display: none !important;
}

/* Giriş input taşma güvenliği */
body.ari-safe-webview-fix #user_login,
body.ari-safe-webview-fix #user_pass,
body.ari-safe-webview-fix input[name="log"],
body.ari-safe-webview-fix input[name="pwd"] {
  width: 100% !important;
  max-width: 100% !important;
}
