

/* Csak a mobil eszközök (and (hover: none) nem kell bele, mert a samsung nem veszi úgy észre! )*/
@media only screen and (pointer: coarse) {


    /* ----------------------------------------------------------------------------------------------------------------- */
    /* Small devices --------------------------------------------------------------------------------------------------- */
    /* ----------------------------------------------------------------------------------------------------------------- */
    
    @media screen and (min-width: 10px) and (max-device-width: 550px) {

        /* ControlMainDiv-ek kisebb nézetben törjenek több sorba */
        .ControlMainDiv {
            width: unset !important;
        }
        .ControlMainDiv > div:not(.ButtonDivControl, .LabelDiv), .ControlMainDiv > div > div:not(.ButtonDivControl) {
            clear: both !important;
        }
    }


    @media screen and (min-width: 10px) and (max-device-width: 900px) {
        
        /* túl kicsinél még a grid infói is eltűnnek */
        .GridColDiv, .GridInfoDiv {
            display: none !important;
        }

        .DataGrid_ButtonDiv {
            width: auto !important;
        }

        /* menu tűnjön el, helyette kis gomb jelenjen meg */
        #MainMenuTD, #logo_td, #title_tr {
            position: absolute;
            visibility: hidden;
        }

        #MainMenu {
            position: absolute;
            left: 0px;
            top: 0px;
            width: 200px;
            height: 100vh !important;
            z-index: 11;
            background-color: #31373d;
        }

        #MainMenuButton {
            font-display: block;
            position: absolute;
            left: 10px;
            top: 15px;
            display: block;
            visibility: visible;
        }

        #TabMain:not(#divLogin #TabMain) {
            height: Calc(100vh - 105px) !important;
        }

        #TabMain:not(#divLogin #TabMain) {
            height: Calc(100vh - 80px) !important;
        }

        #TabMain:not(.ItsALittleWindow, #divLogin #TabMain) {
            height: Calc(Calc(100vh - var(--BottomTabPageButton)) - 5px) !important;
        }

        .TabDiv:not(.ItsALittleWindow) {
            left: 20px !important;
            width: Calc(100% - 40px) !important;
            height: Calc(100vh - 50px) !important;
        }
        .TabDiv {
            height: Calc(100vh - 105px) !important;
            overflow-x: auto;
        }
        .TabDiv:not(.ItsALittleWindow) {
            height: Calc(Calc(100vh - var(--BottomTabPageButton)) - 5px) !important;
        }
        /* login ablak egyedi kezelése */
        #divLogin #TabMain #TabDiv1 {
            overflow: hidden;
            height: 120px !important;
        }

      

        #PageTitle:not(.ItsALittleWindow, .loginDiv #MainContent #PageTitle) {
            margin-left: 40px;
        }

        /* close, info */
        .modal_close, .helpbutton, .modal_resize {
            width: 20px;
            height: 20px;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .helpbutton {
            right: 27px;
        }

        .modal_resize {
            right: 50px;
        }

        .mainhelpbutton {
            font-size: 15px;
            margin-top: -2px;
            border-radius: 15px;
            -moz-border-radius: 8px;
            -webkit-border-radius: 20px;
            padding-left: 3px;
            width: 20px;
            height: 22px;
        }
        /* ControlMainDiv-ek kisebb nézetben a - jellemzően - több oszlopba pozicionálás megszűnik */
        .ControlMainDiv {
            position: unset !important;
        }

       

        /* új menüpontok */
        #outlink, #divLanguage a, #PasswordChange {
            line-height: 15px;
            display: inherit;
            cursor: pointer;
            padding-right: 10px;
            color: #999 !important;
            font-size: 17px;
            margin-left: 10px;
            font-weight: normal !important;
        }

        #outlink, #divLanguage {
            width: 100% !important;
        }

        #divLanguage a {
            padding: 0px;
        }

        #NotificationBrowse {
            margin-top: 0px;
        }

        #PasswordChange {
            margin-left: 0px;
            padding-left: 11px;
            border-top: 1px solid #999;
            width: 100%;
            padding-top: 20px;
        }

        .divMainSearchDiv {
            visibility: hidden;
        }


        /* Safari miatt kell*/
        .Button:not(#btnLogin) {
            background-color: transparent !important;
        }


    }

      
    /* ----------------------------------------------------------------------------------------------------------------- */
    /* Nagyobb eszközöknél már van menü oldalt ------------------------------------------------------------------------- */
    /* ----------------------------------------------------------------------------------------------------------------- */
    @media screen and (min-device-width: 901px) {
        /* menu jelenjen meg */
        #MainMenuTD, #logo_td, #title_tr {
            position: initial;
            visibility: initial;
        }

        #MainMenuButton {
            display: none;
        }
        
    }

    /* ----------------------------------------------------------------------------------------------------------------- */

    .mainhelpbutton {
        display: none;
    }

    /* gridek fő gombjai */
    .DataGrid_ButtonDiv {
        height: auto;
        position: unset;
        width: 100% !important;
    }

    .GridColDiv, .GridInfoDiv {
        top: 0px;
    }


    #divdivgrdInvoiceList {
        padding-top: 0px;
        border-radius: 0px 0px 7px 7px;
    }


    /* felugró ablakok teljes képernyősek legyenek */
    .modalwindow {
        top: 0px !important;
        left: 0px !important;
        margin-left: 0px !important;
        width: Calc(100% - 30px) !important;
        height: Calc(100% - 30px) !important;
        border-radius: 0px;
        -moz-border-radius: 0px;
        -webkit-border-radius: 0px;
        overflow: hidden;
    }
    
    .frmModal {
        width: 100%;
        height: Calc(100% - 30px);
    }
    .TabDiv.ItsALittleWindow {
        overflow: auto !important;
    }


    #BottomTabPageButton {
        width: Calc(100% - -15px) !important;
    }

    .modal_resize {
        visibility: hidden !important;
    }


}
