::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #005e54;
  border-radius: 20px;
  cursor: pointer;
}

.htmlbody::-webkit-scrollbar {
  display: none !important;
}

#preloader {
  opacity: 0.6;
  cursor: not-allowed;
}

.required-indicator {
  color: red;
  font-weight: bold;
}

.mastercard:hover {
  cursor: pointer;
}

.hover-pointer:hover {
  cursor: pointer;
}

.floatright {
  float: right;
  align-content: end;
  align-items: end;
}

.disabled {
  pointer-events: none;
}

.hidden {
  display: none;
}

/*  */
#preview {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
}

.page {
  width: 100%;
  height: 100%;
}

.marvel-device .screen {
  text-align: left;
}

.screen-container {
  height: 100%;
}

/* Status Bar */

.status-bar {
  height: 25px;
  background: #004e45;
  color: #fff;
  font-size: 14px;
  padding: 0 8px;
}

.status-bar:after {
  content: "";
  display: table;
  clear: both;
}

.status-bar div {
  float: right;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 0 0 8px;
  font-weight: 600;
}

/* Chat */

.chat {
  height: calc(100% - 69px);
}

.chat-container {
  height: 100%;
}

/* User Bar */

.user-bar {
  height: 55px;
  background: #005e54;
  color: #fff;
  padding: 0 8px;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.user-bar:after {
  content: "";
  display: table;
  clear: both;
}

.user-bar div {
  float: left;
  transform: translateY(-50%);
  position: relative;
  top: 50%;
}

.user-bar .actions {
  float: right;
  margin: 0 0 0 20px;
}

.user-bar .actions.more {
  margin: 0 12px 0 32px;
}

.user-bar .actions.attachment {
  margin: 0 0 0 30px;
}

.user-bar .actions.attachment i {
  display: block;
  transform: rotate(-45deg);
}

.user-bar .avatar {
  margin: 0 0 0 5px;
  width: 36px;
  height: 36px;
}

.user-bar .avatar img {
  border-radius: 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  display: block;
  width: 100%;
}

.user-bar .name {
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  margin: 0 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
  width: 110px;
}

.user-bar .status {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Conversation */

.conversation {
  height: calc(100% - 12px);
  position: relative;
  background: #efe7dd url("https://cloud.githubusercontent.com/assets/398893/15136779/4e765036-1639-11e6-9201-67e728e86f39.jpg") repeat;
  z-index: 0;
  margin: 10px;
}

.conversation ::-webkit-scrollbar {
  transition: all 0.5s;
  width: 5px;
  height: 1px;
  z-index: 10;
}

.conversation ::-webkit-scrollbar-track {
  background: transparent;
}

.conversation ::-webkit-scrollbar-thumb {
  background: #b3ada7;
}

.conversation .conversation-container {
  height: calc(100% - 68px);
  box-shadow: inset 0 10px 10px -10px #000000;
  overflow-x: hidden;
  padding: 0 16px;
  margin-bottom: 5px;
}

.conversation .conversation-container:after {
  content: "";
  display: table;
  clear: both;
}

/* Messages */

.message {
  color: #000;
  clear: both;
  line-height: 18px;
  font-size: 15px;
  padding: 8px;
  position: relative;
  margin: 8px 0;
  max-width: 85%;
  word-wrap: break-word;
  z-index: -1;
}

.message:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

.metadata {
  display: inline-block;
  padding: 0 0 0 7px;
  position: relative;
  bottom: -4px;
}

.metadata .time {
  color: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  display: inline-block;
}

.metadata .tick {
  display: inline-block;
  margin-left: 2px;
  position: relative;
  top: 4px;
  height: 16px;
  width: 16px;
}

.metadata .tick svg {
  position: absolute;
  transition: 0.5s ease-in-out;
}

.metadata .tick svg:first-child {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: perspective(800px) rotateY(180deg);
  transform: perspective(800px) rotateY(180deg);
}

.metadata .tick svg:last-child {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: perspective(800px) rotateY(0deg);
  transform: perspective(800px) rotateY(0deg);
}

.metadata .tick-animation svg:first-child {
  -webkit-transform: perspective(800px) rotateY(0);
  transform: perspective(800px) rotateY(0);
}

.metadata .tick-animation svg:last-child {
  -webkit-transform: perspective(800px) rotateY(-179.9deg);
  transform: perspective(800px) rotateY(-179.9deg);
}

.message:first-child {
  margin: 16px 0 8px;
}

.message.received {
  background: #fff;
  border-radius: 0px 5px 5px 5px;
  float: left;
}

.message.received .metadata {
  padding: 0 0 0 16px;
}

.message.received:after {
  border-width: 0px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
  top: 0;
  left: -10px;
}

.message.sent {
  background: #e1ffc7;
  border-radius: 5px 0px 5px 5px;
  /* float: right; */
}

.messagebuttons>button {
  width: 85%;
  font-size: medium;
}

.message.sent:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #e1ffc7;
  top: 0;
  right: -10px;
}

/* Compose */

.conversation-compose {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  overflow: hidden;
  height: 50px;
  width: 100%;
  z-index: 2;
}

.conversation-compose div,
.conversation-compose input {
  background: #fff;
  height: 100%;
}

.conversation-compose .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 5px 0 0 5px;
  flex: 0 0 auto;
  margin-left: 8px;
  width: 48px;
}

.conversation-compose .input-msg {
  border: 0;
  flex: 1 1 auto;
  font-size: 16px;
  margin: 0;
  outline: none;
  min-width: 50px;
}

.conversation-compose .photo {
  flex: 0 0 auto;
  border-radius: 0 0 5px 0;
  text-align: center;
  position: relative;
  width: 48px;
}

.conversation-compose .photo:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  position: absolute;
  width: 0;
  height: 0;
  content: "";
  top: 0;
  right: -10px;
}

.conversation-compose .photo i {
  display: block;
  color: #7d8488;
  font-size: 24px;
  transform: translate(-50%, -50%);
  position: relative;
  top: 50%;
  left: 50%;
}

.conversation-compose .send {
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: 8px;
  margin-right: 8px;
  padding: 0;
  position: relative;
  outline: none;
}

.conversation-compose .send .circle {
  background: #008a7c;
  border-radius: 50%;
  color: #fff;
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversation-compose .send .circle i {
  font-size: 24px;
  margin-left: 5px;
}

/* Small Screens */

@media (max-width: 768px) {
  .marvel-device.nexus5 {
    border-radius: 0;
    flex: none;
    padding: 0;
    max-width: none;
    overflow: hidden;
    height: 100%;
    width: 100%;
  }

  .marvel-device>.screen .chat {
    visibility: visible;
  }

  .marvel-device {
    visibility: hidden;
  }

  .marvel-device .status-bar {
    display: none;
  }

  .screen-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .conversation {
    height: calc(100vh - 55px);
  }

  .conversation .conversation-container {
    height: calc(100vh - 120px);
  }
}

.border-right {
  border-right: 0.5px solid var(--bs-border-color);
}

#media_perview>img,
#media_perview>iframe {
  width: auto !important;
}

/*  */
/* .awesomplete [hidden] {
    display: none;
}

.awesomplete .visually-hidden {
    position: absolute;
    clip: rect(0, 0, 0, 0);
} */
/* 
.awesomplete {
    display: inline-block;
    position: relative;
} */

/* .awesomplete > input {
    display: block;
} */

.awesomplete>ul {
  position: absolute;
  left: 0;
  z-index: 1;
  min-width: 100%;
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
}

.awesomplete>ul:empty {
  display: none;
}

.awesomplete>ul {
  border-radius: 0.3em;
  margin: 0.2em 0 0;
  background: hsla(0, 0%, 100%, 0.9);
  background: linear-gradient(to bottom right, white, hsla(0, 0%, 100%, 0.8));
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0.05em 0.2em 0.6em rgba(0, 0, 0, 0.2);
  text-shadow: none;
}

@supports (transform: scale(0)) {
  .awesomplete>ul {
    transition: 0.3s cubic-bezier(0.4, 0.2, 0.5, 1.4);
    transform-origin: 1.43em -0.43em;
  }

  .awesomplete>ul[hidden],
  .awesomplete>ul:empty {
    opacity: 0;
    transform: scale(0);
    display: block;
    transition-timing-function: ease;
  }
}

/* Pointer */
.awesomplete>ul:before {
  content: "";
  position: absolute;
  top: -0.43em;
  left: 1em;
  width: 0;
  height: 0;
  padding: 0.4em;
  background: white;
  border: inherit;
  border-right: 0;
  border-bottom: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.awesomplete>ul>li {
  position: relative;
  padding: 0.2em 0.5em;
  cursor: pointer;
}

.awesomplete>ul>li:hover {
  background: hsl(200, 40%, 80%);
  color: black;
}

.awesomplete>ul>li[aria-selected="true"] {
  background: hsl(205, 40%, 40%);
  color: white;
}

.awesomplete mark {
  background: hsl(65, 100%, 50%);
}

.awesomplete li:hover mark {
  background: hsl(68, 100%, 41%);
}

.awesomplete li[aria-selected="true"] mark {
  background: hsl(86, 100%, 21%);
  color: inherit;
}

/*# sourceMappingURL=awesomplete.css.map */

.attendance-body {
  border-radius: 10px;
  padding: 20px;
}

.info-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 15px;
}

.info-label {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 5px;
}

.info-value {
  font-size: 18px;
  font-weight: bold;
  color: #343a40;
}

#attendance_photo {
  width: 11rem;
  height: 11rem;
  border-radius: 8px;
  margin-bottom: 15px;
}

#showmap {
  height: 50rem;
  width: 100%;
}

.datatr:hover {
  cursor: grab;
  background-color: var(--bs-table-border-color) !important;
}

.dashboardcard {
  margin-bottom: 5px !important;
}

.data-grid {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.data-cell {
  width: 120px;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  border-radius: 10px;
  color: #000;
  margin: 5px;
}

.no-joiners-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 13rem !important;
  margin: 50px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-joiners-container i {
  font-size: 50px;
  margin-bottom: 10px;
}

.no-joiners-text {
  font-size: 16px;
}

#managedata {
  width: max-content !important;
  z-index: 100000000;
}

.cursor-pointer {
  cursor: pointer;
}

.search-wrapper {
  background-color: #019355;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.search-heading {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.search-wrapper input[type="text"] {
  width: 60%;
  max-width: 600px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .search-wrapper input[type="text"] {
    width: 90%;
  }
}

.custom-badge {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 12px;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.activity-item {
  display: flex;
  align-items: start;
  margin-bottom: 15px;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
}

.plan-card {
  margin-bottom: 20px;
}

.activity-list {
  margin-top: 20px;
}

.iww-badge {
  position: absolute;
  background-color: #28a745;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: transform 0.2s;
}

.iww-badge:hover {
  transform: translate(-50%, -110%) scale(1.05);
}

.badge-soft-orange {
  background-color: orange;
}

#masterlisting {
  margin-bottom: 25px;
}

.card-list:hover {
  transform: translateY(-4px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.custom-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #dc3545;
  /* Bootstrap danger */
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50%;
  padding: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* //Achievement table  */
.at-wrapper .card {
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.05);
  animation: at-fadeInUp 0.6s ease both;
}

.at-wrapper input.form-control,
.at-wrapper select.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.at-wrapper input.form-control:focus {
  border-color: #019355;
  box-shadow: 0 0 0 0.2rem rgba(1, 147, 85, 0.25);
}

.at-wrapper .btn-primary {
  transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out;
}

.at-wrapper .btn-primary:hover {
  transform: scale(1.05);
  background-color: #017a48;
}

/* Table row animation */
@keyframes at-slideFadeIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

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

.at-wrapper #activity_target_table tbody tr {
  animation: at-slideFadeIn 0.4s ease forwards;
}

/* Fade animation for card blocks */
@keyframes at-fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

.at-wrapper .dropdown-menu {
  border-radius: 0.5rem;
  animation: at-fadeInUp 0.3s ease both;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
}

.at-wrapper .breadcrumb-item a:hover {
  color: #019355;
  text-decoration: underline;
}

.at-wrapper .page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.at-wrapper .page-loader::after {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 3px solid #019355;
  border-top-color: transparent;
  border-radius: 50%;
  animation: at-spin 1s linear infinite;
}

@keyframes at-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scoped styles to prevent conflicts */
.modern-master-container * {
  box-sizing: border-box;
}

.modern-master-container {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding: 20px 0;
}

.modern-page-header {
  background: linear-gradient(135deg, #0078aa 0%, #004866 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.modern-page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%);
  border-radius: 50%;
  transform: translate(50px, -50px);
}

.modern-page-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-breadcrumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.modern-breadcrumb .breadcrumb-item a:hover {
  color: white;
}

.modern-breadcrumb .breadcrumb-item.active {
  color: white;
  font-weight: 600;
}

.modern-search-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0f2e0;
}

.modern-search-heading {
  color: #0078aa;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.modern-search-heading i {
  background: linear-gradient(135deg, #004866, #0078aa);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
}

.modern-search-wrapper {
  position: relative;
}

.modern-search-input {
  width: 100%;
  padding: 15px 25px 15px 55px;
  border: 2px solid #e0f2e0;
  border-radius: 15px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: #fafffe;
}

.modern-search-input:focus {
  outline: none;
  border-color: #004866;
  box-shadow: 0 0 20px rgba(74, 124, 89, 0.2);
  background: white;
}

.modern-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #004866;
  font-size: 1.2rem;
}

.modern-view-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modern-view-btn {
  padding: 10px 20px;
  border: 2px solid #004866;
  background: transparent;
  color: #004866;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.modern-view-btn.active,
.modern-view-btn:hover {
  background: #004866;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
}

.modern-master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  transition: all 0.3s ease;
}

.modern-master-grid.expanded {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.modern-master-grid.list-view {
  grid-template-columns: 1fr;
}

/* Ensure extended view allows more items but maintains readability */
.modern-master-grid.expanded {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.modern-master-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.modern-master-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #004866, #0078aa);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-master-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(74, 124, 89, 0.2);
  border-color: #004866;
}

.modern-master-card:hover::before {
  transform: scaleX(1);
}

.modern-card-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.modern-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #99c9dd, #cce4ee);
  padding: 20px;
  transition: all 0.3s ease;
  border: 3px solid #e0f2e0;
}

.modern-master-card:hover .modern-card-icon {
  background: linear-gradient(135deg, #004866, #0078aa);
  border-color: #004866;
  transform: rotate(5deg) scale(1.1);
}

.modern-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: hue-rotate(90deg) saturate(1.2);
  transition: filter 0.3s ease;
}

.modern-master-card:hover .modern-card-icon img {
  filter: brightness(0) invert(1);
}

.modern-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.modern-card-title {
  color: #0078aa;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  transition: color 0.3s ease;
}

.modern-master-card:hover .modern-card-title {
  color: #004866;
}

.modern-card-subtitle {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.modern-master-card:hover .modern-card-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* List view specific styles */
.modern-master-grid.list-view .modern-master-card {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 20px 30px;
}

.modern-master-grid.list-view .modern-card-icon-wrapper {
  margin-bottom: 0;
  margin-right: 25px;
}

.modern-master-grid.list-view .modern-card-icon {
  width: 60px;
  height: 60px;
  padding: 15px;
}

.modern-master-grid.list-view .modern-card-content {
  flex: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .modern-page-title {
    font-size: 2rem;
  }

  .modern-master-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .modern-master-card {
    padding: 20px;
  }

  .modern-view-controls {
    flex-wrap: wrap;
  }
}

/* Animation for cards appearing */
.modern-master-card {
  animation: fadeInUp 0.6s ease forwards;
}

.modern-master-card:nth-child(1) {
  animation-delay: 0.1s;
}

.modern-master-card:nth-child(2) {
  animation-delay: 0.2s;
}

.modern-master-card:nth-child(3) {
  animation-delay: 0.3s;
}

.modern-master-card:nth-child(4) {
  animation-delay: 0.4s;
}

.modern-master-card:nth-child(5) {
  animation-delay: 0.5s;
}

.modern-master-card:nth-child(6) {
  animation-delay: 0.6s;
}

.modern-master-card:nth-child(7) {
  animation-delay: 0.7s;
}

.modern-master-card:nth-child(8) {
  animation-delay: 0.8s;
}

.modern-master-card:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.modern-filter-results {
  color: #004866;
  font-weight: 600;
  margin-top: 15px;
  padding: 10px 15px;
  background: #99c9dd;
  border-radius: 10px;
  border-left: 4px solid #004866;
}

/* Finiloop Dashboard Styles - Scoped to avoid conflicts */
.finiloop-dashboard * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.finiloop-dashboard {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
  min-height: 100vh;
  color: #004866;
}

.finiloop-header {
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(74, 124, 89, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid #004866;
}

.finiloop-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.finiloop-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.finiloop-logo i {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 12px;
}

.finiloop-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.finiloop-select,
.finiloop-date-input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.finiloop-select option {
  background: #16a34a;
  color: white;
}

.finiloop-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.finiloop-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.finiloop-main {
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 2rem;
}

.finiloop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.finiloop-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(74, 124, 89, 0.12);
  border: 1px solid rgba(74, 124, 89, 0.15);
  border-left: 4px solid #004866;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: move;
  position: relative;
}

.finiloop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(74, 124, 89, 0.2);
}

.finiloop-card.hidden {
  display: none;
}

.finiloop-card-header {
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.finiloop-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.finiloop-card-actions {
  display: flex;
  gap: 0.5rem;
}

.finiloop-card-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.finiloop-card-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.finiloop-card-content {
  padding: 1.5rem;
  height: 400px;
}

.finiloop-map-container {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.finiloop-chart-container {
  height: 100%;
}

.finiloop-hrm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  height: 100%;
}

.finiloop-stat-item {
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
  padding: 1.8rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(74, 124, 89, 0.15);
  border-left: 4px solid #004866;
  transition: all 0.3s ease;
}

.finiloop-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 124, 89, 0.15);
}

.finiloop-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #004866;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(74, 124, 89, 0.1);
}

.finiloop-stat-label {
  color: #004866;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
}

.finiloop-activities {
  height: 100%;
  overflow-y: auto;
}

.finiloop-activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
}

.finiloop-activity-item:hover {
  background: rgba(74, 124, 89, 0.08);
  border-left: 4px solid #004866;
  padding-left: 1.5rem;
}

.finiloop-activity-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.25);
}

.finiloop-activity-content {
  flex: 1;
}

.finiloop-activity-title {
  font-weight: 600;
  color: #004866;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.finiloop-activity-time {
  font-size: 0.85rem;
  color: #004866;
  opacity: 0.7;
}

/* Employee List Styles */
.employee-list {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(74, 124, 89, 0.12);
  border: 1px solid rgba(74, 124, 89, 0.15);
  border-left: 4px solid #004866;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.employee-list-header {
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.employee-list-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.employee-list-header p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.employee-list-content {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.employee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 100%);
  border-radius: 12px;
  border: 1px solid rgba(74, 124, 89, 0.1);
  border-left: 3px solid #004866;
  transition: all 0.3s ease;
}

.employee-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(74, 124, 89, 0.15);
  border-left-width: 4px;
}

.employee-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.25);
}

.employee-info {
  flex: 1;
}

.employee-name {
  font-weight: 600;
  color: #004866;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.employee-status {
  font-size: 0.85rem;
  color: #004866;
  opacity: 0.7;
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-present {
  background: linear-gradient(135deg, #d1f2d1 0%, #c8e6c8 100%);
  color: #004866;
  border: 1px solid rgba(74, 124, 89, 0.3);
}

.status-leave {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-absent {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.finiloop-category-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
  height: fit-content;
}

.finiloop-category-title {
  font-weight: 700;
  color: #004866;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.finiloop-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.finiloop-category-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 124, 89, 0.1);
}

.finiloop-category-item:hover {
  background: rgba(74, 124, 89, 0.08);
  border-color: #004866;
}

.finiloop-category-item.active {
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  border-color: #004866;
}

.finiloop-category-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.finiloop-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.finiloop-fullscreen-content {
  background: white;
  border-radius: 16px;
  width: 95%;
  height: 95%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.finiloop-fullscreen-header {
  background: linear-gradient(135deg, #004866 0%, #3d6b4a 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.finiloop-fullscreen-body {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.finiloop-fullscreen-chart {
  height: 100%;
}

.finiloop-fullscreen-table {
  background: #f8fffe;
  border-radius: 12px;
  padding: 1rem;
  overflow-y: auto;
}

.finiloop-data-table {
  width: 100%;
  border-collapse: collapse;
}

.finiloop-data-table th,
.finiloop-data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.finiloop-data-table th {
  background: rgba(74, 124, 89, 0.1);
  font-weight: 600;
  color: #004866;
}

.finiloop-dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

@media (max-width: 768px) {
  .finiloop-grid {
    grid-template-columns: 1fr;
  }

  .finiloop-filters {
    flex-direction: column;
    gap: 0.5rem;
  }

  .finiloop-fullscreen-body {
    grid-template-columns: 1fr;
  }

  .finiloop-hrm-stats {
    grid-template-columns: 1fr;
  }
}

#timeRangeButtons button {
  margin-right: 8px;
  padding: 4px 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #004866;
  background-color: white;
  color: #004866;
  cursor: pointer;
  transition: all 0.2s ease;
}

#timeRangeButtons button:hover,
#timeRangeButtons button.active {
  background-color: #004866;
  color: white;
}

/* Tab Navigation */
.finiloop-tabs {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.finiloop-tab-nav {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

.finiloop-tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.finiloop-tab-btn.active {
  color: #16a34a;
  border-bottom-color: #16a34a;
}

.finiloop-tab-btn:hover {
  color: #16a34a;
  transform: translateY(-2px);
}

/* Main Content */
.finiloop-tab-content {
  display: none;
}

.finiloop-tab-content.active {
  display: block;
}

/* Stats Grid */
.finiloop-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.finiloop-stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.finiloop-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.finiloop-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 0.5rem;
}

.finiloop-stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
}

.metric-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  height: 100%;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

.metric-title {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  line-height: 1.3;
}

.chart-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  height: 400px;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.chart-container {
  height: 300px;
}

.source-segregation-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e3e6f0;
  height: 100%;
}

.date-filter-container {
  padding: 20px;
  max-width: 400px;
  margin: 50px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.date-inputs {
  margin-top: 10px;
  display: none;
}

/* Finiloop Dashboard Dark Mode Styles */
[data-layout-mode="dark"] .finiloop-dashboard * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[data-layout-mode="dark"] .finiloop-dashboard {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  min-height: 100vh;
  color: #e2e8f0;
}

[data-layout-mode="dark"] .finiloop-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid #475569;
}

[data-layout-mode="dark"] .finiloop-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

[data-layout-mode="dark"] .finiloop-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

[data-layout-mode="dark"] .finiloop-logo i {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: 12px;
}

[data-layout-mode="dark"] .finiloop-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

[data-layout-mode="dark"] .finiloop-select,
[data-layout-mode="dark"] .finiloop-date-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

[data-layout-mode="dark"] .finiloop-select option {
  background: #1e293b;
  color: white;
}

[data-layout-mode="dark"] .finiloop-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-layout-mode="dark"] .finiloop-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

[data-layout-mode="dark"] .finiloop-main {
  margin: 0 auto;
  padding: 2rem;
}

[data-layout-mode="dark"] .finiloop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

[data-layout-mode="dark"] .finiloop-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-left: 4px solid #64748b;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: move;
  position: relative;
}

[data-layout-mode="dark"] .finiloop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-left-color: #94a3b8;
}

[data-layout-mode="dark"] .finiloop-card.hidden {
  display: none;
}

[data-layout-mode="dark"] .finiloop-card-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

[data-layout-mode="dark"] .finiloop-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-layout-mode="dark"] .finiloop-card-actions {
  display: flex;
  gap: 0.5rem;
}

[data-layout-mode="dark"] .finiloop-card-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

[data-layout-mode="dark"] .finiloop-card-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

[data-layout-mode="dark"] .finiloop-card-content {
  padding: 1.5rem;
  height: 400px;
  background: #1e293b;
}

[data-layout-mode="dark"] .finiloop-map-container {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

[data-layout-mode="dark"] .finiloop-chart-container {
  height: 100%;
}

[data-layout-mode="dark"] .finiloop-hrm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  height: 100%;
}

[data-layout-mode="dark"] .finiloop-stat-item {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 1.8rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-left: 4px solid #64748b;
  transition: all 0.3s ease;
}

[data-layout-mode="dark"] .finiloop-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-layout-mode="dark"] .finiloop-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-layout-mode="dark"] .finiloop-stat-label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
}

[data-layout-mode="dark"] .finiloop-activities {
  height: 100%;
  overflow-y: auto;
}

[data-layout-mode="dark"] .finiloop-activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
  transition: all 0.3s ease;
}

[data-layout-mode="dark"] .finiloop-activity-item:hover {
  background: rgba(71, 85, 105, 0.3);
  border-left: 4px solid #64748b;
  padding-left: 1.5rem;
}

[data-layout-mode="dark"] .finiloop-activity-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-layout-mode="dark"] .finiloop-activity-content {
  flex: 1;
}

[data-layout-mode="dark"] .finiloop-activity-title {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

[data-layout-mode="dark"] .finiloop-activity-time {
  font-size: 0.85rem;
  color: #94a3b8;
  opacity: 0.8;
}

/* Employee List Dark Mode Styles */
[data-layout-mode="dark"] .employee-list {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-left: 4px solid #64748b;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

[data-layout-mode="dark"] .employee-list-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

[data-layout-mode="dark"] .employee-list-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

[data-layout-mode="dark"] .employee-list-header p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

[data-layout-mode="dark"] .employee-list-content {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  background: #1e293b;
}

[data-layout-mode="dark"] .employee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-left: 3px solid #64748b;
  transition: all 0.3s ease;
}

[data-layout-mode="dark"] .employee-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-left-width: 4px;
  border-left-color: #94a3b8;
}

[data-layout-mode="dark"] .employee-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-layout-mode="dark"] .employee-info {
  flex: 1;
}

[data-layout-mode="dark"] .employee-name {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

[data-layout-mode="dark"] .employee-status {
  font-size: 0.85rem;
  color: #94a3b8;
  opacity: 0.8;
}

[data-layout-mode="dark"] .status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-layout-mode="dark"] .status-present {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

[data-layout-mode="dark"] .status-leave {
  background: linear-gradient(135deg, #92400e 0%, #a16207 100%);
  color: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

[data-layout-mode="dark"] .status-absent {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
  color: #fee2e2;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

[data-layout-mode="dark"] .finiloop-category-sidebar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: fit-content;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .finiloop-category-title {
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-layout-mode="dark"] .finiloop-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-layout-mode="dark"] .finiloop-category-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(71, 85, 105, 0.3);
  color: #cbd5e1;
}

[data-layout-mode="dark"] .finiloop-category-item:hover {
  background: rgba(71, 85, 105, 0.3);
  border-color: #64748b;
}

[data-layout-mode="dark"] .finiloop-category-item.active {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  color: white;
  border-color: #64748b;
}

[data-layout-mode="dark"] .finiloop-category-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

[data-layout-mode="dark"] .finiloop-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

[data-layout-mode="dark"] .finiloop-fullscreen-content {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 16px;
  width: 95%;
  height: 95%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .finiloop-fullscreen-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

[data-layout-mode="dark"] .finiloop-fullscreen-body {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  background: #1e293b;
}

[data-layout-mode="dark"] .finiloop-fullscreen-chart {
  height: 100%;
}

[data-layout-mode="dark"] .finiloop-fullscreen-table {
  background: #0f172a;
  border-radius: 12px;
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .finiloop-data-table {
  width: 100%;
  border-collapse: collapse;
}

[data-layout-mode="dark"] .finiloop-data-table th,
[data-layout-mode="dark"] .finiloop-data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  color: #e2e8f0;
}

[data-layout-mode="dark"] .finiloop-data-table th {
  background: rgba(71, 85, 105, 0.3);
  font-weight: 600;
  color: #f1f5f9;
}

[data-layout-mode="dark"] .finiloop-dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

[data-layout-mode="dark"] #timeRangeButtons button {
  margin-right: 8px;
  padding: 4px 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #64748b;
  background-color: #1e293b;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-layout-mode="dark"] #timeRangeButtons button:hover,
[data-layout-mode="dark"] #timeRangeButtons button.active {
  background-color: #64748b;
  color: white;
}

/* Tab Navigation Dark Mode */
[data-layout-mode="dark"] .finiloop-tabs {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .finiloop-tab-nav {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

[data-layout-mode="dark"] .finiloop-tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-layout-mode="dark"] .finiloop-tab-btn.active {
  color: #94a3b8;
  border-bottom-color: #64748b;
}

[data-layout-mode="dark"] .finiloop-tab-btn:hover {
  color: #cbd5e1;
  transform: translateY(-2px);
}

/* Main Content Dark Mode */
[data-layout-mode="dark"] .finiloop-tab-content {
  display: none;
}

[data-layout-mode="dark"] .finiloop-tab-content.active {
  display: block;
}

/* Stats Grid Dark Mode */
[data-layout-mode="dark"] .finiloop-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

[data-layout-mode="dark"] .finiloop-stat-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.3);
  transition: all 0.3s ease;
}

[data-layout-mode="dark"] .finiloop-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-layout-mode="dark"] .finiloop-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

[data-layout-mode="dark"] .finiloop-stat-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
}

[data-layout-mode="dark"] .metric-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  height: 100%;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .metric-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #e2e8f0;
  margin: 10px 0;
}

[data-layout-mode="dark"] .metric-title {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.3;
}

[data-layout-mode="dark"] .chart-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  height: 400px;
  border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .chart-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

[data-layout-mode="dark"] .chart-container {
  height: 300px;
}

[data-layout-mode="dark"] .source-segregation-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.3);
  height: 100%;
}

[data-layout-mode="dark"] .date-filter-container {
  padding: 20px;
  max-width: 400px;
  margin: 50px auto;
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
}

[data-layout-mode="dark"] .date-inputs {
  margin-top: 10px;
  display: none;
}

@media (max-width: 768px) {
  [data-layout-mode="dark"] .finiloop-grid {
    grid-template-columns: 1fr;
  }

  [data-layout-mode="dark"] .finiloop-filters {
    flex-direction: column;
    gap: 0.5rem;
  }

  [data-layout-mode="dark"] .finiloop-fullscreen-body {
    grid-template-columns: 1fr;
  }

  [data-layout-mode="dark"] .finiloop-hrm-stats {
    grid-template-columns: 1fr;
  }
}

#shg_saving_chart {
  transition: all 0.3s ease;
  width: 100%;
  height: 400px;
}

[data-layout-mode="dark"] #shg_saving_chart {
  background-color: #1e293b;
}

.echarts-tooltip {
  border-radius: 6px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
}

[data-layout-mode="dark"] .echarts-tooltip {
  background-color: #2d3748 !important;
  border-color: #4a5568 !important;
  color: #e2e8f0 !important;
}

.echarts-legend-item text {
  fill: #333;
}

[data-layout-mode="dark"] .echarts-legend-item text {
  fill: #e2e8f0;
}

[data-layout-mode="dark"] .info-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(71, 85, 105, 0.5);
}

[data-layout-mode="dark"] .info-label {
  color: #94a3b8;
  /* Tailwind slate-400 */
}

[data-layout-mode="dark"] .info-value {
  color: #f8fafc;
  /* Tailwind slate-50 */
}

.mapcard {
  height: 46rem !important;
}

[data-layout-mode="dark"] .mapcard {
  height: 46rem !important;
}

[data-layout-mode="dark"] .finiloop-map-content {
  height: 46rem !important;
  padding: 0 !important;
}

/* Simple Map Skeleton for 3 Indian Cities */
.map-skeleton {
  width: 100%;
  height: 400px;
  background: var(--skeleton-bg, #f8f9fa);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--skeleton-border, rgba(0, 0, 0, 0.08));
}

/* Light mode variables (default) */
.map-skeleton {
  --skeleton-bg: #f8f9fa;
  --skeleton-border: rgba(0, 0, 0, 0.08);
  --skeleton-element: #e9ecef;
  --skeleton-text: #dee2e6;
  --skeleton-marker: #6c757d;
  --skeleton-shimmer: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.7),
      transparent);
}

/* Dark mode support using data-layout-mode="dark" */
[data-layout-mode="dark"] .map-skeleton {
  --skeleton-bg: #1e1e1e;
  --skeleton-border: rgba(255, 255, 255, 0.1);
  --skeleton-element: #2d2d2d;
  --skeleton-text: #404040;
  --skeleton-marker: #6c757d;
  --skeleton-shimmer: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
}

/* Shimmer animation */
.map-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--skeleton-shimmer);
  animation: skeleton-shimmer 2s infinite ease-in-out;
  z-index: 2;
}

@keyframes skeleton-shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Map content area */
.skeleton-map-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simple India map outline */
.skeleton-india-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 280px;
  background: var(--skeleton-element);
  clip-path: polygon(30% 10%,
      35% 8%,
      40% 12%,
      45% 8%,
      50% 10%,
      55% 8%,
      60% 12%,
      65% 15%,
      70% 20%,
      75% 25%,
      80% 30%,
      85% 40%,
      88% 50%,
      90% 60%,
      88% 70%,
      85% 75%,
      80% 80%,
      75% 85%,
      70% 88%,
      65% 90%,
      60% 88%,
      55% 85%,
      50% 88%,
      45% 85%,
      40% 88%,
      35% 85%,
      30% 80%,
      25% 75%,
      20% 70%,
      18% 60%,
      15% 50%,
      18% 40%,
      20% 30%,
      25% 20%,
      30% 10%);
  border-radius: 8px;
  animation: skeleton-pulse 2s infinite ease-in-out;
}

/* City markers positioned for Indian cities */
.skeleton-city-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.skeleton-city-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--skeleton-marker);
  border-radius: 50%;
  border: 2px solid var(--skeleton-bg);
  animation: skeleton-float 3s infinite ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-city-marker::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--skeleton-bg);
  border-radius: 50%;
}

/* Positioned for major Indian cities */
.skeleton-city-marker:nth-child(1) {
  top: 35%;
  left: 40%;
  animation-delay: 0s;
}

.skeleton-city-marker:nth-child(2) {
  top: 60%;
  left: 45%;
  animation-delay: 0.5s;
}

.skeleton-city-marker:nth-child(3) {
  top: 45%;
  left: 55%;
  animation-delay: 1s;
}

/* City labels */
.skeleton-city-label {
  position: absolute;
  background: var(--skeleton-text);
  height: 8px;
  border-radius: 4px;
  animation: skeleton-pulse 2s infinite ease-in-out;
}

.skeleton-city-label:nth-child(1) {
  top: 32%;
  left: 42%;
  width: 40px;
  animation-delay: 0.2s;
}

.skeleton-city-label:nth-child(2) {
  top: 63%;
  left: 47%;
  width: 35px;
  animation-delay: 0.7s;
}

.skeleton-city-label:nth-child(3) {
  top: 48%;
  left: 57%;
  width: 45px;
  animation-delay: 1.2s;
}

@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes skeleton-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Loading text */
.skeleton-loading-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--skeleton-marker);
  font-size: 14px;
  z-index: 3;
}

.skeleton-loading-dots {
  display: flex;
  gap: 4px;
}

.skeleton-loading-dot {
  width: 4px;
  height: 4px;
  background: var(--skeleton-marker);
  border-radius: 50%;
  animation: skeleton-loading 1.4s infinite ease-in-out;
}

.skeleton-loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.skeleton-loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.skeleton-loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes skeleton-loading {

  0%,
  60%,
  100% {
    opacity: 0.4;
  }

  30% {
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .map-skeleton {
    height: 300px;
  }

  .skeleton-india-outline {
    width: 150px;
    height: 210px;
  }

  .skeleton-city-marker {
    width: 12px;
    height: 12px;
  }

  .skeleton-city-label {
    height: 6px;
  }

  .skeleton-city-label:nth-child(1) {
    width: 30px;
  }

  .skeleton-city-label:nth-child(2) {
    width: 25px;
  }

  .skeleton-city-label:nth-child(3) {
    width: 35px;
  }
}

/* No Data Found Component */
.no-data-container {
  width: 100%;
  height: 400px;
  background: var(--no-data-bg, #f8f9fa);
  border-radius: 12px;
  border: 1px solid var(--no-data-border, rgba(0, 0, 0, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Light mode variables (default) */
.no-data-container {
  --no-data-bg: #f8f9fa;
  --no-data-border: rgba(0, 0, 0, 0.08);
  --no-data-text: #6c757d;
  --no-data-heading: #495057;
  --no-data-icon: #adb5bd;
  --no-data-btn-bg: #019355;
  --no-data-btn-hover: #41c78f;
  --no-data-btn-text: #ffffff;
  --no-data-btn-secondary: #6c757d;
  --no-data-btn-secondary-hover: #5a6268;
}

/* Dark mode support using data-layout-mode="dark" */
[data-layout-mode="dark"] .no-data-container {
  --no-data-bg: #1e1e1e;
  --no-data-border: rgba(255, 255, 255, 0.1);
  --no-data-text: #adb5bd;
  --no-data-heading: #ffffff;
  --no-data-icon: #6c757d;
  --no-data-btn-bg: #019355;
  --no-data-btn-hover: #41c78f;
  --no-data-btn-text: #ffffff;
  --no-data-btn-secondary: #6c757d;
  --no-data-btn-secondary-hover: #5a6268;
}

.no-data-content {
  text-align: center;
  max-width: 400px;
  padding: 40px 20px;
}

.no-data-icon {
  margin-bottom: 24px;
}

.no-data-icon i {
  font-size: 64px;
  color: var(--no-data-icon);
  opacity: 0.6;
  animation: no-data-float 3s infinite ease-in-out;
}

.no-data-text {
  margin-bottom: 32px;
}

.no-data-text h3 {
  color: var(--no-data-heading);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.no-data-text p {
  color: var(--no-data-text);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.no-data-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.no-data-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-refresh {
  background: var(--no-data-btn-bg);
  color: var(--no-data-btn-text);
}

.btn-refresh:hover {
  background: var(--no-data-btn-hover);
  transform: translateY(-2px);
}

.btn-clear-filters {
  background: var(--no-data-btn-secondary);
  color: var(--no-data-btn-text);
}

.btn-clear-filters:hover {
  background: var(--no-data-btn-secondary-hover);
  transform: translateY(-2px);
}

.btn-refresh i,
.btn-clear-filters i {
  font-size: 14px;
}

@keyframes no-data-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .no-data-container {
    height: 300px;
  }

  .no-data-content {
    padding: 30px 15px;
  }

  .no-data-icon i {
    font-size: 48px;
  }

  .no-data-text h3 {
    font-size: 20px;
  }

  .no-data-text p {
    font-size: 14px;
  }

  .no-data-actions {
    flex-direction: column;
    align-items: center;
  }

  .no-data-actions button {
    width: 100%;
    max-width: 200px;
  }
}

/* Alternative variations */
.no-data-container.compact {
  height: 250px;
}

.no-data-container.compact .no-data-content {
  padding: 20px;
}

.no-data-container.compact .no-data-icon i {
  font-size: 48px;
}

.no-data-container.compact .no-data-text h3 {
  font-size: 20px;
}

.no-data-container.compact .no-data-text p {
  font-size: 14px;
}

/* Basic styling for the map container */
#hrmMap {
  height: 800px;
  /* Set a height for the map */
  width: 100%;
}

/* Styling for the custom IWW badge (now for photos) */
.hrm-user-badge {
  background-color: #7abf18;
  /* Background for the border/circle */
  border: 3px solid #fff;
  /* White border around the photo */
  border-radius: 50%;
  /* Makes it circular */
  width: 50px;
  /* Fixed width for the photo container */
  height: 50px;
  /* Fixed height for the photo container */
  overflow: hidden;
  /* Hide parts of the image that go outside the circle */
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -100%);
  /* Center the badge above the point */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  /* Add some shadow */
  position: absolute;
  /* Essential for OverlayView positioning */
  cursor: pointer;
  z-index: 100;
  /* Ensure badges are above default map elements */
}

.hrm-user-badge img {
  width: 100%;
  /* Make image fill the circular badge */
  height: 100%;
  object-fit: cover;
  /* Ensures the image covers the area without distortion */
  border-radius: 50%;
  /* Keep image circular inside the badge */
}

/* Styling for default/fallback photo */
.hrm-user-badge .default-photo {
  font-size: 20px;
  color: #fff;
  background-color: #6c757d;
  /* Grey background for default */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-transform: uppercase;
  /* For initials */
  font-weight: bold;
}

/* Responsive adjustments for the badge */
@media (max-width: 600px) {
  .hrm-user-badge {
    width: 40px;
    height: 40px;
  }

  .hrm-user-badge .default-photo {
    font-size: 16px;
  }
}

.map-window-content {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0;
  /* Remove default padding as we'll manage it inside */
  color: #333;
  max-width: 280px;
  /* Slightly wider for more content */
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
  text-align: left;
  /* No direct box-shadow here, as InfoWindow has its own.
               We style the inner card-like structure */
}

.map-window-card {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  /* Deeper shadow for a floating effect */
  border-radius: 8px;
  /* Match the outer info window border-radius */
  overflow: hidden;
}

.map-window-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  /* Subtle separator */
}

.map-window-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid #4caf50;
  /* Green border for the photo */
  flex-shrink: 0;
  transition: transform 0.2s ease-in-out;
}

.map-window-photo:hover {
  transform: scale(1.05);
  /* Slight grow on hover */
}

.map-window-initials {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #4caf50;
  /* Green background for initials */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.map-window-name {
  font-size: 1.2em;
  font-weight: 600;
  color: #388e3c;
  /* Darker green for name */
  line-height: 1.3;
}

.map-window-time {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.map-window-details {
  font-size: 0.88em;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.map-window-button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background-color: #4caf50;
  /* Primary green for button */
  color: white;
  border: none;
  border-radius: 6px;
  /* Slightly more rounded */
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  /* Bolder text */
  transition: background-color 0.3s ease, transform 0.1s ease-out;
  text-align: center;
  text-decoration: none;
  /* In case it becomes an anchor */
}

.map-window-button:hover {
  background-color: #004866;
  /* Darker green on hover */
  transform: translateY(-1px);
  /* Subtle lift effect */
}

.map-window-button:active {
  transform: translateY(0);
  /* Press effect */
}

/* edit logs modal css */
/* Timeline Styles */
.timeline-container {
  max-height: 500px;
  overflow-y: auto;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #007bff, #e9ecef);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 0;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  margin-left: 20px;
}

.timeline-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.timeline-card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 12px 16px;
  border-radius: 7px 7px 0 0;
}

.timeline-card .card-body {
  padding: 16px;
}

/* Avatar Styles */
.avatar-sm {
  width: 40px;
  height: 40px;
}

.avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.bg-soft-primary {
  background-color: rgba(13, 110, 253, 0.1);
}

.bg-soft-info {
  background-color: rgba(13, 202, 240, 0.1);
}

.bg-soft-secondary {
  background-color: rgba(108, 117, 125, 0.1);
}

/* Empty State */
.empty-state {
  color: #6c757d;
}

.empty-icon {
  opacity: 0.5;
}

/* Latest item highlight */
.timeline-item.latest .timeline-card {
  border-left: 4px solid #28a745;
}

/* Gradient header */
.bg-gradient-primary {
  background: linear-gradient(135deg, #004866 0%, #34c38f 100%);
}

/* Custom scrollbar */
.timeline-container::-webkit-scrollbar {
  width: 6px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-marker {
    left: -20px;
  }

  .timeline-dot {
    width: 30px;
    height: 30px;
  }

  .timeline-content {
    margin-left: 15px;
  }
}

/* edit logs modal css */

/* Card Container */
.iww-cards-container {
  padding: 1rem 0;
}

/* Main Card Styling */
.iww-survey-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  /* background: #ffffff; */
}

.iww-survey-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(1, 147, 85, 0.15) !important;
  border-color: var(--bs-primary);
}

/* Status Strip */
.iww-status-strip {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.iww-status-strip.treatment {
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-success));
}

.iww-status-strip.control {
  background: linear-gradient(90deg, #6c757d, #495057);
}

/* Survey Type Badges */
.iww-survey-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.iww-survey-type-badge.treatment {
  background: linear-gradient(135deg,
      rgba(1, 147, 85, 0.1),
      rgba(52, 195, 143, 0.1));
  color: var(--bs-primary);
  border: 1px solid rgba(1, 147, 85, 0.2);
}

.iww-survey-type-badge.control {
  background: linear-gradient(135deg,
      rgba(108, 117, 125, 0.1),
      rgba(73, 80, 87, 0.1));
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Info Boxes */
.iww-info-box {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.iww-info-box:hover {
  background: linear-gradient(135deg, rgba(1, 147, 85, 0.02), #ffffff);
  border-color: rgba(1, 147, 85, 0.1);
  transform: translateY(-1px);
}

.iww-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      rgba(1, 147, 85, 0.1),
      rgba(52, 195, 143, 0.1));
  color: var(--bs-primary);
  flex-shrink: 0;
}

.iww-info-label {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.125rem;
}

.iww-info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #343a40;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expand Button */
.iww-expand-btn {
  border: 1px solid rgba(1, 147, 85, 0.3);
  color: var(--bs-primary);
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.iww-expand-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.5s ease;
}

.iww-expand-btn:hover::before {
  left: 100%;
}

.iww-expand-btn:hover {
  background: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
  transform: translateY(-1px);
}

.iww-expand-btn .expand-icon {
  transition: transform 0.3s ease;
}

.iww-expand-btn.active .expand-icon {
  transform: rotate(180deg);
}

/* Details Section */
.iww-details-section {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

.iww-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.iww-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iww-detail-item.full-width {
  grid-column: 1 / -1;
}

.iww-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.iww-detail-value {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* Tags Container */
.iww-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.iww-tag {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, var(--bs-primary), rgba(1, 147, 85, 0.8));
  color: white;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(1, 147, 85, 0.2);
}

.iww-tag.empty {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  color: #6c757d;
  box-shadow: none;
}

/* Menu Button */
.iww-menu-btn:hover {
  color: var(--bs-primary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .iww-details-grid {
    grid-template-columns: 1fr;
  }

  .iww-detail-item.full-width {
    grid-column: 1;
  }

  .iww-info-box {
    padding: 0.5rem;
  }

  .iww-survey-card:hover {
    transform: translateY(-4px);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

.slide-down {
  animation: slideDown 0.4s ease-in-out;
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }

  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* =========================================
   DARK MODE OVERRIDES
   ========================================= */

[data-layout-mode="dark"] .modern-page-header {
  background: linear-gradient(135deg, #1a2035 0%, #252b42 100%) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-layout-mode="dark"] .modern-breadcrumb {
  background: rgba(42, 48, 66, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-layout-mode="dark"] .modern-search-section {
  background: #2a3042 !important;
  border-color: #32394e !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

[data-layout-mode="dark"] .modern-search-heading {
  color: #fff !important;
}

[data-layout-mode="dark"] .modern-search-input {
  background: #222736 !important;
  border-color: #32394e !important;
  color: #e9ecef !important;
}

[data-layout-mode="dark"] .modern-search-input:focus {
  background: #2a3042 !important;
  border-color: #556ee6 !important;
}

[data-layout-mode="dark"] .modern-view-btn {
  border-color: #32394e !important;
  color: #a6b0cf !important;
}

[data-layout-mode="dark"] .modern-view-btn:hover,
[data-layout-mode="dark"] .modern-view-btn.active {
  background: #32394e !important;
  color: #fff !important;
  border-color: #32394e !important;
}

[data-layout-mode="dark"] .modern-master-card {
  background: #2a3042 !important;
  border-color: transparent !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

[data-layout-mode="dark"] .modern-master-card:hover {
  background: #2e3648 !important;
  border-color: #32394e !important;
}

[data-layout-mode="dark"] .modern-card-title {
  color: #eff2f7 !important;
}

[data-layout-mode="dark"] .modern-card-subtitle {
  color: #a6b0cf !important;
}

[data-layout-mode="dark"] .modern-card-icon {
  background: linear-gradient(135deg, #32394e, #2a3042) !important;
  border-color: #3e465b !important;
}

[data-layout-mode="dark"] .modern-filter-results {
  background: #2a3042 !important;
  color: #eff2f7 !important;
  border-left-color: #556ee6 !important;
}

/* Timeline & Card Dark Mode */
[data-layout-mode="dark"] .timeline::before {
  background: linear-gradient(to bottom, #556ee6, #32394e) !important;
}

[data-layout-mode="dark"] .timeline-card,
[data-layout-mode="dark"] .card {
  background: #2a3042 !important;
  border-color: #32394e !important;
  color: #eff2f7 !important;
}

[data-layout-mode="dark"] .timeline-card .card-header,
[data-layout-mode="dark"] .card-header {
  background: #32394e !important;
  border-bottom-color: #3e465b !important;
}

[data-layout-mode="dark"] .timeline-card .text-muted,
[data-layout-mode="dark"] .text-muted {
  color: #a6b0cf !important;
}

[data-layout-mode="dark"] .timeline-card .text-primary,
[data-layout-mode="dark"] .text-primary {
  color: #556ee6 !important;
}

[data-layout-mode="dark"] .bg-soft-primary {
  background-color: rgba(85, 110, 230, 0.1) !important;
  color: #556ee6 !important;
}

[data-layout-mode="dark"] .bg-soft-info {
  background-color: rgba(52, 195, 143, 0.1) !important;
  color: #34c38f !important;
}

[data-layout-mode="dark"] .bg-soft-secondary {
  background-color: rgba(166, 176, 207, 0.1) !important;
  color: #a6b0cf !important;
}

[data-layout-mode="dark"] .timeline-dot {
  border-color: #2a3042 !important;
}

[data-layout-mode="dark"] .fw-medium {
  color: #eff2f7 !important;
}

[data-layout-mode="dark"] .info-card {
  background-color: #2a3042 !important;
  border-color: #32394e !important;
}

[data-layout-mode="dark"] .info-label {
  color: #a6b0cf !important;
}

[data-layout-mode="dark"] .info-value {
  color: #eff2f7 !important;
}

[data-layout-mode="dark"] .no-joiners-container {
  background: #2a3042 !important;
  border-color: #32394e !important;
}

[data-layout-mode="dark"] .no-joiners-text {
  color: #eff2f7 !important;
}

[data-layout-mode="dark"] .data-cell {
  color: #eff2f7 !important;
}

/* Keyboard Focus Indicator for Select2 - Shows when navigating with Tab */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  outline: 2px solid #0078aa !important;
  outline-offset: 2px !important;
  border-color: #0078aa !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 120, 170, 0.25) !important;
}

/* Matching Focus Indicator for Text Fields and Form Controls */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
.form-control:focus {
  outline: 2px solid #0078aa !important;
  outline-offset: 2px !important;
  border-color: #0078aa !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 120, 170, 0.25) !important;
}