/*** Very Large Screens **/
@media only screen
and (min-width : 1600) {
	.visible-xlg{
		display: block !important;
	}
	.hidden-xlg{
		display: none !important;
	}
}
@media only screen
and (min-width : 1824px) {
	body {
		 height:100%;
	}
	/** Side bar widget **/
	.footer-widget{
		position:fixed;
	}
	/** Tables **/
	.table th{
		font-size:14px;
	}

	.table td{
		font-size:14px;
	}

	.table td.small-cell, .table th.small-cell{
		width: 42px;
	}
	/** Controls **/
	.checkbox label:before {
		top:0.5px;
	}
	/** Tiles **/
	.tiles.margin-reset{
		 margin-left: 51px;
	}
	/** Only Demo Purpose **/
	.demo-map{
		min-height:100%;
	}

	.error-main{
		margin-top:40%;
	}
		.visible-xlg{
		display: block !important;
	}
	.hidden-xlg{
		display: none !important;
	}

}

@media (min-width: 1200px) {
  a.navbar-brand {
    margin-left: 50px;
  }
}


/*** Desktops & Laptops ***/
 @media (min-width: 1025px) { /* Changed to 1025px to include ipad Pros */

 	/*** Page sidebar ***/
    .menu-non-fixed .page-sidebar{
        margin-top: 0;
        padding-top: 58px;
    }
 	.page-sidebar {
		display: inline-block;
		float: left;
		position: fixed;
		width: 100%;
		margin-top:58px;
        padding-bottom: 105px;
  	}
  	.sub-sidebar {
  		display: inline-block;
  		float: left;
  		left: 250px;
  		z-index: 400;
  		position: fixed;
  		width: 250px;
  		margin-top:58px;
  	    padding-bottom: 105px;
  	}

    .menu-non-fixed .footer-widget{
     z-index: 100;
    }
    .page-sidebar .page-sidebar-wrapper{
        display: inline-block;
        float: left;
        height: 100%;
    }
	.page-sidebar.fixed{
		position: fixed;
	}
  	.page-sidebar ul{
  		width: 250px;
  	}
  	.sub-sidebar .sub-sidebar-wrapper{
  	    display: inline-block;
  	    float: left;
  	    height: 100%;
  	}
  	.sub-sidebar.fixed{
  		position: fixed;
  	}
	.sub-sidebar ul{
		width: 250px;
	}

  	/*** Page content ***/
  	.page-content {
  		margin-left: 250px;
		min-height: 500px;
	}

	.page-content.no-min-height {
		min-height: auto;
	}

	.full-width-page .page-content {
		margin-left: 0px !important;
	}

	.inner-menu{
		padding-top: 60px;
	}
	/** Const size button for medium devices **/
	.btn-cons-md{
		  min-width: 120px;
  }
  #toggle-display-stops {
    display: none;
  }
  #secondary-menu {
    display: unset !important;
    width: unset !important;
  }
  #editDetails {
    display: unset !important;
  }
}

/*** General tablets and phones ***/
@media (max-width:1024px) {

	/*** Body ***/
	body {
		margin: 0px !important;
	}

	/*** Page header ***/
 	.header {
 		margin: 0 !important;
 	}
	.header .nav li.dropdown i {
		display: inline-block;
		position: relative;
		top:1px;
		right:0px;
	}
	.page-sidebar.mini {
		display: none;
	}

	.header .nav {
		margin-bottom: 0px !important;
	}

	/*** Page container ***/
	.page-container {
		margin: 0 !important;
		padding: 0 !important;
	}

	.fixed-top .page-container {
		margin-top: 0px !important;
	}

	/*** Page content ***/
  	.page-content {
		margin-top:0;
  	}
	.tiles {
	  margin-right:0px;
	}
	.tiles.added-margin {
	  margin-right:0px;
	}

	.page-content .admin-bar .admin-bar-inner {
		 margin-right: 0px;
	}
	.scrollup{
		left: 235px;
	}

	.page-sidebar .page-sidebar-wrapper{
		display: inline-block;
		float: left;
		width: 250px;
		height: 1005;
	}
	.page-sidebar {
		margin-left: 0px;
		position: fixed;
		display:none;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		left: 0;
		top: 0;
		width: 250px;
		z-index: 2001;
	}

    .inner-menu-always-open .page-sidebar .page-sidebar-wrapper{
         width: 50px;
    }

	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper ul{
        background-color: #0aa699;
    }

	.inner-menu-always-open .page-sidebar .slimScrollDiv{
		overflow:visible !important;
	}

	.inner-menu-always-open .page-sidebar .slimScrollDiv .page-sidebar-wrapper{
		overflow:visible !important;
	}

	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul{
		width: 50px;
		margin:0;
		padding-top: 17px;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li > a{
			padding: 13px !important;
			color:#fff;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li a i{
			color:#fff;
	}
	.inner-menu-always-open .page-sidebar .user-info{
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > p{
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > .status-widget{
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > .notification-alert{
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul li span.title{
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper >ul li span.arrow {
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul li ul li span.title{
		display:inline;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper >ul li  ul li span.arrow {
		display:inline;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul li span.badge  {
		display:none;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper ul li span.label  {
		display:none;
	}
	.inner-menu-always-open .page-sidebar .profile-wrapper  {
		display:none;
	}

	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li >a:hover,
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li:hover >a {
		background: #0b9c8f;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li.open > a, .inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li > a:hover, .inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li:hover > a{
		padding: 13px;
	}
	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > ul > li > ul.sub-menu{
		position:absolute;
		margin-top:-46px;
		margin-left:50px;
		width:auto;
		z-index:100;
		min-width:250px;
	}

	.inner-menu-always-open .page-sidebar .page-sidebar-wrapper > .side-bar-widgets{
		display:none;
	}

	.inner-menu-always-open .inner-menu{
        display: inline-block;
        float: left;
        margin-top: 20px;
    }
    .inner-menu-always-open .page-content {
       margin-left: 0;
    }
    .inner-menu{
        display: none;
    }
	/*** Page header ***/
	.header .navbar-inner .container-fluid {
		margin-left: 10px !important;
		margin-right: 10px !important;
	}

	.header .top-nav .nav{
	 	margin-top: 0px;
	 	margin-right: 5px;

	}

	.header .nav > li > .dropdown-menu.notification:after,
	.header .nav > li > .dropdown-menu.notification:before {
		margin-right: 180px;
	}

	.header .nav > li > .dropdown-menu.notification {
  		margin-right: -180px;
	}

	.header .nav > li > .dropdown-menu.inbox:after,
	.header .nav > li > .dropdown-menu.inbox:before {
		margin-right: 140px;
	}

	.header .nav > li > .dropdown-menu.inbox {
  		margin-right: -140px;
	}

	.header .nav > li > .dropdown-menu.tasks:after,
	.header .nav > li > .dropdown-menu.tasks:before {
		margin-right: 90px;
	}

	.header .nav > li > .dropdown-menu.tasks {
  		margin-right: -90px;
	}

	.header-seperation{
		z-index:999;
		text-align:center;
		min-height:60px;
		display:block !important;
	}
	.header .notifcation-center{
		margin-left:15px;
	}
	.logo{
		margin-right:auto;
		margin-left:auto;
		margin-top:16px;
	}
	/*** Page content ***/
	.page-content .content {
		padding:8px;
		padding-top:95px;
	}
	/*** Page title	***/
	.page-title {
		margin-bottom: 20px;
	}

	/*** Portlet form action ***/
	.portlet-body.form .form-actions{
	  padding-left: 15px;
	}

	.form-horizontal .form-actions {
  		padding-left: 180px;
  	}

	.no-margin-grid .row-fluid [class*="span"]{
		width:100% !important;
		margin:0px;
		margin-bottom:10px;
	}

	.tiles.margin-reset{
		 margin-left: 0px;
	}

		/** Profile Page **/
	.user-profile-pic{
		text-align:center;
	}
	.user-mini-description h3,.user-mini-description h5{
		text-align:center;
	}
	/** email **/
	.email-body{
		padding:8px !important
	}

	/** Login Page **/
	.login-container{
		padding:0 10px;
	}

	.table td.small-cell, .table th.small-cell{
		width: 42px;
	}

	.error-wrapper{
		margin-bottom:0px;
		min-height:624px;
		height:624px;
	}

	.widget-item.narrow-margin	{
		margin-right:auto;
	}

	.page-content.condensed{
		margin-left: 0px !important;
	}
	#editModel .sub-sidebar {
		left: 0px !important;
		width: 250px;
	}
	.action-footer {
		left: 0px !important;
	}
	.scrollup {
		display:none;
	}
    body.boxed-layout .header{
        width: 100%;
        padding: 0 !important
    }
    body.boxed-layout .container{
        padding: 0;
        width: 100%;
    }
  #secondary-menu {
    display: none;
  }
  #editDetails {
    padding: 0 15px !important;
		left: 0 !important;
		width: 100%;
  }
  #show-new-stop-dialog {
    display: none
  }
  .reorder-stops-buttons {
    display: none;
  }
  .action-footer-divider {
    display: none;
	}
	.horizontal-scroll-flex {
		overflow-y: hidden;
		overflow-x: auto;
		display: flex;
	}
  #toggle-display-stops {
    display: unset;
	}
	#select-a-user {
		width: 100%;
	}
	#add-user-to-route {
		width: 100%;
		padding-left: 0;
	}
	#export-csv {
		display: none;
	}
	#tickets-datepicker {
		margin-left: 20%;
		width: 50%;
		float: left;
	}
	#tickets-create-ticket {
		width: 25%;
		float: right;
		margin-left: 5%;
	}
	#well-test-datepicker-panel {
		text-align: center;
		margin-bottom: 0;
	}
	#well-test-datepicker-panel > div > div {
		float: none !important;
	}
	#submissionsTable {
		width: 100%;
		min-height: 0;
		overflow-y: hidden;
		overflow-x: auto;
	}
	#help-section {
		width: 100%;
	}
	#events-datepicker {
		margin-left: 20%;
		width: 50%;
		float: left;
	}
	#events-create-event {
		width: 25%;
		float: right;
		margin-left: 5%;
	}
	#fb-content-pane-div {
		flex: 6;
	}
	#fb-context-pane-div {
		flex: 6;
	}
	.collapsed {
		display: none !important;
	}
	#navbar-left {
		display: none;
	}
	#navbar-inner {
		background-color: #21262e !important;
	}
	#nav-logout-icon {
		display: none;
	}
	#profile-options {
		color: #fefefe;
	}
	#profile-options:hover, #profile-options:focus {
		background-color: #21262e;
		color: #fefefe;
	}
	.header-seperation {
		width: unset !important;
	}
	.modal {
		padding-top: 100px;
	}
}

@media (max-width: 991px) {
	.text-align-unset {
		text-align: unset !important;
	}
}

@media (max-width: 767px) {
	.grid.simple .grid-body {
		margin-bottom: 50px !important;
	}
	#events-index-datepicker {
		width: 50%;
		float: left;
	}
	#activity-table-container {
		overflow-y: hidden;
	}
	#item-attributes-table-container {
		overflow-y: hidden;
	}
	#activity-panel {
		text-align: center;
	}
	#activity-datepicker {
		width: 100%;
		margin-left: 0;
	}
	#activity-datepicker > div {
		float: none !important;
	}
	#activity-buttons {
		width: 100%;
		padding-right: 0;
	}
	#activity-buttons > div {
		float: none !important;
	}
	#purchaser-name {
		padding-right: 96px;
	}
}

/*** Phones ***/
@media (max-width: 480px) {

	.page-title h3{
		width:80%;
	}
	.page-content .content {
		 padding:8px;
		 padding-top:93px;
		 overflow-x:hidden;
	}
	.page-sidebar{
		overflow-x: hidden;

	}
	.tiles.margin-reset{
		 margin-left: 0px;
	}
	.column-seperation > div[class*="span"]{
		border-right:none;
	}

	table th.unseen,table td.unseen{
		display:none !important;
	}
	.row-fluid{
		margin-bottom:10px;
	}
	.small {
		width: 100px !important;
	  }

	  .medium {
		width: 150px !important;
	  }

	  .large {
		width: 200px !important;
	  }

	  .huge {
		width: 246px !important;
		font-size: 24px !important;
		height: 36px !important;
		line-height: 36px !important;
		padding: 22px 8px !important;
	  }

	  select.small {
		width: 114px !important;
	  }

	  select.medium {
		width: 164px !important;
	  }

	  select.large {
		width: 214px !important;
	  }

	  .btn-cons{
		min-width:110px
	  }
	  .btn-large{
		padding: 9px 15px;
	  }

  	/* Force table to not be like tables anymore */
	.no-more-tables table,
	.no-more-tables thead,
	.no-more-tables tbody,
	.no-more-tables th,
	.no-more-tables td,
	.no-more-tables tr {
	display: block;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	.no-more-tables thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.no-more-tables tr { }
	.no-more-tables.table-bordered td {
		border-left: 1px solid #eee;
		border-bottom: 1px solid #eee;

	}
	.no-more-tables td {
		/* Behave like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		white-space: normal;
		text-align:left;
	}

	.no-more-tables td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
	}

	/*
	Label the data
	*/
	.no-more-tables td:before { content: attr(data-title); }
	.no-more-tables .text-right,.no-more-tables .text-center{
		text-align:left !important
	}


	.table-flip-scroll .cf:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
	.table-flip-scroll * html .cf { zoom: 1; }
	.table-flip-scroll *:first-child+html .cf { zoom: 1; }
	.table-flip-scroll table { width: 100%; border-collapse: collapse; border-spacing: 0; }
	 .table-flip-scroll th{ width:auto !important;border-radius:0px !important}
	.table-flip-scroll th,
	.table-flip-scroll td { margin: 0; vertical-align: top; }
	.table-flip-scroll th { text-align: left; }
	.table-flip-scroll table { display: block; position: relative; width: 100%; }
	.table-flip-scroll thead { display: block; float: left; }
	.table-flip-scroll tbody { display: block; width: auto; position: relative; overflow-x: auto; white-space: nowrap; }
	.table-flip-scroll thead tr { display: block; }
	.table-flip-scroll th { display: block;  }
	.table-flip-scroll tbody tr { display: inline-block; vertical-align: top; }
	.table-flip-scroll td { display: block; min-height: 1.25em; text-align: left; }


	/* sort out borders */

	.table-flip-scroll th { border-bottom: 0; border-left: 0; }
	.table-flip-scroll td { border-left: 0; border-right: 0; border-bottom: 0; border-radius:0px !important }
	.table-flip-scroll tbody tr { border-left: 1px solid #babcbf; }
	.table-flip-scroll th:last-child,
	.table-flip-scroll td:last-child {  }

  	/** Profile Page **/
	.user-profile-pic{
		text-align:center;
	}
	.user-mini-description h3,.user-mini-description h5{
		text-align:center;
	}

	/** email **/
	.email-body{
		padding:8px !important
	}
	/** lockscreen **/
	.lockscreen-wrapper .profile-wrapper{
		margin-bottom:8px;
	}

	.image-responsive-width{
		width:auto;
	}

	.xs-image-responsive-width{
		width:100%;
	}
	.scrollup{
		right:0px;
		bottom:20px;
	}
	#tickets-panel {
		text-align: center;
	}
	#tickets-datepicker {
		margin-bottom: 5px;
		margin-left: 0;
		width: 100%;
	}
	#tickets-datepicker > div {
		float: none !important;
	}
	#tickets-create-ticket {
		width: 100%;
		margin-left: 0;
	}
	#tickets-create-ticket > div {
		float: none !important;
	}
	#events-panel {
		text-align: center;
	}
	#events-datepicker {
		margin-bottom: 5px;
		margin-left: 0;
		width: 100%;
	}
	#events-datepicker > div {
		float: none !important;
	}
	#events-create-event {
		width: 100%;
		margin-left: 0;
	}
	#events-create-event > div {
		float: none !important;
	}
	#create-submission {
		float: none !important;
	}
	#stop-details-div {
		display: inline-block;
	}
	#stop-details-form {
		width: 100%;
	}
	#fb-content-pane-div {
		flex: 3;
	}
	#fb-context-pane-div {
		flex: 9;
	}
	#events-index-datepicker {
		width: 100%;
		float: none;
	}
	#enter-new-event {
		text-align: left !important;
		padding-top: 10px;
	}
	#attributeTypesTable > div > div > div{ /* Kind of a hack but the only way to fix the pesky .wthider on mobile */
		width: 0 !important;
	}
	#nav-username-dropdown > li {
		font-size: unset !important;
	}
	#mobile-menu-toggle-wrapper {
		margin-left: 5px;
		margin-right: 0 !important;
	}
	#header-logo {
		padding-right: 0;
	}
	#nav-username-dropdown {
		margin-left: 0;
	}
}

@media (max-width: 340px) {

	#nav-username-dropdown > li {
		font-size: 12px !important;
	}

}

@media (max-width: 320px) {

	.header .nav > li.dropdown .dropdown-toggle {
	  padding-left: 8px !important;
	  padding-right: 8px !important;
	}

}


/*** Retina Display Images **/
@media only screen and (-webkit-min-device-pixel-ratio: 2.0),
       only screen and (min--moz-device-pixel-ratio: 2.0),
       only screen and (-o-min-device-pixel-ratio: 200/100),
       only screen and (min-device-pixel-ratio: 2.0) {
		.grid.simple .grid-title .tools a{
  			background: url('../img/icon/portlet-tray-2x.png');
			background-size: 199px 57px;
		}
		.tiles .controller a{
			position:relative;
			background: url('../img/icon/portlet-tray-2x.png');
			background-size: 199px 57px;
		}
		.widget-item .controller a{
			position:relative;
			background: url('../img/icon/portlet-tray-2x.png');
			background-size: 199px 57px;
		}

		.iconset{
		background: url('../img/icon/top-trayx2.png');
		background-size: 394px 29px;
		}

		.status-icon{
		background: url('../img/icon/status2x.png');
		background-size: 79px 16px;

		}

		.scrollup{
			background: url('../img/pullup2x.png');
			background-size: 57px 27px;
		}

		.alert .close{
			background: url("../img/icon/noti-cross-2x.png") no-repeat scroll 0 0 transparent;
			background-position: -9px -10px;
			width: 10px; height: 9px;
			position: relative;
			opacity: 0.8;
			background-size: 114px 29px;
		}
		.checkbox label::after {
			top:1.5px;
		}
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi)  {
  .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice .select2-arrow b {
      background-image: none;
      background-repeat: no-repeat !important;
      background-size: none !important;
  }
  .select2-search input {
      background-position: none !important;
  }
}

@media (max-width: 500px){
	#Parks.grid .mix{
		width: 100%;
		padding-top: 53%;
	}

	.drop_down{
		display: none;
	}
}

@media (max-width: 1000px){
	#Parks.list .meta{
		width: 150px;
	}


@media (max-width: 840px){
	#Parks.list .meta.region,
	#Parks.list .meta.rec{
		display: none;
	}
}

@media (max-width: 540px){
	#Parks.list .meta.area{
		display: none;
	}
}
