/* modifs SR nov 2023 */

@font-face {
  font-family: Ubuntu;
  src: https://fonts.gstatic.com/s/ubuntu/v20/4iCv6KVjbNBYlgoCjC3jsGyN.woff2;
}

/* Boutons, Inputs */

.btn,
.btn.btn-small,
.uneditable-input,
.input-append .add-on,
.input-prepend .add-on,
.input-append input,
.input-prepend input  {
  background: #eee;
  background-image: none;
  text-shadow: unset;
  box-shadow: unset;
  border: 0;
  font-size: .875rem;
  padding: .25rem .5rem;
  line-height: initial;
  height: auto;
  outline: none;
  color: #333;
}

input[disabled],
input[disabled] + .add-on {
  opacity: .65;
}

.input-append .add-on,
.input-prepend .add-on {
  height: auto !important;
}

.input-append,
.input-prepend {
  display: inline-flex;
  align-items: stretch !important;
}

.spinner::after {
  width: 10px;
  height: 10px;
  border: 2px solid transparent;
  border-top-color: #333;
}

#toolbar .menu-content .btn.btn-success,
#dock .menu-content .btn.btn-success,
#sub-dock .menu-content .btn.btn-success,
#mini-dock .menu-content .btn.btn-success,
#right-dock .menu-content .btn.btn-success {
  background-image: none;
  color: #fff;
}

/* Header */


#header {
  display: flex;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
  height: 80px !important;
  box-sizing: border-box;
  background : #8fbc5e;
}

#header > * {
  margin-left: 10px;
  margin-right: 10px;
}

#header #title {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-left: 0;
  padding-left: 0 !important;
  background: none;
}

#header #title h1 {
  order: 2;
  font-size: 12px;
  font-family: Ubuntu, sans-serif;
  color: #fff;
  margin-left: 0;
  margin-right: 0;
}

#header #title h2 {
  order: 1;
  font-size: 20px;
  font-family: Ubuntu, sans-serif;
  color: #fff;
  margin-top: 1em;
  margin-left: 0;
  margin-right: 0;
}

#header #logo {
  background-image: url(/index.php/view/media/getMedia?repository=desserteforestiere&project=sarf05&path=media%2Fthemes%2Fsarf05%2Fcss%2F/./img/Viaforest-500px.png);
  min-width: auto;
  width: 250px;
  background-size: contain;
}

#header #headermenu {
  position: initial;
  margin-left: auto;
}

#header #headermenu #header-clear {
  display: none;
}

#header #nominatim-search {
  display: none;
}

#header #nominatim-search #search-query {
  position: initial;
}

#header #headermenu #auth .nav .icon {
  display: none;
}

/* Main content */

#content {
  height: calc(100vh - 80px) !important;
}

#map-content {
  height: 100%;
}

/* Boutons droite */

#content #navbar {
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 4px;
}

#content #navbar .btn {
  background-color: #000;
  filter: invert(100%);
  border: 0;
  margin: 0;
  border-bottom: 1px solid #333;
  box-shadow: none;
}

#content #navbar .btn:hover {
  background-color: #111;
  cursor: pointer;
}

#content #navbar .slider {
  display: none;
}

#content #navbar .btn:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

#content #navbar .btn:last-of-type {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  border-bottom: 0;
}

/* mini-dock */

#dock,
#mini-dock,
#sub-dock,
#dock > div > ul.nav.nav-tabs,
#mini-dock > div > ul.nav.nav-tabs,
#right-dock > div > ul.nav.nav-tabs,
#bottom-dock > div > ul.nav.nav-tabs,
#mini-dock h3, #sub-dock h3,
.dock-subtitle {
  border: 0 !important;
}

#content #map-content #mini-dock {
  border-radius: 4px;
  background-color: rgba(0,0,0,0.2) !important;
}

#mini-dock #mini-dock-content .tab-pane {
  margin: 2px;
  border-radius: 2px;
  overflow: auto;
}

#mini-dock #mini-dock-content .tab-pane h3 {
  background: #eee;
  color: #000;
}

#mini-dock #mini-dock-content .tab-pane h3 .icon {
  background-position: -150px 0px;
}

#mini-dock #mini-dock-content .tab-pane .menu-content {
  background: #fff;
}

#mini-dock #locate input.custom-combobox-input,
#mini-dock #locate input.custom-combobox-input:focus {
  padding: .25rem .5rem;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  border: 0;
  outline: none;
}

#mini-dock #locate .menu-content {
  max-height: unset !important;
}

#mini-dock #locate #locate-clear {
  display: none;
}

#mini-dock #baselayer-menu div.baselayer-select,
#mini-dock #switcher div.baselayer-select,
#mini-dock #locate div.locate-layer {
  border: 0;
}

#mini-dock #locate div.locate-layer .custom-combobox-toggle {
  display: none;
}

.ui-autocomplete.ui-menu {
  border-radius: 4px;
  border-top: 0;
}

.ui-autocomplete.ui-menu .ui-menu-item {
  padding: .25rem .5rem;
}

.ui-autocomplete.ui-menu .ui-menu-item:hover {
  background: rgba(0,0,0,0.025);
}

.ui-autocomplete.ui-menu .ui-menu-item div {
  padding: 0;
  font-size: .875rem;
}

.ui-autocomplete.ui-menu .ui-menu-item .ui-state-active {
  border: 0;
  margin: 0;
  background: none;
}

#toolbar .title .btn.btn-error, 
#dock .title .btn.btn-error, 
#mini-dock .title .btn.btn-error, 
#right-dock .title .btn.btn-error {
  color: rgba(0,0,0,0.75);
  line-height: 0;
}

/* Géolocalisation */

#geolocation .geolocation-infos {
  background-color: transparent !important;
  padding: 0 5px;
  margin: 0;
}

#geolocation input[type=number] {
  box-shadow: none !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: transparent;
  min-width: 40px;
}

/* Imprimer */

#print #print-parameters {
  margin-bottom: 10px;
}

#print #print-parameters td {
  border: 0;
  padding: 0;
  font-size: .875rem;
}

#print #print-parameters select,
#print #print-format {
  padding: 6px;
  height: 30px;
}

#print #print-parameters select {
  border-radius: 0;
  border-left: 0;
}

#print #print-format {
  width: 100%;
}

#print #print-parameters td:first-child select {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-left: 1px solid #ccc;
}

#print #print-parameters td:last-child select {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-right: 1px solid #ccc;
}

#print .print-labels .print-label {
  display: block;
  width: 100%;
  box-shadow: none;
  box-sizing: border-box;
  resize: none;
  height: 30px;
}

#print .print-labels br {
  display: none;
}

#print-launch {
  height: 30px !important;
  padding: 8px;
}

/* Mesures */

#measure #measure-type {
  margin-bottom: 0;
  border: 0;
  outline: none !important;

}

/* Message */

#message {
  top: 10px;
}

#message .alert-info {
  background-color: #fff;
  color: #333;
  border-radius: 4px;
  outline: 2px solid rgba(0,0,0,0.2);
  font-size: .875rem;
  padding-top: 10px;
  padding-bottom: 10px;
}

#message .alert-info .close {
  color: #333;
  line-height: 1.5rem;
  font-size: 16px;
}

/* Dessiner */

#draw .digitizing .btn,
#draw .digitizing .dropdown-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
}

#draw .digitizing .dropdown-toggle .caret {
  margin-top: 0;
}

#draw .digitizing .dropdown-menu li.btn {
  margin: 1px;
}

#draw .digitizing .dropdown-menu li a:hover {
  background: #8fbc5e;
}

/* Permalien */

#permaLink .menu-content {
  padding: 0 !important;
}

#permaLink .tab-content {
  border: 0 !important;
  width: 300px;
}

#permaLink  .nav-tabs {
  padding: 10px 3px 0 10px;
  border-bottom: 0;
}

#permaLink  .nav-tabs a {
  font-size: .875rem;
  padding: .25rem .5rem;
  border: 0 !important;
  border-radius: 4px;
  background: #eee;
  margin-right: 5px;
  color: #333;
}

#permaLink  .nav-tabs .active a {
  background: #8fbc5e;
  color: #fff;
}

#permaLink #tab-share-permalink.active {
  display: flex;
}

#permaLink #tab-embed-permalink.active {
  display: flex;
  flex-direction: column;
}

#permaLink #input-share-permalink {
  flex-grow: 1 !important;
}

#permaLink #permalink {
  margin-top: 5px;
  margin-left: 5px;
}

#permaLink #input-embed-permalink {
  margin-bottom: 0;
}

#permaLink #input-share-permalink,
#permaLink #input-embed-permalink {
  margin-bottom: 0;
  box-shadow: none !important;
  border: 1px solid #ccc !important;
  width: auto;
}

/* Overview */

#overview-box {
  outline: 2px solid rgba(0,0,0,0.2);
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  bottom: 80px;
}

#overview-box .ol-overviewmap {
  border-top: 0;
  padding: 0;
}

#overview-box .ol-overviewmap * {
  box-sizing: border-box;
}

#overview-box .ol-overviewmap > button {
  display: none;
}

#overview-box .ol-overviewmap .ol-overviewmap-map {
  width: 100%;
  margin: 0;
}

#overview-box .ol-overviewmap .ol-overviewmap-box {
  border: 0;
}

#overview-box #overview-bar {
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
}

lizmap-mouse-position {
  border-top: 0 !important;
  background: #eee;
}

lizmap-mouse-position input,
lizmap-mouse-position select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 30px !important;
  line-height: 30px !important;
  padding: unset;
}

/* Popup */

#map-content #map #liz_layer_popup {
  background-color: #fff !important;
  border: 10px solid #fff !important;
  outline: 2px solid rgba(0,0,0,0.2) !important;
  border-radius: 4px !important;
  box-shadow: 0px 0px 30px 5px rgba(0,0,0,0.3);
}

#map-content #map #liz_layer_popup h4,
#map-content #map #liz_layer_popup .lizmapPopupDiv {
  background-color: transparent !important;
  color: #333 !important;
  padding: 0 !important;
  margin: 10px 5px !important;
}

#map-content #map #liz_layer_popup h4 {
  font-weight: bold;
  font-size: 1.15rem;
}

#map-content #map #liz_layer_popup .lizmapPopupDiv p {
  font-size: 0.85rem;
  margin-bottom: 0px;
}

#map-content #map #liz_layer_popup #liz_layer_popup_close {
  background: none !important;
  color: #999 !important;
}

#map-content #map #liz_layer_popup #liz_layer_popup_close::before {
  content: '\02715';
}

/* Docks */

#docks-wrapper {
  display: flex !important;
  align-items: flex-start;
  height: auto;
  max-height: 100%;
  margin: 10px;
  left: 42px;
  bottom: 0;
  top: 0;
}

#docks-wrapper #dock {
  max-width: 350px !important;
  background-color: transparent;
  padding: 0 !important;
  border: 0 !important;
  outline: 2px solid rgba(0,0,0,0.2) !important;
  border-radius: 2px !important;
  height: auto;
  max-height: 100%;
}

#docks-wrapper #dock #dock-tabs  {
  background: #eee;
}

#docks-wrapper #dock #dock-tabs li a {
  color: #000;
}

#docks-wrapper #dock #dock-tabs #nav-tab-switcher a::before {
  background-position: -50px 0px;
}

#docks-wrapper #dock #dock-content {
  background: #fff;
}

#docks-wrapper #dock #dock-content .menu-content {
  background-color: transparent;
}

#docks-wrapper #dock #dock-content #switcher-layers-actions {
  filter: invert(100%);
  padding: 5px;
  border: 0;
  margin: 0;
}

#docks-wrapper #dock #dock-content #switcher-baselayer h3 {
  background: #eee;
  color: #000;
}

#docks-wrapper #dock #dock-content #switcher-baselayer .icon {
  background-position: -700px 0px;
}

#docks-wrapper #dock #dock-content #switcher-baselayer .icon-info-sign {
  display: none;
}

#docks-wrapper #dock #dock-content #switcher-baselayer .baselayer-select {
  border: 0;
  background: none;
}

#docks-wrapper #dock #dock-content #switcher-baselayer .baselayer-select select {
  height: auto;
  width: 100%;
  -webkit-appearance: auto;
  font-size: 14px;
  padding-left: 10px;
  outline: none !important;
}

/* Informations */

#docks-wrapper #dock #nav-tab-metadata a::before {
  background-position: -100px 0px;
}

#docks-wrapper #dock #dock-content #metadata {
  background: transparent;
  padding: 10px;
  width: auto;
  height: auto;
}

#docks-wrapper #dock #dock-close {
  background: none;
  opacity: 0.5;
}

#docks-wrapper #dock #dock-close::before {
  content: '\02715';
}

/* Menu gauche */

#map-content {
  margin-left: 0;
}

#mapmenu {
  height: auto;
  margin: 10px;
  border-radius: 2px;
  outline: 2px solid rgba(0,0,0,0.2) !important;
  background: rgba(0,0,0,0.5);
}

/* Logos bas de page */

#attribution-box img,
#attribution-box #attribution-ol {
  display: none;
}

#attribution-box::after {
  content: '';
  display: block;
  width: 170px;
  height: 50px;
  margin: 10px;
  background: url(/index.php/view/media/getMedia?repository=desserteforestiere&project=sarf05&path=media%2Fthemes%2Fsarf05%2Fcss%2F/img/logo_footer.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* Mobile & Tablette */

@media only screen and (max-width : 992px) {
  #header #logo {
    background-size: auto 50px;
    background-position: -12px 0px;
    margin: 0;
    margin-left: 20px;
    height: 50px;
    width: 50px;
  }
  #header #title {
    height: auto;
    margin-left: 20px;
  }
  #header #title h2 {
    margin-top: 0;
    line-height: initial;
    margin-bottom: 5px;
  }
  #header #title h1 {
    line-height: initial;
  }
  #attribution-box {
    display: none;
  }
  #overview-box {
    bottom: 10px !important;
  }
  #mini-dock {
    margin: 10px;
  }
  #mapmenu {
    background: #fff;
    top: 50px;
    left: -100%;
  }
  #mapmenu > div {
    top: 0;
  }
  #mapmenu > div > ul {
    margin: 0 !important;
    background: transparent;
    padding-left: 10px;
    padding-right: 10px;
  }
  #mapmenu > div > ul li {
    background: #eee;
  }
  #mapmenu > div > ul li a {
    color: #000 !important;
  }
  #mapmenu > div > ul li a .icon {
    filter: invert(100%);
  }
  #mapmenu > div > ul li.active {
    background: #8fbc5e;
  }
  #menuToggle {
    top: 10px;
    left: 10px;
    background: #000;
    outline: 2px solid rgba(255,255,255,0.2);
    filter: invert(100%);
    z-index: 1000;
  }
}