.bg-img {
  background-image: url(../../icons/bg-img.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 100vh;
  background-repeat: repeat-x;
}

.topbar {
  overflow: hidden;
  position: fixed;
  display: flex;
  justify-content: space-between;
  top: 0;
  width: 100%;
  padding: 5px;
}

.main-holder {
  display: flex;
  height: 100% !important;
  overflow: auto;
  padding: 55px 10px 5px 5px;
}

/* element */
/* element */
/* element */

.element {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  /* height: 100% !important; */
  height: calc(100vh - 60px);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 5px 5px 0 5px;
  margin-left: 5px;
  border-radius: 12px;
  color: #fff;
}

/* Timeline: periods with no calendar events when “only periods with calendar actions” is on */
.element.element-timeline-column-compact {
  flex-shrink: 0;
  max-width: 44px;
  min-width: 36px;
  padding: 4px 2px;
  margin-left: 3px;
}

.element.element-timeline-column-compact .element-content {
  width: auto;
  min-width: 28px;
  max-width: 40px;
  margin-left: auto;
  margin-right: auto;
  padding: 6px 2px;
}

.element.element-timeline-column-compact .element-content-caption {
  text-transform: none;
}

.element.element-timeline-column-compact .element-content-scroll-y {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 72px;
  overflow: hidden;
}

.element.element-timeline-column-compact .element-content-bottom {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  margin-top: auto;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
}

.element.element-timeline-column-compact .element-timeline-compact-tooltip-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.element.element-timeline-column-compact .element-timeline-compact-tooltip-wrap > span {
  margin-left: 0;
}

/* Collapsed placeholder: same compact column width, no panel chrome — dots only in bottom area */
.element.element-timeline-column-compact.element-timeline-column-empty {
  background-color: transparent;
  padding: 4px 2px;
  margin-left: 3px;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.element.element-timeline-column-compact.element-timeline-column-empty .element-content-bottom {
  background-color: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: 4px 0 8px;
  margin-top: 0;
  text-transform: none;
}

/* Dense black dot row; full hit target turns off “only periods with calendar actions” */
.element-timeline-column-empty-dots {
  display: block;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 1px 6px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
  /* Smaller repeat → more dots; black circles */
  background-image: radial-gradient(circle at center, #000 1.25px, transparent 1.35px);
  background-size: 4px 4px;
  background-position: 2px 100%;
  background-repeat: repeat-x;
}

.element-timeline-column-empty-dots:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.element-content {
  flex-shrink: 0;
  width: 175px;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  margin: 2px;
  padding: 8px;
}

.element-content-cut {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-x: auto;
  padding: 8px 0px 8px 0px;
  margin-top: 5px;

  /* border-radius: 10px; */
  /* background: linear-gradient(to right, rgba(0, 0, 0, 0.0) 70%, rgba(0, 0, 0, 0.3) 100%); */
}

.element-content-caption {
  text-transform: uppercase;
}

.element-content-add-button {
  width: 175px;
  /* padding: 2px; */
  border-radius: 6px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  margin: 2px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.element-content-add-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* .badge {
  padding: 4px 5px 0px 5px;
  height: 22px;
  width: 22px;
  color: #fff;
  background-color: #000;
  border-radius: 20px;
  font-size: 15px;
} */

.element-content-scroll-y {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: scroll;
  scroll-behavior: smooth;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.element-content-bottom {
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
  bottom: 0px;
  text-transform: uppercase;
  text-align: center;
  z-index: 5000;
}

.element-result-digit-small {
  font-size: 20px;
  font-weight: bold;
}

.element-result-digit-normal {
  font-size: 24px;
  font-weight: bold;
}

.image-culture {
  height: 200px;
  padding-top: 5px;
}

.element-content-bottom-caption {
  width: 175px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  margin: 2px;
}

.element-content-bottom-caption-bbch-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
}

.element-content-bottom-bbch-tooltip-wrap,
.element-content-bottom-bbch-tooltip-wrap * {
  text-transform: none;
}

.element-content-bottom-bbch-tooltip-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.element-weather-red {
  background-color: red;
}

.element-weather-red {
  background-color: orange;
}

.element-weather-cyan {
  background-color: cyan;
}

.element-weather-cyan {
  background-color: blue;
}

/* element-settings */
/* element-settings */
/* element-settings */

.element-content-settings {
  width: 210px;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  margin: 2px;
  padding: 8px;
  font-size: 16px;
}

.element-content-bottom-caption-settings {
  width: 210px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  margin: 2px;
}

.element-content-bottom-caption-settings-red {
  width: 210px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fe4d4d;
  margin: 2px;
}

/* plants group */

.btn-plants-group-holder {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 10px 10px 10px;
}

.btn-plants-group {
  width: 100%;
  text-align: center;
  margin: 10px 0px 0px 0px;
  color: #fff;
  background-color: #666;
  padding: 15px 10px 15px 10px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.btn-plants-group:hover {
  background-color: #777;
}

/* menu */

.main-menu {
  display: flex;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap;
  padding: 6px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.submenu {
  display: flex;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: left;
  justify-content: center;
  width: 300px;
  max-height: 80vh;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 0 0 10px 10px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  z-index: 5500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
}

.submenu-hr {
  width: 100%;
  border: none;
  border-top: 1.5px solid #666;
}

.first-btn {
  max-width: 9ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-holder {
  display: inline-flex;
  width: 100%;
  overflow: scroll;
  scroll-behavior: smooth;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap;
  padding: 6px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

.menu-btn {
  /* display: flex; */
  display: inline-flex;
  font-size: 20px;
  /* background-color: #000; */
  color: #fff;
  border-radius: 6px;
  padding: 5px 20px 5px 20px;
  cursor: pointer;
  margin-right: 4px;
}

.menu-btn-disabled {
  /* display: flex; */
  display: inline-flex;
  font-size: 20px;
  /* background-color: #000; */
  color: #4e4c4c;
  border-radius: 6px;
  padding: 5px 20px 5px 20px;
  cursor: pointer;
  margin-right: 4px;
}

.menu-btn:hover {
  background-color: #4a4a4a;
}

.menu-btn-active {
  color: white;
  background-color: #000000;
}

.menu-btn-red {
  /* display: flex; */
  display: inline-flex;
  font-size: 20px;
  /* background-color: #000; */
  color: #fe4d4d;
  border-radius: 6px;
  padding: 5px 20px 5px 20px;
  cursor: pointer;
  margin-right: 4px;
}

.menu-caption {
  font-size: 20px;
  color: #fff !important;
  text-align: right;
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* list Panel */
/* list Panel */
/* list Panel */

.lp-holder {
  color: #fff;
  background-color: #666;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  margin: 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.lp-holder:hover {
  background-color: #777;
}

.lp-content {
  margin: 5px 0px 0px 0px;
  background-color: #444;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.lp-content-btn {
  display: flex;
  display: inline-flex;
  background-color: #666;
  color: #fff;
  border-radius: 10px;
  padding: 5px 8px 5px 8px;
  margin: 5px;
  cursor: pointer;
}

.lp-content-btn:hover {
  background-color: #777;
}

/* Detail Panel */

.details-panel-bar {
  display: flex;
  justify-content: space-between;
  padding: 5px 5px 5px 5px;
  border-top: 2px solid #555;
}

.btn-details {
  padding: 5px 5px 5px 5px;
  cursor: pointer;
}

.btn-details:hover {
  background-color: #555;
  border-radius: 5px;
}

.btn-details-active {
  background-color: #555;
  padding: 6px 10px 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.scroll-menu-y {
  overflow-y: scroll;
}

/* caption */
/* caption */
/* caption */

.caption-map {
  /* position: fixed; */
  display: flex;
  top: 55px;
  left: 0;
  bottom: 0;
  width: 40px;
  color: #fff;
  opacity: 0.8;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 10px 0px 0px 10px;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: calc(100vh - 60px);
  transform: scale(-1, -1);
}

/* weather */
/* weather */
/* weather */

.weather-temperature {
  position: absolute;
  bottom: 65px;
  right: 20px;
  width: 4px;
  background-color: #ff2626;
  font-size: 5px;
}

.weather-precipitation {
  position: absolute;
  bottom: 65px;
  right: 13px;
  width: 4px;
  background-color: #236dff;
}

.weather-map-header {
  font-size: large;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  text-align: center;
}
