/* Identidade visual da Prefeitura de Imbituva no GLPI e no Formcreator. */
.page .glpi-logo,
.page-anonymous .glpi-logo {
  background-image: url("/pics/logo-pmi.png") !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  display: inline-block !important;
  width: 220px !important;
  height: 90px !important;
}

body.navbar-collapsed .navbar-brand .glpi-logo {
  width: 60px !important;
  height: 60px !important;
}

.navbar-brand span:not(.glpi-logo) {
  display: none !important;
}

/* Formcreator responsivo para celulares. */
@media screen and (max-width: 700px) {
  html,
  body,
  .page,
  .page-wrapper,
  .page-body,
  main#page {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .page-body.container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .topbar .container-fluid {
    justify-content: center !important;
  }

  .page .glpi-logo,
  .page-anonymous .glpi-logo {
    width: min(180px, 70vw) !important;
    height: 68px !important;
  }

  form#plugin_formcreator_form {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 2rem !important;
  }

  #plugin_formcreator_form > h1.form-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    padding: 0 0.5rem !important;
  }

  #plugin_formcreator_form > .form_header {
    box-sizing: border-box !important;
    padding: 0.75rem !important;
  }

  #plugin_formcreator_form > .form_header ul,
  #plugin_formcreator_form .form_section ul {
    padding-left: 1.4rem !important;
  }

  #plugin_formcreator_form.plugin_formcreator_form
    [data-itemtype="PluginFormcreatorQuestion"]:not([hidden]),
  #plugin_formcreator_form.plugin_formcreator_form .plugin_formcreator_gap {
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    margin-left: 0 !important;
    min-width: 100% !important;
    width: 100% !important;
  }

  #plugin_formcreator_form .form-group {
    box-sizing: border-box !important;
    padding: 0.65rem 0.5rem !important;
  }

  #plugin_formcreator_form .form-group > label {
    height: auto !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
    white-space: normal !important;
  }

  #plugin_formcreator_form .form_field,
  #plugin_formcreator_form .form_field[style],
  #plugin_formcreator_form input,
  #plugin_formcreator_form select,
  #plugin_formcreator_form textarea,
  #plugin_formcreator_form .select2-container,
  #plugin_formcreator_form iframe {
    box-sizing: border-box !important;
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #plugin_formcreator_form .no-wrap {
    white-space: normal !important;
  }

  #plugin_formcreator_form iframe {
    height: 280px !important;
  }

  #plugin_formcreator_form button[type="submit"],
  #plugin_formcreator_form input[type="submit"] {
    min-height: 44px !important;
    width: 100% !important;
  }
}
