/** RESPONSIVE CLASSES **/
.admin-table-actions-opener { display: none; color: #888; }

@media only screen and (max-width: 380px) {
	#header {
		margin: 0 !important;
	}
	#header_logo_customer img {
		width: 180px;
	}
}

@media only screen and (max-width: 450px) {
	.cart-contents-wrapper {
		overflow-x: auto;
	}

	.cart-contents {
		min-width: 475px;
	}

	.cart-contents input {
		width: 30px;
	}
	td {
		padding: 10px 0;
	}
}

@media only screen and (max-width: 600px) {
	h2 {
		font-size: 22px;
	}
	th {
		font-size: 16px;
	}
	td {
		font-size: 14px;
	}
	.inline-1-2 {
		width: 100%;
	}
}

@media only screen and (max-width: 800px) {
	.inline-1-2 {
		width: 100%;
	}
}

@media only screen and (max-width: 1024px) {
	.admin-table table th,
	.admin-table table td,
	.hide-on-mobile {
		display: none;
	}

	th.show-on-mobile,
	td.show-on-mobile,
	.admin-table-actions {
		display: table-cell !important
	}

	.admin-table-actions {
		width: 32px !important;
	}

	.admin-table-actions-opener {
		display: none;
	}

	.admin-table-actions-menu {
		display: inline-block;
	}

	/* Tables */
	table th:hover, table td:hover {
		overflow: visible;
		word-wrap: break-word;
	}

	.admin-table-actions-opener {
		display: inline-block;
	}

	.admin-table-actions-menu {
		display: none;
	}

	.admin-table-actions-menu.is-menu-visible {
		display: inline-block;
		position: absolute;
		height: 35px;
		right: 45px;
		line-height: 35px;
		padding-left: 15px;
		margin-top: -35px;
	}

	/* Vertical table */

	.vertical-table-mobile th {
		display: none;
	}

	.vertical-table-mobile td {
		display: inline-block !important;
		width: calc(50% - 5px);
		height: auto;
		padding: 0;
		background: #fff !important;
		margin-bottom: 20px;
	}

	.vertical-table-mobile td:nth-child(odd) {
		margin-right: 5px;
	}

	.vertical-table-mobile td:nth-child(even) {
		margin-left: 5px;
	}

	.vertical-table-mobile td:before {
		display: block;
		content: attr(data-title);
		font-weight: 700;
		margin-bottom: 3px;
	}

	.vertical-table-mobile .admin-table-actions {
		min-width: auto;
		width: 100% !important;
		text-align: left;
		margin: 0 0 10px 0;
	}

	.vertical-table-mobile .admin-table-actions:before {
		display: none;
	}

	.vertical-table-mobile .button.t-danger.dynamic-delete {
		width: 125px;
		background: #e74c3c;
		color: #fff;
	}

	.select-button + select {
		min-width: 0 !important;
	}

	.hide-mobile {
		display: none !important;
	}

	html, body {
		height: auto;
	}

	body {
		background: #eee;
	}

	h2 {
		margin: 20px 0 10px 0;
	}

	/* Startpage */
	span.heading > select, div.heading > select {
		height: 30px;
		width: 150px;
		margin-top: -12px;
	}

	/* Header */

	#header {
		height: 25vw;
		margin: 60px 0 0 0;
		z-index: 1;
	}

	#header_logo {
		display: none;
	}

	#header_logo_customer {
		position: fixed;
		inset: 0 auto auto 0;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 60px;
		background: #fff;
		text-align: center;
		padding: 0;
		box-shadow: 0 10px 25px rgba(0,0,0,.05);
	}

	#header_logo_customer img {
		max-height: 40px;
	}

	/* Menu */

	#menu_open {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		padding: 15px;
		transition: .25s;
		z-index: 3;
	}

	#menu_open .menu-opener-label {
		display: block;
		color: #000;
		font-size: 9px;
		font-weight: bold;
		text-transform: uppercase;
		margin-top: 3px;
	}

	.open-menu {
		display: block;
		width: 24px;
		height: 18px;
		margin: 0 auto;
	}

	.open-menu .omnu-line {
		position: relative;
		display: block;
		background: #000;
		height: 3px;
		border-radius: 8px;
		margin: 0 0 4px;
		transition: .25s;
	}

	.active .open-menu #omnu_line2 {
		opacity: 0;
	}

	.active .open-menu #omnu_line1 {
		top: 7px;
		margin: 0;
		transform: rotate(45deg);
	}

	.active .open-menu #omnu_line3 {
		top: -3px;
		margin: 0;
		transform: rotate(-45deg);
	}

	#menu,
	.compact #menu {
		display: block;
		position: fixed;
		z-index: 1 !important;
		top: 0;
		left: -100%;
		bottom: 0 !important;
		margin: 0;
		width: 100%;
		background: #fff !important;
		text-align: left;
		opacity: 0;
		overflow: auto;
		transition: .25s;
		pointer-events: auto;
	}

	.active #menu {
		opacity: 1;
		left: 0;
	}

	#menu ul {
		margin-top: 60px;
	}

	#menu ul li {
		display: block;
		height: auto;
		text-align: left;
	}

	#menu ul li:after {
		display: none;
	}

	#menu ul li a {
		display: block;
		color: #000;
		padding: 12.5px 25px;
	}

	/**
	 * Content
	 */
	#wrapper {
		width: 100% !important;
	}

	#content, .section {
		overflow: visible;
		position: static;
		padding: 10px;
		margin-bottom: 40px;
	}

	#content .content-action-buttons {
		position: static;
		margin: 10px 0;
	}

	#close_sidepanel {
		display: none;
	}

	.admin-table {
		padding: 1px 10px 1px 10px;
		margin-bottom: 10px;
	}

	.product-thumb {
		width: calc(100% - 30px);
		margin: 7.5px 15px !important;
	}

	/* Status messages */
	.page-messages {
		font-size: 16px;
		text-align: center;
		padding: 10px;
		margin: 0 0 10px 0;
	}

	/**
	* Tabs
	*/
	.tab-list {
		letter-spacing: -0.31em;
	}

	.tab-list li {
		display: inline-block;
		width: 50%;
		float: none;
		letter-spacing: initial;
	}

	.tab-list li a:first-of-type {
		display: block;
		margin: 0;
		font-size: 13px;
		line-height: 1;
		color: #454850;
		text-align: center;
		background: #e0e0e0;
		transition: border-color ease 0.2s;
		line-height: 45px;
		padding: 0 15px;
	}

	.tab-list li a.current {
		border-bottom-color: #e0e0e0;
		background: #fff;
		font-size: 13px;
	}

	.tab-list li a:before {
		content: attr(title) " ";
	}

	.admin-table-actions {
		min-width: 100px;
	}

	/* Admin tables */
	.admin-form {
		padding: 10px 10px 1px 10px;
		margin-bottom: 10px !important;
	}

	#startpage-table {
		padding-top: 10px;
	}

	.admin-form-header {
		height: 45px;
		text-align: center;
		padding: 0;
		margin-bottom: 10px;
	}

	.admin-form-header h1 {
		font-size: 16px;
		line-height: 45px;
		width: 100%;
	}

	.admin-table-filtering {
		display: block;
		padding: 0 0 10px 0;
	}

	.admin-table-filtering > span {
		display: block;
		width: 100%;
		flex: none;
		margin-top: 15px;
		padding: 0;
	}

	.admin-table-filtering button {
		width: 100%;
		margin: 10px 0 0 0;
	}

	.table-r-block tr,
	.table-r-block td {
		display: block;
		width: 100%;
	}

	.admin-table .admin-table-pagination {
		margin: 10px 0;
	}

	.admin-table-buttons {
		display: table;
		width: 100%;
		position: fixed;
		background-color: #fff;
		bottom: 0;
		left: 0;
		right: 0;
		margin: 0;
		z-index: 2;
		font-size: 0;
		border-top: 1px solid #ccc;
	}

	.admin-table-buttons .button {
		display: table-cell;
		min-width: 100%;
		margin: 0;
		border-radius: 0;
	}

	.button-group-container .button {
		display: inline-block;
		min-width: auto;
	}

	.button-group-container .button-group,
	.button-group-container .button.t-danger {
		width: 50%;
	}

	.button-group-container .button.t-success {
		width: calc(50% - 30px);
		border-radius: 0;
	}

	.button-group-container .button.button-dropdown {
		border-radius: 0;
	}

	.admin-form.tab > div, .admin-form.tab > fieldset {
		padding: 0px;
	}

	.admin-form.tab {
		margin-bottom: 0px;
	}

	/* Files */
	.file-thumb {
		display: block;
		width: 100%;
	}

	/* Dialog */
	.dialog {
		max-height: calc(100% - 40px);
		width: calc(100% - 40px) !important;
	}

	.dialog-content {
		padding: 0 15px 35px 15px;
	}

	.dialog-content header {
		margin: 0 -15px;
	}

	.dialog-content > header h1 {
		padding: 15px;
	}

	.dialog-content td {
		white-space: nowrap;
	}

	.dialog-buttons {
		margin: 20px 0 20px 0;
	}

	.dialog-buttons * {
		margin: 0;
	}

	.dialog .button.t-success,
	.dialog .button.t-danger {
		position: fixed;
		width: 50%;
		bottom: 0;
		border-top: 1px solid #ccc;
		border-radius: 0;
	}

	.dialog .button.t-success {
		left: 0;
	}

	.dialog .button.t-danger {
		right: 0;
	}

	/* Tables */

	.admin-table table {
		margin-bottom: 10px;
	}

	.scrollable-table table {
		table-layout: auto;
	}

	.scrollable-table.has-scroll {
		position: relative;
		overflow: hidden; /* Clips the shadow created with the pseudo-element in the next rule. Not necessary for the actual scrolling. */
	}

	.scrollable-table.has-scroll:after {
		content: '';
		position: absolute;
		top: 0;
		left: 100%;
		width: 50px;
		height: 100%;
		border-radius: 10px 0 0 10px / 50% 0 0 50%;
		box-shadow: -5px 0 10px rgba(0, 0, 0, 0.25);
	}

	/* This is the element whose content will be scrolled if necessary */
	.scrollable-table.has-scroll > div {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.scrollable-table > div::-webkit-scrollbar {
		height: 12px;
	}

	.scrollable-table > div::-webkit-scrollbar-track {
		box-shadow: 0 0 2px rgba(0, 0, 0, 0.15) inset;
		background: #f0f0f0;
	}

	.scrollable-table > div::-webkit-scrollbar-thumb {
		border-radius: 6px;
		background: #ccc;
	}

	/* Grids */
	.inline-left > * {
		margin-right: 0;
	}

	.inline-right > * {
		margin-left: 0;
	}

	.inline-r-block {
		display: block;
		width: auto;
	}

	.grid-gutter {
		margin-left: -5px;
		margin-right: -5px;
	}

	.grid-gutter > [class*='inline-'] {
		margin: 0 5px;
	}

	.grid-gutter > .inline-r-1-2 {
		width: calc(50% - 10px) !important;
	}

	.inline-right {
		margin-left: 0;
	}

	.inline-left.inline-r-block > *, .inline-right.inline-r-block > * {
		margin-left: 0;
		margin-right: 0;
	}

	.grid-gutter .inline-r-block, .grid-gutter-wide .inline-r-block {
		width: auto;
	}

	/* Forms */
	.form-aligned .form-group label, .form-aligned .form-group .faux-label, .form-aligned .form-group .label-relative input {
		display: block;
		width: auto;
	}

	.form-aligned .form-group input, .form-aligned .form-group textarea, .form-aligned .form-group .faux-input {
		width: 100%;
	}

	/*.form-aligned .form-group input[type=radio], .form-aligned .form-group input[type=checkbox] {
		margin-top: 10px;
	}

	.form-aligned .form-group select {
		display: inline-block;
		max-width: 145px;
	}*/
	/* Event */
	.event-item:before, .event-item:after {
		display: none;
	}

	/* Signature */
	.digital-signature-wrapper {
		padding-top: 20px;
	}

	/* JQ Dropdown */
	#jq-dropdown-save {
		left: 0 !important;
		top: -35px !important;
	}

	/* Misc */
	.stats-row {
		height: auto;
		margin-bottom: 40px;
	}

	.values > .inline-1-3 {
		margin-top: 20px;
		width: 100%;
	}

	.values .unit {
		margin-top: 0px;
	}

	.stats-row .values .inline-1-3:not(:last-child) {
		border-bottom: 1px solid #e0e0e0;
	}

	/* Startpage */

	.startpage-puff {
		height: auto;
		margin-bottom: 10px !important;
		padding: 15px 0;
	}

	.startpage-puff-content {
		position: static;
		top: auto;
		transform: none;
		text-align: center;
	}

	.startpage-icon-container {
		width: 40px;
		height: 40px;
		line-height: 38px;
		margin: 0 0 10px 0;
	}

	.startpage-icon-container i {
		font-size: 20px;
	}

	.startpage-content-text {
		display: block;
	}

	.startpage-content-text h2 {
		font-size: 24px;
		text-align: center;
	}

	.startpage-content-text p {
		max-width: 90px;
		margin: 0 auto;
	}
}