div.hidden {
	display: none;
}

div.inline-block {
	display: inline-block;
	text-align: left;
}
div.scroll-block {
	max-width: 100vw;
  overflow: auto;
}
div.ui-content {
	text-align: center;
}
#table_devices thead tr {
	border-bottom: 1px solid #666666;
}
#table_devices tbody tr:nth-child(odd) {
  background: #c5e1f7;
}
#table_devices tbody tr:nth-child(even) {
  background: #d5f1f7;
}
#table_devices tbody tr.old:nth-child(odd) {
  background: #bbbbbb;
}
#table_devices tbody tr.old:nth-child(even) {
  background: #cccccc;
}

table.calendar {
	background: #ffffff;
	border-collapse: collapse;
	border-top: 1px solid #999999;
	border-left: 1px solid #999999;
}
table.calendar th {
	background: #efefef;
	border-right: 1px solid #999999;
	border-bottom: 1px solid #999999;
	text-align: center;
}
table.calendar td {
  border-right: 1px solid #999999;
  border-bottom: 1px solid #999999;
  height: 1em;
  width: 3em;
}
table.calendar td.hours {
	background: #efefef;
  text-align: center;
  vertical-align: top;
}
table.calendar td.hours sup {
  font-size: 0.6em;
}
div.allowblock {
	position: absolute;
	display: none;
	border: 2px solid #666666;
	border-radius: 5px;
	font-size: 0.6em;
}
div.shadowblock {
  position: absolute;
  display: none;
  border: 2px solid #cccccc;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 1px;
  font-size: 0.6em;
}
div.allowblock a {
	display: block;
	height: 100%;
	width: 100%;
	text-decoration: none;
	color: inherit;
	line-height: 100%;
	vertical-align: middle;
	text-align: center;
	position: relative;
}
div.allowblock a span {
	margin: 0;
	position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: inline-block;
  transform: translate(0, -50%); 
}
table.calendar tbody tr td a {
	display: block;
  height: 100%;
  width: 100%;
}
#table_devices {
	border: 1px solid #666666;
}
.ui-header .ui-title {
	margin: 0 20%;
}
.ui-header .ui-title img {
	margin: -0.5em 0em;
}

.ui-header .pphidden {
	display: none;
}
.ppapplying {
	position: absolute;
}
.ppapplying img {
	height: 12.5px;
}

p.error {
	font-weight: bold;
	color: #ff6666;
}
p.message {
  font-weight: bold;
}

#blockfromlabel,
#blocktolabel,
#allowfromlabel,
#allowtolabel {
	display: none;
}



/* Shrink things for small screens */
@media screen and (max-width: 530px) {
  /* properties for smaller screens */
  #table_devices {
    font-size: 0.7em;
  }
  div.allowblock {
    font-size: 0.6em;
  }
  .ui-content {
    padding: 0.2em;
  }
}
@media screen and (max-width: 400px) {
  /* properties for smaller screens */
  #table_devices {
    font-size: 0.5em;
  }
  div.allowblock {
    font-size: 0.4em;
  }
  table.calendar th {
   font-size: 0.7em;
  }
  div.ui-content {
    font-size: 0.8em;
  }
}
@media screen and (max-width: 360px) {
  /* properties for smaller screens */
  #table_devices {
    width: 340px; 
    font-size: 0.8em;
  }
  div.allowblock {
    font-size: 0.6em;
  }
}
@media screen and (max-width: 320px) {
  /* properties for smaller screens */
  #table_devices {
    width: 300px; 
    font-size: 0.7em;
  }
