/*
 * FIP custom CSS overlay
 * Volume-mounted over /usr/local/tomcat/webapps/mapstore/custom.css
 * Linked from index/2025.02.01/fip-index.html
 */

/* Hide elements not addressable via localConfig plugin removal */
button:has(> span.glyphicon-option-horizontal) { display: none !important;}

/* Hide add annotations button row in layer panel (Annotations plugin kept for Measure integration) */
.mapstore-toc-head .row:nth-child(3) { display: none; }

/* Modify navbar to make space for report tools */
#navigationBar-container {
  bottom: 140px !important; /* 3x35px + original margin 35px */
  margin-bottom: 2px !important;
}

.custom-control {
  box-shadow: none !important;
  color: #FFF !important;
  position: absolute !important;
  right: 40px !important;
  bottom: 0px !important;
  margin-bottom: 5px !important;
  margin-right: 5px !important;
  font-size: 24px !important;
  border-radius: 0px !important;
}

#report-by-point {
  bottom: 70px !important;
}

#report-by-polygon {
  bottom: 35px !important;
}

.custom-control button {
  border-width: 1px !important;
  border-color: rgb(6, 121, 143) !important;
}

.custom-control .glyphicon-map-marker {
  color: #FFF !important;
}

/* FIP brand colors via MapStore CSS custom properties */
:root {
  --ms-primary: #0093D0;
  --ms-primary-contrast: #FFFFFF;
}

.ms2 .btn-tray {
    color: #00467F !important;
}

.ms2 .btn-tray:hover {
    background-color: #00467F !important;
    color: #9AF2E8 !important;
}

.ms2 .btn-success.active, .ms2 .btn-success:active, .ms2 .open > .dropdown-toggle.btn-success {
    background-color: #00467F !important;
    color: #9AF2E8 !important;
}

/* Transparency: layer switcher */
.navHeader { background-color: #FFF !important; }

.ms2 .nav-menu {
    background-color: rgba(255, 255, 255, 0) !important;
}

.ms2 .panel {
    background: rgba(255, 255, 255, 0.7) !important;
}

.ms2 .mapstore-layers-container {
    background: rgba(255, 255, 255, 0.7) !important;
}

.ms2 .toc-default-group .toc-default-group-head {
    background: rgba(255, 255, 255, 0.7) !important;
}

.ms2 .toc-default-group {
    background: rgba(255, 255, 255, 0) !important;
}

/* Transparency: info window */
.ms2 .ms-side-panel > div > div {
    background: rgba(255, 255, 255, 0) !important;
}

.ms2 .m-header, .ms2 .ms2-border-layout-content, .ms2 .sidepanel-content {
    background: rgba(255, 255, 255, 0) !important;
}
