


/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    /* Styles */
    }
    
    /* iPads (landscape) ----------- */
    @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
    /* Styles */
    }
    
    /* iPads (portrait) ----------- */
    @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
    /* Styles */
    }

@media (max-width: 1199px) {

    html, body {
    max-width: 100%;
    overflow-x: hidden;
    }

    body {
        margin: 0px !important;
        padding: 0px !important;
        font-size: 1rem;
    }

    input, select {
        font-size: 1rem;
        min-height: 1.4rem;
    }

    #TITLE-NAME {
        font-size: 1.3rem;
    }

    .mainmenu-popup-container {
        max-width: calc(100vw - 2rem);
        padding-top: 0;
    }

    /* When main menu is in the User Menu, the height should not be 100vh like
       it is for the main menu. */
    .usermenu-container .mainmenu-popup-container {
        height: auto;
    }

    .mainmenu-popup-section1,
    .mainmenu-popup-section2 {
        font-size: 1.1rem;
        /*color: #fafafa;*/
    }

    .mainmenu-popup-link a,
    .mainmenu-popup-link a:link {
        font-size: 1.1rem;
        /*  color: #cacaca; */
        padding-top: 7px;
        padding-bottom: 7px;
        white-space: normal;
    }



    .mainmenu-popup-sectionlabel1 {
        background-color: transparent;
    }


    .pagebody, div.pagebody {
        width: calc(100vw - 1rem);
        padding-left: 0;
        margin-left: 1rem;
    }

    .page-indent {
        margin: 10px;
    }



    .status-item {
        font-size: 1rem;
    }

    .htlink {
        font-size: 1rem;
    }


    #CANDO-LINKS {
        display: none;
    }

    #CANDO-LINKS-MENU {
        display: block;
        margin-right: 1px;
    }

    .new-cando-link {
        font-size: 1rem;
    }
    
    .primary-link {
        margin-bottom: 0.5rem;
    }

    .popup-menu-container {
        font-size: 1rem;
    }

    .popup-menu-item {
        font-size: 1rem;
        padding: 2px 0px;
    }


    .dataentrytitle {
        font-size: 1rem;
    }

    .dataentrylabel {
        font-size: 1rem;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .dataentryfield {
        font-size: 1rem;
        padding-bottom: 5px;
    }

    button, input[type=button], input[type=submit] {
        font-size: 1rem;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .searchlabel {
        font-size: 1rem;
    }

    .searchcategory {
        max-width: 100%;
    }


    .lut_descrip, .lut_class {
        font-size: 1rem;
    }

    .lut_col1_item, .lut_col2_item {
        padding-top: 3px;    
        padding-bottom: 3px;    
    }

    .session-container {
        padding-left: 1.5rem;
        padding-top: 0.5rem;
    }


    .msgbox,
    .msgboxtext,
    #msgboxtextspan {
        font-size: 1rem;
    }



    .table-selectable .griddata {
        font-size: 1rem;
        padding-top: 4px;
        padding-bottom: 4px;
    }

}



@media (max-width: 768px) {

/*
    #stcTop {
        display: none;
    }

    #stcBottom {
        display: none;
    }

    #stcLeft {
        display: none;
    }

    #stcRight {
        display: none;
    }
*/


    #HEADER {
        display: none;
    }

    #TITLE-PERSON {
        display: none;
    }

    #menuBlock {
        display: block !important;
    }

    #footer-back-button {
        display: inline-block;
        margin-left: 10px;
    }


    #DESCRIPTION {
        XXmargin-left: 0.5rem;
        margin-right: 0.3rem;
    }

    #DESCRIPTION-SPACER {
        height: 5px;
        margin: 0;
        padding: 0;
    }

    /* Don't display this on mobile devices */
    #PAGE-DESC {
        display: none;
        XXfont-size: 1rem;
    }


    .pagebody, div.pagebody {
        width: 100vw;
        margin-left: 0;
    }


    .mainmenu-popup-container {
        height: 100vh;
        min-width: 75vw;
    }

    .mainmenu-popup-container #_tabContainer {
        display: none;
    }


    .modal-dlg {
        width: 100%;
        height: 100%;
    }
    
    .modal-dlg-inner {
        max-width: 90vw;
        max-height: 95vh; 
    }
    
    .dataentryfields-border #PAGE-DESC {
        display: block;
        font-size: 1rem;
    }

    /* Can-do Links */

    .dataentry-form {
        margin-top: 0;
    }

/*
    #dataentrybutton0, #dataentrybutton1 {
        font-size: 1rem;
    }
*/

    .dataentryfields-border {
        box-shadow: none;
        padding: 10px;
    }


    /* Styles for Student Dashboard */

    #tileContainer {
        font-size: 1rem;
    }


    .tile {
        width: 100vw;
        height: auto;
        box-shadow: none;
        border-radius: 0;
    }

    .tile:hover {
        box-shadow: none;
    }


    .tileOuter {
        margin: 10px 0px;
    }


    .tileTitle {
        text-align: left;
        width: auto;
        order: 2;
    }

    .tileNum {
        font-size: 1.5rem;
        min-width: 1.5rem;
    }

    .tileTitleWrapper {
        display: flex;
        padding-left: 1rem;
        align-items: center;
    }

    .tileIndicator {
        position: static;
        top: auto;
        right: auto;
        order: 1;
        padding-right: 0.5rem;
    }

    .tileMoreLink {
        position: static;
        margin-left: 20px;
    }

    .tileSeparator {
        margin-bottom: 0px;
    }

    tileSeparatorExtraPadding {
        margin-bottom: 0px;
    }

    .tileImageText {
        padding: 0.5rem 0;
        font-weight: bold;
    }

    #dataGenDate {
        order: 1;   /* put after the other unordered elements so it gets put at the bottom of the page */
    }

    #leftMessage {
        padding-top: 0;
        padding-bottom: 0;
    }

    .tooltip-displayed {
        display: none;
    }




    /* Styles for touch lists */

    .touchlist-link {
        border: 1px solid #c0c0c0;
        background-color: #f8f8f8;
    }



    .session-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }


    #idSearchForm {
        max-width: 100vw;
    }


    #idSearchForm #_tabContainer {
        display: none;        
    }

    #idSearchForm #_tabContents {
        box-shadow: none;        
        padding: 5px;
    }

    #idRecentForm {
        display: none;
    }

    .searchform {
        margin: 0 .5rem;
        width: auto;
    }
    

    .form-fieldandlabel {
        XXflex-wrap: wrap;
        display: block;
        margin: 0 0 1rem;

        -ms-grid-columns: auto;
        grid-template-columns: 100%;
        -ms-grid-rows: auto auto auto;
        grid-template-rows: auto auto auto;

    } 


    .form-fieldandlabel > label, 
    .form-fieldandlabel > legend {
        XXfloat: none;
        XXdisplay: block;
        font-weight: bold;
        width: auto;
        padding-bottom: 5px;
        font-size: 1rem;

        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
        -ms-grid-column: 1;
        -ms-grid-row: 1;
    
    }

    .form-fieldandlabel > div {
        XXdisplay: block;
        XXfloat: none;
        XXwidth: auto;

        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
        grid-row-end: 3;
        -ms-grid-column: 1;
        -ms-grid-row: 2;
    
    }


    .table-selectable .griddata {
        font-size: .9rem;
        padding-top: 4px;
        padding-bottom: 4px;
    }


    /* Manager Dashboard */

    #header > #headerLeft {
        margin-left: 0.5rem;
    }

    #header > #headerRight {
        margin-left: 0.5rem;
        display: block;
        clear: both;
        float: none;
        padding-top: 1rem;
    }

}


@media (hover: none) {

    body {
        font-size: 1rem;
    }

/* Remove some hover effects when on devices that do not support hover */

    .popup-menu-title:hover {
        border: 1px solid transparent;
        background-color: transparent;
    }


    .launchlink {
        background-color: #f8f8f8;
        border: 1px solid #c0c0c0;
    }


}


