/*
 * COPYRIGHT:
 * The ARISTOTLE-SPADA Development Team (aristotle.spada@ingv.it)
 * LICENSE:
 * GNU Lesser General Public License, Version 3
 * (https://www.gnu.org/copyleft/lesser.html)
*/

body {
  color: #000;
  font-size: 13px !important;
  line-height: 1.42857143 !important;
}

hr {
  border-color: #ddd;
  margin-bottom: 10px;
  margin-top: 10px;
}

.hr {
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 5px;
}

p {
  margin: 0 0 8px;
}

figcaption {
  font-size: 90%;
  padding: 10px;
  padding-top: 0;
}

.center {
  text-align: center;
}

.textright {
  text-align: right;
}

.justify {
  text-align: justify;
}

.nowrap {
  white-space: nowrap;
}

.bold {
  font-weight: bold;
}

.nav > li > a {
  padding: 5px 15px;
}

.form-group .col-md-offset-1 label {
  font-weight: bold;
  line-height: 30px;
  padding-top: 5px;
  width: 100%;
}

.form-group .col-md-offset-1 label input {
  font-size: 1em !important;
  font-weight: normal;
}

.btn-default,
.btn-primary,
.btn-warning {
  font-weight: bold;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background: white;
  color: #4f5151;
  border: 1px solid #4f5151;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: white !important;
  color: #cb210e !important;
  border: 1px solid #cb210e;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background: white;
  color: #a54caa;
  border: 1px solid #a54caa;
}

.btn-spada {
  float: right;
  font-size: 1.2em;
  white-space: pre-wrap;
}

.messureadhead {
  background: lightgrey;
}

.messureadbody {
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
}

#col1 .panel-body {
  text-align: center;
}

#col1 .panel-body p {
  margin: 0;
}

#pagetop_modules .panel-body {
  text-align: left;
  font-weight: bold;
}

#top_modules .box-login_box {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10000;
}

.tiki_wiki_page .wikiactions_wrapper {
  float: right;
}

.label-info {
  background-color: #ccc;
  color: #000;
}

.truereport {
  background-color: #f2dede;
}

.biggertext {
  font-size: 1.1em;
}

.smallertext {
  font-size: 0.85em;
}

.uppercase {
  text-transform: uppercase;
}

.imgborder {
  border: 2px solid #666;
  width: auto;
}

.updatesrow {
  border-bottom: 1px solid #dddddd;
  margin: 0;
  padding: 4px 0;
  text-align: justify;
}

.updatesrow span {
  color: #888888;
  font-size: 0.85em;
  padding-left: 10px;
}

/*.ui-front { z-index: 200000 !important; }*/
.panel-body {
  padding: 10px;
}

.panel-body ol,
.panel-body ul {
  padding-left: 20px;
}

.pull-left.sitelogo {
  position: absolute;
  right: 30px;
  top: -10px;
}

.pull-left.sitelogo img {
  max-width: 130px !important;
}

.sitesubtitle {
  color: #888;
}

h1.pagetitle {
  font-size: 29px;
}

.pagetitle,
.showhide_heading {
  margin-top: -5px;
  margin-bottom: 10px;
}

.h3compact {
  margin-top: 9px;
  margin-bottom: 2px;
}

.box-User\+menu .moduletitle {
  font-weight: bold;
}

#minichatchans {
  display: none;
}

#minichat.well {
  margin-bottom: 0;
  height: 10em !important;
}

.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f4f4f4;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.minichat_ts {
  font-size: 0.9em;
  color: #888;
}

.minichat_nick {
  font-weight: bold;
}

.minichatdiv {
  text-align: left;
}

#contenttabs_view_tracker_item-1 dt {
  width: 310px;
}

#contenttabs_view_tracker_item-1 dd {
  margin-bottom: 10px;
  margin-left: 325px;
}

.help {
  border: 1px dashed #cc0000;
  cursor: help;
}

.help-block {
  color: #999999;
}

.table td {
  padding: 5px !important;
}

#emergency_list.table td {
  padding: 5px 2px !important;
}

.modal-body label.control-label {
  font-weight: bold;
}

.modal-header {
  background-color: #fcfcfc;
}

.modal-title {
  font-weight: bold;
  text-align: center;
}

.badge {
  background-color: #ccc;
}

.nomarginbottom {
  margin-bottom: 0 !important;
}

.t_navbar a {
  font-size: 16px;
}

.script-output {
  line-height: 1em;
  white-space: pre-wrap;
}

.button_as_link {
  background: transparent;
  border: 0;
  color: #d9230f;
  font-weight: bold;
  padding: 0;
}

.button_as_link:hover {
  text-decoration: underline;
}

.tiki .ui-widget button:hover {
  background: #fff;
  color: #000;
}

.powered-by-firepad {
  display: none !important;
}

#tablerisk {
  margin-bottom: 0;
}

#tablerisk td {
  line-height: 1;
  padding: 0 10px !important;
}

#tablerisk input {
  margin-right: 5px;
}

#tablerisk label {
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

/*#page-data { background:white; }*/
#report hr {
  border-color: #999;
}

#report table p {
  margin: 0;
}

#report table,
.cke_editable table,
table.emrep {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 auto 15px auto;
  width: 100%;
}

#report table caption,
.cke_editable table caption,
table.emrep caption,
caption.emrep,
#report caption,
#report .caption,
.cke_editable .caption {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 4px;
  padding-top: 8px;
  font-size: 1.15em;
  color: #666;
  caption-side: top;
}

#report table th,
.cke_editable table th,
table.emrep th {
  font-size: 0.9em;
  border-bottom: 2px solid #666;
  padding: 4px 8px;
  text-align: left;
  vertical-align: bottom;
}

#report table th.orderedstyle {
  font-style: italic;
}

#report table td,
.cke_editable table td,
table.emrep td {
  background: #fafafa;
  border-bottom: 1px solid #999;
  padding: 4px 8px;
  vertical-align: top;
}

#report table.nostyle {
  border-spacing: initial;
  margin: initial;
  width: initial;
}

#report table.nostyle th {
  border-bottom: initial;
  padding: initial;
  text-align: initial;
  vertical-align: initial;
}

#report table.nostyle td {
  background: initial;
  border-bottom: initial;
  padding: initial;
  vertical-align: initial;
}

#report table#threatlevel {
  font-size: 1.15em;
  font-weight: bold;
  margin-bottom: 15px;
}

#report table#threatlevel td {
  border: 2px solid #666;
  padding: 5px 10px;
  text-transform: uppercase;
}

#report table#overallimpact,
#report table#alertlevel {
  border: 2px solid #666;
  width: 100%;
  border-spacing: initial;
  margin: initial;
}

#report table#overallimpact td,
#report table#alertlevel td {
  border: 1px solid #666;
  text-align: center;
  vertical-align: middle;
  line-height: 15px;
  background: initial;
  padding: initial;
}

#report table#overallimpact td.big,
#report table#alertlevel td.big {
  font-size: 2.5em;
  line-height: 33px;
  font-weight: bold;
  width: 24%;
  height: 33px;
}

#report table#overallimpact table,
#report table#alertlevel table {
  margin-bottom: 0;
  border-spacing: initial;
  width: initial;
}

#report table#overallimpact table td,
#report table#alertlevel table td {
  width: 13px;
  border: 0;
  font-weight: bold;
  line-height: 11px;
  background: initial;
  padding: initial;
  vertical-align: initial;
}

#report div.mhiob table#alertlevel td.big {
  font-size: 1.5em;
  line-height: 24px;
  font-weight: bold;
  width: 33%;
  height: 24px;
}

#report table#reportinfo {
  background: #fafafa;
  border: 2px solid #666;
  width: 100%;
  margin-bottom: 15px;
}

#report table#reportinfo th,
#report table#reportinfo td {
  border-bottom: 1px solid #999;
  padding: 5px 0 5px 8px;
  text-align: left;
}

#report table#reportinfo th {
  font-size: 1em;
  width: 17%;
}

#report table#reportinfo td {
  width: 33%;
}

div.notinpdf {
  border: 1px solid red;
  background-color: #ffcccc;
  padding: 10px 10px 0 10px;
  margin-bottom: 5px;
  display: none;
}

div.notinpdf td {
  border: 1px solid #666 !important;
  padding: 2px;
  background: initial;
  border-bottom: initial;
  vertical-align: initial;
}

div.notinpdf th {
  vertical-align: bottom;
  font-size: 95%;
}

div.notinpdf .note {
  font-weight: bold;
  font-style: italic;
  color: red;
  text-align: center;
}

#report {
  border: 1px solid #ccc;
  background: white;
}

#report a {
  text-decoration: underline;
}

#report a:hover,
a:active,
a:focus {
  text-decoration: none;
}

#report h1,
#report h2,
#report h3,
#report h4,
.cke_editable h1,
.cke_editable h2,
.cke_editable h3,
.cke_editable h4 {
  margin-bottom: 4px;
  margin-top: 12px;
}

#report h1,
.cke_editable h1 {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 15px;
}

#report h2,
.cke_editable h2 {
  font-size: 2.5em;
  text-align: center;
  border: 1px solid #999;
  background: #eee;
}

#report h3,
.cke_editable h3 {
  font-size: 1.7em;
  margin-top: 15px;
  border-bottom: 1px solid #999;
}

.mhiob h3 {
  margin-top: 25px;
}

#report h4,
.cke_editable h4 {
  font-size: 1.5em;
}

#report h2.noborder,
#report h3.noborder {
  border-bottom: 0;
}

#report ul,
#report ol,
.cke_editable ul,
.cke_editable ol {
  margin-bottom: 7px;
}

#report small,
.cke_editable small {
  font-size: 80%;
}

#report .icon.tips {
  width: 32px;
  height: 32px;
}

#report .report_page {
  padding: 20px 40px;
}

#report .editreport {
  display: inline-block;
  line-height: 36px;
  font-size: 1.4em;
  font-weight: bold;
  color: white;
  background-color: black;
  text-align: center;
  border: 1px solid white;
  border-radius: 4px;
  text-decoration: none;
}

#report .editreport:hover,
#report .editreport:active,
#report .editreport:focus {
  background-color: white;
  color: black;
  border: 1px solid black;
}

#report .thumbcaption {
  font-size: 95%;
  font-style: italic;
  border-top: 1px solid #999;
  background: #fafafa;
  text-align: justify;
}

#report #executive_summary {
  border: 2px solid #666;
  background: #fafafa;
  padding-top: 7px;
}

#report #executive_summary ul {
  padding-left: 25px;
  padding-right: 5px;
}

#report #executive_summary li p {
  margin: 0;
}

#report .summarybox {
  border: 2px solid #666;
  border-bottom: 0;
  background: #fafafa;
  padding: 5px;
}

#report .summarytitle {
  text-align: center !important;
  margin: 0;
  padding: 0;
}

#report .summarytitle h1,
.summarytitle h2,
.summarytitle h3 {
  background: #666 !important;
  border: 0 !important;
  color: #fff;
  font-weight: bold;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 20px;
  padding-top: 3px;
  margin: 0 !important;
}

#report #coping_capacity_summarytxt {
  white-space: nowrap;
  border: 2px solid #666;
  border-bottom: 0;
  margin: 0 !important;
}

#report #coping_capacity_summarytxt td:nth-child(2) {
  padding-left: 0;
  padding-right: 0;
}

.maplegend {
  list-style-type: none;
  padding-left: 15px;
  margin-bottom: 0 !important;
}

.maplegendimg {
  vertical-align: sub;
  margin-right: 15px;
}

#report table#volcanostxt,
#report table#NOAA_catalog_distancetxt {
  margin-bottom: 0;
}

#report table#NOAA_catalog_distancetxt th,
#report table#NOAA_catalog_distancetxt td {
  padding: 4px 4px;
}

#volcano_background_img {
  margin: 4px 0;
  height: 144px;
}

#report div#project_logo {
  float: right;
  padding-top: 10px;
  max-width: 150px;
}

#project_logo_img {
  max-width: 150px;
}

#geographical_map_img {
  width: 411px;
  margin: 0 40px auto !important;
}

#geographical_map > p {
  text-align: center;
}

#mhiob_project_logo_img {
  width: 110px;
}

#decision_matrix_img {
  width: 220px;
}

#report .report_page.lite #lite_project_logo_img,
#report .report_page.lite #lite_map {
  width: 120px;
}

/* Hack to NOT be used in the PDF */
#report .imgwiki {
  border: 1px solid #999;
  margin: 20px auto;
}

/* make the ckeditor version of imgwiki look more like the report ones */
.tiki_plugin[data-plugin="imgwiki"],
.preview_contents .imgwiki {
  border: 1px solid #999;
  margin: 20px auto;
  display: block !important;
  max-width: 100%;
}

.tiki_plugin[data-plugin="imgwiki"] img {
  max-width: 100%;
}

#report .img-fluid {
  margin: 0 auto;
}

#report .img-responsive-max {
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

#report_disclaimer {
  font-size: 0.8em;
  font-weight: bold;
  margin: 15px 0 0 0;
  text-align: justify;
}

#report_infodisclaimer_lite {
  color: #999;
  margin-top: 5px;
}

#report_infodisclaimer_lite a {
  color: #999;
}

#report_infodisclaimer_lite p,
#report_infodisclaimer_lite div {
  margin: 0;
}

.spadaform table {
  width: 100%;
}

.spadaform h3 {
  margin: 0;
}

.spadaform td {
  vertical-align: top;
  padding: 0 20px 20px 0;
}

.spadaform .ui-datepicker-inline td {
  padding: 2px;
}

.spadaform .ui-datepicker-inline .ui-state-active {
  border: 1px solid #d9230f;
  color: #ff6351;
  font-weight: bold;
}

.spadaform select,
input[type="text"] {
  font-size: 1.3em;
}

.spadaform input[type="submit"] {
  font-size: 1.5em;
  font-weight: bold;
  padding: 5px 10px;
}

.spadaform .pages div {
  display: inline;
}

.spadaform .pages input {
  margin-right: 5px;
}

.spadaform .pages label {
  font-weight: bold;
  margin-right: 20px;
}

#mapid {
  width: 606px;
  height: 420px;
}

.eqselect {
  font-size: 1em !important;
}

#geojsonfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
  background: #fcfcfc;
  border-color: #dddddd;
}

.ui-accordion .ui-accordion-content {
  border: 1px solid #dddddd;
  border-top: 0;
  color: #000000;
}

.ui-accordion .ui-accordion-content h4 {
  font-weight: bold;
}

.ui-widget-content a {
  color: #d9230f;
}

.printpageseparator {
  border: 10px solid #ccc;
  page-break-after: always;
  line-height: 0;
}

.cke_editable .editarea {
  border: 2px dashed #faa;
  margin: 0 !important;
  padding: 0 !important;
}

.cke_editable .notinpdf {
  display: block;
}

.cke_editable #report {
  border: 0;
}

.cke_editable #report .report_page {
  padding: 0;
}

.cke_editable #report .report_page.emergency {
  display: none;
}

.firepad-richtext .CodeMirror {
  font-family: monospace !important;
  font-size: 13px !important;
}

.rTable {
  display: block;
  width: 100%;
}

.rTableHeading,
.rTableBody,
.rTableFoot,
.rTableRow {
  clear: both;
}

.rTableHead,
.rTableFoot {
  font-weight: bold;
}

.rTableCell {
  vertical-align: top;
}

.rTableCell,
.rTableHead {
  float: left;
  overflow: hidden;
}

.rTable:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

@media print {
  .icon {
    display: none;
    visibility: hidden;
  }

  .printpageseparator {
    border: 0 none transparent !important;
  }

  body {
    background-color: #fff;
    border: 0;
    margin: 0;
    padding: 0;
  }

  #report {
    border: 0;
  }

  #report .report_page {
    padding: 0 20px;
  }

  /**/
  hr {
    margin-bottom: 20px;
    margin-top: 20px;
  }

  ul {
    padding-left: 80px;
  }

  #report table,
  .cke_editable table,
  table.emrep {
    margin: 0 auto 30px auto;
  }

  #report table caption,
  .cke_editable table caption,
  table.emrep caption,
  caption.emrep,
  #report caption,
  #report .caption {
    padding-bottom: 8px;
    padding-top: 16px;
    font-size: 1.15em;
  }

  #report table th,
  .cke_editable table th,
  table.emrep th {
    font-size: 0.9em;
    border-bottom: 4px solid #666;
    padding: 8px 16px;
    color: #444;
  }

  #report table td,
  .cke_editable table td,
  table.emrep td {
    border-bottom: 2px solid #999;
    padding: 8px 16px;
  }

  #report table#threatlevel {
    font-size: 1.15em;
    margin-bottom: 30px;
  }

  #report table#threatlevel td {
    border: 2px solid #666;
    padding: 5px 10px;
  }

  #report table#overallimpact td,
  #report table#alertlevel td {
    border: 2px solid #666;
    line-height: 15px;
  }

  #report table#overallimpact td.big,
  #report table#alertlevel td.big {
    font-size: 2.5em;
    line-height: 15px;
    height: 33px;
  }

  #report table#overallimpact table td,
  #report table#alertlevel table td {
    width: 26px;
    line-height: 22px;
  }

  #report div.mhiob table#alertlevel td.big {
    font-size: 1.5em;
    line-height: 24px;
    height: 24px;
  }

  #report table#reportinfo {
    border: 2px solid #666;
    margin-bottom: 15px;
  }

  #report table#reportinfo th,
  #report table#reportinfo td {
    border-bottom: 1px solid #999;
    padding: 5px 0 5px 8px;
    text-align: left;
  }

  #report table#reportinfo th {
    font-size: 1em;
    width: 17%;
  }

  #report table#reportinfo td {
    width: 33%;
  }

  #report h1,
  #report h2,
  #report h3,
  #report h4,
  .cke_editable h1,
  .cke_editable h2,
  .cke_editable h3,
  .cke_editable h4 {
    margin-bottom: 8px;
    margin-top: 24px;
  }

  #report h1,
  .cke_editable h1 {
    font-size: 2.8em;
    margin-bottom: 30px;
  }

  #report h2,
  .cke_editable h2 {
    font-size: 2.5em;
    border: 2px solid #999;
    color: #444;
  }

  #report h3,
  .cke_editable h3 {
    font-size: 1.7em;
    margin-top: 30px;
    border-bottom: 2px solid #999;
  }

  .mhiob h3 {
    margin-top: 50px;
  }

  #report h4,
  .cke_editable h4 {
    font-size: 1.5em;
  }

  #report ul,
  #report ol,
  .cke_editable ul,
  .cke_editable ol {
    margin-bottom: 14px;
  }

  #report small,
  .cke_editable small {
    font-size: 80%;
  }

  #report .icon.tips {
    width: 64px;
    height: 64px;
  }

  #report .thumbcaption {
    font-size: 95%;
    border-top: 2px solid #999;
  }

  #report #executive_summary {
    border: 2px solid #666;
    /*padding-top: 14px;*/
    margin-bottom: -15px;
  }

  #report #executive_summary ul {
    padding-left: 50px;
    padding-right: 10px;
  }

  #report .summarybox {
    border: 2px solid #666;
    padding: 5px;
  }

  /*    #report .summarytitle h1, .summarytitle h2, .summarytitle h3 {
        font-size: 30px !important;
        letter-spacing: 2px;
        line-height: 40px;
        padding-top: 6px;
    }*/

  #report #coping_capacity_summarytxt {
    border: 2px solid #666;
  }

  .maplegend {
    padding-left: 30px;
  }

  .maplegendimg {
    margin-right: 30px;
    /*width: 30px;*/
    vertical-align: middle;
  }

  #report table#NOAA_catalog_distancetxt th,
  #report table#NOAA_catalog_distancetxt td {
    padding: 8px 8px;
  }

  #report table#alertlevel img {
    width: 60px;
  }

  #volcano_background_img {
    margin: 8px 0;
    height: 288px !important;
  }

  /* footer */
  #report_disclaimer {
    margin: 0;
  }

  #report_info {
    margin: 0;
  }

  #report div#project_logo {
    float: right;
    margin-left: 40px;
    width: 150px;
    text-align: right;
  }

  #project_logo_img {
    width: 358px !important;
  }

  /*#mhiob_project_logo_img {
    width: 220px !important;
  }*/

  #decision_matrix_img {
    width: 220px;
  }

  #likelihood_img {
    width: 60px;
  }

  #report .imgwiki {
    border: 2px solid #999;
    margin: 40px auto;
    text-align: center;
  }

  .tiki-print h1 {
    display: none;
  }

  /* changes for tiki 24.x mPDF */

  #geographical_map > p {
    padding-right: 1rem;
    text-align: center;
  }

  #likelihood_img {
    width: 30px;
    height: 100px;
  }

  #geographical_map_img {
    width: 411px !important;
  }

  #report .editreport {
    display: none !important;
  }

  #report a {
    color: #d9230f;
    text-decoration: none;
    background-color: transparent;
  }

  /* not working? :( */
  #detailed_map img {
    width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    margin: 0 4rem !important;
  }

  #detailed_map {
    margin: -40px auto !important;
    width: 93%;
  }

  #detailed_map + h3 {
    margin-top: 0 !important;
    font-size: 1rem !important;
  }

  .maplegend {
    font-size: 60%;
  }
}

@page {
  size: auto; /* auto is the initial value */
  /* this affects the margin in the printer settings */
  margin: 10mm 15mm 10mm 15mm;
}
