@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	src: local('Roboto'), local('Roboto-Regular'), url(Roboto-Regular.ttf);
}

@font-face {
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 400;
	src: local('Roboto Italic'), local('Roboto-Italic'), url(Roboto-Italic.ttf);
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	src: local('Roboto Medium'), local('Roboto-Medium'), url(Roboto-Medium.ttf);
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	src: local('Roboto Bold'), local('Roboto-Bold'), url(Roboto-Bold.ttf);
}

body, html {
	font-family: Roboto, Arial, Helvetica, sans-serif;
	background-color: #eeeeee;
	margin: 0;
	padding: 0;
}

.modal {
	width: 100%;
	max-width: 500px;
	margin: 16px auto;
	padding: 16px;
	background-color: white;
	border-radius: 2px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}

.modal p {
	color: rgba(0, 0, 0, 0.57);
}

.modal h1 {
	margin: 0;
	text-align: center;
	font-size: 3em;
}

.error {
	color: #d50000;
}

.buttons {
	display: flex;
}

.buttons>* {
	flex-grow: 1;
	width: 100px;
}

.buttons>* button {
	width: 100%;
}

.regular-layout {
	width: 100%;
	max-width: 1000px;
	margin: 16px auto;
	padding: 16px;
	background-color: white;
}

.gridlist-item {
	position: relative;
	background-color: #263238;
	cursor: pointer;
	transition: transform 0.1s ease-in;
}

.gridlist-item:hover {
	transform: scale(1.05, 1.05);
}

.gridlist-item:before {
	content: "";
	display: block;
	padding-top: 100%;
}

.gridlist-item>.gridlist-item__preview {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gridlist-item>.gridlist-item__text {
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 16px;
	width: 100%;
	box-sizing: border-box;
	color: white;
	font-weight: bold;
	line-height: 16px;
	height: 48px;
	background-color: #455a64;
}

.bigtext {
	position: absolute;
	margin: auto;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	text-align: center;
	height: 3em;
	line-height: 3em;
	font-size: 3em;
	color: rgba(255, 255, 255, 0.7);
}

.listadd #fieldsArray input, .listadd #fieldsArray select {
	width: 100%;
}

.tooltip-title {
	font-size: 1.5em;
	line-height: 2em;
	font-weight: bold;
}

.listadd table {
	width: 100%;
	margin: 0 0 16px 0;
}

.listadd table td {
	padding: 4px;
}

.listadd td.min, .listadd td.max {
	width: 100px;
}

.list-view {
	padding: 0;
	max-width: 1600px;
}

.list-view>table, .listedit table, .admin table {
	width: 100%;
}

.list-view>table>tfoot>tr>td, .list-view>table>tfoot>tr>td>button {
	border-bottom: none;
}

.list-view>.actions {
	padding: 16px;
}

dialog.listview-dialog {
	width: 100%;
	max-width: 500px;
}

dialog.listview-dialog .row {
	display: flex;
	width: 100%;
}

dialog.listview-dialog .row>* {
	width: 100px;
	flex-grow: 1;
	margin: 0 8px;
}

dialog.listview-dialog .row>*:first-child {
	margin-left: 0;
}

dialog.listview-dialog .row>*:last-child {
	margin-right: 0;
}

.inputHelper {
	font-size: 12px;
	color: #3f51b5;
	margin: 0;
	padding: 0;
	width: 100%;
}

.offline {
	font-style: italic;
}

dialog.listshare-dialog>div>input, dialog.listshare-dialog>div>select, dialog.listshare-dialog>div>label, dialog.edituser-dialog>div>input, dialog.edituser-dialog>div>select, dialog.edituser-dialog>div>label, dialog.edituser-dialog>div>div {
	width: 100%;
	display: block;
}

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

.admin table .actions button {
	width: 100%;
}

.edituser-dialog {
	width: 400px;
}

.companyedit>a {
	margin-right: 8px;
}

.list-history {
	padding: 0;
	max-width: 1600px;
	overflow-x: auto;
}

.list-history table {
	width: 100%;
}

.hidden {
	display: none;
}

.editform {
	width: 100%;
}

.editform .cell {
	margin: 0;
	padding: 8px;
}

@media screen and (min-width: 600px) {
	.userinfo {
		float: left;
		width: 40%;
	}
	.useractions {
		float: left;
		width: 200px;
	}
}

@media screen and (max-width: 600px) {
	.userinfo, .useractions {
		width: 100%;
		min-height: 50px;
		display: block;
		float: none;
	}
}

.useractions paper-button {
	display: block;
	width: 100%;
	text-align: center;
}

.userinfo td, .userinfo th {
	padding: 4px;
}

.userinfo th {
	text-align: right;
}

.clear {
	clear: both;
}

paper-button {
	text-align: center;
}

paper-button:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.downloads {
	list-style: none;
	margin: 0;
	padding: 0;
}

.downloads li {
	margin: 0;
	padding: 8px;
}

img.flag {
	width: 1.3em;
	height: 1em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	margin-right: 4px;
}

/* From tui-editor (because it doesn't leak into global scope) */
.tui-tooltip {
	position: absolute;
	background-color: #222;
	z-index: 999;
	opacity: 0.8;
	color: #fff;
	padding: 2px 5px;
	font-size: 10px;
}

.tui-tooltip .arrow {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	background-color: #222;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	position: absolute;
	top: -3px;
	left: 6px;
	z-index: -1;
}