/* Dedicated renderer for the official Android WebView. */

html.ua-android-app{
  width:100%;
  max-width:100%;
  overflow-x:hidden!important;
  -webkit-text-size-adjust:100%;
}

html.ua-android-app body{
  width:100%;
  max-width:100%;
  min-width:0!important;
  overflow-x:hidden!important;
  font-size:14px!important;
}

html.ua-android-app body :where(*,*::before,*::after){
  box-sizing:border-box;
}

html.ua-android-app body :where(.ua-shell,.ua-main,.ua-page,.content-wrapper,section.content,.content,.container,.container-fluid){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin-inline:0!important;
}

html.ua-android-app body:not(.ua-frame-context) .ua-main{
  padding-top:0!important;
}

html.ua-android-app body :where(.container,.container-fluid,section.content,.content){
  padding-inline:10px!important;
}

/* Flutter owns the app bar. Desktop chrome never appears inside Android. */
html.ua-android-app body :is(.ua-unified-stats,.ua-shell-gold-line,.ua-page-windowbar,.ua-shell-scroll-nav,#uaShellScrollNav,#nocxGoldScrollbar){
  display:none!important;
}

html.ua-android-app body .ua-mobile-menu-button{
  display:none!important;
}

/* The desktop sidebar becomes an Android drawer on every phone/tablet size. */
html.ua-android-app body .ua-sb3{
  position:relative!important;
  inset:auto!important;
  display:none!important;
  width:100vw!important;
  max-width:none!important;
  min-height:100dvh!important;
  height:auto!important;
  z-index:auto!important;
  transform:none!important;
  transition:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  background:linear-gradient(180deg,var(--ua-theme-menu,#061923),var(--ua-theme-page-bg,#07111f))!important;
  border-radius:0!important;
}

html[dir="ltr"].ua-android-app body .ua-sb3{
  transform:none!important;
}

html.ua-android-app body.ua-mobile-sb-open .ua-sb3{
  display:flex!important;
  transform:none!important;
}

html.ua-android-app body.ua-mobile-sb-open .ua-main{
  display:none!important;
}

html.ua-android-app body.ua-mobile-sb-open .ua-sb-backdrop{
  display:none!important;
}

html.ua-android-app body .ua-sb3-nav{
  padding:8px!important;
  flex:0 0 auto!important;
  overflow-y:visible!important;
  overflow-x:hidden!important;
}

html.ua-android-app body .ua-android-menu-close{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  min-height:48px;
  margin:8px 8px 0;
  padding:9px 12px;
  border:1px solid color-mix(in srgb,var(--ua-accent) 35%,transparent);
  border-radius:13px;
  background:color-mix(in srgb,var(--ua-theme-surface-2) 88%,black 12%);
  color:var(--ua-ds-title,#fff);
  font:900 13px/1.2 inherit;
}

html.ua-android-app body :is(.ua-sb3-item,.ua-sb3-link){
  min-height:48px!important;
  padding:9px 10px!important;
  font-size:14px!important;
}

html.ua-android-app body .ua-sb3-flyout-host{
  display:none!important;
}

html.ua-android-app body .ua-android-submenu{
  position:relative;
  inset:auto;
  z-index:auto;
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:100dvh;
  min-width:0;
  padding:10px;
  overflow:visible;
  border:1px solid var(--ua-ds-line,rgba(255,255,255,.14));
  border-radius:18px;
  background:linear-gradient(180deg,var(--ua-theme-menu,#061923),var(--ua-theme-page-bg,#07111f));
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}

html.ua-android-app body .ua-android-submenu__back{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  width:100%;
  min-height:48px;
  margin-bottom:8px;
  border:1px solid color-mix(in srgb,var(--ua-accent) 36%,transparent);
  border-radius:12px;
  background:color-mix(in srgb,var(--ua-theme-surface-2) 90%,black 10%);
  color:var(--ua-ds-title,#fff);
  font-weight:900;
}

html.ua-android-app body .ua-android-submenu__body,
html.ua-android-app body .ua-android-submenu .ua-sb3-fly,
html.ua-android-app body .ua-android-submenu .ua-sb3-fly-body{
  min-width:0!important;
  width:100%!important;
}

html.ua-android-app body .ua-android-submenu__body{
  flex:1 1 auto;
  overflow:visible;
}

html.ua-android-app body.ua-android-submenu-open .ua-shell{
  display:none!important;
}

/* Dashboard bars become swipeable rows instead of squeezed desktop grids. */
html.ua-android-app body.ua-page-dashboard .ua-page{
  padding-top:0!important;
}

html.ua-android-app body.ua-page-dashboard :is(.nocx-statsbar,.nocx-dashboard-statsbar){
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
  min-height:56px!important;
  height:auto!important;
  margin:0!important;
  padding:7px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
  border-radius:0!important;
}

html.ua-android-app body.ua-page-dashboard :is(.nocx-statsbar,.nocx-dashboard-statsbar)::-webkit-scrollbar,
html.ua-android-app body :is(.nav-tabs,.nav-pills,.ua-atabs,.ua-subnav,.settings-tabs,.section-tabs,[role="tablist"])::-webkit-scrollbar{
  display:none;
}

html.ua-android-app body.ua-page-dashboard :is(.nocx-statsbar,.nocx-dashboard-statsbar) > *{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:102px!important;
  max-width:142px!important;
  min-height:40px!important;
  scroll-snap-align:start;
}

html.ua-android-app body.ua-page-dashboard :is(.nocx-topbar,.nocx-topbar--control,.nocx-dashboard-controlbar){
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:8px!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  border-radius:0!important;
}

html.ua-android-app body.ua-page-dashboard :is(.nocx-topbar__actions,.ua-dashboard-windowbar-host,.ua-page-windowbar__search,.nocx-title-search){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  flex:1 1 100%!important;
}

html.ua-android-app body.ua-page-dashboard .ua-dashboard-windowbar-host :is(.ua-page-windowbar__title,.ua-page-windowbar__pages){
  display:none!important;
}

/* Shared page structure. */
html.ua-android-app body :is(.ua-extracted-head,.ua-manual-head,.ua-page-head,.content-header,.card-header,.box-header,.panel-heading){
  min-width:0!important;
  max-width:100%!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  gap:9px!important;
}

html.ua-android-app body :is(.ua-extracted-head,.ua-manual-head,.ua-page-head,.content-header){
  padding:14px!important;
  margin:10px 0!important;
}

html.ua-android-app body :is(.ua-page-actions,.subsx-actions,.ua-actions,.card-actions,.box-tools,.sec-actions,.secmon-actions,.ua-toolbar-actions,.toolbar-actions,.action-buttons,.btn-toolbar){
  display:flex!important;
  flex:1 1 100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:8px!important;
}

html.ua-android-app body :is(.ua-search-control,.subsx-search-line,.subsx-search-row,.subsx-search-wrap,.ua-search-form,.filter-search,.search-box){
  flex:1 1 100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
}

/* Subscribers has a desktop command deck; Android gives every command row
   and the search field its own measured line. */
html.ua-android-app body.ua-p-subscribers :is(.subsx-head,.subsx-title,.subsx-topline,.subsx-tools){
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  gap:10px!important;
}

html.ua-android-app body.ua-p-subscribers .subsx-actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(44px,1fr))!important;
  width:100%!important;
  gap:8px!important;
}

html.ua-android-app body.ua-p-subscribers :is(.subsx-search-line,.subsx-search-row,.subsx-search-wrap,.ua-search-form,.subsx-search-input-wrap){
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

html.ua-android-app body.ua-p-subscribers .subsx-summary{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

html.ua-android-app body :is(.nav-tabs,.nav-pills,.ua-atabs,.ua-ctabs,.ua-settings-tabs,.ua-fin-nav,.ua-tabs-v2,.ua-subnav,.settings-tabs,.section-tabs,[role="tablist"]){
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  max-width:100%!important;
  padding:7px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}

html.ua-android-app body :is(.nav-tabs,.nav-pills,.ua-atabs,.ua-ctabs,.ua-settings-tabs,.ua-fin-nav,.ua-tabs-v2,.ua-subnav,.settings-tabs,.section-tabs,[role="tablist"]) > *{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  scroll-snap-align:start;
}

html.ua-android-app body :is(.ua-atabs-wrap,.ua-ctabs-wrap,.ua-settings-tabs-wrap,.ua-ftabs-wrap){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}

html.ua-android-app body :where(.row,.form-row){
  --bs-gutter-x:12px;
  --bs-gutter-y:12px;
}

html.ua-android-app body :is(.form-group,.mb-3,.ua-field,.field,.se-field,.sa-field){
  min-width:0!important;
  max-width:100%!important;
}

html.ua-android-app body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:44px!important;
  font-size:16px!important;
}

html.ua-android-app body :where(.btn,button,a.btn,.ua-btn){
  min-height:44px!important;
  touch-action:manipulation;
}

html.ua-android-app body :is(.ua-icon-action,.btn-icon,.search-icon-btn){
  min-width:44px!important;
  width:44px!important;
  padding:8px!important;
}

html.ua-android-app body :is(.card,.box,.panel,.well,.ua-card,.ua-panel,.ua-card-v2,.ua-panel-v2){
  min-width:0!important;
  max-width:100%!important;
  border-radius:14px!important;
}

html.ua-android-app body :is(.card-body,.box-body,.panel-body,.ua-card-body,.ua-panel-body){
  min-width:0!important;
  max-width:100%!important;
  padding:12px!important;
}

html.ua-android-app body :where(h1,h2,h3,h4,h5,h6,p,span,strong,label,a,td,th){
  overflow-wrap:anywhere;
}

html.ua-android-app body :is(.table-responsive,.ua-table-wrap,[class*="table-wrap"],[class*="table-card"]){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

html.ua-android-app body :is(.modal,.offcanvas){
  padding:6px!important;
}

html.ua-android-app body :is(.modal-dialog,.modal-content,.offcanvas-dialog){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
}

html.ua-android-app body :is(.dropdown-menu,.ua-menu,.ua-head-dropdown,.nocx-user-menu-panel,.nocx-alert-popover,.select2-dropdown){
  max-width:calc(100vw - 20px)!important;
  min-width:min(240px,calc(100vw - 20px))!important;
  max-height:70dvh!important;
  overflow:auto!important;
}

html.ua-android-app body :where(img,svg,video,canvas,iframe){
  max-width:100%!important;
}

html.ua-android-app body.ua-p-airmax-monitor-settings :is(.airmax-local-tab-buttons,.airmax-local-tools){
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
}

html.ua-android-app body.ua-p-airmax-monitor-settings :is(.airmax-local-tab-buttons,.airmax-local-tools) > *{
  flex:0 0 auto!important;
  min-width:max-content!important;
}

html.ua-android-app body.ua-p-airmax-monitor-settings .airmax-tab-panel:not(.is-active){
  display:none!important;
}

html.ua-android-app body.ua-p-vouchers-print .voucher-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  gap:12px!important;
}

html.ua-android-app body.ua-p-vouchers-print .voucher-card{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin-inline:0!important;
}

@media (max-width:720px){
  html.ua-android-app body :is(.sa-grid,.sa-edit-grid){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    gap:12px!important;
  }

  html.ua-android-app body :is(.sa-input-zone,.sa-preview){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    position:static!important;
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  html.ua-android-app body :is(.sa-input-zone,.sa-preview) > :is(.sa-card,.sa-summary,.sa-kpi){
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  html.ua-android-app body :where(.row,.form-row) > [class*="col-"]{
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
  }

  html.ua-android-app body :is(.form-grid,[class*="form-grid"],[class*="fields-grid"],[class*="filter-grid"],.ua-form-grid,.ua-fields-grid,.settings-grid){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }

  html.ua-android-app body :is(.table-responsive,.ua-table-wrap,[class*="table-wrap"],[class*="table-card"]){
    overflow:visible!important;
  }

  html.ua-android-app body table.ua-android-card-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    border:0!important;
    background:transparent!important;
  }

  html.ua-android-app body table.ua-android-card-table > thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }

  html.ua-android-app body table.ua-android-card-table > tbody{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
  }

  html.ua-android-app body table.ua-android-card-table > tbody > tr{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:7px!important;
    overflow:hidden!important;
    border:1px solid var(--ua-ds-line,rgba(255,255,255,.14))!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,var(--ua-ds-surface,rgba(7,18,30,.88)),var(--ua-ds-surface-2,rgba(9,28,42,.76)))!important;
  }

  html.ua-android-app body table.ua-android-card-table > tbody > tr > :is(td,th){
    display:grid!important;
    grid-template-columns:minmax(86px,36%) minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:40px!important;
    padding:8px 6px!important;
    border:0!important;
    border-bottom:1px solid color-mix(in srgb,var(--ua-ds-line,rgba(255,255,255,.14)) 70%,transparent)!important;
    background:transparent!important;
    text-align:start!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  html.ua-android-app body table.ua-android-card-table > tbody > tr > :is(td,th):last-child{
    border-bottom:0!important;
  }

  html.ua-android-app body table.ua-android-card-table > tbody > tr > :is(td,th)[data-ua-android-label]::before{
    content:attr(data-ua-android-label);
    display:block;
    color:var(--ua-ds-muted,rgba(255,255,255,.68));
    font-size:12px;
    font-weight:900;
  }

  html.ua-android-app body table.ua-android-card-table > tbody > tr > .ua-android-card-span{
    display:block!important;
    padding:12px 6px!important;
    text-align:center!important;
  }

  html.ua-android-app body table.ua-android-card-table :is(.btn-group,.ua-link-actions,.secmon-actions,.actions,.action-buttons){
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    width:100%!important;
  }

  html.ua-android-app body table.ua-android-card-table :is(.btn,.ua-btn,button){
    flex:1 1 42px!important;
    min-width:42px!important;
    max-width:100%!important;
  }

  html.ua-android-app body :is(.secmon-kpis,.kpi-grid,.stats-grid,.summary-grid,.dashboard-grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
}

@media (max-width:420px){
  html.ua-android-app body :is(.secmon-kpis,.kpi-grid,.stats-grid,.summary-grid,.dashboard-grid){
    grid-template-columns:minmax(0,1fr)!important;
  }
}

html.ua-android-app body.ua-android-protected-open{
  overflow:hidden!important;
}

html.ua-android-app .ua-android-protected-auth[hidden]{
  display:none!important;
}

html.ua-android-app .ua-android-protected-auth{
  position:fixed;
  inset:0;
  z-index:2147482000;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  height:100%;
  padding:16px;
  overflow:auto;
  background:rgba(2,8,18,.82);
  direction:rtl;
}

html.ua-android-app .ua-android-protected-card{
  width:min(100%,390px);
  min-width:0;
  padding:20px 16px 16px;
  border:1px solid rgba(243,186,47,.38);
  border-radius:20px;
  background:linear-gradient(155deg,#132339,#081522);
  color:#f7f9ff;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
  text-align:center;
}

html.ua-android-app .ua-android-protected-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  margin:0 auto 10px;
  border-radius:17px;
  background:rgba(243,186,47,.12);
  color:#f6c84b;
  font-size:22px;
}

html.ua-android-app .ua-android-protected-card h2{
  margin:0;
  color:#fff;
  font-size:19px;
}

html.ua-android-app .ua-android-protected-card p{
  margin:7px 0 15px;
  color:#93a5ba;
  font-size:12px;
}

html.ua-android-app .ua-android-protected-card form,
html.ua-android-app .ua-android-protected-card label{
  display:block;
  width:100%;
}

html.ua-android-app .ua-android-protected-card label{
  margin-bottom:6px;
  color:#c7d3e1;
  font-size:11px;
  font-weight:900;
  text-align:right;
}

html.ua-android-app .ua-android-protected-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px;
  width:100%;
  overflow:hidden;
  border:1px solid rgba(139,164,196,.28);
  border-radius:12px;
  background:#071423;
}

html.ua-android-app .ua-android-protected-input input{
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#fff!important;
  font-size:15px!important;
}

html.ua-android-app .ua-android-protected-input input::placeholder{
  color:#71869d!important;
  opacity:1!important;
}

html.ua-android-app .ua-android-protected-input button{
  width:46px!important;
  min-width:46px!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-right:1px solid rgba(139,164,196,.18)!important;
  background:rgba(255,255,255,.025)!important;
  color:#f6c84b!important;
}

html.ua-android-app .ua-android-protected-error{
  min-height:20px;
  padding-top:6px;
  color:#ff8f98;
  font-size:10px;
  text-align:right;
}

html.ua-android-app .ua-android-protected-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;
  margin-top:5px;
}

html.ua-android-app .ua-android-protected-actions button{
  min-width:0!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 10px!important;
  border-radius:11px!important;
  font-size:12px!important;
  font-weight:900!important;
}

html.ua-android-app .ua-android-protected-actions .is-confirm{
  border:1px solid rgba(243,186,47,.42)!important;
  background:linear-gradient(135deg,#f3ba2f,#d99014)!important;
  color:#151006!important;
}

html.ua-android-app .ua-android-protected-actions .is-cancel{
  border:1px solid rgba(139,164,196,.24)!important;
  background:#0a192a!important;
  color:#cbd7e5!important;
}
