#theEnvironment {
    background: #ffefdb none repeat scroll 0 0;
    border: 1px solid orange;
    border-top-width: 0;
    border-radius: 0 0 4px 4px;
    color: red;
    font-size: 16px;
    font-weight: bold;
    padding: 3px 0 2px;
    text-transform: uppercase;
    max-width:500px !important;
    max-height:25px !important;
    overflow:hidden !important;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020 !important;
}

#mainheader .navbar-brand {
    background-size: cover;
    float: left;
    height: 64px;
    margin-top: 12px;
    width: 230px;
    z-index: 1000;
    background-image: url("https://webgate.ec.europa.eu/envdataportal/layout-spring19/images/svg/logo--en.64be567623c46049ffd1.svg");
}

#mainheader .navbar-nav li.nav-item:first-child {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
    color: #0065a2;
}

#mainheader ul {
    padding-top: 32px;
}

#pageheader {
    background-image:url("https://webgate.ec.europa.eu/envdataportal/layout-spring19/images/title/HeaderBackground.gif");
    min-height:145px;
    border-radius:0;
    border-width:0;
}

.pagetitle {
    text-transform: uppercase;
    font-weight: bold;
    color: #0065a2;
}

.modal-backdrop {
  z-index: -1;
}

#pagefooter {
    background-color: rgba(0,0,0,.03);
    border-top: 1px solid rgba(0,0,0,.125);
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 5px 0;
    margin-top: 15px;
}

#pageheader div:first-child {
    padding-top: 10px;
    background-repeat:no-repeat;
}

#pageheadergeneral {
    background-image:url("https://webgate.ec.europa.eu/envdataportal/layout-spring19/images/title/title_en.gif");
}

#pageheader .environment, .environment {
    background: #ffefdb none repeat scroll 0 0;
    border: 1px solid orange;
    border-top-width: 0;
    border-radius: 0 0 4px 4px;
    color: red;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto;
    padding: 3px 0 2px;
    text-align: center;
    text-transform: uppercase;
    position:fixed;
    top:0;
    /*z-index:999999;*/
}

#mainmenu {
    background-color: #0065a2;
    color: white;
    margin-left: -15px;
    margin-right: -15px;
}
#mainmenu li.nav-item {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
    margin-right: 10px;
}

#header4page {
    background-color: #6c757d;
    background-image: linear-gradient(
        #6c757d, white
    );
    font-weight: bold;
    margin-left: -15px;
    margin-right: -15px;
}
#header4page span.navbar-brand {
    color: white;
    /*color: rgb(33,37,41);*/
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.75);
}

.select2-container .select2-search--inline {
    margin-top: -.40rem;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    margin: -.25rem 0 .5rem .1875rem;
}

#div4tree {
    background-color:white;
    border: 1px solid #ccc;
    border-radius: 4px;
    /*height:387px;*/
    height: 207px;
    overflow-y:scroll;
}
.tree, .tree ul {
    margin:0;
    padding:0;
    list-style:none
}
.tree ul {
    margin-left:.4em;
    position:relative
}
.tree ul ul {
    margin-left:.5em
}
.tree ul:before {
    content:"";
    display:block;
    width:0;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    border-left:1px solid
}
.tree li {
    margin:0;
    padding:0 1.3em;
    line-height:2em;
    position:relative
}
.tree li.branch ul li.branch svg {
    margin-left: -.3rem;
    margin-right: .5rem;
}
.tree li.branch li {
    cursor: text;
    font-weight: normal;
}
.tree li.branch, .tree li.branch ul li.branch, .tree li.branch ul li.branch ul li.branch {
    cursor: pointer;
    font-weight: bold;
}
.tree ul li:before {
    content:"";
    display:block;
    width:10px;
    height:0;
    border-top:1px solid;
    margin-top:-1px;
    position:absolute;
    top:1em;
    left:0
}
.tree ul li:last-child:before {
    background:#fff;
    height:auto;
    top:1em;
    bottom:0
}
.indicator {
    margin-right:5px;
}
.tree li a {
    text-decoration: none;
    color:#369;
}
.tree li .form-check-input {
    position: absolute;
    margin-top: .7rem;
    margin-left: -.5rem;
    margin-right: .3rem
}
.tree li button, .tree li button:active, .tree li button:focus {
    text-decoration: none;
    color:#369;
    border:none;
    background:transparent;
    margin:0px 0px 0px 0px;
    padding:0px 0px 0px 0px;
    outline: 0;
}

.required:after{
    content:"*";
    font-weight:bold;
    color: red;
}

input[data-readonly] {
    pointer-events: none;
    background-color: #e9ecef;
    opacity: 1;
}

a {
    color:#0065a2;
}

#therowsnumber {
    font-weight: bold;
}

/* Medium screens */
@media all and (min-width: 800px) {
  /* We tell both sidebars to share a row */
  .column { flex: 1 auto; }
}

/* Large screens */
@media all and (min-width: 900px) {
  /* We invert order of first sidebar and main
   * And tell the main element to take twice as much width as the other two sidebars 
   */
  .column1 { flex: 2 0px; }
  .column1 { order: 1; }
  .column2 { order: 2; }
}

.btn {
    white-space: normal;
}

.btn-primary.disabled, .btn-primary:disabled {
    border-color: white;
}

.btn-primary, .btn-secondary {
    border-color: white;
}

.btn-group-vertical .btn{
    white-space:normal;
    width: 100%;
}

.card-header {
    color: #6c757d;
    cursor: pointer;
}

.page-item.active .page-link {
    /*border-color: #28a745;*/
}

#sitestable .edit_site, #sitestable .delete_site {
    /*color: #28a745;*/
}

.tab-content {
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: #dee2e6;
    border-radius: 0 0 .25rem .25rem;
}

.nav-tabs {
    border-bottom-width: 0;
    border-bottom-style: solid;
    border-bottom-color: #6c757d;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active, .nav-tabs .nav-link.active:hover {
    /*color: #28a745;*/
    border-color: #6c757d;
    background-color: white;
    border-bottom-color: white;
    border-bottom-width: 2px; 
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-item:hover, .nav-tabs .nav-link:hover {
    border-bottom-color: white;
}

.clickable-tr tr {
    cursor: pointer;
}

.dataTable {
	width:100% !important;
}

.dataTable thead input, thead select{
  width: 100%;
}

table.dataTable tr td.dt-type-numeric,
table.dataTable tr th.dt-type-numeric {
    text-align: left;
}

.dataCatalogSimpleForm label {font-weight: bold !important;}
.dataCatalogSimpleForm h5.separator  {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #777;
    line-height: 0.1em;
    margin: 10px 0 20px;
}

.dataCatalogSimpleForm h5 span.separator {
    background:#fff;
    padding:0 10px;
}

.dataCatalogSimpleForm th, .dataCatalogSimpleForm td {
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: auto !important;
}

.dropdown-menu li:hover > ul.dropdown-menu {
    display: block;
}
.dropdown-submenu {
    position:relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top:-6px;
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
}

.hasFieldUnit {
    width: 80%;
    float: left;
}

.filedUnitPreview {
    float: right;
}