:root { --mobile-nav-height: 66px; }

.mobile-app-nav,
.pwa-install-card,
.push-permission-card { display: none; }

.system-notification-bell {
  align-items: center;
  background: #fff;
  border: 1px solid #d5e3da;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(10,42,25,.13);
  color: #087f3d;
  display: flex;
  height: 42px;
  justify-content: center;
  position: fixed;
  right: 14px;
  text-decoration: none;
  top: 14px;
  width: 42px;
  z-index: 1035;
}
.system-notification-bell span { background:#dc3545;border:2px solid #fff;border-radius:999px;color:#fff;font-size:.65rem;font-weight:800;line-height:1;min-width:20px;padding:3px 5px;position:absolute;right:-6px;text-align:center;top:-5px; }
.system-notification-bell:hover { color:#075f30; }

@media (max-width: 767.98px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
  main, .fl-content, .br-main, .ifx-content, .ed-content, .gc-content { max-width: 100%; overflow-x: hidden; }
  .container, .container-fluid { --bs-gutter-x: 1.25rem; }
  .table-responsive { border-radius: 10px; -webkit-overflow-scrolling: touch; }
  input, select, textarea, .form-control, .form-select { font-size: 16px !important; }
  .btn { min-height: 42px; }
  .integration-header { align-items: stretch !important; flex-direction: column; }
  .integration-actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
  .integration-actions > *, .integration-actions form { min-width: 0; }
  .integration-actions form { display: contents; }
  .integration-actions .btn { align-items: center; display: inline-flex; justify-content: center; white-space: normal; }
  .integration-panel-header { align-items: stretch !important; flex-direction: column; }
  .nav-pills { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding-bottom: .2rem; }
  .modal-dialog { margin: .5rem; }
  .modal-content { max-height: calc(100dvh - 1rem); }
  .mobile-app-nav {
    align-items: stretch;
    background: rgba(255,255,255,.97);
    border-top: 1px solid #dce5df;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(15,35,24,.10);
    display: grid;
    grid-template-columns: repeat(4,1fr);
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    left: 0;
    padding: 5px 4px env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 1040;
  }
  .mobile-app-nav a, .mobile-app-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #5c6962;
    display: flex;
    flex-direction: column;
    font-size: .68rem;
    font-weight: 650;
    gap: 2px;
    justify-content: center;
    min-width: 0;
    padding: 4px 2px;
    text-decoration: none;
  }
  .mobile-app-nav i { font-size: 1.25rem; line-height: 1; }
  .mobile-app-nav .active { background: #e8f5ed; color: #087f3d; }
  .pwa-install-card {
    align-items: center;
    background: #fff;
    border: 1px solid #cfe1d6;
    border-radius: 14px;
    bottom: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom));
    box-shadow: 0 16px 40px rgba(10,42,25,.18);
    gap: .65rem;
    left: 12px;
    padding: .75rem;
    position: fixed;
    right: 12px;
    z-index: 1060;
  }
  .pwa-install-card:not([hidden]), .push-permission-card:not([hidden]) { display: flex; }
  .pwa-install-card > div:nth-child(2), .push-permission-card > div:nth-child(2) { flex: 1; min-width: 0; }
  .pwa-install-card strong, .pwa-install-card small,
  .push-permission-card strong, .push-permission-card small { display: block; }
  .pwa-install-card strong, .push-permission-card strong { color: #183126; font-size: .82rem; }
  .pwa-install-card small, .push-permission-card small { color: #66726c; font-size: .72rem; }
  .pwa-install-icon { background: #e7f5ec; border-radius: 10px; display: grid; height: 42px; place-items: center; width: 42px; }
  .pwa-install-icon img { height: 34px; width: 34px; }
}

.push-permission-card {
  align-items: center;
  background: #fff;
  border: 1px solid #cfe1d6;
  border-radius: 14px;
  bottom: 18px;
  box-shadow: 0 16px 40px rgba(10,42,25,.18);
  gap: .65rem;
  left: 50%;
  max-width: 560px;
  padding: .75rem;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  z-index: 1061;
}
.push-permission-card:not([hidden]) { display: flex; }
.push-permission-card > div:nth-child(2) { flex: 1; min-width: 0; }
.push-permission-card strong, .push-permission-card small { display: block; }
.push-permission-card strong { color: #183126; font-size: .85rem; }
.push-permission-card small { color: #66726c; font-size: .75rem; }
@media (max-width: 767.98px) {
  .push-permission-card { bottom: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom)); }
}
