input,
select,
textarea,
button {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  outline: none !important;
}
input,
select,
textarea {
  display: inline-block;
  color: rgba(0, 0, 0, 0.87);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 300px;
  max-width: 100%;
}
input[disabled],
select[disabled],
textarea[disabled] {
  color: #666;
  background-color: #eee;
  cursor: not-allowed;
}
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #e44d56;
}
input,
select {
  height: 30px;
  line-height: 30px;
  padding: 0 8px;
}
input[type=checkbox],
input[type=radio] {
  width: auto;
  height: auto;
  cursor: pointer;
  position: relative;
  top: 2px;
}
select {
  cursor: pointer;
}
textarea {
  padding: 6px 10px;
  height: 120px;
}
.fake-input {
  display: inline-block;
  height: 30px;
  line-height: 30px;
}
.fake-input a {
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
}
.fake-input a .material-icons {
  position: relative;
  top: -1px;
  line-height: 30px;
  vertical-align: middle;
}
.fake-input.foto {
  height: auto;
}
.fake-input.foto a {
  position: relative;
  margin-right: 5px;
  margin-top: 5px;
}
.fake-input.foto a img {
  display: block;
  width: auto;
  height: 160px;
  min-width: 90px;
  background-color: #eeeeee;
  border: none !important;
}
.fake-input.foto a:hover:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: black;
  opacity: 0.2;
}
form.login.editor {
  width: 450px;
  max-width: 100%;
  margin: 20px auto;
}
form.login.editor > div > label {
  width: 150px;
}
form.login.editor .buttons > p {
  margin-left: 150px;
}
@media screen and (max-width: 520px) {
  form.login.editor .buttons > p {
    margin-left: 0;
  }
}
form.editor,
.viewer {
  margin: 15px 0;
}
form.editor > div,
.viewer > div {
  margin: 5px 0;
  clear: both;
}
form.editor > div:after,
.viewer > div:after {
  /* Clearfix */
  content: "";
  display: table;
  clear: both;
}
form.editor > div > label,
.viewer > div > label {
  display: block;
  float: left;
  width: 300px;
  padding-right: 15px;
  vertical-align: top;
  padding-top: 6px;
  text-align: right;
  color: #999;
  font-weight: bold;
}
@media screen and (max-width: 1000px) {
  form.editor > div > label,
  .viewer > div > label {
    width: 150px;
    text-align: left;
  }
}
form.editor > div > p,
.viewer > div > p,
form.editor > div > div.p,
.viewer > div > div.p {
  margin: 0;
  vertical-align: top;
  overflow: hidden;
}
form.editor > div > p.label-align,
.viewer > div > p.label-align,
form.editor > div > div.p.label-align,
.viewer > div > div.p.label-align {
  padding-top: 6px;
}
form.editor > div > p.title,
.viewer > div > p.title,
form.editor > div > div.p.title,
.viewer > div > div.p.title {
  font-weight: bold;
  padding-top: 15px;
  padding-bottom: 5px;
}
form.editor .tip,
.viewer .tip,
form.editor .input_error,
.viewer .input_error {
  color: rgba(0, 0, 0, 0.54);
  font-size: 13px;
}
form.editor .input_error,
.viewer .input_error {
  color: #d32f2f;
  font-weight: 500;
}
form.editor .buttons > p,
.viewer .buttons > p {
  display: block;
  margin-left: 300px;
  margin-top: 15px;
}
@media screen and (max-width: 1000px) {
  form.editor .buttons > p,
  .viewer .buttons > p {
    margin-left: 150px;
  }
}
@media screen and (max-width: 520px) {
  form.editor > div > label,
  .viewer > div > label {
    float: none;
    width: 100%;
    height: auto;
    line-height: 130%;
    margin-top: 7px;
    margin-bottom: 3px;
  }
  form.editor .buttons > p,
  .viewer .buttons > p {
    margin-left: 0;
  }
}
form.editor .foto a,
.viewer .foto a {
  position: relative;
  display: inline-block;
  vertical-align: top;
}
form.editor .foto .foto-missing,
.viewer .foto .foto-missing {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 80px;
  background-color: #dddddd;
  cursor: not-allowed;
}
form.editor .foto .foto-missing > .material-icons,
.viewer .foto .foto-missing > .material-icons {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0.3;
  font-size: 30px;
  margin-left: -15px;
  margin-top: -15px;
}
form.editor .foto a .foto-delete,
.viewer .foto a .foto-delete,
form.editor .foto .foto-missing .foto-delete,
.viewer .foto .foto-missing .foto-delete {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.75;
  text-align: center;
  cursor: pointer;
  padding: 2px 3px;
}
form.editor .foto a .foto-delete:hover,
.viewer .foto a .foto-delete:hover,
form.editor .foto .foto-missing .foto-delete:hover,
.viewer .foto .foto-missing .foto-delete:hover {
  opacity: 1;
}
form.editor .foto a .foto-delete .material-icons,
.viewer .foto a .foto-delete .material-icons,
form.editor .foto .foto-missing .foto-delete .material-icons,
.viewer .foto .foto-missing .foto-delete .material-icons {
  font-size: 25px;
  line-height: 27px;
  color: white;
  text-shadow: 1px 1px 2px black;
}
form.editor .foto a:hover .foto-delete,
.viewer .foto a:hover .foto-delete,
form.editor .foto .foto-missing:hover .foto-delete,
.viewer .foto .foto-missing:hover .foto-delete {
  display: block;
}
.viewer > div.highlight {
  background-color: #e6f2e5;
  color: #1f7917;
  padding-top: 2px;
  padding-bottom: 8px;
  margin-top: 10px;
}
.viewer > div.highlight > label {
  color: #99cb93;
}
.viewer > div.highlight.highlight-danger {
  background-color: #fae0e2;
  color: #ca0007;
}
.viewer > div.highlight.highlight-danger > label {
  color: #ec8086;
}
.viewer > div > label.tall {
  padding-top: 12px;
}
.viewer > div > p {
  padding-top: 6px;
}
.viewer .verifica-conformita {
  display: inline-block;
  position: relative;
  padding-left: 20px;
  vertical-align: middle;
}
.viewer .verifica-conformita .verifica-conformita-color {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 7px;
}
table.days {
  margin: 0 !important;
}
button,
.button {
  display: inline-block;
  vertical-align: middle;
  height: 35px;
  line-height: 35px;
  border: none;
  border-radius: 3px;
  background-color: #d5000b;
  color: white;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 20px;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
button:hover,
.button:hover,
button:focus,
.button:focus {
  background-color: #df2631;
  color: white;
}
button .material-icons,
.button .material-icons {
  vertical-align: middle;
  position: relative;
  top: -1px;
  left: -5px;
  margin-right: -2px;
}
button.secondary,
.button.secondary {
  color: black;
  background-color: #c2e0be;
  font-weight: 500;
  font-size: 12.75px;
  height: 32px;
  line-height: 32px;
  padding: 0 15px;
}
button.secondary:hover,
.button.secondary:hover,
button.secondary:focus,
.button.secondary:focus {
  background-color: #99cb93;
  color: black;
}
button.secondary .material-icons,
.button.secondary .material-icons {
  font-size: 23px;
  line-height: 22px;
}
button[disabled],
.button[disabled],
button.disabled,
.button.disabled {
  background-color: #ddd !important;
  cursor: not-allowed;
}
.input-widget-wrapper {
  display: block;
  margin-bottom: 5px;
}
.input-widget-wrapper > span {
  display: block;
}
.input-widget-wrapper > span > input {
  width: 420px;
  vertical-align: middle;
  margin-bottom: 5px;
  margin-right: 5px;
}
.input-widget-wrapper > span > .uploader-input-widget {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 5px;
  margin-right: 10px;
  width: 372px;
  height: auto;
  line-height: 28px;
  box-sizing: border-box;
}
.input-widget-wrapper > span > .uploader-input-widget a,
.input-widget-wrapper > span > .uploader-input-widget a img {
  display: block;
}
.input-widget-wrapper > span > .uploader-input-widget.image-uploader-input-widget-with-image {
  width: auto;
  min-width: 100px;
  /* For the button to be big enough */
  padding-bottom: 5px;
}
.input-widget-wrapper > span > .uploader-input-widget .link {
  display: inline-block;
  color: #329626;
  font-size: 14px;
  font-weight: bold;
  margin-right: 10px;
  text-decoration: underline;
  cursor: pointer;
}
.input-widget-wrapper > span > .uploader-input-widget .link:hover {
  color: #13680d;
}
.input-widget-wrapper > span > .uploader-input-widget button {
  position: absolute;
  height: 27px;
  top: auto;
  bottom: 0;
  right: auto;
  left: 0;
}
.input-widget-wrapper > span > .material-icons {
  vertical-align: middle;
  position: relative;
  top: -3px;
  color: black;
  cursor: pointer;
  opacity: 0.5;
}
.input-widget-wrapper > span > .material-icons:hover {
  opacity: 1;
}
.input-widget-wrapper.foto > span > .material-icons {
  vertical-align: top;
  top: 3px;
}
.note-modal > .title {
  margin-top: 0;
  font-weight: bold;
}
.note-modal > ul {
  margin-left: -8px;
  margin-right: -8px;
}
.note-modal > ul > li {
  padding: 5px 8px;
  cursor: pointer;
}
.note-modal > ul > li:first-child {
  color: rgba(0, 0, 0, 0.54);
}
.note-modal > ul > li:hover {
  text-decoration: underline;
  background-color: #eeeeee;
}
