﻿/* Combos con filtro en celular: la lista como panel a pantalla completa (Scripts/Controles/ComboMovil-1.0.1.js).
   top y height los pone el script con el área que deja el teclado. "html body" gana a los !important de Estilo. */
html body .dropdown-menu.combo-movil-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
    background: #fff;
    z-index: 3100 !important;
}

html body .dropdown-menu.combo-movil-panel > .combo-movil-encabezado {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 16px;
    border-bottom: 1px solid #e5e5e5;
}

html body .dropdown-menu.combo-movil-panel .combo-movil-titulo {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

html body .dropdown-menu.combo-movil-panel .combo-movil-cerrar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #555;
}

html body .dropdown-menu.combo-movil-panel .combo-movil-listo {
    width: auto;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #337ab7;
}

html body .dropdown-menu.combo-movil-panel > .bs-searchbox,
html body .dropdown-menu.combo-movil-panel > .bs-actionsbox,
html body .dropdown-menu.combo-movil-panel > .bs-donebutton {
    flex: 0 0 auto;
    padding: 8px 12px;
}

/* 16px: con menos, iOS acerca la página al escribir en el filtro. */
html body .dropdown-menu.combo-movil-panel > .bs-searchbox input {
    height: 42px;
    font-size: 16px;
}

/* El script lo deja de solo lectura hasta que se toca (así no abre el teclado solo): que no se vea deshabilitado. */
html body .dropdown-menu.combo-movil-panel > .bs-searchbox input[readonly] {
    background-color: #fff;
    cursor: text;
}

html body .dropdown-menu.combo-movil-panel > .inner {
    flex: 1 1 auto;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

html body .dropdown-menu.combo-movil-panel > .inner > li > a {
    padding: 12px 16px;
    font-size: 15px;
}

html.combo-movil-abierto,
html.combo-movil-abierto body {
    overflow: hidden !important;
}
