html {
    height: 100%;
    width: 100%;
}

body {
    min-width: 300px;
    margin:0;
    padding:0;
    overflow-x: hidden;
}

body.fixedBody {
    /*position: fixed;*/
}

form[action*="Pages/default.aspx"] #flowformaPage,
form[action*="pages/default.aspx"] #flowformaPage {
    position: relative;
}

html:not(.ms-dialog) #s4-workspace #titleAreaBox, html:not(.ms-dialog) #s4-workspace .contentwrapper {
	margin-right: 80px;
	margin-left: 80px;
}

#sideNavToggle {
    display: none;
    height: 50px;
    background: #f7f5fa;
}

#sideNavToggle.active {
    height: 5px;
}

.toggleButton {
    float: right;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    border-color: #0072c6;
    min-width: 0;
    cursor: pointer;
    position: relative;
}

.toggleButton span {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #0072c6;
    -moz-transition: all 0.1s;
    -o-transition: all 0.1s;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
}

.toggleButton span+span {
    margin-top: 4px;
}

.toggleButton.active span {
    right: -4px;    
}

.toggleButton.active .top-bar {
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -moz-transform-origin: 10% 10%;
    -ms-transform-origin: 10% 10%;
    -o-transform-origin: 10% 10%;
    -webkit-transform-origin: 10% 10%;
    transform-origin: 10% 10%;
}

.toggleButton.active .middle-bar {
    opacity: 0;
}

.toggleButton.active .bottom-bar {
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -moz-transform-origin: 10% 90%;
    -ms-transform-origin: 10% 90%;
    -o-transform-origin: 10% 90%;
    -webkit-transform-origin: 10% 90%;
    transform-origin: 10% 90%;
}

.form-container.noMinWidth {
    min-width: 100%;
}

body.rwdReady textarea.multiplelinesoftext-input {
    width: auto;
}

body.rwdReady #subquestionCol textarea.multiplelinesoftext-input {
    width: auto;
}

.form-body-wrapper {
    -webkit-overflow-scrolling: touch;
}

.rwd .step-body .step-questions {
    table-layout: fixed;
}

.rwd .step-body .step-label-cell, .rwd .step-body .step-question-row > .step-control-cell,
.rwd .step-body .question-container-table, .rwd .step-body .question-container-table > tbody, .rwd .step-body .step-question-row {
    width: 100% !important;
    min-width: 0 !important;
    display: block;
}

.rwd .step-control-cell.repeatingtable-control {
    max-width: none !important;
}

.rwd.rwdMobile .step-body .step-questions {
    /*table-layout: auto;*/
}

.rwdMobile .step-body .step-questions > tbody > tr > td.question-container-cell,
.rwdMobile .step-body .step-questions, .rwdMobile .step-body .step-questions > tbody, .rwdMobile .step-body .step-questions > tbody > tr {
    /*display: block;*/
}

@media screen and (max-width: 991px) {
	html:not(.ms-dialog) #s4-workspace .contentwrapper {
		margin:10px 20px;
        min-width: 0;
	}
	
	html:not(.ms-dialog) #ms-belltown-table , html:not(.ms-dialog) #titlerow, html:not(.ms-dialog) #titleAreaBox, html:not(.ms-dialog) #titleAreaRow, html:not(.ms-dialog) #siteIcon {
		display: block;
	}
	
	html:not(.ms-dialog) #titleAreaBox {
		padding: 0;
	}
	
	html:not(.ms-dialog) #titleAreaRow {
		position: relative;
	}
	
	html:not(.ms-dialog) #titleAreaRow  .ms-tableCell {
		display: block;
	}
	
	html:not(.ms-dialog) #siteIcon {
		float: none;
		width: 100%;
		margin-top: 5px;
		margin-bottom: 0;
		text-align: left;
		padding: 0 10px;
	}
	
	html:not(.ms-dialog) .ms-belltown-authenticated .ms-belltown-searcharea {
		padding-top: 0;
		position: absolute;
		top: 25px;
		right: 10px;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox {
		float: none;
		display: block;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox ul, .ms-core-listMenu-horizontalBox li {
		display: block;
		width: 100%;
		background-color: #f7f5fa;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox li {
		position: relative;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox li > ul.dynamic {
		position: relative;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		box-sizing: border-box;
		box-shadow: none;
		border: none;
		padding: 0;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox .ms-core-listMenu-item, html:not(.ms-dialog) .ms-core-listMenu-horizontalBox .ms-core-listMenu-item .ms-navedit-flyoutArrow {
		display: block;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox .ms-core-listMenu-item .ms-navedit-flyoutArrow {
		background: none;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox li.static .ms-core-listMenu-item {
		margin-right: 0;
		padding: 10px;
		font-size: 16px;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox li.static ul .ms-core-listMenu-item {
		padding-left: 25px;
	}
	
	html:not(.ms-dialog) .ms-core-listMenu-horizontalBox li.static .ms-core-listMenu-item:hover {
		background-color: #cde5f6;
	}
	
	html:not(.ms-dialog) .ms-breadcrumb-box {
		padding-top: 0;
		padding-bottom: 5px;
		height: auto;
		display: block;
	}
	
	#RibbonContainer-TabRowRight {
        display: none !important;
    }

    .ms-mpSearchBox {
        display: none;
    }
    
    #DeltaSuiteLinks {
        display: none;
    }

    #sideNavBox {
        width: 100%;
        float: none;
        margin: 0;
        border-top: 1px solid #eae7ef;
        border-bottom: 1px solid #eae7ef;
        margin-bottom: 10px;
    }

    #sideNavToggle {
        display: block;
    }

    #sideNavBox .ms-core-navigation {
        display: none;
        background: #f7f5fa;
    }

    #sideNavBox .menu-item, #sideNavBox .ms-core-listMenu-item {
        font-size: 16px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #contentBox {
        margin: 0 !important;
        padding: 0;
        min-width: 0;
    }

    #s4-titlerow {
        height: auto;
        padding: 8px 0 6px 0;
    }

    .ms-core-pageTitle {
        white-space: normal;
        font-size: 2em;
		margin-bottom: 10px;
		padding: 0 14px;
    }

    html:not(.ms-dialog) #sideNavBox .ms-core-sideNavBox-removeLeftMargin {
        margin: 0;
    }
	
	html:not(.ms-dialog) #DeltaHorizontalQuickLaunch {
		position: relative;
		min-height: 50px;
		background: #f7f5fa;
		border-top: 1px solid #eae7ef;
		border-bottom: 1px solid #eae7ef;
	}
	
	.ms-quickLaunch {
		display: none;
	}
	
	.ms-quickLaunch.active {
        display: block;
    }

    

    html:not(.ms-dialog) #s4-workspace #titleAreaBox {
        margin: 0;
        padding: 0;
    }
    
    #contentRow {
        padding-top: 0;
    }

    #contentBox.noPaddingBox {
        padding: 0;
    }

    #DeltaSiteLogo {
        line-height: normal;
    }

    .ms-breadcrumb-top {
        display: none;
    }

    #siteIcon {
        height: auto;
        line-height: normal;
        margin-right: 10px;
    }

    .form-container.noWidth {
        width: 100% !important;
    }

    .form-footer input, .form-footer button {
        margin-bottom: 10px;
    }

    input.singlelineoftext-input,
    .k-numerictextbox.calculated-input,
    .k-numerictextbox.number-input,
    .k-datetimepicker.dateandtime-input,
    .k-datepicker.dateandtime-input,
    .k-dropdown.k-header,
    .personorgroup-control .personorgroup-picker,
    .personorgroup-control .personorgroup-picker .k-multiselect.k-header {
        max-width: 100%;
    }

    td.step-control-cell.documentupload-control:not(.repeatingtable-control) {
        white-space: normal;
    }

    .repeatingTable div.multiplelinesoftext-div {
        width: auto !important;
    }

    .repeatingTable div.multiplelinesoftext-div .k-editor {
        min-width: 350px;
    }

    .repeatingTable .peopleinput {
        width: 300px !important;
    }

    .ms-webpart-zone .ms-cellstyle {
        vertical-align: middle;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ms-webpart-zone .ms-listlink, .ms-webpart-zone .ms-vb-title {
        font-size: 16px;
    }

    .ms-webpart-zone a.ms-listlink {
        color: #0072c6;
    }

    .collab-panel {
        display: none !important;
    }

    .form-body-wrapper .form-tabs-wrapper .collab-panel {
        display: block !important;
    }

    .form-body .form-body-wrapper.collab-panel-on {
        width: 100%;
    }

    .votingResults-Content, .votingResults-Content > tbody, .votingResults-Content > tbody > tr, .votingResults-Content > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .votingResultsChart-Cell {
        min-width: 200px;
    }

    .collab-panel .k-panelbar > .k-item > .k-link {
        line-height: 3em;
    }

    #checkSignature input[type=password], #checkSignature input[type=text], .signature-section-control input[type=password], .signature-section-control input[type=text] {
        width: 90% !important;
    }

    .signature-section .k-button {
        margin-bottom: 4px;
    }

    .rwd textarea.multiplelinesoftext-input {
        width: 100% !important;        
        box-sizing: border-box;
        min-width: 0 !important;
    }

    .rwd .multiplelinesoftext-div .ui-wrapper {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .rwd .multiplelinesoftext-div .ui-resizable-handle.ui-resizable-se.ui-icon.ui-icon-gripsmall-diagonal-se {
        display: none !important;
    }

    .rwd .repeatingTable textarea.multiplelinesoftext-input {
        width: auto !important;
        max-width: 350px;
    }

    .rwd div.multiplelinesoftext-div,
    .rwd div.multiplelinesoftext-div .k-editor {
        width: 100% !important;
    }

    .rwd .multiplelinesoftext-label-div:not(.multiplelinesoftext-subQuestion-label) {
	    width: auto !important;
	    display: block !important;
    }
       
    
    
    .rwd #contentBox #DeltaPlaceHolderMain {
        overflow-x: auto;
    }

    .rwd #s4-workspace {
        -webkit-overflow-scrolling: touch;
    }

    .rwd #passbackContent .flowforma-table, .rwd #passbackContent .flowforma-table tbody, .rwd #passbackContent .flowforma-table tbody tr, .rwd #passbackContent .flowforma-table tbody tr td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .rwd #passbackContent .flowforma-table td:first-of-type {
        height: auto;
        width: 100%
    }

    .rwd #passbackContent .flowforma-table tbody tr td:last-child {
        margin-bottom: 15px;
    }

    .rwd #passbackContent .flowforma-table textarea {
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .rwd #passbackContent .flowforma-table label {
        margin: 4px 0;
    }

    .rwd .delegate-table, .rwd .delegate-table tbody, .rwd .delegate-table tbody tr, .rwd .delegate-table tbody tr td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .rwd .delegate-table tbody tr {
        margin-bottom: 10px;
    }

    .rwd .delegate-table textarea {
        margin: 0;
        box-sizing: border-box;
        max-width: 100%;   
    }

    .rwd .flowforma-table.delegate-table td:first-of-type {
        height: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .rwd .delegate-table .k-multiselect.k-header {
        box-sizing: border-box;
    }

    .visibleArrow {
        display: block !important;
    }
}

@media screen and (max-width: 549px) {
	html:not(.ms-dialog) .ms-belltown-authenticated .ms-belltown-searcharea {
		padding-top: 11px;
		position: relative;
		top: auto;
		right: auto;
	}
}

/*Hide ribbon buttons*/

#Ribbon\.EditingTools\.CPInsert\.Media\.Image\.Menu\.Image\.FromSharePoint-Menu,
#Ribbon\.EditingTools\.CPInsert\.Media\.Image\.Menu\.Image\.FromComputer-Menu,
#Ribbon\.EditingTools\.CPInsert\.Media\.Media\.Menu\.Section\.FromComputer-Menu,
#Ribbon\.EditingTools\.CPInsert\.Media\.Media\.Menu\.Section\.FromSharePoint-Menu {
    display: none;
}

/*Hide create list or document library link*/
#SettingsFlexPane a[href*="createList.aspx"] {
    display: none;
}

