















/* 🌙 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;
}


/* 🔥 Upgraded Profile Section */
/* 🌟 Enhanced Profile Card Styling */
/* 🌈 Gradient Glass Card */

#loginSuccessAnimation {
  display: none !important;
}


/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #fff;
  padding: 20px;
}

/* LOGIN BOX */
#login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-box {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #555;
  background: #0f172a;
  color: #fff;
}
.login-box button {
  background: #3b82f6;
  color: #fff;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.login-box button:hover {
  background: #2563eb;
}

/* HEADER */
#dashboard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
#dashboard h1 {
  font-size: 24px;
}
#dashboard button {
  background: #ef4444;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}
#dashboard button:hover {
  background: #dc2626;
}

/* FILTERS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.filters input,
.filters select,
.filters button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #1e293b;
  color: #fff;
}
.clear-button {
  background: #3b82f6;
  color: white;
  font-weight: bold;
}
.clear-button:hover {
  background: #2563eb;
}

/* TABLE */
.table-wrapper {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #1e293b;
}
.data-table th, .data-table td {
  border: 1px solid #334155;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 200px;
}

.data-table th {
  background: #3b82f6;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-table tr:nth-child(even) {
  background: #0f172a;
}

/* BADGES */
.status-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 15px;
}
.status-badge {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
  font-size: 14px;
}
.badge-confirm {
  background: #2563eb;
  color: white;
}
.badge-cancel {
  background: #dc2626;
  color: white;
}
.badge-pending {
  background: #facc15;
  color: #1e293b;
}
.badge-nopick {
  background: #9ca3af;
  color: #000;
}

/* EXPORT BUTTONS */
.export-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.export-buttons button {
  background: #10b981;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.export-buttons button:hover {
  background: #059669;
}

/* PAGINATION */
.pagination-container {
  margin-top: 15px;
  text-align: center;
}
.pagination-container button {
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 6px;
  background: #3b82f6;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.pagination-container button:disabled {
  background: #64748b;
  cursor: not-allowed;
}
/* Fix Save button inside table */
.data-table button {
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #ef4444;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  width: auto; /* ✅ Don't stretch full width */
  display: inline-block;
  white-space: nowrap;
}

.data-table button:hover {
  background-color: #dc2626;
}
/* General button styling */
button {
  padding: 10px 20px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block; /* ✅ Prevent full row stretch */
  width: auto;           /* ✅ Only take needed space */
  white-space: nowrap;
}

button:hover {
  background-color: #2563eb;
}
.dropdown-container {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.dropdown-btn {
  background-color: #dc2626;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1e293b;
  color: white;
  min-width: 200px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 10px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown-content label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.dropdown-content input[type="checkbox"] {
  margin-right: 6px;
}

.clear-channel {
  background: none;
  color: #93c5fd;
  border: none;
  margin-top: 8px;
  font-size: 13px;
  cursor: pointer;
}
.hidden-row {
  background-color: #0f172a;
}

.dropdown-content-box {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  padding: 10px;
  border-top: 1px solid #334155;
}
.hidden-row {
  background-color: #0f172a;
}

.dropdown-content-box {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  padding: 10px;
  border-top: 1px solid #334155;
}

.more-btn {
  background-color: #dc2626;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.hidden-row {
  background-color: #0f172a;
}

.dropdown-content-box {
  font-size: 13px;
  padding: 10px;
  color: #cbd5e1;
  line-height: 1.5;
}

.more-btn {
  background-color: #dc2626;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
/* Style the hidden row transition */
.hidden-row {
  transition: all 0.3s ease;
  background-color: #1e1e2f;
}

.hidden-row td {
  padding: 10px;
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
}

.dropdown-content-box {
  padding: 10px;
  border-left: 4px solid #1abc9c;
  background-color: #2c2c3e;
  border-radius: 6px;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#orderTable tbody tr:hover {
  background-color: #2a2a40;
  transition: background-color 0.3s ease;
}
button {
  transition: all 0.3s ease;
}

button:hover {
  box-shadow: 0 0 10px #00ffff88;
  transform: scale(1.03);
}
tbody tr {
  animation: slideUp 0.4s ease both;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.status-badge small {
  font-size: 11px;
  display: block;
  margin-top: 2px;
  color: #ccc;
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
  padding: 6px 10px;
  font-size: 14px;
}
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.summary-cards .card {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  min-width: 150px;
}

.card-confirm { background-color: #28a745; }
.card-cancel { background-color: #dc3545; }
.card-pending { background-color: #ffc107; color: #000; }
.card-nopick { background-color: #6c757d; }
/* Eye-catching styles */
.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
}

.badge.neutral { background-color: #e0e0e0; }

.phone-link {
  color: #1e90ff;
  font-weight: bold;
  text-decoration: none;
}

select {
  padding: 4px;
  font-weight: bold;
  border-radius: 5px;
}

/* Dynamic Dropdown Highlights */
select option[value="Pending"] {
  background-color: orange;
  color: #fff;
}
select option[value="Done"] {
  background-color: green;
  color: #fff;
}
select option[value="Yes"] {
  background-color: #4CAF50;
  color: #fff;
}
select option[value="No"] {
  background-color: #f44336;
  color: #fff;
}
select option[value="Could Be"] {
  background-color: #9e9e9e;
  color: #fff;
}
select option[value="Not Converted"] {
  background-color: #e53935;
  color: #fff;
}
/* Table cell content wrap */
td {
  white-space: normal;
  word-wrap: break-word;
  max-width: 160px;
  vertical-align: top;
  padding: 6px 8px;
}

/* Highlight for budget */
.badge.budget {
  background-color: #7e57c2;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
  max-width: 100px;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}


/* Phone link style */
.phone-link {
  color: #1976d2;
  font-weight: bold;
  word-break: break-all;
  display: inline-block;
  max-width: 120px;
}

/* Input field alignment */
input[type="text"], select {
  width: 100%;
  max-width: 140px;
  box-sizing: border-box;
  padding: 4px;
  font-weight: bold;
}
/* 💡 Budget Badges */
#leadDashboard .badge.budget {
  background-color: #7e57c2;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
  max-width: 100px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.budget-low {
  background-color: #ef5350 !important;
}
.budget-mid {
  background-color: #ffa726 !important;
}
.budget-high {
  background-color: #66bb6a !important;
}

/* 🧾 Dropdowns */
#leadDashboard select {
  background-color: #121c2a;
  color: white;
  border: 1px solid #444;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
}
#leadDashboard select option {
  background-color: #1f2d3d;
  color: white;
}

/* 🖱️ Row Hover */
#leadDashboard table tr:hover {
  background-color: #222c3a;
}

/* ✅ Wrap Long Text */
#leadDashboard td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 150px;
}

/* 📊 Optional: Summary Card */
.summary-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: white;
}
.summary-cards .card {
  background-color: #1e293b;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 5px #000;
}
.badge.budget-low {
  background-color: #dc3545;
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.badge.budget-medium {
  background-color: #ffc107;
  color: #000;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.badge.budget-high {
  background-color: #28a745;
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.badge.budget-unknown {
  background-color: #6c757d;
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}
.lead-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.lead-header .badge {
  font-size: 13px;
  padding: 5px 10px;
}

.lead-details {
  background: #2b2b2b;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #eee;
}

.lead-details p {
  margin: 6px 0;
}

.lead-row {
  background: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.lead-row:hover {
  background: #333;
}

@media (max-width: 768px) {
  .mobile-lead-card {
    background: #1e293b;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 203, 169, 0.1);
    transition: all 0.3s ease;
  }

  .mobile-lead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 8px;
    color: #e2e8f0;
  }

  .mobile-lead-sub {
    font-size: 13px;
    color: #94a3b8;
  }

  .mobile-lead-card.open .mobile-lead-hidden {
    display: block;
  }

  .mobile-lead-card select {
    width: 100%;
    margin: 5px 0;
    padding: 6px 8px;
    border-radius: 6px;
    border: none;
    background: #0f172a;
    color: white;
  }
}
@media (max-width: 768px) {
  /* Fix parent grid/flex layouts */
  #orderTable,
  #orderTable table,
  #orderTable tbody,
  .lead-row,
  .lead-details-row {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #orderTable td,
  .lead-row td,
  .lead-details-row td,
  .client-card,  /* If your card container has class */
  .card-container, 
  .data-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
    box-sizing: border-box;
    display: block;
  }

  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100vw !important;
  }
}
.followup-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 10px;
  margin-top: 5px;
  color: #cbd5e1;
}
.followup-line span {
  background-color: #1f2d3d;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}
.lead-details p {
  margin: 8px 0;
  font-size: 14px;
  color: #e2e8f0;
}
.lead-details select {
  background-color: #1e293b;
  color: white;
  padding: 4px 8px;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
}
.mobile-lead-card {
  background: #1e293b;
  color: white;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.mobile-lead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.client-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #2563eb;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.followup-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  background: #1a2538;
  padding: 8px;
  border-radius: 8px;
}

.mobile-lead-hidden {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mobile-lead-card.open .mobile-lead-hidden {
  display: flex;
}

.dropdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.status-badge {
  position: relative;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 10px #00000033;
  background-color: #1e7533543212;
  color: white;
  cursor: default;
}

.status-badge:hover .incentive-tooltip {
  display: block;
}

.incentive-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 8px;
  border-radius: 6px;
  margin-top: 5px;
  width: 220px;
  box-shadow: 0 0 10px #00000055;
}
.vendor-toast {
  position: fixed;
  bottom: 30px;
  right: -400px; /* hidden off screen initially */
  background-color: #0e5073;
  color: #ffffff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.vendor-toast.show {
  right: 30px;     /* visible position */
  opacity: 1;
}
.converted-transfer-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transfer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.transfer-tools select {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.transfer-tools button {
  padding: 5px 8px;
  background-color: #00cba9;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1abc9c;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 9999;
}
.toast-message.show {
  display: block;
  animation: slideInRight 0.5s ease;
}


@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; display: none; }
}
.lead-name-with-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
}

.new-lead-pill {
  background-color: #00cba9;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: bold;
  position: relative;
}

.new-lead-pill::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #00cba9;
}
/* 🧱 Center all cell content */
#orderTable td,
#orderTable th {
  text-align: center;
  vertical-align: middle;
}

/* 🔽 Converted column wrapper – vertical stack */
#orderTable td > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 🔁 Align dropdown + button inside a row */
#orderTable td > div > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 🔘 Button + dropdown styling */
#orderTable select,
#orderTable button {
  height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 4px;
}

#orderTable button {
  background-color: #00cba9;
  color: white;
  border: none;
  cursor: pointer;
}
.status-textarea {
  width: 100%;
  min-width: 80px;
  max-width: 180px;
  resize: none;
  height: 28px;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #fff;
}

.status-textarea:focus {
  height: 70px;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
  z-index: 100;
}
.primary-btn {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.primary-btn-small {
  background: #0284c7;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.filter-dropdown {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 500;
}

.summary-table-header {
  display: grid;
  grid-template-columns: repeat(10, 1fr);  /* ✅ Adjusted */
  font-weight: bold;
  background: #1e293b;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.summary-user-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);  /* ✅ Fixed for 10 columns */
  padding: 12px;
  border-bottom: 1px solid #374151;
  color: white;
  background-color: #1f2937;
}

.session-log-container {
  display: none;
  background: #111827;
  color: #d1d5db;
  padding: 10px 20px;
  font-size: 13px;
}
.summary-table-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  padding: 10px;
  background: #1f2937;
  color: white;
  border-bottom: 1px solid #444;
}
.session-log-box {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 16px;
  margin-top: 10px;
  color: white;
  border-radius: 8px;
  width: 100%;
}

.admin-log-row {
  background: #1e293b;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  width: 100%;
}

.log-date-summary {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #334155;
  overflow: hidden;
}

.log-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #3c4b63;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  flex-wrap: nowrap; /* ✅ Prevent wrapping to new row */
  gap: 20px;
  overflow-x: auto; /* ✅ Scroll if needed */
}


.log-date-header span {
  white-space: nowrap;
  min-width: fit-content;
  flex: 1;
  text-align: center;
}

.log-date-details {
  background: #1e293b;
  padding: 10px 15px;
  display: none;
  width: 100%;
}

.log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2f3b52;
  padding: 8px 12px;
  margin-top: 4px;
  border-radius: 4px;
  width: 100%;
}

.log-entry span {
  flex: 1;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-user-row {
  background-color: #1e293b;
  transition: 0.2s ease;
}
.summary-user-row:hover {
  background-color: #2a374b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.admin-table-wrapper {
  max-height: 600px; /* Set desired max height */
  overflow-y: auto;
  position: relative;
}

.summary-table-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #1e293b; /* Must match table background */
  display: grid;
  grid-template-columns: repeat(10, 1fr); /* adjust column count if needed */
  font-weight: bold;
  padding: 12px;
  border-radius: 6px 6px 0 0;
  color: white;
}
.sidebar-btn {
  display: block;
  background: #1e293b;
  color: white;
  border: none;
  padding: 10px 14px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar-btn:hover {
  background: #334155;
}
/* Caller Summary Panel Layout */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chart-card,
.summary-card {
  background-color: #1e293b;
  padding: 20px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.chart-card h3,
.summary-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
body {
  transition: margin-left 0.3s;
}

.sidebar-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #334155;
  color: white;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
}

.sidebar-btn:hover {
  background-color: #475569;
}
/* ✅ Clean White Theme HR Table */
#hrLeadsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #ffffff;
  color: #1f2937; /* Dark gray text */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
}

/* ✅ Table Headers */
#hrLeadsTable th {
  background-color: #f1f5f9;
  color: #111827;
  text-align: left;
  padding: 12px 14px;
    font-size: 16px; /* ⬅️ Increased from 14px to 16px */

  font-weight: 600;
  border: 1px solid #e5e7eb;
}

/* ✅ Table Cells */
#hrLeadsTable td {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
  background-color: #ffffff;
  color: #111827;
  font-size: 16px; /* ⬅️ Increased from 14px to 16px */
  font-weight: 500; /* optional: make it slightly bolder */
}


/* ✅ Main Row Hover */
.hr-main-row:hover {
  background-color: #f9fafb;
  cursor: pointer;
}

/* ✅ Action Button (Dropdown) */
.hr-main-row button {
  background-color: #3b82f6;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}
.hr-main-row button:hover {
  background-color: #2563eb;
}

/* ✅ Dropdown Section */
.hr-dropdown-row {
  display: none;
  background-color: #f9fafb;
  color: #1f2937;
}

.hr-dropdown-row td {
  padding: 0;
  border: none;
}

/* ✅ Dropdown Box Layout */
.dropdown-box {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background-color: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin: 10px;
  font-size: 13px;
  animation: fadeIn 0.3s ease-in-out;
}

/* ✅ Info Card Styling */
.dropdown-box div {
  background-color: #ffffff;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}
.dropdown-box div:hover {
  background-color: #f9fafb;
}

.dropdown-box strong {
  color: #2563eb;
}

/* ✅ Smooth Dropdown Appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.input-field {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background-color: #f9fafb;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-field:focus {
  border-color: #0f62fe;
  background-color: #ffffff;
}

#addFormContent input {
  color: #000 !important;           /* Text typed by user will be black */
  background-color: #fff !important; /* Optional: white background */
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 5px;
}
body {
  zoom: 60%; /* Try 90%, 85%, or 80% as needed */
}

#transferSpinnerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all; /* Important: allow interaction block */
  transform: none !important; /* Prevent inherited scale */
}
.lasa-loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Center vertically */
  flex-direction: column;
  pointer-events: auto;      /* Allow it to block interaction */
}
#transferSpinnerOverlay {
  zoom: 166.67%; /* 100 / 60 */
}
/* ===== PROFILE SECTION (right after 200px sidebar) ===== */
/* Profile section should not add extra offset; body already has 200px left margin */
#profileSection{
  margin-left: 0;
  padding: 24px;
  max-width: 980px;         /* or 100% if you want full width */
  width: 100%;
  box-sizing: border-box;
}


/* ===== PROFILE CARD ===== */
/* Premium Profile Card Styling */
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Profile Image */
.profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #00cba9;
  object-fit: cover;
  background: #0f172a;
}

/* Name + Tag */
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.profile-name {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}
.profile-plan {
  background: #00cba9;
  color: #0f172a;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 12px;
}

/* Details Layout */
.profile-details,
#profileAdmin {
  display: grid;
  grid-template-columns: 200px auto;
  gap: 12px 20px;
  font-size: 14px;
}

.profile-details div,
#profileAdmin div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label {
  color: #9ca3af;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Profile details grid */
.profile-details,
#profileAdmin {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 10px 30px; /* row gap, column gap */
}

.profile-details div,
#profileAdmin div {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #f9fafb;
}

.label {
  color: #9ca3af;
  font-weight: 500;
}

.label::after {
  content: " | ";
  color: #6b7280;
  margin: 0 6px;
}
/* 🔔 Notifications UI */
/* 🔔 Notifications UI */
.notifs-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 780px) { .notifs-wrap { grid-template-columns: 1fr 1fr; } }

.notif-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
}
.notif-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.notif-meta .chip {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 2px 8px;
  border-radius: 999px;
}
.notif-text {
  white-space: pre-wrap;
  line-height: 1.45;
  color: #e5e7eb;
}
.notif-new { outline: 2px solid #00cba9; box-shadow: 0 0 0 2px #00cba933 inset; }

/* Badge (fallback if you don't already have it) */
.badge-wrapper { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.notif-badge {
  position: absolute; top: -8px; right: -12px;
  display: inline-flex; align-items:center; justify-content:center;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: 11px; border-radius: 9px; background: #ef4444; color: #fff;
}

/* Manage Orders iframe sizing */
#manageMount iframe {
  width: 100%;
  height: 100vh;
  border: 0;
  display: block;
}











/* ========== TIMER VISIBILITY ========== */
#sessionTimer,
#activityStatus {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #f9fafb !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);  /* dark bg pe clear dikhne ke liye */
}

/* ========== CLIENT INFO / LEADS TABLE ========== */

/* Table header */
#orderTable th {
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Table content */
#orderTable td {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Name column thoda zyada readable */
#orderTable td:nth-child(5) {
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Phone column highlight */
#orderTable td:nth-child(6),
#orderTable td:nth-child(6) a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #38bdf8 !important;
}

/* Status / Follow-up / Quality dropdowns */
#orderTable select {
  font-size: 14px !important;
  padding: 6px 8px !important;
}

/* Status textarea */
.status-textarea {
  font-size: 14px !important;
  padding: 6px 8px !important;
}

/* ========== INACTIVITY POPUP (Session Paused) ========== */
#inactivityPopup > div {
  font-size: 16px !important;
  line-height: 1.5 !important;
}

#inactivityPopup h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
}

#inactivityPopup p {
  font-size: 15px !important;
}

#inactivityPopup button {
  font-size: 15px !important;
  padding: 8px 18px !important;
}

.status-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.status-popup {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.status-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.status-popup-title {
  font-weight: 600;
  font-size: 15px;
}

.status-popup-close {
  border: none;
  background: #f1f3f5;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.status-popup-body {
  margin: 8px 0 12px;
}

.status-popup-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  font-size: 14px;
}

.status-popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.status-popup-btn {
  border-radius: 8px;
  padding: 6px 14px;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

.status-popup-cancel {
  background: #f1f3f5;
  color: #333;
}

.status-popup-save {
  background: #007bff;
  color: #fff;
}
/* Make each task card use the full row width in Tasks sections */
#tasksTable .section .cards-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;  /* single wide column */
}

#tasksTable .section .cards-grid .task-card {
  width: 100% !important;
  margin: 10px 0 !important;  /* small vertical gap, no side gap */
}
/* Make task card content align properly when width increases */
.task-card {
  display: block !important;              /* ensures content stacks normally */
  padding: 20px !important;
}

/* Make the header align left and stay readable */
.task-card .card-head {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap !important;
}

/* Allow meta chips (priority, caller, etc.) to wrap correctly */
.task-card .meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center;
  margin-top: 10px;
}

/* Fix description not wrapping + not aligning */
.task-card .desc {
  white-space: normal !important;    /* This allows proper wrapping */
  line-height: 1.5 !important;
  margin-top: 12px;
}

/* Prevent text stretching into one long horizontal row */
.task-card p,
.task-card span,
.task-card div {
  max-width: 100% !important;
  white-space: normal !important; 
  overflow-wrap: break-word !important;
}
/* 1) Center the cards and make them wider */
#tasksTable .section .cards-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;      /* center card horizontally */
}

/* 2) Wider card, but still readable (change 1100px if you want) */
#tasksTable .section .cards-grid .task-card {
  width: 100% !important;
  max-width: 1100px !important;        /* control how wide the card is */
  margin: 12px 0 !important;
}

/* 3) Make sure all inner blocks inside the card use full width */
.task-card {
  display: flex !important;
  flex-direction: column !important;
}

/* header, meta row, body, buttons row – all full width */
.task-card .card-head,
.task-card .meta-row,
.task-card .card-body,
.task-card .card-actions {
  width: 100% !important;
}

/* buttons row: keep them aligned nicely on the left with spacing */
.task-card .card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px;
}

/* allow description text to wrap normally in the wider card */
.task-card .desc {
  white-space: normal !important;
  line-height: 1.5;
}
/* Align the task card to the LEFT */
#tasksTable .section .cards-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;   /* LEFT ALIGN */
}

/* Keep the card wide but left aligned */
#tasksTable .section .cards-grid .task-card {
  width: 100% !important;
  max-width: 1100px !important; 
  margin: 12px 0 !important;           /* remove auto-centering */
}
/* White clean task card */
.task-card {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;     /* light gray border */
  color: #1e293b !important;                /* dark slate text */
}

/* All inner text inside card */
.task-card * {
  color: #1e293b !important;
}

/* Title */
.task-card .card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* Subtext (#task ID) */
.task-card .card-sub {
  color: #475569 !important;
}

/* Chips (Priority, Due, Type, Mgr) */
.task-card .chip {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 600;
}

/* In-Progress badge visible on white background */
.task-card .chip-st-inprogress {
  background: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #ffffff !important;
}

/* Buttons (Start, Done, +Note) */
.task-card .btn-sm {
  background: #1e293b !important;       /* dark slate */
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-weight: 500 !important;
  transition: 0.15s ease;
}

.task-card .btn-sm:hover {
  background: #0f172a !important;
}

/* Make the divider line slightly visible */
.task-card .card-sep {
  border-bottom: 1px solid #e5e7eb !important;
}
