/* EB Assistent Pro – mobile application UI based on the original Android layout (Nov 2026).
   Only activated on /mobile, leaves browser /pilot untouched. */
@media screen {
 html.eb-native-ui{--eb-app-navy:#0b1f3a;--eb-app-blue:#0b7cff;--eb-app-soft:#edf5fc;--eb-app-text:#172033}
 html.eb-native-ui body{margin:0;min-width:0!important;background:linear-gradient(180deg,#eef6fb 0%,#f5f7fa 24%,#f1f4f8 100%)!important;color:#172033}
 html.eb-native-ui #app.shell:not(.hidden){display:block!important;min-height:100dvh!important;width:100%!important;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;background:transparent!important}
 html.eb-native-ui #app .main{display:block!important;min-width:0!important;width:100%!important;margin:0!important;overflow:visible!important}
 html.eb-native-ui #app .sidebar{display:none!important;position:fixed!important;inset:0!important;z-index:1900!important;height:100dvh!important;max-height:100dvh!important;width:100%!important;overflow:auto!important;background:#fff!important;color:#172033!important;padding:calc(13px + env(safe-area-inset-top,0px)) 15px calc(92px + env(safe-area-inset-bottom,0px))!important;box-shadow:none!important;border:none!important}
 html.eb-native-ui #app.eb-drawer-open .sidebar{display:flex!important;flex-direction:column!important;gap:8px!important}
 html.eb-native-ui #app .sidebar .brand{color:#172033!important;font-weight:900!important;display:flex;align-items:center;gap:9px;margin:0!important;padding:6px 0 14px!important;font-size:19px!important;border-bottom:1px solid #e6edf4}
 html.eb-native-ui #app .sidebar .brand .mark{background:linear-gradient(145deg,#0b78ff,#43d8ff)!important;color:#fff!important;width:42px;height:42px;display:grid;place-items:center;border-radius:13px}
 html.eb-native-ui #app .sidebar .nav{display:flex!important;flex-direction:column!important;overflow:visible!important;gap:8px!important;padding:0 0 18px!important}
 html.eb-native-ui #app .sidebar .nav-section{display:block!important;border-radius:13px!important;background:#f5f8fc!important;padding:4px!important}
 html.eb-native-ui #app .sidebar .nav-section .nav-submenu{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;padding:3px 3px 7px!important}
 html.eb-native-ui #app .sidebar .nav-section .nav-section-trigger{display:flex!important;min-height:34px!important;padding:8px 13px!important;font-size:11px!important;color:#536d8d!important}
 html.eb-native-ui #app .sidebar .nav button{width:100%!important;text-align:left!important;white-space:normal!important;color:#243d57!important;border-radius:11px!important;min-height:43px!important}
 html.eb-native-ui #app .sidebar .nav button.active{background:#e6f3ff!important;color:#0a71d8!important}
 html.eb-native-ui #app .sidebar-bottom{display:block!important;margin-top:auto!important;background:#f5f8fc!important;color:#172033!important}
 html.eb-native-ui #app .sidebar-bottom .small{color:#5a6e88!important}
 html.eb-native-ui #app .sidebar-bottom button{color:#16385b!important;background:#e6edf5!important;border:0!important}
 html.eb-native-ui #app .top{position:sticky!important;top:0!important;z-index:25!important;display:block!important;min-height:0!important;width:100%!important;padding:calc(13px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) 13px calc(16px + env(safe-area-inset-left,0px))!important;background:linear-gradient(135deg,#081b34,#104075)!important;color:#fff!important;box-shadow:0 6px 22px rgba(2,22,45,.22)!important;border:0!important;border-radius:0!important}
 html.eb-native-ui #app .top>div:first-of-type:not(.eb-app-brandrow){margin-top:10px!important}
 html.eb-native-ui #app .top h1{font-size:15px!important;color:#e1f4ff!important;font-weight:750!important;margin:7px 0 0!important;letter-spacing:0!important}
 html.eb-native-ui #app .top #welcome{display:none!important}
 html.eb-native-ui #app .top .pill{display:none!important}
 html.eb-native-ui #app .content{width:100%!important;max-width:1220px!important;padding:15px 13px 34px!important;margin:0 auto!important;min-width:0!important;overflow:visible!important;background:transparent!important}
 html.eb-native-ui #app .content .stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html.eb-native-ui #app .content .stat{min-height:107px!important;background:#fff!important;border:1px solid #e1e9f1!important;box-shadow:0 9px 28px rgba(20,45,75,.09)!important;border-radius:19px!important;padding:15px!important;color:#172033!important}
 html.eb-native-ui #app .content .stat .number{font-size:26px!important;font-weight:900!important;color:#13263f!important}
 html.eb-native-ui #app .content .stat .label{font-size:12px!important;color:#6d7b90!important}
 html.eb-native-ui #app .content .panel,
 html.eb-native-ui #app .content .card,
 html.eb-native-ui #app .content .info{border-radius:19px!important;box-shadow:0 9px 28px rgba(20,45,75,.08)!important;background:#fff!important;border:1px solid #e1e9f1!important}
 html.eb-native-ui #app .content .columns,
 html.eb-native-ui #app .content .cols3,
 html.eb-native-ui #app .content .calendar-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 html.eb-native-ui #app .content .panel{min-width:0!important;max-width:100%!important;overflow:hidden!important}
 html.eb-native-ui #app .content h2{font-size:19px!important;color:#172033!important}
 html.eb-native-ui #app .content .toolbar{flex-wrap:wrap!important;align-items:center!important;gap:10px!important}
 html.eb-native-ui #app .content button.primary,
 html.eb-native-ui #app .content .btn.primary{background:linear-gradient(135deg,#0879ff,#10b7e9)!important;color:#fff!important;border-radius:13px!important;font-weight:800!important}
 html.eb-native-ui #app .content .cal-event{border-radius:8px!important}
 html.eb-native-ui #app .content table{width:100%!important;min-width:0}
 html.eb-native-ui #app .content .table-wrap{overflow-x:auto!important}
 html.eb-native-ui #app .content input,
 html.eb-native-ui #app .content select,
 html.eb-native-ui #app .content textarea{max-width:100%!important;border-radius:11px!important}
 html.eb-native-ui #app .pagefoot{color:#7c879b!important;font-size:10px!important;padding:15px 0!important}
 html.eb-native-ui #modalHost .modal{max-width:calc(100vw - 18px)!important;border-radius:23px 23px 0 0!important;padding:16px!important}
 html.eb-native-ui #modalHost .overlay{align-items:flex-end!important}
 .eb-app-brandrow{display:flex;align-items:center;gap:12px;color:#fff;width:100%}
 .eb-app-mark{flex:none;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#0b78ff,#43d8ff);display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:inset 0 0 0 1px #ffffff33}
 .eb-app-brandtitle{font-weight:900;font-size:21px;line-height:1.05;color:#fff}
 .eb-app-role{color:#c3dcf5;font-size:11px;margin-top:4px}
 .eb-app-menu-button{margin-left:auto;flex:none;border:1px solid rgba(255,255,255,.24)!important;border-radius:999px!important;background:rgba(255,255,255,.1)!important;color:#fff!important;padding:10px 12px!important;font-size:12px!important;font-weight:750}
 .eb-app-search{margin-top:13px;display:flex;gap:9px}
 .eb-app-search input{width:100%;border:1px solid rgba(255,255,255,.22)!important;background:rgba(255,255,255,.1)!important;color:#fff!important;border-radius:15px!important;padding:11px 13px!important;outline:none}
 .eb-app-search input::placeholder{color:#c1cce0}
 .eb-app-search button{border:1px solid #ffffff44;background:#0c6cbd;color:#fff;border-radius:12px;padding:9px 12px}
 #ebAppBottomNav{position:fixed;left:0;right:0;bottom:0;z-index:1300;display:flex;justify-content:space-around;gap:2px;min-height:calc(72px + env(safe-area-inset-bottom,0px));padding:8px calc(4px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(4px + env(safe-area-inset-left,0px));background:#fffffffa;border-top:1px solid #dce5ee;box-shadow:0 -7px 24px rgba(25,45,70,.08);backdrop-filter:blur(18px)}
 #ebAppBottomNav[hidden]{display:none!important}
 #ebAppBottomNav button{flex:1;max-width:100px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 3px;border:0;background:transparent;color:#718096;font-size:10px;font-weight:600;border-radius:12px}
 #ebAppBottomNav button.active{background:#eaf5ff;color:#0878e8;font-weight:800}
 #ebAppBottomNav .eb-app-nav-icon{font-size:20px;line-height:1.1}
 #ebAppDrawerClose{order:0;align-self:flex-end;border:0;background:#edf2f7;color:#0b3d6d;border-radius:11px;padding:10px 16px;font-weight:750;margin-bottom:5px}
 #ebAppBottomNav button:focus-visible,#ebAppDrawerClose:focus-visible,.eb-app-menu-button:focus-visible{outline:3px solid #2b93ff;outline-offset:3px}
}
@media (min-width:850px){ html.eb-native-ui #app .content{max-width:1020px!important} }

/* Dialogs must be ABOVE the native mobile topbar (25), bottom navigation
   (1300), search results (1400), and slide-out drawer (1900).
   Previously the portal modal-overlay (z-index 200) appeared behind the
   mobile navigation, preventing touch interaction with form inputs. */
html.eb-native-ui #modalHost .modal-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:3000!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:0!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
html.eb-native-ui #modalHost .modal{
  width:100%!important;
  max-width:100vw!important;
  max-height:calc(100dvh - env(safe-area-inset-top, 0px) - 8px)!important;
  border-radius:24px 24px 0 0!important;
  overflow-y:auto!important;
  padding-bottom:env(safe-area-inset-bottom, 0px)!important;
  -webkit-overflow-scrolling:touch;
}
html.eb-native-ui #modalHost .modal input,
html.eb-native-ui #modalHost .modal textarea,
html.eb-native-ui #modalHost .modal select{
  position:relative;
  z-index:1;
  pointer-events:auto;
  min-height:44px;
  font-size:16px;
}
html.eb-native-ui #modalHost .modal button{
  pointer-events:auto;
  min-height:44px;
  touch-action:manipulation;
}
html.eb-native-ui #ebAppSearchResults[hidden],
html.eb-native-ui #ebAppBottomNav[hidden]{display:none!important}
html.eb-native-ui #app .sidebar-bottom{
  flex:none!important;
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
}
html.eb-native-ui #app .sidebar-bottom button{
  min-height:46px!important;
  touch-action:manipulation;
}
html.eb-native-ui #app .sidebar,
html.eb-native-ui #app .sidebar button,
html.eb-native-ui #app .top input,
html.eb-native-ui #app .top button{
  touch-action:manipulation;
}

@media print{#ebAppBottomNav,#ebAppDrawerClose,.eb-app-brandrow,.eb-app-search{display:none!important}}
