@font-face {
  font-family: "hindregular";
  src: url("https://dp.observatory.org.in/themes/bartik/font/Hind-Regular.ttf");
}

@font-face {
  font-family: "hindbold";
  src: url("https://dp.observatory.org.in/themes/bartik/font/Hind-Bold.ttf");
}

@font-face {
  font-family: "hindsemibold";
  src: url("https://dp.observatory.org.in/themes/bartik/font/Hind-SemiBold.ttf");
}

@font-face {
  font-family: "hindlight";
  src: url("https://dp.observatory.org.in/themes/bartik/font/Hind-Light.ttf");
}

::-webkit-scrollbar {
  width: 6px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background-color: rgba(20, 87, 167, 0);
}

::-webkit-scrollbar-thumb {
  background-color: #b2afaf;
  border-radius: 25px;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
  background-color: rgba(20, 87, 167, 0);
}

.infoContainer {
  font-size: 1.1rem;
  /*text-align: justify;*/
  /* margin: 10px 8px; */
  padding: 10px;
  position: relative;
  font-family: "hindregular";
  color: #353535;
}

#regionDetails {
  display: none;
  font-size: 0.95rem;
  position: absolute;
  top: 15px;
  left: 40%;
  padding: 11px 17px;
  background-color: #fff;
  z-index: 1010;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
  color: #464646;
}

#fInfoContainer .infoContent table tr td:last-child {
  width: 40% !important;
  font-size: 0.8rem !important;
}

#fInfoContainer .infoContent table tr td:first-child {
  width: 35% !important;
  font-size: 0.8rem !important;
  word-wrap: break-word;
}

.infoContainer select {
  width: 98% !important;
  padding: 13px 15px;
  font-size: 0.9rem;
  color: #1b1b1b;
  border-radius: 3px;
  border: 1px solid #d0d0d0;
}

#content .section {
  padding: 0 7px !important;
}

.ui-autocomplete.ui-widget-content::-webkit-scrollbar {
  width: 0.4rem;
  height: 0.45rem;
}

.ui-autocomplete.ui-widget-content::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
  border-radius: 10px;
}

.ui-autocomplete.ui-widget-content::-webkit-scrollbar-thumb {
  background-color: #d4d4d4;
  outline: 0px solid #bbb;
}

.ui-autocomplete.ui-widget-content::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0;
  outline: 0px solid #bbb;
}

/* Search Region Input & Mark Default Location Button */
#mapContent #searchRegion {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  z-index: 1010 !important;
  width: 300px !important;
  height: 42px !important;
  box-sizing: border-box !important;
  padding: 0 16px 0 40px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2364748b' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") no-repeat 14px center / 15px 15px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

#mapContent #searchRegion:focus {
  border-color: #d29d4d !important;
  box-shadow: 0 4px 18px rgba(210, 157, 77, 0.25) !important;
  outline: none !important;
}

#mapContent #searchRegion.highlight-pulse {
  outline: 3px solid #d29d4d !important;
  box-shadow: 0 0 18px rgba(210, 157, 77, 0.75) !important;
  animation: searchRegionPulse 1.4s ease-in-out infinite alternate;
}

@keyframes searchRegionPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.025); }
}

@keyframes markDefaultFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#mapContent .btn-mark-default,
#mapContent #markDefaultSearch {
  position: absolute !important;
  top: 15px !important;
  left: 325px !important;
  z-index: 1010 !important;
  height: 42px !important;
  box-sizing: border-box !important;
  padding: 0 18px !important;
  display: none;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(210, 157, 77, 0.45) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.3) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
}

#mapContent .btn-mark-default.show,
#mapContent #markDefaultSearch.show,
#mapContent .btn-mark-default[style*="display: block"],
#mapContent #markDefaultSearch[style*="display: block"],
#mapContent .btn-mark-default[style*="display: inline"],
#mapContent #markDefaultSearch[style*="display: inline"] {
  display: inline-flex !important;
  animation: markDefaultFadeIn 0.25s ease-out;
}

#mapContent .btn-mark-default i,
#mapContent #markDefaultSearch i {
  color: #e5b96a !important;
  font-size: 13px !important;
  transition: transform 0.2s ease !important;
}

#mapContent .btn-mark-default:hover,
#mapContent #markDefaultSearch:hover {
  background: linear-gradient(135deg, #143527 0%, #22533e 100%) !important;
  color: #ffffff !important;
  border-color: rgba(210, 157, 77, 0.75) !important;
  box-shadow: 0 6px 18px rgba(27, 67, 50, 0.42) !important;
  transform: translateY(-1px) !important;
}

#mapContent .btn-mark-default:hover i,
#mapContent #markDefaultSearch:hover i {
  transform: scale(1.18) !important;
}

#mapContent .btn-mark-default:active,
#mapContent #markDefaultSearch:active {
  transform: translateY(0) !important;
}

.ui-autocomplete.ui-widget-content {
  min-width: 300px !important;
  max-width: 420px !important;
  z-index: 1050 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
  #mapContent #searchRegion {
    top: 12px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
  }
  #mapContent .btn-mark-default,
  #mapContent #markDefaultSearch {
    top: 60px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    justify-content: center !important;
  }
}


#rightPanel .container .block {
  padding: 7px 10px;
  border: 1px solid #f1f1f1;
  border-radius: 5px;
}

#rightPanelAccordion .ui-widget-content {
  padding: 5px 10px 0 10px !important;
}

#rightPanel label {
  font-weight: normal;
}

#rightPanel label input[type="checkbox"] {
  vertical-align: top;
  margin-right: 5px;
}

.map-icon-tools {
  z-index: 1005 !important;
}

/* Drupal customized css */
.meta.submitted {
  display: none;
}

.tabs {
  display: none !important;
}

#breadcrumb {
  display: none !important;
}

.p {
  margin: 0 !important;
}

h1#page-title {
  display: none !important;
}

h2 {
  font-weight: bold;
  margin-bottom: 15px !important;
  margin-top: 0;
  font-size: 1.3rem !important;
}

h4 {
  margin: 5px 0 10px 0 !important;
}

.legendRow {
  margin-bottom: 0.5rem;
}

.legendRow p {
  margin: 0 !important;
}

#legendContent {
  max-height: 25rem !important;
  padding: 15px !important;
  display: none;
}

#selectedRegionInfo {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #fff;
  padding: 10px 15px;
  z-index: 1010;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  text-align: center;
}

#fInfoContainer .infoContent table tr td:last-child {
  width: 49% !important;
}

#toolControlToggle {
  z-index: 1100 !important;
}

#outputMapTools {
  z-index: 1100 !important;
}

#mapTools {
  display: none;
}

#fInfoContainer .infoContent {
  max-height: 15rem;
}

.infoContainer ol,
ul {
  list-style: none;
}

.infoContainer a {
  text-decoration: none;
}

.infoContainer ul li {
  width: 10rem;
  min-width: 130px;
  /* height: 399px; */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 10px 0 rgba(216, 216, 216, 0.5);
  background-color: #ffffff;
  padding: 25px 15px;
  margin-left: 30px;
  float: left;
  margin-bottom: 30px;
  z-index: 10;
  position: relative;
}

.infoContainer .btn-download {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.infoContainer .btn {
  display: inline-block;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* background-color: transparent; */
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.olControlLayerSwitcher .maximizeDiv,
.olControlLayerSwitcher .minimizeDiv {
  top: 10px !important;
  right: 10px !important;
  padding: 5px !important;
  border-radius: 3px !important;
  background-color: #fff;
}

.olControlLayerSwitcher .maximizeDiv img,
.olControlLayerSwitcher .minimizeDiv img {
  width: 1.4rem !important;
  min-width: 23px !important;
  vertical-align: middle !important;
}

.olControlLayerSwitcher {
  /*position: absolute; */
  top: 10px !important;
  right: 0 !important;
  width: 30% !important;
  min-width: 300px;
  font-size: 0.8em !important;
  color: white !important;
  background-color: transparent !important;
  display: inline-block !important;
}

.olControlLayerSwitcher .layersDiv {
  background-color: #fffffff0 !important;
  color: rgba(60, 60, 60, 0.84) !important;
  font-size: 0.8rem !important;
  /* border-radius: 5px !important; */
  max-height: 250px !important;
  height: unset !important;
  overflow-y: auto !important;
  font-weight: normal !important;
  margin-right: 16% !important;
  margin-top: 10px !important;
  padding: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.olControlLayerSwitcher .layersDiv .baseLbl,
.olControlLayerSwitcher .layersDiv .dataLbl {
  margin-top: 10px !important;
  margin-left: 3px !important;
  margin-bottom: 7px !important;
  /* text-transform: uppercase !important; */
  font-size: 0.85rem !important;
  color: #8a8a8a !important;
}

.baseLayersDiv .labelSpan,
.dataLayersDiv .labelSpan {
  vertical-align: top !important;
  display: inline-block !important;
  font-size: 0.9rem !important;
  font-weight: normal !important;
  width: 85% !important;
  margin: 6px 0 !important;
  line-height: 0.6rem !important;
}


.olControlLayerSwitcher .layersDiv::-webkit-scrollbar {
  width: 0.4rem;
  height: 0.45rem;
}

.olControlLayerSwitcher .layersDiv::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
  border-radius: 10px;
}

.olControlLayerSwitcher .layersDiv::-webkit-scrollbar-thumb {
  background-color: #d4d4d4;
  outline: 0px solid #bbb;
}

.olControlLayerSwitcher .layersDiv::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0;
  outline: 0px solid #bbb;
}

.buttonGO {
  width: 9% !important;
  min-width: 100px !important;
  font-size: 1rem;
  padding: 10px;
}

.buttonGO.noSubmit {
  background: #f7f7f7;
  color: #014e38;
  font-weight: normal;
  border: 1px solid #06a779;
}

#migrantsAccordion .buttonGO,
#vulnerableAccordion .buttonGO {
  font-weight: normal;
  font-size: unset;
  padding: 5px;
  margin-bottom: 10px;
}

.map-icon-tools {
  bottom: 7vh;
  text-align: right !important;
}

#processAddLayer {
  position: absolute !important;
}

.processWait {
  position: absolute !important;
  top: 25% !important;
  left: 45% !important;
  width: 300px !important;
}

.grey.lighten-3 {
  background-color: rgba(238, 238, 238, 0.63) !important;
}

#exportMapIcon {
  cursor: pointer;
  display: block;
  margin: 0px;
  margin-bottom: 5px;
  padding: 0;
  color: #424242;
  font-size: 17px;
  font-family: -webkit-body;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  height: 30px;
  /* width: 30px; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  /* background: url(https://dp.observatory.org.in/explore/images/export-map.png) no-repeat center !important; */
  user-select: none;
  background-size: 80%;
  background-color: #fff;
  background-image: url(https://dp.observatory.org.in/explore/images/export-map.png) !important;
  background-position: center;
  background-repeat: no-repeat;
}

#processMapExport {
  top: 0;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 100000;
  background-color: rgb(226, 226, 226);
  background-position: center;
  background-size: 100% 100%;
  position: inherit;
  z-index: 100;
}

.processWaitME {
  position: absolute !important;
  top: 25% !important;
  left: 45% !important;
  width: 300px !important;
}

.processWaitME {
  display: inline-block;
  background-color: #fff;
  border-radius: 3px;
  color: #000;
  font-size: 15px;
  margin: auto;
  position: fixed;
  padding: 10px;
  text-align: center;
  top: 30%;
  left: 50%;
  width: 300px;
  margin-left: -140px;
}

#processTitleME {
  margin-bottom: 30px;
}

#usefulLinks,
#surveyForm {
  border: 1px solid #efefef;
  padding: 10px 30px;
  background-color: #f4f4f4;
  border-radius: 5px;
  margin: 25px 0;
  font-size: 1rem;
}

#surveyForm p {
  padding: 10px 0;
  margin-bottom: 0 !important;
}

.ui-helper-reset {
  font-size: 0.9rem !important;
}

.lswitch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  vertical-align: top;
  margin-bottom: 7px;
}

.lswitch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.lslider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.lslider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 2px;
  background-color: #2a6d9f;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

/* Rounded sliders */
.lslider.round {
  border-radius: 34px;
}

.lslider.round:before {
  border-radius: 50%;
}

.lswitch input:checked+.lslider {
  background-color: #40e29e;
}

.lswitch input:focus+.lslider {
  box-shadow: 0 0 1px #2196f3;
}

.lswitch input:checked+.lslider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

#leftPanel .label {
  line-height: 1.3rem;
  margin-left: 10px;
  display: inline-block;
}

.ui-accordion-content {
  overflow: auto;
  margin-top: 0 !important;
}

.migranttabs {
  width: 98%;
  padding: 10px;
  background-color: #fbfbfb;
}

.migranttabs .mtab {
  display: inline-block;
  padding: 10px;
  font-size: 1rem;
  background-color: #ececec;
  cursor: pointer;
  width: 11%;
  text-align: center;
  border-radius: 2px;
  font-weight: bold;
}

.migranttabs .mtab:hover,
.migranttabs .mtab.active {
  background-color: #06a879;
  color: #fff;
}

div.olControlZoom a {
  height: 35px !important;
  width: 35px !important;
  line-height: 2.2rem !important;
  color: #4c4c4c !important;
}

#fInfoContainer .infoContent table {
  width: 100% !important;
}

#legendContent::-webkit-scrollbar {
  width: 0.7rem !important;
}

.jh_map_layer_opacity {
  width: 40%;
  font-size: 17px;
  vertical-align: top;
  padding-top: 3px;
  float: right;
}

.jh_map_layer_opacity_start {
  display: inline-block;
}

.jh_map_layer_opacity_slider {
  display: inline-block;
}

.jh_map_layer_opacity_end {
  display: inline-block;
}

[aria-labelledby="spLayers"] p {
  margin-bottom: 1.7rem;
}

#leftPanel .ui-widget-content::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.45rem;
}

#leftPanel .ui-widget-content::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgb(34 41 130);
  border-radius: 10px;
}

#leftPanel .ui-widget-content::-webkit-scrollbar-thumb {
  background-color: #242c86;
  outline: 0px solid #bbb;
}

#leftPanel .ui-widget-content::-webkit-scrollbar-thumb:hover {
  background-color: #1a1f61;
  outline: 0px solid #bbb;
}

@media (min-width: 320px) {
  #map {
    width: 100%;
    float: center;
  }

  #mapContent {
    width: 100% !important;
    height: 98vh;
    position: relative;
    /*float: right;*/
    margin-bottom: 0 !important;
  }

  #mapContent #searchRegion {
    padding: 12px;
    border: none;
    border-radius: 4px !important;
    font-size: 15px;
    top: 1%;
    left: 2%;
    width: 96%;
  }

  div.olControlZoom a {
    height: 50px !important;
    width: 50px !important;
    line-height: 3.5rem !important;
    color: #4c4c4c !important;
  }

  #indexLegend,
  #layerIcon {
    margin-bottom: 5px !important;
    padding: 6px 5px !important;
    font-weight: normal !important;
    font-size: 13px !important;
    background-color: #fff;
    border-radius: 3px;
  }

  #indexLegend {
    background-size: 7vw !important;
    width: 8vw;
  }

  #layerIcon {
    position: absolute;
    bottom: 13vh;
    right: 1vw;
    z-index: 1010;
  }

  #indexLegend i,
  #layerIcon i {
    font-size: 3rem !important;
  }

  #fInfoContainer {
    font-size: 13px;
    top: 10%;
    z-index: 1010;
    width: 60%;
    text-align: left;
    min-width: 180px;
    border-radius: 10px;
  }

  #Legends {
    z-index: 1010 !important;
    bottom: 8vh !important;
    width: auto;
    /* max-width: 50vw; */
    right: 22vw;
  }

  #layerSwitcher {
    display: block;
    background-color: #ffffff;
    color: #484848;
    position: absolute;
    font-size: 0.75em;
    right: unset;
    left: 5px;
    bottom: 2vh;
    z-index: 1010;
    width: 60%;
    height: 55vh;
    overflow-y: auto;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
  }

  #leftPanel,
  #rightPanel {
    width: 93%;
    padding: 10px;
    border-radius: 0;
    margin-right: 0;
    margin-top: 0px;
    padding-top: 0;
    overflow-y: auto;
    /*max-height: 1000px;*/
  }

  #leftPanel h5 {
    margin: 15px 0;
    font-size: 1rem;
  }

  #accordion .ui-state-active,
  .ui-widget-content .ui-state-active,
  .ui-widget-header .ui-state-active,
  a.ui-button:active,
  .ui-button:active,
  .ui-button.ui-state-active:hover,
  #rightPanelAccordion .ui-state-active,
  .ui-widget-content .ui-state-active,
  .ui-widget-header .ui-state-active,
  a.ui-button:active,
  .ui-button:active,
  .ui-button.ui-state-active:hover {
    font-size: 14px !important;
  }

  .ui-accordion .ui-accordion-header {
    border: 0 !important;
    /* border: 1px solid #f3f3f3 !important; */
    background: #00000000;
    font-weight: bold !important;
    color: #484848 !important;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin: 3px 0 0 0 !important;
  }

  .ui-widget-content {
    border: 1px solid #343fc7 !important;
    border-top: none !important;
    border-radius: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 10px 10px 7px 10px !important;
  }

  #leftPanel .ui-widget-content {
    text-align: left !important;
    background-color: #f1f1f1;
    color: #2b2b2b;
    font-size: 13px !important;
    border: none !important;
  }

  .ui-accordion .ui-accordion-header {
    padding: 10px 5px !important;
    font-size: 14px !important;
  }

  .ui-autocomplete.ui-menu .ui-menu-item {
    font-size: 1rem;
  }

  .ui-autocomplete.ui-menu .ui-menu-item {
    padding: 0.1em 0em !important;
  }

  .ui-autocomplete.ui-widget-content a {
    color: #383838 !important;
    font-weight: normal !important;
    font-size: 14px !important;
    padding: 1em !important;
  }

  .ui-autocomplete.ui-menu {
    padding: 0 !important;
    max-width: 60vw !important;
    z-index: 2000;
  }

  #leftPanel .ui-widget-content a {
    color: #142eaf;
    text-decoration: underline;
  }

  .legendRow img {
    height: 10vh;
    margin-bottom: 1vh;
  }

  #indexLegend.active {
    background-size: 7vw !important;
    width: 8vw;
  }

  .legendRowTitle {
    font-size: 10px !important;
  }

  .olControlZoom {
    display: none;
  }

  #gettingstartedPopup {
    display: block;
    position: absolute;
    z-index: 1020;
    margin-left: 13%;
    width: 70%;
    top: 19%;
    background-color: rgb(9, 45, 93);
    color: rgb(255, 255, 255);
    padding: 0 3.5vw 1vh;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 0 10px 1px #0000002e;
  }

  #gettingstartedPopup span {
    font-size: 18px !important;
    margin-top: 1vh !important;
  }

  #valLat,
  #valLon {
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 5px !important;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    color: #444444 !important;
    font-size: 0.9rem;
    font-size: 14px;
    width: 30%;
    display: inline-block;
  }

  #valGo,
  #dateGo {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px !important;
    background: #5aab23;
    outline: none;
    box-sizing: border-box;
    color: #ffffff !important;
    font-size: 0.9rem;
    /* margin: 5px 0; */
    font-size: 14px;
    width: 25%;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    margin-left: 15px;
  }

  #quickRefPopup {
    position: absolute;
    z-index: 1010;
    top: 10%;
    left: 10%;
    width: 70%;
    padding: 3vw;
    font-size: 1.5rem;
    background-color: #fff;
    color: #2f2f2f !important;
    box-shadow: 0 0 10px 1px #0000002e;
    border-radius: 8px;
    display: none;
  }

  #quickRefPopup table {
    color: #2f2f2f !important;
    font-size: 1.1rem !important;
    width: 100%;
  }

  #explorerIntro {
    background-color: #2a6d9f;
    color: #fff;
    font-size: 11px;
    padding: 10px;
    /* font-weight: bold; */
    border-radius: 5px;
  }

  #closeLayer {
    float: right;
    padding: 13px 4px 5px 5px !important;
    font-size: 17px !important;
    margin-bottom: 10px !important;
    z-index: 1000;
  }

  .map-icon-tools {
    bottom: 5vh;
    text-align: right !important;
  }

  #fInfoContainer .infoContent table tr td:last-child {
    width: 49% !important;
  }

  #fInfoContainer .infoContent table tr td:first-child {
    width: 34% !important;
    font-size: 0.7rem !important;
    word-wrap: break-word;
  }

  #fInfoContainer .infoContent table tr td:last-child {
    width: 45% !important;
    font-size: 0.7rem !important;
  }
}

/*@media (min-width:480px)  { /* smartphones, Android phones, landscape iPhone */
/*}*/
/*@media (min-width:600px)  { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */
/*}*/
/*@media (min-width:801px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */
/*}*/
@media (min-width: 1025px) {
  .infoContainer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    height: calc(100vh - 70px);
    overflow: hidden;
  }

  #leftPanel {
    width: 20%;
    height: 98%;
    background-color: #f1f1f1;
    padding: 15px 20px;
    border-radius: 5px;
    overflow-y: auto;
    box-sizing: border-box;
  }

  #mapContainer {
    flex: 1;
    height: 98%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #statsBar {
    flex-shrink: 0;
    margin-bottom: 10px;
  }

  #map #mapContainer {
    flex: 1;
    position: relative;
    padding: 0;
    border: 1px solid #ccc !important;
    border-radius: 5px;
    width: 100%;
    overflow: hidden;
  }

  #mapContent {
    width: 100% !important;
    height: 100% !important;
    position: relative;
  }

  #mapContent #searchRegion {
    padding: 14px 20px;
    border: none;
    border-radius: 5px !important;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    color: #444444 !important;
    font-size: 0.9rem;
    font-size: 1rem;
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25%;
    z-index: 1010;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
  }

  div.olControlZoom a {
    height: 35px !important;
    width: 35px !important;
    line-height: 2.2rem !important;
    color: #4c4c4c !important;
  }

  #indexLegend,
  #layerIcon {
    cursor: pointer !important;
    display: block;
    margin: 0px !important;
    margin-bottom: 5px !important;
    padding: 10px 7px !important;
    color: #3a3a3a !important;
    width: 22px;
    height: 15px !important;
    background-color: #fff !important;
    font-weight: normal !important;
    font-size: 1.1rem !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    border-radius: 3px !important;
    user-select: none !important;
    background-size: unset !important;
  }

  #indexLegend i,
  #layerIcon i {
    font-size: 1rem !important;
  }

  #fInfoContainer {
    font-size: 1rem;
    top: 4%;
    z-index: 1010;
    text-align: left !important;
    min-width: 180px;
    border-radius: 10px;
  }

  #Legends {
    background-color: rgba(255, 255, 255, 0.95) !important;
    display: inline-block;
    z-index: 1005 !important;
    bottom: 38px !important;
    width: 15% !important;
    min-width: 200px !important;
    right: 5%;
  }

  #layerSwitcher {
    display: none;
    background-color: #ffffff;
    color: #484848;
    position: absolute;
    font-size: 0.75em;
    right: 16px;
    top: 7%;
    z-index: 1010;
    width: 60%;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
  }

  #leftPanel h5 {
    margin: 10px 0;
    font-size: 1rem;
  }

  #rightPanel h5 {
    margin: 6px 0;
    font-size: 0.92rem;
  }

  #rightPanel .container {
    padding: 7px 10px;
    border: 1px solid #06a779;
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: #ffffff;
    top: 0;
    font-size: 0.9rem;
  }

  #rightPanel .container p {
    margin: 0;
    margin-bottom: 4px;
    padding: 5px 10px;
    cursor: pointer;
    /*border-left: 4px solid #e8e8e8;*/
    border-bottom: 1px solid #efefef;
  }

  #accordion .ui-state-active,
  .ui-widget-content .ui-state-active,
  .ui-widget-header .ui-state-active,
  a.ui-button:active,
  .ui-button:active,
  .ui-button.ui-state-active:hover,
  #rightPanelAccordion .ui-state-active,
  .ui-widget-content .ui-state-active,
  .ui-widget-header .ui-state-active,
  a.ui-button:active,
  .ui-button:active,
  .ui-button.ui-state-active:hover {
    /*border-left: 7px solid #06a779 !important; */
    background: #f1f1f1 !important;
    font-weight: normal !important;
    color: #4a4a4a !important;
    font-weight: bold !important;
    /* border: 1px solid #f1f1f1 !important; */
    border-bottom: none !important;
    border-radius: 5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    padding-bottom: 0 !important;
    font-size: 1rem !important;
  }

  .ui-accordion .ui-accordion-header {
    border: 0 !important;
    /* border: 1px solid #f3f3f3 !important; */
    background: #00000000;
    font-weight: bold !important;
    color: #484848 !important;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin: 3px 0 0 0 !important;
  }

  .ui-widget-content {
    border: 1px solid #343fc7 !important;
    border-top: none !important;
    border-radius: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 15px 15px 10px 15px !important;
  }

  #leftPanel .ui-widget-content {
    text-align: left !important;
    background-color: #f1f1f1;
    color: #2b2b2b;
    font-size: 0.9rem !important;
    border: none !important;
  }

  .ui-accordion .ui-accordion-header {
    padding: 1rem !important;
    font-size: 0.9rem !important;
  }

  .ui-autocomplete.ui-menu .ui-menu-item {
    font-size: 0.9rem;
  }

  .ui-autocomplete.ui-menu .ui-menu-item {
    padding: 0.1em 0em !important;
  }

  .ui-autocomplete.ui-widget-content a {
    color: #383838 !important;
    font-weight: normal !important;
    font-size: 0.9rem !important;
    padding: 0.7em 0.5em !important;
  }

  .ui-autocomplete.ui-menu {
    padding: 0 !important;
  }

  #leftPanel .ui-widget-content a {
    color: #142eaf;
    text-decoration: underline;
  }

  .legendRow img {
    height: auto;
    margin-bottom: 0;
  }

  #indexLegend.active {
    background-color: #fff !important;
    background-size: 30px !important;
    width: 22px;
    height: 15px !important;
  }

  .legendRowTitle {
    font-size: 0.85rem !important;
  }

  .olControlZoom {
    display: block;
  }

  #gettingstartedPopup {
    display: block;
    position: absolute;
    z-index: 1020;
    margin-left: 28%;
    width: 40%;
    top: 20%;
    background-color: rgb(9, 45, 93);
    color: rgb(255, 255, 255);
    padding: 0.5vw 2vw;
    font-size: 1.15rem;
    box-shadow: 0 0 10px 1px #0000002e;
    border-radius: 8px;
  }

  #gettingstartedPopup span {
    font-size: 1.5rem !important;
    margin-top: 1vh !important;
  }

  #valLat,
  #valLon {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px !important;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    color: #444444 !important;
    font-size: 0.9rem;
    font-size: 0.89rem;
    width: 30%;
    display: inline-block;
  }

  #valGo,
  #dateGo {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px !important;
    background: #5aab23;
    outline: none;
    box-sizing: border-box;
    color: #ffffff !important;
    font-size: 0.9rem;
    width: 25%;
    display: inline-block;
    text-align: center;
    margin-left: 10px;
    font-weight: bold;
    cursor: pointer;
  }

  #quickRefPopup {
    position: absolute;
    z-index: 1010;
    top: 10%;
    left: 32%;
    width: 35%;
    min-width: 500px;
    padding: 30px;
    font-size: 1rem;
    background-color: #fff;
    color: #2f2f2f !important;
    box-shadow: 0 0 10px 1px #0000002e;
    border-radius: 8px;
    display: none;
  }

  #quickRefPopup table {
    color: #2f2f2f !important;
    font-size: 0.9rem !important;
    width: 100%;
  }

  #explorerIntro {
    background-color: #2a6d9f;
    color: #fff;
    font-size: 0.9rem;
    padding: 2px 15px;
    /* font-weight: bold; */
    border-radius: 5px;
    text-align: justify;
  }

  #closeLayer {
    float: right;
    padding: 20px 20px 10px 10px;
    font-size: 1.8rem;
    margin-bottom: 10px;
    z-index: 1000;
  }

  .map-icon-tools {
    bottom: 7vh;
    text-align: right !important;
  }

  #fInfoContainer .infoContent table tr td:first-child {
    width: 34% !important;
    font-size: 0.8rem !important;
    word-wrap: break-word;
  }

  #fInfoContainer .infoContent table tr td:last-child {
    width: 48% !important;
  }
}

/*@media (min-width:1281px) { /* hi-res laptops and desktops */
/*}*/

.noUi-handle {
  border: 1px solid #40e29e !important;
  background: #40e29e !important;
}

.noUi-horizontal .noUi-handle {
  width: 11px !important;
  height: 11px !important;
}

.ui-widget {
  font-family: inherit !important;
}

#gettingStartedBtn {
  width: fit-content;
  padding: 7px 15px;
  background-color: #5aab23;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  display: table;
}

#spLayersDiv {
  display: none !important;
}

#quickRefPopupC {
  width: 100%;
  overflow: auto;
  padding-right: 10px;
}

#quickRefPopupC::-webkit-scrollbar {
  width: 0.7rem !important;
  height: 0.45rem;
}

#quickRefPopupC::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
  border-radius: 10px;
}

#quickRefPopupC::-webkit-scrollbar-thumb {
  background-color: #d4d4d4;
  outline: 0px solid #bbb;
}

#quickRefPopupC::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0;
  outline: 0px solid #bbb;
}

#layerSwitcher::-webkit-scrollbar {
  width: 0.6rem;
  height: 0.45rem;
}

#layerSwitcher::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
  border-radius: 10px;
}

#layerSwitcher::-webkit-scrollbar-thumb {
  background-color: #d4d4d4;
  outline: 0px solid #bbb;
}

#layerSwitcher::-webkit-scrollbar-thumb:hover {
  background-color: #a0a0a0;
  outline: 0px solid #bbb;
}

#leftPanel label input[type="date"] {
  padding: 4px 5px;
  border: 1px solid #ccc;
  border-radius: 5px !important;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  color: #444444 !important;
  font-size: 0.9rem;
  font-size: 0.89rem;
  /* width: 30%; */
  display: inline-block;
}

.login-btn {
  background: #fff;
  color: #222;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #2a6d9f;
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

/* Ensure SweetAlert2 is always on top of EVERYTHING, including loaders and modals */
.swal2-container {
  z-index: 999999999 !important;
}

#viModal {
  justify-content: center;
  align-items: center;
}

#map {
  position: relative;
  z-index: 1;
  /* Ensure map stays below the modal */
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close:hover {
  color: #333;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #d29d4d;
}

textarea {
  height: 100px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #2a6d9f;
  color: white;
}

#viModal .modal-content {
  background: #ffffff !important;
  padding: 24px 28px !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22) !important;
  text-align: left !important;
  width: 100% !important;
  max-width: 520px !important;
  max-height: 88vh !important;
  height: auto !important;
  margin: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  animation: modalSlideIn 0.25s ease-out !important;
}

#viModal .modal-header {
  flex-shrink: 0 !important;
  position: relative !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 14px !important;
}

#viModal .modal-header h2 {
  margin: 0 24px 4px 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-align: left !important;
}

#viModal .modal-header p {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

#viModal .modal-body {
  overflow-y: auto !important;
  max-height: calc(88vh - 120px) !important;
  padding-right: 4px !important;
}

#registerModal .modal-content {
  max-width: 600px;
  text-align: left;
}

#loginModal .modal-content {
  max-width: 350px;
  text-align: center;
}

#viModal h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

#viModal label {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  display: block;
  margin-top: 10px;
  text-align: left;
}


.submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #d29d4d;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #b78236;
}

.submit-btn.reject-btn {
  background: #e74c3c;
}

.submit-btn.reject-btn:hover {
  background: #c0392b;
}

#loader {
  display: none;
  position: absolute;
  /* Change from fixed to absolute */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 5px;
  z-index: 1000;
  /* Ensure it's above the map */
}

.dropdown-container {
  position: relative;
  width: 100%;
}

.suggestion-dropdown {
  position: absolute;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  display: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #007bff;
  color: white;
}

.no-match-message {
  color: red;
  font-size: 16px;
  font-style: italic;
  display: none;
  margin-top: 5px;
}

.error {
  color: red;
  display: none;
  font-size: 12px;
}

.user-profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
  /* Pushes everything to the right */
  gap: 8px;
  width: 100%;
  /* Ensures full width for proper spacing */
}

.username {
  /* font-weight: bold; */
  /* order: -1; */
  /* Moves the text to the left */
  font-size: 0.95rem;
  margin-top: 0.1rem;
  color: #2a6d9ff7;
}

.user-profile i {
  font-size: 30px;
  cursor: pointer;
  color: #2a6d9f;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  /* Aligns dropdown to the right under the icon */
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px;
  min-width: 150px;
  z-index: 10;
  /* Ensures it appears above other content */
}

.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.dropdown-menu button:hover {
  background: #f0f0f0;
}

input[type="radio"] {
  margin-right: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  min-width: 220px;
  top: 35px;
  left: 0;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-item {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.menu-title {
  /* font-weight: bold; */
  color: #333;
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
}

.submenu a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #555;
  padding: 1px 5px;
  transition: color 0.3s ease;
  color: #007bff;
}

.submenu a:hover {
  color: #007bff;
}

.submenu span {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease;
}

.logout a {
  /* font-weight: bold; */
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
}

.logout a:hover {
  background: rgba(255, 0, 0, 0);
}

i {
  font-size: 16px;
  color: #666;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.default-search {
  display: inline-flex;
  align-items: right;
  white-space: nowrap;
  /* Prevents text from breaking into new lines */
}



/* Stats Bar Styles */
#statsBar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e1e4e8;
  font-family: 'hindsemibold', sans-serif;
  width: 97%;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 15px;
  border-right: 1px solid #e0e0e0;
  flex: 1;
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.4rem;
  color: #2c3e50;
  font-weight: bold;
  font-family: 'hindbold', sans-serif;
}

/* Responsive adjustments for stats bar */
@media (max-width: 400px) {
  #statsBar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }

  .stat-item {
    border-right: none;
    min-width: 30%;
    margin-bottom: 5px;
  }
}

/* Main Header Styles */
.main-header {
  background: #f8fafc;
  color: #2c3e50;
  padding: 0 40px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: 'hindsemibold', sans-serif;
  box-sizing: border-box;
  border-bottom: 2px solid #e2e8f0;
}

.header-left .logo {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  margin-right: 15px;
}

.nav-link {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 15px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.nav-link.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.03);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px 3px 0 0;
}

.nav-link i {
  font-size: 16px;
  opacity: 0.8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.header-btn {
  background: #3b82f6;
  border: none;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-btn:hover {
  background: #d29d4d;
  transform: translateY(-1px);
}

.header-btn.btn-add-user {
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #e2e8f0;

}

.header-btn.btn-add-user:hover {
  background: #3b82f6;
}

.header-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.header-user-profile:hover {
  background: #f1f5f9;
}

.header-user-profile i.fa-circle-user {
  font-size: 20px;
  color: #64748b;
}

.header-username {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#headerProfileDropdown,
.header-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: #fff;
  color: #333;
  min-width: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: visible;
  z-index: 2001;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: dropdownFadeIn 0.2s ease-out;
}

#headerProfileDropdown::before,
.header-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#headerProfileDropdown.show,
.header-dropdown-menu.show {
  display: block;
}

#headerProfileDropdown .dropdown-item,
.header-dropdown-menu .dropdown-item {
  padding: 15px 20px;
  transition: all 0.2s ease;
}

#headerProfileDropdown .dropdown-item:hover,
.header-dropdown-menu .dropdown-item:hover {
  background: #f8f9fa;
}

#headerProfileDropdown .dropdown-item a,
.header-dropdown-menu .dropdown-item a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

#headerProfileDropdown .dropdown-item.logout a,
.header-dropdown-menu .dropdown-item.logout a {
  color: #e74c3c;
}

/* Header Dropdown Enhancements */
#headerProfileDropdown .menu-title,
.header-dropdown-menu .menu-title {
  display: block;
  font-size: 11px;
  color: #95a5a6;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#headerProfileDropdown .default-search a,
.header-dropdown-menu .default-search a {
  font-size: 13px;
  color: #34495e;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  white-space: normal;
  word-break: break-word;
}

#headerProfileDropdown .default-search a i,
.header-dropdown-menu .default-search a i {
  margin-top: 3px;
  color: #d29d4d;
}

#headerProfileDropdown .default-search a:hover,
.header-dropdown-menu .default-search a:hover {
  color: #d29d4d;
}

#headerProfileDropdown .no-location,
.header-dropdown-menu .no-location {
  font-size: 13px;
  color: #95a5a6;
  font-style: italic;
  display: block;
  margin-top: 5px;
}

#headerProfileDropdown hr,
.header-dropdown-menu hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 5px 0;
}

#headerProfileDropdown .user-info,
.header-dropdown-menu .user-info {
  padding-bottom: 12px;
}

/* Download Map Button Styling - Map Icon Version */
#downloadMapBtn {
  background-color: #ffffff;
  color: #d29d4d;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

#downloadMapBtn:hover {
  background-color: #d29d4d;
  color: #ffffff;
  border-color: #d29d4d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

#downloadMapBtn i {
  font-size: 18px;
}

/* Enhanced VI Popup Styling - Added by UI/UX Update */

/* Base Container Styling Override */
#fInfoContainer {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: none !important;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Header Styling */
#fInfoContainer .infoTitle {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  /* Deep Blue Gradient */
  color: #ffffff !important;
  padding: 14px 18px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  /* Reset uppercase if any */
  display: flex;
  align-items: center;
}

#fInfoContainerClose {
  color: #ffffff !important;
  opacity: 0.8;
  transition: all 0.2s ease;
  font-size: 16px !important;
  /* margin-top: px; */
}

#fInfoContainerClose:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Popup Content Container */
.vi-popup-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #f4f6f9;
  /* Light grey background for contrast */
}

/* Breadcumbs / Location Header */
.vi-location-header {
  background: #ffffff;
  padding: 10px 18px;
  border-bottom: 1px solid #eaeaea;
  font-size: 13px;
  color: #6c757d;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  z-index: 2;
}

.vi-loc-sep {
  font-size: 11px;
  color: #adb5bd;
}

.vi-loc-current {
  color: #2a5298;
  /* Match header primary color */
  font-weight: 600;
  background: #eef2f7;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Scrollable Content Area */
.vi-content-scroll {
  overflow-y: auto;
  padding: 15px;
  height: 300px;
  /* Fixed height or consistent with JS */
  /* Smooth Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #cfd8dc #f4f6f9;
}

.vi-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.vi-content-scroll::-webkit-scrollbar-track {
  background: #f4f6f9;
}

.vi-content-scroll::-webkit-scrollbar-thumb {
  background-color: #cfd8dc;
  border-radius: 10px;
}

/* Card Component */
.vi-card {
  background: #ffffff;
  border: none;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.vi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.vi-card:last-child {
  margin-bottom: 0;
}

/* Card Header */
.vi-card-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #d4d4d4;
  border-bottom: 2px solid #d4d4d4;
}

.vi-icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  /* Vivid gradient icon bg */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 16px;
  box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
}

.vi-name {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
}

/* Details List */
.vi-details {
  padding: 15px;
  box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
}

.vi-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 2px solid #f0f0f0;
}

.vi-detail-row:last-child {
  border-bottom: none;
}

.vi-question {
  font-size: 13px;
  color: #718096;
  flex: 1;
  margin-right: 10px;
  font-weight: 500;
}

.vi-answer {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  text-align: right;
  max-width: 65%;
  background: #f7fafc;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Card Footer */
.vi-card-footer {
  background: #f8fafc;
  padding: 10px 15px;
  border-top: 1px solid #edf2f7;
  font-size: 12px;
  color: #a0aec0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.vi-footer-label {
  margin-right: 5px;
  font-style: italic;
}

.vi-footer-value {
  font-weight: 600;
  color: #4a5568;
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
  .vi-card-header {
    padding: 12px;
  }

  .vi-details {
    padding: 12px;
    box-shadow: 0 3px 6px rgba(79, 172, 254, 0.3);
  }
}

/* Fix for container height to allow full scroll area */
#fInfoContainer .infoContent {
  max-height: none !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Enhanced Labels for Admin Headers */
.vi-loc-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.vi-loc-label {
  font-size: 11px;
  color: #888;
  margin-right: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.vi-loc-val {
  font-weight: 600;
  color: #333;
}

.vi-loc-current {
  color: #2a5298;
}

/* Grid Layout for Q&A */
.vi-detail-row {
  display: grid !important;
  grid-template-columns: 45% 55%;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid #cccccc;
  padding: 10px 0;
}

.vi-question {
  font-weight: 500;
  color: #555;
  word-break: break-word;
  /* Handle long questions */
}

.vi-answer {
  font-weight: 600;
  color: #2d3748;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  text-align: left !important;
  /* Force align left for better readability in grid */
  word-break: break-word;
}

/* Specific Style for Created By row to make it distinct */
.vi-created-by-row {
  margin-top: 10px;
  border-top: 2px solid #c4c4c4;
  padding-top: 15px;
}

.vi-created-by-row .vi-question {
  color: #718096;
  font-style: italic;
}

/* Close Button Fix */
#fInfoContainerClose {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 1000 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  cursor: pointer !important;
  opacity: 0.9 !important;
  background: rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#fInfoContainerClose:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* REPAIR: Close Button Overhaul */
#fInfoContainerClose {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10000 !important;
  /* Super high z-index */
  color: #ffffff !important;
  font-size: 20px !important;
  cursor: pointer !important;
  opacity: 1 !important;
  background: transparent !important;
  /* Remove bg to look cleaner on gradient */
  width: auto !important;
  height: auto !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

#fInfoContainerClose:hover {
  transform: scale(1.2) rotate(90deg);
  color: #ffcccc !important;
  /* Slight red tint on hover */
}

/* REPAIR: Location Header Cleanup */
.vi-location-header {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  /* Two items per row */
  gap: 8px 15px;
  /* Row gap, Col gap */
  padding: 12px 15px !important;
  background: #fdfdfd;
  border-bottom: 1px solid #e0e0e0;
}

.vi-loc-group {
  display: flex;
  flex-direction: column;
  /* Stack label and value vertically */
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.vi-loc-label {
  font-size: 10px !important;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.vi-loc-val {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #333;
}

.vi-loc-sep {
  display: none !important;
  /* Hide arrows, using grid instead */
}

/* Ensure current village is highlighted */
.vi-loc-current {
  color: #2a5298 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* NEW SPLIT LAYOUT - Added for Step 70 */

.vi-split-layout {
  display: flex;
  flex-direction: row;
  height: 350px;
}

/* Sidebar Styles */
.vi-sidebar {
  width: 140px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 15px;
  flex-shrink: 0;
  overflow-y: auto;
}

.vi-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  color: #6e798a;
  margin-bottom: 15px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 5px;
}

.vi-loc-group-side {
  margin-bottom: 12px;
}

.vi-loc-label-side {
  display: block;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

.vi-loc-val-side {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  word-break: break-word;
  line-height: 1.3;
}

.vi-highlight {
  color: #477857;
  /* Green highlight for Village */
}

/* Main Content Styles */
.vi-main-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  background: #ffffff;
  /* Smooth Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.vi-main-scroll::-webkit-scrollbar {
  width: 6px;
}

.vi-main-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.vi-main-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

/* Move close button up */
#fInfoContainerClose {
  top: 8px !important;
  right: 8px !important;
}

/* Ensure no overlap with fixed sidebar content */
.vi-card {
  margin-right: 2px;
  /* Tiny space for scrollbar visual */
}

/* Responsive tweak */
@media (max-width: 500px) {
  .vi-split-layout {
    flex-direction: column;
    height: auto;
    max-height: 80vh;
  }

  .vi-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .vi-sidebar-title {
    width: 100%;
    margin-bottom: 5px;
  }

  .vi-loc-group-side {
    margin-bottom: 0;
    margin-right: 15px;
  }

  .vi-main-scroll {
    height: 250px;
    /* Force scroll height on mobile */
  }
}

/* Sidebar Structure Improvements */
.vi-sidebar {
  background: #f7f9fc;
  border-right: 1px solid #e1e8ed;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.vi-loc-item-side {
  display: flex;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.vi-loc-item-side:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vi-loc-item-side.active .vi-loc-icon,
.vi-loc-item-side.active .vi-loc-val-side {
  color: #2a5298;
  font-weight: 700;
}

.vi-loc-icon {
  width: 24px;
  font-size: 14px;
  color: #a0aec0;
  margin-top: 2px;
}

.vi-loc-data {
  flex: 1;
}

.vi-loc-label-side {
  font-size: 10px;
  color: #8898aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: block;
}

.vi-loc-val-side {
  font-size: 13px;
  color: #32325d;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

/* Close Button Adjustment */
#fInfoContainerClose {
  top: -3px !important;
  right: 4px !important;
}

/* ==========================================================================
   VI FES Modern UI Design System Refactor
   ========================================================================== */

/* 1. Main Header Styling */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1020;
}

.main-header .logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.main-header .logo-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-header .logo-subtitle {
  color: #f5d8aa;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: -2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav .nav-link {
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 200;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header-nav .nav-link.active {
  color: #ffffff;
  background: #d29d4d;
  box-shadow: 0 2px 10px rgba(210, 157, 77, 0.35);
}

.header-btn.login {
  background: #d29d4d;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(210, 157, 77, 0.3);
}

.header-btn.login:hover {
  background: #b88235;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(210, 157, 77, 0.45);
}

.header-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.2s ease;
}

.header-user-profile:hover {
  background: rgba(255, 255, 255, 0.18);
}

.header-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 12px;
  min-width: 220px;
  z-index: 1050;
  display: none;
  border: 1px solid #e2e8f0;
}

.header-user-profile:hover .header-dropdown-menu {
  display: block;
}

.header-dropdown-menu .dropdown-item a {
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.header-dropdown-menu .dropdown-item a:hover {
  background: #f1f5f9;
  color: #d29d4d;
}

/* 2. Left Panel & Accordion */
#leftPanel {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  padding: 16px !important;
}

#explorerIntro {
  background: #f8fafc !important;
  border-left: 4px solid #d29d4d !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  color: #334155 !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

#explorerIntro p {
  margin-bottom: 8px !important;
}

#explorerIntro p:last-child {
  margin-bottom: 0 !important;
}

#accordion h3 {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  transition: all 0.2s ease !important;
}

#accordion h3.ui-state-active {
  background: #fdf6ed !important;
  color: #b88235 !important;
  border-color: #f5d8aa !important;
}

/* Toggle switch enhancement */
.lswitch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.lswitch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lslider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 22px;
}

.lslider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .lslider {
  background-color: #d29d4d;
}

input:checked + .lslider:before {
  transform: translateX(16px);
}

/* 3. Stats Bar & Map Search Container */
#statsBar {
  display: flex !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  flex-wrap: wrap !important;
}

.stat-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  flex: 1 !important;
  min-width: 130px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border-top: 3px solid #d29d4d !important;
}

.stat-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.stat-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
}

.stat-value {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  line-height: 1.2 !important;
}


/* 4. Legends & Floating Info Popups */
#Legends {
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}

#legendTitleBar {
  background: #1e293b !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

#fInfoContainer {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}

#fInfoContainer .infoTitle {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

/* 5. Modals Enhancement */
.modal-content {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2) !important;
}

.modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 16px 20px !important;
}

.modal-body {
  padding: 20px !important;
}

.modal-body input[type="text"],
.modal-body input[type="password"],
.modal-body input[type="email"],
.modal-body select {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 10px 14px !important;
  font-size: 0.9rem !important;
  transition: border-color 0.2s ease !important;
}

.modal-body input:focus,
.modal-body select:focus {
  border-color: #d29d4d !important;
  outline: none !important;
}

.modal-footer .btn-primary,
.btn-submit {
  background: #d29d4d !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  border: none !important;
  transition: background 0.2s ease !important;
}

.modal-footer .btn-primary:hover,
.btn-submit:hover {
  background: #b88235 !important;
}

/* ==========================================================================
   VI FES Workspace & Table View Mockup Styling
   ========================================================================== */

html, body {
  overflow-x: hidden !important;
  background-color: #f1f5f9 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* 1. Header Navigation (Full Width, Flat, Edge-to-Edge, No Box, No Rounded Border) */
.main-header,
.navbar-card {
  background: #ffffff !important;
  margin: 0 !important;
  padding: 10px 60px !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2000 !important;
}

.brand-logo {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.brand-logo:hover {
  opacity: 0.92 !important;
}

.brand-logo-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.brand-logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  margin-top: 0 !important;
}

.brand-title-main {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.brand-word-village {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #4a423e !important;
  letter-spacing: -0.2px !important;
  line-height: 1.15 !important;
}

.brand-word-institutions {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #4e7c59 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.15 !important;
}

.text-orange {
  color: #d29d4d !important;
}

.brand-title-short {
  display: none !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

@media (max-width: 480px) {
  .brand-title-main {
    display: none !important;
  }
  .brand-title-short {
    display: inline-flex !important;
  }
}

.logo-vi {
  font-size: 1.7rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

.logo-vi .v-green {
  color: #477857 !important;
}

.logo-vi .i-blue {
  color: #d29d4d !important;
}

.header-center {
  flex-grow: 1 !important;
  display: flex !important;
  justify-content: center !important;
}

.header-nav {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
}

.header-nav .nav-tab {
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #4a423e !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 4px !important;
  position: relative !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
}

.header-nav .nav-tab span {
  color: #4a423e !important;
}

button.nav-tab,
.header-nav .nav-tab-btn {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: inherit !important;
  color: #4a423e !important;
}

.header-nav .nav-tab-btn:hover,
.header-nav .nav-tab:hover {
  color: #4a423e !important;
  opacity: 0.75 !important;
}

.header-nav .nav-tab-btn:hover span,
.header-nav .nav-tab:hover span {
  color: #4a423e !important;
}

.header-nav .nav-tab i {
  color: #4a423e !important;
}

.header-nav .nav-tab .text-green {
  color: #4e7c59 !important;
}

.header-nav .nav-tab .text-orange,
.header-nav .nav-tab .text-blue {
  color: #4a423e !important;
}

.header-nav .nav-tab.active {
  color: #4a423e !important;
}

.header-nav .nav-tab.active span {
  color: #4a423e !important;
}

.header-nav .nav-tab.active i {
  color: #4e7c59 !important;
}

.header-nav .nav-tab.active:after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: #4e7c59 !important;
  border-radius: 3px 3px 0 0 !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.icon-btn {
  background: none !important;
  border: none !important;
  font-size: 1.15rem !important;
  color: #d29d4d !important;
  cursor: pointer !important;
  position: relative !important;
  padding: 6px !important;
  transition: transform 0.15s ease !important;
}

.icon-btn:hover {
  transform: scale(1.1) !important;
}

.notification-btn .badge-count {
  position: absolute !important;
  top: 0 !important;
  right: -2px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.header-user-profile {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  transition: background 0.15s ease !important;
}

.header-user-profile:hover {
  background: #f1f5f9 !important;
}

.user-avatar {
  font-size: 1.2rem !important;
  color: #4a423e !important;
}

.user-details {
  display: flex !important;
  flex-direction: column !important;
}

.header-username {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #4a423e !important;
  line-height: 1.2 !important;
}

.header-user-role {
  font-size: 0.7rem !important;
  color: #4a423e !important;
  line-height: 1 !important;
  opacity: 0.8 !important;
}

.user-chevron {
  font-size: 0.75rem !important;
  color: #4a423e !important;
  margin-left: 2px !important;
}

.header-btn.login-pill {
  background: #f8fafc !important;
  color: #4a423e !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 7px 18px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.header-btn.login-pill:hover {
  background: #e2e8f0 !important;
  color: #4a423e !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
}

/* 2. Dashboard Container & Overview Section */
.dashboard-wrapper {
  padding: 8px 60px 24px 60px !important;
}

/* 2.1 Landing Page Welcome Hero Card */
.landing-welcome-card,
.landing-welcome-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 16px 0 36px 0 !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.landing-welcome-card:hover,
.landing-welcome-section:hover {
  box-shadow: none !important;
}

.landing-welcome-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.landing-welcome-title {
  margin: 0 0 16px 0 !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #4a423e !important;
  line-height: 1.25 !important;
  letter-spacing: -0.4px !important;
  text-align: center !important;
}

.landing-welcome-title .landing-title-village,
.landing-welcome-title .brand-word-village,
.landing-welcome-title .title-word-village {
  color: #4a423e !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.landing-welcome-title .landing-title-institutions,
.landing-welcome-title .brand-word-institutions,
.landing-welcome-title .title-word-institutions {
  color: #4e7c59 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.landing-welcome-body {
  max-width: 960px !important;
  margin: 0 auto 24px auto !important;
  text-align: center !important;
}

.landing-welcome-text {
  margin: 0 0 14px 0 !important;
  font-size: 0.98rem !important;
  color: #4b5563 !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
  text-align: center !important;
}

.landing-welcome-text.secondary {
  margin-bottom: 0 !important;
  color: #6b7280 !important;
  font-size: 0.94rem !important;
}

.landing-welcome-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-bottom: 36px !important;
}

.btn-welcome-primary {
  background: #d29d4d !important;
  color: #ffffff !important;
  border: 1.5px solid #d29d4d !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(210, 157, 77, 0.25) !important;
}

.btn-welcome-primary:hover {
  background: #b88235 !important;
  border-color: #b88235 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(210, 157, 77, 0.35) !important;
}

.btn-welcome-outline {
  background: #ffffff !important;
  color: #d29d4d !important;
  border: 1.5px solid #d29d4d !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.btn-welcome-outline:hover {
  background: #fdf6ed !important;
  color: #b88235 !important;
  border-color: #b88235 !important;
  transform: translateY(-1px) !important;
}

.landing-welcome-banner-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.landing-welcome-banner-img {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

@media (max-width: 992px) {
  .landing-welcome-card,
  .landing-welcome-section {
    padding: 12px 0 24px 0 !important;
  }
  .landing-welcome-banner-wrap,
  .landing-welcome-banner-img {
    max-height: 380px !important;
  }
  .landing-welcome-title {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 576px) {
  .landing-welcome-card,
  .landing-welcome-section {
    padding: 8px 0 16px 0 !important;
    margin-bottom: 16px !important;
  }
  .landing-welcome-banner-wrap,
  .landing-welcome-banner-img {
    max-height: 250px !important;
    border-radius: 0 !important;
  }
  .landing-welcome-title {
    font-size: 1.35rem !important;
  }
  .landing-welcome-text {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }
  .landing-welcome-actions {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .btn-welcome-primary,
  .btn-welcome-outline {
    width: 100% !important;
    justify-content: center !important;
  }
}

body.is-fullscreen-mode .landing-welcome-card,
body.is-fullscreen-mode .landing-welcome-section {
  display: none !important;
}

.overview-header-row {
  margin-bottom: 12px !important;
}

.overview-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.overview-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.overview-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #f1f5f9 !important;
}

.card-icon-wrapper {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
}

.icon-blue {
  background: #fdf6ed !important;
  color: #d29d4d !important;
}

.icon-blue-light {
  background: #fdf6ed !important;
  color: #b88235 !important;
}

.icon-green {
  background: #f0fdf4 !important;
  color: #477857 !important;
}

.icon-tan {
  background: #fefce8 !important;
  color: #ca8a04 !important;
}

.card-content {
  display: flex !important;
  flex-direction: column !important;
}

.card-label {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.card-value {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin: 2px 0 !important;
}

.card-subtext {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
}

.card-subtext.positive {
  color: #16a34a !important;
}

.subtext-muted {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

/* 3. Toolbar Row & Buttons */
.toolbar-controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  scroll-margin-top: 80px !important;
}

#mapViewSection,
#mapContent {
  scroll-margin-top: 80px !important;
}

.view-switch-pill {
  background: #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 4px !important;
  display: flex !important;
  gap: 4px !important;
}

.view-toggle-btn {
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.view-toggle-btn i,
.view-toggle-btn svg,
.view-toggle-btn .fa-solid {
  color: inherit !important;
  fill: currentColor !important;
  transition: color 0.2s ease, fill 0.2s ease !important;
}

.view-toggle-btn:hover:not(.active) {
  color: #1e293b !important;
}

.view-toggle-btn.active,
.view-toggle-btn.active:hover,
.view-toggle-btn.active:focus {
  background: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3) !important;
}

.view-toggle-btn.active i,
.view-toggle-btn.active svg,
.view-toggle-btn.active .fa-solid,
.view-toggle-btn.active:hover i,
.view-toggle-btn.active:hover svg,
.view-toggle-btn.active:hover .fa-solid,
.view-toggle-btn.active:focus i,
.view-toggle-btn.active:focus svg,
.view-toggle-btn.active:focus .fa-solid {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.toolbar-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.search-input-pill {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 12px !important;
  display: flex;
  align-items: center !important;
  gap: 8px !important;
  width: 170px !important;
  max-width: 170px !important;
  height: 34px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.search-input-pill .search-icon {
  color: #d29d4d !important;
  font-size: 0.8rem !important;
}

.search-input-pill input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 0.82rem !important;
  color: #1e293b !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.pill-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  height: 34px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #d29d4d !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.pill-btn:hover {
  background: #f8fafc !important;
}

.pill-btn.active {
  background: #fdf6ed !important;
  border-color: #d29d4d !important;
  color: #b88235 !important;
}

/* 3.1 Filter Panel Styles */
.filter-panel-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.filter-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 14px !important;
}

@media (max-width: 992px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .filter-grid {
    grid-template-columns: 1fr !important;
  }
}

.filter-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.filter-label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin: 0 !important;
}

.filter-input-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease !important;
}

.filter-input-box:focus-within {
  border-color: #d29d4d !important;
  box-shadow: 0 0 0 3px rgba(210, 157, 77, 0.15) !important;
}

.filter-input-box .filter-icon {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  margin-right: 8px !important;
}

.filter-input-box .filter-input,
.filter-input-box .filter-select {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100% !important;
  font-size: 0.85rem !important;
  color: #1e293b !important;
  height: 100% !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.filter-input-box .filter-select {
  cursor: pointer !important;
  appearance: auto !important;
}

.filter-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.btn-apply-filters {
  background: #d29d4d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(210, 157, 77, 0.25) !important;
  transition: background 0.15s ease !important;
}

.btn-apply-filters:hover {
  background: #b88235 !important;
}

.btn-clear-filters {
  background: transparent !important;
  color: #d29d4d !important;
  border: 1px solid #f5d8aa !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-clear-filters:hover {
  background: #fdf6ed !important;
  border-color: #d29d4d !important;
}

/* 4. Data Table Grid */
.view-section {
  position: relative !important;
}

.table-card-wrapper {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e2e8f0 !important;
  overflow-x: auto !important;
}

.vi-data-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
}

.vi-data-table th {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #d29d4d !important;
  padding: 14px 16px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  background: #ffffff !important;
  white-space: nowrap !important;
}

.vi-data-table td {
  font-size: 0.85rem !important;
  color: #334155 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #f8fafc !important;
  white-space: nowrap !important;
}

.vi-data-table tbody tr:nth-child(even) {
  background-color: #fafafa !important;
}

.vi-data-table tbody tr:hover {
  background-color: #f1f5f9 !important;
}

.cell-vi-id {
  font-weight: 700 !important;
  color: #475569 !important;
}

.cell-vi-name {
  font-weight: 600 !important;
  color: #0f172a !important;
}

.cell-land-type {
  font-weight: 600 !important;
  color: #334155 !important;
  text-transform: uppercase !important;
  font-size: 0.78rem !important;
}

.action-eye-btn {
  background: none !important;
  border: none !important;
  color: #475569 !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.action-eye-btn:hover {
  color: #d29d4d !important;
  transform: scale(1.15) !important;
}

.btn-view-on-map {
  background: none !important;
  border: none !important;
  color: #d29d4d !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  vertical-align: middle !important;
}

.btn-view-on-map:hover {
  color: #b78236 !important;
  transform: scale(1.2) !important;
  background: none !important;
  box-shadow: none !important;
}

.btn-view-on-map i {
  font-size: 1.15rem !important;
}

.floating-online-badge {
  display: none !important;
}

.online-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #477857 !important;
  display: inline-block !important;
  box-shadow: 0 0 0 2px rgba(71, 120, 87, 0.2) !important;
}

/* 5. Pagination Bar Styling */
.table-pagination-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  border-radius: 0 0 16px 16px !important;
}

.pagination-info {
  font-weight: 500 !important;
}

.pagination-info span {
  font-weight: 700 !important;
  color: #1e293b !important;
}

.pagination-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.page-nav-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #d29d4d !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.page-nav-btn:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.page-nav-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.page-numbers-list {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.page-num-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.page-num-btn:hover:not(.active) {
  background: #f1f5f9 !important;
}

.page-num-btn.active {
  background: #d29d4d !important;
  color: #ffffff !important;
  border-color: #d29d4d !important;
  box-shadow: 0 2px 6px rgba(210, 157, 77, 0.3) !important;
}

/* 6. Clean Map View (Only Map: No Sidebar Text, No Statistics) */
.clean-map-view #leftPanel,
.clean-map-view #explorerIntro,
.clean-map-view #statsBar {
  display: none !important;
}

.full-width-map-container {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.full-map-only {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: relative !important;
}

.map-content-clean {
  width: 100% !important;
  height: 75vh !important;
  min-height: 550px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

/* 7. Fullscreen Mode Layout Overrides */
body.is-fullscreen-mode {
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  background: #f8fafc !important;
}

body.is-fullscreen-mode .vi-nav-header,
body.is-fullscreen-mode .overview-header-row,
body.is-fullscreen-mode .overview-cards-grid {
  display: none !important;
}

body.is-fullscreen-mode .dashboard-wrapper {
  padding: 16px 24px !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

body.is-fullscreen-mode .toolbar-controls-row {
  display: flex !important;
  margin-bottom: 16px !important;
}

body.is-fullscreen-mode .filter-panel-card {
  margin-bottom: 16px !important;
  z-index: 100 !important;
  position: relative !important;
}

/* Map View in Fullscreen */
body.is-fullscreen-mode #mapViewSection {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 1 !important;
}

body.is-fullscreen-mode .full-width-map-container,
body.is-fullscreen-mode #mapContainer,
body.is-fullscreen-mode #mapContent {
  width: 100% !important;
}

body.is-fullscreen-mode .map-content-clean {
  width: 100% !important;
  height: calc(100vh - 120px) !important;
  min-height: 500px !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

/* Table View in Fullscreen */
body.is-fullscreen-mode #tableViewSection {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 1 !important;
  background: transparent !important;
}

body.is-fullscreen-mode #tableViewSection .table-card-wrapper {
  height: auto !important;
  min-height: calc(100vh - 140px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  background: #ffffff !important;
}

/* 8. Modern Village Institutions Map Popup (Option 3 Design) */
#fInfoContainer {
  position: absolute !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18) !important;
  border: 1px solid #e2e8f0 !important;
  width: 420px !important;
  max-width: 92vw !important;
  padding: 18px 20px !important;
  z-index: 1015 !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-align: left !important;
}

#fInfoContainer .infoTitle {
  display: none !important;
}

#fInfoContainer .infoContent {
  padding: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  text-align: left !important;
}

.vi-popup-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-align: left !important;
}

.vi-popup-header-text {
  text-align: left !important;
}

.vi-popup-header-text .vi-popup-title {
  margin: 0 0 3px 0 !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.vi-popup-header-text .vi-popup-subtitle {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  text-align: left !important;
}

.vi-popup-close-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

.vi-popup-close-btn:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.vi-popup-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
  text-align: left !important;
}

.vi-popup-card {
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  gap: 12px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.vi-popup-card:hover {
  border-color: #d29d4d !important;
  background: #fdfbf7 !important;
  box-shadow: 0 4px 14px rgba(210, 157, 77, 0.16) !important;
  transform: translateY(-1px) !important;
}

.vi-popup-card:hover .vi-popup-view-btn {
  background: #fdf6ed !important;
  color: #b88235 !important;
  transform: scale(1.1) !important;
}

.vi-popup-card-thumb {
  width: 68px !important;
  height: 48px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.vi-land-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.vi-popup-card-content {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}

.vi-popup-card-meta {
  font-size: 0.72rem !important;
  color: #d29d4d !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  margin-bottom: 2px !important;
  text-align: left !important;
}

.vi-popup-card-name {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  word-break: break-word !important;
  text-align: left !important;
}

.vi-popup-card-action {
  flex-shrink: 0 !important;
}

.vi-popup-view-btn {
  background: transparent !important;
  border: none !important;
  color: #d29d4d !important;
  font-size: 1.05rem !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.vi-popup-view-btn:hover {
  background: #fdf6ed !important;
  color: #b88235 !important;
  transform: scale(1.1) !important;
}

/* 9. VI Details Drawer (Option 1 Design) */
.vi-details-drawer {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  width: 440px !important;
  max-width: calc(100% - 32px) !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22) !important;
  border: 1px solid #e2e8f0 !important;
  z-index: 1025 !important;
  overflow-y: auto !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.vi-drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.vi-drawer-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.vi-drawer-header-thumb {
  width: 68px !important;
  height: 48px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.vi-drawer-header-text {
  flex: 1 !important;
  min-width: 0 !important;
}

.vi-drawer-cat {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #d29d4d !important;
  letter-spacing: 0.2px !important;
  display: block !important;
  margin-bottom: 3px !important;
}

.vi-drawer-title {
  margin: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  word-break: break-word !important;
}

.vi-drawer-close-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

.vi-drawer-close-btn:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.vi-drawer-banner {
  display: none !important;
}

/* 2-Column Info Grid */
.vi-drawer-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}

.vi-info-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}

.vi-info-label {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: block !important;
  margin-bottom: 3px !important;
}

.vi-info-val {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  word-break: break-word !important;
}

/* Edit VI Button */
.vi-drawer-edit-btn {
  width: 100% !important;
  background: #ffffff !important;
  border: 1.5px solid #d29d4d !important;
  color: #d29d4d !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
  margin-bottom: 22px !important;
}

.vi-drawer-edit-btn:hover {
  background: #fdf6ed !important;
  color: #b88235 !important;
}

/* Explore Other VIs Section */
.vi-drawer-explore-section {
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 16px !important;
}

.vi-drawer-explore-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 12px !important;
}

.vi-drawer-explore-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.vi-explore-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.vi-explore-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-1px) !important;
}

.vi-explore-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px 2px 12px !important;
}

.vi-explore-card-meta {
  font-size: 0.72rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.vi-explore-card-eye {
  background: none !important;
  border: none !important;
  color: #d29d4d !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
}

.vi-explore-card-name {
  margin: 0 !important;
  padding: 0 12px 10px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

.vi-explore-card-banner {
  width: 100% !important;
  height: 38px !important;
  overflow: hidden !important;
  background: #f0f9ff !important;
}

.vi-explore-banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ==========================================================================
   Commons Platform Components App Launcher (Google Tools Style)
   ========================================================================== */

.commons-apps-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.commons-apps-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  border: 1.5px solid #d1d5db !important;
  background: #ffffff !important;
  color: #134e4a !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  outline: none !important;
}

.commons-apps-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.commons-apps-dropdown.open .commons-apps-btn,
.commons-apps-btn:active {
  background: #e6f7ef !important;
  border-color: #10b981 !important;
  color: #047857 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.commons-apps-popover {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  right: 0 !important;
  width: 380px !important;
  max-width: calc(100vw - 24px) !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px -4px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  padding: 20px 16px 20px !important;
  z-index: 3000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) scale(0.98) !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.commons-apps-dropdown.open .commons-apps-popover,
.commons-apps-popover.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Commons Platform Components (https://commonsplatform.in/components.html) */
:root {
  --pm-ink: #4a423e;
  --pm-green-d: #3f6549;
  --pm-green-soft: #edf3ee;
  --pm-faint: #8a909a;
  --pm-line: #eef0f4;
  --pm-bg-soft: #f6f8fc;
  --pm-white: #fff;
}

.pm-appsw-cols {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
  width: 100% !important;
}

.pm-appsw-h {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #8a909a !important;
  margin-bottom: 0.9rem !important;
  text-align: center !important;
  font-family: inherit !important;
}

.pm-app-grid2 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.35rem !important;
}

.pm-app-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.45rem !important;
  padding: 0.75rem 0.3rem !important;
  border-radius: 0.6rem !important;
  cursor: pointer !important;
  text-align: center !important;
  border: 1px solid transparent !important;
  background: none !important;
  font: inherit !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}

.pm-app-tile:hover {
  background: #f6f8fc !important;
  border-color: #eef0f4 !important;
  transform: translateY(-2px) !important;
}

.pm-ic-tile {
  display: inline-grid !important;
  place-items: center !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  aspect-ratio: 1/1 !important;
  border-radius: 0.8rem !important;
  background: #edf3ee !important;
  color: #3f6549 !important;
  flex: none !important;
  transition: background 0.2s, color 0.2s, transform 0.2s !important;
}

.pm-ic-tile img {
  width: 2.2rem !important;
  height: 2.2rem !important;
  object-fit: contain !important;
  display: block !important;
}

.pm-app-tile:hover .pm-ic-tile {
  background: #e2ede4 !important;
  transform: scale(1.05) !important;
}

.pm-app-nm {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #4a423e !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  transition: color 0.15s ease !important;
}

.pm-app-tile:hover .pm-app-nm {
  color: #3f6549 !important;
}

.pm-app-tile.current-app .pm-app-nm {
  color: #3f6549 !important;
  font-weight: 700 !important;
}

@media (max-width: 640px) {
  .pm-app-grid2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .pm-app-grid2 {
    grid-template-columns: 1fr !important;
    gap: 0.15rem !important;
  }

  .pm-app-grid2 .pm-app-tile {
    flex-direction: row !important;
    text-align: left !important;
    padding: 0.6rem 0.5rem !important;
    gap: 0.7rem !important;
  }

  .pm-app-grid2 .pm-app-nm {
    white-space: normal !important;
  }
}

/* ==========================================================================
   Downloads Screen Styles
   ========================================================================== */
.download-page-wrapper {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 24px 20px 48px 20px !important;
  box-sizing: border-box !important;
}

.download-page-header {
  margin-bottom: 22px !important;
}

.download-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.2px !important;
}

.download-page-sub {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.download-top-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
}

.download-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.download-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 3px 0 !important;
}

.download-card-sub {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.download-stats-box {
  background: #f8fafc !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  margin: 20px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}

.stat-col {
  text-align: center !important;
  flex: 1 !important;
}

.stat-val {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.1 !important;
  display: block !important;
}

.stat-lbl {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 4px !important;
  display: block !important;
  font-weight: 500 !important;
}

.stat-vdiv {
  width: 1px !important;
  height: 38px !important;
  background: #e2e8f0 !important;
}

.btn-primary-dataset {
  width: 100% !important;
  background: #d29d4d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}

.btn-primary-dataset:hover {
  background: #b88235 !important;
}

.btn-primary-dataset:active {
  transform: scale(0.99) !important;
}

.filter-controls-group {
  margin: 18px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.search-autocomplete-wrapper {
  position: relative !important;
}

.search-input-box {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 0 12px !important;
  min-height: 40px !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.search-input-box:focus-within {
  border-color: #d29d4d !important;
  box-shadow: 0 0 0 3px rgba(210, 157, 77, 0.15) !important;
}

.search-icon {
  color: #94a3b8 !important;
  font-size: 13px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.selected-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #fdf6ed !important;
  color: #8c5c16 !important;
  border: 1px solid #f5d8aa !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  margin-right: 6px !important;
}

.chip-remove {
  cursor: pointer !important;
  color: #d29d4d !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.chip-remove:hover {
  color: #8c5c16 !important;
}

.search-input-field {
  border: none !important;
  outline: none !important;
  width: 100% !important;
  font-size: 13px !important;
  color: #0f172a !important;
  background: transparent !important;
  padding: 8px 0 !important;
}

.autocomplete-dropdown {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
  z-index: 100 !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  display: none;
}

.autocomplete-item {
  padding: 9px 14px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: background 0.1s !important;
}

.autocomplete-item:hover {
  background: #fdf6ed !important;
  color: #d29d4d !important;
}

.custom-select-wrapper {
  position: relative !important;
}

.custom-select-btn {
  width: 100% !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 9px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  color: #0f172a !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.custom-select-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
  z-index: 95 !important;
  display: none;
  overflow: hidden !important;
}

.custom-select-option {
  padding: 9px 14px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background 0.1s !important;
}

.custom-select-option:hover {
  background: #f8fafc !important;
}

.custom-select-option.active {
  color: #477857 !important;
  font-weight: 600 !important;
}

.btn-export-filtered {
  width: 100% !important;
  background: #ffffff !important;
  color: #d29d4d !important;
  border: 1.5px solid #d29d4d !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}

.btn-export-filtered:hover {
  background: #fdf6ed !important;
  border-color: #b88235 !important;
  color: #b88235 !important;
}

.templates-section {
  margin-bottom: 24px !important;
}

.templates-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

.template-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  color: inherit !important;
}

.template-card:hover {
  border-color: #f5d8aa !important;
  box-shadow: 0 4px 12px rgba(210, 157, 77, 0.12) !important;
  transform: translateY(-1px) !important;
}

.template-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: #fdf6ed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #d29d4d !important;
  font-size: 18px !important;
}

.template-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 2px 0 !important;
}

.template-format {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.recent-section {
  margin-bottom: 24px !important;
}

.recent-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.recent-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.recent-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.recent-card-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.recent-card-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 7px !important;
  background: #fdf6ed !important;
  color: #d29d4d !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

.recent-file-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 0 2px 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.recent-file-meta {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.recent-card-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.recent-status-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50 !important;
  background: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15) !important;
}

.btn-pill-download {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #d29d4d !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.btn-pill-download:hover {
  background: #fdf6ed !important;
  border-color: #f5d8aa !important;
  color: #b88235 !important;
}

.guidelines-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
}

.guidelines-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
}

.guidelines-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.guideline-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 12.5px !important;
  color: #475569 !important;
}

.guideline-bullet {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #d29d4d !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   11. About Village Institutions & User Guide Modal
   ========================================================================== */
.vi-info-modal {
  z-index: 100000 !important;
}

.vi-info-modal-content {
  max-width: 860px !important;
  width: 94% !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22) !important;
  padding: 0 !important;
  overflow: hidden !important;
  animation: viInfoModalFadeIn 0.25s ease-out !important;
  border: 1px solid #e2e8f0 !important;
}

@keyframes viInfoModalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vi-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 24px !important;
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f1e8 100%) !important;
  border-bottom: 1px solid #ebdcc5 !important;
}

.vi-modal-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.vi-modal-icon-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: #477857 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  box-shadow: 0 4px 12px rgba(71, 120, 87, 0.28) !important;
  flex-shrink: 0 !important;
}

.vi-modal-title {
  margin: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  letter-spacing: -0.01em !important;
}

.vi-modal-subtitle {
  margin: 3px 0 0 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.vi-modal-close {
  background: none !important;
  border: none !important;
  font-size: 1.7rem !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

.vi-modal-close:hover {
  background: #ede3d3 !important;
  color: #0f172a !important;
}

.vi-modal-tabs {
  display: flex !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.vi-modal-tab-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.vi-modal-tab-btn:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

.vi-modal-tab-btn.active {
  background: #fdf6ed !important;
  border-color: #d29d4d !important;
  color: #8c5c16 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(210, 157, 77, 0.15) !important;
}

.vi-modal-tab-btn.active i {
  color: #d29d4d !important;
}

.vi-modal-body {
  padding: 24px !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

.vi-modal-panel {
  display: none !important;
}

.vi-modal-panel.active {
  display: block !important;
  animation: viPanelFadeIn 0.2s ease-out !important;
}

@keyframes viPanelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.vi-panel-hero {
  margin-bottom: 20px !important;
}

.vi-panel-lead {
  font-size: 0.98rem !important;
  color: #1e293b !important;
  line-height: 1.55 !important;
  margin: 0 0 10px 0 !important;
  font-weight: 500 !important;
}

.vi-panel-desc {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.vi-grid-features {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 18px !important;
}

.vi-feature-box {
  background: #fdfbf7 !important;
  border: 1px solid #f0e6d5 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.vi-feature-box:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(210, 157, 77, 0.12) !important;
  border-color: #d29d4d !important;
}

.vi-feature-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #477857 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  flex-shrink: 0 !important;
}

.vi-feature-text h4 {
  margin: 0 0 5px 0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.vi-feature-text p {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

.vi-landtypes-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 14px !important;
}

.vi-landtype-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.vi-landtype-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

.vi-landtype-card.forest { border-top: 4px solid #477857 !important; }
.vi-landtype-card.pasture { border-top: 4px solid #d29d4d !important; }
.vi-landtype-card.water { border-top: 4px solid #0284c7 !important; }
.vi-landtype-card.revenue { border-top: 4px solid #854d0e !important; }

.vi-landtype-header {
  margin-bottom: 10px !important;
}

.vi-landtype-badge {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.vi-landtype-card.forest .vi-landtype-badge { background: #effaf3 !important; color: #477857 !important; }
.vi-landtype-card.pasture .vi-landtype-badge { background: #fdf6ed !important; color: #b88235 !important; }
.vi-landtype-card.water .vi-landtype-badge { background: #f0f9ff !important; color: #0284c7 !important; }
.vi-landtype-card.revenue .vi-landtype-badge { background: #fefce8 !important; color: #854d0e !important; }

.vi-landtype-card h5 {
  margin: 0 0 6px 0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.vi-landtype-card p {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

.vi-steps-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.vi-step-item {
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
}

.vi-step-num {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #d29d4d !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.vi-step-body h5 {
  margin: 0 0 4px 0 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.vi-step-body p {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

.vi-roles-overview {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 16px 0 !important;
}

.vi-role-row {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}

.vi-role-pill {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  min-width: 155px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.vi-role-pill.public { background: #f1f5f9 !important; color: #475569 !important; }
.vi-role-pill.org { background: #fdf6ed !important; color: #b88235 !important; border: 1px solid #f5d8aa !important; }
.vi-role-pill.admin { background: #effaf3 !important; color: #477857 !important; border: 1px solid #b7e0c4 !important; }

.vi-role-desc {
  font-size: 0.82rem !important;
  color: #475569 !important;
  line-height: 1.4 !important;
}

.vi-access-cta {
  margin-top: 18px !important;
  padding: 16px !important;
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f1e8 100%) !important;
  border: 1px solid #ecdac2 !important;
  border-radius: 12px !important;
  text-align: center !important;
}

.vi-access-cta p {
  margin: 0 0 12px 0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.vi-cta-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.btn-register-cta {
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  background: #477857 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.btn-register-cta:hover {
  background: #3a6247 !important;
  transform: translateY(-1px) !important;
}

.vi-modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 24px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.vi-footer-tag {
  font-size: 0.78rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.vi-modal-btn-done {
  padding: 8px 20px !important;
  border-radius: 8px !important;
  background: #d29d4d !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.vi-modal-btn-done:hover {
  background: #b88235 !important;
}

/* ==========================================================================
   12. Field User Onboarding & Toolbar Action Buttons
   ========================================================================== */
.priority-btn {
  background: #fdfbf7 !important;
  border: 1px solid #ebdcc5 !important;
  color: #8c5c16 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.priority-btn:hover {
  background: #fdf6ed !important;
  border-color: #d29d4d !important;
  color: #b88235 !important;
}

.priority-btn i {
  color: #d29d4d !important;
}

.add-vi-primary-btn {
  background: #d29d4d !important;
  border: 1px solid #c48c3b !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(210, 157, 77, 0.2) !important;
}

.add-vi-primary-btn:hover {
  background: #b88235 !important;
  transform: translateY(-1px) !important;
}

.onboarding-modal {
  z-index: 100010 !important;
}

.onboarding-modal-content {
  max-width: 580px !important;
  width: 92% !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
  overflow: hidden !important;
  animation: viOnboardingFadeIn 0.25s ease-out !important;
  border: 1px solid #e2e8f0 !important;
}

@keyframes viOnboardingFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.onboarding-modal-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 22px 28px 14px !important;
  background: #ffffff !important;
}

.onboarding-header-title-block {
  display: flex !important;
  flex-direction: column !important;
}

.onboarding-title {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.onboarding-step-indicator {
  font-size: 0.78rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
  margin-top: 3px !important;
  display: block !important;
}

.onboarding-close-btn {
  background: none !important;
  border: none !important;
  font-size: 1.6rem !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: color 0.2s ease !important;
}

.onboarding-close-btn:hover {
  color: #0f172a !important;
}

.onboarding-progress-track {
  height: 3px !important;
  background: #e2e8f0 !important;
  width: 100% !important;
  overflow: hidden !important;
}

.onboarding-progress-bar {
  height: 100% !important;
  background: #d29d4d !important;
  transition: width 0.3s ease !important;
}

.onboarding-modal-body {
  padding: 24px 28px !important;
  max-height: 72vh !important;
  overflow-y: auto !important;
}

.onboarding-step-panel {
  animation: viPanelFadeIn 0.2s ease-out !important;
}

.onboarding-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  background: #ffffff !important;
  margin-bottom: 16px !important;
}

.onboarding-card-title {
  margin: 0 0 6px 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.onboarding-card-text {
  margin: 0 0 16px 0 !important;
  font-size: 0.84rem !important;
  color: #64748b !important;
  line-height: 1.55 !important;
}

.onboarding-step2-header .onboarding-card-text {
  margin-bottom: 18px !important;
}

.onboarding-steps-preview {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.onboarding-step-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.onboarding-step-badge {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #cbd5e1 !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

.onboarding-step-row.active .onboarding-step-badge {
  background: #d29d4d !important;
}

.onboarding-step-info {
  display: flex !important;
  flex-direction: column !important;
}

.onboarding-step-name {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.onboarding-step-hint {
  font-size: 0.78rem !important;
  color: #64748b !important;
}

.onboarding-stats-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.onboarding-stat-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  text-align: center !important;
}

.onboarding-stat-value {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.onboarding-stat-label {
  font-size: 0.74rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
}

.what-you-can-do-card {
  background: #fdfbf7 !important;
  border-color: #ebdcc5 !important;
}

.onboarding-section-title {
  margin: 0 0 10px 0 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.onboarding-bullet-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.onboarding-bullet-list li {
  font-size: 0.82rem !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.onboarding-bullet-list li i {
  font-size: 5px !important;
  color: #d29d4d !important;
}

/* Step 2 Search & Autocomplete */
.onboarding-search-group {
  margin-bottom: 16px !important;
  position: relative !important;
}

.onboarding-input-label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.onboarding-search-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.onboarding-search-icon {
  position: absolute !important;
  left: 14px !important;
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
}

.onboarding-search-input {
  width: 100% !important;
  padding: 10px 36px 10px 38px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  color: #0f172a !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.onboarding-search-input:focus {
  border-color: #d29d4d !important;
  box-shadow: 0 0 0 3px rgba(210, 157, 77, 0.15) !important;
}

.onboarding-search-clear {
  position: absolute !important;
  right: 12px !important;
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.onboarding-input-helper {
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  margin-top: 5px !important;
  display: block !important;
}

.onboarding-dropdown-list {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  z-index: 100 !important;
  padding: 6px 0 !important;
}

.onboarding-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 16px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  border-bottom: 1px solid #f8fafc !important;
}

.onboarding-dropdown-item:last-child {
  border-bottom: none !important;
}

.onboarding-dropdown-item:hover {
  background: #fdfbf7 !important;
}

.dropdown-item-icon {
  color: #d29d4d !important;
  font-size: 0.95rem !important;
  width: 20px !important;
  text-align: center !important;
}

.dropdown-item-text {
  display: flex !important;
  flex-direction: column !important;
}

.dropdown-item-main {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.dropdown-item-sub {
  font-size: 0.75rem !important;
  color: #64748b !important;
}

.onboarding-no-results {
  padding: 14px 16px !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  text-align: center !important;
}

/* Selected Box */
.onboarding-selected-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #fdf6ed !important;
  border: 1.5px solid #d29d4d !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
}

.selected-box-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.selected-icon {
  color: #d29d4d !important;
  font-size: 1rem !important;
}

.selected-name {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: block !important;
}

.selected-type {
  font-size: 0.75rem !important;
  color: #8c5c16 !important;
  display: block !important;
}

.selected-change-btn {
  background: none !important;
  border: none !important;
  color: #b88235 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 0 !important;
}

/* Note Box */
.onboarding-note-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-top: 14px !important;
}

.onboarding-note-title {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 3px !important;
}

.onboarding-note-text {
  margin: 0 !important;
  font-size: 0.76rem !important;
  color: #64748b !important;
  line-height: 1.45 !important;
}

/* Modal Footer */
.onboarding-modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 28px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
}

.onboarding-learn-link {
  font-size: 0.8rem !important;
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.onboarding-learn-link:hover {
  color: #d29d4d !important;
  text-decoration: underline !important;
}

.onboarding-location-status {
  font-size: 0.78rem !important;
  color: #64748b !important;
}

.onboarding-footer-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.btn-onboarding-back {
  padding: 8px 18px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-onboarding-back:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-onboarding-primary {
  padding: 8px 22px !important;
  border: none !important;
  background: #d29d4d !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(210, 157, 77, 0.2) !important;
}

.btn-onboarding-primary:hover {
  background: #b88235 !important;
}

.btn-onboarding-primary:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.btn-onboarding-primary.btn-complete.ready {
  background: #477857 !important;
  box-shadow: 0 2px 8px rgba(71, 120, 87, 0.25) !important;
}

.btn-onboarding-primary.btn-complete.ready:hover {
  background: #3a6247 !important;
}

/* ==========================================================================
   10. Site Footer (Commons Platform & Village Institutions Design)
   ========================================================================== */
.site-footer {
  background: #ffffff !important;
  border-top: 1px solid #eaecf0 !important;
  margin-top: 48px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10 !important;
}

.footer-container {
  max-width: 100% !important;
  padding: 48px 60px 24px 60px !important;
  box-sizing: border-box !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2.2fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  align-items: start !important;
}

.footer-col-brand {
  padding-right: 24px !important;
}

.footer-brand-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.footer-brand-badge {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.footer-brand-img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain !important;
}

.footer-brand-title {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
}

.footer-brand-village {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #4a423e !important;
  letter-spacing: -0.2px !important;
}

.footer-brand-institutions {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #4e7c59 !important;
  letter-spacing: -0.2px !important;
}

.footer-description {
  font-size: 0.88rem !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  max-width: 360px !important;
  margin: 0 !important;
}

.footer-col-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.2px !important;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.footer-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links li a {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
  cursor: pointer !important;
  display: inline-block !important;
}

.footer-links li a:hover {
  color: #477857 !important;
}

.footer-bottom-bar {
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 40px !important;
  padding-top: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.footer-copyright {
  font-size: 0.84rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.footer-social-links {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.footer-social-btn {
  color: #475569 !important;
  font-size: 1.2rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer-social-btn:hover {
  color: #477857 !important;
  transform: translateY(-2px) !important;
}

body.is-fullscreen-mode .site-footer {
  display: none !important;
}

@media (max-width: 1024px) {
  .footer-container {
    padding: 36px 30px 20px 30px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  .footer-container {
    padding: 32px 20px 20px 20px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}

/* ==========================================================================
   Comprehensive Global Responsiveness Styles
   Preserves 100% functionality across desktop, tablet, and mobile devices
   ========================================================================== */

/* Tablet & Medium Screen Optimizations (<= 1024px) */
@media (max-width: 1024px) {
  .main-header,
  .navbar-card {
    margin: 0 !important;
    padding: 8px 20px !important;
    border-radius: 0 !important;
  }
  .header-nav {
    gap: 16px !important;
  }
  .dashboard-wrapper {
    padding: 8px 20px 20px 20px !important;
  }
  .overview-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .vi-details-drawer {
    width: 390px !important;
    max-width: calc(100% - 24px) !important;
    top: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* Tablet & Large Mobile Screen Optimizations (<= 820px) */
@media (max-width: 820px) {
  #mapContent #searchRegion {
    top: 12px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }
  #mapContent .btn-mark-default,
  #mapContent #markDefaultSearch {
    top: 60px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    justify-content: center !important;
  }
  .ui-autocomplete.ui-widget-content {
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    width: calc(100% - 24px) !important;
    left: 12px !important;
  }
}

/* Mobile & Small Screen Optimizations (<= 768px) */
@media (max-width: 768px) {
  .main-header,
  .navbar-card {
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 0 !important;
  }
  .brand-logo {
    gap: 8px !important;
  }
  .brand-logo-img {
    width: 38px !important;
    height: 38px !important;
  }
  .header-nav {
    gap: 8px !important;
  }
  .header-nav .nav-tab {
  .header-user-profile {
    padding: 4px 8px !important;
    gap: 6px !important;
  }
  .header-user-role {
    display: none !important;
  }
  .dashboard-wrapper {
    padding: 8px 10px 18px 10px !important;
  }
  .overview-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .overview-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
  .toolbar-controls-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .view-switch-pill {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .view-toggle-btn {
    flex: 1 !important;
    justify-content: center !important;
  }
  .toolbar-right-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .toolbar-right-actions .pill-btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }
  .search-input-pill {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Fullscreen / Floating VI Details Drawer on Mobile */
  .vi-details-drawer {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 14px !important;
    padding: 16px 14px !important;
    z-index: 1060 !important;
  }
  .vi-drawer-header {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }
  .vi-drawer-header-thumb {
    width: 58px !important;
    height: 42px !important;
  }
  .vi-drawer-title {
    font-size: 0.88rem !important;
  }
  /* Modern Map Feature Info Popup */
  #fInfoContainer {
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    padding: 14px !important;
    border-radius: 14px !important;
    z-index: 1050 !important;
  }
  .vi-popup-header-text .vi-popup-title {
    font-size: 1rem !important;
  }
}

/* Extra Small Phones (<= 520px) */
@media (max-width: 520px) {
  .main-header,
  .navbar-card {
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 0 !important;
  }
  .header-nav .nav-tab span {
    display: none !important;
  }
  .header-nav .nav-tab i {
    font-size: 1.1rem !important;
  }
  .header-username {
    max-width: 60px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .commons-apps-popover {
    width: 290px !important;
    max-width: calc(100vw - 16px) !important;
    right: -6px !important;
    padding: 16px 12px !important;
  }
  .vi-details-drawer {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }
  .vi-drawer-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .vi-info-box {
    padding: 7px 10px !important;
  }
  .vi-drawer-edit-btn {
    padding: 8px 12px !important;
    font-size: 0.84rem !important;
    margin-bottom: 16px !important;
  }
  .vi-popup-card {
    padding: 8px 10px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }
  .vi-popup-card-thumb {
    width: 52px !important;
    height: 38px !important;
    border-radius: 6px !important;
  }
  .vi-popup-card-meta {
    font-size: 0.68rem !important;
  }
  .vi-popup-card-name {
    font-size: 0.78rem !important;
  }
  .table-pagination-bar {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: center !important;
  }
}