/* Climate Engine v3 visual polish.
 * Appearance-only overrides layered on top of theme_v2.
 */

.ce-theme-v2 {
  --ce-bg: #edf3f9;
  --ce-surface: #ffffff;
  --ce-surface-soft: #f7fafe;
  --ce-primary: #0a4f98;
  --ce-primary-strong: #083d78;
  --ce-primary-hover: #1471d3;
  --ce-accent: #1ab88f;
  --ce-text: #142235;
  --ce-text-muted: #4f6278;
  --ce-border: #d7e3ef;
  --ce-border-strong: #c4d4e6;
  --ce-radius-sm: 8px;
  --ce-radius-md: 12px;
  --ce-radius-lg: 16px;
  --ce-shadow-xs: 0 3px 10px rgba(8, 49, 94, 0.06);
  --ce-shadow-sm: 0 10px 24px rgba(8, 49, 94, 0.1);
  --ce-shadow-md: 0 14px 34px rgba(8, 49, 94, 0.14);
  --ce-shadow-lg: 0 18px 40px rgba(8, 49, 94, 0.18);
  --ce-sidebar-width: 400px;
  --ce-sidebar-width-md: 400px;
  --ce-footer-height: 56px;
  background: linear-gradient(180deg, #f6f9fd 0%, #eef4fa 44%, #eaf0f7 100%);
  color: var(--ce-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ce-theme-v2 a {
  color: var(--ce-primary);
}

.ce-theme-v2 a:hover,
.ce-theme-v2 a:focus {
  color: var(--ce-primary-hover);
}

.ce-theme-v2 #sidebar-wrapper {
  z-index: 1020;
  padding: 10px 20px 0;
  background: var(--ce-bg);
}

.ce-theme-v2 .sidebar-nav {
  padding-right: 0;
}

.ce-theme-v2 #sidebar-wrapper .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.ce-theme-v2 #page-content-wrapper {
  padding: 14px 20px 18px;
}

.ce-theme-v2 #page-content-wrapper > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.ce-theme-v2 #page-content-wrapper > .container-fluid > .row {
  margin-left: 0;
  margin-right: 0;
}

.ce-theme-v2 #page-content-wrapper > .container-fluid > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.ce-theme-v2 #dataTab {
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-md);
  background: var(--ce-surface-soft);
  box-shadow: var(--ce-shadow-xs);
  margin-left: 0;
  margin-right: 0;
}

.ce-theme-v2 #dataTab > li {
  border-right-color: var(--ce-border);
}

.ce-theme-v2 #dataTab > li:last-child {
  border-left: 1px solid var(--ce-border);
  background: #f9fbff;
}

.ce-theme-v2 #dataTab li a {
  color: var(--ce-primary) !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 64px;
  height: 64px;
  padding: 8px 10px;
}

.ce-theme-v2 #dataTab > li:last-child > a,
.ce-theme-v2 #dataTab > li:last-child > a[data-toggle="popover"] {
  min-height: 64px;
  height: 64px !important;
}

.ce-theme-v2 #dataTab li.active a,
.ce-theme-v2 #dataTab li.active a:hover,
.ce-theme-v2 #dataTab li.active a:focus {
  background: linear-gradient(180deg, #0f6ac7 0%, #0a4f98 100%);
  color: #ffffff !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.ce-theme-v2 #dataTab li a:hover,
.ce-theme-v2 #dataTab li a:focus {
  background: #e6f0fb;
}

.ce-theme-v2 #dataFigTab {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(9, 58, 112, 0.32);
  border-radius: 0;
  background: linear-gradient(110deg, #083d79 0%, #0b529d 68%, #1473cb 100%);
  box-shadow: 0 8px 18px rgba(8, 49, 94, 0.18);
  min-height: 72px;
  margin: 8px 0 10px;
  padding: 10px 18px;
}

.ce-theme-v2 #dataFigTab > li {
  float: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.ce-theme-v2 #dataFigTab > li.pull-right {
  margin-left: auto;
  padding: 0 !important;
}

.ce-theme-v2 #dataFigTab > li.pull-right > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ce-theme-v2 #dataFigTab > li:not(.pull-right) > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  color: #edf4ff;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  border-radius: 9px;
  line-height: 1;
  min-height: 46px;
  height: 46px;
  padding: 0 16px;
}

.ce-theme-v2 #dataFigTab > li:not(.pull-right) > a[style*="display:block"],
.ce-theme-v2 #dataFigTab > li:not(.pull-right) > a[style*="display: block"] {
  display: inline-flex !important;
}

.ce-theme-v2 #dataFigTab > li:not(.pull-right).active > a,
.ce-theme-v2 #dataFigTab > li:not(.pull-right).active > a:hover,
.ce-theme-v2 #dataFigTab > li:not(.pull-right).active > a:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ce-theme-v2 #menu-toggle-display {
  border: 0 !important;
  background: transparent;
  border-radius: 9px;
  color: #edf4ff;
  font-size: 16px;
  font-weight: 700;
  min-height: 46px;
  height: 46px;
  padding: 0 12px;
  box-shadow: none;
}

.ce-theme-v2 #menu-toggle-display:hover,
.ce-theme-v2 #menu-toggle-display:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ce-theme-v2 #climateEngineHomeLink img {
  height: 44px !important;
  width: auto;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.7))
    drop-shadow(0 2px 8px rgba(8, 49, 94, 0.2));
}

.ce-theme-v2 .panel.panel-default {
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-md);
  box-shadow: var(--ce-shadow-sm);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  margin-bottom: 10px;
}

.ce-theme-v2 .panel.panel-default > .panel-body {
  padding: 12px 14px;
}

.ce-theme-v2 .panel-forms {
  background: transparent !important;
}

.ce-theme-v2 #sidebar-wrapper b,
.ce-theme-v2 #sidebar-wrapper .panel-title {
  color: var(--ce-text);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.ce-theme-v2 #sidebar-wrapper b > span,
.ce-theme-v2 #sidebar-wrapper span[style*="color:blue"] {
  color: var(--ce-primary) !important;
}

.ce-theme-v2 img[src*="questionmark.png"] {
  width: 17px;
  height: 17px;
  opacity: 0.95;
  filter: drop-shadow(0 1px 3px rgba(8, 49, 94, 0.2));
}

.ce-theme-v2 .btn {
  border-radius: var(--ce-radius-sm);
  font-weight: 700;
}

.ce-theme-v2 .btn-default {
  border: 1px solid var(--ce-border);
  background: #ffffff;
  color: var(--ce-primary);
}

.ce-theme-v2 .btn-default:hover,
.ce-theme-v2 .btn-default:focus {
  background: #f2f7ff;
  color: var(--ce-primary-hover);
}

.ce-theme-v2 select,
.ce-theme-v2 input[type="text"],
.ce-theme-v2 textarea {
  min-height: 34px;
  border: 1px solid var(--ce-border-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ce-text);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 1px 1px rgba(12, 40, 74, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ce-theme-v2 #sidebar-wrapper .panel.panel-default > .panel-body {
  padding: 8px 10px;
}

.ce-theme-v2 #sidebar-wrapper select,
.ce-theme-v2 #sidebar-wrapper input[type="text"],
.ce-theme-v2 #sidebar-wrapper textarea {
  min-height: 30px;
  font-size: 12px;
  padding: 2px 9px;
}

.ce-theme-v2 #sidebar-wrapper select,
.ce-theme-v2 #navbar_map .dropdown-menu select,
.ce-theme-v2 #above-ts-nav .dropdown-menu select,
.ce-theme-v2 .modal-body select {
  max-width: 98%;
}

/* Tighten extra legacy spacing at top of map Time Period panel. */
.ce-theme-v2 #tour_map_timeperiod_intro > br {
  display: none;
}

.ce-theme-v2 #tour_map_timeperiod_intro .timeperiod > br:first-child {
  display: none;
}

.ce-theme-v2 #tour_map_timeperiod_intro .dataAvailability {
  display: block !important;
  margin: 2px 0 4px;
  line-height: 1.2;
}

.ce-theme-v2 #tour_map_timeperiod_intro .hist-year-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.ce-theme-v2 #tour_map_timeperiod_intro .hist-year-label a {
  flex: 0 0 auto;
  height: auto !important;
  line-height: 1;
}

.ce-theme-v2 #tour_map_timeperiod_intro .hist-year-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}

.ce-theme-v2 #tour_map_timeperiod_intro .hist-year-controls select {
  flex: 0 1 40%;
  min-width: 0;
  max-width: none;
}

.ce-theme-v2 .ts-time-period .dataAvailability,
.ce-theme-v2 .ts-time-period .dataAvailability2 {
  display: block !important;
  margin: 2px 0 4px;
  line-height: 1.2;
}

.ce-theme-v2 .ts-time-period .ts-period-selection {
  margin-bottom: 6px;
}

.ce-theme-v2 .ts-scatterplot-options .regression_period,
.ce-theme-v2 .ts-scatterplot-options .analysis_period {
  margin-top: 6px;
}

/* Shared compact field layout for map and both time-series masks. */
.ce-theme-v2 #tour_map_masking_by_category .mask_by_category,
.ce-theme-v2 .maskTS1_by_category,
.ce-theme-v2 .maskTS2_by_category {
  padding-left: 32px;
  padding-right: 16px;
  box-sizing: border-box;
}

.ce-theme-v2 .mask-category-field {
  width: 300px;
  max-width: 100%;
  margin-top: 6px;
}

.ce-theme-v2 .mask-category-field > b {
  display: block;
  margin-bottom: 3px;
}

.ce-theme-v2 .mask-category-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.ce-theme-v2 .mask-category-label .subchoice_selectAll {
  flex: 0 0 auto;
  font-weight: 400;
  white-space: nowrap;
}

.ce-theme-v2 .mask-category-field select {
  width: 100% !important;
  max-width: none !important;
}

.ce-theme-v2 .mask-category-join {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.ce-theme-v2 .mask-category-join select {
  width: 110px;
}

.ce-theme-v2 .mask-category-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 300px;
  max-width: 100%;
  margin-top: 6px;
}

.ce-theme-v2 .mask-category-toggle img {
  flex: 0 0 auto;
  cursor: pointer;
}

.ce-theme-v2 .mask-category-field > [id$="_checkbox"] {
  /* Override legacy ID rules inside the included mask templates. */
  width: 100% !important;
  margin-left: 0 !important;
}

.ce-theme-v2 .vector-overlays-panel > .panel-body > hr {
  margin: 8px 0;
}

.ce-theme-v2 select:hover,
.ce-theme-v2 input[type="text"]:hover,
.ce-theme-v2 textarea:hover {
  border-color: #a8bfd8;
}

.ce-theme-v2 select:focus,
.ce-theme-v2 input[type="text"]:focus,
.ce-theme-v2 textarea:focus {
  border-color: var(--ce-primary-hover);
  box-shadow: 0 0 0 3px rgba(20, 113, 211, 0.18);
  outline: 0;
}

.ce-theme-v2 #form-button-submit-map,
.ce-theme-v2 #form-button-submit-map2,
.ce-theme-v2 #form-button-submit-timeseries,
.ce-theme-v2 #form-button-submit-timeseries2,
.ce-theme-v2 #form-button-submit-timeseries3 {
  height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 1px solid #4ba650;
  border-bottom-color: #3f8e44;
  border-radius: var(--ce-radius-md);
  background: linear-gradient(180deg, #67c66d 0%, #4ba650 100%) !important;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: 0 10px 20px rgba(46, 126, 53, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.ce-theme-v2 #form-button-submit-map:hover,
.ce-theme-v2 #form-button-submit-map2:hover,
.ce-theme-v2 #form-button-submit-timeseries:hover,
.ce-theme-v2 #form-button-submit-timeseries2:hover,
.ce-theme-v2 #form-button-submit-timeseries3:hover {
  background: linear-gradient(180deg, #77d47d 0%, #57b65d 100%) !important;
}

.ce-theme-v2 #form-button-submit-map:focus,
.ce-theme-v2 #form-button-submit-map2:focus,
.ce-theme-v2 #form-button-submit-timeseries:focus,
.ce-theme-v2 #form-button-submit-timeseries2:focus,
.ce-theme-v2 #form-button-submit-timeseries3:focus {
  box-shadow:
    0 10px 20px rgba(46, 126, 53, 0.24),
    0 0 0 3px rgba(103, 198, 109, 0.28);
}

.ce-theme-v2 #productTab {
  gap: 8px;
  border-bottom: 1px solid var(--ce-border);
}

.ce-theme-v2 #productTab > li > a {
  border-radius: 10px 10px 0 0;
  border-color: transparent;
  background: #ecf3fb;
  color: var(--ce-primary);
  font-size: 17px;
  font-weight: 700;
  padding: 10px 18px;
}

.ce-theme-v2 #productTab > li > a:hover,
.ce-theme-v2 #productTab > li > a:focus {
  background: #dfecfb;
}

.ce-theme-v2 #productTab > li.active > a,
.ce-theme-v2 #productTab > li.active > a:hover,
.ce-theme-v2 #productTab > li.active > a:focus {
  border-color: var(--ce-border);
  border-bottom-color: #ffffff;
  background: #ffffff;
  box-shadow: inset 0 2px 0 #1ab88f;
}

.ce-theme-v2 #navbar_map,
.ce-theme-v2 #above-ts-nav {
  border: 1px solid rgba(8, 49, 94, 0.2);
  border-radius: var(--ce-radius-md);
  background: linear-gradient(110deg, #083d79 0%, #0b539f 70%, #1674cc 100%) !important;
  box-shadow: 0 10px 24px rgba(8, 49, 94, 0.2);
  margin-bottom: 8px !important;
}

.ce-theme-v2 #navbar_map .container-fluid,
.ce-theme-v2 #above-ts-nav .container-fluid {
  padding-left: 10px;
  padding-right: 10px;
}

.ce-theme-v2 #navbar_map .navbar-nav > li > a,
.ce-theme-v2 #above-ts-nav .navbar-nav > li > a {
  border-radius: 8px;
  color: #edf4ff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
}

.ce-theme-v2 #navbar_map .navbar-nav > li > a:hover,
.ce-theme-v2 #above-ts-nav .navbar-nav > li > a:hover,
.ce-theme-v2 #navbar_map .navbar-nav > li > a:focus,
.ce-theme-v2 #above-ts-nav .navbar-nav > li > a:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}

.ce-theme-v2 #navbar_map .navbar-nav > .open > a,
.ce-theme-v2 #navbar_map .navbar-nav > .open > a:hover,
.ce-theme-v2 #navbar_map .navbar-nav > .open > a:focus,
.ce-theme-v2 #above-ts-nav .navbar-nav > .open > a,
.ce-theme-v2 #above-ts-nav .navbar-nav > .open > a:hover,
.ce-theme-v2 #above-ts-nav .navbar-nav > .open > a:focus,
.ce-theme-v2 #navbar_map .navbar-nav > li > a[aria-expanded="true"],
.ce-theme-v2 #above-ts-nav .navbar-nav > li > a[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.ce-theme-v2 #navbar_map .navbar-nav > li.disabled > a,
.ce-theme-v2 #navbar_map .navbar-nav > li.disabled > a:hover,
.ce-theme-v2 #navbar_map .navbar-nav > li.disabled > a:focus,
.ce-theme-v2 #above-ts-nav .navbar-nav > li.disabled > a,
.ce-theme-v2 #above-ts-nav .navbar-nav > li.disabled > a:hover,
.ce-theme-v2 #above-ts-nav .navbar-nav > li.disabled > a:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #edf4ff !important;
  opacity: 0.95;
}

.ce-theme-v2 #navbar_map .navbar-nav.navbar-right > li + li::before,
.ce-theme-v2 #above-ts-nav .navbar-nav.navbar-right > li + li::before {
  margin-right: 10px;
  background: rgba(237, 244, 255, 0.42);
}

.ce-theme-v2 #navbar_map .navbar-toggle,
.ce-theme-v2 #above-ts-nav .navbar-toggle {
  border-color: rgba(237, 244, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.1);
}

.ce-theme-v2 #navbar_map .navbar-toggle .icon-bar,
.ce-theme-v2 #above-ts-nav .navbar-toggle .icon-bar {
  background-color: #f3f8ff !important;
}

.ce-theme-v2 #button_resetFormsMap,
.ce-theme-v2 #button_resetFormsGraph,
.ce-theme-v2 .logoutContainer {
  align-items: center;
}

.ce-theme-v2 #resetFormsMap,
.ce-theme-v2 #resetFormsTimeSeries,
.ce-theme-v2 .logoutButton {
  font-weight: 700;
}

.ce-theme-v2 .dropdown-menu {
  border: 1px solid var(--ce-border);
  border-radius: 9px;
  box-shadow: var(--ce-shadow-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  padding: 6px !important;
}

.ce-theme-v2 .dropdown-menu > li > a {
  border-radius: 8px;
  color: var(--ce-text);
  font-weight: 600;
}

.ce-theme-v2 .dropdown-menu > li > a:hover,
.ce-theme-v2 .dropdown-menu > li > a:focus {
  background: #edf4ff;
  color: var(--ce-primary);
}

.ce-theme-v2 #navbar_map .dropdown-menu,
.ce-theme-v2 #above-ts-nav .dropdown-menu {
  line-height: 1.35;
}

.ce-theme-v2 #navbar_map .dropdown-menu .panel.panel-default,
.ce-theme-v2 #above-ts-nav .dropdown-menu .panel.panel-default {
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--ce-shadow-xs);
}

.ce-theme-v2 #navbar_map .dropdown-menu .panel.panel-default > .panel-body,
.ce-theme-v2 #above-ts-nav .dropdown-menu .panel.panel-default > .panel-body {
  padding: 8px 10px;
}

.ce-theme-v2 #navbar_map .dropdown-menu h3,
.ce-theme-v2 #navbar_map .dropdown-menu h4,
.ce-theme-v2 #navbar_map .dropdown-menu h5,
.ce-theme-v2 #above-ts-nav .dropdown-menu h3,
.ce-theme-v2 #above-ts-nav .dropdown-menu h4,
.ce-theme-v2 #above-ts-nav .dropdown-menu h5 {
  color: var(--ce-text) !important;
  font-weight: 800 !important;
  line-height: 1.15;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.ce-theme-v2 #navbar_map .dropdown-menu p,
.ce-theme-v2 #above-ts-nav .dropdown-menu p {
  color: var(--ce-text) !important;
  font-size: 12px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.ce-theme-v2 #navbar_map .dropdown-menu select,
.ce-theme-v2 #navbar_map .dropdown-menu input[type="text"],
.ce-theme-v2 #above-ts-nav .dropdown-menu select,
.ce-theme-v2 #above-ts-nav .dropdown-menu input[type="text"] {
  min-height: 28px;
  font-size: 12px;
  margin-top: 1px;
  margin-bottom: 2px;
}

.ce-theme-v2 #dropdown_ComputedMap > .dropdown-menu {
  background: #d8dee6;
  border-color: #c4cfdd;
}

.ce-theme-v2 #dropdown_ComputedMap > .dropdown-menu > .panel.panel-default {
  background: #eef2f7;
  border-color: #c9d3e1;
  box-shadow: none;
}

.ce-theme-v2 #dropdown_ComputedMap .colorbarSample > .panel.panel-default,
.ce-theme-v2 #dropdown_ComputedMap .colorChoices > .panel.panel-default {
  background: #f8fafd;
  border-color: #d3dbe8;
}

.ce-theme-v2 #dropdown_ComputedMap .colorbarSample > .panel.panel-default > .panel-body,
.ce-theme-v2 #dropdown_ComputedMap .colorChoices > .panel.panel-default > .panel-body {
  padding: 6px 8px;
}

.ce-theme-v2 #dropdown_ComputedMap .row {
  margin-left: -4px;
  margin-right: -4px;
}

.ce-theme-v2 #dropdown_ComputedMap .row > [class*="col-"] {
  padding-left: 4px;
  padding-right: 4px;
}

.ce-theme-v2 #dropdown_ComputedMap label,
.ce-theme-v2 #dropdown_ComputedMap .panel-body,
.ce-theme-v2 #dropdown_ComputedMap .panel-body span,
.ce-theme-v2 #dropdown_ComputedMap .panel-body div {
  font-size: 12px;
  line-height: 1.2;
}

.ce-theme-v2 #dropdown_ComputedMap h3 {
  font-size: 16px !important;
}

.ce-theme-v2 #dropdown_ComputedMap h4 {
  font-size: 15px !important;
}

.ce-theme-v2 #dropdown_ComputedMap h5 {
  font-size: 13px !important;
}

.ce-theme-v2 #dropdown_ComputedMap .close {
  color: #9aa8bb;
  opacity: 0.85;
  text-shadow: none;
}

.ce-theme-v2 #dropdown_ComputedMap .close:hover,
.ce-theme-v2 #dropdown_ComputedMap .close:focus {
  color: #4e647f;
  opacity: 1;
}

.ce-theme-v2 .popover {
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  box-shadow: var(--ce-shadow-lg);
}

.ce-theme-v2 .modal-content {
  border-radius: 10px;
}

.ce-theme-v2 .modal-header {
  padding: 8px 12px;
}

.ce-theme-v2 .modal-title {
  font-size: 16px;
  line-height: 1.2;
}

.ce-theme-v2 .modal-body {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.25;
}

.ce-theme-v2 .modal-body .panel.panel-default > .panel-body {
  padding: 8px 10px;
}

.ce-theme-v2 .modal-body .form-control,
.ce-theme-v2 .modal-body select,
.ce-theme-v2 .modal-body input[type="text"] {
  min-height: 28px;
  font-size: 12px;
}

.ce-theme-v2 .modal-footer {
  padding: 8px 12px;
}

.ce-theme-v2 #map-wrapper {
  position: relative;
  border: 1px solid var(--ce-border-strong);
  border-radius: 0;
  box-shadow: var(--ce-shadow-md);
  background: #ffffff;
  overflow: hidden;
}

.ce-theme-v2 #map {
  border-radius: 0 !important;
  height: 100%;
}

.ce-theme-v2 .map-wrapper-sm {
  height: calc(100vh - 300px);
}

.ce-theme-v2 .map-wrapper-md,
.ce-theme-v2 .map-wrapper-lg {
  height: calc(100vh - 272px);
}

.ce-theme-v2 .map-wrapper-xlg {
  height: calc(100vh - 252px);
}

.ce-theme-v2 #map-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 113, 211, 0.5) 50%, transparent 100%);
}

.ce-theme-v2 #dataSourceRegion {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 4px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #999999;
  font-size: 15px;
  line-height: 1.4;
  text-align: right;
  box-shadow: none;
}

.ce-theme-v2 #geocoder-search-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  height: auto !important;
  min-height: 28px;
  bottom: 24px !important;
  left: 10px !important;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ce-border);
  border-radius: 7px;
  box-shadow: var(--ce-shadow-xs);
  padding: 2px 5px;
}

.ce-theme-v2 #geocoder-search-box a {
  display: inline-flex;
  align-items: center;
}

.ce-theme-v2 #geocoder-search-box img[src*="/static/img/info.png"] {
  width: 15px;
  height: 15px;
  display: block;
  opacity: 0.95;
}

.ce-theme-v2 #address {
  height: 22px !important;
  width: 190px !important;
  max-width: 42vw;
  border: 1px solid var(--ce-border-strong) !important;
  border-radius: 6px !important;
  color: var(--ce-text) !important;
  font-size: 11px !important;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  padding: 0 7px !important;
}

.ce-theme-v2 #geocoder-search-box input[type="button"] {
  height: 22px !important;
  border: 1px solid #0d5dab !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #1578d8 0%, #0c56a4 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 8px !important;
  cursor: pointer;
}

.ce-theme-v2 #geocoder-status {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  max-width: min(340px, 80vw);
  padding: 7px 10px;
  border: 1px solid #e2a6a6;
  border-radius: 7px;
  background: rgba(255, 248, 248, 0.98);
  color: #9d2525;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--ce-shadow-sm);
  white-space: normal;
}

.ce-theme-v2 #geocoder-status.is-visible {
  display: block;
}

.ce-theme-v2 #polygon-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(20, 34, 53, 0.55);
  backdrop-filter: blur(3px);
}

.ce-theme-v2 #show-underlay-label,
.ce-theme-v2 #show-computed-label,
.ce-theme-v2 #show-overlay-label {
  letter-spacing: 0.01em;
  text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.45),
     1px -1px 1px rgba(0, 0, 0, 0.45),
    -1px  1px 1px rgba(0, 0, 0, 0.45),
     1px  1px 1px rgba(0, 0, 0, 0.45);
}

.ce-theme-v2 #myFooter {
  border-top: 1px solid #1b72cb !important;
  background: linear-gradient(100deg, #08386f 0%, #0a4f98 58%, #1366bb 100%) !important;
  box-shadow: 0 -10px 24px rgba(8, 49, 94, 0.22);
}

.ce-theme-v2 #myFooter span,
.ce-theme-v2 #myFooter a {
  color: #edf4ff !important;
  font-weight: 500;
}

.ce-theme-v2 #myFooter a:hover,
.ce-theme-v2 #myFooter a:focus {
  color: #ffffff !important;
}

.ce-theme-v2 #myFooter .nav > li > a {
  cursor: pointer;
}

.ce-theme-v2 #myFooter .nav > li > a:hover,
.ce-theme-v2 #myFooter .nav > li > a:focus,
.ce-theme-v2 #myFooter .nav > .open > a,
.ce-theme-v2 #myFooter .nav > .open > a:hover,
.ce-theme-v2 #myFooter .nav > .open > a:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.ce-theme-v2 #myFooter .dropdown-menu a {
  cursor: pointer;
}

.ce-theme-v2 #myFooter img[src*="/static/img/logo_GEE_gray.png"] {
  filter: brightness(0) invert(1);
}

.ce-theme-v2 #myFooter .dropdown-menu {
  border: 1px solid var(--ce-border);
  box-shadow: var(--ce-shadow-md);
}

.ce-theme-v2 #myFooter .dropdown-menu a,
.ce-theme-v2 #myFooter .dropdown-menu span {
  color: var(--ce-text) !important;
}

.ce-theme-v2 #tabmapoptions > br,
.ce-theme-v2 #tabtimeseriesoptions > br {
  display: none;
}

.ce-theme-v2 #tabmapoptions,
.ce-theme-v2 #tabtimeseriesoptions {
  padding-bottom: 0;
}

.ce-theme-v2 #displayWindow,
.ce-theme-v2 #taboutmap,
.ce-theme-v2 #taboutfigure {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ce-theme-v2 #taboutmap .row > br:first-child {
  display: none;
}

.ce-theme-v2 #printableMap > .row:first-child,
.ce-theme-v2 #printableMap > div > .row:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ce-theme-v2 #printableMap > .row:first-child > br,
.ce-theme-v2 #printableMap > div > .row:first-child > br {
  display: none;
}

.ce-theme-v2 #printableMap > .row:first-child > [class*="col-"],
.ce-theme-v2 #printableMap > div > .row:first-child > [class*="col-"] {
  float: none;
}

.ce-theme-v2 #titleRegion {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.ce-theme-v2 #taboutmap .printableMap {
  margin-top: 0 !important;
}

.ce-theme-v2 #myFooter.navbar {
  margin-bottom: 0 !important;
}

.ce-theme-v2 #dataTab .mapgraph-info-trigger img {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.ce-theme-v2 :focus-visible {
  outline: 2px solid rgba(26, 184, 143, 0.65);
  outline-offset: 1px;
}

@media (max-width: 1200px) {
  .ce-theme-v2 #dataTab li a {
    font-size: 17px;
  }

  .ce-theme-v2 #dataFigTab > li:not(.pull-right) > a {
    font-size: 15px;
  }

  .ce-theme-v2 .map-wrapper-sm {
    height: calc(100vh - 320px);
  }

  .ce-theme-v2 .map-wrapper-md,
  .ce-theme-v2 .map-wrapper-lg {
    height: calc(100vh - 292px);
  }

  .ce-theme-v2 .map-wrapper-xlg {
    height: calc(100vh - 272px);
  }
}

@media (max-width: 767px) {
  html,
  body.ce-theme-v2,
  .ce-theme-v2 #form_all,
  .ce-theme-v2 #wrapper {
    width: 100%;
    min-width: 0;
  }

  body.ce-theme-v2 {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .ce-theme-v2 #wrapper,
  .ce-theme-v2 #wrapper.toggled {
    padding-left: 0 !important;
  }

  .ce-theme-v2 #sidebar-wrapper,
  .ce-theme-v2 #wrapper.toggled #sidebar-wrapper {
    width: 0 !important;
    padding: 0;
  }

  .ce-theme-v2 #page-content-wrapper {
    left: 0;
    width: 100%;
    margin: 0 !important;
    padding: 24px 16px !important;
  }

  .ce-theme-v2 .small-screen-notice {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 24px;
    color: var(--ce-text);
    font-size: clamp(20px, 4vw, 28px);
    line-height: 1.4;
    text-align: center;
  }

  .ce-theme-v2 .small-screen-notice-logo {
    margin: 0 0 24px;
    color: var(--ce-primary);
  }

  .ce-theme-v2 .small-screen-notice-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 50px;
    margin: 0 auto;
  }

  .ce-theme-v2 .small-screen-notice p {
    margin: 28px 0;
  }

  .ce-theme-v2 .small-screen-notice-rule {
    width: 100%;
    height: 8px;
    margin: 24px 0;
    border-radius: 4px;
    background: var(--ce-primary-strong);
  }

  .ce-theme-v2 .small-screen-notice-action {
    display: block;
    width: 100%;
    margin: 30px 0;
    padding: 14px 18px;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
  }

  .ce-theme-v2 #climateEngineHome .modal-dialog {
    width: auto;
    margin: 8px;
  }

  .ce-theme-v2 #climateEngineHome .modal-content {
    max-height: calc(100vh - 16px);
    overflow: hidden;
  }

  .ce-theme-v2 #climateEngineHome .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    border: 0;
  }

  .ce-theme-v2 #climateEngineHome .modal-header .close {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .ce-theme-v2 #climateEngineHome .modal-body {
    max-height: calc(100vh - 16px);
    padding: 22px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.45;
  }

  .ce-theme-v2 #climateEngineHome .modal-body > .row,
  .ce-theme-v2 #climateEngineHome .modal-body .img-portfolio > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .ce-theme-v2 #climateEngineHome .modal-body .img-portfolio {
    padding-right: 0;
    padding-left: 0;
  }

  .ce-theme-v2 #climateEngineHome img {
    max-width: 100%;
    height: auto;
  }

  .ce-theme-v2 #climateEngineHome img[src*="logo_climateengine_org.png"] {
    max-height: 54px;
    margin-top: 4px;
  }

  .ce-theme-v2 #climateEngineHome h2 {
    padding: 10px 0 !important;
    font-size: 18px !important;
    line-height: 1.3;
  }

  .ce-theme-v2 #climateEngineHome h3,
  .ce-theme-v2 #climateEngineHome p {
    line-height: 1.4;
  }

  .ce-theme-v2 #climateEngineHome img[src*="landing_map.png"],
  .ce-theme-v2 #climateEngineHome img[src*="landing_graph.png"] {
    display: block;
    width: 100% !important;
    height: 135px;
    margin-top: 5px;
    object-fit: cover;
    object-position: top;
  }

  .ce-theme-v2 #climateEngineHome .home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ce-theme-v2 #climateEngineHome .home-feature-grid > .col-sm-12 {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ce-theme-v2 #climateEngineHome .home-feature-card {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .ce-theme-v2 #climateEngineHome img[src*="/team/"],
  .ce-theme-v2 #climateEngineHome img[src*="/sponsors/"] {
    width: auto;
    max-width: 105px;
    max-height: 52px;
    margin: 4px;
  }

  .ce-theme-v2 #dataTab li a {
    font-size: 16px;
    min-height: 64px;
    height: 64px;
  }

  .ce-theme-v2 #dataTab > li:last-child,
  .ce-theme-v2 #dataTab > li:last-child > a {
    min-height: 64px;
    height: 64px !important;
  }

  .ce-theme-v2 #dataFigTab {
    min-height: 56px;
    padding: 6px 8px;
    margin: 8px 0 6px;
  }

  .ce-theme-v2 .panel.panel-default > .panel-body {
    padding: 14px 14px;
  }

  .ce-theme-v2 #navbar_map .navbar-nav > li > a,
  .ce-theme-v2 #above-ts-nav .navbar-nav > li > a {
    font-size: 15px;
  }
}

/* Unified application header. Existing Bootstrap menus are reused in place. */
.ce-theme-v2 #appTopbar {
  position: relative;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  width: calc(100% + var(--ce-sidebar-width) + 40px);
  margin: -14px -20px 10px calc(-1 * var(--ce-sidebar-width) - 20px);
  padding: 8px 22px;
  border: 0;
  background: linear-gradient(105deg, #07396f 0%, #084b8e 58%, #0c5fae 100%);
  box-shadow: 0 6px 18px rgba(8, 49, 94, 0.2);
  transition: width 0.1s ease, margin-left 0.1s ease;
}

.ce-theme-v2 #wrapper.toggled #appTopbar {
  width: calc(100% + 40px);
  margin-left: -20px;
}

.ce-theme-v2 #sidebar-wrapper {
  top: 76px;
  height: calc(100vh - 132px);
}

.ce-theme-v2 #appTopbar .topbar-brand {
  flex: 0 0 auto;
  width: 365px;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-build-section {
  margin: 0;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-options-container {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.3;
}

.ce-theme-v2 #tour_timeseries_multvar_intro {
  margin-top: 6px;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-build-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-section-label {
  display: block;
  margin: 0 0 5px 4px;
  color: var(--ce-text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ce-theme-v2 #sidebar-wrapper #dataTab {
  flex: 1 1 auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  gap: 5px;
}

.ce-theme-v2 #sidebar-wrapper #dataTab > li,
.ce-theme-v2 #sidebar-wrapper #dataTab > li:last-child {
  flex: 1 1 0;
  border: 0;
}

.ce-theme-v2 #sidebar-wrapper #dataTab li a,
.ce-theme-v2 #sidebar-wrapper #dataTab > li:last-child > a {
  min-height: 38px;
  height: 38px !important;
  padding: 5px 10px;
  border: 1px solid var(--ce-border-strong);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.ce-theme-v2 #sidebar-wrapper #dataTab li.active a,
.ce-theme-v2 #sidebar-wrapper #dataTab li.active a:hover,
.ce-theme-v2 #sidebar-wrapper #dataTab li.active a:focus {
  border-color: var(--ce-primary-hover);
  background: var(--ce-primary);
  color: #ffffff !important;
  box-shadow: none;
}

.ce-theme-v2 #sidebar-wrapper #dataTab > li.build-disabled > a,
.ce-theme-v2 #sidebar-wrapper #dataTab > li.build-disabled > a:hover,
.ce-theme-v2 #sidebar-wrapper #dataTab > li.build-disabled > a:focus {
  border-color: #d6dee8;
  background: #edf1f5;
  color: #8a98a9 !important;
  cursor: not-allowed;
  box-shadow: none;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-build-info {
  flex: 0 0 30px;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-build-info .mapgraph-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 38px;
  border-radius: 8px;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-build-info .mapgraph-info-trigger:hover,
.ce-theme-v2 #sidebar-wrapper .sidebar-build-info .mapgraph-info-trigger:focus {
  background: #e6f0fb;
}

.ce-theme-v2 #sidebar-wrapper .sidebar-build-info img {
  width: 19px;
  height: 19px;
}

.ce-theme-v2 #appTopbar #dataFigTab > li.view-disabled > a,
.ce-theme-v2 #appTopbar #dataFigTab > li.view-disabled > a:hover,
.ce-theme-v2 #appTopbar #dataFigTab > li.view-disabled > a:focus {
  background: rgba(3, 42, 82, 0.32);
  color: rgba(225, 238, 252, 0.48);
  cursor: not-allowed;
  box-shadow: none;
}

.ce-theme-v2 #myFooter .cc-license-badge {
  display: inline-flex;
  min-height: 26px;
  margin-left: 5px;
  padding: 3px 8px 3px 5px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}

.ce-theme-v2 #myFooter .cc-license-badge:hover,
.ce-theme-v2 #myFooter .cc-license-badge:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.ce-theme-v2 #myFooter .cc-license-mark {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #ffffff !important;
  font-size: 8px;
  font-weight: 800;
}

.ce-theme-v2 #wrapper.toggled #sidebar-wrapper {
  padding-left: 0;
  padding-right: 0;
}

.ce-theme-v2 #appTopbar .topbar-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.ce-theme-v2 #appTopbar .topbar-mode-section {
  flex: 0 0 auto;
}

.ce-theme-v2 #appTopbar .topbar-data-section {
  flex: 1 1 auto;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.ce-theme-v2 #appTopbar .topbar-section-label {
  padding-left: 5px;
  color: rgba(225, 238, 252, 0.72);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ce-theme-v2 #appTopbar .topbar-brand a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.ce-theme-v2 #appTopbar .topbar-brand img,
.ce-theme-v2 #appTopbar #climateEngineHomeLink img {
  width: auto;
  max-width: 300px;
  height: auto !important;
  max-height: 54px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.ce-theme-v2 #appTopbar #dataFigTab {
  flex: 0 0 auto;
  display: flex;
  min-height: 42px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ce-theme-v2 #appTopbar #dataFigTab > li > a,
.ce-theme-v2 #appTopbar #menu-toggle-display {
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 8px;
  color: #edf4ff;
  background: transparent;
}

.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutfigure"],
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutdata"] {
  display: flex !important;
}

.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutmap"],
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutfigure"],
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutdata"] {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(3, 38, 75, 0.42);
  box-shadow: 0 3px 8px rgba(2, 30, 61, 0.18);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutmap"]:hover,
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutmap"]:focus,
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutfigure"]:hover,
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutfigure"]:focus,
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutdata"]:hover,
.ce-theme-v2 #appTopbar #dataFigTab a[href="#taboutdata"]:focus {
  background: rgba(24, 111, 197, 0.72);
}

.ce-theme-v2 #appTopbar #dataFigTab > li.active > a {
  background: #1672cf;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(2, 30, 61, 0.24);
}

/* Keep the active topbar target legible while Intro.js dims the page. */
.ce-theme-v2 #appTopbar a.introjs-showElement {
  background: #1672cf !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px #ffffff, 0 4px 12px rgba(2, 30, 61, 0.35) !important;
}

.ce-theme-v2 #appTopbar a.introjs-showElement .caret {
  border-top-color: #ffffff !important;
}

.ce-theme-v2 #appTopbar #menu-toggle-display {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0;
  font-size: 21px;
}

.ce-theme-v2 #appTopbar #menu-toggle-display:hover,
.ce-theme-v2 #appTopbar #menu-toggle-display:focus,
.ce-theme-v2 #appTopbar #menu-toggle-display:focus-visible {
  outline: 0;
  text-decoration: none;
  box-shadow: none;
}

.ce-theme-v2 #appTopbar .topbar-context-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.ce-theme-v2 #appTopbar #navbar_map,
.ce-theme-v2 #appTopbar #above-ts-nav {
  flex: 1 1 auto;
  min-height: 42px;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.ce-theme-v2 #appTopbar .navbar-header {
  display: none;
}

.ce-theme-v2 #appTopbar .navbar-collapse {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

.ce-theme-v2 #appTopbar .navbar-nav {
  display: flex;
  align-items: center;
  float: none !important;
  margin: 0;
}

.ce-theme-v2 #appTopbar .navbar-nav > li {
  float: none;
}

.ce-theme-v2 #appTopbar #navbar_map .navbar-nav > li > a,
.ce-theme-v2 #appTopbar #above-ts-nav .navbar-nav > li > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  white-space: nowrap;
}

.ce-theme-v2 #appTopbar .navbar-nav.navbar-right {
  margin-left: auto;
}

.ce-theme-v2 #appTopbar .topbar-action-icon {
  margin-right: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.ce-theme-v2 #appTopbar + #displayWindow {
  flex: 1 1 auto;
  width: 100%;
  height: auto !important;
  min-width: 0;
  min-height: 0;
  overflow: hidden !important;
}

.ce-theme-v2 .ce-empty-state {
  display: flex;
  min-height: 320px;
  padding: 40px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ce-text-muted);
  text-align: center;
}

.ce-theme-v2 .ce-empty-state h2 {
  margin: 0 0 8px;
  color: var(--ce-text);
  font-size: 24px;
  font-weight: 700;
}

.ce-theme-v2 .ce-empty-state p {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.ce-theme-v2 .ce-awaiting-graph {
  display: none;
}

.ce-theme-v2 #dataTabSection.ce-data-empty {
  display: block !important;
}

.ce-theme-v2 #usdmLegend:not(:empty) {
  margin-top: 8px;
}

.ce-theme-v2 #appTopbar + #displayWindow .map-wrapper-sm,
.ce-theme-v2 #appTopbar + #displayWindow .map-wrapper-md,
.ce-theme-v2 #appTopbar + #displayWindow .map-wrapper-lg,
.ce-theme-v2 #appTopbar + #displayWindow .map-wrapper-xlg {
  height: 100%;
}

@media (min-width: 768px) {
  html,
  body.ce-theme-v2,
  .ce-theme-v2 #form_all,
  .ce-theme-v2 #wrapper,
  .ce-theme-v2 #page-content-wrapper,
  .ce-theme-v2 #page-content-wrapper > .container-fluid,
  .ce-theme-v2 #page-content-wrapper > .container-fluid > .row,
  .ce-theme-v2 #page-content-wrapper .scrollit {
    height: 100%;
    min-height: 0;
  }

  html,
  body.ce-theme-v2 {
    overflow: hidden !important;
  }

  .ce-theme-v2 #page-content-wrapper {
    padding-bottom: 0;
    overflow: visible !important;
  }

  .ce-theme-v2 .desktop-app-shell {
    display: flex !important;
    height: calc(100% - var(--ce-footer-height) - 5px);
    min-width: 0;
    min-height: 0;
    flex-direction: column;
  }

  .ce-theme-v2 #appTopbar {
    flex: 0 0 76px;
  }

  .ce-theme-v2 #myFooter {
    height: var(--ce-footer-height);
    min-height: var(--ce-footer-height);
  }

  .ce-theme-v2 #taboutmap.active,
  .ce-theme-v2 #taboutfigure.active,
  .ce-theme-v2 #taboutdata.active {
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .ce-theme-v2 #printableMap,
  .ce-theme-v2 #printableMap > div:first-child {
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .ce-theme-v2 #printableMap > div:first-child {
    display: flex;
    flex-direction: column;
  }

  .ce-theme-v2 #printableMap > div:first-child > .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .ce-theme-v2 #printableMap > div:first-child > .row:first-child {
    flex: 0 0 auto;
  }

  .ce-theme-v2 #printableMap > div:first-child > .row:nth-child(2) {
    flex: 1 1 auto;
    min-height: 0;
  }

  .ce-theme-v2 #printableMap > div:first-child > .row:nth-child(2) > [class*="col-"] {
    display: flex;
    height: 100%;
    min-height: 0;
    padding-right: 0;
    padding-left: 0;
    flex-direction: column;
  }

  .ce-theme-v2 #map-wrapper {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
  }

  .ce-theme-v2 #colorbar {
    max-width: 100%;
  }

  .ce-theme-v2 #tour_windowTimeSeries {
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .ce-theme-v2 #tour_windowTimeSeries > .row {
    height: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .ce-theme-v2 #figureSection,
  .ce-theme-v2 .ce-graph-result,
  .ce-theme-v2 #tour_windowTimeSeriesFigure,
  .ce-theme-v2 #tour_windowTimeSeriesFigure > .panel,
  .ce-theme-v2 #tour_windowTimeSeriesFigure > .panel > .panel-body,
  .ce-theme-v2 #tour_windowTimeSeriesFigure > .panel > .panel-body > .row,
  .ce-theme-v2 #tour_windowTimeSeriesFigure > .panel > .panel-body > .row > [class*="col-"] {
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .ce-theme-v2 #figureSection {
    padding-right: 0;
    padding-left: 0;
  }

  .ce-theme-v2 #tour_windowTimeSeriesFigure > .panel {
    box-sizing: border-box;
    margin-bottom: 0;
  }

  .ce-theme-v2 #tour_windowTimeSeriesFigure > .panel > .panel-body > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .ce-theme-v2 #tour_windowTimeSeriesFigure #cL_yearTarget {
    flex: 0 0 auto;
  }

  .ce-theme-v2 #highchartsfigure {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .ce-theme-v2 #dataTabSection,
  .ce-theme-v2 #datatabWindow,
  .ce-theme-v2 .ts_data_tab {
    max-width: 100%;
  }

  .ce-theme-v2 .ts_data_tab {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (max-width: 1560px) {
  .ce-theme-v2 #appTopbar {
    gap: 10px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .ce-theme-v2 #appTopbar .topbar-brand {
    width: 300px;
  }

  .ce-theme-v2 #appTopbar .topbar-brand img,
  .ce-theme-v2 #appTopbar #climateEngineHomeLink img {
    max-width: 275px;
  }

  .ce-theme-v2 #appTopbar #dataFigTab > li > a {
    padding-left: 13px;
    padding-right: 13px;
  }

  .ce-theme-v2 #appTopbar #navbar_map .navbar-nav > li > a,
  .ce-theme-v2 #appTopbar #above-ts-nav .navbar-nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 15px;
  }
}

@media (max-width: 1400px) {
  .ce-theme-v2 #appTopbar {
    gap: 6px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ce-theme-v2 #appTopbar .topbar-brand {
    width: 245px;
  }

  .ce-theme-v2 #appTopbar .topbar-brand img,
  .ce-theme-v2 #appTopbar #climateEngineHomeLink img {
    max-width: 225px;
  }

  .ce-theme-v2 #appTopbar #dataFigTab > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 15px;
  }

  .ce-theme-v2 #appTopbar #navbar_map .navbar-nav > li > a,
  .ce-theme-v2 #appTopbar #above-ts-nav .navbar-nav > li > a {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 13px;
  }
}

@media (max-width: 1245px) {
  .ce-theme-v2 #appTopbar .navbar-right > li > a {
    width: 38px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
  }

  .ce-theme-v2 #appTopbar .navbar-right .topbar-action-label {
    display: none;
  }

  .ce-theme-v2 #appTopbar .navbar-right .topbar-action-icon {
    margin-right: 0;
  }
}

@media (max-width: 1200px) {
  .ce-theme-v2 #sidebar-wrapper .sidebar-nav {
    width: auto;
  }

  .ce-theme-v2 #appTopbar .topbar-brand {
    width: 190px;
  }

  .ce-theme-v2 #appTopbar .topbar-brand img,
  .ce-theme-v2 #appTopbar #climateEngineHomeLink img {
    max-width: 175px;
  }

  .ce-theme-v2 #appTopbar #dataFigTab > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
  }

  .ce-theme-v2 #appTopbar #navbar_map .navbar-nav > li > a,
  .ce-theme-v2 #appTopbar #above-ts-nav .navbar-nav > li > a {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .ce-theme-v2 #wrapper {
    padding-left: var(--ce-sidebar-width-md);
  }

  .ce-theme-v2 #wrapper.toggled {
    padding-left: 0;
  }

  .ce-theme-v2 #sidebar-wrapper {
    width: var(--ce-sidebar-width-md);
  }

  .ce-theme-v2 #wrapper.toggled #sidebar-wrapper {
    width: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 1100px) {
  .ce-theme-v2 #appTopbar .topbar-brand {
    width: 48px;
    overflow: hidden;
  }

  .ce-theme-v2 #appTopbar .topbar-brand img,
  .ce-theme-v2 #appTopbar #climateEngineHomeLink img {
    width: auto;
    max-width: 44px;
    max-height: 48px;
  }
}

@media (max-width: 1024px) {
  .ce-theme-v2 #wrapper,
  .ce-theme-v2 #wrapper.toggled {
    padding-left: 0;
  }

  .ce-theme-v2 #sidebar-wrapper {
    width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .ce-theme-v2 #wrapper.toggled #sidebar-wrapper {
    width: var(--ce-sidebar-width-md);
    padding: 10px 20px 0;
    border-right: 1px solid var(--ce-border);
    background: var(--ce-bg);
    box-shadow: 10px 0 28px rgba(8, 49, 94, 0.2);
  }

  .ce-theme-v2 #page-content-wrapper,
  .ce-theme-v2 #wrapper.toggled #page-content-wrapper {
    position: relative;
    margin-right: 0;
  }

  .ce-theme-v2 #appTopbar,
  .ce-theme-v2 #wrapper.toggled #appTopbar {
    width: calc(100% + 40px);
    margin-left: -20px;
  }
}

@media (max-width: 899px) {
  .ce-theme-v2 #appTopbar,
  .ce-theme-v2 #wrapper.toggled #appTopbar {
    width: calc(100% + 40px);
    margin-left: -20px;
    gap: 4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ce-theme-v2 #appTopbar .topbar-brand {
    width: 38px;
    overflow: hidden;
  }

  .ce-theme-v2 #appTopbar .topbar-brand img,
  .ce-theme-v2 #appTopbar #climateEngineHomeLink img {
    width: auto;
    max-width: 36px;
    max-height: 42px;
  }

  .ce-theme-v2 #appTopbar #dropdown_ComputedMap {
    display: none !important;
  }

  .ce-theme-v2 #appTopbar #button_resetFormsMap,
  .ce-theme-v2 #appTopbar #button_resetFormsGraph {
    display: none !important;
  }
}
