/*
  Copyright (C) 2021 - GeoCat B.V. All rights reserved.
  Copyright (C) 2014 - 2016 Open Source Geospatial Foundation. All rights reserved.
  This code is licensed under the GPL 2.0 license, available at the root
  application directory.
*/
@import "geoserver_version.css";
@import "geoserver_logo.css";

:root {
  --gse-logo-inner-height: 62px; /* = logo only width & height */
  --gse-logo-inner-width: 180px; /* = logo width + label width */
  --gse-logo-height: 120px;
  --gse-modal-min-width: 1000px;
  --gse-modal-min-height: 800px;
  --gse-chooser-width: 300px;
  --gse-chooser-margin-right: 350px;
}

/* ----------------------------------------------------------------------
/* fonts
/* ------------------------------------------------------------------- */

/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../geocat/font/roboto-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../geocat/font/roboto-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* ----------------------------------------------------------------------
/* general
/* ------------------------------------------------------------------- */

body {
  background: #fff;
  font-size: 14px;
  color: #333;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-align:left !important; 
  margin: 0;
}
body.help form, body.help ul li {
  padding: 0;
  margin: 0;
}
body.help form fieldset {
  margin: 0;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  color: #333;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: auto;
}
h1 {
  font-size: 32px;
  font-weight: 700;
}
h3 {
  margin: 1em 0 0.5em 0;
  padding-bottom: .3rem;
  border-bottom: 1px solid #eaecef;
}
strong, em, dt, b, i {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
	color: #0366d6;
}
a:hover, a:focus, a:visited {
	color: #0366d6;
	text-decoration: underline;
}
.page-header p {
  font-size: 16px;
}
.error,
.notice,
.success {
  border: 0 none transparent;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}
.palette-theme-default .palette-header {
  border: 0;
  background: no-repeat;
  text-align: left;
  font-size: 14px;
}
.palette-theme-default .palette-choices > div {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.palette-theme-default .palette-choices select, .palette-theme-default .palette-selected select {
  width: 40%;
  border: 1px solid #ddd;
}
.palette-theme-default .palette-buttons {
  margin-top: 32px;
}
.palette-theme-default .palette-buttons button div {
  height: 20px;
  width: 20px;
}
.palette-theme-default .palette-buttons button.palette-add div:after {
  content: '\2192';
}
.palette-theme-default .palette-buttons button.palette-remove div:after {
  content: '\2190';
}
.palette-theme-default .palette-buttons button.palette-up div:after {
  content: '\2191';
}
.palette-theme-default .palette-buttons button.palette-down div:after {
  content: '\2193';
}

/* ----------------------------------------------------------------------
/* utility
/* ------------------------------------------------------------------- */

.selfclear {
  display: block;
}
fieldset.leftwise, fieldset.rightwise {
  width: 45%;
  margin-right: 5px !important;
}
/* ----------------------------------------------------------------------
/* feedback
/* ------------------------------------------------------------------- */

.feedbackPanel {
  margin-bottom: 15px !important;
}
.feedbackPanelINFO {
  color: #fff;
  background: #02a6d8;
  padding: 8px 10px;
  border-radius: 2px;
}
.feedbackPanelINFO a {
  color: #fff;
  padding: 8px 10px;
  text-decoration: underline;
}
.feedbackPanelINFO a:hover {
  color: #fff;
}

.feedbackPanelWARNING {
  padding: 8px 10px;
  border-radius: 2px;
}
.feedbackPanelINFO a {
  color: #fff;
  padding: 8px 10px;
  text-decoration: underline;
}
.feedbackPanelINFO a:hover {
  color: #fff;
}
.feedbackPanelWARNING, .feedbackPanelERROR {
  padding: 8px 10px;
  border-left: 4px solid #c00;
}
  
/* ----------------------------------------------------------------------
/* structural elements
/* ------------------------------------------------------------------- */

.wrap {
  min-width: 0;
}
#header {
  color: #777;
  position: absolute;
  width: 100%;
  padding: 0;
  top: 0;
  height: 85px;
  z-index: 1000;
}
#header .wrap {
  width: calc(100% - 20px);
}
#header input {
  padding: 6px 12px;
}
#header #localeSwitcher img {
  margin-right: 5px;
}
#header #localeSwitcher select {
  padding: 4px 12px;
  height: auto;
}
#main {
  background: none;
  border: 0;
  margin-top: 85px;
  height: calc(100vh - 85px);
}
#main .wrap {
  width: auto;
  background: none;
  padding: 0 0 0 300px;
  margin: 0 0 -300px 0;
  height: 100%;
}
#sidebar {
  position: fixed;
  top: calc(var(--gse-logo-height) + 25px);
  left: 0;
  width: 300px;
  height: calc(100% - 130px);
  padding: 0 0 15px 0;
  background: #fff;
  border-right: 1px solid #e1e4e5;
  overflow: auto;
  z-index: 100;
}
#page {
  margin: 0 auto;
  padding: 0 20px;
  background: none;
  max-width: 900px;
}
#page.fullscreen {
  margin-top: 35px !important;
  overflow: auto;
  max-width: 100%;
  position: absolute;
  top: -120px;
  background: #fff;
  z-index: 1100;
  padding: 0 20px;
  height: 100vh;
}
.fullscreen #header-title {
  font-size: 32px;
}
.fullscreen .page-footer {
  padding: 0;
  height: 0;
}
.page-pane-fullscreen {
  height: auto;
}
.fullscreen #styleForm #style-context {
  margin-bottom: 0 !important;
}
.tab-panel .selfclear.clearBoth {
  padding-top: 0 !important;
}
#page .page-header {
  background: none;
  margin: 0 0 10px 0;
  /* full width - width capabilities and some padding */
  max-width: calc(100% - var(--gse-chooser-margin-right));
}
.page-header ul {
  margin: 10px 0;
}
#page .navigation-tab-header {
  padding-left: 0 !important;
}
.toolbar-sticky {
  z-index: 1200;
}
/* code mirror */
.CodeMirror-hints {
  z-index: 1250;
}

/* ----------------------------------------------------------------------
/* header
/* ------------------------------------------------------------------- */

#header .wrap {
  text-align: right;
  padding-left: 300px;
}
#header h2 {
  position: fixed;
  font-size: 1.76em;
  width: 300px;
  border-right: 1px solid #e1e4e5;
  margin: 0 0 0 -300px;
  float: left;
  z-index: 100;
  background-color: #fff;
}
#header h2 a {
  float: none;
  display: block;
  height: var(--gse-logo-height);
  width: 258px;
  background: var(--gse-logo-url) no-repeat;
  overflow: hidden;
  background-size: 240px 70px;
  text-indent: inherit;
  margin: 20px 20px 15px 15px;
}
#header .button-group {
  position: fixed;
  background-color: #fff;
  padding: 20px 25px 0 25px;
  width: calc(100% - 300px - 52px);
  margin: 0 1px;
}
#header .button-group:after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  text-indent: -9999px;
  visibility: visible;
  border-top: 1px solid #e1e4e5;
  margin: 10px auto 0;
}
#header label.shown {
  display: inline;
  font-weight: normal;
}
#header .button-group a, #header .button-group button {
  margin: 0 0.2em;
  font-size: 0.9em;
  float: none;
}
#header .button-group a.button-logout {
  float: right;
  margin: -5px 0 0 1em;
}
/* loader */
#ajaxFeedback {
  top: 85px;
  right: 25px;
}

/* ----------------------------------------------------------------------
/* sidebar
/* ------------------------------------------------------------------- */

/* version number */
#header h2 a span {
  visibility: hidden;
  position: absolute;
  top: -1000px;
  white-space: nowrap;
}
#header h2 a:after {
  visibility: visible;
  /* fill with content from external stylesheet */
  content: var(--gse-version);
  /* styles */
  font-weight: bold;
  background-color: #495057;
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;

  font-size: 16px;

  margin-top: 90px;
  margin-left: 5px
}
/* GEOSERVER_NODE_OPTS */

/* first <div> element in the sidebar, but not always present */
#sidebar > div:not(.navigation-tab) {
  position: relative !important;
  left: 0 !important;
  /*top: 0 !important;*/
  right: 0 !important;
  padding: 5px 0 5px 20px !important;
  font-size: 16px !important;
  border: 0 !important;
}
#sidebar > div:not(.navigation-tab) center {
  text-align: left !important;
}

/* sidebar menu */
ul#navigation {
  margin: 10px 0 25px;
  list-style-type: none;
  border-top: 1px solid #e1e4e5;
}
ul#navigation a {
  text-decoration: none;
}
ul#navigation a img {
  display: none;
}
ul#navigation a:hover {
  text-decoration: none;
  background-color: #ececec;
}
ul#navigation .navigation-tab {
  margin: 0;
  border: 0;
}
.navigation-tab-header {
  font-weight: 700 !important;
  font-style: normal;
  color: #0366d6;
  font-size: 16px;
  margin-bottom: 5px;
  margin-top: 10px;
  padding: 2px 5px 2px 20px;
  text-transform: uppercase;
}
.navigation-tab-single, .navigation-tab-content {
  padding: 0;
}
.navigation-tab-single {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}
.navigation-tab-content {
  border-top: none;
  padding: 0;
}
.navigation-tab-single a, .navigation-tab-content a {
  display: block;
  color: #333;
  padding: 5px 5px 5px 2em;
  font-size: 14px;
}
.navigation-tab-single a {
  padding-left: 20px;
  color: #0366d6;
  font-weight: 700;
}
li.nav-administer-service {
  clear: left;
}

/* ----------------------------------------------------------------------
/* welcome/overview
/* ------------------------------------------------------------------- */

#welcome {
  /* full width - width capabilities and some padding */
  max-width: calc(100% - var(--gse-chooser-margin-right));
}
#welcome table {
  margin-bottom: 1em;
}
#welcome thead th {
  background-color: #fff !important;
}
/* ----- messages */
#welcome div span p .warning-link, #welcome div span p .warning-link + a {
  display: block;
  padding: 15px 10px;
	border-left-width: 4px;
	border-left-style: solid;
	margin: 1rem 0;
  background: #fff7d3;
  border-color: #e7c000;
  color: #6b5900;
}
#welcome div span p .warning-link + a {
  margin-top: -2rem;
  color: #0366d6;
}
#chooser {
  position: absolute;
  right: 30px;
  margin-top: -7.0em;
  border: 1px solid #e1e4e5;
  padding: 15px;
  border-radius: 5px;
  background-color: #fff;
}
#chooser .select {
  margin-bottom: 10px;
  min-width: var(--gse-chooser-width);
  max-width: var(--gse-chooser-width);
}
#chooser .select .icon {
  margin-bottom: 5px;
  margin-right: 5px;
  opacity: 0.8;
  content: url(../geocat/icon/ic_folder_open_24px.svg);
}
#chooser .select + .select {
  margin-bottom: 0;
}
#chooser .select + .select .icon {
  content: url(../geocat/icon/ic_crop_din_24px.svg);
}

/* ----------------------------------------------------------------------
/* security
/* ------------------------------------------------------------------- */

#encryption .warning-link {
  display: block;
  padding: 15px 10px;
	border-left-width: 4px;
	border-left-style: solid;
	margin: 1rem 0 !important;
  background: #fff7d3;
  border-color: #e7c000;
  color: #6b5900;
}

/* ----------------------------------------------------------------------
/* capabilities
/* ------------------------------------------------------------------- */

/* tabs */
.tab-row {
  border-bottom: 1px solid #ccc;
  height: 34px;
}
.tab-row li {
  margin-right: 5px !important;
}
.tab-row a {
  border: 1px solid #ccc;
  padding: 6px 12px;
  background: #efefef;
  margin: 0;
  font-weight: normal;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
#page.fullscreen .tab-row-compact {
  margin-top: 0;
  margin-bottom: 10px;
}

/* ----------------------------------------------------------------------
/* responsive layout
/* ------------------------------------------------------------------- */
@media (max-width: 768px) {
  #header {
    height: 50px;
  }
  #main {
    margin-top: 50px;
  }
  #page {
    margin: 0;
    padding: 0 15px;
    max-width: 100%;
  }
  #sidebar {
    margin-left: -290px;
    background: #f4f4f4;
    top: 0;
    transition-duration: 0.5s;
    height: 100%;
    z-index: 1100;
    border-right: 14px double #ddd;
  }
  #sidebar:hover {
    margin-left: 0;
    background: #fff;
    border-right: 1px solid #e1e4e5;
  }
  #main .wrap {
    margin-left: -280px;
    width: auto;
    min-width: auto;
  }
  #header .button-group {
    width: calc(100% - 20px);
    margin-left: -290px;
    padding: 10px 0;
  }
  #header h2 {
    border: 0;
    width: auto;
    z-index: 10;
    margin-left: -275px;
  }
  #header h2 a {
    background-image: var(--gse-logo-only-url);
    margin: 10px;
    height: 32px;
    width: 50px;
    background-size: var(--gse-logo-inner-width) var(--gse-logo-inner-height);
  }
  #header h2 a span {
    display: none;
  }
  #welcome {
    max-width: none;
  }
  #capabilities {
    float: none;
    margin: 0;
    width: auto;
  }
}
@media (max-width: 580px) {
  #header .button-group [action$="j_spring_security_check"] {
    width: calc(100% - 70px);
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #page {
    max-width: none;
    padding: 0 25px;
    margin: 0;
  }
  #welcome {
    max-width: none;
  }
  #capabilities {
    float: none;
    margin: 0;
    width: auto;
  }
}

/* ----------------------------------------------------------------------
/* tables
/* ------------------------------------------------------------------- */

table {
  margin-bottom: 10px;
  margin-top: 10px;
}
th {
  color: #222;
  font-weight: 400;
}
td {
  color: #707070;
}
tr th, tr td {
  border-bottom: 1px solid #ccc;
  padding: 6px 10px 6px 5px;
  vertical-align: top;
}
thead th {
  background: #fff;
  color: #222;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
}
thead th a {
  color: #333;
}
thead th a:hover {
  color: #000;
}
tr:hover td, tbody tr:hover th {
  background: #fff;
}
tr.even td, tr.even th {
  background: #f9f9f9; 
}
tr.even:hover td, tr.even:hover th {
  background: #f9f9f9;
}
th.actions, td.actions {
  width: 13em;
  padding-left: 10px;
}
.alternating-rows tr:nth-child(even) {
  background: #f7f7f7;
}
td a {
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------------
/* forms
/* ------------------------------------------------------------------- */

/* clear the floats */
form:before, form:after, form li:before, form li:after {
  content: " ";
  display: table;
}
form:after, form li:after {
  clear: both;
}
fieldset {
  padding: 15px;
  margin-bottom: 10px !important;
  border: 1px solid #ddd;
  max-width: 900px;
}
fieldset.rightwise {
  margin-right: 0 !important;
}
fieldset.noTitle {
  padding: 0;
}
fieldset span[style="float: right; margin-top:-1.5em;"] {
  margin-top: -3.5em !important;
}
fieldset + div {
  margin-top: -15px;
}
legend {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  background: #f5f5f5;
  border: 1px solid #ddd;
  margin: 0 -15px 0 -16px;
  padding: 8px 15px;
  font-weight: 400 !important;
  width: 100%;
}
legend span {
  position: relative;
  width: auto;
  top: auto;
}
legend a {
  top: 10px;
}
.select2-container--default {
  width: 25em !important;
}
.select2-container--default .select2-selection--single {
  border: 1px solid #ddd;
  border-radius: 3px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: black;
  line-height: 19px;
  padding: 6px 12px;
}
.select2-container .select2-selection--single {
  height: auto;
  min-height: 30px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 6px;
}
.select2-search--dropdown {
  padding: 5px 10px;
}
li.select2-results__option {
  padding: 2px 10px;
}
label, span.fieldname {
  margin-bottom: 5px;
  margin-top: 5px;
  font-weight: 600;
}
input, textarea, select {
  background: #fff;
  color: #555;
  font-size: 14px;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  border-color: #ccc;
}
label {
  font-size: 1em;
  color: #333;
  font-weight: bold;
}
input[readonly] {
	border: 1px solid Lightgrey;
}
input.text, input.file {
  padding: 2px 0;
}
input.longtext {
  width: 50em;
}
input[type=text], input[type=number], input[type=password], input.text, input.file, textarea.textarea, select.select, select {
  padding: 6px 12px;
  font-size: 14px;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  margin: 0 5px 0 0;
}
.rightwise input[type=text], .rightwise input[type=number], .rightwise input[type=password], .rightwise input.text, .rightwise input.file, .rightwise textarea.textarea, .rightwise select.select, .rightwise select {
  margin: 0 0 0 5px;
}
input.text, textarea.textarea, .firefox select.select {
  /*width: 23em;*/
}
select {
  height: 29px;
  min-width: 60px;
  font-size: 14px;
}
select[size] {
  height: auto;
  padding: 0;
}
select[size] option {
  padding: 6px 9px;
}
/* special select */
#keywords {
  float: left;
  width: 350px !important;
}
textarea.textarea {
  height: 7em;
  width: 33em;
}
textarea.small {
  height: 3em;
}
textarea.medium {
  height: 7em;
}
input.large, select.large, textarea.large {
  width: 100%;
}
input.checkbox, input.radio {
  display: block;
  height: 13px;
  line-height: 1.5em;
  margin: 0.6em 0 0 3px;
  width: 13px;
}
input.btTxt {
  overflow: visible;
  padding: 0 7px;
  width: auto;
}
input[type=text]:focus, input[type=number]:focus, input[type=password]:focus, input.text:focus, input.file:focus, 
textarea.textarea:focus, select.select:focus, select:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}
table input, table textarea, table select {
  margin: 0;
}
div.value, div.value-wide {
  border: 1px solid #ddd;
  background: #f1f1f1;
  padding: 0.2em;
  width: 25em;
}
div.value-wide {
  width: 100%;
}
div.value pre, div.value-wide pre { 
  margin: 0;
}
input[type=checkbox] + label {
  display: inline-block;
  font-weight: normal;
  margin: 0;
}
input[type=radio] + label {
  font-weight: normal;
  margin: 0;
}
div.wicket-aa-container {
  z-index: 1201;
}
div.wicket-aa-container ul {
  padding: 0;
}
div.wicket-aa-container ul li {
  padding: 4px 5px;
}
div.wicket-aa-container ul li.selected {
  background-color: #ececec;
}

/* ----- login form */
[action$="j_spring_security_check"] span {
  display: block;
}
#header .button-group [action$="j_spring_security_check"] span {
  float: left;
}
.page-pane [key="rememberMe"] {
  float: left;
  display: block;
  margin: 5px 5px 5px 0;
}
.page-pane [action$="j_spring_security_check"] button {
  clear: both;
}
/* ----- sources */
#sources li {
  margin: 6px 0;
}
/* ----- checkbox */
.form-check .form-check-input {
  vertical-align: top !important;
  margin-top: 1em;
}

/* ----------------------------------------------------------------------
/* code
/* ------------------------------------------------------------------- */

#style-editor div div + div {
  border-color: #ccc !important;
}
.fullscreen .CodeMirror-wrap {
  height: calc(100vh - 275px) !important;
}
/* code with map preview */
.fullscreen #olPreview {
  height: calc(100vh - 332px) !important;
}
@media (min-width: 1440px) {
  .fullscreen .CodeMirror-wrap {
    height: calc(100vh - 225px) !important;
  }

  /* code with map preview */
  .fullscreen #olPreview {
    height: calc(100vh - 316px) !important;
  }
}

/* ----------------------------------------------------------------------
/* maps
/* ------------------------------------------------------------------- */

div#olPreview {
  border: 1px solid #ccc !important;
}
.ol-control.ol-scale {
  border-color: #ddd;
}

/* ----------------------------------------------------------------------
/* buttons
/* ------------------------------------------------------------------- */

button, .button-group a, .button-group button, input.btnTxt, .paginator a, input[type=button], #fullscreen-div {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.button-group button {
  width: auto;
  overflow: visible;
}
button:hover, .button-group a:hover, .button-group button:hover, input.btnTxt:hover, .paginator a:hover, input[type=button]:hover, #fullscreen-div:hover {
  background-color: #efefef;
  text-decoration: none;
  color: #333;;
}
.button-group a.icon, .button-group button.icon {
  padding-top: 0;
  padding-bottom: 0;
}
.button-group a.icon div, .button-group button.icon div {
  padding-top: 5px;
  padding-bottom: 5px;
  background-position: 0 50%;
  background-repeat: no-repeat;
}
.button-group input {
  margin-right: 5px;
}
.button-group a img, button img {
  vertical-align: middle;
  margin: -1px 0.3em -1px 0;
}
.button-group a, .button-group button {
  float: left;
  margin: 0 5px 0 0;
}
.button-toolbar {
  margin-bottom: 5px;
}
.button-toolbar a.icon, .button-toolbar button.icon {
  padding: 6px;
}
.button-toolbar select {
  min-width: auto;
  height: 34px;
}
.button-toolbar span {
  height: 20px;
  width: 20px;
  margin: 0;
}
/* specials */
.info-link {
  color: #31708f;
}
.add-link {
  color: #28a745 !important;
  cursor: pointer;
}
.add-link:hover, .add-link:active, .add-link:visited {
  color: #1e7e34;
}
.remove-link, .dismiss-link {
  color: #dc3545 !important;
  cursor: pointer;
}
.remove-link:hover, .remove-link:active, .remove-link:visited, .dismiss-link:hover, .dismiss-link:active, .dismiss-link:visited {
  color: #c82333;
}
.form-button-cancel {
  color: #dc3545 !important;
}
/* ----- full screen */
#fullscreen-div {
  width: 24px;
  height: 24px;
  padding: 5px;
}

/* custom icons */

/* ----- general */
.info-link {
  background: transparent url(../geocat/icon/ic_info_24px.svg) scroll no-repeat left center;
  padding: 2px 0 2px 24px;
  background-size: 20px 20px;
}
.help-link {
  background: transparent url(../geocat/icon/ic_info_24px.svg) scroll no-repeat left center;
  padding: 2px 2px 2px 20px;
}
.add-link {
  background: transparent url(../geocat/icon/ic_add_24px.svg) scroll no-repeat left center;
  background-size: 20px 20px;
  padding-left: 24px;
}
.remove-link, .dismiss-link {
  background: transparent url(../geocat/icon/ic_remove_24px.svg) scroll no-repeat left center;
  background-size: 20px 20px;
  padding-left: 24px;
}
.palette-theme-default .palette-buttons button.palette-add div:after {
  content: url(../geocat/icon/ic_arrow_forward_24px.svg);
  width: 20px;
  height: 20px;
  margin: -2px 0 0 -2px;
}
.palette-theme-default .palette-buttons button.palette-remove div:after {
  content: url(../geocat/icon/ic_arrow_back_24px.svg);
  width: 20px;
  height: 20px;
  margin: -2px 0 0 -2px;
}
.palette-theme-default .palette-buttons button.palette-up div:after {
  content: url(../geocat/icon/ic_arrow_upward_24px.svg);
  width: 20px;
  height: 20px;
  margin: -2px 0 0 -2px;
}
.palette-theme-default .palette-buttons button.palette-down div:after {
  content: url(../geocat/icon/ic_arrow_downward_24px.svg);
  width: 20px;
  height: 20px;
  margin: -2px 0 0 -2px;
}
.gwc-clear {
  background: transparent url(../geocat/icon/ic_delete_forever_24px.svg) scroll no-repeat left center;
  background-size: 20px 20px;
  padding-left: 24px;
}
.edit-link {
  background: transparent url(../geocat/icon/ic_edit_24px.svg) scroll no-repeat left center;
  padding: 2px 0 2px 24px;
}
.reset-link {
  background: transparent url(../geocat/icon/ic_undo_24px.svg) scroll no-repeat left center;
  padding: 2px 0 2px 24px;
}

img[src*="/img/icons/silk/add"] {
  content: url(../geocat/icon/ic_add_circle_outline_24px.svg);
  width: 20px;
  height: 20px;
}
img[src*="/img/icons/silk/tick"] {
  content: url(../geocat/icon/ic_done_24px.svg);
  width: 20px;
  height: 20px;
}
img[src*="/img/icons/silk/delete"] {
  content: url(../geocat/icon/ic_remove_circle_outline_24px.svg);
  width: 20px;
  height: 20px;
}
img[src*="/img/icons/silk/arrow_down"] {
  content: url(../geocat/icon/ic_arrow_downward_24px.svg);
  width: 20px;
  height: 20px;
}
img[src*="/img/icons/silk/arrow_up"] {
  content: url(../geocat/icon/ic_arrow_upward_24px.svg);
  width: 20px;
  height: 20px;
}

/* ----- pagination */
.paginator a {
  padding: 4px;
  margin-right: 3px;
}
.paginator a[disabled="disabled"] {
  background-color: #efefef;
  text-decoration: none;
  color: #333;
  cursor: not-allowed;
}
.paginator .goto a {
  padding: 6px 12px;
}
.paginator a.first {
  content: url(../geocat/icon/ic_first_page_24px.svg);
}
.paginator a.prev {
  content: url(../geocat/icon/ic_chevron_left_24px.svg);
}
.paginator a.next {
  content: url(../geocat/icon/ic_chevron_right_24px.svg);
}
.paginator a.last {
  content: url(../geocat/icon/ic_last_page_24px.svg);
}
/* ----- full screen */
#fullscreen-div img {
  width: 24px;
  height: 24px;
  background: url(../geocat/icon/ic_fullscreen_24px.svg) no-repeat;
}
.fullscreen-image-in {
  background: url(../geocat/icon/ic_fullscreen_exit_24px.svg) no-repeat !important;
}
/* ----- editor toolbar */
.button-group .button-undo span {
  background: url(../geocat/icon/ic_undo_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-redo span {
  background: url(../geocat/icon/ic_redo_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-goto span {
  background: url(../geocat/icon/ic_low_priority_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-reformat span {
  background: url(../geocat/icon/ic_format_align_right_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-find span {
  background: url(../geocat/icon/ic_search_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-find-next span {
  background: url(../geocat/icon/ic_zoom_in_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-replace span {
  background: url(../geocat/icon/ic_find_replace_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-picture span {
  background: url(../geocat/icon/ic_photo_size_select_actual_24px.svg) no-repeat;
  background-size: 20px 20px;
}
.button-group .button-color span {
  background: url(../geocat/icon/ic_palette_24px.svg) no-repeat;
  background-size: 20px 20px;
}
/* ----- login */
[action$="j_spring_security_check"] button {
  background: #2bb24c;
  color: #fff;
  border: 0;
}
[action$="j_spring_security_check"] button:hover {
  background: #249540;
  color: #fff;
}
[action$="j_spring_security_check"] button img {
  display: none;
}
[action$="j_spring_security_check"] button span {
  float: none !important;
}
/* ----- logout */
[action$="j_spring_security_logout"] button {
  background: #ff5722;
  color: #fff;
  border: 0;
}
[action$="j_spring_security_logout"] button:hover {
  background: #fd3d00;
  color: #fff;
}
[action$="j_spring_security_logout"] button img {
  display: none;
}
[action$="j_spring_security_logout"] button span {
  float: none !important;
}

/* ----------------------------------------------------------------------
/* wicket popup
/* ------------------------------------------------------------------- */

div.wicket-modal {
  min-width: var(--gse-modal-min-width);
  min-height: var(--gse-modal-min-height);
}
div.wicket-modal div.w_caption {
  border-bottom: 1px solid #bbb;
  padding: 12px 10px 10px 10px;
  background: #f7f7f7;
}
div.wicket-modal h3.w_captionText {
  color: #404040;
  font-size: 16px !important;
  font-weight: normal !important;
  position: relative;
  margin: 0;
}
div.wicket-modal div.w_blue {
  border: 1px solid #ddd;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
}
div.wicket-modal div.w_blue div.w_bottom, div.wicket-modal div.w_blue div.w_bottomRight, div.wicket-modal div.w_blue div.w_bottomLeft,
div.wicket-modal div.w_blue div.w_left, div.wicket-modal div.w_blue div.w_right {
  background: #fff;
  background-image: none !important;
}
div.wicket-modal div.w_top_1, div.wicket-modal div.w_bottom_1 {
  display: none;
}
div.wicket-modal div.w_right_1, div.wicket-modal div.w_content_1 {
  margin: 0;
}
div.wicket-modal div.w_content_2 {
  margin-top: 10px;
}
div.wicket-modal div.w_content_3 {
  border: 0 !important;
}
div.wicket-modal div.w_content_container {
  line-height: 1.7;
  margin: 0;
  padding: 10px;
  min-height: var(--gse-modal-min-height);
}
div.wicket-modal a.w_close {
  right: 10px;
  background: url('../img/times-solid.svg') no-repeat center center !important;
}
div.wicket-modal a.w_close:hover {
  /* red */
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);

  /* more filter: https://codepen.io/sosuke/pen/Pjoqqp */
}
div.wicket-modal h3 {
  margin:  0;
  border-bottom: 0;
  padding: 0;
}
div.wicket-modal textarea {
  min-height: calc(var(--gse-modal-min-height) - 200px);
  min-width: calc(var(--gse-modal-min-width) - 45px);
}

/* ----------------------------------------------------------------------
/* status bar
/* ------------------------------------------------------------------- */

.status_bar {
  border-color: #bbb;
}

/* ----------------------------------------------------------------------
/* treeview and toolbar
/* ------------------------------------------------------------------- */
.menu {
	background-color: #fff;
  border: 0;
  padding: 0;
  height: auto;
}
.menu a {
  margin: 0 5px 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  padding: 4px 8px;
}
.menu a.disabled {
  border-color: #eee;
}
.menu a:hover {
  background-color: #efefef;
  color: #333;
}
.menu a.disabled:hover {
  background: none;
}
.menu a .button-content {
  height: 18px;
  line-height: 18px;
}
.treeview {
  border: 1px solid #ccc;
  font-size: 13px;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.treeview li {
  padding: 3px;
}
.treeview li .leaf span {
  padding: 3px;
}

/* ----------------------------------------------------------------------
/* i18n
/* ------------------------------------------------------------------- */

.i18n-panel td {
  vertical-align: middle;
}
ul[class^="i18n-"] {
  margin-top: 5px;
  margin-bottom: 5px;
}
ul[class^="i18n-"] label {
  margin: 0;
}

/* custom icons - presently menu navigation icons are hidden rather than customized */
/* @import url("geoserver_icons.css"); */