@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');


* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: sans-serif !important;
  height: 100%;
}

.overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}

.overlay-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  font-size: 4.5em;
  transform: translate(-50%, -50%);
}

a {
  text-decoration: none !important;
}

.small-headings {
  font-size: 13px;
}

.cmg-hidden {
  display: none;
}

.admin-text {
  font-family: 'Abril Fatface', cursive;
}

/* Header Section */

.navbar-brand {
  font-size: 1.7em;
}

.cmnavbar {
  background-color: #d2dbb2;
  border-bottom: #68733f;
}

.header-area {
  background: #72603f;
}

.back-arrow {
  animation: 1s bounce ease-in-out infinite paused;
}

.back-arrow:hover {
  animation-play-state: running;
  cursor: pointer;
}

@keyframes bounce {

  0%,
  5%,
  95%,
  100% {
    transform: translate(0, 0);
  }

  45%,
  55% {
    transform: translate(-5px, 0);
  }
}


.login-card {
  background-color: #f2f4e3;
  border-radius: 8px;
  width: 30%;
  min-width: 320px;
  padding: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 5%;
  margin-bottom: 8%;
}

/* Main Container */
#mainContainer {
  min-height: 80vh;
}

.mainContainer {
  background-color: white;
  position: absolute;
  left: 5%;
  top: 5%;
  min-height: 90%;
  min-width: 90%;
  border-radius: 2%;
}

.textInput {
  width: 80% !important;
  margin: 2% 10%;
}

.submitButton {
  width: 80%;
  margin: 5% 10%;
}


/* Nav Bar */

.nav-item {
  margin: 0 20px;
  font-size: 1.1em;
}


@media only screen and (max-width: 600px) {
  .navbar-nav {
    text-align: left !important;
  }
}

/* Landing Page */

.landingPageCard {
  color: grey;
  border-radius: 0.2em;
  font-size: 4em;
  box-shadow: 2px 3px 10px silver;
  min-height: 190px;
}

.landingPageCard:hover {
  cursor: pointer;
  scale: 1.05;
  transition: all ease-in 0.3s;
}

.side-menu-navs {
  background-color: #68733f;
  border-bottom: 1px solid #9ba672;
  color: #f2ebd5;
}

.side-menu-header {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #68733f;
  background-color: #d2dbb2;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.side-menu-navs h5 {
  font-size: 1em;
  font-weight: 400;
}

.side-menu-navs i {
  color: #f2ebd5;
}

.side-menu-navs:hover {
  cursor: pointer;
  scale: 1.02;
  background-color: #9ba672;
  transition: all ease-in 0.3s;
}

.side-menu-sec {
  /* height: 100vh; */
  background-color: #d2dbb2;
}

.side-menu-navs img {
  width: 23px;
  height: 23px;
}

input:focus-visible {
  outline: none;
}

img.img-list {
  margin: 0 2% 0 4%;
  border: 1px solid #efefef;
  border-radius: 38px;
  width: 3em;
  height: 3em;
  box-shadow: 4px 4px 6px 1px #cecece;
}

span.text-name {
  color: black;
  font-size: 116%;
  font-weight: 500;
  display: block;
}

.text-input-area {
  padding: 2%;
  width: 90%;
  border-color: #72603f;
}

/* Navigation Bar */

.navigation-icons i {
  font-size: 1.4em;
}


/* Shared look for both div and button icons */
.navigation-icons div,
.navigation-icons button {
  background-color: #72603f;
  width: 35px;
  height: 35px;
  font-size: 0.9em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.navigation-icons div:hover,
.navigation-icons button:hover {
  cursor: pointer;
  transition: all ease-out 0.3s;
  scale: 1.03;
  box-shadow: 2px 3px 5px #88888896;
}

/* Strip the button-specific defaults so it looks identical to the div */
.navigation-icons button {
  border: none;
  outline: none;
  color: inherit;            /* inherit text-white from the wrapper */
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.navigation-icons button:focus {
  outline: none;
  box-shadow: none;
}

.hidden-section {
  display: none;
}

@media only screen and (max-width: 990px) {
  .nav-item {
    border-bottom: 1px solid silver;
    padding: 5px;
  }
}


.user-data-table table,
.user-data-table th {
  border: none !important;
  text-align: center;
}

.user-data-table td {
  border: none;
  text-align: center;
  padding: 10px 8px !important;
}

.user-data-table tr {
  box-shadow: 2px 4px 10px #cbcbcb;
}

.user-data-table tbody tr:hover {
  transform: scale(1.01);
  transition: all ease-in 0.3s;
}

.user-data-table label {
  color: #999999;
}

.user-data-table input {
  border-radius: 50px;
  border: 1px solid silver;
  padding: 3px 5px;
}

.user-data-table .dataTables_paginate {
  font-size: 0.9em;
}

.user-data-table i {
  font-size: 1.3em;
}

.nav-tabs .nav-item {
  border: none;
  font-size: 0.9em;
  font-weight: 600;
  margin: 0 10px;
}

.nav-tabs .nav-item a {
  color: #7296b5;
}

.panel-title {
  background-color: #72603f;
}

.link-crop-plan-table td,
.link-crop-plan-table th {
  text-align: left !important;
  padding: 10px !important;
}

.small-text {
  font-size: 0.8em;
}

#partnerFarmersLoader {
  font-size: 2.4em;
}

.footer-company-image {
  max-width: 200px;
  width: 100%;
}

.text-poweredby {
  color: #fff;
}

.comapny-logo-nav {
  max-width: 100px;
  width: 100%;
}

.comapny-logo-name {
  font-size: 0.9em;
}

.pre-selected {
  background-color: #03bb0d !important;
  border-color: #03bb0d !important;
}

.serch-section {
  position: relative;
}

.custom-button {
  position: absolute;
  top: 13%;
  left: 5%;
  font-size: 113%;
  color: #72603f;
}

.custom-search {
  color: black;
  border: none;
  padding: 0 0 1% 8%;
  margin: 10px;
  background: white;
  border-bottom: 1px solid #72603f !important;
}


blink {
  animation: 2s linear infinite blink_effect;
}

@keyframes blink_effect {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.card-text {
  font-size: 2em !important;
}

/* Start of Image Viwer */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 19%;
  left: 0;
  top: 0%;
  width: 100%;
  height: 90%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 40px !important;
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The Close Button */
.close {
  position: absolute;
  top: 4%;
  left: 5%;
  color: #f1f1f1;
  font-size: 29px;
  /* font-weight: bold; */
  transition: 0.3s;
  background: #3f3f3f;
  width: 1em;
  height: 1em;
  align-items: center;
  display: flex;
  place-content: center;
  border-radius: 48px;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.fade-in {
  -webkit-animation: fade-in 0.5s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
  animation: fade-in 0.5s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.content-for-faq {
  text-align: center;
  height: auto;
}

.obs-imgage:hover {
  cursor: zoom-in;
}

.info-image-large {
  width: 150% !important;
  height: 150% !important;
}

.earthy-color {
  color: #a58b6a;
}

.light-green-color {
  color: #8bc34a;
}

.light-yellow-color {
  color: #c2d133;
}

.dtoh-charts {
  min-height: 400px !important;
  transform-origin: bottom !important;
  animation: revealing-bars 4s linear normal !important;
}

.deafult-card.slim-card.for-news:hover {
  transition: unset;
  background: unset;
}

.deafult-card.slim-card.for-news {
  display: block;
  /* margin: 4% 2%; */
  padding: 0 0;
  box-shadow: none;
}

.deafult-card.slim-card.for-news.for-marketcard {
  box-shadow: 0px 0px 6px 0px rgb(0 0 0 / 28%);
}

.deafult-card.slim-card.for-market.subTotal {
  justify-content: space-between;
  padding: 10px;
}

.deafult-card.slim-card.for-market {
  padding: 10px;
  align-items: center;
  box-shadow: none;
  margin: 0;
  border-bottom: 1px solid #dedede;
  position: relative;
  justify-content: space-evenly;
}

.deafult-card.slim-card {
  /* width: auto; */
  box-sizing: border-box;
  /* padding: 3% 3%; */
  align-items: flex-start;
}

.deafult-card {
  display: flex;
  box-sizing: border-box;
  margin: 4% 0;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 0px 16px 0px rgb(0 0 0 / 28%);
  /* padding: 5% 2%; */
  transition: background 0.8s;
  align-items: center;
}

.flex-container.for-prices {
  align-items: center;
  width: auto;
}

.flex-container {
  display: flex;
  width: 100%;
  height: auto;
}

.small-icon {
  font-size: 0.8em !important;
}

.cover-div {
  min-height: 20px;
  background-color: #fff;
  transform: translateY(-30px);
}

.dwr-card:hover {
  transform: scale(1.05);
  transition: 0.3s all ease-in;
  cursor: pointer;
}

.selected-card {
  background-color: #b8ffb9;
}

.card-title {
  font-size: 0.77em;
  font-weight: bold;
}

.acive-farm-details {
  color: #183f87;
  font-weight: bold;
}

.ring {
  animation: notification 2s infinite;
}

@keyframes notification {

  5% {
    transform: rotate(18deg);
  }

  10% {
    transform: rotate(-18deg);
  }

  15% {
    transform: rotate(18deg);
  }

  20% {
    transform: rotate(0deg);
  }
}

.bell_notification {
  position: relative;
}

.notificaion_indigator {
  position: absolute;
  background-color: red;
  top: -10px;
  right: -10px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8em;
  font-weight: bold;
  padding-top: 4px;
}

output {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

output .image {
  margin: auto;
  text-align: center;
  position: relative;
  background-color: #fbfbfb;
  padding: 25px;
  border-radius: 5px;
}

output .image img {
  max-width: 100%;
}

output .image span {
  position: absolute;
  top: -7px;
  right: -7px;
  cursor: pointer;
  width: 25px;
}

output .image span:hover {
  opacity: 0.8;
}

output .span--hidden {
  visibility: hidden;
}

button.close-compliance-modal {
  padding: 0;
  background-color: transparent;
  border: 0;
}

.close-compliance-modal {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
}

#map {
  height: 100vh;
}

.circular-progress {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 0.5s;
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #f8f9fa;
}

.compliance-value {
  position: relative;
  font-size: 16px;
  font-weight: bold;
}

.lp-circular-progress {
  height: 140px;
  width: 140px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 0.5s;
}

.lp-circular-progress::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #f8f9fa;
}

.lp-compliance-value {
  position: relative;
  font-size: 23px;
  font-weight: bold;
}

.show-modal {
  display: block !important;
}

.modal-dialog {
  max-width: 850px !important;
}

.landing-card {
  box-shadow: 1px 3px 5px #888888;
}

.landing-card:hover {
  transform: scale(1.02);
  transition: all ease-in 0.3s;
  cursor: pointer;
}

.landing-card-safron1 {
  border-radius: 6px;
  background: rgb(255, 255, 255);
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(240, 192, 145, 1) 70%, rgba(242, 168, 93, 0.969625350140056) 100%);
}

.landing-card-green1 {
  border-radius: 6px;
  background: rgb(255, 255, 255);
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(155, 240, 145, 1) 70%, rgba(123, 242, 93, 0.969625350140056) 100%);
}

.landing-card-yellow1 {
  border-radius: 6px;
  background: rgb(255, 255, 255);
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(236, 231, 74, 1) 85%, rgba(240, 238, 84, 0.969625350140056) 100%);
}

.landing-card-safron {
  border-radius: 6px;
  background: rgba(243, 212, 168, 0.97);
}

.landing-card-green {
  border-radius: 6px;
  background: rgba(227, 249, 170, 0.97);
}

.landing-card-yellow {
  border-radius: 6px;
  background: rgb(248, 245, 144);
}

.landing-card-text {
  font-size: 0.8em
}

.landing-analytics-sec {
  border: 1px solid #89db89;
  border-radius: 15px;
  padding: 10px;
  width: 100%;
  min-height: 330px;
  max-height: 330px;
}

.landing-select {
  min-width: 250px;
}

.landing-select option {
  padding: 5px 0;
  border-bottom: 2px solid silver;
}

.yield-toggle-cover {
  transform: translateY(-25px);
}

.yield-units {
  border-color: #eee;
  padding: 0 5px;
  color: #7f7f7f;
}

.compliance-btn {
  padding: 10px 6px;
  border-radius: 5px;
}

.compliance-btn-allplan {
  background-color: #7b7b7b;
}

.compliance-btn-activeplan {
  background-color: green;
}

.fcd-plantypes:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: 0.3s all ease-in-out;
}

.renewal_notification {
  width: 25px !important;
  height: 25px !important;
  right: 0px !important;
  color: white;
  text-align: center;
}

.landing-details-btn {
  background-color: #a0ce81;
  width: 28px;
  height: 28px;
  font-size: 1.2em;
  border-radius: 50%;
  cursor: pointer;
}

.um-linked-farm {
  background-color: #cecece;
}

.details-page-link:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: 0.3s all ease-in-out;
}

.compliance_indicator {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 0.9em;
  padding-top: 7px;
  border: 3px solid;
  text-align: center;
}

#tbllcdFamrCompliances td {
  padding: 6px !important;
  background-color: #f4f4f4;
}

#tbllcdFamrCompliances td img {
  cursor: zoom-in;
}

#lpPndDetailsSec td {
  padding: 6px !important;
  background-color: #f4f4f4;
}

.outcome-badge-best {
  border: 1px solid #177717;
  color: #177717;
  background-color: #dbf0db;
  padding: 6px 10px;
  border-radius: 50%;
}

.outcome-badge-least {
  border: 1px solid #ab0d0d;
  color: #ab0d0d;
  background-color: #ebd7d7;
  padding: 6px 10px;
  border-radius: 50%;
}

.effected-farm-card {
  background-color: #f5c2c2;
  padding: 10px;
  margin: 0 5px;
  border-radius: 8px;
}

.map-overlay {
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}

img[src$="#custom_marker"] {
  border: 2px solid #900 !important;
  border-radius: 50%;
}

.map-yield-card {
  border: 2px solid #72603f;
  border-radius: 5px;
  text-align: center;
  color: #72603f;
}

.map-toggle {
  border: 1px solid #72603f;
  color: #72603f;
  background: transparent;
  border-radius: 50px;
  margin-left: 6px;
}

.map-calender-heading-sec {
  background-color: #72603f;
  border-radius: 5px 5px 0 0;
}

.map-calender-month-sec {
  border: 1px solid gray;
  border-radius: 0 0 5px 5px;
}

.map-calender-month {
  border: 1px solid silver;
  border-radius: 4px;
  font-size: 0.9em;
}

.map-calender-month:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: 0.3s all ease-out;
}

.map-calender-month-active {
  background-color: #bdcbd7;
}

.map-farm-count {
  background: #386b95;
  border-radius: 20%;
}

.map-harvest-months {
  border-color: #e5ed66;
  border: 2px solid #e5ed66;
}

.exception-section {
  border: 2px solid silver;
  border-radius: 10px;
}

.exception-data:hover {
  cursor: pointer;
}

#fcdBudgetTable td:nth-child(2n) {
  border-right: 2px solid #000;
}

#fcdBudgetTable td {
  border: 1px solid #ccc
}

#fcdBudgetTable table {
  border: 1px solid;
}

#fcdBudgetTable th {
  border: 1px solid #ccc;
  text-decoration: underline;
}

#fcdBudgetTable td,
#budgetTable th {
  padding: 0px;
  text-align: center;
  border-collapse: collapse;
  width: 50px;
}

#fcdBudgetTable {
  width: 100%;
}

[id^="Expense_"] {
  background-color: #ffd0d0;
  /* border: 3px solid #ff7878; */
}

/* Style all elements with IDs starting with "Budget_" */
[id^="Budget_"] {
  background-color: #d2ffd2;
  /* border: 3px solid #a6ffa6; */
}

/* Css for Performance */
/* Base styling for the hidden state */
/* Container setup */
#perfDataBlock {
  display: block;
  overflow: hidden;
}

#perfInfoBlock {
  display: flex;
  height: 70vh;
  /* Full viewport height */
  overflow: hidden;
  padding: 2%;
}

/* Left image block */
#perMapImage {
  flex: 0 0 40%;
  /* 40% width */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#perMapImage img {
  /* width: 100%; */
  height: 100%;
}

/* Right info block */
#perfinfoDiv {
  flex: 1;
  /* 60% width */
  overflow-y: auto;
  /* Make it scrollable */
  padding: 20px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  /* Light background for contrast */
}

/* Styling for the third div */
#perfDataBlock>div:last-child {
  height: auto;
  /* Full viewport height */
  display: block;
  align-items: center;
  justify-content: center;
}

.stylish-fieldset {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f8ff, #cce7ff);
  border: 0px solid #80bfff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.stylish-fieldset-table {
  display: block;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f8ff, #cce7ff);
  border: 0px solid #80bfff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  width: 100%;
}

.stylish-fieldset label {
  flex: 1;
  margin: 0 10px;
  text-align: center;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: background 0.3s, border 0.3s;
  cursor: pointer;
}

.stylish-fieldset input[type="radio"] {
  display: none;
}

.stylish-fieldset label:hover {
  background: #e6f7ff;
  border-color: #66ccff;
}

.stylish-fieldset input[type="radio"]:checked+label {
  background: #cceeff;
  border-color: #33aaff;
  font-weight: bold;
  color: #003366;
}


/* Css for h3 */
.stylish-h3 {
  font-family: 'Poppins', sans-serif;
  /* Custom font */
  font-size: 18px;
  font-weight: bold;
  color: #333;
  /* Darker gray for text */
  text-align: center;
  margin: 20px 0;
  position: relative;
  padding: 10px 20px;
  background: rgba(255, 127, 80, 0.4);
  /* Soft gradient background
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  overflow: hidden;
  border-radius: 10px;
}

.stylish-h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
}

.stylish-h3:hover::before {
  opacity: 1;
}

/* //fiddle css  */

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.map-section,
.table-section,
.report-section,
.attendance-section {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

h2 {
  margin-top: 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table-header td,
.custom-table-body td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.custom-table-header {
  background-color: #eee;
}

.option-button {
  flex: 1;
  /* Make buttons take equal width */
  padding: 5px;
  margin: 0 5px;
  /* Small margin between buttons */
  border: 1px solid #80bfff;
  /* background-color: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(133,255,102,1) 0%, rgba(178,242,255,1) 100%); */
  background: white;
  /* color: #007bff; */
  color: DodgerBlue;
  font-size: 26px;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.option-button:hover {
  background-color: #007bff;
  color: white;
}

.option-button.selected {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
}

/* //datepicker performance */
.date-picker-wrapper {
  margin-bottom: 15px;
  width: 280px;
}

.perf-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.date-picker-minimal {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.date-picker-minimal:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.date-picker-minimal::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}

.check-button {
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007BFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 0%;
  align-self: center;
  width: 20%;
}

.check-button:hover {
  background-color: #0056b3;
}

.heading-collapse-btn {
  color: #000;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.heading-collapse-btn:hover {
  background-color: #6c757d;
  color: #fff;
}

.square-button {
  flex: 1;
  /* Each button takes equal space */
  margin: 0 10px;
  /* Space between buttons */
  padding: 20px;
  /* Adjust padding for button size */
  text-align: center;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.square-button:hover {
  background-color: #0056b3;
}

.rotate {
  animation: rotate 2s ease-in-out forwards;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


.plan-filter {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.plan-filter:hover {
  background-color: #0dcdfd !important;
  /* Bootstrap primary darkened */
  box-shadow: 0 0 0 0.15rem rgba(13, 173, 253, 0.5);
  text-decoration: none;
}

.plan-filter.active {
  background-color: #089874 !important;
  box-shadow: 0 0 0 0.2rem rgba(8, 152, 133, 0.4);
}



/* From Uiverse.io by Yaya12085 */
.radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: #EEE;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: 300px;
  font-size: 14px;
}

.radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: .5rem 0;
  color: rgba(51, 65, 85, 1);
  transition: all .15s ease-in-out;
}

.radio-inputs .radio input:checked+.name {
  background-color: #fff;
  font-weight: 600;
}



.accordion-button:hover {
  background-color: #f1f1f1;
  /* Light gray hover background */
  color: #000;
  /* Optional: ensure text remains visible */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Optional: subtle box shadow on hover */
.accordion-button:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


.chart-expanded {
  position: fixed;
  top: 50px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 95% !important;
  margin: 0 auto;
}

.chart-expanded canvas {
  height: 400px !important;
  max-width: 100% !important;
}

/* 
.budget-div:hover{
  color: white !important;
} */

.cmicon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -2px;
  background-color: currentColor;
}

.cmicon-big {
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: -2px;
  background-color: currentColor;
}

.icon-hub {
  -webkit-mask: url("/img/hub.png") no-repeat center / contain;
  mask: url("/img/hub.png") no-repeat center / contain;
}

.icon-field {
  -webkit-mask: url("/img/field.png") no-repeat center / contain;
  mask: url("/img/field.png") no-repeat center / contain;
}

.icon-overview {
  -webkit-mask: url("/img/overview.png") no-repeat center / contain;
  mask: url("/img/overview.png") no-repeat center / contain;
}


.icon-farming {
  -webkit-mask: url("/img/farming.png") no-repeat center / contain;
  mask: url("/img/farming.png") no-repeat center / contain;
}

.icon-soil {
  -webkit-mask: url("/img/soil.png") no-repeat center / contain;
  mask: url("/img/soil.png") no-repeat center / contain;
}

.icon-add-activity {
  -webkit-mask: url("/img/add-activity.png") no-repeat center / contain;
  mask: url("/img/add-activity.png") no-repeat center / contain;
}

.icon-farmhublink {
  -webkit-mask: url("/img/farmhublink.png") no-repeat center / contain;
  mask: url("/img/farmhublink.png") no-repeat center / contain;
}

.icon-replacement {
  -webkit-mask: url("/img/replacement.png") no-repeat center / contain;
  mask: url("/img/replacement.png") no-repeat center / contain;
}

.icon-deletefarms {
  -webkit-mask: url("/img/delete-farms.png") no-repeat center / contain;
  mask: url("/img/delete-farms.png") no-repeat center / contain;
}

.icon-summary-report {
  -webkit-mask: url("/img/summary-report.png") no-repeat center / contain;
  mask: url("/img/summary-report.png") no-repeat center / contain;
}

.icon-wheat {
  -webkit-mask: url("/img/wheat.png") no-repeat center / contain;
  mask: url("/img/wheat.png") no-repeat center / contain;
}

.icon-fo {
  -webkit-mask: url("/img/call-center-service.png") no-repeat center / contain;
  mask: url("/img/call-center-service.png") no-repeat center / contain;
}

.icon-sowing {
  -webkit-mask: url("/img/sowing.png") no-repeat center / contain;
  mask: url("/img/sowing.png") no-repeat center / contain;
}

.icon-addhub {
  -webkit-mask: url("/img/addhub.png") no-repeat center / contain;
  mask: url("/img/addhub.png") no-repeat center / contain;
}

/* .btn-outline-cmbrown {
  background-color: #72603f;
  border: 1px solid #9ba672;
  color: #f2ebd5;
} */

.cmbtn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  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;
}

.cmbtn:disabled,
.cmbtn.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.cmbtn2 {
  display: inline-block;
  font-weight: 200;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.175rem 0.25rem;
  margin: 0.125rem;
  font-size: 0.9rem;
  border-radius: 0.375rem;
  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;
}

.cmbtn2:disabled,
.cmbtn2.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.btn-outline-cmbrown {
  color: #72603f;
  /* border: 1px solid #72603f; */
  border: 1px solid #72603f;
  background-color: transparent;
}

.btn-outline-cmbrown:hover {
  background-color: #72603f;
  /* color: #f2ebd5; */
  color: #fff;
}

/* Active (clicked) style */
.btn-outline-cmbrown.active {
  background-color: #72603f;
  color: #fff;
  border-color: #95c1e5;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: #68733f;
  color: white;
  padding: 5px;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  font-size: 16px;
  font-weight: bold;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}



.pkg-dashboard-main {
  height: 100vh;
  background: #f7f5f0;
  margin-top: 0;
}

.pkg-content-area {
  flex: 1;
  transition: margin-right 0.3s ease;
}

.pkg-content-area.pkg-panel-open {
  margin-right: 300px;
}

.pkg-side-panel {
  position: absolute;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #fefdfb;
  border-left: 1px solid #e5e2db;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  display: none;
}

.pkg-side-panel.pkg-panel-visible {
  display: block;
  right: 0
}

.pkg-side-panel.pkg-panel-visible~.pkg-content-area {
  margin-right: 300px;
}

.pkg-toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #7a8b3a;
  color: #fefdfb;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  z-index: 999;
}

.pkg-toggle-btn.pkg-panel-open {
  right: 320px;
}

.pkg-panel-header {
  background: #7a8b3a;
  color: #fefdfb;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pkg-panel-body {
  padding: 20px;
}

.pkg-info-card {
  background: #f4f2ed;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #7a8b3a;
}

.pkg-chart-container {
  background: #fefdfb;
  border-radius: 8px;
  margin: 20px;
  padding: 20px;
  border: 1px solid #e5e2db;
}

/* PACKAGES */
.stats-container-pkg {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 0px;
  background: #f8f9fa;
  border-radius: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  height: auto;
}

.farm-count {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

.farm-count small {
  font-size: 10px;
  display: block;
  font-weight: normal;
}

/* Unused Packages Container - Horizontal Scroll */
.unused-packages {
  flex: 1;
  background: white;
  border-radius: 1px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 600px;
  /* Increased height for vertical scroll */
  overflow-y: auto;
  overflow-x: hidden;
  white-space: normal;
}

.unused-packages p {
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  white-space: normal;
}

/* Package List - Grid Layout */
.package-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 180px));
  gap: 25px;
  padding: 5px;
  white-space: normal;
}

/* Package Item Card */
.package-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  white-space: normal;
  text-align: center;
  position: relative;
}

.package-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #e9ecef;
}

/* Expanded Card State */
.package-item.expanded {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  z-index: 10;
  border: 2px solid #2c6e9e;
  cursor: default;
}

/* Disabled Card State (when another card is expanded) */
.package-item.disabled-card {
  opacity: 0.7;
  pointer-events: none;
}

/* Package Count Input Wrapper */
.package-count-input-wrapper {
  width: 100%;
  margin-top: 8px;
}

/* Package Count Input Container - Hidden by default, shown when expanded */
.package-count-input-container {
  display: none;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.package-item.expanded .package-count-input-container {
  display: flex;
}

/* Number Input Field */
.package-count-input {
  width: 80px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid #2c6e9e;
  border-radius: 6px;
  font-size: 14px;
  margin: 0;
}

.package-count-input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Remaining Limit Indicator - At the bottom of the card */
.remaining-limit-indicator {
  display: none;
  text-align: center;
  font-size: 10px;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #f8f9fa;
  width: auto;
}

.package-item.expanded .remaining-limit-indicator {
  display: inline-block;
}

.remaining-limit-indicator span {
  font-weight: normal;
}

.remaining-limit-indicator .remaining-value {
  font-weight: bold;
  color: #28a745;
}

.remaining-limit-indicator .remaining-value.warning {
  color: #ff9800;
}

.remaining-limit-indicator .remaining-value.danger {
  color: #dc3545;
}

/* Package Actions Container (Minus Button) - Hidden by default, shown when expanded */
.package-actions {
  display: none;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.package-item.expanded .package-actions {
  display: flex;
}

/* ==================== BUTTON STYLES ==================== */

/* Add Button (Arrow Right) - Next to input */
.btn-package-add {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  background: #28a745;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.btn-package-add:hover:not(:disabled) {
  background: #218838;
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-package-add:active:not(:disabled) {
  transform: scale(0.95);
}

/* Add Button Disabled State */
.btn-package-add:disabled,
.btn-package-add.disabled {
  background: #cccccc;
  border-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-package-add:disabled:hover,
.btn-package-add.disabled:hover {
  background: #cccccc;
  transform: none;
}

/* Remove Button (Minus) - At bottom of card */
.btn-package-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  background: #dc3545;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-package-remove:hover:not(:disabled) {
  background: #c82333;
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-package-remove:active:not(:disabled) {
  transform: scale(0.95);
}

/* Remove button disabled state styling */
.btn-package-remove:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-package-remove:disabled:hover {
  background: #cccccc;
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Remove Button Disabled State */
.btn-package-remove-disabled {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  background: #cccccc;
  color: #666666;
  box-shadow: none;
  opacity: 0.6;
}

.btn-package-remove-disabled i {
  color: #666666;
}

.btn-package-remove-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ==================== BADGE STYLES ==================== */

/* Active Package Count Badge (Top-Right on Circle) */
.package-count-on-circle {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #2c6e9e;
  color: white;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border: 2px solid white;
}

/* Inactive Package Count Badge (Bottom-Right on Circle) */
.package-inactive-count {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border: 2px solid white;
}

/* Zero Inactive Packages - Grey Badge */
.package-inactive-count.zero {
  background: #6c757d;
  opacity: 0.6;
}

/* Crop Icon Circle */
.package-crop-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.package-crop-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}

/* Package Info Section */
.package-info {
  flex: 1;
  width: 100%;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}


/* Loading Indicator */
.card-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2c6e9e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.package-item.loading {
  position: relative;
}

.package-item.loading .card-loading {
  display: block;
}

.package-item.loading>*:not(.card-loading) {
  opacity: 0.5;
  pointer-events: none;
}

/* Empty Message */
.empty-message {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
  white-space: normal;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* Loading indicator on card */
.card-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2c6e9e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.package-item.loading {
  position: relative;
}

.package-item.loading .card-loading {
  display: block;
}

.package-item.loading>*:not(.card-loading) {
  opacity: 0.5;
  pointer-events: none;
}

.package-crop-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.package-crop-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}

/* Package count badge on the circle */
.package-count-on-circle {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #2c6e9e;
  color: white;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border: 2px solid white;
}

/* Inactive package count badge on the circle (bottom right) */
.package-inactive-count {
  position: absolute;
  bottom: -5px;
  right: 35px;
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border: 2px solid white;
}

/* When there are no inactive packages, show grey badge */
.package-inactive-count.zero {
  background: #6c757d;
  opacity: 0.6;
}


.package-name {
  font-weight: 600;
  color: #2c6e9e;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
  max-width: 110px;
  text-align: center;
}

.package-details {
  font-size: 11px;
  color: #6c757d;
  white-space: nowrap;
  display: none;
  /* Hide the old package details since count is on circle */
}

.empty-message {
  text-align: center;
  color: #999;
  padding: 30px;
  font-style: italic;
  white-space: normal;
}

/* Custom scrollbar for horizontal scroll */
.unused-packages::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.unused-packages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.unused-packages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.unused-packages::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Search Bar Styles */
.search-container {
  margin-bottom: 15px;
  padding: 0 5px;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #2c6e9e;
  box-shadow: 0 0 0 2px rgba(44, 110, 158, 0.1);
}

.search-input::placeholder {
  color: #999;
  font-size: 12px;
}

/* No results message */
.no-results-message {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
  font-size: 14px;
  grid-column: 1 / -1;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  background: #e0e0e0;
  color: #333;
}


/* Badge Legend Styles */
.badge-legend {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
}

.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.legend-title {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.legend-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.active-badge {
  background: #2c6e9e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.inactive-badge {
  background: #dc3545;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.zero-badge {
  background: #6c757d;
  opacity: 0.6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.legend-text {
  color: #555;
  line-height: 1.3;
}

/* Optional: Add tooltip on hover */
.legend-item:hover .legend-text {
  color: #2c6e9e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legend-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .legend-item {
    width: 100%;
  }
}

.packages-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 10px;
}

.packages-header p {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.limit-indicator {
  font-size: 14px;
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.limit-label {
  font-weight: 600;
  color: #555;
}

.limit-current {
  font-weight: bold;
  color: #2c6e9e;
}

.limit-max {
  font-weight: bold;
  color: #666;
}

.limit-separator {
  color: #ccc;
}

.limit-remaining {
  color: #28a745;
  font-size: 11px;
}

.limit-remaining.warning {
  color: #ff9800;
}

.limit-remaining.danger {
  color: #dc3545;
}

/* Farm Limit Indicator (add to farm circle area) */
.farm-limit-indicator {
  margin-top: 8px;
  font-size: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 12px;
  color: #333;
  white-space: nowrap;
}

.farm-limit-indicator .limit-current {
  font-weight: bold;
  color: #2c6e9e;
}

.farm-limit-indicator .limit-remaining {
  color: #28a745;
}


/* Farm Card Wrapper */
.farm-card-wrapper {
  flex-shrink: 0;
}

/* Farm Card - Clickable Card */
/* Farm Card - Clickable Card */
.farm-card {
  width: 180px;
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.farm-card:hover:not(.disabled-card) {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.farm-card.disabled-card {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.farm-card.disabled-card:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.farm-card.expanded {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  border: 2px solid #2c6e9e;
  cursor: default;
}

.farm-card.expanded.disabled-card {
  opacity: 1;
  cursor: default;
  pointer-events: auto;
}

.farm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

/* Farm Circle inside card */
.farm-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto 10px;
}

.farm-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.farm-count {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

.farm-count small {
  font-size: 10px;
  display: block;
  font-weight: normal;
}

/* Inactive Farm Count Badge */
.farm-inactive-count {
  position: absolute;
  bottom: -7px;
  right: 75px;
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border: 2px solid white;
}

.farm-inactive-count.zero {
  background: #6c757d;
  opacity: 0.6;
}

/* Farm Info Text */
.farm-info {
  text-align: center;
  margin-top: 5px;
}

.farm-name {
  font-weight: bold;
  color: #2c6e9e;
  font-size: 14px;
  margin-bottom: 3px;
}

.farm-details {
  font-size: 10px;
  color: #6c757d;
}

/* Farm Expanded Content */
.farm-expanded-content {
  display: none;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

.farm-card.expanded .farm-expanded-content {
  display: block;
}

.farm-card.disabled-card .farm-details {
  color: #dc3545;
}

.farm-card.disabled-card .farm-name {
  color: #999;
}

/* Farm Input Container */
.farm-count-input-wrapper {
  width: 100%;
  margin-bottom: 10px;
}

.farm-count-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.farm-count-input {
  width: 80px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid #2c6e9e;
  border-radius: 6px;
  font-size: 14px;
  margin: 0;
}

.farm-count-input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Farm Add Button */
.btn-farm-add {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  background: #28a745;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.btn-farm-add:hover:not(:disabled) {
  background: #218838;
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-farm-add:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-farm-add:disabled,
.btn-farm-add.disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* Farm Actions Container */
.farm-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

/* Farm Inventory Button */
.btn-farm-inventory {
  padding: 5px 12px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #6c757d;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-farm-inventory:hover {
  background: #5a6268;
  transform: scale(1.02);
}

.btn-farm-inventory i {
  font-size: 11px;
}

/* Farm Remaining Indicator */
.farm-remaining-indicator {
  text-align: center;
  font-size: 10px;
  margin-top: 8px;
  padding: 3px 6px;
  border-radius: 10px;
  background: #f8f9fa;
}

.farm-remaining-indicator .remaining-value {
  font-weight: bold;
  color: #28a745;
}

.farm-remaining-indicator .remaining-value.warning {
  color: #ff9800;
}

.farm-remaining-indicator .remaining-value.danger {
  color: #dc3545;
}

/* Loading Indicator for Farm Card */
.card-loading-farm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2c6e9e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.farm-card.loading {
  position: relative;
}

.farm-card.loading .card-loading-farm {
  display: block;
}

.farm-card.loading>*:not(.card-loading-farm) {
  opacity: 0.5;
  pointer-events: none;
}

/* Farm Remove Button */
.btn-farm-remove {
  padding: 5px 12px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #dc3545;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-farm-remove:hover:not(:disabled) {
  background: #c82333;
  transform: scale(1.02);
}

.btn-farm-remove:disabled,
.btn-farm-remove.disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-farm-remove i {
  font-size: 11px;
}

/* Inventory Indicator Styles */
.inventory-indicator {
  background: #fff3e0;
  border-left: 3px solid #ff9800;
}

.inventory-indicator .limit-label {
  color: #e65100;
}

.inventory-current,
.inventory-max {
  font-weight: bold;
}

.inventory-current {
  color: #ff9800;
}

.inventory-remaining {
  font-size: 11px;
  transition: color 0.3s ease;
}

.inventory-remaining.warning {
  color: #ff9800;
}

.inventory-remaining.danger {
  color: #dc3545;
}

.inventory-remaining.normal {
  color: #28a745;
}


/* Info Button */
.info-button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #2c6e9e;
  background: #e8f0f8;
  transition: all 0.2s ease;
}

.info-button:hover {
  background: #2c6e9e;
  color: white;
  transform: scale(1.02);
}

.info-button i {
  font-size: 12px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  margin: auto;
  margin-top: 80px;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.modal-header {
  padding: 20px 24px;
  background: #2c6e9e;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Modal Body */
.modal-body {
  padding: 24px;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
  line-height: 1.5;
}

.modal-body h4 {
  color: #2c6e9e;
  margin: 0 0 8px 0;
  font-size: 16px;
}

.modal-body p {
  margin: 0 0 16px 0;
  color: #555;
  font-size: 14px;
}

.modal-body ul {
  margin: 8px 0 16px 20px;
  padding: 0;
}

.modal-body li {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}

.modal-body li strong {
  color: #2c6e9e;
}

.info-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.badge-example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 0 4px;
}

.limit-example {
  background: #e8f0f8;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 13px;
}

.limit-example span {
  font-weight: bold;
  color: #2c6e9e;
}

#fcdBenchmarkGraphs {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.graph-item {
    transition: transform 0.2s;
    min-height: 160px;
}

.graph-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12) !important;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 992px) {
    #graphGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 576px) {
    #graphGrid {
        grid-template-columns: 1fr !important;
    }
}

canvas {
    width: 100% !important;
    height: auto !important;
}