/* 🌙 Base Style */
body {
  background-color: #0e1a2b;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  margin: 0;
  text-align: center;
}

/* 🌐 Responsive Containers */
input, button {
  padding: 10px;
  font-size: 16px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

input {
  background: #1c2d3b;
  color: white;
  border: 1px solid #2d3f58;
}

button {
  background-color: #00cba9;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
button:hover {
  background-color: #00b395;
  transform: scale(1.03);
}

/* 📊 Data Tables */
.data-table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.data-table th, .data-table td {
  padding: 10px;
  border: 1px solid #2d3f58;
  color: #d1d1d1;
  text-align: left;
  word-break: break-word;
}
.data-table th {
  background-color: #1c2d45;
}

#result {
  overflow-x: auto;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 100px; /* Ensure last dropdown isn't cut off */
}

/* 📦 Summary Cards */
.summary-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.summary-card {
  background: linear-gradient(145deg, #1a3a55, #1e4566);
  border-radius: 12px;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  min-width: 140px;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

/* 🟢 Badge Styling */
.badge-wrapper {
  position: relative;
  display: inline-block;
  padding-right: 10px;
}
.notif-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  color: white;
  background-color: red;
  border-radius: 50%;
  font-size: 10px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.badge-top { background-color: #2ecc71; }
.badge-medium { background-color: #f1c40f; }
.badge-low { background-color: #e74c3c; }

/* 🔍 Search Bar */
.search-bar {
  padding: 8px;
  margin: 15px 0;
  background: #1c2d3b;
  border: 1px solid #2d3f58;
  color: #fff;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* 🎨 Login Section */
#loginSection {
  background: #162330;
  padding: 25px;
  border-radius: 12px;
  max-width: 350px;
  margin: 80px auto 30px;
  box-shadow: 0 0 10px #00cba9;
}

#clientProfileCard {
  background-color: #1a2e3f;
  padding: 12px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: left;
}

/* 📉 Charts */
canvas {
  display: block;
  margin: 40px auto;
  max-width: 900px;
  max-height: 500px;
  width: 100%;
  height: auto !important;
}

/* 📱 Export buttons */
.export-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

/* 🧠 Utility Classes */
.hidden {
  display: none !important;
}
#errorMsg {
  color: red;
  font-weight: bold;
}
#successAlert {
  background-color: #2ecc71;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  font-weight: bold;
  max-width: 300px;
}
.top-buttons {
  flex-direction: row;
  justify-content: space-between;
  padding: 0 10px;
}
.export-buttons {
  bottom: 15px;
  right: 15px;
}

/* 🖨️ Print Mode */
@media print {
  .top-buttons, .export-buttons, #logoutSection, #successAlert, #clientProfileCard, input, button {
    display: none !important;
  }
}

/* ✅ Mobile Optimizations */
@media (max-width: 600px) {
  .summary-card {
    font-size: 16px;
    padding: 18px;
  }

  .data-table th, .data-table td {
    font-size: 14px;
    padding: 6px;
  }

  #loginSection {
    width: 90%;
    margin-top: 60px;
  }

  .export-buttons {
    right: 10px;
    bottom: 10px;
  }

  canvas {
    height: 300px !important;
  }
}

/* 📱 Client and Admin Container */
#dashboardContainer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 20px;
  align-items: center;
}

/* 🎛️ Toggle Dropdown Animation */
.client-info {
  display: none;
  background: #1c2d3b;
  margin-top: 10px;
  padding: 10px;
  border-left: 2px solid #00cba9;
  border-radius: 6px;
}
.client-info.show {
  display: block;
}



/* 📌 More Info Button + Arrow */
.more-info-btn {
  background-color: #00cba9;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.more-info-btn:hover {
  background-color: #00b395;
  transform: scale(1.05);
}

.more-info-btn .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}
.more-info-btn .arrow.rotated {
  transform: rotate(90deg);
}

/* 📍 Top Buttons */
.top-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.top-buttons button {
  width: auto;
  padding: 10px 16px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .top-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    justify-content: space-between;
  }

  .top-buttons button {
    width: auto;
  }
}

.arrow {
  transition: transform 0.3s ease;
}
.arrow.rotated {
  transform: rotate(180deg);
}
.badge-alert {
  background: #e74c3c;
  color: white;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: bold;
}
.spinner {
  font-size: 16px;
  font-weight: bold;
  color: #00cba9;
}

.clear-button {
  background-color: #00cba9;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-left: 10px;
  border-radius: 6px;
  cursor: pointer;
}
.clear-button:hover {
  background-color: #019b85;
}
.highlight-order {
  background-color: #fffae6 !important; /* Light yellow */
  border-left: 4px solid #f1c40f; /* Gold border */
}
.pagination-controls {
  margin-top: 15px;
  text-align: right;
}

.pagination-controls button {
  margin: 2px;
  padding: 5px 10px;
  border: none;
  background-color: #444;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-controls button.active {
  background-color: #00cba9;
}
.chart-wrapper {
  margin: 40px auto;
  max-width: 900px;
  background: #0f2236;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 203, 169, 0.2);
}
canvas {
  width: 100% !important;
  height: auto !important;
}
@media (max-width: 600px) {
  .chart-wrapper {
    padding: 15px;
  }
  canvas {
    max-height: 300px;
  }
}
.data-table td {
  vertical-align: top;
  line-height: 1.6;
  word-break: break-word;
  max-width: 350px;
}
.data-table {
  table-layout: auto;
}
.arrow.rotated {
  transform: rotate(180deg);
}
.pagination-container {
  margin-top: 15px;
  text-align: center;
}

.pagination-btn {
  background-color: #00cba9;
  color: white;
  padding: 6px 10px;
  margin: 3px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.pagination-btn:hover {
  background-color: #008c7d;
}

.pagination-btn.active {
  background-color: #004d40;
}
/* Common Pagination Button */
.pagination-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition: 0.3s;
}

/* Specific styles for Prev and Next */
.prev-btn {
  background-color: #f1a500; /* Orange */
}

.prev-btn:hover {
  background-color: #e18e00;
}

.next-btn {
  background-color: #00cba9; /* Green */
}

.next-btn:hover {
  background-color: #00b395;
}

/* Make pagination container look better */
.pagination-container {
  margin-top: 20px;
}
.refresh-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.top-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000;
}

.top-buttons button, .refresh-buttons button {
  background-color: #00cba9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.top-buttons button:hover, .refresh-buttons button:hover {
  background-color: #00b395;
}
.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.left-buttons {
  display: flex;
  gap: 15px;
}

.left-buttons button, #notificationButton {
  background-color: #00cba9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.left-buttons button:hover, #notificationButton:hover {
  background-color: #00b395;
}
#dashboardContainer {
  display: none;
}
#loginSection {
  display: block;
}
#successAlert {
  background-color: #2ecc71;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  font-weight: bold;
  max-width: 300px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}
#successAlert.show {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-buttons-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.dashboard-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.dashboard-buttons button {
  background: #00cba9;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.dashboard-buttons button:hover {
  background: #00b395;
}
.dashboard-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.dashboard-buttons button {
  background: #00cba9;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.dashboard-buttons button:hover {
  background: #00b395;
}

/* 🆕 Top Buttons Styling */
.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.left-buttons {
  display: flex;
  gap: 10px;
}

.right-buttons {
  display: flex;
  gap: 10px;
}

.left-buttons button, .right-buttons button {
  background-color: #00cba9;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.left-buttons button:hover, .right-buttons button:hover {
  background-color: #00b395;
}

/* 🆕 Bottom Right Export Buttons */
.export-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.export-buttons button {
  background-color: #00cba9;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.export-buttons button:hover {
  background-color: #00b395;
}
/* 🛠 Fix More Info Dropdown Tables */
.client-info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed; /* 💥 Force equal column distribution */
}

.client-info th, .client-info td {
  border: 1px solid #2d3f58;
  padding: 10px;
  text-align: center; /* Center text properly */
  vertical-align: middle;
  color: #d1d1d1;
  word-break: break-word;
  font-size: 14px;
}

.client-info th {
  background-color: #1c2d45;
  font-weight: bold;
}

.client-info td {
  background-color: #162330;
}
/* 📋 Management Info Styling */
.management-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #162330;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,203,169,0.2);
}

.management-info-table th, .management-info-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #2d3f58;
  font-size: 14px;
  color: #d1d1d1;
}

.management-info-table th {
  background-color: #1c2d45;
  font-weight: bold;
}

.management-info-table td {
  background-color: #0f1b2b;
}

.management-info-wrapper {
  margin: 40px auto;
  max-width: 1200px;
}
.track-cn-wrapper {
  margin-top: 20px;
  text-align: center;
}
#trackCnInput {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #2d3f58;
  width: 220px;
  margin-right: 10px;
}
.track-cn-wrapper button {
  background-color: #00cba9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.track-cn-wrapper button:hover {
  background-color: #00b395;
}
.profile-button-wrapper {
  margin-left: 10px;
}

#profileButtonContainer {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 999;
}

#profileButton {
  position: fixed;
  top: 130px; /* Previously 100px */
  left: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border: 2px solid #00bcd4;
  border-radius: 50%;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 15px #00bcd4;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) {
  #profileButton {
    top: 140px; /* Adjusted for smaller screen */
    left: 15px;
  }
}


#profileAvatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 0 12px #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profileAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ✅ Ensures it fills without distortion */
  border-radius: 50%;
  display: block;
}


/* 🔥 Upgraded Profile Section */
/* 🌟 Enhanced Profile Card Styling */
/* 🌈 Gradient Glass Card */
#profileSection {
  position: fixed;
  top: 100px;
  left: 100px;
  width: 340px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
  padding: 25px 20px;
  box-shadow: 0 12px 40px rgba(0, 203, 169, 0.3);
  font-family: 'Poppins', sans-serif;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s ease;

  /* 🆕 ADD THESE LINES */
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}


#profileSection.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 👤 Avatar */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e2a38;
  border-radius: 10px;
  padding: 20px;
  color: white;
}

.profile-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ffe7;
  margin-bottom: 15px;
}


/* 🏷️ Heading */
#profileCard h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #00e5ff;
}

/* 🪪 Rows */
.profileRow {
  display: flex;
  align-items: center;
  margin: 12px 0;
  gap: 10px;
}

.profileRow .label {
  font-weight: 600;
  color: #cccccc;
  min-width: 70px;
}

.profileRow .value {
  flex: 1;
  word-break: break-word;
  font-weight: 500;
  color: #ffffff;
}

/* 🌐 Website link */
#profileCard a {
  color: #00e5ff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}
#profileCard a:hover {
  text-decoration: underline;
  color: #00ffd5;
}

/* 🌀 Glow effect on hover */
#profileSection:hover {
  box-shadow: 0 16px 50px rgba(0, 203, 169, 0.5);
}

@media (max-width: 600px) {
  /* Move profile button down on mobile */
#profileButton {
  width: 70px;  /* Adjust as needed */
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

  #profileAvatar {
    width: 100px;
    height: 100px;
  }

  /* Make profile card fully responsive */
  #profileSection {
    left: 50%;
    top: 160px;
    transform: translateX(-50%) scale(1);
    width: 90vw;
    max-width: 350px;
    padding: 20px 15px;
  }

  #profileCard h2 {
    font-size: 18px;
  }

  .profileRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profileRow .label {
    font-size: 14px;
    min-width: auto;
  }

  .profileRow .value {
    font-size: 14px;
    word-break: break-word;
  }
}
.data-table th, .data-table td {
  word-break: break-word;
  white-space: normal;
}
@media (max-width: 600px) {
  #profileSection {
    position: fixed;
    top: 140px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92vw !important;
    max-width: 360px;
    padding: 20px 15px;
    z-index: 9999;
    box-sizing: border-box;
  }

  .profileRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .profileRow .label,
  .profileRow .value {
    font-size: 14px;
    word-break: break-word;
    line-height: 1.4;
  }

  #profileCard h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
}
/* 🔧 Fix table header and cell wrapping on mobile */
/* ✅ Mobile Table Fix */
@media (max-width: 768px) {
  .data-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
  }

  .data-table th,
  .data-table td {
    font-size: 13px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;     /* ❗ Prevent line breaks */
    word-break: normal !important;      /* ❗ No breaking words */
    text-align: center;
  }

  .data-table thead {
    display: table-header-group;        /* Keeps header visible */
  }

  .data-table tbody {
    display: table-row-group;
  }
}
/* 📱 Force table scroll and prevent breakage */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;  /* Ensures layout doesn't shrink weirdly on mobile */
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 10px;
  font-size: 14px;
  white-space: nowrap;      /* ✅ Prevents breaking lines */
  word-break: keep-all;     /* ✅ No forced word breaking */
  text-align: center;
}

@media (max-width: 600px) {
  .data-table th, .data-table td {
    font-size: 12px;
    padding: 8px;
  }

  .table-wrapper {
    margin-bottom: 20px;
  }
}
.see-plans {
  color: #00e5ff;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
  transition: color 0.3s;
}

.see-plans:hover {
  color: #00ffd5;
}

.availablePlans {
  margin-top: 15px;
  text-align: left;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.availablePlans h4 {
  font-size: 16px;
  color: #00e5ff;
  margin-bottom: 10px;
}
.availablePlans ul {
  padding-left: 20px;
  list-style-type: disc;
}
.availablePlans li {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}
#profileSection {
  max-height: 80vh; /* 🔥 Max 80% of screen height */
  overflow-y: auto; /* 🔥 Enable scrolling inside card */
  padding-right: 10px; /* 🔥 Small right padding to avoid scroll cutting */
}
.upload-btn {
  background-color: #00cba9;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
.upload-btn:hover 
  background-color: #00b395;
}
.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.hidden {
  display: none;
}
object-fit: cover;
border-radius: 50%;
width: 100%;
height: 100%;
.profile-top {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-left: 10px;
  margin-bottom: 20px;
  margin-left: -7cm; /* Move image 2cm left */
}

.profile-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #1d2b3a, #203143);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px #00e0d0;
  flex-shrink: 0;
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.profile-name-block h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #00e0d0;
}
#profileSection {
  position: fixed;
  top: 100px; /* Opens below the profile button */
  left: 80px; /* Opens to the right of the button */
  z-index: 999;
  background: #ffffff;
  color: #000;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 85vw;
  display: none;
}

#profileSection.show {
  display: block;
}

#profileCard {
  width: 100%;
}

.profile-img-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0 auto 10px;
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#profileName {
  text-align: center;
  color: #00cba9;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.profileRow {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}

.profileRow .label {
  font-weight: 600;
  color: #333;
}

.profileRow .value {
  text-align: right;
  color: #111;
  word-break: break-word;
}

.see-plans {
  display: inline-block;
  margin: 14px 0 10px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background-color: #1976d2;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.see-plans:hover {
  background-color: #0d47a1;
}
.see-plans {
  display: block;
  text-align: center;
  margin: 14px auto 10px;
}


.availablePlans {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  color: #000 !important;   /* ✅ Force black text */
  font-size: 13.5px;
}

.availablePlans h4 {
  font-size: 15px;
  color: #1976d2;
  margin-bottom: 8px;
}

.availablePlans ul {
  padding-left: 18px;
  margin: 0;
  color: #000 !important;    /* ✅ Ensure black list text */
}

.availablePlans li {
  color: #000 !important;    /* ✅ Ensure black text for list items */
  margin-bottom: 6px;
  line-height: 1.5;
}
.refresh-wrapper {
  position: relative;
  display: inline-block;
}
#truckAnimation {
  position: fixed;
  top: 0;
  left: 0;
  transform: scale(0);
  z-index: 9999;
  pointer-events: none;
}

#truckAnimation img {
  width: 80px;
  transition: transform 0.5s ease;
}

/* 🎬 Animation Keyframes */
@keyframes truckMove {
  0% {
    top: var(--start-top);
    left: var(--start-left);
    transform: scale(0.4) rotate(0deg);
  }
  30% {
    transform: scale(1.2) rotate(20deg);
  }
  50% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2) rotate(360deg);
  }
  80% {
    transform: scale(1.2) rotate(380deg);
  }
  100% {
    top: var(--start-top);
    left: var(--start-left);
    transform: scale(0.4) rotate(0deg);
  }
}

.truck-run {
  animation: truckMove 2.5s ease-in-out forwards;
}
/* Hidden by default */

button {
  padding: 10px 20px;
  background: linear-gradient(to right, #00cba9, #0ea5e9);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
button:hover {
  transform: scale(1.05);
}

#profileCircle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cba9, #00c3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2.5s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(0, 203, 169, 0.7);
  position: relative;
  overflow: hidden;
}

#profileCircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#profileButton {
  position: fixed;
  top: 70px;
  left: 15px;
  z-index: 9999;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profileAvatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 203, 169, 0.6);
}

#profileAvatar lottie-player {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@media (max-width: 768px) {
  #profileButton {
    top: 70px;
    left: 25px;
    width: 60px;
    height: 60px;
  }
}

.sci-fi-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.05), rgba(0, 0, 50, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.glow-text {
  font-size: 2rem;
  color: cyan;
  text-shadow: 0 0 15px cyan;
  animation: flicker 1s infinite;
  margin-top: 20px;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.status-badge-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.status-badge {
  background: linear-gradient(135deg, #00ffe7 0%, #00bfff 100%);
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 0 15px #00eaff;
  animation: glowPulse 2s infinite ease-in-out;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-count {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 6px #fff;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}



.status-badge:hover {
  transform: scale(1.05);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px #0ff;
  }
  50% {
    box-shadow: 0 0 25px #0ff;
  }
}
@media print {
  .no-print {
    display: none !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #000 !important;
    background: #fff !important;
    font-size: 12px;
    font-family: Arial, sans-serif;
  }

  * {
    color: #000 !important;     /* Force black text */
    background: none !important;
    box-shadow: none !important;
  }

  canvas {
    page-break-inside: avoid;
  }

  .summary-cards {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }

  .summary-card {
    border: 1px solid #000;
    padding: 10px;
    font-weight: bold;
    background: #f1f1f1;
    width: 25%;
    text-align: center;
    color: #000 !important;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
  }

  table, th, td {
    border: 1px solid #000;
  }

  th, td {
    padding: 8px;
    text-align: left;
    color: #000 !important;
  }

  h2, h3, h4 {
    color: #000 !important;
    text-align: center;
    margin-top: 30px;
  }

  #logoContainer {
    display: block;
    margin-bottom: 20px;
  }

  #logoContainer img {
    height: 60px;
  }
}
@media print {
  /* Force all paginated rows to be visible during print */
  #orderStatusTable tbody tr {
    display: table-row !important;
  }

  /* Hide pagination buttons */
  .pagination-wrapper,
  .pagination-container,
  .page-counter {
    display: none !important;
  }

  /* Ensure other tables show all rows too */
  table tbody tr {
    display: table-row !important;
  }
}

  table {
    page-break-inside: avoid;
  }

  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }
@media print {
  @page {
    size: A3;
    margin: 1cm;
  }

  body {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    background: white;
    font-size: 12pt;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    padding: 8px;
    border: 1px solid #000;
    color: #000; /* ensure strong print color */
  }

  .hidden,
  .top-bar,
  .profileContainer,
  #notificationSection,
  #profileSection,
  #logoutSection,
  #refreshButton,
  #exportButtons,
  #successAlert {
    display: none !important;
  }

  canvas {
    display: none !important;
  }

  .pagination-wrapper {
    display: none !important;
  }

  tr {
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }
}
.card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  font-size: 24px;
  font-weight: bold;
}
.remittance-summary-card {
  background: linear-gradient(135deg, #00cba9, #00a8e8);
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 203, 169, 0.3);
  margin: 10px auto;
  width: fit-content;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.remittance-summary-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 203, 169, 0.6);
}

#remittanceCard {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-top: 4px;
}

.remittance-bubble:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(0, 203, 169, 0.8), 0 0 25px rgba(0, 168, 232, 0.6);
}
.remittance-details {
  margin: 15px auto;
  width: 95%;
  max-width: 900px;
  background-color: #1f2b3a;
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 203, 169, 0.3);
  overflow-x: auto;
}

.remittance-details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
  border-radius: 12px;
  overflow: hidden;
}

.remittance-details thead th {
  position: sticky;
  top: 0;
  background: #00cba9;
  color: #fff;
  text-shadow: 0 0 2px #000;
  padding: 10px;
  font-size: 14px;
}

.remittance-details tbody tr:nth-child(even) {
  background-color: #28384e;
}
.remittance-details tbody tr:nth-child(odd) {
  background-color: #1f2b3a;
}

.remittance-details td {
  padding: 10px;
  text-align: center;
  border: 1px solid #3b506b;
}

/* 🎯 Hover glow effect */
.remittance-details tbody tr:hover {
  background: rgba(0, 203, 169, 0.1);
  transition: background 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 203, 169, 0.3);
}

/* ✅ High remittance glow */
.remittance-details td:last-child {
  font-weight: bold;
}
.remittance-details td:last-child::before {
  content: "💰 ";
  color: #00ff95;
}

/* 🔴 Highlight balance due = ₹800 (no advance) */
.remittance-details td:nth-child(4):contains("₹800") {
  color: #ff6961;
  font-weight: bold;
}
.remit-filters {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.remit-filters label {
  color: #fff;
  font-weight: 500;
}

.remit-filters input[type="date"] {
  padding: 6px;
  border-radius: 6px;
  border: none;
  background: #223040;
  color: white;
  outline: none;
}

/* Optional styling improvements from earlier */
.remittance-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.remittance-details thead th {
  background: #00cba9;
  color: white;
  text-align: center;
  padding: 10px;
  position: sticky;
  top: 0;
}

.remittance-details td {
  padding: 10px;
  border: 1px solid #3b506b;
  text-align: center;
}

.remittance-details tbody tr:nth-child(even) {
  background-color: #2a3545;
}
.remittance-details tbody tr:nth-child(odd) {
  background-color: #1f2a3a;
}

#remittancePanel {
  margin-top: 15px;
  transition: all 0.3s ease-in-out;
}

/* 🔘 RTO Wallet Toggle Card (matches Remittance) */
.rto-summary-card {
  background: linear-gradient(to right, #00bcd4, #009688);
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  padding: 12px 30px;
  margin: 10px auto 20px;
  border-radius: 14px;
  display: inline-block;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.rto-summary-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}


/* 📦 RTO Panel container */
#rtoPanel {
  margin-top: 15px;
  background: #0d1b2a;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
}

/* 💳 Total RTO Wallet Card (like Remittance cards) */
#rtoPanel .summary-card {
  background: linear-gradient(to right, #37474f, #263238);
  color: #fff;
  font-weight: bold;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* 🧾 RTO Breakdown Table (like Remittance) */
#rtoDetails table {
  width: 100%;
  border-collapse: collapse;
  background: #1c1c1c;
  color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
  margin-top: 15px;
}
#rtoDetails thead {
  background: #00acc1;
  color: white;
}
#rtoDetails th, #rtoDetails td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid #2c2c2c;
}
#rtoDetails tr:hover {
  background-color: #2e2e2e;
}

/* 💰 RTO Wallet Highlight */
#rtoDetails td b,
#rtoDetails .wallet-amt {
  color: #ffc107;
  font-weight: bold;
}

/* 🪙 Emoji before wallet (optional) */
.wallet-amt::before {
  content: "₹";
  font-size: 1em;
  margin-right: 2px;
}


/* 🖥️ Responsive */
@media screen and (max-width: 600px) {
  .rto-summary-card,
  #rtoPanel .summary-card {
    font-size: 16px;
    padding: 10px;
  }
  #rtoDetails table {
    font-size: 13px;
  }
}

.summary-button-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.summary-button {
  width: 180px;               /* ✅ Smaller width */
  height: 50px;               /* ✅ Smaller height */
  padding: 10px 14px;         /* ✅ Reduced padding */
  border-radius: 14px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;            /* ✅ Slightly smaller font */
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
  transition: 0.3s ease;
}

.summary-button span {
  font-size: 14px;            /* ✅ More compact subtitle */
  display: block;
  margin-top: 4px;
}


.summary-button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;              /* ⬅️ Reduced from 20px to 10px */
  margin: 10px 0 0;       /* ⬅️ Reduced top/bottom spacing */
  flex-wrap: wrap;
}

.summary-button-row .remittance-summary-card,
.summary-button-row .rto-summary-card {
  min-width: 200px;
  padding: 12px 20px;     /* ⬅️ Optional: reduce padding */
  text-align: center;
  margin: 0;              /* ⬅️ Ensure no extra margin is added */
}
summary:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}
.badge-success {
  background-color: green;
}
.badge-danger {
  background-color: crimson;
}
.amount-wrapper {
  position: relative;
  display: inline-block;
  font-weight: bold;
  padding-top: 18px; /* extra spacing for the badge above */
}

.remit-badge {
  position: absolute;
  top: -10px;
  right: 1;
  background: green;
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.with-arrow::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6px;
  width: 0;
  height: 0;
  border-top: 5px solid green;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}


/* Optional: status color variants */
.badge-success { background-color: green; }
.badge-pending { background-color: orange; }
.badge-other { background-color: gray; }
#financeDashboard {
  background-color: #1e1e2f;
  color: #f5f6fa;
  padding: 20px;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}

.finance-header {
  text-align: center;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.finance-user-info div {
  margin-top: 5px;
  color: #00cba9;
}

.finance-summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.finance-card {
  background: #2f2f42;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-align: center;
  min-width: 180px;
  font-size: 18px;
}

.finance-section {
  margin-top: 25px;
  background: #2a2a3d;
  padding: 15px;
  border-radius: 10px;
}
.hidden {
  display: none;
}
.show {
  display: block;
}
.arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.arrow.rotated {
  transform: rotate(90deg);
}
.data-table td, .data-table th {
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 180px;
}
.client-profile-box,
.rto-wallet-section,
.summary-cards,
.data-table {
  max-width: 100%;
  margin: 0 auto;
}

.client-profile-box {
  padding: 12px;
  background-color: #101e2c;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* 🧩 Make More Info fullscreen and hide background */
.fullscreen-info {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 40px 30px;
  background-color: #ffffff;
  box-sizing: border-box;
  border-radius: 0;
  color: #1a1a1a;
  z-index: 1;
  display: block;
}


/* ✅ Ensure tables look nice in fullscreen */
.fullscreen-info table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  margin-top: 20px;
}

.fullscreen-info th {
  background-color: #1976d2;
  color: white;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
}

.fullscreen-info td {
  background-color: #f9f9f9;
  color: #333;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #eee;
}


/* ✅ Hide scrollbar for clean look */
.fullscreen-info::-webkit-scrollbar {
  width: 6px;
}
.fullscreen-info::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* 🔒 Optional: Lock background scroll when more info is open */
body.fullscreen-open {
  overflow: hidden;
}
.fullscreen-info .client-profile-box {
  background-color: #f4f7fb;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.fullscreen-info .client-profile-box p {
  font-size: 15px;
  margin: 8px 0;
  color: #222;
  font-weight: 500;
}

.fullscreen-info .client-profile-box a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 600;
}
.fullscreen-info .client-profile-box a:hover {
  text-decoration: underline;
}
.client-info {
  display: block;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -20px; /* optional if it's inside a padded container */
}
.fullscreen-info .client-profile-box {
  background: #f4f7fc;
  border-radius: 16px;
  padding: 20px 30px;
  margin-bottom: 30px;
  border: 1px solid #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.fullscreen-info .client-profile-box p {
  font-size: 16px;
  margin: 10px 0;
  color: #333;
  font-weight: 500;
}

.fullscreen-info .client-profile-box a {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}
.fullscreen-info .client-profile-box a:hover {
  text-decoration: underline;
}
.fullscreen-info .client-profile-box {
  text-align: center;
}
/* 🚫 Hide parent table borders when fullscreen-info is open */
.client-info.fullscreen-info {
  background: #ffffff;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100vw;
  max-width: 100vw;
  margin-left: -20px; /* optional: remove inner cell padding */
  padding: 30px;
  position: relative;
  z-index: 10;
}

/* 🔒 Reset all TD/TH lines under fullscreen-info */
.client-info.fullscreen-info td,
.client-info.fullscreen-info th {
  border: none !important;
}

/* 🛑 Optional: kill border of surrounding TD (parent table cell) */
.client-info.fullscreen-info::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff;
  z-index: -1;
}
/* 🌟 Eye-catching Remittance Cards */
.fullscreen-info .summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 25px;
}

.fullscreen-info .summary-card {
  background: linear-gradient(135deg, #004d7a, #008793);
  color: #ffffff;
  padding: 20px 25px;
  min-width: 180px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fullscreen-info .summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ✨ Emoji/Icon Emphasis */
.fullscreen-info .summary-card span {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

/* 🎯 Individual Colors (Optional override if needed) */
.remit-card { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.settle-card { background: linear-gradient(135deg, #11998e, #38ef7d); }
.pending-card { background: linear-gradient(135deg, #ff6e7f, #bfe9ff); }
.rto-card { background: linear-gradient(135deg, #3a1c71, #d76d77); }
.toggle-btn {
  background-color: #1976d2;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-btn:hover {
  background-color: #155a9c;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.btn-info {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}
.btn-info:hover {
  transform: scale(1.05);
}
.btn-info.btn-sm {
  padding: 6px 14px !important;
  font-size: 14px !important;
  max-width: 180px;
  margin: auto;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.shake-box {
  animation: shake 0.6s ease-in-out infinite;
}
