.leaflet-legend {
  background-color: white;
}

.leaflet-legend-title {
  margin: 3px;
  padding-bottom: 5px;
}

.leaflet-legend-column {
  float: left;
  margin-left: 10px;
}


.leaflet-legend-item {
  display: table;
  margin: 2px 0;
}

.leaflet-legend-item span {
  vertical-align: middle;
  display: table-cell;
  word-break: keep-all;
  white-space: nowrap;
  background-color: transparent;
  text-align: left;
}

.leaflet-legend-item-clickable {
  cursor: pointer;
}

.leaflet-legend-item-inactive span {
  color: #cccccc;
}

.leaflet-legend-item-inactive i img, .leaflet-legend-item-inactive i canvas {
  opacity: 0.3;
  /*
  color: #000000;
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  filter: gray;
  */
}

.leaflet-legend-item i {
  display: inline-block;
  padding: 0px 3px 0px 4px;
  position: relative;
  vertical-align: middle;
}

.leaflet-legend-toggle {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0yMSA1TDEwIDVNMjEgMTlMMTAgMTlNMjEgMTJMMTAgMTJNNiA1QzYgNS44Mjg0MyA1LjMyODQzIDYuNSA0LjUgNi41QzMuNjcxNTcgNi41IDMgNS44Mjg0MyAzIDVDMyA0LjE3MTU3IDMuNjcxNTcgMy41IDQuNSAzLjVDNS4zMjg0MyAzLjUgNiA0LjE3MTU3IDYgNVpNNiAxOUM2IDE5LjgyODQgNS4zMjg0MyAyMC41IDQuNSAyMC41QzMuNjcxNTcgMjAuNSAzIDE5LjgyODQgMyAxOUMzIDE4LjE3MTYgMy42NzE1NyAxNy41IDQuNSAxNy41QzUuMzI4NDMgMTcuNSA2IDE4LjE3MTYgNiAxOVpNNiAxMkM2IDEyLjgyODQgNS4zMjg0MyAxMy41IDQuNSAxMy41QzMuNjcxNTcgMTMuNSAzIDEyLjgyODQgMyAxMkMzIDExLjE3MTYgMy42NzE1NyAxMC41IDQuNSAxMC41QzUuMzI4NDMgMTAuNSA2IDExLjE3MTYgNiAxMloiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8L3N2Zz4NCg==");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  box-shadow: none;
  border-radius: 4px;
}

.leaflet-legend-contents {
  display: none;
  user-select: none;
}

.leaflet-legend-expanded .leaflet-legend-contents {
  display: block;
  padding: 6px 15px 6px 6px;
}

.leaflet-legend-contents img {
  position: absolute;
}

.leaflet-legend-contents:after {
  content: "";
  display: block;
  clear: both;
}
