
/* @media screen and (max-width: 992px) { */


@media only screen and (min-device-width: 1024px) {
    .CCSHideTabSectionInDesktop {
        display: none !important;
    }
}

@media only screen and (max-device-width: 1024px) {
    .CCSHideTabSectionInTablet_Mobile {
        display: none !important;
    }
}

@media only screen and (max-device-width: 992px) {
    div.ccs_rowDiv {
        width: 100% !Important;
    }

        div.ccs_rowDiv.ccs_Splitter {
            width: 100% !important;
        }

    div.ccs_CustomForm {
        width: auto !important;
        min-width: 0 !important;
    }


    #PanelCustomForm.modalDialogIframeBody {
        width: auto !important;
        overflow: hidden;
        max-height: 100%;
        max-width: 100vw;
    }

    .ms-webpartzone-cell {
        margin: 0 !important;
    }

    table.ms-core-tableNoSpace {
        width: 100% !important;
    }
}

/* @media screen and (max-width: 768px) { */
@media only screen and (max-device-width: 768px) {
    div.ccs_rowDiv {
        width: 100% !Important;
    }

    .CCSFormTableLayout:not(.CCSFormTableNonResponsive) > tbody > tr > td {
        width: 100% !important;
        display: inline-block;
    }

    div.ccs_rowDiv:not([style*="display: none"]) {
        display: inline-block !important;
    }

    div.ccs_rowDiv .ccs_ColumnLabel:not(.ccs_BooleanLabelPositionApplied) {
        width: 100% !important;
        display: block;
    }

    div.ccs_rowDiv .ccs_ColumnControl:not(.ccs_BooleanLabelPositionApplied) {
        width: 100% !important;
        display: block;
        padding: 0px 10px 8px 10px;
        border-bottom: 1px dotted #ddd;
    }

    #sideNavBox, #s4-titlerow:not(.NITROPortalHeaderApplied) {
        display: none !important;
        width: 0;
    }

    #contentBox {
        margin-left: 0;
        min-width: 0;
        margin-right: 0px;
    }

    #contentRow {
        padding-top: 0;
    }

    #btnSave, #btnCancel {
        min-width: 100px !important;
    }

    .ccsKendo .k-grid, .ccsKendo .k-grid > .k-grid-header,
    .ccsKendo .k-grid > .k-grid-content,
    .ccsKendo .k-grid > .k-grid-container > .k-grid-content {
        max-width: calc(100vw - 70px);
    }

    /*div#CCSLookupSearchDialog .ccs_DC_modal-body > div > table, div#CCSLookupSearchDialog .ccs_DC_modal-body > div > table tbody, div#CCSLookupSearchDialog table tr, div#CCSLookupSearchDialog table tr td {
        display: block;
        width: 100%;
    }*/

    .CCSNITROButtonPanel, #CCSActionRowBottomPanel {
        position: fixed;
        bottom: 0;
        background: #f4f4f4;
        z-index: 100;
        min-height: 40px;
        border-top: 1px solid #c8c8c8;
        /*box-shadow: 1px 1px 19px 1px rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);*/
    }

    #CCSActionRowBottomPanel {
        left: 0;
        padding: 6px 0px 5px 15px;
        height: auto !important;
    }

    .CCSNITROButtonPanel {
        right: 0;
        padding-right: 15px;
    }

    .modalDialogIframeFooter .CCSNITROButtonPanel, .modalDialogIframeFooter #CCSActionRowBottomPanel {
        position: initial;
        background: none;
        z-index: auto;
    }

    .CCSNITROButtonPanel > div {
        padding: 5px 0px !important;
        text-align: center !important;
    }

    .modalDialogIframeFooter .CCSNITROButtonPanel > div {
        padding: 10px 0px !important;
        text-align: left !important;
    }
/*
    #s4-workspace {
        max-height: calc(100vh - 40px);
    }
*/
    div#contentRow {
        overflow-y: hidden;
    }

    div#contentBox {
        overflow-y: auto;
        max-height: calc(100% - 45px);
    }

    #ccsMainControl {
        margin-bottom: 20px;
    }

        #ccsMainControl.ItemCreatedModified, #ccsMainControl.BottomCopyItemLink {
            margin-bottom: 75px;
        }

    div.ccs_CustomForm {
        margin-top: 0px !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: 0 !important;
    }

    #panelCCSTabs > li {
        border: 0;
    }

    ul#panelCCSTabs {
        border: 0;
        padding: 0;
    }

    #tabStripForm > p, #tabStripForm > CCSTabControls {
        border: 0;
    }
}

@media only screen and (max-device-width: 440px) {
    div#CCSLookupSearchDialog table tr td input#txtLookupSearch {
        max-width: 200px;
    }

    div#CCSLookupSearchDialog table tr td select#ddLookupSearchRefiner {
        max-width: 217px !important;
        margin-bottom: 5px;
        width:100% !important;
    }

    .ccs_ColumnControl > .ccsKendo .k-link.k-pager-nav.k-pager-first, .k-link.k-pager-nav.k-pager-last, .k-pager-refresh.k-link {
        display: none;
    }

    /*#suiteBarDelta, #s4-ribbonrow, #CCSTopBar {
        display: none !important;
        width: 0;
    }*/

    .ccsMultiChoiceDiv > div {
        max-width: 100%;
    }
}

.ms-webpartzone-cell {
    margin: auto !important;
}
