@import url("bootswatch-flatly.min.css");

/* ==== Google font ==== */
@import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic|Montserrat:700|Merriweather:400italic');


:root {
  --primary: #74b374 !important;
  --success: #5b9bd5 !important;
}

body {
  /* font-family:"Arial", "Helvetica", "sans-serif"; */
  /* padding-top:70.3px; margin-bottom: 130px; */
  padding-top:50.3px; margin-bottom: 89px;
  overflow-y: hidden;
  font-family: "OpenSans";
}

.dont-break-out {

  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;

}

a {
  color: var(--success);
  font-weight: bolder;
}

a:visited {
  color: purple;
}

.footer-subregion a:visited {
  color: var(--success);
}

a:hover {
  color: #2a5b88;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.navbar-brand {
  color: #fff !important;
  font-size: 20px;
  line-height: 40px;
  text-transform: uppercase;
  font-family: Montserrat,sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}
  
.navbar-brand.secondary {
  font-size: 12px;
  margin-left: auto;
  padding: 5px 15px;
}

.dropdown {
  margin-left: auto;
}

.dropdown-menu {
  padding: 0;
  background-color: transparent;
  border: 0;
  font-family: Montserrat,sans-serif;
  font-weight: 700;
  /* letter-spacing: 1px; */
  font-size: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  background-clip: padding-box;
  left: auto;
  right: 16px;
}

.dropdown-item {
  color: #4c4c4c;
  background-color: #fff;
  padding-left: 1rem;
  padding-bottom: 14px;
  padding-top: 14px;
}

.dropdown-item:visited {
  color: #4c4c4c;
}

.dropdown-item:hover, .dropdown-item:focus {
  color: #fff;
  text-decoration: none;
  background-color: #7ac77a;
}

.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #7ac77a;
}

.dropdown-item.disabled, .dropdown-item:disabled {
  color: #95a5a6;
  background-color: transparent;
}  

/* Da nestane E-PRIRODA */
@media screen and (max-width: 992px) {
  .navbar-brand.secondary {
    display: none;
  }
}

.navbar-brand.secondary:hover {
  background-color: #7ac77a;
}

.navbar {
  padding: 0;
  height: 50px;
}

.navbar>.container {
  justify-content: start;
}

#navbar-zavod-logo {
  height: 40px;
  display: table-cell;
  float:left;
  margin: 0;
}

/* Izmjena Naslova stranice i skraćenice, kao i logoa koji u mobilnoj verziji postaje link za E-PRIRODA */
@media screen and (min-width: 992px) {
  #navbar-brandps-sm {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  #navbar-brandps-lg {
    display: none;
  }
  #navbar-brandps-sm {
    position: absolute;
    left: 10px;
  }
}

@media screen and (min-width: 992px) {
  #navbar-zlogo-sm {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  #navbar-zlogo-lg {
    display: none;
  }
  #navbar-zlogo-sm {
    position: absolute;
    left: 90px;
  }
}

.navbar-toggler {
  border-color: rgba(0,0,0,0) !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    /* outline: solid 1px white; */
    outline: none;
    /* box-shadow: 0 0 1px 1px white; */
}

@media screen and (max-width: 992px) {
  .navbar-toggler {
    position: absolute;
    right: 0px;
  }
  .togglePsList {
    display: none;
  }
}

.container-fluid {
  /* Zadajem mu visinu da bi mogao da radi vertikalni skrol */
  height: calc(100vh - 120px); 
  padding-left: unset;
  padding-right: unset;
  overflow-x: hidden;
  overflow-y: auto;
}

.main-details-container {
  width: 80%;
  margin: auto;
}

#main-img-container{
  padding-top: 20px;
  padding-bottom: 20px;
}

/* fix padding under menu after resize */
@media screen and (min-width: 600px) and (max-width: 1200px) {
  .main-details-container {
    width: 100vw;
  }
  #main-map-container {
    order:2;
  }
  #map-location {
    height: 100vw;
  }
  #main-text-container {
    order:1;
  }
  #main-img-container{
    order:3;
  }
}

@media screen and (max-width: 600px) {
  .main-details-container {
    width: 100vw;
  }
  #main-map-container {
    order:1;
  }
  #map-location {
    height: 100vw;
  }
  #main-text-container {
    order:2;
  }
  #main-img-container{
    order:3;
  }
}

@media screen and (max-width: 400px) {
  .main-details-container {
    width: 100vw;
  }
  #main-map-container {
    order:1;
  }
  #map-location {
    height: 100vw;
  }
  #main-text-container {
    order:2;
  }
  #main-img-container{
    order:3;
  }
}

/* FOOTER */
div#footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4c4c4c;
    height: 70px;
    padding: 10px;
    font-size: 12px;
    color: #cccccc;
}

.footer-subregion {
  float: left;
  height: 100%;
  padding: 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-subregion div, .footer-subregion span, .footer-subregion img {
  display: table-cell;
}

#footer-copyright {
  float:right;
  padding: 0px 5px;
}

#zp-logo {
  height: 50px;
}

#zavod-logo {
  height: 50px;
}

@media screen and (max-width: 700px) {
  #zp-logo {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  #zavod-logo {
    display: none;
  }
}

/* FOOTER END */

p{
  margin:10px;
}

/* Karta */

.leaflet-container {
  font: bold 13px/16px OpenSans;
  background: white;
}
.info {
  padding: 6px 8px;
  background: rgba(255,255,255,1);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 0px;
}
.info h4, h5 {
    margin: 0 0 5px;
    color: #777;
  }
.legend {
  text-align: left;
  line-height: 18px;
  color: rgb(0, 0, 0);
}
.legend i {
  font-weight:bold;
  font-size: smaller;
  width: 20px;
  height: 15px;
  float: left;
  margin-right: 8px;
  opacity: 1;
}

@media screen and (max-width: 992px) {
  .leaflet-control-minimap {
    display: none;
  }
  .legend {
    display: none;
  }
}

@media screen and (min-width: 992px) {
  #map-detail {
    max-width: 765px;
    height: 700px;
  }
}

@media screen and (min-width: 576px) and (max-width: 992px) {
  #map-detail {
    max-width: 470px;
    height: 450px;
  }
}

@media screen and (max-width: 576px) {
  #map-detail {
    /* width: 100%; */
    height: 90vw;
  }
}

/* Normalna veličina */
@media screen and (min-width: 1200px) {
  #map-location {
    width: 300px;
    height: 300px;
  }
  .main-details-container {
    width: calc(100vw - 400px);
  }
}

@media screen and (min-width: 480px) {
  #map-index {
    width: 100%;
    height: calc(100vh - 120px);
    margin-bottom: -100px;
  }
}

@media screen and (max-width: 480px) {
  #map-index {
    width: 100%;
    height: calc(100vh - 176px);
    margin-bottom: -100px;
  }
}


/* Karta END */

.front-img{
  width: 100%;
  height: 100%;
  /* padding-bottom: 10px; */
  object-fit: contain;
}

hr{
  color: lavender;
}

.well {
  min-height:20px;
  padding:19px;
  margin-bottom:20px;
  background-color:#f5f5f5;
  border:1px solid #e3e3e3;
  border-radius:4px;
  -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);
  box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}


.well-lg {
  padding:24px;
  border-radius:6px
}
.well-sm {
   padding:9px;
   border-radius:3px
}.


.well blockquote{
   border-color:#ddd;
   border-color:rgba(0,0,0,.15)
}

.ps-title {
  padding: 20px 10px;
  text-align: center;
  /* font-weight: bold; */
  font-variant-caps: small-caps;
}

.ps-title span {
  font-size: larger;
}

.icon-info {
  margin-left:5px;
  font-size:20px;
  cursor:pointer;
  color: #5b9bd5;
  vertical-align: middle;
  margin-top: -3px;
}

/* Lightbox gallery style */
/* TODO Ovo izvući iz glavnog CSS fajla, da ne utiče na ostale modale? */
.modal-footer{
  font-weight: bold;
  font-variant-caps: small-caps;
  justify-content: center;
}

.modal-title{
  font-variant-caps: small-caps;
}

td p{
  margin: unset;
}

/* Sidebars */
/* --------------------- */

.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: hidden;
}

@media screen and (min-width: 992px) {
  #sidebar-start {
    min-width: 70px;
    margin-right: 0px;
    /* padding: 5px 5px 0px 0px; */
    /* min-width: 50px; */
    /* max-width: 50px; */
    height: calc(100vh - 120px);
    /* margin-right: -250px; */
    background-color: #717171;
  }
  #sidebar-start-sm {
    display: none;
  }
  #sidebar-start-details {
    display: block;
    flex-basis: unset;
    min-width: 100px;
    margin-right: 0px;
    /* padding: 5px 5px 0px 0px; */
    /* min-width: 50px; */
    /* max-width: 50px; */
    height: calc(100vh - 120px);
    /* margin-right: -250px; */
    background-color: #717171;
  }
}

@media screen and (max-width: 992px) {
  #sidebar-start-sm {
    flex-basis: unset;
    min-width: 70px;
    margin-right: 0px;
    /* padding: 5px 5px 0px 0px; */
    /* min-width: 50px; */
    /* max-width: 50px; */
    height: calc(100vh - 176px);
    /* margin-right: -250px; */
    background-color: #717171;
  }
  #sidebar-start {
    display: none;
  }
  #sidebar-start-details {
    flex-basis: unset;
    min-width: 100px;
    margin-right: 0px;
    /* padding: 5px 5px 0px 0px; */
    /* min-width: 50px; */
    /* max-width: 50px; */
    height: calc(100vh - 120px);
    /* margin-right: -250px; */
    background-color: #717171;
  }
}

.sidebar-start-btns {
  width: 100%;
  height: 70px;
  line-height: 70px;
  text-align: center;
  font-size: 11px;
  margin: auto;
  margin-bottom: 1px;
  background-color: #4c4c4c;
  color: white;
  cursor: pointer;
  box-sizing: border-box;
  /* vertical-align: middle; */
  text-transform: uppercase;
  font-family: Montserrat,sans-serif;
  /* font-weight: 700; */
  /* letter-spacing: 1px; */
}

.sidebar-start-btns:hover {
  background-color: #74b374;
  font-weight: bolder;
}

.sidebar-start-btns.active {
  background-color: #74b374;
  font-weight: bolder;
}

#sidebar-search {
  min-width: 250px;
  max-width: 250px;
  height: calc(100vh - 120px);
  margin-right: -250px;
  overflow-y: auto;
}

@media screen and (max-width: 992px) {
  #sidebar-info{
    min-width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 120px);
    margin-right: calc(0px - 100vw);
    overflow-y: auto;
  }
}

@media screen and (min-width: 992px) {
  #sidebar-info{
    min-width: 450px;
    max-width: 450px;
    height: calc(100vh - 120px);
    margin-right: -450px;
    overflow-y: auto;
  }
}

@media screen and (max-width: 480px) {
  #sidebar-info{
    height: calc(100vh - 176px);
  }
  #sidebar-search{
    height: calc(100vh - 176px);
  }
}

#sidebar-pslist{
  min-width: 1000px;
  max-width: 1000px;
  height: calc(100vh - 120px);
  margin-right: -1000px;
  overflow-y: auto;
}

#sidebar-search.active,
#sidebar-info.active,
#sidebar-pslist.active {
  margin-right: 0px;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  /* display: block; */
  position: absolute;
  top: 50%;
  /* left: 20px; */
  transform: translateY(-50%);
}

@media (max-width: 992px) {
  #sidebar-search,
  #sidebar-info,
  #sidebar-pslist {
      margin-left: 0px;
  }
  #sidebar-search.active,
  #sidebar-info.active,
  #sidebar-pslist.active {
      margin-left: -250px;
  }
}

/*
    ADDITIONAL DEMO STYLE, NOT IMPORTANT TO MAKE THINGS WORK BUT TO MAKE IT A BIT NICER :)
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

#sidebar-search,
#sidebar-info,
#sidebar-pslist {
    /* don't forget to add all the previously mentioned styles here too */
    background: #fff;
    color: #000;
    transition: margin 0.4s ease-in;
    padding: 2px 5px;
    /* border: 1px solid #ced4da; */
}

#sidebar-search .sidebar-header, #sidebar-info .sidebar-header, #sidebar-pslist .sidebar-header {
    padding: 10px;
    background: #fff;
    color: black;
    margin-top: 10px;
    margin-bottom: -10px;
    position: relative;
}

#sidebar-search ul.components, #sidebar-info ul.components, #sidebar-pslist ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar-search ul p, #sidebar-info ul p, #sidebar-pslist ul p {
    color: #fff;
    padding: 10px;
}

#sidebar-search ul li a, #sidebar-info ul li a,  #sidebar-pslist ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}
#sidebar-search ul li a:hover,
#sidebar-info ul li a:hover,
#sidebar-pslist ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar-search ul li.active > a, a[aria-expanded="true"],
#sidebar-info ul li.active > a, a[aria-expanded="true"],
#sidebar-pslist ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: var(--primary);
}
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: var(--primary);
}

.sidebar-content {
  color: #777;
}

#sidebar-search {
  z-index: 100000;
}

#sidebar-info, #sidebar-pslist {
  z-index: 100001;
}

.table-sidebar-pslist {
  margin-top: 10px;
}

.table-sidebar-pslist td,
.table-sidebar-pslist th {
  width: auto;
  padding: 2px 10px 2px;
}

.table-details th,
.table-details td{
  padding: 0.2rem;
}

.table-details th{
  width: 30%;
}

.table-designation {
  border-top-style: hidden;
}

.table-location {
  border-top-style: hidden;
}

#table-info {
  border-top-style: hidden;
}

.table-manager {
  border-top-style: hidden;
}

.table-reference {
  border-top-style: hidden;
}

@media screen and (max-width: 480px) {
  .table-reference th{
    max-width: 15vw;
    word-wrap: break-word;
  }
  .table-reference ul{
    padding-inline-start: 10px;
    list-style-type: none;
  }
}

@media screen and (min-width: 480px) {
  .table-reference th{
    max-width: 15%;
  }
}

.table-reference li{
  padding-bottom: 10px;
}


/* When you mouse over the navigation links, change their color */
.sidebar-header a {
  color: #4c4c4c
}

.sidebar-header a:hover {
  color: #777;
  text-decoration: unset;
}

.sidebar-header .sidebar-closebtn {
  position: absolute;
  top: -15px;
  right: 10px;
  font-size: 36px;
  /* margin-right: 50px; */
}


/* FORM */

.form-control {
  border-radius: 0;
  padding: 5px;
}

.form-frame {
  border: 0;
}

.form-group {
  font-family: "OpenSans",sans-serif;
}

/* FORM END */

/* SEARCH RESULTS BEGIN */

.search-results-container {
  padding: 50px 0px;
  min-width: 100%;
  max-width: 100%;
  height: calc(100vh - 120px);
  overflow-y: auto;
}

@media screen and (min-width: 992px) {
  .search-result {
    width: 50%;
    margin: auto;
    border-radius: 0;
    border-color: #cccccc !important;
    display: table;
    clear: both;
  }
}

@media screen and (max-width: 992px) {
  .search-result {
    width: 80%;
    margin: auto;
    border-radius: 0;
    border-color: #cccccc !important;
    display: table;
    clear: both;
  }
  .card-body {
    padding: 5px;
    float:left;
    width: 60%;
  }
  .result-img-container {
    width: 40%;
    float: left;
    padding:5px;
    display: table-cell;
    vertical-align: middle;
  }
  .card-title {
    font-size: 1rem;
    margin: unset;
    padding: 5px;
  }
  .card-header {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

@media screen and (min-width: 992px) {
  .card-body {
    float:left;
    width:70%;
  }

  .result-img-container {
    width: 30%;
    float: left;
    padding:5px;
    display: table-cell;
    vertical-align: middle;
  }
}

.result-img {
  max-width:100%;
  max-height: 100%;
}

#search-result-text-warning {
  width: 100%;
  font-weight: bold;
}
/* SEARCH RESULTS END */
